PageSourceSearch

https://www.drmalpani.com/js/chunks/8832.js?id=ebc4a7459436150d

js drmalpani.com collected 2026-10-02 06:27:05 UTC 310,177 bytes, 2 lines download raw bytes

vendor: 5,414 bytes, lines 1-2
1/*! For license information please see 8832.js.LICENSE.txt */
2"use strict";(self.webpackChunk=self.webpackChunk||[]).push([[8832,3220,3492],{1967:function(e,n,t){t.d(n,{WY:function(){return O},jF:function(){return w},w7:function(){return I}});var r=t(4379);function o(e){return o="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},o(e)}function i(e,n){var t=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);n&&(r=r.filter((function(n){return Object.getOwnPropertyDescriptor(e,n).enumerable}))),t.push.apply(t,r)}return t}function a(e){for(var n=1;n<arguments.length;n++){var t=null!=arguments[n]?arguments[n]:{};n%2?i(Object(t),!0).forEach((function(n){s(e,n,t[n])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(t)):i(Object(t)).forEach((function(n){Object.defineProperty(e,n,Object.getOwnPropertyDescriptor(t,n))}))}return e}function s(e,n,t){var r;return r=function(e,n){if("object"!=o(e)||!e)return e;var t=e[Symbol.toPrimitive];if(void 0!==t){var r=t.call(e,n||"default");if("object"!=o(r))return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===n?String:Number)(e)}(n,"string"),(n="symbol"==o(r)?r:String(r))in e?Object.defineProperty(e,n,{value:t,enumerable:!0,configurable:!0,writable:!0}):e[n]=t,e}function l(){l=function(){return n};var e,n={},t=Object.prototype,r=t.hasOwnProperty,i=Object.defineProperty||function(e,n,t){e[n]=t.value},a="function"==typeof Symbol?Symbol:{},s=a.iterator||"@@iterator",c=a.asyncIterator||"@@asyncIterator",d=a.toStringTag||"@@toStringTag";function u(e,n,t){return Object.defineProperty(e,n,{value:t,enumerable:!0,configurable:!0,writable:!0}),e[n]}try{u({},"")}catch(e){u=function(e,n,t){return e[n]=t}}function f(e,n,t,r){var o=n&&n.prototype instanceof y?n:y,a=Object.create(o.prototype),s=new O(r||[]);return i(a,"_invoke",{value:C(e,t,s)}),a}function p(e,n,t){try{return{type:"normal",arg:e.call(n,t)}}catch(e){return{type:"throw",arg:e}}}n.wrap=f;var h="suspendedStart",m="suspendedYield",g="executing",x="completed",v={};function y(){}function b(){}function w(){}var j={};u(j,s,(function(){return this}));var k=Object.getPrototypeOf,N=k&&k(k(_([])));N&&N!==t&&r.call(N,s)&&(j=N);var E=w.prototype=y.prototype=Object.create(j);function S(e){["next","throw","return"].forEach((function(n){u(e,n,(function(e){return this._invoke(n,e)}))}))}function A(e,n){function t(i,a,s,l){var c=p(e[i],e,a);if("throw"!==c.type){var d=c.arg,u=d.value;return u&&"object"==o(u)&&r.call(u,"__await")?n.resolve(u.__await).then((function(e){t("next",e,s,l)}),(function(e){t("throw",e,s,l)})):n.resolve(u).then((function(e){d.value=e,s(d)}),(function(e){return t("throw",e,s,l)}))}l(c.arg)}var a;i(this,"_invoke",{value:function(e,r){function o(){return new n((function(n,o){t(e,r,n,o)}))}return a=a?a.then(o,o):o()}})}function C(n,t,r){var o=h;return function(i,a){if(o===g)throw new Error("Generator is already running");if(o===x){if("throw"===i)throw a;return{value:e,done:!0}}for(r.method=i,r.arg=a;;){var s=r.delegate;if(s){var l=F(s,r);if(l){if(l===v)continue;return l}}if("next"===r.method)r.sent=r._sent=r.arg;else if("throw"===r.method){if(o===h)throw o=x,r.arg;r.dispatchException(r.arg)}else"return"===r.method&&r.abrupt("return",r.arg);o=g;var c=p(n,t,r);if("normal"===c.type){if(o=r.done?x:m,c.arg===v)continue;return{value:c.arg,done:r.done}}"throw"===c.type&&(o=x,r.method="throw",r.arg=c.arg)}}}function F(n,t){var r=t.method,o=n.iterator[r];if(o===e)return t.delegate=null,"throw"===r&&n.iterator.return&&(t.method="return",t.arg=e,F(n,t),"throw"===t.method)||"return"!==r&&(t.method="throw",t.arg=new TypeError("The iterator does not provide a '"+r+"' method")),v;var i=p(o,n.iterator,t.arg);if("throw"===i.type)return t.method="throw",t.arg=i.arg,t.delegate=null,v;var a=i.arg;return a?a.done?(t[n.resultName]=a.value,t.next=n.nextLoc,"return"!==t.method&&(t.method="next",t.arg=e),t.delegate=null,v):a:(t.method="throw",t.arg=new TypeError("iterator result is not an object"),t.delegate=null,v)}function L(e){var n={tryLoc:e[0]};1 in e&&(n.catchLoc=e[1]),2 in e&&(n.finallyLoc=e[2],n.afterLoc=e[3]),this.tryEntries.push(n)}function z(e){var n=e.completion||{};n.type="normal",delete n.arg,e.completion=n}function O(e){this.tryEntries=[{tryLoc:"root"}],e.forEach(L,this),this.reset(!0)}function _(n){if(n||""===n){var t=n[s];if(t)return t.call(n);if("function"==typeof n.next)return n;if(!isNaN(n.length)){var i=-1,a=function t(){for(;++i<n.length;)if(r.call(n,i))return t.value=n[i],t.done=!1,t;return t.value=e,t.done=!0,t};return a.next=a}}throw new TypeError(o(n)+" is not iterable")}return b.prototype=w,i(E,"constructor",{value:w,configurable:!0}),i(w,"constructor",{value:b,configurable:!0}),b.displayName=u(w,d,"GeneratorFunction"),n.isGeneratorFunction=function(e){var n="function"==typeof e&&e.constructor;return!!n&&(n===b||"GeneratorFunction"===(n.displayName||n.name))},n.mark=function(e){return Object.setPrototypeOf?Object.setPrototypeOf(e,w):(e.__proto__=w,u(e,d,"GeneratorFunction")),e.prototype=Object.create(E),e},n.awrap=function(e){return{__await:e}},S(A.prototype),u(A.prototype,c,(function(){return this})),n.AsyncIterator=A,n.async=function(e,t,r,o,i){void 0===i&&(i=Prom
2ise);var a=new A(f(e,t,r,o),i);return n.isGeneratorFunction(t)?a:a.next().then((function(e){return e.done?e.value:a.next()}))},S(E),u(E,d,"Generator"),u(E,s,(function(){return this})),u(E,"toString",(function(){return"[object Generator]"})),n.keys=function(e){var n=Object(e),t=[];for(var r in n)t.push(r);return t.reverse(),function e(){for(;t.length;){var r=t.pop();if(r in n)return e.value=r,e.done=!1,e}return e.done=!0,e}},n.values=_,O.prototype={constructor:O,reset:function(n){if(this.prev=0,this.next=0,this.sent=this._sent=e,this.done=!1,this.delegate=null,this.method="next",this.arg=e,this.tryEntries.forEach(z),!n)for(var t in this)"t"===t.charAt(0)&&r.call(this,t)&&!isNaN(+t.slice(1))&&(this[t]=e)},stop:function(){this.done=!0;var e=this.tryEntries[0].completion;if("throw"===e.type)throw e.arg;return this.rval},dispatchException:function(n){if(this.done)throw n;var t=this;function o(r,o){return s.type="throw",s.arg=n,t.next=r,o&&(t.method="next",t.arg=e),!!o}for(var i=this.tryEntries.length-1;i>=0;--i){var a=this.tryEntries[i],s=a.completion;if("root"===a.tryLoc)return o("end");if(a.tryLoc<=this.prev){var l=r.call(a,"catchLoc"),c=r.call(a,"finallyLoc");if(l&&c){if(this.prev<a.catchLoc)return o(a.catchLoc,!0);if(this.prev<a.finallyLoc)return o(a.finallyLoc)}else if(l){if(this.prev<a.catchLoc)return o(a.catchLoc,!0)}else{if(!c)throw new Error("try statement without catch or finally");if(this.prev<a.finallyLoc)return o(a.finallyLoc)}}}},abrupt:function(e,n){for(var t=this.tryEntries.length-1;t>=0;--t){var o=this.tryEntries[t];if(o.tryLoc<=this.prev&&r.call(o,"finallyLoc")&&this.prev<o.finallyLoc){var i=o;break}}i&&("break"===e||"continue"===e)&&i.tryLoc<=n&&n<=i.finallyLoc&&(i=null);var a=i?i.completion:{};return a.type=e,a.arg=n,i?(this.method="next",this.next=i.finallyLoc,v):this.complete(a)},complete:function(e,n){if("throw"===e.type)throw e.arg;return"break"===e.type||"continue"===e.type?this.next=e.arg:"return"===e.type?(this.rval=this.arg=e.arg,this.method="return",this.next="end"):"normal"===e.type&&n&&(this.next=n),v},finish:function(e){for(var n=this.tryEntries.length-1;n>=0;--n){var t=this.tryEntries[n];if(t.finallyLoc===e)return this.complete(t.completion,t.afterLoc),z(t),v}},catch:function(e){for(var n=this.tryEntries.length-1;n>=0;--n){var t=this.tryEntries[n];if(t.tryLoc===e){var r=t.completion;if("throw"===r.type){var o=r.arg;z(t)}return o}}throw new Error("illegal catch attempt")},delegateYield:function(n,t,r){return this.delegate={iterator:_(n),resultName:t,nextLoc:r},"next"===this.method&&(this.arg=e),v}},n}function c(e,n){return function(e){if(Array.isArray(e))return e}(e)||function(e,n){var t=null==e?null:"undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(null!=t){var r,o,i,a,s=[],l=!0,c=!1;try{if(i=(t=t.call(e)).next,0===n){if(Object(t)!==t)return;l=!1}else for(;!(l=(r=i.call(t)).done)&&(s.push(r.value),s.length!==n);l=!0);}catch(e){c=!0,o=e}finally{try{if(!l&&null!=t.return&&(a=t.return(),Object(a)!==a))return}finally{if(c)throw o}}return s}}(e,n)||function(e,n){if(!e)return;if("string"==typeof e)return d(e,n);var t=Object.prototype.toString.call(e).slice(8,-1);"Object"===t&&e.constructor&&(t=e.constructor.name);if("Map"===t||"Set"===t)return Array.from(e);if("Arguments"===t||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(t))return d(e,n)}(e,n)||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 d(e,n){(null==n||n>e.length)&&(n=e.length);for(var t=0,r=new Array(n);t<n;t++)r[t]=e[t];return r}function u(e,n,t,r,o,i,a){try{var s=e[i](a),l=s.value}catch(e){return void t(e)}s.done?n(l):Promise.resolve(l).then(r,o)}function f(e){return function(){var n=this,t=arguments;return new Promise((function(r,o){var i=e.apply(n,t);function a(e){u(i,r,o,a,s,"next",e)}function s(e){u(i,r,o,a,s,"throw",e)}a(void 0)}))}}var p,h,m=(p="report-analyser-base",(null===(h=document.querySelector('meta[name="'.concat(p,'"]')))||void 0===h?void 0:h.content)||""||"").replace(/\/$/,""),g=function(){return""!==m},x="ra_token",v="ra_refresh",y=window.axios.create(),b=function(){return(0,r.bW)()},w=function(){return Boolean((0,r.bW)())},j=function(){return localStorage.getItem(x)},k=function(e){return localStorage.setItem(x,e.access_token),e.refresh_token&&localStorage.setItem(v,e.refresh_token),e.access_token},N=function(){localStorage.removeItem(x),localStorage.removeItem(v)},E=null;function S(){return E||(E=function(){return A.apply(this,arguments)}().finally((function(){E=null}))),E}function A(){return(A=f(l().mark((function e(){var n,t,r,o;return l().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.next=2,window.axios.post("/api/tools/report-analyser/ticket",{});case 2:return n=e.sent,t=n.data,e.next=6,y.post("".concat(m,"/api/v1/auth/session"),{ticket:t.data.ticket},{headers:{"Content-Type":"application/json"}});case 6:return r=e.sent,o=r.data,e.abrupt("return",k(o.data));case 9:case"end":return e.stop()}}),e)})))).apply(this,arguments)}function C(){return F.apply(this,arguments)}function F(){return F=f(l().mark((function e(){var n,t,r,o,i,a,s=arguments;return l().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:if(n=(s.length>0&&void 0!==s[0]?s[0]:{}
2).force,t=void 0!==n&&n){e.next=5;break}if(!(r=j())){e.next=5;break}return e.abrupt("return",r);case 5:if(!(o=localStorage.getItem(v))||t){e.next=18;break}return e.prev=7,e.next=10,y.post("".concat(m,"/api/v1/auth/refresh"),{refresh_token:o});case 10:return i=e.sent,a=i.data,e.abrupt("return",k(a.data));case 15:e.prev=15,e.t0=e.catch(7),N();case 18:return e.abrupt("return",S());case 19:case"end":return e.stop()}}),e,null,[[7,15]])}))),F.apply(this,arguments)}var L={analyses:["/api/ivf-report-analysis","/api/v1/analyses"],analysis:["/api/ivf-report-analysis/:id","/api/v1/analyses/:id"],saveProgress:["/api/ivf-report-analysis/save-progress","/api/v1/reports"],reports:["/api/ivf-report-analysis/reports","/api/v1/reports"],reportDownload:["/api/ivf-report-analysis/reports/:id/download","/api/v1/reports/:id/download"],report:["/api/ivf-report-analysis/reports/:id","/api/v1/reports/:id"],shares:["/api/ivf-report-analysis/shares","/api/v1/shares"],shareCreate:["/api/ivf-report-analysis/share","/api/v1/shares"],share:["/api/ivf-report-analysis/shares/:id","/api/v1/shares/:id"],shareEmail:["/api/ivf-report-analysis/share/send-email","/api/v1/shares/send-email"]};function z(e){var n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},t=c(L[e],2),r=t[0],o=t[1],i=g()?o:r;return Object.entries(n).forEach((function(e){var n=c(e,2),t=n[0],r=n[1];i=i.replace(":".concat(t),encodeURIComponent(r))})),g()?"".concat(m).concat(i):i}function O(e,n){return _.apply(this,arguments)}function _(){return _=f(l().mark((function e(n,t){var r,o,i,s,c,d,u,p,h=arguments;return l().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:if(o=(r=h.length>2&&void 0!==h[2]?h[2]:{}).params,i=void 0===o?{}:o,s=r.data,c=r.config,d=void 0===c?{}:c,u=function(){var e=f(l().mark((function e(r){var o;return l().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return o=a(a({},d.headers||{}),{},{Authorization:"Bearer ".concat(r)}),e.abrupt("return",(g()?y:window.axios).request(a(a({method:n,url:z(t,i),data:s},d),{},{headers:o})));case 2:case"end":return e.stop()}}),e)})));return function(n){return e.apply(this,arguments)}}(),g()){e.next=4;break}return e.abrupt("return",u(b()));case 4:return e.prev=4,e.t0=u,e.next=8,C();case 8:return e.t1=e.sent,e.next=11,(0,e.t0)(e.t1);case 11:return e.abrupt("return",e.sent);case 14:if(e.prev=14,e.t2=e.catch(4),401!==(null===e.t2||void 0===e.t2||null===(p=e.t2.response)||void 0===p?void 0:p.status)){e.next=23;break}return N(),e.t3=u,e.next=21,C({force:!0});case 21:return e.t4=e.sent,e.abrupt("return",(0,e.t3)(e.t4));case 23:throw e.t2;case 24:case"end":return e.stop()}}),e,null,[[4,14]])}))),_.apply(this,arguments)}function I(){localStorage.removeItem("token"),N()}},8832:function(e,n,t){t.r(n),t.d(n,{default:function(){return tn}});var r=t(4566),o=t(4557),i=t(3492),a=t(3220),s=t(1275),l=function(e){var n=e.message;return n?(0,s.jsx)("div",{style:{position:"fixed",bottom:"40%",left:"50%",transform:"translateX(-50%)",background:"#1F232D",color:"#fff",padding:"10px 24px",borderRadius:"8px",fontSize:"14px",zIndex:9999,boxShadow:"0 4px 12px rgba(0,0,0,0.2)",animation:"fadeInUp 0.3s ease"},children:n}):null},c=t(1296);function d(e,n){return function(e){if(Array.isArray(e))return e}(e)||function(e,n){var t=null==e?null:"undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(null!=t){var r,o,i,a,s=[],l=!0,c=!1;try{if(i=(t=t.call(e)).next,0===n){if(Object(t)!==t)return;l=!1}else for(;!(l=(r=i.call(t)).done)&&(s.push(r.value),s.length!==n);l=!0);}catch(e){c=!0,o=e}finally{try{if(!l&&null!=t.return&&(a=t.return(),Object(a)!==a))return}finally{if(c)throw o}}return s}}(e,n)||function(e,n){if(!e)return;if("string"==typeof e)return u(e,n);var t=Object.prototype.toString.call(e).slice(8,-1);"Object"===t&&e.constructor&&(t=e.constructor.name);if("Map"===t||"Set"===t)return Array.from(e);if("Arguments"===t||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(t))return u(e,n)}(e,n)||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 u(e,n){(null==n||n>e.length)&&(n=e.length);for(var t=0,r=new Array(n);t<n;t++)r[t]=e[t];return r}var f=[{name:"Priya S.",location:"Mumbai",text:"I had been staring at my AMH and FSH results for two weeks without understanding a word. Within a minute of uploading, I finally understood what was going on. I walked into my next appointment feeling prepared instead of lost.",rating:5,label:"IVF patient, 3rd cycle",photo:"/analyse-your-hcg-test-results/images/nikita-ghulia-testim.webp"},{name:"Sarah L.",location:"Pune",text:"My doctor gave me a printout after the egg retrieval and I had no idea what the numbers meant. This tool explained everything clearly without any medical jargon. I felt so much more in control of the process.",rating:5,label:"IVF patient, donor cycle",photo:"/analyse-your-hcg-test-results/images/moala-testim.webp"},{name:"Fatima A.",location:"Hyderabad",text:"I was anxious about my Day 3 bloodwork results and could not get an appointment for another week. Uploading here gave me a clear summary that calmed my nerves. Completely free and genuinely useful.",rating:5,label:"IVF patient, first cycle",photo:"/analyse-your-hcg-test-results/images/fatima-testim.jpg"}],p=[{q:"Is this really free?",a:"Yes. Analysing your IVF report is completely free. You can upload, analyse, and read your results without paying anything."},{q:"Is my medical data safe?",a:"Your files are encrypted during upload and used only to generate your analysis. We do not sell or share your data with any third party. Your reports are stored securely in your personal medical vault."},{q:"Do I need to create an account?",a:"You can start uploading without an account. An account is only needed to save your results and access them later from your medical vault."},{q:"What types of reports can I upload?",a:"You can upload PDF files and images (JPG, PNG) of any fertility-related report including blood tests, hormone panels, semen analysis, ultrasound summaries, embryology reports, and more."},{q:"Does this replace my doctor?",a:"No. This tool gives you a plain-English summary to help you understand your reports before or between appointments. It is educational, not a medical diagnosis. Always discu
2ss results with your fertility specialist."},{q:"How long does the analysis take?",a:"Usually under 60 seconds after upload. Our AI processes your documents and returns a structured summary with key values highlighted and explained."}],h=function(e){var n=e.count,t=void 0===n?5:n;return(0,s.jsxs)("span",{className:"lp-stars","aria-label":"".concat(t," out of 5 stars"),children:["★".repeat(t),"☆".repeat(5-t)]})},m=function(e){var n=e.q,t=e.a,o=d((0,r.useState)(!1),2),i=o[0],a=o[1];return(0,s.jsxs)("div",{className:"lp-faq-item".concat(i?" open":""),children:[(0,s.jsxs)("button",{className:"lp-faq-q",onClick:function(){return a((function(e){return!e}))},"aria-expanded":i,children:[(0,s.jsx)("span",{children:n}),(0,s.jsx)("span",{className:"lp-faq-icon","aria-hidden":"true",children:i?"−":"+"})]}),i&&(0,s.jsx)("div",{className:"lp-faq-a",children:t})]})},g=function(){return(0,s.jsxs)("div",{className:"lp-sample-card",children:[(0,s.jsxs)("div",{className:"lp-sample-header",children:[(0,s.jsx)("div",{className:"lp-sample-badge",children:"Sample Analysis Output"}),(0,s.jsx)("div",{className:"lp-sample-status ok",children:"Analysis Complete"})]}),(0,s.jsxs)("div",{className:"lp-sample-rows",children:[(0,s.jsxs)("div",{className:"lp-sample-row",children:[(0,s.jsx)("div",{className:"lp-sample-label",children:"AMH (Anti-Mullerian Hormone)"}),(0,s.jsx)("div",{className:"lp-sample-value",children:"1.2 ng/mL"}),(0,s.jsx)("div",{className:"lp-sample-tag low",children:"Below average for age"})]}),(0,s.jsxs)("div",{className:"lp-sample-row",children:[(0,s.jsx)("div",{className:"lp-sample-label",children:"FSH (Day 3)"}),(0,s.jsx)("div",{className:"lp-sample-value",children:"9.4 mIU/mL"}),(0,s.jsx)("div",{className:"lp-sample-tag ok",children:"Within normal range"})]}),(0,s.jsxs)("div",{className:"lp-sample-row",children:[(0,s.jsx)("div",{className:"lp-sample-label",children:"Antral Follicle Count"}),(0,s.jsx)("div",{className:"lp-sample-value",children:"8 follicles"}),(0,s.jsx)("div",{className:"lp-sample-tag low",children:"Low ovarian reserve"})]}),(0,s.jsxs)("div",{className:"lp-sample-row",children:[(0,s.jsx)("div",{className:"lp-sample-label",children:"Estradiol (E2)"}),(0,s.jsx)("div",{className:"lp-sample-value",children:"42 pg/mL"}),(0,s.jsx)("div",{className:"lp-sample-tag ok",children:"Normal"})]})]}),(0,s.jsxs)("div",{className:"lp-sample-summary",children:[(0,s.jsx)("div",{className:"lp-sample-summary-icon",children:"AI"}),(0,s.jsx)("div",{className:"lp-sample-summary-text",children:"Your AMH and follicle count suggest diminished ovarian reserve. This means fewer eggs may be retrieved per cycle, but pregnancies are still achievable. Your doctor may recommend a higher stimulation protocol or discuss egg banking."})]})]})},x=function(){var e=d((0,r.useState)(0),2),n=e[0],t=e[1],o=f.length;return(0,s.jsx)("section",{className:"lp-testimonials",children:(0,s.jsxs)("div",{className:"lp-container",children:[(0,s.jsx)("div",{className:"lp-section-label",children:"Patient stories"}),(0,s.jsx)("h2",{className:"lp-section-h2",children:"What it feels like to finally understand"}),(0,s.jsxs)("div",{className:"lp-testi-carousel",children:[(0,s.jsx)("div",{className:"lp-testi-track",style:{transform:"translateX(-".concat(100*n,"%)")},children:f.map((function(e,n){return(0,s.jsx)("div",{className:"lp-testi-slide",children:(0,s.jsxs)("div",{className:"lp-testi-card",children:[(0,s.jsx)(h,{count:e.rating}),(0,s.jsxs)("p",{className:"lp-testi-text",children:['"',e.text,'"']}),(0,s.jsxs)("div",{className:"lp-testi-author",children:[(0,s.jsx)("img",{src:e.photo,alt:e.name,className:"lp-testi-avatar-img",loading:"lazy"}),(0,s.jsxs)("div",{children:[(0,s.jsx)("div",{className:"lp-testi-name",children:e.name}),(0,s.jsxs)("div",{className:"lp-testi-meta",children:[e.label," · ",e.location]})]})]})]})},n)}))}),(0,s.jsx)("button",{className:"lp-testi-nav lp-testi-nav-prev",onClick:function(){return t((function(e){return(e-1+o)%o}))},"aria-label":"Previous",children:"←"}),(0,s.jsx)("button",{className:"lp-testi-nav lp-testi-nav-next",onClick:function(){return t((function(e){return(e+1)%o}))},"aria-label":"Next",children:"→"})]}),(0,s.jsx)("div",{className:"lp-testi-dots",children:f.map((function(e,r){return(0,s.jsx)("button",{className:"lp-testi-dot".concat(r===n?" active":""),onClick:function(){return t(r)},"aria-label":"Go to testimonial ".concat(r+1)},r)}))})]})})},v=function(e){var n=e.onUploadClick,t=function(){(0,c.L9)(c.OI.REPORT_ANALYZER_CTA_CLICK),n()};return(0,s.jsxs)("div",{className:"lp-root",children:[(0,s.jsx)("section",{className:"lp-hero",children:(0,s.jsx)("div",{className:"lp-container",children:(0,s.jsxs)("div",{className:"lp-hero-inner",children:[(0,s.jsxs)("div",{className:"lp-hero-text",children:[(0,s.jsx)("div",{className:"lp-hero-eyebrow",children:"Free for IV
2F patients"}),(0,s.jsxs)("h1",{className:"lp-hero-h1",children:["Understand your",(0,s.jsx)("br",{}),(0,s.jsx)("span",{className:"lp-hero-accent",children:"fertility reports"})]}),(0,s.jsx)("p",{className:"lp-hero-desc",children:"You got your results. Now you need answers. Upload your IVF reports and get a clear explanation of every value, without waiting for your next appointment."}),(0,s.jsxs)("button",{className:"lp-btn-primary lp-hero-cta",onClick:function(){return t()},children:["Analyse Your Fertility Reports",(0,s.jsx)("svg",{width:"18",height:"18",viewBox:"0 0 24 24",fill:"none",stroke:"currentColor",strokeWidth:"2.5",strokeLinecap:"round",strokeLinejoin:"round","aria-hidden":"true",children:(0,s.jsx)("path",{d:"M5 12h14M12 5l7 7-7 7"})})]}),(0,s.jsxs)("div",{className:"lp-hero-trust",children:[(0,s.jsxs)("span",{className:"lp-trust-pill",children:[(0,s.jsx)("svg",{width:"14",height:"14",viewBox:"0 0 24 24",fill:"none",stroke:"currentColor",strokeWidth:"2.5","aria-hidden":"true",children:(0,s.jsx)("path",{d:"M12 22s8-4 8-10V5l-8-3-8 3v7c0 6 8 10 8 10z"})}),"Encrypted and private"]}),(0,s.jsxs)("span",{className:"lp-trust-pill",children:[(0,s.jsx)("svg",{width:"14",height:"14",viewBox:"0 0 24 24",fill:"none",stroke:"currentColor",strokeWidth:"2.5","aria-hidden":"true",children:(0,s.jsx)("polyline",{points:"20 6 9 17 4 12"})}),"Clinically accurate"]}),(0,s.jsxs)("span",{className:"lp-trust-pill",children:[(0,s.jsxs)("svg",{width:"14",height:"14",viewBox:"0 0 24 24",fill:"none",stroke:"currentColor",strokeWidth:"2.5","aria-hidden":"true",children:[(0,s.jsx)("path",{d:"M17 21v-2a4 4 0 0 0-4-4H5a4 4 0 0 0-4 4v2"}),(0,s.jsx)("circle",{cx:"9",cy:"7",r:"4"}),(0,s.jsx)("path",{d:"M23 21v-2a4 4 0 0 0-3-3.87"}),(0,s.jsx)("path",{d:"M16 3.13a4 4 0 0 1 0 7.75"})]}),"1,000+ reports analysed"]})]})]}),(0,s.jsxs)("div",{className:"lp-hero-moments","aria-hidden":"true",children:[(0,s.jsxs)("div",{className:"lp-moment lp-moment--before",children:[(0,s.jsx)("div",{className:"lp-moment-tag",children:"The moment you got your results"}),(0,s.jsx)("p",{className:"lp-moment-quote",children:"\"My AMH came back 0.8. I have no idea if that's bad. My next appointment is in two weeks. I've been Googling for hours and I'm more scared than before.\""}),(0,s.jsx)("div",{className:"lp-moment-author",children:"Priya, 34 · Mumbai"})]}),(0,s.jsx)("div",{className:"lp-moment-connector","aria-hidden":"true",children:(0,s.jsxs)("svg",{width:"20",height:"20",viewBox:"0 0 24 24",fill:"none",stroke:"currentColor",strokeWidth:"2",strokeLinecap:"round",strokeLinejoin:"round",children:[(0,s.jsx)("line",{x1:"12",y1:"5",x2:"12",y2:"19"}),(0,s.jsx)("polyline",{points:"19 12 12 19 5 12"})]})}),(0,s.jsxs)("div",{className:"lp-moment lp-moment--analysis",children:[(0,s.jsx)("div",{className:"lp-moment-tag",children:"What you get"}),(0,s.jsxs)("div",{className:"lp-moment-values",children:[(0,s.jsxs)("div",{className:"lp-moment-row",children:[(0,s.jsx)("span",{className:"lp-moment-label",children:"AMH 0.8 ng/mL"}),(0,s.jsx)("span",{className:"lp-moment-flag low",children:"Below average for 34"})]}),(0,s.jsxs)("div",{className:"lp-moment-row",children:[(0,s.jsx)("span",{className:"lp-moment-label",children:"FSH 12.4 mIU/mL"}),(0,s.jsx)("span",{className:"lp-moment-flag warn",children:"Slightly elevated"})]}),(0,s.jsxs)("div",{className:"lp-moment-row",children:[(0,s.jsx)("span",{className:"lp-moment-label",children:"AFC 6 follicles"}),(0,s.jsx)("span",{className:"lp-moment-flag low",children:"Lower ovarian reserve"})]})]}),(0,s.jsx)("p",{className:"lp-moment-insight",children:"Pregnancies are still very possible. Your doctor may suggest a higher stimulation dose. Here is what to ask at your next appointment."})]}),(0,s.jsx)("div",{className:"lp-moment-connector",children:(0,s.jsxs)("svg",{width:"20",height:"20",viewBox:"0 0 24 24",fill:"none",stroke:"currentColor",strokeWidth:"2",strokeLinecap:"round",strokeLinejoin:"round",children:[(0,s.jsx)("line",{x1:"12",y1:"5",x2:"12",y2:"19"}),(0,s.jsx)("polyline",{points:"19 12 12 19 5 12"})]})}),(0,s.jsxs)("div",{className:"lp-moment lp-moment--after",children:[(0,s.jsx)("div",{className:"lp-moment-tag",children:"After"}),(0,s.jsx)("p",{className:"lp-moment-quote",children:'"I finally understood what my numbers meant. I walked into my appointment with actual questions. I felt in control for the first time."'}),(0,s.jsx)("div",{className:"lp-moment-author",children:"Priya, 34 · Mumbai"})]})]})]})})}),(0,s.jsx)("section",{className:"lp-doctor",children:(0,s.jsx)("div",{className:"lp-container",children:(0,s.jsxs)("div",{className:"lp-doctor-inner",children:[(0,s.jsx)("img",{src:"/about-dr-malpani/profile-photo.jpg",alt:"Dr. Aniruddha Malpani",className:"lp-doctor-avatar-img",loading:"lazy"}),(0,s.jsxs)("div",{className:"lp-doctor-text",children:[(0,s.jsx)("h3",{className:"lp-doctor-name",children:"Dr. Aniruddha Malpani"}),(0,s.jsx)("p",{className:"lp-doctor-cred",children:"IVF Specialist, Malpani Infertility Clinic, Mumbai"}),(0,s.jsx)("p",{className:"lp-doctor-bio",children:"With over 35 years of experience in reproductive medicine, Dr. Malpani has helped thousands of couples understand their fertility journey. This tool is built on his belief that every patient deserves to truly understand their own reports."})]}),(0,s.jsxs)("div",{className:"lp-doctor-stats",children:[(0,s.jsxs)("div",{className:"lp-doctor-stat",children:[(0,s.jsx)("div",{className:"lp-doctor-stat-num",children:"35+"}),(0,s.jsx)("div",{className:"lp-doctor-stat-label",children:"Years of experience"})]}),(0,s.jsxs)("div",{className:"lp-doctor-stat",children:[(0,s.jsx)("div",{className:"lp-doctor-stat-num",children:"10,000+"}),(0,s.jsx)("div",{className:"lp-doctor-stat-label",children:"Patients treated"})]})]})]})})}),(0,s.jsx)("section",{className:"lp-how",children:(0,s.jsxs)("div",{className:"lp-container",children:[(0,s.jsx)("div",{className:"lp-section-label",children:"How it works"}),(0,s.jsx)("h2",{className:"lp-section-h2",children:"Get your analysis in less than a day"}),(0,s.jsx)("p",{className:"lp-how-sub",children:"Don't wait weeks for a doctor's appointment to make sense of your results. Upload your reports and have a full analysis waiting for you."}),(0,s.jsxs)("div",{className:"lp-steps",children:[(0,s.jsxs)("a",{href:"/analyse-your-ivf-report/upload",className:"lp-step lp-step--upload-link",children:[(0,s.jsx)("div",{className:"lp-step-num",children:(0,s.jsxs)("svg",{width:"22",height:"22",viewBox:"0 0 24 24",fill:"none",stroke:"currentColor",strokeWidth:"2",strokeLinecap:"round",strokeLinejoin:"round","aria-hidden":"true",children:[(0,s.jsx)("path",{d:"M21 15v4a2 2 0 0 1-2 2H5a2 2 0 0 1-2-2v-4"}),(0,s.jsx)("polyline",{points:"17 8 12 3 7 8"}),(0,s.jsx)("line",{x1:"12",y1:"3",x2:"12",y2:"15"})]})}),(0,s.jsx)("h3",{children:"Upload your reports"}),(0,s.jsx)("p",{children:"Drag and drop or select any PDF or image file of your IVF, blood w
2ork, or scan results."})]}),(0,s.jsx)("div",{className:"lp-step-arrow","aria-hidden":"true",children:(0,s.jsx)("svg",{width:"24",height:"24",viewBox:"0 0 24 24",fill:"none",stroke:"currentColor",strokeWidth:"2",strokeLinecap:"round",strokeLinejoin:"round",children:(0,s.jsx)("path",{d:"M5 12h14M12 5l7 7-7 7"})})}),(0,s.jsxs)("div",{className:"lp-step",children:[(0,s.jsx)("div",{className:"lp-step-num",children:(0,s.jsxs)("svg",{width:"22",height:"22",viewBox:"0 0 24 24",fill:"none",stroke:"currentColor",strokeWidth:"2",strokeLinecap:"round",strokeLinejoin:"round","aria-hidden":"true",children:[(0,s.jsx)("path",{d:"M12 2a10 10 0 1 0 10 10H12V2z"}),(0,s.jsx)("path",{d:"M12 2a10 10 0 0 1 10 10"})]})}),(0,s.jsx)("h3",{children:"AI reads your data"}),(0,s.jsx)("p",{children:"Our medical AI extracts every value, compares it to clinical reference ranges, and identifies what needs attention."})]}),(0,s.jsx)("div",{className:"lp-step-arrow","aria-hidden":"true",children:(0,s.jsx)("svg",{width:"24",height:"24",viewBox:"0 0 24 24",fill:"none",stroke:"currentColor",strokeWidth:"2",strokeLinecap:"round",strokeLinejoin:"round",children:(0,s.jsx)("path",{d:"M5 12h14M12 5l7 7-7 7"})})}),(0,s.jsxs)("div",{className:"lp-step",children:[(0,s.jsx)("div",{className:"lp-step-num",children:(0,s.jsxs)("svg",{width:"22",height:"22",viewBox:"0 0 24 24",fill:"none",stroke:"currentColor",strokeWidth:"2",strokeLinecap:"round",strokeLinejoin:"round","aria-hidden":"true",children:[(0,s.jsx)("path",{d:"M14 2H6a2 2 0 0 0-2 2v16a2 2 0 0 0 2 2h12a2 2 0 0 0 2-2V8z"}),(0,s.jsx)("polyline",{points:"14 2 14 8 20 8"}),(0,s.jsx)("line",{x1:"16",y1:"13",x2:"8",y2:"13"}),(0,s.jsx)("line",{x1:"16",y1:"17",x2:"8",y2:"17"}),(0,s.jsx)("polyline",{points:"10 9 9 9 8 9"})]})}),(0,s.jsx)("h3",{children:"Your analysis, ready to read"}),(0,s.jsx)("p",{children:"Get a clear breakdown of every value in your own language. No waiting for your next appointment, no back-and-forth with the clinic."})]})]}),(0,s.jsx)("div",{className:"lp-how-cta",children:(0,s.jsx)("button",{className:"lp-btn-primary",onClick:function(){return t()},children:"Analyse Your Fertility Reports"})})]})}),(0,s.jsx)("section",{className:"lp-preview",children:(0,s.jsxs)("div",{className:"lp-container lp-preview-inner",children:[(0,s.jsxs)("div",{className:"lp-preview-text",children:[(0,s.jsx)("div",{className:"lp-section-label",children:"What you get"}),(0,s.jsx)("h2",{className:"lp-section-h2",children:"See exactly what your results mean"}),(0,s.jsx)("p",{className:"lp-preview-desc",children:"Instead of a table of numbers you cannot interpret, you get a structured breakdown of each value with clinical context, flag indicators, and a summary written by AI trained on fertility medicine."}),(0,s.jsxs)("ul",{className:"lp-preview-list",children:[(0,s.jsxs)("li",{children:[(0,s.jsx)("svg",{width:"16",height:"16",viewBox:"0 0 24 24",fill:"none",stroke:"currentColor",strokeWidth:"2.5",strokeLinecap:"round",strokeLinejoin:"round","aria-hidden":"true",children:(0,s.jsx)("polyline",{points:"20 6 9 17 4 12"})}),"Every hormone and marker explained"]}),(0,s.jsxs)("li",{children:[(0,s.jsx)("svg",{width:"16",height:"16",viewBox:"0 0 24 24",fill:"none",stroke:"currentColor",strokeWidth:"2.5",strokeLinecap:"round",strokeLinejoin:"round","aria-hidden":"true",children:(0,s.jsx)("polyline",{points:"20 6 9 17 4 12"})}),"Colour-coded flags for values outside normal range"]}),(0,s.jsxs)("li",{children:[(0,s.jsx)("svg",{width:"16",height:"16",viewBox:"0 0 24 24",fill:"none",stroke:"currentColor",strokeWidth:"2.5",strokeLinecap:"round",strokeLinejoin:"round","aria-hidden":"true",children:(0,s.jsx)("polyline",{points:"20 6 9 17 4 12"})}),"AI summary of what it means for your cycle"]}),(0,s.jsxs)("li",{children:[(0,s.jsx)("svg",{width:"16",height:"16",viewBox:"0 0 24 24",fill:"none",stroke:"currentColor",strokeWidth:"2.5",strokeLinecap:"round",strokeLinejoin:"round","aria-hidden":"true",children:(0,s.jsx)("polyline",{points:"20 6 9 17 4 12"})}),"Stored securely in your personal medical vault"]})]})]}),(0,s.jsx)("div",{className:"lp-preview-card-wrap",children:(0,s.jsx)(g,{})})]})}),(0,s.jsx)(x,{}),(0,s.jsx)("section",{className:"lp-faq",children:(0,s.jsxs)("div",{className:"lp-container lp-faq-inner",children:[(0,s.jsxs)("div",{children:[(0,s.jsx)("div",{className:"lp-section-label",children:"Questions"}),(0,s.jsx)("h2",{className:"lp-section-h2",children:"Everything you need to know"}),(0,s.jsx)("p",{className:"lp-faq-intro",children:"If something is not answered here, feel free to reach out to us."})]}),(0,s.jsx)("div",{className:"lp-faq-list",children:p.map((function(e,n){return(0,s.jsx)(m,{q:e.q,a:e.a},n)}))})]})}),(0,s.jsx)("section",{className:"lp-final-cta",children:(0,s.jsxs)("div",{className:"lp-container lp-final-cta-inner",children:[(0,s.jsx)("div",{className:"lp-final-eyebrow",children:"Start in 30 seconds"}),(0,s.jsx)("h2",{className:"lp-final-h2",children:"Stop guessing. Start understanding."}),(0,s.jsx)("p",{className:"lp-final-desc",children:"Join over 1,000 IVF patients who have already gained clarity on their fertility journey. No cost, no signup required to start."}),(0,s.jsxs)("button",{className:"lp-btn-primary lp-final-btn",onClick:function(){return t()},children:["Analyse Your Fertility Reports",(0,s.jsx)("svg",{width:"18",height:"18",viewBox:"0 0 24 24",fill:"none",stroke:"currentColor",strokeWidth:"2.5",strokeLinecap:"round",strokeLinejoin:"round","aria-hidden":"true",children:(0,s.jsx)("path",{d:"M5 12h14M12 5l7 7-7 7"})})]}),(0,s.jsx)("p",{className:"lp-final-note",children:"No credit card. No signup to start. Results in under 60 seconds."})]})})]})};function y(e){return y="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},y(e)}function b(e,n){return function(e){if(Array.isArray(e))return e}(e)||function(e,n){var t=null==e?null:"undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(null!=t){var r,o,i,a,s=[],l=!0,c=!1;try{if(i=(t=t.call(e)).next,0===n){if(Object(t)!==t)return;l=!1}else for(;!(l=(r=i.call(t)).done)&&(s.push(r.value),s.length!==n);l=!0);}catch(e){c=!0,o=e}
2finally{try{if(!l&&null!=t.return&&(a=t.return(),Object(a)!==a))return}finally{if(c)throw o}}return s}}(e,n)||function(e,n){if(!e)return;if("string"==typeof e)return w(e,n);var t=Object.prototype.toString.call(e).slice(8,-1);"Object"===t&&e.constructor&&(t=e.constructor.name);if("Map"===t||"Set"===t)return Array.from(e);if("Arguments"===t||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(t))return w(e,n)}(e,n)||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 w(e,n){(null==n||n>e.length)&&(n=e.length);for(var t=0,r=new Array(n);t<n;t++)r[t]=e[t];return r}var j=function(e){var n=e.results,t=e.selectedRecord,r=e.onBackToVault,o=e.onHome,i=e.onShareClick;if(!n)return null;var a=(null==t?void 0:t.file_names)||[],l=null!=t&&t.created_at?new Date(t.created_at).toLocaleDateString(void 0,{month:"long",day:"numeric",year:"numeric"}):null,c=["raw_response","document_titles","transcriptions","overall_insight","document_data","short_tldr","assessment_title"];return(0,s.jsxs)("div",{className:"container py-4 text-dark",style:{maxWidth:"860px"},children:[(0,s.jsxs)("div",{className:"d-flex align-items-center justify-content-between mb-3 flex-wrap gap-2",children:[(0,s.jsxs)("button",{className:"btn btn-sm btn-outline-secondary px-3 d-flex align-items-center gap-1",style:{borderRadius:"8px",fontSize:"0.8rem"},onClick:r,children:[(0,s.jsx)("i",{className:"fa fa-arrow-left",style:{fontSize:"11px"}}),(0,s.jsx)("span",{children:"Medical Vault"})]}),(0,s.jsxs)("div",{className:"d-flex gap-2",children:[i&&(0,s.jsxs)("button",{className:"btn btn-sm px-3",style:{borderRadius:"8px",fontSize:"0.8rem",background:"#0d6efd",color:"#fff",fontWeight:"600",border:"none"},onClick:i,children:[(0,s.jsx)("i",{className:"fa fa-share-alt me-1",style:{fontSize:"12px"}}),"Share"]}),(0,s.jsx)("button",{className:"btn btn-sm btn-outline-secondary px-3",style:{borderRadius:"8px",fontSize:"0.8rem"},onClick:o,children:"Home"})]})]}),(0,s.jsxs)("div",{className:"mb-4",children:[(0,s.jsx)("h1",{style:{fontSize:"1.5rem",fontWeight:"700",color:"#1F232D",lineHeight:"1.3",marginBottom:"6px"},children:n.assessment_title||"Fertility Assessment Report"}),l&&(0,s.jsxs)("p",{className:"text-muted mb-0",style:{fontSize:"0.8rem"},children:["Generated on ",l]})]}),n.overall_insight&&(0,s.jsxs)("div",{className:"mb-4 p-3 p-md-4",style:{background:"#EBF3FE",borderRadius:"10px",borderLeft:"4px solid #0d6efd"},children:[(0,s.jsxs)("h5",{className:"mb-2",style:{fontWeight:"700",color:"#0d6efd",fontSize:"1rem"},children:[(0,s.jsx)("i",{className:"fa fa-lightbulb me-2",style:{color:"#0d6efd"}}),"Overall Insights"]}),(0,s.jsx)("p",{className:"mb-0 text-dark",style:{fontSize:"0.95rem",lineHeight:"1.6"},children:n.overall_insight})]}),(0,s.jsx)("div",{className:"results-content",children:Object.entries(n).map((function(e){var n=b(e,2),t=n[0],r=n[1];if(c.includes(t))return null;if(!r||Array.isArray(r)&&0===r.length)return null;var o=t.replace(/_/g," ").replace(/\b\w/g,(function(e){return e.toUpperCase()}));return(0,s.jsxs)("div",{className:"card-insight",children:[(0,s.jsx)("h2",{children:o}),Array.isArray(r)?(0,s.jsx)("ul",{className:"list",children:r.map((function(e,n){return(0,s.jsx)("li",{children:e},n)}))}):"object"===y(r)?(0,s.jsx)("pre",{style:{fontSize:"0.85rem",whiteSpace:"pre-wrap",color:"#616671"},children:JSON.stringify(r,null,2)}):(0,s.jsx)("p",{children:r})]},t)}))}),a.length>0&&(0,s.jsxs)("div",{className:"mb-4 p-3 p-md-4",style:{background:"#f8f9fa",borderRadius:"10px",border:"1px solid #e9ecef"},children:[(0,s.jsxs)("h5",{className:"mb-3",style:{fontWeight:"700",color:"#1F232D",fontSize:"0.95rem"},children:[(0,s.jsx)("i",{className:"fa fa-paperclip me-2",style:{color:"#6c757d"}}),"Reports Used"]}),(0,s.jsx)("div",{className:"d-flex flex-wrap gap-2",children:a.map((function(e,n){return(0,s.jsxs)("span",{className:"d-inline-flex align-items-center gap-1 px-2 py-1",style:{background:"#fff",border:"1px solid #dee2e6",borderRadius:"6px",fontSize:"0.78rem",color:"#495057"},children:[(0,s.jsx)("i",{className:"fa ".concat(e.toLowerCase().endsWith(".pdf")?"fa-file-pdf":"fa-file-image"),style:{fontSize:"11px",color:e.toLowerCase().endsWith(".pdf")?"#e74c3c":"#3b82f6"}}),e]},n)}))})]}),(0,s.jsxs)("div",{className:"p-3",style:{background:"#EFF5F2",borderRadius:"10px",fontSize:"0.85rem",color:"#495057"},children:[(0,s.jsx)("i",{className:"fa fa-info-circle me-2",style:{color:"#1F232D"}}),(0,s.jsx)("strong",{children:"Important:"})," This analysis is for educational purposes and is not a substitute for professional medical advice. Please discuss these insights with your fertility specialist."]})]})};function k(e){return k="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},k(e)}function N(){N=function(){return n};var e,n={},t=Object.prototype,r=t.hasOwnProperty,o=Object.defineProperty||function(e,n,t){e[n]=t.value},i="function"==typeof Symbol?Symbol:{},a=i.iterator||"@@iterator",s=i.asyncIterator||"@@asyncIterator",l=i.toStringTag||"@@toStringTag";function c(e,n,t){return Object.defineProperty(e,n,{value:t,enumerable:!0,configurable:!0,writable:!0}),e[n]}try{c({},"")}catch(e){c=function(e,n,t){return e[n]=t}}function d(e,n,t,r){var i=n&&n.prototype instanceof x?n:x,a=Object.create(i.prototype),s=new O(r||[]);return o(a,"_invoke",{value:C(e,t,s)}),a}function u(e,n,t){try{return{type:"normal",arg:e.call(n,t)}}catch(e){return{type:"throw",arg:e}}}n.wrap=d;var f="suspendedStart",p="suspendedYield",h="executing",m="completed",g={};function x(){}function v(){}function y(){}var b={};c(b,a,(function(){return this}));var w=Object.getPrototypeOf,j=w&&w(w(_([])));j&&j!==t&&r.call(j,a)&&(b=j);var E=y.prototype=x.prototype=Object.create(b);function S(e){["next","throw","return"].forEach((function(n){c(e,n,(function(e){return this._invoke(n,e)}))}))}function A(e,n){function t(o,i,a,s){var l=u(e[o],e,i);if("throw"!==l.type){var c=l.arg,d=c.value;return d&&"object"==k(d)&&r.call(d,"__await")?n.resolve(d.__await).then((function(e){t("next",e,a,s)}),(function(e){t("throw",e,a,s)})):n.resolve(d).then((function(e){c.value=e,a(c)}),(function(e){return t("throw",e,a,s)}))}s(l.arg)}var i;o(this,"_invoke",{value:function(e,r){function o(){return new n((function(n,o){t(e,r,n,o)}))}return i=i?i.then(o,o):o()}})}function C(n,t,r){var o=f;return function(i,a){if(o===h)throw new Error("Generator is already running");if(o===m){if("throw"===i)throw a;return{value:e,done:!0}}for(r.method=i,r.arg=a;;){var s=r.delegate;if(s){var l=F(s,r);if(l){if(l===g)continue;return l}}if("next"===r.method)r.sent=r._sent=r.arg;else if("throw"===r.method){if(o===f)throw o=m,r.arg;r.dispatchException(r.arg)}else"return"===r.method&&r.abrupt("return",r.arg);o=h;var c=u(n,t,r);if("normal"===c.type){if(o=r.done?m:p,c.arg===g)continue;return{value:c.arg,done:r.done}}"throw"===c.type&&(o=m,r.method="throw",r.arg=c.arg)}}}function F(n,t){var r=t.method,o=n.iterator[r];if(o===e)return t.delegate=null,"throw"===r&&n.iterator.return&&
vendor: 4,746 bytes, line 2
2(t.method="return",t.arg=e,F(n,t),"throw"===t.method)||"return"!==r&&(t.method="throw",t.arg=new TypeError("The iterator does not provide a '"+r+"' method")),g;var i=u(o,n.iterator,t.arg);if("throw"===i.type)return t.method="throw",t.arg=i.arg,t.delegate=null,g;var a=i.arg;return a?a.done?(t[n.resultName]=a.value,t.next=n.nextLoc,"return"!==t.method&&(t.method="next",t.arg=e),t.delegate=null,g):a:(t.method="throw",t.arg=new TypeError("iterator result is not an object"),t.delegate=null,g)}function L(e){var n={tryLoc:e[0]};1 in e&&(n.catchLoc=e[1]),2 in e&&(n.finallyLoc=e[2],n.afterLoc=e[3]),this.tryEntries.push(n)}function z(e){var n=e.completion||{};n.type="normal",delete n.arg,e.completion=n}function O(e){this.tryEntries=[{tryLoc:"root"}],e.forEach(L,this),this.reset(!0)}function _(n){if(n||""===n){var t=n[a];if(t)return t.call(n);if("function"==typeof n.next)return n;if(!isNaN(n.length)){var o=-1,i=function t(){for(;++o<n.length;)if(r.call(n,o))return t.value=n[o],t.done=!1,t;return t.value=e,t.done=!0,t};return i.next=i}}throw new TypeError(k(n)+" is not iterable")}return v.prototype=y,o(E,"constructor",{value:y,configurable:!0}),o(y,"constructor",{value:v,configurable:!0}),v.displayName=c(y,l,"GeneratorFunction"),n.isGeneratorFunction=function(e){var n="function"==typeof e&&e.constructor;return!!n&&(n===v||"GeneratorFunction"===(n.displayName||n.name))},n.mark=function(e){return Object.setPrototypeOf?Object.setPrototypeOf(e,y):(e.__proto__=y,c(e,l,"GeneratorFunction")),e.prototype=Object.create(E),e},n.awrap=function(e){return{__await:e}},S(A.prototype),c(A.prototype,s,(function(){return this})),n.AsyncIterator=A,n.async=function(e,t,r,o,i){void 0===i&&(i=Promise);var a=new A(d(e,t,r,o),i);return n.isGeneratorFunction(t)?a:a.next().then((function(e){return e.done?e.value:a.next()}))},S(E),c(E,l,"Generator"),c(E,a,(function(){return this})),c(E,"toString",(function(){return"[object Generator]"})),n.keys=function(e){var n=Object(e),t=[];for(var r in n)t.push(r);return t.reverse(),function e(){for(;t.length;){var r=t.pop();if(r in n)return e.value=r,e.done=!1,e}return e.done=!0,e}},n.values=_,O.prototype={constructor:O,reset:function(n){if(this.prev=0,this.next=0,this.sent=this._sent=e,this.done=!1,this.delegate=null,this.method="next",this.arg=e,this.tryEntries.forEach(z),!n)for(var t in this)"t"===t.charAt(0)&&r.call(this,t)&&!isNaN(+t.slice(1))&&(this[t]=e)},stop:function(){this.done=!0;var e=this.tryEntries[0].completion;if("throw"===e.type)throw e.arg;return this.rval},dispatchException:function(n){if(this.done)throw n;var t=this;function o(r,o){return s.type="throw",s.arg=n,t.next=r,o&&(t.method="next",t.arg=e),!!o}for(var i=this.tryEntries.length-1;i>=0;--i){var a=this.tryEntries[i],s=a.completion;if("root"===a.tryLoc)return o("end");if(a.tryLoc<=this.prev){var l=r.call(a,"catchLoc"),c=r.call(a,"finallyLoc");if(l&&c){if(this.prev<a.catchLoc)return o(a.catchLoc,!0);if(this.prev<a.finallyLoc)return o(a.finallyLoc)}else if(l){if(this.prev<a.catchLoc)return o(a.catchLoc,!0)}else{if(!c)throw new Error("try statement without catch or finally");if(this.prev<a.finallyLoc)return o(a.finallyLoc)}}}},abrupt:function(e,n){for(var t=this.tryEntries.length-1;t>=0;--t){var o=this.tryEntries[t];if(o.tryLoc<=this.prev&&r.call(o,"finallyLoc")&&this.prev<o.finallyLoc){var i=o;break}}i&&("break"===e||"continue"===e)&&i.tryLoc<=n&&n<=i.finallyLoc&&(i=null);var a=i?i.completion:{};return a.type=e,a.arg=n,i?(this.method="next",this.next=i.finallyLoc,g):this.complete(a)},complete:function(e,n){if("throw"===e.type)throw e.arg;return"break"===e.type||"continue"===e.type?this.next=e.arg:"return"===e.type?(this.rval=this.arg=e.arg,this.method="return",this.next="end"):"normal"===e.type&&n&&(this.next=n),g},finish:function(e){for(var n=this.tryEntries.length-1;n>=0;--n){var t=this.tryEntries[n];if(t.finallyLoc===e)return this.complete(t.completion,t.afterLoc),z(t),g}},catch:function(e){for(var n=this.tryEntries.length-1;n>=0;--n){var t=this.tryEntries[n];if(t.tryLoc===e){var r=t.completion;if("throw"===r.type){var o=r.arg;z(t)}return o}}throw new Error("illegal catch attempt")},delegateYield:function(n,t,r){return this.delegate={iterator:_(n),resultName:t,nextLoc:r},"next"===this.method&&(this.arg=e),g}},n}function E(e,n,t,r,o,i,a){try{var s=e[i](a),l=s.value}catch(e){return void t(e)}s.done?n(l):Promise.resolve(l).then(r,o)}function S(e,n){return function(e){if(Array.isArray(e))return e}(e)||function(e,n){var t=null==e?null:"undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(null!=t){var r,o,i,a,s=[],l=!0,c=!1;try{if(i=(t=t.call(e)).next,0===n){if(Object(t)!==t)return;l=!1}else for(;!(l=(r=i.call(t)).done)&&(s.push(r.value),s.length!==n);l=!0);}catch(e){c=!0,o=e}
2finally{try{if(!l&&null!=t.return&&(a=t.return(),Object(a)!==a))return}finally{if(c)throw o}}return s}}(e,n)||function(e,n){if(!e)return;if("string"==typeof e)return A(e,n);var t=Object.prototype.toString.call(e).slice(8,-1);"Object"===t&&e.constructor&&(t=e.constructor.name);if("Map"===t||"Set"===t)return Array.from(e);if("Arguments"===t||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(t))return A(e,n)}(e,n)||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 A(e,n){(null==n||n>e.length)&&(n=e.length);for(var t=0,r=new Array(n);t<n;t++)r[t]=e[t];return r}var C=function(e){var n=e.shares,t=e.loadingShares,o=e.onShareClick,i=e.onRevokeShare,a=S((0,r.useState)(!1),2),l=a[0],c=a[1],d=S((0,r.useState)(null),2),u=d[0],f=d[1],p=S((0,r.useState)(null),2),h=p[0],m=p[1],g=S((0,r.useState)(null),2),x=(g[0],g[1],function(){var e,n=(e=N().mark((function e(n,t){var r;return N().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.prev=0,e.next=3,navigator.clipboard.writeText(n);case 3:e.next=13;break;case 5:e.prev=5,e.t0=e.catch(0),(r=document.createElement("input")).value=n,document.body.appendChild(r),r.select(),document.execCommand("copy"),document.body.removeChild(r);case 13:m(t),setTimeout((function(){return m(null)}),2e3);case 15:case"end":return e.stop()}}),e,null,[[0,5]])})),function(){var n=this,t=arguments;return new Promise((function(r,o){var i=e.apply(n,t);function a(e){E(i,r,o,a,s,"next",e)}function s(e){E(i,r,o,a,s,"throw",e)}a(void 0)}))});return function(e,t){return n.apply(this,arguments)}}()),v=function(e){return e?new Date(e).toLocaleDateString(void 0,{month:"short",day:"numeric",year:"numeric"}):""},y=function(e){if(!e)return"";var n=Date.now()-new Date(e).getTime(),t=Math.floor(n/6e4);if(t<1)return"Just now";if(t<60)return"".concat(t,"m ago");var r=Math.floor(t/60);if(r<24)return"".concat(r,"h ago");var o=Math.floor(r/24);return o<30?"".concat(o,"d ago"):v(e)};if(t)return(0,s.jsxs)("div",{style:{textAlign:"center",padding:"48px 0"},children:[(0,s.jsx)("div",{className:"spinner-border spinner-border-sm text-primary",role:"status"}),(0,s.jsx)("p",{style:{marginTop:"12px",color:"#6c757d",fontSize:"0.85rem"},children:"Loading shared links..."})]});if(!n||0===n.length)return(0,s.jsxs)("div",{style:{textAlign:"center",padding:"48px 0"},children:[(0,s.jsx)("div",{style:{width:"56px",height:"56px",borderRadius:"50%",background:"#f1f3f5",display:"flex",alignItems:"center",justifyContent:"center",margin:"0 auto 16px"},children:(0,s.jsx)("i",{className:"fa fa-share-alt",style:{fontSize:"24px",color:"#adb5bd"}})}),(0,s.jsx)("p",{style:{marginBottom:"4px",fontWeight:"600",color:"#1F232D"},children:"No shared links yet"}),(0,s.jsx)("p",{style:{color:"#6c757d",fontSize:"0.85rem",marginBottom:"16px"},children:"Share your vault securely with doctors to get better consultations."}),(0,s.jsxs)("button",{onClick:o,style:{padding:"8px 20px",background:"#1F232D",color:"#fff",border:"none",borderRadius:"8px",fontWeight:"600",fontSize:"0.85rem",cursor:"pointer"},children:[(0,s.jsx)("i",{className:"fa fa-share-alt me-1"}),"Share Your Vault"]})]});var b=n.filter((function(e){return!e.is_expired})).length;return(0,s.jsxs)(s.Fragment,{children:[(0,s.jsxs)("div",{style:{display:"flex",alignItems:"center",justifyContent:"space-between",marginBottom:"16px"},children:[(0,s.jsxs)("span",{style:{fontSize:"0.85rem",fontWeight:"600",color:"#64748b"},children:[b," active",n.length!==b&&" of ".concat(n.length)," shared link",1!==n.length?"s":""]}),(0,s.jsxs)("button",{onClick:o,style:{padding:"6px 14px",background:"#1F232D",color:"#fff",border:"none",borderRadius:"8px",fontWeight:"600",fontSize:"0.78rem",cursor:"pointer",display:"flex",alignItems:"center",gap:"6px"},children:[(0,s.jsx)("i",{className:"fa fa-plus",style:{fontSize:"11px"}}),"New Share"]})]}),n.map((function(e){var n=e.is_expired;e.id;return(0,s.jsxs)("div",{style:{background:"#fff",border:"1px solid #e2e8f0",borderRadius:"12px",padding:"16px",marginBottom:"12px",opacity:n?.6:1,boxShadow:"0 2px 8px rgba(15, 23, 42, 0.04)"},children:[(0,s.jsx)("div",{style:{display:"flex",alignItems:"flex-start",justifyContent:"space-between",marginBottom:"8px"},children:(0,s.jsxs)("div",{style:{display:"flex",alignItems:"center",gap:"8px",flexWrap:"wrap"},children:[(0,s.jsx)("i",{className:"fa fa-link",style:{color:"#0d6efd",fontSize:"13px"}}),(0,s.jsx)("span",{style:{fontSize:"0.88rem",fontWeight:"600",color:"#1F232D"},children:e.label||"Public link"}),n&&(0,s.jsx)("span",{style:{padding:"2px 8px",borderRadius:"10px",fontSize:"0.65rem",fontWeight:"600",background:"#fee2e2",color:"#991b1b"},children:"Expired"})]})}),(0,s.jsxs)("div",{style:{fontSize:"0.75rem",color:"#94a3b8",marginBottom:"10px",lineHeight:"1.7"},children:[(0,s.jsxs)("div",{children:[(0,s.jsx)("i",{className:"fa fa-calendar-alt me-1",style:{width:"14px"}}),"Created ",v(e.created_at),e.expires_at?(0,s.jsxs)(s.Fragment,{children:[" · Expires ",v(e.expires_at)]}):(0,s.jsx)(s.Fragment,{children:" · Never expires"})]}),(0,s.jsxs)("div",{style:{display:"flex",alignItems:"center",gap:"12px",flexWrap:"wrap"},children:[(0,s.jsxs)("span",{children:[(0,s.jsx)("i",{className:"fa fa-eye me-1",style:{width:"14px"}}),e.view_count," view",1!==e.view_count?"s":"",e.last_viewed_at&&(0,s.jsxs)(s.Fragment,{children:[" · Last viewed ",y(e.last_viewed_at)]})]}),e.recipient_email&&(0,s.jsxs)("span",{children:[(0,s.jsx)("i",{className:"fa fa-envelope me-1",style:{width:"14px"}}),"Sent to ",e.recipient_email]})]}),e.vault_summary&&(0,s.jsxs)("div",{style:{marginTop:"2px"},children:[(0,s.jsx)("i",{className:"fa fa-folder me-1",style:{width:"14px"}}),e.vault_summary.total_reports," report",1!==e.vault_summary.total_reports?"s":""," · ",e.vault_summary.total_analyses," assessment",1!==e.vault_summary.total_analyses?"s":""]})]}),(0,s.jsxs)("div",{style:{display:"flex",gap:"8px",flexWrap:"wrap"},children:[!n&&(0,s.jsxs)("button",{onClick:function(){return x(e.url,e.id)},style:{padding:"6px 14px",borderRadius:"8px",fontSize:"0.78rem",fontWeight:"600",border:"1px solid #e2e8f0",cursor:"pointer",transition:"all 0.2s",background:h===e.id?"#f0fdf4":"#fff",color:h===e.id?"#16a34a":"#1F232D",borderColor:h===e.id?"#bbf7d0":"#e2e8f0",display:"flex",alignItems:"center",gap:"6px"},children:[(0,s.jsx)("i",{className:"fa ".concat(h===e.id?"fa-check":"fa-copy"),style:{fontSize:"11px"}}),h===e.id?"Copied!":"Copy Link"]}),!n&&(0,s.jsxs)("button",{onClick:function(){f(e.id),c(!0)},style:{padding:"6px 14px",borderRadius:"8px",fontSize:"0.78rem",fontWeight:"600",border:"1px solid #fecaca",background:"#fff",color:"#e74c3c",cursor:"pointer",display:"flex",alignItems:"center",gap:"6px"},children:[(0,s.jsx)("i",{className:"fa fa-ban",style:{fontSize:"11px"}}),"Revoke"]})]})]},e.id)})),l&&(0,s.jsx)("div",{style:{position:"fixed",inset:0,zIndex:1e4,background:"rgba(0,0,0,0.5)",display:"flex",alignItems:"center",justifyContent:"center",padding:"16px"},children:(0,s.jsxs)("div",{style:{background:"#fff",borderRadius:"16px",padding:"24px",maxWidth:"400px",
2width:"100%",textAlign:"center"},children:[(0,s.jsx)("div",{style:{width:"64px",height:"64px",borderRadius:"50%",background:"#fee2e2",color:"#ef4444",display:"flex",alignItems:"center",justifyContent:"center",margin:"0 auto 20px",fontSize:"24px"},children:(0,s.jsx)("i",{className:"fa fa-exclamation-triangle"})}),(0,s.jsx)("h4",{style:{fontWeight:"700",color:"#1F232D",marginBottom:"8px"},children:"Revoke Share Link"}),(0,s.jsx)("p",{style:{color:"#6c757d",marginBottom:"24px",fontSize:"0.88rem"},children:"Anyone with this link will no longer be able to view your vault. This action cannot be undone."}),(0,s.jsxs)("div",{style:{display:"flex",gap:"12px",justifyContent:"center"},children:[(0,s.jsx)("button",{onClick:function(){c(!1),f(null)},style:{padding:"8px 20px",borderRadius:"8px",fontWeight:"600",border:"1px solid #e2e8f0",background:"#fff",color:"#1F232D",cursor:"pointer"},children:"Cancel"}),(0,s.jsx)("button",{onClick:function(){u&&(i(u),c(!1),f(null))},style:{padding:"8px 20px",borderRadius:"8px",fontWeight:"600",border:"none",background:"#e74c3c",color:"#fff",cursor:"pointer"},children:"Revoke Link"})]})]})})]})};function F(e){return F="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},F(e)}function L(e,n){var t=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);n&&(r=r.filter((function(n){return Object.getOwnPropertyDescriptor(e,n).enumerable}))),t.push.apply(t,r)}return t}function z(e){for(var n=1;n<arguments.length;n++){var t=null!=arguments[n]?arguments[n]:{};n%2?L(Object(t),!0).forEach((function(n){O(e,n,t[n])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(t)):L(Object(t)).forEach((function(n){Object.defineProperty(e,n,Object.getOwnPropertyDescriptor(t,n))}))}return e}function O(e,n,t){var r;return r=function(e,n){if("object"!=F(e)||!e)return e;var t=e[Symbol.toPrimitive];if(void 0!==t){var r=t.call(e,n||"default");if("object"!=F(r))return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===n?String:Number)(e)}(n,"string"),(n="symbol"==F(r)?r:String(r))in e?Object.defineProperty(e,n,{value:t,enumerable:!0,configurable:!0,writable:!0}):e[n]=t,e}function _(e,n){return function(e){if(Array.isArray(e))return e}(e)||function(e,n){var t=null==e?null:"undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(null!=t){var r,o,i,a,s=[],l=!0,c=!1;try{if(i=(t=t.call(e)).next,0===n){if(Object(t)!==t)return;l=!1}else for(;!(l=(r=i.call(t)).done)&&(s.push(r.value),s.length!==n);l=!0);}catch(e){c=!0,o=e}finally{try{if(!l&&null!=t.return&&(a=t.return(),Object(a)!==a))return}finally{if(c)throw o}}return s}}(e,n)||function(e,n){if(!e)return;if("string"==typeof e)return I(e,n);var t=Object.prototype.toString.call(e).slice(8,-1);"Object"===t&&e.constructor&&(t=e.constructor.name);if("Map"===t||"Set"===t)return Array.from(e);if("Arguments"===t||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(t))return I(e,n)}(e,n)||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 I(e,n){(null==n||n>e.length)&&(n=e.length);for(var t=0,r=new Array(n);t<n;t++)r[t]=e[t];return r}var R=function(e){var n=e.vaultTab,t=e.setVaultTab,o=e.vaultReports,i=e.loadingReports,a=e.loadingVaultToUpload,l=e.deletingReportId,c=e.history,d=e.loadingHistory,u=e.shares,f=e.loadingShares,p=e.onHome,h=e.onUpload,m=e.onStartAnalysis,g=e.onDeleteReport,x=e.onViewResult,v=e.onShareClick,y=e.onRevokeShare,b=e.getFileIcon,w=e.formatFileSize,j=_((0,r.useState)(!1),2),k=j[0],N=j[1],E=_((0,r.useState)(null),2),S=E[0],A=E[1];return(0,s.jsxs)("div",{className:"container py-4 text-dark",style:{maxWidth:"960px"},children:[(0,s.jsxs)("div",{className:"d-flex align-items-center justify-content-between mb-3",children:[(0,s.jsxs)("div",{children:[(0,s.jsx)("h2",{className:"mb-0",style:{fontSize:"1.25rem",fontWeight:"700",color:"#1F232D"},children:"Medical Vault"}),(0,s.jsx)("p",{className:"mb-0 text-muted",style:{fontSize:"0.8rem"},children:"Your reports, securely stored"})]}),(0,s.jsxs)("div",{className:"d-flex gap-2",children:[(0,s.jsxs)("button",{className:"btn btn-sm px-3",style:{borderRadius:"8px",fontSize:"0.8rem",background:"#0d6efd",color:"#fff",fontWeight:"600",border:"none"},onClick:v,disabled:0===o.length&&(!c||0===c.filter((function(e){return"completed"===e.status})).length),children:[(0,s.jsx)("i",{className:"fa fa-share-alt me-1",style:{fontSize:"12px"}}),(0,s.jsx)("span",{className:"d-none d-md-inline",children:"Share"})]}),(0,s.jsxs)("button",{className:"btn btn-sm btn-outline-secondary px-3",style:{borderRadius:"8px",fontSize:"0.8rem"},onClick:p,children:[(0,s.jsx)("i",{className:"fa fa-home me-1 d-md-none"}),(0,s.jsx)("span",{className:"d-none d-md-inline",children:"Home"})]})]})]}),(0,s.jsxs)("div",{className:"d-flex gap-1 mb-4 p-1",style:{background:"#f1f3f5",borderRadius:"10px"},children:[(0,s.jsxs)("button",{className:"btn btn-sm flex-fill py-2",style:z({borderRadius:"8px",fontWeight:"600",fontSize:"0.82rem",transition:"all 0.2s ease"},"reports"===n?{background:"#fff",color:"#1F232D",boxShadow:"0 1px 3px rgba(0,0,0,0.1)"}:{background:"transparent",color:"#6c757d",boxShadow:"none"}),onClick:function(){return t("reports")},children:[(0,s.jsx)("i",{className:"fa fa-folder-open me-1"}),"My Reports"]}),(0,s.jsxs)("button",{className:"btn btn-sm flex-fill py-2",style:z({borderRadius:"8px",fontWeight:"600",fontSize:"0.82rem",transition:"all 0.2s ease"},"assessments"===n?{background:"#fff",color:"#1F232D",boxShadow:"0 1px 3px rgba(0,0,0,0.1)"}:{background:"transparent",color:"#6c757d",boxShadow:"none"}),onClick:function(){return t("assessments")},children:[(0,s.jsx)("i",{className:"fa fa-file-medical me-1"}),"AI Assessments"]}),(0,s.jsxs)("button",{className:"btn btn-sm flex-fill py-2",style:z({borderRadius:"8px",fontWeight:"600",fontSize:"0.82rem",transition:"all 0.2s ease"},"shared"===n?{background:"#fff",color:"#1F232D",boxShadow:"0 1px 3px rgba(0,0,0,0.1)"}:{background:"transparent",color:"#6c757d",boxShadow:"none"}),onClick:function(){return t("shared")},children:[(0,s.jsx)("i",{className:"fa fa-share-alt me-1"}),"Shared Links"]})]}),"reports"===n&&(0,s.jsx)(s.Fragment,{children:i?(0,s.jsxs)("div",{className:"text-center py-5",children:[(0,s.jsx)("div",{className:"spinner-border spinner-border-sm text-primary",role:"status"}),(0,s.jsx)("p",{className:"mt-2 text-muted small",children:"Loading your reports..."})]}):0===o.length?(0,s.jsxs)("div",{className:"text-center py-5",children:[(0,s.jsx)("div",{style:{width:"56px",height:"56px",borderRadius:"50%",background:"#f1f3f5",display:"flex",alignItems:"center",justifyContent:"center",margin:"0 auto 16px"},children:(0,s.jsx)("i",{className:"fa fa-folder-open",style:{fontSize:"24px",color:"#adb5bd"}})}),(0,s.jsx)("p",{className:"mb-1 fw-semibold text-dark",children:"No reports yet"}),(0,s.jsx)("p",{className:"text-muted small mb-3",children:"Upload your fertility reports to keep them safe and start an AI analysis."}),(0,s.jsxs)("button",{className:"btn btn-sm px-4",style:{background:"#1F232D",color:"#fff",fontWeight:"600",borderRadius:"8px"},onClick:h,children:[(0,s.jsx)("i",{className:"fa fa-upload me-1"}),"Upload Reports"]})]}):(0,s.jsxs)("div",{children:[o.map((function(e){return(0,s.jsxs)("div",{className:"d-flex align-items-center gap-3 px-3 py-3",style:{borderBottom:"1px solid #f1f3f5"},children:[(0,s.jsx)("div",{style:{width:"36px",height:"36px",borderRadius:"8px",background:"application/pdf"===e.mime_type?"#fff0f0":"#f0f4ff",display:"flex",alignItems:"center",justifyContent:"center",flexShrink:0},children:(0,s.jsx)("i",{className:"fa ".concat(b(e.mime_type)),style:{fontSize:"16px",color:"application/pdf"===e.mime_type?"#e74c3c":"#3b82f6"}})}),(0,s.jsxs)("div",{className:"flex-grow-1",style:{minWidth:0},children:[(0,s.jsx)("div",{className:"fw-semibold text-dark text-truncate",style:{fontSize:"0.85rem"},children:e.original_name}),(0,s.jsxs)("div",{className:"text-muted",style:{fontSize:"0.72rem"},children:[w(e.size_bytes)," · ",new Date(e.created_at).toLocaleDateString(void 0,{month:"short",day:"numeric",year:"numeric"})]})]}),(0,s.jsxs)("div",{className:"d-flex gap-1 flex-shrink-0",children:[(0,s.jsx)("button",{className:"btn btn-sm btn-light",style:{width:"32px",height:"32px",display:"flex",alignItems:"center",justifyContent:"center",borderRadius:"8px",padding:0},title:"Download",onClick:function(n){n.preventDefault();var t=localStorage.getItem("token");window.axios.get("/api/ivf-report-analysis/reports/".concat(e.id,"/download"),{headers:{Authorization:"Bearer ".concat(t)},responseType:"blob"}).then((function(n){var t=window.URL.createObjectURL(new Blob([n.data])),r=document.createElement("a");r.href=t,r.setAttribute("download",e.original_name),document.body.appendChild(r),r.click(),r.remove(),window.URL.revokeObjectURL(t)})).catch((function(){return alert("Download failed. Please try again.")}))},children:(0,s.jsx)("i",{className:"fa fa-download",style:{fontSize:"13px",color:"#6c757d"}})}),(0,s.jsx)("button",{className:"btn btn-sm btn-light",style:{width:"32px",height:"32px",display:"flex",alignItems:"center",justifyContent:"center",borderRadius:"8px",padding:0},title:"Delete",disabled:l===e.id,onClick:function(){A(e.id),N(!0)},children:l===e.id?(0,s.jsx)("span",{className:"spinner-border spinner-border-sm",style:{width:"13px",height:"13px"},role:"status"}
2):(0,s.jsx)("i",{className:"fa fa-trash-alt",style:{fontSize:"13px",color:"#e74c3c"}})})]})]},e.id)})),(0,s.jsx)("div",{className:"text-center pt-4 pb-2",children:(0,s.jsx)("button",{className:"btn btn-sm px-4",style:{background:"#1F232D",color:"#fff",fontWeight:"600",borderRadius:"8px",opacity:a?.7:1},onClick:m,disabled:a,children:a?(0,s.jsxs)(s.Fragment,{children:[(0,s.jsx)("span",{className:"spinner-border spinner-border-sm me-2",role:"status"}),"Loading reports..."]}):(0,s.jsxs)(s.Fragment,{children:[(0,s.jsx)("i",{className:"fa fa-plus me-1"}),"Start New Analysis"]})})})]})}),"assessments"===n&&(0,s.jsx)(s.Fragment,{children:d?(0,s.jsxs)("div",{className:"text-center py-5",children:[(0,s.jsx)("div",{className:"spinner-border spinner-border-sm text-primary",role:"status"}),(0,s.jsx)("p",{className:"mt-2 text-muted small",children:"Loading your assessments..."})]}):0===c.length?(0,s.jsxs)("div",{className:"text-center py-5",children:[(0,s.jsx)("div",{style:{width:"56px",height:"56px",borderRadius:"50%",background:"#f1f3f5",display:"flex",alignItems:"center",justifyContent:"center",margin:"0 auto 16px"},children:(0,s.jsx)("i",{className:"fa fa-file-medical",style:{fontSize:"24px",color:"#adb5bd"}})}),(0,s.jsx)("p",{className:"mb-1 fw-semibold text-dark",children:"No assessments yet"}),(0,s.jsx)("p",{className:"text-muted small mb-3",children:"Upload your reports and generate an AI-powered fertility assessment."}),(0,s.jsxs)("button",{className:"btn btn-sm px-4",style:{background:"#1F232D",color:"#fff",fontWeight:"600",borderRadius:"8px"},onClick:h,children:[(0,s.jsx)("i",{className:"fa fa-plus me-1"}),"New Analysis"]})]}):(0,s.jsxs)(s.Fragment,{children:[(0,s.jsx)("div",{className:"card shadow-sm border-0 d-none d-md-block",children:(0,s.jsx)("div",{className:"card-body p-0",children:(0,s.jsx)("div",{className:"table-responsive",children:(0,s.jsxs)("table",{className:"table table-hover align-middle mb-0",children:[(0,s.jsx)("thead",{className:"bg-light text-muted small text-uppercase",children:(0,s.jsxs)("tr",{children:[(0,s.jsx)("th",{className:"px-4 py-3",style:{width:"25%"},children:"Assessment"}),(0,s.jsx)("th",{className:"py-3",style:{width:"45%"},children:"Quick Insight"}),(0,s.jsx)("th",{className:"py-3",style:{width:"15%"},children:"Date"}),(0,s.jsx)("th",{className:"py-3 text-end px-4",style:{width:"15%"},children:"Action"})]})}),(0,s.jsx)("tbody",{children:c.map((function(e){var n,t,r,o,i,a=e.status||"completed",l="completed"===a,c=(null===(n=e.ai_output)||void 0===n?void 0:n.assessment_title)||"Medical Assessment",d=l?(null===(t=e.ai_output)||void 0===t?void 0:t.short_tldr)||(null===(r=e.ai_output)||void 0===r?void 0:r.overall_insight)||"Assessment summary available.":"failed"===a?"Analysis could not be completed. Please try again.":"Your analysis is being processed. We'll email you when ready.",u="completed"===a?"bg-primary-subtle text-primary":"failed"===a?"bg-danger-subtle text-danger":"bg-warning-subtle text-warning",f=a.charAt(0).toUpperCase()+a.slice(1);return(0,s.jsxs)("tr",{className:l?"cursor-pointer":"",onClick:function(){l&&e.ai_output&&x(e)},children:[(0,s.jsx)("td",{className:"px-4 py-3",children:(0,s.jsxs)("div",{className:"d-flex align-items-center",children:[(0,s.jsx)("div",{className:"bg-light text-primary rounded-circle d-flex align-items-center justify-content-center me-3",style:{width:"35px",height:"35px",flexShrink:0},children:(0,s.jsx)("i",{className:"fa fa-file-medical"})}),(0,s.jsxs)("div",{children:[(0,s.jsx)("div",{className:"fw-bold text-dark",children:c}),(0,s.jsxs)("div",{className:"d-flex align-items-center gap-2 mt-1",children:[(0,s.jsxs)("span",{className:"text-muted",style:{fontSize:"0.75rem"},children:[null===(o=e.file_names)||void 0===o?void 0:o.length," file",1!==(null===(i=e.file_names)||void 0===i?void 0:i.length)?"s":""]}),(0,s.jsx)("span",{className:"badge rounded-pill ".concat(u),style:{fontSize:"0.65rem"},children:f})]})]})]})}),(0,s.jsx)("td",{className:"py-3",children:(0,s.jsx)("p",{className:"mb-0 text-muted small",style:{lineHeight:"1.4",display:"-webkit-box",WebkitLineClamp:2,WebkitBoxOrient:"vertical",overflow:"hidden"},children:d})}),(0,s.jsx)("td",{className:"py-3 text-muted small",children:new Date(e.created_at).toLocaleDateString(void 0,{month:"short",day:"numeric",year:"numeric"})}),(0,s.jsx)("td",{className:"py-3 text-end px-4",children:(0,s.jsx)("button",{className:"btn btn-sm btn-link fw-bold text-decoration-none ".concat(l?"text-primary":"text-muted"),disabled:!l,children:l?"View Report →":"failed"===a?"Failed":"In Progress"})})]},e.id)}))})]})})})}),(0,s.jsx)("div",{className:"d-md-none",children:c.map((function(e){var n,t,r,o,i,a=e.status||"completed",l="completed"===a,c=(null===(n=e.ai_output)||void 0===n?void 0:n.assessment_title)||"Medical Assessment",d=l?
2(null===(t=e.ai_output)||void 0===t?void 0:t.short_tldr)||(null===(r=e.ai_output)||void 0===r?void 0:r.overall_insight)||"Assessment summary available.":"failed"===a?"Analysis could not be completed. Please try again.":"Your analysis is being processed. We'll email you when ready.",u="completed"===a?"#0d6efd":"failed"===a?"#e74c3c":"#f59e0b",f=a.charAt(0).toUpperCase()+a.slice(1);return(0,s.jsxs)("div",{className:"p-3 mb-2 ".concat(l?"cursor-pointer":""),style:{background:"#fff",border:"1px solid #f1f3f5",borderRadius:"10px"},onClick:function(){l&&e.ai_output&&x(e)},children:[(0,s.jsxs)("div",{className:"d-flex align-items-center justify-content-between mb-2",children:[(0,s.jsx)("span",{className:"fw-semibold text-dark text-truncate",style:{fontSize:"0.85rem",maxWidth:"70%"},children:c}),(0,s.jsx)("span",{className:"badge rounded-pill",style:{background:"".concat(u,"20"),color:u,fontSize:"0.65rem",fontWeight:"600",flexShrink:0},children:f})]}),(0,s.jsx)("p",{className:"mb-2 text-muted",style:{fontSize:"0.78rem",lineHeight:"1.4",display:"-webkit-box",WebkitLineClamp:2,WebkitBoxOrient:"vertical",overflow:"hidden"},children:d}),(0,s.jsxs)("div",{className:"d-flex align-items-center justify-content-between",children:[(0,s.jsxs)("span",{className:"text-muted",style:{fontSize:"0.7rem"},children:[null===(o=e.file_names)||void 0===o?void 0:o.length," file",1!==(null===(i=e.file_names)||void 0===i?void 0:i.length)?"s":""," · ",new Date(e.created_at).toLocaleDateString(void 0,{month:"short",day:"numeric"})]}),l&&(0,s.jsx)("span",{style:{fontSize:"0.75rem",color:"#0d6efd",fontWeight:"600"},children:"View →"})]})]},e.id)}))})]})}),"shared"===n&&(0,s.jsx)(C,{shares:u,loadingShares:f,onShareClick:v,onRevokeShare:y}),k&&(0,s.jsx)("div",{className:"modal fade show",style:{display:"block",backgroundColor:"rgba(0,0,0,0.5)"},tabIndex:"-1",children:(0,s.jsx)("div",{className:"modal-dialog modal-dialog-centered",children:(0,s.jsx)("div",{className:"modal-content",style:{borderRadius:"16px",border:"none",overflow:"hidden"},children:(0,s.jsxs)("div",{className:"modal-body p-4 text-center",children:[(0,s.jsx)("div",{style:{width:"64px",height:"64px",borderRadius:"50%",background:"#fee2e2",color:"#ef4444",display:"flex",alignItems:"center",justifyContent:"center",margin:"0 auto 20px",fontSize:"24px"},children:(0,s.jsx)("i",{className:"fa fa-exclamation-triangle"})}),(0,s.jsx)("h4",{className:"fw-bold text-dark mb-2",children:"Delete Report"}),(0,s.jsx)("p",{className:"text-muted mb-4",children:"Are you sure you want to permanently delete this report? This action cannot be undone and it will be removed from your secure vault."}),(0,s.jsxs)("div",{className:"d-flex gap-3 justify-content-center",children:[(0,s.jsx)("button",{className:"btn btn-light fw-bold px-4 py-2",style:{borderRadius:"8px"},onClick:function(){N(!1),A(null)},children:"Cancel"}),(0,s.jsx)("button",{className:"btn btn-danger fw-bold px-4 py-2",style:{borderRadius:"8px",background:"#e74c3c",border:"none"},onClick:function(){S&&(g(S),N(!1),A(null))},children:"Delete Report"})]})]})})})})]})};function P(e,n){return function(e){if(Array.isArray(e))return e}(e)||function(e,n){var t=null==e?null:"undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(null!=t){var r,o,i,a,s=[],l=!0,c=!1;try{if(i=(t=t.call(e)).next,0===n){if(Object(t)!==t)return;l=!1}else for(;!(l=(r=i.call(t)).done)&&(s.push(r.value),s.length!==n);l=!0);}catch(e){c=!0,o=e}finally{try{if(!l&&null!=t.return&&(a=t.return(),Object(a)!==a))return}finally{if(c)throw o}}return s}}(e,n)||function(e,n){if(!e)return;if("string"==typeof e)return D(e,n);var t=Object.prototype.toString.call(e).slice(8,-1);"Object"===t&&e.constructor&&(t=e.constructor.name);if("Map"===t||"Set"===t)return Array.from(e);if("Arguments"===t||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(t))return D(e,n)}(e,n)||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 D(e,n){(null==n||n>e.length)&&(n=e.length);for(var t=0,r=new Array(n);t<n;t++)r[t]=e[t];return r}var M=function(e){var n=e.onFilesSelected,t=e.onError,o=(e.maxFiles,e.maxSizeMB),i=void 0===o?15:o,a=P((0,r.useState)(!1),2),l=a[0],c=a[1],d=["application/pdf","image/jpeg","image/jpg","image/png","image/webp"],u=function(e){var r=function(e){var n=[],r=[];return Array.from(e).forEach((function(e){d.includes(e.type)?e.size/1048576>i?r.push("".concat(e.name,": File too large. Max size is ").concat(i,"MB.")):n.push(e):r.push("".concat(e.name,": Invalid file type. Please upload PDF or images."))})),r.length>0&&(t?t(r.join("\n")):alert(r.join("\n"))),n}(e);r.length>0&&n(r)},f=function(){document.getElementById("dropzone-file-input").click()};return(0,s.jsxs)("div",{className:"dropzone-wrapper",children:[(0,s.jsxs)("div",{className:"dropzone ".concat(l?"dragging":""),onDragEnter:function(e){e.preventDefault(),e.stopPropagation(),c(!0)},onDragLeave:function(e){e.preventDefault(),e.stopPropagation(),c(!1)},onDragOver:function(e){e.preventDefault(),e.stopPropagation()},onDrop:function(e){e.preventDefault(),e.stopPropagation(),c(!1);var n=e.dataTransfer.files;n.length>0&&u(n)},onClick:f,onKeyDown:function(e){"Enter"!==e.key&&" "!==e.key||(e.preventDefault(),f())},tabIndex:0,role:"button","aria-label":"Upload reports by dragging files or browsing",children:[(0,s.jsx)("div",{className:"dropzone-icon",children:(0,s.jsx)("i",{className:"fa fa-cloud-upload-alt fa-3x"})}),(0,s.jsx)("h3",{className:"dropzone-title",children:"Drag & Drop Your Reports Here"}),(0,s.jsx)("p",{className:"dropzone-subtitle",children:"or tap to browse files"}),(0,s.jsxs)("p",{className:"dropzone-hint",children:["PDF, JPG, PNG • Max ",i,"MB per file"]})]}),(0,s.jsx)("input",{type:"file",id:"dropzone-file-input",multiple:!0,accept:".pdf,.jpg,.jpeg,.png,.webp",onChange:function(e){var n=e.target.files;n.length>0&&u(n),e.target.value=""},style:{display:"none"}}),(0,s.jsx)("style",{children:"\n                .dropzone-wrapper {\n                    margin-bottom: 2rem;\n                }\n\n                .dropzone {\n                    border: 2px dashed #cbd5e1;\n                    border-radius: 14px;\n                    padding: 3.1rem 1.6rem;\n                    text-align: center;\n                    cursor: pointer;\n                    transition: all 0.3s ease;\n                    background: linear-gradient(180deg, #ffffff 0%, #fbfdff 100%);\n                    box-shadow: 0 12px 26px rgba(15, 23, 42, 0.05);\n                }\n\n                .dropzone:hover {\n                    border-color: #0d6efd;\n                    background: linear-gradient(180deg, #ffffff 0%, #f4f8ff 100%);\n                    transform: translateY(-1px);\n                }\n\n                .dropzone.dragging {\n                    border-color: #38bdf8;\n                    background: #eff6ff;\n                    transform: scale(1.01);\n                    box-shadow: 0 18px 34px rgba(13, 110, 253, 0.16);\n                }\n\n                .dropzone:focus {\n                    outline: none;\n                    border-color: #0d6efd;\n                    box-shadow: 0 0 0 0.25rem rgba(13, 110, 253, 0.14);\n                }\n\n                .dropzone-icon {\n                    color: #64748b;\n                    margin-bottom: 1rem;\n                }\n\n                .dropzone.dragging .dropzone-icon {\n                    color: #0d6efd;\n                }\n\n                .dropzone-title {\n                    font-size: 1.25rem;\n                    font-weight: 600;\n                    color: #1F232D;\n                    margin-bottom: 0.5rem;\n                }\n\n                .dropzone-subtitle {\n                    font-size: 0.98rem;\n                    color: #6b7280;\n                    margin-bottom: 0.35rem;\n                }\n\n                .dropzone-hint {\n                    font-size: 0.82rem;\n                    color: #94a3b8;\n                    margin-bottom: 0;\n                }\n\n                @media (max-width: 768px) {\n                    .dropzone {\n                        padding: 2.15rem 1rem;\n                    }\n\n                    .dropzone-icon i {\n                        font-size: 2rem !important;\n                    }\n\n                    .dropzone-title {\n                        font-size: 1.1rem;\n                    }\n\n                    .dropzone-subtitle {\n                        font-size: 0.9rem;\n                    }\n                }\n            "})]})};function B(e){return B="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},B(e)}function T(){T=function(){return n};var e,n={},t=Object.prototype,r=t.hasOwnProperty,o=Object.defineProperty||function(e,n,t){e[n]=t.value},i="function"==typeof Symbol?Symbol:{},a=i.iterator||"@@iterator",s=i.asyncIterator||"@@asyncIterator",l=i.toStringTag||"@@toStringTag";function c(e,n,t){return Object.defineProperty(e,n,{value:t,enumerable:!0,configurable:!0,writable:!0}),e[n]}try{c({},"")}catch(e){c=function(e,n,t){return e[n]=t}}function d(e,n,t,r){var i=n&&n.prototype instanceof x?n:x,a=Object.create(i.prototype),s=new L(r||[]);return o(a,"_invoke",{value:S(e,t,s)}),a}function u(e,n,t){try{return{type:"normal",arg:e.call(n,t)}}catch(e){return{type:"throw",arg:e}}}n.wrap=d;var f="suspendedStart",p="suspendedYield",h="executing",m="completed",g={};function x(){}function v(){}function y(){}var b={};c(b,a,(function(){return this}));var w=Object.getPrototypeOf,j=w&&w(w(z([])));j&&j!==t&&r.call(j,a)&&(b=j);var k=y.prototype=x.prototype=Object.create(b);function N(e){["next","throw","return"].forEach((function(n){c(e,n,(function(e){return this._invoke(n,e)}))}))}function E(e,n){function t(o,i,a,s){var l=u(e[o],e,i);if("throw"!==l.type){var c=l.arg,d=c.value;return d&&"object"==B(d)&&r.call(d,"__await")?n.resolve(d.__await).then((function(e){t("next",e,a,s)}),(function(e){t("throw",e,a,s)})):n.resolve(d).then((function(e){c.value=e,a(c)}),(function(e){return t("throw",e,a,s)}))}s(l.arg)}var i;o(this,"_invoke",{value:function(e,r){function o(){return new n((function(n,o){t(e,r,n,o)}))}return i=i?i.then(o,o):o()}})}function S(n,t,r){var o=f;return function(i,a){if(o===h)throw new Error("Generator is already running");if(o===m){if("throw"===i)throw a;return{value:e,done:!0}}for(r.method=i,r.arg=a;;){var s=r.delegate;if(s){var l=A(s,r);if(l){if(l===g)continue;return l}}if("next"===r.method)r.sent=r._sent=r.arg;else if("throw"===r.method){if(o===f)throw o=m,r.arg;r.dispatchException(r.arg)}else"return"===r.method&&r.abrupt("return",r.arg);o=h;var c=u(n,t,r);if("normal"===c.type){if(o=r.done?m:p,c.arg===g)continue;return{value:c.arg,done:r.done}}"throw"===c.type&&(o=m,r.method="throw",r.arg=c.arg)}}}function A(n,t){var r=t.method,o=n.iterator[r];if(o===e)return t.delegate=null,"throw"===r&&n.iterator.return&&
vendor: 4,746 bytes, line 2
2(t.method="return",t.arg=e,A(n,t),"throw"===t.method)||"return"!==r&&(t.method="throw",t.arg=new TypeError("The iterator does not provide a '"+r+"' method")),g;var i=u(o,n.iterator,t.arg);if("throw"===i.type)return t.method="throw",t.arg=i.arg,t.delegate=null,g;var a=i.arg;return a?a.done?(t[n.resultName]=a.value,t.next=n.nextLoc,"return"!==t.method&&(t.method="next",t.arg=e),t.delegate=null,g):a:(t.method="throw",t.arg=new TypeError("iterator result is not an object"),t.delegate=null,g)}function C(e){var n={tryLoc:e[0]};1 in e&&(n.catchLoc=e[1]),2 in e&&(n.finallyLoc=e[2],n.afterLoc=e[3]),this.tryEntries.push(n)}function F(e){var n=e.completion||{};n.type="normal",delete n.arg,e.completion=n}function L(e){this.tryEntries=[{tryLoc:"root"}],e.forEach(C,this),this.reset(!0)}function z(n){if(n||""===n){var t=n[a];if(t)return t.call(n);if("function"==typeof n.next)return n;if(!isNaN(n.length)){var o=-1,i=function t(){for(;++o<n.length;)if(r.call(n,o))return t.value=n[o],t.done=!1,t;return t.value=e,t.done=!0,t};return i.next=i}}throw new TypeError(B(n)+" is not iterable")}return v.prototype=y,o(k,"constructor",{value:y,configurable:!0}),o(y,"constructor",{value:v,configurable:!0}),v.displayName=c(y,l,"GeneratorFunction"),n.isGeneratorFunction=function(e){var n="function"==typeof e&&e.constructor;return!!n&&(n===v||"GeneratorFunction"===(n.displayName||n.name))},n.mark=function(e){return Object.setPrototypeOf?Object.setPrototypeOf(e,y):(e.__proto__=y,c(e,l,"GeneratorFunction")),e.prototype=Object.create(k),e},n.awrap=function(e){return{__await:e}},N(E.prototype),c(E.prototype,s,(function(){return this})),n.AsyncIterator=E,n.async=function(e,t,r,o,i){void 0===i&&(i=Promise);var a=new E(d(e,t,r,o),i);return n.isGeneratorFunction(t)?a:a.next().then((function(e){return e.done?e.value:a.next()}))},N(k),c(k,l,"Generator"),c(k,a,(function(){return this})),c(k,"toString",(function(){return"[object Generator]"})),n.keys=function(e){var n=Object(e),t=[];for(var r in n)t.push(r);return t.reverse(),function e(){for(;t.length;){var r=t.pop();if(r in n)return e.value=r,e.done=!1,e}return e.done=!0,e}},n.values=z,L.prototype={constructor:L,reset:function(n){if(this.prev=0,this.next=0,this.sent=this._sent=e,this.done=!1,this.delegate=null,this.method="next",this.arg=e,this.tryEntries.forEach(F),!n)for(var t in this)"t"===t.charAt(0)&&r.call(this,t)&&!isNaN(+t.slice(1))&&(this[t]=e)},stop:function(){this.done=!0;var e=this.tryEntries[0].completion;if("throw"===e.type)throw e.arg;return this.rval},dispatchException:function(n){if(this.done)throw n;var t=this;function o(r,o){return s.type="throw",s.arg=n,t.next=r,o&&(t.method="next",t.arg=e),!!o}for(var i=this.tryEntries.length-1;i>=0;--i){var a=this.tryEntries[i],s=a.completion;if("root"===a.tryLoc)return o("end");if(a.tryLoc<=this.prev){var l=r.call(a,"catchLoc"),c=r.call(a,"finallyLoc");if(l&&c){if(this.prev<a.catchLoc)return o(a.catchLoc,!0);if(this.prev<a.finallyLoc)return o(a.finallyLoc)}else if(l){if(this.prev<a.catchLoc)return o(a.catchLoc,!0)}else{if(!c)throw new Error("try statement without catch or finally");if(this.prev<a.finallyLoc)return o(a.finallyLoc)}}}},abrupt:function(e,n){for(var t=this.tryEntries.length-1;t>=0;--t){var o=this.tryEntries[t];if(o.tryLoc<=this.prev&&r.call(o,"finallyLoc")&&this.prev<o.finallyLoc){var i=o;break}}i&&("break"===e||"continue"===e)&&i.tryLoc<=n&&n<=i.finallyLoc&&(i=null);var a=i?i.completion:{};return a.type=e,a.arg=n,i?(this.method="next",this.next=i.finallyLoc,g):this.complete(a)},complete:function(e,n){if("throw"===e.type)throw e.arg;return"break"===e.type||"continue"===e.type?this.next=e.arg:"return"===e.type?(this.rval=this.arg=e.arg,this.method="return",this.next="end"):"normal"===e.type&&n&&(this.next=n),g},finish:function(e){for(var n=this.tryEntries.length-1;n>=0;--n){var t=this.tryEntries[n];if(t.finallyLoc===e)return this.complete(t.completion,t.afterLoc),F(t),g}},catch:function(e){for(var n=this.tryEntries.length-1;n>=0;--n){var t=this.tryEntries[n];if(t.tryLoc===e){var r=t.completion;if("throw"===r.type){var o=r.arg;F(t)}return o}}throw new Error("illegal catch attempt")},delegateYield:function(n,t,r){return this.delegate={iterator:z(n),resultName:t,nextLoc:r},"next"===this.method&&(this.arg=e),g}},n}function W(e,n,t,r,o,i,a){try{var s=e[i](a),l=s.value}catch(e){return void t(e)}s.done?n(l):Promise.resolve(l).then(r,o)}function Y(e,n){return function(e){if(Array.isArray(e))return e}(e)||function(e,n){var t=null==e?null:"undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(null!=t){var r,o,i,a,s=[],l=!0,c=!1;try{if(i=(t=t.call(e)).next,0===n){if(Object(t)!==t)return;l=!1}else for(;!(l=(r=i.call(t)).done)&&(s.push(r.value),s.length!==n);l=!0);}catch(e){c=!0,o=e}
2finally{try{if(!l&&null!=t.return&&(a=t.return(),Object(a)!==a))return}finally{if(c)throw o}}return s}}(e,n)||function(e,n){if(!e)return;if("string"==typeof e)return H(e,n);var t=Object.prototype.toString.call(e).slice(8,-1);"Object"===t&&e.constructor&&(t=e.constructor.name);if("Map"===t||"Set"===t)return Array.from(e);if("Arguments"===t||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(t))return H(e,n)}(e,n)||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 H(e,n){(null==n||n>e.length)&&(n=e.length);for(var t=0,r=new Array(n);t<n;t++)r[t]=e[t];return r}var G=function(){var e=Y((0,r.useState)("whatsapp"),2),n=e[0],t=e[1],o=Y((0,r.useState)(""),2),i=o[0],a=o[1],l=Y((0,r.useState)("idle"),2),d=l[0],u=l[1],f=Y((0,r.useState)(""),2),p=f[0],h=f[1],m=function(){if(!i.trim())return"Please enter your contact details.";if("whatsapp"===n){if(i.replace(/\D/g,"").length<10)return"Enter a valid WhatsApp number (min 10 digits)."}else if(!/^[^\s@]+@[^\s@]+\.[^\s@]+$/.test(i.trim()))return"Enter a valid email address.";return null},g=function(){var e,t=(e=T().mark((function e(t){var r;return T().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:if(t.preventDefault(),!(r=m())){e.next=6;break}return h(r),(0,c.L9)(c.OI.REPORT_ANALYZER_REMINDER_FAILED),e.abrupt("return");case 6:return h(""),u("loading"),e.prev=8,e.next=11,fetch("/api/leads/ivf-report-reminder",{method:"POST",headers:{"Content-Type":"application/json",Accept:"application/json"},body:JSON.stringify({contact:i.trim(),type:n})});case 11:if(e.sent.ok){e.next=14;break}throw new Error;case 14:u("done"),(0,c.L9)(c.OI.REPORT_ANALYZER_REMINDER_SUBMITTED),e.next=23;break;case 18:e.prev=18,e.t0=e.catch(8),u("error"),h("Something went wrong. Please try again."),(0,c.L9)(c.OI.REPORT_ANALYZER_REMINDER_FAILED);case 23:case"end":return e.stop()}}),e,null,[[8,18]])})),function(){var n=this,t=arguments;return new Promise((function(r,o){var i=e.apply(n,t);function a(e){W(i,r,o,a,s,"next",e)}function s(e){W(i,r,o,a,s,"throw",e)}a(void 0)}))});return function(e){return t.apply(this,arguments)}}();return"done"===d?(0,s.jsxs)("div",{className:"uv-reminder-card uv-reminder-done",children:[(0,s.jsx)("div",{className:"uv-reminder-done-icon","aria-hidden":"true",children:"✓"}),(0,s.jsxs)("div",{children:[(0,s.jsx)("div",{className:"uv-reminder-done-title",children:"Reminder saved!"}),(0,s.jsx)("div",{className:"uv-reminder-done-sub",children:"We'll reach out when you're ready. Bookmark this page to come back anytime."})]})]}):(0,s.jsxs)("div",{className:"uv-reminder-card",children:[(0,s.jsxs)("div",{className:"uv-reminder-top",children:[(0,s.jsx)("div",{className:"uv-reminder-icon","aria-hidden":"true",children:(0,s.jsx)("svg",{width:"20",height:"20",viewBox:"0 0 24 24",fill:"none",stroke:"currentColor",strokeWidth:"2",strokeLinecap:"round",strokeLinejoin:"round",children:(0,s.jsx)("path",{d:"M22 16.92v3a2 2 0 0 1-2.18 2 19.79 19.79 0 0 1-8.63-3.07A19.5 19.5 0 0 1 4.69 12a19.79 19.79 0 0 1-3.07-8.67A2 2 0 0 1 3.6 1.18h3a2 2 0 0 1 2 1.72c.13.96.36 1.9.7 2.81a2 2 0 0 1-.45 2.11L7.91 9a16 16 0 0 0 6 6l1.27-.95a2 2 0 0 1 2.11-.45c.91.34 1.85.57 2.81.7A2 2 0 0 1 22 16.92z"})})}),(0,s.jsxs)("div",{children:[(0,s.jsx)("div",{className:"uv-reminder-title",children:"Don't have your reports right now?"}),(0,s.jsx)("div",{className:"uv-reminder-sub",children:"Share your WhatsApp or email and we'll remind you to come back."})]})]}),(0,s.jsxs)("form",{onSubmit:g,className:"uv-reminder-form",noValidate:!0,children:[(0,s.jsxs)("div",{className:"uv-reminder-tabs",role:"group","aria-label":"Contact method",children:[(0,s.jsxs)("button",{type:"button",className:"uv-reminder-tab".concat("whatsapp"===n?" active":""),onClick:function(){t("whatsapp"),a(""),h("")},children:[(0,s.jsxs)("svg",{width:"14",height:"14",viewBox:"0 0 24 24",fill:"currentColor","aria-hidden":"true",children:[(0,s.jsx)("path",{d:"M17.472 14.382c-.297-.149-1.758-.867-2.03-.967-.273-.099-.471-.148-.67.15-.197.297-.767.966-.94 1.164-.173.199-.347.223-.644.075-.297-.15-1.255-.463-2.39-1.475-.883-.788-1.48-1.761-1.653-2.059-.173-.297-.018-.458.13-.606.134-.133.298-.347.446-.52.149-.174.198-.298.298-.497.099-.198.05-.371-.025-.52-.075-.149-.669-1.612-.916-2.207-.242-.579-.487-.5-.669-.51-.173-.008-.371-.01-.57-.01-.
2198 0-.52.074-.792.372-.272.297-1.04 1.016-1.04 2.479 0 1.462 1.065 2.875 1.213 3.074.149.198 2.096 3.2 5.077 4.487.709.306 1.262.489 1.694.625.712.227 1.36.195 1.871.118.571-.085 1.758-.719 2.006-1.413.248-.694.248-1.289.173-1.413-.074-.124-.272-.198-.57-.347z"}),(0,s.jsx)("path",{d:"M12 0C5.373 0 0 5.373 0 12c0 2.136.562 4.14 1.535 5.875L.057 23.432a.5.5 0 0 0 .612.612l5.557-1.478A11.95 11.95 0 0 0 12 24c6.627 0 12-5.373 12-12S18.627 0 12 0zm0 21.9a9.897 9.897 0 0 1-5.032-1.374l-.361-.214-3.737.993.994-3.737-.214-.361A9.9 9.9 0 1 1 12 21.9z"})]}),"WhatsApp"]}),(0,s.jsxs)("button",{type:"button",className:"uv-reminder-tab".concat("email"===n?" active":""),onClick:function(){t("email"),a(""),h("")},children:[(0,s.jsxs)("svg",{width:"14",height:"14",viewBox:"0 0 24 24",fill:"none",stroke:"currentColor",strokeWidth:"2",strokeLinecap:"round",strokeLinejoin:"round","aria-hidden":"true",children:[(0,s.jsx)("path",{d:"M4 4h16c1.1 0 2 .9 2 2v12c0 1.1-.9 2-2 2H4c-1.1 0-2-.9-2-2V6c0-1.1.9-2 2-2z"}),(0,s.jsx)("polyline",{points:"22,6 12,13 2,6"})]}),"Email"]})]}),(0,s.jsxs)("div",{className:"uv-reminder-input-row",children:[(0,s.jsx)("input",{className:"uv-reminder-input".concat(p?" error":""),type:"email"===n?"email":"tel",inputMode:"email"===n?"email":"numeric",placeholder:"whatsapp"===n?"Your WhatsApp number (e.g. 9876543210)":"Your email address",value:i,onChange:function(e){a(e.target.value),h("")},autoComplete:"email"===n?"email":"tel","aria-label":"whatsapp"===n?"WhatsApp number":"Email address",disabled:"loading"===d}),(0,s.jsx)("button",{type:"submit",className:"uv-reminder-submit",disabled:"loading"===d,children:"loading"===d?(0,s.jsx)("svg",{width:"16",height:"16",viewBox:"0 0 24 24",fill:"none",stroke:"currentColor",strokeWidth:"2.5",strokeLinecap:"round","aria-hidden":"true",style:{animation:"spin 0.8s linear infinite"},children:(0,s.jsx)("path",{d:"M21 12a9 9 0 1 1-6.219-8.56"})}):"Remind Me"})]}),p&&(0,s.jsx)("p",{className:"uv-reminder-err",role:"alert",children:p}),(0,s.jsxs)("p",{className:"uv-reminder-privacy",children:[(0,s.jsx)("svg",{width:"11",height:"11",viewBox:"0 0 24 24",fill:"none",stroke:"currentColor",strokeWidth:"2.5","aria-hidden":"true",children:(0,s.jsx)("path",{d:"M12 22s8-4 8-10V5l-8-3-8 3v7c0 6 8 10 8 10z"})}),"We never share your contact details. One reminder only."]})]})]})},U=function(e){var n=e.onVaultClick;return(0,s.jsxs)("div",{className:"uv-vault-card",children:[(0,s.jsxs)("div",{className:"uv-vault-top",children:[(0,s.jsx)("div",{className:"uv-vault-icon","aria-hidden":"true",children:(0,s.jsxs)("svg",{width:"20",height:"20",viewBox:"0 0 24 24",fill:"none",stroke:"currentColor",strokeWidth:"2",strokeLinecap:"round",strokeLinejoin:"round",children:[(0,s.jsx)("rect",{x:"3",y:"11",width:"18",height:"11",rx:"2",ry:"2"}),(0,s.jsx)("path",{d:"M7 11V7a5 5 0 0 1 10 0v4"})]})}),(0,s.jsxs)("div",{children:[(0,s.jsx)("div",{className:"uv-vault-title",children:"You have a Medical Vault"}),(0,s.jsx)("div",{className:"uv-vault-sub",children:"Access your previously saved reports and past analyses — no need to re-upload."})]})]}),(0,s.jsxs)("button",{className:"uv-vault-btn",onClick:function(){(0,c.L9)(c.OI.REPORT_ANALYZER_VAULT_OPENED),n()},children:[(0,s.jsxs)("svg",{width:"15",height:"15",viewBox:"0 0 24 24",fill:"none",stroke:"currentColor",strokeWidth:"2.5",strokeLinecap:"round",strokeLinejoin:"round","aria-hidden":"true",children:[(0,s.jsx)("rect",{x:"3",y:"11",width:"18",height:"11",rx:"2",ry:"2"}),(0,s.jsx)("path",{d:"M7 11V7a5 5 0 0 1 10 0v4"})]}),"Open Medical Vault"]}),(0,s.jsx)("p",{className:"uv-vault-or",children:(0,s.jsx)("span",{children:"or upload new reports below"})})]})},V=[{icon:"fa-vial",bg:"#fef2f2",color:"#dc2626",title:"AMH Test",desc:"Ovarian reserve"},{icon:"fa-microscope",bg:"#eff6ff",color:"#2563eb",title:"Semen Analysis",desc:"Sperm count & motility"},{icon:"fa-x-ray",bg:"#f5f3ff",color:"#7c3aed",title:"Ultrasound",desc:"AFC, pelvic scans"},{icon:"fa-file-medical-alt",bg:"#fdf2f8",color:"#db2777",title:"Hormone Panel",desc:"FSH, LH, Estradiol"},{icon:"fa-lungs",bg:"#fefce8",color:"#ca8a04",title:"HSG Test",desc:"Tube patency"},{icon:"fa-dna",bg:"#f0fdf4",color:"#16a34a",title:"Genetic Testing",desc:"PGT-A/M results"}],q='\n    @import url(\'https://fonts.googleapis.com/css2?family=Inter:wght@400;500;600;700&display=swap\');\n\n    @keyframes spin { to { transform: rotate(360deg); } }\n\n    .uv-root {\n        max-width: 760px;\n        margin: 0 auto;\n        padding: 28px 20px 40px;\n        font-family: "Inter", sans-serif;\n        color: #0D1F35;\n    }\n\n    /* Header */\n    .uv-header {\n        display: flex;\n        align-items: flex-start;\n        gap: 14px;\n        margin-bottom: 28px;\n    }\n\n    .uv-back-btn {\n        display: inline-flex;\n        align-items: center;\n        gap: 6px;\n        padding: 8px 14px;\n        font-size: 0.82rem;\n        font-weight: 600;\n        color: #475569;\n        background: #ffffff;\n        border: 1px solid #E2E8F0;\n        border-radius: 8px;\n        cursor: pointer;\n        transition: all 0.15s ease;\n        white-space: nowrap;\n        min-height: 36px;\n        flex-shrink: 0;\n        margin-top: 4px;\n    }\n\n    .uv-back-btn:hover {\n        background: #F8FAFC;\n        border-color: #CBD5E1;\n        color: #0D1F35;\n    }\n\n    .uv-back-btn:focus-visible {\n        outline: 2px solid #0EA5E9;\n        outline-offset: 2px;\n    }\n\n    .uv-title {\n        font-size: 1.55rem;\n        font-weight: 700;\n        color: #0D1F35;\n        margin: 0 0 6px;\n        line-height: 1.2;\n    }\n\n    .uv-subtitle {\n        font-size: 0.875rem;\n        color: #64748B;\n        margin: 0;\n        line-height: 1.55;\n    }\n\n    /* Files */\n    .uv-files-section {\n        margin-bottom: 20px;\n    }\n\n    .uv-files-label {\n        display: flex;\n        align-items: center;\n        gap: 6px;\n        font-size: 0.78rem;\n        font-weight: 600;\n        color: #64748B;\n        letter-spacing: 0.04em;\n        text-transform: uppercase;\n        margin-bottom: 10px;\n    }\n\n    .uv-files-label svg { color: #0EA5E9; }\n\n    .uv-files-grid {\n        display: grid;\n        grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));\n        gap: 10px;\n    }\n\n    .uv-file-card {\n        display: flex;\n        align-items: center;\n        gap: 10px;\n        background: #ffffff;\n        border: 1px solid #E2E8F0;\n        border-radius: 10px;\n        padding: 10px 12px;\n        box-shadow: 0 2px 8px rgba(13, 31, 53, 0.04);\n        transition: border-color 0.15s ease;\n    }\n\n    .uv-file-card:hover { border-color: #BAE6FD; }\n\n    .uv-file-icon-wrap {\n        width: 36px;\n        height: 36px;\n        flex-shrink: 0;\n        display: flex;\n        align-items: center;\n        justify-content: center;\n        background: #F8FAFC;\n        border: 1px solid #E5EAF1;\n        border-radius: 8px;\n        font-size: 1.1rem;\n    }\n\n    .uv-icon-pdf { color: #DC2626; }\n    .uv-icon-img { color: #2563EB; }\n\n    .uv-file-info {\n        flex: 1;\n        min-width: 0;\n    }\n\n    .uv-file-name {\n        font-size: 0.85rem;\n        font-weight: 600;\n        color: #0D1F35;\n        white-space: nowrap;\n        overflow: hidden;\n        text-overflow: ellipsis;\n    }\n\n    .uv-file-size {\n        font-size: 0.72rem;\n        color: #94A3B8;\n        margin-top: 2px;\n    }\n\n    .uv-file-remove {\n        flex-shrink: 0;\n        width: 30px;\n        height: 30px;\n        display: flex;\n        align-items: center;\n        justify-content: center;\n        background: #FFF5F5;\n        border: 1px solid #FECACA;\n        border-radius: 7px;\n        color: #DC2626;\n        cursor: pointer;\n        transition: all 0.15s ease;\n    }\n\n    .uv-file-remove:hover {\n        background: #FEE2E2;\n        border-color: #FDA4AF;\n    }\n\n    .uv-file-remove:focus-visible {\n        outline: 2px solid #DC2626;\n        outline-offset: 2px;\n    }\n\n    /* Helper */\n    .uv-helper-wrap {\n        margin-bottom: 24px;\n        border: 1px solid #E2E8F0;\n        border-radius: 12px;\n        background: #ffffff;\n        overflow: hidden;\n    }\n\n    .uv-helper-toggle {\n        width: 100%;\n        display: flex;\n        align-items: center;\n        justify-content: space-between;\n        padding: 14px 16px;\n        background: transparent;\n        border: none;\n        cursor: pointer;\n        font-size: 0.875rem;\n        font-weight: 500;\n        color: #475569;\n        font-family: "Inter", sans-serif;\n        text-align: left;\n        min-height: 44px;\n        transition: background 0.15s ease;\n    }\n\n    .uv-helper-toggle:hover { background: #F8FAFC; }\n\n    .uv-helper-toggle:focus-visible {\n        outline: 2px solid #0EA5E9;\n        outline-offset: -2px;\n    }\n\n    .uv-helper-toggle-left {\n        display: flex;\n        align-items: center;\n        gap: 8px;\n    }\n\n    .uv-helper-toggle-left svg { color: #0EA5E9; }\n\n    .uv-helper-chevron {\n        transition: transform 0.2s ease;\n        color: #94A3B8;\n    }\n\n    .uv-helper-chevron.open { transform: rotate(180deg); }\n\n    .uv-helper-body {\n        padding: 0 16px 16px;\n        border-top: 1px solid #F1F5F9;\n    }\n\n    .uv-report-grid {\n        display: grid;\n        grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));\n        gap: 8px;\n        padding-top: 14px;\n        margin-bottom: 12px;\n    }\n\n    .uv-report-chip {\n        display: flex;\n        align-items: center;\n        gap: 10px;\n        padding: 10px 12px;\n        background: #F8FAFC;\n        border: 1px solid #F1F5F9;\n        border-radius: 10px;\n        transition: border-color 0.15s ease;\n    }\n\n    .uv-report-chip:hover { border-color: #DBEAFE; }\n\n    .uv-report-chip-icon {\n        width: 34px;\n        height: 34px;\n        flex-shrink: 0;\n        display: flex;\n        align-items: center;\n        justify-content: center;\n        border-radius: 8px;\n        font-size: 1rem;\n    }\n\n    .uv-report-chip-title {\n        font-size: 0.82rem;\n        font-weight: 600;\n        color: #0D1F35;\n    }\n\n    .uv-report-chip-desc {\n        font-size: 0.72rem;\n        color: #94A3B8;
2\n        margin-top: 1px;\n    }\n\n    .uv-helper-tip {\n        display: flex;\n        align-items: center;\n        gap: 6px;\n        padding: 10px 14px;\n        background: #EFF6FF;\n        border: 1px solid #DBEAFE;\n        border-radius: 8px;\n        font-size: 0.8rem;\n        color: #1D4ED8;\n        font-weight: 500;\n    }\n\n    .uv-helper-tip svg { color: #3B82F6; flex-shrink: 0; }\n\n    /* Reminder card */\n    .uv-reminder-card {\n        margin-bottom: 24px;\n        border: 1.5px dashed #BAE6FD;\n        border-radius: 14px;\n        padding: 18px 20px;\n        background: linear-gradient(135deg, #F0F9FF 0%, #E0F2FE 100%);\n    }\n\n    .uv-reminder-top {\n        display: flex;\n        align-items: flex-start;\n        gap: 12px;\n        margin-bottom: 14px;\n    }\n\n    .uv-reminder-icon {\n        width: 36px;\n        height: 36px;\n        flex-shrink: 0;\n        display: flex;\n        align-items: center;\n        justify-content: center;\n        background: transparent;\n        border: 1.5px solid #64748B;\n        border-radius: 10px;\n        color: #475569;\n    }\n\n    .uv-reminder-title {\n        font-size: 0.92rem;\n        font-weight: 700;\n        color: #0C4A6E;\n        margin-bottom: 3px;\n    }\n\n    .uv-reminder-sub {\n        font-size: 0.8rem;\n        color: #0369A1;\n        line-height: 1.5;\n    }\n\n    .uv-reminder-form {\n        display: flex;\n        flex-direction: column;\n        gap: 10px;\n    }\n\n    .uv-reminder-tabs {\n        display: flex;\n        gap: 6px;\n    }\n\n    .uv-reminder-tab {\n        display: inline-flex;\n        align-items: center;\n        gap: 6px;\n        padding: 6px 14px;\n        font-size: 0.8rem;\n        font-weight: 600;\n        border: 1.5px solid #BAE6FD;\n        border-radius: 999px;\n        background: #ffffff;\n        color: #64748B;\n        cursor: pointer;\n        transition: all 0.15s ease;\n        font-family: "Inter", sans-serif;\n        min-height: 34px;\n    }\n\n    .uv-reminder-tab:hover {\n        border-color: #0EA5E9;\n        color: #0EA5E9;\n    }\n\n    .uv-reminder-tab.active {\n        background: transparent;\n        border-color: #1C2B3A;\n        color: #1C2B3A;\n    }\n\n    .uv-reminder-tab:focus-visible {\n        outline: 2px solid #0EA5E9;\n        outline-offset: 2px;\n    }\n\n    .uv-reminder-input-row {\n        display: flex;\n        gap: 8px;\n    }\n\n    .uv-reminder-input {\n        flex: 1;\n        padding: 10px 14px;\n        font-size: 0.875rem;\n        border: 1.5px solid #BAE6FD;\n        border-radius: 10px;\n        background: #ffffff;\n        color: #0D1F35;\n        font-family: "Inter", sans-serif;\n        outline: none;\n        transition: border-color 0.15s ease, box-shadow 0.15s ease;\n        min-height: 44px;\n    }\n\n    .uv-reminder-input:focus {\n        border-color: #0EA5E9;\n        box-shadow: 0 0 0 3px rgba(14, 165, 233, 0.12);\n    }\n\n    .uv-reminder-input.error {\n        border-color: #F87171;\n    }\n\n    .uv-reminder-input::placeholder { color: #94A3B8; }\n\n    .uv-reminder-submit {\n        padding: 10px 18px;\n        font-size: 0.875rem;\n        font-weight: 600;\n        background: #0EA5E9;\n        color: #ffffff;\n        border: none;\n        border-radius: 10px;\n        cursor: pointer;\n        white-space: nowrap;\n        transition: background 0.15s ease;\n        font-family: "Inter", sans-serif;\n        min-height: 44px;\n        display: flex;\n        align-items: center;\n        justify-content: center;\n    }\n\n    .uv-reminder-submit:hover:not(:disabled) { background: #0284C7; }\n\n    .uv-reminder-submit:disabled {\n        opacity: 0.65;\n        cursor: not-allowed;\n    }\n\n    .uv-reminder-submit:focus-visible {\n        outline: 2px solid #0EA5E9;\n        outline-offset: 2px;\n    }\n\n    .uv-reminder-err {\n        font-size: 0.78rem;\n        color: #DC2626;\n        margin: 0;\n        display: flex;\n        align-items: center;\n        gap: 4px;\n    }\n\n    .uv-reminder-privacy {\n        font-size: 0.72rem;\n        color: #64748B;\n        margin: 0;\n        display: flex;\n        align-items: center;\n        gap: 5px;\n    }\n\n    .uv-reminder-privacy svg { color: #10B981; flex-shrink: 0; }\n\n    /* Vault card */\n    .uv-vault-card {\n        margin-bottom: 24px;\n        border: 1.5px solid #C7D2FE;\n        border-radius: 14px;\n        padding: 18px 20px;\n        background: linear-gradient(135deg, #EEF2FF 0%, #E0E7FF 100%);\n    }\n\n    .uv-vault-top {\n        display: flex;\n        align-items: flex-start;\n        gap: 12px;\n        margin-bottom: 14px;\n    }\n\n    .uv-vault-icon {\n        width: 36px;\n        height: 36px;\n        flex-shrink: 0;\n        display: flex;\n        align-items: center;\n        justify-content: center;\n        background: #6366F1;\n        border-radius: 10px;\n        color: #ffffff;\n    }\n\n    .uv-vault-title {\n        font-size: 0.92rem;\n        font-weight: 700;\n        color: #312E81;\n        margin-bottom: 3px;\n    }\n\n    .uv-vault-sub {\n        font-size: 0.8rem;\n        color: #4338CA;\n        line-height: 1.5;\n    }\n\n    .uv-vault-btn {\n        display: inline-flex;\n        align-items: center;\n        gap: 7px;\n        padding: 10px 18px;\n        font-size: 0.875rem;\n        font-weight: 600;\n        background: #6366F1;\n        color: #ffffff;\n        border: none;\n        border-radius: 10px;\n        cursor: pointer;\n        font-family: "Inter", sans-serif;\n        transition: background 0.15s ease, transform 0.15s ease;\n        box-shadow: 0 4px 14px rgba(99, 102, 241, 0.35);\n        min-height: 44px;\n        width: 100%;\n        justify-content: center;\n    }\n\n    .uv-vault-btn:hover {\n        background: #4F46E5;\n        transform: translateY(-1px);\n        box-shadow: 0 6px 18px rgba(99, 102, 241, 0.45);\n    }\n\n    .uv-vault-btn:focus-visible {\n        outline: 2px solid #6366F1;\n        outline-offset: 2px;\n    }\n\n    .uv-vault-or {\n        margin: 12px 0 0;\n        text-align: center;\n        font-size: 0.75rem;\n        color: #6366F1;\n        position: relative;\n        display: flex;\n        align-items: center;\n        gap: 10px;\n    }\n\n    .uv-vault-or::before,\n    .uv-vault-or::after {\n        content: \'\';\n        flex: 1;\n        height: 1px;\n        background: #C7D2FE;\n    }\n\n    /* Done state */\n    .uv-reminder-done {\n        display: flex;\n        align-items: center;\n        gap: 14px;\n        border-style: solid;\n        border-color: #BBF7D0;\n        background: linear-gradient(135deg, #F0FDF4 0%, #DCFCE7 100%);\n    }\n\n    .uv-reminder-done-icon {\n        width: 40px;\n        height: 40px;\n        flex-shrink: 0;\n        background: #10B981;\n        color: #ffffff;\n        border-radius: 50%;\n        display: flex;\n        align-items: center;\n        justify-content: center;\n        font-size: 1.1rem;\n        font-weight: 700;\n    }\n\n    .uv-reminder-done-title {\n        font-size: 0.92rem;\n        font-weight: 700;\n        color: #065F46;\n        margin-bottom: 3px;\n    }\n\n    .uv-reminder-done-sub {\n        font-size: 0.8rem;\n        color: #047857;\n        line-height: 1.5;\n    }\n\n    /* Actions */\n    .uv-actions {\n        display: flex;\n        align-items: center;\n        justify-content: space-between;\n        gap: 12px;\n        padding-top: 20px;\n        border-top: 1px solid #E2E8F0;\n    }\n\n    .uv-btn-cancel {\n        padding: 11px 20px;\n        font-size: 0.875rem;\n        font-weight: 600;\n        color: #475569;\n        background: #ffffff;\n        border: 1px solid #E2E8F0;\n        border-radius: 10px;\n        cursor: pointer;\n        font-family: "Inter", sans-serif;\n        transition: all 0.15s ease;\n        min-height: 44px;\n    }\n\n    .uv-btn-cancel:hover { background: #F8FAFC; border-color: #CBD5E1; }\n\n    .uv-btn-cancel:focus-visible { outline: 2px solid #0EA5E9; outline-offset: 2px; }\n\n    .uv-btn-continue {\n        display: inline-flex;\n        align-items: center;\n        gap: 8px;\n        padding: 11px 24px;\n        font-size: 0.95rem;\n        font-weight: 600;\n        color: #ffffff;\n        background: #1C2B3A;\n        border: none;\n        border-radius: 10px;\n        cursor: pointer;\n        font-family: "Inter", sans-serif;\n        transition: all 0.15s ease;\n        box-shadow: 0 4px 14px rgba(28, 43, 58, 0.2);\n        min-height: 44px;\n    }\n\n    .uv-btn-continue:hover:not(:disabled) {\n        background: #2E4057;\n        transform: translateY(-1px);\n        box-shadow: 0 6px 18px rgba(28, 43, 58, 0.3);\n    }\n\n    .uv-btn-continue:disabled {\n        background: #8A9BA8;\n        box-shadow: none;
2\n        cursor: not-allowed;\n        transform: none;\n    }\n\n    .uv-btn-continue:focus-visible { outline: 2px solid #5B8DB8; outline-offset: 2px; }\n\n    /* Mobile */\n    @media (max-width: 640px) {\n        .uv-root { padding: 20px 16px 32px; }\n\n        .uv-header { flex-direction: column; gap: 10px; }\n        .uv-back-btn { align-self: flex-start; }\n        .uv-title { font-size: 1.3rem; }\n\n        .uv-files-grid { grid-template-columns: 1fr; }\n\n        .uv-report-grid { grid-template-columns: 1fr 1fr; gap: 6px; }\n        .uv-report-chip { padding: 8px 10px; gap: 8px; }\n        .uv-report-chip-icon { width: 28px; height: 28px; font-size: 0.85rem; }\n\n        .uv-reminder-input-row { flex-direction: column; }\n        .uv-reminder-submit { width: 100%; }\n\n        .uv-actions { flex-direction: column-reverse; gap: 10px; }\n        .uv-btn-cancel, .uv-btn-continue { width: 100%; justify-content: center; }\n    }\n',Z=function(e){var n=e.uploadedFiles,t=e.showCategoryHelper,o=e.setShowCategoryHelper,i=e.onFilesSelected,a=e.onRemoveFile,l=e.onError,d=e.onContinue,u=e.onBack,f=e.onVaultClick,p=Y((0,r.useState)(!1),2),h=p[0],m=p[1];(0,r.useEffect)((function(){m(!!localStorage.getItem("token"))}),[]);return(0,s.jsxs)("div",{className:"uv-root",children:[(0,s.jsxs)("div",{className:"uv-header",children:[(0,s.jsxs)("button",{className:"uv-back-btn",onClick:u,"aria-label":"Go back",children:[(0,s.jsx)("svg",{width:"16",height:"16",viewBox:"0 0 24 24",fill:"none",stroke:"currentColor",strokeWidth:"2.5",strokeLinecap:"round",strokeLinejoin:"round","aria-hidden":"true",children:(0,s.jsx)("path",{d:"M19 12H5M12 19l-7-7 7-7"})}),(0,s.jsx)("span",{children:"Back"})]}),(0,s.jsxs)("div",{className:"uv-header-text",children:[(0,s.jsx)("h1",{className:"uv-title",children:"Upload Your Reports"}),(0,s.jsx)("p",{className:"uv-subtitle",children:"Drag and drop your fertility reports for instant AI analysis. PDF or images, up to 15 MB each."})]})]}),(0,s.jsx)(M,{onFilesSelected:i,onError:l,maxFiles:15,maxSizeMB:15}),n.length>0&&(0,s.jsxs)("div",{className:"uv-files-section",children:[(0,s.jsxs)("div",{className:"uv-files-label",children:[(0,s.jsxs)("svg",{width:"14",height:"14",viewBox:"0 0 24 24",fill:"none",stroke:"currentColor",strokeWidth:"2.5",strokeLinecap:"round",strokeLinejoin:"round","aria-hidden":"true",children:[(0,s.jsx)("path",{d:"M14 2H6a2 2 0 0 0-2 2v16a2 2 0 0 0 2 2h12a2 2 0 0 0 2-2V8z"}),(0,s.jsx)("polyline",{points:"14 2 14 8 20 8"})]}),n.length," ",1===n.length?"file":"files"," selected"]}),(0,s.jsx)("div",{className:"uv-files-grid",children:n.map((function(e,n){return(0,s.jsxs)("div",{className:"uv-file-card",children:[(0,s.jsx)("div",{className:"uv-file-icon-wrap",children:(0,s.jsx)("i",{className:"fa ".concat("application/pdf"===e.type?"fa-file-pdf uv-icon-pdf":"fa-file-image uv-icon-img"),"aria-hidden":"true"})}),(0,s.jsxs)("div",{className:"uv-file-info",children:[(0,s.jsx)("div",{className:"uv-file-name",children:e.name}),(0,s.jsxs)("div",{className:"uv-file-size",children:[(e.size/1048576).toFixed(2)," MB"]})]}),(0,s.jsx)("button",{className:"uv-file-remove",onClick:function(){return a(n)},"aria-label":"Remove ".concat(e.name),children:(0,s.jsxs)("svg",{width:"14",height:"14",viewBox:"0 0 24 24",fill:"none",stroke:"currentColor",strokeWidth:"2.5",strokeLinecap:"round",strokeLinejoin:"round","aria-hidden":"true",children:[(0,s.jsx)("line",{x1:"18",y1:"6",x2:"6",y2:"18"}),(0,s.jsx)("line",{x1:"6",y1:"6",x2:"18",y2:"18"})]})})]},n)}))})]}),(0,s.jsxs)("div",{className:"uv-helper-wrap",children:[(0,s.jsxs)("button",{className:"uv-helper-toggle",onClick:function(){return o(!t)},"aria-expanded":t,children:[(0,s.jsxs)("span",{className:"uv-helper-toggle-left",children:[(0,s.jsxs)("svg",{width:"14",height:"14",viewBox:"0 0 24 24",fill:"none",stroke:"currentColor",strokeWidth:"2.5",strokeLinecap:"round",strokeLinejoin:"round","aria-hidden":"true",children:[(0,s.jsx)("circle",{cx:"12",cy:"12",r:"10"}),(0,s.jsx)("line",{x1:"12",y1:"8",x2:"12",y2:"12"}),(0,s.jsx)("line",{x1:"12",y1:"16",x2:"12.01",y2:"16"})]}),"Not sure what to upload?"]}),(0,s.jsx)("svg",{className:"uv-helper-chevron".concat(t?" open":""),width:"14",height:"14",viewBox:"0 0 24 24",fill:"none",stroke:"currentColor",strokeWidth:"2.5",strokeLinecap:"round",strokeLinejoin:"round","aria-hidden":"true",children:(0,s.jsx)("polyline",{points:"6 9 12 15 18 9"})})]}),t&&(0,s.jsxs)("div",{className:"uv-helper-body",children:[(0,s.jsx)("div",{className:"uv-report-grid",children:V.map((function(e,n){return(0,s.jsxs)("div",{className:"uv-report-chip",children:[(0,s.jsx)("div",{className:"uv-report-chip-icon",style:{background:e.bg},children:(0,s.jsx)("i",{className:"fa ".concat(e.icon),style:{color:e.color},"aria-hidden":"true"})}),(0,s.jsxs)("div",{children:[(0,s.jsx)("div",{className:"uv-report-chip-title",children:e.title}),(0,s.jsx)("div",{className:"uv-report-chip-desc",children:e.desc})]})]},n)}))}),(0,s.jsxs)("div",{className:"uv-helper-tip",children:[(0,s.jsxs)("svg",{width:"13",height:"13",viewBox:"0 0 24 24",fill:"none",stroke:"currentColor",strokeWidth:"2.5",strokeLinecap:"round",strokeLinejoin:"round","aria-hidden":"true",children:[(0,s.jsx)("circle",{cx:"12",cy:"12",r:"5"}),(0,s.jsx)("path",{d:"M12 1v2M12 21v2M4.22 4.22l1.42 1.42M18.36 18.36l1.42 1.42M1 12h2M21 12h2M4.22 19.78l1.42-1.42M18.36 5.64l1.42-1.42"})]}),"Drag any of these files directly into the upload area above."]})]})]}),h?(0,s.jsx)(U,{onVaultClick:f}):(0,s.jsx)(G,{}),(0,s.jsxs)("div",{className:"uv-actions",children:[(0,s.jsx)("button",{className:"uv-btn-cancel",onClick:u,children:"Cancel"}),(0,s.jsxs)("button",{className:"uv-btn-continue",disabled:0===n.length,onClick:function(){(0,c.L9)(c.OI.REPORT_ANALYZER_REVIEW_CONTINUE),d()},children:["Continue to Review",(0,s.jsx)("svg",{width:"16",height:"16",viewBox:"0 0 24 24",fill:"none",stroke:"currentColor",strokeWidth:"2.5",strokeLinecap:"round",strokeLinejoin:"round","aria-hidden":"true",children:(0,s.jsx)("path",{d:"M5 12h14M12 5l7 7-7 7"})})]})]}),(0,s.jsx)("style",{children:q}),(0,s.jsx)("style",{children:"\n    .upload-title {\n        font-weight: 700;\n        font-size: 1.9rem;\n        line-height: 1.2;\n        letter-spacing: -0.02em;\n    }\n\n    .upload-subtitle {\n        font-size: 0.95rem;\n        line-height: 1.5;\n        color: #64748b;\n        max-width: 760px;\n    }\n\n    .back-btn {\n        flex-shrink: 0;\n        padding: 0.4rem 0.9rem;\n        font-size: 0.875rem;\n        font-weight: 600;\n        border-radius: 8px;\n        border-color: #dbe3ee;\n        color: #334155;\n        background: #ffffff;\n        white-space: nowrap;\n        transition: all 0.2s ease;\n    }\n\n    .back-btn:hover {\n        border-color: #bfdbfe;\n        background: #f8fbff;\n        color: #1e3a8a;\n    }\n\n    .back-btn:focus {\n        box-shadow: 0 0 0 0.2rem rgba(13, 110, 253, 0.15);\n    }\n\n    .category-helper-wrapper {\n        margin-top: 1.75rem;\n    }\n\n    .category-helper-toggle {\n        width: 100%;\n        display: flex;\n        align-items: center;\n        justify-content: space-between;\n        background: #ffffff;\n        border: 1px solid #e2e8f0;\n        border-radius: 12px;\n        padding: 1rem 1.25rem;\n        cursor: pointer;\n        transition: all 0.2s ease;\n        box-shadow: 0 8px 20px rgba(15, 23, 42, 0.04);\n    }\n\n    .category-helper-toggle:hover {\n        background: #f8fbff;\n        border-color: #bfdbfe;\n    }\n\n    .helper-toggle-content {\n        display: flex;\n        align-items: center;\n        color: #475569;\n        font-size: 0.9rem;\n        font-weight: 500;\n    }\n\n    .helper-toggle-content i {\n        color: #0d6efd;\n    }\n\n    .helper-chevron {\n        color: #94a3b8;\n        font-size: 0.875rem;\n        transition: transform 0.2s ease;\n    }\n\n    .category-helper-content {\n        background: #ffffff;\n        border: 1px solid #e2e8f0;\n        border-radius: 12px;\n        padding: 1.25rem;\n        margin-top: 0.5rem;\n        animation: slideDown 0.3s ease;\n        box-shadow: 0 10px 24px rgba(15, 23, 42, 0.06);\n    }\n\n    @keyframes slideDown {\n        from {\n            opacity: 0;\n            transform: translateY(-10px);\n        }\n        to {\n            opacity: 1;\n            transform: translateY(0);\n        }\n    }\n\n    .category-examples {\n        display: grid;\n        grid-template-columns: repeat(auto-fill, minmax(240px, 1fr));\n        gap: 0.75rem;\n        margin-bottom: 1rem;\n    }\n\n    .category-example {\n        display: flex;\n        align-items: center;\n        gap: 0.75rem;\n        padding: 0.75rem;\n        background: #ffffff;\n        border: 1px solid #eef2f7;\n        border-radius: 10px;\n        transition: all 0.2s ease;\n    }\n\n    .category-example:hover {\n        border-color: #dbe7fb;\n        background: #fbfdff;\n        transform: translateY(-1px);\n    }\n\n    .example-icon {\n        width: 40px;\n        height: 40px;\n        flex-shrink: 0;\n        display: flex;\n        align-items: center;\n        justify-content: center;\n        border-radius: 8px;\n    }\n\n    .example-icon i {\n        font-size: 1.125rem;\n    }\n\n    .example-text {\n        flex: 1;\n        min-width: 0;\n    }\n\n    .example-title {\n        font-size: 0.875rem;\n        font-weight: 600;\n        color: #1F232D;\n        line-height: 1.3;\n    }\n\n    .example-desc {\n        font-size: 0.75rem;\n        color: #6b7280;\n        line-height: 1.3;\n        margin-top: 2px;\n    }\n\n    .helper-footer {\n        display: flex;\n        align-items: center;\n        justify-content: center;\n        gap: 0.5rem;\n        padding: 0.875rem;\n        background: #f8fbff;\n        border: 1px solid #dbeafe;\n        border-radius: 10px;\n        color: #1d4ed8;\n        font-size: 0.875rem;\n        font-weight: 500;\n    }\n\n    .helper-footer i {\n        color: #3b82f6;\n    }\n\n    .uploaded-files-section {\n        margin-top: 1.5rem;\n    }\n\n    .files-grid {\n        display: grid;\n        grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));\n        gap: 0.9rem;\n    }\n\n    .file-card {\n        background: #ffffff;\n        border: 1px solid #e2e8f0;\n        border-radius: 12px;\n        box-shadow: 0 8px 20px rgba(15, 23, 42, 0.04);\n        transition: all 0.2s ease;\n    }\n\n    .file-card:hover {\n        border-color: #bfdbfe;\n        box-shadow: 0 10px 24px rgba(15, 23, 42, 0.08);\n        transform: translateY(-1px);\n    }\n\n    .file-card-content {\n        display: flex;\n        align-items: center;\n        justify-content: space-between;\n        padding: 0.95rem 1rem;\n        gap: 0.75rem;\n    }\n\n    .file-info {\n        display: flex;\n        align-items: center;\n        gap: 0.75rem;\n        flex: 1;\n        min-width: 0;\n    }\n\n    .file-icon-wrapper {\n        flex-shrink: 0;\n        width: 38px;\n        height: 38px;\n        display: flex;\n        align-items: center;\n        justify-content: center;\n        background: #f8fafc;\n        border: 1px solid #e5eaf1;\n        border-radius: 8px;\n    }\n\n    .file-icon-wrapper i {\n        font-size: 1.2rem;\n    }\n\n    .file-icon-wrapper .fa-file-pdf {\n        color: #dc2626;\n    }\n\n    .file-icon-wrapper .fa-file-image {\n        color: #2563eb;\n    }\n\n    .file-details {\n        flex: 1;\n        min-width: 0;\n    }\n\n    .file-name {\n        font-size: 0.9rem;\n        font-weight: 600;\n        color: #1F232D;\n        white-space: nowrap;\n        overflow: hidden;\n        text-overflow: ellipsis;\n        line-height: 1.3;\n    }\n\n    .file-size {\n        font-size: 0.75rem;\n        color: #94a3b8;\n        margin-top: 2px;\n    }\n\n    .file-remove-btn {\n        flex-shrink: 0;\n        width: 30px;\n        height: 30px;\n        display: flex;\n        align-items: center;\n        justify-content: center;\n        background: #fff5f5;\n        border: 1px solid #fecaca;\n        border-radius: 7px;\n        color: #dc2626;\n        cursor: pointer;\n        transition: all 0.2s ease;\n    }\n\n    .file-remove-btn:hover {\n        background: #fee2e2;\n        border-color: #fda4af;\n    }\n\n    .file-remove-btn i {\n        font-size: 0.875rem;\n    }\n\n    .upload-actions {\n        margin-top: 1.75rem;\n        background: #f8fafc;\n        border: 1px solid #e2e8f0;\n        border-radius: 12px;\n        padding: 1rem;\n    }\n\n    .upload-cancel-btn,\n    .upload-continue-btn {\n        font-size: 0.95rem;\n        padding: 0.75rem 1.4rem;\n        min-height: 44px;\n        font-weight: 600;\n        border-radius: 10px;\n    }\n\n    .upload-cancel-btn {\n        border: 1px solid #dbe3ee;\n        color: #334155;\n        background: #ffffff;\n    }\n\n    .upload-cancel-btn:hover {\n        border-color: #cbd5e1;\n        background: #f8fafc;\n    }\n\n    .upload-continue-btn {\n        box-shadow: 0 8px 18px rgba(13, 110, 253, 0.2);\n    }\n\n    .upload-continue-btn:hover:not(:disabled) {\n        transform: translateY(-1px);\n        box-shadow: 0 10px 20px rgba(13, 110, 253, 0.28);\n    }\n\n    @media (max-width: 767px) {\n        .upload-title {\n            font-size: 1.25rem;\n        }\n\n        .upload-subtitle {\n            font-size: 0.875rem;\n        }\n\n        .back-btn {\n            padding: 0.4rem 0.55rem;\n            min-width: 36px;\n        }\n\n        .category-helper-toggle {\n            padding: 0.875rem 1rem;\n        }\n\n        .helper-toggle-content {\n            font-size: 0.85rem;\n        }\n\n        .helper-toggle-content span {\n            display: -webkit-box;\n            -webkit-line-clamp: 2;\n            -webkit-box-orient: vertical;\n            overflow: hidden;\n        }\n\n        .category-helper-content {\n            padding: 0.95rem;\n        }\n\n        .category-examples {\n            grid-template-columns: 1fr;\n            gap: 0.5rem;\n        }\n\n        .category-example {\n            padding: 0.625rem;\n        }\n\n        .example-icon {\n            width: 36px;\n            height: 36px;\n        }\n\n        .example-icon i {\n            font-size: 1rem;\n        }\n\n        .example-title {\n            font-size: 0.8125rem;\n        }\n\n        .example-desc {\n            font-size: 0.6875rem;\n        }\n\n        .helper-footer {\n            padding: 0.75rem;\n            font-size: 0.8125rem;\n        }\n\n        .files-grid {\n            grid-template-columns: 1fr;\n            gap: 0.5rem;\n        }\n\n        .file-card-content {\n            padding: 0.8rem 0.85rem;\n        }\n\n        .file-icon-wrapper {\n            width: 32px;\n            height: 32px;\n        }\n\n        .file-icon-wrapper i {\n            font-size: 1.1rem;\n        }\n\n        .file-name {\n            font-size: 0.85rem;\n        }\n\n        .file-size {\n            font-size: 0.7rem;\n        }\n\n        .file-remove-btn {\n            width: 32px;\n            height: 32px;\n        }\n\n        .upload-cancel-btn,\n        .upload-continue-btn {\n            width: 100%;\n            padding: 0.875rem 1.5rem;\n            font-size: 0.95rem;\n        }\n\n        .upload-actions {\n            margin-top: 1rem;\n            padding: 0.85rem;\n        }\n    }\n\n    @media (min-width: 768px) and (max-width: 991px) {\n        .upload-title {\n            font-size: 1.5rem;\n        }\n    }\n"})]})},Q=[{value:"amh",label:"AMH Test"},{value:"semen",label:"Semen Analysis"},{value:"scans",label:"Ultrasound Scans"},{value:"hormone",label:"Hormone Panel"},{value:"hsg",label:"HSG Test"},{value:"genetic",label:"Genetic Testing"},{value:"discharge",label:"Discharge Summary"},{value:"other",label:"Other Report"}],X=function(e,n){var t=n[e]||"other";return(Q.find((function(e){return e.value===t}))||Q[7]).label},$=function(e){return"application/pdf"===e.type?"PDF":"Image"},K=function(e){var n=e.file;return(0,s.jsx)("div",{className:"rv-file-icon",children:(0,s.jsx)("i",{className:"fa ".concat("application/pdf"===n.type?"fa-file-pdf rv-pdf":"fa-file-image rv-img"),"aria-hidden":"true"})})},J='\n    @keyframes spin { to { transform: rotate(360deg); } }\n\n    .rv-root {\n        max-width: 820px;\n  
2      margin: 0 auto;\n        padding: 28px 20px 48px;\n        font-family: "Inter", sans-serif;\n        color: #0D1F35;\n        min-height: calc(100vh - 80px);\n    }\n\n    /* Header */\n    .rv-header {\n        display: flex;\n        align-items: flex-start;\n        justify-content: space-between;\n        gap: 16px;\n        margin-bottom: 28px;\n        flex-wrap: wrap;\n    }\n\n    .rv-title {\n        font-size: 1.55rem;\n        font-weight: 700;\n        color: #0D1F35;\n        margin: 0 0 6px;\n    }\n\n    .rv-subtitle {\n        font-size: 0.875rem;\n        color: #64748B;\n        margin: 0;\n        display: flex;\n        align-items: center;\n        gap: 6px;\n    }\n\n    .rv-count-badge {\n        display: inline-flex;\n        align-items: center;\n        justify-content: center;\n        width: 22px;\n        height: 22px;\n        background: #0EA5E9;\n        color: #ffffff;\n        font-size: 0.72rem;\n        font-weight: 700;\n        border-radius: 50%;\n    }\n\n    .rv-header-btns {\n        display: flex;\n        align-items: center;\n        gap: 8px;\n        flex-shrink: 0;\n    }\n\n    .rv-btn-ghost {\n        display: inline-flex;\n        align-items: center;\n        gap: 6px;\n        padding: 8px 14px;\n        font-size: 0.82rem;\n        font-weight: 600;\n        color: #475569;\n        background: #ffffff;\n        border: 1px solid #E2E8F0;\n        border-radius: 8px;\n        cursor: pointer;\n        transition: all 0.15s ease;\n        font-family: "Inter", sans-serif;\n        min-height: 36px;\n    }\n\n    .rv-btn-ghost:hover { background: #F8FAFC; border-color: #CBD5E1; color: #0D1F35; }\n    .rv-btn-ghost:focus-visible { outline: 2px solid #0EA5E9; outline-offset: 2px; }\n\n    /* Table */\n    .rv-table-wrap {\n        background: #ffffff;\n        border: 1px solid #E2E8F0;\n        border-radius: 14px;\n        overflow: hidden;\n        margin-bottom: 20px;\n        box-shadow: 0 4px 16px rgba(13, 31, 53, 0.05);\n    }\n\n    .rv-table { width: 100%; border-collapse: collapse; }\n\n    .rv-table thead { background: #F8FAFC; border-bottom: 1px solid #EDF1F7; }\n\n    .rv-table th {\n        padding: 12px 18px;\n        font-size: 0.7rem;\n        font-weight: 600;\n        color: #64748B;\n        text-transform: uppercase;\n        letter-spacing: 0.07em;\n        text-align: left;\n    }\n\n    .rv-th-right { text-align: right; }\n\n    .rv-table-row { border-bottom: 1px solid #F1F5F9; transition: background 0.12s ease; }\n    .rv-table-row:last-child { border-bottom: none; }\n    .rv-table-row:hover { background: #FAFCFF; }\n\n    .rv-table td { padding: 14px 18px; vertical-align: middle; }\n\n    .rv-file-row {\n        display: flex;\n        align-items: center;\n        gap: 12px;\n    }\n\n    .rv-file-icon {\n        width: 34px;\n        height: 34px;\n        flex-shrink: 0;\n        display: flex;\n        align-items: center;\n        justify-content: center;\n        background: #F8FAFC;\n        border: 1px solid #E5EAF1;\n        border-radius: 8px;\n        font-size: 1.05rem;\n    }\n\n    .rv-pdf { color: #DC2626; }\n    .rv-img { color: #2563EB; }\n\n    .rv-file-meta { min-width: 0; }\n\n    .rv-file-name {\n        font-size: 0.88rem;\n        font-weight: 600;\n        color: #0D1F35;\n        white-space: nowrap;\n        overflow: hidden;\n        text-overflow: ellipsis;\n        max-width: 320px;\n    }\n\n    .rv-file-type { font-size: 0.72rem; color: #94A3B8; margin-top: 2px; }\n\n    .rv-cat-pill {\n        display: inline-flex;\n        align-items: center;\n        padding: 4px 10px;\n        font-size: 0.75rem;\n        font-weight: 600;\n        color: #1E40AF;\n        background: #EFF6FF;\n        border: 1px solid #DBEAFE;\n        border-radius: 999px;\n        white-space: nowrap;\n    }\n\n    .rv-cat-pill-sm { font-size: 0.72rem; padding: 3px 9px; }\n\n    .rv-action-row {\n        display: flex;\n        align-items: center;\n        justify-content: flex-end;\n        gap: 8px;\n    }\n\n    .rv-btn-edit {\n        display: inline-flex;\n        align-items: center;\n        gap: 5px;\n        height: 32px;\n        padding: 0 12px;\n        font-size: 0.78rem;\n        font-weight: 600;\n        color: #1E40AF;\n        background: #EFF6FF;\n        border: 1px solid #DBEAFE;\n        border-radius: 7px;\n        cursor: pointer;\n        transition: all 0.15s ease;\n        font-family: "Inter", sans-serif;\n        white-space: nowrap;\n    }\n\n    .rv-btn-edit:hover { background: #DBEAFE; border-color: #93C5FD; }\n    .rv-btn-edit.active { color: #065F46; background: #D1FAE5; border-color: #6EE7B7; }\n    .rv-btn-edit:focus-visible { outline: 2px solid #0EA5E9; outline-offset: 2px; }\n    .rv-btn-edit-sm { height: 30px; font-size: 0.74rem; padding: 0 10px; }\n\n    .rv-btn-delete {\n        display: inline-flex;\n        align-items: center;\n        gap: 5px;\n        height: 32px;\n        padding: 0 12px;\n        font-size: 0.78rem;\n        font-weight: 600;\n        color: #B91C1C;\n        background: #FFF5F5;\n        border: 1px solid #FECACA;\n        border-radius: 7px;\n        cursor: pointer;\n        transition: all 0.15s ease;\n        font-family: "Inter", sans-serif;\n        white-space: nowrap;\n    }\n\n    .rv-btn-delete:hover { background: #FEE2E2; border-color: #FCA5A5; }\n    .rv-btn-delete:focus-visible { outline: 2px solid #DC2626; outline-offset: 2px; }\n\n    /* Mobile cards */\n    .rv-mobile-list { display: flex; flex-direction: column; gap: 10px; margin-bottom: 20px; }\n\n    .rv-mobile-card {\n        background: #ffffff;\n        border: 1px solid #E2E8F0;\n        border-radius: 12px;\n        padding: 14px 14px 12px;\n        box-shadow: 0 2px 8px rgba(13, 31, 53, 0.04);\n    }\n\n    .rv-mobile-top {\n        display: flex;\n        align-items: flex-start;\n        gap: 10px;\n        margin-bottom: 10px;\n    }\n\n    .rv-mobile-meta { flex: 1; min-width: 0; }\n    .rv-mobile-meta .rv-file-name { max-width: 100%; font-size: 0.84rem; }\n\n    .rv-mobile-delete {\n        flex-shrink: 0;\n        width: 32px;\n        height: 32px;\n        display: flex;\n        align-items: center;\n        justify-content: center;\n        background: #FFF5F5;\n        border: 1px solid #FECACA;\n        border-radius: 7px;\n        color: #DC2626;\n        cursor: pointer;\n        transition: all 0.15s ease;\n    }\n\n    .rv-mobile-delete:hover { background: #FEE2E2; }\n    .rv-mobile-delete:focus-visible { outline: 2px solid #DC2626; outline-offset: 2px; }\n\n    .rv-mobile-bottom {\n        display: flex;\n        align-items: center;\n        justify-content: space-between;\n        gap: 8px;\n    }\n\n    /* Actions */\n    .rv-actions {\n        display: flex;\n        gap: 12px;\n        padding: 16px;\n        background: #F8FAFC;\n        border: 1px solid #E2E8F0;\n        border-radius: 12px;\n    }\n\n    .rv-btn-save {\n        display: inline-flex;\n        align-items: center;\n        gap: 7px;\n        flex: 0 0 auto;\n        height: 46px;\n        padding: 0 20px;\n        font-size: 0.9rem;\n        font-weight: 600;\n        color: #475569;\n        background: #ffffff;\n        border: 1px solid #E2E8F0;\n        border-radius: 10px;\n        cursor: pointer;\n        font-family: "Inter", sans-serif;\n        transition: all 0.15s ease;\n        white-space: nowrap;\n    }\n\n    .rv-btn-save:hover:not(:disabled) { background: #F8FAFC; border-color: #CBD5E1; }\n    .rv-btn-save:disabled { opacity: 0.5;
2 cursor: not-allowed; }\n    .rv-btn-save:focus-visible { outline: 2px solid #0EA5E9; outline-offset: 2px; }\n\n    .rv-btn-analyse {\n        display: inline-flex;\n        align-items: center;\n        justify-content: center;\n        gap: 7px;\n        flex: 1;\n        height: 46px;\n        padding: 0 20px;\n        font-size: 0.95rem;\n        font-weight: 600;\n        color: #ffffff;\n        background: #1C2B3A;\n        border: none;\n        border-radius: 10px;\n        cursor: pointer;\n        font-family: "Inter", sans-serif;\n        transition: all 0.15s ease;\n        box-shadow: 0 4px 14px rgba(28, 43, 58, 0.2);\n        white-space: nowrap;\n    }\n\n    .rv-btn-analyse:hover:not(:disabled) {\n        background: #2E4057;\n        transform: translateY(-1px);\n        box-shadow: 0 6px 18px rgba(28, 43, 58, 0.3);\n    }\n\n    .rv-btn-analyse:disabled { opacity: 0.5; cursor: not-allowed; transform: none; box-shadow: none; }\n    .rv-btn-analyse:focus-visible { outline: 2px solid #5B8DB8; outline-offset: 2px; }\n\n    /* Visibility helpers */\n    .rv-desktop-only { display: block; }\n    .rv-mobile-only  { display: none; }\n\n    /* Category picker */\n    .rv-picker-overlay {\n        position: fixed;\n        inset: 0;\n        background: rgba(13, 31, 53, 0.5);\n        backdrop-filter: blur(3px);\n        z-index: 1060;\n        display: flex;\n        align-items: center;\n        justify-content: center;\n        padding: 16px;\n        animation: fadeIn 0.15s ease;\n    }\n\n    @keyframes fadeIn { from { opacity: 0; } to { opacity: 1; } }\n    @keyframes slideUp { from { opacity: 0; transform: translateY(16px); } to { opacity: 1; transform: translateY(0); } }\n\n    .rv-picker-modal {\n        width: 100%;\n        max-width: 520px;\n        background: #ffffff;\n        border-radius: 16px;\n        border: 1px solid #E2E8F0;\n        box-shadow: 0 24px 60px rgba(13, 31, 53, 0.25);\n        padding: 20px;\n        animation: slideUp 0.2s ease;\n    }\n\n    .rv-picker-header {\n        display: flex;\n        align-items: center;\n        justify-content: space-between;\n        margin-bottom: 6px;\n    }\n\n    .rv-picker-title {\n        font-size: 1rem;\n        font-weight: 700;\n        color: #0D1F35;\n        margin: 0;\n    }\n\n    .rv-picker-close {\n        width: 30px;\n        height: 30px;\n        display: flex;\n        align-items: center;\n        justify-content: center;\n        background: #F1F5F9;\n        border: none;\n        border-radius: 7px;\n        color: #64748B;\n        cursor: pointer;\n        transition: all 0.15s ease;\n    }\n\n    .rv-picker-close:hover { background: #E2E8F0; color: #0D1F35; }\n    .rv-picker-close:focus-visible { outline: 2px solid #0EA5E9; outline-offset: 2px; }\n\n    .rv-picker-file {\n        font-size: 0.78rem;\n        color: #64748B;\n        margin: 0 0 14px;\n        white-space: nowrap;\n        overflow: hidden;\n        text-overflow: ellipsis;\n    }\n\n    .rv-picker-grid {\n        display: grid;\n        grid-template-columns: repeat(2, 1fr);\n        gap: 8px;\n    }\n\n    .rv-picker-opt {\n        height: 42px;\n        border: 1.5px solid #E2E8F0;\n        border-radius: 9px;\n        background: #ffffff;\n        color: #334155;\n        font-size: 0.82rem;\n        font-weight: 600;\n        cursor: pointer;\n        transition: all 0.15s ease;\n        font-family: "Inter", sans-serif;\n    }\n\n    .rv-picker-opt:hover { border-color: #93C5FD; background: #F0F9FF; color: #0369A1; }\n\n    .rv-picker-opt.selected {\n        border-color: #0EA5E9;\n        background: #EFF6FF;\n        color: #0369A1;\n        box-shadow: inset 0 0 0 1px rgba(14, 165, 233, 0.2);\n    }\n\n    .rv-picker-opt:focus-visible { outline: 2px solid #0EA5E9; outline-offset: 2px; }\n\n    /* Responsive */\n    @media (max-width: 640px) {\n        .rv-root { padding: 20px 16px 40px; min-height: unset; }\n\n        .rv-header { margin-bottom: 20px; }\n        .rv-title { font-size: 1.3rem; }\n\n        .rv-desktop-only { display: none; }\n        .rv-mobile-only  { display: flex; flex-direction: column; }\n\n        .rv-actions {\n            flex-direction: column;\n            gap: 10px;\n            padding: 14px;\n        }\n\n        .rv-btn-save { flex: 1; justify-content: center; height: 52px; }\n        .rv-btn-analyse { height: 52px; font-size: 1rem; }\n\n        .rv-picker-modal { padding: 16px; align-self: flex-end; border-radius: 14px 14px 12px 12px; max-width: 100%; }\n\n        .rv-picker-grid { grid-template-columns: 1fr; }\n    }
2\n',ee=function(e){var n=e.uploadedFiles,t=e.fileCategories,r=e.editingCategory,o=e.setEditingCategory,i=e.isAnalyzing,a=e.isSavingProgress,l=e.onRemoveFile,c=e.onUpdateCategory,d=e.onSaveProgress,u=e.onAnalysisClick,f=e.onAddMore,p=e.onHome;return(0,s.jsxs)("div",{className:"rv-root",children:[(0,s.jsxs)("div",{className:"rv-header",children:[(0,s.jsxs)("div",{className:"rv-header-left",children:[(0,s.jsx)("h1",{className:"rv-title",children:"Review Your Documents"}),(0,s.jsxs)("p",{className:"rv-subtitle",children:[(0,s.jsx)("span",{className:"rv-count-badge",children:n.length}),1===n.length?" file":" files"," ready for analysis"]})]}),(0,s.jsxs)("div",{className:"rv-header-btns",children:[(0,s.jsxs)("button",{className:"rv-btn-ghost",onClick:p,"aria-label":"Go to home",children:[(0,s.jsxs)("svg",{width:"14",height:"14",viewBox:"0 0 24 24",fill:"none",stroke:"currentColor",strokeWidth:"2.5",strokeLinecap:"round",strokeLinejoin:"round","aria-hidden":"true",children:[(0,s.jsx)("path",{d:"M3 9l9-7 9 7v11a2 2 0 0 1-2 2H5a2 2 0 0 1-2-2z"}),(0,s.jsx)("polyline",{points:"9 22 9 12 15 12 15 22"})]}),(0,s.jsx)("span",{children:"Home"})]}),(0,s.jsxs)("button",{className:"rv-btn-ghost",onClick:f,"aria-label":"Add more files",children:[(0,s.jsxs)("svg",{width:"14",height:"14",viewBox:"0 0 24 24",fill:"none",stroke:"currentColor",strokeWidth:"2.5",strokeLinecap:"round",strokeLinejoin:"round","aria-hidden":"true",children:[(0,s.jsx)("line",{x1:"12",y1:"5",x2:"12",y2:"19"}),(0,s.jsx)("line",{x1:"5",y1:"12",x2:"19",y2:"12"})]}),(0,s.jsx)("span",{children:"Add More"})]})]})]}),(0,s.jsx)("div",{className:"rv-table-wrap rv-desktop-only",children:(0,s.jsxs)("table",{className:"rv-table",children:[(0,s.jsx)("thead",{children:(0,s.jsxs)("tr",{children:[(0,s.jsx)("th",{style:{width:"52%"},children:"Report"}),(0,s.jsx)("th",{style:{width:"24%"},children:"Category"}),(0,s.jsx)("th",{style:{width:"24%"},className:"rv-th-right",children:"Actions"})]})}),(0,s.jsx)("tbody",{children:n.map((function(e,n){return(0,s.jsxs)("tr",{className:"rv-table-row",children:[(0,s.jsx)("td",{children:(0,s.jsxs)("div",{className:"rv-file-row",children:[(0,s.jsx)(K,{file:e}),(0,s.jsxs)("div",{className:"rv-file-meta",children:[(0,s.jsx)("span",{className:"rv-file-name",children:e.name}),(0,s.jsx)("span",{className:"rv-file-type",children:$(e)})]})]})}),(0,s.jsx)("td",{children:(0,s.jsx)("span",{className:"rv-cat-pill",children:X(n,t)})}),(0,s.jsx)("td",{children:(0,s.jsxs)("div",{className:"rv-action-row",children:[(0,s.jsxs)("button",{className:"rv-btn-edit".concat(r===n?" active":""),onClick:function(){return o(r===n?null:n)},children:[(0,s.jsxs)("svg",{width:"12",height:"12",viewBox:"0 0 24 24",fill:"none",stroke:"currentColor",strokeWidth:"2.5",strokeLinecap:"round",strokeLinejoin:"round","aria-hidden":"true",children:[(0,s.jsx)("path",{d:"M11 4H4a2 2 0 0 0-2 2v14a2 2 0 0 0 2 2h14a2 2 0 0 0 2-2v-7"}),(0,s.jsx)("path",{d:"M18.5 2.5a2.121 2.121 0 0 1 3 3L12 15l-4 1 1-4 9.5-9.5z"})]}),"Edit"]}),(0,s.jsxs)("button",{className:"rv-btn-delete",onClick:function(){return l(n)},"aria-label":"Remove ".concat(e.name),children:[(0,s.jsxs)("svg",{width:"12",height:"12",viewBox:"0 0 24 24",fill:"none",stroke:"currentColor",strokeWidth:"2.5",strokeLinecap:"round",strokeLinejoin:"round","aria-hidden":"true",children:[(0,s.jsx)("polyline",{points:"3 6 5 6 21 6"}),(0,s.jsx)("path",{d:"M19 6v14a2 2 0 0 1-2 2H7a2 2 0 0 1-2-2V6m3 0V4a2 2 0 0 1 2-2h4a2 2 0 0 1 2 2v2"})]}),"Delete"]})]})})]},n)}))})]})}),(0,s.jsx)("div",{className:"rv-mobile-list rv-mobile-only",children:n.map((function(e,n){return(0,s.jsxs)("div",{className:"rv-mobile-card",children:[(0,s.jsxs)("div",{className:"rv-mobile-top",children:[(0,s.jsx)(K,{file:e}),(0,s.jsxs)("div",{className:"rv-mobile-meta",children:[(0,s.jsx)("div",{className:"rv-file-name",children:e.name}),(0,s.jsxs)("div",{className:"rv-file-type",children:[$(e)," · ",(e.size/1048576).toFixed(2)," MB"]})]}),(0,s.jsx)("button",{className:"rv-mobile-delete",onClick:function(){return l(n)},"aria-label":"Remove ".concat(e.name),children:(0,s.jsxs)("svg",{width:"13",height:"13",viewBox:"0 0 24 24",fill:"none",stroke:"currentColor",strokeWidth:"2.5",strokeLinecap:"round",strokeLinejoin:"round","aria-hidden":"true",children:[(0,s.jsx)("polyline",{points:"3 6 5 6 21 6"}),(0,s.jsx)("path",{d:"M19 6v14a2 2 0 0 1-2 2H7a2 2 0 0 1-2-2V6m3 0V4a2 2 0 0 1 2-2h4a2 2 0 0 1 2 2v2"})]})})]}),(0,s.jsxs)("div",{className:"rv-mobile-bottom",children:[(0,s.jsx)("span",{className:"rv-cat-pill rv-cat-pill-sm",children:X(n,t)}),(0,s.jsxs)("button",{className:"rv-btn-edit rv-btn-edit-sm".concat(r===n?" active":""),onClick:function(){return o(r===n?null:n)},children:[(0,s.jsxs)("svg",{width:"11",height:"11",viewBox:"0 0 24 24",fill:"none",stroke:"currentColor",strokeWidth:"2.5",strokeLinecap:"round",strokeLinejoin:"round","aria-hidden":"true",children:[(0,s.jsx)("path",{d:"M11 4H4a2 2 0 0 0-2 2v14a2 2 0 0 0 2 2h14a2 2 0 0 0 2-2v-7"}),(0,s.jsx)("path",{d:"M18.5 2.5a2.121 2.121 0 0 1 3 3L12 15l-4 1 1-4 9.5-9.5z"})]}),"Change category"]})]})]},n)}))}),(0,s.jsxs)("div",{className:"rv-actions",children:[(0,s.jsx)("button",{className:"rv-btn-save",onClick:d,disabled:a||0===n.length,children:a?(0,s.jsxs)(s.Fragment,{children:[(0,s.jsx)("svg",{width:"14",height:"14",viewBox:"0 0 24 24",fill:"none",stroke:"currentColor",strokeWidth:"2.5",strokeLinecap:"round","aria-hidden":"true",style:{animation:"spin 0.8s linear infinite"},children:(0,s.jsx)("path",{d:"M21 12a9 9 0 1 1-6.219-8.56"})})," Saving..."]}):(0,s.jsxs)(s.Fragment,{children:[(0,s.jsxs)("svg",{width:"14",height:"14",viewBox:"0 0 24 24",fill:"none",stroke:"currentColor",strokeWidth:"2.5",strokeLinecap:"round",strokeLinejoin:"round","aria-hidden":"true",children:[(0,s.jsx)("path",{d:"M19 21H5a2 2 0 0 1-2-2V5a2 2 0 0 1 2-2h11l5 5v11a2 2 0 0 1-2 2z"}),(0,s.jsx)("polyline",{points:"17 21 17 13 7 13 7 21"}),(0,s.jsx)("polyline",{points:"7 3 7 8 15 8"})]})," Save Progress"]})}),(0,s.jsx)("button",{className:"rv-btn-analyse",onClick:u,disabled:i||
20===n.length,children:i?(0,s.jsxs)(s.Fragment,{children:[(0,s.jsx)("svg",{width:"14",height:"14",viewBox:"0 0 24 24",fill:"none",stroke:"currentColor",strokeWidth:"2.5",strokeLinecap:"round","aria-hidden":"true",style:{animation:"spin 0.8s linear infinite"},children:(0,s.jsx)("path",{d:"M21 12a9 9 0 1 1-6.219-8.56"})})," Analysing..."]}):(0,s.jsxs)(s.Fragment,{children:[(0,s.jsxs)("svg",{width:"14",height:"14",viewBox:"0 0 24 24",fill:"none",stroke:"currentColor",strokeWidth:"2.5",strokeLinecap:"round",strokeLinejoin:"round","aria-hidden":"true",children:[(0,s.jsx)("path",{d:"M14 2H6a2 2 0 0 0-2 2v16a2 2 0 0 0 2 2h12a2 2 0 0 0 2-2V8z"}),(0,s.jsx)("polyline",{points:"14 2 14 8 20 8"}),(0,s.jsx)("line",{x1:"16",y1:"13",x2:"8",y2:"13"}),(0,s.jsx)("line",{x1:"16",y1:"17",x2:"8",y2:"17"})]})," Generate Report Summary"]})})]}),null!==r&&n[r]&&(0,s.jsx)("div",{className:"rv-picker-overlay",onClick:function(){return o(null)},role:"dialog","aria-modal":"true","aria-label":"Select report category",children:(0,s.jsxs)("div",{className:"rv-picker-modal",onClick:function(e){return e.stopPropagation()},children:[(0,s.jsxs)("div",{className:"rv-picker-header",children:[(0,s.jsx)("h2",{className:"rv-picker-title",children:"Select category"}),(0,s.jsx)("button",{className:"rv-picker-close",onClick:function(){return o(null)},"aria-label":"Close",children:(0,s.jsxs)("svg",{width:"14",height:"14",viewBox:"0 0 24 24",fill:"none",stroke:"currentColor",strokeWidth:"2.5",strokeLinecap:"round",strokeLinejoin:"round","aria-hidden":"true",children:[(0,s.jsx)("line",{x1:"18",y1:"6",x2:"6",y2:"18"}),(0,s.jsx)("line",{x1:"6",y1:"6",x2:"18",y2:"18"})]})})]}),(0,s.jsx)("p",{className:"rv-picker-file",children:n[r].name}),(0,s.jsx)("div",{className:"rv-picker-grid",children:Q.map((function(e){return(0,s.jsx)("button",{className:"rv-picker-opt".concat((t[r]||"other")===e.value?" selected":""),onClick:function(){c(r,e.value),o(null)},children:e.label},e.value)}))})]})}),(0,s.jsx)("style",{children:J}),(0,s.jsx)("style",{children:"\n    .review-header {\n        display: flex;\n        justify-content: space-between;\n        align-items: center;\n        margin-bottom: 2rem;\n        gap: 1rem;\n    }\n\n    .review-title {\n        font-size: 1.8rem;\n        font-weight: 700;\n        color: #1F232D;\n        margin-bottom: 0.35rem;\n        letter-spacing: -0.02em;\n    }\n\n    .review-subtitle {\n        font-size: 0.95rem;\n        color: #6b7280;\n        margin: 0;\n    }\n\n    .btn-add-more {\n        padding: 0.62rem 1.05rem;\n        font-size: 0.86rem;\n        font-weight: 600;\n        color: #334155;\n        background: #ffffff;\n        border: 1px solid #dbe3ee;\n        border-radius: 9px;\n        cursor: pointer;\n        transition: all 0.2s ease;\n        white-space: nowrap;\n    }\n\n    .btn-add-more:hover {\n        border-color: #bfdbfe;\n        background: #f8fbff;\n        color: #1e3a8a;\n    }\n\n    .review-table-wrapper {\n        background: #ffffff;\n        border: 1px solid #e2e8f0;\n        border-radius: 14px;\n        overflow: hidden;\n        margin-bottom: 2rem;\n        box-shadow: 0 12px 26px rgba(15, 23, 42, 0.05);\n    }\n\n    .review-table {\n        width: 100%;\n        border-collapse: collapse;\n    }\n\n    .review-table thead {\n        background: #fbfcfe;\n        border-bottom: 1px solid #edf1f7;\n    }\n\n    .review-table th {\n        padding: 0.95rem 1.25rem;\n        text-align: left;\n        font-size: 0.72rem;\n        font-weight: 600;\n        color: #64748b;\n        text-transform: uppercase;\n        letter-spacing: 0.06em;\n    }\n\n    .review-table-row {\n        border-bottom: 1px solid #f1f5f9;\n        transition: background 0.15s ease;\n    }\n\n    .review-table-row:last-child {\n        border-bottom: none;\n    }\n\n    .review-table-row:hover {\n        background: #fbfdff;\n    }\n\n    .review-table td {\n        padding: 1.05rem 1.25rem;\n        vertical-align: middle;\n    }\n\n    .file-info {\n        display: flex;\n        align-items: center;\n        gap: 0.875rem;\n    }\n\n    .file-info i {\n        font-size: 1.28rem;\n        flex-shrink: 0;\n    }\n\n    .file-meta {\n        min-width: 0;\n        display: flex;\n        flex-direction: column;\n        gap: 0.2rem;\n    }\n\n    .file-icon-pdf {\n        color: #dc2626;\n    }\n\n    .file-icon-image {\n        color: #2563eb;\n    }\n\n    .file-name {\n        font-size: 0.92rem;\n        font-weight: 600;\n        color: #1F232D;\n        overflow: hidden;\n        text-overflow: ellipsis;\n        white-space: nowrap;\n    }\n\n    .file-type {\n        font-size: 0.76rem;\n        color: #94a3b8;\n    }\n\n    .category-pill {\n        display: inline-flex;\n        align-items: center;\n        padding: 0.36rem 0.76rem;\n        font-size: 0.79rem;\n        font-weight: 600;\n        color: #1e3a8a;\n        background: #eff6ff;\n        border: 1px solid #dbeafe;\n        border-radius: 999px;\n        white-space: nowrap;\n    }\n\n    .review-actions-cell {\n        display: flex;\n        justify-content: flex-end;\n        align-items: center;\n        gap: 0.625rem;\n    }\n\n    .action-icon {\n        width: 0.85rem;\n        font-size: 0.78rem;\n        line-height: 1;\n        text-align: center;\n        flex-shrink: 0;\n    }\n\n    .row-action-edit {\n        height: 36px;\n        padding: 0 0.875rem;\n        display: inline-flex;\n        align-items: center;\n        justify-content: center;\n        gap: 0.35rem;\n        border: 1px solid #dbe3ee;\n        border-radius: 8px;\n        background: #ffffff;\n        color: #1e3a8a;\n        font-size: 0.8rem;\n        font-weight: 600;\n        cursor: pointer;\n        transition: all 0.2s ease;\n        white-space: nowrap;\n    }\n\n    .row-action-edit:hover {\n        border-color: #0d6efd;\n        background: #eff6ff;\n    }\n\n    .row-action-edit.is-editing {\n        color: #0f766e;\n        border-color: #5eead4;\n        background: #f0fdfa;\n    }\n\n    .btn-remove {\n        height: 36px;\n        display: inline-flex;\n        align-items: center;\n        justify-content: center;\n        gap: 0.35rem;\n        padding: 0 0.8rem;\n        background: #fff5f5;\n        border: 1px solid #fecaca;\n        border-radius: 8px;\n        color: #b91c1c;\n        font-size: 0.8rem;\n        font-weight: 600;\n        cursor: pointer;\n        transition: all 0.2s ease;\n        white-space: nowrap;\n    }\n\n    .btn-remove:hover {\n        background: #fee2e2;\n        border-color: #fca5a5;\n    }\n\n    .review-mobile-list {\n        display: none;\n    }\n\n    .review-actions {\n        display: flex;\n        gap: 1rem;\n        padding: 1rem;\n        margin-top: 0.5rem;\n        border: 1px solid #e2e8f0;\n        border-radius: 12px;\n        background: #f8fafc;\n    }\n\n    .btn-save,\n    .btn-analyze {\n        flex: 1;\n        min-height: 46px;\n        padding: 0.85rem 1.2rem;\n        font-size: 0.95rem;\n        font-weight: 600;\n        border-radius: 10px;\n        border: none;\n        cursor: pointer;\n        transition: all 0.2s ease;\n    }\n\n    .btn-save {\n        color: #334155;\n        background: #ffffff;\n        border: 1px solid #dbe3ee;\n    }\n\n    .btn-save:hover {\n        background: #f9fafb;\n        border-color: #d1d5db;\n    }\n\n    .btn-analyze {\n        color: #ffffff;\n        background: #0d6efd;\n        box-shadow: 0 4px 12px rgba(13, 110, 253, 0.25);\n    }\n\n    .btn-analyze:hover:not(:disabled) {\n        transform: translateY(-2px);\n        box-shadow: 0 6px 16px rgba(13, 110, 253, 0.35);\n    }\n\n    .btn-analyze:disabled {\n        opacity: 0.5;
2\n        cursor: not-allowed;\n    }\n\n    .analysis-overlay {\n        position: fixed;\n        inset: 0;\n        background: rgba(255, 255, 255, 0.95);\n        backdrop-filter: blur(8px);\n        z-index: 1050;\n        display: flex;\n        flex-direction: column;\n        align-items: center;\n        justify-content: center;\n    }\n\n    .category-picker-overlay {\n        position: fixed;\n        inset: 0;\n        background: rgba(15, 23, 42, 0.45);\n        backdrop-filter: blur(3px);\n        z-index: 1060;\n        display: flex;\n        align-items: center;\n        justify-content: center;\n        padding: 1rem;\n    }\n\n    .category-picker-modal {\n        width: 100%;\n        max-width: 580px;\n        background: #ffffff;\n        border-radius: 14px;\n        border: 1px solid #dbe3ee;\n        box-shadow: 0 24px 52px rgba(15, 23, 42, 0.26);\n        padding: 1.2rem;\n    }\n\n    .category-picker-header {\n        display: flex;\n        align-items: center;\n        justify-content: space-between;\n        gap: 1rem;\n        margin-bottom: 0.35rem;\n    }\n\n    .category-picker-header h5 {\n        margin: 0;\n        font-size: 1rem;\n        font-weight: 700;\n        color: #1F232D;\n    }\n\n    .category-picker-close {\n        width: 30px;\n        height: 30px;\n        border: 1px solid #e5e7eb;\n        border-radius: 8px;\n        background: #ffffff;\n        color: #6b7280;\n        display: inline-flex;\n        align-items: center;\n        justify-content: center;\n        cursor: pointer;\n    }\n\n    .category-picker-file {\n        margin: 0 0 1rem 0;\n        font-size: 0.79rem;\n        color: #64748b;\n        white-space: nowrap;\n        overflow: hidden;\n        text-overflow: ellipsis;\n    }\n\n    .category-picker-grid {\n        display: grid;\n        grid-template-columns: repeat(2, minmax(0, 1fr));\n        gap: 0.55rem;\n    }\n\n    .category-picker-option {\n        height: 40px;\n        border: 1px solid #e2e8f0;\n        border-radius: 9px;\n        background: #ffffff;\n        color: #334155;\n        font-size: 0.79rem;\n        font-weight: 600;\n        cursor: pointer;\n        transition: all 0.18s ease;\n    }\n\n    .category-picker-option:hover {\n        border-color: #93c5fd;\n        background: #f8fbff;\n    }\n\n    .category-picker-option.selected {\n        border-color: #0d6efd;\n        background: #eff6ff;\n        color: #0d47a1;\n        box-shadow: inset 0 0 0 1px rgba(13, 110, 253, 0.15);\n    }\n\n    @media (max-width: 767px) {\n        .review-header {\n            flex-direction: column;\n            align-items: flex-start;\n            margin-bottom: 1.5rem;\n        }\n\n        .review-title {\n            font-size: 1.25rem;\n        }\n\n        .review-subtitle {\n            font-size: 0.875rem;\n        }\n\n        .btn-add-more {\n            align-self: flex-start;\n            padding: 0.5rem 0.9rem;\n            font-size: 0.84rem;\n        }\n\n        .review-desktop {\n            display: none;\n        }\n\n        .review-mobile-list {\n            display: flex;\n            flex-direction: column;\n            gap: 0.7rem;\n            padding: 0.85rem;\n        }\n\n        .review-mobile-card {\n            background: #ffffff;\n            border: 1px solid #e2e8f0;\n            border-radius: 12px;\n            padding: 0.85rem 0.9rem;\n            box-shadow: 0 8px 20px rgba(15, 23, 42, 0.04);\n        }\n\n        .mobile-card-top {\n            display: flex;\n            justify-content: space-between;\n            align-items: center;\n            gap: 0.8rem;\n            margin-bottom: 0.65rem;\n        }\n\n        .mobile-file-main {\n            display: flex;\n            align-items: center;\n            gap: 0.75rem;\n            min-width: 0;\n            flex: 1;\n        }\n\n        .mobile-file-main i {\n            font-size: 1.2rem;\n            flex-shrink: 0;\n        }\n\n        .mobile-file-info {\n            min-width: 0;\n        }\n\n        .mobile-file-name {\n            font-size: 0.86rem;\n            font-weight: 600;\n            color: #1F232D;\n            overflow: hidden;\n            text-overflow: ellipsis;\n            white-space: nowrap;\n            margin-bottom: 0.15rem;\n        }\n\n        .mobile-file-type {\n            font-size: 0.73rem;\n            color: #6b7280;\n        }\n\n        .mobile-remove-btn-icon {\n            width: 30px;\n            height: 30px;\n            display: flex;\n            align-items: center;\n            justify-content: center;\n            background: #fff5f5;\n            border: 1px solid #fecaca;\n            color: #dc2626;\n            cursor: pointer;\n            border-radius: 6px;\n            transition: all 0.2s ease;\n        }\n\n        .mobile-remove-btn-icon:hover {\n            background: #fee2e2;\n            border-color: #fda4af;\n        }\n\n        .mobile-card-bottom {\n            display: flex;\n            align-items: center;\n            justify-content: space-between;\n            gap: 0.6rem;\n            min-height: 34px;\n        }\n\n        .mobile-category-pill {\n            font-size: 0.76rem;\n            padding: 0.28rem 0.62rem;\n            max-width: calc(100% - 110px);\n            overflow: hidden;\n            text-overflow: ellipsis;\n        }\n\n        .mobile-edit-btn {\n            height: 31px;\n            display: inline-flex;\n            align-items: center;\n            justify-content: center;\n            gap: 0.3rem;\n            padding: 0 0.7rem;\n            border: 1px solid #dbe3ee;\n            border-radius: 7px;\n            background: #ffffff;\n            color: #1e3a8a;\n            font-size: 0.74rem;\n            font-weight: 600;\n            cursor: pointer;\n            transition: all 0.2s ease;\n        }\n\n        .mobile-edit-btn:hover {\n            border-color: #93c5fd;\n            background: #eff6ff;\n        }\n\n        .mobile-edit-btn.is-editing {\n            color: #0f766e;\n            border-color: #5eead4;\n            background: #f0fdfa;\n        }\n\n        .category-picker-modal {\n            align-self: flex-end;\n            max-width: none;\n            border-radius: 14px 14px 12px 12px;\n        }\n\n        .category-picker-grid {\n            grid-template-columns: 1fr;\n        }\n\n        .review-actions {\n            flex-direction: column;\n            gap: 0.75rem;\n            padding: 0.85rem;\n        }\n\n        .btn-save,\n        .btn-analyze {\n            width: 100%;\n        }\n    }\n"})]})},ne=function(e){var n=e.showAuthModal,t=e.showAnalysisModal,r=e.userEmail,o=e.onCloseAuth,i=e.onCloseAnalysis,a=e.onRegisterClick,l=e.onLoginClick,d=e.onConfirmAnalysis,u=!localStorage.getItem("token"),f=function(){return(0,c.L9)(c.OI.REPORT_ANALYZER_AUTH_GATE_ACTION)};return(0,s.jsxs)(s.Fragment,{children:[n&&(0,s.jsx)("div",{className:"ivf-auth-modal-backdrop",onClick:function(){f(),o()},children:(0,s.jsxs)("div",{className:"ivf-auth-modal-card",onClick:function(e){return e.stopPropagation()},children:[(0,s.jsx)("button",{type:"button",className:"ivf-auth-modal-close",onClick:function(){f(),o()},"aria-label":"Close",children:(0,s.jsx)("i",{className:"fa fa-times"})}),(0,s.jsx)("div",{className:"ivf-auth-modal-icon",children:(0,s.jsx)("i",{className:"fa fa-lock"})}),(0,s.jsx)("h5",{className:"ivf-auth-modal-title",children:"Save Your Progress"}),(0,s.jsx)("p",{className:"ivf-auth-modal-subtitle",children:"Create a free account to securely save your reports"}),(0,s.jsxs)("div",{className:"ivf-auth-benefits",children:[(0,s.jsxs)("div",{className:"ivf-auth-benefit",children:[(0,s.jsx)("i",{className:"fa fa-check-circle"}),(0,s.jsx)("span",{children:"Access your reports from any device"})]}),(0,s.jsxs)("div",{className:"ivf-auth-benefit",children:[(0,s.jsx)("i",{className:"fa fa-check-circle"}),(0,s.jsx)("span",{children:"Track your fertility journey over time"})]}),(0,s.jsxs)("div",{className:"ivf-auth-benefit",children:[(0,s.jsx)("i",{className:"fa fa-check-circle"}),(0,s.jsx)("span",{children:"Share with your doctor securely"})]})]}),(0,s.jsxs)("div",{className:"ivf-auth-modal-actions",children:[(0,s.jsxs)("button",{type:"button",className:"ivf-auth-btn-primary",onClick:function(){f(),a()},children:[(0,s.jsx)("i",{className:"fa fa-user-plus me-2"}),"Create Free Account"]}),(0,s.jsxs)("button",{type:"button",className:"ivf-auth-btn-secondary",onClick:function(){f(),l()},children:["Already have an account? ",(0,s.jsx)("strong",{children:"Sign In"})]})]})]})}),t&&(0,s.jsx)("div",{className:"ivf-auth-modal-backdrop",onClick:function(){u&&f(),i()},children:(0,s.jsxs)("div",{className:"ivf-analysis-modal-card",onClick:function(e){return e.stopPropagation()},children:[(0,s.jsx)("button",{type:"button",className:"ivf-auth-modal-close",onClick:function(){u&&f(),i()},"aria-label":"Close",children:(0,s.jsx)("i",{className:"fa fa-times"})}),localStorage.getItem("token")?(0,s.jsxs)(s.Fragment,{children:[(0,s.jsx)("div",{className:"ivf-analysis-success-icon",children:(0,s.jsx)("i",{className:"fa fa-check"})}),(0,s.jsx)("h5",{className:"ivf-auth-modal-title",children:"Analysis Submitted!"}),(0,s.jsx)("p",{className:"ivf-auth-modal-subtitle",children:"Your reports have been submitted for analysis."}),(0,s.jsxs)("div",{className:"ivf-analysis-info-box",children:[(0,s.jsxs)("div",{className:"ivf-analysis-info-row",children:[(0,s.jsx)("i",{className:"fa fa-clock"}),(0,s.jsxs)("div",{children:[(0,s.jsx)("strong",{children:"Processing Time"}),(0,s.jsx)("span",{children:"Typically up to 12 hours"})]})]}),(0,s.jsxs)("div",{className:"ivf-analysis-info-row",children:[(0,s.jsx)("i",{className:"fa fa-envelope"}),(0,s.jsxs)("div",{children:[(0,s.jsx)("strong",{children:"Email Notification"}),(0,s.jsx)("span",{children:r||"Your registered email"})]})]})]}),(0,s.jsxs)("div",{className:"ivf-auth-modal-actions",children:[(0,s.jsxs)("button",{type:"button",className:"ivf-auth-btn-primary",onClick:d,children:[(0,s.jsx)("i",{className:"fa fa-check me-2"}),"Got It"]}),(0,s.jsx)("button",{type:"button",className:"ivf-auth-btn-secondary",onClick:i,children:"Cancel"})]})]}):(0,s.jsxs)(s.Fragment,{children:[(0,s.jsx)("div",{className:"ivf-auth-modal-icon",children:(0,s.jsx)("i",{className:"fa fa-hourglass-half"})}),(0,s.jsx)("h5",{className:"ivf-auth-modal-title",children:"Authentication Required"}),(0,s.jsx)("p",{className:"ivf-auth-modal-subtitle",children:"Report analysis takes up to 12 hours. Create a free account to receive email notifications when ready."}),(0,s.jsxs)("div",{className:"ivf-auth-benefits",children:[(0,s.jsxs)("div",{className:"ivf-auth-benefit",children:[(0,s.jsx)("i",{className:"fa fa-check-circle"}
2),(0,s.jsx)("span",{children:"Get email notification when analysis is complete"})]}),(0,s.jsxs)("div",{className:"ivf-auth-benefit",children:[(0,s.jsx)("i",{className:"fa fa-check-circle"}),(0,s.jsx)("span",{children:"Access your reports from any device"})]}),(0,s.jsxs)("div",{className:"ivf-auth-benefit",children:[(0,s.jsx)("i",{className:"fa fa-check-circle"}),(0,s.jsx)("span",{children:"Securely store all your fertility reports"})]})]}),(0,s.jsxs)("div",{className:"ivf-auth-modal-actions",children:[(0,s.jsxs)("button",{type:"button",className:"ivf-auth-btn-primary",onClick:function(){f(),a()},children:[(0,s.jsx)("i",{className:"fa fa-user-plus me-2"}),"Create Free Account"]}),(0,s.jsxs)("button",{type:"button",className:"ivf-auth-btn-secondary",onClick:function(){f(),l()},children:["Already have an account? ",(0,s.jsx)("strong",{children:"Sign In"})]})]})]})]})})]})};function te(e){return te="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},te(e)}function re(e,n){return function(e){if(Array.isArray(e))return e}(e)||function(e,n){var t=null==e?null:"undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(null!=t){var r,o,i,a,s=[],l=!0,c=!1;try{if(i=(t=t.call(e)).next,0===n){if(Object(t)!==t)return;l=!1}else for(;!(l=(r=i.call(t)).done)&&(s.push(r.value),s.length!==n);l=!0);}catch(e){c=!0,o=e}finally{try{if(!l&&null!=t.return&&(a=t.return(),Object(a)!==a))return}finally{if(c)throw o}}return s}}(e,n)||de(e,n)||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 oe(e){return function(e){if(Array.isArray(e))return ue(e)}(e)||function(e){if("undefined"!=typeof Symbol&&null!=e[Symbol.iterator]||null!=e["@@iterator"])return Array.from(e)}(e)||de(e)||function(){throw new TypeError("Invalid attempt to spread non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function ie(e,n){if(!(e instanceof n))throw new TypeError("Cannot call a class as a function")}function ae(e,n){for(var t=0;t<n.length;t++){var r=n[t];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,le(r.key),r)}}function se(e,n,t){return n&&ae(e.prototype,n),t&&ae(e,t),Object.defineProperty(e,"prototype",{writable:!1}),e}function le(e){var n=function(e,n){if("object"!=te(e)||!e)return e;var t=e[Symbol.toPrimitive];if(void 0!==t){var r=t.call(e,n||"default");if("object"!=te(r))return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===n?String:Number)(e)}(e,"string");return"symbol"==te(n)?n:String(n)}function ce(e,n){var t="undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(!t){if(Array.isArray(e)||(t=de(e))||n&&e&&"number"==typeof e.length){t&&(e=t);var r=0,o=function(){};return{s:o,n:function(){return r>=e.length?{done:!0}:{done:!1,value:e[r++]}},e:function(e){throw e},f:o}}throw new TypeError("Invalid attempt to iterate non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}var i,a=!0,s=!1;return{s:function(){t=t.call(e)},n:function(){var e=t.next();return a=e.done,e},e:function(e){s=!0,i=e},f:function(){try{a||null==t.return||t.return()}finally{if(s)throw i}}}}function de(e,n){if(e){if("string"==typeof e)return ue(e,n);var t=Object.prototype.toString.call(e).slice(8,-1);return"Object"===t&&e.constructor&&(t=e.constructor.name),"Map"===t||"Set"===t?Array.from(e):"Arguments"===t||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(t)?ue(e,n):void 0}}function ue(e,n){(null==n||n>e.length)&&(n=e.length);for(var t=0,r=new Array(n);t<n;t++)r[t]=e[t];return r}var fe,pe,he,me,ge=Object.defineProperty,xe=Object.getOwnPropertySymbols,ve=Object.prototype.hasOwnProperty,ye=Object.prototype.propertyIsEnumerable,be=function(e,n,t){return n in e?ge(e,n,{enumerable:!0,configurable:!0,writable:!0,value:t}):e[n]=t},we=function(e,n){for(var t in n||(n={}))ve.call(n,t)&&be(e,t,n[t]);if(xe){var r,o=ce(xe(n));try{for(o.s();!(r=o.n()).done;){t=r.value;ye.call(n,t)&&be(e,t,n[t])}}catch(e){o.e(e)}finally{o.f()}}return e},je=function(e,n){var t={};for(var r in e)ve.call(e,r)&&n.indexOf(r)<0&&(t[r]=e[r]);if(null!=e&&xe){var o,i=ce(xe(e));try{for(i.s();!(o=i.n()).done;){r=o.value;n.indexOf(r)<0&&ye.call(e,r)&&(t[r]=e[r])}}catch(e){i.e(e)}finally{i.f()}}return t};!function(e){var n=function(){function n(e,t,r,i){if(ie(this,n),this.version=e,this.errorCorrectionLevel=t,this.modules=[],this.isFunction=[],e<n.MIN_VERSION||e>n.MAX_VERSION)throw new RangeError("Version value out of range");if(i<-1||i>7)throw new RangeError("Mask value out of range");this.size=4*e+17;for(var a=[],s=0;s<this.size;s++)a.push(!1);for(var l=0;l<this.size;l++)this.modules.push(a.slice()),this.isFunction.push(a.slice());this.drawFunctionPatterns();var c=this.addEccAndInterleave(r);if(this.drawCodewords(c),-1==i)for(var d=1e9,u=0;u<8;u++){this.applyMask(u),this.drawFormatBits(u);var f=this.getPenaltyScore();f<d&&(i=u,d=f),this.applyMask(u)}o(0<=i&&i<=7),this.mask=i,this.applyMask(i),this.drawFormatBits(i),this.isFunction=[]}return se(n,[{key:"getModule",value:function(e,n){return 0<=e&&e<this.size&&0<=n&&n<this.size&&this.modules[n][e]}},{key:"getModules",value:function(){return this.modules}},{key:"drawFunctionPatterns",value:function(){for(var e=0;e<this.size;e++)this.setFunctionModule(6,e,e%2==0),this.setFunctionModule(e,6,e%2==0);this.drawFinderPattern(3,3),this.drawFinderPattern(this.size-4,3),this.drawFinderPattern(3,this.size-4);for(var n=this.getAlignmentPatternPositions(),t=n.length,r=0;r<t;r++)for(var o=0;o<t;o++)0==r&&0==o||0==r&&o==t-1||r==t-1&&0==o||this.drawAlignmentPattern(n[r],n[o]);this.drawFormatBits(0),this.drawVersion()}},{key:"drawFormatBits",value:function(e){for(var n=this.errorCorrectionLevel.formatBits<<3|e,t=n,i=0;i<10;i++)t=t<<1^1335*(t>>>9);var a=21522^(n<<10|t);o(a>>>15==0);for(var s=0;s<=5;s++)this.setFunctionModule(8,s,r(a,s));this.setFunctionModule(8,7,r(a,6)),this.setFunctionModule(8,8,r(a,7)),this.setFunctionModule(7,8,r(a,8));for(var l=9;l<15;l++)this.setFunctionModule(14-l,8,r(a,l));for(var c=0;c<8;c++)this.setFunctionModule(this.size-1-c,8,r(a,c));for(var d=8;d<15;d++)this.setFunctionModule(8,this.size-15+d,r(a,d));this.setFunctionModule(8,this.size-8,!0)}},{key:"drawVersion",value:function(){if(!(this.version<7)){for(var e=this.version,n=0;n<12;n++)e=e<<1^7973*(e>>>11);var t=this.version<<12|e;o(t>>>18==0);for(var i=0;i<18;i++){var a=r(t,i),s=this.size-11+i%3,l=Math.floor(i/3);this.setFunctionModule(s,l,a),this.setFunctionModule(l,s,a)}}}},{key:"drawFinderPattern",value:function(e,n){for(var t=-4;t<=4;t++)for(var r=-4;r<=4;r++){var o=Math.max(Math.abs(r),Math.abs(t)),i=e+r,a=n+t;0<=i&&i<this.size&&0<=a&&a<this.size&&this.setFunctionModule(i,a,2!=o&&4!=o)}}},{key:"drawAlignmentPattern",value:function(e,n){for(var t=-2;t<=2;t++)for(var r=-2;r<=2;r++)this.setFunctionModule(e+r,n+t,1!=Math.max(Math.abs(r),Math.abs(t)))}},{key:"setFunctionModule",value:function(e,n,t){this.modules[n][e]=t,this.isFunction[n][e]=!0}},{key:"addEccAndInterleave",value:function(e){var t=this.version,r=this.errorCorrectionLevel;if(e.length!=n.getNumDataCodewords(t,r))throw new RangeError("Invalid argument");for(var i=n.NUM_ERROR_CORRECTION_BLOCKS[r.ordinal][t],a=n.ECC_CODEWORDS_PER_BLOCK[r.ordinal][t],s=Math.floor(n.getNumRawDataModules(t)/8),l=i-s%i,c=Math.floor(s/i),d=[],u=n.reedSolomonComputeDivisor(a),f=0,p=0;f<i;f++){var h=e.slice(p,p+c-a+(f<l?0:1));p+=h.length;var m=n.reedSolomonComputeRemainder(h,u);f<l&&h.push(0),d.push(h.concat(m))}for(var g=[],x=function(e){d.forEach((function(n,t){(e!=c-a||t>=l)&&g.push(n[e])}))},v=0;v<d[0].length;v++)x(v);return o(g.length==s),g}},{key:"drawCodewords",value:function(e){if(e.length!=Math.floor(n.getNumRawDataModules(this.version)/8))throw new RangeError("Invalid argument");for(var t=0,i=this.size-1;i>=1;i-=2){6==i&&(i=5);for(var a=0;a<this.size;a++)for(var s=0;s<2;s++){var l=i-s,c=0==(i+1&2)?this.size-1-a:a;!this.isFunction[c][l]&&t<8*e.length&&(this.modules[c][l]=r(e[t>>>3],7-(7&t)),t++)}}o(t==8*e.length)}},{key:"applyMask",value:function(e){if(e<0||e>7)throw new RangeError("Mask value out of range");for(var n=0;n<this.size;n++)for(var t=0;t<this.size;t++){var r=void 0;switch(e){case 0:r=(t+n)%2==0;break;case 1:r=n%2==0;break;case 2:r=t%3==0;break;case 3:r=(t+n)%3==0;break;case 4:r=(Math.floor(t/3)+Math.floor(n/2))%2==0;break;case 5:r=t*n%2+t*n%3==0;break;case 6:r=(t*n%2+t*n%3)%2==0;break;case 7:r=((t+n)%2+t*n%3)%2==0;break;default:throw new Error("Unreachable")}!this.isFunction[n][t]&&r&&(this.modules[n][t]=!this.modules[n][t])}}},{key:"getPenaltyScore",value:function(){for(var e=0,t=0;t<this.size;t++){for(var r=!1,i=0,a=[0,0,0,0,0,0,0],s=0;s<this.size;s++)this.modules[t][s]==r?5==++i?e+=n.PENALTY_N1:i>5&&e++:(this.finderPenaltyAddHistory(i,a),r||(e+=this.finderPenaltyCountPatterns(a)*n.PENALTY_N3),r=this.modules[t][s],i=1);e+=this.finderPenaltyTerminateAndCount(r,i,a)*n.PENALTY_N3}for(var l=0;l<this.size;l++){for(var c=!1,d=0,u=[0,0,0,0,0,0,0],f=0;f<this.size;f++)this.modules[f][l]==c?5==++d?e+=n.PENALTY_N1:d>5&&e++:(this.finderPenaltyAddHistory(d,u),c||(e+=this.finderPenaltyCountPatterns(u)*n.PENALTY_N3),c=this.modules[f][l],d=1);e+=this.finderPenaltyTerminateAndCount(c,d,u)*n.PENALTY_N3}for(var p=0;p<this.size-1;p++)for(var h=0;h<this.size-1;h++){var m=this.modules[p][h];m==this.modules[p][h+1]&&m==this.modules[p+1][h]&&m==this.modules[p+1][h+1]&&(e+=n.PENALTY_N2)}var g,x=0,v=ce(this.modules);try{for(v.s();!(g=v.n()).done;){x=g.value.reduce((function(e,n){return e+(n?1:0)}),x)}}catch(e){v.e(e)}finally{v.f()}var y=this.size*this.size,b=Math.ceil(Math.abs(20*x-10*y)/y)-1;return o(0<=b&&b<=9),o(0<=(e+=b*n.PENALTY_N4)&&e<=2568888),e}},{key:"getAlignmentPatternPositions",value:function(){if(1==this.version)return[];for(var e=Math.floor(this.version/7)+2,n=32==this.version?26:2*Math.ceil((4*this.version+4)/(2*e-2)),t=[6],r=this.size-7;t.length<e;r-=n)t.splice(1,0,r);return t}},{key:"finderPenaltyCountPatterns",value:function(e){var n=e[1];o(n<=3*this.size);var t=n>0&&e[2]==n&&e[3]==3*n&&e[4]==n&&e[5]==n;return(t&&e[0]>=4*n&&e[6]>=n?1:0)+(t&&e[6]>=4*n&&e[0]>=n?1:0)}},{key:"finderPenaltyTerminateAndCount",value:function(e,n,t){return e&&(this.finderPenaltyAddHistory(n,t),n=0),n+=this.size,this.finderPenaltyAddHistory(n,t),this.finderPenaltyCountPatterns(t)}},{key:"finderPenaltyAddHistory",value:function(e,n){0==n[0]&&(e+=this.size),n.pop(),n.unshift(e)}}],[{key:"encodeText",value:function(t,r){var o=e.QrSegment.makeSegments(t);return n.encodeSegments(o,r)}},{key:"encodeBinary",value:function(t,r){var o=e.QrSegment.makeBytes(t);return n.encodeSegments([o],r)}},{key:"encodeSegments",value:function(e,r){var i,s,l=arguments.length>2&&void 0!==arguments[2]?arguments[2]:1,c=arguments.length>3&&void 0!==arguments[3]?arguments[3]:40,d=arguments.length>4&&void 0!==arguments[4]?arguments[4]:-1,u=!(arguments.length>5&&void 0!==arguments[5])||arguments[5];if(!(n.MIN_VERSION<=l&&l<=c&&c<=n.MAX_VERSION)||d<-1||d>7)throw new RangeError("Invalid value");for(i=l;;i++){var f=8*n.getNumDataCodewords(i,r),p=a.getTotalBits(e,i);if(p<=f){s=p;break}if(i>=c)throw new RangeError("Data too long")}for(var h=0,m=[n.Ecc.MEDIUM,n.Ecc.QUARTILE,n.Ecc.HIGH];h<m.length;h++){var g=m[h];u&&s<=8*n.getNumDataCodewords(i,g)&&(r=g)}var x,v=[],y=ce(e);try{for(y.s();!(x=y.n()).done;){var b=x.value;t(b.mode.modeBits,4,v),t(b.numChars,b.mode.numCharCountBits(i),v);var w,j=ce(b.getData());try{for(j.s();!(w=j.n()).done;){var k=w.value;v.push(k)}}catch(e){j.e(e)}finally{j.f()}}}catch(e){y.e(e)}finally{y.f()}o(v.length==s);var N=8*n.getNumDataCodewords(i,r);o(v.length<=N),t(0,Math.min(4,N-v.length),v),t(0,(8-v.length%8)%8,v),o(v.length%8==0);for(var E=236;v.length<N;E^=253)t(E,8,v);for(var S=[];8*S.length<v.length;)S.push(0);return v.forEach((function(e,n){return S[n>>>3]|=e<<7-(7&n)})),new n(i,r,S,d)}},{key:"getNumRawDataModules",value:function(e){if(e<n.MIN_VERSION||e>n.MAX_VERSION)throw new RangeError("Version number out of range");var t=(16*e+128)*e+64;if(e>=2){var r=Math.floor(e/7)+2;t-=(25*r-10)*r-55,e>=7&&(t-=36)}return o(208<=t&&t<=29648),t}},{key:"getNumDataCodewords",value:function(e,t){return Math.floor(n.getNumRawDataModules(e)/8)-n.ECC_CODEWORDS_PER_BLOCK[t.ordinal][e]*n.NUM_ERROR_CORRECTION_BLOCKS[t.ordinal][e]}},{key:"reedSolomonComputeDivisor",value:function(e){if(e<1||e>255)throw new RangeError("Degree out of range");for(var t=[],r=0;r<e-1;r++)t.push(0);t.push(1);for(var o=1,i=0;i<e;i++){for(var a=0;a<t.length;a++)t[a]=n.reedSolomonMultiply(t[a],o),a+1<t.length&&(t[a]^=t[a+1]);o=n.reedSolomonMultiply(o,2)}return t}},{key:"reedSolomonComputeRemainder",value:function(e,t){var r,o=t.map((function(e){return 0})),i=ce(e);try{var a=function(){var e=r.value^o.shift();o.push(0),t.forEach((function(t,r){return o[r]^=n.reedSolomonMultiply(t,e)}))};for(i.s();!(r=i.n()).done;)a()}catch(e){i.e(e)}finally{i.f()}return o}},{key:"reedSolomonMultiply",value:function(e,n){if(e>>>8!=0||n>>>8!=0)throw new RangeError("Byte out of range");for(var t=0,r=7;r>=0;r--)t=t<<1^285*(t>>>7),t^=(n>>>r&1)*e;return o(t>>>8==0),t}}]),n}();n.MIN_VERSION=1,n.MAX_VERSION=40,n.PENALTY_N1=3,n.PENALTY_N2=3,n.PENALTY_N3=40,n.PENALTY_N4=10,n.ECC_CODEWORDS_PER_BLOCK=[[-1,7,10,15,20,26,18,20,24,30,18,20,24,26,30,22,24,28,30,28,28,28,28,30,30,26,28,30,30,30,30,30,30,30,30,30,30,30,30,30,30],[-1,10,16,26,18,24,16,18,22,22,26,30,22,22,24,24,28,28,26,26,26,26,28,28,28,28,28,28,28,28,28,28,28,28,28,28,28,28,28,28,28],[-1,13,22,18,26,18,24,18,22,20,24,28,26,24,20,30,24,28,28,26,30,28,30,30,30,30,28,30,30,30,30,30,30,30,30,30,30,30,30,30,30],[-1,17,28,22,16,22,28,26,26,24,28,24,28,22,24,24,30,28,28,26,28,30,24,30,30,30,30,30,30,30,30,30,30,30,30,30,30,30,30,30,30]],n.NUM_ERROR_CORRECTION_BLOCKS=[[-1,1,1,1,1,1,2,2,2,2,4,4,4,4,4,6,6,6,6,7,8,8,9,9,10,12,12,12,13,14,15,16,17,18,19,19,20,21,22,24,25],[-1,1,1,1,2,2,4,4,4,5,5,5,8,9,9,10,10,11,13,14,16,17,17,18,20,21,23,25,26,28,29,31,33,35,37,38,40,43,45,47,49],[-1,1,1,2,2,4,4,6,6,8,8,8,10,12,16,12,17,16,18,21,20,23,23,25,27,29,34,34,35,38,40,43,45,48,51,53,56,59,62,65,68],[-1,1,1,2,4,4,4,5,6,8,8,11,11,16,16,18,16,19,21,25,25,25,34,30,32,35,37,40,42,45,48,51,54,57,60,63,66,70,74,77,81]];function t(e,n,t){if(n<0||n>31||e>>>n!=0)throw new RangeError("Value out of range");for(var r=n-1;r>=0;r--)t.push(e>>>r&1)}function r(e,n){return 0!=(e>>>n&1)}function o(e){if(!e)throw new Error("Assertion error")}e.QrCode=n;var i=function(){function e(n,t,r){if(ie(this,e),this.mode=n,this.numChars=t,this.bitData=r,t<0)throw new RangeError("Invalid argument");this.bitData=r.slice()}return se(e,[{key:"getData",value:function(){return this.bitData.slice()}}],[{key:"makeBytes",value:function(n){var r,o=[],i=ce(n);try{for(i.s();!(r=i.n()).done;){t(r.value,8,o)}}catch(e){i.e(e)}finally{i.f()}return new e(e.Mode.BYTE,n.length,o)}},{key:"makeNumeric",value:function(n){if(!e.isNumeric(n))throw new RangeError("String contains 
2non-numeric characters");for(var r=[],o=0;o<n.length;){var i=Math.min(n.length-o,3);t(parseInt(n.substring(o,o+i),10),3*i+1,r),o+=i}return new e(e.Mode.NUMERIC,n.length,r)}},{key:"makeAlphanumeric",value:function(n){if(!e.isAlphanumeric(n))throw new RangeError("String contains unencodable characters in alphanumeric mode");var r,o=[];for(r=0;r+2<=n.length;r+=2){var i=45*e.ALPHANUMERIC_CHARSET.indexOf(n.charAt(r));t(i+=e.ALPHANUMERIC_CHARSET.indexOf(n.charAt(r+1)),11,o)}return r<n.length&&t(e.ALPHANUMERIC_CHARSET.indexOf(n.charAt(r)),6,o),new e(e.Mode.ALPHANUMERIC,n.length,o)}},{key:"makeSegments",value:function(n){return""==n?[]:e.isNumeric(n)?[e.makeNumeric(n)]:e.isAlphanumeric(n)?[e.makeAlphanumeric(n)]:[e.makeBytes(e.toUtf8ByteArray(n))]}},{key:"makeEci",value:function(n){var r=[];if(n<0)throw new RangeError("ECI assignment value out of range");if(n<128)t(n,8,r);else if(n<16384)t(2,2,r),t(n,14,r);else{if(!(n<1e6))throw new RangeError("ECI assignment value out of range");t(6,3,r),t(n,21,r)}return new e(e.Mode.ECI,0,r)}},{key:"isNumeric",value:function(n){return e.NUMERIC_REGEX.test(n)}},{key:"isAlphanumeric",value:function(n){return e.ALPHANUMERIC_REGEX.test(n)}},{key:"getTotalBits",value:function(e,n){var t,r=0,o=ce(e);try{for(o.s();!(t=o.n()).done;){var i=t.value,a=i.mode.numCharCountBits(n);if(i.numChars>=1<<a)return 1/0;r+=4+a+i.bitData.length}}catch(e){o.e(e)}finally{o.f()}return r}},{key:"toUtf8ByteArray",value:function(e){e=encodeURI(e);for(var n=[],t=0;t<e.length;t++)"%"!=e.charAt(t)?n.push(e.charCodeAt(t)):(n.push(parseInt(e.substring(t+1,t+3),16)),t+=2);return n}}]),e}();i.NUMERIC_REGEX=/^[0-9]*$/,i.ALPHANUMERIC_REGEX=/^[A-Z0-9 $%*+.\/:-]*$/,i.ALPHANUMERIC_CHARSET="0123456789ABCDEFGHIJKLMNOPQRSTUVWXYZ $%*+-./:";var a=i;e.QrSegment=i}(fe||(fe={})),me=fe||(fe={}),pe=me.QrCode||(me.QrCode={}),(he=se((function e(n,t){ie(this,e),this.ordinal=n,this.formatBits=t}))).LOW=new he(0,1),he.MEDIUM=new he(1,0),he.QUARTILE=new he(2,3),he.HIGH=new he(3,2),pe.Ecc=he,function(e){!function(e){var n=function(){function e(n,t){ie(this,e),this.modeBits=n,this.numBitsCharCount=t}return se(e,[{key:"numCharCountBits",value:function(e){return this.numBitsCharCount[Math.floor((e+7)/17)]}}]),e}();n.NUMERIC=new n(1,[10,12,14]),n.ALPHANUMERIC=new n(2,[9,11,13]),n.BYTE=new n(4,[8,16,16]),n.KANJI=new n(8,[8,10,12]),n.ECI=new n(7,[0,0,0]);e.Mode=n}(e.QrSegment||(e.QrSegment={}))}(fe||(fe={}));var ke=fe,Ne={L:ke.QrCode.Ecc.LOW,M:ke.QrCode.Ecc.MEDIUM,Q:ke.QrCode.Ecc.QUARTILE,H:ke.QrCode.Ecc.HIGH},Ee="#FFFFFF",Se="#000000",Ae=4,Ce=0,Fe=.1;function Le(e){var n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:0,t=[];return e.forEach((function(e,r){var o=null;e.forEach((function(i,a){if(!i&&null!==o)return t.push("M".concat(o+n," ").concat(r+n,"h").concat(a-o,"v1H").concat(o+n,"z")),void(o=null);if(a!==e.length-1)i&&null===o&&(o=a);else{if(!i)return;null===o?t.push("M".concat(a+n,",").concat(r+n," h1v1H").concat(a+n,"z")):t.push("M".concat(o+n,",").concat(r+n," h").concat(a+1-o,"v1H").concat(o+n,"z"))}}))})),t.join("")}function ze(e,n){return e.slice().map((function(e,t){return t<n.y||t>=n.y+n.h?e:e.map((function(e,t){return(t<n.x||t>=n.x+n.w)&&e}))}))}function Oe(e){var n=e.value,t=e.level,o=e.minVersion,i=e.includeMargin,a=e.marginSize,s=e.imageSettings,l=e.size,c=e.boostLevel,d=r.useMemo((function(){var e=(Array.isArray(n)?n:[n]).reduce((function(e,n){return e.push.apply(e,oe(ke.QrSegment.makeSegments(n))),e}),[]);return ke.QrCode.encodeSegments(e,Ne[t],o,void 0,void 0,c)}),[n,t,o,c]),u=r.useMemo((function(){var e=d.getModules(),n=function(e,n){return null!=n?Math.max(Math.floor(n),0):e?Ae:Ce}(i,a),t=e.length+2*n,r=function(e,n,t,r){if(null==r)return null;var o=e.length+2*t,i=Math.floor(n*Fe),a=o/n,s=(r.width||i)*a,l=(r.height||i)*a,c=null==r.x?e.length/2-s/2:r.x*a,d=null==r.y?e.length/2-l/2:r.y*a,u=null==r.opacity?1:r.opacity,f=null;if(r.excavate){var p=Math.floor(c),h=Math.floor(d);f={x:p,y:h,w:Math.ceil(s+c-p),h:Math.ceil(l+d-h)}}return{x:c,y:d,h:l,w:s,excavation:f,opacity:u,crossOrigin:r.crossOrigin}}(e,l,n,s);return{cells:e,margin:n,numCells:t,calculatedImageSettings:r}}),[d,l,s,i,a]),f=u.cells,p=u.margin,h=u.numCells,m=u.calculatedImageSettings;return{qrcode:d,margin:p,cells:f,numCells:h,calculatedImageSettings:m}}var _e=function(){try{(new Path2D).addPath(new Path2D)}catch(e){return!1}return!0}();r.forwardRef((function(e,n){var t=e,o=t.value,i=t.size,a=void 0===i?128:i,s=t.level,l=void 0===s?"L":s,c=t.bgColor,d=void 0===c?Ee:c,u=t.fgColor,f=void 0===u?Se:u,p=t.includeMargin,h=void 0!==p&&p,m=t.minVersion,g=void 0===m?1:m,x=t.boostLevel,v=t.marginSize,y=t.imageSettings,b=je(t,["value","size","level","bgColor","fgColor","includeMargin","minVersion","boostLevel","marginSize","imageSettings"]),w=b.style,j=je(b,["style"]),k=null==y?void 0:y.src,N=r.useRef(null),E=r.useRef(null),S=r.useCallback((function(e){N.current=e,"function"==typeof n?n(e):n&&(n.current=e)}),[n]),A=re(r.useState(!1),2),C=(A[0],A[1]),F=Oe({value:o,level:l,minVersion:g,boostLevel:x,includeMargin:h,marginSize:v,imageSettings:y,size:a}),L=F.margin,z=F.cells,O=F.numCells,_=F.calculatedImageSettings;r.useEffect((function(){if(null!=N.current){var e=N.current,n=e.getContext("2d");if(!n)return;var t=z,r=E.current,o=null!=_&&null!==r&&r.complete&&0!==r.naturalHeight&&0!==r.naturalWi
2dth;o&&null!=_.excavation&&(t=ze(z,_.excavation));var i=window.devicePixelRatio||1;e.height=e.width=a*i;var s=a/O*i;n.scale(s,s),n.fillStyle=d,n.fillRect(0,0,O,O),n.fillStyle=f,_e?n.fill(new Path2D(Le(t,L))):z.forEach((function(e,t){e.forEach((function(e,r){e&&n.fillRect(r+L,t+L,1,1)}))})),_&&(n.globalAlpha=_.opacity),o&&n.drawImage(r,_.x+L,_.y+L,_.w,_.h)}})),r.useEffect((function(){C(!1)}),[k]);var I=we({height:a,width:a},w),R=null;return null!=k&&(R=r.createElement("img",{src:k,key:k,style:{display:"none"},onLoad:function(){C(!0)},ref:E,crossOrigin:null==_?void 0:_.crossOrigin})),r.createElement(r.Fragment,null,r.createElement("canvas",we({style:I,height:a,width:a,ref:S,role:"img"},j)),R)})).displayName="QRCodeCanvas";var Ie=r.forwardRef((function(e,n){var t=e,o=t.value,i=t.size,a=void 0===i?128:i,s=t.level,l=void 0===s?"L":s,c=t.bgColor,d=void 0===c?Ee:c,u=t.fgColor,f=void 0===u?Se:u,p=t.includeMargin,h=void 0!==p&&p,m=t.minVersion,g=void 0===m?1:m,x=t.boostLevel,v=t.title,y=t.marginSize,b=t.imageSettings,w=je(t,["value","size","level","bgColor","fgColor","includeMargin","minVersion","boostLevel","title","marginSize","imageSettings"]),j=Oe({value:o,level:l,minVersion:g,boostLevel:x,includeMargin:h,marginSize:y,imageSettings:b,size:a}),k=j.margin,N=j.cells,E=j.numCells,S=j.calculatedImageSettings,A=N,C=null;null!=b&&null!=S&&(null!=S.excavation&&(A=ze(N,S.excavation)),C=r.createElement("image",{href:b.src,height:S.h,width:S.w,x:S.x+k,y:S.y+k,preserveAspectRatio:"none",opacity:S.opacity,crossOrigin:S.crossOrigin}));var F=Le(A,k);return r.createElement("svg",we({height:a,width:a,viewBox:"0 0 ".concat(E," ").concat(E),ref:n,role:"img"},w),!!v&&r.createElement("title",null,v),r.createElement("path",{fill:d,d:"M0,0 h".concat(E,"v").concat(E,"H0z"),shapeRendering:"crispEdges"}),r.createElement("path",{fill:f,d:F,shapeRendering:"crispEdges"}),C)}
vendor: 4,173 bytes, line 2
2));function Re(e){return Re="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},Re(e)}function Pe(){Pe=function(){return n};var e,n={},t=Object.prototype,r=t.hasOwnProperty,o=Object.defineProperty||function(e,n,t){e[n]=t.value},i="function"==typeof Symbol?Symbol:{},a=i.iterator||"@@iterator",s=i.asyncIterator||"@@asyncIterator",l=i.toStringTag||"@@toStringTag";function c(e,n,t){return Object.defineProperty(e,n,{value:t,enumerable:!0,configurable:!0,writable:!0}),e[n]}try{c({},"")}catch(e){c=function(e,n,t){return e[n]=t}}function d(e,n,t,r){var i=n&&n.prototype instanceof x?n:x,a=Object.create(i.prototype),s=new L(r||[]);return o(a,"_invoke",{value:S(e,t,s)}),a}function u(e,n,t){try{return{type:"normal",arg:e.call(n,t)}}catch(e){return{type:"throw",arg:e}}}n.wrap=d;var f="suspendedStart",p="suspendedYield",h="executing",m="completed",g={};function x(){}function v(){}function y(){}var b={};c(b,a,(function(){return this}));var w=Object.getPrototypeOf,j=w&&w(w(z([])));j&&j!==t&&r.call(j,a)&&(b=j);var k=y.prototype=x.prototype=Object.create(b);function N(e){["next","throw","return"].forEach((function(n){c(e,n,(function(e){return this._invoke(n,e)}))}))}function E(e,n){function t(o,i,a,s){var l=u(e[o],e,i);if("throw"!==l.type){var c=l.arg,d=c.value;return d&&"object"==Re(d)&&r.call(d,"__await")?n.resolve(d.__await).then((function(e){t("next",e,a,s)}),(function(e){t("throw",e,a,s)})):n.resolve(d).then((function(e){c.value=e,a(c)}),(function(e){return t("throw",e,a,s)}))}s(l.arg)}var i;o(this,"_invoke",{value:function(e,r){function o(){return new n((function(n,o){t(e,r,n,o)}))}return i=i?i.then(o,o):o()}})}function S(n,t,r){var o=f;return function(i,a){if(o===h)throw new Error("Generator is already running");if(o===m){if("throw"===i)throw a;return{value:e,done:!0}}for(r.method=i,r.arg=a;;){var s=r.delegate;if(s){var l=A(s,r);if(l){if(l===g)continue;return l}}if("next"===r.method)r.sent=r._sent=r.arg;else if("throw"===r.method){if(o===f)throw o=m,r.arg;r.dispatchException(r.arg)}else"return"===r.method&&r.abrupt("return",r.arg);o=h;var c=u(n,t,r);if("normal"===c.type){if(o=r.done?m:p,c.arg===g)continue;return{value:c.arg,done:r.done}}"throw"===c.type&&(o=m,r.method="throw",r.arg=c.arg)}}}function A(n,t){var r=t.method,o=n.iterator[r];if(o===e)return t.delegate=null,"throw"===r&&n.iterator.return&&(t.method="return",t.arg=e,A(n,t),"throw"===t.method)||"return"!==r&&(t.method="throw",t.arg=new TypeError("The iterator does not provide a '"+r+"' method")),g;var i=u(o,n.iterator,t.arg);if("throw"===i.type)return t.method="throw",t.arg=i.arg,t.delegate=null,g;var a=i.arg;return a?a.done?(t[n.resultName]=a.value,t.next=n.nextLoc,"return"!==t.method&&(t.method="next",t.arg=e),t.delegate=null,g):a:(t.method="throw",t.arg=new TypeError("iterator result is not an object"),t.delegate=null,g)}function C(e){var n={tryLoc:e[0]};1 in e&&(n.catchLoc=e[1]),2 in e&&(n.finallyLoc=e[2],n.afterLoc=e[3]),this.tryEntries.push(n)}function F(e){var n=e.completion||{};n.type="normal",delete n.arg,e.completion=n}function L(e){this.tryEntries=[{tryLoc:"root"}],e.forEach(C,this),this.reset(!0)}function z(n){if(n||""===n){var t=n[a];if(t)return t.call(n);if("function"==typeof n.next)return n;if(!isNaN(n.length)){var o=-1,i=function t(){for(;++o<n.length;)if(r.call(n,o))return t.value=n[o],t.done=!1,t;return t.value=e,t.done=!0,t};return i.next=i}}throw new TypeError(Re(n)+" is not iterable")}return v.prototype=y,o(k,"constructor",{value:y,configurable:!0}),o(y,"constructor",{value:v,configurable:!0}),v.displayName=c(y,l,"GeneratorFunction"),n.isGeneratorFunction=function(e){var n="function"==typeof e&&e.constructor;return!!n&&(n===v||"GeneratorFunction"===(n.displayName||n.name))},n.mark=function(e){return Object.setPrototypeOf?Object.setPrototypeOf(e,y):(e.__proto__=y,c(e,l,"GeneratorFunction")),e.prototype=Object.create(k),e},n.awrap=function(e){return{__await:e}},N(E.prototype),c(E.prototype,s,(function(){return this})),n.AsyncIterator=E,n.async=function(e,t,r,o,i){void 0===i&&(i=Prom
vendor: 4,626 bytes, line 2
2ise);var a=new E(d(e,t,r,o),i);return n.isGeneratorFunction(t)?a:a.next().then((function(e){return e.done?e.value:a.next()}))},N(k),c(k,l,"Generator"),c(k,a,(function(){return this})),c(k,"toString",(function(){return"[object Generator]"})),n.keys=function(e){var n=Object(e),t=[];for(var r in n)t.push(r);return t.reverse(),function e(){for(;t.length;){var r=t.pop();if(r in n)return e.value=r,e.done=!1,e}return e.done=!0,e}},n.values=z,L.prototype={constructor:L,reset:function(n){if(this.prev=0,this.next=0,this.sent=this._sent=e,this.done=!1,this.delegate=null,this.method="next",this.arg=e,this.tryEntries.forEach(F),!n)for(var t in this)"t"===t.charAt(0)&&r.call(this,t)&&!isNaN(+t.slice(1))&&(this[t]=e)},stop:function(){this.done=!0;var e=this.tryEntries[0].completion;if("throw"===e.type)throw e.arg;return this.rval},dispatchException:function(n){if(this.done)throw n;var t=this;function o(r,o){return s.type="throw",s.arg=n,t.next=r,o&&(t.method="next",t.arg=e),!!o}for(var i=this.tryEntries.length-1;i>=0;--i){var a=this.tryEntries[i],s=a.completion;if("root"===a.tryLoc)return o("end");if(a.tryLoc<=this.prev){var l=r.call(a,"catchLoc"),c=r.call(a,"finallyLoc");if(l&&c){if(this.prev<a.catchLoc)return o(a.catchLoc,!0);if(this.prev<a.finallyLoc)return o(a.finallyLoc)}else if(l){if(this.prev<a.catchLoc)return o(a.catchLoc,!0)}else{if(!c)throw new Error("try statement without catch or finally");if(this.prev<a.finallyLoc)return o(a.finallyLoc)}}}},abrupt:function(e,n){for(var t=this.tryEntries.length-1;t>=0;--t){var o=this.tryEntries[t];if(o.tryLoc<=this.prev&&r.call(o,"finallyLoc")&&this.prev<o.finallyLoc){var i=o;break}}i&&("break"===e||"continue"===e)&&i.tryLoc<=n&&n<=i.finallyLoc&&(i=null);var a=i?i.completion:{};return a.type=e,a.arg=n,i?(this.method="next",this.next=i.finallyLoc,g):this.complete(a)},complete:function(e,n){if("throw"===e.type)throw e.arg;return"break"===e.type||"continue"===e.type?this.next=e.arg:"return"===e.type?(this.rval=this.arg=e.arg,this.method="return",this.next="end"):"normal"===e.type&&n&&(this.next=n),g},finish:function(e){for(var n=this.tryEntries.length-1;n>=0;--n){var t=this.tryEntries[n];if(t.finallyLoc===e)return this.complete(t.completion,t.afterLoc),F(t),g}},catch:function(e){for(var n=this.tryEntries.length-1;n>=0;--n){var t=this.tryEntries[n];if(t.tryLoc===e){var r=t.completion;if("throw"===r.type){var o=r.arg;F(t)}return o}}throw new Error("illegal catch attempt")},delegateYield:function(n,t,r){return this.delegate={iterator:z(n),resultName:t,nextLoc:r},"next"===this.method&&(this.arg=e),g}},n}function De(e,n,t,r,o,i,a){try{var s=e[i](a),l=s.value}catch(e){return void t(e)}s.done?n(l):Promise.resolve(l).then(r,o)}function Me(e){return function(){var n=this,t=arguments;return new Promise((function(r,o){var i=e.apply(n,t);function a(e){De(i,r,o,a,s,"next",e)}function s(e){De(i,r,o,a,s,"throw",e)}a(void 0)}))}}function Be(e){return function(e){if(Array.isArray(e))return Ye(e)}(e)||function(e){if("undefined"!=typeof Symbol&&null!=e[Symbol.iterator]||null!=e["@@iterator"])return Array.from(e)}(e)||We(e)||function(){throw new TypeError("Invalid attempt to spread non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function Te(e,n){return function(e){if(Array.isArray(e))return e}(e)||function(e,n){var t=null==e?null:"undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(null!=t){var r,o,i,a,s=[],l=!0,c=!1;try{if(i=(t=t.call(e)).next,0===n){if(Object(t)!==t)return;l=!1}else for(;!(l=(r=i.call(t)).done)&&(s.push(r.value),s.length!==n);l=!0);}catch(e){c=!0,o=e}finally{try{if(!l&&null!=t.return&&(a=t.return(),Object(a)!==a))return}finally{if(c)throw o}}return s}}(e,n)||We(e,n)||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 We(e,n){if(e){if("string"==typeof e)return Ye(e,n);var t=Object.prototype.toString.call(e).slice(8,-1);return"Object"===t&&e.constructor&&(t=e.constructor.name),"Map"===t||"Set"===t?Array.from(e):"Arguments"===t||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(t)?Ye(e,n):void 0}}function Ye(e,n){(null==n||n>e.length)&&(n=e.length);for(var t=0,r=new Array(n);t<n;t++)r[t]=e[t];return r}Ie.displayName="QRCodeSVG";var He=function(e){var n=e.show,t=e.onClose,o=e.history,i=e.vaultReports,a=e.defaultAnalysisId,l=e.onShareCreated,d=Te((0,r.useState)("form"),2),u=d[0],f=d[1],p=Te((0,r.useState)("30d"),2),h=p[0],m=p[1],g=Te((0,r.useState)(""),2),x=g[0],v=g[1],y=Te((0,r.useState)(""),2),b=y[0],w=y[1],j=Te
2((0,r.useState)([]),2),k=j[0],N=j[1],E=Te((0,r.useState)(!1),2),S=E[0],A=E[1],C=Te((0,r.useState)(!1),2),F=C[0],L=C[1],z=Te((0,r.useState)(""),2),O=z[0],_=z[1],I=Te((0,r.useState)(!1),2),R=I[0],P=I[1],D=Te((0,r.useState)([]),2),M=D[0],B=D[1],T=Te((0,r.useState)([]),2),W=T[0],Y=T[1],H=Te((0,r.useState)(""),2),G=H[0],U=H[1],V=Te((0,r.useState)(null),2),q=V[0],Z=V[1],Q=Te((0,r.useState)(!1),2),X=Q[0],$=Q[1],K=Te((0,r.useState)(""),2),J=K[0],ee=K[1],ne=Te((0,r.useState)(!1),2),te=ne[0],re=ne[1],oe=Te((0,r.useState)(!1),2),ie=oe[0],ae=oe[1],se=o&&o.length>0?o:M,le=i&&i.length>0?i:W;if((0,r.useEffect)((function(){if(n){(0,c.L9)(c.OI.REPORT_ANALYZER_SHARE_ACTION);var e=localStorage.getItem("token");if(e){var t=!o||0===o.length,r=!i||0===i.length;if(t||r){P(!0);var s=[];t?s.push(window.axios.get("/api/ivf-report-analysis",{headers:{Authorization:"Bearer ".concat(e)}}).then((function(e){if(e.data.success){var n=e.data.data.data||[];B(n),N(a?[a]:n.filter((function(e){return"completed"===e.status})).map((function(e){return e.id})))}})).catch((function(){}))):N(a?[a]:o.filter((function(e){return"completed"===e.status})).map((function(e){return e.id}))),r&&s.push(window.axios.get("/api/ivf-report-analysis/reports",{headers:{Authorization:"Bearer ".concat(e)}}).then((function(e){e.data.success&&Y(e.data.data)})).catch((function(){}))),Promise.all(s).finally((function(){return P(!1)}))}else N(a?[a]:o.filter((function(e){return"completed"===e.status})).map((function(e){return e.id})))}}}),[n]),!n)return null;var ce=(se||[]).filter((function(e){return"completed"===e.status})),de=le.length>0||ce.length>0,ue=!!a,fe=function(){var e=Me(Pe().mark((function e(){var n,t,r,o;return Pe().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return _(""),L(!0),n=localStorage.getItem("token"),e.prev=3,e.next=6,window.axios.post("/api/ivf-report-analysis/share",{expires_in:h,label:x||null,personal_note:b||null,analysis_ids:k.length>0?k:null},{headers:{Authorization:"Bearer ".concat(n)}});case 6:(t=e.sent).data.success&&(r=t.data.data,U(r.url),Z(r),f("generated"),(0,c.L9)(c.OI.REPORT_ANALYZER_SHARE_ACTION),l&&l(r)),e.next=14;break;case 10:e.prev=10,e.t0=e.catch(3),console.error("Failed to create share",e.t0),_((null===(o=e.t0.response)||void 0===o||null===(o=o.data)||void 0===o?void 0:o.message)||"Failed to create share link. Please try again.");case 14:return e.prev=14,L(!1),e.finish(14);case 17:case"end":return e.stop()}}),e,null,[[3,10,14,17]])})));return function(){return e.apply(this,arguments)}}(),pe=function(){var e=Me(Pe().mark((function e(){var n,t;return Pe().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return n=!1,e.prev=1,e.next=4,navigator.clipboard.writeText(G);case 4:n=!0,e.next=15;break;case 7:e.prev=7,e.t0=e.catch(1),(t=document.createElement("input")).value=G,document.body.appendChild(t),t.select(),n=document.execCommand("copy"),document.body.removeChild(t);case 15:n&&($(!0),setTimeout((function(){return $(!1)}),2e3),(0,c.L9)(c.OI.REPORT_ANALYZER_SHARE_ACTION));case 16:case"end":return e.stop()}}),e,null,[[1,7]])})));return function(){return e.apply(this,arguments)}}(),he=function(){var e=Me(Pe().mark((function e(){var n;return Pe().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:if(J&&q){e.next=2;break}return e.abrupt("return");case 2:return re(!0),n=localStorage.getItem("token"),e.prev=4,e.next=7,window.axios.post("/api/ivf-report-analysis/share/send-email",{shared_vault_id:q.id,recipient_email:J},{headers:{Authorization:"Bearer ".concat(n)}});case 7:ae(!0),(0,c.L9)(c.OI.REPORT_ANALYZER_SHARE_ACTION),e.next=15;break;case 11:e.prev=11,e.t0=e.catch(4),console.error("Failed to send email",e.t0),_("Failed to send email. Please try again.");case 15:return e.prev=15,re(!1),e.finish(15);case 18:case"end":return e.stop()}}),e,null,[[4,11,15,18]])})));return function(){return e.apply(this,arguments)}}(),me=function(){f("form"),m("30d"),v(""),w(""),A(!1),L(!1),_(""),U(""),Z(null),$(!1),ee(""),re(!1),ae(!1),t()},ge={"7d":"7 days","30d":"30 days","90d":"90 days",never:"Never"};return(0,s.jsx)("div",{style:{position:"fixed",inset:0,zIndex:9999,background:"rgba(0,0,0,0.5)",display:"flex",alignItems:"center",justifyContent:"center",padding:"16px"},onClick:me,children:(0,s.jsxs)("div",{style:{background:"#fff",borderRadius:"16px",width:"100%",maxWidth:"520px",maxHeight:"90vh",overflow:"auto",position:"relative"},onClick:function(e){return e.stopPropagation()},children:[(0,s.jsx)("button",{onClick:me,style:{position:"absolute",top:"16px",right:"16px",width:"32px",height:"32px",borderRadius:"8px",border:"none",background:"#f1f3f5",cursor:"pointer",display:"flex",alignItems:"center",justifyContent:"center"},children:(0,s.jsx)("i",{className:"fa fa-times",style:{color:"#6c757d",fontSize:"14px"}})}),(0,s.jsxs)("div",{style:{padding:"24px"},children:[(0,s.jsx)("h3",{style:{fontSize:"1.15rem",fontWeight:"700",color:"#1F232D",marginBottom:"4px"},children:"Share Your Medical Vault"}),(0,s.jsx)("p",{style:{fontSize:"0.82rem",color:"#64748b",marginBottom:"20px"},children:"Generate a secure link to share your reports and analyses"}),R&&(0,s.jsxs)("div",{style:{textAlign:"center",padding:"32px 0"},children:[(0,s.jsx)("div",{className:"spinner-border spinner-border-sm",role:"status",style:{color:"#9ca3af"}}),(0,s.jsx)("p",{style:{fontSize:"13px",color:"#9ca3af",marginTop:"10px"},children:"Loading vault data..."})]}),!R&&"form"===u&&(0,s.jsxs)(s.Fragment,{children:[(0,s.jsxs)("div",{style:{background:"#f0fdf4",border:"1px solid #bbf7d0",borderRadius:"10px",padding:"14px 16px",marginBottom:"20px"},children:[(0,s.jsxs)("div",{style:{display:"flex",alignItems:"center",gap:"8px",marginBottom:"8px"},children:[(0,s.jsx)("i",{className:"fa fa-shield-alt",style:{color:"#16a34a",fontSize:"14px"}}),(0,s.jsx)("span",{style:{fontSize:"0.8rem",fontWeight:"600",color:"#15803d"},children:"What will be shared"})]}),(0,s.jsxs)("ul",{style:{margin:0,paddingLeft:"20px",fontSize:"0.82rem",color:"#166534",lineHeight:"1.7"},children:[(0,s.jsxs)("li",{children:[le.length," uploaded report",1!==le.length?"s":""," (filenames only, no downloads)"]}),(0,s.jsxs)("li",{children:[ue?"1 AI assessment (current)":"".concat(k.length," AI asse
2ssment").concat(1!==k.length?"s":"")," with full analysis"]}),(0,s.jsx)("li",{children:"Your name and any note you add"}),(0,s.jsxs)("li",{style:{color:"#166534"},children:[(0,s.jsx)("i",{className:"fa fa-info-circle me-1",style:{fontSize:"11px"}}),"Anything in filenames, assessment content, or your note may identify you"]})]})]}),!ue&&ce.length>0&&(0,s.jsxs)("div",{style:{marginBottom:"16px"},children:[(0,s.jsxs)("div",{style:{display:"flex",alignItems:"center",justifyContent:"space-between",marginBottom:"8px"},children:[(0,s.jsx)("label",{style:{fontSize:"0.82rem",fontWeight:"600",color:"#1F232D"},children:"Select assessments to include"}),(0,s.jsx)("button",{onClick:function(){var e=ce.map((function(e){return e.id}));N((function(n){return n.length===e.length?[]:e}))},style:{background:"none",border:"none",cursor:"pointer",fontSize:"0.75rem",color:"#0d6efd",fontWeight:"600"},children:k.length===ce.length?"Deselect All":"Select All"})]}),(0,s.jsx)("div",{style:{maxHeight:"140px",overflowY:"auto",border:"1px solid #e2e8f0",borderRadius:"10px"},children:ce.map((function(e){var n;return(0,s.jsxs)("label",{style:{display:"flex",alignItems:"center",gap:"10px",padding:"10px 12px",cursor:"pointer",borderBottom:"1px solid #f1f5f9",background:k.includes(e.id)?"#f8fafc":"#fff"},children:[(0,s.jsx)("input",{type:"checkbox",checked:k.includes(e.id),onChange:function(){return n=e.id,void N((function(e){return e.includes(n)?e.filter((function(e){return e!==n})):[].concat(Be(e),[n])}));var n},style:{accentColor:"#0d6efd",width:"16px",height:"16px",flexShrink:0}}),(0,s.jsxs)("div",{style:{flex:1,minWidth:0},children:[(0,s.jsx)("div",{style:{fontSize:"0.82rem",fontWeight:"600",color:"#1F232D",overflow:"hidden",textOverflow:"ellipsis",whiteSpace:"nowrap"},children:(null===(n=e.ai_output)||void 0===n?void 0:n.assessment_title)||"Medical Assessment"}),(0,s.jsx)("div",{style:{fontSize:"0.7rem",color:"#94a3b8"},children:new Date(e.created_at).toLocaleDateString(void 0,{month:"short",day:"numeric",year:"numeric"})})]})]},e.id)}))})]}),(0,s.jsxs)("div",{style:{marginBottom:"14px"},children:[(0,s.jsx)("label",{style:{fontSize:"0.82rem",fontWeight:"600",color:"#1F232D",display:"block",marginBottom:"6px"},children:"Link expires in"}),(0,s.jsx)("div",{style:{display:"flex",gap:"8px",flexWrap:"wrap"},children:["7d","30d","90d","never"].map((function(e){return(0,s.jsx)("button",{onClick:function(){return m(e)},style:{padding:"6px 14px",borderRadius:"8px",fontSize:"0.8rem",fontWeight:"600",cursor:"pointer",transition:"all 0.2s",border:h===e?"2px solid #0d6efd":"1px solid #e2e8f0",background:h===e?"#EBF3FE":"#fff",color:h===e?"#0d6efd":"#64748b"},children:ge[e]},e)}))})]}),(0,s.jsxs)("div",{style:{marginBottom:"14px"},children:[(0,s.jsxs)("label",{style:{fontSize:"0.82rem",fontWeight:"600",color:"#1F232D",display:"block",marginBottom:"6px"},children:["Label ",(0,s.jsx)("span",{style:{fontWeight:"400",color:"#94a3b8"},children:"(optional)"})]}),(0,s.jsx)("input",{type:"text",value:x,onChange:function(e){return v(e.target.value)},placeholder:"e.g. For Dr. Gupta",maxLength:255,style:{width:"100%",padding:"8px 12px",border:"1px solid #e2e8f0",borderRadius:"8px",fontSize:"0.85rem",color:"#1F232D",outline:"none",transition:"border 0.2s"},onFocus:function(e){return e.target.style.borderColor="#0d6efd"},onBlur:function(e){return e.target.style.borderColor="#e2e8f0"}})]}),(0,s.jsxs)("div",{style:{marginBottom:"16px"},children:[(0,s.jsxs)("label",{style:{fontSize:"0.82rem",fontWeight:"600",color:"#1F232D",display:"block",marginBottom:"6px"},children:["Note for recipient ",(0,s.jsx)("span",{style:{fontWeight:"400",color:"#94a3b8"},children:"(optional)"})]}),(0,s.jsx)("textarea",{value:b,onChange:function(e){return w(e.target.value)},placeholder:"e.g. Please review my AMH levels from January",maxLength:500,rows:2,style:{width:"100%",padding:"8px 12px",border:"1px solid #e2e8f0",borderRadius:"8px",fontSize:"0.85rem",color:"#1F232D",outline:"none",resize:"vertical",fontFamily:"inherit",transition:"border 0.2s"},onFocus:function(e){return e.target.style.borderColor="#0d6efd"},onBlur:function(e){return e.target.style.borderColor="#e2e8f0"}}),(0,s.jsxs)("div",{style:{fontSize:"0.7rem",color:"#94a3b8",textAlign:"right",marginTop:"2px"},children:[b.length,"/500"]})]}),(0,s.jsxs)("label",{style:{display:"flex",alignItems:"flex-start",ga
2p:"10px",padding:"12px 14px",background:"#f8f9fa",borderRadius:"10px",cursor:"pointer",marginBottom:"16px"},children:[(0,s.jsx)("input",{type:"checkbox",checked:S,onChange:function(e){return A(e.target.checked)},style:{accentColor:"#0d6efd",width:"16px",height:"16px",marginTop:"2px",flexShrink:0}}),(0,s.jsx)("span",{style:{fontSize:"0.8rem",color:"#475569",lineHeight:"1.5"},children:"I understand this creates a read-only snapshot of my vault that will be viewable by anyone with the link."})]}),O&&(0,s.jsx)("div",{style:{background:"#fee2e2",color:"#991b1b",borderRadius:"8px",padding:"10px 14px",fontSize:"0.82rem",marginBottom:"12px"},children:O}),(0,s.jsx)("button",{onClick:fe,disabled:!S||!de||F,style:{width:"100%",padding:"12px",borderRadius:"10px",border:"none",background:S&&de?"#1F232D":"#e2e8f0",color:S&&de?"#fff":"#94a3b8",fontSize:"0.9rem",fontWeight:"600",cursor:S&&de?"pointer":"not-allowed",transition:"all 0.2s",display:"flex",alignItems:"center",justifyContent:"center",gap:"8px"},children:F?(0,s.jsxs)(s.Fragment,{children:[(0,s.jsx)("span",{className:"spinner-border spinner-border-sm",role:"status"})," Generating..."]}):(0,s.jsxs)(s.Fragment,{children:[(0,s.jsx)("i",{className:"fa fa-link"})," Generate Secure Link"]})})]}),"generated"===u&&(0,s.jsxs)(s.Fragment,{children:[(0,s.jsxs)("div",{style:{textAlign:"center",marginBottom:"20px"},children:[(0,s.jsx)("div",{style:{width:"48px",height:"48px",borderRadius:"50%",background:"#f0fdf4",display:"flex",alignItems:"center",justifyContent:"center",margin:"0 auto 12px",border:"2px solid #bbf7d0"},children:(0,s.jsx)("i",{className:"fa fa-check",style:{color:"#16a34a",fontSize:"20px"}})}),(0,s.jsx)("p",{style:{fontSize:"0.85rem",color:"#16a34a",fontWeight:"600",margin:0},children:"Link generated successfully"}),(null==q?void 0:q.expires_at)&&(0,s.jsxs)("p",{style:{fontSize:"0.75rem",color:"#64748b",margin:"4px 0 0"},children:["Expires ",new Date(q.expires_at).toLocaleDateString(void 0,{month:"long",day:"numeric",year:"numeric"})]})]}),(0,s.jsxs)("div",{style:{display:"flex",alignItems:"center",gap:"8px",background:"#f8f9fa",border:"1px solid #e2e8f0",borderRadius:"10px",padding:"10px 12px",marginBottom:"20px"},children:[(0,s.jsx)("input",{type:"text",readOnly:!0,value:G,style:{flex:1,border:"none",background:"transparent",fontSize:"0.8rem",color:"#1F232D",outline:"none",overflow:"hidden",textOverflow:"ellipsis"}}),(0,s.jsxs)("button",{onClick:pe,style:{padding:"6px 14px",borderRadius:"8px",border:"none",background:X?"#16a34a":"#0d6efd",color:"#fff",fontSize:"0.8rem",fontWeight:"600",cursor:"pointer",whiteSpace:"nowrap",transition:"all 0.2s",display:"flex",alignItems:"center",gap:"6px"},children:[(0,s.jsx)("i",{className:"fa ".concat(X?"fa-check":"fa-copy"),style:{fontSize:"12px"}}),X?"Copied!":"Copy"]})]}),(0,s.jsxs)("div",{style:{textAlign:"center",padding:"16px",background:"#f8f9fa",borderRadius:"10px",marginBottom:"20px"},children:[(0,s.jsx)(Ie,{value:G,size:140,level:"M",style:{margin:"0 auto 8px"}}),(0,s.jsx)("p",{style:{fontSize:"0.75rem",color:"#64748b",margin:0},children:"Scan with phone to open"})]}),(0,s.jsxs)("div",{style:{borderTop:"1px solid #e2e8f0",paddingTop:"16px",marginBottom:"4px"},children:[(0,s.jsxs)("p",{style:{fontSize:"0.82rem",fontWeight:"600",color:"#1F232D",marginBottom:"10px"},children:[(0,s.jsx)("i",{className:"fa fa-envelope me-2",style:{color:"#0d6efd"}}),"Send to your doctor ",(0,s.jsx)("span",{style:{fontWeight:"400",color:"#94a3b8"},children:"(optional)"})]}),ie?(0,s.jsxs)("div",{style:{background:"#f0fdf4",border:"1px solid #bbf7d0",borderRadius:"10px",padding:"12px 14px",display:"flex",alignItems:"center",gap:"10px"},children:[(0,s.jsx)("i",{className:"fa fa-check-circle",style:{color:"#16a34a"}}),(0,s.jsxs)("div",{children:[(0,s.jsx)("div",{style:{fontSize:"0.82rem",fontWeight:"600",color:"#15803d"},children:"Invitation sent"}),(0,s.jsxs)("div",{style:{fontSize:"0.75rem",color:"#166534"},children:["Sent to ",J]})]})]}):(0,s.jsxs)("div",{style:{display:"flex",gap:"8px"},children:[(0,s.jsx)("input",{type:"email",value:J,onChange:function(e){return ee(e.target.value)},placeholder:"[email protected]",style:{flex:1,padding:"8px 12px",border:"1px solid #e2e8f0",borderRadius:"8px",fontSize:"0.85rem",color:"#1F232D",outline:"none"},onFocus:function(e){return e.target.style.borderColor="#0d6efd"},onBlur:function(e){return e.target.style.borderColor="#e2e8f0"}}),(0,s.jsx)("button",{onClick:he,disabled:!J||te,style:{padding:"8px 16px",borderRadius:"8px",border:"none",background:J?"#0d6efd":"#e2e8f0",color:J?"#fff":"#94a3b8",fontSize:"0.82rem",fontWeight:"600",cursor:J?"pointer":"not-allowed",whiteSpace:"nowrap"},children:te?(0,s.jsx)("span",{className:"spinner-border spinner-border-sm",role:"status"}):"Send"})]}),(0,s.jsx)("p",{style:{fontSize:"0.72rem",color:"#94a3b8",marginTop:"6px",marginBottom:0},children:"We'll send a professional email with your shared link on your behalf."})]}),O&&(0,s.jsx)("div",{style:{background:"#fee2e2",color:"#991b1b",borderRadius:"8px",padding:"10px 14px",fontSize:"0.82rem",marginTop:"12px"},children:O})]})]})]})})},Ge=t(1967);function Ue(e){return Ue="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},Ue(e)}function Ve(e){return function(e){if(Array.isArray(e))return nn(e)}(e)||function(e){if("undefined"!=typeof Symbol&&null!=e[Symbol.iterator]||null!=e["@@iterator"])return Array.from(e)}(e)||en(e)||function(){throw new TypeError("Invalid attempt to spread non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function qe(e,n){var t=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);n&&(r=r.filter((function(n){return Object.getOwnPropertyDescriptor(e,n).enumerable}))),t.push.apply(t,r)}return t}function Ze(e){for(var n=1;n<arguments.length;n++){var t=null!=arguments[n]?arguments[n]:{};
vendor: 4,625 bytes, line 2
2n%2?qe(Object(t),!0).forEach((function(n){Qe(e,n,t[n])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(t)):qe(Object(t)).forEach((function(n){Object.defineProperty(e,n,Object.getOwnPropertyDescriptor(t,n))}))}return e}function Qe(e,n,t){var r;return r=function(e,n){if("object"!=Ue(e)||!e)return e;var t=e[Symbol.toPrimitive];if(void 0!==t){var r=t.call(e,n||"default");if("object"!=Ue(r))return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===n?String:Number)(e)}(n,"string"),(n="symbol"==Ue(r)?r:String(r))in e?Object.defineProperty(e,n,{value:t,enumerable:!0,configurable:!0,writable:!0}):e[n]=t,e}function Xe(){Xe=function(){return n};var e,n={},t=Object.prototype,r=t.hasOwnProperty,o=Object.defineProperty||function(e,n,t){e[n]=t.value},i="function"==typeof Symbol?Symbol:{},a=i.iterator||"@@iterator",s=i.asyncIterator||"@@asyncIterator",l=i.toStringTag||"@@toStringTag";function c(e,n,t){return Object.defineProperty(e,n,{value:t,enumerable:!0,configurable:!0,writable:!0}),e[n]}try{c({},"")}catch(e){c=function(e,n,t){return e[n]=t}}function d(e,n,t,r){var i=n&&n.prototype instanceof x?n:x,a=Object.create(i.prototype),s=new L(r||[]);return o(a,"_invoke",{value:S(e,t,s)}),a}function u(e,n,t){try{return{type:"normal",arg:e.call(n,t)}}catch(e){return{type:"throw",arg:e}}}n.wrap=d;var f="suspendedStart",p="suspendedYield",h="executing",m="completed",g={};function x(){}function v(){}function y(){}var b={};c(b,a,(function(){return this}));var w=Object.getPrototypeOf,j=w&&w(w(z([])));j&&j!==t&&r.call(j,a)&&(b=j);var k=y.prototype=x.prototype=Object.create(b);function N(e){["next","throw","return"].forEach((function(n){c(e,n,(function(e){return this._invoke(n,e)}))}))}function E(e,n){function t(o,i,a,s){var l=u(e[o],e,i);if("throw"!==l.type){var c=l.arg,d=c.value;return d&&"object"==Ue(d)&&r.call(d,"__await")?n.resolve(d.__await).then((function(e){t("next",e,a,s)}),(function(e){t("throw",e,a,s)})):n.resolve(d).then((function(e){c.value=e,a(c)}),(function(e){return t("throw",e,a,s)}))}s(l.arg)}var i;o(this,"_invoke",{value:function(e,r){function o(){return new n((function(n,o){t(e,r,n,o)}))}return i=i?i.then(o,o):o()}})}function S(n,t,r){var o=f;return function(i,a){if(o===h)throw new Error("Generator is already running");if(o===m){if("throw"===i)throw a;return{value:e,done:!0}}for(r.method=i,r.arg=a;;){var s=r.delegate;if(s){var l=A(s,r);if(l){if(l===g)continue;return l}}if("next"===r.method)r.sent=r._sent=r.arg;else if("throw"===r.method){if(o===f)throw o=m,r.arg;r.dispatchException(r.arg)}else"return"===r.method&&r.abrupt("return",r.arg);o=h;var c=u(n,t,r);if("normal"===c.type){if(o=r.done?m:p,c.arg===g)continue;return{value:c.arg,done:r.done}}"throw"===c.type&&(o=m,r.method="throw",r.arg=c.arg)}}}function A(n,t){var r=t.method,o=n.iterator[r];if(o===e)return t.delegate=null,"throw"===r&&n.iterator.return&&(t.method="return",t.arg=e,A(n,t),"throw"===t.method)||"return"!==r&&(t.method="throw",t.arg=new TypeError("The iterator does not provide a '"+r+"' method")),g;var i=u(o,n.iterator,t.arg);if("throw"===i.type)return t.method="throw",t.arg=i.arg,t.delegate=null,g;var a=i.arg;return a?a.done?(t[n.resultName]=a.value,t.next=n.nextLoc,"return"!==t.method&&(t.method="next",t.arg=e),t.delegate=null,g):a:(t.method="throw",t.arg=new TypeError("iterator result is not an object"),t.delegate=null,g)}function C(e){var n={tryLoc:e[0]};1 in e&&(n.catchLoc=e[1]),2 in e&&(n.finallyLoc=e[2],n.afterLoc=e[3]),this.tryEntries.push(n)}function F(e){var n=e.completion||{};n.type="normal",delete n.arg,e.completion=n}function L(e){this.tryEntries=[{tryLoc:"root"}],e.forEach(C,this),this.reset(!0)}function z(n){if(n||""===n){var t=n[a];if(t)return t.call(n);if("function"==typeof n.next)return n;if(!isNaN(n.length)){var o=-1,i=function t(){for(;++o<n.length;)if(r.call(n,o))return t.value=n[o],t.done=!1,t;return t.value=e,t.done=!0,t};return i.next=i}}throw new TypeError(Ue(n)+" is not iterable")}return v.prototype=y,o(k,"constructor",{value:y,configurable:!0}),o(y,"constructor",{value:v,configurable:!0}),v.displayName=c(y,l,"GeneratorFunction"),n.isGeneratorFunction=function(e){var n="function"==typeof e&&e.constructor;return!!n&&(n===v||"GeneratorFunction"===(n.displayName||n.name))},n.mark=function(e){return Object.setPrototypeOf?Object.setPrototypeOf(e,y):(e.__proto__=y,c(e,l,"GeneratorFunction")),e.prototype=Object.create(k),e},n.awrap=function(e){return{__await:e}},N(E.prototype),c(E.prototype,s,(function(){return this})),n.AsyncIterator=E,n.async=function(e,t,r,o,i){void 0===i&&(i=Prom
vendor: 4,164 bytes, line 2
2ise);var a=new E(d(e,t,r,o),i);return n.isGeneratorFunction(t)?a:a.next().then((function(e){return e.done?e.value:a.next()}))},N(k),c(k,l,"Generator"),c(k,a,(function(){return this})),c(k,"toString",(function(){return"[object Generator]"})),n.keys=function(e){var n=Object(e),t=[];for(var r in n)t.push(r);return t.reverse(),function e(){for(;t.length;){var r=t.pop();if(r in n)return e.value=r,e.done=!1,e}return e.done=!0,e}},n.values=z,L.prototype={constructor:L,reset:function(n){if(this.prev=0,this.next=0,this.sent=this._sent=e,this.done=!1,this.delegate=null,this.method="next",this.arg=e,this.tryEntries.forEach(F),!n)for(var t in this)"t"===t.charAt(0)&&r.call(this,t)&&!isNaN(+t.slice(1))&&(this[t]=e)},stop:function(){this.done=!0;var e=this.tryEntries[0].completion;if("throw"===e.type)throw e.arg;return this.rval},dispatchException:function(n){if(this.done)throw n;var t=this;function o(r,o){return s.type="throw",s.arg=n,t.next=r,o&&(t.method="next",t.arg=e),!!o}for(var i=this.tryEntries.length-1;i>=0;--i){var a=this.tryEntries[i],s=a.completion;if("root"===a.tryLoc)return o("end");if(a.tryLoc<=this.prev){var l=r.call(a,"catchLoc"),c=r.call(a,"finallyLoc");if(l&&c){if(this.prev<a.catchLoc)return o(a.catchLoc,!0);if(this.prev<a.finallyLoc)return o(a.finallyLoc)}else if(l){if(this.prev<a.catchLoc)return o(a.catchLoc,!0)}else{if(!c)throw new Error("try statement without catch or finally");if(this.prev<a.finallyLoc)return o(a.finallyLoc)}}}},abrupt:function(e,n){for(var t=this.tryEntries.length-1;t>=0;--t){var o=this.tryEntries[t];if(o.tryLoc<=this.prev&&r.call(o,"finallyLoc")&&this.prev<o.finallyLoc){var i=o;break}}i&&("break"===e||"continue"===e)&&i.tryLoc<=n&&n<=i.finallyLoc&&(i=null);var a=i?i.completion:{};return a.type=e,a.arg=n,i?(this.method="next",this.next=i.finallyLoc,g):this.complete(a)},complete:function(e,n){if("throw"===e.type)throw e.arg;return"break"===e.type||"continue"===e.type?this.next=e.arg:"return"===e.type?(this.rval=this.arg=e.arg,this.method="return",this.next="end"):"normal"===e.type&&n&&(this.next=n),g},finish:function(e){for(var n=this.tryEntries.length-1;n>=0;--n){var t=this.tryEntries[n];if(t.finallyLoc===e)return this.complete(t.completion,t.afterLoc),F(t),g}},catch:function(e){for(var n=this.tryEntries.length-1;n>=0;--n){var t=this.tryEntries[n];if(t.tryLoc===e){var r=t.completion;if("throw"===r.type){var o=r.arg;F(t)}return o}}throw new Error("illegal catch attempt")},delegateYield:function(n,t,r){return this.delegate={iterator:z(n),resultName:t,nextLoc:r},"next"===this.method&&(this.arg=e),g}},n}function $e(e,n,t,r,o,i,a){try{var s=e[i](a),l=s.value}catch(e){return void t(e)}s.done?n(l):Promise.resolve(l).then(r,o)}function Ke(e){return function(){var n=this,t=arguments;return new Promise((function(r,o){var i=e.apply(n,t);function a(e){$e(i,r,o,a,s,"next",e)}function s(e){$e(i,r,o,a,s,"throw",e)}a(void 0)}))}}function Je(e,n){return function(e){if(Array.isArray(e))return e}(e)||function(e,n){var t=null==e?null:"undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(null!=t){var r,o,i,a,s=[],l=!0,c=!1;try{if(i=(t=t.call(e)).next,0===n){if(Object(t)!==t)return;l=!1}else for(;!(l=(r=i.call(t)).done)&&(s.push(r.value),s.length!==n);l=!0);}catch(e){c=!0,o=e}finally{try{if(!l&&null!=t.return&&(a=t.return(),Object(a)!==a))return}finally{if(c)throw o}}return s}}(e,n)||en(e,n)||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 en(e,n){if(e){if("string"==typeof e)return nn(e,n);var t=Object.prototype.toString.call(e).slice(8,-1);return"Object"===t&&e.constructor&&(t=e.constructor.name),"Map"===t||"Set"===t?Array.from(e):"Arguments"===t||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(t)?nn(e,n):void 0}}function nn(e,n){(null==n||n>e.length)&&(n=e.length);for(var t=0,r=new Array(n);t<n;t++)r[t]=e[t];return r}var tn=function(){var e=(0,o.s0)(),n=(0,o.TH)(),t=Je((0,r.useState)(!1),2),d=t[0],u=t[1],f=Je((0,r.useState)(!1),2),p=f[0],h=f[1],m=Je((0,r.useState)(null),2),g=m[0],x=m[1],y=Je((0,r.useState)(null),2),b=y[0],w=y[1],k=Je
2((0,r.useState)("home"),2),N=k[0],E=k[1],S=Je((0,r.useState)(!1),2),A=S[0],C=S[1],F=Je((0,r.useState)(!1),2),L=F[0],z=F[1],O=Je((0,r.useState)(!1),2),_=O[0],I=O[1],P=Je((0,r.useState)([]),2),D=P[0],M=P[1],B=Je((0,r.useState)(!1),2),T=B[0],W=B[1],Y=Je((0,r.useState)(!1),2),H=(Y[0],Y[1]),G=Je((0,r.useState)([]),2),U=G[0],V=G[1],q=Je((0,r.useState)(!1),2),Q=q[0],X=q[1],$=Je((0,r.useState)({}),2),K=$[0],J=$[1],te=Je((0,r.useState)(null),2),re=te[0],oe=te[1],ie=Je((0,r.useState)(!1),2),ae=ie[0],se=ie[1],le=Je((0,r.useState)(null),2),ce=le[0],de=le[1],ue=Je((0,r.useState)("reports"),2),fe=ue[0],pe=ue[1],he=Je((0,r.useState)([]),2),me=he[0],ge=he[1],xe=Je((0,r.useState)(!1),2),ve=xe[0],ye=xe[1],be=Je((0,r.useState)(!1),2),we=be[0],je=be[1],ke=Je((0,r.useState)(null),2),Ne=ke[0],Ee=ke[1],Se=Je((0,r.useState)(null),2),Ae=Se[0],Ce=Se[1],Fe=Je((0,r.useState)(!1),2),Le=Fe[0],ze=Fe[1],Oe=Je((0,r.useState)(null),2),_e=Oe[0],Ie=Oe[1],Re=Je((0,r.useState)([]),2),Pe=Re[0],De=Re[1],Me=Je((0,r.useState)(!1),2),Be=Me[0],Te=Me[1];(0,r.useEffect)((function(){var e=n.pathname,t="/analyse-your-ivf-report";if(e===t)E("home");else if(e==="".concat(t,"/upload"))E("upload"),(0,c.L9)(c.OI.REPORT_ANALYZER_UPLOAD_START);else if(e==="".concat(t,"/vault"))E("vault");else if(e==="".concat(t,"/review"))E("review");else if(e.startsWith("".concat(t,"/results/"))){var r=e.split("/").pop();E("results"),r&&((0,c.L9)(c.OI.REPORT_ANALYZER_RESULTS_VIEWED),en(r))}}),[n.pathname]),(0,r.useEffect)((function(){window.scrollTo(0,0)}),[N]),(0,r.useEffect)((function(){var e=function(e){"Escape"===e.key&&C(!1)};return A&&window.addEventListener("keydown",e),function(){return window.removeEventListener("keydown",e)}}),[A]);var We=function(e){var n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:1e3;Ce(e),setTimeout((function(){return Ce(null)}),n)},Ye=function(){var e=Ke(Xe().mark((function e(){var n,t,r=arguments;return Xe().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:if(n=r.length>0&&void 0!==r[0]&&r[0],localStorage.getItem("token")){e.next=6;break}return M([]),W(!1),e.abrupt("return");case 6:return n||W(!0),e.prev=7,e.next=10,(0,Ge.WY)("get","analyses");case 10:(t=e.sent).data.success&&M(t.data.data.data),e.next=17;break;case 14:e.prev=14,e.t0=e.catch(7),console.error("Failed to fetch history",e.t0);case 17:return e.prev=17,n||W(!1),e.finish(17);case 20:case"end":return e.stop()}}),e,null,[[7,14,17,20]])})));return function(){return e.apply(this,arguments)}}(),Ue=function(){var e=Ke(Xe().mark((function e(){var n;return Xe().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:if(localStorage.getItem("token")){e.next=3;break}return e.abrupt("return");case 3:return ye(!0),e.prev=4,e.next=7,(0,Ge.WY)("get","reports");case 7:(n=e.sent).data.success&&ge(n.data.data),e.next=14;break;case 11:e.prev=11,e.t0=e.catch(4),console.error("Failed to fetch reports",e.t0);case 14:return e.prev=14,ye(!1),e.finish(14);case 17:case"end":return e.stop()}}),e,null,[[4,11,14,17]])})));return function(){return e.apply(this,arguments)}}(),qe=function(){var e=Ke(Xe().mark((function e(){var n,t,r,o=arguments;return Xe().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:if(n=(o.length>0&&void 0!==o[0]?o[0]:{}).silent,t=void 0!==n&&n,localStorage.getItem("token")){e.next=4;break}return e.abrupt("return");case 4:return t||Te(!0),e.prev=5,e.next=8,(0,Ge.WY)("get","shares");case 8:(r=e.sent).data.success&&De(r.data.data),e.next=15;break;case 12:e.prev=12,e.t0=e.catch(5),console.error("Failed to fetch shares",e.t0);case 15:return e.prev=15,t||Te(!1),e.finish(15);case 18:case"end":return e.stop()}}),e,null,[[5,12,15,18]])})));return function(){return e.apply(this,arguments)}}(),$e=function(){var e=Ke(Xe().mark((function e(n){return Xe().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:if(localStorage.getItem("token")){e.next=3;break}return e.abrupt("return");case 3:return e.prev=3,e.next=6,(0,Ge.WY)("delete","share",{params:{id:n}});case 6:De((function(e){return e.filter((function(e){return e.id!==n}))})),We("Share link revoked"),e.next=14;break;case 10:e.prev=10,e.t0=e.catch(3),console.error("Failed to revoke share",e.t0),We("Failed to revoke share link");case 14:case"end":return e.stop()}}),e,null,[[3,10]])})));return function(n){return e.apply(this,arguments)}}(),en=function(){var n=Ke(Xe().mark((function n(t){var r,o,i,a;return Xe().wrap((function(n){for(;;)switch(n.prev=n.next){case 0:if(localStorage.getItem("token")){n.next=17;break}return n.prev=2,n.next=5,window.axios.get("/drmalpani/ivf-tool-analytics/analysis/".concat(t));case 5:if(!(r=n.sent).data.success){n.next=11;break}return o=r.data.data,w(o),"completed"===o.status&&o.ai_output&&x(o.ai_output),n.abrupt("return");case 11:n.next=15;break;case 13:n.prev=13,n.t0=n.catch(2);case 15:return C(!0),n.abrupt("return");case 17:return n.prev=17,n.next=20,(0,Ge.WY)("get","analysis",{params:{id:t}});case 20:if(!(i=n.sent).data.success){n.next=27;break}a=i.data.data,w(a),"completed"===a.status&&a.ai_output&&x(a.ai_output),n.next=28;break;case 27:throw new Error("Failed to fetch analysis");case 28:n.next=34;break;case 30:n.prev=30,n.t1=n.catch(17),console.error("Failed to fetch analysis",n.t1),n.t1.response&&401===n.t1.response.status?(localStorage.removeItem("token"),C(!0)):e("/analyse-your-ivf-report");case 34:case"end":return n.stop()}}),n,null,[[2,13],[17,30]])})));return function(e){return n.apply(this,arguments)}}(),nn=(0,r.useRef)(null),tn=(0,r.useRef)(!1);(0,r.useEffect)((function(){if("vault"===N){var e=D.some((function(e){return["queued","processing"].includes(e.status)}));return e&&!nn.current?nn.current=setInterval((function(){Ye(!0)}),1e4):!e&&nn.current&&(clearInterval(nn.current),nn.current=null),function(){nn.current&&(clearInterval(nn.current),nn.current=null)}}nn.current&&(clearInterval(nn.current),nn.current=null)}),[N,D]),(0,r.useEffect)((function(){if("vault"===N){if(tn.current)return;Ye(),Ue(),qe()}}),[N]);
2var rn=(0,r.useRef)(null);(0,r.useEffect)((function(){return"vault"===N&&"shared"===fe&&(rn.current=setInterval((function(){return qe({silent:!0})}),1e4)),function(){rn.current&&(clearInterval(rn.current),rn.current=null)}}),[N,fe]);var on=function(){var e=Ke(Xe().mark((function e(n){return Xe().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:if(localStorage.getItem("token")){e.next=3;break}return e.abrupt("return");case 3:return Ee(n),e.prev=4,e.next=7,(0,Ge.WY)("delete","report",{params:{id:n}});case 7:ge((function(e){return e.filter((function(e){return e.id!==n}))})),Ce("Report deleted successfully"),setTimeout((function(){return Ce(null)}),3e3),e.next=16;break;case 12:e.prev=12,e.t0=e.catch(4),console.error("Failed to delete report",e.t0),alert("Failed to delete report. Please try again.");case 16:return e.prev=16,Ee(null),e.finish(16);case 19:case"end":return e.stop()}}),e,null,[[4,12,16,19]])})));return function(n){return e.apply(this,arguments)}}(),an=function(){var e=Ke(Xe().mark((function e(){var n,t,r,o,i,a;return Xe().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:if(0!==me.length){e.next=4;break}return sn(),E("upload"),e.abrupt("return");case 4:if(localStorage.getItem("token")){e.next=7;break}return e.abrupt("return");case 7:je(!0),n=[],t={},r=0;case 11:if(!(r<me.length)){e.next=28;break}return o=me[r],e.prev=13,e.next=16,(0,Ge.WY)("get","reportDownload",{params:{id:o.id},config:{responseType:"blob"}});case 16:i=e.sent,a=new File([i.data],o.original_name,{type:o.mime_type}
2),n.push(a),t[n.length-1]=ln(o.original_name),e.next=25;break;case 22:e.prev=22,e.t0=e.catch(13),console.error("Failed to download report ".concat(o.original_name),e.t0);case 25:r++,e.next=11;break;case 28:sn(),V(n),J(t),je(!1),E("upload");case 33:case"end":return e.stop()}}),e,null,[[13,22]])})));return function(){return e.apply(this,arguments)}}(),sn=function(){V([]),J({}),oe(null),X(!1),x(null),H(!1),u(!1)},ln=function(e){var n=e.toLowerCase();return/(anti[\s-_]?mullerian|amh)/.test(n)?"amh":/(semen|sperm|seminogram)/.test(n)?"semen":/(scan|ultrasound|usg|sonography|follicular|tvs)/.test(n)?"scans":/(hormone|fsh|lh|estradiol|progesterone|prolactin|tsh)/.test(n)?"hormone":/(hsg|hysterosalpingogram)/.test(n)?"hsg":/(genetic|karyotype|dna|chromosome)/.test(n)?"genetic":/(discharge|summary)/.test(n)?"discharge":"other"},cn=function(e){V((function(n){return n.filter((function(n,t){return t!==e}))})),J((function(n){var t={};return Object.keys(n).forEach((function(r){var o=Number(r);o<e&&(t[o]=n[o]),o>e&&(t[o-1]=n[o])})),t})),oe((function(n){return null===n||n===e?null:n>e?n-1:n}))},dn=function(){var e=Ke(Xe().mark((function e(){var n,t;return Xe().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:if(n=localStorage.getItem("token"),(0,c.L9)(c.OI.REPORT_ANALYZER_SAVE_PROGRESS_CLICK),n){e.next=5;break}return C(!0),e.abrupt("return");case 5:if(0!==U.length){e.next=7;break}return e.abrupt("return");case 7:return t=new FormData,U.forEach((function(e){return t.append("files[]",e)})),h(!0),e.prev=10,e.next=13,(0,Ge.WY)("post","saveProgress",{data:t,config:{headers:{"Content-Type":"multipart/form-data"}}});case 13:if(!e.sent.data.success){e.next=19;break}return e.next=17,Ue();case 17:We("Your reports have been saved successfully"),(0,c.L9)(c.OI.REPORT_ANALYZER_PROGRESS_SAVED);case 19:e.next=25;break;case 21:e.prev=21,e.t0=e.catch(10),console.error("Save progress failed",e.t0),We("Failed to save progress. Please try again.");case 25:return e.prev=25,h(!1),e.finish(25);case 28:case"end":return e.stop()}}),e,null,[[10,21,25,28]])})));return function(){return e.apply(this,arguments)}}(),un=function(){var e=Ke(Xe().mark((function e(){var n,t;return Xe().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:if(n=localStorage.getItem("token")){e.next=3;break}return e.abrupt("return");case 3:return e.prev=3,e.next=6,window.axios.get("/api/user",{headers:{Authorization:"Bearer ".concat(n)}});case 6:(t=e.sent).data&&t.data.email&&de(t.data.email),e.next=13;break;case 10:e.prev=10,e.t0=e.catch(3),console.error("Failed to fetch user email",e.t0);case 13:case"end":return e.stop()}}),e,null,[[3,10]])})));return function(){return e.apply(this,arguments)}}(),fn=function(){var e=Ke(Xe().mark((function e(){var n;return Xe().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return u(!0),n=new FormData,U.forEach((function(e){return n.append("files[]",e)})),localStorage.getItem("token"),e.prev=4,e.next=7,(0,Ge.WY)("post","analyses",{data:n,config:{headers:{"Content-Type":"multipart/form-data"}}});case 7:if(!e.sent.data.success){e.next=11;break}return(0,c.L9)(c.OI.REPORT_ANALYZER_ANALYSIS_SUBMITTED),e.abrupt("return",!0);case 11:return e.abrupt("return",!1);case 14:return e.prev=14,e.t0=e.catch(4),console.error("Analysis submission failed",e.t0),alert("Failed to submit analysis request. Please try again."),e.abrupt("return",!1);case 19:return e.prev=19,u(!1),e.finish(19);case 22:case"end":return e.stop()}}),e,null,[[4,14,19,22]])})));return function(){return e.apply(this,arguments)}}();return(0,s.jsxs)("div",{className:"ivf-analyzer-wrapper",children:["home"===N&&(0,s.jsx)(v,{onUploadClick:function(){sn(),e("/analyse-your-ivf-report/upload")},onVaultClick:function(){Ye(),e("/analyse-your-ivf-report/vault")}}),"upload"===N&&(0,s.jsx)(Z,{uploadedFiles:U,showCategoryHelper:Q,setShowCategoryHelper:X,onFilesSelected:function(e){V((function(n){var t=e.slice(0,Math.max(15-n.length,0));return 0===t.length?n:(J((function(e){var r=Ze({},e);return t.forEach((function(e,t){r[n.length+t]=ln(e.name)})),r})),(0,c.L9)(c.OI.REPORT_ANALYZER_FILES_SELECTED),[].concat(Ve(n),Ve(t)))}))},onRemoveFile:cn,onError:We,onContinue:function(){return e("/analyse-your-ivf-report/review")},onBack:function(){return e("/analyse-your-ivf-report")},onVaultClick:function(){Ye(),e("/analyse-your-ivf-report/vault")}}
2),"review"===N&&(0,s.jsx)(ee,{uploadedFiles:U,fileCategories:K,editingCategory:re,setEditingCategory:oe,isAnalyzing:d,isSavingProgress:p,onRemoveFile:cn,onUpdateCategory:function(e,n){J((function(t){return Ze(Ze({},t),{},Qe({},e,n))}))},onSaveProgress:dn,onAnalysisClick:function(){var e=localStorage.getItem("token");(0,c.L9)(c.OI.REPORT_ANALYZER_GENERATE_SUMMARY_CLICK),e?(un(),se(!0)):se(!0)},onAddMore:function(){return e("/analyse-your-ivf-report/upload")},onHome:function(){return e("/analyse-your-ivf-report")}}),"results"===N&&(0,s.jsx)(j,{results:g,selectedRecord:b,onBackToVault:function(){return e("/analyse-your-ivf-report/vault")},onHome:function(){return e("/analyse-your-ivf-report")},onShareClick:function(){Ie(null==b?void 0:b.id),ze(!0)}}),"vault"===N&&(0,s.jsx)(R,{vaultTab:fe,setVaultTab:pe,vaultReports:me,loadingReports:ve,loadingVaultToUpload:we,deletingReportId:Ne,history:D,loadingHistory:T,shares:Pe,loadingShares:Be,onHome:function(){return e("/analyse-your-ivf-report")},onUpload:function(){sn(),e("/analyse-your-ivf-report/upload")},onStartAnalysis:an,onDeleteReport:on,onViewResult:function(n){(0,c.L9)(c.OI.REPORT_ANALYZER_ASSESSMENT_VIEW_CLICK),e("/analyse-your-ivf-report/results/".concat(n.id))},onShareClick:function(){Ie(null),ze(!0)},onRevokeShare:$e,getFileIcon:function(e){return e?"application/pdf"===e?"fa-file-pdf":e.startsWith("image/")?"fa-file-image":"fa-file":"fa-file"},formatFileSize:function(e){return e?e<1024?e+" B":e<1048576?(e/1024).toFixed(1)+" KB":(e/1048576).toFixed(1)+" MB":""}}),(0,s.jsx)(l,{message:Ae}),(0,s.jsx)(ne,{showAuthModal:A,showAnalysisModal:ae,userEmail:ce,onCloseAuth:function(){return C(!1)},onCloseAnalysis:function(){return se(!1)},onRegisterClick:function(){C(!1),se(!1),z(!0)},onLoginClick:function(){C(!1),se(!1),I(!0)},onConfirmAnalysis:function(){se(!1);var n=(new Date).toISOString();ge(U.map((function(e,t){return{id:"uploading-".concat(t),original_name:e.name,mime_type:e.type,size_bytes:e.size,created_at:n}}))),tn.current=!0,e("/analyse-your-ivf-report/vault"),fn().then(function(){var e=Ke(Xe().mark((function e(n){return Xe().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:if(tn.current=!1,!n){e.next=6;break}return e.next=4,Promise.all([Ye(!0),Ue()]);case 4:e.next=8;break;case 6:Ye(!0),Ue();case 8:case"end":return e.stop()}}),e)})));return function(n){return e.apply(this,arguments)}}())}}),(0,s.jsx)(He,{show:Le,onClose:function(){ze(!1),Ie(null)},history:D,vaultReports:me,defaultAnalysisId:_e,onShareCreated:function(e){De((function(n){return[e].concat(Ve(n))}))}}),(0,s.jsx)(a.default,{show:_,onHide:function(){return I(!1)},onSuccess:function(){I(!1),Ye(),Ue()},onRegisterClick:function(){I(!1),z(!0)},title:"Login to Save Progress",message:"Please login to save your uploaded reports and continue from where you left off."}),(0,s.jsx)(i.default,{show:L,onHide:function(){"review"===N&&(0,c.L9)(c.OI.REPORT_ANALYZER_REVIEW_REGISTER_MODAL_CLOSED),z(!1)},onSuccess:function(){"review"===N&&(0,c.L9)(c.OI.REPORT_ANALYZER_REVIEW_ACCOUNT_CREATED),z(!1),Ye(),Ue()},onLoginClick:function(){z(!1),I(!0)},title:"Create Account to Save Progress",message:"Create an account to securely save your report uploads and access them later."}),(0,s.jsx)("style",{children:'\n    @import url(\'https://fonts.googleapis.com/css2?family=Lora:ital,wght@0,600;0,700;1,600&family=Inter:wght@400;500;600;700&display=swap\');\n\n    /* =============================================\n       LANDING PAGE (lp-*) STYLES\n       Color palette:\n         --lp-cream  #FAF8F5  warm page bg\n         --lp-navy   #1C2B3A  primary dark\n         --lp-blue   #2563EB  CTA accent\n         --lp-mint   #3D9970  positive / ok\n         --lp-amber  #B45309  warning / low flag\n         --lp-muted  #5A7083  secondary text\n    ============================================= */\n\n    .lp-root {\n        font-family: "Inter", sans-serif;\n        background: #FAF8F5;\n        color: #1C2B3A;\n        line-height: 1.6;\n    }\n\n    .lp-container {\n        max-width: 1100px;\n        margin: 0 auto;\n        padding: 0 24px;\n    }\n\n    .lp-btn-primary {\n        display: inline-flex;\n        align-items: center;\n        gap: 8px;\n        background: #1C2B3A;\n        color: #ffffff;\n        font-family: "Inter", sans-serif;\n        font-size: 1rem;\n        font-weight: 600;\n        padding: 14px 28px;\n        border: none;\n        border-radius: 8px;\n        cursor: pointer;\n        transition: background 0.2s ease, transform 0.15s ease;\n        min-height: 48px;\n        text-decoration: none;\n        white-space: nowrap;\n        letter-spacing: 0.01em;\n    }\n\n    .lp-btn-primary:hover {\n        background: #2E4057;\n        transform: translateY(-1px);\n    }\n\n    .lp-btn-primary:focus-visible {\n        outline: 2px solid #5B8DB8;\n        outline-offset: 3px;\n    }\n\n    .lp-section-label {\n        font-size: 0.72rem;\n        font-weight: 700;\n        letter-spacing: 0.12em;\n        text-transform: uppercase;\n        color: #5B8DB8;\n        margin-bottom: 10px;\n    }\n\n    .lp-section-h2 {\n        font-family: "Lora", serif;\n        font-size: clamp(1.6rem, 3vw, 2.2rem);\n        font-weight: 700;\n        color: #1C2B3A;\n        line-height: 1.25;\n        margin: 0 0 16px;\n    }\n\n    /* ---- HERO ---- */\n\n    .lp-hero {\n        padding: 80px 0 72px;\n        background: #FAF8F5;\n        border-bottom: 1px solid #E8E2DA;\n    }\n\n    .lp-hero-inner {\n        display: grid;\n        grid-template-columns: 1fr 1fr;\n        gap: 56px;\n        align-items: start;\n    }\n\n    .lp-hero-text {\n        padding-top: 12px;\n    }\n\n    .lp-hero-eyebrow {\n        display: inline-block;\n        font-size: 0.75rem;\n        font-weight: 600;\n        letter-spacing: 0.1em;\n        text-transform: uppercase;\n        color: #3D7A5E;\n        background: rgba(61, 122, 94, 0.08);\n        border: 1px solid rgba(61, 122, 94, 0.2);\n        border-radius: 999px;\n        padding: 4px 14px;\n        margin-bottom: 18px;\n    }\n\n    .lp-hero-h1 {\n        font-family: "Lora", serif;\n        font-size: clamp(2rem, 4vw, 3rem);\n        font-weight: 700;\n        color: #1C2B3A;\n        line-height: 1.18;\n        margin: 0 0 20px;\n        letter-spacing: -0.01em;\n    }\n\n    .lp-hero-accent {\n        font-style: italic;\n        color: #5B8DB8;\n    }\n\n    .lp-hero-desc {\n        font-size: 1.05rem;\n        color: #5A7083;\n        margin: 0 0 32px;\n        max-width: 480px;\n        line-height: 1.75;\n    }\n\n    .lp-hero-cta {\n        font-size: 1rem;\n        padding: 14px 28px;\n        margin-bottom: 22px;\n    }\n\n    .lp-hero-trust {\n        display: flex;\n        flex-wrap: wrap;\n        gap: 8px;\n    }\n\n    .lp-trust-pill {\n        display: inline-flex;\n        align-items: center;\n        gap: 6px;\n        font-size: 0.78rem;\n        font-weight: 500;\n        color: #637D8F;\n        background: #EEF2F6;\n        border-radius: 999px;\n        padding: 5px 12px;\n    }\n\n    .lp-trust-pill svg {\n        color: #5B8DB8;\n        flex-shrink: 0;\n    }\n\n    .lp-hero-visual {\n        display: flex;\n        justify-content: center;\n    }\n\n    /* ---- HERO MOMENTS PANEL ---- */\n\n    .lp-hero-moments {\n        display: flex;\n        flex-direction: column;\n        gap: 0;\n    }\n\n    .lp-moment {\n        background: #ffffff;\n        border: 1px solid #E8E2DA;\n        border-radius: 12px;\n        padding: 16px 18px;\n    }\n\n    .lp-moment--before {\n        border-left: 3px solid #C9A96E;\n    }\n\n    .lp-moment--analysis {\n        border-left: 3px solid #5B8DB8;\n        background: #F7FBFF;\n    }\n\n    .lp-moment--after {\n        border-left: 3px solid #4A9068;\n        background: #F6FAF7;\n    }\n\n    .lp-moment-tag {\n        font-size: 0.74rem;\n        font-weight: 700;\n        letter-spacing: 0.09em;\n        text-transform: uppercase;\n        color: #8A9BA8;\n        margin-bottom: 8px;\n    }\n\n    .lp-moment--before .lp-moment-tag { color: #B08040; }\n    .lp-moment--analysis .lp-moment-tag { color: #4A7A9B; }\n    .lp-moment--after .lp-moment-tag { color: #3D8060; }\n\n    .lp-moment-quote {\n        font-size: 0.95rem;\n        color: #3C4F5C;\n        line-height: 1.65;\n        margin: 0 0 10px;\n        font-style: italic;\n    }\n\n    .lp-moment-author {\n        font-size: 0.76rem;\n        font-weight: 600;\n        color: #8A9BA8;\n    }\n\n    .lp-moment-values {\n        display: flex;\n        flex-direction: column;\n        gap: 6px;\n        margin-bottom: 10px;\n    }\n\n    .lp-moment-row {\n        display: flex;\n        align-items: center;\n        justify-content: space-between;\n        gap: 10px;\n    }\n\n    .lp-moment-label {\n        font-size: 0.875rem;\n        font-weight: 600;\n        color: #1C2B3A;\n    }\n\n    .lp-moment-flag {\n        font-size: 0.68rem;\n        font-weight: 600;\n        padding: 2px 8px;\n        border-radius: 999px;\n        white-space: nowrap;\n    }\n\n    .lp-moment-flag.low {\n        background: #FEF3C7;\n        color: #92400E;\n    }\n\n    .lp-moment-flag.warn {\n        background: #FEF3C7;\n        color: #92400E;\n    }\n\n    .lp-moment-flag.ok {\n        background: #D1FAE5;\n        color: #065F46;\n    }\n\n    .lp-moment-insight {\n        font-size: 0.8rem;\n        color: #4A6A7C;\n        line-height: 1.6;\n        margin: 0;\n    }\n\n    .lp-moment-connector {\n        display: flex;\n        justify-content: center;\n        color: #C9A96E;\n        padding: 4px 0;\n    }\n\n    /* ---- SAMPLE RESULT CARD ---- */\n\n    .lp-sample-card {\n        background: #ffffff;\n        border-radius: 16px;\n        box-shadow: 0 8px 32px rgba(28, 43, 58, 0.12), 0 2px 8px rgba(28, 43, 58, 0.06);\n        overflow: hidden;\n        width: 100%;\n        max-width: 420px;\n        border: 1px solid #E8E2DA;\n    }\n\n    .lp-sample-header {\n        display: flex;\n        align-items: center;\n        justify-content: space-between;\n        padding: 14px 18px;\n        background: #F8FAFC;\n        border-bottom: 1px solid #E2E8F0;\n    }\n\n    .lp-sample-badge {\n        font-size: 0.72rem;\n        font-weight: 600;\n        letter-spacing: 0.06em;\n        text-transform: uppercase;\n        color: #64748B;\n    }\n\n    .lp-sample-status {\n        font-size: 0.72rem;\n        font-weight: 600;\n        padding: 3px 10px;\n        border-radius: 999px;\n    }\n\n    .lp-sample-status.ok {\n        background: #DCFCE7;\n        color: #15803D;\n    }\n\n    .lp-sample-rows {\n        padding: 4px 0;\n    }\n\n    .lp-sample-row {\n        display: flex;\n        align-items: center;\n        gap: 10px;\n        padding: 12px 18px;\n        border-bottom: 1px solid #F1F5F9;\n    }\n\n    .lp-sample-row:last-child {\n        border-bottom: none;\n    }\n\n    .lp-sample-label {\n        flex: 1;\n        font-size: 0.8rem;\n        color: #475569;\n        font-weight: 500;\n    }\n\n    .lp-sample-value {\n        font-size: 0.82rem;\n        font-weight: 700;\n        color: #0D1F35;\n        white-space: nowrap;\n    }\n\n    .lp-sample-tag {\n        font-size: 0.68rem;\n        font-weight: 600;\n        padding: 2px 8px;\n        border-radius: 999px;\n        white-space: nowrap;\n    }\n\n    .lp-sample-tag.ok {\n        background: #DCFCE7;\n        color: #15803D;\n    }\n\n    .lp-sample-tag.low {\n        background: #FEF3C7;\n        color: #B45309;\n    }\n\n    .lp-sample-summary {\n        display: flex;\n        gap: 12px;\n        align-items: flex-start;\n        padding: 14px 18px;\n        background: #EFF6FF;\n        border-top: 1px solid #DBEAFE;\n    }\n\n    .lp-sample-summary-icon {\n        flex-shrink: 0;\n        width: 28px;\n        height: 28px;\n        background: #0EA5E9;\n        border-radius: 8px;\n        color: #ffffff;\n        font-size: 0.65rem;\n        font-weight: 700;\n        display: flex;\n        align-items: center;\n        justify-content: center;\n        letter-spacing: 0.02em;\n    }\n\n    .lp-sample-summary-text {\n        font-size: 0.78rem;\n        color: #1E40AF;\n        line-height: 1.55;\n    }\n\n    /* ---- DR. MALPANI SECTION ---- */\n\n    .lp-doctor {\n        background: #ffffff;\n        border-top: 1px solid #E8E2DA;\n        border-bottom: 1px solid #E8E2DA;\n        padding: 64px 0;\n    }\n\n    .lp-doctor-inner {\n        display: grid;\n        grid-template-columns: auto 1fr auto;\n        gap: 48px;\n        align-items: center;\n    }\n\n    .lp-doctor-avatar-img {\n        width: 88px;\n        height: 88px;\n        border-radius: 50%;\n        object-fit: cover;\n        object-position: center top;\n        flex-shrink: 0;\n        border: 3px solid #D6CFC4;\n    }\n\n    .lp-doctor-text {}\n\n    .lp-doctor-name {\n        font-family: "Lora", serif;\n        font-size: 1.25rem;\n        font-weight: 700;\n        color: #1C2B3A;\n        margin: 0 0 4px;\n    }\n\n    .lp-doctor-cred {\n        font-size: 0.82rem;\n        color: #7A6E63;\n        margin: 0 0 12px;\n        font-weight: 500;\n    }\n\n    .lp-doctor-bio {\n        font-size: 0.95rem;\n        color: #5A7083;\n        margin: 0;\n        line-height: 1.7;\n        max-width: 540px;\n    }\n\n    .lp-doctor-stats {\n        display: flex;\n        flex-direction: column;\n        gap: 20px;\n        flex-shrink: 0;\n    }\n\n    .lp-doctor-stat {\n        text-align: right;\n    }\n\n    .lp-doctor-stat-num {\n        font-family: "Lora", serif;\n        font-size: 1.6rem;\n        font-weight: 700;\n        color: #1C2B3A;\n        line-height: 1;\n    }\n\n    .lp-doctor-stat-label {\n        font-size: 0.72rem;\n        color: #7A6E63;\n        font-weight: 500;\n        margin-top: 3px;\n    }\n\n    /* legacy trust strip kept for backward compat */\n    .lp-trust-strip { display: none; }\n    .lp-trust-inner {}\n    .lp-trust-stats { display: flex; align-items: center; gap: 28px; }\n    .lp-trust-stat { text-align: center; }\n    .lp-trust-stat-num { font-size: 1.4rem; font-weight: 800; color: #1C2B3A; line-height: 1; }\n    .lp-trust-stat-label { font-size: 0.72rem; color: #5A7083; margin-top: 3px; }\n    .lp-trust-divider { width: 1px; height: 36px; background: #E8E2DA; }\n\n    /* ---- HOW IT WORKS ---- */\n\n    .lp-how {\n        padding: 80px 0;\n        background: #F2EDE5;\n    }\n\n    .lp-how .lp-container {\n        text-align: center;\n    }\n\n    .lp-how-sub {\n        font-size: 1rem;\n        color: #5A7083;\n        max-width: 560px;\n        margin: 0 auto;\n        line-height: 1.7;\n    }\n\n    .lp-steps {\n        display: flex;\n        align-items: flex-start;\n        justify-content: center;\n        gap: 0;\n        margin: 48px 0 40px;\n    }\n\n    .lp-step {\n        flex: 1;\n        max-width: 280px;\n        padding: 32px 24px;\n        background: #ffffff;\n        border-radius: 16px;\n        border: 1px solid #E2E8F0;\n        box-shadow: 0 4px 16px rgba(13, 31, 53, 0.05);\n        text-align: center;\n    }\n\n    .lp-step-num {\n        width: 52px;\n        height: 52px;\n        background: #1C2B3A;\n        border-radius: 14px;\n        display: flex;\n        align-items: center;\n        justify-content: center;\n        margin: 0 auto 16px;\n        color: #ffffff;\n        box-shadow: 0 4px 12px rgba(28, 43, 58, 0.2);\n    }\n\n    .lp-step h3 {\n        font-size: 1rem;\n        font-weight: 700;\n        color: #0D1F35;\n        margin: 0 0 8px;\n    }\n\n    .lp-step p {\n        font-size: 0.875rem;\n        color: #64748B;\n        margin: 0;\n        line-height: 1.6;\n    }\n\n    a.lp-step--upload-link {\n        text-decoration: none;\n        color: inherit;\n        pointer-events: none;\n        cursor: default;\n    }\n\n    .lp-step-arrow {\n        display: flex;\n        align-items: center;\n        justify-content: center;\n        color: #CBD5E1;\n        padding: 0 12px;\n        margin-top: 26px;\n        flex-shrink: 0;\n    }\n\n    .lp-how-cta {\n        margin-top: 8px;\n    }\n\n    /* ---- WHAT YOU GET / PREVIEW ---- */\n\n    .lp-preview {\n        padding: 80px 0;\n        background: #ffffff;\n    }\n\n    .lp-preview-inner {\n        display: grid;\n        gr
2id-template-columns: 1fr 1fr;\n        gap: 60px;\n        align-items: center;\n    }\n\n    .lp-preview-desc {\n        font-size: 0.95rem;\n        color: #64748B;\n        margin: 0 0 24px;\n        line-height: 1.7;\n    }\n\n    .lp-preview-list {\n        list-style: none;\n        padding: 0;\n        margin: 0;\n        display: flex;\n        flex-direction: column;\n        gap: 12px;\n    }\n\n    .lp-preview-list li {\n        display: flex;\n        align-items: flex-start;\n        gap: 10px;\n        font-size: 0.9rem;\n        color: #334155;\n        font-weight: 500;\n    }\n\n    .lp-preview-list li svg {\n        color: #10B981;\n        flex-shrink: 0;\n        margin-top: 2px;\n    }\n\n    .lp-preview-card-wrap {\n        display: flex;\n        justify-content: center;\n    }\n\n    .lp-preview-card-wrap .lp-sample-card {\n        max-width: 100%;\n        box-shadow: 0 16px 48px rgba(13, 31, 53, 0.12);\n        border: 1px solid #E2E8F0;\n    }\n\n    /* ---- TESTIMONIALS ---- */\n\n    .lp-testimonials {\n        padding: 80px 0;\n        background: #FAF8F5;\n    }\n\n    .lp-testimonials .lp-container {\n        text-align: center;\n    }\n\n    /* Carousel (mobile default) — overridden to 3-col grid on desktop */\n    .lp-testi-carousel {\n        position: relative;\n        overflow: hidden;\n        margin-top: 40px;\n    }\n\n    .lp-testi-track {\n        display: flex;\n        transition: transform 0.4s cubic-bezier(0.4, 0, 0.2, 1);\n        will-change: transform;\n    }\n\n    .lp-testi-slide {\n        flex: 0 0 100%;\n        width: 100%;\n        padding: 0 44px;\n        box-sizing: border-box;\n    }\n\n    .lp-testi-card {\n        background: #ffffff;\n        border: 1px solid #E2E8F0;\n        border-radius: 16px;\n        padding: 28px 24px;\n        box-shadow: 0 4px 16px rgba(13, 31, 53, 0.05);\n        display: flex;\n        flex-direction: column;\n        gap: 16px;\n        text-align: left;\n        max-width: 620px;\n        margin: 0 auto;\n    }\n\n    .lp-testi-nav {\n        position: absolute;\n        top: 50%;\n        transform: translateY(-50%);\n        background: #ffffff;\n        border: 1px solid #E2E8F0;\n        border-radius: 50%;\n        width: 36px;\n        height: 36px;\n        font-size: 1rem;\n        color: #1C2B3A;\n        cursor: pointer;\n        box-shadow: 0 2px 8px rgba(13, 31, 53, 0.1);\n        display: flex;\n        align-items: center;\n        justify-content: center;\n        transition: background 0.2s, box-shadow 0.2s;\n        z-index: 2;\n    }\n\n    .lp-testi-nav:hover {\n        background: #F1F5F9;\n        box-shadow: 0 4px 12px rgba(13, 31, 53, 0.15);\n    }\n\n    .lp-testi-nav-prev { left: 2px; }\n    .lp-testi-nav-next { right: 2px; }\n\n    .lp-testi-dots {\n        display: flex;\n        justify-content: center;\n        gap: 8px;\n        margin-top: 20px;\n    }\n\n    .lp-testi-dot {\n        width: 8px;\n        height: 8px;\n        border-radius: 50%;\n        border: none;\n        background: #CBD5E1;\n        cursor: pointer;\n        padding: 0;\n        transition: background 0.2s, transform 0.2s;\n    }\n\n    .lp-testi-dot.active {\n        background: #1C2B3A;\n        transform: scale(1.25);\n    }\n\n    /* Desktop: revert to 3-column grid, hide carousel controls */\n    @media (min-width: 768px) {\n        .lp-testi-carousel {\n            overflow: visible;\n        }\n\n        .lp-testi-track {\n            display: grid;\n            grid-template-columns: repeat(3, 1fr);\n            gap: 24px;\n            transform: none !important;\n            transition: none;\n        }\n\n        .lp-testi-slide {\n            flex: unset;\n            width: auto;\n            padding: 0;\n        }\n\n        .lp-testi-card {\n            max-width: none;\n            margin: 0;\n        }\n\n        .lp-testi-nav,\n        .lp-testi-dots {\n            display: none;\n        }\n    }\n\n    .lp-stars {\n        color: #F59E0B;\n        font-size: 1rem;\n        letter-spacing: 1px;\n    }\n\n    .lp-testi-text {\n        font-size: 0.9rem;\n        color: #475569;\n        line-height: 1.7;\n        margin: 0;\n        flex: 1;\n    }\n\n    .lp-testi-author {\n        display: flex;\n        align-items: center;\n        gap: 12px;\n    }\n\n    .lp-testi-avatar {\n        width: 38px;\n        height: 38px;\n        border-radius: 50%;\n        background: linear-gradient(135deg, #5B8DB8 0%, #3D7A5E 100%);\n        color: #ffffff;\n        font-size: 0.9rem;\n        font-weight: 700;\n        display: flex;\n        align-items: center;\n        justify-content: center;\n        flex-shrink: 0;\n    }\n\n    .lp-testi-avatar-img {\n        width: 40px;\n        height: 40px;\n        border-radius: 50%;\n        object-fit: cover;\n        object-position: center top;\n        flex-shrink: 0;\n        border: 2px solid #E8E2DA;\n    }\n\n    .lp-testi-name {\n        font-size: 0.875rem;\n        font-weight: 700;\n        color: #0D1F35;\n    }\n\n    .lp-testi-meta {\n        font-size: 0.75rem;\n        color: #94A3B8;
2\n        margin-top: 1px;\n    }\n\n    /* ---- FAQ ---- */\n\n    .lp-faq {\n        padding: 80px 0;\n        background: #ffffff;\n    }\n\n    .lp-faq-inner {\n        display: grid;\n        grid-template-columns: 1fr 1.6fr;\n        gap: 60px;\n        align-items: flex-start;\n    }\n\n    .lp-faq-intro {\n        font-size: 0.9rem;\n        color: #64748B;\n        margin: 0;\n        line-height: 1.6;\n    }\n\n    .lp-faq-list {\n        display: flex;\n        flex-direction: column;\n        gap: 2px;\n    }\n\n    .lp-faq-item {\n        border: 1px solid #E2E8F0;\n        border-radius: 12px;\n        overflow: hidden;\n        background: #ffffff;\n        transition: border-color 0.2s ease;\n        margin-bottom: 8px;\n    }\n\n    .lp-faq-item.open {\n        border-color: #BAE6FD;\n    }\n\n    .lp-faq-q {\n        width: 100%;\n        display: flex;\n        align-items: center;\n        justify-content: space-between;\n        gap: 12px;\n        padding: 18px 20px;\n        background: transparent;\n        border: none;\n        cursor: pointer;\n        font-size: 0.92rem;\n        font-weight: 600;\n        color: #0D1F35;\n        text-align: left;\n        transition: background 0.15s ease;\n        min-height: 44px;\n        font-family: "Inter", sans-serif;\n    }\n\n    .lp-faq-q:hover {\n        background: #F8FAFC;\n    }\n\n    .lp-faq-q:focus-visible {\n        outline: 2px solid #5B8DB8;\n        outline-offset: -2px;\n    }\n\n    .lp-faq-icon {\n        flex-shrink: 0;\n        width: 24px;\n        height: 24px;\n        border-radius: 50%;\n        background: #EEF2F6;\n        color: #5B8DB8;\n        font-size: 1.1rem;\n        font-weight: 400;\n        display: flex;\n        align-items: center;\n        justify-content: center;\n        line-height: 1;\n    }\n\n    .lp-faq-a {\n        padding: 0 20px 18px;\n        font-size: 0.875rem;\n        color: #475569;\n        line-height: 1.7;\n    }\n\n    /* ---- FINAL CTA ---- */\n\n    .lp-final-cta {\n        background: #0D1F35;\n        padding: 80px 0;\n        text-align: center;\n        position: relative;\n        overflow: hidden;\n    }\n\n    .lp-final-cta::before {\n        content: \'\';\n        position: absolute;\n        width: 500px;\n        height: 500px;\n        background: #0EA5E9;\n        border-radius: 50%;\n        filter: blur(120px);\n        opacity: 0.08;\n        top: -200px;\n        left: 50%;\n        transform: translateX(-50%);\n        pointer-events: none;\n    }\n\n    .lp-final-cta-inner {\n        position: relative;\n        z-index: 1;\n    }\n\n    .lp-final-eyebrow {\n        font-size: 0.75rem;\n        font-weight: 600;\n        letter-spacing: 0.12em;\n        text-transform: uppercase;\n        color: #0EA5E9;\n        margin-bottom: 16px;\n    }\n\n    .lp-final-h2 {\n        font-family: "Lora", serif;\n        font-size: clamp(1.8rem, 3.5vw, 2.6rem);\n        font-weight: 700;\n        color: #ffffff;\n        margin: 0 0 16px;\n        letter-spacing: -0.01em;\n    }\n\n    .lp-final-desc {\n        font-size: 1rem;\n        color: #94A3B8;\n        max-width: 500px;\n        margin: 0 auto 36px;\n        line-height: 1.7;\n    }\n\n    .lp-final-btn {\n        font-size: 1.05rem;\n        padding: 16px 36px;\n    }\n\n    .lp-final-note {\n        margin-top: 16px;\n        font-size: 0.78rem;\n        color: #475569;\n    }\n\n    /* ---- RESPONSIVE ---- */\n\n    @media (max-width: 900px) {\n        .lp-hero-inner {\n            grid-template-columns: 1fr;\n            gap: 32px;\n        }\n\n        .lp-hero {\n            padding: 56px 0 48px;\n        }\n\n        .lp-hero-desc {\n            max-width: 100%;\n        }\n\n        .lp-hero-moments {\n            order: 1;\n        }\n\n        .lp-preview-inner {\n            grid-template-columns: 1fr;\n            gap: 40px;\n        }\n\n        /* heading → content → image on mobile (do NOT reorder) */\n\n        .lp-faq-inner {\n            grid-template-columns: 1fr;\n            gap: 32px;\n        }\n\n\n        .lp-steps {\n            flex-direction: column;\n            align-items: center;\n            gap: 16px;\n        }\n\n        .lp-step {\n            max-width: 100%;\n            width: 100%;\n        }\n\n        a.lp-step--upload-link {\n            pointer-events: auto;\n            cursor: pointer;\n        }\n\n        .lp-step-arrow {\n            transform: rotate(90deg);\n            padding: 0;\n            margin: 0;\n        }\n\n        .lp-doctor-inner {\n            grid-template-columns: auto 1fr;\n            grid-template-rows: auto auto;\n            gap: 20px 20px;\n        }\n\n        .lp-doctor-stats {\n            grid-column: 1 / -1;\n            flex-direction: row;\n            gap: 32px;\n        }\n\n        .lp-doctor-stat {\n            text-align: left;\n        }\n    }\n\n    @media (max-width: 640px) {\n        /* Dr. Malpani: single-column stacked on small phones */\n        .lp-doctor-inner {\n            grid-template-columns: 1fr;\n            grid-template-rows: auto;\n            gap: 16px;\n            text-align: center;\n        }\n\n        .lp-doctor-avatar-img {\n            margin: 0 auto;\n        }\n\n        .lp-doctor-stats {\n            grid-column: 1;\n            flex-direction: row;\n            justify-content: center;\n            gap: 40px;\n        }\n\n        .lp-doctor-stat {\n            text-align: center;\n        }\n\n        .lp-doctor-bio {\n            text-align: left;\n            max-width: 100%;\n        }\n    }\n\n    @media (max-width: 600px) {\n        .lp-hero-h1 {\n            font-size: 2rem;\n        }\n\n        /* keep trust pills in a wrapping row, not stacked column */\n        .lp-hero-trust {\n            flex-direction: row;\n            flex-wrap: wrap;\n            gap: 6px;\n        }\n\n        .lp-sample-card {\n            max-width: 100%;\n        }\n\n        .lp-trust-stats {\n            flex-wrap: wrap;\n            gap: 16px;\n        }\n\n        .lp-trust-divider {\n            display: none;\n        }\n\n        .lp-trust-doc-cred {\n            font-size: 0.72rem;\n        }
2\n\n        .lp-faq-q {\n            font-size: 0.86rem;\n        }\n\n        .lp-how,\n        .lp-preview,\n        .lp-testimonials,\n        .lp-faq,\n        .lp-final-cta {\n            padding: 56px 0;\n        }\n    }\n\n    /* ===========================================================\n       LEGACY WRAPPER — non-homepage views (upload / review / etc)\n       =========================================================== */\n\n    .ivf-analyzer-wrapper {\n        --accent: #1F232D;\n        --accent-hover: #2AD497;\n        --text: #1F232D;\n        --muted: #6b7280;\n        --light: #f7fafc;\n        --bg: #ffffff;\n        font-family: var(--font-body);\n        color: var(--text);\n        line-height: 1.6;\n        background: #fff;\n    }\n\n    .ivf-analyzer-wrapper .sub-heading {\n        color: #ffffff;\n        font-size: 1.6rem;\n        font-weight: 500;\n        letter-spacing: 0.5px;\n        opacity: 0.9;\n        margin-bottom: 6px;\n        line-height: 1.4;\n        border-left: 4px solid var(--accent-hover);\n        padding-left: 10px;\n    }\n\n    .ivf-analyzer-wrapper .hero {\n        position: relative;\n        min-height: 80vh;\n        display: flex;\n        align-items: center;\n        justify-content: flex-start;\n        padding: 80px 8%;\n        color: #fff;\n        overflow: hidden;\n    }\n\n    .ivf-analyzer-wrapper .hero-bg-img {\n        position: absolute;\n        top: 0;\n        left: 0;\n        width: 100%;\n        height: 100%;\n        object-fit: cover;\n        object-position: center;\n        z-index: 0;\n    }\n\n    .ivf-analyzer-wrapper .hero-overlay {\n        position: absolute;\n        inset: 0;\n        background: linear-gradient(90deg, rgba(31,35,45,0.85) 45%, rgba(31,35,45,0.2) 85%);\n        z-index: 1;\n    }\n\n    .ivf-analyzer-wrapper .hero-content {\n        position: relative;\n        z-index: 2;\n        max-width: 540px;\n    }\n\n    .ivf-analyzer-wrapper .hero-text h1 {\n        font-size: 2.8rem;\n        margin-bottom: 18px;\n        color: #ffffff !important;\n        line-height: 1.25;\n        font-weight: 600;\n    }\n\n    .ivf-analyzer-wrapper .hero-text p {\n        font-size: 1.05rem;\n        color: #e2e8f0;\n        margin-bottom: 28px;\n    }\n\n    .ivf-analyzer-wrapper .btn-ivf {\n        border: none;\n        border-radius: 8px;\n        cursor: pointer;\n        padding: 12px 28px;\n        font-size: 1rem;\n        font-weight: 500;\n        transition: all 0.25s ease;\n        display: inline-block;\n        text-decoration: none;\n    }\n\n    .ivf-analyzer-wrapper .btn-ivf.primary {\n        background: #fff;\n        color: #000;\n        box-shadow: 0 4px 10px rgba(31,35,45,0.2);\n    }\n\n    .ivf-analyzer-wrapper .btn-ivf.secondary {\n        background: transparent;\n        color: #fff;\n        border: 1px solid #fff;\n    }\n\n    .ivf-analyzer-wrapper .btn-ivf.primary:hover {\n        background: var(--accent-hover);\n        color: #1F232D;\n        box-shadow: 0 6px 14px rgba(42,212,151,0.3);\n        transform: translateY(-2px);\n    }\n\n    .ivf-analyzer-wrapper .btn-ivf.secondary:hover {\n        background: rgba(255,255,255,0.1);\n    }\n\n    .ivf-analyzer-wrapper .benefits {\n        background: var(--bg);\n        padding: 80px 8%;\n        text-align: center;\n    }\n\n    .ivf-analyzer-wrapper .benefit-grid {\n        display: flex;\n        flex-wrap: wrap;\n        justify-content: center;\n        gap: 28px;\n    }\n\n    .ivf-analyzer-wrapper .benefit {\n        background: #fff;\n        border: 1px solid #e5e7eb;\n        border-radius: 14px;\n        padding: 32px 24px;\n        max-width: 300px;\n        box-shadow: 0 4px 14px rgba(0,0,0,0.05);\n    }\n\n    .ivf-analyzer-wrapper .benefit h3 { color: #1F232D; margin-top: 10px; font-weight: 600; }\n    .ivf-analyzer-wrapper .benefit p { color: #6b7280; }\n    .ivf-analyzer-wrapper .benefit img {\n        width: 56px;\n        margin-bottom: 16px;\n    }\n\n    .ivf-analyzer-wrapper .how-it-works {\n        padding: 80px 8%;\n        text-align: center;\n        background: #EFF5F2;\n    }
2\n\n    .ivf-analyzer-wrapper .steps-container {\n        display: flex;\n        justify-content: center;\n        align-items: center;\n        gap: 20px;\n        max-width: 1000px;\n        margin: 0 auto;\n        flex-wrap: wrap;\n    }\n\n    .ivf-analyzer-wrapper .step {\n        flex: 1;\n        min-width: 220px;\n        padding: 28px 20px;\n        background: #fff;\n        border-radius: 12px;\n        border: 1px solid #e5e7eb;\n    }\n\n    .ivf-analyzer-wrapper .step h3 { color: #1F232D; font-weight: 600; }\n    .ivf-analyzer-wrapper .step p { color: #6b7280; }\n    .ivf-analyzer-wrapper .step-number {\n        width: 48px;\n        height: 48px;\n        background: var(--accent);\n        color: #fff;\n        border-radius: 50%;\n        display: flex;\n        align-items: center;\n        justify-content: center;\n        margin: 0 auto 16px;\n        font-size: 1.3rem;\n        font-weight: 600;\n    }\n\n    .ivf-analyzer-wrapper .cta-section {\n        position: relative;\n        background: url("/Analyse-IVF-Report/public/images/cta.png") center/cover no-repeat;\n        padding: 100px 8%;\n        text-align: center;\n        color: #fff;\n    }\n\n    .ivf-analyzer-wrapper .cta-section::before {\n        content: "";\n        position: absolute;\n        inset: 0;\n        background: rgba(31,35,45,0.75);\n        z-index: 1;\n    }\n\n    .ivf-analyzer-wrapper .cta-content {\n        position: relative;\n        z-index: 2;\n        max-width: 600px;\n        margin: 0 auto;\n    }\n\n    .ivf-analyzer-wrapper .dropzone {\n        background: #f9fafb;\n        border: 2px dashed #e2e8f0;\n        border-radius: 8px;\n        padding: 40px 20px;\n        margin: 20px 0;\n        cursor: pointer;\n        transition: all 0.3s ease;\n    }\n    .ivf-analyzer-wrapper .dropzone:hover { border-color: var(--accent-hover); background: #f0fff4; }\n\n    .ivf-analyzer-wrapper .card-insight {\n        background: #fff;\n        border: 1px solid #e9ecef;\n        border-radius: 10px;\n        padding: 20px;\n        margin-bottom: 16px;\n        text-align: left;\n    }\n\n    .ivf-analyzer-wrapper .card-insight h2 {\n        font-size: 1.1rem;\n        font-weight: 700;\n        color: #1F232D;\n        margin-bottom: 12px;\n        padding-bottom: 8px;\n        border-bottom: 2px solid #e9ecef;\n        display: inline-block;\n    }\n\n    .ivf-analyzer-wrapper .list {\n        list-style: none;\n        padding: 0;\n    }\n\n    .ivf-analyzer-wrapper .list li {\n        padding: 8px 0;\n        border-bottom: 1px solid #f3f4f6;\n        position: relative;\n        padding-left: 20px;\n        font-size: 0.9rem;\n        line-height: 1.5;\n        color: #495057;\n    }\n\n    .ivf-analyzer-wrapper .list li::before {\n        content: "•";\n        position: absolute;\n        left: 0;\n        color: #1F232D;\n        font-weight: bold;\n    }\n\n    .ivf-analyzer-wrapper .record-card { cursor: pointer; transition: all 0.3s ease; }\n    .ivf-analyzer-wrapper .record-card:hover { transform: translateY(-5px); box-shadow: 0 10px 25px rgba(0,0,0,0.1) !important; }\n    .ivf-analyzer-wrapper .cursor-pointer { cursor: pointer; }\n    .ivf-analyzer-wrapper .extra-small { font-size: 0.7rem; }\n\n    .ivf-auth-modal-backdrop {\n        position: fixed;\n        inset: 0;\n        z-index: 1065;\n        background: rgba(15, 23, 42, 0.65);\n        backdrop-filter: blur(4px);\n        display: flex;\n        align-items: center;\n        justify-content: center;\n        padding: 1rem;\n        animation: fadeIn 0.2s ease;\n    }\n\n    @keyframes fadeIn {\n        from { opacity: 0; }\n        to { opacity: 1; }\n    }\n\n    @keyframes slideUp {\n        from {\n            opacity: 0;\n            transform: translateY(20px);\n        }\n        to {\n            opacity: 1;\n            transform: translateY(0);\n        }\n    }\n\n    @keyframes fadeInUp {\n        from { opacity: 0; transform: translate(-50%, 10px); }\n        to { opacity: 1; transform: translate(-50%, 0); }\n    }\n\n    .ivf-auth-modal-card {\n        position: relative;\n        width: 100%;\n        max-width: 480px;\n        max-height: calc(100vh - 2rem);\n        overflow-y: auto;\n        background: #ffffff;\n        border: 1px solid #e2e8f0;\n        border-radius: 16px;\n        box-shadow: 0 24px 60px rgba(15, 23, 42, 0.3);\n        padding: 2.25rem 1.75rem 1.75rem;\n        text-align: center;\n        animation: slideUp 0.3s ease;\n    }
2\n\n    .ivf-auth-modal-close {\n        position: absolute;\n        top: 1rem;\n        right: 1rem;\n        width: 32px;\n        height: 32px;\n        border: none;\n        border-radius: 8px;\n        background: transparent;\n        color: #94a3b8;\n        display: inline-flex;\n        align-items: center;\n        justify-content: center;\n        cursor: pointer;\n        transition: all 0.2s ease;\n    }\n\n    .ivf-auth-modal-close:hover {\n        background: #f1f5f9;\n        color: #475569;\n    }\n\n    .ivf-auth-modal-icon {\n        width: 56px;\n        height: 56px;\n        margin: 0 auto 1.25rem;\n        background: linear-gradient(135deg, #0d6efd 0%, #0a58ca 100%);\n        border-radius: 16px;\n        display: flex;\n        align-items: center;\n        justify-content: center;\n        box-shadow: 0 8px 20px rgba(13, 110, 253, 0.25);\n    }\n\n    .ivf-auth-modal-icon i {\n        font-size: 1.5rem;\n        color: #ffffff;\n    }\n\n    .ivf-auth-modal-title {\n        margin: 0 0 0.5rem;\n        font-size: 1.5rem;\n        font-weight: 700;\n        color: #1e293b;\n        letter-spacing: -0.02em;\n    }\n\n    .ivf-auth-modal-subtitle {\n        margin: 0 0 1.75rem;\n        font-size: 0.95rem;\n        color: #64748b;\n        line-height: 1.5;\n    }\n\n    .ivf-auth-benefits {\n        margin-bottom: 1.75rem;\n        text-align: left;\n    }\n\n    .ivf-auth-benefit {\n        display: flex;\n        align-items: flex-start;\n        gap: 0.75rem;\n        padding: 0.625rem 0;\n    }\n\n    .ivf-auth-benefit i {\n        margin-top: 0.1rem;\n        font-size: 1rem;\n        color: #22c55e;\n        flex-shrink: 0;\n    }\n\n    .ivf-auth-benefit span {\n        font-size: 0.875rem;\n        color: #475569;\n        line-height: 1.5;\n    }\n\n    .ivf-auth-modal-actions {\n        display: flex;\n        flex-direction: column;\n        gap: 0.75rem;\n    }\n\n    .ivf-auth-btn-primary {\n        width: 100%;\n        height: 48px;\n        padding: 0 1.5rem;\n        font-size: 0.95rem;\n        font-weight: 600;\n        color: #ffffff;\n        background: linear-gradient(135deg, #0d6efd 0%, #0a58ca 100%);\n        border: none;\n        border-radius: 10px;\n        cursor: pointer;\n        transition: all 0.2s ease;\n        box-shadow: 0 4px 12px rgba(13, 110, 253, 0.3);\n    }\n\n    .ivf-auth-btn-primary:hover {\n        transform: translateY(-1px);\n        box-shadow: 0 6px 16px rgba(13, 110, 253, 0.4);\n    }\n\n    .ivf-auth-btn-secondary {\n        width: 100%;\n        height: 44px;\n        padding: 0 1.5rem;\n        font-size: 0.875rem;\n        font-weight: 400;\n        color: #64748b;\n        background: transparent;\n        border: none;\n        border-radius: 10px;\n        cursor: pointer;\n        transition: all 0.2s ease;\n    }\n\n    .ivf-auth-btn-secondary:hover {\n        background: #f8fafc;\n        color: #334155;\n    }\n\n    .ivf-auth-btn-secondary strong {\n        color: #0d6efd;\n        font-weight: 600;\n    }\n\n    .ivf-analysis-modal-card {\n        position: relative;\n        width: 100%;\n        max-width: 500px;\n        max-height: calc(100vh - 2rem);\n        overflow-y: auto;\n        background: #ffffff;\n        border: 1px solid #e2e8f0;\n        border-radius: 16px;\n        box-shadow: 0 24px 60px rgba(15, 23, 42, 0.3);\n        padding: 2.25rem 1.75rem 1.75rem;\n        text-align: center;\n        animation: slideUp 0.3s ease;\n    }\n\n    .ivf-analysis-success-icon {\n        width: 64px;\n        height: 64px;\n        margin: 0 auto 1.25rem;\n        background: linear-gradient(135deg, #22c55e 0%, #16a34a 100%);\n        border-radius: 50%;\n        display: flex;\n        align-items: center;\n        justify-content: center;\n        box-shadow: 0 8px 20px rgba(34, 197, 94, 0.3);\n    }\n\n    .ivf-analysis-success-icon i {\n        font-size: 1.75rem;\n        color: #ffffff;\n    }\n\n    .ivf-analysis-info-box {\n        margin: 1.5rem 0;\n        padding: 1.25rem;\n        background: #f8fafc;\n        border: 1px solid #e2e8f0;\n        border-radius: 12px;\n        text-align: left;\n    }
2\n\n    .ivf-analysis-info-row {\n        display: flex;\n        align-items: flex-start;\n        gap: 1rem;\n        padding: 0.75rem 0;\n    }\n\n    .ivf-analysis-info-row:not(:last-child) {\n        border-bottom: 1px solid #e2e8f0;\n    }\n\n    .ivf-analysis-info-row > i {\n        margin-top: 0.2rem;\n        font-size: 1.1rem;\n        color: #0d6efd;\n        flex-shrink: 0;\n    }\n\n    .ivf-analysis-info-row > div {\n        flex: 1;\n        display: flex;\n        flex-direction: column;\n        gap: 0.25rem;\n    }\n\n    .ivf-analysis-info-row strong {\n        font-size: 0.875rem;\n        font-weight: 600;\n        color: #1e293b;\n    }\n\n    .ivf-analysis-info-row span {\n        font-size: 0.8125rem;\n        color: #64748b;\n        word-break: break-word;\n    }\n\n    @media (max-width: 768px) {\n        .ivf-analyzer-wrapper .hero-text h1 { font-size: 2.2rem; }\n        .ivf-analyzer-wrapper .hero { \n            padding: 40px 5%;\n            min-height: 68vh;\n        }\n        .ivf-analyzer-wrapper .hero-bg-img {\n            object-position: 88%;\n        }\n        \n        .ivf-auth-modal-card {\n            padding: 2rem 1.25rem 1.5rem;\n        }\n\n        .ivf-auth-modal-icon {\n            width: 48px;\n            height: 48px;\n            margin-bottom: 1rem;\n        }\n\n        .ivf-auth-modal-icon i {\n            font-size: 1.25rem;\n        }\n\n        .ivf-auth-modal-title {\n            font-size: 1.25rem;\n        }\n\n        .ivf-auth-modal-subtitle {\n            font-size: 0.875rem;\n            margin-bottom: 1.5rem;\n        }\n\n        .ivf-auth-benefits {\n            margin-bottom: 1.5rem;\n        }\n\n        .ivf-auth-benefit {\n            padding: 0.5rem 0;\n        }\n\n        .ivf-auth-benefit span {\n            font-size: 0.8125rem;\n        }\n\n        .ivf-analysis-modal-card {\n            padding: 2rem 1.25rem 1.5rem;\n        }\n\n        .ivf-analysis-success-icon {\n            width: 56px;\n            height: 56px;\n            margin-bottom: 1rem;\n        }\n\n        .ivf-analysis-success-icon i {\n            font-size: 1.5rem;\n        }\n\n        .ivf-analysis-info-box {\n            padding: 1rem;\n            margin: 1.25rem 0;\n        }\n\n        .ivf-analysis-info-row {\n            padding: 0.625rem 0;\n        }\n    }\n'})]})}},3220:function(e,n,t){t.r(n);var r=t(4566),o=t(5413),i=t.n(o),a=t(9151),s=t(6899),l=t(4379),c=t(1296),d=t(1275);function u(e){return u="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},u(e)}function f(){f=function(){return n};var e,n={},t=Object.prototype,r=t.hasOwnProperty,o=Object.defineProperty||function(e,n,t){e[n]=t.value},i="function"==typeof Symbol?Symbol:{},a=i.iterator||"@@iterator",s=i.asyncIterator||"@@asyncIterator",l=i.toStringTag||"@@toStringTag";function c(e,n,t){return Object.defineProperty(e,n,{value:t,enumerable:!0,configurable:!0,writable:!0}),e[n]}try{c({},"")}catch(e){c=function(e,n,t){return e[n]=t}}function d(e,n,t,r){var i=n&&n.prototype instanceof y?n:y,a=Object.create(i.prototype),s=new O(r||[]);return o(a,"_invoke",{value:C(e,t,s)}),a}function p(e,n,t){try{return{type:"normal",arg:e.call(n,t)}}catch(e){return{type:"throw",arg:e}}}n.wrap=d;var h="suspendedStart",m="suspendedYield",g="executing",x="completed",v={};function y(){}function b(){}function w(){}var j={};c(j,a,(function(){return this}));var k=Object.getPrototypeOf,N=k&&k(k(_([])));N&&N!==t&&r.call(N,a)&&(j=N);var E=w.prototype=y.prototype=Object.create(j);function S(e){["next","throw","return"].forEach((function(n){c(e,n,(function(e){return this._invoke(n,e)}))}))}function A(e,n){function t(o,i,a,s){var l=p(e[o],e,i);if("throw"!==l.type){var c=l.arg,d=c.value;return d&&"object"==u(d)&&r.call(d,"__await")?n.resolve(d.__await).then((function(e){t("next",e,a,s)}),(function(e){t("throw",e,a,s)})):n.resolve(d).then((function(e){c.value=e,a(c)}),(function(e){return t("throw",e,a,s)}))}s(l.arg)}var i;o(this,"_invoke",{value:function(e,r){function o(){return new n((function(n,o){t(e,r,n,o)}))}return i=i?i.then(o,o):o()}})}function C(n,t,r){var o=h;return function(i,a){if(o===g)throw new Error("Generator is already running");if(o===x){if("throw"===i)throw a;return{value:e,done:!0}}for(r.method=i,r.arg=a;;){var s=r.delegate;if(s){var l=F(s,r);if(l){if(l===v)continue;return l}}if("next"===r.method)r.sent=r._sent=r.arg;else if("throw"===r.method){if(o===h)throw o=x,r.arg;r.dispatchException(r.arg)}else"return"===r.method&&r.abrupt("return",r.arg);o=g;var c=p(n,t,r);if("normal"===c.type){if(o=r.done?x:m,c.arg===v)continue;return{value:c.arg,done:r.done}}"throw"===c.type&&(o=x,r.method="throw",r.arg=c.arg)}}}function F(n,t){var r=t.method,o=n.iterator[r];if(o===e)return t.delegate=null,"throw"===r&&n.iterator.return&&
vendor: 4,699 bytes, line 2
2(t.method="return",t.arg=e,F(n,t),"throw"===t.method)||"return"!==r&&(t.method="throw",t.arg=new TypeError("The iterator does not provide a '"+r+"' method")),v;var i=p(o,n.iterator,t.arg);if("throw"===i.type)return t.method="throw",t.arg=i.arg,t.delegate=null,v;var a=i.arg;return a?a.done?(t[n.resultName]=a.value,t.next=n.nextLoc,"return"!==t.method&&(t.method="next",t.arg=e),t.delegate=null,v):a:(t.method="throw",t.arg=new TypeError("iterator result is not an object"),t.delegate=null,v)}function L(e){var n={tryLoc:e[0]};1 in e&&(n.catchLoc=e[1]),2 in e&&(n.finallyLoc=e[2],n.afterLoc=e[3]),this.tryEntries.push(n)}function z(e){var n=e.completion||{};n.type="normal",delete n.arg,e.completion=n}function O(e){this.tryEntries=[{tryLoc:"root"}],e.forEach(L,this),this.reset(!0)}function _(n){if(n||""===n){var t=n[a];if(t)return t.call(n);if("function"==typeof n.next)return n;if(!isNaN(n.length)){var o=-1,i=function t(){for(;++o<n.length;)if(r.call(n,o))return t.value=n[o],t.done=!1,t;return t.value=e,t.done=!0,t};return i.next=i}}throw new TypeError(u(n)+" is not iterable")}return b.prototype=w,o(E,"constructor",{value:w,configurable:!0}),o(w,"constructor",{value:b,configurable:!0}),b.displayName=c(w,l,"GeneratorFunction"),n.isGeneratorFunction=function(e){var n="function"==typeof e&&e.constructor;return!!n&&(n===b||"GeneratorFunction"===(n.displayName||n.name))},n.mark=function(e){return Object.setPrototypeOf?Object.setPrototypeOf(e,w):(e.__proto__=w,c(e,l,"GeneratorFunction")),e.prototype=Object.create(E),e},n.awrap=function(e){return{__await:e}},S(A.prototype),c(A.prototype,s,(function(){return this})),n.AsyncIterator=A,n.async=function(e,t,r,o,i){void 0===i&&(i=Promise);var a=new A(d(e,t,r,o),i);return n.isGeneratorFunction(t)?a:a.next().then((function(e){return e.done?e.value:a.next()}))},S(E),c(E,l,"Generator"),c(E,a,(function(){return this})),c(E,"toString",(function(){return"[object Generator]"})),n.keys=function(e){var n=Object(e),t=[];for(var r in n)t.push(r);return t.reverse(),function e(){for(;t.length;){var r=t.pop();if(r in n)return e.value=r,e.done=!1,e}return e.done=!0,e}},n.values=_,O.prototype={constructor:O,reset:function(n){if(this.prev=0,this.next=0,this.sent=this._sent=e,this.done=!1,this.delegate=null,this.method="next",this.arg=e,this.tryEntries.forEach(z),!n)for(var t in this)"t"===t.charAt(0)&&r.call(this,t)&&!isNaN(+t.slice(1))&&(this[t]=e)},stop:function(){this.done=!0;var e=this.tryEntries[0].completion;if("throw"===e.type)throw e.arg;return this.rval},dispatchException:function(n){if(this.done)throw n;var t=this;function o(r,o){return s.type="throw",s.arg=n,t.next=r,o&&(t.method="next",t.arg=e),!!o}for(var i=this.tryEntries.length-1;i>=0;--i){var a=this.tryEntries[i],s=a.completion;if("root"===a.tryLoc)return o("end");if(a.tryLoc<=this.prev){var l=r.call(a,"catchLoc"),c=r.call(a,"finallyLoc");if(l&&c){if(this.prev<a.catchLoc)return o(a.catchLoc,!0);if(this.prev<a.finallyLoc)return o(a.finallyLoc)}else if(l){if(this.prev<a.catchLoc)return o(a.catchLoc,!0)}else{if(!c)throw new Error("try statement without catch or finally");if(this.prev<a.finallyLoc)return o(a.finallyLoc)}}}},abrupt:function(e,n){for(var t=this.tryEntries.length-1;t>=0;--t){var o=this.tryEntries[t];if(o.tryLoc<=this.prev&&r.call(o,"finallyLoc")&&this.prev<o.finallyLoc){var i=o;break}}i&&("break"===e||"continue"===e)&&i.tryLoc<=n&&n<=i.finallyLoc&&(i=null);var a=i?i.completion:{};return a.type=e,a.arg=n,i?(this.method="next",this.next=i.finallyLoc,v):this.complete(a)},complete:function(e,n){if("throw"===e.type)throw e.arg;return"break"===e.type||"continue"===e.type?this.next=e.arg:"return"===e.type?(this.rval=this.arg=e.arg,this.method="return",this.next="end"):"normal"===e.type&&n&&(this.next=n),v},finish:function(e){for(var n=this.tryEntries.length-1;n>=0;--n){var t=this.tryEntries[n];if(t.finallyLoc===e)return this.complete(t.completion,t.afterLoc),z(t),v}},catch:function(e){for(var n=this.tryEntries.length-1;n>=0;--n){var t=this.tryEntries[n];if(t.tryLoc===e){var r=t.completion;if("throw"===r.type){var o=r.arg;z(t)}return o}}throw new Error("illegal catch attempt")},delegateYield:function(n,t,r){return this.delegate={iterator:_(n),resultName:t,nextLoc:r},"next"===this.method&&(this.arg=e),v}},n}function p(e,n,t,r,o,i,a){try{var s=e[i](a),l=s.value}catch(e){return void t(e)}s.done?n(l):Promise.resolve(l).then(r,o)}function h(e,n){var t=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);n&&(r=r.filter((function(n){return Object.getOwnPropertyDescriptor(e,n).enumerable}))),t.push.apply(t,r)}return t}function m(e){for(var n=1;n<arguments.length;n++){var t=null!=arguments[n]?arguments[n]:{};
2n%2?h(Object(t),!0).forEach((function(n){g(e,n,t[n])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(t)):h(Object(t)).forEach((function(n){Object.defineProperty(e,n,Object.getOwnPropertyDescriptor(t,n))}))}return e}function g(e,n,t){var r;return r=function(e,n){if("object"!=u(e)||!e)return e;var t=e[Symbol.toPrimitive];if(void 0!==t){var r=t.call(e,n||"default");if("object"!=u(r))return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===n?String:Number)(e)}(n,"string"),(n="symbol"==u(r)?r:String(r))in e?Object.defineProperty(e,n,{value:t,enumerable:!0,configurable:!0,writable:!0}):e[n]=t,e}function x(e,n){return function(e){if(Array.isArray(e))return e}(e)||function(e,n){var t=null==e?null:"undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(null!=t){var r,o,i,a,s=[],l=!0,c=!1;try{if(i=(t=t.call(e)).next,0===n){if(Object(t)!==t)return;l=!1}else for(;!(l=(r=i.call(t)).done)&&(s.push(r.value),s.length!==n);l=!0);}catch(e){c=!0,o=e}finally{try{if(!l&&null!=t.return&&(a=t.return(),Object(a)!==a))return}finally{if(c)throw o}}return s}}(e,n)||function(e,n){if(!e)return;if("string"==typeof e)return v(e,n);var t=Object.prototype.toString.call(e).slice(8,-1);"Object"===t&&e.constructor&&(t=e.constructor.name);if("Map"===t||"Set"===t)return Array.from(e);if("Arguments"===t||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(t))return v(e,n)}(e,n)||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 v(e,n){(null==n||n>e.length)&&(n=e.length);for(var t=0,r=new Array(n);t<n;t++)r[t]=e[t];return r}var y=function(e){var n=e.show,t=e.onHide,o=e.onSuccess,i=e.onRegisterClick,u=e.title,h=void 0===u?"Login to Comment":u,v=e.message,y=void 0===v?"Please login to share your thoughts and join the discussion.":v,b=e.trackingContext,w=void 0===b?c.qH.CONTEXT.COMMENTING:b,j=x((0,r.useState)({email:"",password:"",remember:!1}),2),k=j[0],N=j[1],E=x((0,r.useState)({}),2),S=E[0],A=E[1],C=x((0,r.useState)(!1),2),F=C[0],L=C[1],z=x((0,r.useState)(""),2),O=z[0],_=z[1];(0,r.useEffect)((function(){n||(N({email:"",password:"",remember:!1}),A({}),_(""))}),[n]),(0,r.useEffect)((function(){n&&(0,c.L9)("modal_view",{modal_name:c.qH.MODALS.LOGIN,context:w})}),[n,w]);var I=function(e){var n=e.target,t=n.name,r=n.value,o=n.type,i=n.checked;N((function(e){return m(m({},e),{},g({},t,"checkbox"===o?i:r))})),S[t]&&A((function(e){return m(m({},e),{},g({},t,""))})),O&&_("")},R=function(){var e,n=(e=f().mark((function e(n){var t,r;return f().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return n.preventDefault(),L(!0),A({}),_(""),e.prev=4,e.next=7,a.Z.post("/api/signin",{email:k.email,password:k.password},{withCredentials:!0,headers:{Accept:"application/json","Content-Type":"application/json","X-Requested-With":"XMLHttpRequest"}});case 7:if(!(t=e.sent).data.success){e.next=21;break}if(console.log("✅ Login successful:",t.data),t.data.access_token){e.next=14;break}return console.error("❌ No access_token in response:",t.data),_("Login successful but no authentication token received. Please try again."),e.abrupt("return");case 14:return(0,s.G)(),e.next=17,(0,l.SD)(t.data,{redirectUrl:null,delay:50,onSuccess:function(e){o&&((0,c.L9)("auth_success",{method:"login",context:w}),o(e))}});case 17:(r=e.sent).success||(console.error("❌ Auth flow failed:",r.error),_(r.error||"Authentication failed. Please try again.")),e.next=22;break;case 21:_(t.data.message||"Login failed. Please try again.");case 22:e.next=28;break;case 24:e.prev=24,e.t0=e.catch(4),console.error("Login error:",e.t0),e.t0.response?422===e.t0.response.status?A(e.t0.response.data.errors||{}):e.t0.response.data&&e.t0.response.data.message?_(e.t0.response.data.message):_("Login failed. Please check your credentials and try again."):_("Network error. Please check your connection and try again.");case 28:return e.prev=28,L(!1),e.finish(28);case 31:case"end":return e.stop()}}),e,null,[[4,24,28,31]])})),function(){var n=this,t=arguments;return new Promise((function(r,o){var i=e.apply(n,t);function a(e){p(i,r,o,a,s,"next",e)}function s(e){p(i,r,o,a,s,"throw",e)}a(void 0)}))});return function(e){return n.apply(this,arguments)}}(),P=(0,r.useCallback)((function(){(0,c.L9)("modal_cancel",{modal_name:c.qH.MODALS.LOGIN,context:w}),t()}),[t,w]);(0,r.useEffect)((function(){var e=function(e){"Escape"===e.key&&n&&!F&&P()};return n&&document.addEventListener("keydown",e),function(){document.removeEventListener("keydown",e)}}),[n,F,P]);var D=(0,r.useCallback)((function(e){e.target!==e.currentTarget||F||P()}),[F,P]),M=function(){i&&i()};return n?(0,d.jsx)("div",{className:"modal fade show d-block",tabIndex:"-1",role:"dialog",style:{backgroundColor:"rgba(0,0,0,0.5)"},onClick:D,children:(0,d.jsx)("div",{className:"modal-dialog modal-dialog-centered",role:"document",children:(0,d.jsxs)("div",{className:"modal-content",children:[(0,d.jsxs)("div",{className:"modal-header",children:[(0,d.jsxs)("h5",{className:"modal-title",children:[(0,d.jsx)("i",{className:"fas fa-sign-in-alt me-2"}),h]}),(0,d.jsx)("button",{type:"button",className:"btn-close",onClick:P,disabled:F,"aria-label":"Close"})]}),(0,d.jsxs)("div",{className:"modal-body",children:[(0,d.jsx)("p",{className:"text-muted mb-4",children:y}),O&&(0,d.jsxs)("div",{className:"alert alert-danger",role:"alert",children:[(0,d.jsx)("i",{className:"fas fa-exclamation-circle me-2"}),O,"Unable to find user"===O&&(0,d.jsxs)("div",{className:"mt-2",children:[(0,d.jsx)("p",{className:"mb-2",children:"Don't have an account yet?"}),(0,d.jsx)("button",{type:"button",className:"btn btn-sm btn-primary",onClick:M,children:"Register Now"})]}),"Wrong Password"===O&&(0,d.jsx)("div",{className:"mt-2",children:(0,d.jsx)("a",{href:"/password/reset",className:"btn btn-sm btn-link",children:"Forgot Password?"})})]}),(0,d.jsxs)("form",{onSubmit:R,children:[(0,d.jsxs)("div",{className:"mb-3",children:[(0,d.jsxs)("label",{htmlFor:"login-email",className:"form-label",children:["Email ",(0,d.jsx)("span",{className:"text-danger",children:"*"})]}),(0,d.jsx)("input",{type:"email",className:"form-control ".concat(S.email?"is-invalid":""),id:"login-email",name:"email",value:k.email,onChange:I,disabled:F,placeholder:"Enter your email",required:!0}),S.email&&(0,d.jsx)("div",{className:"invalid-feedback",children:Array.isArray(S.email)?S.email[0]:S.email})]}),(0,d.jsxs)("div",{className:"mb-3",children:[(0,d.jsxs)("label",{htmlFor:"login-password",className:"form-label",children:["Password ",(0,d.jsx)("span",{className:"text-danger",children:"*"})]}),(0,d.jsx)("input",{type:"password",className:"form-control ".concat(S.password?"is-invalid":""),id:"login-password",name:"password",value:k.password,onChange:I,disabled:F,placeholder:"Enter your password",required:!0}),S.password&&(0,d.jsx)("div",{className:"invalid-feedback",children:Array.isArray(S.password)?S.password[0]:S.password})]}),(0,d.jsxs)("div",{className:"d-flex justify-content-between align-items-center mb-3",children:[(0,d.jsxs)("div",{className:"form-check",children:[(0,d.jsx)("input",{type:"checkbox",className:"form-check-input",id:"login-remember",name:"remember",checked:k.remember,onChange:I,disabled:F}),(0,d.jsx)("label",{className:"form-check-label",htmlFor:"login-remember",children:"Remember Me"})]}),(0,d.jsx)("a",{href:"/password/reset",className:"text-decoration-none",style:{fontSize:"0.9rem"},children:"Forgot Password?"})]}),(0,d.jsx)("button",{type:"submit",className:"btn btn-primary w-100",disabled:F,children:F?(0,d.jsxs)(d.Fragment,{children:[(0,d.jsx)("span",{className:"spinner-border spinner-border-sm me-2",role:"status","aria-hidden":"true"}),"Logging in..."]}):(0,d.jsxs)(d.Fragment,{children:[(0,d.jsx)("i",{className:"fas fa-sign-in-alt me-2"}),"Login"]})})]}),(0,d.jsx)("div",{className:"text-center mt-3",children:(0,d.jsxs)("p",{className:"mb-0",children:["Don't have an account?"," ",(0,d.jsx)("button",{type:"button",className:"btn btn-link p-0",onClick:M,disabled:F,children:"Register here"})]})})]})]})})}):null};y.propTypes={show:i().bool.isRequired,onHide:i().func.isRequired,onSuccess:i().func,onRegisterClick:i().func,title:i().string,message:i().string,trackingContext:i().string},n.default=y},3492:function(e,n,t){t.r(n);var r=t(4566),o=t(5413),i=t.n(o),a=t(9151),s=t(6899),l=t(4379),c=t(1296),d=t(5797),u=t(1275
vendor: 4,165 bytes, line 2
2);function f(e){return f="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},f(e)}function p(){p=function(){return n};var e,n={},t=Object.prototype,r=t.hasOwnProperty,o=Object.defineProperty||function(e,n,t){e[n]=t.value},i="function"==typeof Symbol?Symbol:{},a=i.iterator||"@@iterator",s=i.asyncIterator||"@@asyncIterator",l=i.toStringTag||"@@toStringTag";function c(e,n,t){return Object.defineProperty(e,n,{value:t,enumerable:!0,configurable:!0,writable:!0}),e[n]}try{c({},"")}catch(e){c=function(e,n,t){return e[n]=t}}function d(e,n,t,r){var i=n&&n.prototype instanceof y?n:y,a=Object.create(i.prototype),s=new O(r||[]);return o(a,"_invoke",{value:C(e,t,s)}),a}function u(e,n,t){try{return{type:"normal",arg:e.call(n,t)}}catch(e){return{type:"throw",arg:e}}}n.wrap=d;var h="suspendedStart",m="suspendedYield",g="executing",x="completed",v={};function y(){}function b(){}function w(){}var j={};c(j,a,(function(){return this}));var k=Object.getPrototypeOf,N=k&&k(k(_([])));N&&N!==t&&r.call(N,a)&&(j=N);var E=w.prototype=y.prototype=Object.create(j);function S(e){["next","throw","return"].forEach((function(n){c(e,n,(function(e){return this._invoke(n,e)}))}))}function A(e,n){function t(o,i,a,s){var l=u(e[o],e,i);if("throw"!==l.type){var c=l.arg,d=c.value;return d&&"object"==f(d)&&r.call(d,"__await")?n.resolve(d.__await).then((function(e){t("next",e,a,s)}),(function(e){t("throw",e,a,s)})):n.resolve(d).then((function(e){c.value=e,a(c)}),(function(e){return t("throw",e,a,s)}))}s(l.arg)}var i;o(this,"_invoke",{value:function(e,r){function o(){return new n((function(n,o){t(e,r,n,o)}))}return i=i?i.then(o,o):o()}})}function C(n,t,r){var o=h;return function(i,a){if(o===g)throw new Error("Generator is already running");if(o===x){if("throw"===i)throw a;return{value:e,done:!0}}for(r.method=i,r.arg=a;;){var s=r.delegate;if(s){var l=F(s,r);if(l){if(l===v)continue;return l}}if("next"===r.method)r.sent=r._sent=r.arg;else if("throw"===r.method){if(o===h)throw o=x,r.arg;r.dispatchException(r.arg)}else"return"===r.method&&r.abrupt("return",r.arg);o=g;var c=u(n,t,r);if("normal"===c.type){if(o=r.done?x:m,c.arg===v)continue;return{value:c.arg,done:r.done}}"throw"===c.type&&(o=x,r.method="throw",r.arg=c.arg)}}}function F(n,t){var r=t.method,o=n.iterator[r];if(o===e)return t.delegate=null,"throw"===r&&n.iterator.return&&(t.method="return",t.arg=e,F(n,t),"throw"===t.method)||"return"!==r&&(t.method="throw",t.arg=new TypeError("The iterator does not provide a '"+r+"' method")),v;var i=u(o,n.iterator,t.arg);if("throw"===i.type)return t.method="throw",t.arg=i.arg,t.delegate=null,v;var a=i.arg;return a?a.done?(t[n.resultName]=a.value,t.next=n.nextLoc,"return"!==t.method&&(t.method="next",t.arg=e),t.delegate=null,v):a:(t.method="throw",t.arg=new TypeError("iterator result is not an object"),t.delegate=null,v)}function L(e){var n={tryLoc:e[0]};1 in e&&(n.catchLoc=e[1]),2 in e&&(n.finallyLoc=e[2],n.afterLoc=e[3]),this.tryEntries.push(n)}function z(e){var n=e.completion||{};n.type="normal",delete n.arg,e.completion=n}function O(e){this.tryEntries=[{tryLoc:"root"}],e.forEach(L,this),this.reset(!0)}function _(n){if(n||""===n){var t=n[a];if(t)return t.call(n);if("function"==typeof n.next)return n;if(!isNaN(n.length)){var o=-1,i=function t(){for(;++o<n.length;)if(r.call(n,o))return t.value=n[o],t.done=!1,t;return t.value=e,t.done=!0,t};return i.next=i}}throw new TypeError(f(n)+" is not iterable")}return b.prototype=w,o(E,"constructor",{value:w,configurable:!0}),o(w,"constructor",{value:b,configurable:!0}),b.displayName=c(w,l,"GeneratorFunction"),n.isGeneratorFunction=function(e){var n="function"==typeof e&&e.constructor;return!!n&&(n===b||"GeneratorFunction"===(n.displayName||n.name))},n.mark=function(e){return Object.setPrototypeOf?Object.setPrototypeOf(e,w):(e.__proto__=w,c(e,l,"GeneratorFunction")),e.prototype=Object.create(E),e},n.awrap=function(e){return{__await:e}},S(A.prototype),c(A.prototype,s,(function(){return this})),n.AsyncIterator=A,n.async=function(e,t,r,o,i){void 0===i&&(i=Prom
vendor: 4,243 bytes, line 2
2ise);var a=new A(d(e,t,r,o),i);return n.isGeneratorFunction(t)?a:a.next().then((function(e){return e.done?e.value:a.next()}))},S(E),c(E,l,"Generator"),c(E,a,(function(){return this})),c(E,"toString",(function(){return"[object Generator]"})),n.keys=function(e){var n=Object(e),t=[];for(var r in n)t.push(r);return t.reverse(),function e(){for(;t.length;){var r=t.pop();if(r in n)return e.value=r,e.done=!1,e}return e.done=!0,e}},n.values=_,O.prototype={constructor:O,reset:function(n){if(this.prev=0,this.next=0,this.sent=this._sent=e,this.done=!1,this.delegate=null,this.method="next",this.arg=e,this.tryEntries.forEach(z),!n)for(var t in this)"t"===t.charAt(0)&&r.call(this,t)&&!isNaN(+t.slice(1))&&(this[t]=e)},stop:function(){this.done=!0;var e=this.tryEntries[0].completion;if("throw"===e.type)throw e.arg;return this.rval},dispatchException:function(n){if(this.done)throw n;var t=this;function o(r,o){return s.type="throw",s.arg=n,t.next=r,o&&(t.method="next",t.arg=e),!!o}for(var i=this.tryEntries.length-1;i>=0;--i){var a=this.tryEntries[i],s=a.completion;if("root"===a.tryLoc)return o("end");if(a.tryLoc<=this.prev){var l=r.call(a,"catchLoc"),c=r.call(a,"finallyLoc");if(l&&c){if(this.prev<a.catchLoc)return o(a.catchLoc,!0);if(this.prev<a.finallyLoc)return o(a.finallyLoc)}else if(l){if(this.prev<a.catchLoc)return o(a.catchLoc,!0)}else{if(!c)throw new Error("try statement without catch or finally");if(this.prev<a.finallyLoc)return o(a.finallyLoc)}}}},abrupt:function(e,n){for(var t=this.tryEntries.length-1;t>=0;--t){var o=this.tryEntries[t];if(o.tryLoc<=this.prev&&r.call(o,"finallyLoc")&&this.prev<o.finallyLoc){var i=o;break}}i&&("break"===e||"continue"===e)&&i.tryLoc<=n&&n<=i.finallyLoc&&(i=null);var a=i?i.completion:{};return a.type=e,a.arg=n,i?(this.method="next",this.next=i.finallyLoc,v):this.complete(a)},complete:function(e,n){if("throw"===e.type)throw e.arg;return"break"===e.type||"continue"===e.type?this.next=e.arg:"return"===e.type?(this.rval=this.arg=e.arg,this.method="return",this.next="end"):"normal"===e.type&&n&&(this.next=n),v},finish:function(e){for(var n=this.tryEntries.length-1;n>=0;--n){var t=this.tryEntries[n];if(t.finallyLoc===e)return this.complete(t.completion,t.afterLoc),z(t),v}},catch:function(e){for(var n=this.tryEntries.length-1;n>=0;--n){var t=this.tryEntries[n];if(t.tryLoc===e){var r=t.completion;if("throw"===r.type){var o=r.arg;z(t)}return o}}throw new Error("illegal catch attempt")},delegateYield:function(n,t,r){return this.delegate={iterator:_(n),resultName:t,nextLoc:r},"next"===this.method&&(this.arg=e),v}},n}function h(e,n,t,r,o,i,a){try{var s=e[i](a),l=s.value}catch(e){return void t(e)}s.done?n(l):Promise.resolve(l).then(r,o)}function m(e){return function(){var n=this,t=arguments;return new Promise((function(r,o){var i=e.apply(n,t);function a(e){h(i,r,o,a,s,"next",e)}function s(e){h(i,r,o,a,s,"throw",e)}a(void 0)}))}}function g(e,n){var t=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);n&&(r=r.filter((function(n){return Object.getOwnPropertyDescriptor(e,n).enumerable}))),t.push.apply(t,r)}return t}function x(e){for(var n=1;n<arguments.length;n++){var t=null!=arguments[n]?arguments[n]:{};n%2?g(Object(t),!0).forEach((function(n){v(e,n,t[n])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(t)):g(Object(t)).forEach((function(n){Object.defineProperty(e,n,Object.getOwnPropertyDescriptor(t,n))}))}return e}function v(e,n,t){var r;return r=function(e,n){if("object"!=f(e)||!e)return e;var t=e[Symbol.toPrimitive];if(void 0!==t){var r=t.call(e,n||"default");if("object"!=f(r))return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===n?String:Number)(e)}(n,"string"),(n="symbol"==f(r)?r:String(r))in e?Object.defineProperty(e,n,{value:t,enumerable:!0,configurable:!0,writable:!0}):e[n]=t,e}function y(e,n){return function(e){if(Array.isArray(e))return e}(e)||function(e,n){var t=null==e?null:"undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(null!=t){var r,o,i,a,s=[],l=!0,c=!1;try{if(i=(t=t.call(e)).next,0===n){if(Object(t)!==t)return;l=!1}else for(;!(l=(r=i.call(t)).done)&&(s.push(r.value),s.length!==n);l=!0);}catch(e){c=!0,o=e}
2finally{try{if(!l&&null!=t.return&&(a=t.return(),Object(a)!==a))return}finally{if(c)throw o}}return s}}(e,n)||function(e,n){if(!e)return;if("string"==typeof e)return b(e,n);var t=Object.prototype.toString.call(e).slice(8,-1);"Object"===t&&e.constructor&&(t=e.constructor.name);if("Map"===t||"Set"===t)return Array.from(e);if("Arguments"===t||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(t))return b(e,n)}(e,n)||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 b(e,n){(null==n||n>e.length)&&(n=e.length);for(var t=0,r=new Array(n);t<n;t++)r[t]=e[t];return r}var w={name:"",email:"",password:"",password_confirmation:"",discussion_topic:"",medical_records:[],hear_from:""},j=function(e){var n=e.show,t=e.onHide,o=e.onSuccess,i=e.onLoginClick,f=e.title,h=void 0===f?"Register to Comment":f,g=e.message,b=void 0===g?"Create an account to share your thoughts and join the discussion.":g,j=e.trackingContext,k=void 0===j?c.qH.CONTEXT.COMMENTING:j,N=e.showConsultationFields,E=void 0!==N&&N,S=y((0,r.useState)(w),2),A=S[0],C=S[1],F=y((0,r.useState)({}),2),L=F[0],z=F[1],O=y((0,r.useState)(!1),2),_=O[0],I=O[1],R=y((0,r.useState)(""),2),P=R[0],D=R[1],M=y((0,r.useState)(""),2),B=M[0],T=M[1],W=y((0,r.useState)({show:!1,userName:""}),2),Y=W[0],H=W[1];(0,r.useEffect)((function(){n||(C(w),z({}),I(!1),D(""),T(""),H({show:!1,userName:""}))}),[n]),(0,r.useEffect)((function(){n&&(0,c.L9)("modal_view",{modal_name:c.qH.MODALS.REGISTER,context:k})}),[n,k]);var G=(0,r.useCallback)((function(){(0,c.L9)("modal_cancel",{modal_name:c.qH.MODALS.REGISTER,context:k}),t()}),[k,t]);(0,r.useEffect)((function(){var e=function(e){"Escape"===e.key&&n&&!_&&G()};return n&&document.addEventListener("keydown",e),function(){document.removeEventListener("keydown",e)}}),[n,_,G]);var U=(0,r.useCallback)((function(e){e.target!==e.currentTarget||_||G()}),[_,G]),V=(0,r.useCallback)((function(e){var n=e.target,t=n.name,r=n.value,o=n.type,i=n.files;C("file"===o?function(e){return x(x({},e),{},v({},t,Array.from(i)))}:function(e){return x(x({},e),{},v({},t,r))}),L[t]&&z((function(e){return x(x({},e),{},v({},t,""))}))}),[L]),q=function(){var e=m(p().mark((function e(n){var t,r,i,d,u,f,h;return p().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return n.preventDefault(),I(!0),D("registering"),z({}),T(""),e.prev=5,t=A.medical_records,r=t?new FormData:{},i=["discussion_topic","medical_records"],["name","email","password","password_confirmation"].forEach((function(e){t?r.append(e,A[e]):r[e]=A[e]})),i.forEach((function(e){A[e]&&("medical_records"===e&&t?A[e].forEach((function(e){r.append("medical_records[]",e)})):t?r.append(e,A[e]):r[e]=A[e])})),e.next=14,a.Z.post("/api/register",r,{withCredentials:!0,headers:{Accept:"application/json","Content-Type":"multipart/form-data","X-Requested-With":"XMLHttpRequest"}});case 14:if(!(d=e.sent).data.success){e.next=26;break}if(console.log("✅ Registration successful:",d.data),d.data.access_token){e.next=21;break}return console.error("❌ No access_token in response:",d.data),T("Registration successful but no authentication token received. Please try again."),e.abrupt("return");case 21:return(0,s.G)(),e.next=24,(0,l.SD)(d.data,{redirectUrl:null,delay:50,onSuccess:function(){var e=m(p().mark((function e(n){var t,r;return p().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:if(!(A.discussion_topic||A.medical_records&&A.medical_records.length>0)){e.next=25;break}return D("consulting"),e.prev=2,(t=new FormData).append("name",A.name),t.append("email",A.email),t.append("message",A.discussion_topic||"No message provided"),t.append("is_new_registration","true"),t.append("hear_from",A.hear_from||""),r=new URLSearchParams(window.location.search),t.append("utm_source",r.get("utm_source")||""),t.append("utm_medium",r.get("utm_medium")||""),t.append("utm_campaign",r.get("utm_campaign")||""),A.medical_records&&A.medical_records.length>0&&A.medical_records.forEach((function(e){t.append("files[]",e)})),e.next=16,a.Z.post("/free-second-opinion",t,{withCredentials:!0,headers:{Accept:"application/json","Content-Type":"multipart/form-data","X-Requested-With":"XMLHttpRequest"}});case 16:e.next=25;break;case 18:return e.prev=18,e.t0=e.catch(2),console.error("❌ Failed to create consultation after registration:",e.t0),T("Your account was created successfully, but we encountered an error starting your consultation. Please log in to start a new conversation from your dashboard."),I(!1),D(""),e.abrupt("return");case 25:H({show:!0,userName:A.name}),(0,c.L9)("auth_success",{method:"register",context:k}),setTimeout((function(){return null==o?void 0:o(n)}),2e3);case 28:case"end":return e.stop()}}),e,null,[[2,18]])})));return function(n){return e.apply(this,arguments)}}()});case 24:(u=e.sent).success||(console.error("❌ Auth flow failed:",u.error),T(u.error||"Authentication failed. Please try again."));case 26:e.next=32;break;case 28:e.prev=28,e.t0=e.catch(5),console.error("Registration error:",e.t0),422===(null===(f=e.t0.response)||void 0===f?void 0:f.status)?z(e.t0.response.data.errors||{}):null!==(h=e.t0.response)&&void 0!==h&&null!==(h=h.data)&&void 0!==h&&h.message?T(e.t0.response.data.message):T(e.t0.response?"Registration failed. Please try again.":"Network error. Please check your connection and try again.");case 32:return e.prev=32,I(!1),D(""),e.finish(32);case 36:case"end":return e.stop()}}),e,null,[[5,28,32,36]])})));return function(n){return e.apply(this,arguments)}}(),Z=(0,r.useCallback)((function(){E?window.location.href="/signin":null==i||i()}),[E,i]);return n?(0,u.jsx)("div",{className:"modal fade show d-block",tabIndex:"-1",role:"dialog",style:{backgroundColor:"rgba(0,0,0,0.5)"},onClick:U,children:(0,u.jsx)("div",{className:"modal-dialog modal-dialog-centered",role:"document",children:(0,u.jsxs)("div",{className:"modal-content",children:[(0,u.jsxs)("div",{className:"modal-header",children:[(0,u.jsxs)("h5",{className:"modal-title",children:[(0,u.jsx)("i",{className:"fas fa-user-plus me-2"}),h]}),(0,u.jsx)("button",{type:"button",className:"btn-close",onClick:G,disabled:_,"aria-label":"Close"})]}),(0,u.jsx)("div",{className:"modal-body p-4",children:Y.show?(0,u.jsx)(d.Z,{title:"Welcome, ".concat(Y.userName,"! 🎉"),userName:Y.userName,message:"Your account has been created successfully and your consultation is being prepared."}):(0,u.jsxs)("div",{children:[(0,u.jsx)("p",{className:"text-muted mb-4",children:b}),B&&(0,u.jsxs)("div",{className:"alert alert-danger",role:"alert",children:[(0,u.jsx)("i",{className:"fas fa-exclamation-circle me-2"}),B]}),(0,u.jsxs)("form",{onSubmit:q,children:[(0,u.jsxs)("div",{className:"mb-3",children:[(0,u.jsxs)("label",{htmlFor:"register-name",className:"form-label",children:["Name ",(0,u.jsx)("span",{className:"text-danger",children:"*"})]}),(0,u.jsx)("input",{type:"text",className:"form-control ".concat(L.name?"is-invalid":""),id:"register-name",name:"name",value:A.name,onChange:V,disabled:_,placeholder:"Enter your full name",required:!0}),L.name&&(0,u.jsx)("div",{className:"invalid-feedback",children:Array.isArray(L.name)?L.name[0]:L.name})]}),(0,u.jsxs)("div",{className:"mb-3",children:[(0,u.jsxs)("label",{htmlFor:"register-email",className:"form-label",children:["Email ",(0,u.jsx)("span",{className:"text-danger",children:"*"})]}),(0,u.jsx)("input",{type:"email",className:"form-control ".concat(L.email?"is-invalid":""),id:"register-email",name:"email",value:A.email,onChange:V,disabled:_,placeholder:"Enter your email",required:!0}),L.email&&(0,u.jsx)("div",{className:"invalid-feedback",children:Array.isArray(L.email)?L.email[0]:L.email})]}),(0,u.jsxs)("div",{className:"mb-3",children:[(0,u.jsxs)("label",{htmlFor:"register-password",className:"form-label",children:["Password ",(0,u.jsx)("span",{className:"text-danger",children:"*"})]}),(0,u.jsx)("input",{type:"password",className:"form-control ".concat(L.password?"is-invalid":""),id:"register-password",name:"password",value:A.password,onChange:V,disabled:_,placeholder:"Enter a strong password",minLength:"8",required:!0}),L.password&&(0,u.jsx)("div",{className:"invalid-feedback",children:Array.isArray(L.password)?L.password[0]:L.password}),(0,u.jsx)("small",{className:"form-text text-muted",children:"Minimum 8 characters"})]}),(0,u.jsxs)("div",{className:"mb-3",children:[(0,u.jsxs)("label",{htmlFor:"register-password-confirm",className:"form-label",children:["Confirm Password ",(0,u.jsx)("span",{className:"text-danger",children:"*"})]}),(0,u.jsx)("input",{type:"password",className:"form-control ".concat(L.password_confirmation?"is-invalid":""),id:"register-password-confirm",name:"password_confirmation",value:A.password_confirmation,onChange:V,disabled:_,placeholder:"Re-enter your password",minLength:"8",required:!0}),L.password_confirmation&&(0,u.jsx)("div",{className:"invalid-feedback",children:Array.isArray(L.password_confirmation)?L.password_confirmation[0]:L.password_confirmation})]}),E&&(0,u.jsxs)(u.Fragment,{children:[(0,u.jsxs)("div",{className:"mb-3",children:[(0,u.jsx)("label",{htmlFor:"register-discussion-topic",className:"form-label",children:"What would you like to discu
2ss with Dr Malpani?"}),(0,u.jsx)("textarea",{className:"form-control ".concat(L.discussion_topic?"is-invalid":""),id:"register-discussion-topic",name:"discussion_topic",value:A.discussion_topic,onChange:V,disabled:_,placeholder:"Briefly describe your fertility concerns or questions",rows:"3"}),L.discussion_topic&&(0,u.jsx)("div",{className:"invalid-feedback",children:Array.isArray(L.discussion_topic)?L.discussion_topic[0]:L.discussion_topic})]}),(0,u.jsxs)("div",{className:"mb-3",children:[(0,u.jsx)("label",{htmlFor:"register-hear-from",className:"form-label",children:"How did you hear about us?"}),(0,u.jsxs)("select",{className:"form-select",id:"register-hear-from",name:"hear_from",value:A.hear_from,onChange:V,disabled:_,children:[(0,u.jsx)("option",{value:"",children:"Select an option"}),(0,u.jsx)("option",{value:"google_search",children:"Google Search"}),(0,u.jsx)("option",{value:"social_media",children:"Social Media"}),(0,u.jsx)("option",{value:"friend_family",children:"Friend / Family"}),(0,u.jsx)("option",{value:"doctor_referral",children:"Doctor Referral"}),(0,u.jsx)("option",{value:"youtube",children:"YouTube"}),(0,u.jsx)("option",{value:"other",children:"Other"})]})]}),(0,u.jsxs)("div",{className:"mb-3",children:[(0,u.jsx)("label",{htmlFor:"register-medical-records",className:"form-label",children:"Upload your medical records"}),(0,u.jsx)("input",{type:"file",className:"form-control ".concat(L.medical_records?"is-invalid":""),id:"register-medical-records",name:"medical_records",onChange:V,disabled:_,accept:".pdf,.doc,.docx,.jpg,.jpeg,.png",multiple:!0}),(0,u.jsx)("small",{className:"form-text text-muted",children:"Accepted formats: PDF, DOC, DOCX, JPG, PNG (Multiple files allowed)"}),A.medical_records&&A.medical_records.length>0&&(0,u.jsx)("div",{className:"mt-2",children:(0,u.jsxs)("small",{className:"text-success",children:[(0,u.jsx)("i",{className:"fas fa-paperclip me-1"}),A.medical_records.length," file(s) selected"]})}),L.medical_records&&(0,u.jsx)("div",{className:"invalid-feedback d-block",children:Array.isArray(L.medical_records)?L.medical_records[0]:L.medical_records})]})]}),(0,u.jsx)("button",{type:"submit",className:"btn btn-primary w-100",disabled:_,children:_?(0,u.jsxs)(u.Fragment,{children:[(0,u.jsx)("span",{className:"spinner-border spinner-border-sm me-2",role:"status","aria-hidden":"true"}),"consulting"===P?"Preparing Your Consultation...":"Creating Account..."]}):(0,u.jsxs)(u.Fragment,{children:[(0,u.jsx)("i",{className:"fas fa-user-plus me-2"}),"Create Account"]})})]}),(0,u.jsx)("div",{className:"text-center mt-3",children:(0,u.jsxs)("p",{className:"mb-0",children:["Already have an account?"," ",(0,u.jsx)("button",{type:"button",className:"btn btn-link p-0",onClick:Z,disabled:_,children:"Login here"})]})})]})})]})})}):null};j.propTypes={show:i().bool.isRequired,onHide:i().func.isRequired,onSuccess:i().func,onLoginClick:i().func,title:i().string,message:i().string,trackingContext:i().string,showConsultationFields:i().bool},n.default=j},5797:function(e,n,t){t(4566);var r=t(5413),o=t.n(r),i=t(1275),a=function(e){var n=e.userName,t=e.title,r=e.message,o=void 0===r?"Your account has been created successfully.":r,a=e.redirectMessage,s=void 0===a?"Redirecting you now...":a;return(0,i.jsxs)("div",{className:"text-center py-4",children:[(0,i.jsx)("div",{className:"mb-4",children:(0,i.jsx)("i",{className:"fas fa-check-circle text-success",style:{fontSize:"4rem"}})}),(0,i.jsx)("h4",{className:"mb-3",children:t||"Welcome, ".concat(n,"! 🎉")}),(0,i.jsx)("p",{className:"text-muted mb-2",children:o}),s&&(0,i.jsxs)(i.Fragment,{children:[(0,i.jsx)("p",{className:"text-muted",children:s}),(0,i.jsx)("div",{className:"spinner-border spinner-border-sm text-primary mt-3",role:"status",children:(0,i.jsx)("span",{className:"visually-hidden",children:"Loading..."})})]})]})};a.propTypes={userName:o().string.isRequired,message:o().string,redirectMessage:o().string},n.Z=a}}]);

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.