PageSourceSearch

https://ever.healthcare/3479.1ef40d2de091b38d7b24.chunk.js

js ever.healthcare collected 2026-10-06 09:01:58 UTC 23,616 bytes, 2 lines download raw bytes

1/*! For license information please see 3479.1ef40d2de091b38d7b24.chunk.js.LICENSE.txt */
2"use strict";(self.webpackChunkreact_boilerplate=self.webpackChunkreact_boilerplate||[]).push([[3479],{414136:(e,t,r)=>{r.r(t),r.d(t,{calendarProviderApi:()=>i,default:()=>o});const n="/api/calendar-providers",i={getMyProviders:()=>`${n}/mine`,register:()=>`${n}/register`,unregister:()=>`${n}/unregister`,linkWechat:()=>`${n}/link/wechat`,linkLine:()=>`${n}/link/line`,exportIcs:()=>`${n}/export/ics`},o=i},43479:(e,t,r)=>{Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;var n,i,o=function(e,t){if(!t&&e&&e.__esModule)return e;if(null===e||"object"!=m(e)&&"function"!=typeof e)return{default:e};var r=p(t);if(r&&r.has(e))return r.get(e);var n={__proto__:null},i=Object.defineProperty&&Object.getOwnPropertyDescriptor;for(var o in e)if("default"!==o&&Object.prototype.hasOwnProperty.call(e,o)){var a=i?Object.getOwnPropertyDescriptor(e,o):null;a&&(a.get||a.set)?Object.defineProperty(n,o,a):n[o]=e[o]}return n.default=e,r&&r.set(e,n),n}(r(551710)),a=(n=r(2693))&&n.__esModule?n:{default:n},c=r(765398),l=r(555090),d=r(237707),u=r(414136),s=r(837809);function p(e){if("function"!=typeof WeakMap)return null;var t=new WeakMap,r=new WeakMap;return(p=function(e){return e?r:t})(e)}function f(e,t,r,n){i||(i="function"==typeof Symbol&&Symbol.for&&Symbol.for("react.element")||60103);var o=e&&e.defaultProps,a=arguments.length-3;if(t||0===a||(t={children:void 0}),1===a)t.children=n;else if(a>1){for(var c=new Array(a),l=0;l<a;l++)c[l]=arguments[l+3];t.children=c}if(t&&o)for(var d in o)void 0===t[d]&&(t[d]=o[d]);else t||(t=o||{});return{$$typeof:i,type:e,key:void 0===r?null:""+r,ref:null,props:t,_owner:null}}function h(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),r.push.apply(r,n)}return r}function v(e){for(var t=1;t<arguments.length;t++){var r=null!=arguments[t]?arguments[t]:{};t%2?h(Object(r),!0).forEach((function(t){y(e,t,r[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):h(Object(r)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(r,t))}))}return e}function y(e,t,r){var n;return n=function(e,t){if("object"!=m(e)||!e)return e;var r=e[Symbol.toPrimitive];if(void 0!==r){var n=r.call(e,t||"default");if("object"!=m(n))return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===t?String:Number)(e)}(t,"string"),(t="symbol"==m(n)?n:String(n))in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}function g(){g=function(){return t};var e,t={},r=Object.prototype,n=r.hasOwnProperty,i=Object.defineProperty||function(e,t,r){e[t]=r.value},o="function"==typeof Symbol?Symbol:{},a=o.iterator||"@@iterator",c=o.asyncIterator||"@@asyncIterator",l=o.toStringTag||"@@toStringTag";function d(e,t,r){return Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}),e[t]}try{d({},"")}catch(e){d=function(e,t,r){return e[t]=r}}function u(e,t,r,n){var o=t&&t.prototype instanceof b?t:b,a=Object.create(o.prototype),c=new A(n||[]);return i(a,"_invoke",{value:O(e,r,c)}),a}function s(e,t,r){try{return{type:"normal",arg:e.call(t,r)}}catch(e){return{type:"throw",arg:e}}}t.wrap=u;var p="suspendedStart",f="suspendedYield",h="executing",v="completed",y={};function b(){}function w(){}function x(){}var C={};d(C,a,(function(){return this}));var _=Object.getPrototypeOf,k=_&&_(_(L([])));k&&k!==r&&n.call(k,a)&&(C=k);var P=x.prototype=b.prototype=Object.create(C);function E(e){["next","throw","return"].forEach((function(t){d(e,t,(function(e){return this._invoke(t,e)}))}))}function S(e,t){function r(i,o,a,c){var l=s(e[i],e,o);if("throw"!==l.type){var d=l.arg,u=d.value;return u&&"object"==m(u)&&n.call(u,"__await")?t.resolve(u.__await).then((function(e){r("next",e,a,c)}),(function(e){r("throw",e,a,c)})):t.resolve(u).then((function(e){d.value=e,a(d)}),(function(e){return r("throw",e,a,c)}))}c(l.arg)}var o;i(this,"_invoke",{value:function(e,n){function i(){return new t((function(t,i){r(e,n,t,i)}))}return o=o?o.then(i,i):i()}})}function O(t,r,n){var i=p;return function(o,a){if(i===h)throw new Error("Generator is already running");if(i===v){if("throw"===o)throw a;return{value:e,done:!0}}for(n.method=o,n.arg=a;;){var c=n.delegate;if(c){var l=N(c,n);if(l){if(l===y)continue;return l}}if("next"===n.method)n.sent=n._sent=n.arg;else if("throw"===n.method){if(i===p)throw i=v,n.arg;n.dispatchException(n.arg)}else"return"===n.method&&n.abrupt("return",n.arg);i=h;var d=s(t,r,n);if("normal"===d.type){if(i=n.done?v:f,d.arg===y)continue;return{value:d.arg,done:n.done}}"throw"===d.type&&(i=v,n.method="throw",n.arg=d.arg)}}}function N(t,r){var n=r.method,i=t.iterator[n];if(i===e)return r.delegate=null,"throw"===n&&t.iterator.return&&
vendor: 5,090 bytes, line 2
2(r.method="return",r.arg=e,N(t,r),"throw"===r.method)||"return"!==n&&(r.method="throw",r.arg=new TypeError("The iterator does not provide a '"+n+"' method")),y;var o=s(i,t.iterator,r.arg);if("throw"===o.type)return r.method="throw",r.arg=o.arg,r.delegate=null,y;var a=o.arg;return a?a.done?(r[t.resultName]=a.value,r.next=t.nextLoc,"return"!==r.method&&(r.method="next",r.arg=e),r.delegate=null,y):a:(r.method="throw",r.arg=new TypeError("iterator result is not an object"),r.delegate=null,y)}function I(e){var t={tryLoc:e[0]};1 in e&&(t.catchLoc=e[1]),2 in e&&(t.finallyLoc=e[2],t.afterLoc=e[3]),this.tryEntries.push(t)}function j(e){var t=e.completion||{};t.type="normal",delete t.arg,e.completion=t}function A(e){this.tryEntries=[{tryLoc:"root"}],e.forEach(I,this),this.reset(!0)}function L(t){if(t||""===t){var r=t[a];if(r)return r.call(t);if("function"==typeof t.next)return t;if(!isNaN(t.length)){var i=-1,o=function r(){for(;++i<t.length;)if(n.call(t,i))return r.value=t[i],r.done=!1,r;return r.value=e,r.done=!0,r};return o.next=o}}throw new TypeError(m(t)+" is not iterable")}return w.prototype=x,i(P,"constructor",{value:x,configurable:!0}),i(x,"constructor",{value:w,configurable:!0}),w.displayName=d(x,l,"GeneratorFunction"),t.isGeneratorFunction=function(e){var t="function"==typeof e&&e.constructor;return!!t&&(t===w||"GeneratorFunction"===(t.displayName||t.name))},t.mark=function(e){return Object.setPrototypeOf?Object.setPrototypeOf(e,x):(e.__proto__=x,d(e,l,"GeneratorFunction")),e.prototype=Object.create(P),e},t.awrap=function(e){return{__await:e}},E(S.prototype),d(S.prototype,c,(function(){return this})),t.AsyncIterator=S,t.async=function(e,r,n,i,o){void 0===o&&(o=Promise);var a=new S(u(e,r,n,i),o);return t.isGeneratorFunction(r)?a:a.next().then((function(e){return e.done?e.value:a.next()}))},E(P),d(P,l,"Generator"),d(P,a,(function(){return this})),d(P,"toString",(function(){return"[object Generator]"})),t.keys=function(e){var t=Object(e),r=[];for(var n in t)r.push(n);return r.reverse(),function e(){for(;r.length;){var n=r.pop();if(n in t)return e.value=n,e.done=!1,e}return e.done=!0,e}},t.values=L,A.prototype={constructor:A,reset:function(t){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(j),!t)for(var r in this)"t"===r.charAt(0)&&n.call(this,r)&&!isNaN(+r.slice(1))&&(this[r]=e)},stop:function(){this.done=!0;var e=this.tryEntries[0].completion;if("throw"===e.type)throw e.arg;return this.rval},dispatchException:function(t){if(this.done)throw t;var r=this;function i(n,i){return c.type="throw",c.arg=t,r.next=n,i&&(r.method="next",r.arg=e),!!i}for(var o=this.tryEntries.length-1;o>=0;--o){var a=this.tryEntries[o],c=a.completion;if("root"===a.tryLoc)return i("end");if(a.tryLoc<=this.prev){var l=n.call(a,"catchLoc"),d=n.call(a,"finallyLoc");if(l&&d){if(this.prev<a.catchLoc)return i(a.catchLoc,!0);if(this.prev<a.finallyLoc)return i(a.finallyLoc)}else if(l){if(this.prev<a.catchLoc)return i(a.catchLoc,!0)}else{if(!d)throw new Error("try statement without catch or finally");if(this.prev<a.finallyLoc)return i(a.finallyLoc)}}}},abrupt:function(e,t){for(var r=this.tryEntries.length-1;r>=0;--r){var i=this.tryEntries[r];if(i.tryLoc<=this.prev&&n.call(i,"finallyLoc")&&this.prev<i.finallyLoc){var o=i;break}}o&&("break"===e||"continue"===e)&&o.tryLoc<=t&&t<=o.finallyLoc&&(o=null);var a=o?o.completion:{};return a.type=e,a.arg=t,o?(this.method="next",this.next=o.finallyLoc,y):this.complete(a)},complete:function(e,t){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&&t&&(this.next=t),y},finish:function(e){for(var t=this.tryEntries.length-1;t>=0;--t){var r=this.tryEntries[t];if(r.finallyLoc===e)return this.complete(r.completion,r.afterLoc),j(r),y}},catch:function(e){for(var t=this.tryEntries.length-1;t>=0;--t){var r=this.tryEntries[t];if(r.tryLoc===e){var n=r.completion;if("throw"===n.type){var i=n.arg;j(r)}return i}}throw new Error("illegal catch attempt")},delegateYield:function(t,r,n){return this.delegate={iterator:L(t),resultName:r,nextLoc:n},"next"===this.method&&(this.arg=e),y}},t}function m(e){return m="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},m(e)}function b(e,t,r,n,i,o,a){try{var c=e[o](a),l=c.value}catch(e){return void r(e)}c.done?t(l):Promise.resolve(l).then(n,i)}function w(e){return function(){var t=this,r=arguments;return new Promise((function(n,i){var o=e.apply(t,r);function a(e){b(o,n,i,a,c,"next",e)}function c(e){b(o,n,i,a,c,"throw",e)}a(void 0)}))}}function x(e,t){return function(e){if(Array.isArray(e))return e}(e)||function(e,t){var r=null==e?null:"undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(null!=r){var n,i,o,a,c=[],l=!0,d=!1;try{if(o=(r=r.call(e)).next,0===t){if(Object(r)!==r)return;l=!1}else for(;
2!(l=(n=o.call(r)).done)&&(c.push(n.value),c.length!==t);l=!0);}catch(e){d=!0,i=e}finally{try{if(!l&&null!=r.return&&(a=r.return(),Object(a)!==a))return}finally{if(d)throw i}}return c}}(e,t)||function(e,t){if(!e)return;if("string"===typeof e)return C(e,t);var r=Object.prototype.toString.call(e).slice(8,-1);"Object"===r&&e.constructor&&(r=e.constructor.name);if("Map"===r||"Set"===r)return Array.from(e);if("Arguments"===r||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(r))return C(e,t)}(e,t)||function(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function C(e,t){(null==t||t>e.length)&&(t=e.length);for(var r=0,n=new Array(t);r<t;r++)n[r]=e[r];return n}var _=[{id:"native",name:"Native Calendar",emoji:"\u{1f4c5}",description:"Sync health events directly to your device calendar. No account linking required \u2014 just toggle on.",accent:"#4338ca",requiresAuth:!1},{id:"wechat",name:"WeChat Calendar",emoji:"\u{1f4ac}",description:"Receive health reminders and appointment alerts via WeChat. Popular in China and Southeast Asia.",accent:"#07C160",requiresAuth:!0},{id:"line",name:"LINE Notify",emoji:"\u{1f7e2}",description:"Get calendar notifications through LINE messaging. Widely used in Japan, Thailand, and Taiwan.",accent:"#00B900",requiresAuth:!0},{id:"ics",name:"ICS Export",emoji:"\u{1f4e4}",description:"Download your health events as a standard .ics file. Compatible with Google Calendar, Outlook, and Apple Calendar.",accent:"#6366f1",requiresAuth:!1}],k=a.default.div.withConfig({displayName:"CalendarProviders__Container",componentId:"sc-29byn1-0"})(["padding:24px;max-width:900px;margin:0 auto;"]),P=(0,a.default)(c.motion.button).withConfig({displayName:"CalendarProviders__BackButton",componentId:"sc-29byn1-1"})(["display:inline-flex;align-items:center;gap:6px;padding:8px 16px;border-radius:9999px;border:1.5px solid #e5e7eb;background:#fff;color:#374151;font-size:13px;font-weight:500;cursor:pointer;outline:none;margin-bottom:24px;&:hover{background:#f9fafb;}"]),E=a.default.h1.withConfig({displayName:"CalendarProviders__PageTitle",componentId:"sc-29byn1-2"})(["font-weight:700;font-size:28px;color:#1a1a2e;margin:0 0 8px;"]),S=a.default.p.withConfig({displayName:"CalendarProviders__PageSubtitle",componentId:"sc-29byn1-3"})(["font-size:14px;color:#888;margin:0 0 28px;line-height:1.6;"]),O=(0,a.default)(c.motion.div).withConfig({displayName:"CalendarProviders__InfoBanner",componentId:"sc-29byn1-4"})(["display:flex;align-items:flex-start;gap:12px;padding:16px;background:rgba(67,56,202,0.04);border:1.5px solid rgba(67,56,202,0.12);border-radius:12px;margin-bottom:28px;"]),N=a.default.div.withConfig({displayName:"CalendarProviders__InfoIcon",componentId:"sc-29byn1-5"})(["font-size:20px;flex-shrink:0;margin-top:1px;"]),I=a.default.div.withConfig({displayName:"CalendarProviders__InfoText",componentId:"sc-29byn1-6"})(["font-size:13px;color:#374151;line-height:1.6;strong{font-weight:600;color:#1a1a2e;}"]),j=a.default.div.withConfig({displayName:"CalendarProviders__ProviderGrid",componentId:"sc-29byn1-7"})(["display:grid;gap:24px;grid-template-columns:1fr;@media (min-width:640px){grid-template-columns:repeat(2,1fr);}"]),A=(0,a.default)(c.motion.div).withConfig({displayName:"CalendarProviders__ProviderCard",componentId:"sc-29byn1-8"})(["border-radius:16px;overflow:hidden;background:#fff;box-shadow:0 1px 3px rgba(0,0,0,0.08);transition:box-shadow 0.3s cubic-bezier(0.16,1,0.3,1);position:relative;&:hover{box-shadow:0 8px 30px rgba(0,0,0,0.12);}"]),L=a.default.div.withConfig({displayName:"CalendarProviders__CardAccentBar",componentId:"sc-29byn1-9"})(["height:4px;background:",";"],(function(e){return e.color||"#4338ca"})),T=a.default.div.withConfig({displayName:"CalendarProviders__CardBody",componentId:"sc-29byn1-10"})(["padding:20px;"]),D=a.default.div.withConfig({displayName:"CalendarProviders__CardHeader",componentId:"sc-29byn1-11"})(["display:flex;align-items:center;justify-content:space-between;margin-bottom:12px;
2"]),$=a.default.div.withConfig({displayName:"CalendarProviders__ProviderInfo",componentId:"sc-29byn1-12"})(["display:flex;align-items:center;gap:12px;"]),z=a.default.div.withConfig({displayName:"CalendarProviders__ProviderEmoji",componentId:"sc-29byn1-13"})(["width:44px;height:44px;border-radius:12px;background:",";display:flex;align-items:center;justify-content:center;font-size:22px;flex-shrink:0;"],(function(e){return e.bg||"#f3f4f6"})),B=a.default.h3.withConfig({displayName:"CalendarProviders__ProviderName",componentId:"sc-29byn1-14"})(["font-weight:600;font-size:16px;color:#1a1a2e;margin:0;"]),M=a.default.p.withConfig({displayName:"CalendarProviders__ProviderDesc",componentId:"sc-29byn1-15"})(["font-size:13px;color:#888;line-height:1.6;margin:0 0 16px;"]),R=(0,a.default)(c.motion.button).withConfig({displayName:"CalendarProviders__ToggleTrack",componentId:"sc-29byn1-16"})(["width:48px;height:28px;border-radius:9999px;border:none;padding:3px;cursor:pointer;outline:none;background:",";display:flex;align-items:center;transition:background 0.3s cubic-bezier(0.16,1,0.3,1);"],(function(e){return e.$active?e.$accent||"#4338ca":"#e5e7eb"})),G=(0,a.default)(c.motion.div).withConfig({displayName:"CalendarProviders__ToggleThumb",componentId:"sc-29byn1-17"})(["width:22px;height:22px;border-radius:50%;background:#fff;box-shadow:0 1px 3px rgba(0,0,0,0.15);"]),H=(0,a.default)(d.TactileButton).withConfig({displayName:"CalendarProviders__ActionButton",componentId:"sc-29byn1-18"})(["width:100%;padding:10px 20px;border-radius:8px;font-size:13px;font-weight:600;cursor:pointer;outline:none;border:none;background:",";color:",";border:",";&:hover{background:",";opacity:",";}"],(function(e){return e.$linked?"transparent":e.$accent||"#4338ca"}),(function(e){return e.$linked?"#ef4444":"#fff"}),(function(e){return e.$linked?"1.5px solid #ef4444":"none"}),(function(e){return e.$linked?"#fef2f2":e.$accent||"#4338ca"}),(function(e){return e.$linked?1:.92})),W=(0,a.default)(d.TactileButton).withConfig({displayName:"CalendarProviders__DownloadButton",componentId:"sc-29byn1-19"})(["width:100%;padding:10px 20px;border-radius:8px;font-size:13px;font-weight:600;cursor:pointer;outline:none;border:1.5px solid #6366f1;background:transparent;color:#6366f1;&:hover{background:rgba(99,102,241,0.04);}"]),F=a.default.span.withConfig({displayName:"CalendarProviders__StatusBadge",componentId:"sc-29byn1-20"})(["display:inline-flex;align-items:center;gap:6px;padding:4px 12px;border-radius:9999px;background:",";color:",";font-size:11px;font-weight:500;margin-bottom:12px;"],(function(e){return e.$linked?"#D1FAE5":"#F3F4F6"}),(function(e){return e.$linked?"#065F46":"#6B7280"})),V=a.default.span.withConfig({displayName:"CalendarProviders__StatusDot",componentId:"sc-29byn1-21"})(["display:inline-block;width:6px;height:6px;border-radius:50%;background:",";"],(function(e){return e.$linked?"#22C55E":"#D1D5DB"})),U=a.default.div.withConfig({displayName:"CalendarProviders__PrivacyNote",componentId:"sc-29byn1-22"})(["margin-top:32px;padding:16px;background:#fafafa;border-radius:12px;display:flex;align-items:flex-start;gap:10px;"]),q=a.default.span.withConfig({displayName:"CalendarProviders__PrivacyIcon",componentId:"sc-29byn1-23"})(["font-size:16px;flex-shrink:0;"]),J=a.default.p.withConfig({displayName:"CalendarProviders__PrivacyText",componentId:"sc-29byn1-24"})(["font-size:12px;color:#888;line-height:1.6;margin:0;"]),Y=(0,a.default)(c.motion.div).withConfig({displayName:"CalendarProviders__Spinner",componentId:"sc-29byn1-25"})(["width:32px;height:32px;border:3px solid #e5e7eb;border-top-color:#4338ca;border-radius:50%;margin:80px auto;"]),K=f(S,{},void 0,"Connect your preferred calendar services to receive health reminders, appointment alerts, and keep your wellness schedule in sync across platforms."),Q=f(N,{role:"img","aria-label":"globe"},void 0,"\u{1f310}"),X=f(d.ScrollReveal,{},void 0,f(U,{},void 0,f(q,{role:"img","aria-label":"lock"},void 0,"\u{1f512}"),f(J,{},void 0,"Your calendar data stays on your device. Ever Healthcare only stores provider connection status \u2014 never your calendar content. Linked accounts can be removed at any time. ICS exports are generated locally and never uploaded to our servers.")));t.default=function(){var e=(0,s.useTranslation)().t,t=(0,l.useHistory)(),r=x((0,o.useState)({}),2),n=r[0],i=r[1],a=x((0,o.useState)({native:!1}),2),p=a[0],h=a[1],b=x((0,o.useState)(!0),2),C=b[0],S=b[1],N=x((0,o.useState)(null),2),U=N[0],q=N[1],J=(0,o.useCallback)(w(g(
2).mark((function e(){var t,r,n,o,a;return g().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:if(S(!0),e.prev=1,t=localStorage.getItem("token")){e.next=7;break}return i({}),S(!1),e.abrupt("return");case 7:return e.next=9,fetch(u.calendarProviderApi.getMyProviders(),{headers:{"Content-Type":"application/json",Authorization:t}});case 9:return r=e.sent,e.next=12,r.json();case 12:(n=e.sent)&&"object"===m(n)&&(o={},a={native:!1},(Array.isArray(n)?n:[]).forEach((function(e){o[e.provider]=!0,"native"===e.provider&&(a.native=!0)})),i(o),h(a)),e.next=19;break;case 16:e.prev=16,e.t0=e.catch(1),i({});case 19:S(!1);case 20:case"end":return e.stop()}}),e,null,[[1,16]])}))),[]);(0,o.useEffect)((function(){J()}),[J]);var Z=function(){var e=!p.native;h((function(t){return v(v({},t),{},{native:e})}));var t=localStorage.getItem("token");if(t){var r=e?u.calendarProviderApi.register():u.calendarProviderApi.unregister();fetch(r,{method:"POST",headers:{"Content-Type":"application/json",Authorization:t},body:JSON.stringify({provider:"native"})}).catch((function(){h((function(t){return v(v({},t),{},{native:!e})}))})),i((function(t){return v(v({},t),{},{native:e})}))}},ee=function(){var e=w(g().mark((function e(t){var r,o,a;return g().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:if(q(t.id),e.prev=1,r=localStorage.getItem("token")){e.next=5;break}return e.abrupt("return");case 5:return o=n[t.id],a=o?u.calendarProviderApi.unregister():"wechat"===t.id?u.calendarProviderApi.linkWechat():"line"===t.id?u.calendarProviderApi.linkLine():u.calendarProviderApi.register(),e.next=9,fetch(a,{method:"POST",headers:{"Content-Type":"application/json",Authorization:r},body:JSON.stringify({provider:t.id})});case 9:i((function(e){return v(v({},e),{},y({},t.id,!o))})),e.next=14;break;case 12:e.prev=12,e.t0=e.catch(1);case 14:q(null);case 15:case"end":return e.stop()}}),e,null,[[1,12]])})));return function(t){return e.apply(this,arguments)}}(),te=function(){try{var e=JSON.parse(localStorage.getItem("EVER_WEB_HEALTH_EVENTS")||"[]"),t=["BEGIN:VCALENDAR","VERSION:2.0","PRODID:-//Ever Healthcare//Health Wallet//EN","CALSCALE:GREGORIAN"];e.forEach((function(e){var r=new Date(e.start),n=e.end?new Date(e.end):new Date(r.getTime()+18e5),i=function(e){return e.toISOString().replace(/[-:]/g,"").replace(/\.\d{3}/,"")};t.push("BEGIN:VEVENT"),t.push("DTSTART:".concat(i(r))),t.push("DTEND:".concat(i(n))),t.push("SUMMARY:".concat(e.title||e.type||"Health Event")),e.description&&t.push("DESCRIPTION:".concat(e.description)),t.push("UID:".concat(e.id||Math.random().toString(36).slice(2),"@ever.health")),t.push("END:VEVENT")})),t.push("END:VCALENDAR");var r=new Blob([t.join("\r\n")],{type:"text/calendar;charset=utf-8"}),n=URL.createObjectURL(r),i=document.createElement("a");i.href=n,i.download="ever-health-events.ics",document.body.appendChild(i),i.click(),document.body.removeChild(i),URL.revokeObjectURL(n)}catch(e){}};return f(d.MotionPage,{},void 0,f(k,{},void 0,f(P,{whileHover:{scale:1.02},whileTap:{scale:.96},transition:{duration:.15,ease:d.EASE_MICRO},onClick:function(){return t.push("/healthWallet")}},void 0,"\u2190 Back to Health Wallet"),f(E,{},void 0,e("calendarprovidersettings.calendar_sync")),K,f(d.ScrollReveal,{},void 0,f(O,{initial:{opacity:0,y:12},animate:{opacity:1,y:0},transition:{duration:.4,ease:d.EASE_SMOOTH}},void 0,Q,f(I,{},void 0,f("strong",{},void 0,e("healthwallet.market_detection"))," WeChat Calendar is popular in China and Southeast Asia. LINE Notify is widely used in Japan, Thailand, and Taiwan. Native Calendar works everywhere. Choose the providers that match your region."))),f(c.AnimatePresence,{mode:"wait"},void 0,C?f(c.motion.div,{initial:{opacity:0}
2,animate:{opacity:1},exit:{opacity:0}},"loading",f(Y,{animate:{rotate:360},transition:{duration:1,repeat:1/0,ease:"linear"}})):f(c.motion.div,{initial:{opacity:0,y:20},animate:{opacity:1,y:0},exit:{opacity:0,y:-20},transition:{duration:.4,ease:d.EASE_SMOOTH}},"grid",f(d.StaggerList,{},void 0,f(j,{},void 0,_.map((function(t){var r=!!n[t.id],i="native"===t.id,o="ics"===t.id,a="".concat(t.accent,"12");return f(d.StaggerItem,{},t.id,f(A,{whileHover:{y:-4},transition:{duration:.2,ease:d.EASE_SMOOTH}},void 0,f(L,{color:t.accent}),f(T,{},void 0,f(D,{},void 0,f($,{},void 0,f(z,{bg:a},void 0,t.emoji),f(B,{},void 0,t.name)),i&&f(R,{$active:p.native,$accent:t.accent,onClick:Z,whileTap:{scale:.92}},void 0,f(G,{animate:{x:p.native?20:0},transition:{duration:.2,ease:d.EASE_SMOOTH}}))),f(M,{},void 0,t.description),!i&&!o&&f(F,{$linked:r},void 0,f(V,{$linked:r}),r?"Linked":"Not linked"),i&&f(F,{$linked:p.native},void 0,f(V,{$linked:p.native}),p.native?"Enabled":"Disabled"),t.requiresAuth&&f(H,{$linked:r,$accent:t.accent,onClick:function(){return ee(t)},style:{opacity:U===t.id?.6:1,pointerEvents:U===t.id?"none":"auto"}},void 0,U===t.id?"Processing...":r?"Unlink Account":"Link ".concat(t.name)),o&&f(W,{onClick:te},void 0,e("healthwallet.download_ics_file")))))})))))),X))}}}]);

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.