@everfur/sdk 1.6.0 → 1.7.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/{Chat.d-B4GybUU4.d.ts → Chat.d-BIr_4AJt.d.ts} +1 -1
- package/dist/{Chat.d-DPM2ncxi.d.cts → Chat.d-BhevtXn9.d.cts} +1 -1
- package/dist/{DepthViews.d-BGspxovy.d.cts → DepthViews.d-C8KdfzwR.d.cts} +1 -1
- package/dist/{DepthViews.d-BaLh7Lsi.d.cts → DepthViews.d-DWQ-J208.d.cts} +1 -1
- package/dist/{DepthViews.d-BIHVrf9r.d.ts → DepthViews.d-DYVUq4Xk.d.ts} +1 -1
- package/dist/{DepthViews.d-CEVk9poG.d.ts → DepthViews.d-oKr9R0Ql.d.ts} +1 -1
- package/dist/{IntakeMedia.d-CwSkSLNM.d.ts → IntakeMedia.d-B-ZZK6vd.d.ts} +1 -1
- package/dist/{IntakeMedia.d-LRXO38_z.d.cts → IntakeMedia.d-CuVkzIsO.d.cts} +1 -1
- package/dist/{IntakeMedia.d-DmaeGU6T.d.cts → IntakeMedia.d-CyF6NPHx.d.cts} +1 -1
- package/dist/{IntakeMedia.d-Dyb9R8b0.d.ts → IntakeMedia.d-vU8g9OM5.d.ts} +1 -1
- package/dist/{RecordsPage.d-D10RIgdc.d.ts → RecordsPage.d-DU8Nswzh.d.ts} +1 -1
- package/dist/{RecordsPage.d-DbhYNSbq.d.cts → RecordsPage.d-DzPhqMHW.d.cts} +1 -1
- package/dist/animations/index.d.cts +3 -3
- package/dist/animations/index.d.ts +3 -3
- package/dist/{attachments.d-CF4lLuGK.d.cts → attachments.d-0nOPDIng.d.cts} +1 -1
- package/dist/{attachments.d-BlukNfIf.d.ts → attachments.d-BlyI-RCY.d.ts} +1 -1
- package/dist/{bookingCopy.d-Bn8bdo89.d.ts → bookingCopy.d-ClL8OxBS.d.ts} +3 -3
- package/dist/{bookingCopy.d-Dg7bPM-U.d.cts → bookingCopy.d-DUVqhF5f.d.cts} +3 -3
- package/dist/{branding.d-XrZYClN4.d.ts → branding.d-D0LV3aFE.d.ts} +1 -1
- package/dist/{branding.d-CqDLKj1U.d.cts → branding.d-DzSPLZKl.d.cts} +1 -1
- package/dist/{casesRepository.d-CVuKTkJo.d.cts → casesRepository.d-DnanKXJ1.d.cts} +1 -1
- package/dist/{casesRepository.d-Dn1fK1b2.d.ts → casesRepository.d-_4QucKVC.d.ts} +1 -1
- package/dist/chat/index.cjs +239 -238
- package/dist/chat/index.d.cts +11 -11
- package/dist/chat/index.d.ts +11 -11
- package/dist/chat/index.js +241 -240
- package/dist/chat/lite/index.cjs +239 -238
- package/dist/chat/lite/index.d.cts +11 -11
- package/dist/chat/lite/index.d.ts +11 -11
- package/dist/chat/lite/index.js +239 -238
- package/dist/chat-cards/index.cjs +2 -2
- package/dist/chat-cards/index.js +9 -9
- package/dist/{chatHandoffToken.d-zdp23Ukr.d.ts → chatHandoffToken.d-BoZGGbIB.d.ts} +5 -5
- package/dist/{chatHandoffToken.d-Cap2z62P.d.cts → chatHandoffToken.d-DhhGdLNH.d.cts} +5 -5
- package/dist/{checkin.d-CuIUahcd.d.cts → checkin.d-DB-HlK7r.d.cts} +9 -4
- package/dist/{checkin.d-BoZXWjxX.d.ts → checkin.d-DogrR06X.d.ts} +9 -4
- package/dist/{chunk-LMIBOI3I.js → chunk-6E3J6IVM.js} +13 -13
- package/dist/{chunk-6AIEUA4V.js → chunk-J5ZUBY3S.js} +1 -1
- package/dist/{chunk-BN7OAFBS.js → chunk-LPHBCDJP.js} +21 -21
- package/dist/{chunk-IXHLESYC.js → chunk-ULQDOC75.js} +1 -1
- package/dist/client/index.cjs +28 -27
- package/dist/client/index.d.cts +13 -13
- package/dist/client/index.d.ts +13 -13
- package/dist/client/index.js +25 -24
- package/dist/{clinicBatch.d-C0xx5L4j.d.cts → clinicBatch.d-BvPF6vXS.d.cts} +2 -2
- package/dist/{clinicBatch.d-DNi4UURs.d.ts → clinicBatch.d-CF0GIvpx.d.ts} +2 -2
- package/dist/{config.d-B7Z-KTGq.d.ts → config.d-Bc41Ax6M.d.ts} +5 -1
- package/dist/{config.d-ClAI2RZ6.d.cts → config.d-Bn6GEGfl.d.cts} +5 -1
- package/dist/consent/index.d.cts +5 -5
- package/dist/consent/index.d.ts +5 -5
- package/dist/{context.d-D7zX6Q0J.d.ts → context.d-0QfLaI3W.d.ts} +5 -5
- package/dist/{context.d-guaLkx5t.d.cts → context.d-CyQpedoU.d.cts} +5 -5
- package/dist/{copy.d--F5A9cXK.d.cts → copy.d-B55PpLxr.d.cts} +2 -2
- package/dist/{copy.d-DmxuFJFe.d.ts → copy.d-B8wIE6cH.d.ts} +2 -2
- package/dist/core/index.cjs +32 -31
- package/dist/core/index.d.cts +22 -16
- package/dist/core/index.d.ts +22 -16
- package/dist/core/index.js +37 -36
- package/dist/{depth.d-CgzYE6_n.d.ts → depth.d-CrtZXnLy.d.ts} +2 -2
- package/dist/{depth.d-DLaP0o8Y.d.cts → depth.d-Cxz6VisZ.d.cts} +2 -2
- package/dist/{entitlementRepository.d-CkUTlVAb.d.ts → entitlementRepository.d-BaZTIe1B.d.ts} +3 -3
- package/dist/{entitlementRepository.d-DVTp-BB9.d.cts → entitlementRepository.d-YeNG2TKI.d.cts} +3 -3
- package/dist/{focus.d-u-HYvim0.d.ts → focus.d-520VEHKB.d.ts} +1 -1
- package/dist/{focus.d-CLTjm6In.d.cts → focus.d-DoempN1I.d.cts} +1 -1
- package/dist/health-plan/index.cjs +236 -235
- package/dist/health-plan/index.d.cts +15 -15
- package/dist/health-plan/index.d.ts +15 -15
- package/dist/health-plan/index.js +236 -235
- package/dist/{healthPlanRepository.d-CwRXeoM7.d.ts → healthPlanRepository.d-BHu9LO0r.d.ts} +2 -2
- package/dist/{healthPlanRepository.d-B22kjrYa.d.cts → healthPlanRepository.d-tUR1f_5s.d.cts} +2 -2
- package/dist/{idempotency.d-DrxKLPPe.d.cts → idempotency.d-CcFLvzYW.d.cts} +1 -1
- package/dist/{idempotency.d-CbB07p64.d.ts → idempotency.d-CvqKG3Uq.d.ts} +1 -1
- package/dist/{identity.d-D4VtpqRr.d.ts → identity.d-Bex_XJZx.d.ts} +1 -1
- package/dist/{identity.d-DDpXOtas.d.cts → identity.d-Dm0Buvn8.d.cts} +1 -1
- package/dist/{inbox.d-B2JXK0uI.d.ts → inbox.d-9ajb0oiJ.d.ts} +1 -1
- package/dist/{inbox.d-CwA1ogzV.d.cts → inbox.d-CGCYOZIq.d.cts} +1 -1
- package/dist/index.cjs +259 -258
- package/dist/index.d.cts +17 -17
- package/dist/index.d.ts +17 -17
- package/dist/index.js +258 -257
- package/dist/{introEvents.d-DW3gLljE.d.ts → introEvents.d-CuVaufTy.d.ts} +1 -1
- package/dist/{introEvents.d-B7acmGwf.d.cts → introEvents.d-DU6feqx4.d.cts} +1 -1
- package/dist/{layout.d-C8y_ki1V.d.ts → layout.d-BQ5IVS-m.d.ts} +1 -1
- package/dist/{layout.d-DfaFM_lp.d.cts → layout.d-CSPr33BP.d.cts} +1 -1
- package/dist/notifications/inbox/index.d.cts +6 -6
- package/dist/notifications/inbox/index.d.ts +6 -6
- package/dist/notifications/index.d.cts +7 -7
- package/dist/notifications/index.d.ts +7 -7
- package/dist/{optInView.d-Cps7aLQN.d.ts → optInView.d-DpGXnpGw.d.ts} +21 -3
- package/dist/{optInView.d-ChJyJMBA.d.cts → optInView.d-dLjrI3co.d.cts} +21 -3
- package/dist/{pets.d-BpLObpfM.d.ts → pets.d-CHdSIoBf.d.ts} +1 -1
- package/dist/{pets.d-DXhzTNuI.d.cts → pets.d-jnhrJhqm.d.cts} +1 -1
- package/dist/{petsRepository.d-ai_tZ3lu.d.cts → petsRepository.d-BeKRiNao.d.cts} +1 -1
- package/dist/{petsRepository.d-_QfM7F6T.d.ts → petsRepository.d-BjwB1vku.d.ts} +1 -1
- package/dist/{presentation.d-BkIvMtIl.d.cts → presentation.d-Br3TnwA6.d.cts} +17 -1
- package/dist/{presentation.d-BkIvMtIl.d.ts → presentation.d-Br3TnwA6.d.ts} +17 -1
- package/dist/records/depth/index.d.cts +9 -9
- package/dist/records/depth/index.d.ts +9 -9
- package/dist/records/index.cjs +237 -228
- package/dist/records/index.d.cts +39 -12
- package/dist/records/index.d.ts +39 -12
- package/dist/records/index.js +155 -146
- package/dist/{requestFunnel.d-DKBPTpsy.d.ts → requestFunnel.d-C_NMgz9R.d.ts} +2 -2
- package/dist/{requestFunnel.d-BwZDfWVD.d.cts → requestFunnel.d-DoJWLySc.d.cts} +2 -2
- package/dist/{route.d-QBCoO62z.d.cts → route.d-BW2abFVK.d.cts} +2 -2
- package/dist/{route.d-B3u14HJT.d.ts → route.d-Olr_gXaa.d.ts} +2 -2
- package/dist/{runtimeTypes.d-hjN6xvxm.d.ts → runtimeTypes.d-Bp2VW6YE.d.ts} +6 -6
- package/dist/{runtimeTypes.d-BSxuUCOX.d.cts → runtimeTypes.d-StvJY45N.d.cts} +6 -6
- package/dist/{screenProps.d-fHBKArt_.d.ts → screenProps.d-BTLSji0N.d.ts} +1 -1
- package/dist/{screenProps.d-6xmE1C-V.d.cts → screenProps.d-B_5Bh7aQ.d.cts} +1 -1
- package/dist/server/events/index.cjs +2 -2
- package/dist/server/events/index.d.cts +19 -5
- package/dist/server/events/index.d.ts +19 -5
- package/dist/server/events/index.js +2 -2
- package/dist/server/index.cjs +1 -1
- package/dist/server/index.d.cts +3 -3
- package/dist/server/index.d.ts +3 -3
- package/dist/server/index.js +1 -1
- package/dist/shop/index.d.cts +3 -3
- package/dist/shop/index.d.ts +3 -3
- package/dist/slots/index.cjs +200 -199
- package/dist/slots/index.d.cts +5 -5
- package/dist/slots/index.d.ts +5 -5
- package/dist/slots/index.js +200 -199
- package/dist/tabs/index.cjs +200 -190
- package/dist/tabs/index.d.cts +68 -11
- package/dist/tabs/index.d.ts +68 -11
- package/dist/tabs/index.js +201 -191
- package/dist/tabs-bar/index.cjs +247 -0
- package/dist/tabs-bar/index.d.cts +10 -0
- package/dist/tabs-bar/index.d.ts +10 -0
- package/dist/tabs-bar/index.js +247 -0
- package/dist/{tabsModel.d-D9GWPFrL.d.ts → tabsModel.d-B4MSQB57.d.cts} +5 -2
- package/dist/{tabsModel.d-D9GWPFrL.d.cts → tabsModel.d-C8pd-DP3.d.ts} +5 -2
- package/dist/televet/booking/index.cjs +147 -145
- package/dist/televet/booking/index.d.cts +10 -10
- package/dist/televet/booking/index.d.ts +10 -10
- package/dist/televet/booking/index.js +163 -161
- package/dist/televet/call/index.cjs +52 -52
- package/dist/televet/call/index.d.cts +5 -0
- package/dist/televet/call/index.d.ts +5 -0
- package/dist/televet/call/index.js +25 -25
- package/dist/televet/index.d.cts +3 -3
- package/dist/televet/index.d.ts +3 -3
- package/dist/{televetGlobal.d-gZrXPaLl.d.cts → televetGlobal.d-B_I_fy7O.d.cts} +9 -0
- package/dist/{televetGlobal.d-DkJkV55Y.d.ts → televetGlobal.d-DN7o45WJ.d.ts} +9 -0
- package/dist/testing/index.cjs +3 -3
- package/dist/testing/index.d.cts +1 -1
- package/dist/testing/index.d.ts +1 -1
- package/dist/testing/index.js +3 -3
- package/dist/testing/rn/index.d.cts +9 -9
- package/dist/testing/rn/index.d.ts +9 -9
- package/dist/testing/web/index.d.cts +9 -9
- package/dist/testing/web/index.d.ts +9 -9
- package/dist/texting/index.cjs +32 -27
- package/dist/texting/index.d.cts +5 -5
- package/dist/texting/index.d.ts +5 -5
- package/dist/texting/index.js +52 -47
- package/dist/{threadOptions.d-NSlFx-Lp.d.ts → threadOptions.d-D_3hk79R.d.ts} +5 -5
- package/dist/{threadOptions.d-Dc57dm7h.d.cts → threadOptions.d-D_GU6lp9.d.cts} +5 -5
- package/dist/{timelineRows.d-CthNM5hV.d.ts → timelineRows.d-BbVuARtc.d.ts} +1 -1
- package/dist/{timelineRows.d-7w8NsNi4.d.cts → timelineRows.d-BiLAAbYl.d.cts} +1 -1
- package/dist/{typeStyle.d-8mcLhtbH.d.ts → typeStyle.d-DSk99BuZ.d.ts} +1 -1
- package/dist/{typeStyle.d-CLrQZW-r.d.cts → typeStyle.d-DqR6mWCF.d.cts} +1 -1
- package/dist/{useHealthPlanSubscription.d-CV7M21HS.d.ts → useHealthPlanSubscription.d-CpE6l1VW.d.ts} +3 -3
- package/dist/{useHealthPlanSubscription.d-SA9-SuKe.d.cts → useHealthPlanSubscription.d-DRiWDJXq.d.cts} +3 -3
- package/dist/{useInboxUnread.d-0DrQPn7J.d.ts → useInboxUnread.d-BV7PkWDH.d.ts} +1 -1
- package/dist/{useInboxUnread.d-CRcOTkmu.d.cts → useInboxUnread.d-CElyXBkY.d.cts} +1 -1
- package/dist/{usePresentation.d-BJzFicRQ.d.cts → usePresentation.d-BcazazQH.d.cts} +3 -3
- package/dist/{usePresentation.d-DgSGIWS-.d.ts → usePresentation.d-CMOypLlH.d.ts} +3 -3
- package/dist/{useRecordsDepth.d-ZX2rhcUx.d.ts → useRecordsDepth.d-Bka4KQhq.d.ts} +1 -1
- package/dist/{useRecordsDepth.d-C9W45gwS.d.cts → useRecordsDepth.d-TgmpxKdX.d.cts} +1 -1
- package/dist/{useUnread.d-4SbFChbd.d.ts → useUnread.d-CGqaP-dB.d.ts} +27 -5
- package/dist/{useUnread.d-B0YhhR_D.d.cts → useUnread.d-DVVnYNPU.d.cts} +27 -5
- package/dist/{view.d-3lxzyJlL.d.cts → view.d-CwruYhQy.d.cts} +3 -3
- package/dist/{view.d-DRiYNQJ8.d.ts → view.d-DamH8TQF.d.ts} +3 -3
- package/dist/web/consent/index.d.cts +5 -5
- package/dist/web/consent/index.d.ts +5 -5
- package/dist/web/health-plan/index.cjs +9 -8
- package/dist/web/health-plan/index.d.cts +16 -16
- package/dist/web/health-plan/index.d.ts +16 -16
- package/dist/web/health-plan/index.js +49 -48
- package/dist/web/inbox/index.d.cts +7 -7
- package/dist/web/inbox/index.d.ts +7 -7
- package/dist/web/index.cjs +185 -184
- package/dist/web/index.d.cts +32 -32
- package/dist/web/index.d.ts +32 -32
- package/dist/web/index.js +187 -186
- package/dist/web/intro/index.d.cts +7 -7
- package/dist/web/intro/index.d.ts +7 -7
- package/dist/web/notifications/index.d.cts +6 -6
- package/dist/web/notifications/index.d.ts +6 -6
- package/dist/web/records/depth/index.d.cts +9 -9
- package/dist/web/records/depth/index.d.ts +9 -9
- package/dist/web/records/index.d.cts +11 -11
- package/dist/web/records/index.d.ts +11 -11
- package/dist/web/records-sheet/index.cjs +111 -110
- package/dist/web/records-sheet/index.js +111 -110
- package/dist/web/shop/index.cjs +1 -1
- package/dist/web/shop/index.d.cts +3 -3
- package/dist/web/shop/index.d.ts +3 -3
- package/dist/web/shop/index.js +1 -1
- package/dist/web/televet/booking/index.cjs +3 -3
- package/dist/web/televet/booking/index.d.cts +10 -10
- package/dist/web/televet/booking/index.d.ts +10 -10
- package/dist/web/televet/booking/index.js +69 -69
- package/dist/web/televet/call/index.cjs +1 -1
- package/dist/web/televet/call/index.js +1 -1
- package/dist/web/televet/index.d.cts +3 -3
- package/dist/web/televet/index.d.ts +3 -3
- package/dist/web/texting/index.cjs +34 -29
- package/dist/web/texting/index.d.cts +5 -5
- package/dist/web/texting/index.d.ts +5 -5
- package/dist/web/texting/index.js +45 -40
- package/dist/web/ui/index.cjs +1 -1
- package/dist/web/ui/index.js +33 -33
- package/package.json +16 -1
- package/tabs-bar/package.json +8 -0
package/dist/slots/index.cjs
CHANGED
|
@@ -1,293 +1,294 @@
|
|
|
1
1
|
/*! @everfur/sdk. Copyright (c) 2026 Strand Health Inc. dba Everfur. All rights reserved. Use is subject to the Everfur SDK License: https://docs.everfur.com/license */
|
|
2
2
|
"use strict";var e=require("react"),t=require("react-native"),i=require("react/jsx-runtime");var r=/* @__PURE__ */Object.freeze({"plan.needs":"list","plan.tips":"list","plan.items":"list","cart.lines":"list","cart.summary":"item","orders.recent":"list"});function n(e){return Object.prototype.hasOwnProperty.call(r,e)}function l(e){if(e===void 0)return null;let t=e.indexOf(":");if(t<=0)return null;let i=e.slice(0,t),r=e.slice(t+1);return r===""?null:i==="data"?n(r)?{kind:i,name:r}:null:i==="item"||i==="copy"?{kind:i,name:r}:null}function o(e){let t=/* @__PURE__ */new Set,i=e=>{let i=l(e);i?.kind==="data"&&t.add(i.name)};for(let t of e){i(t.repeat),i(t.visibleIf?.source);for(let e of Object.values(t.bind))i(e)}return t}function ok(e,t){/* @__PURE__ */
|
|
3
3
|
return Object.freeze({ok:true,value:e})}function err(e){/* @__PURE__ */
|
|
4
|
-
return Object.freeze({ok:false,error:e})}var a=class _EverfurConfigError extends Error{constructor(e,t){super(t),this.name="EverfurConfigError",this.kind=e,Object.setPrototypeOf(this,_EverfurConfigError.prototype)}};var s=/* @__PURE__ */Symbol.for("@everfur/sdk#EverfurContext@v1"),c=globalThis,d=c[s]??(c[s]=e.createContext(null));d.displayName??="EverfurContext";function u(){let t=e.useContext(d);if(t===null)throw new a("not-initialized","Everfur hooks must be called inside <EverfurProvider>. Wrap your tree once, high.");return t}var p=()=>()=>{},h=()=>null;function g(t,i){return e.useSyncExternalStore(i?.subscribe??p,i?.get??h,i?.get??h)??t}var f=/* @__PURE__ */Object.freeze({chatAnswerStyle:"cards",chatHistoryStyle:"sheet",chatTopCard:"focus",chatFollowUpCount:3,chatFollowUpsExcludeTelevet:false,chatComposerMic:true,chatComposerUpload:true,safetyDisclaimerPlacement:"composer",healthPlanLayout:"focus_plan",recordsTopRiskLine:true,recordsClearResultsFilter:true,chatComposerStyle:"compact",chatComposerPlaceholder:"pet_name",chatHistoryBar:"scroll",chatGeneralBanner:true,chatSendButton:"always_dark",chatTextingAsk:true,serverSlots:false}),
|
|
5
|
-
return Object.freeze(a)}var T=/* @__PURE__ */Object.freeze({branding:null}),j=/* @__PURE__ */Object.freeze({subscribe:()=>()=>{},getSnapshot:()=>T});function S(e){return e?Object.keys(e).sort().map(t=>`${t}=${String(e[t])}`).join("&"):""}function useEverfurPresentation(e){return I(e).presentation}function I(t){let{runtime:i}=u(),r=i?.entitlements??j,n=e.useCallback(()=>r.getSnapshot()?.branding??null,[r]),l=g(e.useSyncExternalStore(r.subscribe,n,n),i?.sdkConfigHost?.branding),o=S(t);return e.useMemo(()=>{let e=l?.lockedFields??null;return{presentation:resolvePresentation({server:l?.presentation??null,locked:e,client:t??null}),isLocked:t=>isPresentationFieldLocked(t,e)}},[l,o])}var z=/* @__PURE__ */Symbol.for("@everfur/sdk#SlotSwitchContext@v1"),D=globalThis,C=D[z]??(D[z]=e.createContext(null));C.displayName??="EverfurSlotSwitch";function H(t){let i=e.useContext(C),r=useEverfurPresentation(t===void 0?void 0:{serverSlots:t}).serverSlots;return t!==void 0||i===null?r:i}var F=[{wireCode:"AccessDeniedException",envelope:"http_envelope",httpStatus:403,retryable:false},{wireCode:"AuthorizationException",envelope:"http_envelope",httpStatus:401,retryable:false},{wireCode:"ConflictException",envelope:"http_envelope",httpStatus:409,retryable:true},{wireCode:"DAILY_QUOTA_EXCEEDED",envelope:"http_envelope",httpStatus:429,retryable:true},{wireCode:"FILE_TOO_LARGE",envelope:"http_envelope",httpStatus:400,retryable:false},{wireCode:"IDEMPOTENCY_KEY_IN_FLIGHT",envelope:"http_envelope",httpStatus:409,retryable:true},{wireCode:"IDEMPOTENCY_KEY_REUSED_DIFFERENT_REQUEST",envelope:"http_envelope",httpStatus:409,retryable:false},{wireCode:"INVALID_CONTENT_TYPE",envelope:"http_envelope",httpStatus:400,retryable:false},{wireCode:"InternalFailureException",envelope:"http_envelope",httpStatus:500,retryable:true},{wireCode:"MethodNotAllowedException",envelope:"http_envelope",httpStatus:405,retryable:false},{wireCode:"NotImplementedException",envelope:"http_envelope",httpStatus:501,retryable:false},{wireCode:"PaymentRequiredException",envelope:"http_envelope",httpStatus:402,retryable:false},{wireCode:"ResourceNotFoundException",envelope:"http_envelope",httpStatus:404,retryable:false},{wireCode:"ServiceUnavailableException",envelope:"http_envelope",httpStatus:503,retryable:true},{wireCode:"TIER_UPGRADE_REQUIRED",envelope:"http_envelope",httpStatus:402,retryable:false},{wireCode:"ThrottlingException",envelope:"http_envelope",httpStatus:429,retryable:true},{wireCode:"ValidationException",envelope:"http_envelope",httpStatus:400,retryable:false},{wireCode:"accessDenied",envelope:"http_envelope",httpStatus:403,retryable:false},{wireCode:"access_denied",envelope:"oauth_error",httpStatus:302,retryable:false},{wireCode:"anchor_not_found",envelope:"http_envelope",httpStatus:404,retryable:false},{wireCode:"anchor_ref_invalid",envelope:"http_envelope",httpStatus:422,retryable:false},{wireCode:"anonTokenInvalid",envelope:"http_envelope",httpStatus:401,retryable:false},{wireCode:"attachment_unreadable",envelope:"http_envelope",httpStatus:400,retryable:false},{wireCode:"authExpired",envelope:"http_envelope",httpStatus:401,retryable:true},{wireCode:"authRejected",envelope:"http_envelope",httpStatus:401,retryable:false},{wireCode:"before_invalid",envelope:"http_envelope",httpStatus:422,retryable:false},{wireCode:"bundle_mismatch",envelope:"http_envelope",httpStatus:422,retryable:false},{wireCode:"bundle_not_uploaded",envelope:"http_envelope",httpStatus:422,retryable:false},{wireCode:"bundles_unavailable",envelope:"http_envelope",httpStatus:503,retryable:true},{wireCode:"catalog_empty_refused",envelope:"http_envelope",httpStatus:409,retryable:false},{wireCode:"catalog_shrink_refused",envelope:"http_envelope",httpStatus:409,retryable:false},{wireCode:"consent_invalid",envelope:"http_envelope",httpStatus:422,retryable:false},{wireCode:"consent_required",envelope:"http_envelope",httpStatus:422,retryable:false},{wireCode:"consent_scope_wrong_route",envelope:"http_envelope",httpStatus:400,retryable:false},{wireCode:"device_cipher_unavailable",envelope:"http_envelope",httpStatus:503,retryable:true},{wireCode:"email_invalid",envelope:"http_envelope",httpStatus:422,retryable:false},{wireCode:"endpoint_not_allowed",envelope:"http_envelope",httpStatus:422,retryable:false},{wireCode:"environment_mismatch",envelope:"http_envelope",httpStatus:422,retryable:false},{wireCode:"event_cursor_invalid",envelope:"http_envelope",httpStatus:400,retryable:false},{wireCode:"event_filter_invalid",envelope:"http_envelope",httpStatus:400,retryable:false},{wireCode:"event_id_invalid",envelope:"http_envelope",httpStatus:422,retryable:false},{wireCode:"event_payload_invalid",envelope:"http_envelope",httpStatus:400,retryable:false},{wireCode:"event_type_not_available",envelope:"http_envelope",httpStatus:400,retryable:false},{wireCode:"event_type_unknown",envelope:"http_envelope",httpStatus:400,retryable:false},{wireCode:"idempotency_key_invalid",envelope:"http_envelope",httpStatus:400,retryable:false},{wireCode:"idempotency_key_required",envelope:"http_envelope",httpStatus:400,retryable:false},{wireCode:"idempotency_key_reused",envelope:"http_envelope",httpStatus:409,retryable:false},{wireCode:"inbox_cursor_invalid",envelope:"http_envelope",httpStatus:422,retryable:false},{wireCode:"insufficientCapability",envelope:"http_envelope",httpStatus:403,retryable:false},{wireCode:"insufficient_scope",envelope:"http_envelope",httpStatus:403,retryable:false},{wireCode:"internal_error",envelope:"sse_frame",httpStatus:200,retryable:false},{wireCode:"invalidRequest",envelope:"http_envelope",httpStatus:400,retryable:false},{wireCode:"invalid_client",envelope:"oauth_error",httpStatus:401,retryable:false},{wireCode:"invalid_client_metadata",envelope:"oauth_error",httpStatus:400,retryable:false},{wireCode:"invalid_grant",envelope:"oauth_error",httpStatus:400,retryable:false},{wireCode:"invalid_redirect_uri",envelope:"oauth_error",httpStatus:400,retryable:false},{wireCode:"invalid_request",envelope:"oauth_error",httpStatus:400,retryable:false},{wireCode:"invalid_scope",envelope:"oauth_error",httpStatus:400,retryable:false},{wireCode:"invalid_target",envelope:"oauth_error",httpStatus:400,retryable:false},{wireCode:"item_id_invalid",envelope:"http_envelope",httpStatus:422,retryable:false},{wireCode:"linked_account_read_only",envelope:"http_envelope",httpStatus:409,retryable:false},{wireCode:"mcp_connection_not_found",envelope:"http_envelope",httpStatus:404,retryable:false},{wireCode:"mcp_request_conflict",envelope:"http_envelope",httpStatus:409,retryable:false},{wireCode:"mcp_request_gone",envelope:"http_envelope",httpStatus:410,retryable:false},{wireCode:"mcp_request_not_found",envelope:"http_envelope",httpStatus:404,retryable:false},{wireCode:"not_found",envelope:"sse_frame",httpStatus:200,retryable:false},{wireCode:"not_found",envelope:"http_envelope",httpStatus:404,retryable:false},{wireCode:"open_url_not_allowed",envelope:"http_envelope",httpStatus:422,retryable:false},{wireCode:"partner_visit_link_conflict",envelope:"http_envelope",httpStatus:409,retryable:false},{wireCode:"partner_visit_owner_only",envelope:"http_envelope",httpStatus:403,retryable:false},{wireCode:"partner_visit_pet_already_mapped",envelope:"http_envelope",httpStatus:409,retryable:false},{wireCode:"payload_too_large",envelope:"http_envelope",httpStatus:413,retryable:false},{wireCode:"petRefInUse",envelope:"http_envelope",httpStatus:409,retryable:false},{wireCode:"pet_health_list_removals_unconfirmed",envelope:"http_envelope",httpStatus:422,retryable:false},{wireCode:"pet_health_species_unsupported",envelope:"http_envelope",httpStatus:422,retryable:false},{wireCode:"pet_not_registered",envelope:"http_envelope",httpStatus:404,retryable:false},{wireCode:"provider_unsupported",envelope:"http_envelope",httpStatus:422,retryable:false},{wireCode:"rateLimited",envelope:"http_envelope",httpStatus:429,retryable:true},{wireCode:"read_target_invalid",envelope:"http_envelope",httpStatus:422,retryable:false},{wireCode:"record_species_unsupported",envelope:"http_envelope",httpStatus:422,retryable:false},{wireCode:"record_subject_not_found",envelope:"http_envelope",httpStatus:404,retryable:false},{wireCode:"record_upload_invalid",envelope:"http_envelope",httpStatus:400,retryable:false},{wireCode:"records_consent_required",envelope:"http_envelope",httpStatus:409,retryable:false},{wireCode:"restricted_key",envelope:"http_envelope",httpStatus:403,retryable:false},{wireCode:"sandbox_only",envelope:"http_envelope",httpStatus:403,retryable:false},{wireCode:"session_required",envelope:"http_envelope",httpStatus:403,retryable:false},{wireCode:"session_revoked",envelope:"http_envelope",httpStatus:401,retryable:false},{wireCode:"share_limit_reached",envelope:"http_envelope",httpStatus:429,retryable:false},{wireCode:"slow_down",envelope:"oauth_error",httpStatus:429,retryable:true},{wireCode:"species_unsupported",envelope:"http_envelope",httpStatus:422,retryable:false},{wireCode:"subscription_keys_invalid",envelope:"http_envelope",httpStatus:422,retryable:false},{wireCode:"tenant_filter_invalid",envelope:"http_envelope",httpStatus:400,retryable:false},{wireCode:"tenant_has_no_capabilities",envelope:"http_envelope",httpStatus:409,retryable:false},{wireCode:"tenant_resource_not_found",envelope:"http_envelope",httpStatus:404,retryable:false},{wireCode:"tenant_surface_not_enabled",envelope:"http_envelope",httpStatus:409,retryable:false},{wireCode:"ticket_not_resolved",envelope:"http_envelope",httpStatus:409,retryable:false},{wireCode:"tickets_disabled",envelope:"http_envelope",httpStatus:404,retryable:false},{wireCode:"timeout",envelope:"sse_frame",httpStatus:200,retryable:true},{wireCode:"timezone_invalid",envelope:"http_envelope",httpStatus:422,retryable:false},{wireCode:"token_invalid",envelope:"http_envelope",httpStatus:422,retryable:false},{wireCode:"unavailable",envelope:"sse_frame",httpStatus:200,retryable:true},{wireCode:"unavailable",envelope:"http_envelope",httpStatus:503,retryable:true},{wireCode:"unrestrictedKeyRequired",envelope:"http_envelope",httpStatus:403,retryable:false},{wireCode:"unsupported_grant_type",envelope:"oauth_error",httpStatus:400,retryable:false},{wireCode:"unsupported_response_type",envelope:"oauth_error",httpStatus:302,retryable:false},{wireCode:"user_ref_invalid",envelope:"http_envelope",httpStatus:400,retryable:false},{wireCode:"verify_mint_rate_limited",envelope:"http_envelope",httpStatus:429,retryable:true},{wireCode:"verify_mint_refused",envelope:"http_envelope",httpStatus:403,retryable:false},{wireCode:"verify_mint_unavailable",envelope:"http_envelope",httpStatus:503,retryable:true},{wireCode:"verify_user_ref_invalid",envelope:"http_envelope",httpStatus:422,retryable:false},{wireCode:"web_push_unavailable",envelope:"http_envelope",httpStatus:503,retryable:true},{wireCode:"webhook_endpoint_update_empty",envelope:"http_envelope",httpStatus:400,retryable:false},{wireCode:"webhook_endpoint_update_invalid",envelope:"http_envelope",httpStatus:400,retryable:false},{wireCode:"webhook_url_rejected",envelope:"http_envelope",httpStatus:400,retryable:false}],_=/* @__PURE__ */Object.freeze(F.map(e=>/* @__PURE__ */Object.freeze(e)));/* @__PURE__ */Object.freeze(_.map(e=>e.wireCode));var O=/* @__PURE__ */Object.freeze({ValidationException:"validationFailed",AuthorizationException:"authRejected",PaymentRequiredException:"paymentRequired",AccessDeniedException:"accessDenied",ResourceNotFoundException:"resourceNotFound",ConflictException:"conflict",ThrottlingException:"rateLimited",InternalFailureException:"internalError",NotImplementedException:"notImplemented",ServiceUnavailableException:"serviceUnavailable",MethodNotAllowedException:"validationFailed",authExpired:"authExpired",unavailable:"serviceUnavailable",session_required:"sessionRequired",session_revoked:"authExpired",anonTokenInvalid:"authRejected",accessDenied:"accessDenied",invalidRequest:"sdkUpdateRequired",authRejected:"authRejected",rateLimited:"rateLimited",insufficientCapability:"accessDenied",unrestrictedKeyRequired:"accessDenied",user_ref_invalid:"validationFailed",event_cursor_invalid:"validationFailed",event_filter_invalid:"validationFailed",event_payload_invalid:"validationFailed",event_type_unknown:"validationFailed",idempotency_key_invalid:"validationFailed",idempotency_key_required:"validationFailed",idempotency_key_reused:"idempotencyConflict",payload_too_large:"validationFailed",webhook_url_rejected:"validationFailed",webhook_endpoint_update_empty:"validationFailed",webhook_endpoint_update_invalid:"validationFailed",event_type_not_available:"conflict",record_subject_not_found:"resourceNotFound",records_consent_required:"conflict",record_species_unsupported:"validationFailed",record_upload_invalid:"validationFailed",FILE_TOO_LARGE:"validationFailed",INVALID_CONTENT_TYPE:"validationFailed",attachment_unreadable:"validationFailed",provider_unsupported:"validationFailed",token_invalid:"validationFailed",device_cipher_unavailable:"serviceUnavailable",email_invalid:"validationFailed",consent_required:"validationFailed",consent_invalid:"validationFailed",consent_scope_wrong_route:"validationFailed",IDEMPOTENCY_KEY_IN_FLIGHT:"idempotencyInFlight",IDEMPOTENCY_KEY_REUSED_DIFFERENT_REQUEST:"idempotencyConflict",DAILY_QUOTA_EXCEEDED:"quotaExceeded",TIER_UPGRADE_REQUIRED:"paymentRequired",not_found:"conversationNotFound",timeout:"streamTimeout",internal_error:"internalError",invalid_request:"validationFailed",invalid_client:"authRejected",invalid_grant:"authRejected",unsupported_grant_type:"validationFailed",invalid_scope:"validationFailed",invalid_target:"validationFailed",invalid_redirect_uri:"validationFailed",invalid_client_metadata:"validationFailed",unsupported_response_type:"validationFailed",access_denied:"accessDenied",slow_down:"rateLimited",mcp_request_not_found:"resourceNotFound",mcp_request_gone:"resourceNotFound",mcp_connection_not_found:"resourceNotFound",mcp_request_conflict:"conflict",sandbox_only:"accessDenied",tenant_has_no_capabilities:"conflict",verify_mint_refused:"accessDenied",verify_mint_rate_limited:"rateLimited",verify_mint_unavailable:"serviceUnavailable",verify_user_ref_invalid:"validationFailed",insufficient_scope:"accessDenied",tenant_filter_invalid:"validationFailed",tenant_resource_not_found:"resourceNotFound",tenant_surface_not_enabled:"conflict",pet_health_species_unsupported:"validationFailed",pet_health_list_removals_unconfirmed:"validationFailed",petRefInUse:"conflict",share_limit_reached:"conflict",pet_not_registered:"resourceNotFound",species_unsupported:"validationFailed",partner_visit_owner_only:"accessDenied",partner_visit_link_conflict:"conflict",partner_visit_pet_already_mapped:"conflict",linked_account_read_only:"conflict",catalog_empty_refused:"conflict",catalog_shrink_refused:"conflict",endpoint_not_allowed:"validationFailed",event_id_invalid:"validationFailed",inbox_cursor_invalid:"validationFailed",item_id_invalid:"validationFailed",open_url_not_allowed:"validationFailed",read_target_invalid:"validationFailed",subscription_keys_invalid:"validationFailed",web_push_unavailable:"serviceUnavailable",anchor_not_found:"resourceNotFound",anchor_ref_invalid:"validationFailed",before_invalid:"validationFailed",bundle_mismatch:"validationFailed",bundle_not_uploaded:"validationFailed",bundles_unavailable:"serviceUnavailable",environment_mismatch:"validationFailed",restricted_key:"accessDenied",ticket_not_resolved:"conflict",tickets_disabled:"resourceNotFound",timezone_invalid:"validationFailed"}),E=/* @__PURE__ */Object.freeze(_.map(e=>/* @__PURE__ */Object.freeze({wireCode:e.wireCode,envelope:e.envelope,retryable:e.retryable,normalized:O[e.wireCode]}))),P=new Map(E.map(e=>[e.envelope+e.wireCode.toUpperCase(),e])),L=/* @__PURE__ */Object.freeze(["http_envelope",...[...new Set(E.map(e=>e.envelope))].filter(e=>e!=="http_envelope").sort()]);function contractErrorFor(e,t){if(typeof e!="string")return;let i=e.trim().toUpperCase();if(i.length!==0)for(let e of[t??"http_envelope",...L]){let t=P.get(e+i);if(t)return t}}var A=/* @__PURE__ */Object.freeze({authExpired:"authentication",authRejected:"authentication",sessionRequired:"authentication",identitySignatureRequired:"authentication",accessDenied:"authorization",paymentRequired:"entitlement",quotaExceeded:"rateLimit",rateLimited:"rateLimit",validationFailed:"invalidRequest",sdkUpdateRequired:"invalidRequest",runtimeDisposed:"invalidRequest",conversationNotFound:"notFound",petNotFound:"notFound",resourceNotFound:"notFound",conflict:"conflict",idempotencyConflict:"conflict",idempotencyInFlight:"conflict",streamTimeout:"connection",streamIncomplete:"connection",upstreamLlmTimeout:"connection",serviceUnavailable:"connection",internalError:"server",notImplemented:"server",mediaUploadFailed:"media",moderationBlocked:"policy",unknown:"unknown"});function categoryFor(e){return A[e]}function fromWire(e){let t=contractErrorFor(e);if(t)return t.normalized;let i=(e??"").trim().toUpperCase(),r=i.replace(/[^A-Z0-9]/g,"");if(r==="AUTHREJECTED")return"authRejected";if(i.startsWith("AUTH"))return"authExpired";switch(r){case"DAILYQUOTAEXCEEDED":case"QUOTAEXCEEDED":return"quotaExceeded";case"RATELIMITED":case"TOOMANYREQUESTS":case"TELEVETRATELIMITED":return"rateLimited";case"IDEMPOTENCYKEYCONFLICT":case"IDEMPOTENCYCONFLICT":return"idempotencyConflict";case"ACCESSDENIED":case"FORBIDDEN":return"accessDenied";case"IDENTITYSIGNATUREREQUIRED":return"identitySignatureRequired";case"FREECAPREACHED":return"paymentRequired";case"RUNTIMEDISPOSED":return"runtimeDisposed";case"NOTFOUND":case"CONVERSATIONNOTFOUND":return"conversationNotFound";case"PETNOTFOUND":return"petNotFound";case"TIMEOUT":case"STREAMTIMEOUT":return"streamTimeout";case"MEDIAUPLOADFAILED":case"UNRECOGNIZEDVIDEOFORMAT":case"FILETOOSMALL":return"mediaUploadFailed";case"MODERATIONBLOCKED":return"moderationBlocked";case"UPSTREAMLLMTIMEOUT":return"upstreamLlmTimeout";case"INTERNALERROR":case"INTERNALSERVERERROR":return"internalError";case"STREAMINCOMPLETE":case"CHATSTREAMINCOMPLETE":return"streamIncomplete";case"INVALIDANALYSISTYPE":case"INVALIDUPLOADPURPOSE":return"unknown";default:return"unknown"}}var B=/* @__PURE__ */new Set(["streamTimeout","rateLimited","internalError","upstreamLlmTimeout","streamIncomplete"]);function isAutoRetryable(e){return B.has(e)}var R=/* @__PURE__ */new Set(["serviceUnavailable","conflict","idempotencyInFlight"]);function isRetryableCode(e){return isAutoRetryable(e)||R.has(e)}var V=500,$=8e3,W=4;function backoffDelayMs(e,t=Math.random){let i=Math.max(0,e),r=Math.min(V*2**i,$);return Math.floor(t()*r)}var M="This feature isn't available on your account right now.",N="Something in that request was not right. Check the details and try again.",G=/* @__PURE__ */Object.freeze({authExpired:"Please sign in again to continue.",authRejected:"Please sign in again to continue.",sessionRequired:"This app needs to be updated to keep using Everfur.",accessDenied:M,paymentRequired:"This is part of a paid plan.",quotaExceeded:"You have used today's messages. This resets tomorrow.",rateLimited:"You are sending messages quickly. Try again in a few seconds.",validationFailed:N,sdkUpdateRequired:"This app needs to be updated to keep using Everfur.",conflict:"That is already running. Wait for it to finish, then try again.",idempotencyConflict:"That message was already delivered.",idempotencyInFlight:"That is still processing. Give it a moment.",conversationNotFound:"This conversation is no longer available.",petNotFound:"We could not find that pet. Please pick a pet and try again.",resourceNotFound:"We could not find that.",streamTimeout:"The response timed out. Tap retry to try again.",mediaUploadFailed:"We could not upload that photo. Please attach it again.",moderationBlocked:"This request cannot be answered here.",upstreamLlmTimeout:"The response timed out. Tap retry to try again.",internalError:"We hit a snag on our end. Please try again.",notImplemented:"That is not available yet.",serviceUnavailable:"That service is briefly unavailable. Try again shortly.",streamIncomplete:"The connection dropped mid-answer. Tap retry to continue.",identitySignatureRequired:M,runtimeDisposed:N,unknown:"Something went wrong. Please try again."}),q="This session has ended. Please sign in again.",U="linked_account_read_only";function Y(e,t,i){return e==="conflict"&&i===U?M:(e==="authRejected"||e==="authExpired")&&typeof t=="string"&&t.trim().toLowerCase()==="session_revoked"?q:userFacingError(e)}function userFacingError(e){return G[e]}function X(e,t,i){Object.defineProperty(e,t,{value:i,enumerable:false,writable:false,configurable:false})}var K=/^[a-z][a-z0-9_]{0,63}$/;function makeEverfurError(e,t){let i=contractErrorFor(t?.wireCode,t?.wireEnvelope),r=e==="conflict"&&t?.reasonCode===U,n={code:e,category:categoryFor(e),retryable:t?.retryable??(r?false:isRetryableCode(e)),displayMessage:Y(e,t?.wireCode,r?U:null)};t?.httpStatus!==void 0&&(n.httpStatus=t.httpStatus),t?.requestId&&(n.requestId=t.requestId),typeof t?.reasonCode=="string"&&K.test(t.reasonCode)&&(n.reasonCode=t.reasonCode);let l=t?.retryAfterSeconds;if(typeof l=="number"&&Number.isFinite(l)&&l>=0&&(n.retryAfterSeconds=Math.round(l)),i);return t?.wireMessage&&X(n,"wireMessage",t.wireMessage),t?.raw!==void 0&&t.raw!==null&&X(n,"raw",t.raw),/* @__PURE__ */Object.freeze(n)}function Q(e){return e!=null&&(e.httpStatus===404||e.category==="notFound")}function J(e){return e.code!=="conversationNotFound"?e:makeEverfurError("resourceNotFound",{retryable:false,...e.httpStatus===void 0?{}:{httpStatus:e.httpStatus},...e.requestId===void 0?{}:{requestId:e.requestId},...e.reasonCode===void 0?{}:{reasonCode:e.reasonCode},...e.wireMessage===void 0?{}:{wireMessage:e.wireMessage},...e.raw===void 0?{}:{raw:e.raw}})}function Z(e){return e.ok?e:err(J(e.error))}function ee(e){return{send:async(...t)=>Z(await e.send(...t)),authorize:t=>e.authorize(t),stream:(t,i,r)=>e.stream(t,i,r)}}var te=/* @__PURE__ */Object.freeze({phase:"idle",petRef:null,plan:null,pending:/* @__PURE__ */Object.freeze([]),itemErrors:/* @__PURE__ */Object.freeze({}),error:null});function ie(e,t,i){let r=e.items.map(e=>e.productId===t?/* @__PURE__ */Object.freeze({...e,inPlan:i}):e);/* @__PURE__ */
|
|
6
|
-
return Object.freeze({...e,items:/* @__PURE__ */Object.freeze(r)})}var re=class{constructor(e){this.repository=e;this.snapshot=te;this.listeners=/* @__PURE__ */new Set;this.generation=0;this.writes=0;this.revalidations=0;this.refreshAfterWrites=false;this.disposed=false;this.subscribe=e=>(this.listeners.add(e),()=>{this.listeners.delete(e)});this.getSnapshot=()=>this.snapshot}set(e){if(!this.disposed){this.snapshot=/* @__PURE__ */Object.freeze({...this.snapshot,...e});for(let e of this.listeners)e()}}async load(petRef){let e=++this.generation;if(this.refreshAfterWrites=false,petRef===null){this.set({...te});return}let t=this.snapshot.petRef===petRef;this.set({phase:"loading",petRef:petRef,plan:t?this.snapshot.plan:null,pending:/* @__PURE__ */Object.freeze([]),itemErrors:t?this.snapshot.itemErrors:/* @__PURE__ */Object.freeze({}),error:null});let i=await this.repository.read(petRef);if(e===this.generation){if(!i.ok){this.set({phase:"failed",error:i.error});return}this.set({phase:"ready",plan:i.value,error:null,itemErrors:/* @__PURE__ */Object.freeze({})})}}async revalidate(){let{phase:e,petRef:petRef,pending:t}=this.snapshot;if(e!=="ready"||petRef===null||t.length>0)return;let i=this.generation,r=this.writes,n=++this.revalidations,l=await this.repository.read(petRef);i!==this.generation||r!==this.writes||n!==this.revalidations||this.snapshot.pending.length>0||this.snapshot.petRef!==petRef||l.ok&&this.set({plan:l.value,itemErrors:/* @__PURE__ */Object.freeze({})})}async refresh(){let{phase:e,petRef:petRef,pending:t}=this.snapshot;if(!(petRef===null||e==="idle")){if(e!=="ready")return this.load(petRef);if(t.length>0){this.refreshAfterWrites=true;return}return this.revalidate()}}settleWrite(){!this.refreshAfterWrites||this.snapshot.pending.length>0||(this.refreshAfterWrites=false,this.revalidate())}async setInPlan(e,t){let{plan:i,petRef:petRef,pending:r}=this.snapshot;if(this.snapshot.phase!=="ready"||i===null||petRef===null||r.includes(e))return false;let n=i.items.find(t=>t.productId===e);if(n===void 0||n.inPlan===t)return false;this.writes+=1;let l=this.generation,o=Object.fromEntries(Object.entries(this.snapshot.itemErrors).filter(([t])=>t!==e));this.set({plan:ie(i,e,t),pending:/* @__PURE__ */Object.freeze([...r,e]),itemErrors:/* @__PURE__ */Object.freeze(o)});let a=t?await this.repository.addItem(petRef,e):await this.repository.removeItem(petRef,e);if(l!==this.generation)return a.ok;let s=this.snapshot.plan??i,c=/* @__PURE__ */Object.freeze(this.snapshot.pending.filter(t=>t!==e));if(!a.ok)return this.set({plan:ie(s,e,n.inPlan),pending:c,itemErrors:/* @__PURE__ */Object.freeze({...this.snapshot.itemErrors,[e]:a.error})}),this.settleWrite(),false;let d=a.value??s;for(let e of c){let t=s.items.find(t=>t.productId===e);t!==void 0&&(d=ie(d,e,t.inPlan))}return this.set({plan:d,pending:c}),this.settleWrite(),true}dispose(){this.generation+=1,this.disposed=true,this.listeners.clear()}};async function ne(e,petRef,t){if(e.listOneBoxOrderPage!==void 0)return e.listOneBoxOrderPage(petRef,{limit:20,...{}});if(e.listOneBoxOrders===void 0)return{ok:true,value:{orders:[],nextCursor:null}};let i=await e.listOneBoxOrders(petRef);return i.ok?{ok:true,value:{orders:i.value,nextCursor:null}}:i}function errorFrame(e){/* @__PURE__ */
|
|
7
|
-
return Object.freeze({
|
|
4
|
+
return Object.freeze({ok:false,error:e})}var a=class _EverfurConfigError extends Error{constructor(e,t){super(t),this.name="EverfurConfigError",this.kind=e,Object.setPrototypeOf(this,_EverfurConfigError.prototype)}};var s=/* @__PURE__ */Symbol.for("@everfur/sdk#EverfurContext@v1"),c=globalThis,d=c[s]??(c[s]=e.createContext(null));d.displayName??="EverfurContext";function u(){let t=e.useContext(d);if(t===null)throw new a("not-initialized","Everfur hooks must be called inside <EverfurProvider>. Wrap your tree once, high.");return t}var p=()=>()=>{},h=()=>null;function g(t,i){return e.useSyncExternalStore(i?.subscribe??p,i?.get??h,i?.get??h)??t}var f=/* @__PURE__ */Object.freeze(["ask","vet","plan","records"]),m=/* @__PURE__ */Object.freeze({chatAnswerStyle:"cards",chatHistoryStyle:"sheet",chatTopCard:"focus",chatFollowUpCount:3,chatFollowUpsExcludeTelevet:false,chatComposerMic:true,chatComposerUpload:true,safetyDisclaimerPlacement:"composer",healthPlanLayout:"focus_plan",recordsTopRiskLine:true,recordsClearResultsFilter:true,chatComposerStyle:"compact",chatComposerPlaceholder:"pet_name",chatHistoryBar:"scroll",chatGeneralBanner:true,chatSendButton:"always_dark",chatTextingAsk:true,serverSlots:false,shellTabs:null,shellHeader:"classic"}),b=/* @__PURE__ */Object.freeze({chatAnswerStyle:"chat_answer_style",chatHistoryStyle:"chat_history_style",chatTopCard:"chat_top_card",chatFollowUpCount:"chat_follow_up_count",chatFollowUpsExcludeTelevet:"chat_follow_ups_exclude_televet",chatComposerMic:"chat_composer_mic",chatComposerUpload:"chat_composer_upload",safetyDisclaimerPlacement:"safety_disclaimer_placement",healthPlanLayout:"health_plan_layout",recordsTopRiskLine:"records_top_risk_line",recordsClearResultsFilter:"records_clear_results_filter",chatComposerStyle:"chat_composer_style",chatComposerPlaceholder:"chat_composer_placeholder",chatHistoryBar:"chat_history_bar",chatGeneralBanner:"chat_general_banner",chatSendButton:"chat_send_button",chatTextingAsk:"chat_texting_ask",serverSlots:"server_slots",shellTabs:"shell_tabs",shellHeader:"shell_header"}),w=Object.keys(b),y="presentation",x="presentation.";var v={chatAnswerStyle:["bubbles","cards"],chatHistoryStyle:["drawer","sheet"],chatTopCard:["none","focus"],safetyDisclaimerPlacement:["composer","answer_footer","none"],healthPlanLayout:["standard","focus_plan"],chatComposerStyle:["standard","compact"],chatComposerPlaceholder:["generic","pet_name"],chatHistoryBar:["pinned","scroll"],chatSendButton:["always_dark","dim_when_empty"],shellHeader:["classic","tabs_bar"]};function k(e){if(!Array.isArray(e)||e.length===0)return;let t=/* @__PURE__ */new Set;for(let i of e){if(typeof i!="string"||!f.includes(i)||t.has(i))return;t.add(i)}/* @__PURE__ */
|
|
5
|
+
return Object.freeze([...e])}var T=/* @__PURE__ */new Set(["chatFollowUpsExcludeTelevet","chatComposerMic","chatComposerUpload","recordsTopRiskLine","recordsClearResultsFilter","chatGeneralBanner","chatTextingAsk","serverSlots"]);function j(e,t){if(t==null)return;if(e==="shellTabs")return k(t);let i=v[e];return i!==void 0?typeof t=="string"&&i.includes(t)?t:void 0:T.has(e)?typeof t=="boolean"?t:void 0:typeof t=="number"&&Number.isInteger(t)&&t>=0&&t<=3?t:void 0}function parsePresentation(e){if(e===null||typeof e!="object"||Array.isArray(e))return null;let t=e,i={};for(let e of w){let r=b[e],n=Object.prototype.hasOwnProperty.call(t,r)?t[r]:t[e],l=j(e,n);l!==void 0&&(i[e]=l)}return Object.keys(i).length===0?null:/* @__PURE__ */Object.freeze(i)}function isPresentationFieldLocked(e,t){if(t==null)return false;let i=`${x}${b[e]}`;for(let e of t)if(e===y||e===i)return true;return false}function resolvePresentation(e){let t=parsePresentation(e?.server??null)??{},{safetyDisclaimerPlacement:i,...r}=t,n=i==="none"||i===void 0?r:{...r,safetyDisclaimerPlacement:i},l=parsePresentation(e?.client??null)??{},o=e?.locked?[...e.locked]:null,a={};for(let e of w){let t=n[e],i=isPresentationFieldLocked(e,o)?void 0:l[e];a[e]=i??t??m[e]}/* @__PURE__ */
|
|
6
|
+
return Object.freeze(a)}var S=/* @__PURE__ */Object.freeze({branding:null}),I=/* @__PURE__ */Object.freeze({subscribe:()=>()=>{},getSnapshot:()=>S});function z(e){return e?Object.keys(e).sort().map(t=>`${t}=${String(e[t])}`).join("&"):""}function useEverfurPresentation(e){return D(e).presentation}function D(t){let{runtime:i}=u(),r=i?.entitlements??I,n=e.useCallback(()=>r.getSnapshot()?.branding??null,[r]),l=g(e.useSyncExternalStore(r.subscribe,n,n),i?.sdkConfigHost?.branding),o=z(t);return e.useMemo(()=>{let e=l?.lockedFields??null;return{presentation:resolvePresentation({server:l?.presentation??null,locked:e,client:t??null}),isLocked:t=>isPresentationFieldLocked(t,e)}},[l,o])}var C=/* @__PURE__ */Symbol.for("@everfur/sdk#SlotSwitchContext@v1"),H=globalThis,F=H[C]??(H[C]=e.createContext(null));F.displayName??="EverfurSlotSwitch";function _(t){let i=e.useContext(F),r=useEverfurPresentation(t===void 0?void 0:{serverSlots:t}).serverSlots;return t!==void 0||i===null?r:i}var O=[{wireCode:"AccessDeniedException",envelope:"http_envelope",httpStatus:403,retryable:false},{wireCode:"AuthorizationException",envelope:"http_envelope",httpStatus:401,retryable:false},{wireCode:"ConflictException",envelope:"http_envelope",httpStatus:409,retryable:true},{wireCode:"DAILY_QUOTA_EXCEEDED",envelope:"http_envelope",httpStatus:429,retryable:true},{wireCode:"FILE_TOO_LARGE",envelope:"http_envelope",httpStatus:400,retryable:false},{wireCode:"IDEMPOTENCY_KEY_IN_FLIGHT",envelope:"http_envelope",httpStatus:409,retryable:true},{wireCode:"IDEMPOTENCY_KEY_REUSED_DIFFERENT_REQUEST",envelope:"http_envelope",httpStatus:409,retryable:false},{wireCode:"INVALID_CONTENT_TYPE",envelope:"http_envelope",httpStatus:400,retryable:false},{wireCode:"InternalFailureException",envelope:"http_envelope",httpStatus:500,retryable:true},{wireCode:"MethodNotAllowedException",envelope:"http_envelope",httpStatus:405,retryable:false},{wireCode:"NotImplementedException",envelope:"http_envelope",httpStatus:501,retryable:false},{wireCode:"PaymentRequiredException",envelope:"http_envelope",httpStatus:402,retryable:false},{wireCode:"ResourceNotFoundException",envelope:"http_envelope",httpStatus:404,retryable:false},{wireCode:"ServiceUnavailableException",envelope:"http_envelope",httpStatus:503,retryable:true},{wireCode:"TIER_UPGRADE_REQUIRED",envelope:"http_envelope",httpStatus:402,retryable:false},{wireCode:"ThrottlingException",envelope:"http_envelope",httpStatus:429,retryable:true},{wireCode:"ValidationException",envelope:"http_envelope",httpStatus:400,retryable:false},{wireCode:"accessDenied",envelope:"http_envelope",httpStatus:403,retryable:false},{wireCode:"access_denied",envelope:"oauth_error",httpStatus:302,retryable:false},{wireCode:"anchor_not_found",envelope:"http_envelope",httpStatus:404,retryable:false},{wireCode:"anchor_ref_invalid",envelope:"http_envelope",httpStatus:422,retryable:false},{wireCode:"anonTokenInvalid",envelope:"http_envelope",httpStatus:401,retryable:false},{wireCode:"attachment_unreadable",envelope:"http_envelope",httpStatus:400,retryable:false},{wireCode:"authExpired",envelope:"http_envelope",httpStatus:401,retryable:true},{wireCode:"authRejected",envelope:"http_envelope",httpStatus:401,retryable:false},{wireCode:"before_invalid",envelope:"http_envelope",httpStatus:422,retryable:false},{wireCode:"bundle_mismatch",envelope:"http_envelope",httpStatus:422,retryable:false},{wireCode:"bundle_not_uploaded",envelope:"http_envelope",httpStatus:422,retryable:false},{wireCode:"bundles_unavailable",envelope:"http_envelope",httpStatus:503,retryable:true},{wireCode:"catalog_empty_refused",envelope:"http_envelope",httpStatus:409,retryable:false},{wireCode:"catalog_shrink_refused",envelope:"http_envelope",httpStatus:409,retryable:false},{wireCode:"consent_invalid",envelope:"http_envelope",httpStatus:422,retryable:false},{wireCode:"consent_required",envelope:"http_envelope",httpStatus:422,retryable:false},{wireCode:"consent_scope_wrong_route",envelope:"http_envelope",httpStatus:400,retryable:false},{wireCode:"device_cipher_unavailable",envelope:"http_envelope",httpStatus:503,retryable:true},{wireCode:"email_invalid",envelope:"http_envelope",httpStatus:422,retryable:false},{wireCode:"endpoint_not_allowed",envelope:"http_envelope",httpStatus:422,retryable:false},{wireCode:"environment_mismatch",envelope:"http_envelope",httpStatus:422,retryable:false},{wireCode:"event_cursor_invalid",envelope:"http_envelope",httpStatus:400,retryable:false},{wireCode:"event_filter_invalid",envelope:"http_envelope",httpStatus:400,retryable:false},{wireCode:"event_id_invalid",envelope:"http_envelope",httpStatus:422,retryable:false},{wireCode:"event_payload_invalid",envelope:"http_envelope",httpStatus:400,retryable:false},{wireCode:"event_type_not_available",envelope:"http_envelope",httpStatus:400,retryable:false},{wireCode:"event_type_unknown",envelope:"http_envelope",httpStatus:400,retryable:false},{wireCode:"idempotency_key_invalid",envelope:"http_envelope",httpStatus:400,retryable:false},{wireCode:"idempotency_key_required",envelope:"http_envelope",httpStatus:400,retryable:false},{wireCode:"idempotency_key_reused",envelope:"http_envelope",httpStatus:409,retryable:false},{wireCode:"inbox_cursor_invalid",envelope:"http_envelope",httpStatus:422,retryable:false},{wireCode:"insufficientCapability",envelope:"http_envelope",httpStatus:403,retryable:false},{wireCode:"insufficient_scope",envelope:"http_envelope",httpStatus:403,retryable:false},{wireCode:"internal_error",envelope:"sse_frame",httpStatus:200,retryable:false},{wireCode:"invalidRequest",envelope:"http_envelope",httpStatus:400,retryable:false},{wireCode:"invalid_client",envelope:"oauth_error",httpStatus:401,retryable:false},{wireCode:"invalid_client_metadata",envelope:"oauth_error",httpStatus:400,retryable:false},{wireCode:"invalid_grant",envelope:"oauth_error",httpStatus:400,retryable:false},{wireCode:"invalid_redirect_uri",envelope:"oauth_error",httpStatus:400,retryable:false},{wireCode:"invalid_request",envelope:"oauth_error",httpStatus:400,retryable:false},{wireCode:"invalid_scope",envelope:"oauth_error",httpStatus:400,retryable:false},{wireCode:"invalid_target",envelope:"oauth_error",httpStatus:400,retryable:false},{wireCode:"item_id_invalid",envelope:"http_envelope",httpStatus:422,retryable:false},{wireCode:"linked_account_read_only",envelope:"http_envelope",httpStatus:409,retryable:false},{wireCode:"mcp_connection_not_found",envelope:"http_envelope",httpStatus:404,retryable:false},{wireCode:"mcp_request_conflict",envelope:"http_envelope",httpStatus:409,retryable:false},{wireCode:"mcp_request_gone",envelope:"http_envelope",httpStatus:410,retryable:false},{wireCode:"mcp_request_not_found",envelope:"http_envelope",httpStatus:404,retryable:false},{wireCode:"not_found",envelope:"sse_frame",httpStatus:200,retryable:false},{wireCode:"not_found",envelope:"http_envelope",httpStatus:404,retryable:false},{wireCode:"open_url_not_allowed",envelope:"http_envelope",httpStatus:422,retryable:false},{wireCode:"partner_visit_link_conflict",envelope:"http_envelope",httpStatus:409,retryable:false},{wireCode:"partner_visit_owner_only",envelope:"http_envelope",httpStatus:403,retryable:false},{wireCode:"partner_visit_pet_already_mapped",envelope:"http_envelope",httpStatus:409,retryable:false},{wireCode:"payload_too_large",envelope:"http_envelope",httpStatus:413,retryable:false},{wireCode:"petRefInUse",envelope:"http_envelope",httpStatus:409,retryable:false},{wireCode:"pet_health_list_removals_unconfirmed",envelope:"http_envelope",httpStatus:422,retryable:false},{wireCode:"pet_health_species_unsupported",envelope:"http_envelope",httpStatus:422,retryable:false},{wireCode:"pet_not_registered",envelope:"http_envelope",httpStatus:404,retryable:false},{wireCode:"provider_unsupported",envelope:"http_envelope",httpStatus:422,retryable:false},{wireCode:"rateLimited",envelope:"http_envelope",httpStatus:429,retryable:true},{wireCode:"read_target_invalid",envelope:"http_envelope",httpStatus:422,retryable:false},{wireCode:"record_species_unsupported",envelope:"http_envelope",httpStatus:422,retryable:false},{wireCode:"record_subject_not_found",envelope:"http_envelope",httpStatus:404,retryable:false},{wireCode:"record_upload_invalid",envelope:"http_envelope",httpStatus:400,retryable:false},{wireCode:"records_consent_required",envelope:"http_envelope",httpStatus:409,retryable:false},{wireCode:"restricted_key",envelope:"http_envelope",httpStatus:403,retryable:false},{wireCode:"sandbox_only",envelope:"http_envelope",httpStatus:403,retryable:false},{wireCode:"session_required",envelope:"http_envelope",httpStatus:403,retryable:false},{wireCode:"session_revoked",envelope:"http_envelope",httpStatus:401,retryable:false},{wireCode:"share_limit_reached",envelope:"http_envelope",httpStatus:429,retryable:false},{wireCode:"slow_down",envelope:"oauth_error",httpStatus:429,retryable:true},{wireCode:"species_unsupported",envelope:"http_envelope",httpStatus:422,retryable:false},{wireCode:"subscription_keys_invalid",envelope:"http_envelope",httpStatus:422,retryable:false},{wireCode:"tenant_filter_invalid",envelope:"http_envelope",httpStatus:400,retryable:false},{wireCode:"tenant_has_no_capabilities",envelope:"http_envelope",httpStatus:409,retryable:false},{wireCode:"tenant_resource_not_found",envelope:"http_envelope",httpStatus:404,retryable:false},{wireCode:"tenant_surface_not_enabled",envelope:"http_envelope",httpStatus:409,retryable:false},{wireCode:"ticket_not_resolved",envelope:"http_envelope",httpStatus:409,retryable:false},{wireCode:"tickets_disabled",envelope:"http_envelope",httpStatus:404,retryable:false},{wireCode:"timeout",envelope:"sse_frame",httpStatus:200,retryable:true},{wireCode:"timezone_invalid",envelope:"http_envelope",httpStatus:422,retryable:false},{wireCode:"token_invalid",envelope:"http_envelope",httpStatus:422,retryable:false},{wireCode:"unavailable",envelope:"sse_frame",httpStatus:200,retryable:true},{wireCode:"unavailable",envelope:"http_envelope",httpStatus:503,retryable:true},{wireCode:"unrestrictedKeyRequired",envelope:"http_envelope",httpStatus:403,retryable:false},{wireCode:"unsupported_grant_type",envelope:"oauth_error",httpStatus:400,retryable:false},{wireCode:"unsupported_response_type",envelope:"oauth_error",httpStatus:302,retryable:false},{wireCode:"user_ref_invalid",envelope:"http_envelope",httpStatus:400,retryable:false},{wireCode:"verify_mint_rate_limited",envelope:"http_envelope",httpStatus:429,retryable:true},{wireCode:"verify_mint_refused",envelope:"http_envelope",httpStatus:403,retryable:false},{wireCode:"verify_mint_unavailable",envelope:"http_envelope",httpStatus:503,retryable:true},{wireCode:"verify_user_ref_invalid",envelope:"http_envelope",httpStatus:422,retryable:false},{wireCode:"web_push_unavailable",envelope:"http_envelope",httpStatus:503,retryable:true},{wireCode:"webhook_endpoint_update_empty",envelope:"http_envelope",httpStatus:400,retryable:false},{wireCode:"webhook_endpoint_update_invalid",envelope:"http_envelope",httpStatus:400,retryable:false},{wireCode:"webhook_url_rejected",envelope:"http_envelope",httpStatus:400,retryable:false}],E=/* @__PURE__ */Object.freeze(O.map(e=>/* @__PURE__ */Object.freeze(e)));/* @__PURE__ */Object.freeze(E.map(e=>e.wireCode));var P=/* @__PURE__ */Object.freeze({ValidationException:"validationFailed",AuthorizationException:"authRejected",PaymentRequiredException:"paymentRequired",AccessDeniedException:"accessDenied",ResourceNotFoundException:"resourceNotFound",ConflictException:"conflict",ThrottlingException:"rateLimited",InternalFailureException:"internalError",NotImplementedException:"notImplemented",ServiceUnavailableException:"serviceUnavailable",MethodNotAllowedException:"validationFailed",authExpired:"authExpired",unavailable:"serviceUnavailable",session_required:"sessionRequired",session_revoked:"authExpired",anonTokenInvalid:"authRejected",accessDenied:"accessDenied",invalidRequest:"sdkUpdateRequired",authRejected:"authRejected",rateLimited:"rateLimited",insufficientCapability:"accessDenied",unrestrictedKeyRequired:"accessDenied",user_ref_invalid:"validationFailed",event_cursor_invalid:"validationFailed",event_filter_invalid:"validationFailed",event_payload_invalid:"validationFailed",event_type_unknown:"validationFailed",idempotency_key_invalid:"validationFailed",idempotency_key_required:"validationFailed",idempotency_key_reused:"idempotencyConflict",payload_too_large:"validationFailed",webhook_url_rejected:"validationFailed",webhook_endpoint_update_empty:"validationFailed",webhook_endpoint_update_invalid:"validationFailed",event_type_not_available:"conflict",record_subject_not_found:"resourceNotFound",records_consent_required:"conflict",record_species_unsupported:"validationFailed",record_upload_invalid:"validationFailed",FILE_TOO_LARGE:"validationFailed",INVALID_CONTENT_TYPE:"validationFailed",attachment_unreadable:"validationFailed",provider_unsupported:"validationFailed",token_invalid:"validationFailed",device_cipher_unavailable:"serviceUnavailable",email_invalid:"validationFailed",consent_required:"validationFailed",consent_invalid:"validationFailed",consent_scope_wrong_route:"validationFailed",IDEMPOTENCY_KEY_IN_FLIGHT:"idempotencyInFlight",IDEMPOTENCY_KEY_REUSED_DIFFERENT_REQUEST:"idempotencyConflict",DAILY_QUOTA_EXCEEDED:"quotaExceeded",TIER_UPGRADE_REQUIRED:"paymentRequired",not_found:"conversationNotFound",timeout:"streamTimeout",internal_error:"internalError",invalid_request:"validationFailed",invalid_client:"authRejected",invalid_grant:"authRejected",unsupported_grant_type:"validationFailed",invalid_scope:"validationFailed",invalid_target:"validationFailed",invalid_redirect_uri:"validationFailed",invalid_client_metadata:"validationFailed",unsupported_response_type:"validationFailed",access_denied:"accessDenied",slow_down:"rateLimited",mcp_request_not_found:"resourceNotFound",mcp_request_gone:"resourceNotFound",mcp_connection_not_found:"resourceNotFound",mcp_request_conflict:"conflict",sandbox_only:"accessDenied",tenant_has_no_capabilities:"conflict",verify_mint_refused:"accessDenied",verify_mint_rate_limited:"rateLimited",verify_mint_unavailable:"serviceUnavailable",verify_user_ref_invalid:"validationFailed",insufficient_scope:"accessDenied",tenant_filter_invalid:"validationFailed",tenant_resource_not_found:"resourceNotFound",tenant_surface_not_enabled:"conflict",pet_health_species_unsupported:"validationFailed",pet_health_list_removals_unconfirmed:"validationFailed",petRefInUse:"conflict",share_limit_reached:"conflict",pet_not_registered:"resourceNotFound",species_unsupported:"validationFailed",partner_visit_owner_only:"accessDenied",partner_visit_link_conflict:"conflict",partner_visit_pet_already_mapped:"conflict",linked_account_read_only:"conflict",catalog_empty_refused:"conflict",catalog_shrink_refused:"conflict",endpoint_not_allowed:"validationFailed",event_id_invalid:"validationFailed",inbox_cursor_invalid:"validationFailed",item_id_invalid:"validationFailed",open_url_not_allowed:"validationFailed",read_target_invalid:"validationFailed",subscription_keys_invalid:"validationFailed",web_push_unavailable:"serviceUnavailable",anchor_not_found:"resourceNotFound",anchor_ref_invalid:"validationFailed",before_invalid:"validationFailed",bundle_mismatch:"validationFailed",bundle_not_uploaded:"validationFailed",bundles_unavailable:"serviceUnavailable",environment_mismatch:"validationFailed",restricted_key:"accessDenied",ticket_not_resolved:"conflict",tickets_disabled:"resourceNotFound",timezone_invalid:"validationFailed"}),L=/* @__PURE__ */Object.freeze(E.map(e=>/* @__PURE__ */Object.freeze({wireCode:e.wireCode,envelope:e.envelope,retryable:e.retryable,normalized:P[e.wireCode]}))),A=new Map(L.map(e=>[e.envelope+e.wireCode.toUpperCase(),e])),B=/* @__PURE__ */Object.freeze(["http_envelope",...[...new Set(L.map(e=>e.envelope))].filter(e=>e!=="http_envelope").sort()]);function contractErrorFor(e,t){if(typeof e!="string")return;let i=e.trim().toUpperCase();if(i.length!==0)for(let e of[t??"http_envelope",...B]){let t=A.get(e+i);if(t)return t}}var R=/* @__PURE__ */Object.freeze({authExpired:"authentication",authRejected:"authentication",sessionRequired:"authentication",identitySignatureRequired:"authentication",accessDenied:"authorization",paymentRequired:"entitlement",quotaExceeded:"rateLimit",rateLimited:"rateLimit",validationFailed:"invalidRequest",sdkUpdateRequired:"invalidRequest",runtimeDisposed:"invalidRequest",conversationNotFound:"notFound",petNotFound:"notFound",resourceNotFound:"notFound",conflict:"conflict",idempotencyConflict:"conflict",idempotencyInFlight:"conflict",streamTimeout:"connection",streamIncomplete:"connection",upstreamLlmTimeout:"connection",serviceUnavailable:"connection",internalError:"server",notImplemented:"server",mediaUploadFailed:"media",moderationBlocked:"policy",unknown:"unknown"});function categoryFor(e){return R[e]}function fromWire(e){let t=contractErrorFor(e);if(t)return t.normalized;let i=(e??"").trim().toUpperCase(),r=i.replace(/[^A-Z0-9]/g,"");if(r==="AUTHREJECTED")return"authRejected";if(i.startsWith("AUTH"))return"authExpired";switch(r){case"DAILYQUOTAEXCEEDED":case"QUOTAEXCEEDED":return"quotaExceeded";case"RATELIMITED":case"TOOMANYREQUESTS":case"TELEVETRATELIMITED":return"rateLimited";case"IDEMPOTENCYKEYCONFLICT":case"IDEMPOTENCYCONFLICT":return"idempotencyConflict";case"ACCESSDENIED":case"FORBIDDEN":return"accessDenied";case"IDENTITYSIGNATUREREQUIRED":return"identitySignatureRequired";case"FREECAPREACHED":return"paymentRequired";case"RUNTIMEDISPOSED":return"runtimeDisposed";case"NOTFOUND":case"CONVERSATIONNOTFOUND":return"conversationNotFound";case"PETNOTFOUND":return"petNotFound";case"TIMEOUT":case"STREAMTIMEOUT":return"streamTimeout";case"MEDIAUPLOADFAILED":case"UNRECOGNIZEDVIDEOFORMAT":case"FILETOOSMALL":return"mediaUploadFailed";case"MODERATIONBLOCKED":return"moderationBlocked";case"UPSTREAMLLMTIMEOUT":return"upstreamLlmTimeout";case"INTERNALERROR":case"INTERNALSERVERERROR":return"internalError";case"STREAMINCOMPLETE":case"CHATSTREAMINCOMPLETE":return"streamIncomplete";case"INVALIDANALYSISTYPE":case"INVALIDUPLOADPURPOSE":return"unknown";default:return"unknown"}}var V=/* @__PURE__ */new Set(["streamTimeout","rateLimited","internalError","upstreamLlmTimeout","streamIncomplete"]);function isAutoRetryable(e){return V.has(e)}var $=/* @__PURE__ */new Set(["serviceUnavailable","conflict","idempotencyInFlight"]);function isRetryableCode(e){return isAutoRetryable(e)||$.has(e)}var W=500,M=8e3,N=4;function backoffDelayMs(e,t=Math.random){let i=Math.max(0,e),r=Math.min(W*2**i,M);return Math.floor(t()*r)}var G="This feature isn't available on your account right now.",q="Something in that request was not right. Check the details and try again.",U=/* @__PURE__ */Object.freeze({authExpired:"Please sign in again to continue.",authRejected:"Please sign in again to continue.",sessionRequired:"This app needs to be updated to keep using Everfur.",accessDenied:G,paymentRequired:"This is part of a paid plan.",quotaExceeded:"You have used today's messages. This resets tomorrow.",rateLimited:"You are sending messages quickly. Try again in a few seconds.",validationFailed:q,sdkUpdateRequired:"This app needs to be updated to keep using Everfur.",conflict:"That is already running. Wait for it to finish, then try again.",idempotencyConflict:"That message was already delivered.",idempotencyInFlight:"That is still processing. Give it a moment.",conversationNotFound:"This conversation is no longer available.",petNotFound:"We could not find that pet. Please pick a pet and try again.",resourceNotFound:"We could not find that.",streamTimeout:"The response timed out. Tap retry to try again.",mediaUploadFailed:"We could not upload that photo. Please attach it again.",moderationBlocked:"This request cannot be answered here.",upstreamLlmTimeout:"The response timed out. Tap retry to try again.",internalError:"We hit a snag on our end. Please try again.",notImplemented:"That is not available yet.",serviceUnavailable:"That service is briefly unavailable. Try again shortly.",streamIncomplete:"The connection dropped mid-answer. Tap retry to continue.",identitySignatureRequired:G,runtimeDisposed:q,unknown:"Something went wrong. Please try again."}),Y="This session has ended. Please sign in again.",X="linked_account_read_only";function K(e,t,i){return e==="conflict"&&i===X?G:(e==="authRejected"||e==="authExpired")&&typeof t=="string"&&t.trim().toLowerCase()==="session_revoked"?Y:userFacingError(e)}function userFacingError(e){return U[e]}function Q(e,t,i){Object.defineProperty(e,t,{value:i,enumerable:false,writable:false,configurable:false})}var J=/^[a-z][a-z0-9_]{0,63}$/;function makeEverfurError(e,t){let i=contractErrorFor(t?.wireCode,t?.wireEnvelope),r=e==="conflict"&&t?.reasonCode===X,n={code:e,category:categoryFor(e),retryable:t?.retryable??(r?false:isRetryableCode(e)),displayMessage:K(e,t?.wireCode,r?X:null)};t?.httpStatus!==void 0&&(n.httpStatus=t.httpStatus),t?.requestId&&(n.requestId=t.requestId),typeof t?.reasonCode=="string"&&J.test(t.reasonCode)&&(n.reasonCode=t.reasonCode);let l=t?.retryAfterSeconds;if(typeof l=="number"&&Number.isFinite(l)&&l>=0&&(n.retryAfterSeconds=Math.round(l)),i);return t?.wireMessage&&Q(n,"wireMessage",t.wireMessage),t?.raw!==void 0&&t.raw!==null&&Q(n,"raw",t.raw),/* @__PURE__ */Object.freeze(n)}function Z(e){return e!=null&&(e.httpStatus===404||e.category==="notFound")}function ee(e){return e.code!=="conversationNotFound"?e:makeEverfurError("resourceNotFound",{retryable:false,...e.httpStatus===void 0?{}:{httpStatus:e.httpStatus},...e.requestId===void 0?{}:{requestId:e.requestId},...e.reasonCode===void 0?{}:{reasonCode:e.reasonCode},...e.wireMessage===void 0?{}:{wireMessage:e.wireMessage},...e.raw===void 0?{}:{raw:e.raw}})}function te(e){return e.ok?e:err(ee(e.error))}function ie(e){return{send:async(...t)=>te(await e.send(...t)),authorize:t=>e.authorize(t),stream:(t,i,r)=>e.stream(t,i,r)}}var re=/* @__PURE__ */Object.freeze({phase:"idle",petRef:null,plan:null,pending:/* @__PURE__ */Object.freeze([]),itemErrors:/* @__PURE__ */Object.freeze({}),error:null});function ne(e,t,i){let r=e.items.map(e=>e.productId===t?/* @__PURE__ */Object.freeze({...e,inPlan:i}):e);/* @__PURE__ */
|
|
7
|
+
return Object.freeze({...e,items:/* @__PURE__ */Object.freeze(r)})}var le=class{constructor(e){this.repository=e;this.snapshot=re;this.listeners=/* @__PURE__ */new Set;this.generation=0;this.writes=0;this.revalidations=0;this.refreshAfterWrites=false;this.disposed=false;this.subscribe=e=>(this.listeners.add(e),()=>{this.listeners.delete(e)});this.getSnapshot=()=>this.snapshot}set(e){if(!this.disposed){this.snapshot=/* @__PURE__ */Object.freeze({...this.snapshot,...e});for(let e of this.listeners)e()}}async load(petRef){let e=++this.generation;if(this.refreshAfterWrites=false,petRef===null){this.set({...re});return}let t=this.snapshot.petRef===petRef;this.set({phase:"loading",petRef:petRef,plan:t?this.snapshot.plan:null,pending:/* @__PURE__ */Object.freeze([]),itemErrors:t?this.snapshot.itemErrors:/* @__PURE__ */Object.freeze({}),error:null});let i=await this.repository.read(petRef);if(e===this.generation){if(!i.ok){this.set({phase:"failed",error:i.error});return}this.set({phase:"ready",plan:i.value,error:null,itemErrors:/* @__PURE__ */Object.freeze({})})}}async revalidate(){let{phase:e,petRef:petRef,pending:t}=this.snapshot;if(e!=="ready"||petRef===null||t.length>0)return;let i=this.generation,r=this.writes,n=++this.revalidations,l=await this.repository.read(petRef);i!==this.generation||r!==this.writes||n!==this.revalidations||this.snapshot.pending.length>0||this.snapshot.petRef!==petRef||l.ok&&this.set({plan:l.value,itemErrors:/* @__PURE__ */Object.freeze({})})}async refresh(){let{phase:e,petRef:petRef,pending:t}=this.snapshot;if(!(petRef===null||e==="idle")){if(e!=="ready")return this.load(petRef);if(t.length>0){this.refreshAfterWrites=true;return}return this.revalidate()}}settleWrite(){!this.refreshAfterWrites||this.snapshot.pending.length>0||(this.refreshAfterWrites=false,this.revalidate())}async setInPlan(e,t){let{plan:i,petRef:petRef,pending:r}=this.snapshot;if(this.snapshot.phase!=="ready"||i===null||petRef===null||r.includes(e))return false;let n=i.items.find(t=>t.productId===e);if(n===void 0||n.inPlan===t)return false;this.writes+=1;let l=this.generation,o=Object.fromEntries(Object.entries(this.snapshot.itemErrors).filter(([t])=>t!==e));this.set({plan:ne(i,e,t),pending:/* @__PURE__ */Object.freeze([...r,e]),itemErrors:/* @__PURE__ */Object.freeze(o)});let a=t?await this.repository.addItem(petRef,e):await this.repository.removeItem(petRef,e);if(l!==this.generation)return a.ok;let s=this.snapshot.plan??i,c=/* @__PURE__ */Object.freeze(this.snapshot.pending.filter(t=>t!==e));if(!a.ok)return this.set({plan:ne(s,e,n.inPlan),pending:c,itemErrors:/* @__PURE__ */Object.freeze({...this.snapshot.itemErrors,[e]:a.error})}),this.settleWrite(),false;let d=a.value??s;for(let e of c){let t=s.items.find(t=>t.productId===e);t!==void 0&&(d=ne(d,e,t.inPlan))}return this.set({plan:d,pending:c}),this.settleWrite(),true}dispose(){this.generation+=1,this.disposed=true,this.listeners.clear()}};async function oe(e,petRef,t){if(e.listOneBoxOrderPage!==void 0)return e.listOneBoxOrderPage(petRef,{limit:20,...{}});if(e.listOneBoxOrders===void 0)return{ok:true,value:{orders:[],nextCursor:null}};let i=await e.listOneBoxOrders(petRef);return i.ok?{ok:true,value:{orders:i.value,nextCursor:null}}:i}function errorFrame(e){/* @__PURE__ */
|
|
8
|
+
return Object.freeze({kind:"error",terminal:true,code:e.code,retryable:e.retryable,wireMessage:e.wireMessage,synthesized:e.synthesized,lastEventId:e.lastEventId,serverRequestId:null,...e.freeCap?{freeCap:/* @__PURE__ */Object.freeze({...e.freeCap})}:{}})}var ae="x-everfur-anon-token",se="anonTokenInvalid";async function ce(e){if(e.userRef!==null||e.anonIdentity===void 0)return null;try{return await e.anonIdentity.token()}catch{return null}}function de(e,t){let i=e instanceof Error?e.message:typeof e=="string"?e:null;return makeEverfurError("authRejected",{retryable:false,...t?.wireCode?{wireCode:t.wireCode}:{},...t?.requestId?{requestId:t.requestId}:{},...i?{wireMessage:i}:{},...e!=null?{raw:e}:{}})}function authHeaders(e){let t={};return e.mode==="personalized"?t.authorization=`Bearer ${e.token}`:(t["x-everfur-partner-key"]=e.publishableKey,e.anonToken&&(t[ae]=e.anonToken)),e.userRef&&(t["x-everfur-user-ref"]=e.userRef),e.sessionId&&(t["x-everfur-session-id"]=e.sessionId),t}function withAuthHeaders(e,t){return{...e,headers:{...ue(e.headers),...authHeaders(t)}}}function ue(e){if(!e)return{};let t={};for(let[i,r]of Object.entries(e)){let e=i.toLowerCase();e==="authorization"||e==="x-everfur-partner-key"||e===ae||(t[i]=r)}return t}async function authedSend(e,t){if(t.mode==="anonymous"){let i=await ce(t),r=await t.transport.request(withAuthHeaders(e,pe(t,i)));if(r.ok||ge(r.error.raw)!==se||t.anonIdentity===void 0||t.userRef!==null)return r;let n=await t.anonIdentity.token({forceRefresh:true});return n===null||n===i?r:t.transport.request(withAuthHeaders(e,pe(t,n)))}let i;try{i=await t.identity.currentToken()}catch(e){return t.identity.reportRejected?.(),err(de(e))}let r=await t.transport.request(withAuthHeaders(e,{mode:"personalized",token:i,userRef:t.userRef,...t.sessionId?{sessionId:t.sessionId}:{}}));if(r.ok||r.error.httpStatus!==401)return r;let n;try{n=await t.identity.currentToken({forceRefresh:!0})}catch(e){return t.identity.reportRejected?.(),err(de(e,{wireCode:ge(r.error.raw),requestId:r.error.requestId}))}let l=await t.transport.request(withAuthHeaders(e,{mode:"personalized",token:n,userRef:t.userRef,...t.sessionId?{sessionId:t.sessionId}:{}}));return!l.ok&&l.error.httpStatus===401?(t.identity.reportRejected?.(),err(he(l.error))):l}function pe(e,t){return{mode:"anonymous",publishableKey:e.publishableKey,userRef:e.userRef,...e.sessionId?{sessionId:e.sessionId}:{},...t!==null?{anonToken:t}:{}}}function he(e){let t=e.raw,i=ge(t);return makeEverfurError("authRejected",{retryable:false,...e.httpStatus!==void 0?{httpStatus:e.httpStatus}:{},...e.requestId?{requestId:e.requestId}:{},...i?{wireCode:i}:{},...e.reasonCode?{reasonCode:e.reasonCode}:{},...e.wireMessage?{wireMessage:e.wireMessage}:{},...t!=null?{raw:t}:{}})}function ge(e){if(typeof e!="object"||e===null)return null;let t=e,i=(typeof t.error=="object"&&t.error!==null?t.error.code:void 0)??t.code;return typeof i=="string"&&i.length>0?i:null}function fe(e,t){let i=globalThis.URL;if(typeof i=="function"){let r;try{r=t===void 0?new i(e):new i(e,t)}catch{return null}try{if(r.protocol)return r}catch{}}return ye(e)}var me=/^([a-z][a-z0-9+.-]*):\/\/(?:([^:@/?#]*)(?::([^@/?#]*))?@)?(\[[0-9a-f:.]+\]|[\w.~-]+)(?::(\d*))?(\/[^?#]*)?(\?[^#]*)?(#.*)?$/i,be=/[\s\u0000-\u001f\u007f\\]/,we={"http:":"80","https:":"443"};function ye(e,t){let i=e.trim();let r=be.test(i)?null:me.exec(i);if(r===null)return null;let[,n="",l="",o="",a="",s="",c="",d="",u=""]=r,p=`${n.toLowerCase()}:`,h=Number(s);if(h>65535)return null;let g=s===""||String(h)===we[p]?"":String(h),f=we[p]!==void 0,m=a.toLowerCase()+(g&&`:${g}`),b=c||(f?"/":""),w=l||o?`${l}${o&&`:${o}`}@`:"";return{href:`${p}//${w}${m}${b}${d}${u}`,protocol:p,username:l,password:o,hostname:a.toLowerCase(),port:g,origin:f?`${p}//${m}`:"null",pathname:b,search:d==="?"?"":d,hash:u==="#"?"":u}}function networkError(e){return makeEverfurError("internalError",{retryable:true,wireMessage:xe(e)})}function xe(e){return e instanceof Error?e.message:typeof e=="string"?e:"network request failed"}var ve=3e4,ke=M*2,Te="idempotency-key",je=/* @__PURE__ */new Set(["POST","PUT","PATCH","DELETE"]),Se=/* @__PURE__ */Object.freeze({onEvent(){}}),Ie=/* @__PURE__ */Object.freeze({setTimeout:(e,t)=>setTimeout(e,t),clearTimeout:e=>clearTimeout(e),now:()=>Date.now()});function ze(e){let t=e.trim().replace(/[^A-Za-z0-9_.:-]/g,"-");return t.length===0?null:`efs_${t}`.slice(0,128)}function createRequestFunnel(e){let t=e.observer??Se,i=e.timers??Ie,r=e.rng??Math.random,n=e.sleep??((e,t)=>Me(e,i,t)),l=e.maxAttempts??N,o=e.unaryTimeoutMs??ve,a=e.newIdempotencyKey??Ce(),s=e=>{try{t.onEvent(e)}catch{}};async function c(t,c,d){let u=d?.maxAttempts,p=Math.max(1,u??l),h=d?.idempotent??je.has(c.method),g=d?.idempotencyKey===void 0?null:ze(d.idempotencyKey),f=h?g??a():null,m=De(c,f),b=0;for(;;){let l=e=>/* @__PURE__ */Object.freeze({call:t,method:c.method,path:c.path,attempt:b,...f?{idempotencyKey:f}:{},...e});s(l({phase:"attempt"}));let a=$e(o,i),d=We(a.signal,c.signal),h;try{h=await authedSend({...m,signal:d.signal},e.auth)}catch(e){h=err(networkError(e))}finally{d.dispose(),a.cancel()}if(h.ok)return s(l({phase:"settled",ok:true,reason:"ok"})),h;let g=h.error,w=Fe(g,b,{maxAttempts:p,rng:r,now:i.now(),aborted:c.signal?.aborted===true,...u!==void 0?{perCallMaxAttempts:u}:{},...e.errorPolicy!==void 0?{policy:e.errorPolicy}:{}}),y={ok:false,code:g.code,reason:w.reason,...g.httpStatus!==void 0?{httpStatus:g.httpStatus}:{},...g.requestId!==void 0?{requestId:g.requestId}:{}};if(!w.retry)return s(l({phase:"settled",...y})),err(g);if(s(l({phase:"retry",...y,delayMs:w.delayMs})),await n(w.delayMs,c.signal),c.signal?.aborted===true)return s(l({phase:"settled",...y,reason:"aborted"})),err(g);b+=1}}async function d(t){return withAuthHeaders(t,await Ve(e.auth))}async function*u(t,i,r){s(
|
|
8
9
|
/* @__PURE__ */Object.freeze({call:t,phase:"stream.open",method:i.method,path:i.path,attempt:0}));try{yield*e.auth.transport.stream(i,r)}catch{yield errorFrame({code:"internal_error",retryable:true,wireMessage:null,synthesized:true,lastEventId:null})}}/* @__PURE__ */
|
|
9
|
-
return Object.freeze({send:c,authorize:d,stream:u})}function
|
|
10
|
-
return Object.freeze(t)}var
|
|
11
|
-
return Object.freeze(r)}function
|
|
12
|
-
return Object.freeze({petRef:
|
|
13
|
-
return Object.freeze({items:t,count:t.length,subtotal:r/100,currency:t[0]?.currency??null})}function formatHealthPlanPrice(e,t,i,r){if(e===null||t===null||!Number.isFinite(e))return null;let n=r?.dropZeroCents===true&&Number.isInteger(e);try{return new Intl.NumberFormat(i,{style:"currency",currency:t,...n?{minimumFractionDigits:0,maximumFractionDigits:0}:{}}).format(e)}catch{return`${t} ${n?String(e):e.toFixed(2)}`}}function formatHealthPlanPriceWith(e,t,i){return formatHealthPlanPrice(e,t,i?.locale,i)}function useEverfurHealthPlanRepository(){let{runtime:t}=u();return e.useMemo(()=>createHealthPlanRepository(t),[t])}function useEverfurHealthPlan(t){let{userRef:userRef,activePet:i,scopeEpoch:r}=u(),n=useEverfurHealthPlanRepository(),petRef=t?.petRef??i??null,l=
|
|
14
|
-
return Object.freeze(t)}function healthPlanSubscriptionFromWire(e){if(e===null||typeof e!="object")return null;let t=e,i=
|
|
15
|
-
return Object.freeze({subscriptionId:i,productId:r,title:
|
|
16
|
-
return Object.freeze({orderId:i,productId:r,title:
|
|
17
|
-
return Object.freeze({status:i,orderNumber:
|
|
18
|
-
return Object.freeze({orders:/* @__PURE__ */Object.freeze(t.map(healthPlanOneBoxOrderFromWire).filter(e=>e!==null)),nextCursor:typeof i=="string"&&i.length>0&&i.length<=
|
|
19
|
-
return Object.freeze({productId:i,currency:r,boxPrice:n,firstBoxPrice:o?
|
|
20
|
-
return Object.freeze(Object.fromEntries(Object.entries(e).filter(([,e])=>e!=null)))}function
|
|
21
|
-
return Object.freeze({petRef:
|
|
10
|
+
return Object.freeze({send:c,authorize:d,stream:u})}function De(e,t){let i={};for(let[t,r]of Object.entries(e.headers??{}))t.toLowerCase()!==Te&&(i[t]=r);return t!==null&&(i["Idempotency-Key"]=t),{...e,headers:i}}function Ce(){let e=0;return()=>`efk_${Date.now().toString(36)}_${(e++).toString(36)}_${Math.random().toString(36).slice(2,12)}`}var He=10;function Fe(e,t,i){if(i.aborted)return{retry:false,reason:"aborted"};let r=_e(e);if(r==="quota")return{retry:false,reason:"daily-quota-exhausted"};if(r!=="burst"&&!isAutoRetryable(e.code))return{retry:false,reason:"terminal-code"};let n=r==="burst"?"burst-throttle":"retryable-code";if((()=>{if(i.policy===void 0)return false;try{return!i.policy.shouldRetry(e.code,t)}catch{return false}})())return{retry:false,reason:"terminal-code"};let l=()=>{if(i.policy===void 0)return null;let t;try{t=i.policy.maxAttempts(e.code)}catch{return null}return typeof t!="number"||!Number.isFinite(t)?null:Math.max(1,Math.min(He,Math.floor(t)))},o=i.perCallMaxAttempts??l()??i.maxAttempts;if(t+1>=o)return{retry:false,reason:"attempts-exhausted"};let a=Oe(e,i.now);return a!==null?a>ke?{retry:false,reason:"server-reset-beyond-budget"}:{retry:true,reason:n,delayMs:a}:{retry:true,reason:n,delayMs:backoffDelayMs(t,i.rng)}}function _e(e){let t=e.code==="unknown"?fromWire(Be(e.raw)):e.code;return t==="quotaExceeded"?"quota":t==="rateLimited"||e.httpStatus===429?"burst":null}function Oe(e,t){let i=Pe(e.raw);if(i!==null){let e=i-t;return e>0?e:0}let r=Ee(e.raw);return r===null?null:Math.round(r*1e3)}function Ee(e){for(let t of Le(e)){let e=t.retry_after_seconds;if(typeof e=="number"&&Number.isFinite(e)&&e>=0)return e}return null}function Pe(e){for(let t of Le(e)){let e=t.resets_at,i=Ae(e);if(i!==null)return i}return null}function Le(e){if(!Re(e))return[];let t=[e];for(let i of["error","detail"]){let r=e[i];Re(r)&&t.push(r)}return t}function Ae(e){if(typeof e=="number"&&Number.isFinite(e))return e<1e11?Math.round(e*1e3):Math.round(e);if(typeof e=="string"&&e.trim().length>0){let t=Date.parse(e);return Number.isFinite(t)?t:null}return null}function Be(e){for(let t of Le(e)){let e=t.code;if(typeof e=="string"&&e.length>0)return e}return null}function Re(e){return typeof e=="object"&&e!==null}async function Ve(e){if(e.mode==="anonymous"){let t=await ce(e);return{mode:"anonymous",publishableKey:e.publishableKey,userRef:e.userRef,...e.sessionId?{sessionId:e.sessionId}:{},...t!==null?{anonToken:t}:{}}}return{mode:"personalized",token:await e.identity.currentToken(),userRef:e.userRef,...e.sessionId?{sessionId:e.sessionId}:{}}}function $e(e,t){let i=new AbortController,r=t.setTimeout(()=>i.abort(),e);return{signal:i.signal,cancel:()=>t.clearTimeout(r)}}function We(e,t){let i=()=>{};if(!t)return{signal:e,dispose:i};let r=new AbortController;if(e.aborted||t.aborted)return r.abort(),{signal:r.signal,dispose:i};let n=()=>r.abort();return e.addEventListener("abort",n,{once:true}),t.addEventListener("abort",n,{once:true}),{signal:r.signal,dispose:()=>{e.removeEventListener("abort",n),t.removeEventListener("abort",n)}}}function Me(e,t,i){return e<=0||i?.aborted===true?Promise.resolve():new Promise(r=>{let n=t.setTimeout(()=>{i?.removeEventListener("abort",l),r()},e),l=()=>{t.clearTimeout(n),r()};i?.addEventListener("abort",l,{once:true})})}var Ne=/* @__PURE__ */Object.freeze(["dna","records","inside","profile"]),Ge=128;function qe(e){return makeEverfurError("validationFailed",{retryable:false,wireMessage:e})}function Ue(e){return makeEverfurError("runtimeDisposed",{retryable:false,wireMessage:`the Everfur runtime is disposed; ${e} was called after unmount`})}function Ye(e){return makeEverfurError("internalError",{retryable:false,httpStatus:502,wireMessage:`${e}: the response carried no plan`})}var Xe=(e,t=4e3)=>typeof e=="string"&&e.trim().length>0&&e.length<=t?e.trim():null;function Ke(e){let t=Xe(e,2048);return t===null?null:/^https:\/\/[^\s]+$/i.test(t)?t:null}function Qe(e){let t=typeof e=="number"?e:typeof e=="string"&&/^\d+(\.\d+)?$/.test(e.trim())?Number(e):Number.NaN;return Number.isFinite(t)&&t>=0?t:null}function Je(e){return typeof e=="string"&&/^[A-Za-z]{3}$/.test(e)?e.toUpperCase():null}function Ze(e){if(!Array.isArray(e))/* @__PURE__ */return Object.freeze([]);let t=[];for(let i of e){if(i===null||typeof i!="object")continue;let e=i,r=Xe(e.text,1e3);if(r===null)continue;let n=typeof e.kind=="string"&&Ne.includes(e.kind)?e.kind:"profile";t.push(/* @__PURE__ */Object.freeze({kind:n,text:r}))}/* @__PURE__ */
|
|
11
|
+
return Object.freeze(t)}var et=6;function tt(e){return typeof e=="number"&&Number.isFinite(e)&&e>=0&&e<=400?e:null}function it(e,t,i){if(!Array.isArray(e))/* @__PURE__ */return Object.freeze([]);let r=[];for(let n of e){if(r.length>=i)break;if(n===null||typeof n!="object"||Array.isArray(n))continue;let e=t(n);e!==null&&r.push(e)}/* @__PURE__ */
|
|
12
|
+
return Object.freeze(r)}function rt(e){let t=Xe(e.title,80),i=Xe(e.body,600);return t===null||i===null?null:/* @__PURE__ */Object.freeze({title:t,body:i})}function nt(e){if(e===null||typeof e!="object"||Array.isArray(e))return;let t=e,i=[];if(Array.isArray(t.gallery))for(let e of t.gallery){let t=Ke(e);t!==null&&i.length<et&&i.push(t)}let r=it(t.doses,e=>{let t=Xe(e.label,60),i=Xe(e.amount,60);return t===null||i===null?null:/* @__PURE__ */Object.freeze({label:t,amount:i,minLb:tt(e.minLb??e.min_lb),maxLb:tt(e.maxLb??e.max_lb)})},et),n=it(t.details,rt,et),l=t.fit,o=l!==null&&typeof l=="object"&&!Array.isArray(l)?rt(l):null,a=o!==null&&l.pet===true?/* @__PURE__ */Object.freeze({...o,pet:true}):o,s=/* @__PURE__ */Object.freeze({kicker:Xe(t.kicker,80),gallery:/* @__PURE__ */Object.freeze(i),doses:r,details:n,fine:Xe(t.fine,300),fit:a});return s.kicker===null&&i.length===0&&r.length===0&&n.length===0&&s.fine===null&&a===null?void 0:s}function lt(e){let t=typeof e.rating=="number"&&Number.isFinite(e.rating)&&e.rating>=0&&e.rating<=5?Math.round(e.rating*10)/10:null,i=typeof e.review_count=="number"&&Number.isInteger(e.review_count)&&e.review_count>=0?e.review_count:null,r=it(e.reviews,e=>{let t=typeof e.stars=="number"&&Number.isInteger(e.stars)&&e.stars>=1&&e.stars<=5?e.stars:null,i=Xe(e.text,300),r=Xe(e.by,80);return t===null||i===null||r===null?null:/* @__PURE__ */Object.freeze({stars:t,text:i,by:r})},5),n=[];if(Array.isArray(e.ingredients))for(let t of e.ingredients){let e=Xe(t,60);e!==null&&n.length<12&&n.push(e)}let l=nt(e.detail);return{...t===null?{}:{rating:t},...i===null?{}:{reviewCount:i},...r.length===0?{}:{reviews:r},...n.length===0?{}:{ingredients:/* @__PURE__ */Object.freeze(n)},...l===void 0?{}:{detail:l}}}function ot(e){if(e===null||typeof e!="object")return null;let t=e,i=t.product_id,r=typeof i=="number"&&Number.isInteger(i)?String(i):Xe(i,Ge),n=Xe(t.title,300);return r===null||n===null?null:/* @__PURE__ */Object.freeze({productId:r,partnerSku:Xe(t.partner_sku,200),title:n,description:Xe(t.description),category:Xe(t.category,60),price:Qe(t.price),currency:Je(t.currency),imageUrl:Ke(t.image_url),url:Ke(t.url),reasons:Ze(t.reasons),inPlan:t.in_plan===true,sample:t.sample===true,...lt(t)})}function healthPlanFromWire(e,petRef){if(e===null||typeof e!="object")return null;let t=e;if(!Array.isArray(t.items))return null;let i=[],r=/* @__PURE__ */new Set;for(let e of t.items){let t=ot(e);t===null||r.has(t.productId)||(r.add(t.productId),i.push(t))}/* @__PURE__ */
|
|
13
|
+
return Object.freeze({petRef:Xe(t.pet_ref,Ge)??petRef,headline:Xe(t.headline,300),items:/* @__PURE__ */Object.freeze(i),updatedAt:Xe(t.updated_at,64),...t.tracking_texts_enabled===true?{trackingTextsEnabled:true}:{}})}function at(e){return typeof e=="string"&&e.length>0&&e.length<=Ge}function st(petRef){return`/widget/v1/pets/${encodeURIComponent(petRef)}/plan`}function createHealthPlanRepository(e){let t=()=>{let{services:t}=e.registry;return createHealthPlanRepositoryOver({auth:t.authFor(null),...t.errorPolicy?{errorPolicy:t.errorPolicy}:{}})};return{read:(petRef,i)=>e.isDisposed?Promise.resolve(err(Ue("read"))):t().read(petRef,i),addItem:(petRef,i)=>e.isDisposed?Promise.resolve(err(Ue("addItem"))):t().addItem(petRef,i),removeItem:(petRef,i)=>e.isDisposed?Promise.resolve(err(Ue("removeItem"))):t().removeItem(petRef,i)}}function createHealthPlanRepositoryOver(e){let t=ie(e.funnel??createRequestFunnel({auth:e.auth,...e.errorPolicy?{errorPolicy:e.errorPolicy}:{}})),i=async(e,petRef,i)=>{if(!at(petRef))return err(qe("petRef must be 1..128 characters"));if(!at(i))return err(qe("productId must be 1..128 characters"));let r=e==="PUT"?"healthPlan.item.add":"healthPlan.item.remove",n=await t.send(r,{method:e,path:`${st(petRef)}/items/${encodeURIComponent(i)}`});return n.ok?n.value===null||n.value===void 0||n.value===""?ok(null):ok(healthPlanFromWire(n.value,petRef)):err(n.error)};return{async read(petRef,e){if(!at(petRef))return err(qe("petRef must be 1..128 characters"));let i={method:"GET",path:st(petRef),...e?.signal?{signal:e.signal}:{}},r=await t.send("healthPlan.read",i);if(!r.ok)return err(r.error);let n=healthPlanFromWire(r.value,petRef);return n===null?err(Ye("healthPlan.read")):ok(n)},addItem:(petRef,e)=>i("PUT",petRef,e),removeItem:(petRef,e)=>i("DELETE",petRef,e)}}function ct(t,i){let[r,n]=e.useState(t),l=e.useRef(false);return e.useEffect(()=>{let e=r;return l.current&&(e=t(),n(e)),l.current=true,()=>e.dispose()},i),r}function dt(e){let t=globalThis.console;try{t?.error?.("[everfur] A host callback threw; the SDK ignored it.",e)}catch{}}function ut(e){return(typeof e=="object"||typeof e=="function")&&e!==null&&typeof e.then=="function"}function pt(e,...t){if(typeof e=="function")try{let i=e(...t);return ut(i)&&Promise.resolve(i).then(void 0,dt),i}catch(e){dt(e);return}}var ht=/* @__PURE__ */new WeakMap;function gt(e){if(typeof e!="function")return;let t=ht.get(e);if(t!==void 0)return t;let i=(...t)=>{pt(e,...t)};return ht.set(e,i),i}function ft(e,t){let i=null;for(let r of t){let t=e[r];typeof t=="function"&&(i??={...e},i[r]=gt(t))}return i??e}var mt=6e4;function bt({lifecycle:t,refreshKey:i,readyAt:r,revalidate:n,refresh:l,now:o=Date.now}){let a=e.useRef({readyAt:r,revalidate:n,refresh:l??n,now:o});a.current={readyAt:r,revalidate:n,refresh:l??n,now:o},e.useEffect(()=>{if(t==null)return;let e=pt(()=>t.onForeground(()=>{let{readyAt:e,revalidate:t,now:i}=a.current;e!==null&&i()-e>=mt&&t()}));return()=>{typeof e=="function"&&pt(e)}},[t]);let s=e.useRef(i);e.useEffect(()=>{Object.is(s.current,i)||(s.current=i,a.current.refresh())},[i])}function healthPlanCart(e){let t=/* @__PURE__ */Object.freeze((e?.items??[]).filter(e=>e.inPlan));if(t.length===0)/* @__PURE__ */return Object.freeze({items:t,count:0,subtotal:null,currency:null});let i=new Set(t.map(e=>e.currency));if(!t.every(e=>e.price!==null)||i.size!==1)/* @__PURE__ */return Object.freeze({items:t,count:t.length,subtotal:null,currency:null});let r=t.reduce((e,t)=>e+Math.round(t.price*100),0);/* @__PURE__ */
|
|
14
|
+
return Object.freeze({items:t,count:t.length,subtotal:r/100,currency:t[0]?.currency??null})}function formatHealthPlanPrice(e,t,i,r){if(e===null||t===null||!Number.isFinite(e))return null;let n=r?.dropZeroCents===true&&Number.isInteger(e);try{return new Intl.NumberFormat(i,{style:"currency",currency:t,...n?{minimumFractionDigits:0,maximumFractionDigits:0}:{}}).format(e)}catch{return`${t} ${n?String(e):e.toFixed(2)}`}}function formatHealthPlanPriceWith(e,t,i){return formatHealthPlanPrice(e,t,i?.locale,i)}function useEverfurHealthPlanRepository(){let{runtime:t}=u();return e.useMemo(()=>createHealthPlanRepository(t),[t])}function useEverfurHealthPlan(t){let{userRef:userRef,activePet:i,scopeEpoch:r}=u(),n=useEverfurHealthPlanRepository(),petRef=t?.petRef??i??null,l=ct(()=>new le(n),[n,userRef,r]);e.useEffect(()=>{l.load(userRef===null?null:petRef)},[l,userRef,petRef]);let o=e.useSyncExternalStore(l.subscribe,l.getSnapshot,l.getSnapshot),a=e.useMemo(()=>healthPlanCart(o.plan),[o.plan]),[s,c]=e.useState(null);e.useEffect(()=>{c(o.phase==="ready"&&o.plan!==null?Date.now():null)},[o.phase,o.plan]),bt({lifecycle:t?.lifecycle,refreshKey:t?.refreshKey,readyAt:s,revalidate:()=>{l.revalidate()},refresh:()=>{l.refresh()}});let d;return userRef===null?d="signedOut":petRef===null?d="noPet":o.petRef!==petRef||o.phase==="idle"||o.phase==="loading"?d="loading":o.phase==="failed"?d=Z(o.error)?"empty":"failed":d=(o.plan?.items.length??0)===0?"empty":"ready",e.useMemo(()=>({status:d,petRef:petRef,plan:o.petRef===petRef?o.plan:null,cart:a,pending:o.pending,itemErrors:o.itemErrors,error:d==="empty"?null:o.error,setInPlan:(e,t)=>l.setInPlan(e,t),refresh:()=>l.load(userRef===null?null:petRef)}),[d,petRef,o,a,l,userRef])}var wt=128,yt=/^\d{4}-\d{2}-\d{2}$/,xt=/* @__PURE__ */new Set(["first_box_ships","checkin","refill_reminder","next_box_ships"]);var vt=(e,t=300)=>typeof e=="string"&&e.trim().length>0&&e.length<=t?e.trim():null;function kt(e){let t=typeof e=="number"?e:typeof e=="string"&&/^\d+(\.\d+)?$/.test(e.trim())?Number(e):Number.NaN;return Number.isFinite(t)&&t>=0?t:null}function Tt(e){return typeof e=="number"&&Number.isInteger(e)&&e>0?e:null}function jt(e){return typeof e=="number"&&Number.isInteger(e)?String(e):vt(e,wt)}function St(e){return typeof e=="string"&&/^[A-Za-z]{3}$/.test(e)?e.toUpperCase():null}function It(e){return typeof e=="string"&&yt.test(e)?e:null}function zt(e){return Array.isArray(e)?/* @__PURE__ */Object.freeze(e.map(Tt).filter(e=>e!==null)):/* @__PURE__ */Object.freeze([])}function Dt(e){if(e===null||typeof e!="object")return null;let t=e,i=kt(t.amount),r=St(t.currency),n=Tt(t.interval_days);return i===null||r===null||n===null?null:/* @__PURE__ */Object.freeze({amount:i,currency:r,intervalDays:n})}function Ct(e){if(!Array.isArray(e))/* @__PURE__ */return Object.freeze([]);let t=[];for(let i of e){if(i===null||typeof i!="object")continue;let e=i,r=It(e.on);typeof e.step!="string"||!xt.has(e.step)||r===null||t.push(/* @__PURE__ */Object.freeze({step:e.step,on:r}))}/* @__PURE__ */
|
|
15
|
+
return Object.freeze(t)}function healthPlanSubscriptionFromWire(e){if(e===null||typeof e!="object")return null;let t=e,i=jt(t.subscription_id),r=jt(t.product_id),n=t.status==="active"||t.status==="cancelled"?t.status:null,l=Tt(t.interval_days),o=St(t.currency),a=kt(t.box_price);if(i===null||r===null||n===null||l===null||o===null||a===null)return null;let s=zt(t.interval_options);/* @__PURE__ */
|
|
16
|
+
return Object.freeze({subscriptionId:i,productId:r,title:vt(t.title),status:n,intervalDays:l,intervalOptions:s.length>0?s:/* @__PURE__ */Object.freeze([l]),currency:o,boxPrice:a,firstBoxPrice:kt(t.first_box_price)??a,offerApplied:t.offer_applied===true,nextBoxDate:n==="active"?It(t.next_box_date):null,renewal:Dt(t.renewal),timeline:n==="active"?Ct(t.timeline):/* @__PURE__ */Object.freeze([])})}function healthPlanOneBoxOrderFromWire(e){if(e===null||typeof e!="object")return null;let t=e,i=jt(t.order_id),r=jt(t.product_id),n=St(t.currency),l=kt(t.price);if(i===null||r===null||n===null||l===null)return null;let o=Tt(t.quantity),a=o!==null&&o<=Ht?o:1;/* @__PURE__ */
|
|
17
|
+
return Object.freeze({orderId:i,productId:r,title:vt(t.title),currency:n,boxPrice:kt(t.box_price)??l,price:l,discountPercent:Tt(t.discount_percent)??0,shipsOn:It(t.ships_on),createdAt:Lt(t.created_at),quantity:a,total:kt(t.total)??Math.round(l*a*100)/100,...Pt(t.tracking)})}var Ht=10,Ft=/* @__PURE__ */new Set(["ordered","shipped","delivered"]),_t=/[\u0000-\u001f\u007f\u202a-\u202e\u2066-\u2069]/;function Ot(e,t){if(typeof e!="string"||_t.test(e))return null;let i=e.trim();return i.length>0&&i.length<=t?i:null}function Et(e){return typeof e!="string"||e.length>2048||_t.test(e)||/[\s@]/.test(e)||!/^https:\/\/[^/]/i.test(e)?null:fe(e)?.protocol==="https:"?e:null}function healthPlanOrderTrackingFromWire(e){if(e===null||typeof e!="object"||Array.isArray(e))return null;let t=e,i=typeof t.status=="string"&&Ft.has(t.status)?t.status:"ordered";/* @__PURE__ */
|
|
18
|
+
return Object.freeze({status:i,orderNumber:Ot(t.order_number,64),carrier:Ot(t.carrier,64),trackingNumber:Ot(t.tracking_number,128),trackingUrl:Et(t.tracking_url),shippedAt:Lt(t.shipped_at),estimatedDelivery:It(t.estimated_delivery),updatedAt:Lt(t.updated_at)})}function Pt(e){let t=healthPlanOrderTrackingFromWire(e);return t===null?{}:{tracking:t}}function healthPlanOneBoxOrderPageFromWire(e){let t=e!==null&&typeof e=="object"?e.orders:null;if(!Array.isArray(t))return null;let i=e.next_cursor;/* @__PURE__ */
|
|
19
|
+
return Object.freeze({orders:/* @__PURE__ */Object.freeze(t.map(healthPlanOneBoxOrderFromWire).filter(e=>e!==null)),nextCursor:typeof i=="string"&&i.length>0&&i.length<=wt?i:null})}function Lt(e){return typeof e!="string"||e.length>40||!/^\d{4}-\d{2}-\d{2}T/.test(e)||Number.isNaN(Date.parse(e))?null:e}function At(e,t){if(e===null||typeof e!="object")return null;let i=e,r=kt(i.price);return r===null||r>t?null:/* @__PURE__ */Object.freeze({price:r,discountPercent:Tt(i.discount_percent)??0})}function healthPlanSubscriptionQuoteFromWire(e){if(e===null||typeof e!="object")return null;let t=e,i=jt(t.product_id),r=St(t.currency),n=kt(t.box_price),l=zt(t.interval_options);if(i===null||r===null||n===null||l.length===0)return null;let o=t.offer_applies===true,a=Tt(t.default_interval_days),s=t.supply,c=null;if(s!==null&&typeof s=="object"){let e=s,t=Tt(e.units_per_box),i=kt(e.units_per_day),r=Tt(e.supply_days);t!==null&&i!==null&&r!==null&&(c=/* @__PURE__ */Object.freeze({unitsPerBox:t,unitLabel:vt(e.unit_label,30),unitsPerDay:i,supplyDays:r,doseBasis:e.dose_basis==="weight"?"weight":"assumed"}))}let d=Tt(t.first_box_discount_percent)??0;/* @__PURE__ */
|
|
20
|
+
return Object.freeze({productId:i,currency:r,boxPrice:n,firstBoxPrice:o?kt(t.first_box_price)??n:n,firstBoxDiscountPercent:o?d:0,offerApplies:o,oneBox:At(t.one_box,n),intervalOptions:l,defaultIntervalDays:a!==null&&l.includes(a)?a:l[0],supply:c,firstBoxShipsOn:It(t.first_box_ships_on),subscription:healthPlanSubscriptionFromWire(t.subscription)})}function Bt(e){return makeEverfurError("validationFailed",{retryable:false,wireMessage:e})}function Rt(e){return makeEverfurError("internalError",{retryable:false,httpStatus:502,wireMessage:`${e}: the response carried no subscription`})}function Vt(e){return makeEverfurError("runtimeDisposed",{retryable:false,wireMessage:`the Everfur runtime is disposed; ${e} was called after unmount`})}var $t=e=>typeof e=="string"&&e.length>0&&e.length<=wt;function Wt(petRef){return`/widget/v1/pets/${encodeURIComponent(petRef)}/plan/subscriptions`}function createHealthPlanSubscriptionRepositoryOver(e){let t=ie(e.funnel??createRequestFunnel({auth:e.auth,...e.errorPolicy?{errorPolicy:e.errorPolicy}:{}})),i=async(e,petRef,i,r,n)=>{if(!$t(petRef))return err(Bt("petRef must be 1..128 characters"));let l=await t.send(e,{method:i,path:`${Wt(petRef)}${r}`,...n===void 0?{}:{body:n}});if(!l.ok)return err(l.error);let o=healthPlanSubscriptionFromWire(l.value);return o===null?err(Rt(e)):ok(o)},r=(e,t="")=>$t(e)?`/${encodeURIComponent(e)}${t}`:null;return{async quote(petRef,e){if(!$t(petRef))return err(Bt("petRef must be 1..128 characters"));if(!$t(e))return err(Bt("productId must be 1..128 characters"));let i=await t.send("healthPlan.subscription.quote",{method:"GET",path:`${Wt(petRef)}/quote`,query:{product_id:e}});if(!i.ok)return err(i.error);let r=healthPlanSubscriptionQuoteFromWire(i.value);return r===null?err(Rt("healthPlan.subscription.quote")):ok(r)},async list(petRef){if(!$t(petRef))return err(Bt("petRef must be 1..128 characters"));let e=await t.send("healthPlan.subscription.list",{method:"GET",path:Wt(petRef)});if(!e.ok)return err(e.error);let i=e.value!==null&&typeof e.value=="object"?e.value.subscriptions:null;return Array.isArray(i)?ok(/* @__PURE__ */Object.freeze(i.map(healthPlanSubscriptionFromWire).filter(e=>e!==null))):err(Rt("healthPlan.subscription.list"))},create(petRef,e,t){return $t(e)?i("healthPlan.subscription.create",petRef,"POST","",{product_id:e,...t===void 0?{}:{interval_days:t}}):Promise.resolve(err(Bt("productId must be 1..128 characters")))},changeInterval(petRef,e,t){let n=r(e);return n===null?Promise.resolve(err(Bt("subscriptionId must be 1..128 characters"))):i("healthPlan.subscription.interval",petRef,"PATCH",n,{interval_days:t})},skip(petRef,e){let t=r(e,"/skip");return t===null?Promise.resolve(err(Bt("subscriptionId must be 1..128 characters"))):i("healthPlan.subscription.skip",petRef,"POST",t,{})},cancel(petRef,e){let t=r(e,"/cancel");return t===null?Promise.resolve(err(Bt("subscriptionId must be 1..128 characters"))):i("healthPlan.subscription.cancel",petRef,"POST",t,{})},restart(petRef,e,t){let n=r(e,"/restart");return n===null?Promise.resolve(err(Bt("subscriptionId must be 1..128 characters"))):i("healthPlan.subscription.restart",petRef,"POST",n,t===void 0?{}:{interval_days:t})},async buyOneBox(petRef,e,i){if(!$t(petRef))return err(Bt("petRef must be 1..128 characters"));if(!$t(e))return err(Bt("productId must be 1..128 characters"));let r=await t.send("healthPlan.subscription.oneBox",{method:"POST",path:`${Wt(petRef)}/one-box`,body:{product_id:e}},{idempotent:true,...i===void 0?{}:{idempotencyKey:`hp-one-box:${i}`}});if(!r.ok)return err(r.error);let n=healthPlanOneBoxOrderFromWire(r.value);return n===null?err(Rt("healthPlan.subscription.oneBox")):ok(n)},async listOneBoxOrders(petRef){if(!$t(petRef))return err(Bt("petRef must be 1..128 characters"));let e=await t.send("healthPlan.subscription.oneBoxList",{method:"GET",path:`${Wt(petRef)}/one-box`});if(!e.ok)return err(e.error);let i=healthPlanOneBoxOrderPageFromWire(e.value);return i===null?err(Rt("healthPlan.subscription.oneBoxList")):ok(i.orders)},async listOneBoxOrderPage(petRef,e){if(!$t(petRef))return err(Bt("petRef must be 1..128 characters"));let i=e?.limit;if(i!==void 0&&!(Number.isInteger(i)&&i>=1&&i<=50))return err(Bt("limit must be a whole number 1..50"));if(e?.cursor!==void 0&&!$t(e.cursor))return err(Bt("cursor must be 1..128 characters"));let r={...i!==void 0?{limit:String(i)}:{},...e?.cursor!==void 0?{cursor:e.cursor}:{}},n=await t.send("healthPlan.subscription.oneBoxList",{method:"GET",path:`${Wt(petRef)}/one-box`,query:r});if(!n.ok)return err(n.error);let l=healthPlanOneBoxOrderPageFromWire(n.value);return l===null?err(Rt("healthPlan.subscription.oneBoxList")):ok(l)}}}function createHealthPlanSubscriptionRepository(e){let t=()=>{let{services:t}=e.registry;return createHealthPlanSubscriptionRepositoryOver({auth:t.authFor(null),...t.errorPolicy?{errorPolicy:t.errorPolicy}:{}})},i=(i,r)=>(...n)=>e.isDisposed?Promise.resolve(err(Vt(i))):r(t(),...n);return{quote:i("quote",(e,t,i)=>e.quote(t,i)),list:i("list",(e,t)=>e.list(t)),create:i("create",(e,t,i,r)=>e.create(t,i,r)),changeInterval:i("changeInterval",(e,t,i,r)=>e.changeInterval(t,i,r)),skip:i("skip",(e,t,i)=>e.skip(t,i)),cancel:i("cancel",(e,t,i)=>e.cancel(t,i)),restart:i("restart",(e,t,i,r)=>e.restart(t,i,r)),buyOneBox:i("buyOneBox",(e,t,i,r)=>e.buyOneBox(t,i,r)),listOneBoxOrders:i("listOneBoxOrders",(e,t)=>e.listOneBoxOrders(t)),listOneBoxOrderPage:i("listOneBoxOrderPage",(e,t,i)=>e.listOneBoxOrderPage(t,i))}}var Mt=128;var Nt=/* @__PURE__ */new Set(["shield","arrow","check","star","truck","refresh","card","alert","x","chat","repeat","calendar","flame","box","cart","minus","plus","chev","pulse","file","kit","dna","heart","bottle","harness","ramp"]),Gt=/* @__PURE__ */new Set(["y","c","g","r"]),qt=/* @__PURE__ */new Set(["done","now","next"]),Ut=e=>e!==null&&typeof e=="object"&&!Array.isArray(e)?e:null,Yt=(e,t=1e3)=>typeof e=="string"&&e.trim().length>0&&e.length<=t?e.trim():null,Xt=e=>typeof e=="string"&&/^[A-Za-z0-9_-]{1,40}$/.test(e)?e:null,Kt=e=>typeof e=="string"&&Nt.has(e)?e:null;function Qt(e){let t=Yt(e,2048);return t===null||/\s/.test(t)?null:/^https:\/\/[^/]/i.test(t)||/^\/(?![/\\])/.test(t)?t:null}var Jt=e=>typeof e=="number"&&Number.isInteger(e)?String(e):Yt(e,Mt);function Zt(e){return typeof e=="number"&&Number.isFinite(e)&&e>0?e:null}function ei(e){/* @__PURE__ */
|
|
21
|
+
return Object.freeze(Object.fromEntries(Object.entries(e).filter(([,e])=>e!=null)))}function ti(e,t,i=20){if(!Array.isArray(e))return null;let r=[];for(let n of e){if(r.length>=i)break;let e=t(n);e!==null&&r.push(e)}return r.length===0?null:/* @__PURE__ */Object.freeze(r)}var ii=(e,t=12,i=300)=>ti(e,e=>Yt(e,i),t);function ri(e){let t=Ut(e),i=Yt(t?.kicker,120),r=Yt(t?.title,300);if(t===null||i===null||r===null)return null;let n=Ut(t.risk),l=Ut(t.odds),o=Ut(t.quote),a=Ut(t.jump);return ei({kicker:i,title:r,sources:ti(t.sources,e=>{let t=Yt(Ut(e)?.label,60);return t===null?null:ei({label:t,kind:Xt(Ut(e)?.kind)})},6),risk:Yt(n?.lead,300)===null?null:ei({lead:Yt(n?.lead,300),body:Yt(n?.body),kind:Xt(n?.kind)}),odds:Yt(l?.label,120)===null||Yt(l?.from,20)===null||Yt(l?.to,20)===null?null:ei({label:Yt(l?.label,120),tag:Yt(l?.tag,40),from:Yt(l?.from,20),to:Yt(l?.to,20),toLabel:Yt(l?.toLabel,120)}),quote:Yt(o?.text)===null?null:ei({kicker:Yt(o?.kicker,120),tag:Yt(o?.tag,40),text:Yt(o?.text)}),jump:Yt(a?.title,300)===null||Yt(a?.go,60)===null?null:ei({title:Yt(a?.title,300),go:Yt(a?.go,60)}),report:ni(t.report)})}function ni(e){let t=Ut(e),i=Yt(t?.label,120),r=Yt(t?.text,1200);return i===null||r===null?null:ei({label:i,text:r,actions:ii(t?.actions,5,300)})}function li(e){let t=Ut(e),i=Yt(t?.title,300),r=ti(t?.steps,e=>{let t=Ut(e),i=Yt(t?.title,300),r=t?.tone;return i===null?null:ei({title:i,body:Yt(t?.body),source:Yt(t?.source,200),tone:typeof r=="string"&&Gt.has(r)?r:null,icon:Kt(t?.icon),fromVet:t?.fromVet===true?true:null})});return i===null||r===null?null:ei({title:i,label:Yt(t?.label,60),steps:r})}function oi(e){let t=Ut(e),i=Yt(t?.title,300);if(t===null||i===null)return null;let r=Ut(t.rating),n=Ut(t.reviews),l=Ut(t.why),o=Ut(l?.score),a=Ut(t.dose),s=Ut(t.ingredients),c=ti(n?.items,e=>{let t=Ut(e),i=t?.stars,r=Yt(t?.text),n=Yt(t?.by,80);return typeof i!="number"||!Number.isFinite(i)||i<1||i>5||r===null||n===null?null:ei({stars:Math.round(i),text:r,by:n})},5),d=ti(l?.rows,e=>{let t=Ut(e),i=Yt(t?.chip,40),r=Yt(t?.title,300);return i===null||r===null?null:ei({chip:i,kind:Xt(t?.kind),title:r,body:Yt(t?.body)})}),u=ti(a?.stats,e=>{let t=Ut(e),i=Yt(t?.value,40),r=Yt(t?.label,120),n=t?.kind;return i===null||r===null?null:ei({value:i,label:r,kind:n==="weight"||n==="dose"||n==="days"?n:null})},6),p=ii(s?.items,12,80);return ei({title:i,none:t.none===true?true:null,hidden:t.none===true&&t.hidden===true?true:null,productId:Jt(t.productId),partnerSku:Yt(t.partnerSku,200),rating:Yt(r?.value,20)===null?null:ei({value:Yt(r?.value,20),label:Yt(r?.label,120)}),line:Yt(t.line),reviews:Yt(n?.label,200)===null||c===null?null:ei({label:Yt(n?.label,200),items:c}),checkoutLine:Yt(t.checkoutLine,300),why:Yt(l?.title,200)===null||d===null?null:ei({title:Yt(l?.title,200),rows:d,score:Yt(o?.text,200)===null||Yt(o?.value,20)===null?null:ei({text:Yt(o?.text,200),value:Yt(o?.value,20)})}),dose:Yt(a?.title,200)===null||u===null?null:ei({title:Yt(a?.title,200),stats:u,note:Yt(a?.note)}),doseLabel:Yt(t.doseLabel,120),ingredients:p===null?null:ei({label:Yt(s?.label,200),items:p}),proof:Yt(t.proof,300),trust:ti(t.trust,e=>{let t=Ut(e),i=Kt(t?.icon),r=Yt(t?.label,120);return i===null||r===null?null:ei({icon:i,label:r})},6),more:Yt(t.more,120),fine:Yt(t.fine),checkin:Yt(t.checkin,200),detail:nt(t.detail)??null})}function ai(e){let t=Ut(e),i=Yt(t?.title,200),r=ti(t?.items,e=>{let t=Ut(e),i=Yt(t?.title,300),r=Yt(t?.body);return i===null||r===null?null:ei({title:i,body:r,urgent:t?.urgent===true?true:null,callVet:t?.callVet===true?true:null})});return i===null||r===null?null:ei({title:i,items:r})}function si(e){let t=Ut(e),i=Yt(t?.title,200),r=ii(t?.questions,12,300),n=Yt(t?.add,80),l=Yt(t?.added,80);return i===null||r===null||n===null||l===null?null:ei({title:i,questions:r,add:n,added:l})}function ci(e){let t=Ut(e),i=Yt(t?.title,200),r=ti(t?.items,e=>{let t=Ut(e),i=Yt(t?.key,Mt),r=Yt(t?.title,300),n=Yt(t?.action,80),l=Jt(t?.productId),o=Yt(t?.added,80)??(l!==null?n:null);return i===null||r===null||n===null||o===null?null:ei({key:i,productId:l,title:r,body:Yt(t?.body),price:Yt(t?.price,40),was:Yt(t?.was,40),tag:Yt(t?.tag,40),imageUrl:Qt(t?.imageUrl),icon:Kt(t?.icon),kind:Xt(t?.kind),action:n,added:o,owned:t?.owned===true?true:null,detail:nt(t?.detail)??null})},6);return i===null||r===null?null:ei({title:i,items:r})}function di(e){let t=Ut(e),i=Yt(t?.kicker,120),r=Yt(t?.title,120);return t===null||i===null||r===null?null:ei({kicker:i,title:r,icon:Kt(t.icon),track:ti(t.track,e=>{let t=Ut(e),i=Yt(t?.title,120),r=t?.state;return i===null?null:ei({title:i,detail:Yt(t?.detail,120),state:typeof r=="string"&&qt.has(r)?r:null,tag:Yt(t?.tag,40)})},6),heading:Yt(t.heading,200),rows:ti(t.rows,e=>{let t=Ut(e),i=Kt(t?.icon),r=Yt(t?.label,120);if(i===null||r===null)return null;if(t?.fromVet===true)return ei({icon:i,label:r,text:"",fromVet:true});let n=Yt(t?.text,300);return n===null?null:ei({icon:i,label:r,text:n})},6),note:Yt(t.note,300),action:Yt(t.action,80)})}function healthPlanFocusDesignFromWire(e){let t=Ut(e),i=Yt(t?.title,300),r=oi(t?.pick);if(t===null||i===null||r===null)return null;let n=Ut(t.byline);return ei({eyebrow:Yt(t.eyebrow,120),title:i,subtitle:Yt(t.subtitle,300),subtitleNoRecords:Yt(t.subtitleNoRecords,300),headImageUrl:Qt(t.headImageUrl),byline:Yt(n?.name,120)===null?null:ei({name:Yt(n?.name,120),role:Yt(n?.role,120),imageUrl:Qt(n?.imageUrl),shortName:Yt(n?.shortName,60)}),focus:ri(t.focus),routine:li(t.routine),pick:r,signs:ai(t.signs),checkup:si(t.checkup),extras:ci(t.extras),wait:di(t.wait),fine:Yt(t.fine),checkoutRows:ti(t.checkoutRows,e=>{let t=Ut(e),i=Kt(t?.icon),r=Yt(t?.label,60),n=Yt(t?.value,200);return i===null||r===null||n===null?null:ei({icon:i,label:r,value:n})},6)})}function healthPlanPageFromWire(e,petRef){let t=Ut(e);if(t===null||!("page"in t))return null;let i=Ut(t.pet),r=i?.sex;/* @__PURE__ */
|
|
22
|
+
return Object.freeze({petRef:Yt(t.pet_ref,Mt)??petRef,pet:/* @__PURE__ */Object.freeze({name:Yt(i?.name,120),species:Yt(i?.species,60),sex:r==="female"||r==="male"?r:null,breed:Yt(i?.breed,120),weightKg:Zt(i?.weight_kg),weightLb:Zt(i?.weight_lb)}),checkout:t.checkout==="everfur_stripe"?"everfur_stripe":"partner",page:healthPlanFocusDesignFromWire(t.page),vetReviewed:t.vet_reviewed===true,trackingTextsEnabled:t.tracking_texts_enabled===true})}function ui(e){return makeEverfurError("validationFailed",{retryable:false,wireMessage:e})}function pi(e){return makeEverfurError("internalError",{retryable:false,httpStatus:502,wireMessage:`${e}: the response was not the expected shape`})}function hi(e){return makeEverfurError("runtimeDisposed",{retryable:false,wireMessage:`the Everfur runtime is disposed; ${e} was called after unmount`})}var gi=e=>typeof e=="string"&&e.length>0&&e.length<=Mt;function fi(petRef){return`/widget/v1/pets/${encodeURIComponent(petRef)}/plan`}async function mi(e,petRef,t){if(!gi(petRef))return err(ui("petRef must be 1..128 characters"));let i=await e.send("healthPlan.page.read",{method:"GET",path:`${fi(petRef)}/page`,...t?.signal?{signal:t.signal}:{}});if(!i.ok)return err(i.error);let r=healthPlanPageFromWire(i.value,petRef);return r===null?err(pi("healthPlan.page.read")):ok(r)}var bi=/* @__PURE__ */new WeakMap;function wi(e){let t=bi.get(e);if(t!==void 0)return t;let i=yi(e);return bi.set(e,i),i}function yi(e){return{getPage:(petRef,t)=>{if(e.isDisposed)return Promise.resolve(err(hi("getPage")));let{services:i}=e.registry,r=ie(createRequestFunnel({auth:i.authFor(null),...i.errorPolicy?{errorPolicy:i.errorPolicy}:{}}));return mi(r,petRef,t)}}}var xi=mt,vi=/* @__PURE__ */Symbol.for("@everfur/sdk#HealthPlanPageReads@v1");function ki(){let e=globalThis,t=e[vi];if(t instanceof WeakMap)return t;let i=/* @__PURE__ */new WeakMap;return e[vi]=i,i}function Ti(e,t,userRef,petRef,i){let r=ki(),n=r.get(t);n===void 0&&(n=/* @__PURE__ */new Map,r.set(t,n));let l=n,o=`${userRef}\0${petRef}`,a=l.get(o);if(!i&&a!==void 0&&(a.at===null||Date.now()-a.at<xi))return a.promise;let s={at:null,promise:e.getPage(petRef).then(e=>(l.get(o)===s&&(e.ok||Z(e.error)?s.at=Date.now():l.delete(o)),e))};return l.set(o,s),s.promise}function useHealthPlanPage(t){let{userRef:userRef,runtime:i}=u(),r=e.useMemo(()=>wi(i),[i]),n=t.repository,l=n??r,o=e.useCallback((e,t)=>n!==void 0||userRef==null?l.getPage(e):Ti(r,i,userRef,e,t),[n,l,r,i,userRef]),{petRef:petRef}=t,a=t.enabled!==false&&userRef!=null&&petRef!==null,[s,c]=e.useState({phase:"idle",petRef:null,page:null,error:null}),d=e.useRef(0),p=e.useRef(0),h=e.useCallback(async e=>{let t=++d.current;if(!a||petRef===null){c(e=>e.phase==="idle"&&e.petRef===null?e:{phase:"idle",petRef:null,page:null,error:null});return}c(e=>({phase:"loading",petRef:petRef,page:e.petRef===petRef?e.page:null,error:null}));let i=await o(petRef,e);t===d.current&&(i.ok?c({phase:"ready",petRef:petRef,page:i.value,error:null,readyAt:Date.now()}):Z(i.error)?c({phase:"ready",petRef:petRef,page:null,error:null,missing:true,readyAt:Date.now()}):c({phase:"failed",petRef:petRef,page:null,error:i.error}))},[a,petRef,o]),g=e.useCallback(()=>h(true),[h]),f=s.phase==="ready"&&s.petRef===petRef,m=e.useCallback(async()=>{if(!a||petRef===null||!f)return;let e=d.current,t=++p.current,i=await o(petRef,true);e!==d.current||t!==p.current||!i.ok||c(e=>e.phase==="ready"&&e.petRef===petRef?{phase:"ready",petRef:petRef,page:i.value,error:null,readyAt:Date.now()}:e)},[a,petRef,f,o]);bt({lifecycle:t.lifecycle,refreshKey:t.refreshKey,readyAt:f?s.readyAt??null:null,revalidate:()=>{m()},refresh:()=>{f?m():g()}}),e.useEffect(()=>(h(false),()=>{d.current+=1}),[h]);let b=a&&s.petRef!==petRef;return e.useMemo(()=>({phase:b?"loading":s.phase,page:b?null:s.page,error:b?null:s.error,missing:!b&&s.missing===true,refresh:g}),[b,s,g])}function useHealthPlanSubscriptionRepository(){let{runtime:t}=u();return e.useMemo(()=>createHealthPlanSubscriptionRepository(t),[t])}var ji=/* @__PURE__ */Object.freeze({chat:/* @__PURE__ */Object.freeze(["chat.message.create"]),records:/* @__PURE__ */Object.freeze(["records.upload.create","records.record.read"]),recordsClinic:/* @__PURE__ */Object.freeze(["records.clinic.create"]),video:/* @__PURE__ */Object.freeze(["video.gait.execute"]),photo:/* @__PURE__ */Object.freeze(["photo.checkup.execute"]),animations:/* @__PURE__ */Object.freeze(["animations.state.read"]),televet:/* @__PURE__ */Object.freeze(["televet.visit.create"]),texting:/* @__PURE__ */Object.freeze(["sms.identity.read","sms.identity.update"]),healthPlan:/* @__PURE__ */Object.freeze(["shop.plan.read","shop.plan.update"])});function requires(e){return ji[e]}function decideCapability(e,t,i){let r=requires(e),n=/* @__PURE__ */new Map;for(let e of t)n.set(e.resource,e);if(i?.isPending===true&&r.some(e=>!n.has(e)))return zi({name:e,enabled:false,isPending:true,limits:{}});let l=Si(r,n);return r.filter(e=>n.get(e)?.granted!==true).length===0?zi({name:e,enabled:true,isPending:false,limits:l}):zi({name:e,enabled:false,isPending:false,limits:l,disabled:Ii(r,n)})}function Si(e,t){let i={};for(let r of e){let e=t.get(r)?.limits;if(e)for(let[t,r]of Object.entries(e)){let e=i[t];i[t]=e===void 0?r:Math.min(e,r)}}return i}function Ii(e,t){for(let i of e){let e=t.get(i)?.disabled;if(e)/* @__PURE__ */
|
|
22
23
|
return Object.freeze({reason:e.reason,level:e.level,recoverable:e.recoverable})}/* @__PURE__ */
|
|
23
|
-
return Object.freeze({reason:userFacingError("accessDenied"),level:"user_entitlement",recoverable:false})}function Si(e){let t={name:e.name,enabled:e.enabled,isPending:e.isPending,limits:/* @__PURE__ */Object.freeze({...e.limits})};return e.disabled!==void 0&&(t.disabled=e.disabled),/* @__PURE__ */Object.freeze(t)}function useCapability(t){let{runtime:i}=u(),r=i.entitlements,n=e.useSyncExternalStore(r.subscribe,r.getSnapshot,r.getSnapshot);return e.useMemo(()=>decideCapability(t,n.decisions,{isPending:n.isPending}),[t,n])}var Ii=/* @__PURE__ */Object.freeze({loading:"Loading",retry:"Try again",signedOut:"Sign in required",addToCart:"Add to cart",added:"Added",remove:"Remove",checkout:"Checkout",subtotal:"Subtotal",sample:"Sample",cartEmpty:"Your cart is empty.",choosePet:"Choose a pet",emptyTitle:"",emptyBody:"",emptyAsk:""}),zi=/* @__PURE__ */Object.freeze({emptyTitle:true,emptyBody:true,emptyAsk:true}),Di=/* @__PURE__ */Object.freeze({dna:"",records:"Records",inside:"Inside",profile:""}),Ci=/* @__PURE__ */Object.freeze({planTitle:e=>`${e}'s care plan`,cartLabel:e=>`${e} cart`});/* @__PURE__ */Object.freeze([...Object.keys(Ii).filter(e=>zi[e]===true&&Ii[e]==="").map(e=>`HEALTH_PLAN_COPY.${e}`),...["profile"].filter(e=>Di[e]==="").map(e=>`HEALTH_PLAN_REASON_LABELS.${e}`)]);function healthPlanPetWords(e,t){let i=e?.trim()??"",r=i===""?"your pet":i,n=i===""?"Your pet":i;return{name:r,Name:n,poss:"her",Poss:"Her",obj:"her"}}var Hi=e=>e===null?"":`${e.productName} renews every ${e.intervalDays} days at ${e.box??""} until you cancel; skip or cancel anytime in the app.`;function healthPlanFocusCopyFor(e){let t=healthPlanPetWords(e.name),i=e=>e.petName?.trim()||t.name,NameOf=e=>e.petName?.trim()||t.Name,r=/* @__PURE__ */Object.freeze({jumpKicker:(e,i)=>i?`In ${t.poss} plan, every ${e.intervalDays} days`:e.offer?`${e.discountPercent}% off ${t.poss} first box`:e.intervalDays>0?`Ships every ${e.intervalDays} days`:r.onceLine(e),optionsLabel:"How to buy",subscribe:"Subscribe",bestValue:"Best value",subscribeLine:e=>e.offer?`First box, then ${e.box??""}`:`${e.box??""} every ${e.intervalDays} days`,priceLine:e=>e.offer?`${e.discountPercent}% off the first box. Ships every ${e.intervalDays} days.`:e.intervalDays>0?`Ships every ${e.intervalDays} days.`:r.onceOffer(e),once:"One box",onceLine:e=>e.onceDiscountPercent>0?`${e.onceDiscountPercent}% off, ships once`:"Ships once",buyOnce:e=>`Buy one box, ${e.once??e.box??""}`,subscribed:"Subscribed",subscribedLine:(e,t)=>t===null?`Every ${e.intervalDays} days`:`Every ${e.intervalDays} days · next box ${t}`,manage:"Manage",checkoutKicker:"Checkout",checkoutTitle:e=>`Checkout: ${e.productName}`,checkoutOffer:e=>`${e.discountPercent}% off your first box.`,shipsEvery:"Ships every",days:e=>`${e} days`,buyOnceOption:"Buy once",checkoutGo:(e,t,i)=>`${t?"Subscribe":"Buy now"} · ${i} today`,renews:e=>`Renews every ${e.intervalDays} days at ${e.box??""} until you cancel; skip or cancel anytime in the app.`,onceFine:"One box, ships tomorrow.",onceOffer:e=>e.onceDiscountPercent>0?`${e.onceDiscountPercent}% off, ships once.`:"Ships once.",checkoutNote:"",close:"Close",startedTitle:e=>`${NameOf(e)}'s plan has started.`,orderedTitle:()=>"Order placed.",startedWhat:e=>`${e.productName} ships tomorrow.`,startedNote:"",startedSteps:"What happens next",tomorrow:"Tomorrow",firstBoxShips:`${t.Poss} first box ships.`,trackingComesByText:"Tracking comes by text.",checkin:e=>e===null?"A 2-week check-in by text.":`A 2-week check-in by text: ${e}`,refill:`A text 3 days before ${t.poss} next box. Reply SKIP to skip it.`,nextBoxShips:e=>`${t.Poss} next box ships, ${e.box??""}.`,startedDone:`Back to ${t.poss} plan`,manageKicker:"Your subscription",manageTitle:e=>`Manage ${e.productName}`,skip:"Skip the next box",cancel:"Cancel subscription",skipped:(e,i)=>i===null?"Skipped.":`Skipped. ${t.Poss} next box ships ${i}.`,cancelled:e=>`${e.productName} is cancelled. Restart it from ${t.poss} plan anytime.`,orders:"Orders",startedHeader:"Subscribed",placedHeader:"Order placed",cartCheckoutTitle:"Checkout",orderNote:"",cartLabel:e=>e>0?`Cart, ${e} item${e>1?"s":""}`:"Cart, empty",addToCart:e=>`Add to cart · ${e}`,viewCart:"View cart",addedToCart:(e,t)=>`${e.productName} is in your cart${t?", as a subscription":""}.`,removedFromCart:e=>`${e} is out of your cart.`,cartTitle:"Cart",cartEmptyTitle:"Your cart is empty",cartEmptyBody:e=>`${NameOf(e)}'s plan pick lands here when you add it.`,seeOrders:`See ${t.poss} orders`,quantityLabel:e=>`How many: ${e}`,fewer:"One fewer",more:"One more",remove:"Remove",cartSubLine:e=>e.offer?`First box ${e.discountPercent}% off, then ${e.box??""} every ${e.intervalDays} days`:`Every ${e.intervalDays} days`,cartOnceLine:(e,i)=>i?`An extra box. ${t.Poss} plan keeps shipping.`:e.onceDiscountPercent>0?`One box, ${e.onceDiscountPercent}% off`:"One box",cartModeLabel:e=>`How to buy ${e}`,cartModeSubscribe:e=>e.offer?`Subscribe, ${e.discountPercent}% off the first box`:"Subscribe",cartModeOnce:e=>e.onceDiscountPercent>0?`One box, ${e.onceDiscountPercent}% off`:"One box",subtotal:"Subtotal",shipping:"Shipping",shippingValue:"",shippingTag:"",total:"Total",dueToday:"Due today",thenRenews:e=>`Then ${e.productName}`,renewsEvery:e=>`${e.box??""} every ${e.intervalDays} days`,checkoutCart:e=>`Checkout · ${e}`,cartOneAtATime:"",cartSubscriptionApart:"",cartItemSubscription:e=>`Subscription, every ${e.intervalDays} days`,cartItemQuantity:e=>`Qty ${e}`,placeOrder:(e,t)=>`${t?"Place order and subscribe":"Place order"} · ${e}`,cartFine:e=>`${e===null?"":`${Hi(e)} `}Ships tomorrow.`,placedSteps:"What's coming",placedShips:"It ships.",placedArrives:"It arrives at home.",viewOrder:"View order",herSubscription:`${t.Poss} subscription`,nextBox:e=>`Next box ${e}`,everyDays:e=>`Every ${e} days`,ordersHeading:e=>e?"Orders":`${t.Poss} orders`,ordersFine:"",ordersEmptyTitle:"No orders yet",ordersEmptyBody:e=>`The boxes from ${i(e)}'s plan show up here.`,moreOrders:"",orderSteps:["Ordered","Shipped","Out for delivery","Delivered"],subscriptionBox:"Subscription box",orderTitle:e=>e===null?"Order":`Order ${e}`,arrivesBy:e=>`Arrives by ${e}`,deliveredOn:e=>`Delivered ${e}`,expected:e=>`Expected ${e}`,tracking:"Tracking",trackingByText:"The tracking number comes by text when it ships.",trackOn:e=>`Track on ${e}`,trackLink:"",inThisOrder:"In this order",orderItemLine:(e,t)=>`Qty ${e}${t?" · subscription box":""}`,paidWith:"Paid with",buyAgain:"Buy again",orderHelp:"Get help with this order",addWeightTitle:`Add ${t.poss} weight to size ${t.poss} dose`,addWeightBody:`From a home scale or ${t.poss} last vet visit.`,connectRecordsTitle:`Connect ${t.poss} vet records`,connectRecordsBody:`${t.Poss} weight, visits and labs make ${t.poss} plan sharper.`,weightKicker:`${t.Poss} weight`,weightTitle:e=>`Add ${i(e)}'s weight`,weightBody:`From a home scale or ${t.poss} last vet visit. ${t.Poss} plan uses it to size ${t.poss} dose.`,weightField:`${t.Poss} weight`,weightUnit:"lb",weightUnitKg:"kg",weightErrorKg:"Enter your pet’s weight",weightError:`Enter ${t.poss} weight in pounds, like 14.1.`,weightSave:`Save ${t.poss} weight`,weightSaved:e=>`Saved: ${e} lb. ${t.Poss} dose is sized for ${t.obj}.`,weightSavedKg:e=>`Saved: ${e} kg. ${t.Poss} dose is sized for ${t.obj}.`,checkoutFailed:"That didn't go through. Please try again.",builtWith:e=>`Built with ${e}`,fromVet:e=>`From ${e}`,waitVetTips:e=>`Free tips from ${e}, built around that risk`,signalsFit:e=>`${e} of ${e} signals fit ${t.Name}`,signalsValue:e=>`${e}/${e}`,noPick:`No supplement for this one. ${t.Poss} vet comes first.`,callYourVet:"Call your vet today",callAVet:"Call a vet today",saveForCheckup:`Save for ${t.poss} next checkup`,savedForCheckup:`Saved for ${t.poss} next checkup`,blanksLabel:`${t.Poss} three blanks`,blanksAsked:e=>`Asked ${e}`,blanksAskedNoClinic:"",blanksWaitPill:"2 to 5 days",blanksFilledKicker:`From ${t.poss} vet records`,blanksFilled:(e,t)=>`${e} of ${t} filled`,blanksWeight:`Keep ${t.obj} at `,blanksWeightSource:`From ${t.poss} vet visits`,blanksDose:(e,t)=>`${e} of ${t}`,blanksDoseSource:`Sized to ${t.poss} weight`,blanksShots:`${t.Poss} next shots are due `,blanksShotsSource:`From ${t.poss} clinic`,blankEmpty:"blank",recordsLanded:`${t.Poss} records are in. ${t.Poss} plan now uses ${t.poss} weight and ${t.poss} visits.`,todayLabel:`${t.Poss} Health Plan`,poweredBy:"powered by",poweredByName:"Everfur",seeMore:"See more",seeLess:"See less",reportActions:"Actions to take",openReport:`Open it in ${t.poss} report`,askReport:"Ask about it",fullOpen:`See ${t.poss} full plan`,fullOpenLine:`${t.Poss} vet, reviews and ${t.poss} checkup`,fullClose:`Show ${t.poss} brief plan`,fullCloseLine:`${t.Poss} risk, tips, pick and signs`,hopeNoted:e=>`Noted. When ${t.poss} results land, we'll start with ${e}.`,productLink:e=>`${e}, see the product`,productPhotos:e=>`${e} photos, swipe for more`,shopAll:"Shop all",madeFor:`Made for ${t.name}`,ratingLine:e=>`· ${e} reviews`,productOffer:e=>`${e.discountPercent}% off ${t.poss} first box`,productEvery:e=>`Every ${e.intervalDays} days`,productOnce:e=>e.onceDiscountPercent>0?`One box, ${e.onceDiscountPercent}% off`:"One box",productExtraBox:"An extra box",productOnPlan:e=>`On ${t.poss} plan, every ${e.intervalDays} days. This adds one extra box.`,quantity:"Quantity",description:"Description",readMore:"Read more",readLess:"Read less",whatsInside:"What's inside",howMuch:"How much",reviewsTitle:"Reviews",reviewCount:e=>`${e} reviews`,reviewsSwipe:"Reviews, swipe for more",readAllReviews:e=>`Read all ${e} reviews`,starsLabel:e=>`${e} out of 5 stars`,buyNow:"Buy now"});return r}var Fi=healthPlanFocusCopyFor({});function formatHealthPlanDay(e,t){if(e===null||!/^\d{4}-\d{2}-\d{2}$/.test(e))return null;let i=/* @__PURE__ */new Date(`${e}T00:00:00Z`);if(Number.isNaN(i.getTime()))return null;try{return new Intl.DateTimeFormat(t??"en-US",{month:"short",day:"numeric",timeZone:"UTC"}).format(i)}catch{return e}}var _i=e=>/* @__PURE__ */Object.freeze(e.map(e=>/* @__PURE__ */Object.freeze(e)));function Oi(e){let t={};for(let[i,r]of Object.entries(e))r!==void 0&&(t[i]=r);return t}function Ei(e){let t=e?.focus;if(!t)return _i([]);let i=e?.byline,r=t.risk?.kind,n=r==="risk"||r==="watch"||r==="clear"?r:void 0;return _i([Oi({kicker:t.kicker,sources:t.sources?.map(e=>({label:e.label,kind:e.kind==="dna"?"dna":"records"})),title:t.title,signals:t.risk?[{key:"risk",lead:t.risk.lead,text:t.risk.body??"",tone:n,dot:n===void 0?"space":true}]:[],score:t.odds?{label:t.odds.label,tag:t.odds.tag,was:t.odds.from,now:t.odds.to,since:t.odds.toLabel}:void 0,quote:t.quote&&i?{text:t.quote.text,by:i.shortName??void 0,image:i.imageUrl??null,tag:t.quote.tag}:void 0})])}function Pi(e){let t=e?.routine?.steps??[],i=e?.byline?.shortName;return _i(t.map((e,t)=>Oi({key:e.title,number:String(t+1),title:e.title,text:e.body||void 0,foot:e.fromVet?i?Fi.fromVet(i):void 0:e.source??void 0,tone:e.tone??"y"})))}function Li(e,t){return formatHealthPlanPrice(e.price,e.currency,t)??void 0}function Ai(e,t){return Bi(e?.items??[],t)}function Bi(e,t){return _i(e.map(e=>Oi({key:e.productId,name:e.title,image:e.imageUrl,imageAlt:e.title,kicker:e.category??void 0,price:Li(e,t),badge:e.sample?Ii.sample:void 0})))}function Ri(e,t){return _i(healthPlanCart(e??null).items.map(e=>Oi({key:e.productId,name:e.title,image:e.imageUrl,imageAlt:e.title,meta:e.category??void 0,price:Li(e,t)})))}function Vi(e,t){let i=healthPlanCart(e??null),r=formatHealthPlanPrice(i.subtotal,i.currency,t);return i.count===0||r===null?_i([]):_i([{rows:[{key:"subtotal",term:Ii.subtotal,value:r}],count:i.count}])}function $i(e,t){return _i((e??[]).map(e=>Oi({key:e.orderId,number:e.orderId,title:e.title??"",meta:formatHealthPlanDay(e.shipsOn??e.createdAt??null,t)??void 0,total:formatHealthPlanPrice(e.total??e.price*(e.quantity??1),e.currency,t)??void 0})))}var Wi=["plan.needs","plan.tips"],Mi=["plan.items","cart.lines","cart.summary"];function Ni(t){let{userRef:userRef,activePet:i,scopeEpoch:r}=u(),n=useCapability("healthPlan").enabled,petRef=t.petRef===void 0?i??null:t.petRef,{sources:l,locale:o}=t,a=n&&userRef!==null&&petRef!==null,s=a&&Wi.some(e=>l.has(e)),c=a&&Mi.some(e=>l.has(e)),d=a&&l.has("orders.recent"),p=useHealthPlanPage({petRef:petRef,enabled:s}),h=useEverfurHealthPlanRepository(),g=at(()=>new re(h),[h,userRef,r]);e.useEffect(()=>{g.load(c?petRef:null)},[g,c,petRef]);let f=e.useSyncExternalStore(g.subscribe,g.getSnapshot,g.getSnapshot),m=useHealthPlanSubscriptionRepository(),[b,w]=e.useState(null);return e.useEffect(()=>{if(!d||petRef===null)return;let e=true;return ne(m,petRef).then(t=>{e&&(t.ok?w({petRef:petRef,list:t.value.orders}):Q(t.error)&&w({petRef:petRef,list:[]}))}),()=>{e=false}},[d,petRef,m]),e.useMemo(()=>{let e={};if(s&&p.phase==="ready"){let t=p.missing?null:p.page?.page??null;e["plan.needs"]=Ei(t),e["plan.tips"]=Pi(t)}if(c&&f.petRef===petRef){let t=f.phase==="ready"?f.plan:f.phase==="failed"&&Q(f.error)?null:void 0;t!==void 0&&(e["plan.items"]=Ai(t,o),e["cart.lines"]=Ri(t,o),e["cart.summary"]=Vi(t,o))}return d&&b!==null&&b.petRef===petRef&&(e["orders.recent"]=$i(b.list,o)),e},[s,c,d,p.phase,p.missing,p.page,f,b,petRef,o])}var Gi="everfur.slot/1";var qi=/* @__PURE__ */Symbol("bad");function Ui(e){return e!==null&&typeof e=="object"&&!Array.isArray(e)}function Yi(e,t,i){return typeof e=="string"&&e.length>=t&&e.length<=i?e:qi}function Xi(e,t){return e==null?void 0:Yi(e,0,t)}function Ki(e){return e===void 0?{}:Ui(e)?e:qi}function Qi(e){let t=Ki(e);if(t===qi)return qi;for(let e of Object.values(t))if(typeof e!="string")return qi;return t}function Ji(e,t,i){return typeof e=="number"&&Number.isInteger(e)&&e>=t&&e<=i?e:qi}function Zi(e){if(e==null)return;if(e==="hide")return"hide";if(!Ui(e))return qi;let t=Yi(e.type,1,64),i=Xi(e.variant,64),r=Ki(e.settings),n=Qi(e.bind),l=Qi(e.actions);return t===qi||i===qi||r===qi||n===qi||l===qi?qi:/* @__PURE__ */Object.freeze({type:t,...i?{variant:i}:{},settings:/* @__PURE__ */Object.freeze({...r}),bind:/* @__PURE__ */Object.freeze({...n}),actions:/* @__PURE__ */Object.freeze({...l})})}function er(e){if(e==null)return;if(!Ui(e))return qi;let t=Yi(e.source,0,80);return t===qi||e.op!=="present"&&e.op!=="absent"?qi:/* @__PURE__ */Object.freeze({source:t,op:e.op})}function tr(e){if(!Ui(e))return qi;let t=Yi(e.id,1,64),i=Yi(e.type,1,64),r=Xi(e.variant,64),n=Ki(e.settings),l=Qi(e.bind),o=Xi(e.repeat,80),a=er(e.visibleIf),s=Qi(e.actions),c=Zi(e.fallback);return t===qi||i===qi||r===qi||n===qi||l===qi||o===qi||a===qi||s===qi||c===qi?qi:/* @__PURE__ */Object.freeze({id:t,type:i,...r?{variant:r}:{},settings:/* @__PURE__ */Object.freeze({...n}),bind:/* @__PURE__ */Object.freeze({...l}),...o?{repeat:o}:{},...a?{visibleIf:a}:{},actions:/* @__PURE__ */Object.freeze({...s}),...c?{fallback:c}:{}})}var ir=/^everfur\.slot\/(\d{1,4})$/,rr=/<\s*[A-Za-z/!?]|&[A-Za-z#][A-Za-z0-9]*;/,nr=/[\u0000-\u0008\u000b-\u001f\u007f\u2028\u2029]/,lr=/^[a-z][a-zA-Z0-9]*(\.[a-zA-Z0-9]+){0,4}$/,or=/^#[0-9a-fA-F]{6}$/,ar=1e4;function sr(e){let t=0;for(let i=0;i<e.length;i++){let r=e.charCodeAt(i);r<128?t+=1:r<2048?t+=2:r>=55296&&r<=56319&&i+1<e.length?(t+=4,i++):t+=3}return t}function cr(e){return e.trim()!==""&&!rr.test(e)&&!nr.test(e)}function dr(e){try{return sr(JSON.stringify(e)??"")}catch{return Number.POSITIVE_INFINITY}}function ur(e){let t=e!==null&&typeof e=="object"?e.schema:void 0;if(typeof t!="string")return"unparseable";let i=ir.exec(t);return i===null?"unparseable":Number(i[1])>1?"newer_schema":null}function pr(e){let t={};for(let[i,r]of Object.entries(e))lr.test(i)&&(typeof r=="string"&&or.test(r)||typeof r=="number"&&Number.isFinite(r)&&Math.abs(r)<=ar)&&(t[i]=r);/* @__PURE__ */
|
|
24
|
-
return Object.freeze(t)}function
|
|
25
|
-
return Object.freeze(t)}function
|
|
26
|
-
return Object.freeze({settings:{},bind:{},actions:{},...e})}var
|
|
27
|
-
return Object.freeze({schema:Gi,slot:e,docVersion:null,minBlocks:1,tokens:{},parts:/* @__PURE__ */Object.freeze([...t]),copy:{}})}var yr=br,xr=/* @__PURE__ */Object.freeze({"health_plan.focus":wr("health_plan.focus",[yr.focus,yr.tips]),"today.health":wr("today.health",[yr.focus,yr.tips]),"shop.shelf":wr("shop.shelf",[yr.shelf]),"shop.cart":wr("shop.cart",[yr.cartLines,yr.cartSummary]),"shop.orders":wr("shop.orders",[yr.orders])});function vr(e){return Object.prototype.hasOwnProperty.call(xr,e)?xr[e]??null:null}function kr(e){return wr(`part.${e.toLowerCase()}`,[br[e]])}function Tr(e){if(typeof e=="number")return Ir(e);if(typeof e!="string")return null;let t=e.trim();if(t.length===0)return null;if(t.startsWith("#"))return jr(t.slice(1));if(t.toLowerCase().startsWith("0x"))return jr(t.slice(2));if(t.toLowerCase().startsWith("rgb"))return Sr(t);if(/^[0-9a-fA-F]+$/.test(t)){let e=jr(t);if(e!==null)return e}return/^\d+$/.test(t)?Ir(Number.parseInt(t,10)):null}function jr(e){let t=e.trim();if(!/^[0-9a-fA-F]+$/.test(t))return null;if(t.length===3)return{r:Dr(t[0]),g:Dr(t[1]),b:Dr(t[2]),a:1};if(t.length===6)return{r:zr(t,0),g:zr(t,2),b:zr(t,4),a:1};if(t.length===8){let e=zr(t,0);return{r:zr(t,2),g:zr(t,4),b:zr(t,6),a:e/255}}return null}function Sr(e){let t=e.indexOf("("),i=e.indexOf(")");if(t<0||i<0||i<t)return null;let r=e.slice(t+1,i).split(",").map(e=>e.trim());if(r.length<3)return null;let n=Cr(Number(r[0])),l=Cr(Number(r[1])),o=Cr(Number(r[2]));if(n===null||l===null||o===null)return null;let a=1;if(r.length>=4){let e=Number(r[3]);if(!Number.isFinite(e))return null;a=Math.min(1,Math.max(0,e))}return{r:n,g:l,b:o,a:a}}function Ir(e){if(!Number.isFinite(e))return null;let t=Math.trunc(e)>>>0,i=t>>>24&255;return{r:t>>>16&255,g:t>>>8&255,b:t&255,a:i===0?1:i/255}}function zr(e,t){return Number.parseInt(e.slice(t,t+2),16)}function Dr(e){return Number.parseInt(`${e??"0"}${e??"0"}`,16)}function Cr(e){return Number.isFinite(e)?Math.min(255,Math.max(0,Math.round(e))):null}function Hr(e,t,i){return`#${Fr(e)}${Fr(t)}${Fr(i)}`.toUpperCase()}function Fr(e){return e.toString(16).padStart(2,"0")}var _r="#111111",Or="#FFFFFF",Er="#000000";function readableOn(e){let t=Tr(e);if(t===null)return Or;let i=Ar(t),r=Ar({r:17,g:17,b:17}),n=Ar({r:255,g:255,b:255});return Rr(i,n)>=Rr(i,r)?Or:_r}function Pr(e,t){let i=readableOn(e);return contrastRatio(i,e)>=t?i:contrastRatio(Or,e)>=contrastRatio(Er,e)?Or:Er}function Lr(e){let t=t=>e.reduce((e,i)=>Math.min(e,contrastRatio(t,i)),Number.POSITIVE_INFINITY);return t(Or)>=t(Er)?Or:Er}function Ar(e){let t=Br(e.r/255),i=Br(e.g/255),r=Br(e.b/255);return.2126*t+.7152*i+.0722*r}function Br(e){return e<=.03928?e/12.92:Math.pow((e+.055)/1.055,2.4)}function Rr(e,t){let i=Math.max(e,t),r=Math.min(e,t);return(i+.05)/(r+.05)}function contrastRatio(e,t){let i=Tr(e),r=Tr(t);if(i===null||r===null)return 1;let n=r.a>=1?r:{...r},l=i.a>=1?i:Vr(i,n);return Rr(Ar(l),Ar(n))}function Vr(e,t){let i=e.a,r=(e,t)=>Math.round(e*i+t*(1-i));return{r:r(e.r,t.r),g:r(e.g,t.g),b:r(e.b,t.b),a:1}}function $r(e,t){let i=Tr(e),r=Tr(t);if(i===null||r===null)return null;let n=i.a>=1?i:Vr(i,{...r});return Hr(n.r,n.g,n.b)}var Wr=.05;function Mr(e,t,i,r){let n=t[0];if(n===void 0)return i;let l=e=>t.every(t=>contrastRatio(e,t)>=r);if(Tr(e)===null)return i;if(l(e))return e;let o=$r(e,n),a=o===null?null:Tr(o),s=Tr(i);if(a===null||s===null)return i;for(let e=1;e<1/Wr;e+=1){let t=e*Wr,i=(e,i)=>Math.round(e+(i-e)*t),r=Hr(i(a.r,s.r),i(a.g,s.g),i(a.b,s.b));if(l(r))return r}return i}var Nr=/* @__PURE__ */Object.freeze({display:/* @__PURE__ */Object.freeze({size:29,lineHeight:1.06,weight:"800",face:"heading",letterSpacing:-.01,uppercase:false,tier:"heading"}),title:/* @__PURE__ */Object.freeze({size:23,lineHeight:1.12,weight:"800",face:"heading",letterSpacing:-.01,uppercase:false,tier:"heading"}),cardTitle:/* @__PURE__ */Object.freeze({size:19,lineHeight:1.22,weight:"800",face:"sans",letterSpacing:0,uppercase:false,tier:"heading"}),rowTitle:/* @__PURE__ */Object.freeze({size:15.5,lineHeight:1.4,weight:"700",face:"sans",letterSpacing:0,uppercase:false,tier:"content"}),body:/* @__PURE__ */Object.freeze({size:15,lineHeight:1.5,weight:"400",face:"sans",letterSpacing:0,uppercase:false,tier:"content"}),message:/* @__PURE__ */Object.freeze({size:15.5,lineHeight:1.5,weight:"400",face:"sans",letterSpacing:0,uppercase:false,tier:"content"}),bodySmall:/* @__PURE__ */Object.freeze({size:14.5,lineHeight:1.4,weight:"400",face:"sans",letterSpacing:0,uppercase:false,tier:"content"}),caption:/* @__PURE__ */Object.freeze({size:13,lineHeight:1.4,weight:"400",face:"sans",letterSpacing:0,uppercase:false,tier:"content"}),label:/* @__PURE__ */Object.freeze({size:10.5,lineHeight:1.4,weight:"400",face:"mono",letterSpacing:.05,uppercase:true,tier:"compact"}),eyebrow:/* @__PURE__ */Object.freeze({size:15,lineHeight:1.5,weight:"400",face:"mono",letterSpacing:.07,uppercase:true,tier:"compact"}),chip:/* @__PURE__ */Object.freeze({size:15,lineHeight:1.3,weight:"600",face:"sans",letterSpacing:0,uppercase:false,tier:"compact"}),tab:/* @__PURE__ */Object.freeze({size:16,lineHeight:1.5,weight:"600",face:"sans",letterSpacing:0,uppercase:false,tier:"compact"}),button:/* @__PURE__ */Object.freeze({size:15,lineHeight:1.5,weight:"700",face:"sans",letterSpacing:0,uppercase:false,tier:"control"}),badge:/* @__PURE__ */Object.freeze({size:12,lineHeight:1.5,weight:"700",face:"sans",letterSpacing:0,uppercase:false,tier:"badge"})});var Gr=Object.freeze;function deepFreeze(e){if(e!==null&&typeof e=="object"&&!Object.isFrozen(e)){Gr(e);for(let t of Object.keys(e))deepFreeze(e[t])}return e}var qr=/* @__PURE__ */Object.freeze({content:0,heading:2,control:1.8,compact:1.5,badge:1.3});var Ur={xs:4,sm:8,md:12,lg:16,xl:24,xxl:32},Yr={tile:5,xs:6,sm:10,md:14,lg:20,xl:28,pill:500},Xr={nano:8,small:9,micro:10,tiny:11,caption:13,bodyTight:15,body:17,subtitle:20,heading:22,verdict:24},Kr={tight:1.15,snug:1.3,normal:1.4,relaxed:1.55},Qr={regular:"400",medium:"500",bold:"700"},Jr={eyebrow:1,monoWide:.9,headerBrand:-.42,tight:-.35},Zr=0,en="System",tn="monospace",rn=["content","heading","control","compact","badge"];function nn(e){let t={};for(let i of rn)t[i]=e;return t}var ln=[];function on(){return{family:en,mono:tn,fontUrl:null,families:{regular:en,medium:en,bold:en,mono:tn,monoMedium:tn,monoBold:tn},namedFaces:{regular:false,medium:false,bold:false,mono:false,monoMedium:false,monoBold:false},fontUrls:{},size:Xr,tierSizes:nn(Xr),lineHeight:Kr,weight:Qr,letterSpacing:Jr,scale:1,maxScale:Zr,scaleCaps:qr,headingFamily:null,headingWeight:null,fontSources:ln,roles:Nr,typeScale:1}}var an={},sn=/* @__PURE__ */Object.freeze({standard:/* @__PURE__ */Object.freeze([.2,0,0,1]),emphasized:/* @__PURE__ */Object.freeze([.2,.8,.2,1]),exit:/* @__PURE__ */Object.freeze([.4,0,1,1])});function cssCubicBezier(e){return`cubic-bezier(${e.join(", ")})`}var cn={duration:{instant:80,fast:140,normal:220,slow:320},spring:{gentle:{damping:18,stiffness:200}},easing:{standard:cssCubicBezier(sn.standard),emphasized:cssCubicBezier(sn.emphasized),exit:cssCubicBezier(sn.exit)},reducedMotion:false},dn={brand:"#10462E",brandSoft:"rgba(16,70,46,0.10)",brandSofter:"rgba(16,70,46,0.15)",brandBorder:"rgba(16,70,46,0.18)",borderHairlineGreen:"rgba(16,70,46,0.25)",brandBorderStrong:"rgba(16,70,46,0.55)",brandInk:"#10462E",linkInk:"#10462E",surface:"#FFFFFF",surfaceCream:"#FFFFFF",surfaceSubtle:"#F1F5F2",background:"#FFFFFF",borderRingCream:"#E4E4E4",chatGround:"#FFFFFF",composerFill:"#FFFFFF",composerBorder:"rgba(16,70,46,0.75)",shadow:"#0B3421",text:{primary:"#000000",secondary:"#0E462E",muted:"#6B6B6B",placeholder:"rgba(61,61,61,0.75)",onBrand:"#FFFFFF",metaCool:"#3D3D3D",timestamp:"rgba(61,61,61,0.75)"},primary:"#10462E",onPrimary:"#FFFFFF",accent:"#10462E",onAccent:"#FFFFFF",accentEdge:"#07C168",success:"#07C168",danger:"#C03410",onDanger:"#FFFFFF",errorRed:"#C03410",warningStrong:"#A45610",cautionAccent:"#D9821D",riskConcern:"#EFA700",sentiment:{up:"#07C168",neutral:"#FBC558",down:"#FF1B00"},badgeBgPositive:"rgba(7,193,104,0.12)",badgeBgCaution:"rgba(217,130,29,0.14)",badgeBgCritical:"rgba(192,52,16,0.06)",badgeBgNeutral:"rgba(107,107,107,0.12)",bubbleUser:"#10462E",bubbleAssistant:"#FFFFFF",bubbleVet:"#FFC3BC",onBubbleVet:"#000000",skeleton:"#E9F1E9",scanButtonPink:"#FFC3BC",highlight:"#FFC3BC",onHighlight:"#000000",mark:"#07C168",controlEdge:"rgba(16,70,46,0.18)",structureEdge:"rgba(16,70,46,0.25)",primaryEdge:"#10462E",checkupCardLowRiskBg:"rgba(7,193,104,0.10)",checkupCardConcernBg:"rgba(239,167,0,0.10)",info:"#10462E",badgeBgInfo:"rgba(16,70,46,0.10)",infoEdge:"rgba(16,70,46,0.25)"},un=deepFreeze({brightness:"light",highContrast:false,meta:{displayName:"Everfur",logoUrl:null,placeholder:null,hidePoweredBy:false,assistantAvatarUrl:null},color:dn,space:Ur,radius:Yr,type:on(),motion:cn,slots:an}),pn={brand:"#6BD39A",brandSoft:"rgba(107,211,154,0.12)",brandSofter:"rgba(107,211,154,0.18)",brandBorder:"rgba(107,211,154,0.22)",borderHairlineGreen:"rgba(107,211,154,0.28)",brandBorderStrong:"rgba(107,211,154,0.55)",brandInk:"#6BD39A",linkInk:"#6BD39A",surface:"#1C1F23",surfaceCream:"#23272C",surfaceSubtle:"#23272C",background:"#15171A",borderRingCream:"#3A3F45",chatGround:"#1C1F23",composerFill:"#23272C",composerBorder:"rgba(107,211,154,0.75)",shadow:"#000000",text:{primary:"#F5F3F0",secondary:"#A9E4C4",muted:"#9A9A9A",placeholder:"rgba(255,255,255,0.55)",onBrand:"#0E1F17",metaCool:"#C9C9C9",timestamp:"rgba(245,243,240,0.7)"},primary:"#6BD39A",onPrimary:"#0E1F17",accent:"#6BD39A",onAccent:"#0E1F17",accentEdge:"#34D888",success:"#07C168",danger:"#F87171",onDanger:"#0E1F17",errorRed:"#FF6B5B",warningStrong:"#F0A35E",cautionAccent:"#D9821D",riskConcern:"#EFA700",sentiment:{up:"#07C168",neutral:"#FBC558",down:"#FF1B00"},badgeBgPositive:"rgba(7,193,104,0.18)",badgeBgCaution:"rgba(217,130,29,0.20)",badgeBgCritical:"rgba(185,28,28,0.22)",badgeBgNeutral:"rgba(255,255,255,0.10)",bubbleUser:"#6BD39A",bubbleAssistant:"#1C1F23",bubbleVet:"#FFC3BC",onBubbleVet:"#000000",skeleton:"#23272C",scanButtonPink:"#FFC3BC",highlight:"#605051",onHighlight:"#F5F3F0",mark:"#07C168",controlEdge:"rgba(107,211,154,0.22)",structureEdge:"rgba(107,211,154,0.28)",primaryEdge:"#6BD39A",checkupCardLowRiskBg:"rgba(7,193,104,0.16)",checkupCardConcernBg:"rgba(239,167,0,0.16)",info:"#6BD39A",badgeBgInfo:"rgba(107,211,154,0.12)",infoEdge:"rgba(107,211,154,0.28)"},hn=deepFreeze({brightness:"dark",highContrast:false,meta:{displayName:"Everfur",logoUrl:null,placeholder:null,hidePoweredBy:false,assistantAvatarUrl:null},color:pn,space:Ur,radius:Yr,type:on(),motion:cn,slots:an});function gn(e){let t=[];for(let i of e){let e=i.codePointAt(0);e<128?t.push(e):e<2048?t.push(192|e>>6,128|e&63):e<65536?t.push(224|e>>12,128|e>>6&63,128|e&63):t.push(240|e>>18,128|e>>12&63,128|e>>6&63,128|e&63)}return t}function fn(e){let t=3421674724,i=2216829733;for(let r of gn(e)){i=(i^r)>>>0;let e=i*435,n=Math.floor(e/4294967296),l=e>>>0;t=t*435+n+i*256>>>0,i=l}return t.toString(16).padStart(8,"0")+i.toString(16).padStart(8,"0")}var mn=/* @__PURE__ */new WeakMap;function bn(e){return mn.get(e)}var wn="sha256-0IDdNTQTtW2+pJ9GBCa/aWJrH/lf2X2jHhTQaCt6g5E=";var yn={CartBar:{since:"0.4.0",variants:["standard","web"],platforms:["native","web"],settings:{lines:{type:"lines",values:["thumbs","total","sub","actionHiddenWord"]},variant:{type:"enum",values:["standard","web"],prop:"variant"}},props:["actionAccessibilityLabel","actionHiddenWord","actionLabel","busy","count","countLabel","disabled","fallback","loading","loadingLabel","sub","testID","thumbs","total","variant","visible"],required:["actionLabel","count"],fallback:"hide"},CartLine:{since:"0.2.0",variants:["standard","square","web","plan","drawer"],platforms:["native","web"],settings:{align:{type:"enum",values:["top","center"],prop:"align"},lines:{type:"lines",values:["badge","meta","wasPrice","smalls","note","metas","plan"]},thumbSize:{type:"enum",values:["sm","md","lg"],prop:"thumbSize"},variant:{type:"enum",values:["standard","square","web","plan","drawer"],prop:"variant"}},props:["actions","align","badge","error","fallback","image","imageAlt","loading","loadingLabel","meta","metas","name","namePress","note","plan","price","quantity","removeLabel","smalls","testID","thumbSize","variant","wasPrice"],required:["name"],fallback:null},CheckinSheet:{since:"0.4.0",variants:[],platforms:["native","web"],settings:{lines:{type:"lines",values:["kicker","note","doneText"]}},props:["action","closeLabel","doneText","fallback","flowLabel","image","imageKind","kicker","loading","loadingLabel","note","open","steps","testID","title"],required:["steps"],fallback:"hide"},OrderRow:{since:"0.2.0",variants:["standard","quiet","web"],platforms:["native","web"],settings:{actionGrid:{type:"boolean",prop:"actionGrid"},lines:{type:"lines",values:["meta","total","status","shots","notes"]},variant:{type:"enum",values:["standard","quiet","web"],prop:"variant"}},props:["accessibilityLabel","actionGrid","actions","error","loading","loadingLabel","meta","metaLink","notes","number","shots","status","testID","title","total","variant"],required:["title"],fallback:null},PlanNeedCard:{since:"0.2.0",variants:["standard","plan"],platforms:["native","web"],settings:{lines:{type:"lines",values:["source","sources","title","score","quote","jump"]},variant:{type:"enum",values:["standard","plan"],prop:"variant"}},props:["jump","kicker","loading","loadingLabel","more","quote","score","signals","source","sources","testID","title","variant"],required:["kicker","signals"],fallback:null},PriceSummary:{since:"0.2.0",variants:[],platforms:["native","web"],settings:{lines:{type:"lines",values:["total","note"]},size:{type:"enum",values:["checkout","drawer"],prop:"size",platforms:["web"],default:"checkout"},variant:{type:"enum",values:["standard","web"],prop:"variant",platforms:["web"],default:"standard"}},props:["loading","loadingLabel","note","rows","testID","total"],required:["rows"],fallback:null},ProductTile:{since:"0.2.0",variants:["standard","blend","web"],platforms:["native","web"],settings:{addLift:{type:"boolean",prop:"addLift"},ground:{type:"enum",values:["shelf","white"],prop:"ground"},imageInset:{type:"enum",values:["standard","even"],prop:"imageInset"},layout:{type:"enum",values:["tile","row","card"],prop:"layout"},lines:{type:"lines",values:["kicker","meta","price","wasPrice","per","badge","tag"]},metaTone:{type:"enum",values:["auto","autoDark"],prop:"metaTone"},variant:{type:"enum",values:["standard","blend","web"],prop:"variant"}},props:["action","addLift","badge","fallback","ground","image","imageAlt","imageInset","kicker","layout","loading","loadingLabel","meta","metaTone","name","per","price","stepper","tag","testID","variant","wasPrice"],required:["name"],fallback:null},ScoreLights:{since:"0.4.0",variants:[],platforms:["native","web"],settings:{lines:{type:"lines",values:["heading","since","source","next"]}},props:["heading","loading","loadingLabel","next","pill","since","source","state","testID","values","vizLabel"],required:["pill","state","values","vizLabel"],fallback:"hide"},SummaryList:{since:"0.1.0",variants:["standard","flush","card","inset"],platforms:["native","web"],settings:{lines:{type:"lines",values:["trailingRows","note"]},variant:{type:"enum",values:["standard","flush","card","inset"],prop:"variant"}},props:["loading","loadingLabel","note","rows","testID","total","trailingRows","variant"],required:["rows"],fallback:null},TipCard:{since:"0.2.0",variants:["standard","photo","web","plan"],platforms:["native","web"],settings:{footArrow:{type:"boolean",prop:"footArrow"},lines:{type:"lines",values:["text","foot"]},tone:{type:"enum",values:["y","c","g","r"],prop:"tone"},variant:{type:"enum",values:["standard","photo","web","plan"],prop:"variant"}},props:["accessibilityLabel","foot","footArrow","footPress","icon","image","loading","loadingLabel","number","pressTarget","testID","text","title","tone","variant"],required:["number","title"],fallback:null},WeatherAlert:{since:"0.4.0",variants:[],platforms:["native","web"],settings:{},props:["accessibilityLabel","loading","loadingLabel","testID","text","title"],required:["title"],fallback:"TipCard",fallbackProps:{number:{const:"!"},text:{from:"text"},title:{from:"title"},tone:{const:"r"}}},WeatherCard:{since:"0.4.0",variants:["walk","summary","tile","web"],platforms:["native","web"],settings:{lines:{type:"lines",values:["heading","condition","details","verdict","advice","comfort","label","note","action","units","tags"]},sky:{type:"enum",values:["sun","blue"],prop:"sky"},variant:{type:"enum",values:["walk","summary","tile","web"],prop:"variant"}},props:["action","advice","comfort","condition","details","glyph","heading","label","level","loading","loadingLabel","note","sky","tags","tagsLabel","temperature","testID","units","variant","verdict"],required:["temperature"],fallback:"hide"},WeatherDetails:{since:"0.4.0",variants:[],platforms:["native","web"],settings:{},props:["items","label","loading","loadingLabel","testID"],required:["items"],fallback:"hide"},WeatherForecast:{since:"0.4.0",variants:["plain","walk"],platforms:["native","web"],settings:{variant:{type:"enum",values:["plain","walk"],prop:"variant"}},props:["days","label","loading","loadingLabel","testID","variant"],required:["days"],fallback:"hide"},WeatherHours:{since:"0.4.0",variants:["plain","walk"],platforms:["native","web"],settings:{lines:{type:"lines",values:["windows","legend"]},variant:{type:"enum",values:["plain","walk"],prop:"variant"}},props:["hours","label","legend","loading","loadingLabel","testID","variant","windows"],required:["hours"],fallback:"hide"},WeatherLevels:{since:"0.4.0",variants:["phone","web"],platforms:["native","web"],settings:{variant:{type:"enum",values:["phone","web"],prop:"variant"}},props:["label","loading","loadingLabel","rows","testID","variant"],required:["rows"],fallback:"hide"},WeatherReading:{since:"0.4.0",variants:["phone","web"],platforms:["native","web"],settings:{lines:{type:"lines",values:["word","choices"]},variant:{type:"enum",values:["phone","web"],prop:"variant"}},props:["choices","loading","loadingLabel","testID","tone","value","variant","word"],required:["value"],fallback:"hide"},WhySheet:{since:"0.4.0",variants:["standard","web","plan"],platforms:["native","web"],settings:{lines:{type:"lines",values:["kind","sub","sections","link","score"]},tone:{type:"enum",values:["calm","y","c","g","r"],prop:"tone"},variant:{type:"enum",values:["standard","web","plan"],prop:"variant"}},props:["action","closeLabel","fallback","heading","image","imageKind","kind","link","loading","loadingLabel","rows","score","sections","sub","testID","title","tone","variant"],required:[],fallback:"hide"}};var xn="everfur.slots.v2",vn="everfur.slots.installId.v2";var kn=6e4,Tn=3e5,jn=15e3,Sn=10080*60*1e3,In=/^(W\/)?"[^"]{1,200}"$/,zn=/^[A-Za-z0-9_-]{8,128}$/,Dn=/(?:^|,)\s*max-age\s*=\s*"?(\d{1,10})"?\s*(?:,|$)/i,Cn=/(?:^|,)\s*(?:no-store|no-cache)\s*(?:,|$)/i,Hn=/* @__PURE__ */Object.freeze({doc:"default",tenant:"default",epoch:0});function Fn(){let e="";for(let t=0;t<4;t++)e+=Math.floor(Math.random()*4294967296).toString(36).padStart(7,"0");return e}function _n(e){if(e===null)return kn;if(Cn.test(e))return 0;let t=Dn.exec(e);return t===null?kn:Math.min(Number(t[1])*1e3,Tn)}var On=(e,t)=>Object.prototype.hasOwnProperty.call(e,t);function En(e){let t=e.now??Date.now,i=()=>{try{return e.scope?.()??Hn}catch{return Hn}},r=/* @__PURE__ */new Map,n=/* @__PURE__ */new Map,l=/* @__PURE__ */new Map,o=null,a=null,s=false,c=Promise.resolve(),d=(t,i)=>{try{e.telemetry?.track(t,i)}catch{}},u=e=>{a!==e.epoch&&(a!==null&&(r.clear(),n.clear(),o=null,s=true),a=e.epoch)},p=e=>{let t=i();return t.epoch!==e.epoch||t.doc!==e.doc},h=async(t,i,r)=>{if(!p(t))return false;try{await e.kv.getItem(i)===r&&await e.kv.removeItem(i)}catch{}return true},g=t=>{let i=fn(t.tenant);if(o?.tenant===i)return o.id;let r=s;s=false;let n=(async()=>{if(!r)try{let t=await e.kv.getItem(vn),r=t===null?null:JSON.parse(t);if(r?.tenant===i&&typeof r.id=="string"&&zn.test(r.id))return r.id}catch{}try{let r=(e.newId??Fn)();if(!zn.test(r))return null;let n=JSON.stringify({tenant:i,id:r});return await e.kv.setItem(vn,n),await h(t,vn,n)?null:r}catch{return null}})();return o={tenant:i,id:n},n},f=async t=>{try{let i=await e.kv.getItem(xn),r=i===null?null:JSON.parse(i);return r?.scope!==t||r.docs===null||typeof r.docs!="object"||Array.isArray(r.docs)?{docs:{}}:{docs:r.docs}}catch{return{docs:{}}}},m=async(e,i)=>{let r=await f(fn(e.doc)),n=On(r.docs,i)?r.docs[i]:void 0;if(n==null||typeof n.at!="number")return null;let l=t()-n.at;if(!(l<Sn)||l<-Tn)return null;let o=gr(n.doc,i);if(!o.ok)return null;let a=typeof n.etag=="string"&&In.test(n.etag)?n.etag:null;return{doc:o.doc,etag:a}},b=(t,i,r)=>{let n=fn(t.doc);return c=c.then(async()=>{if(!p(t))try{let l=await f(n);if(p(t))return;let o={...l.docs},a=r(On(o,i)?o[i]:void 0);if(a===null?delete o[i]:o[i]=a,Object.keys(o).length===0)await e.kv.removeItem(xn);else{let i=JSON.stringify({scope:n,docs:o});await e.kv.setItem(xn,i),await h(t,xn,i)}}catch{}}),c},w=async(i,l)=>{let o=`${i.doc}|${l}`,a=r.get(o),s=a===void 0?await m(i,l):null,c=a!==void 0?{doc:a.doc,etag:a.etag}:s,u=await g(i),h={"x-everfur-blocks":e.blocks??wn};u!==null&&(h["x-everfur-install-id"]=u),c?.doc&&c.etag!==null&&(h["if-none-match"]=c.etag);let f=null,w=kn,y=await e.send("slots.read",{method:"GET",path:`/widget/v1/slots/${encodeURIComponent(l)}`,headers:h,rawText:65536,onResponseHeaders:e=>{let t=e("etag");f=t!==null&&In.test(t)?t:null,w=_n(e("cache-control"))}}).catch(()=>null),x=()=>c?.doc?{doc:c.doc,source:a!==void 0?"cache":"last-known-good"}:{doc:null,source:"bundled"},v=e=>(n.set(o,t()),d("slots.read_failed",{slot:l,status:e}),x());if(p(i))return{doc:null,source:"bundled"};if(y===null)return v(null);if(y.ok){let e=fr(y.value);if(!e.ok)return d("slots.refused",{slot:l,reason:e.reason}),x();let n=gr(e.raw,l);if(!n.ok)return d("slots.refused",{slot:l,reason:n.reason}),x();let a=t();return r.set(o,{doc:n.doc,etag:f,at:a,ttl:w}),await b(i,l,()=>({etag:f,doc:e.raw,at:a})),{doc:n.doc,source:"live"}}let k=y.error.httpStatus;if(k===304&&c?.doc){let e=t();return r.set(o,{doc:c.doc,etag:c.etag,at:e,ttl:w}),await b(i,l,t=>t===void 0?null:{...t,at:e}),{doc:c.doc,source:"live"}}return k===404?(r.set(o,{doc:null,etag:null,at:t(),ttl:w}),await b(i,l,()=>null),{doc:null,source:"bundled"}):v(k??null)},y=(e,i)=>{let n=r.get(`${e.doc}|${i}`);return n===void 0||t()-n.at>=n.ttl?null:n.doc===null?{doc:null,source:"bundled"}:{doc:n.doc,source:"cache"}},x=async(e,t)=>{let i=r.get(`${e.doc}|${t}`);if(i!==void 0)return i.doc===null?{doc:null,source:"bundled"}:{doc:i.doc,source:"cache"};let n=await m(e,t);return n===null?{doc:null,source:"bundled"}:{doc:n.doc,source:"last-known-good"}};return{peek(e){let t=i();return u(t),y(t,e)},stored(e){let t=i();return u(t),x(t,e).catch(()=>({doc:null,source:"bundled"}))},load(e){let r=i();u(r);let o=y(r,e);if(o!==null)return Promise.resolve(o);let a=`${r.doc}|${e}`,s=`${r.epoch}|${a}`,c=l.get(s);if(c!==void 0)return c;let d=n.get(a),p=(d!==void 0&&t()-d<jn?x(r,e):w(r,e)).catch(()=>({doc:null,source:"bundled"})).finally(()=>l.delete(s));return l.set(s,p),p}}}function Pn(e){let t=bn(e)??"unknown",i=e.registry.services.authFor(null),r=i.mode==="personalized"?`u:${i.userRef??""}`:`a:${i.userRef??""}`;return{doc:`${t}|${r}`,tenant:t,epoch:e.scopeEpoch??0}}var Ln=/* @__PURE__ */Symbol.for("@everfur/sdk#SlotClients@v1");function An(e,t=Bn){let i=globalThis,r=i[Ln];r instanceof WeakMap||(r=/* @__PURE__ */new WeakMap,i[Ln]=r);let n=r,l=n.get(e);return l===void 0&&(l=t(e),n.set(e,l)),l}function Bn(e){let{services:t}=e.registry;return En({send:(e,i)=>createRequestFunnel({auth:t.authFor(null),...t.errorPolicy?{errorPolicy:t.errorPolicy}:{}}).send(e,i),kv:t.kv,telemetry:t.telemetry,scope:()=>Pn(e)})}function Rn(e,t){return{doc:t.doc??vr(e),source:t.source}}function Vn(t,i){let{runtime:r,scopeEpoch:n}=u(),l=i?An(r):null,[o,a]=e.useState(()=>{let e=l?.peek(t);return e?{slot:t,epoch:n,value:Rn(t,e)}:null});return e.useEffect(()=>{if(l===null)return;let e=true,i=false,r=l.peek(t);if(r!==null){a({slot:t,epoch:n,value:Rn(t,r)});return}return l.stored(t).then(r=>{e&&!i&&a({slot:t,epoch:n,value:Rn(t,r)})}),l.load(t).then(r=>{i=true,e&&a({slot:t,epoch:n,value:Rn(t,r)})}),()=>{e=false}},[l,t,n]),i?o!==null&&o.slot===t&&o.epoch===n?o.value:{doc:null,source:"pending"}:{doc:vr(t),source:"bundled"}}var $n=[{color:"#D5AD47",icon:{strokes:[{width:1.3,cap:true,closed:false,points:[18.2,12,19.8,12]},{width:1.3,cap:true,closed:false,points:[16.385,16.385,17.515,17.515]},{width:1.3,cap:true,closed:false,points:[12,18.2,12,19.8]},{width:1.3,cap:true,closed:false,points:[7.615,16.385,6.485,17.515]},{width:1.3,cap:true,closed:false,points:[5.8,12,4.2,12]},{width:1.3,cap:true,closed:false,points:[7.615,7.615,6.485,6.485]},{width:1.3,cap:true,closed:false,points:[12,5.8,12,4.2]},{width:1.3,cap:true,closed:false,points:[16.385,7.615,17.515,6.485]}],boxes:[],triangles:[],seams:[]}},{color:"#F2C763",icon:{strokes:[],boxes:[{x:9.75,y:9.75,w:4.5,h:4.5,radius:2.25,width:4.5}],triangles:[],seams:[]}},{color:"#D5AD47",icon:{strokes:[],boxes:[{x:7.5,y:7.5,w:9,h:9,radius:4.5,width:1}],triangles:[],seams:[]}}],Wn=[{color:"#F2C763",icon:{strokes:[{width:1.5,cap:true,closed:false,points:[12,.75,12,3.429]},{width:1.5,cap:true,closed:false,points:[12,20.571,12,23.25]},{width:1.5,cap:true,closed:false,points:[.75,12,3.429,12]},{width:1.5,cap:true,closed:false,points:[20.571,12,23.25,12]},{width:1.5,cap:true,closed:false,points:[4.072,4.072,5.947,5.947]},{width:1.5,cap:true,closed:false,points:[18.054,18.054,19.929,19.929]},{width:1.5,cap:true,closed:false,points:[19.929,4.072,18.054,5.947]},{width:1.5,cap:true,closed:false,points:[5.947,18.054,4.072,19.929]}],boxes:[],triangles:[[7.064,14.085,7.558,14.995,6.752,13.08],[9.915,7.064,9.005,7.558,10.92,6.752],[14.085,16.936,14.995,16.442,13.08,17.248],[16.936,9.915,16.442,9.005,17.248,10.92],[6.643,12,6.752,13.08,7.558,14.995],[6.643,12,7.558,9.005,6.752,10.92],[12,6.643,14.995,7.558,13.08,6.752],[12,6.643,10.92,6.752,9.005,7.558],[12,17.357,13.08,17.248,14.995,16.442],[12,17.357,9.005,16.442,10.92,17.248],[17.357,12,16.442,14.995,17.248,13.08],[17.357,12,17.248,10.92,16.442,9.005],[7.558,14.995,8.212,15.788,6.643,12],[7.064,9.915,6.752,10.92,7.558,9.005],[14.085,7.064,13.08,6.752,14.995,7.558],[9.005,7.558,8.212,8.212,12,6.643],[14.995,16.442,15.788,15.788,12,17.357],[9.915,16.936,10.92,17.248,9.005,16.442],[16.936,14.085,17.248,13.08,16.442,14.995],[16.442,9.005,15.788,8.212,17.357,12],[8.212,15.788,8.212,8.212,6.643,12],[7.558,9.005,6.643,12,8.212,8.212],[14.995,7.558,12,6.643,15.788,8.212],[15.788,8.212,12,6.643,8.212,8.212],[12,17.357,17.357,12,8.212,15.788],[15.788,15.788,17.357,12,12,17.357],[9.005,16.442,12,17.357,8.212,15.788],[8.212,8.212,8.212,15.788,17.357,12],[16.442,14.995,17.357,12,15.788,15.788],[15.788,8.212,8.212,8.212,17.357,12]],seams:[[6.752,13.08,7.558,14.995,5.121,5.035],[9.005,7.558,10.92,6.752,5.035,5.121],[13.08,17.248,14.995,16.442,5.121,5.035],[16.442,9.005,17.248,10.92,5.035,5.121],[6.643,12,7.558,14.995,5.179,4.892],[6.643,12,7.558,9.005,5.179,4.892],[6.752,10.92,7.558,9.005,5.121,5.035],[12,6.643,14.995,7.558,5.179,4.892],[13.08,6.752,14.995,7.558,5.121,5.035],[9.005,7.558,12,6.643,4.892,5.179],[12,17.357,14.995,16.442,5.179,4.892],[9.005,16.442,12,17.357,4.892,5.179],[9.005,16.442,10.92,17.248,5.035,5.121],[16.442,14.995,17.357,12,4.892,5.179],[16.442,14.995,17.248,13.08,5.035,5.121],[16.442,9.005,17.357,12,4.892,5.179],[6.643,12,8.212,15.788,5.179,1.633],[8.212,8.212,12,6.643,1.633,5.179],[12,17.357,15.788,15.788,5.179,1.633],[15.788,8.212,17.357,12,1.633,5.179],[8.212,8.212,8.212,15.788,1.207,1.207],[6.643,12,8.212,8.212,5.179,1.633],[12,6.643,15.788,8.212,5.179,1.633],[8.212,8.212,15.788,8.212,1.207,1.207],[12,17.357,17.357,12,1.207,1.207],[8.212,15.788,17.357,12,.5,1.207],[8.212,15.788,12,17.357,1.633,5.179],[15.788,15.788,17.357,12,1.633,5.179],[8.212,8.212,17.357,12,1.207,.5]]}}],Mn={strokes:[],boxes:[],triangles:[[8.241,19.053,8.849,19.39,9.53,19.25],[8,18.4,8.241,19.053,9.53,19.25],[9.53,4.75,8.849,4.61,8.241,4.947],[9.53,4.75,8.241,4.947,8,5.6],[19.73,12.85,20.146,12.332,20.146,11.668],[19.73,12.85,20.146,11.668,19.73,11.15],[8,18.4,9.53,19.25,19.73,12.85],[8,5.6,8,18.4,19.73,12.85],[19.73,11.15,9.53,4.75,8,5.6],[8,5.6,19.73,12.85,19.73,11.15]],seams:[[8.241,19.053,9.53,19.25,1.348,1.348],[8,18.4,9.53,19.25,.581,1.348],[8.241,4.947,9.53,4.75,1.348,1.348],[8,5.6,9.53,4.75,.581,1.348],[19.73,12.85,20.146,11.668,1.42,1.42],[19.73,11.15,19.73,12.85,.622,1.42],[19.73,12.85,8,18.4,4.202,.358],[19.73,12.85,8,5.6,.324,4.459],[19.73,11.15,8,5.6,4.202,4.459]]};var Nn=/* @__PURE__ */Object.freeze({color:/* @__PURE__ */Object.freeze({efDarkGreen:"#10462E",efWhite:"#FFFFFF",efBlack:"#000000",efDustyPink:"#FFC3BC",efBrightGreen:"#07C168",efYellow:"#F2C763",efDustyBlue:"#A8B9DA",efSkyBlue:"#4E98C9",efCharcoal:"#3D3D3D",efIconHoney:"#926F06",efIconLeaf:"#16864A",efIconSky:"#1E7AB7",efIconTeal:"#05827E",efIconCocoa:"#865B3F",efIconNavy:"#223E80",efIconBerry:"#B6407F",efIconAmber:"#B25E05",efIconMoss:"#5E7E1E",efIconSlate:"#5A6087",efIconRose:"#CA4463",efRedDeep:"#6D1D14",efRedBright:"#C03410",bg:"#FFFFFF",bgBrand:"#10462E",bgAccent:"#FFC3BC",bgAccentB2b:"#A8B9DA",bgWarm:"#F2C763",text:"#000000",textBrand:"#10462E",textOnBrand:"#FFFFFF",textCta:"#07C168",textMuted:"#6B6B6B",bgMist:"#F1F5F2",border:"#E4E4E4",borderStrong:"#3D3D3D",hi:"#DAF6E8",hiStrong:"#ABEACC",hiEdge:"#0B8A4E",now:"#0C844B",alert:"#C03410",alertDeep:"#6D1D14",btnPrimaryBg:"#10462E",btnPrimaryText:"#FFFFFF",btnSecondaryBg:"rgba(0, 0, 0, 0)",btnSecondaryText:"#10462E",btnSecondaryBorder:"#10462E",mixMint:"#7FE8AE",mixLegal:"#A9C4B5",mixPromptGreen:"#BFEFD8",mixPromptYellow:"#F7DC9E",mixRx:"#E0E6F2",mixShelf:"#F3F3F3",mixEar:"#F09FA3",efBone:"#FAF9F6",efTennisBall:"#DCEF5A",efFawn:"#E8CAA4",efPine:"#12301F",efPine70:"rgba(18, 48, 31, 0.72)",efLiver:"#7A4330",efMerle:"#AEB8C1",efNose:"#E9B6A6"}),font:/* @__PURE__ */Object.freeze({family:/* @__PURE__ */Object.freeze({base:'Azeret, "Helvetica Neue", Arial, sans-serif',mono:'"Azeret Mono", ui-monospace, "SF Mono", Menlo, monospace'}),size:/* @__PURE__ */Object.freeze({xs:13,sm:15,md:17,lg:20,xl:24,"2xl":32,"3xl":40,"4xl":56}),lineHeight:/* @__PURE__ */Object.freeze({body:1.55,display:1.15}),weight:/* @__PURE__ */Object.freeze({regular:400,medium:500,bold:700})}),space:/* @__PURE__ */Object.freeze({1:4,2:8,3:12,4:16,5:24,6:32,7:48,8:64,9:96}),radius:/* @__PURE__ */Object.freeze({sm:6,md:10,lg:20,xl:28,pill:999}),shadow:/* @__PURE__ */Object.freeze({sm:/* @__PURE__ */Object.freeze({x:0,y:1,blur:2,spread:0,color:"rgba(16, 70, 46, 0.06)"}),md:/* @__PURE__ */Object.freeze({x:0,y:4,blur:16,spread:0,color:"rgba(16, 70, 46, 0.08)"})}),layout:/* @__PURE__ */Object.freeze({container:1200,containerNarrow:720}),motion:/* @__PURE__ */Object.freeze({easing:/* @__PURE__ */Object.freeze({out:/* @__PURE__ */Object.freeze([.23,1,.32,1]),inOut:/* @__PURE__ */Object.freeze([.77,0,.175,1]),drawer:/* @__PURE__ */Object.freeze([.32,.72,0,1]),expo:/* @__PURE__ */Object.freeze([.16,1,.3,1]),bark:/* @__PURE__ */Object.freeze([.34,1.56,.64,1])}),duration:/* @__PURE__ */Object.freeze({press:160,fade:200,enter:300,sheet:420,sheetOut:240,draw:900})}),web:/* @__PURE__ */Object.freeze({serif:'Azeret, "Helvetica Neue", Arial, sans-serif',sans:'Azeret, "Helvetica Neue", Arial, sans-serif',tSmall:14,max:1312}),role:/* @__PURE__ */Object.freeze({color:/* @__PURE__ */Object.freeze({ink:"#10462E",go:"#07C168",muted:"#6B6B6B",line:"#E4E4E4",pink50:"#FFE1DE",tintSage:"#E6ECE8",tintPink:"#FFEAE8",tintPinkSoft:"#FFF6F5",tintBlue:"#EAEEF6",tintYellow:"#FCF0D6",tintYellowEdge:"#F6D892",tintRed:"#FBF1EE",tintGo:"#DCF6EA",icoGrey:"#6B6B6B",icoSage:"#819E90",icoBlue:"#4E98C9",icoWarm:"#D6D0C2",icoAmber:"#B67B3F",amberText:"#A05E32",wxSun:"#F2C763",wxSunEdge:"#D5AD47",wxCloud:"#FFFFFF",wxCloudEdge:"#DEDEDE",wxCloudDark:"#EAEAEA",wxCloudDarkEdge:"#C5C5C5",wxRain:"#75AFD5",wxSnow:"#AFD1E7",wxMist:"#D4D4D4",cwShelf:"#FFFFFF",cwShelfDeep:"#F1F4F2",cwRx:"#E0E6F2",cwRxInk:"#5A6087",cwEdgeC:"#C6D3CD",nItch:"#CA4463",nJoints:"#5E7E1E",nItchC:"#FFC3BC",nJointsC:"#D8E0C9",lvlGood:"#77DDAC",lvlOk:"#F4CF7A",lvlHot:"#DC8F7C",lvlStorm:"#8DA4BB",mapLand:"#F5F5F5",mapEdge:"#EAEAEA",mapPark:"#D7F5E7",mapWater:"#D8E0EE",mapSand:"#FCF3DD"}),size:/* @__PURE__ */Object.freeze({max:1440,gutter:16,sideW:220,cardPad:16,barH:48,tabH:58,dock:64,side:16,stackGap:12})})});var Gn={shown:true,padding:[0,0,0,0],marginTop:0,marginBottom:0,gap:[0,0],minHeight:0,radius:[0,0],bg:"none",edge:{width:0,color:"line",ring:false},shadow:{color:"",x:0,y:0,blur:0,spread:0},center:false,color:"text",fit:"cover",x:0,y:0,dy:0},qn={shown:true,color:"text",tracking:0,face:"sans",upper:false,wrap:"pretty",tabular:false,deco:"none",decoOffset:0,decoThickness:0,marginTop:0,paddingTop:0},Un=e=>({...Gn,...e}),Yn=e=>({...qn,...e}),Xn={button:{ink:{fill:false,minHeight:52,paddingX:24,gap:8,borderWidth:1.5,ring:false,fontSize:17,fontWeight:700,lineHeight:1,iconSize:24},go:{fill:false,minHeight:52,paddingX:24,gap:8,borderWidth:1.5,ring:false,fontSize:17,fontWeight:700,lineHeight:1,iconSize:24},outline:{fill:false,minHeight:52,paddingX:24,gap:8,borderWidth:1.5,ring:false,fontSize:17,fontWeight:400,lineHeight:1,iconSize:24},pink:{fill:true,minHeight:60,paddingX:16,gap:8,borderWidth:1,ring:false,fontSize:18,fontWeight:700,lineHeight:1,iconSize:24},danger:{fill:false,minHeight:46,paddingX:16,gap:8,borderWidth:1.5,ring:false,fontSize:15,fontWeight:700,lineHeight:1.55,iconSize:20},inkSm:{fill:false,minHeight:46,paddingX:16,gap:8,borderWidth:1.5,ring:false,fontSize:15,fontWeight:700,lineHeight:1,iconSize:20},goSm:{fill:false,minHeight:46,paddingX:16,gap:8,borderWidth:1.5,ring:false,fontSize:15,fontWeight:700,lineHeight:1,iconSize:20},outlineSm:{fill:false,minHeight:46,paddingX:16,gap:8,borderWidth:1.5,ring:false,fontSize:15,fontWeight:400,lineHeight:1,iconSize:20},pinkSm:{fill:true,minHeight:46,paddingX:16,gap:8,borderWidth:1,ring:false,fontSize:15,fontWeight:700,lineHeight:1,iconSize:20},row:{fill:false,minHeight:36,paddingX:14,gap:8,borderWidth:1.5,ring:false,fontSize:14,fontWeight:400,lineHeight:1,iconSize:17},outlineInSheetWeight:700,money:{fill:false,minHeight:52,paddingX:24,gap:8,borderWidth:1,ring:false,fontSize:17,fontWeight:700,lineHeight:1,iconSize:24,bg:"pink",fg:"ink",edgeColor:"ink"},moneySm:{fill:false,minHeight:46,paddingX:16,gap:8,borderWidth:1,ring:false,fontSize:15,fontWeight:700,lineHeight:1,iconSize:20,bg:"pink",fg:"ink",edgeColor:"ink"},warn:{fill:false,minHeight:52,paddingX:24,gap:8,borderWidth:1.5,ring:false,fontSize:17,fontWeight:700,lineHeight:1,iconSize:24,bg:"none",fg:"alertDeep",edgeColor:"alert"},warnSm:{fill:false,minHeight:46,paddingX:16,gap:8,borderWidth:1.5,ring:false,fontSize:15,fontWeight:700,lineHeight:1,iconSize:20,bg:"none",fg:"alertDeep",edgeColor:"alert"},text:{fontSize:15,fontWeight:700,lineHeight:1.4,color:"ink",pressOpacity:.6}},pill:{minHeight:24,paddingX:10,fontSize:12,fontWeight:700,lineHeight:1,letterSpacing:.72,ring:{soon:1.25,overdue:1.25,clear:1.5,later:1.25,plain:1.5,new:1.5},plainRingAlpha:.2,dot:6,dotGap:6,allergyDot:{size:6,gap:6,color:"alert"},mono:true,upper:true,tones:{rx:{bg:"#E0E6F2",fg:"ink",ring:0,ringColor:"ink"},soon:{bg:"surface",fg:"ink",ring:1.25,ringColor:"tintYellowEdge"},overdue:{bg:"surface",fg:"alert",ring:1.25,ringColor:"alert"},clear:{bg:"surface",fg:"go",ring:1.5,ringColor:"go"},stable:{bg:"tintGo",fg:"ink",ring:0,ringColor:"ink"},later:{bg:"surface",fg:"muted",ring:1.25,ringColor:"line"},plain:{bg:"surface",fg:"ink",ring:1.5,ringColor:"ink/0.2"},new:{bg:"surface",fg:"ink",ring:1.5,ringColor:"go"},pink:{bg:"tintPink",fg:"ink",ring:0,ringColor:"ink"},watch:{bg:"#F9E6B9",fg:"ink",ring:0,ringColor:"ink"},high:{bg:"surface",fg:"alert",ring:1.25,ringColor:"alert"},allergy:{bg:"surface",fg:"alertDeep",ring:1.25,ringColor:"alert"}}},chip:{minHeight:42,paddingX:16,gap:8,borderWidth:1,fontSize:15,fontWeight:500,lineHeight:1.3},card:{padding:16,radius:20,borderWidth:1,titleSize:18,titleWeight:700,titleLineHeight:1.25,titleTracking:-.36,titleGap:12,leadSize:15,leadLineHeight:1.5,leadGap:12,headGapX:16,headGapY:8,headGap:12,bodySize:17,bodyLineHeight:1.55,ghost:{borderStyle:"dashed",borderColor:"#B9C9C2"}},sectionHeader:{gapX:12,gapY:8,marginTop:8},kicker:{fontSize:12,fontWeight:700,lineHeight:1.55,letterSpacing:.96,gap:8},quantityStepper:{borderWidth:1,borderColor:"line",ring:false,button:40,icon:18,valueMinWidth:28,offColor:"line",offOpacity:1,valueSize:17,valueWeight:700,valueLineHeight:1.55},tabs:{minHeight:44,gap:6,fontSize:15,fontWeight:500,currentWeight:700,lineHeight:1.55,indicator:3,hairline:1,dot:7},sheet:{radius:28,grabHeight:20,grabBarWidth:36,grabBarHeight:5,grabBarRadius:3,headPaddingTop:4,headPaddingX:16,headPaddingBottom:12,headGap:12,titlesGap:2,titleSize:18,close:36,closeIcon:20,bodyGap:12,bodyPaddingX:16,bodyPaddingBottom:24,actsGap:12,actsMarginTop:4},empty:{gap:8,titleSize:22,titleWeight:500,titleLineHeight:1.2,titleTracking:-.33,leadSize:15,leadLineHeight:1.5,actsGap:12,actsMarginTop:12,buttonMinWidth:200,linkMinHeight:44,linkPaddingX:4,linkSize:15,linkWeight:700,linkUnderlineOffset:3},skeleton:{gap:10,lineHeight:12,widths:[100,82,64]},summary:{paddingX:24,paddingY:0,radius:20,borderWidth:1,background:"surface",shadow:{color:"",x:0,y:0,blur:0,spread:0},rowDivider:1,rowMinHeight:0,rowCenter:false,rowPaddingY:14,termColor:"muted",valueColor:"ink",tabular:false,totalRowMinHeight:0,totalTermSize:15,totalTermWeight:400,totalTermColor:"muted",totalWeight:700,rowGapX:16,rowGapY:2,termSize:15,termLineHeight:1.55,valueSize:15,valueWeight:700,valueLineHeight:1.4,totalSize:20,totalLineHeight:1.4,off:{shown:true,size:15,weight:700,lineHeight:21,color:"go",tracking:0,face:"sans",upper:false,wrap:"pretty",tabular:false,deco:"none",decoOffset:0,decoThickness:0,marginTop:0,paddingTop:0}},icon:{size:24},timeline:{row:{shown:true,w:361,h:69.281,padding:[0,0,24,0],marginTop:0,marginBottom:0,gap:[16,16],minHeight:0,radius:[0,0],bg:"none",edge:{width:0,color:"line",ring:false},shadow:{color:"",x:0,y:0,blur:0,spread:0},center:false,color:"text",fit:"cover",x:0,y:0,dy:0},done:{shown:true,w:28,h:28,padding:[0,0,0,0],marginTop:0,marginBottom:0,gap:[0,0],minHeight:0,radius:[14,14],bg:"ink",edge:{width:2,color:"ink",ring:false},shadow:{color:"",x:0,y:0,blur:0,spread:0},center:true,color:"surface",fit:"cover",x:0,y:0,dy:0},now:{shown:true,w:28,h:28,padding:[0,0,0,0],marginTop:0,marginBottom:0,gap:[0,0],minHeight:0,radius:[14,14],bg:"surface",edge:{width:2,color:"ink",ring:false},shadow:{color:"",x:0,y:0,blur:0,spread:0},center:true,color:"text",fit:"cover",x:0,y:0,dy:0},next:{shown:true,w:28,h:28,padding:[0,0,0,0],marginTop:0,marginBottom:0,gap:[0,0],minHeight:0,radius:[14,14],bg:"surface",edge:{width:2,color:"line",ring:false},shadow:{color:"",x:0,y:0,blur:0,spread:0},center:true,color:"text",fit:"cover",x:0,y:0,dy:0},nowInner:{size:10,color:"go"},check:{shown:true,w:16,h:16,padding:[0,0,0,0],marginTop:0,marginBottom:0,gap:[0,0],minHeight:0,radius:[0,0],bg:"none",edge:{width:0,color:"line",ring:false},shadow:{color:"",x:0,y:0,blur:0,spread:0},center:false,color:"surface",fit:"cover",x:0,y:0,dy:0},lineDoneDone:{x:13,top:30,bottom:2,width:2,color:"ink"},lineDoneNow:{x:13,top:30,bottom:2,width:2,color:"ink"},lineNowNext:{x:13,top:30,bottom:2,width:2,color:"line"},title:{shown:true,size:17,weight:700,lineHeight:22.1,color:"ink",tracking:0,face:"sans",upper:false,wrap:"pretty",tabular:false,deco:"none",decoOffset:0,decoThickness:0,marginTop:0,paddingTop:3},head:{shown:true,w:317,h:27,padding:[3,0,0,0],marginTop:0,marginBottom:0,gap:[8,4],minHeight:0,radius:[0,0],bg:"none",edge:{width:0,color:"line",ring:false},shadow:{color:"",x:0,y:0,blur:0,spread:0},center:true,color:"ink",fit:"cover",x:0,y:0,dy:0},nextTitle:{shown:true,size:17,weight:700,lineHeight:22.1,color:"muted",tracking:0,face:"sans",upper:false,wrap:"pretty",tabular:false,deco:"none",decoOffset:0,decoThickness:0,marginTop:0,paddingTop:3},when:{shown:true,size:13,weight:400,lineHeight:18.2,color:"muted",tracking:0,face:"sans",upper:false,wrap:"pretty",tabular:false,deco:"none",decoOffset:0,decoThickness:0,marginTop:2,paddingTop:0},text:{shown:true,size:15,weight:400,lineHeight:22.5,color:"text",tracking:0,face:"sans",upper:false,wrap:"pretty",tabular:false,deco:"none",decoOffset:0,decoThickness:0,marginTop:2,paddingTop:0}},thumbnail:{xs:{frame:{shown:true,w:48,h:48,padding:[0,0,0,0],marginTop:0,marginBottom:0,gap:[0,0],minHeight:0,radius:[6,6],bg:"surface",edge:{width:1,color:"line",ring:true},shadow:{color:"",x:0,y:0,blur:0,spread:0},center:false,color:"text",fit:"contain",x:0,y:0,dy:0},img:{shown:false,w:48,h:48,padding:[0,0,0,0],marginTop:0,marginBottom:0,gap:[0,0],minHeight:0,radius:[6,6],bg:"surface",edge:{width:1,color:"line",ring:true},shadow:{color:"",x:0,y:0,blur:0,spread:0},center:false,color:"text",fit:"contain",x:0,y:0,dy:0},empty:{shown:true,w:48,h:48,padding:[0,0,0,0],marginTop:0,marginBottom:0,gap:[0,0],minHeight:0,radius:[10,10],bg:"none",edge:{width:0,color:"line",ring:false},shadow:{color:"",x:0,y:0,blur:0,spread:0},center:true,color:"#1E7AB7",fit:"cover",x:0,y:0,dy:0},icon:{shown:true,w:22,h:22,padding:[0,0,0,0],marginTop:0,marginBottom:0,gap:[0,0],minHeight:0,radius:[0,0],bg:"none",edge:{width:0,color:"line",ring:false},shadow:{color:"",x:0,y:0,blur:0,spread:0},center:false,color:"#1E7AB7",fit:"cover",x:0,y:0,dy:0},top:false},sm:{frame:{shown:true,w:64,h:64,padding:[8,8,8,8],marginTop:0,marginBottom:0,gap:[0,0],minHeight:0,radius:[14,14],bg:"#F3F3F3",edge:{width:0,color:"line",ring:false},shadow:{color:"",x:0,y:0,blur:0,spread:0},center:false,color:"text",fit:"cover",x:0,y:0,dy:0},img:{shown:true,w:48,h:48,padding:[0,0,0,0],marginTop:0,marginBottom:0,gap:[0,0],minHeight:0,radius:[0,0],bg:"none",edge:{width:0,color:"line",ring:false},shadow:{color:"",x:0,y:0,blur:0,spread:0},center:false,color:"text",fit:"contain",x:0,y:0,dy:0},empty:{shown:true,w:64,h:64,padding:[8,8,8,8],marginTop:0,marginBottom:0,gap:[0,0],minHeight:0,radius:[14,14],bg:"#F3F3F3",edge:{width:0,color:"line",ring:false},shadow:{color:"",x:0,y:0,blur:0,spread:0},center:false,color:"text",fit:"cover",x:0,y:0,dy:0},icon:{shown:true,w:22,h:22,padding:[0,0,0,0],marginTop:0,marginBottom:0,gap:[0,0],minHeight:0,radius:[0,0],bg:"none",edge:{width:0,color:"line",ring:false},shadow:{color:"",x:0,y:0,blur:0,spread:0},center:false,color:"#1E7AB7",fit:"cover",x:0,y:0,dy:0},top:false},md:{frame:{shown:true,w:156,h:156,padding:[0,0,0,0],marginTop:0,marginBottom:6,gap:[0,0],minHeight:0,radius:[20,20],bg:"#F5F5F5",edge:{width:0,color:"line",ring:false},shadow:{color:"",x:0,y:0,blur:0,spread:0},center:false,color:"text",fit:"cover",x:0,y:0,dy:0},img:{shown:true,w:156,h:156,padding:[10,10,10,10],marginTop:0,marginBottom:0,gap:[0,0],minHeight:0,radius:[0,0],bg:"none",edge:{width:0,color:"line",ring:false},shadow:{color:"",x:0,y:0,blur:0,spread:0},center:false,color:"text",fit:"contain",x:0,y:0,dy:0},empty:{shown:true,w:156,h:156,padding:[0,0,0,0],marginTop:0,marginBottom:6,gap:[0,0],minHeight:0,radius:[20,20],bg:"#F5F5F5",edge:{width:0,color:"line",ring:false},shadow:{color:"",x:0,y:0,blur:0,spread:0},center:false,color:"text",fit:"cover",x:0,y:0,dy:0},icon:{shown:true,w:22,h:22,padding:[0,0,0,0],marginTop:0,marginBottom:0,gap:[0,0],minHeight:0,radius:[0,0],bg:"none",edge:{width:0,color:"line",ring:false},shadow:{color:"",x:0,y:0,blur:0,spread:0},center:false,color:"#1E7AB7",fit:"cover",x:0,y:0,dy:0},top:false},lg:{frame:{shown:true,w:174.5,h:174.5,padding:[0,0,0,0],marginTop:0,marginBottom:8,gap:[0,0],minHeight:0,radius:[20,20],bg:"#F3F3F3",edge:{width:0,color:"line",ring:false},shadow:{color:"",x:0,y:0,blur:0,spread:0},center:false,color:"text",fit:"cover",x:0,y:0,dy:0},img:{shown:true,w:174.5,h:174.5,padding:[14,14,18,14],marginTop:0,marginBottom:0,gap:[0,0],minHeight:0,radius:[0,0],bg:"none",edge:{width:0,color:"line",ring:false},shadow:{color:"",x:0,y:0,blur:0,spread:0},center:false,color:"text",fit:"contain",x:0,y:0,dy:0},empty:{shown:true,w:174.5,h:174.5,padding:[0,0,0,0],marginTop:0,marginBottom:8,gap:[0,0],minHeight:0,radius:[20,20],bg:"#F3F3F3",edge:{width:0,color:"line",ring:false},shadow:{color:"",x:0,y:0,blur:0,spread:0},center:false,color:"text",fit:"cover",x:0,y:0,dy:0},icon:{shown:true,w:22,h:22,padding:[0,0,0,0],marginTop:0,marginBottom:0,gap:[0,0],minHeight:0,radius:[0,0],bg:"none",edge:{width:0,color:"line",ring:false},shadow:{color:"",x:0,y:0,blur:0,spread:0},center:false,color:"#1E7AB7",fit:"cover",x:0,y:0,dy:0},top:false}},text:{display:{shown:true,size:40,weight:500,lineHeight:39.2,color:"ink",tracking:-1.2,face:"sans",upper:false,wrap:"pretty",tabular:false,deco:"none",decoOffset:0,decoThickness:0,marginTop:0,paddingTop:0},headline:{shown:true,size:30,weight:500,lineHeight:33,color:"ink",tracking:-.45,face:"sans",upper:false,wrap:"pretty",tabular:false,deco:"none",decoOffset:0,decoThickness:0,marginTop:0,paddingTop:0},title:{shown:true,size:22,weight:500,lineHeight:26.4,color:"ink",tracking:-.33,face:"sans",upper:false,wrap:"pretty",tabular:false,deco:"none",decoOffset:0,decoThickness:0,marginTop:0,paddingTop:0},heading:{shown:true,size:18,weight:700,lineHeight:22.5,color:"ink",tracking:-.36,face:"sans",upper:false,wrap:"pretty",tabular:false,deco:"none",decoOffset:0,decoThickness:0,marginTop:0,paddingTop:0},body:{shown:true,size:17,weight:400,lineHeight:26.35,color:"text",tracking:0,face:"sans",upper:false,wrap:"pretty",tabular:false,deco:"none",decoOffset:0,decoThickness:0,marginTop:0,paddingTop:0},lead:{shown:true,size:15,weight:400,lineHeight:21.75,color:"text",tracking:0,face:"sans",upper:false,wrap:"pretty",tabular:false,deco:"none",decoOffset:0,decoThickness:0,marginTop:0,paddingTop:0},label:{shown:true,size:15,weight:700,lineHeight:21,color:"ink",tracking:0,face:"sans",upper:false,wrap:"pretty",tabular:false,deco:"none",decoOffset:0,decoThickness:0,marginTop:0,paddingTop:0},meta:{shown:true,size:13,weight:400,lineHeight:18.85,color:"muted",tracking:0,face:"mono",upper:false,wrap:"pretty",tabular:false,deco:"none",decoOffset:0,decoThickness:0,marginTop:0,paddingTop:0},caption:{shown:true,size:13,weight:400,lineHeight:19.5,color:"muted",tracking:0,face:"sans",upper:false,wrap:"pretty",tabular:false,deco:"none",decoOffset:0,decoThickness:0,marginTop:0,paddingTop:0},overline:{shown:true,size:12,weight:700,lineHeight:16.8,color:"muted",tracking:.72,face:"mono",upper:true,wrap:"pretty",tabular:false,deco:"none",decoOffset:0,decoThickness:0,marginTop:0,paddingTop:0},kicker:{shown:true,size:12,weight:700,lineHeight:18.6,color:"muted",tracking:.96,face:"mono",upper:true,wrap:"pretty",tabular:false,deco:"none",decoOffset:0,decoThickness:0,marginTop:0,paddingTop:0}},field:{gap:6,label:{shown:true,size:15,weight:700,lineHeight:21,color:"ink",tracking:0,face:"sans",upper:false,wrap:"pretty",tabular:false,deco:"none",decoOffset:0,decoThickness:0,marginTop:0,paddingTop:0},input:{shown:true,w:361,h:52,padding:[0,16,0,16],marginTop:0,marginBottom:0,gap:[10,10],minHeight:52,radius:[10,10],bg:"surface",edge:{width:1.5,color:"line",ring:false},shadow:{color:"",x:0,y:0,blur:0,spread:0},center:true,color:"text",fit:"cover",x:0,y:0,dy:0},focusEdge:"ink",errorEdge:"alert",value:{shown:true,size:17,weight:400,lineHeight:26.35,color:"text",tracking:0,face:"sans",upper:false,wrap:"pretty",tabular:false,deco:"none",decoOffset:0,decoThickness:0,marginTop:0,paddingTop:1},valueInset:[2,1],icon:{shown:true,w:20,h:20,padding:[0,0,0,0],marginTop:0,marginBottom:0,gap:[0,0],minHeight:0,radius:[0,0],bg:"none",edge:{width:0,color:"line",ring:false},shadow:{color:"",x:0,y:0,blur:0,spread:0},center:false,color:"muted",fit:"cover",x:0,y:0,dy:0},area:{shown:true,w:361,h:158,padding:[12,16,12,16],marginTop:0,marginBottom:0,gap:[10,10],minHeight:52,radius:[10,10],bg:"surface",edge:{width:1.5,color:"line",ring:false},shadow:{color:"",x:0,y:0,blur:0,spread:0},center:false,color:"text",fit:"cover",x:0,y:0,dy:0},areaValue:{shown:true,size:17,weight:400,lineHeight:25.5,color:"text",tracking:0,face:"sans",upper:false,wrap:"pretty",tabular:false,deco:"none",decoOffset:0,decoThickness:0,marginTop:0,paddingTop:2},areaValueMinHeight:132,areaInset:[2,2],hint:{shown:true,size:13,weight:400,lineHeight:19.5,color:"muted",tracking:0,face:"sans",upper:false,wrap:"pretty",tabular:false,deco:"none",decoOffset:0,decoThickness:0,marginTop:0,paddingTop:0},error:{shown:true,size:15,weight:400,lineHeight:21.75,color:"alertDeep",tracking:0,face:"sans",upper:false,wrap:"pretty",tabular:false,deco:"none",decoOffset:0,decoThickness:0,marginTop:0,paddingTop:0},placeholder:"muted"},checkbox:{row:{shown:true,w:361,h:45,padding:[0,0,0,0],marginTop:0,marginBottom:0,gap:[12,12],minHeight:0,radius:[0,0],bg:"none",edge:{width:0,color:"line",ring:false},shadow:{color:"",x:0,y:0,blur:0,spread:0},center:false,color:"text",fit:"cover",x:0,y:0,dy:0},labelX:34,box:{shown:true,w:20,h:20,padding:[0,0,0,0],marginTop:1,marginBottom:0,gap:[0,0],minHeight:0,radius:[6,6],bg:"surface",edge:{width:1.5,color:"icoSage",ring:false},shadow:{color:"",x:0,y:0,blur:0,spread:0},center:false,color:"text",fit:"cover",x:0,y:0,dy:0},on:{shown:true,w:20,h:20,padding:[0,0,0,0],marginTop:1,marginBottom:0,gap:[0,0],minHeight:0,radius:[6,6],bg:"ink",edge:{width:1.5,color:"ink",ring:false},shadow:{color:"",x:0,y:0,blur:0,spread:0},center:false,color:"text",fit:"cover",x:0,y:0,dy:0},tick:{w:5,h:10,stroke:2,color:"surface",rotate:45,dy:-1},label:{shown:true,size:15,weight:400,lineHeight:22.5,color:"text",tracking:0,face:"sans",upper:false,wrap:"pretty",tabular:false,deco:"none",decoOffset:0,decoThickness:0,marginTop:0,paddingTop:0},boxed:{shown:true,w:361,h:50.5,padding:[14,16,14,16],marginTop:0,marginBottom:0,gap:[12,12],minHeight:0,radius:[10,10],bg:"bgMist",edge:{width:0,color:"line",ring:false},shadow:{color:"",x:0,y:0,blur:0,spread:0},center:false,color:"text",fit:"cover",x:0,y:0,dy:0}},choice:{row:{shown:true,w:361,h:56.344,padding:[14,16,14,16],marginTop:0,marginBottom:0,gap:[12,12],minHeight:0,radius:[10,10],bg:"surface",edge:{width:1.5,color:"line",ring:false},shadow:{color:"",x:0,y:0,blur:0,spread:0},center:true,color:"text",fit:"cover",x:0,y:0,dy:0},selected:{shown:true,w:361,h:56.344,padding:[14,16,14,16],marginTop:0,marginBottom:0,gap:[12,12],minHeight:0,radius:[10,10],bg:"pink",edge:{width:1.5,color:"ink",ring:false},shadow:{color:"",x:0,y:0,blur:0,spread:0},center:true,color:"text",fit:"cover",x:0,y:0,dy:0},radio:{shown:true,w:20,h:20,padding:[0,0,0,0],marginTop:0,marginBottom:0,gap:[0,0],minHeight:0,radius:[10,10],bg:"surface",edge:{width:1.5,color:"icoSage",ring:false},shadow:{color:"",x:0,y:0,blur:0,spread:0},center:false,color:"text",fit:"cover",x:0,y:0,dy:0},radioOn:{shown:true,w:20,h:20,padding:[0,0,0,0],marginTop:0,marginBottom:0,gap:[0,0],minHeight:0,radius:[10,10],bg:"surface",edge:{width:6,color:"ink",ring:false},shadow:{color:"",x:0,y:0,blur:0,spread:0},center:false,color:"text",fit:"cover",x:0,y:0,dy:0},textX:34,title:{shown:true,size:17,weight:700,lineHeight:22.1,color:"ink",tracking:0,face:"sans",upper:false,wrap:"pretty",tabular:false,deco:"none",decoOffset:0,decoThickness:0,marginTop:0,paddingTop:0},strut:26.35,meta:{shown:true,size:13,weight:400,lineHeight:18.2,color:"muted",tracking:0,face:"sans",upper:false,wrap:"pretty",tabular:false,deco:"none",decoOffset:0,decoThickness:0,marginTop:2,paddingTop:0},end:{shown:true,size:13,weight:400,lineHeight:20.15,color:"muted",tracking:0,face:"sans",upper:false,wrap:"pretty",tabular:false,deco:"none",decoOffset:0,decoThickness:0,marginTop:0,paddingTop:0},group:{gap:8,legend:{shown:true,size:15,weight:700,lineHeight:21,color:"ink",tracking:0,face:"sans",upper:false,wrap:"pretty",tabular:false,deco:"none",decoOffset:0,decoThickness:0,marginTop:0,paddingTop:0},legendPaddingX:2,legendGap:0}},switch:{track:{shown:true,w:48,h:28,padding:[0,0,0,0],marginTop:0,marginBottom:0,gap:[0,0],minHeight:0,radius:[999,999],bg:"#D0D6D3",edge:{width:0,color:"line",ring:false},shadow:{color:"",x:0,y:0,blur:0,spread:0},center:false,color:"text",fit:"cover",x:0,y:0,dy:0},on:"ink",thumb:{size:22,inset:3,travel:20,color:"surface",shadow:{color:"rgba(16, 70, 46, 0.06)",x:0,y:1,blur:2,spread:0}}},iconButton:{bare:{shown:true,w:44,h:44,padding:[0,0,0,0],marginTop:0,marginBottom:0,gap:[0,0],minHeight:0,radius:[22,22],bg:"none",edge:{width:0,color:"line",ring:false},shadow:{color:"",x:0,y:0,blur:0,spread:0},center:true,color:"ink",fit:"cover",x:0,y:0,dy:0},bareIcon:22,offColor:"line",ring:{shown:true,w:36,h:36,padding:[0,0,0,0],marginTop:0,marginBottom:0,gap:[0,0],minHeight:0,radius:[18,18],bg:"surface",edge:{width:1.5,color:"ink",ring:false},shadow:{color:"",x:0,y:0,blur:0,spread:0},center:true,color:"ink",fit:"cover",x:0,y:0,dy:0},ringIcon:18,ringPressed:"tintSage",ringPressScale:.94},link:{text:{shown:true,size:17,weight:400,lineHeight:22.1,color:"ink",tracking:0,face:"sans",upper:false,wrap:"pretty",tabular:false,deco:"underline",decoOffset:3,decoThickness:0,marginTop:0,paddingTop:0},danger:{shown:true,size:15,weight:700,lineHeight:23.25,color:"alert",tracking:0,face:"sans",upper:false,wrap:"pretty",tabular:false,deco:"underline",decoOffset:3,decoThickness:0,marginTop:0,paddingTop:0},inline:{shown:true,size:17,weight:400,lineHeight:26.35,color:"text",tracking:0,face:"sans",upper:false,wrap:"pretty",tabular:false,deco:"underline",decoOffset:0,decoThickness:0,marginTop:0,paddingTop:0}},lists:{rows:{row:{shown:true,w:327,h:94.781,padding:[16,0,16,0],marginTop:0,marginBottom:0,gap:[16,8],minHeight:0,radius:[0,0],bg:"none",edge:{width:1,color:"line",ring:false},shadow:{color:"",x:0,y:0,blur:0,spread:0},center:true,color:"text",fit:"cover",x:0,y:0,dy:0},title:{shown:true,size:17,weight:700,lineHeight:22.1,color:"ink",tracking:0,face:"sans",upper:false,wrap:"pretty",tabular:false,deco:"none",decoOffset:0,decoThickness:0,marginTop:0,paddingTop:0},subtitle:{shown:true,size:13,weight:400,lineHeight:18.85,color:"muted",tracking:0,face:"sans",upper:false,wrap:"pretty",tabular:false,deco:"none",decoOffset:0,decoThickness:0,marginTop:2,paddingTop:0}},tiles:{list:{shown:true,w:343,h:175.813,padding:[0,0,0,0],marginTop:0,marginBottom:0,gap:[4,4],minHeight:0,radius:[0,0],bg:"none",edge:{width:0,color:"line",ring:false},shadow:{color:"",x:0,y:0,blur:0,spread:0},center:false,color:"text",fit:"cover",x:0,y:0,dy:0},outdent:8,row:{shown:true,w:343,h:62.281,padding:[10,8,10,8],marginTop:0,marginBottom:0,gap:[12,12],minHeight:0,radius:[10,10],bg:"none",edge:{width:0,color:"line",ring:false},shadow:{color:"",x:0,y:0,blur:0,spread:0},center:true,color:"text",fit:"cover",x:0,y:0,dy:0},leading:22,leadingFace:40,icon:{shown:true,w:20,h:20,padding:[0,0,0,0],marginTop:0,marginBottom:0,gap:[0,0],minHeight:0,radius:[0,0],bg:"none",edge:{width:0,color:"line",ring:false},shadow:{color:"",x:0,y:0,blur:0,spread:0},center:false,color:"muted",fit:"cover",x:0,y:0,dy:0},text:{shown:true,w:261,h:42.281,padding:[0,0,0,0],marginTop:0,marginBottom:0,gap:[2,2],minHeight:0,radius:[0,0],bg:"none",edge:{width:0,color:"line",ring:false},shadow:{color:"",x:0,y:0,blur:0,spread:0},center:false,color:"text",fit:"cover",x:0,y:0,dy:0},title:{shown:true,size:17,weight:700,lineHeight:22.1,color:"ink",tracking:0,face:"sans",upper:false,wrap:"pretty",tabular:false,deco:"none",decoOffset:0,decoThickness:0,marginTop:0,paddingTop:0},subtitle:{shown:true,size:13,weight:400,lineHeight:18.2,color:"muted",tracking:0,face:"sans",upper:false,wrap:"pretty",tabular:false,deco:"none",decoOffset:0,decoThickness:0,marginTop:0,paddingTop:0},pressed:"#EDF2EF",alert:{bg:"tintRed",icon:"alert",title:"alertDeep",subtitle:"alert"}},end:{text:{shown:true,size:15,weight:400,lineHeight:23.25,color:"muted",tracking:0,face:"sans",upper:false,wrap:"pretty",tabular:false,deco:"none",decoOffset:0,decoThickness:0,marginTop:0,paddingTop:0},gap:8,chevron:{shown:true,w:20,h:20,padding:[0,0,0,0],marginTop:0,marginBottom:0,gap:[0,0],minHeight:0,radius:[0,0],bg:"none",edge:{width:0,color:"line",ring:false},shadow:{color:"",x:0,y:0,blur:0,spread:0},center:false,color:"#819D90",fit:"cover",x:0,y:0,dy:0}},section:{title:{shown:true,size:18,weight:700,lineHeight:22.5,color:"ink",tracking:-.36,face:"sans",upper:false,wrap:"pretty",tabular:false,deco:"none",decoOffset:0,decoThickness:0,marginTop:0,paddingTop:0},titleGap:12,head:{shown:true,w:361,h:22.5,padding:[0,0,0,0],marginTop:8,marginBottom:0,gap:[12,8],minHeight:0,radius:[0,0],bg:"none",edge:{width:0,color:"line",ring:false},shadow:{color:"",x:0,y:0,blur:0,spread:0},center:true,color:"text",fit:"cover",x:0,y:0,dy:0},note:{shown:true,size:13,weight:400,lineHeight:19.5,color:"muted",tracking:0,face:"sans",upper:false,wrap:"pretty",tabular:false,deco:"none",decoOffset:0,decoThickness:0,marginTop:12,paddingTop:0}},avatar:{sizes:{xs:20,sm:36,md:48,lg:64,xl:128},face:40,bg:"surface",edge:{width:1,color:"line",ring:true},initials:{shown:true,size:15,weight:700,lineHeight:23.25,color:"ink",tracking:0,face:"sans",upper:false,wrap:"pretty",tabular:false,deco:"none",decoOffset:0,decoThickness:0,marginTop:0,paddingTop:0},initialsXs:{shown:true,size:9,weight:700,lineHeight:13.95,color:"ink",tracking:0,face:"sans",upper:false,wrap:"pretty",tabular:false,deco:"none",decoOffset:0,decoThickness:0,marginTop:0,paddingTop:0},tints:{default:"tintPink",pink:"#FFCFC9",blue:"#C2CEE5",yellow:"#F6D78F",sage:"#C6D3CD"},ring:{width:2,offset:2,color:"go"},ringXl:{width:3,offset:4,color:"go"},dot:{size:12,edge:2,edgeColor:"surface"}},stack:{size:28,overlap:-8,initialsSize:12,halo:{width:2,color:"surface"}},banner:{box:{shown:true,w:361,h:155.391,padding:[16,16,16,16],marginTop:0,marginBottom:0,gap:[12,4],minHeight:0,radius:[20,20],bg:"#F1F5F2",edge:{width:0,color:"line",ring:false},shadow:{color:"",x:0,y:0,blur:0,spread:0},center:false,color:"text",fit:"cover",x:0,y:0,dy:0},icon:{shown:true,w:22,h:22,padding:[0,0,0,0],marginTop:1,marginBottom:0,gap:[0,0],minHeight:0,radius:[0,0],bg:"none",edge:{width:0,color:"line",ring:false},shadow:{color:"",x:0,y:0,blur:0,spread:0},center:false,color:"ink",fit:"cover",x:0,y:0,dy:0},iconRows:3,kicker:{shown:true,size:12,weight:700,lineHeight:16.8,color:"#5B5B5B",tracking:.72,face:"mono",upper:true,wrap:"pretty",tabular:false,deco:"none",decoOffset:0,decoThickness:0,marginTop:0,paddingTop:0},title:{shown:true,size:17,weight:700,lineHeight:22.1,color:"ink",tracking:0,face:"sans",upper:false,wrap:"pretty",tabular:false,deco:"none",decoOffset:0,decoThickness:0,marginTop:0,paddingTop:0},text:{shown:true,size:15,weight:400,lineHeight:21.75,color:"text",tracking:0,face:"sans",upper:false,wrap:"pretty",tabular:false,deco:"none",decoOffset:0,decoThickness:0,marginTop:0,paddingTop:0},acts:{shown:true,w:295,h:21,padding:[0,0,0,0],marginTop:8,marginBottom:0,gap:[16,8],minHeight:0,radius:[0,0],bg:"none",edge:{width:0,color:"line",ring:false},shadow:{color:"",x:0,y:0,blur:0,spread:0},center:true,color:"text",fit:"cover",x:0,y:0,dy:0},link:{shown:true,size:15,weight:700,lineHeight:21,color:"ink",tracking:0,face:"sans",upper:false,wrap:"pretty",tabular:false,deco:"none",decoOffset:0,decoThickness:0,marginTop:0,paddingTop:0},tones:{info:{bg:"#F1F5F2",icon:"ink"},success:{bg:"tintGo",icon:"ink"},warn:{bg:"#FCF0D6",icon:"#926F06"},danger:{bg:"tintRed",icon:"alert"}}},toast:{box:{shown:true,w:200.281,h:40.25,padding:[10,16,10,16],marginTop:0,marginBottom:0,gap:[0,0],minHeight:0,radius:[999,999],bg:"ink",edge:{width:0,color:"line",ring:false},shadow:{color:"",x:0,y:0,blur:0,spread:0},center:false,color:"surface",fit:"cover",x:0,y:0,dy:0},text:{shown:true,size:15,weight:400,lineHeight:20.25,color:"onInk",tracking:0,face:"sans",upper:false,wrap:"pretty",tabular:false,deco:"none",decoOffset:0,decoThickness:0,marginTop:0,paddingTop:10},inset:16,rise:8,fade:200,hold:2600},spinner:{size:16,border:2,turn:700,openSide:true,reducedOpacity:.5},offbar:{box:{shown:true,w:361,h:56,padding:[6,16,6,16],marginTop:0,marginBottom:0,gap:[10,10],minHeight:44,radius:[0,0],bg:"#FCF0D6",edge:{width:0,color:"line",ring:false},shadow:{color:"",x:0,y:0,blur:0,spread:0},center:true,color:"ink",fit:"cover",x:0,y:48,dy:0},text:{shown:true,size:15,weight:500,lineHeight:19.5,color:"ink",tracking:0,face:"sans",upper:false,wrap:"pretty",tabular:false,deco:"none",decoOffset:0,decoThickness:0,marginTop:0,paddingTop:0},icon:{shown:true,w:20,h:20,padding:[0,0,0,0],marginTop:0,marginBottom:0,gap:[0,0],minHeight:0,radius:[0,0],bg:"none",edge:{width:0,color:"line",ring:false},shadow:{color:"",x:0,y:0,blur:0,spread:0},center:false,color:"ink",fit:"cover",x:0,y:0,dy:0},action:{shown:true,w:69.859,h:44,padding:[0,2,0,2],marginTop:0,marginBottom:0,gap:[6,6],minHeight:44,radius:[0,0],bg:"none",edge:{width:0,color:"line",ring:false},shadow:{color:"",x:0,y:0,blur:0,spread:0},center:true,color:"ink",fit:"cover",x:0,y:0,dy:0},actionText:{shown:true,size:15,weight:700,lineHeight:19.5,color:"ink",tracking:0,face:"sans",upper:false,wrap:"pretty",tabular:false,deco:"underline",decoOffset:3,decoThickness:0,marginTop:0,paddingTop:0},online:{bg:"ink",color:"onInk"},fade:200},progress:{track:{shown:true,w:361,h:4,padding:[0,0,0,0],marginTop:0,marginBottom:0,gap:[0,0],minHeight:0,radius:[999,999],bg:"line",edge:{width:0,color:"line",ring:false},shadow:{color:"",x:0,y:0,blur:0,spread:0},center:false,color:"text",fit:"cover",x:0,y:0,dy:0},fill:"go",move:300},divider:{width:1,color:"line",label:{shown:true,size:12,weight:400,lineHeight:18.6,color:"muted",tracking:.72,face:"mono",upper:true,wrap:"pretty",tabular:false,deco:"none",decoOffset:0,decoThickness:0,marginTop:0,paddingTop:0},labelGap:12,labelLine:{width:1,color:"line"}},errorInline:{text:{shown:true,size:15,weight:400,lineHeight:21,color:"alertDeep",tracking:0,face:"sans",upper:false,wrap:"pretty",tabular:false,deco:"none",decoOffset:0,decoThickness:0,marginTop:0,paddingTop:0},acts:{shown:true,w:361,h:21,padding:[0,0,0,0],marginTop:8,marginBottom:0,gap:[16,8],minHeight:0,radius:[0,0],bg:"none",edge:{width:0,color:"line",ring:false},shadow:{color:"",x:0,y:0,blur:0,spread:0},center:true,color:"text",fit:"cover",x:0,y:0,dy:0},link:{shown:true,size:15,weight:700,lineHeight:21,color:"ink",tracking:0,face:"sans",upper:false,wrap:"pretty",tabular:false,deco:"none",decoOffset:0,decoThickness:0,marginTop:0,paddingTop:0}},linkPressedOpacity:.6},variants:{drawer:{frame:{shown:true,w:393,h:226.594,padding:[10,20,40,20],marginTop:0,marginBottom:0,gap:[0,0],minHeight:0,radius:[28,0],bg:"surface",edge:{width:0,color:"line",ring:false},shadow:{color:"",x:0,y:0,blur:0,spread:0},center:false,color:"ink",fit:"cover",x:0,y:293.406,dy:0},maxHeight:.8,grab:{shown:true,w:40,h:5,padding:[0,0,0,0],marginTop:0,marginBottom:10,gap:[0,0],minHeight:0,radius:[2.5,2.5],bg:"#DAD7D1",edge:{width:0,color:"line",ring:false},shadow:{color:"",x:0,y:0,blur:0,spread:0},center:false,color:"ink",fit:"cover",x:0,y:0,dy:0},top:{shown:true,w:353,h:40,padding:[0,0,0,0],marginTop:0,marginBottom:0,gap:[0,0],minHeight:0,radius:[0,0],bg:"none",edge:{width:0,color:"line",ring:false},shadow:{color:"",x:0,y:0,blur:0,spread:0},center:true,color:"ink",fit:"cover",x:0,y:0,dy:0},kicker:{shown:true,size:11,weight:400,lineHeight:16.5,color:"muted",tracking:.88,face:"mono",upper:true,wrap:"auto",tabular:false,deco:"none",decoOffset:0,decoThickness:0,marginTop:0,paddingTop:0},close:{shown:true,w:40,h:40,padding:[0,0,0,0],marginTop:0,marginBottom:0,gap:[0,0],minHeight:0,radius:[20,20],bg:"none",edge:{width:0,color:"line",ring:false},shadow:{color:"",x:0,y:0,blur:0,spread:0},center:true,color:"ink",fit:"cover",x:0,y:0,dy:0},closeEnd:-8,closeIcon:22,title:{shown:true,size:24,weight:800,lineHeight:27.6,color:"ink",tracking:-.24,face:"serif",upper:false,wrap:"balance",tabular:false,deco:"none",decoOffset:0,decoThickness:0,marginTop:0,paddingTop:0},body:{shown:true,w:353,h:82,padding:[0,0,0,0],marginTop:12,marginBottom:0,gap:[10,10],minHeight:0,radius:[0,0],bg:"none",edge:{width:0,color:"line",ring:false},shadow:{color:"",x:0,y:0,blur:0,spread:0},center:false,color:"text",fit:"cover",x:0,y:0,dy:0},text:{shown:true,size:16,weight:400,lineHeight:24,color:"text",tracking:0,face:"sans",upper:false,wrap:"auto",tabular:false,deco:"none",decoOffset:0,decoThickness:0,marginTop:0,paddingTop:0},scrim:"ink/0.38",motion:{enterMs:320,enterEasing:[.32,.72,0,1],exitMs:220,exitEasing:[.23,1,.32,1],scrimEnterMs:240,scrimExitMs:200,scrimEasing:[.25,.1,.25,1]}},button:{ink:{fill:false,minHeight:48,paddingX:22,gap:8,borderWidth:0,ring:false,fontSize:16,fontWeight:700,lineHeight:1.5,iconSize:20},outline:{fill:false,minHeight:48,paddingX:22,gap:8,borderWidth:1.5,ring:true,fontSize:16,fontWeight:700,lineHeight:1.5,iconSize:20},sm:{fill:false,minHeight:40,paddingX:16,gap:8,borderWidth:1.5,ring:true,fontSize:15,fontWeight:700,lineHeight:1.5,iconSize:20},lg:{fill:false,minHeight:56,paddingX:28,gap:8,borderWidth:0,ring:false,fontSize:17,fontWeight:700,lineHeight:1.5,iconSize:20},disabledOpacity:.32,press:.97,transition:"transform 160ms cubic-bezier(0.23, 1, 0.32, 1), opacity 160ms ease"},segmented:{track:{shown:true,w:361,h:44,padding:[4,4,4,4],marginTop:0,marginBottom:0,gap:[4,4],minHeight:0,radius:[22,22],bg:"surface",edge:{width:1.5,color:"#DAD7D1",ring:true},shadow:{color:"",x:0,y:0,blur:0,spread:0},center:false,color:"ink",fit:"cover",x:0,y:0,dy:0},option:{shown:true,w:115,h:36,padding:[0,6,0,6],marginTop:0,marginBottom:0,gap:[0,0],minHeight:36,radius:[18,18],bg:"none",edge:{width:0,color:"line",ring:false},shadow:{color:"",x:0,y:0,blur:0,spread:0},center:false,color:"ink",fit:"cover",x:0,y:0,dy:0},label:{shown:true,size:14,weight:700,lineHeight:21,color:"ink",tracking:0,face:"sans",upper:false,wrap:"auto",tabular:false,deco:"none",decoOffset:0,decoThickness:0,marginTop:0,paddingTop:0},chosen:{shown:true,w:115,h:36,padding:[0,6,0,6],marginTop:0,marginBottom:0,gap:[0,0],minHeight:36,radius:[18,18],bg:"ink",edge:{width:0,color:"line",ring:false},shadow:{color:"",x:0,y:0,blur:0,spread:0},center:false,color:"onInk",fit:"cover",x:0,y:0,dy:0},chosenLabel:{shown:true,size:14,weight:700,lineHeight:21,color:"onInk",tracking:0,face:"sans",upper:false,wrap:"auto",tabular:false,deco:"none",decoOffset:0,decoThickness:0,marginTop:0,paddingTop:0},press:.96,transition:"background-color 160ms ease, transform 160ms cubic-bezier(0.23, 1, 0.32, 1)"},stepper:{track:{shown:true,w:110,h:40,padding:[0,0,0,0],marginTop:0,marginBottom:0,gap:[0,0],minHeight:0,radius:[20,20],bg:"surface",edge:{width:1.5,color:"#DAD7D1",ring:true},shadow:{color:"",x:0,y:0,blur:0,spread:0},center:true,color:"ink",fit:"cover",x:0,y:0,dy:0},button:{shown:true,w:40,h:40,padding:[0,0,0,0],marginTop:0,marginBottom:0,gap:[0,0],minHeight:0,radius:[20,20],bg:"none",edge:{width:0,color:"line",ring:false},shadow:{color:"",x:0,y:0,blur:0,spread:0},center:true,color:"ink",fit:"cover",x:0,y:0,dy:0},icon:16,value:{shown:true,size:15.5,weight:800,lineHeight:23.25,color:"ink",tracking:0,face:"sans",upper:false,wrap:"auto",tabular:true,deco:"none",decoOffset:0,decoThickness:0,marginTop:0,paddingTop:0},valueWidth:30,disabledOpacity:.3,press:.9,transition:"transform 160ms cubic-bezier(0.23, 1, 0.32, 1)"},summary:{box:{shown:true,w:361,h:144,padding:[6,16,6,16],marginTop:0,marginBottom:0,gap:[0,0],minHeight:0,radius:[16,16],bg:"surface",edge:{width:0,color:"line",ring:false},shadow:{color:"rgba(38, 37, 35, 0.06)",x:0,y:1,blur:3,spread:0},center:false,color:"ink",fit:"cover",x:0,y:0,dy:0},row:{shown:true,w:329,h:34,padding:[0,0,0,0],marginTop:0,marginBottom:0,gap:[12,12],minHeight:34,radius:[0,0],bg:"none",edge:{width:0,color:"line",ring:false},shadow:{color:"",x:0,y:0,blur:0,spread:0},center:true,color:"ink",fit:"cover",x:0,y:0,dy:0},term:{shown:true,size:15,weight:400,lineHeight:22.5,color:"#4A4845",tracking:0,face:"sans",upper:false,wrap:"auto",tabular:true,deco:"none",decoOffset:0,decoThickness:0,marginTop:0,paddingTop:0},value:{shown:true,size:15,weight:400,lineHeight:22.5,color:"ink",tracking:0,face:"sans",upper:false,wrap:"auto",tabular:true,deco:"none",decoOffset:0,decoThickness:0,marginTop:0,paddingTop:0},totalRow:{shown:true,w:329,h:42,padding:[0,0,0,0],marginTop:0,marginBottom:0,gap:[12,12],minHeight:42,radius:[0,0],bg:"none",edge:{width:0,color:"line",ring:false},shadow:{color:"",x:0,y:0,blur:0,spread:0},center:true,color:"ink",fit:"cover",x:0,y:0,dy:0},totalTerm:{shown:true,size:17,weight:800,lineHeight:25.5,color:"ink",tracking:0,face:"sans",upper:false,wrap:"auto",tabular:true,deco:"none",decoOffset:0,decoThickness:0,marginTop:0,paddingTop:0},total:{shown:true,size:17,weight:800,lineHeight:25.5,color:"ink",tracking:0,face:"sans",upper:false,wrap:"auto",tabular:true,deco:"none",decoOffset:0,decoThickness:0,marginTop:0,paddingTop:0},renewRow:{shown:true,w:329,h:28,padding:[0,0,0,0],marginTop:-6,marginBottom:0,gap:[12,12],minHeight:28,radius:[0,0],bg:"none",edge:{width:0,color:"line",ring:false},shadow:{color:"",x:0,y:0,blur:0,spread:0},center:true,color:"ink",fit:"cover",x:0,y:0,dy:0},renewTerm:{shown:true,size:14,weight:400,lineHeight:21,color:"#4A4845",tracking:0,face:"sans",upper:false,wrap:"auto",tabular:true,deco:"none",decoOffset:0,decoThickness:0,marginTop:0,paddingTop:0},renew:{shown:true,size:14,weight:400,lineHeight:21,color:"ink",tracking:0,face:"sans",upper:false,wrap:"auto",tabular:true,deco:"none",decoOffset:0,decoThickness:0,marginTop:0,paddingTop:0},inset:{shown:true,w:361,h:88,padding:[6,16,6,16],marginTop:0,marginBottom:0,gap:[0,0],minHeight:0,radius:[16,16],bg:"bg",edge:{width:0,color:"line",ring:false},shadow:{color:"",x:0,y:0,blur:0,spread:0},center:false,color:"ink",fit:"cover",x:0,y:0,dy:0}},toast:{box:{shown:true,w:361,h:64.594,padding:[12,15,12,15],marginTop:0,marginBottom:0,gap:[0,0],minHeight:0,radius:[16,16],bg:"ink",edge:{width:0,color:"line",ring:false},shadow:{color:"",x:0,y:0,blur:0,spread:0},center:false,color:"onInk",fit:"cover",x:16,y:62,dy:0},text:{shown:true,size:14.5,weight:400,lineHeight:20.3,color:"onInk",tracking:0,face:"sans",upper:false,wrap:"auto",tabular:false,deco:"none",decoOffset:0,decoThickness:0,marginTop:0,paddingTop:12},motion:{enterMs:220,exitMs:160,easing:[.23,1,.32,1],rise:-8}},focus:{width:2,offset:2,color:"ink"}},press:{button:.97,iconButton:.94,card:.98},colors:{grab:"#C9C9C9",scrim:"rgba(0, 0, 0, 0.32)",watch:"#F9E6B9",planInk:"#262523",planOnInk:"#FFFFFF",planAccent:"#FFCE34",planLink:"#00707C",planAccentWash:"#FFF7DC",planAccentChip:"#FFE7A1",planLinkWash:"#E0FDFF",planLinkChip:"#C8F4F8"}},Kn={card:/* @__PURE__ */Un({w:361,h:163.547}),top:/* @__PURE__ */Un({w:361,h:39.547,gap:[12,12]}),title:/* @__PURE__ */Yn({size:16,weight:700,lineHeight:20,tracking:-.16}),meta:/* @__PURE__ */Yn({size:13,weight:400,lineHeight:17.55,color:"muted"}),total:/* @__PURE__ */Yn({size:16,weight:700,lineHeight:24.8,tabular:true}),shots:/* @__PURE__ */Un({w:361,h:64,marginTop:8,gap:[8,8]}),acts:/* @__PURE__ */Un({w:361,h:40,marginTop:12,gap:[8,8]}),go:/* @__PURE__ */Un({w:176.5,h:40,padding:[0,12,0,12],gap:[6,6],minHeight:40,radius:[999,999],bg:"go",center:true}),goText:/* @__PURE__ */Yn({size:14,weight:700,lineHeight:21.7}),plain:/* @__PURE__ */Un({w:176.5,h:40,padding:[0,12,0,12],gap:[6,6],minHeight:40,radius:[999,999],bg:"#F3F3F3",center:true}),plainText:/* @__PURE__ */Yn({size:14,weight:700,lineHeight:21.7}),note:/* @__PURE__ */Yn({size:13,weight:500,lineHeight:17.55,marginTop:8}),icon:/* @__PURE__ */Un({w:16,h:16}),actsColumns:2,shotPressScale:.96},Qn={top:/* @__PURE__ */Un({w:361,h:43.547,gap:[12,12]}),when:/* @__PURE__ */Un({w:300.063,h:24,gap:[8,4],center:true}),title:/* @__PURE__ */Yn({size:16,weight:700,lineHeight:20.8}),chip:/* @__PURE__ */Un({w:86.031,h:24,padding:[0,9,0,5],gap:[4,4],minHeight:24,radius:[999,999],bg:"tintGo",center:true,color:"ink"}),chipText:/* @__PURE__ */Yn({size:12,weight:700,lineHeight:15.6,color:"ink"}),chipIcon:/* @__PURE__ */Un({w:14,h:14,color:"ink"}),meta:/* @__PURE__ */Yn({size:13,weight:400,lineHeight:17.55,color:"muted",marginTop:2}),total:/* @__PURE__ */Yn({size:16,weight:700,lineHeight:24.8,tabular:true}),shots:/* @__PURE__ */Un({w:361,h:64,marginTop:8,gap:[8,8]}),shot:/* @__PURE__ */Un({w:64,h:64,radius:[14,14],bg:"#F3F3F3"}),shotImg:/* @__PURE__ */Un({w:64,h:64,padding:[6.391,6.391,6.391,6.391],fit:"contain"}),shotBlend:"multiply",acts:/* @__PURE__ */Un({w:361,h:44,marginTop:12,gap:[12,12],center:true}),plain:/* @__PURE__ */Un({w:162.109,h:44,padding:[0,16,0,16],gap:[6,6],minHeight:44,radius:[999,999],bg:"#F3F3F3",center:true}),plainText:/* @__PURE__ */Yn({size:14,weight:700,lineHeight:21.7}),icon:/* @__PURE__ */Un({w:16,h:16}),link:/* @__PURE__ */Un({w:62.578,h:44,padding:[0,6,0,6],minHeight:44}),linkText:/* @__PURE__ */Yn({size:14,weight:700,lineHeight:21.7,deco:"underline",decoOffset:3,decoThickness:1.5})},Jn={card:/* @__PURE__ */Un({w:952,h:127.781,padding:[16,24,16,16],gap:[24,16],radius:[20,20],bg:"surface",shadow:{color:"rgba(0, 0, 0, 0.04)",x:0,y:1,blur:2,spread:0},center:true}),lift:{color:"rgba(0, 0, 0, 0.05)",x:0,y:6,blur:20,spread:0},shots:/* @__PURE__ */Un({w:172,h:72}),sq:/* @__PURE__ */Un({w:72,h:72,radius:[14,14],bg:"#F3F3F3"}),sqRing:3,sqOverlap:22,imgInset:.1,imgFit:"contain",imgBlend:"multiply",text:/* @__PURE__ */Un({w:446.547,h:95.781,gap:[2,2]}),when:/* @__PURE__ */Un({w:446.547,h:26,gap:[12,4],center:true}),title:/* @__PURE__ */Yn({size:19,weight:700,lineHeight:24.7,tabular:true}),total:/* @__PURE__ */Yn({size:19,weight:900,lineHeight:24.7,tabular:true}),chip:/* @__PURE__ */Un({w:94.547,h:26,padding:[0,10,0,6],gap:[4,4],minHeight:26,radius:[999,999],bg:"tintGo",center:true,color:"ink"}),chipText:/* @__PURE__ */Yn({size:13,weight:700,lineHeight:16.9,color:"ink",tabular:true}),chipIcon:/* @__PURE__ */Un({w:16,h:16,color:"ink"}),meta:/* @__PURE__ */Yn({size:16,weight:400,lineHeight:22.4}),note:/* @__PURE__ */Yn({size:15,weight:400,lineHeight:21}),acts:/* @__PURE__ */Un({w:245.453,h:46,gap:[24,8],center:true}),plain:/* @__PURE__ */Un({w:160.031,h:46,padding:[0,20,0,20],gap:[8,8],minHeight:46,radius:[999,999],bg:"surface",edge:{width:1.5,color:"#C6D3CD",ring:true},center:true,color:"ink"}),plainText:/* @__PURE__ */Yn({size:16,weight:700,lineHeight:19.2,color:"ink"}),icon:/* @__PURE__ */Un({w:18,h:18,color:"ink"}),link:/* @__PURE__ */Un({w:61.422,h:44,gap:[8,8],minHeight:44,center:true,color:"ink"}),linkText:/* @__PURE__ */Yn({size:17,weight:700,lineHeight:20.4,color:"ink",deco:"underline",decoOffset:4}),go:/* @__PURE__ */Un({w:228.75,h:52,padding:[0,24,0,24],gap:[8,8],minHeight:52,radius:[999,999],bg:"ink",center:true,color:"surface"}),goText:/* @__PURE__ */Yn({size:17,weight:700,lineHeight:20.4,color:"surface",wrap:"auto"}),pressScale:.97,hoverFill:{color:"ink",share:.06,over:"surface"},chipOff:/* @__PURE__ */Un({w:97.422,h:26,padding:[0,10,0,6],gap:[4,4],minHeight:26,radius:[999,999],center:true,color:"ink"}),metaLink:/* @__PURE__ */Yn({size:16,weight:400,lineHeight:22.4,deco:"underline"}),narrow:{upTo:599,card:/* @__PURE__ */Un({w:560,h:247.391,padding:[16,16,16,16],gap:[24,16],radius:[20,20],bg:"surface",center:true}),sq:/* @__PURE__ */Un({w:64,h:64,radius:[14,14],bg:"#F3F3F3",shadow:{color:"#FFFFFF",x:0,y:0,blur:0,spread:3}}),sqOverlap:16},phone:{upTo:639,card:/* @__PURE__ */Un({w:335,h:120.984,gap:[12,8],center:true}),sq:/* @__PURE__ */Un({w:48,h:48,radius:[12,12],bg:"#F3F3F3"}),sqRing:2,sqOverlap:18,when:/* @__PURE__ */Un({w:215,h:46.797,gap:[12,2],center:true}),title:/* @__PURE__ */Yn({size:16,weight:700,lineHeight:20.8,tabular:true}),total:/* @__PURE__ */Yn({size:16,weight:900,lineHeight:20.8,tabular:true}),chip:/* @__PURE__ */Un({w:90.031,h:24,padding:[0,10,0,6],gap:[4,4],minHeight:24,radius:[999,999],bg:"tintGo",center:true,color:"ink"}),chipText:/* @__PURE__ */Yn({size:12,weight:700,lineHeight:15.6,color:"ink",tabular:true}),whatHidden:true,note:/* @__PURE__ */Yn({size:13,weight:400,lineHeight:18.2}),acts:/* @__PURE__ */Un({w:335,h:46,gap:[24,8],center:true}),plain:/* @__PURE__ */Un({w:144.531,h:46,padding:[0,16,0,16],gap:[8,8],minHeight:46,radius:[999,999],bg:"surface",edge:{width:1.5,color:"#C6D3CD",ring:true},center:true,color:"ink"}),plainText:/* @__PURE__ */Yn({size:15,weight:700,lineHeight:18,color:"ink"}),linkText:/* @__PURE__ */Yn({size:15,weight:700,lineHeight:18,color:"ink",deco:"underline",decoOffset:4})}},Zn={card:/* @__PURE__ */Un({w:156,h:310.969,gap:[4,4]}),kicker:/* @__PURE__ */Yn({size:12,weight:400,lineHeight:15.6,color:"muted",tracking:.12,face:"mono"}),name:/* @__PURE__ */Yn({size:15,weight:700,lineHeight:19.5,wrap:"balance"}),meta:/* @__PURE__ */Yn({size:13,weight:400,lineHeight:18.2,color:"muted"}),buy:/* @__PURE__ */Un({w:156,h:36,marginTop:6,gap:[8,8],center:true}),price:/* @__PURE__ */Yn({size:15,weight:700,lineHeight:23.25,tabular:true})},el={card:/* @__PURE__ */Un({w:174.5,h:249.219,gap:[2,2]}),tag:/* @__PURE__ */Un({w:84.563,h:26,padding:[0,9,0,6],gap:[4,4],minHeight:26,radius:[999,999],bg:"surface",center:true,x:8,y:8}),tagIcon:/* @__PURE__ */Un({w:16,h:16,color:"#CA4463"}),tagText:/* @__PURE__ */Yn({size:12,weight:700,lineHeight:12}),price:/* @__PURE__ */Un({w:174.5,h:26.344,gap:[6,6]}),priceText:/* @__PURE__ */Yn({size:17,weight:700,lineHeight:26.35,tracking:-.17,tabular:true}),was:/* @__PURE__ */Yn({size:13,weight:400,lineHeight:20.15,color:"muted",tabular:true,deco:"strike"}),name:/* @__PURE__ */Yn({size:14,weight:500,lineHeight:18.2,wrap:"balance"}),meta:/* @__PURE__ */Yn({size:12,weight:400,lineHeight:16.2,color:"muted"}),metaAuto:/* @__PURE__ */Yn({size:12,weight:500,lineHeight:16.2,color:"#16864A"}),step:/* @__PURE__ */Un({w:112,h:38,radius:[19,19],bg:"surface",center:true,x:54.5,y:128.5}),stepIn:/* @__PURE__ */Un({w:112,h:38,radius:[19,19],bg:"ink",center:true,color:"surface",x:54.5,y:128.5}),stepAt:{right:8,bottom:8},stepButton:/* @__PURE__ */Un({w:38,h:38,radius:[19,19],center:true}),stepIcon:/* @__PURE__ */Un({w:18,h:18}),count:/* @__PURE__ */Yn({size:15,weight:700,lineHeight:23.25,color:"surface",tabular:true}),lift:{color:"rgba(0, 0, 0, 0.14)",x:0,y:2,blur:8,spread:0},per:/* @__PURE__ */Yn({size:12,weight:400,lineHeight:16.2,color:"muted",tabular:true}),metaAutoDark:/* @__PURE__ */Yn({size:12,weight:500,lineHeight:16.2,color:"ink"}),pill:/* @__PURE__ */Un({w:62.234,h:36,padding:[0,14,0,14],gap:[4,4],minHeight:36,radius:[999,999],bg:"go",center:true,x:104.266,y:130.5}),pillText:/* @__PURE__ */Yn({size:14,weight:700,lineHeight:21.7}),pillOn:/* @__PURE__ */Un({w:90.016,h:36,padding:[0,14,0,14],gap:[4,4],minHeight:36,radius:[999,999],bg:"surface",edge:{width:2,color:"text",ring:true},center:true,x:76.484,y:130.5}),pillOnText:/* @__PURE__ */Yn({size:14,weight:700,lineHeight:21.7}),pillIcon:/* @__PURE__ */Un({w:16,h:16}),pillSoft:/* @__PURE__ */Un({w:80.125,h:36,padding:[0,14,0,14],gap:[4,4],minHeight:36,radius:[999,999],bg:"surface",shadow:{color:"rgba(0, 0, 0, 0.14)",x:0,y:2,blur:8,spread:0},center:true,x:86.375,y:130.5}),pillSoftText:/* @__PURE__ */Yn({size:14,weight:700,lineHeight:21.7}),pillAt:{right:8,bottom:8},pillPressScale:.96},tl={img:/* @__PURE__ */Un({w:174.5,h:174.5,padding:[32,14,16,14],fit:"contain"}),imgBlend:"multiply",lift:{color:"rgba(0, 0, 0, 0.08)",x:0,y:2,blur:8,spread:0},pill:/* @__PURE__ */Un({w:62.234,h:36,padding:[0,14,0,14],gap:[4,4],minHeight:36,radius:[999,999],bg:"pink",edge:{width:1,color:"ink",ring:true},center:true,color:"ink",x:104.266,y:130.5}),pillText:/* @__PURE__ */Yn({size:14,weight:700,lineHeight:21.7,color:"ink"}),pillOn:/* @__PURE__ */Un({w:90.016,h:36,padding:[0,14,0,14],gap:[4,4],minHeight:36,radius:[999,999],bg:"surface",edge:{width:2,color:"ink",ring:true},center:true,color:"ink",x:76.484,y:130.5}),pillOnText:/* @__PURE__ */Yn({size:14,weight:700,lineHeight:21.7,color:"ink"}),pillPressScale:.97},il={card:/* @__PURE__ */Un({w:306.656,h:370.641,gap:[2,2]}),square:/* @__PURE__ */Un({w:306.656,h:306.656,marginBottom:10,radius:[20,20],bg:"#F5F5F5"}),imgInsetTag:{share:[.11,.11,.1,.11],px:[26,0,0,0]},imgInset:{share:[.07,.07,.07,.07],px:[0,0,0,0]},imgFit:"contain",imgBlend:"multiply",tag:/* @__PURE__ */Un({w:112.516,h:30,padding:[0,12,0,8],gap:[5,5],minHeight:30,radius:[999,999],bg:"#F7E3E8",center:true,color:"ink",x:10,y:10}),tagText:/* @__PURE__ */Yn({size:13,weight:700,lineHeight:14.3,color:"ink"}),tagIcon:/* @__PURE__ */Un({w:16,h:16,color:"#CA4463"}),tagMix:.15,name:/* @__PURE__ */Yn({size:17,weight:500,lineHeight:22.1,wrap:"balance"}),nameLeading:1.3,coverRadius:20,price:/* @__PURE__ */Un({w:306.656,h:27.891,gap:[8,2]}),priceText:/* @__PURE__ */Yn({size:18,weight:700,lineHeight:27.9,tracking:-.18,tabular:true}),was:/* @__PURE__ */Yn({size:15,weight:400,lineHeight:23.25,tabular:true,deco:"strike"}),per:/* @__PURE__ */Yn({size:15,weight:400,lineHeight:23.25,tabular:true}),badge:/* @__PURE__ */Un({w:32.625,h:22,padding:[0,8,0,8],radius:[999,999],bg:"#DEE4F1",edge:{width:1.5,color:"rgba(90, 96, 135, 0.45)",ring:true},center:true}),badgeText:/* @__PURE__ */Yn({size:13,weight:700,lineHeight:13,tabular:true}),meta:/* @__PURE__ */Yn({size:15,weight:400,lineHeight:21}),add:/* @__PURE__ */Un({w:44,h:44,radius:[22,22],bg:"surface",shadow:{color:"rgba(0, 0, 0, 0.14)",x:0,y:2,blur:8,spread:0},center:true}),addIcon:/* @__PURE__ */Un({w:20,h:20}),actAt:{right:10,bottom:10},step:/* @__PURE__ */Un({w:116,h:44,radius:[22,22],bg:"ink",center:true,color:"surface"}),stepButton:/* @__PURE__ */Un({w:44,h:44,radius:[22,22],center:true,color:"surface"}),stepIcon:/* @__PURE__ */Un({w:18,h:18,color:"surface"}),count:/* @__PURE__ */Yn({size:15,weight:700,lineHeight:23.25,color:"surface",tabular:true}),pill:/* @__PURE__ */Un({w:68.688,h:44,padding:[0,16,0,16],gap:[6,6],minHeight:44,radius:[999,999],bg:"ink",center:true,color:"surface"}),pillText:/* @__PURE__ */Yn({size:15,weight:700,lineHeight:15,color:"surface"}),pillOn:/* @__PURE__ */Un({w:101.016,h:44,padding:[0,16,0,16],gap:[6,6],minHeight:44,radius:[999,999],bg:"surface",edge:{width:2,color:"ink",ring:true},center:true,color:"ink"}),pillOnText:/* @__PURE__ */Yn({size:15,weight:700,lineHeight:15,color:"ink"}),pillIcon:/* @__PURE__ */Un({w:18,h:18,color:"ink"}),pillSoft:/* @__PURE__ */Un({w:87.859,h:44,padding:[0,16,0,16],gap:[6,6],minHeight:44,radius:[999,999],bg:"surface",shadow:{color:"rgba(0, 0, 0, 0.14)",x:0,y:2,blur:8,spread:0},center:true}),pillSoftText:/* @__PURE__ */Yn({size:15,weight:700,lineHeight:15}),nameSteps:[{upTo:599,name:/* @__PURE__ */Yn({size:16,weight:500,lineHeight:20.8,wrap:"balance"})},{upTo:399,name:/* @__PURE__ */Yn({size:14,weight:500,lineHeight:18.2,wrap:"balance"})}],addPressScale:.94,stepPressScale:.88,pillPressScale:.97,imgInsetEven:{share:[.07,.07,.07,.07],px:[0,0,0,0]},imgInsetWhite:{share:[.11,.11,.14,.11],px:[0,0,0,0]},groundWhite:"surface",focusOffset:3,hover:{ring:{width:1.5,share:.45,color:"ink"},underlineOffset:3}},rl={card:/* @__PURE__ */Un({shown:false,w:361,h:109.328,gap:[12,12],center:true}),name:/* @__PURE__ */Yn({shown:false,size:17,weight:700,lineHeight:22.1,color:"ink"}),meta:/* @__PURE__ */Yn({shown:false,size:13,weight:400,lineHeight:18.85,color:"muted",marginTop:2})},nl={line:/* @__PURE__ */Un({w:361,h:109.328,gap:[12,12],center:true}),name:/* @__PURE__ */Un({w:289,h:24,gap:[8,4],center:true,color:"ink"}),nameText:/* @__PURE__ */Yn({size:17,weight:700,lineHeight:22.1,color:"ink"}),meta:/* @__PURE__ */Yn({size:13,weight:400,lineHeight:18.85,color:"muted",marginTop:2}),price:/* @__PURE__ */Yn({size:17,weight:700,lineHeight:26.35,color:"ink",tabular:true}),was:/* @__PURE__ */Yn({shown:false,size:13,weight:400,lineHeight:18.85,color:"muted",marginTop:2}),acts:/* @__PURE__ */Un({w:289,h:20.141,marginTop:6,gap:[16,16]}),remove:/* @__PURE__ */Yn({size:13,weight:700,lineHeight:20.15,color:"ink",deco:"underline",decoOffset:3}),removeBox:/* @__PURE__ */Un({w:53.016,h:20.141,color:"ink"}),end:/* @__PURE__ */Un({w:289,h:26.344,gap:[4,4]})},ll={line:/* @__PURE__ */Un({w:361,h:95.094,gap:[12,12]}),sm:/* @__PURE__ */Un({w:48,h:48,radius:[12,12],bg:"#F3F3F3"}),md:/* @__PURE__ */Un({w:52,h:52,radius:[12,12],bg:"#F3F3F3"}),lg:/* @__PURE__ */Un({w:56,h:56,radius:[12,12],bg:"#F3F3F3"}),imgInset:.1,imgFit:"contain",imgBlend:"multiply",name:/* @__PURE__ */Un({w:239.109,h:20,gap:[6,4],center:true}),nameText:/* @__PURE__ */Yn({size:15,weight:700,lineHeight:19.5}),link:/* @__PURE__ */Yn({size:15,weight:700,lineHeight:19.5}),linkReach:4,badge:/* @__PURE__ */Un({w:29.344,h:20,padding:[0,7,0,7],radius:[999,999],bg:"#E0E6F2",edge:{width:1.5,color:"rgba(90, 96, 135, 0.45)",ring:true},center:true}),badgeText:/* @__PURE__ */Yn({size:12,weight:700,lineHeight:12}),meta:/* @__PURE__ */Yn({size:13,weight:400,lineHeight:17.55,color:"muted",marginTop:2}),acts:/* @__PURE__ */Un({w:239.109,h:32,marginTop:6,gap:[16,16]}),act:/* @__PURE__ */Yn({size:13,weight:700,lineHeight:20.15,color:"ink",deco:"underline",decoOffset:3}),actBox:/* @__PURE__ */Un({w:84.531,h:32,minHeight:32,color:"ink"}),price:/* @__PURE__ */Yn({size:15,weight:700,lineHeight:23.25,tabular:true}),was:/* @__PURE__ */Yn({size:13,weight:400,lineHeight:20.15,color:"muted",tabular:true,deco:"strike"})},ol={line:/* @__PURE__ */Un({w:404,h:88,gap:[16,0],center:true}),sq:/* @__PURE__ */Un({w:88,h:88,radius:[14,14],bg:"#F3F3F3"}),imgInset:.1,imgFit:"contain",imgBlend:"multiply",name:/* @__PURE__ */Un({w:225.875,h:24.688,gap:[8,4],center:true}),nameText:/* @__PURE__ */Yn({size:19,weight:700,lineHeight:24.7}),link:/* @__PURE__ */Yn({size:19,weight:700,lineHeight:24.7}),linkReach:4,badge:/* @__PURE__ */Un({w:32.625,h:22,padding:[0,8,0,8],radius:[999,999],bg:"#DEE4F1",center:true}),badgeText:/* @__PURE__ */Yn({size:13,weight:700,lineHeight:13}),meta:/* @__PURE__ */Yn({size:15,weight:400,lineHeight:21,marginTop:2}),price:/* @__PURE__ */Yn({size:19,weight:700,lineHeight:29.45,tabular:true}),was:/* @__PURE__ */Yn({size:15,weight:400,lineHeight:23.25,tabular:true,deco:"strike"}),narrow:{upTo:599,sq:/* @__PURE__ */Un({w:64,h:64,radius:[14,14],bg:"#F3F3F3"}),cost:/* @__PURE__ */Un({w:432,h:29.438,marginTop:4,gap:[8,8]}),nameText:/* @__PURE__ */Yn({size:17,weight:700,lineHeight:22.1}),link:/* @__PURE__ */Yn({size:17,weight:700,lineHeight:22.1})},narrower:{upTo:330,sq:/* @__PURE__ */Un({w:56,h:56,radius:[14,14],bg:"#F3F3F3"}),cost:/* @__PURE__ */Un({w:216,h:29.438,marginTop:4,gap:[8,8]}),nameText:/* @__PURE__ */Yn({size:17,weight:700,lineHeight:22.1}),link:/* @__PURE__ */Yn({size:17,weight:700,lineHeight:22.1})},phone:{upTo:639,line:/* @__PURE__ */Un({w:303,h:81.25,gap:[12,0],center:true}),sq:/* @__PURE__ */Un({w:56,h:56,radius:[12,12],bg:"#F3F3F3"}),cost:/* @__PURE__ */Un({w:235,h:23.25,marginTop:2,gap:[8,8]}),nameText:/* @__PURE__ */Yn({size:15,weight:700,lineHeight:19.5}),link:/* @__PURE__ */Yn({size:15,weight:700,lineHeight:19.5}),meta:/* @__PURE__ */Yn({size:13,weight:400,lineHeight:17.55,marginTop:2}),price:/* @__PURE__ */Yn({size:15,weight:700,lineHeight:23.25,tabular:true}),was:/* @__PURE__ */Yn({size:13,weight:400,lineHeight:20.15,tabular:true,deco:"strike"}),smallUpTo:359,smallSq:48}},al={line:/* @__PURE__ */Un({w:360,h:147.094,gap:[14,0]}),img:/* @__PURE__ */Un({w:64,h:64,radius:[14,14],bg:"surface",edge:{width:1.5,color:"#C6D3CD",ring:true}}),imgInset:6,imgFit:"contain",name:/* @__PURE__ */Un({w:216,h:22.094,gap:[8,4],center:true}),nameText:/* @__PURE__ */Yn({size:17,weight:700,lineHeight:22.1,wrap:"auto"}),badge:/* @__PURE__ */Un({w:32.625,h:22,padding:[0,8,0,8],radius:[999,999],bg:"#DEE4F1",edge:{width:1.5,color:"rgba(90, 96, 135, 0.45)",ring:true},center:true}),badgeText:/* @__PURE__ */Yn({size:13,weight:700,lineHeight:13,wrap:"auto"}),meta:/* @__PURE__ */Yn({size:15,weight:400,lineHeight:21,marginTop:2}),note:/* @__PURE__ */Yn({size:15,weight:700,lineHeight:21,color:"ink",marginTop:2}),acts:/* @__PURE__ */Un({w:282,h:92,marginTop:10,gap:[12,8],center:true}),plan:/* @__PURE__ */Un({w:193.703,h:44,padding:[3,3,3,3],radius:[999,999],bg:"surface",edge:{width:1.5,color:"#C6D3CD",ring:true}}),planBtn:/* @__PURE__ */Un({w:63.859,h:38,padding:[0,14,0,14],minHeight:38,radius:[999,999]}),planText:/* @__PURE__ */Yn({size:15,weight:500,lineHeight:23.25,wrap:"auto"}),planOn:/* @__PURE__ */Un({w:123.844,h:38,padding:[0,14,0,14],minHeight:38,radius:[999,999],bg:"ink",color:"surface"}),planOnText:/* @__PURE__ */Yn({size:15,weight:700,lineHeight:23.25,color:"surface",wrap:"auto"}),qty:/* @__PURE__ */Un({w:104,h:40,radius:[999,999],bg:"surface",edge:{width:1.5,color:"#C6D3CD",ring:true},center:true}),countMin:24,qtyBtn:/* @__PURE__ */Un({w:40,h:40,radius:[20,20],center:true}),qtyIcon:/* @__PURE__ */Un({w:16,h:16}),count:/* @__PURE__ */Yn({size:15,weight:700,lineHeight:23.25,wrap:"auto",tabular:true}),remove:/* @__PURE__ */Un({w:58.359,h:40,minHeight:40,color:"ink"}),removeText:/* @__PURE__ */Yn({size:15,weight:700,lineHeight:23.25,color:"ink",wrap:"auto",deco:"underline",decoOffset:3}),price:/* @__PURE__ */Yn({size:17,weight:700,lineHeight:22.1,wrap:"auto",tabular:true}),was:/* @__PURE__ */Yn({size:15,weight:400,lineHeight:19.5,wrap:"auto",tabular:true,deco:"strike"}),pressScale:.9,hover:{color:"ink",share:.06,over:"surface"},motion:{press:140,fill:150,planFill:150}},sl={note:/* @__PURE__ */Yn({size:13,weight:400,lineHeight:19.5,color:"muted",marginTop:12}),noteStrong:/* @__PURE__ */Yn({size:13,weight:700,lineHeight:19.5,color:"muted"})};var cl={card:/* @__PURE__ */Un({w:325,h:125.25,padding:[14,16,14,16],radius:[0,20],bg:"surface",shadow:{color:"rgba(0, 0, 0, 0.06)",x:0,y:2,blur:3,spread:-1}}),kicker:/* @__PURE__ */Un({w:293,h:24,gap:[8,8],center:true}),kickerText:/* @__PURE__ */Yn({size:15,weight:700,lineHeight:23.25}),source:/* @__PURE__ */Un({w:116.719,h:24,padding:[0,9,0,9],radius:[999,999],bg:"#DAF6E8",center:true,color:"ink"}),sourceText:/* @__PURE__ */Yn({size:12,weight:700,lineHeight:18.6,color:"ink"}),title:/* @__PURE__ */Yn({shown:false,size:15,weight:700,lineHeight:23.25}),signal:/* @__PURE__ */Un({w:293,h:65.25,marginTop:8,gap:[9,9],color:"#4D4D4D"}),signalText:/* @__PURE__ */Yn({size:15,weight:400,lineHeight:21.75,color:"#4D4D4D"}),signalLead:/* @__PURE__ */Yn({size:15,weight:700,lineHeight:21.75}),dot:/* @__PURE__ */Un({w:9,h:9,radius:[4.5,4.5],bg:"alert",color:"#4D4D4D",dy:-1}),score:/* @__PURE__ */Un({w:293,h:99.859,padding:[10,14,10,14],marginTop:12,gap:[12,12],radius:[10,10],bg:"#FCF0D6",center:true}),scoreLabel:/* @__PURE__ */Yn({size:14,weight:600,lineHeight:18.9,color:"#4D4D4D"}),scoreTag:/* @__PURE__ */Un({w:63.125,h:20.188,padding:[2,6,2,6],marginTop:3,radius:[6,6],bg:"surface"}),scoreTagText:/* @__PURE__ */Yn({size:12,weight:600,lineHeight:16.2,tracking:.72,face:"mono",upper:true,marginTop:3,paddingTop:2}),scoreNums:/* @__PURE__ */Un({w:106.109,h:51.141,gap:[6,0],center:true}),scoreWas:/* @__PURE__ */Yn({size:17,weight:700,lineHeight:26.35,color:"muted",deco:"strike",decoThickness:1.5}),scoreArrow:/* @__PURE__ */Un({w:16,h:16,color:"muted"}),scoreArrowFlip:true,scoreNow:/* @__PURE__ */Yn({size:28,weight:700,lineHeight:28,tracking:-.84,tabular:true}),scoreOf:/* @__PURE__ */Yn({size:15,weight:700,lineHeight:15,color:"#4D4D4D",tabular:true}),scoreSince:/* @__PURE__ */Yn({size:13,weight:700,lineHeight:20.15,color:"ink",marginTop:3})},dl={card:/* @__PURE__ */Un({w:329,h:380.172,padding:[16,16,16,16],marginTop:14,radius:[22,22],bg:"surface",shadow:{color:"rgba(38, 37, 35, 0.06)",x:0,y:1,blur:3,spread:0},color:"#262523"}),kicker:/* @__PURE__ */Un({w:297,h:24,gap:[8,8],center:true,color:"#262523"}),kickerText:/* @__PURE__ */Yn({size:15,weight:800,lineHeight:22.5,color:"#262523"}),source:/* @__PURE__ */Un({w:83.375,h:24,padding:[0,9,0,9],radius:[999,999],bg:"#F2F1EE",center:true,color:"#4A4845"}),sourceText:/* @__PURE__ */Yn({size:12,weight:700,lineHeight:18,color:"#4A4845"}),title:/* @__PURE__ */Yn({size:19,weight:800,lineHeight:23.18,color:"#262523",marginTop:12}),signal:/* @__PURE__ */Un({w:297,h:65.25,marginTop:6,gap:[9,9],color:"#4A4845"}),signalText:/* @__PURE__ */Yn({size:15,weight:400,lineHeight:21.75,color:"#4A4845"}),signalLead:/* @__PURE__ */Yn({size:15,weight:800,lineHeight:21.75,color:"#262523"}),dot:/* @__PURE__ */Un({w:9,h:9,radius:[4.5,4.5],bg:"#E5372B",color:"#4A4845",dy:-1}),score:/* @__PURE__ */Un({w:297,h:69.75,padding:[10,14,10,14],marginTop:12,gap:[12,12],radius:[14,14],bg:"planAccentWash",center:true,color:"#262523"}),scoreLabel:/* @__PURE__ */Yn({size:13.5,weight:600,lineHeight:18.225,color:"#4A4845",wrap:"balance"}),scoreTag:/* @__PURE__ */Un({w:51.609,h:17.5,padding:[2,6,2,6],marginTop:3,radius:[5,5],bg:"surface",color:"#262523"}),scoreTagText:/* @__PURE__ */Yn({size:10,weight:600,lineHeight:13.5,color:"#262523",tracking:.6,face:"mono",upper:true,wrap:"balance",marginTop:3,paddingTop:2}),scoreNums:/* @__PURE__ */Un({w:94.75,h:49.75,gap:[6,0],center:true,color:"#262523"}),scoreWas:/* @__PURE__ */Yn({size:17,weight:700,lineHeight:25.5,color:"#6B6863",deco:"strike"}),scoreArrow:/* @__PURE__ */Un({w:16,h:16,color:"#6B6863"}),scoreArrowFlip:true,scoreNow:/* @__PURE__ */Yn({size:28,weight:800,lineHeight:28,color:"#262523"}),scoreOf:/* @__PURE__ */Yn({size:13,weight:800,lineHeight:13,color:"muted"}),scoreSince:/* @__PURE__ */Yn({size:12.5,weight:700,lineHeight:18.75,color:"planLink",marginTop:3}),sources:/* @__PURE__ */Un({w:131.375,h:24,gap:[4,4],color:"#262523"}),sourceDna:/* @__PURE__ */Un({w:44,h:24,padding:[0,9,0,9],radius:[999,999],bg:"planLinkWash",center:true,color:"planLink"}),sourceDnaText:/* @__PURE__ */Yn({size:12,weight:700,lineHeight:18,color:"planLink"}),dotWatch:/* @__PURE__ */Un({w:9,h:9,radius:[4.5,4.5],bg:"#E5A000",color:"#4A4845",dy:-1}),dotClear:/* @__PURE__ */Un({w:9,h:9,radius:[4.5,4.5],bg:"#5FA82B",color:"#4A4845",dy:-1}),scoreLabelMax:135,says:/* @__PURE__ */Un({w:297,h:52,padding:[10,12,10,12],marginTop:12,gap:[10,10],radius:[14,14],bg:"#F8F7F4",color:"#262523"}),saysImg:/* @__PURE__ */Un({w:32,h:32,radius:[16,16],color:"#262523"}),saysText:/* @__PURE__ */Yn({size:14.5,weight:400,lineHeight:20.3,color:"#4A4845"}),saysBy:/* @__PURE__ */Yn({size:14.5,weight:800,lineHeight:20.3,color:"#262523"}),saysByGap:2,saysTag:/* @__PURE__ */Un({w:51.609,h:15,padding:[2,6,2,6],radius:[5,5],bg:"surface",color:"#262523"}),saysTagText:/* @__PURE__ */Yn({size:10,weight:400,lineHeight:14,color:"#262523",tracking:.6,face:"mono",upper:true,paddingTop:2}),saysBare:/* @__PURE__ */Un({w:297,h:81,padding:[10,12,10,12],marginTop:12,gap:[10,10],radius:[14,14],bg:"#F8F7F4",color:"#262523"}),saysKicker:/* @__PURE__ */Yn({size:17,weight:400,lineHeight:25.5,color:"#262523"}),saysSerif:/* @__PURE__ */Yn({size:17,weight:800,lineHeight:25.5,color:"#262523",tracking:-.17,wrap:"balance"}),jump:/* @__PURE__ */Un({w:297,h:60,padding:[8,14,8,8],marginTop:12,gap:[12,12],radius:[14,14],bg:"planInk",center:true,color:"planOnInk"}),jumpImg:/* @__PURE__ */Un({w:44,h:44,radius:[10,10],bg:"surface",color:"surface"}),jumpKicker:/* @__PURE__ */Yn({size:13,weight:800,lineHeight:19.5,color:"planAccent"}),jumpTitle:/* @__PURE__ */Yn({size:15,weight:800,lineHeight:18.75,color:"planOnInk"}),jumpGo:/* @__PURE__ */Yn({size:14,weight:800,lineHeight:21,color:"planOnInk"}),jumpPressScale:.98,more:/* @__PURE__ */Un({w:87.547,h:36,marginTop:6,marginBottom:-4,gap:[4,4],minHeight:36,center:true,color:"planLink"}),moreText:/* @__PURE__ */Yn({size:15,weight:800,lineHeight:22.5,color:"planLink"}),moreIcon:/* @__PURE__ */Un({w:16,h:16,color:"planLink"}),moreInset:16,moreTurn:{closed:90,open:-90},rep:/* @__PURE__ */Un({w:297,h:48.5,padding:[14,14,12,14],marginTop:10,radius:[16,16],bg:"#F8F7F4",color:"#262523"})},ul={card:/* @__PURE__ */Un({w:201.5,h:275.031,padding:[8,10,10,10],radius:[20,20],bg:"#FCF0D6"}),tones:{y:"#FCF0D6",c:"tintBlue",g:"tintGo",r:"tintPink"},img:/* @__PURE__ */Un({w:181.5,h:113.438,radius:[10,10],bg:"#F3F3F3"}),n:/* @__PURE__ */Un({w:28,h:28,radius:[14,14],bg:"surface",center:true,x:8,y:8}),nText:/* @__PURE__ */Yn({size:14,weight:700,lineHeight:14}),title:/* @__PURE__ */Yn({size:16,weight:700,lineHeight:20,marginTop:10}),text:/* @__PURE__ */Yn({size:15,weight:400,lineHeight:21,color:"#4D4D4D",marginTop:4}),foot:/* @__PURE__ */Un({w:181.5,h:26.594,padding:[8,0,0,0],gap:[4,4],center:true,color:"ink"}),footText:/* @__PURE__ */Yn({size:12,weight:400,lineHeight:18.6,color:"ink",tracking:.48,face:"mono",upper:true,paddingTop:8}),footArrow:/* @__PURE__ */Un({w:14,h:14,color:"ink"}),footArrowFlip:true,pressScale:.98,bare:/* @__PURE__ */Un({w:181.5,h:42,padding:[2,0,0,0],center:true}),thumb:/* @__PURE__ */Un({w:40,h:40,radius:[10,10],bg:"surface",center:true}),thumbIcon:/* @__PURE__ */Un({w:22,h:22})},pl={card:/* @__PURE__ */Un({w:221,h:152,padding:[8,8,12,8],radius:[20,20],bg:"#FCF0D6"}),tones:{y:"#FCF0D6",c:"#EEDCC8",g:"tintGo",r:"tintPink"},img:/* @__PURE__ */Un({w:205,h:102.5,radius:[10,10],bg:"#F3F3F3"}),imgAspect:2,n:/* @__PURE__ */Un({w:28,h:28,radius:[14,14],bg:"surface",center:true,x:8,y:8}),nText:/* @__PURE__ */Yn({size:14,weight:700,lineHeight:14}),title:/* @__PURE__ */Yn({size:15,weight:700,lineHeight:19.5,marginTop:10}),titleInset:4,pressScale:.98,bare:/* @__PURE__ */Un({w:205,h:42,padding:[2,0,0,0],center:true}),thumb:/* @__PURE__ */Un({w:40,h:40,radius:[10,10],bg:"surface",center:true}),thumbIcon:/* @__PURE__ */Un({w:22,h:22,color:"ink"})},hl={card:/* @__PURE__ */Un({w:226,h:172.047,gap:[10,10]}),img:/* @__PURE__ */Un({w:226,h:141.25,radius:[14,14]}),imgAspect:1.6,title:/* @__PURE__ */Yn({size:16,weight:700,lineHeight:20.8,wrap:"balance"}),coverRadius:10,row:{from:440,card:/* @__PURE__ */Un({w:400,h:80,padding:[6,0,6,0],gap:[10,10],minHeight:80,center:true}),img:/* @__PURE__ */Un({w:64,h:64,radius:[10,10]}),arrowColumn:18,arrow:/* @__PURE__ */Un({w:18,h:18,color:"ink"}),arrowTurn:180},phone:{upTo:639,card:/* @__PURE__ */Un({w:216,h:162.5,gap:[8,8]}),img:/* @__PURE__ */Un({w:216,h:135,radius:[14,14]}),imgAspect:1.6,title:/* @__PURE__ */Yn({size:15,weight:700,lineHeight:19.5,wrap:"balance"}),smallUpTo:359,smallW:208},mark:{tile:/* @__PURE__ */Un({w:226,h:141.25,radius:[14,14],bg:"#F5F5F5",center:true,color:"ink"}),icon:{share:.36,min:16,max:40,color:"ink"}},ring:{width:2,offset:2,color:"text"},hoverOffset:3},gl={card:/* @__PURE__ */Un({w:225.406,h:182.844,padding:[14,14,12,14],radius:[18,18],bg:"planAccentChip",color:"#262523"}),tones:{y:"planAccentChip",c:"planLinkChip",g:"#DDEFC4",r:"#FFD8D6"},top:/* @__PURE__ */Un({w:197.406,h:30,center:true,color:"#262523"}),nText:/* @__PURE__ */Yn({size:30,weight:900,lineHeight:30,color:"#262523"}),icon:/* @__PURE__ */Un({w:26,h:26,color:"#262523"}),title:/* @__PURE__ */Yn({size:17,weight:800,lineHeight:21.25,color:"#262523",marginTop:14}),text:/* @__PURE__ */Yn({size:14.5,weight:400,lineHeight:20.3,color:"#4A4845",marginTop:4}),foot:/* @__PURE__ */Un({w:197.406,h:25.75,padding:[10,0,0,0],color:"planLink"}),footText:/* @__PURE__ */Yn({size:10.5,weight:400,lineHeight:15.75,color:"planLink",tracking:.42,face:"mono",upper:true,paddingTop:10})},fl={line:/* @__PURE__ */Un({w:297,h:95.625,gap:[12,12],color:"#262523"}),img:/* @__PURE__ */Un({w:64,h:64,radius:[14,14],bg:"planLinkWash",center:true,color:"planLink"}),icon:/* @__PURE__ */Un({w:28,h:28,color:"planLink"}),name:/* @__PURE__ */Yn({size:16.5,weight:800,lineHeight:20.625,color:"#262523",wrap:"balance"}),prices:/* @__PURE__ */Un({w:221,h:24,marginTop:3,gap:[8,2],center:true,color:"#262523"}),price:/* @__PURE__ */Yn({size:16,weight:800,lineHeight:24,color:"#262523",tabular:true}),was:/* @__PURE__ */Yn({size:14,weight:600,lineHeight:21,color:"#6B6863",deco:"strike"}),small:/* @__PURE__ */Yn({size:14,weight:400,lineHeight:21,color:"#6B6863"}),acts:/* @__PURE__ */Un({w:221,h:40,marginTop:8,gap:[16,16],center:true,color:"#262523"}),step:/* @__PURE__ */Un({w:110,h:40,radius:[999,999],bg:"surface",edge:{width:1.5,color:"#DAD7D1",ring:true},center:true,color:"#262523"}),remove:/* @__PURE__ */Un({w:56.422,h:40,minHeight:40,color:"#4A4845"}),removeText:/* @__PURE__ */Yn({size:14.5,weight:700,lineHeight:21.75,color:"#4A4845",deco:"underline",decoOffset:3,decoThickness:1.5})},ml={bar:/* @__PURE__ */Un({w:361,h:66,padding:[8,8,8,10],gap:[10,10],minHeight:60,radius:[22,22],bg:"surface",shadow:{color:"rgba(0, 0, 0, 0.06)",x:0,y:1,blur:3,spread:0},center:true,x:16}),lift:{color:"rgba(0, 0, 0, 0.09)",x:0,y:10,blur:28,spread:0},thumbs:/* @__PURE__ */Un({w:88,h:44,padding:[0,4,0,0],center:true}),thumb:/* @__PURE__ */Un({w:40,h:40,radius:[12,12],bg:"#F3F3F3"}),thumbRing:2,thumbOverlap:18,imgInset:4,imgFit:"contain",imgBlend:"multiply",count:/* @__PURE__ */Un({w:20,h:20,padding:[0,5,0,5],radius:[10,10],bg:"text",center:true,color:"surface",x:72,y:-4}),countText:/* @__PURE__ */Yn({size:12,weight:700,lineHeight:12,color:"surface",tabular:true}),countAt:{top:-4,right:-4},sum:/* @__PURE__ */Un({w:130.656,h:35.688,gap:[2,2]}),total:/* @__PURE__ */Yn({size:17,weight:700,lineHeight:18.7,tracking:-.17,tabular:true}),sub:/* @__PURE__ */Yn({size:12,weight:400,lineHeight:15,color:"muted"}),go:/* @__PURE__ */Un({w:104.344,h:50,padding:[0,18,0,18],gap:[6,6],minHeight:50,radius:[999,999],bg:"pink",edge:{width:1,color:"ink",ring:true},center:true,color:"ink"}),goText:/* @__PURE__ */Yn({size:15,weight:700,lineHeight:23.25,color:"ink"}),pressScale:.97,hover:{color:"pink",share:.9,over:"text"},motion:{rise:{duration:240,from:24,fade:false},bump:{duration:240,scale:1.12,peakAt:.5,curve:"ease-out"}}},bl={bar:/* @__PURE__ */Un({w:600,h:68,padding:[10,10,10,14],gap:[14,14],minHeight:68,radius:[26,26],bg:"surface",shadow:{color:"rgba(0, 0, 0, 0.06)",x:0,y:1,blur:3,spread:0},center:true}),lift:{color:"rgba(0, 0, 0, 0.09)",x:0,y:10,blur:28,spread:0},thumbs:/* @__PURE__ */Un({w:102,h:44,padding:[0,6,0,0],center:true}),thumb:/* @__PURE__ */Un({w:44,h:44,padding:[4,4,4,4],radius:[12,12],bg:"surface",shadow:{color:"rgba(0, 0, 0, 0.14)",x:0,y:1,blur:3,spread:0},fit:"contain"}),thumbRing:2,thumbOverlap:18,imgInset:4,imgFit:"contain",imgBlend:"normal",count:/* @__PURE__ */Un({w:22,h:22,padding:[0,6,0,6],radius:[11,11],bg:"go",center:true,x:83,y:-5}),countText:/* @__PURE__ */Yn({size:12,weight:700,lineHeight:12,wrap:"auto",tabular:true}),countAt:{top:-5,right:-3},sum:/* @__PURE__ */Un({w:307.484,h:43.5,gap:[2,2]}),total:/* @__PURE__ */Yn({size:20,weight:700,lineHeight:22,color:"ink",tracking:-.2,tabular:true}),sub:/* @__PURE__ */Yn({size:15,weight:400,lineHeight:19.5}),go:/* @__PURE__ */Un({w:138.516,h:48,padding:[0,22,0,22],minHeight:48,radius:[999,999],bg:"ink",color:"surface"}),goText:/* @__PURE__ */Yn({size:17,weight:700,lineHeight:26.35,color:"surface",wrap:"auto"}),pressScale:.97,hover:{color:"ink",share:.86,over:"text"},motion:{rise:{duration:260,from:24,fade:true},bump:{duration:240,scale:1.1,peakAt:.5,curve:"out"}},phone:{upTo:559,bar:/* @__PURE__ */Un({w:335,h:79,padding:[8,8,8,10],gap:[10,10],minHeight:64,radius:[22,22],bg:"surface",center:true}),thumb:/* @__PURE__ */Un({w:40,h:40,padding:[4,4,4,4],radius:[12,12],bg:"surface",shadow:{color:"#FFFFFF",x:0,y:0,blur:0,spread:2},fit:"contain"}),go:/* @__PURE__ */Un({w:94.594,h:48,padding:[0,18,0,18],minHeight:48,radius:[999,999],bg:"ink",color:"surface"}),lastOnly:true,wordHidden:true}},wl={card:/* @__PURE__ */Un({w:393,h:655.609}),head:/* @__PURE__ */Un({w:393,h:126.328,padding:[4,16,12,16],gap:[12,12]}),pic:/* @__PURE__ */Un({w:64,h:64,radius:[10,10],bg:"#F3F3F3"}),packInset:.08,kind:/* @__PURE__ */Yn({size:12,weight:700,lineHeight:18.6,color:"ink",tracking:.72,face:"mono",upper:true}),title:/* @__PURE__ */Yn({size:22,weight:700,lineHeight:24.64,tracking:-.55,marginTop:2}),sub:/* @__PURE__ */Yn({size:14,weight:400,lineHeight:18.9,color:"#4D4D4D",marginTop:3}),close:/* @__PURE__ */Un({w:36,h:36,padding:[1,6,1,6],radius:[18,18],center:true,color:"ink"}),closeIcon:/* @__PURE__ */Un({w:20,h:20,color:"ink"}),body:/* @__PURE__ */Un({w:393,h:529.281,padding:[0,16,24,16],gap:[12,12]}),box:/* @__PURE__ */Un({w:361,h:169.281,padding:[14,14,14,14],radius:[20,20],bg:"tintPink"}),heading:/* @__PURE__ */Yn({size:17,weight:700,lineHeight:21.25}),rows:/* @__PURE__ */Un({w:333,h:110.031,marginTop:10,gap:[10,10]}),row:/* @__PURE__ */Yn({size:15,weight:400,lineHeight:21.75}),rowHead:/* @__PURE__ */Yn({size:12,weight:400,lineHeight:17.4,color:"ink",tracking:.48,face:"mono",upper:true}),secHeading:/* @__PURE__ */Yn({size:17,weight:700,lineHeight:21.25}),how:/* @__PURE__ */Un({w:361,h:49.5,marginTop:8,gap:[6,6]}),bullet:/* @__PURE__ */Un({w:361,h:21.75,gap:[8,8],color:"#4D4D4D"}),bulletText:/* @__PURE__ */Yn({size:15,weight:400,lineHeight:21.75,color:"#4D4D4D"}),bulletColumn:14,dot:{size:6,top:9,color:"ink"},para:/* @__PURE__ */Yn({size:15,weight:400,lineHeight:22.5,color:"#4D4D4D",marginTop:6}),acts:/* @__PURE__ */Un({w:361,h:98,gap:[2,2]}),btn:/* @__PURE__ */Un({w:361,h:52,padding:[0,20,0,20],gap:[8,8],minHeight:52,radius:[999,999],bg:"ink",center:true,color:"surface"}),btnText:/* @__PURE__ */Yn({size:16,weight:700,lineHeight:24.8,color:"surface"}),more:/* @__PURE__ */Un({w:164.891,h:44,padding:[0,12,0,12],minHeight:44,center:true,color:"ink"}),moreText:/* @__PURE__ */Yn({size:15,weight:700,lineHeight:23.25,color:"ink",deco:"underline",decoOffset:3,decoThickness:1.5}),tones:{calm:"tintBlue",y:"#FCF0D6",c:"#EEDCC8",g:"tintGo",r:"tintPink"},photoBg:"#F3F3F3",closeHover:"tintSage",pressScale:.97,hover:{color:"ink",share:.88,over:"surface"}},yl={card:/* @__PURE__ */Un({w:558,h:571.375}),head:/* @__PURE__ */Un({w:558,h:105.375,padding:[24,24,12,24],gap:[12,12]}),pic:/* @__PURE__ */Un({w:64,h:64,radius:[10,10],bg:"#F5F5F5"}),packInset:.08,kind:/* @__PURE__ */Yn({size:15,weight:700,lineHeight:19.5,color:"ink"}),title:/* @__PURE__ */Yn({size:22,weight:500,lineHeight:24.64,color:"ink",tracking:-.44,marginTop:2}),sub:/* @__PURE__ */Yn({size:15,weight:400,lineHeight:20.25,marginTop:3}),close:/* @__PURE__ */Un({w:40,h:40,padding:[1,6,1,6],radius:[20,20],center:true}),closeIcon:/* @__PURE__ */Un({w:20,h:20}),body:/* @__PURE__ */Un({w:558,h:466,padding:[0,24,24,24],gap:[22,22]}),box:/* @__PURE__ */Un({w:510,h:129}),heading:/* @__PURE__ */Yn({size:16,weight:700,lineHeight:20}),rows:/* @__PURE__ */Un({w:510,h:99,marginTop:10,gap:[12,12]}),row:/* @__PURE__ */Yn({size:15,weight:400,lineHeight:21.75}),rowHead:/* @__PURE__ */Yn({size:15,weight:700,lineHeight:21.75,color:"ink"}),secHeading:/* @__PURE__ */Yn({size:16,weight:700,lineHeight:20}),how:/* @__PURE__ */Un({w:510,h:49.5,marginTop:8,gap:[6,6]}),bullet:/* @__PURE__ */Un({w:510,h:21.75,gap:[8,8]}),bulletText:/* @__PURE__ */Yn({size:15,weight:400,lineHeight:21.75}),bulletColumn:14,dot:{size:6,top:9.75,color:"ink"},para:/* @__PURE__ */Yn({size:15,weight:400,lineHeight:22.5,marginTop:6}),acts:/* @__PURE__ */Un({w:510,h:92,gap:[2,2]}),btn:/* @__PURE__ */Un({w:510,h:46,padding:[0,20,0,20],gap:[8,8],minHeight:46,radius:[999,999],bg:"ink",center:true,color:"surface"}),btnText:/* @__PURE__ */Yn({size:17,weight:400,lineHeight:26.35,color:"surface",wrap:"auto"}),more:/* @__PURE__ */Un({w:164.891,h:44,padding:[0,12,0,12],minHeight:44,center:true,color:"ink"}),moreText:/* @__PURE__ */Yn({size:15,weight:700,lineHeight:23.25,color:"ink",wrap:"auto",deco:"underline",decoOffset:3,decoThickness:1.5}),photoBg:"surface",closeHover:"none",pressScale:.97,hover:{color:"ink",share:.88,over:"surface"},phone:{upTo:419,head:/* @__PURE__ */Un({w:341,h:145.031,padding:[24,24,12,24],gap:[10,10]}),pic:/* @__PURE__ */Un({w:48,h:48,radius:[10,10],bg:"#F5F5F5"}),title:/* @__PURE__ */Yn({size:20,weight:500,lineHeight:22.4,color:"ink",tracking:-.4,marginTop:2})}},xl={card:/* @__PURE__ */Un({w:329,h:323.109,padding:[12,14,12,14],radius:[16,16],edge:{width:1.5,color:"#262523",ring:true},color:"#262523"}),heading:/* @__PURE__ */Yn({size:10.5,weight:400,lineHeight:15.75,color:"#6B6863",tracking:.63,face:"mono",upper:true}),row:/* @__PURE__ */Un({w:301,h:59.688,marginTop:10,gap:[10,10],color:"#262523"}),chipColumn:58,chips:{dna:{box:/* @__PURE__ */Un({w:58,h:22,radius:[6,6],bg:"planLinkWash",center:true,color:"planLink"}),text:/* @__PURE__ */Yn({size:10.5,weight:700,lineHeight:15.75,color:"planLink",tracking:.42,face:"mono",upper:true})},record:{box:/* @__PURE__ */Un({w:58,h:22,radius:[6,6],bg:"#F2F1EE",center:true,color:"#4A4845"}),text:/* @__PURE__ */Yn({size:10.5,weight:700,lineHeight:15.75,color:"#4A4845",tracking:.42,face:"mono",upper:true})},ask:{box:/* @__PURE__ */Un({w:58,h:22,radius:[6,6],bg:"planAccentWash",center:true,color:"#262523"}),text:/* @__PURE__ */Yn({size:10.5,weight:700,lineHeight:15.75,color:"#262523",tracking:.42,face:"mono",upper:true})}},rowTitle:/* @__PURE__ */Yn({size:15,weight:800,lineHeight:19.5,color:"#262523"}),rowBody:/* @__PURE__ */Yn({size:14,weight:400,lineHeight:19.6,color:"#4A4845",marginTop:1}),score:/* @__PURE__ */Un({w:301,h:42.797,padding:[11,12,11,14],marginTop:12,gap:[8,8],radius:[12,12],bg:"planInk",center:true,color:"planOnInk"}),scoreText:/* @__PURE__ */Yn({size:14.5,weight:800,lineHeight:18.85,color:"planOnInk"}),scoreValue:/* @__PURE__ */Yn({size:16,weight:700,lineHeight:20.8,color:"planAccent",face:"mono"})},vl={card:/* @__PURE__ */Un({w:325,h:134,marginTop:14}),head:/* @__PURE__ */Un({w:325,h:24,marginBottom:10,gap:[12,12],center:true}),lead:/* @__PURE__ */Yn({size:14,weight:400,lineHeight:18.2,color:"#3D3D3D"}),name:/* @__PURE__ */Yn({size:14,weight:700,lineHeight:18.2,color:"ink"}),pills:{better:{box:/* @__PURE__ */Un({w:66.094,h:24,padding:[0,10,0,10],minHeight:24,radius:[999,999],bg:"#D7F5E7",center:true,color:"ink"}),text:/* @__PURE__ */Yn({size:12,weight:700,lineHeight:12,color:"ink",tracking:.48,face:"mono"})},same:{box:/* @__PURE__ */Un({w:50.734,h:24,padding:[0,10,0,10],minHeight:24,radius:[999,999],bg:"#FBEED0",center:true,color:"ink"}),text:/* @__PURE__ */Yn({size:12,weight:700,lineHeight:12,color:"ink",tracking:.48,face:"mono"})},worse:{box:/* @__PURE__ */Un({w:58.406,h:24,padding:[0,10,0,10],minHeight:24,radius:[999,999],bg:"#F6EBDE",center:true,color:"#834D0D"}),text:/* @__PURE__ */Yn({size:12,weight:700,lineHeight:12,color:"#834D0D",tracking:.48,face:"mono"})}},viz:/* @__PURE__ */Un({w:325,h:56}),grid:{rows:10,gap:1.5,radius:1.5,widthShare:.6},zones:{lot:6.5,some:3.5},colors:{go:"go",some:"#E4BA55",lot:"#BC6E13"},src:/* @__PURE__ */Un({w:325,h:44,gap:[16,0],center:true}),srcBtn:/* @__PURE__ */Un({w:181.5,h:44,gap:[6,6],minHeight:44,center:true,color:"#4D4D4D"}),srcText:/* @__PURE__ */Yn({size:14,weight:400,lineHeight:21.7,color:"#4D4D4D"}),srcIcon:/* @__PURE__ */Un({w:16,h:16,color:"#5A6087"}),act:/* @__PURE__ */Un({w:221.172,h:44,padding:[0,20,0,20],marginTop:6,marginBottom:14,minHeight:44,radius:[999,999],bg:"surface",edge:{width:1.5,color:"ink",ring:true},center:true,color:"ink"}),actText:/* @__PURE__ */Yn({size:15,weight:700,lineHeight:23.25,color:"ink",marginTop:6})},kl={card:/* @__PURE__ */Un({w:393,h:179.25}),body:/* @__PURE__ */Un({w:393,h:99.25,padding:[0,16,24,16],gap:[24,24]}),question:/* @__PURE__ */Yn({size:17,weight:700,lineHeight:21.25}),picks:/* @__PURE__ */Un({w:361,h:96,marginTop:10,gap:[8,8]}),pick:/* @__PURE__ */Un({w:115,h:44,padding:[4,4,4,4],gap:[6,6],minHeight:44,radius:[999,999],bg:"surface",edge:{width:1,color:"ink",ring:false},center:true,color:"ink"}),pickText:/* @__PURE__ */Yn({size:15,weight:400,lineHeight:18,color:"ink",wrap:"balance",paddingTop:4}),pickOn:/* @__PURE__ */Un({w:115,h:44,padding:[4,4,4,4],gap:[6,6],minHeight:44,radius:[999,999],bg:"pink",edge:{width:1,color:"pink",ring:false},center:true,color:"ink"}),pickOnText:/* @__PURE__ */Yn({size:15,weight:700,lineHeight:18,color:"ink",wrap:"balance",paddingTop:4}),pickHover:{color:"pink",share:.3,over:"surface"},stepTop:16,row:/* @__PURE__ */Un({w:361,h:44,gap:[8,8],minHeight:44,center:true}),rowLabel:/* @__PURE__ */Yn({size:15,weight:400,lineHeight:18.75}),rowValue:/* @__PURE__ */Yn({size:15,weight:700,lineHeight:18.75}),rowIcon:/* @__PURE__ */Un({w:18,h:18,color:"ink"}),rowTurn:90,rowPressScale:.98,note:/* @__PURE__ */Un({w:361,h:60.594,padding:[10,12,10,12],marginTop:12,radius:[10,10],bg:"#FFE8E6"}),noteText:/* @__PURE__ */Yn({size:14,weight:400,lineHeight:20.3,marginTop:12,paddingTop:10}),noteLink:/* @__PURE__ */Yn({size:14,weight:700,lineHeight:20.3,deco:"underline",decoOffset:3}),done:/* @__PURE__ */Yn({size:15,weight:400,lineHeight:21,wrap:"balance",marginTop:12}),acts:/* @__PURE__ */Un({w:361,h:52,gap:[2,2]}),btn:/* @__PURE__ */Un({w:361,h:52,padding:[0,20,0,20],gap:[8,8],minHeight:52,radius:[999,999],bg:"ink",center:true,color:"surface"}),btnText:/* @__PURE__ */Yn({size:16,weight:700,lineHeight:24.8,color:"surface"})},Tl={card:/* @__PURE__ */Un({w:361,h:321.734,padding:[16,16,16,16],gap:[16,16],radius:[20,20],bg:"#FCF4E0"}),skies:{sun:"#FCF4E0",blue:"tintBlue"},now:/* @__PURE__ */Un({w:329,h:113.891,gap:[12,12],center:true}),temp:/* @__PURE__ */Yn({size:64,weight:700,lineHeight:60.8,color:"ink",tracking:-2.56,tabular:true}),cond:/* @__PURE__ */Yn({size:17,weight:700,lineHeight:22.1,color:"ink",marginTop:8}),hl:/* @__PURE__ */Yn({size:15,weight:400,lineHeight:21,tabular:true,marginTop:2}),glyph:/* @__PURE__ */Un({w:88,h:88}),walk:/* @__PURE__ */Un({w:329,h:159.844,padding:[12,16,12,16],gap:[4,4],radius:[10,10],bg:"surface"}),walkTitle:/* @__PURE__ */Un({w:297,h:22.094,gap:[8,8],center:true,color:"ink"}),walkTitleText:/* @__PURE__ */Yn({size:17,weight:700,lineHeight:22.1,color:"ink"}),walkText:/* @__PURE__ */Yn({size:15,weight:400,lineHeight:21.75}),lvl:/* @__PURE__ */Un({w:10,h:10,radius:[5,5],bg:"#77DDAC",color:"ink"}),levels:{good:"#77DDAC",ok:"#F4CF7A",hot:"#DC8F7C",storm:"#8DA4BB"},comfort:/* @__PURE__ */Un({w:297,h:32.5,padding:[12,0,0,0],marginTop:8,gap:[8,6],center:true}),comfortRule:{width:1,color:"line"},comfortLabel:/* @__PURE__ */Yn({size:13,weight:400,lineHeight:16.9,color:"muted"}),comfortValue:/* @__PURE__ */Yn({size:15,weight:700,lineHeight:19.5,color:"ink"}),bar:/* @__PURE__ */Un({w:82,h:8,gap:[3,3]}),pipOn:/* @__PURE__ */Un({w:14,h:8,radius:[2,2],bg:"#77DDAC"}),pipOff:/* @__PURE__ */Un({w:14,h:8,radius:[2,2],bg:"#F1F5F2"})},jl={card:/* @__PURE__ */Un({w:361,h:265.484,padding:[24,16,24,16],radius:[20,20],bg:"#FCF4E0"}),glyph:/* @__PURE__ */Un({w:88,h:88}),temp:/* @__PURE__ */Yn({size:72,weight:700,lineHeight:68.4,color:"ink",tracking:-2.88,tabular:true,marginTop:8}),cond:/* @__PURE__ */Yn({size:17,weight:700,lineHeight:22.1,color:"ink",marginTop:8}),hl:/* @__PURE__ */Yn({size:15,weight:400,lineHeight:21,tabular:true,marginTop:2})},Sl={card:/* @__PURE__ */Un({w:272,h:187.984,padding:[16,16,16,16],gap:[8,8],radius:[20,20],bg:"#F5F5F5"}),top:/* @__PURE__ */Un({w:240,h:24,gap:[8,8],center:true}),label:/* @__PURE__ */Yn({size:12,weight:700,lineHeight:15.6,color:"ink",tracking:.72,face:"mono",upper:true}),glyph:/* @__PURE__ */Un({w:36,h:36,marginTop:-6,marginBottom:-6}),glyphMargin:[-6,-4,-6,0],big:/* @__PURE__ */Yn({size:28,weight:700,lineHeight:30.8,color:"ink",tracking:-.56,tabular:true}),small:/* @__PURE__ */Yn({size:15,weight:700,lineHeight:16.5,color:"muted",tabular:true}),smallGap:4,meta:/* @__PURE__ */Yn({size:14,weight:400,lineHeight:19.6}),btn:/* @__PURE__ */Un({w:137.375,h:38,padding:[0,12,0,12],gap:[8,8],minHeight:38,radius:[999,999],bg:"ink",edge:{width:1.5,color:"ink",ring:false},center:true,color:"surface"}),btnText:/* @__PURE__ */Yn({size:15,weight:700,lineHeight:15,color:"surface"}),btnIcon:/* @__PURE__ */Un({w:20,h:20,color:"surface"})},Il={card:/* @__PURE__ */Un({w:533.078,h:242,padding:[24,24,24,24],radius:[20,20],bg:"surface",edge:{width:1,color:"line",ring:false}}),head:/* @__PURE__ */Un({w:483.078,h:34,marginBottom:16,gap:[12,12],center:true}),city:/* @__PURE__ */Yn({size:24,weight:700,lineHeight:28.8,color:"ink",tracking:-.48,wrap:"auto"}),units:/* @__PURE__ */Un({w:78,h:34,padding:[2,2,2,2],radius:[999,999],edge:{width:1,color:"line",ring:false}}),unit:/* @__PURE__ */Un({w:36,h:28,minHeight:28,radius:[999,999],center:true,color:"muted"}),unitText:/* @__PURE__ */Yn({size:13,weight:700,lineHeight:20.15,color:"muted",wrap:"auto"}),unitOn:/* @__PURE__ */Un({w:36,h:28,minHeight:28,radius:[999,999],bg:"ink",center:true,color:"surface"}),unitOnText:/* @__PURE__ */Yn({size:13,weight:700,lineHeight:20.15,color:"surface",wrap:"auto"}),now:/* @__PURE__ */Un({w:483.078,h:88,gap:[24,12],center:true}),glyph:/* @__PURE__ */Un({w:88,h:88}),temp:/* @__PURE__ */Yn({size:51.2,weight:700,lineHeight:51.2,color:"ink",tracking:-1.536,wrap:"auto",tabular:true}),tempFluid:{min:44,vw:4,max:56},sky:/* @__PURE__ */Yn({size:15,weight:400,lineHeight:21,color:"muted",wrap:"auto",marginTop:6}),tags:/* @__PURE__ */Un({w:483.078,h:30,marginTop:24,gap:[8,8]}),tag:/* @__PURE__ */Un({w:123.75,h:30,padding:[0,14,0,14],gap:[8,8],minHeight:30,radius:[999,999],bg:"surface",edge:{width:1,color:"#F2C763",ring:false},center:true,color:"ink"}),tagText:/* @__PURE__ */Yn({size:13,weight:700,lineHeight:20.15,color:"ink",wrap:"auto"}),dot:7,hues:{red:"alert",yellow:"#F2C763",green:"go",blue:"#4E98C9",plain:"line",plainDot:"muted"},phone:{upTo:559,card:/* @__PURE__ */Un({w:335,h:272,padding:[18,18,18,18],radius:[20,20],bg:"surface",edge:{width:1,color:"line",ring:false}}),glyph:/* @__PURE__ */Un({w:64,h:64})}},zl={card:/* @__PURE__ */Un({w:361,h:48,padding:[0,16,0,16],gap:[12,12],minHeight:48,radius:[10,10],bg:"#FBF1EE",center:true,color:"#6D1D14"}),icon:/* @__PURE__ */Un({w:20,h:20,color:"alert"}),title:/* @__PURE__ */Yn({size:15,weight:700,lineHeight:23.25,color:"#6D1D14"}),titleGap:6,text:/* @__PURE__ */Yn({size:15,weight:400,lineHeight:23.25,color:"#6D1D14"}),chev:/* @__PURE__ */Un({w:16,h:16,color:"#6D1D14"}),pressScale:.98},Dl={grid:/* @__PURE__ */Un({w:361,h:591.25,gap:[12,12]}),tile:/* @__PURE__ */Un({w:174.5,h:143.359,padding:[14,14,14,14],gap:[6,6],minHeight:120,radius:[20,20],bg:"surface",edge:{width:1,color:"line",ring:false}}),label:/* @__PURE__ */Yn({size:12,weight:700,lineHeight:15.6,color:"muted",tracking:.72,face:"mono",upper:true}),labelGap:6,icon:/* @__PURE__ */Un({w:16,h:16,color:"ink"}),chev:/* @__PURE__ */Un({w:14,h:14,color:"muted"}),value:/* @__PURE__ */Yn({size:28,weight:700,lineHeight:30.8,color:"ink",tracking:-.56,tabular:true}),valueGap:6,unit:/* @__PURE__ */Yn({size:15,weight:700,lineHeight:16.5,color:"ink",tabular:true}),note:/* @__PURE__ */Yn({size:13,weight:400,lineHeight:18.2}),pressScale:.98},Cl={cell:/* @__PURE__ */Un({w:54,h:100,padding:[2,0,0,0],gap:[4,4],center:true}),column:54,rows:[18,32,16,20,6],time:/* @__PURE__ */Yn({size:13,weight:400,lineHeight:15.6,color:"muted"}),timeNow:/* @__PURE__ */Yn({size:13,weight:700,lineHeight:15.6,color:"ink"}),glyph:/* @__PURE__ */Un({w:32,h:32}),icon:/* @__PURE__ */Un({w:24,h:24,color:"#926F06"}),chance:/* @__PURE__ */Yn({size:12,weight:700,lineHeight:12,color:"#1E7AB7",face:"mono"}),temp:/* @__PURE__ */Yn({size:15,weight:700,lineHeight:18,color:"ink",tabular:true}),quiet:/* @__PURE__ */Yn({size:13,weight:400,lineHeight:15.6,color:"muted",tabular:true}),bar:/* @__PURE__ */Un({w:52,h:6,radius:[3,3],bg:"#77DDAC"}),barInset:1,levels:{good:"#77DDAC",ok:"#F4CF7A",hot:"#DC8F7C",storm:"#8DA4BB"},windows:/* @__PURE__ */Un({w:327,h:76.594,marginBottom:12,gap:[8,8]}),window:/* @__PURE__ */Un({w:159.5,h:76.594,padding:[10,12,10,12],gap:[2,2],radius:[10,10],bg:"tintGo"}),windowTitle:/* @__PURE__ */Yn({size:15,weight:700,lineHeight:19.5,color:"ink",tabular:true}),windowText:/* @__PURE__ */Yn({size:13,weight:400,lineHeight:17.55}),legend:/* @__PURE__ */Un({w:327,h:18.188,marginTop:12,gap:[14,4],color:"muted"}),legendItem:/* @__PURE__ */Un({w:47.813,h:18.188,gap:[6,6],center:true,color:"muted"}),legendText:/* @__PURE__ */Yn({size:13,weight:400,lineHeight:18.2,color:"muted",marginTop:12}),legendDot:/* @__PURE__ */Un({w:10,h:10,radius:[5,5],bg:"#77DDAC",color:"muted"})},Hl={row:/* @__PURE__ */Un({w:327,h:48,gap:[8,8],minHeight:48,center:true}),rule:{width:1,color:"line"},columns:[48,32,30,155,30],walkColumns:[42,30,28,73,28,86],day:/* @__PURE__ */Yn({size:15,weight:700,lineHeight:18,color:"ink"}),sky:/* @__PURE__ */Un({w:32,h:30,gap:[1,1]}),glyph:/* @__PURE__ */Un({w:30,h:30}),chance:/* @__PURE__ */Yn({size:12,weight:700,lineHeight:12,color:"#1E7AB7",face:"mono"}),low:/* @__PURE__ */Yn({size:14,weight:400,lineHeight:14,color:"muted",face:"mono",tabular:true}),high:/* @__PURE__ */Yn({size:14,weight:400,lineHeight:14,color:"ink",face:"mono",tabular:true}),bar:/* @__PURE__ */Un({w:155,h:6,radius:[3,3],bg:"#F1F5F2"}),fill:/* @__PURE__ */Un({w:99.203,h:6,radius:[3,3],bg:"#DDB44F",x:23.25}),tag:/* @__PURE__ */Un({w:42.016,h:24,padding:[0,10,0,10],minHeight:24,radius:[999,999],bg:"#FCF0D6",edge:{width:1,color:"tintYellowEdge",ring:true},center:true,color:"ink"}),tagText:/* @__PURE__ */Yn({size:12,weight:700,lineHeight:14.4,color:"ink"}),tags:{good:{bg:"tintGo",ring:"#8FE3BB",ringWidth:1,color:"ink"},ok:{bg:"#FCF0D6",ring:"tintYellowEdge",ringWidth:1,color:"ink"},warn:{bg:"#FBF1EE",ring:"#E9B8AB",ringWidth:1,color:"#6D1D14"},rain:{bg:"tintBlue",ring:"#AFD1E7",ringWidth:1,color:"ink"}}},Fl={phone:{list:/* @__PURE__ */Un({w:361,h:140,marginTop:16,marginBottom:16,gap:[12,12]}),row:/* @__PURE__ */Un({w:361,h:26,gap:[8,8],center:true}),columns:[24,56,185,72],icon:/* @__PURE__ */Un({w:26,h:26}),name:/* @__PURE__ */Yn({size:15,weight:400,lineHeight:23.25}),bar:/* @__PURE__ */Un({w:185,h:8,radius:[999,999],bg:"#ECECEC"}),fills:{high:"#B67A3F",mid:"#F2C763",low:"ink"},level:{high:/* @__PURE__ */Yn({size:13,weight:700,lineHeight:20.15,color:"#A05E32",face:"mono"}),mid:/* @__PURE__ */Yn({size:13,weight:400,lineHeight:20.15,color:"#A05E32",face:"mono"}),low:/* @__PURE__ */Yn({size:13,weight:400,lineHeight:20.15,color:"muted",face:"mono"})}},web:{list:/* @__PURE__ */Un({w:344.891,h:140,marginTop:16,marginBottom:16,gap:[12,12]}),row:/* @__PURE__ */Un({w:344.891,h:26,gap:[12,12],center:true}),columns:[26,64,138.891,80],icon:/* @__PURE__ */Un({w:26,h:26}),name:/* @__PURE__ */Yn({size:15,weight:400,lineHeight:23.25,wrap:"auto"}),bar:/* @__PURE__ */Un({w:138.891,h:8,radius:[999,999],bg:"#ECECEC"}),fills:{high:"#B67A3F",mid:"#F2C763",low:"ink"},level:{high:/* @__PURE__ */Yn({size:13,weight:700,lineHeight:20.15,color:"#A05E32",face:"mono",wrap:"auto"}),mid:/* @__PURE__ */Yn({size:13,weight:400,lineHeight:20.15,color:"#A05E32",face:"mono",wrap:"auto"}),low:/* @__PURE__ */Yn({size:13,weight:400,lineHeight:20.15,color:"muted",face:"mono",wrap:"auto"})}},webPhoneUpTo:559},_l={phone:{body:/* @__PURE__ */Un({w:361,h:88.344,gap:[12,12]}),gap:12,picks:/* @__PURE__ */Un({w:361,h:36,gap:[10,10]}),on:/* @__PURE__ */Un({w:103.016,h:36,padding:[0,12,0,12],gap:[6,6],minHeight:36,radius:[999,999],bg:"pink",edge:{width:1,color:"pink",ring:false},center:true,color:"ink"}),onText:/* @__PURE__ */Yn({size:15,weight:700,lineHeight:19.5,color:"ink"}),off:/* @__PURE__ */Un({w:86.875,h:36,padding:[0,12,0,12],gap:[6,6],minHeight:36,radius:[999,999],bg:"surface",edge:{width:1,color:"ink",ring:false},center:true,color:"ink"}),offText:/* @__PURE__ */Yn({size:15,weight:400,lineHeight:19.5,color:"ink"}),check:/* @__PURE__ */Un({w:16,h:16,color:"ink"}),read:/* @__PURE__ */Un({w:361,h:40.344,gap:[12,0]}),value:/* @__PURE__ */Yn({size:36,weight:700,lineHeight:37.8,color:"ink",tracking:-.72,tabular:true}),word:/* @__PURE__ */Yn({size:17,weight:700,lineHeight:26.35,color:"alert",tracking:.34,face:"mono",upper:true})},web:{body:/* @__PURE__ */Un({w:344.891,h:140.344}),gap:16,picks:/* @__PURE__ */Un({w:344.891,h:82,marginTop:16,marginBottom:16,gap:[10,10]}),on:/* @__PURE__ */Un({w:107.016,h:36,padding:[0,14,0,14],gap:[6,6],minHeight:36,radius:[999,999],bg:"pink",edge:{width:1,color:"pink",ring:false},center:true,color:"ink"}),onText:/* @__PURE__ */Yn({size:15,weight:700,lineHeight:19.5,color:"ink",wrap:"auto"}),off:/* @__PURE__ */Un({w:90.875,h:36,padding:[0,14,0,14],gap:[6,6],minHeight:36,radius:[999,999],bg:"surface",edge:{width:1,color:"ink",ring:false},center:true,color:"ink"}),offText:/* @__PURE__ */Yn({size:15,weight:400,lineHeight:19.5,color:"ink",wrap:"auto"}),check:/* @__PURE__ */Un({w:16,h:16,color:"ink"}),read:/* @__PURE__ */Un({w:344.891,h:42.344,gap:[12,0]}),value:/* @__PURE__ */Yn({size:38.4,weight:700,lineHeight:40.32,color:"ink",tracking:-.768,wrap:"auto",tabular:true}),word:/* @__PURE__ */Yn({size:17,weight:700,lineHeight:26.35,color:"#A05E32",tracking:.34,face:"mono",upper:true,wrap:"auto"})},fluid:{min:36,vw:3,max:44},tones:{good:"#0C844B",ok:"#A05E32",low:"alert"}};function Ol(e){if(e!==null&&typeof e=="object"&&!Object.isFrozen(e))for(let t of Object.values(e))Ol(t);return e}var El=Nn,Pl=/* @__PURE__ */Symbol.for("@everfur-health/ui-core#preset@v1");function Ll(e){return Object.defineProperty(e,Pl,{value:e,enumerable:true}),Ol(e)}var Al={content:0,heading:2,control:1.8,compact:1.5,badge:1.3},Bl=Ll({name:"everfur",colors:{bg:El.color.bg,surface:El.color.efWhite,text:El.color.text,ink:El.role.color.ink,onInk:El.color.efWhite,muted:El.role.color.muted,line:El.role.color.line,go:El.role.color.go,onGo:El.role.color.ink,pink:El.color.efDustyPink,onPink:El.role.color.ink,alert:El.color.alert,alertDeep:El.color.alertDeep,icoSage:El.role.color.icoSage,bgMist:El.color.bgMist,tintSage:El.role.color.tintSage,tintBlue:El.role.color.tintBlue,tintGo:El.role.color.tintGo,tintPink:El.role.color.tintPink,tintYellowEdge:El.role.color.tintYellowEdge,tintWatch:Xn.colors.watch,tintRed:El.role.color.tintRed,scrim:Xn.colors.scrim,grab:Xn.colors.grab,focus:El.role.color.ink,planInk:Xn.colors.planInk,planOnInk:Xn.colors.planOnInk,planAccent:Xn.colors.planAccent,planLink:Xn.colors.planLink,planAccentWash:Xn.colors.planAccentWash,planAccentChip:Xn.colors.planAccentChip,planLinkWash:Xn.colors.planLinkWash,planLinkChip:Xn.colors.planLinkChip},radius:{...El.radius},space:{...El.space},type:{family:El.font.family.base,mono:El.font.family.mono,faces:{regular:"Azeret-Regular",medium:"Azeret-Medium",bold:"Azeret-Bold",mono:"AzeretMono-Regular",monoBold:"AzeretMono-Bold"},namedFaces:true,size:{xs:El.font.size.xs,sm:El.font.size.sm,md:El.font.size.md,lg:El.font.size.lg,xl:El.font.size.xl},weight:{...El.font.weight},lineHeight:{...El.font.lineHeight},scaleCaps:Al},motion:{duration:{press:El.motion.duration.press,fade:El.motion.duration.fade,enter:El.motion.duration.enter,sheet:El.motion.duration.sheet,sheetOut:El.motion.duration.sheetOut},easing:{out:El.motion.easing.out,drawer:El.motion.easing.drawer},pop:{duration:El.motion.duration.enter,from:.95,peakAt:.55,amplitude:.035,switchAmplitude:.06},reduced:false},metrics:Xn});function Rl(e){return e[Pl]??Bl}function Vl(e){return e!==null&&typeof e=="object"&&!Array.isArray(e)}function $l(e,t){if(!Vl(e)||!Vl(t))return t===void 0?e:t;let i={...e};for(let[r,n]of Object.entries(t))n!==void 0&&(i[r]=$l(e[r],n));return i}function resolveTheme(e,t=Bl){if(!e)return t;let i=$l(t,e),r=e.colors;if(r){let e=i.colors;for(let[t,i,n]of Wl){let l=r[i];l!==void 0&&r[t]===void 0&&(e[t]=Ml(l,n,e.surface)??e[t]??l)}}return Ol(i)}var Wl=[["planAccentWash","planAccent",.17],["planAccentChip","planAccent",.47],["planLinkWash","planLink",.12],["planLinkChip","planLink",.2]];function Ml(e,t,i){let r=e=>{let t=/^#([0-9a-f]{2})([0-9a-f]{2})([0-9a-f]{2})$/i.exec(e??"");return t?[t[1],t[2],t[3]].map(e=>parseInt(e,16)):void 0},[n,l]=[r(e),r(i)];if(!(!n||!l))return`#${n.map((e,i)=>Math.round(e*t+(l[i]??0)*(1-t)).toString(16).padStart(2,"0")).join("").toUpperCase()}`}var Nl=/* @__PURE__ */(()=>{let t=/* @__PURE__ */Symbol.for("@everfur-health/ui-core#ThemeContext@v1"),i=globalThis,r=i[t]??(i[t]=e.createContext(null));return r.displayName??(r.displayName="EverfurThemeContext"),r})();function ThemeProvider({theme:t,children:i}){let r=Ql(),n=t===void 0||ql(t)?t:Gl(t),l=e.useMemo(()=>ql(t)?Kl(t):resolveTheme(t,r),[n,r]);return e.createElement(Nl.Provider,{value:l},i)}function Gl(e){return JSON.stringify(e,(e,t)=>Vl(t)&&!Array.isArray(t)?Object.fromEntries(Object.keys(t).sort().map(e=>[e,t[e]])):t)}function ql(e){return e!==void 0&&Object.isFrozen(e)&&Ul.every(t=>t in e)}var Ul=["name","colors","radius","space","type","motion","metrics"];function Yl(e,t){if(e===void 0)return true;if(!Vl(e))return t!==void 0;if(!Vl(t))return false;for(let i of Object.keys(e))if(!Yl(e[i],t[i]))return false;return true}var Xl=/* @__PURE__ */new WeakMap;function Kl(e){let t=Xl.get(e);if(t)return t;if(Yl(Bl,e))return Xl.set(e,e),e;let i=Rl(e),r=$l(Bl,i===Bl?e:$l(i,e));r[Pl]=i;let n=Ol(r);return Xl.set(e,n),n}function Ql(){let t=e.useContext(Nl);return t?Kl(t):Bl}var Jl=e=>Math.round(e*1e3)/1e3;function Zl(e,t=false){return t?e>450?"monoBold":"mono":e>500?"bold":e>450?"medium":"regular"}function eo(e,t){let i=/^#([0-9a-f]{2})([0-9a-f]{2})([0-9a-f]{2})$/i.exec(e);if(!i)return e;let[r,n,l]=[i[1],i[2],i[3]].map(e=>parseInt(e,16));return`rgba(${r}, ${n}, ${l}, ${t})`}function to(e){let t=/^#([0-9a-f]{2})([0-9a-f]{2})([0-9a-f]{2})$/i.exec(e);if(t)return[t[1],t[2],t[3]].map(e=>parseInt(e,16));let i=/^rgba?\(\s*([\d.]+)[\s,]+([\d.]+)[\s,]+([\d.]+)/i.exec(e);return i?[i[1],i[2],i[3]].map(Number):void 0}function io(e,t,i,r){let[n,l]=[to(e),to(i)];return!n||!l?r:`rgb(${n.map((e,i)=>Math.round(e*t+(l[i]??0)*(1-t))).join(", ")})`}function ro(e,t){let i=/^([a-zA-Z]+)(?:\/([\d.]+))?$/.exec(t),r=i?.[1];if(!i||r===void 0||!(r in e.colors))return t;let n=e.colors[r];return i[2]===void 0?n:eo(n,Number(i[2]))}function no(e,t){return t==="none"?"transparent":ro(e,t)}var lo=.45;function oo(e,t,i,r=false){let n=e.metrics.button;if(t==="text"){let t=n.text;return{minHeight:0,paddingX:0,gap:n.ink.gap,radius:0,borderWidth:0,borderColor:"transparent",background:"transparent",iconSize:n.inkSm.iconSize,text:{size:t.fontSize,weight:t.fontWeight,lineHeight:Jl(t.fontSize*t.lineHeight),color:ro(e,t.color)},pressScale:1,pressOpacity:t.pressOpacity,disabledOpacity:n.blockedOpacity??lo,fill:false,ring:false}}let l=e.metrics.variants.button,o=ao(i),a=t==="outline"||t==="danger"||t==="warn",s=o?{...i==="compactSm"?l.sm:i==="compactLg"?l.lg:l.ink,borderWidth:a?l.outline.borderWidth:0,ring:l.outline.ring}:i==="row"?n.row:t==="danger"?n.danger:i==="sm"?n[`${t}Sm`]:n[t],c=e.colors,d=t==="money"||t==="warn"?n[t]:void 0,u={ink:{bg:c.ink,fg:c.onInk,edge:c.ink},go:{bg:c.go,fg:c.onGo,edge:c.ink},outline:{bg:"transparent",fg:c.ink,edge:c.ink},pink:{bg:c.pink,fg:c.onPink,edge:c.ink},danger:{bg:c.surface,fg:c.alert,edge:c.alert}},p=d?{bg:no(e,d.bg),fg:ro(e,d.fg),edge:ro(e,d.edgeColor)}:u[t],h=t==="outline"&&r&&!o?n.outlineInSheetWeight:s.fontWeight;return{minHeight:s.minHeight,paddingX:s.paddingX,gap:s.gap,radius:e.radius.pill,borderWidth:s.borderWidth,borderColor:p.edge,background:p.bg,iconSize:s.iconSize,text:{size:s.fontSize,weight:h,lineHeight:Jl(s.fontSize*s.lineHeight),color:p.fg},pressScale:e.motion.reduced?1:o?l.press:e.metrics.press.button,pressOpacity:1,disabledOpacity:o?l.disabledOpacity:n.blockedOpacity??lo,fill:s.fill,ring:s.ring}}function ao(e){return e==="compact"||e==="compactSm"||e==="compactLg"}function so(e,t){let i=e.metrics.pill,r=i.tones[t],n=t==="clear"?e.colors.ink:ro(e,r.fg);return{minHeight:i.minHeight,paddingX:i.paddingX,radius:e.radius.pill,background:ro(e,r.bg),ring:r.ring>0?{width:r.ring,color:ro(e,r.ringColor)}:null,dot:t==="new"?{size:i.dot,gap:i.dotGap,color:e.colors.go}:t==="allergy"?{size:i.allergyDot.size,gap:i.allergyDot.gap,color:ro(e,i.allergyDot.color)}:null,text:{size:i.fontSize,weight:i.fontWeight,lineHeight:Jl(i.fontSize*i.lineHeight),color:n,mono:i.mono,tracking:i.letterSpacing,upper:i.upper}}}function co(e,t){let i=e.metrics.sheet,r=i.titleSize,n=i.titleLineHeight??e.metrics.card.titleLineHeight;return{size:r,weight:i.titleWeight??e.metrics.card.titleWeight,lineHeight:Jl(r*n),color:ro(e,i.titleColor??"ink"),tracking:i.titleTracking??e.metrics.card.titleTracking}}function uo(e){let t=e.metrics,i=e.colors;return{cardTitle:{size:t.card.titleSize,weight:t.card.titleWeight,lineHeight:Jl(t.card.titleSize*t.card.titleLineHeight),color:i.ink,tracking:t.card.titleTracking},cardLead:{size:t.card.leadSize,weight:e.type.weight.regular,lineHeight:Jl(t.card.leadSize*t.card.leadLineHeight),color:i.text},body:{size:t.card.bodySize,weight:e.type.weight.regular,lineHeight:Jl(t.card.bodySize*t.card.bodyLineHeight),color:i.text},kicker:{size:t.kicker.fontSize,weight:t.kicker.fontWeight,lineHeight:Jl(t.kicker.fontSize*t.kicker.lineHeight),color:i.muted,mono:true,tracking:t.kicker.letterSpacing,upper:true},sheetTitle:co(e),stepperValue:{size:t.quantityStepper.valueSize,weight:t.quantityStepper.valueWeight,lineHeight:Jl(t.quantityStepper.valueSize*t.quantityStepper.valueLineHeight),color:ro(e,t.quantityStepper.valueColor??"text")},tab:{size:t.tabs.fontSize,weight:t.tabs.fontWeight,lineHeight:Jl(t.tabs.fontSize*t.tabs.lineHeight),color:i.muted},tabCurrent:{size:t.tabs.fontSize,weight:t.tabs.currentWeight,lineHeight:Jl(t.tabs.fontSize*t.tabs.lineHeight),color:i.ink},emptyTitle:{size:t.empty.titleSize,weight:t.empty.titleWeight,lineHeight:Jl(t.empty.titleSize*t.empty.titleLineHeight),color:i.ink,tracking:t.empty.titleTracking},emptyLead:{size:t.empty.leadSize,weight:e.type.weight.regular,lineHeight:Jl(t.empty.leadSize*t.empty.leadLineHeight),color:i.text},emptyLink:{size:t.empty.linkSize,weight:t.empty.linkWeight,lineHeight:Jl(t.empty.linkSize*t.card.bodyLineHeight),color:i.ink},sumTerm:{size:t.summary.termSize,weight:e.type.weight.regular,lineHeight:Jl(t.summary.termSize*t.summary.termLineHeight),color:i.muted},sumValue:{size:t.summary.valueSize,weight:t.summary.valueWeight,lineHeight:Jl(t.summary.valueSize*t.summary.valueLineHeight),color:i.ink},sumTotal:{size:t.summary.totalSize,weight:t.summary.valueWeight,lineHeight:Jl(t.summary.totalSize*t.summary.totalLineHeight),color:i.ink}}}function po(e){let t=e.metrics.quantityStepper;return{edge:{width:t.borderWidth,color:ro(e,t.borderColor),inset:t.ring},button:t.button,icon:t.icon,valueMinWidth:t.valueMinWidth,fill:no(e,t.fill??"none"),glyph:ro(e,t.glyph??"ink"),off:{color:ro(e,t.offColor),opacity:t.offOpacity}}}function ho(e,t){return{size:t.size,weight:t.weight,lineHeight:t.lineHeight,color:ro(e,t.color),...t.face==="mono"?{mono:true}:{},...t.face==="serif"?{serif:true}:{},...t.tracking?{tracking:t.tracking}:{},...t.upper?{upper:true}:{},...t.deco==="none"?{}:{deco:t.deco==="strike"?"strike":"underline",decoOffset:t.decoOffset,decoThickness:t.decoThickness},...t.tabular?{tabular:true}:{},...t.wrap==="auto"?{}:{wrap:t.wrap==="balance"?"balance":"pretty"}}}function go(e,t){return t==="none"?void 0:ro(e,t)}function fo(e){let t=e.metrics.summary,i=(e,t)=>Jl(e*t);return{paddingX:t.paddingX,paddingY:t.paddingY,radius:t.radius,borderWidth:t.borderWidth,borderColor:e.colors.line,background:ro(e,t.background),shadow:t.shadow,row:{paddingY:t.rowPaddingY,minHeight:t.rowMinHeight,gapX:t.rowGapX,gapY:t.rowGapY,divider:t.rowDivider,center:t.rowCenter},totalRowMinHeight:t.totalRowMinHeight,gap:t.gap??0,totalMarginTop:t.totalMarginTop??0,tabular:t.tabular,term:{size:t.termSize,weight:e.type.weight.regular,lineHeight:i(t.termSize,t.termLineHeight),color:ro(e,t.termColor)},value:{size:t.valueSize,weight:t.valueWeight,lineHeight:i(t.valueSize,t.valueLineHeight),color:ro(e,t.valueColor)},totalTerm:{size:t.totalTermSize,weight:t.totalTermWeight,lineHeight:i(t.totalTermSize,t.termLineHeight),color:ro(e,t.totalTermColor)},total:{size:t.totalSize,weight:t.totalWeight,lineHeight:i(t.totalSize,t.totalLineHeight),color:ro(e,t.valueColor)},off:ho(e,e.metrics.summary.off)}}function mo(e,t){let i=e.metrics.skeleton.widths;return`${i[t%i.length]}%`}function bo(e,t,i){return Math.max(t,i===void 0?e:Math.min(i,e))}function wo(e,t,i){return i!==void 0?i:e===void 0?void 0:`${e}-${t}`}var yo=e=>e,xo=e=>"edge"in e&&"shadow"in e&&"fit"in e,vo=e=>"deco"in e&&"face"in e&&"tabular"in e;function ko(e){let t=/* @__PURE__ */new Map;for(let[i,r]of Object.entries(e))t.has(r)||t.set(r,i);return t}var To,jo=/* @__PURE__ */new WeakMap;function So(e,t,i){let r=e.get(i),n=r===void 0?void 0:t[r];return typeof n=="number"?n:i}function Io(e){let t=Bl;return e.space===t.space&&e.radius===t.radius&&e.type.size===t.type.size&&e.type.weight===t.type.weight}function zo(e,t){let i=Bl;To??(To={space:ko(yo(i.space)),radius:ko(yo(i.radius)),size:ko(yo(i.type.size)),weight:ko(yo(i.type.weight))});let r=To,n=t=>So(r.space,yo(e.space),t),l=t=>So(r.radius,yo(e.radius),t),o=t=>Array.isArray(t)?t.map(o):t===null||typeof t!="object"?t:xo(t)?{...t,padding:t.padding.map(n),gap:t.gap.map(n),marginTop:n(t.marginTop),marginBottom:n(t.marginBottom),radius:t.radius.map(l)}:vo(t)?{...t,size:So(r.size,yo(e.type.size),t.size),weight:So(r.weight,yo(e.type.weight),t.weight),marginTop:n(t.marginTop),paddingTop:n(t.paddingTop)}:Object.fromEntries(Object.entries(t).map(([e,t])=>[e,o(t)]));return o(t)}function Do(e,t){if(Io(e))return t;let i=jo.get(t);i||jo.set(t,i=/* @__PURE__ */new WeakMap);let r=i.get(e);if(r)return r;let n=zo(e,t);return i.set(e,n),n}function Co(e,t,i,r,n=false){let l=e.length;if(l===0||t<=0)return[];let{rows:o,gap:a,widthShare:s}=r.grid,c=t/l,d=Math.max(1,Math.round(c*s)),u=Number(((i-(o-1)*a)/o).toFixed(2));return e.map((e,l)=>{let s=Number.isFinite(e)?Math.min(10,Math.max(0,e)):0,p=[];for(let e=0;e<o;e+=1){let t=Number(Math.max(0,Math.min(1,s-e)).toFixed(3));t>0&&p.push({y:Number((i-(e+1)*((i-(o-1)*a)/o)-e*a).toFixed(2)),height:u,opacity:t})}let h=Math.round(l*c+(c-d)/2);return{x:n?Math.round(t-h-d):h,width:d,zone:s>=r.zones.lot?"lot":s>=r.zones.some?"some":"go",lights:p}})}var Ho=/* @__PURE__ */(()=>{let t=/* @__PURE__ */Symbol.for("@everfur-health/ui-core#SurfaceContext@v1"),i=globalThis;return i[t]??(i[t]=e.createContext(null))})();function Fo(){return e.useContext(Ho)}var _o={display:"heading",headline:"heading",title:"heading",heading:"heading",body:"content",lead:"content",label:"control",meta:"compact",caption:"content",overline:"compact",kicker:"compact"};function Oo(e,t){let i=e.colors;switch(t){case"ink":return i.ink;case"text":return i.text;case"muted":return i.muted;case"danger":return i.alertDeep;case"inverse":return i.onInk;default:return}}function Eo(e,t,i,r){let n=ho(e,e.metrics.text[t]),l=Oo(e,i);return{...n,...l?{color:l}:{},...r?{weight:e.type.weight[r]}:{}}}var Po=/* @__PURE__ */(()=>{let t=/* @__PURE__ */Symbol.for("@everfur-health/ui-core#PressFeedbackContext@v1"),i=globalThis,r=i[t]??(i[t]=e.createContext(null));return r.displayName??(r.displayName="EverfurPressFeedbackContext"),r})();function Lo(){return e.useContext(Po)}function Ao(e,t,i,r={}){if(!e||r.disabled)return{onPress:i,onPressIn:void 0};let{onPressIn:n,onPress:l,haptic:o}=e,a=r.haptics!==false&&t.haptic&&o?o:void 0;return{onPress:i&&(l||a)?()=>{a?.(t),l?.(t),i()}:i,onPressIn:n?()=>n(t):void 0}}function Bo(e,t,i=1){return e?.pressScale?.[t]??i}var Ro={display:"balance",headline:"balance",title:"balance",heading:"balance",body:"pretty",lead:"pretty",meta:"pretty",caption:"pretty",label:"auto",overline:"auto",kicker:"auto"};function Vo(e,t){return e.type.variantTiers?.[t]??_o[t]}var $o=/* @__PURE__ */(()=>{let t=/* @__PURE__ */Symbol.for("@everfur-health/ui-native#ReducedMotionContext@v1"),i=globalThis,r=i[t]??(i[t]=e.createContext(null));return r.displayName??(r.displayName="EverfurReducedMotionContext"),r})();function Wo(){return e.useContext($o)}function Mo(e,i){let r=Zl(i.weight,i.mono===true);return{fontFamily:i.serif?e.type.faces.serif??e.type.faces.bold:e.type.faces[r],...e.type.namedFaces?{}:{fontWeight:String(i.weight)},fontSize:i.size,lineHeight:i.lineHeight,color:i.color,...i.tracking?{letterSpacing:i.tracking}:{},...i.upper?{textTransform:"uppercase"}:{},...i.deco?No(i):{},...i.tabular?{fontVariant:["tabular-nums"]}:{},...i.wrap&&t.Platform.OS==="web"?{textWrap:i.wrap}:{}}}function No(e){let i={textDecorationLine:e.deco==="strike"?"line-through":"underline"};return t.Platform.OS!=="web"?i:{...i,...e.decoOffset?{textUnderlineOffset:e.decoOffset}:{},...e.decoThickness?{textDecorationThickness:e.decoThickness}:{}}}function Go(e,t){let[i=0,r=0,n=0,l=0]=t.padding,[o=0,a=0]=t.radius,s=go(e,t.bg);return{paddingTop:i,paddingRight:r,paddingBottom:n,paddingLeft:l,...t.marginTop?{marginTop:t.marginTop}:{},...t.gap[0]?{columnGap:t.gap[0]}:{},...t.gap[1]?{rowGap:t.gap[1]}:{},...o===a?o?{borderRadius:o}:{}:{borderTopLeftRadius:o,borderTopRightRadius:o,borderBottomLeftRadius:a,borderBottomRightRadius:a},...s?{backgroundColor:s}:{},...t.edge.width>0&&!t.edge.ring?{borderWidth:t.edge.width,borderColor:ro(e,t.edge.color)}:{},...t.minHeight?{minHeight:t.minHeight}:{},...Jo(t.shadow)}}function qo(e,t){return t.edge.width>0&&t.edge.ring?Zo(t.edge.width,ro(e,t.edge.color),t.radius[0]??0):null}function Uo(){if(t.Platform.OS!=="web")return false;let e=globalThis;return typeof e.matchMedia=="function"&&e.matchMedia("(prefers-reduced-motion: reduce)").matches}function Yo(i){let[r,n]=e.useState(()=>i===null&&Uo());return e.useEffect(()=>{if(i!==null)return;let e=true,r=t.AccessibilityInfo?.isReduceMotionEnabled;if(typeof r=="function"){let i=r.call(t.AccessibilityInfo);i!=null&&typeof i.then=="function"&&i.then(t=>{e&&n(t===true)},()=>{})}let l=t.AccessibilityInfo?.addEventListener?.("reduceMotionChanged",e=>n(e===true));return()=>{e=false,l?.remove?.()}},[i]),i??r}function Xo(e){let t=Yo(Wo());return e.motion.reduced||t}function Ko(e,t,i){return{...e===void 0?{}:{expanded:e},...t===void 0?{}:{checked:t},...i===void 0?{}:{selected:i!==false}}}function Qo(e){let t=Math.max(0,Math.ceil((44-e)/2));return t===0?void 0:{top:t,bottom:t,left:t,right:t}}function Jo(e){return e.blur===0&&e.y===0&&e.x===0?null:{shadowColor:e.color,shadowOffset:{width:e.x,height:e.y},shadowOpacity:1,shadowRadius:e.blur,elevation:1}}function Zo(e,i,r){let n={position:"absolute",top:0,right:0,bottom:0,left:0,borderRadius:r};return t.Platform.OS==="web"?{...n,boxShadow:`inset 0 0 0 ${e}px ${i}`}:{...n,borderWidth:e,borderColor:i}}var ea=/* @__PURE__ */new Set;function ta(e,t,i){let r=typeof __DEV__<"u"?__DEV__:typeof process<"u"&&process.env.NODE_ENV!=="production";!t||i||ea.has(e)||!r||(ea.add(e),console.warn(`@everfur-health/ui-native: ${e} draws its close (onClose) without a closeLabel, so a screen reader cannot name it. Pass closeLabel with onClose.`))}function ia(e){return Math.round(e*100)/100}function ra(e,t){let i=Number(t.weight),r=t.letterSpacing??0;return{...Mo(e,{size:t.size,weight:i,lineHeight:ia(t.size*t.lineHeight),color:e.colors.text,tracking:r?ia(t.size*r):0,mono:t.face==="mono",upper:t.uppercase===true}),flexShrink:1}}function na(e){return e==="auto"?null:t.Platform.OS==="ios"?{lineBreakStrategyIOS:"push-out"}:t.Platform.OS==="android"&&e==="balance"?{textBreakStrategy:"balanced"}:null}function la(e,t){let i=e.type.weight[t];return e.type.namedFaces?{fontFamily:e.type.faces[Zl(i)]}:{fontWeight:String(i)}}function Text({tier:i,variant:r,tone:n,weight:l,level:o,lineBreak:a,typeRole:s,...c}){let d=Ql();if(s){let r=d.type.scaleCaps[i??s.tier??"content"],n=a?na(a):null;return e.createElement(t.Text,{...r>0?{maxFontSizeMultiplier:r}:{},...n,...c,style:[ra(d,s),c.style]})}let u=d.type.scaleCaps[i??(r?Vo(d,r):"content")],p=na(a??(r?Ro[r]:"auto"));if(r===void 0&&n===void 0&&l===void 0&&o===void 0)return p?e.createElement(t.Text,{...u>0?{maxFontSizeMultiplier:u}:{},...p,...c}):e.createElement(t.Text,u>0?{maxFontSizeMultiplier:u,...c}:c);let h=Oo(d,n),g=r?Mo(d,Eo(d,r,n,l)):{...h?{color:h}:{},...l?la(d,l):{}},f=o===void 0?{}:{accessibilityRole:"header",...t.Platform.OS==="web"?{"aria-level":o}:{}};return e.createElement(t.Text,{...u>0?{maxFontSizeMultiplier:u}:{},...p,...f,...c,style:[g,c.style]})}var oa=24,aa=16,sa=.8,ca=e=>Math.round(e*aa);function da(e,t,i,r,n,l){let o=e-i/2,a=t-r/2,s=Math.round(o),c=Math.round(a);return{position:"absolute",left:s,top:c,width:i,height:r,transform:[{translateX:o-s},{translateY:a-c},{rotate:`${Math.atan2(l,n)*180/Math.PI}deg`},{scale:1/aa}]}}function ua(e,t,i){for(let r of e.strokes){let e=r.width*t,n=r.points,l=n.length/2,o=r.closed?l:l-1;for(let a=0;a<o;a+=1){let o=(a+1)%l,s=(n[a*2]??0)*t,c=(n[a*2+1]??0)*t,d=(n[o*2]??0)*t-s,u=(n[o*2+1]??0)*t-c,p=Math.hypot(d,u);if(p===0&&!(l===2&&r.cap))continue;let h=p===0?1:d/p,g=p===0?0:u/p,f=r.closed||a>0||r.cap?e/2:0,m=r.closed||o!==l-1||r.cap?e/2:0,b=(p+m-f)/2;i.push({paint:"backgroundColor",style:{...da(s+h*b,c+g*b,ca(p+f+m),ca(e),h,g),borderTopLeftRadius:f>0?ca(e)/2:0,borderBottomLeftRadius:f>0?ca(e)/2:0,borderTopRightRadius:m>0?ca(e)/2:0,borderBottomRightRadius:m>0?ca(e)/2:0,...r.opacity===void 0?{}:{opacity:r.opacity}}})}}}function pa(e,t,i){for(let r of e.boxes){let e=(r.w+r.width)*t,n=(r.h+r.width)*t;i.push({paint:"borderColor",style:{...da((r.x-r.width/2)*t+e/2,(r.y-r.width/2)*t+n/2,ca(e),ca(n),1,0),borderWidth:ca(r.width*t),borderRadius:(r.radius+r.width/2)*t*aa,...r.opacity===void 0?{}:{opacity:r.opacity}}})}}function ha(e,t,i){for(let r of e.triangles){let e=[0,1,2].map(e=>[(r[e*2]??0)*t,(r[e*2+1]??0)*t]),n=0,l=-1;for(let t=0;t<3;t+=1){let i=e[t]??[0,0],r=e[(t+1)%3]??[0,0],o=Math.hypot(r[0]-i[0],r[1]-i[1]);o>l&&(l=o,n=t)}if(l<=0)continue;let o=e[n]??[0,0],a=e[(n+1)%3]??[0,0],s=e[(n+2)%3]??[0,0],c=(a[0]-o[0])/l,d=(a[1]-o[1])/l,u=(s[0]-o[0])*c+(s[1]-o[1])*d,p=(s[0]-o[0])*-d+(s[1]-o[1])*c,h=Math.abs(p),g=p<0,f=g?-h/2:h/2,m=ca(u),b=ca(l)-m,w=ca(h);i.push({paint:g?"borderBottomColor":"borderTopColor",style:{...da(o[0]+c*(l/2)-d*f,o[1]+d*(l/2)+c*f,m+b,w,c,d),width:0,height:0,borderLeftWidth:m,borderRightWidth:b,borderLeftColor:"transparent",borderRightColor:"transparent",...g?{borderBottomWidth:w}:{borderTopWidth:w}}})}for(let r of e.seams){let e=(r[0]??0)*t,n=(r[1]??0)*t,l=(r[2]??0)*t-e,o=(r[3]??0)*t-n,a=Math.hypot(l,o),s=sa*(r[4]??0),c=sa*(r[5]??0),d=a-s-c;if(a===0||d<=0)continue;let u=s+d/2;i.push({paint:"backgroundColor",style:da(e+l/a*u,n+o/a*u,ca(d),ca(sa),l/a,o/a)})}}var ga=/* @__PURE__ */new WeakMap;function fa(e,t){let i=ga.get(e);i===void 0&&(i=/* @__PURE__ */new Map,ga.set(e,i));let r=i.get(t);if(r!==void 0)return r;let n=[],l=t/oa;return pa(e,l,n),ua(e,l,n),ha(e,l,n),i.set(t,n),n}function Glyph({icon:e,size:r,color:n,label:l,testID:o,style:a}){let s=Ql(),c=r??s.metrics.icon.size,d=n??s.colors.ink;/* @__PURE__ */
|
|
28
|
-
return i.jsx(t.View,{testID:o,pointerEvents:"none",style:[{width:c,height:c},a],...l?{accessible:true,accessibilityRole:"image",accessibilityLabel:l}:{accessible:false,accessibilityElementsHidden:true,importantForAccessibility:"no-hide-descendants"},children:
|
|
29
|
-
return i.jsxs(PressBox,{...F.props,onPressIn:O,scale:F.scale,still:S,disabled:z,nativeID:w,hitSlop:
|
|
30
|
-
/* @__PURE__ */i.jsx(t.View,{style:
|
|
31
|
-
return i.jsxs(t.View,{testID:n,...a?{accessible:true,accessibilityLabel:e}:null,style:[
|
|
32
|
-
/* @__PURE__ */i.jsx(Text,{tier:"control",numberOfLines:1,...o===void 0?{}:{maxFontSizeMultiplier:o},style:[Mo(s,c.text),Ha.label],children:e})]})}var Ha=t.StyleSheet.create({pill:{flexDirection:"row",alignItems:"center",alignSelf:"flex-start",maxWidth:"100%"},label:{flexShrink:1}}),Fa={strokes:[{width:2,cap:true,closed:false,points:[21.73,18,13.73,4,12.997,3.258,11.99,2.986,10.983,3.258,10.25,4,2.25,18,1.982,19.005,2.254,20.008,2.994,20.739,4,21,20,21,20.999,20.731,21.731,19.999,21.998,18.999,21.73,18]},{width:2,cap:true,closed:false,points:[12,9,12,13]},{width:2,cap:true,closed:false,points:[12,17,12.01,17]}],boxes:[],triangles:[],seams:[]},_a={strokes:[{width:2,cap:true,closed:false,points:[12,19,5,12,12,5]},{width:2,cap:true,closed:false,points:[19,12,5,12]}],boxes:[],triangles:[],seams:[]},Oa={strokes:[{width:2,cap:true,closed:true,points:[6,2,3,6,3,20,3.268,21,4,21.732,5,22,19,22,20,21.732,20.732,21,21,20,21,6,18,2]},{width:2,cap:true,closed:false,points:[3,6,21,6]},{width:2,cap:true,closed:false,points:[16,10,15.696,11.531,14.828,12.828,13.531,13.696,12,14,10.469,13.696,9.172,12.828,8.304,11.531,8,10]}],boxes:[],triangles:[],seams:[]},Ea={strokes:[{width:2,cap:true,closed:false,points:[10.034,20.999,10.765,21.732,11.766,22,12.766,21.732,13.498,20.999]},{width:2,cap:true,closed:false,points:[21.766,8,21.514,5.799,20.818,3.8,19.765,1.999]},{width:2,cap:true,closed:false,points:[3.766,1.999,2.714,3.8,2.018,5.799,1.765,8]},{width:2,cap:true,closed:true,points:[3.028,15.325,2.78,15.838,2.851,16.402,3.22,16.837,3.766,16.999,19.765,16.999,20.312,16.838,20.681,16.404,20.753,15.84,20.506,15.327,19.71,14.47,18.967,13.451,18.347,12.128,17.923,10.358,17.766,8,17.309,5.704,16.009,3.758,14.061,2.457,11.766,1.999,9.47,2.457,7.524,3.758,6.223,5.704,5.765,8,5.609,10.358,5.184,12.128,4.565,13.451,3.822,14.47,3.028,15.325]}],boxes:[],triangles:[],seams:[]},Pa={strokes:[{width:2,cap:true,closed:false,points:[2,11,22,11]},{width:2,cap:true,closed:false,points:[4,11,4.287,13.12,5.096,15.03,6.35,16.65,7.97,17.904,9.88,18.713,12,19,14.12,18.713,16.03,17.904,17.65,16.65,18.904,15.03,19.713,13.12,20,11]},{width:2,cap:true,closed:false,points:[8.5,8,9.352,7.333,10.581,6.933,12,6.8,13.419,6.933,14.648,7.333,15.5,8]}],boxes:[],triangles:[],seams:[]},La={strokes:[{width:2,cap:true,closed:true,points:[11,21.73,12,21.998,13,21.73,20,17.73,20.732,16.999,21,16,21,8,20.732,7.001,20,6.27,13,2.27,12,2.002,11,2.27,4,6.27,3.268,7.001,3,8,3,16,3.268,16.999,4,17.73]},{width:2,cap:true,closed:false,points:[12,22,12,12]},{width:2,cap:true,closed:false,points:[3.29,7,12,12,20.71,7]},{width:2,cap:true,closed:false,points:[7.5,4.27,16.5,9.42]}],boxes:[],triangles:[],seams:[]},Aa={strokes:[{width:2,cap:true,closed:false,points:[8,2,8,6]},{width:2,cap:true,closed:false,points:[16,2,16,6]},{width:2,cap:true,closed:false,points:[3,10,21,10]}],boxes:[{x:3,y:4,w:18,h:18,radius:2,width:2}],triangles:[],seams:[]},Ba={strokes:[{width:2,cap:true,closed:true,points:[14.5,4,9.5,4,7,7,4,7,3,7.268,2.268,8,2,9,2,18,2.268,19,3,19.732,4,20,20,20,21,19.732,21.732,19,22,18,22,9,21.732,8,21,7.268,20,7,17,7,14.5,4]}],boxes:[{x:9,y:10,w:6,h:6,radius:3,width:2}],triangles:[],seams:[]},Ra={strokes:[{width:2,cap:true,closed:false,points:[20,6,9,17,4,12]}],boxes:[],triangles:[],seams:[]},Va={strokes:[{width:2,cap:true,closed:false,points:[9,18.001,15,12.001,9,6.001]}],boxes:[],triangles:[],seams:[]},$a={strokes:[{width:2,cap:true,closed:true,points:[12,22,14.658,21.643,17.048,20.635,19.071,19.071,20.635,17.048,21.643,14.658,22,12,21.643,9.342,20.635,6.953,19.071,4.929,17.048,3.366,14.658,2.357,12,2,9.341,2.357,6.953,3.366,4.929,4.929,3.365,6.953,2.357,9.342,2,12,2.357,14.658,3.365,17.048,4.929,19.071,6.953,20.635,9.341,21.643,12,22]},{width:2,cap:true,closed:false,points:[12,6.001,12,12,16,14.001]}],boxes:[],triangles:[],seams:[]},Wa={strokes:[{width:2,cap:true,closed:false,points:[12,15,12,3]},{width:2,cap:true,closed:false,points:[17,10,12,15,7,10]},{width:2,cap:true,closed:false,points:[21,15,21,19.001,20.847,19.765,20.414,20.414,19.765,20.847,19,21,5,21,4.235,20.847,3.586,20.414,3.153,19.765,3,19.001,3,15]}],boxes:[],triangles:[],seams:[]},Ma={strokes:[{width:2,cap:true,closed:false,points:[12,3,5,3,4,3.268,3.268,4,3,5,3,19,3.268,20,4,20.732,5,21,19,21,20,20.732,20.732,20,21,19,21,12]},{width:2,cap:true,closed:true,points:[18.375,2.625,19.326,2.076,20.424,2.076,21.375,2.625,21.924,3.576,21.924,4.674,21.375,5.625,12.362,14.639,11.509,15.144,8.636,15.984,8.142,15.858,8.016,15.364,8.856,12.491,9.362,11.639]}],boxes:[],triangles:[],seams:[]},Na={strokes:[{width:2,cap:true,closed:true,points:[15,2,6,2,5,2.268,4.268,3,4,4,4,20,4.268,21,5,21.732,6,22,18,22,19,21.732,19.732,21,20,20,20,7]},{width:2,cap:true,closed:false,points:[14,2,14,6,14.268,7,15,7.732,16,8,20,8]},{width:2,cap:true,closed:false,points:[10,9,8,9]},{width:2,cap:true,closed:false,points:[16,13,8,13]},{width:2,cap:true,closed:false,points:[16,17,8,17]}],boxes:[],triangles:[],seams:[]},Ga={strokes:[{width:2,cap:true,closed:false,points:[14.001,2,14.001,8,14.245,8.96,19.755,19.039,20,20.034,19.721,21.019,18.99,21.738,18,21.999,6,21.999,5.01,21.738,4.279,21.019,3.999,20.034,4.245,19.039,9.755,8.96,10,8,10,2]},{width:2,cap:true,closed:false,points:[6.453,15,17.547,15]},{width:2,cap:true,closed:false,points:[8.5,2,15.5,2]}],boxes:[],triangles:[],seams:[]},qa={strokes:[{width:2,cap:true,closed:true,points:[20,20,20.765,19.847,21.415,19.413,21.847,18.765,22,18,22,8,21.847,7.235,21.415,6.585,20.765,6.152,20,6,12.1,6,11.14,5.765,10.41,5.099,9.6,3.899,8.879,3.239,7.93,2.999,4,2.999,3.234,3.152,2.586,3.586,2.152,4.234,2,5,2,18,2.152,18.765,2.586,19.413,3.234,19.847,4,20,20,20]}],boxes:[],triangles:[],seams:[]},Ua={strokes:[{width:2,cap:true,closed:true,points:[2,9.499,2.247,7.868,2.968,6.383,4.096,5.179,5.532,4.364,7.144,4.011,8.788,4.152,10.316,4.776,11.591,5.824,11.777,5.955,12,6.001,12.223,5.955,12.409,5.824,13.682,4.768,15.211,4.139,16.859,3.995,18.475,4.347,19.913,5.165,21.041,6.374,21.759,7.863,22,9.499,21.742,11.114,21.063,12.546,20.101,13.829,19,15,13.508,20.313,12.834,20.817,12.012,20.999,11.189,20.827,10.508,20.332,5,15,3.899,13.831,2.937,12.55,2.258,11.119,2,9.499]}],boxes:[],triangles:[],seams:[]},Ya={strokes:[{width:2,cap:true,closed:false,points:[9.09,9,9.842,7.832,11.04,7.127,12.427,7.039,13.705,7.584,14.6,8.648,14.92,10,14.608,11.08,13.864,11.92,12.976,12.52,12.232,12.88,11.92,13]},{width:2,cap:true,closed:false,points:[12,17,12.01,17]}],boxes:[{x:2,y:2,w:20,h:20,radius:10,width:2}],triangles:[],seams:[]},Xa={strokes:[{width:2,cap:true,closed:false,points:[15,21,15,13,14.707,12.293,14,12,10,12,9.293,12.293,9,13,9,21]},{width:2,cap:true,closed:true,points:[3,10,3.186,9.158,3.709,8.472,10.709,2.473,11.536,2.055,12.464,2.055,13.291,2.473,20.291,8.472,20.814,9.158,21,10,21,19,20.732,20,20,20.732,19,21,5,21,4,20.732,3.268,20,3,19]}],boxes:[],triangles:[],seams:[]},Ka={strokes:[{width:2,cap:true,closed:false,points:[21,15,17.914,11.914,17.018,11.397,15.982,11.397,15.086,11.914,6,21]}],boxes:[{x:3,y:3,w:18,h:18,radius:2,width:2},{x:7,y:7,w:4,h:4,radius:2,width:2}],triangles:[],seams:[]},Qa={strokes:[{width:2,cap:true,closed:false,points:[12,16,12,12]},{width:2,cap:true,closed:false,points:[12,8,12.01,8]}],boxes:[{x:2,y:2,w:20,h:20,radius:10,width:2}],triangles:[],seams:[]},Ja={strokes:[{width:2,cap:true,closed:true,points:[11,20,8.727,19.628,6.697,18.538,5.131,16.848,4.199,14.741,4.001,12.446,4.558,10.211,5.811,8.278,7.624,6.856,9.8,6.1,12.322,5.587,14.274,5.099,15.788,4.568,16.993,3.921,18.02,3.088,19,2,19.734,3.557,20.375,5.318,20.828,7.42,21,10,20.72,12.286,19.931,14.388,18.708,16.245,17.127,17.796,15.265,18.98,13.198,19.735,11,20]},{width:2,cap:true,closed:false,points:[2,21,2.218,19.285,2.858,17.776,3.896,16.524,5.311,15.582,7.08,15,8.885,14.469,10.573,13.695,11.993,12.823,13,12]}],boxes:[],triangles:[],seams:[]},Za={strokes:[{width:2,cap:true,closed:false,points:[7,11,7,7,7.381,5.087,8.464,3.464,10.087,2.381,12,2,13.913,2.381,15.536,3.464,16.619,5.087,17,7,17,11]}],boxes:[{x:3,y:11,w:18,h:11,radius:2,width:2}],triangles:[],seams:[]},es={strokes:[{width:2,cap:true,closed:false,points:[22,7,13.03,12.7,12,12.996,10.97,12.7,2,7]}],boxes:[{x:2,y:4,w:20,h:16,radius:2,width:2}],triangles:[],seams:[]},ts={strokes:[{width:2,cap:true,closed:true,points:[7.9,20,10.431,20.853,13.102,20.925,15.676,20.211,17.927,18.772,19.656,16.736,20.712,14.282,21,11.627,20.497,9.003,19.246,6.643,17.357,4.754,14.997,3.503,12.373,3,9.718,3.288,7.264,4.344,5.228,6.073,3.789,8.324,3.075,10.898,3.147,13.569,4,16.1,2,22]}],boxes:[],triangles:[],seams:[]},is={strokes:[{width:2,cap:true,closed:false,points:[5,12,19,12]}],boxes:[],triangles:[],seams:[]},rs={strokes:[],boxes:[{x:4.65,y:11.15,w:1.7,h:1.7,radius:.85,width:1.7},{x:11.15,y:11.15,w:1.7,h:1.7,radius:.85,width:1.7},{x:17.65,y:11.15,w:1.7,h:1.7,radius:.85,width:1.7}],triangles:[],seams:[]},ns={strokes:[{width:2,cap:true,closed:true,points:[9,10,10.913,10.381,12.536,11.464,13.619,13.087,14,15,14,18.5,13.615,20.094,12.547,21.338,11.029,21.959,9.395,21.82,8.003,20.952,7.16,19.545,6.576,18.327,5.676,17.425,4.46,16.84,3.054,15.997,2.186,14.607,2.046,12.974,2.665,11.456,3.907,10.387,5.5,10]}],boxes:[{x:9,y:2,w:4,h:4,radius:2,width:2},{x:16,y:6,w:4,h:4,radius:2,width:2},{x:18,y:14,w:4,h:4,radius:2,width:2}],triangles:[],seams:[]},ls={strokes:[{width:2,cap:true,closed:false,points:[13.832,16.568,14.492,16.629,15.045,16.265,15.4,15.8,16.106,15.211,17,15,20,15,21,15.268,21.732,16,22,17,22,20,21.732,21,21,21.732,20,22,16.488,21.654,13.112,20.63,10,18.966,7.272,16.728,5.034,14,3.37,10.888,2.346,7.512,2,4,2.268,3,3,2.268,4,2,7,2,8,2.268,8.732,3,9,4,9,7,8.789,7.894,8.2,8.6,7.732,8.951,7.366,9.515,7.44,10.184,9.084,12.765,11.249,14.928,13.832,16.568]}],boxes:[],triangles:[],seams:[]},os={strokes:[{width:2,cap:true,closed:true,points:[10.5,20.5,20.5,10.5,21.594,8.894,21.985,6.99,21.613,5.082,20.536,3.464,18.918,2.387,17.01,2.015,15.106,2.406,13.5,3.5,3.5,13.5,2.406,15.106,2.015,17.01,2.387,18.918,3.464,20.536,5.082,21.613,6.99,21.985,8.894,21.594,10.5,20.5]},{width:2,cap:true,closed:false,points:[8.5,8.5,15.5,15.5]}],boxes:[],triangles:[],seams:[]},as={strokes:[{width:2,cap:true,closed:false,points:[20,10,19.688,12.141,18.859,14.242,17.674,16.234,16.294,18.053,14.881,19.631,13.597,20.902,12.601,21.799,12,22,11.399,21.799,10.403,20.902,9.119,19.631,7.706,18.053,6.326,16.234,5.141,14.242,4.312,12.141,4,10,4.392,7.528,5.528,5.298,7.298,3.528,9.528,2.392,12,2,14.472,2.392,16.702,3.528,18.472,5.298,19.608,7.528,20,10]}],boxes:[{x:9,y:7,w:6,h:6,radius:3,width:2}],triangles:[],seams:[]},ss={strokes:[{width:2,cap:true,closed:false,points:[5,12,19.001,12]},{width:2,cap:true,closed:false,points:[12,5,12,19.001]}],boxes:[],triangles:[],seams:[]},cs={strokes:[{width:2,cap:true,closed:false,points:[21,21,16.7,16.7]}],boxes:[{x:3,y:3,w:16,h:16,radius:8,width:2}],triangles:[],seams:[]},ds={strokes:[{width:2,cap:true,closed:true,points:[14.536,21.686,15.013,22,15.473,21.662,21.973,2.662,21.857,2.143,21.338,2.027,2.338,8.527,2,8.987,2.314,9.464,10.244,12.644,10.914,13.085,11.356,13.754]},{width:2,cap:true,closed:false,points:[21.854,2.147,10.914,13.086]}],boxes:[],triangles:[],seams:[]},us={strokes:[{width:2,cap:true,closed:true,points:[20,12.999,19.722,15.298,18.938,17.22,17.73,18.806,16.175,20.096,14.352,21.131,12.34,21.949,11.67,21.94,9.654,21.125,7.828,20.093,6.272,18.805,5.062,17.22,4.279,15.298,4,12.999,4,6,4.293,5.293,5,5,6.574,4.788,8.218,4.21,9.812,3.346,11.24,2.28,12,1.999,12.76,2.28,14.192,3.35,15.786,4.213,17.427,4.79,19,5,19.707,5.293,20,6,20,12.999]},{width:2,cap:true,closed:false,points:[9,12,11,13.999,15,10]}],boxes:[],triangles:[],seams:[]},ps={strokes:[{width:2,cap:true,closed:true,points:[12,3.5,12.503,5.742,13.338,7.465,14.57,8.727,16.269,9.586,18.5,10.1,16.269,10.603,14.57,11.438,13.338,12.67,12.503,14.369,12,16.6,11.497,14.369,10.662,12.67,9.43,11.438,7.731,10.603,5.5,10.1,7.731,9.586,9.43,8.727,10.662,7.465,11.497,5.742,12,3.5]},{width:2,cap:true,closed:true,points:[19,15.5,19.426,16.793,20.207,17.574,21.5,18,20.207,18.426,19.426,19.207,19,20.5,18.574,19.207,17.793,18.426,16.5,18,17.793,17.574,18.574,16.793,19,15.5]}],boxes:[],triangles:[],seams:[]},hs={strokes:[{width:2,cap:true,closed:false,points:[17.798,2,21.798,6]},{width:2,cap:true,closed:false,points:[16.799,7.001,19.798,4]},{width:2,cap:true,closed:false,points:[18.8,9,8.5,19.3,7.374,19.967,6.159,19.967,5.1,19.3,4.5,18.7,3.834,17.574,3.834,16.359,4.5,15.3,14.8,5.001]},{width:2,cap:true,closed:false,points:[8.8,11,12.8,15]},{width:2,cap:true,closed:false,points:[4.799,19,1.799,22]},{width:2,cap:true,closed:false,points:[13.799,4,19.8,10]}],boxes:[],triangles:[],seams:[]},gs={strokes:[{width:2,cap:true,closed:false,points:[12.001,3,12.001,15]},{width:2,cap:true,closed:false,points:[7,8,12.001,3,17,8]},{width:2,cap:true,closed:false,points:[21,15,21,19,20.847,19.765,20.414,20.414,19.765,20.847,19.001,21,5,21,4.235,20.847,3.586,20.414,3.153,19.765,3,19,3,15]}],boxes:[],triangles:[],seams:[]},fs={strokes:[{width:1.75,cap:true,closed:false,points:[19,21,19,19,18.696,17.469,17.828,16.172,16.531,15.304,15,15,9,15,7.469,15.304,6.172,16.172,5.304,17.469,5,19,5,21]}],boxes:[{x:8,y:3,w:8,h:8,radius:4,width:1.75}],triangles:[],seams:[]},ms={strokes:[{width:2,cap:true,closed:false,points:[16,13,21.223,16.482,21.736,16.507,22,16.066,22,7.87,21.749,7.436,21.248,7.438,16,10.5]}],boxes:[{x:2,y:6,w:14,h:12,radius:2,width:2}],triangles:[],seams:[]},bs={strokes:[{width:2,cap:true,closed:false,points:[18,6,6,18]},{width:2,cap:true,closed:false,points:[6,6,18,18]}],boxes:[],triangles:[],seams:[]},ws={alert:Fa,"arrow-left":_a,bag:Oa,bell:Ea,bowl:Pa,box:La,calendar:Aa,camera:Ba,check:Ra,chevron:Va,clock:$a,download:Wa,edit:Ma,file:Na,flask:Ga,folder:qa,heart:Ua,help:Ya,house:Xa,image:Ka,info:Qa,leaf:Ja,lock:Za,mail:es,message:ts,minus:is,more:rs,paw:ns,phone:ls,pill:os,pin:as,plus:ss,search:cs,send:ds,shield:us,sparkle:ps,syringe:hs,upload:gs,user:fs,video:ms,x:bs};function QuantityStepper(e){return ys(e,void 0)}function InkedQuantityStepper({ink:e,...t}){return ys(t,e)}function ys({value:r,min:n=1,max:l,label:o,fewerLabel:a,moreLabel:s,disabled:c=false,variant:d="standard",onChange:u,trackId:p,haptic:h,testID:g,style:f},m){let b=Ql(),w=Xo(b),y=po(b),x=b.metrics.variants.stepper,v=d==="compact",k=c||r<=n,T=c||l!==void 0&&r>=l,j=v?x.press:b.metrics.press.iconButton,S=ya("QuantityStepper",{testID:g?`${g}-fewer`:void 0,item:"fewer",label:a,trackId:p,haptic:h,disabled:k},()=>u(bo(r-1,n,l)),j),I=ya("QuantityStepper",{testID:g?`${g}-more`:void 0,item:"more",label:s,trackId:p,haptic:h,disabled:T},()=>u(bo(r+1,n,l)),j),z=e.useRef(r);e.useEffect(()=>{z.current!==r&&(z.current=r,t.Platform.OS==="ios"&&t.AccessibilityInfo.announceForAccessibility(`${o}, ${r}`))},[o,r]);let D=(e,t,r,n,l)=>/* @__PURE__ */i.jsx(PressBox,{...n.props,scale:n.scale,still:w,disabled:e,hitSlop:Qo(x.button.h),accessibilityRole:"button",accessibilityLabel:r,accessibilityState:{disabled:e},testID:g?`${g}-${l}`:void 0,style:[xs.button,{width:x.button.w,height:x.button.h,borderRadius:x.button.radius[0]??0},e?{opacity:x.disabledOpacity}:null],children:/* @__PURE__ */i.jsx(Glyph,{icon:t==="plus"?ss:is,size:x.icon,color:m??ro(b,x.button.color)})}),C=(e,t,r,n,l)=>v?D(e,t,r,n,l):/* @__PURE__ */i.jsx(PressBox,{...n.props,scale:n.scale,still:w,disabled:e,hitSlop:Qo(y.button),accessibilityRole:"button",accessibilityLabel:r,accessibilityState:{disabled:e},testID:g?`${g}-${l}`:void 0,style:[xs.button,{width:y.button,height:y.button,borderRadius:y.button/2},e&&y.off.opacity!==1?{opacity:y.off.opacity}:null],children:/* @__PURE__ */i.jsx(Glyph,{icon:t==="plus"?ss:is,size:y.icon,color:e?y.off.color:b.colors.ink})}),H=v?qo(b,x.track):null;/* @__PURE__ */
|
|
33
|
-
return i.jsxs(t.View,{testID:g,style:[
|
|
34
|
-
/* @__PURE__ */i.jsx(Text,{tier:"control",accessible:true,accessibilityRole:"adjustable",accessibilityLabel:o,accessibilityValue:{now:r,min:n,...l!==void 0?{max:l}:{},text:String(r)},"aria-valuenow":r,"aria-valuemin":n,"aria-valuemax":l,accessibilityState:{disabled:c},"aria-disabled":c||void 0,accessibilityActions:[{name:"increment"},{name:"decrement"}],onAccessibilityAction:e=>{e.nativeEvent.actionName==="increment"&&!T&&u(
|
|
35
|
-
return i.jsx(t.View,{testID:l,onLayout:p?e=>g(Math.round(e.nativeEvent.layout.width)):void 0,style:[{width:r.width??"100%",height:r.height??d.block.height,borderRadius:r.radius??d.block.radius,borderCurve:"continuous",backgroundColor:n,overflow:"hidden"},o],...a,children:p&&h>0?/* @__PURE__ */i.jsx(t.Animated.View,{pointerEvents:"none",style:{position:"absolute",top:-6,bottom:-6,left:0,width:m,backgroundColor:u.band,transform:[{translateX:f.interpolate({inputRange:[0,1],outputRange:[-m,h+m]})},{skewX:`${u.skew}deg`}]}}):null})}function
|
|
24
|
+
return Object.freeze({reason:userFacingError("accessDenied"),level:"user_entitlement",recoverable:false})}function zi(e){let t={name:e.name,enabled:e.enabled,isPending:e.isPending,limits:/* @__PURE__ */Object.freeze({...e.limits})};return e.disabled!==void 0&&(t.disabled=e.disabled),/* @__PURE__ */Object.freeze(t)}function useCapability(t){let{runtime:i}=u(),r=i.entitlements,n=e.useSyncExternalStore(r.subscribe,r.getSnapshot,r.getSnapshot);return e.useMemo(()=>decideCapability(t,n.decisions,{isPending:n.isPending}),[t,n])}var Di=/* @__PURE__ */Object.freeze({loading:"Loading",retry:"Try again",signedOut:"Sign in required",addToCart:"Add to cart",added:"Added",remove:"Remove",checkout:"Checkout",subtotal:"Subtotal",sample:"Sample",cartEmpty:"Your cart is empty.",choosePet:"Choose a pet",emptyTitle:"",emptyBody:"",emptyAsk:""}),Ci=/* @__PURE__ */Object.freeze({emptyTitle:true,emptyBody:true,emptyAsk:true}),Hi=/* @__PURE__ */Object.freeze({dna:"",records:"Records",inside:"Inside",profile:""}),Fi=/* @__PURE__ */Object.freeze({planTitle:e=>`${e}'s care plan`,cartLabel:e=>`${e} cart`});/* @__PURE__ */Object.freeze([...Object.keys(Di).filter(e=>Ci[e]===true&&Di[e]==="").map(e=>`HEALTH_PLAN_COPY.${e}`),...["profile"].filter(e=>Hi[e]==="").map(e=>`HEALTH_PLAN_REASON_LABELS.${e}`)]);function healthPlanPetWords(e,t){let i=e?.trim()??"",r=i===""?"your pet":i,n=i===""?"Your pet":i;return{name:r,Name:n,poss:"her",Poss:"Her",obj:"her"}}var _i=e=>e===null?"":`${e.productName} renews every ${e.intervalDays} days at ${e.box??""} until you cancel; skip or cancel anytime in the app.`;function healthPlanFocusCopyFor(e){let t=healthPlanPetWords(e.name),i=e=>e.petName?.trim()||t.name,NameOf=e=>e.petName?.trim()||t.Name,r=/* @__PURE__ */Object.freeze({jumpKicker:(e,i)=>i?`In ${t.poss} plan, every ${e.intervalDays} days`:e.offer?`${e.discountPercent}% off ${t.poss} first box`:e.intervalDays>0?`Ships every ${e.intervalDays} days`:r.onceLine(e),optionsLabel:"How to buy",subscribe:"Subscribe",bestValue:"Best value",subscribeLine:e=>e.offer?`First box, then ${e.box??""}`:`${e.box??""} every ${e.intervalDays} days`,priceLine:e=>e.offer?`${e.discountPercent}% off the first box. Ships every ${e.intervalDays} days.`:e.intervalDays>0?`Ships every ${e.intervalDays} days.`:r.onceOffer(e),once:"One box",onceLine:e=>e.onceDiscountPercent>0?`${e.onceDiscountPercent}% off, ships once`:"Ships once",buyOnce:e=>`Buy one box, ${e.once??e.box??""}`,subscribed:"Subscribed",subscribedLine:(e,t)=>t===null?`Every ${e.intervalDays} days`:`Every ${e.intervalDays} days · next box ${t}`,manage:"Manage",checkoutKicker:"Checkout",checkoutTitle:e=>`Checkout: ${e.productName}`,checkoutOffer:e=>`${e.discountPercent}% off your first box.`,shipsEvery:"Ships every",days:e=>`${e} days`,buyOnceOption:"Buy once",checkoutGo:(e,t,i)=>`${t?"Subscribe":"Buy now"} · ${i} today`,renews:e=>`Renews every ${e.intervalDays} days at ${e.box??""} until you cancel; skip or cancel anytime in the app.`,onceFine:"One box, ships tomorrow.",onceOffer:e=>e.onceDiscountPercent>0?`${e.onceDiscountPercent}% off, ships once.`:"Ships once.",checkoutNote:"",close:"Close",startedTitle:e=>`${NameOf(e)}'s plan has started.`,orderedTitle:()=>"Order placed.",startedWhat:e=>`${e.productName} ships tomorrow.`,startedNote:"",startedSteps:"What happens next",tomorrow:"Tomorrow",firstBoxShips:`${t.Poss} first box ships.`,trackingComesByText:"Tracking comes by text.",checkin:e=>e===null?"A 2-week check-in by text.":`A 2-week check-in by text: ${e}`,refill:`A text 3 days before ${t.poss} next box. Reply SKIP to skip it.`,nextBoxShips:e=>`${t.Poss} next box ships, ${e.box??""}.`,startedDone:`Back to ${t.poss} plan`,manageKicker:"Your subscription",manageTitle:e=>`Manage ${e.productName}`,skip:"Skip the next box",cancel:"Cancel subscription",skipped:(e,i)=>i===null?"Skipped.":`Skipped. ${t.Poss} next box ships ${i}.`,cancelled:e=>`${e.productName} is cancelled. Restart it from ${t.poss} plan anytime.`,orders:"Orders",startedHeader:"Subscribed",placedHeader:"Order placed",cartCheckoutTitle:"Checkout",orderNote:"",cartLabel:e=>e>0?`Cart, ${e} item${e>1?"s":""}`:"Cart, empty",addToCart:e=>`Add to cart · ${e}`,viewCart:"View cart",addedToCart:(e,t)=>`${e.productName} is in your cart${t?", as a subscription":""}.`,removedFromCart:e=>`${e} is out of your cart.`,cartTitle:"Cart",cartEmptyTitle:"Your cart is empty",cartEmptyBody:e=>`${NameOf(e)}'s plan pick lands here when you add it.`,seeOrders:`See ${t.poss} orders`,quantityLabel:e=>`How many: ${e}`,fewer:"One fewer",more:"One more",remove:"Remove",cartSubLine:e=>e.offer?`First box ${e.discountPercent}% off, then ${e.box??""} every ${e.intervalDays} days`:`Every ${e.intervalDays} days`,cartOnceLine:(e,i)=>i?`An extra box. ${t.Poss} plan keeps shipping.`:e.onceDiscountPercent>0?`One box, ${e.onceDiscountPercent}% off`:"One box",cartModeLabel:e=>`How to buy ${e}`,cartModeSubscribe:e=>e.offer?`Subscribe, ${e.discountPercent}% off the first box`:"Subscribe",cartModeOnce:e=>e.onceDiscountPercent>0?`One box, ${e.onceDiscountPercent}% off`:"One box",subtotal:"Subtotal",shipping:"Shipping",shippingValue:"",shippingTag:"",total:"Total",dueToday:"Due today",thenRenews:e=>`Then ${e.productName}`,renewsEvery:e=>`${e.box??""} every ${e.intervalDays} days`,checkoutCart:e=>`Checkout · ${e}`,cartOneAtATime:"",cartSubscriptionApart:"",cartItemSubscription:e=>`Subscription, every ${e.intervalDays} days`,cartItemQuantity:e=>`Qty ${e}`,placeOrder:(e,t)=>`${t?"Place order and subscribe":"Place order"} · ${e}`,cartFine:e=>`${e===null?"":`${_i(e)} `}Ships tomorrow.`,placedSteps:"What's coming",placedShips:"It ships.",placedArrives:"It arrives at home.",viewOrder:"View order",herSubscription:`${t.Poss} subscription`,nextBox:e=>`Next box ${e}`,everyDays:e=>`Every ${e} days`,ordersHeading:e=>e?"Orders":`${t.Poss} orders`,ordersFine:"",ordersEmptyTitle:"No orders yet",ordersEmptyBody:e=>`The boxes from ${i(e)}'s plan show up here.`,moreOrders:"",orderSteps:["Ordered","Shipped","Out for delivery","Delivered"],subscriptionBox:"Subscription box",orderTitle:e=>e===null?"Order":`Order ${e}`,arrivesBy:e=>`Arrives by ${e}`,deliveredOn:e=>`Delivered ${e}`,expected:e=>`Expected ${e}`,tracking:"Tracking",trackingByText:"The tracking number comes by text when it ships.",trackOn:e=>`Track on ${e}`,trackLink:"",inThisOrder:"In this order",orderItemLine:(e,t)=>`Qty ${e}${t?" · subscription box":""}`,paidWith:"Paid with",buyAgain:"Buy again",orderHelp:"Get help with this order",addWeightTitle:`Add ${t.poss} weight to size ${t.poss} dose`,addWeightBody:`From a home scale or ${t.poss} last vet visit.`,connectRecordsTitle:`Connect ${t.poss} vet records`,connectRecordsBody:`${t.Poss} weight, visits and labs make ${t.poss} plan sharper.`,weightKicker:`${t.Poss} weight`,weightTitle:e=>`Add ${i(e)}'s weight`,weightBody:`From a home scale or ${t.poss} last vet visit. ${t.Poss} plan uses it to size ${t.poss} dose.`,weightField:`${t.Poss} weight`,weightUnit:"lb",weightUnitKg:"kg",weightErrorKg:"Enter your pet’s weight",weightError:`Enter ${t.poss} weight in pounds, like 14.1.`,weightSave:`Save ${t.poss} weight`,weightSaved:e=>`Saved: ${e} lb. ${t.Poss} dose is sized for ${t.obj}.`,weightSavedKg:e=>`Saved: ${e} kg. ${t.Poss} dose is sized for ${t.obj}.`,checkoutFailed:"That didn't go through. Please try again.",builtWith:e=>`Built with ${e}`,fromVet:e=>`From ${e}`,waitVetTips:e=>`Free tips from ${e}, built around that risk`,signalsFit:e=>`${e} of ${e} signals fit ${t.Name}`,signalsValue:e=>`${e}/${e}`,noPick:`No supplement for this one. ${t.Poss} vet comes first.`,callYourVet:"Call your vet today",callAVet:"Call a vet today",saveForCheckup:`Save for ${t.poss} next checkup`,savedForCheckup:`Saved for ${t.poss} next checkup`,blanksLabel:`${t.Poss} three blanks`,blanksAsked:e=>`Asked ${e}`,blanksAskedNoClinic:"",blanksWaitPill:"2 to 5 days",blanksFilledKicker:`From ${t.poss} vet records`,blanksFilled:(e,t)=>`${e} of ${t} filled`,blanksWeight:`Keep ${t.obj} at `,blanksWeightSource:`From ${t.poss} vet visits`,blanksDose:(e,t)=>`${e} of ${t}`,blanksDoseSource:`Sized to ${t.poss} weight`,blanksShots:`${t.Poss} next shots are due `,blanksShotsSource:`From ${t.poss} clinic`,blankEmpty:"blank",recordsLanded:`${t.Poss} records are in. ${t.Poss} plan now uses ${t.poss} weight and ${t.poss} visits.`,todayLabel:`${t.Poss} Health Plan`,poweredBy:"powered by",poweredByName:"Everfur",seeMore:"See more",seeLess:"See less",reportActions:"Actions to take",openReport:`Open it in ${t.poss} report`,askReport:"Ask about it",fullOpen:`See ${t.poss} full plan`,fullOpenLine:`${t.Poss} vet, reviews and ${t.poss} checkup`,fullClose:`Show ${t.poss} brief plan`,fullCloseLine:`${t.Poss} risk, tips, pick and signs`,hopeNoted:e=>`Noted. When ${t.poss} results land, we'll start with ${e}.`,productLink:e=>`${e}, see the product`,productPhotos:e=>`${e} photos, swipe for more`,shopAll:"Shop all",madeFor:`Made for ${t.name}`,ratingLine:e=>`· ${e} reviews`,productOffer:e=>`${e.discountPercent}% off ${t.poss} first box`,productEvery:e=>`Every ${e.intervalDays} days`,productOnce:e=>e.onceDiscountPercent>0?`One box, ${e.onceDiscountPercent}% off`:"One box",productExtraBox:"An extra box",productOnPlan:e=>`On ${t.poss} plan, every ${e.intervalDays} days. This adds one extra box.`,quantity:"Quantity",description:"Description",readMore:"Read more",readLess:"Read less",whatsInside:"What's inside",howMuch:"How much",reviewsTitle:"Reviews",reviewCount:e=>`${e} reviews`,reviewsSwipe:"Reviews, swipe for more",readAllReviews:e=>`Read all ${e} reviews`,starsLabel:e=>`${e} out of 5 stars`,buyNow:"Buy now"});return r}var Oi=healthPlanFocusCopyFor({});function formatHealthPlanDay(e,t){if(e===null||!/^\d{4}-\d{2}-\d{2}$/.test(e))return null;let i=/* @__PURE__ */new Date(`${e}T00:00:00Z`);if(Number.isNaN(i.getTime()))return null;try{return new Intl.DateTimeFormat(t??"en-US",{month:"short",day:"numeric",timeZone:"UTC"}).format(i)}catch{return e}}var Ei=e=>/* @__PURE__ */Object.freeze(e.map(e=>/* @__PURE__ */Object.freeze(e)));function Pi(e){let t={};for(let[i,r]of Object.entries(e))r!==void 0&&(t[i]=r);return t}function Li(e){let t=e?.focus;if(!t)return Ei([]);let i=e?.byline,r=t.risk?.kind,n=r==="risk"||r==="watch"||r==="clear"?r:void 0;return Ei([Pi({kicker:t.kicker,sources:t.sources?.map(e=>({label:e.label,kind:e.kind==="dna"?"dna":"records"})),title:t.title,signals:t.risk?[{key:"risk",lead:t.risk.lead,text:t.risk.body??"",tone:n,dot:n===void 0?"space":true}]:[],score:t.odds?{label:t.odds.label,tag:t.odds.tag,was:t.odds.from,now:t.odds.to,since:t.odds.toLabel}:void 0,quote:t.quote&&i?{text:t.quote.text,by:i.shortName??void 0,image:i.imageUrl??null,tag:t.quote.tag}:void 0})])}function Ai(e){let t=e?.routine?.steps??[],i=e?.byline?.shortName;return Ei(t.map((e,t)=>Pi({key:e.title,number:String(t+1),title:e.title,text:e.body||void 0,foot:e.fromVet?i?Oi.fromVet(i):void 0:e.source??void 0,tone:e.tone??"y"})))}function Bi(e,t){return formatHealthPlanPrice(e.price,e.currency,t)??void 0}function Ri(e,t){return Vi(e?.items??[],t)}function Vi(e,t){return Ei(e.map(e=>Pi({key:e.productId,name:e.title,image:e.imageUrl,imageAlt:e.title,kicker:e.category??void 0,price:Bi(e,t),badge:e.sample?Di.sample:void 0})))}function $i(e,t){return Ei(healthPlanCart(e??null).items.map(e=>Pi({key:e.productId,name:e.title,image:e.imageUrl,imageAlt:e.title,meta:e.category??void 0,price:Bi(e,t)})))}function Wi(e,t){let i=healthPlanCart(e??null),r=formatHealthPlanPrice(i.subtotal,i.currency,t);return i.count===0||r===null?Ei([]):Ei([{rows:[{key:"subtotal",term:Di.subtotal,value:r}],count:i.count}])}function Mi(e,t){return Ei((e??[]).map(e=>Pi({key:e.orderId,number:e.orderId,title:e.title??"",meta:formatHealthPlanDay(e.shipsOn??e.createdAt??null,t)??void 0,total:formatHealthPlanPrice(e.total??e.price*(e.quantity??1),e.currency,t)??void 0})))}var Ni=["plan.needs","plan.tips"],Gi=["plan.items","cart.lines","cart.summary"];function qi(t){let{userRef:userRef,activePet:i,scopeEpoch:r}=u(),n=useCapability("healthPlan").enabled,petRef=t.petRef===void 0?i??null:t.petRef,{sources:l,locale:o}=t,a=n&&userRef!==null&&petRef!==null,s=a&&Ni.some(e=>l.has(e)),c=a&&Gi.some(e=>l.has(e)),d=a&&l.has("orders.recent"),p=useHealthPlanPage({petRef:petRef,enabled:s}),h=useEverfurHealthPlanRepository(),g=ct(()=>new le(h),[h,userRef,r]);e.useEffect(()=>{g.load(c?petRef:null)},[g,c,petRef]);let f=e.useSyncExternalStore(g.subscribe,g.getSnapshot,g.getSnapshot),m=useHealthPlanSubscriptionRepository(),[b,w]=e.useState(null);return e.useEffect(()=>{if(!d||petRef===null)return;let e=true;return oe(m,petRef).then(t=>{e&&(t.ok?w({petRef:petRef,list:t.value.orders}):Z(t.error)&&w({petRef:petRef,list:[]}))}),()=>{e=false}},[d,petRef,m]),e.useMemo(()=>{let e={};if(s&&p.phase==="ready"){let t=p.missing?null:p.page?.page??null;e["plan.needs"]=Li(t),e["plan.tips"]=Ai(t)}if(c&&f.petRef===petRef){let t=f.phase==="ready"?f.plan:f.phase==="failed"&&Z(f.error)?null:void 0;t!==void 0&&(e["plan.items"]=Ri(t,o),e["cart.lines"]=$i(t,o),e["cart.summary"]=Wi(t,o))}return d&&b!==null&&b.petRef===petRef&&(e["orders.recent"]=Mi(b.list,o)),e},[s,c,d,p.phase,p.missing,p.page,f,b,petRef,o])}var Ui="everfur.slot/1";var Yi=/* @__PURE__ */Symbol("bad");function Xi(e){return e!==null&&typeof e=="object"&&!Array.isArray(e)}function Ki(e,t,i){return typeof e=="string"&&e.length>=t&&e.length<=i?e:Yi}function Qi(e,t){return e==null?void 0:Ki(e,0,t)}function Ji(e){return e===void 0?{}:Xi(e)?e:Yi}function Zi(e){let t=Ji(e);if(t===Yi)return Yi;for(let e of Object.values(t))if(typeof e!="string")return Yi;return t}function er(e,t,i){return typeof e=="number"&&Number.isInteger(e)&&e>=t&&e<=i?e:Yi}function tr(e){if(e==null)return;if(e==="hide")return"hide";if(!Xi(e))return Yi;let t=Ki(e.type,1,64),i=Qi(e.variant,64),r=Ji(e.settings),n=Zi(e.bind),l=Zi(e.actions);return t===Yi||i===Yi||r===Yi||n===Yi||l===Yi?Yi:/* @__PURE__ */Object.freeze({type:t,...i?{variant:i}:{},settings:/* @__PURE__ */Object.freeze({...r}),bind:/* @__PURE__ */Object.freeze({...n}),actions:/* @__PURE__ */Object.freeze({...l})})}function ir(e){if(e==null)return;if(!Xi(e))return Yi;let t=Ki(e.source,0,80);return t===Yi||e.op!=="present"&&e.op!=="absent"?Yi:/* @__PURE__ */Object.freeze({source:t,op:e.op})}function rr(e){if(!Xi(e))return Yi;let t=Ki(e.id,1,64),i=Ki(e.type,1,64),r=Qi(e.variant,64),n=Ji(e.settings),l=Zi(e.bind),o=Qi(e.repeat,80),a=ir(e.visibleIf),s=Zi(e.actions),c=tr(e.fallback);return t===Yi||i===Yi||r===Yi||n===Yi||l===Yi||o===Yi||a===Yi||s===Yi||c===Yi?Yi:/* @__PURE__ */Object.freeze({id:t,type:i,...r?{variant:r}:{},settings:/* @__PURE__ */Object.freeze({...n}),bind:/* @__PURE__ */Object.freeze({...l}),...o?{repeat:o}:{},...a?{visibleIf:a}:{},actions:/* @__PURE__ */Object.freeze({...s}),...c?{fallback:c}:{}})}var nr=/^everfur\.slot\/(\d{1,4})$/,lr=/<\s*[A-Za-z/!?]|&[A-Za-z#][A-Za-z0-9]*;/,or=/[\u0000-\u0008\u000b-\u001f\u007f\u2028\u2029]/,ar=/^[a-z][a-zA-Z0-9]*(\.[a-zA-Z0-9]+){0,4}$/,sr=/^#[0-9a-fA-F]{6}$/,cr=1e4;function dr(e){let t=0;for(let i=0;i<e.length;i++){let r=e.charCodeAt(i);r<128?t+=1:r<2048?t+=2:r>=55296&&r<=56319&&i+1<e.length?(t+=4,i++):t+=3}return t}function ur(e){return e.trim()!==""&&!lr.test(e)&&!or.test(e)}function pr(e){try{return dr(JSON.stringify(e)??"")}catch{return Number.POSITIVE_INFINITY}}function hr(e){let t=e!==null&&typeof e=="object"?e.schema:void 0;if(typeof t!="string")return"unparseable";let i=nr.exec(t);return i===null?"unparseable":Number(i[1])>1?"newer_schema":null}function gr(e){let t={};for(let[i,r]of Object.entries(e))ar.test(i)&&(typeof r=="string"&&sr.test(r)||typeof r=="number"&&Number.isFinite(r)&&Math.abs(r)<=cr)&&(t[i]=r);/* @__PURE__ */
|
|
25
|
+
return Object.freeze(t)}function fr(e){let t={};for(let[i,r]of Object.entries(e)){let e=typeof r=="string"?r:r!==null&&typeof r=="object"?r.text:void 0;typeof e=="string"&&e.length<=500&&ur(e)&&(t[i]=e)}/* @__PURE__ */
|
|
26
|
+
return Object.freeze(t)}function mr(e,t){if(pr(e)>65536)return{ok:false,reason:"too_large"};let i=hr(e);if(i!==null)return{ok:false,reason:i};let r=e,n=Ki(r.slot,3,64),l=r.docVersion===void 0||r.docVersion===null?null:er(r.docVersion,1,Number.MAX_SAFE_INTEGER),o=r.minBlocks===void 0?1:er(r.minBlocks,0,50),a=r.theme===void 0||r.theme===null?{}:Ji(r.theme),s=a===Yi?Yi:Ji(a.tokens),c=Ji(r.copy),d=Array.isArray(r.parts)&&r.parts.length>=1&&r.parts.length<=50?r.parts.map(rr):Yi;return n===Yi||l===Yi||o===Yi||s===Yi||c===Yi?{ok:false,reason:"unparseable"}:d===Yi||d.some(e=>e===Yi)?{ok:false,reason:"unparseable"}:n!==t?{ok:false,reason:"wrong_slot"}:{ok:true,doc:/* @__PURE__ */Object.freeze({schema:Ui,slot:n,docVersion:l,minBlocks:o,tokens:gr(s),parts:/* @__PURE__ */Object.freeze(d),copy:fr(c)})}}function br(e){if(e===null)return{ok:false,reason:"too_large"};if(typeof e!="string")return{ok:true,raw:e};if(e.length>65536||dr(e)>65536)return{ok:false,reason:"too_large"};try{return{ok:!0,raw:JSON.parse(e)}}catch{return{ok:false,reason:"unparseable"}}}function wr(e){/* @__PURE__ */
|
|
27
|
+
return Object.freeze({settings:{},bind:{},actions:{},...e})}var yr=/* @__PURE__ */Object.freeze({focus:wr({id:"focus",type:"PlanNeedCard",variant:"plan",bind:{title:"data:plan.needs"}}),needs:wr({id:"needs",type:"PlanNeedCard",variant:"standard",repeat:"data:plan.needs"}),tips:wr({id:"tips",type:"TipCard",variant:"plan",repeat:"data:plan.tips"}),shelf:wr({id:"shelf",type:"ProductTile",variant:"standard",repeat:"data:plan.items"}),cartLines:wr({id:"cart-lines",type:"CartLine",variant:"plan",repeat:"data:cart.lines"}),cartSummary:wr({id:"cart-summary",type:"PriceSummary",bind:{rows:"data:cart.summary"},visibleIf:{source:"data:cart.summary",op:"present"}}),orders:wr({id:"orders",type:"OrderRow",variant:"quiet",repeat:"data:orders.recent"})});function xr(e,t){/* @__PURE__ */
|
|
28
|
+
return Object.freeze({schema:Ui,slot:e,docVersion:null,minBlocks:1,tokens:{},parts:/* @__PURE__ */Object.freeze([...t]),copy:{}})}var vr=yr,kr=/* @__PURE__ */Object.freeze({"health_plan.focus":xr("health_plan.focus",[vr.focus,vr.tips]),"today.health":xr("today.health",[vr.focus,vr.tips]),"shop.shelf":xr("shop.shelf",[vr.shelf]),"shop.cart":xr("shop.cart",[vr.cartLines,vr.cartSummary]),"shop.orders":xr("shop.orders",[vr.orders])});function Tr(e){return Object.prototype.hasOwnProperty.call(kr,e)?kr[e]??null:null}function jr(e){return xr(`part.${e.toLowerCase()}`,[yr[e]])}function Sr(e){if(typeof e=="number")return Dr(e);if(typeof e!="string")return null;let t=e.trim();if(t.length===0)return null;if(t.startsWith("#"))return Ir(t.slice(1));if(t.toLowerCase().startsWith("0x"))return Ir(t.slice(2));if(t.toLowerCase().startsWith("rgb"))return zr(t);if(/^[0-9a-fA-F]+$/.test(t)){let e=Ir(t);if(e!==null)return e}return/^\d+$/.test(t)?Dr(Number.parseInt(t,10)):null}function Ir(e){let t=e.trim();if(!/^[0-9a-fA-F]+$/.test(t))return null;if(t.length===3)return{r:Hr(t[0]),g:Hr(t[1]),b:Hr(t[2]),a:1};if(t.length===6)return{r:Cr(t,0),g:Cr(t,2),b:Cr(t,4),a:1};if(t.length===8){let e=Cr(t,0);return{r:Cr(t,2),g:Cr(t,4),b:Cr(t,6),a:e/255}}return null}function zr(e){let t=e.indexOf("("),i=e.indexOf(")");if(t<0||i<0||i<t)return null;let r=e.slice(t+1,i).split(",").map(e=>e.trim());if(r.length<3)return null;let n=Fr(Number(r[0])),l=Fr(Number(r[1])),o=Fr(Number(r[2]));if(n===null||l===null||o===null)return null;let a=1;if(r.length>=4){let e=Number(r[3]);if(!Number.isFinite(e))return null;a=Math.min(1,Math.max(0,e))}return{r:n,g:l,b:o,a:a}}function Dr(e){if(!Number.isFinite(e))return null;let t=Math.trunc(e)>>>0,i=t>>>24&255;return{r:t>>>16&255,g:t>>>8&255,b:t&255,a:i===0?1:i/255}}function Cr(e,t){return Number.parseInt(e.slice(t,t+2),16)}function Hr(e){return Number.parseInt(`${e??"0"}${e??"0"}`,16)}function Fr(e){return Number.isFinite(e)?Math.min(255,Math.max(0,Math.round(e))):null}function _r(e,t,i){return`#${Or(e)}${Or(t)}${Or(i)}`.toUpperCase()}function Or(e){return e.toString(16).padStart(2,"0")}var Er="#111111",Pr="#FFFFFF",Lr="#000000";function readableOn(e){let t=Sr(e);if(t===null)return Pr;let i=Rr(t),r=Rr({r:17,g:17,b:17}),n=Rr({r:255,g:255,b:255});return $r(i,n)>=$r(i,r)?Pr:Er}function Ar(e,t){let i=readableOn(e);return contrastRatio(i,e)>=t?i:contrastRatio(Pr,e)>=contrastRatio(Lr,e)?Pr:Lr}function Br(e){let t=t=>e.reduce((e,i)=>Math.min(e,contrastRatio(t,i)),Number.POSITIVE_INFINITY);return t(Pr)>=t(Lr)?Pr:Lr}function Rr(e){let t=Vr(e.r/255),i=Vr(e.g/255),r=Vr(e.b/255);return.2126*t+.7152*i+.0722*r}function Vr(e){return e<=.03928?e/12.92:Math.pow((e+.055)/1.055,2.4)}function $r(e,t){let i=Math.max(e,t),r=Math.min(e,t);return(i+.05)/(r+.05)}function contrastRatio(e,t){let i=Sr(e),r=Sr(t);if(i===null||r===null)return 1;let n=r.a>=1?r:{...r},l=i.a>=1?i:Wr(i,n);return $r(Rr(l),Rr(n))}function Wr(e,t){let i=e.a,r=(e,t)=>Math.round(e*i+t*(1-i));return{r:r(e.r,t.r),g:r(e.g,t.g),b:r(e.b,t.b),a:1}}function Mr(e,t){let i=Sr(e),r=Sr(t);if(i===null||r===null)return null;let n=i.a>=1?i:Wr(i,{...r});return _r(n.r,n.g,n.b)}var Nr=.05;function Gr(e,t,i,r){let n=t[0];if(n===void 0)return i;let l=e=>t.every(t=>contrastRatio(e,t)>=r);if(Sr(e)===null)return i;if(l(e))return e;let o=Mr(e,n),a=o===null?null:Sr(o),s=Sr(i);if(a===null||s===null)return i;for(let e=1;e<1/Nr;e+=1){let t=e*Nr,i=(e,i)=>Math.round(e+(i-e)*t),r=_r(i(a.r,s.r),i(a.g,s.g),i(a.b,s.b));if(l(r))return r}return i}var qr=/* @__PURE__ */Object.freeze({display:/* @__PURE__ */Object.freeze({size:29,lineHeight:1.06,weight:"800",face:"heading",letterSpacing:-.01,uppercase:false,tier:"heading"}),title:/* @__PURE__ */Object.freeze({size:23,lineHeight:1.12,weight:"800",face:"heading",letterSpacing:-.01,uppercase:false,tier:"heading"}),cardTitle:/* @__PURE__ */Object.freeze({size:19,lineHeight:1.22,weight:"800",face:"sans",letterSpacing:0,uppercase:false,tier:"heading"}),rowTitle:/* @__PURE__ */Object.freeze({size:15.5,lineHeight:1.4,weight:"700",face:"sans",letterSpacing:0,uppercase:false,tier:"content"}),body:/* @__PURE__ */Object.freeze({size:15,lineHeight:1.5,weight:"400",face:"sans",letterSpacing:0,uppercase:false,tier:"content"}),message:/* @__PURE__ */Object.freeze({size:15.5,lineHeight:1.5,weight:"400",face:"sans",letterSpacing:0,uppercase:false,tier:"content"}),bodySmall:/* @__PURE__ */Object.freeze({size:14.5,lineHeight:1.4,weight:"400",face:"sans",letterSpacing:0,uppercase:false,tier:"content"}),caption:/* @__PURE__ */Object.freeze({size:13,lineHeight:1.4,weight:"400",face:"sans",letterSpacing:0,uppercase:false,tier:"content"}),label:/* @__PURE__ */Object.freeze({size:10.5,lineHeight:1.4,weight:"400",face:"mono",letterSpacing:.05,uppercase:true,tier:"compact"}),eyebrow:/* @__PURE__ */Object.freeze({size:15,lineHeight:1.5,weight:"400",face:"mono",letterSpacing:.07,uppercase:true,tier:"compact"}),chip:/* @__PURE__ */Object.freeze({size:15,lineHeight:1.3,weight:"600",face:"sans",letterSpacing:0,uppercase:false,tier:"compact"}),tab:/* @__PURE__ */Object.freeze({size:16,lineHeight:1.5,weight:"600",face:"sans",letterSpacing:0,uppercase:false,tier:"compact"}),button:/* @__PURE__ */Object.freeze({size:15,lineHeight:1.5,weight:"700",face:"sans",letterSpacing:0,uppercase:false,tier:"control"}),badge:/* @__PURE__ */Object.freeze({size:12,lineHeight:1.5,weight:"700",face:"sans",letterSpacing:0,uppercase:false,tier:"badge"})});var Ur=Object.freeze;function deepFreeze(e){if(e!==null&&typeof e=="object"&&!Object.isFrozen(e)){Ur(e);for(let t of Object.keys(e))deepFreeze(e[t])}return e}var Yr=/* @__PURE__ */Object.freeze({content:0,heading:2,control:1.8,compact:1.5,badge:1.3});var Xr={xs:4,sm:8,md:12,lg:16,xl:24,xxl:32},Kr={tile:5,xs:6,sm:10,md:14,lg:20,xl:28,pill:500},Qr={nano:8,small:9,micro:10,tiny:11,caption:13,bodyTight:15,body:17,subtitle:20,heading:22,verdict:24},Jr={tight:1.15,snug:1.3,normal:1.4,relaxed:1.55},Zr={regular:"400",medium:"500",bold:"700"},en={eyebrow:1,monoWide:.9,headerBrand:-.42,tight:-.35},tn=0,rn="System",nn="monospace",ln=["content","heading","control","compact","badge"];function on(e){let t={};for(let i of ln)t[i]=e;return t}var an=[];function sn(){return{family:rn,mono:nn,fontUrl:null,families:{regular:rn,medium:rn,bold:rn,mono:nn,monoMedium:nn,monoBold:nn},namedFaces:{regular:false,medium:false,bold:false,mono:false,monoMedium:false,monoBold:false},fontUrls:{},size:Qr,tierSizes:on(Qr),lineHeight:Jr,weight:Zr,letterSpacing:en,scale:1,maxScale:tn,scaleCaps:Yr,headingFamily:null,headingWeight:null,fontSources:an,roles:qr,typeScale:1}}var cn={},dn=/* @__PURE__ */Object.freeze({standard:/* @__PURE__ */Object.freeze([.2,0,0,1]),emphasized:/* @__PURE__ */Object.freeze([.2,.8,.2,1]),exit:/* @__PURE__ */Object.freeze([.4,0,1,1])});function cssCubicBezier(e){return`cubic-bezier(${e.join(", ")})`}var un={duration:{instant:80,fast:140,normal:220,slow:320},spring:{gentle:{damping:18,stiffness:200}},easing:{standard:cssCubicBezier(dn.standard),emphasized:cssCubicBezier(dn.emphasized),exit:cssCubicBezier(dn.exit)},reducedMotion:false},pn={brand:"#10462E",brandSoft:"rgba(16,70,46,0.10)",brandSofter:"rgba(16,70,46,0.15)",brandBorder:"rgba(16,70,46,0.18)",borderHairlineGreen:"rgba(16,70,46,0.25)",brandBorderStrong:"rgba(16,70,46,0.55)",brandInk:"#10462E",linkInk:"#10462E",surface:"#FFFFFF",surfaceCream:"#FFFFFF",surfaceSubtle:"#F1F5F2",background:"#FFFFFF",borderRingCream:"#E4E4E4",chatGround:"#FFFFFF",composerFill:"#FFFFFF",composerBorder:"rgba(16,70,46,0.75)",shadow:"#0B3421",text:{primary:"#000000",secondary:"#0E462E",muted:"#6B6B6B",placeholder:"rgba(61,61,61,0.75)",onBrand:"#FFFFFF",metaCool:"#3D3D3D",timestamp:"rgba(61,61,61,0.75)"},primary:"#10462E",onPrimary:"#FFFFFF",accent:"#10462E",onAccent:"#FFFFFF",accentEdge:"#07C168",success:"#07C168",danger:"#C03410",onDanger:"#FFFFFF",errorRed:"#C03410",warningStrong:"#A45610",cautionAccent:"#D9821D",riskConcern:"#EFA700",sentiment:{up:"#07C168",neutral:"#FBC558",down:"#FF1B00"},badgeBgPositive:"rgba(7,193,104,0.12)",badgeBgCaution:"rgba(217,130,29,0.14)",badgeBgCritical:"rgba(192,52,16,0.06)",badgeBgNeutral:"rgba(107,107,107,0.12)",bubbleUser:"#10462E",bubbleAssistant:"#FFFFFF",bubbleVet:"#FFC3BC",onBubbleVet:"#000000",skeleton:"#E9F1E9",scanButtonPink:"#FFC3BC",highlight:"#FFC3BC",onHighlight:"#000000",mark:"#07C168",controlEdge:"rgba(16,70,46,0.18)",structureEdge:"rgba(16,70,46,0.25)",primaryEdge:"#10462E",checkupCardLowRiskBg:"rgba(7,193,104,0.10)",checkupCardConcernBg:"rgba(239,167,0,0.10)",info:"#10462E",badgeBgInfo:"rgba(16,70,46,0.10)",infoEdge:"rgba(16,70,46,0.25)"},hn=deepFreeze({brightness:"light",highContrast:false,meta:{displayName:"Everfur",logoUrl:null,placeholder:null,hidePoweredBy:false,assistantAvatarUrl:null},color:pn,space:Xr,radius:Kr,type:sn(),motion:un,slots:cn}),gn={brand:"#6BD39A",brandSoft:"rgba(107,211,154,0.12)",brandSofter:"rgba(107,211,154,0.18)",brandBorder:"rgba(107,211,154,0.22)",borderHairlineGreen:"rgba(107,211,154,0.28)",brandBorderStrong:"rgba(107,211,154,0.55)",brandInk:"#6BD39A",linkInk:"#6BD39A",surface:"#1C1F23",surfaceCream:"#23272C",surfaceSubtle:"#23272C",background:"#15171A",borderRingCream:"#3A3F45",chatGround:"#1C1F23",composerFill:"#23272C",composerBorder:"rgba(107,211,154,0.75)",shadow:"#000000",text:{primary:"#F5F3F0",secondary:"#A9E4C4",muted:"#9A9A9A",placeholder:"rgba(255,255,255,0.55)",onBrand:"#0E1F17",metaCool:"#C9C9C9",timestamp:"rgba(245,243,240,0.7)"},primary:"#6BD39A",onPrimary:"#0E1F17",accent:"#6BD39A",onAccent:"#0E1F17",accentEdge:"#34D888",success:"#07C168",danger:"#F87171",onDanger:"#0E1F17",errorRed:"#FF6B5B",warningStrong:"#F0A35E",cautionAccent:"#D9821D",riskConcern:"#EFA700",sentiment:{up:"#07C168",neutral:"#FBC558",down:"#FF1B00"},badgeBgPositive:"rgba(7,193,104,0.18)",badgeBgCaution:"rgba(217,130,29,0.20)",badgeBgCritical:"rgba(185,28,28,0.22)",badgeBgNeutral:"rgba(255,255,255,0.10)",bubbleUser:"#6BD39A",bubbleAssistant:"#1C1F23",bubbleVet:"#FFC3BC",onBubbleVet:"#000000",skeleton:"#23272C",scanButtonPink:"#FFC3BC",highlight:"#605051",onHighlight:"#F5F3F0",mark:"#07C168",controlEdge:"rgba(107,211,154,0.22)",structureEdge:"rgba(107,211,154,0.28)",primaryEdge:"#6BD39A",checkupCardLowRiskBg:"rgba(7,193,104,0.16)",checkupCardConcernBg:"rgba(239,167,0,0.16)",info:"#6BD39A",badgeBgInfo:"rgba(107,211,154,0.12)",infoEdge:"rgba(107,211,154,0.28)"},fn=deepFreeze({brightness:"dark",highContrast:false,meta:{displayName:"Everfur",logoUrl:null,placeholder:null,hidePoweredBy:false,assistantAvatarUrl:null},color:gn,space:Xr,radius:Kr,type:sn(),motion:un,slots:cn});function mn(e){let t=[];for(let i of e){let e=i.codePointAt(0);e<128?t.push(e):e<2048?t.push(192|e>>6,128|e&63):e<65536?t.push(224|e>>12,128|e>>6&63,128|e&63):t.push(240|e>>18,128|e>>12&63,128|e>>6&63,128|e&63)}return t}function bn(e){let t=3421674724,i=2216829733;for(let r of mn(e)){i=(i^r)>>>0;let e=i*435,n=Math.floor(e/4294967296),l=e>>>0;t=t*435+n+i*256>>>0,i=l}return t.toString(16).padStart(8,"0")+i.toString(16).padStart(8,"0")}var wn=/* @__PURE__ */new WeakMap;function yn(e){return wn.get(e)}var xn="sha256-0IDdNTQTtW2+pJ9GBCa/aWJrH/lf2X2jHhTQaCt6g5E=";var vn={CartBar:{since:"0.4.0",variants:["standard","web"],platforms:["native","web"],settings:{lines:{type:"lines",values:["thumbs","total","sub","actionHiddenWord"]},variant:{type:"enum",values:["standard","web"],prop:"variant"}},props:["actionAccessibilityLabel","actionHiddenWord","actionLabel","busy","count","countLabel","disabled","fallback","loading","loadingLabel","sub","testID","thumbs","total","variant","visible"],required:["actionLabel","count"],fallback:"hide"},CartLine:{since:"0.2.0",variants:["standard","square","web","plan","drawer"],platforms:["native","web"],settings:{align:{type:"enum",values:["top","center"],prop:"align"},lines:{type:"lines",values:["badge","meta","wasPrice","smalls","note","metas","plan"]},thumbSize:{type:"enum",values:["sm","md","lg"],prop:"thumbSize"},variant:{type:"enum",values:["standard","square","web","plan","drawer"],prop:"variant"}},props:["actions","align","badge","error","fallback","image","imageAlt","loading","loadingLabel","meta","metas","name","namePress","note","plan","price","quantity","removeLabel","smalls","testID","thumbSize","variant","wasPrice"],required:["name"],fallback:null},CheckinSheet:{since:"0.4.0",variants:[],platforms:["native","web"],settings:{lines:{type:"lines",values:["kicker","note","doneText"]}},props:["action","closeLabel","doneText","fallback","flowLabel","image","imageKind","kicker","loading","loadingLabel","note","open","steps","testID","title"],required:["steps"],fallback:"hide"},OrderRow:{since:"0.2.0",variants:["standard","quiet","web"],platforms:["native","web"],settings:{actionGrid:{type:"boolean",prop:"actionGrid"},lines:{type:"lines",values:["meta","total","status","shots","notes"]},variant:{type:"enum",values:["standard","quiet","web"],prop:"variant"}},props:["accessibilityLabel","actionGrid","actions","error","loading","loadingLabel","meta","metaLink","notes","number","shots","status","testID","title","total","variant"],required:["title"],fallback:null},PlanNeedCard:{since:"0.2.0",variants:["standard","plan"],platforms:["native","web"],settings:{lines:{type:"lines",values:["source","sources","title","score","quote","jump"]},variant:{type:"enum",values:["standard","plan"],prop:"variant"}},props:["jump","kicker","loading","loadingLabel","more","quote","score","signals","source","sources","testID","title","variant"],required:["kicker","signals"],fallback:null},PriceSummary:{since:"0.2.0",variants:[],platforms:["native","web"],settings:{lines:{type:"lines",values:["total","note"]},size:{type:"enum",values:["checkout","drawer"],prop:"size",platforms:["web"],default:"checkout"},variant:{type:"enum",values:["standard","web"],prop:"variant",platforms:["web"],default:"standard"}},props:["loading","loadingLabel","note","rows","testID","total"],required:["rows"],fallback:null},ProductTile:{since:"0.2.0",variants:["standard","blend","web"],platforms:["native","web"],settings:{addLift:{type:"boolean",prop:"addLift"},ground:{type:"enum",values:["shelf","white"],prop:"ground"},imageInset:{type:"enum",values:["standard","even"],prop:"imageInset"},layout:{type:"enum",values:["tile","row","card"],prop:"layout"},lines:{type:"lines",values:["kicker","meta","price","wasPrice","per","badge","tag"]},metaTone:{type:"enum",values:["auto","autoDark"],prop:"metaTone"},variant:{type:"enum",values:["standard","blend","web"],prop:"variant"}},props:["action","addLift","badge","fallback","ground","image","imageAlt","imageInset","kicker","layout","loading","loadingLabel","meta","metaTone","name","per","price","stepper","tag","testID","variant","wasPrice"],required:["name"],fallback:null},ScoreLights:{since:"0.4.0",variants:[],platforms:["native","web"],settings:{lines:{type:"lines",values:["heading","since","source","next"]}},props:["heading","loading","loadingLabel","next","pill","since","source","state","testID","values","vizLabel"],required:["pill","state","values","vizLabel"],fallback:"hide"},SummaryList:{since:"0.1.0",variants:["standard","flush","card","inset"],platforms:["native","web"],settings:{lines:{type:"lines",values:["trailingRows","note"]},variant:{type:"enum",values:["standard","flush","card","inset"],prop:"variant"}},props:["loading","loadingLabel","note","rows","testID","total","trailingRows","variant"],required:["rows"],fallback:null},TipCard:{since:"0.2.0",variants:["standard","photo","web","plan"],platforms:["native","web"],settings:{footArrow:{type:"boolean",prop:"footArrow"},lines:{type:"lines",values:["text","foot"]},tone:{type:"enum",values:["y","c","g","r"],prop:"tone"},variant:{type:"enum",values:["standard","photo","web","plan"],prop:"variant"}},props:["accessibilityLabel","foot","footArrow","footPress","icon","image","loading","loadingLabel","number","pressTarget","testID","text","title","tone","variant"],required:["number","title"],fallback:null},WeatherAlert:{since:"0.4.0",variants:[],platforms:["native","web"],settings:{},props:["accessibilityLabel","loading","loadingLabel","testID","text","title"],required:["title"],fallback:"TipCard",fallbackProps:{number:{const:"!"},text:{from:"text"},title:{from:"title"},tone:{const:"r"}}},WeatherCard:{since:"0.4.0",variants:["walk","summary","tile","web"],platforms:["native","web"],settings:{lines:{type:"lines",values:["heading","condition","details","verdict","advice","comfort","label","note","action","units","tags"]},sky:{type:"enum",values:["sun","blue"],prop:"sky"},variant:{type:"enum",values:["walk","summary","tile","web"],prop:"variant"}},props:["action","advice","comfort","condition","details","glyph","heading","label","level","loading","loadingLabel","note","sky","tags","tagsLabel","temperature","testID","units","variant","verdict"],required:["temperature"],fallback:"hide"},WeatherDetails:{since:"0.4.0",variants:[],platforms:["native","web"],settings:{},props:["items","label","loading","loadingLabel","testID"],required:["items"],fallback:"hide"},WeatherForecast:{since:"0.4.0",variants:["plain","walk"],platforms:["native","web"],settings:{variant:{type:"enum",values:["plain","walk"],prop:"variant"}},props:["days","label","loading","loadingLabel","testID","variant"],required:["days"],fallback:"hide"},WeatherHours:{since:"0.4.0",variants:["plain","walk"],platforms:["native","web"],settings:{lines:{type:"lines",values:["windows","legend"]},variant:{type:"enum",values:["plain","walk"],prop:"variant"}},props:["hours","label","legend","loading","loadingLabel","testID","variant","windows"],required:["hours"],fallback:"hide"},WeatherLevels:{since:"0.4.0",variants:["phone","web"],platforms:["native","web"],settings:{variant:{type:"enum",values:["phone","web"],prop:"variant"}},props:["label","loading","loadingLabel","rows","testID","variant"],required:["rows"],fallback:"hide"},WeatherReading:{since:"0.4.0",variants:["phone","web"],platforms:["native","web"],settings:{lines:{type:"lines",values:["word","choices"]},variant:{type:"enum",values:["phone","web"],prop:"variant"}},props:["choices","loading","loadingLabel","testID","tone","value","variant","word"],required:["value"],fallback:"hide"},WhySheet:{since:"0.4.0",variants:["standard","web","plan"],platforms:["native","web"],settings:{lines:{type:"lines",values:["kind","sub","sections","link","score"]},tone:{type:"enum",values:["calm","y","c","g","r"],prop:"tone"},variant:{type:"enum",values:["standard","web","plan"],prop:"variant"}},props:["action","closeLabel","fallback","heading","image","imageKind","kind","link","loading","loadingLabel","rows","score","sections","sub","testID","title","tone","variant"],required:[],fallback:"hide"}};var kn="everfur.slots.v2",Tn="everfur.slots.installId.v2";var jn=6e4,Sn=3e5,In=15e3,zn=10080*60*1e3,Dn=/^(W\/)?"[^"]{1,200}"$/,Cn=/^[A-Za-z0-9_-]{8,128}$/,Hn=/(?:^|,)\s*max-age\s*=\s*"?(\d{1,10})"?\s*(?:,|$)/i,Fn=/(?:^|,)\s*(?:no-store|no-cache)\s*(?:,|$)/i,_n=/* @__PURE__ */Object.freeze({doc:"default",tenant:"default",epoch:0});function On(){let e="";for(let t=0;t<4;t++)e+=Math.floor(Math.random()*4294967296).toString(36).padStart(7,"0");return e}function En(e){if(e===null)return jn;if(Fn.test(e))return 0;let t=Hn.exec(e);return t===null?jn:Math.min(Number(t[1])*1e3,Sn)}var Pn=(e,t)=>Object.prototype.hasOwnProperty.call(e,t);function Ln(e){let t=e.now??Date.now,i=()=>{try{return e.scope?.()??_n}catch{return _n}},r=/* @__PURE__ */new Map,n=/* @__PURE__ */new Map,l=/* @__PURE__ */new Map,o=null,a=null,s=false,c=Promise.resolve(),d=(t,i)=>{try{e.telemetry?.track(t,i)}catch{}},u=e=>{a!==e.epoch&&(a!==null&&(r.clear(),n.clear(),o=null,s=true),a=e.epoch)},p=e=>{let t=i();return t.epoch!==e.epoch||t.doc!==e.doc},h=async(t,i,r)=>{if(!p(t))return false;try{await e.kv.getItem(i)===r&&await e.kv.removeItem(i)}catch{}return true},g=t=>{let i=bn(t.tenant);if(o?.tenant===i)return o.id;let r=s;s=false;let n=(async()=>{if(!r)try{let t=await e.kv.getItem(Tn),r=t===null?null:JSON.parse(t);if(r?.tenant===i&&typeof r.id=="string"&&Cn.test(r.id))return r.id}catch{}try{let r=(e.newId??On)();if(!Cn.test(r))return null;let n=JSON.stringify({tenant:i,id:r});return await e.kv.setItem(Tn,n),await h(t,Tn,n)?null:r}catch{return null}})();return o={tenant:i,id:n},n},f=async t=>{try{let i=await e.kv.getItem(kn),r=i===null?null:JSON.parse(i);return r?.scope!==t||r.docs===null||typeof r.docs!="object"||Array.isArray(r.docs)?{docs:{}}:{docs:r.docs}}catch{return{docs:{}}}},m=async(e,i)=>{let r=await f(bn(e.doc)),n=Pn(r.docs,i)?r.docs[i]:void 0;if(n==null||typeof n.at!="number")return null;let l=t()-n.at;if(!(l<zn)||l<-Sn)return null;let o=mr(n.doc,i);if(!o.ok)return null;let a=typeof n.etag=="string"&&Dn.test(n.etag)?n.etag:null;return{doc:o.doc,etag:a}},b=(t,i,r)=>{let n=bn(t.doc);return c=c.then(async()=>{if(!p(t))try{let l=await f(n);if(p(t))return;let o={...l.docs},a=r(Pn(o,i)?o[i]:void 0);if(a===null?delete o[i]:o[i]=a,Object.keys(o).length===0)await e.kv.removeItem(kn);else{let i=JSON.stringify({scope:n,docs:o});await e.kv.setItem(kn,i),await h(t,kn,i)}}catch{}}),c},w=async(i,l)=>{let o=`${i.doc}|${l}`,a=r.get(o),s=a===void 0?await m(i,l):null,c=a!==void 0?{doc:a.doc,etag:a.etag}:s,u=await g(i),h={"x-everfur-blocks":e.blocks??xn};u!==null&&(h["x-everfur-install-id"]=u),c?.doc&&c.etag!==null&&(h["if-none-match"]=c.etag);let f=null,w=jn,y=await e.send("slots.read",{method:"GET",path:`/widget/v1/slots/${encodeURIComponent(l)}`,headers:h,rawText:65536,onResponseHeaders:e=>{let t=e("etag");f=t!==null&&Dn.test(t)?t:null,w=En(e("cache-control"))}}).catch(()=>null),x=()=>c?.doc?{doc:c.doc,source:a!==void 0?"cache":"last-known-good"}:{doc:null,source:"bundled"},v=e=>(n.set(o,t()),d("slots.read_failed",{slot:l,status:e}),x());if(p(i))return{doc:null,source:"bundled"};if(y===null)return v(null);if(y.ok){let e=br(y.value);if(!e.ok)return d("slots.refused",{slot:l,reason:e.reason}),x();let n=mr(e.raw,l);if(!n.ok)return d("slots.refused",{slot:l,reason:n.reason}),x();let a=t();return r.set(o,{doc:n.doc,etag:f,at:a,ttl:w}),await b(i,l,()=>({etag:f,doc:e.raw,at:a})),{doc:n.doc,source:"live"}}let k=y.error.httpStatus;if(k===304&&c?.doc){let e=t();return r.set(o,{doc:c.doc,etag:c.etag,at:e,ttl:w}),await b(i,l,t=>t===void 0?null:{...t,at:e}),{doc:c.doc,source:"live"}}return k===404?(r.set(o,{doc:null,etag:null,at:t(),ttl:w}),await b(i,l,()=>null),{doc:null,source:"bundled"}):v(k??null)},y=(e,i)=>{let n=r.get(`${e.doc}|${i}`);return n===void 0||t()-n.at>=n.ttl?null:n.doc===null?{doc:null,source:"bundled"}:{doc:n.doc,source:"cache"}},x=async(e,t)=>{let i=r.get(`${e.doc}|${t}`);if(i!==void 0)return i.doc===null?{doc:null,source:"bundled"}:{doc:i.doc,source:"cache"};let n=await m(e,t);return n===null?{doc:null,source:"bundled"}:{doc:n.doc,source:"last-known-good"}};return{peek(e){let t=i();return u(t),y(t,e)},stored(e){let t=i();return u(t),x(t,e).catch(()=>({doc:null,source:"bundled"}))},load(e){let r=i();u(r);let o=y(r,e);if(o!==null)return Promise.resolve(o);let a=`${r.doc}|${e}`,s=`${r.epoch}|${a}`,c=l.get(s);if(c!==void 0)return c;let d=n.get(a),p=(d!==void 0&&t()-d<In?x(r,e):w(r,e)).catch(()=>({doc:null,source:"bundled"})).finally(()=>l.delete(s));return l.set(s,p),p}}}function An(e){let t=yn(e)??"unknown",i=e.registry.services.authFor(null),r=i.mode==="personalized"?`u:${i.userRef??""}`:`a:${i.userRef??""}`;return{doc:`${t}|${r}`,tenant:t,epoch:e.scopeEpoch??0}}var Bn=/* @__PURE__ */Symbol.for("@everfur/sdk#SlotClients@v1");function Rn(e,t=Vn){let i=globalThis,r=i[Bn];r instanceof WeakMap||(r=/* @__PURE__ */new WeakMap,i[Bn]=r);let n=r,l=n.get(e);return l===void 0&&(l=t(e),n.set(e,l)),l}function Vn(e){let{services:t}=e.registry;return Ln({send:(e,i)=>createRequestFunnel({auth:t.authFor(null),...t.errorPolicy?{errorPolicy:t.errorPolicy}:{}}).send(e,i),kv:t.kv,telemetry:t.telemetry,scope:()=>An(e)})}function $n(e,t){return{doc:t.doc??Tr(e),source:t.source}}function Wn(t,i){let{runtime:r,scopeEpoch:n}=u(),l=i?Rn(r):null,[o,a]=e.useState(()=>{let e=l?.peek(t);return e?{slot:t,epoch:n,value:$n(t,e)}:null});return e.useEffect(()=>{if(l===null)return;let e=true,i=false,r=l.peek(t);if(r!==null){a({slot:t,epoch:n,value:$n(t,r)});return}return l.stored(t).then(r=>{e&&!i&&a({slot:t,epoch:n,value:$n(t,r)})}),l.load(t).then(r=>{i=true,e&&a({slot:t,epoch:n,value:$n(t,r)})}),()=>{e=false}},[l,t,n]),i?o!==null&&o.slot===t&&o.epoch===n?o.value:{doc:null,source:"pending"}:{doc:Tr(t),source:"bundled"}}var Mn=[{color:"#D5AD47",icon:{strokes:[{width:1.3,cap:true,closed:false,points:[18.2,12,19.8,12]},{width:1.3,cap:true,closed:false,points:[16.385,16.385,17.515,17.515]},{width:1.3,cap:true,closed:false,points:[12,18.2,12,19.8]},{width:1.3,cap:true,closed:false,points:[7.615,16.385,6.485,17.515]},{width:1.3,cap:true,closed:false,points:[5.8,12,4.2,12]},{width:1.3,cap:true,closed:false,points:[7.615,7.615,6.485,6.485]},{width:1.3,cap:true,closed:false,points:[12,5.8,12,4.2]},{width:1.3,cap:true,closed:false,points:[16.385,7.615,17.515,6.485]}],boxes:[],triangles:[],seams:[]}},{color:"#F2C763",icon:{strokes:[],boxes:[{x:9.75,y:9.75,w:4.5,h:4.5,radius:2.25,width:4.5}],triangles:[],seams:[]}},{color:"#D5AD47",icon:{strokes:[],boxes:[{x:7.5,y:7.5,w:9,h:9,radius:4.5,width:1}],triangles:[],seams:[]}}],Nn=[{color:"#F2C763",icon:{strokes:[{width:1.5,cap:true,closed:false,points:[12,.75,12,3.429]},{width:1.5,cap:true,closed:false,points:[12,20.571,12,23.25]},{width:1.5,cap:true,closed:false,points:[.75,12,3.429,12]},{width:1.5,cap:true,closed:false,points:[20.571,12,23.25,12]},{width:1.5,cap:true,closed:false,points:[4.072,4.072,5.947,5.947]},{width:1.5,cap:true,closed:false,points:[18.054,18.054,19.929,19.929]},{width:1.5,cap:true,closed:false,points:[19.929,4.072,18.054,5.947]},{width:1.5,cap:true,closed:false,points:[5.947,18.054,4.072,19.929]}],boxes:[],triangles:[[7.064,14.085,7.558,14.995,6.752,13.08],[9.915,7.064,9.005,7.558,10.92,6.752],[14.085,16.936,14.995,16.442,13.08,17.248],[16.936,9.915,16.442,9.005,17.248,10.92],[6.643,12,6.752,13.08,7.558,14.995],[6.643,12,7.558,9.005,6.752,10.92],[12,6.643,14.995,7.558,13.08,6.752],[12,6.643,10.92,6.752,9.005,7.558],[12,17.357,13.08,17.248,14.995,16.442],[12,17.357,9.005,16.442,10.92,17.248],[17.357,12,16.442,14.995,17.248,13.08],[17.357,12,17.248,10.92,16.442,9.005],[7.558,14.995,8.212,15.788,6.643,12],[7.064,9.915,6.752,10.92,7.558,9.005],[14.085,7.064,13.08,6.752,14.995,7.558],[9.005,7.558,8.212,8.212,12,6.643],[14.995,16.442,15.788,15.788,12,17.357],[9.915,16.936,10.92,17.248,9.005,16.442],[16.936,14.085,17.248,13.08,16.442,14.995],[16.442,9.005,15.788,8.212,17.357,12],[8.212,15.788,8.212,8.212,6.643,12],[7.558,9.005,6.643,12,8.212,8.212],[14.995,7.558,12,6.643,15.788,8.212],[15.788,8.212,12,6.643,8.212,8.212],[12,17.357,17.357,12,8.212,15.788],[15.788,15.788,17.357,12,12,17.357],[9.005,16.442,12,17.357,8.212,15.788],[8.212,8.212,8.212,15.788,17.357,12],[16.442,14.995,17.357,12,15.788,15.788],[15.788,8.212,8.212,8.212,17.357,12]],seams:[[6.752,13.08,7.558,14.995,5.121,5.035],[9.005,7.558,10.92,6.752,5.035,5.121],[13.08,17.248,14.995,16.442,5.121,5.035],[16.442,9.005,17.248,10.92,5.035,5.121],[6.643,12,7.558,14.995,5.179,4.892],[6.643,12,7.558,9.005,5.179,4.892],[6.752,10.92,7.558,9.005,5.121,5.035],[12,6.643,14.995,7.558,5.179,4.892],[13.08,6.752,14.995,7.558,5.121,5.035],[9.005,7.558,12,6.643,4.892,5.179],[12,17.357,14.995,16.442,5.179,4.892],[9.005,16.442,12,17.357,4.892,5.179],[9.005,16.442,10.92,17.248,5.035,5.121],[16.442,14.995,17.357,12,4.892,5.179],[16.442,14.995,17.248,13.08,5.035,5.121],[16.442,9.005,17.357,12,4.892,5.179],[6.643,12,8.212,15.788,5.179,1.633],[8.212,8.212,12,6.643,1.633,5.179],[12,17.357,15.788,15.788,5.179,1.633],[15.788,8.212,17.357,12,1.633,5.179],[8.212,8.212,8.212,15.788,1.207,1.207],[6.643,12,8.212,8.212,5.179,1.633],[12,6.643,15.788,8.212,5.179,1.633],[8.212,8.212,15.788,8.212,1.207,1.207],[12,17.357,17.357,12,1.207,1.207],[8.212,15.788,17.357,12,.5,1.207],[8.212,15.788,12,17.357,1.633,5.179],[15.788,15.788,17.357,12,1.633,5.179],[8.212,8.212,17.357,12,1.207,.5]]}}],Gn={strokes:[],boxes:[],triangles:[[8.241,19.053,8.849,19.39,9.53,19.25],[8,18.4,8.241,19.053,9.53,19.25],[9.53,4.75,8.849,4.61,8.241,4.947],[9.53,4.75,8.241,4.947,8,5.6],[19.73,12.85,20.146,12.332,20.146,11.668],[19.73,12.85,20.146,11.668,19.73,11.15],[8,18.4,9.53,19.25,19.73,12.85],[8,5.6,8,18.4,19.73,12.85],[19.73,11.15,9.53,4.75,8,5.6],[8,5.6,19.73,12.85,19.73,11.15]],seams:[[8.241,19.053,9.53,19.25,1.348,1.348],[8,18.4,9.53,19.25,.581,1.348],[8.241,4.947,9.53,4.75,1.348,1.348],[8,5.6,9.53,4.75,.581,1.348],[19.73,12.85,20.146,11.668,1.42,1.42],[19.73,11.15,19.73,12.85,.622,1.42],[19.73,12.85,8,18.4,4.202,.358],[19.73,12.85,8,5.6,.324,4.459],[19.73,11.15,8,5.6,4.202,4.459]]};var qn=/* @__PURE__ */Object.freeze({color:/* @__PURE__ */Object.freeze({efDarkGreen:"#10462E",efWhite:"#FFFFFF",efBlack:"#000000",efDustyPink:"#FFC3BC",efBrightGreen:"#07C168",efYellow:"#F2C763",efDustyBlue:"#A8B9DA",efSkyBlue:"#4E98C9",efCharcoal:"#3D3D3D",efIconHoney:"#926F06",efIconLeaf:"#16864A",efIconSky:"#1E7AB7",efIconTeal:"#05827E",efIconCocoa:"#865B3F",efIconNavy:"#223E80",efIconBerry:"#B6407F",efIconAmber:"#B25E05",efIconMoss:"#5E7E1E",efIconSlate:"#5A6087",efIconRose:"#CA4463",efRedDeep:"#6D1D14",efRedBright:"#C03410",bg:"#FFFFFF",bgBrand:"#10462E",bgAccent:"#FFC3BC",bgAccentB2b:"#A8B9DA",bgWarm:"#F2C763",text:"#000000",textBrand:"#10462E",textOnBrand:"#FFFFFF",textCta:"#07C168",textMuted:"#6B6B6B",bgMist:"#F1F5F2",border:"#E4E4E4",borderStrong:"#3D3D3D",hi:"#DAF6E8",hiStrong:"#ABEACC",hiEdge:"#0B8A4E",now:"#0C844B",alert:"#C03410",alertDeep:"#6D1D14",btnPrimaryBg:"#10462E",btnPrimaryText:"#FFFFFF",btnSecondaryBg:"rgba(0, 0, 0, 0)",btnSecondaryText:"#10462E",btnSecondaryBorder:"#10462E",mixMint:"#7FE8AE",mixLegal:"#A9C4B5",mixPromptGreen:"#BFEFD8",mixPromptYellow:"#F7DC9E",mixRx:"#E0E6F2",mixShelf:"#F3F3F3",mixEar:"#F09FA3",efBone:"#FAF9F6",efTennisBall:"#DCEF5A",efFawn:"#E8CAA4",efPine:"#12301F",efPine70:"rgba(18, 48, 31, 0.72)",efLiver:"#7A4330",efMerle:"#AEB8C1",efNose:"#E9B6A6"}),font:/* @__PURE__ */Object.freeze({family:/* @__PURE__ */Object.freeze({base:'Azeret, "Helvetica Neue", Arial, sans-serif',mono:'"Azeret Mono", ui-monospace, "SF Mono", Menlo, monospace'}),size:/* @__PURE__ */Object.freeze({xs:13,sm:15,md:17,lg:20,xl:24,"2xl":32,"3xl":40,"4xl":56}),lineHeight:/* @__PURE__ */Object.freeze({body:1.55,display:1.15}),weight:/* @__PURE__ */Object.freeze({regular:400,medium:500,bold:700})}),space:/* @__PURE__ */Object.freeze({1:4,2:8,3:12,4:16,5:24,6:32,7:48,8:64,9:96}),radius:/* @__PURE__ */Object.freeze({sm:6,md:10,lg:20,xl:28,pill:999}),shadow:/* @__PURE__ */Object.freeze({sm:/* @__PURE__ */Object.freeze({x:0,y:1,blur:2,spread:0,color:"rgba(16, 70, 46, 0.06)"}),md:/* @__PURE__ */Object.freeze({x:0,y:4,blur:16,spread:0,color:"rgba(16, 70, 46, 0.08)"})}),layout:/* @__PURE__ */Object.freeze({container:1200,containerNarrow:720}),motion:/* @__PURE__ */Object.freeze({easing:/* @__PURE__ */Object.freeze({out:/* @__PURE__ */Object.freeze([.23,1,.32,1]),inOut:/* @__PURE__ */Object.freeze([.77,0,.175,1]),drawer:/* @__PURE__ */Object.freeze([.32,.72,0,1]),expo:/* @__PURE__ */Object.freeze([.16,1,.3,1]),bark:/* @__PURE__ */Object.freeze([.34,1.56,.64,1])}),duration:/* @__PURE__ */Object.freeze({press:160,fade:200,enter:300,sheet:420,sheetOut:240,draw:900})}),web:/* @__PURE__ */Object.freeze({serif:'Azeret, "Helvetica Neue", Arial, sans-serif',sans:'Azeret, "Helvetica Neue", Arial, sans-serif',tSmall:14,max:1312}),role:/* @__PURE__ */Object.freeze({color:/* @__PURE__ */Object.freeze({ink:"#10462E",go:"#07C168",muted:"#6B6B6B",line:"#E4E4E4",pink50:"#FFE1DE",tintSage:"#E6ECE8",tintPink:"#FFEAE8",tintPinkSoft:"#FFF6F5",tintBlue:"#EAEEF6",tintYellow:"#FCF0D6",tintYellowEdge:"#F6D892",tintRed:"#FBF1EE",tintGo:"#DCF6EA",icoGrey:"#6B6B6B",icoSage:"#819E90",icoBlue:"#4E98C9",icoWarm:"#D6D0C2",icoAmber:"#B67B3F",amberText:"#A05E32",wxSun:"#F2C763",wxSunEdge:"#D5AD47",wxCloud:"#FFFFFF",wxCloudEdge:"#DEDEDE",wxCloudDark:"#EAEAEA",wxCloudDarkEdge:"#C5C5C5",wxRain:"#75AFD5",wxSnow:"#AFD1E7",wxMist:"#D4D4D4",cwShelf:"#FFFFFF",cwShelfDeep:"#F1F4F2",cwRx:"#E0E6F2",cwRxInk:"#5A6087",cwEdgeC:"#C6D3CD",nItch:"#CA4463",nJoints:"#5E7E1E",nItchC:"#FFC3BC",nJointsC:"#D8E0C9",lvlGood:"#77DDAC",lvlOk:"#F4CF7A",lvlHot:"#DC8F7C",lvlStorm:"#8DA4BB",mapLand:"#F5F5F5",mapEdge:"#EAEAEA",mapPark:"#D7F5E7",mapWater:"#D8E0EE",mapSand:"#FCF3DD"}),size:/* @__PURE__ */Object.freeze({max:1440,gutter:16,sideW:220,cardPad:16,barH:48,tabH:58,dock:64,side:16,stackGap:12})})});var Un={shown:true,padding:[0,0,0,0],marginTop:0,marginBottom:0,gap:[0,0],minHeight:0,radius:[0,0],bg:"none",edge:{width:0,color:"line",ring:false},shadow:{color:"",x:0,y:0,blur:0,spread:0},center:false,color:"text",fit:"cover",x:0,y:0,dy:0},Yn={shown:true,color:"text",tracking:0,face:"sans",upper:false,wrap:"pretty",tabular:false,deco:"none",decoOffset:0,decoThickness:0,marginTop:0,paddingTop:0},Xn=e=>({...Un,...e}),Kn=e=>({...Yn,...e}),Qn={button:{ink:{fill:false,minHeight:52,paddingX:24,gap:8,borderWidth:1.5,ring:false,fontSize:17,fontWeight:700,lineHeight:1,iconSize:24},go:{fill:false,minHeight:52,paddingX:24,gap:8,borderWidth:1.5,ring:false,fontSize:17,fontWeight:700,lineHeight:1,iconSize:24},outline:{fill:false,minHeight:52,paddingX:24,gap:8,borderWidth:1.5,ring:false,fontSize:17,fontWeight:400,lineHeight:1,iconSize:24},pink:{fill:true,minHeight:60,paddingX:16,gap:8,borderWidth:1,ring:false,fontSize:18,fontWeight:700,lineHeight:1,iconSize:24},danger:{fill:false,minHeight:46,paddingX:16,gap:8,borderWidth:1.5,ring:false,fontSize:15,fontWeight:700,lineHeight:1.55,iconSize:20},inkSm:{fill:false,minHeight:46,paddingX:16,gap:8,borderWidth:1.5,ring:false,fontSize:15,fontWeight:700,lineHeight:1,iconSize:20},goSm:{fill:false,minHeight:46,paddingX:16,gap:8,borderWidth:1.5,ring:false,fontSize:15,fontWeight:700,lineHeight:1,iconSize:20},outlineSm:{fill:false,minHeight:46,paddingX:16,gap:8,borderWidth:1.5,ring:false,fontSize:15,fontWeight:400,lineHeight:1,iconSize:20},pinkSm:{fill:true,minHeight:46,paddingX:16,gap:8,borderWidth:1,ring:false,fontSize:15,fontWeight:700,lineHeight:1,iconSize:20},row:{fill:false,minHeight:36,paddingX:14,gap:8,borderWidth:1.5,ring:false,fontSize:14,fontWeight:400,lineHeight:1,iconSize:17},outlineInSheetWeight:700,money:{fill:false,minHeight:52,paddingX:24,gap:8,borderWidth:1,ring:false,fontSize:17,fontWeight:700,lineHeight:1,iconSize:24,bg:"pink",fg:"ink",edgeColor:"ink"},moneySm:{fill:false,minHeight:46,paddingX:16,gap:8,borderWidth:1,ring:false,fontSize:15,fontWeight:700,lineHeight:1,iconSize:20,bg:"pink",fg:"ink",edgeColor:"ink"},warn:{fill:false,minHeight:52,paddingX:24,gap:8,borderWidth:1.5,ring:false,fontSize:17,fontWeight:700,lineHeight:1,iconSize:24,bg:"none",fg:"alertDeep",edgeColor:"alert"},warnSm:{fill:false,minHeight:46,paddingX:16,gap:8,borderWidth:1.5,ring:false,fontSize:15,fontWeight:700,lineHeight:1,iconSize:20,bg:"none",fg:"alertDeep",edgeColor:"alert"},text:{fontSize:15,fontWeight:700,lineHeight:1.4,color:"ink",pressOpacity:.6}},pill:{minHeight:24,paddingX:10,fontSize:12,fontWeight:700,lineHeight:1,letterSpacing:.72,ring:{soon:1.25,overdue:1.25,clear:1.5,later:1.25,plain:1.5,new:1.5},plainRingAlpha:.2,dot:6,dotGap:6,allergyDot:{size:6,gap:6,color:"alert"},mono:true,upper:true,tones:{rx:{bg:"#E0E6F2",fg:"ink",ring:0,ringColor:"ink"},soon:{bg:"surface",fg:"ink",ring:1.25,ringColor:"tintYellowEdge"},overdue:{bg:"surface",fg:"alert",ring:1.25,ringColor:"alert"},clear:{bg:"surface",fg:"go",ring:1.5,ringColor:"go"},stable:{bg:"tintGo",fg:"ink",ring:0,ringColor:"ink"},later:{bg:"surface",fg:"muted",ring:1.25,ringColor:"line"},plain:{bg:"surface",fg:"ink",ring:1.5,ringColor:"ink/0.2"},new:{bg:"surface",fg:"ink",ring:1.5,ringColor:"go"},pink:{bg:"tintPink",fg:"ink",ring:0,ringColor:"ink"},watch:{bg:"#F9E6B9",fg:"ink",ring:0,ringColor:"ink"},high:{bg:"surface",fg:"alert",ring:1.25,ringColor:"alert"},allergy:{bg:"surface",fg:"alertDeep",ring:1.25,ringColor:"alert"}}},chip:{minHeight:42,paddingX:16,gap:8,borderWidth:1,fontSize:15,fontWeight:500,lineHeight:1.3},card:{padding:16,radius:20,borderWidth:1,titleSize:18,titleWeight:700,titleLineHeight:1.25,titleTracking:-.36,titleGap:12,leadSize:15,leadLineHeight:1.5,leadGap:12,headGapX:16,headGapY:8,headGap:12,bodySize:17,bodyLineHeight:1.55,ghost:{borderStyle:"dashed",borderColor:"#B9C9C2"}},sectionHeader:{gapX:12,gapY:8,marginTop:8},kicker:{fontSize:12,fontWeight:700,lineHeight:1.55,letterSpacing:.96,gap:8},quantityStepper:{borderWidth:1,borderColor:"line",ring:false,button:40,icon:18,valueMinWidth:28,offColor:"line",offOpacity:1,valueSize:17,valueWeight:700,valueLineHeight:1.55},tabs:{minHeight:44,gap:6,fontSize:15,fontWeight:500,currentWeight:700,lineHeight:1.55,indicator:3,hairline:1,dot:7},sheet:{radius:28,grabHeight:20,grabBarWidth:36,grabBarHeight:5,grabBarRadius:3,headPaddingTop:4,headPaddingX:16,headPaddingBottom:12,headGap:12,titlesGap:2,titleSize:18,close:36,closeIcon:20,bodyGap:12,bodyPaddingX:16,bodyPaddingBottom:24,actsGap:12,actsMarginTop:4},empty:{gap:8,titleSize:22,titleWeight:500,titleLineHeight:1.2,titleTracking:-.33,leadSize:15,leadLineHeight:1.5,actsGap:12,actsMarginTop:12,buttonMinWidth:200,linkMinHeight:44,linkPaddingX:4,linkSize:15,linkWeight:700,linkUnderlineOffset:3},skeleton:{gap:10,lineHeight:12,widths:[100,82,64]},summary:{paddingX:24,paddingY:0,radius:20,borderWidth:1,background:"surface",shadow:{color:"",x:0,y:0,blur:0,spread:0},rowDivider:1,rowMinHeight:0,rowCenter:false,rowPaddingY:14,termColor:"muted",valueColor:"ink",tabular:false,totalRowMinHeight:0,totalTermSize:15,totalTermWeight:400,totalTermColor:"muted",totalWeight:700,rowGapX:16,rowGapY:2,termSize:15,termLineHeight:1.55,valueSize:15,valueWeight:700,valueLineHeight:1.4,totalSize:20,totalLineHeight:1.4,off:{shown:true,size:15,weight:700,lineHeight:21,color:"go",tracking:0,face:"sans",upper:false,wrap:"pretty",tabular:false,deco:"none",decoOffset:0,decoThickness:0,marginTop:0,paddingTop:0}},icon:{size:24},timeline:{row:{shown:true,w:361,h:69.281,padding:[0,0,24,0],marginTop:0,marginBottom:0,gap:[16,16],minHeight:0,radius:[0,0],bg:"none",edge:{width:0,color:"line",ring:false},shadow:{color:"",x:0,y:0,blur:0,spread:0},center:false,color:"text",fit:"cover",x:0,y:0,dy:0},done:{shown:true,w:28,h:28,padding:[0,0,0,0],marginTop:0,marginBottom:0,gap:[0,0],minHeight:0,radius:[14,14],bg:"ink",edge:{width:2,color:"ink",ring:false},shadow:{color:"",x:0,y:0,blur:0,spread:0},center:true,color:"surface",fit:"cover",x:0,y:0,dy:0},now:{shown:true,w:28,h:28,padding:[0,0,0,0],marginTop:0,marginBottom:0,gap:[0,0],minHeight:0,radius:[14,14],bg:"surface",edge:{width:2,color:"ink",ring:false},shadow:{color:"",x:0,y:0,blur:0,spread:0},center:true,color:"text",fit:"cover",x:0,y:0,dy:0},next:{shown:true,w:28,h:28,padding:[0,0,0,0],marginTop:0,marginBottom:0,gap:[0,0],minHeight:0,radius:[14,14],bg:"surface",edge:{width:2,color:"line",ring:false},shadow:{color:"",x:0,y:0,blur:0,spread:0},center:true,color:"text",fit:"cover",x:0,y:0,dy:0},nowInner:{size:10,color:"go"},check:{shown:true,w:16,h:16,padding:[0,0,0,0],marginTop:0,marginBottom:0,gap:[0,0],minHeight:0,radius:[0,0],bg:"none",edge:{width:0,color:"line",ring:false},shadow:{color:"",x:0,y:0,blur:0,spread:0},center:false,color:"surface",fit:"cover",x:0,y:0,dy:0},lineDoneDone:{x:13,top:30,bottom:2,width:2,color:"ink"},lineDoneNow:{x:13,top:30,bottom:2,width:2,color:"ink"},lineNowNext:{x:13,top:30,bottom:2,width:2,color:"line"},title:{shown:true,size:17,weight:700,lineHeight:22.1,color:"ink",tracking:0,face:"sans",upper:false,wrap:"pretty",tabular:false,deco:"none",decoOffset:0,decoThickness:0,marginTop:0,paddingTop:3},head:{shown:true,w:317,h:27,padding:[3,0,0,0],marginTop:0,marginBottom:0,gap:[8,4],minHeight:0,radius:[0,0],bg:"none",edge:{width:0,color:"line",ring:false},shadow:{color:"",x:0,y:0,blur:0,spread:0},center:true,color:"ink",fit:"cover",x:0,y:0,dy:0},nextTitle:{shown:true,size:17,weight:700,lineHeight:22.1,color:"muted",tracking:0,face:"sans",upper:false,wrap:"pretty",tabular:false,deco:"none",decoOffset:0,decoThickness:0,marginTop:0,paddingTop:3},when:{shown:true,size:13,weight:400,lineHeight:18.2,color:"muted",tracking:0,face:"sans",upper:false,wrap:"pretty",tabular:false,deco:"none",decoOffset:0,decoThickness:0,marginTop:2,paddingTop:0},text:{shown:true,size:15,weight:400,lineHeight:22.5,color:"text",tracking:0,face:"sans",upper:false,wrap:"pretty",tabular:false,deco:"none",decoOffset:0,decoThickness:0,marginTop:2,paddingTop:0}},thumbnail:{xs:{frame:{shown:true,w:48,h:48,padding:[0,0,0,0],marginTop:0,marginBottom:0,gap:[0,0],minHeight:0,radius:[6,6],bg:"surface",edge:{width:1,color:"line",ring:true},shadow:{color:"",x:0,y:0,blur:0,spread:0},center:false,color:"text",fit:"contain",x:0,y:0,dy:0},img:{shown:false,w:48,h:48,padding:[0,0,0,0],marginTop:0,marginBottom:0,gap:[0,0],minHeight:0,radius:[6,6],bg:"surface",edge:{width:1,color:"line",ring:true},shadow:{color:"",x:0,y:0,blur:0,spread:0},center:false,color:"text",fit:"contain",x:0,y:0,dy:0},empty:{shown:true,w:48,h:48,padding:[0,0,0,0],marginTop:0,marginBottom:0,gap:[0,0],minHeight:0,radius:[10,10],bg:"none",edge:{width:0,color:"line",ring:false},shadow:{color:"",x:0,y:0,blur:0,spread:0},center:true,color:"#1E7AB7",fit:"cover",x:0,y:0,dy:0},icon:{shown:true,w:22,h:22,padding:[0,0,0,0],marginTop:0,marginBottom:0,gap:[0,0],minHeight:0,radius:[0,0],bg:"none",edge:{width:0,color:"line",ring:false},shadow:{color:"",x:0,y:0,blur:0,spread:0},center:false,color:"#1E7AB7",fit:"cover",x:0,y:0,dy:0},top:false},sm:{frame:{shown:true,w:64,h:64,padding:[8,8,8,8],marginTop:0,marginBottom:0,gap:[0,0],minHeight:0,radius:[14,14],bg:"#F3F3F3",edge:{width:0,color:"line",ring:false},shadow:{color:"",x:0,y:0,blur:0,spread:0},center:false,color:"text",fit:"cover",x:0,y:0,dy:0},img:{shown:true,w:48,h:48,padding:[0,0,0,0],marginTop:0,marginBottom:0,gap:[0,0],minHeight:0,radius:[0,0],bg:"none",edge:{width:0,color:"line",ring:false},shadow:{color:"",x:0,y:0,blur:0,spread:0},center:false,color:"text",fit:"contain",x:0,y:0,dy:0},empty:{shown:true,w:64,h:64,padding:[8,8,8,8],marginTop:0,marginBottom:0,gap:[0,0],minHeight:0,radius:[14,14],bg:"#F3F3F3",edge:{width:0,color:"line",ring:false},shadow:{color:"",x:0,y:0,blur:0,spread:0},center:false,color:"text",fit:"cover",x:0,y:0,dy:0},icon:{shown:true,w:22,h:22,padding:[0,0,0,0],marginTop:0,marginBottom:0,gap:[0,0],minHeight:0,radius:[0,0],bg:"none",edge:{width:0,color:"line",ring:false},shadow:{color:"",x:0,y:0,blur:0,spread:0},center:false,color:"#1E7AB7",fit:"cover",x:0,y:0,dy:0},top:false},md:{frame:{shown:true,w:156,h:156,padding:[0,0,0,0],marginTop:0,marginBottom:6,gap:[0,0],minHeight:0,radius:[20,20],bg:"#F5F5F5",edge:{width:0,color:"line",ring:false},shadow:{color:"",x:0,y:0,blur:0,spread:0},center:false,color:"text",fit:"cover",x:0,y:0,dy:0},img:{shown:true,w:156,h:156,padding:[10,10,10,10],marginTop:0,marginBottom:0,gap:[0,0],minHeight:0,radius:[0,0],bg:"none",edge:{width:0,color:"line",ring:false},shadow:{color:"",x:0,y:0,blur:0,spread:0},center:false,color:"text",fit:"contain",x:0,y:0,dy:0},empty:{shown:true,w:156,h:156,padding:[0,0,0,0],marginTop:0,marginBottom:6,gap:[0,0],minHeight:0,radius:[20,20],bg:"#F5F5F5",edge:{width:0,color:"line",ring:false},shadow:{color:"",x:0,y:0,blur:0,spread:0},center:false,color:"text",fit:"cover",x:0,y:0,dy:0},icon:{shown:true,w:22,h:22,padding:[0,0,0,0],marginTop:0,marginBottom:0,gap:[0,0],minHeight:0,radius:[0,0],bg:"none",edge:{width:0,color:"line",ring:false},shadow:{color:"",x:0,y:0,blur:0,spread:0},center:false,color:"#1E7AB7",fit:"cover",x:0,y:0,dy:0},top:false},lg:{frame:{shown:true,w:174.5,h:174.5,padding:[0,0,0,0],marginTop:0,marginBottom:8,gap:[0,0],minHeight:0,radius:[20,20],bg:"#F3F3F3",edge:{width:0,color:"line",ring:false},shadow:{color:"",x:0,y:0,blur:0,spread:0},center:false,color:"text",fit:"cover",x:0,y:0,dy:0},img:{shown:true,w:174.5,h:174.5,padding:[14,14,18,14],marginTop:0,marginBottom:0,gap:[0,0],minHeight:0,radius:[0,0],bg:"none",edge:{width:0,color:"line",ring:false},shadow:{color:"",x:0,y:0,blur:0,spread:0},center:false,color:"text",fit:"contain",x:0,y:0,dy:0},empty:{shown:true,w:174.5,h:174.5,padding:[0,0,0,0],marginTop:0,marginBottom:8,gap:[0,0],minHeight:0,radius:[20,20],bg:"#F3F3F3",edge:{width:0,color:"line",ring:false},shadow:{color:"",x:0,y:0,blur:0,spread:0},center:false,color:"text",fit:"cover",x:0,y:0,dy:0},icon:{shown:true,w:22,h:22,padding:[0,0,0,0],marginTop:0,marginBottom:0,gap:[0,0],minHeight:0,radius:[0,0],bg:"none",edge:{width:0,color:"line",ring:false},shadow:{color:"",x:0,y:0,blur:0,spread:0},center:false,color:"#1E7AB7",fit:"cover",x:0,y:0,dy:0},top:false}},text:{display:{shown:true,size:40,weight:500,lineHeight:39.2,color:"ink",tracking:-1.2,face:"sans",upper:false,wrap:"pretty",tabular:false,deco:"none",decoOffset:0,decoThickness:0,marginTop:0,paddingTop:0},headline:{shown:true,size:30,weight:500,lineHeight:33,color:"ink",tracking:-.45,face:"sans",upper:false,wrap:"pretty",tabular:false,deco:"none",decoOffset:0,decoThickness:0,marginTop:0,paddingTop:0},title:{shown:true,size:22,weight:500,lineHeight:26.4,color:"ink",tracking:-.33,face:"sans",upper:false,wrap:"pretty",tabular:false,deco:"none",decoOffset:0,decoThickness:0,marginTop:0,paddingTop:0},heading:{shown:true,size:18,weight:700,lineHeight:22.5,color:"ink",tracking:-.36,face:"sans",upper:false,wrap:"pretty",tabular:false,deco:"none",decoOffset:0,decoThickness:0,marginTop:0,paddingTop:0},body:{shown:true,size:17,weight:400,lineHeight:26.35,color:"text",tracking:0,face:"sans",upper:false,wrap:"pretty",tabular:false,deco:"none",decoOffset:0,decoThickness:0,marginTop:0,paddingTop:0},lead:{shown:true,size:15,weight:400,lineHeight:21.75,color:"text",tracking:0,face:"sans",upper:false,wrap:"pretty",tabular:false,deco:"none",decoOffset:0,decoThickness:0,marginTop:0,paddingTop:0},label:{shown:true,size:15,weight:700,lineHeight:21,color:"ink",tracking:0,face:"sans",upper:false,wrap:"pretty",tabular:false,deco:"none",decoOffset:0,decoThickness:0,marginTop:0,paddingTop:0},meta:{shown:true,size:13,weight:400,lineHeight:18.85,color:"muted",tracking:0,face:"mono",upper:false,wrap:"pretty",tabular:false,deco:"none",decoOffset:0,decoThickness:0,marginTop:0,paddingTop:0},caption:{shown:true,size:13,weight:400,lineHeight:19.5,color:"muted",tracking:0,face:"sans",upper:false,wrap:"pretty",tabular:false,deco:"none",decoOffset:0,decoThickness:0,marginTop:0,paddingTop:0},overline:{shown:true,size:12,weight:700,lineHeight:16.8,color:"muted",tracking:.72,face:"mono",upper:true,wrap:"pretty",tabular:false,deco:"none",decoOffset:0,decoThickness:0,marginTop:0,paddingTop:0},kicker:{shown:true,size:12,weight:700,lineHeight:18.6,color:"muted",tracking:.96,face:"mono",upper:true,wrap:"pretty",tabular:false,deco:"none",decoOffset:0,decoThickness:0,marginTop:0,paddingTop:0}},field:{gap:6,label:{shown:true,size:15,weight:700,lineHeight:21,color:"ink",tracking:0,face:"sans",upper:false,wrap:"pretty",tabular:false,deco:"none",decoOffset:0,decoThickness:0,marginTop:0,paddingTop:0},input:{shown:true,w:361,h:52,padding:[0,16,0,16],marginTop:0,marginBottom:0,gap:[10,10],minHeight:52,radius:[10,10],bg:"surface",edge:{width:1.5,color:"line",ring:false},shadow:{color:"",x:0,y:0,blur:0,spread:0},center:true,color:"text",fit:"cover",x:0,y:0,dy:0},focusEdge:"ink",errorEdge:"alert",value:{shown:true,size:17,weight:400,lineHeight:26.35,color:"text",tracking:0,face:"sans",upper:false,wrap:"pretty",tabular:false,deco:"none",decoOffset:0,decoThickness:0,marginTop:0,paddingTop:1},valueInset:[2,1],icon:{shown:true,w:20,h:20,padding:[0,0,0,0],marginTop:0,marginBottom:0,gap:[0,0],minHeight:0,radius:[0,0],bg:"none",edge:{width:0,color:"line",ring:false},shadow:{color:"",x:0,y:0,blur:0,spread:0},center:false,color:"muted",fit:"cover",x:0,y:0,dy:0},area:{shown:true,w:361,h:158,padding:[12,16,12,16],marginTop:0,marginBottom:0,gap:[10,10],minHeight:52,radius:[10,10],bg:"surface",edge:{width:1.5,color:"line",ring:false},shadow:{color:"",x:0,y:0,blur:0,spread:0},center:false,color:"text",fit:"cover",x:0,y:0,dy:0},areaValue:{shown:true,size:17,weight:400,lineHeight:25.5,color:"text",tracking:0,face:"sans",upper:false,wrap:"pretty",tabular:false,deco:"none",decoOffset:0,decoThickness:0,marginTop:0,paddingTop:2},areaValueMinHeight:132,areaInset:[2,2],hint:{shown:true,size:13,weight:400,lineHeight:19.5,color:"muted",tracking:0,face:"sans",upper:false,wrap:"pretty",tabular:false,deco:"none",decoOffset:0,decoThickness:0,marginTop:0,paddingTop:0},error:{shown:true,size:15,weight:400,lineHeight:21.75,color:"alertDeep",tracking:0,face:"sans",upper:false,wrap:"pretty",tabular:false,deco:"none",decoOffset:0,decoThickness:0,marginTop:0,paddingTop:0},placeholder:"muted"},checkbox:{row:{shown:true,w:361,h:45,padding:[0,0,0,0],marginTop:0,marginBottom:0,gap:[12,12],minHeight:0,radius:[0,0],bg:"none",edge:{width:0,color:"line",ring:false},shadow:{color:"",x:0,y:0,blur:0,spread:0},center:false,color:"text",fit:"cover",x:0,y:0,dy:0},labelX:34,box:{shown:true,w:20,h:20,padding:[0,0,0,0],marginTop:1,marginBottom:0,gap:[0,0],minHeight:0,radius:[6,6],bg:"surface",edge:{width:1.5,color:"icoSage",ring:false},shadow:{color:"",x:0,y:0,blur:0,spread:0},center:false,color:"text",fit:"cover",x:0,y:0,dy:0},on:{shown:true,w:20,h:20,padding:[0,0,0,0],marginTop:1,marginBottom:0,gap:[0,0],minHeight:0,radius:[6,6],bg:"ink",edge:{width:1.5,color:"ink",ring:false},shadow:{color:"",x:0,y:0,blur:0,spread:0},center:false,color:"text",fit:"cover",x:0,y:0,dy:0},tick:{w:5,h:10,stroke:2,color:"surface",rotate:45,dy:-1},label:{shown:true,size:15,weight:400,lineHeight:22.5,color:"text",tracking:0,face:"sans",upper:false,wrap:"pretty",tabular:false,deco:"none",decoOffset:0,decoThickness:0,marginTop:0,paddingTop:0},boxed:{shown:true,w:361,h:50.5,padding:[14,16,14,16],marginTop:0,marginBottom:0,gap:[12,12],minHeight:0,radius:[10,10],bg:"bgMist",edge:{width:0,color:"line",ring:false},shadow:{color:"",x:0,y:0,blur:0,spread:0},center:false,color:"text",fit:"cover",x:0,y:0,dy:0}},choice:{row:{shown:true,w:361,h:56.344,padding:[14,16,14,16],marginTop:0,marginBottom:0,gap:[12,12],minHeight:0,radius:[10,10],bg:"surface",edge:{width:1.5,color:"line",ring:false},shadow:{color:"",x:0,y:0,blur:0,spread:0},center:true,color:"text",fit:"cover",x:0,y:0,dy:0},selected:{shown:true,w:361,h:56.344,padding:[14,16,14,16],marginTop:0,marginBottom:0,gap:[12,12],minHeight:0,radius:[10,10],bg:"pink",edge:{width:1.5,color:"ink",ring:false},shadow:{color:"",x:0,y:0,blur:0,spread:0},center:true,color:"text",fit:"cover",x:0,y:0,dy:0},radio:{shown:true,w:20,h:20,padding:[0,0,0,0],marginTop:0,marginBottom:0,gap:[0,0],minHeight:0,radius:[10,10],bg:"surface",edge:{width:1.5,color:"icoSage",ring:false},shadow:{color:"",x:0,y:0,blur:0,spread:0},center:false,color:"text",fit:"cover",x:0,y:0,dy:0},radioOn:{shown:true,w:20,h:20,padding:[0,0,0,0],marginTop:0,marginBottom:0,gap:[0,0],minHeight:0,radius:[10,10],bg:"surface",edge:{width:6,color:"ink",ring:false},shadow:{color:"",x:0,y:0,blur:0,spread:0},center:false,color:"text",fit:"cover",x:0,y:0,dy:0},textX:34,title:{shown:true,size:17,weight:700,lineHeight:22.1,color:"ink",tracking:0,face:"sans",upper:false,wrap:"pretty",tabular:false,deco:"none",decoOffset:0,decoThickness:0,marginTop:0,paddingTop:0},strut:26.35,meta:{shown:true,size:13,weight:400,lineHeight:18.2,color:"muted",tracking:0,face:"sans",upper:false,wrap:"pretty",tabular:false,deco:"none",decoOffset:0,decoThickness:0,marginTop:2,paddingTop:0},end:{shown:true,size:13,weight:400,lineHeight:20.15,color:"muted",tracking:0,face:"sans",upper:false,wrap:"pretty",tabular:false,deco:"none",decoOffset:0,decoThickness:0,marginTop:0,paddingTop:0},group:{gap:8,legend:{shown:true,size:15,weight:700,lineHeight:21,color:"ink",tracking:0,face:"sans",upper:false,wrap:"pretty",tabular:false,deco:"none",decoOffset:0,decoThickness:0,marginTop:0,paddingTop:0},legendPaddingX:2,legendGap:0}},switch:{track:{shown:true,w:48,h:28,padding:[0,0,0,0],marginTop:0,marginBottom:0,gap:[0,0],minHeight:0,radius:[999,999],bg:"#D0D6D3",edge:{width:0,color:"line",ring:false},shadow:{color:"",x:0,y:0,blur:0,spread:0},center:false,color:"text",fit:"cover",x:0,y:0,dy:0},on:"ink",thumb:{size:22,inset:3,travel:20,color:"surface",shadow:{color:"rgba(16, 70, 46, 0.06)",x:0,y:1,blur:2,spread:0}}},iconButton:{bare:{shown:true,w:44,h:44,padding:[0,0,0,0],marginTop:0,marginBottom:0,gap:[0,0],minHeight:0,radius:[22,22],bg:"none",edge:{width:0,color:"line",ring:false},shadow:{color:"",x:0,y:0,blur:0,spread:0},center:true,color:"ink",fit:"cover",x:0,y:0,dy:0},bareIcon:22,offColor:"line",ring:{shown:true,w:36,h:36,padding:[0,0,0,0],marginTop:0,marginBottom:0,gap:[0,0],minHeight:0,radius:[18,18],bg:"surface",edge:{width:1.5,color:"ink",ring:false},shadow:{color:"",x:0,y:0,blur:0,spread:0},center:true,color:"ink",fit:"cover",x:0,y:0,dy:0},ringIcon:18,ringPressed:"tintSage",ringPressScale:.94},link:{text:{shown:true,size:17,weight:400,lineHeight:22.1,color:"ink",tracking:0,face:"sans",upper:false,wrap:"pretty",tabular:false,deco:"underline",decoOffset:3,decoThickness:0,marginTop:0,paddingTop:0},danger:{shown:true,size:15,weight:700,lineHeight:23.25,color:"alert",tracking:0,face:"sans",upper:false,wrap:"pretty",tabular:false,deco:"underline",decoOffset:3,decoThickness:0,marginTop:0,paddingTop:0},inline:{shown:true,size:17,weight:400,lineHeight:26.35,color:"text",tracking:0,face:"sans",upper:false,wrap:"pretty",tabular:false,deco:"underline",decoOffset:0,decoThickness:0,marginTop:0,paddingTop:0}},lists:{rows:{row:{shown:true,w:327,h:94.781,padding:[16,0,16,0],marginTop:0,marginBottom:0,gap:[16,8],minHeight:0,radius:[0,0],bg:"none",edge:{width:1,color:"line",ring:false},shadow:{color:"",x:0,y:0,blur:0,spread:0},center:true,color:"text",fit:"cover",x:0,y:0,dy:0},title:{shown:true,size:17,weight:700,lineHeight:22.1,color:"ink",tracking:0,face:"sans",upper:false,wrap:"pretty",tabular:false,deco:"none",decoOffset:0,decoThickness:0,marginTop:0,paddingTop:0},subtitle:{shown:true,size:13,weight:400,lineHeight:18.85,color:"muted",tracking:0,face:"sans",upper:false,wrap:"pretty",tabular:false,deco:"none",decoOffset:0,decoThickness:0,marginTop:2,paddingTop:0}},tiles:{list:{shown:true,w:343,h:175.813,padding:[0,0,0,0],marginTop:0,marginBottom:0,gap:[4,4],minHeight:0,radius:[0,0],bg:"none",edge:{width:0,color:"line",ring:false},shadow:{color:"",x:0,y:0,blur:0,spread:0},center:false,color:"text",fit:"cover",x:0,y:0,dy:0},outdent:8,row:{shown:true,w:343,h:62.281,padding:[10,8,10,8],marginTop:0,marginBottom:0,gap:[12,12],minHeight:0,radius:[10,10],bg:"none",edge:{width:0,color:"line",ring:false},shadow:{color:"",x:0,y:0,blur:0,spread:0},center:true,color:"text",fit:"cover",x:0,y:0,dy:0},leading:22,leadingFace:40,icon:{shown:true,w:20,h:20,padding:[0,0,0,0],marginTop:0,marginBottom:0,gap:[0,0],minHeight:0,radius:[0,0],bg:"none",edge:{width:0,color:"line",ring:false},shadow:{color:"",x:0,y:0,blur:0,spread:0},center:false,color:"muted",fit:"cover",x:0,y:0,dy:0},text:{shown:true,w:261,h:42.281,padding:[0,0,0,0],marginTop:0,marginBottom:0,gap:[2,2],minHeight:0,radius:[0,0],bg:"none",edge:{width:0,color:"line",ring:false},shadow:{color:"",x:0,y:0,blur:0,spread:0},center:false,color:"text",fit:"cover",x:0,y:0,dy:0},title:{shown:true,size:17,weight:700,lineHeight:22.1,color:"ink",tracking:0,face:"sans",upper:false,wrap:"pretty",tabular:false,deco:"none",decoOffset:0,decoThickness:0,marginTop:0,paddingTop:0},subtitle:{shown:true,size:13,weight:400,lineHeight:18.2,color:"muted",tracking:0,face:"sans",upper:false,wrap:"pretty",tabular:false,deco:"none",decoOffset:0,decoThickness:0,marginTop:0,paddingTop:0},pressed:"#EDF2EF",alert:{bg:"tintRed",icon:"alert",title:"alertDeep",subtitle:"alert"}},end:{text:{shown:true,size:15,weight:400,lineHeight:23.25,color:"muted",tracking:0,face:"sans",upper:false,wrap:"pretty",tabular:false,deco:"none",decoOffset:0,decoThickness:0,marginTop:0,paddingTop:0},gap:8,chevron:{shown:true,w:20,h:20,padding:[0,0,0,0],marginTop:0,marginBottom:0,gap:[0,0],minHeight:0,radius:[0,0],bg:"none",edge:{width:0,color:"line",ring:false},shadow:{color:"",x:0,y:0,blur:0,spread:0},center:false,color:"#819D90",fit:"cover",x:0,y:0,dy:0}},section:{title:{shown:true,size:18,weight:700,lineHeight:22.5,color:"ink",tracking:-.36,face:"sans",upper:false,wrap:"pretty",tabular:false,deco:"none",decoOffset:0,decoThickness:0,marginTop:0,paddingTop:0},titleGap:12,head:{shown:true,w:361,h:22.5,padding:[0,0,0,0],marginTop:8,marginBottom:0,gap:[12,8],minHeight:0,radius:[0,0],bg:"none",edge:{width:0,color:"line",ring:false},shadow:{color:"",x:0,y:0,blur:0,spread:0},center:true,color:"text",fit:"cover",x:0,y:0,dy:0},note:{shown:true,size:13,weight:400,lineHeight:19.5,color:"muted",tracking:0,face:"sans",upper:false,wrap:"pretty",tabular:false,deco:"none",decoOffset:0,decoThickness:0,marginTop:12,paddingTop:0}},avatar:{sizes:{xs:20,sm:36,md:48,lg:64,xl:128},face:40,bg:"surface",edge:{width:1,color:"line",ring:true},initials:{shown:true,size:15,weight:700,lineHeight:23.25,color:"ink",tracking:0,face:"sans",upper:false,wrap:"pretty",tabular:false,deco:"none",decoOffset:0,decoThickness:0,marginTop:0,paddingTop:0},initialsXs:{shown:true,size:9,weight:700,lineHeight:13.95,color:"ink",tracking:0,face:"sans",upper:false,wrap:"pretty",tabular:false,deco:"none",decoOffset:0,decoThickness:0,marginTop:0,paddingTop:0},tints:{default:"tintPink",pink:"#FFCFC9",blue:"#C2CEE5",yellow:"#F6D78F",sage:"#C6D3CD"},ring:{width:2,offset:2,color:"go"},ringXl:{width:3,offset:4,color:"go"},dot:{size:12,edge:2,edgeColor:"surface"}},stack:{size:28,overlap:-8,initialsSize:12,halo:{width:2,color:"surface"}},banner:{box:{shown:true,w:361,h:155.391,padding:[16,16,16,16],marginTop:0,marginBottom:0,gap:[12,4],minHeight:0,radius:[20,20],bg:"#F1F5F2",edge:{width:0,color:"line",ring:false},shadow:{color:"",x:0,y:0,blur:0,spread:0},center:false,color:"text",fit:"cover",x:0,y:0,dy:0},icon:{shown:true,w:22,h:22,padding:[0,0,0,0],marginTop:1,marginBottom:0,gap:[0,0],minHeight:0,radius:[0,0],bg:"none",edge:{width:0,color:"line",ring:false},shadow:{color:"",x:0,y:0,blur:0,spread:0},center:false,color:"ink",fit:"cover",x:0,y:0,dy:0},iconRows:3,kicker:{shown:true,size:12,weight:700,lineHeight:16.8,color:"#5B5B5B",tracking:.72,face:"mono",upper:true,wrap:"pretty",tabular:false,deco:"none",decoOffset:0,decoThickness:0,marginTop:0,paddingTop:0},title:{shown:true,size:17,weight:700,lineHeight:22.1,color:"ink",tracking:0,face:"sans",upper:false,wrap:"pretty",tabular:false,deco:"none",decoOffset:0,decoThickness:0,marginTop:0,paddingTop:0},text:{shown:true,size:15,weight:400,lineHeight:21.75,color:"text",tracking:0,face:"sans",upper:false,wrap:"pretty",tabular:false,deco:"none",decoOffset:0,decoThickness:0,marginTop:0,paddingTop:0},acts:{shown:true,w:295,h:21,padding:[0,0,0,0],marginTop:8,marginBottom:0,gap:[16,8],minHeight:0,radius:[0,0],bg:"none",edge:{width:0,color:"line",ring:false},shadow:{color:"",x:0,y:0,blur:0,spread:0},center:true,color:"text",fit:"cover",x:0,y:0,dy:0},link:{shown:true,size:15,weight:700,lineHeight:21,color:"ink",tracking:0,face:"sans",upper:false,wrap:"pretty",tabular:false,deco:"none",decoOffset:0,decoThickness:0,marginTop:0,paddingTop:0},tones:{info:{bg:"#F1F5F2",icon:"ink"},success:{bg:"tintGo",icon:"ink"},warn:{bg:"#FCF0D6",icon:"#926F06"},danger:{bg:"tintRed",icon:"alert"}}},toast:{box:{shown:true,w:200.281,h:40.25,padding:[10,16,10,16],marginTop:0,marginBottom:0,gap:[0,0],minHeight:0,radius:[999,999],bg:"ink",edge:{width:0,color:"line",ring:false},shadow:{color:"",x:0,y:0,blur:0,spread:0},center:false,color:"surface",fit:"cover",x:0,y:0,dy:0},text:{shown:true,size:15,weight:400,lineHeight:20.25,color:"onInk",tracking:0,face:"sans",upper:false,wrap:"pretty",tabular:false,deco:"none",decoOffset:0,decoThickness:0,marginTop:0,paddingTop:10},inset:16,rise:8,fade:200,hold:2600},spinner:{size:16,border:2,turn:700,openSide:true,reducedOpacity:.5},offbar:{box:{shown:true,w:361,h:56,padding:[6,16,6,16],marginTop:0,marginBottom:0,gap:[10,10],minHeight:44,radius:[0,0],bg:"#FCF0D6",edge:{width:0,color:"line",ring:false},shadow:{color:"",x:0,y:0,blur:0,spread:0},center:true,color:"ink",fit:"cover",x:0,y:48,dy:0},text:{shown:true,size:15,weight:500,lineHeight:19.5,color:"ink",tracking:0,face:"sans",upper:false,wrap:"pretty",tabular:false,deco:"none",decoOffset:0,decoThickness:0,marginTop:0,paddingTop:0},icon:{shown:true,w:20,h:20,padding:[0,0,0,0],marginTop:0,marginBottom:0,gap:[0,0],minHeight:0,radius:[0,0],bg:"none",edge:{width:0,color:"line",ring:false},shadow:{color:"",x:0,y:0,blur:0,spread:0},center:false,color:"ink",fit:"cover",x:0,y:0,dy:0},action:{shown:true,w:69.859,h:44,padding:[0,2,0,2],marginTop:0,marginBottom:0,gap:[6,6],minHeight:44,radius:[0,0],bg:"none",edge:{width:0,color:"line",ring:false},shadow:{color:"",x:0,y:0,blur:0,spread:0},center:true,color:"ink",fit:"cover",x:0,y:0,dy:0},actionText:{shown:true,size:15,weight:700,lineHeight:19.5,color:"ink",tracking:0,face:"sans",upper:false,wrap:"pretty",tabular:false,deco:"underline",decoOffset:3,decoThickness:0,marginTop:0,paddingTop:0},online:{bg:"ink",color:"onInk"},fade:200},progress:{track:{shown:true,w:361,h:4,padding:[0,0,0,0],marginTop:0,marginBottom:0,gap:[0,0],minHeight:0,radius:[999,999],bg:"line",edge:{width:0,color:"line",ring:false},shadow:{color:"",x:0,y:0,blur:0,spread:0},center:false,color:"text",fit:"cover",x:0,y:0,dy:0},fill:"go",move:300},divider:{width:1,color:"line",label:{shown:true,size:12,weight:400,lineHeight:18.6,color:"muted",tracking:.72,face:"mono",upper:true,wrap:"pretty",tabular:false,deco:"none",decoOffset:0,decoThickness:0,marginTop:0,paddingTop:0},labelGap:12,labelLine:{width:1,color:"line"}},errorInline:{text:{shown:true,size:15,weight:400,lineHeight:21,color:"alertDeep",tracking:0,face:"sans",upper:false,wrap:"pretty",tabular:false,deco:"none",decoOffset:0,decoThickness:0,marginTop:0,paddingTop:0},acts:{shown:true,w:361,h:21,padding:[0,0,0,0],marginTop:8,marginBottom:0,gap:[16,8],minHeight:0,radius:[0,0],bg:"none",edge:{width:0,color:"line",ring:false},shadow:{color:"",x:0,y:0,blur:0,spread:0},center:true,color:"text",fit:"cover",x:0,y:0,dy:0},link:{shown:true,size:15,weight:700,lineHeight:21,color:"ink",tracking:0,face:"sans",upper:false,wrap:"pretty",tabular:false,deco:"none",decoOffset:0,decoThickness:0,marginTop:0,paddingTop:0}},linkPressedOpacity:.6},variants:{drawer:{frame:{shown:true,w:393,h:226.594,padding:[10,20,40,20],marginTop:0,marginBottom:0,gap:[0,0],minHeight:0,radius:[28,0],bg:"surface",edge:{width:0,color:"line",ring:false},shadow:{color:"",x:0,y:0,blur:0,spread:0},center:false,color:"ink",fit:"cover",x:0,y:293.406,dy:0},maxHeight:.8,grab:{shown:true,w:40,h:5,padding:[0,0,0,0],marginTop:0,marginBottom:10,gap:[0,0],minHeight:0,radius:[2.5,2.5],bg:"#DAD7D1",edge:{width:0,color:"line",ring:false},shadow:{color:"",x:0,y:0,blur:0,spread:0},center:false,color:"ink",fit:"cover",x:0,y:0,dy:0},top:{shown:true,w:353,h:40,padding:[0,0,0,0],marginTop:0,marginBottom:0,gap:[0,0],minHeight:0,radius:[0,0],bg:"none",edge:{width:0,color:"line",ring:false},shadow:{color:"",x:0,y:0,blur:0,spread:0},center:true,color:"ink",fit:"cover",x:0,y:0,dy:0},kicker:{shown:true,size:11,weight:400,lineHeight:16.5,color:"muted",tracking:.88,face:"mono",upper:true,wrap:"auto",tabular:false,deco:"none",decoOffset:0,decoThickness:0,marginTop:0,paddingTop:0},close:{shown:true,w:40,h:40,padding:[0,0,0,0],marginTop:0,marginBottom:0,gap:[0,0],minHeight:0,radius:[20,20],bg:"none",edge:{width:0,color:"line",ring:false},shadow:{color:"",x:0,y:0,blur:0,spread:0},center:true,color:"ink",fit:"cover",x:0,y:0,dy:0},closeEnd:-8,closeIcon:22,title:{shown:true,size:24,weight:800,lineHeight:27.6,color:"ink",tracking:-.24,face:"serif",upper:false,wrap:"balance",tabular:false,deco:"none",decoOffset:0,decoThickness:0,marginTop:0,paddingTop:0},body:{shown:true,w:353,h:82,padding:[0,0,0,0],marginTop:12,marginBottom:0,gap:[10,10],minHeight:0,radius:[0,0],bg:"none",edge:{width:0,color:"line",ring:false},shadow:{color:"",x:0,y:0,blur:0,spread:0},center:false,color:"text",fit:"cover",x:0,y:0,dy:0},text:{shown:true,size:16,weight:400,lineHeight:24,color:"text",tracking:0,face:"sans",upper:false,wrap:"auto",tabular:false,deco:"none",decoOffset:0,decoThickness:0,marginTop:0,paddingTop:0},scrim:"ink/0.38",motion:{enterMs:320,enterEasing:[.32,.72,0,1],exitMs:220,exitEasing:[.23,1,.32,1],scrimEnterMs:240,scrimExitMs:200,scrimEasing:[.25,.1,.25,1]}},button:{ink:{fill:false,minHeight:48,paddingX:22,gap:8,borderWidth:0,ring:false,fontSize:16,fontWeight:700,lineHeight:1.5,iconSize:20},outline:{fill:false,minHeight:48,paddingX:22,gap:8,borderWidth:1.5,ring:true,fontSize:16,fontWeight:700,lineHeight:1.5,iconSize:20},sm:{fill:false,minHeight:40,paddingX:16,gap:8,borderWidth:1.5,ring:true,fontSize:15,fontWeight:700,lineHeight:1.5,iconSize:20},lg:{fill:false,minHeight:56,paddingX:28,gap:8,borderWidth:0,ring:false,fontSize:17,fontWeight:700,lineHeight:1.5,iconSize:20},disabledOpacity:.32,press:.97,transition:"transform 160ms cubic-bezier(0.23, 1, 0.32, 1), opacity 160ms ease"},segmented:{track:{shown:true,w:361,h:44,padding:[4,4,4,4],marginTop:0,marginBottom:0,gap:[4,4],minHeight:0,radius:[22,22],bg:"surface",edge:{width:1.5,color:"#DAD7D1",ring:true},shadow:{color:"",x:0,y:0,blur:0,spread:0},center:false,color:"ink",fit:"cover",x:0,y:0,dy:0},option:{shown:true,w:115,h:36,padding:[0,6,0,6],marginTop:0,marginBottom:0,gap:[0,0],minHeight:36,radius:[18,18],bg:"none",edge:{width:0,color:"line",ring:false},shadow:{color:"",x:0,y:0,blur:0,spread:0},center:false,color:"ink",fit:"cover",x:0,y:0,dy:0},label:{shown:true,size:14,weight:700,lineHeight:21,color:"ink",tracking:0,face:"sans",upper:false,wrap:"auto",tabular:false,deco:"none",decoOffset:0,decoThickness:0,marginTop:0,paddingTop:0},chosen:{shown:true,w:115,h:36,padding:[0,6,0,6],marginTop:0,marginBottom:0,gap:[0,0],minHeight:36,radius:[18,18],bg:"ink",edge:{width:0,color:"line",ring:false},shadow:{color:"",x:0,y:0,blur:0,spread:0},center:false,color:"onInk",fit:"cover",x:0,y:0,dy:0},chosenLabel:{shown:true,size:14,weight:700,lineHeight:21,color:"onInk",tracking:0,face:"sans",upper:false,wrap:"auto",tabular:false,deco:"none",decoOffset:0,decoThickness:0,marginTop:0,paddingTop:0},press:.96,transition:"background-color 160ms ease, transform 160ms cubic-bezier(0.23, 1, 0.32, 1)"},stepper:{track:{shown:true,w:110,h:40,padding:[0,0,0,0],marginTop:0,marginBottom:0,gap:[0,0],minHeight:0,radius:[20,20],bg:"surface",edge:{width:1.5,color:"#DAD7D1",ring:true},shadow:{color:"",x:0,y:0,blur:0,spread:0},center:true,color:"ink",fit:"cover",x:0,y:0,dy:0},button:{shown:true,w:40,h:40,padding:[0,0,0,0],marginTop:0,marginBottom:0,gap:[0,0],minHeight:0,radius:[20,20],bg:"none",edge:{width:0,color:"line",ring:false},shadow:{color:"",x:0,y:0,blur:0,spread:0},center:true,color:"ink",fit:"cover",x:0,y:0,dy:0},icon:16,value:{shown:true,size:15.5,weight:800,lineHeight:23.25,color:"ink",tracking:0,face:"sans",upper:false,wrap:"auto",tabular:true,deco:"none",decoOffset:0,decoThickness:0,marginTop:0,paddingTop:0},valueWidth:30,disabledOpacity:.3,press:.9,transition:"transform 160ms cubic-bezier(0.23, 1, 0.32, 1)"},summary:{box:{shown:true,w:361,h:144,padding:[6,16,6,16],marginTop:0,marginBottom:0,gap:[0,0],minHeight:0,radius:[16,16],bg:"surface",edge:{width:0,color:"line",ring:false},shadow:{color:"rgba(38, 37, 35, 0.06)",x:0,y:1,blur:3,spread:0},center:false,color:"ink",fit:"cover",x:0,y:0,dy:0},row:{shown:true,w:329,h:34,padding:[0,0,0,0],marginTop:0,marginBottom:0,gap:[12,12],minHeight:34,radius:[0,0],bg:"none",edge:{width:0,color:"line",ring:false},shadow:{color:"",x:0,y:0,blur:0,spread:0},center:true,color:"ink",fit:"cover",x:0,y:0,dy:0},term:{shown:true,size:15,weight:400,lineHeight:22.5,color:"#4A4845",tracking:0,face:"sans",upper:false,wrap:"auto",tabular:true,deco:"none",decoOffset:0,decoThickness:0,marginTop:0,paddingTop:0},value:{shown:true,size:15,weight:400,lineHeight:22.5,color:"ink",tracking:0,face:"sans",upper:false,wrap:"auto",tabular:true,deco:"none",decoOffset:0,decoThickness:0,marginTop:0,paddingTop:0},totalRow:{shown:true,w:329,h:42,padding:[0,0,0,0],marginTop:0,marginBottom:0,gap:[12,12],minHeight:42,radius:[0,0],bg:"none",edge:{width:0,color:"line",ring:false},shadow:{color:"",x:0,y:0,blur:0,spread:0},center:true,color:"ink",fit:"cover",x:0,y:0,dy:0},totalTerm:{shown:true,size:17,weight:800,lineHeight:25.5,color:"ink",tracking:0,face:"sans",upper:false,wrap:"auto",tabular:true,deco:"none",decoOffset:0,decoThickness:0,marginTop:0,paddingTop:0},total:{shown:true,size:17,weight:800,lineHeight:25.5,color:"ink",tracking:0,face:"sans",upper:false,wrap:"auto",tabular:true,deco:"none",decoOffset:0,decoThickness:0,marginTop:0,paddingTop:0},renewRow:{shown:true,w:329,h:28,padding:[0,0,0,0],marginTop:-6,marginBottom:0,gap:[12,12],minHeight:28,radius:[0,0],bg:"none",edge:{width:0,color:"line",ring:false},shadow:{color:"",x:0,y:0,blur:0,spread:0},center:true,color:"ink",fit:"cover",x:0,y:0,dy:0},renewTerm:{shown:true,size:14,weight:400,lineHeight:21,color:"#4A4845",tracking:0,face:"sans",upper:false,wrap:"auto",tabular:true,deco:"none",decoOffset:0,decoThickness:0,marginTop:0,paddingTop:0},renew:{shown:true,size:14,weight:400,lineHeight:21,color:"ink",tracking:0,face:"sans",upper:false,wrap:"auto",tabular:true,deco:"none",decoOffset:0,decoThickness:0,marginTop:0,paddingTop:0},inset:{shown:true,w:361,h:88,padding:[6,16,6,16],marginTop:0,marginBottom:0,gap:[0,0],minHeight:0,radius:[16,16],bg:"bg",edge:{width:0,color:"line",ring:false},shadow:{color:"",x:0,y:0,blur:0,spread:0},center:false,color:"ink",fit:"cover",x:0,y:0,dy:0}},toast:{box:{shown:true,w:361,h:64.594,padding:[12,15,12,15],marginTop:0,marginBottom:0,gap:[0,0],minHeight:0,radius:[16,16],bg:"ink",edge:{width:0,color:"line",ring:false},shadow:{color:"",x:0,y:0,blur:0,spread:0},center:false,color:"onInk",fit:"cover",x:16,y:62,dy:0},text:{shown:true,size:14.5,weight:400,lineHeight:20.3,color:"onInk",tracking:0,face:"sans",upper:false,wrap:"auto",tabular:false,deco:"none",decoOffset:0,decoThickness:0,marginTop:0,paddingTop:12},motion:{enterMs:220,exitMs:160,easing:[.23,1,.32,1],rise:-8}},focus:{width:2,offset:2,color:"ink"}},press:{button:.97,iconButton:.94,card:.98},colors:{grab:"#C9C9C9",scrim:"rgba(0, 0, 0, 0.32)",watch:"#F9E6B9",planInk:"#262523",planOnInk:"#FFFFFF",planAccent:"#FFCE34",planLink:"#00707C",planAccentWash:"#FFF7DC",planAccentChip:"#FFE7A1",planLinkWash:"#E0FDFF",planLinkChip:"#C8F4F8"}},Jn={card:/* @__PURE__ */Xn({w:361,h:163.547}),top:/* @__PURE__ */Xn({w:361,h:39.547,gap:[12,12]}),title:/* @__PURE__ */Kn({size:16,weight:700,lineHeight:20,tracking:-.16}),meta:/* @__PURE__ */Kn({size:13,weight:400,lineHeight:17.55,color:"muted"}),total:/* @__PURE__ */Kn({size:16,weight:700,lineHeight:24.8,tabular:true}),shots:/* @__PURE__ */Xn({w:361,h:64,marginTop:8,gap:[8,8]}),acts:/* @__PURE__ */Xn({w:361,h:40,marginTop:12,gap:[8,8]}),go:/* @__PURE__ */Xn({w:176.5,h:40,padding:[0,12,0,12],gap:[6,6],minHeight:40,radius:[999,999],bg:"go",center:true}),goText:/* @__PURE__ */Kn({size:14,weight:700,lineHeight:21.7}),plain:/* @__PURE__ */Xn({w:176.5,h:40,padding:[0,12,0,12],gap:[6,6],minHeight:40,radius:[999,999],bg:"#F3F3F3",center:true}),plainText:/* @__PURE__ */Kn({size:14,weight:700,lineHeight:21.7}),note:/* @__PURE__ */Kn({size:13,weight:500,lineHeight:17.55,marginTop:8}),icon:/* @__PURE__ */Xn({w:16,h:16}),actsColumns:2,shotPressScale:.96},Zn={top:/* @__PURE__ */Xn({w:361,h:43.547,gap:[12,12]}),when:/* @__PURE__ */Xn({w:300.063,h:24,gap:[8,4],center:true}),title:/* @__PURE__ */Kn({size:16,weight:700,lineHeight:20.8}),chip:/* @__PURE__ */Xn({w:86.031,h:24,padding:[0,9,0,5],gap:[4,4],minHeight:24,radius:[999,999],bg:"tintGo",center:true,color:"ink"}),chipText:/* @__PURE__ */Kn({size:12,weight:700,lineHeight:15.6,color:"ink"}),chipIcon:/* @__PURE__ */Xn({w:14,h:14,color:"ink"}),meta:/* @__PURE__ */Kn({size:13,weight:400,lineHeight:17.55,color:"muted",marginTop:2}),total:/* @__PURE__ */Kn({size:16,weight:700,lineHeight:24.8,tabular:true}),shots:/* @__PURE__ */Xn({w:361,h:64,marginTop:8,gap:[8,8]}),shot:/* @__PURE__ */Xn({w:64,h:64,radius:[14,14],bg:"#F3F3F3"}),shotImg:/* @__PURE__ */Xn({w:64,h:64,padding:[6.391,6.391,6.391,6.391],fit:"contain"}),shotBlend:"multiply",acts:/* @__PURE__ */Xn({w:361,h:44,marginTop:12,gap:[12,12],center:true}),plain:/* @__PURE__ */Xn({w:162.109,h:44,padding:[0,16,0,16],gap:[6,6],minHeight:44,radius:[999,999],bg:"#F3F3F3",center:true}),plainText:/* @__PURE__ */Kn({size:14,weight:700,lineHeight:21.7}),icon:/* @__PURE__ */Xn({w:16,h:16}),link:/* @__PURE__ */Xn({w:62.578,h:44,padding:[0,6,0,6],minHeight:44}),linkText:/* @__PURE__ */Kn({size:14,weight:700,lineHeight:21.7,deco:"underline",decoOffset:3,decoThickness:1.5})},el={card:/* @__PURE__ */Xn({w:952,h:127.781,padding:[16,24,16,16],gap:[24,16],radius:[20,20],bg:"surface",shadow:{color:"rgba(0, 0, 0, 0.04)",x:0,y:1,blur:2,spread:0},center:true}),lift:{color:"rgba(0, 0, 0, 0.05)",x:0,y:6,blur:20,spread:0},shots:/* @__PURE__ */Xn({w:172,h:72}),sq:/* @__PURE__ */Xn({w:72,h:72,radius:[14,14],bg:"#F3F3F3"}),sqRing:3,sqOverlap:22,imgInset:.1,imgFit:"contain",imgBlend:"multiply",text:/* @__PURE__ */Xn({w:446.547,h:95.781,gap:[2,2]}),when:/* @__PURE__ */Xn({w:446.547,h:26,gap:[12,4],center:true}),title:/* @__PURE__ */Kn({size:19,weight:700,lineHeight:24.7,tabular:true}),total:/* @__PURE__ */Kn({size:19,weight:900,lineHeight:24.7,tabular:true}),chip:/* @__PURE__ */Xn({w:94.547,h:26,padding:[0,10,0,6],gap:[4,4],minHeight:26,radius:[999,999],bg:"tintGo",center:true,color:"ink"}),chipText:/* @__PURE__ */Kn({size:13,weight:700,lineHeight:16.9,color:"ink",tabular:true}),chipIcon:/* @__PURE__ */Xn({w:16,h:16,color:"ink"}),meta:/* @__PURE__ */Kn({size:16,weight:400,lineHeight:22.4}),note:/* @__PURE__ */Kn({size:15,weight:400,lineHeight:21}),acts:/* @__PURE__ */Xn({w:245.453,h:46,gap:[24,8],center:true}),plain:/* @__PURE__ */Xn({w:160.031,h:46,padding:[0,20,0,20],gap:[8,8],minHeight:46,radius:[999,999],bg:"surface",edge:{width:1.5,color:"#C6D3CD",ring:true},center:true,color:"ink"}),plainText:/* @__PURE__ */Kn({size:16,weight:700,lineHeight:19.2,color:"ink"}),icon:/* @__PURE__ */Xn({w:18,h:18,color:"ink"}),link:/* @__PURE__ */Xn({w:61.422,h:44,gap:[8,8],minHeight:44,center:true,color:"ink"}),linkText:/* @__PURE__ */Kn({size:17,weight:700,lineHeight:20.4,color:"ink",deco:"underline",decoOffset:4}),go:/* @__PURE__ */Xn({w:228.75,h:52,padding:[0,24,0,24],gap:[8,8],minHeight:52,radius:[999,999],bg:"ink",center:true,color:"surface"}),goText:/* @__PURE__ */Kn({size:17,weight:700,lineHeight:20.4,color:"surface",wrap:"auto"}),pressScale:.97,hoverFill:{color:"ink",share:.06,over:"surface"},chipOff:/* @__PURE__ */Xn({w:97.422,h:26,padding:[0,10,0,6],gap:[4,4],minHeight:26,radius:[999,999],center:true,color:"ink"}),metaLink:/* @__PURE__ */Kn({size:16,weight:400,lineHeight:22.4,deco:"underline"}),narrow:{upTo:599,card:/* @__PURE__ */Xn({w:560,h:247.391,padding:[16,16,16,16],gap:[24,16],radius:[20,20],bg:"surface",center:true}),sq:/* @__PURE__ */Xn({w:64,h:64,radius:[14,14],bg:"#F3F3F3",shadow:{color:"#FFFFFF",x:0,y:0,blur:0,spread:3}}),sqOverlap:16},phone:{upTo:639,card:/* @__PURE__ */Xn({w:335,h:120.984,gap:[12,8],center:true}),sq:/* @__PURE__ */Xn({w:48,h:48,radius:[12,12],bg:"#F3F3F3"}),sqRing:2,sqOverlap:18,when:/* @__PURE__ */Xn({w:215,h:46.797,gap:[12,2],center:true}),title:/* @__PURE__ */Kn({size:16,weight:700,lineHeight:20.8,tabular:true}),total:/* @__PURE__ */Kn({size:16,weight:900,lineHeight:20.8,tabular:true}),chip:/* @__PURE__ */Xn({w:90.031,h:24,padding:[0,10,0,6],gap:[4,4],minHeight:24,radius:[999,999],bg:"tintGo",center:true,color:"ink"}),chipText:/* @__PURE__ */Kn({size:12,weight:700,lineHeight:15.6,color:"ink",tabular:true}),whatHidden:true,note:/* @__PURE__ */Kn({size:13,weight:400,lineHeight:18.2}),acts:/* @__PURE__ */Xn({w:335,h:46,gap:[24,8],center:true}),plain:/* @__PURE__ */Xn({w:144.531,h:46,padding:[0,16,0,16],gap:[8,8],minHeight:46,radius:[999,999],bg:"surface",edge:{width:1.5,color:"#C6D3CD",ring:true},center:true,color:"ink"}),plainText:/* @__PURE__ */Kn({size:15,weight:700,lineHeight:18,color:"ink"}),linkText:/* @__PURE__ */Kn({size:15,weight:700,lineHeight:18,color:"ink",deco:"underline",decoOffset:4})}},tl={card:/* @__PURE__ */Xn({w:156,h:310.969,gap:[4,4]}),kicker:/* @__PURE__ */Kn({size:12,weight:400,lineHeight:15.6,color:"muted",tracking:.12,face:"mono"}),name:/* @__PURE__ */Kn({size:15,weight:700,lineHeight:19.5,wrap:"balance"}),meta:/* @__PURE__ */Kn({size:13,weight:400,lineHeight:18.2,color:"muted"}),buy:/* @__PURE__ */Xn({w:156,h:36,marginTop:6,gap:[8,8],center:true}),price:/* @__PURE__ */Kn({size:15,weight:700,lineHeight:23.25,tabular:true})},il={card:/* @__PURE__ */Xn({w:174.5,h:249.219,gap:[2,2]}),tag:/* @__PURE__ */Xn({w:84.563,h:26,padding:[0,9,0,6],gap:[4,4],minHeight:26,radius:[999,999],bg:"surface",center:true,x:8,y:8}),tagIcon:/* @__PURE__ */Xn({w:16,h:16,color:"#CA4463"}),tagText:/* @__PURE__ */Kn({size:12,weight:700,lineHeight:12}),price:/* @__PURE__ */Xn({w:174.5,h:26.344,gap:[6,6]}),priceText:/* @__PURE__ */Kn({size:17,weight:700,lineHeight:26.35,tracking:-.17,tabular:true}),was:/* @__PURE__ */Kn({size:13,weight:400,lineHeight:20.15,color:"muted",tabular:true,deco:"strike"}),name:/* @__PURE__ */Kn({size:14,weight:500,lineHeight:18.2,wrap:"balance"}),meta:/* @__PURE__ */Kn({size:12,weight:400,lineHeight:16.2,color:"muted"}),metaAuto:/* @__PURE__ */Kn({size:12,weight:500,lineHeight:16.2,color:"#16864A"}),step:/* @__PURE__ */Xn({w:112,h:38,radius:[19,19],bg:"surface",center:true,x:54.5,y:128.5}),stepIn:/* @__PURE__ */Xn({w:112,h:38,radius:[19,19],bg:"ink",center:true,color:"surface",x:54.5,y:128.5}),stepAt:{right:8,bottom:8},stepButton:/* @__PURE__ */Xn({w:38,h:38,radius:[19,19],center:true}),stepIcon:/* @__PURE__ */Xn({w:18,h:18}),count:/* @__PURE__ */Kn({size:15,weight:700,lineHeight:23.25,color:"surface",tabular:true}),lift:{color:"rgba(0, 0, 0, 0.14)",x:0,y:2,blur:8,spread:0},per:/* @__PURE__ */Kn({size:12,weight:400,lineHeight:16.2,color:"muted",tabular:true}),metaAutoDark:/* @__PURE__ */Kn({size:12,weight:500,lineHeight:16.2,color:"ink"}),pill:/* @__PURE__ */Xn({w:62.234,h:36,padding:[0,14,0,14],gap:[4,4],minHeight:36,radius:[999,999],bg:"go",center:true,x:104.266,y:130.5}),pillText:/* @__PURE__ */Kn({size:14,weight:700,lineHeight:21.7}),pillOn:/* @__PURE__ */Xn({w:90.016,h:36,padding:[0,14,0,14],gap:[4,4],minHeight:36,radius:[999,999],bg:"surface",edge:{width:2,color:"text",ring:true},center:true,x:76.484,y:130.5}),pillOnText:/* @__PURE__ */Kn({size:14,weight:700,lineHeight:21.7}),pillIcon:/* @__PURE__ */Xn({w:16,h:16}),pillSoft:/* @__PURE__ */Xn({w:80.125,h:36,padding:[0,14,0,14],gap:[4,4],minHeight:36,radius:[999,999],bg:"surface",shadow:{color:"rgba(0, 0, 0, 0.14)",x:0,y:2,blur:8,spread:0},center:true,x:86.375,y:130.5}),pillSoftText:/* @__PURE__ */Kn({size:14,weight:700,lineHeight:21.7}),pillAt:{right:8,bottom:8},pillPressScale:.96},rl={img:/* @__PURE__ */Xn({w:174.5,h:174.5,padding:[32,14,16,14],fit:"contain"}),imgBlend:"multiply",lift:{color:"rgba(0, 0, 0, 0.08)",x:0,y:2,blur:8,spread:0},pill:/* @__PURE__ */Xn({w:62.234,h:36,padding:[0,14,0,14],gap:[4,4],minHeight:36,radius:[999,999],bg:"pink",edge:{width:1,color:"ink",ring:true},center:true,color:"ink",x:104.266,y:130.5}),pillText:/* @__PURE__ */Kn({size:14,weight:700,lineHeight:21.7,color:"ink"}),pillOn:/* @__PURE__ */Xn({w:90.016,h:36,padding:[0,14,0,14],gap:[4,4],minHeight:36,radius:[999,999],bg:"surface",edge:{width:2,color:"ink",ring:true},center:true,color:"ink",x:76.484,y:130.5}),pillOnText:/* @__PURE__ */Kn({size:14,weight:700,lineHeight:21.7,color:"ink"}),pillPressScale:.97},nl={card:/* @__PURE__ */Xn({w:306.656,h:370.641,gap:[2,2]}),square:/* @__PURE__ */Xn({w:306.656,h:306.656,marginBottom:10,radius:[20,20],bg:"#F5F5F5"}),imgInsetTag:{share:[.11,.11,.1,.11],px:[26,0,0,0]},imgInset:{share:[.07,.07,.07,.07],px:[0,0,0,0]},imgFit:"contain",imgBlend:"multiply",tag:/* @__PURE__ */Xn({w:112.516,h:30,padding:[0,12,0,8],gap:[5,5],minHeight:30,radius:[999,999],bg:"#F7E3E8",center:true,color:"ink",x:10,y:10}),tagText:/* @__PURE__ */Kn({size:13,weight:700,lineHeight:14.3,color:"ink"}),tagIcon:/* @__PURE__ */Xn({w:16,h:16,color:"#CA4463"}),tagMix:.15,name:/* @__PURE__ */Kn({size:17,weight:500,lineHeight:22.1,wrap:"balance"}),nameLeading:1.3,coverRadius:20,price:/* @__PURE__ */Xn({w:306.656,h:27.891,gap:[8,2]}),priceText:/* @__PURE__ */Kn({size:18,weight:700,lineHeight:27.9,tracking:-.18,tabular:true}),was:/* @__PURE__ */Kn({size:15,weight:400,lineHeight:23.25,tabular:true,deco:"strike"}),per:/* @__PURE__ */Kn({size:15,weight:400,lineHeight:23.25,tabular:true}),badge:/* @__PURE__ */Xn({w:32.625,h:22,padding:[0,8,0,8],radius:[999,999],bg:"#DEE4F1",edge:{width:1.5,color:"rgba(90, 96, 135, 0.45)",ring:true},center:true}),badgeText:/* @__PURE__ */Kn({size:13,weight:700,lineHeight:13,tabular:true}),meta:/* @__PURE__ */Kn({size:15,weight:400,lineHeight:21}),add:/* @__PURE__ */Xn({w:44,h:44,radius:[22,22],bg:"surface",shadow:{color:"rgba(0, 0, 0, 0.14)",x:0,y:2,blur:8,spread:0},center:true}),addIcon:/* @__PURE__ */Xn({w:20,h:20}),actAt:{right:10,bottom:10},step:/* @__PURE__ */Xn({w:116,h:44,radius:[22,22],bg:"ink",center:true,color:"surface"}),stepButton:/* @__PURE__ */Xn({w:44,h:44,radius:[22,22],center:true,color:"surface"}),stepIcon:/* @__PURE__ */Xn({w:18,h:18,color:"surface"}),count:/* @__PURE__ */Kn({size:15,weight:700,lineHeight:23.25,color:"surface",tabular:true}),pill:/* @__PURE__ */Xn({w:68.688,h:44,padding:[0,16,0,16],gap:[6,6],minHeight:44,radius:[999,999],bg:"ink",center:true,color:"surface"}),pillText:/* @__PURE__ */Kn({size:15,weight:700,lineHeight:15,color:"surface"}),pillOn:/* @__PURE__ */Xn({w:101.016,h:44,padding:[0,16,0,16],gap:[6,6],minHeight:44,radius:[999,999],bg:"surface",edge:{width:2,color:"ink",ring:true},center:true,color:"ink"}),pillOnText:/* @__PURE__ */Kn({size:15,weight:700,lineHeight:15,color:"ink"}),pillIcon:/* @__PURE__ */Xn({w:18,h:18,color:"ink"}),pillSoft:/* @__PURE__ */Xn({w:87.859,h:44,padding:[0,16,0,16],gap:[6,6],minHeight:44,radius:[999,999],bg:"surface",shadow:{color:"rgba(0, 0, 0, 0.14)",x:0,y:2,blur:8,spread:0},center:true}),pillSoftText:/* @__PURE__ */Kn({size:15,weight:700,lineHeight:15}),nameSteps:[{upTo:599,name:/* @__PURE__ */Kn({size:16,weight:500,lineHeight:20.8,wrap:"balance"})},{upTo:399,name:/* @__PURE__ */Kn({size:14,weight:500,lineHeight:18.2,wrap:"balance"})}],addPressScale:.94,stepPressScale:.88,pillPressScale:.97,imgInsetEven:{share:[.07,.07,.07,.07],px:[0,0,0,0]},imgInsetWhite:{share:[.11,.11,.14,.11],px:[0,0,0,0]},groundWhite:"surface",focusOffset:3,hover:{ring:{width:1.5,share:.45,color:"ink"},underlineOffset:3}},ll={card:/* @__PURE__ */Xn({shown:false,w:361,h:109.328,gap:[12,12],center:true}),name:/* @__PURE__ */Kn({shown:false,size:17,weight:700,lineHeight:22.1,color:"ink"}),meta:/* @__PURE__ */Kn({shown:false,size:13,weight:400,lineHeight:18.85,color:"muted",marginTop:2})},ol={line:/* @__PURE__ */Xn({w:361,h:109.328,gap:[12,12],center:true}),name:/* @__PURE__ */Xn({w:289,h:24,gap:[8,4],center:true,color:"ink"}),nameText:/* @__PURE__ */Kn({size:17,weight:700,lineHeight:22.1,color:"ink"}),meta:/* @__PURE__ */Kn({size:13,weight:400,lineHeight:18.85,color:"muted",marginTop:2}),price:/* @__PURE__ */Kn({size:17,weight:700,lineHeight:26.35,color:"ink",tabular:true}),was:/* @__PURE__ */Kn({shown:false,size:13,weight:400,lineHeight:18.85,color:"muted",marginTop:2}),acts:/* @__PURE__ */Xn({w:289,h:20.141,marginTop:6,gap:[16,16]}),remove:/* @__PURE__ */Kn({size:13,weight:700,lineHeight:20.15,color:"ink",deco:"underline",decoOffset:3}),removeBox:/* @__PURE__ */Xn({w:53.016,h:20.141,color:"ink"}),end:/* @__PURE__ */Xn({w:289,h:26.344,gap:[4,4]})},al={line:/* @__PURE__ */Xn({w:361,h:95.094,gap:[12,12]}),sm:/* @__PURE__ */Xn({w:48,h:48,radius:[12,12],bg:"#F3F3F3"}),md:/* @__PURE__ */Xn({w:52,h:52,radius:[12,12],bg:"#F3F3F3"}),lg:/* @__PURE__ */Xn({w:56,h:56,radius:[12,12],bg:"#F3F3F3"}),imgInset:.1,imgFit:"contain",imgBlend:"multiply",name:/* @__PURE__ */Xn({w:239.109,h:20,gap:[6,4],center:true}),nameText:/* @__PURE__ */Kn({size:15,weight:700,lineHeight:19.5}),link:/* @__PURE__ */Kn({size:15,weight:700,lineHeight:19.5}),linkReach:4,badge:/* @__PURE__ */Xn({w:29.344,h:20,padding:[0,7,0,7],radius:[999,999],bg:"#E0E6F2",edge:{width:1.5,color:"rgba(90, 96, 135, 0.45)",ring:true},center:true}),badgeText:/* @__PURE__ */Kn({size:12,weight:700,lineHeight:12}),meta:/* @__PURE__ */Kn({size:13,weight:400,lineHeight:17.55,color:"muted",marginTop:2}),acts:/* @__PURE__ */Xn({w:239.109,h:32,marginTop:6,gap:[16,16]}),act:/* @__PURE__ */Kn({size:13,weight:700,lineHeight:20.15,color:"ink",deco:"underline",decoOffset:3}),actBox:/* @__PURE__ */Xn({w:84.531,h:32,minHeight:32,color:"ink"}),price:/* @__PURE__ */Kn({size:15,weight:700,lineHeight:23.25,tabular:true}),was:/* @__PURE__ */Kn({size:13,weight:400,lineHeight:20.15,color:"muted",tabular:true,deco:"strike"})},sl={line:/* @__PURE__ */Xn({w:404,h:88,gap:[16,0],center:true}),sq:/* @__PURE__ */Xn({w:88,h:88,radius:[14,14],bg:"#F3F3F3"}),imgInset:.1,imgFit:"contain",imgBlend:"multiply",name:/* @__PURE__ */Xn({w:225.875,h:24.688,gap:[8,4],center:true}),nameText:/* @__PURE__ */Kn({size:19,weight:700,lineHeight:24.7}),link:/* @__PURE__ */Kn({size:19,weight:700,lineHeight:24.7}),linkReach:4,badge:/* @__PURE__ */Xn({w:32.625,h:22,padding:[0,8,0,8],radius:[999,999],bg:"#DEE4F1",center:true}),badgeText:/* @__PURE__ */Kn({size:13,weight:700,lineHeight:13}),meta:/* @__PURE__ */Kn({size:15,weight:400,lineHeight:21,marginTop:2}),price:/* @__PURE__ */Kn({size:19,weight:700,lineHeight:29.45,tabular:true}),was:/* @__PURE__ */Kn({size:15,weight:400,lineHeight:23.25,tabular:true,deco:"strike"}),narrow:{upTo:599,sq:/* @__PURE__ */Xn({w:64,h:64,radius:[14,14],bg:"#F3F3F3"}),cost:/* @__PURE__ */Xn({w:432,h:29.438,marginTop:4,gap:[8,8]}),nameText:/* @__PURE__ */Kn({size:17,weight:700,lineHeight:22.1}),link:/* @__PURE__ */Kn({size:17,weight:700,lineHeight:22.1})},narrower:{upTo:330,sq:/* @__PURE__ */Xn({w:56,h:56,radius:[14,14],bg:"#F3F3F3"}),cost:/* @__PURE__ */Xn({w:216,h:29.438,marginTop:4,gap:[8,8]}),nameText:/* @__PURE__ */Kn({size:17,weight:700,lineHeight:22.1}),link:/* @__PURE__ */Kn({size:17,weight:700,lineHeight:22.1})},phone:{upTo:639,line:/* @__PURE__ */Xn({w:303,h:81.25,gap:[12,0],center:true}),sq:/* @__PURE__ */Xn({w:56,h:56,radius:[12,12],bg:"#F3F3F3"}),cost:/* @__PURE__ */Xn({w:235,h:23.25,marginTop:2,gap:[8,8]}),nameText:/* @__PURE__ */Kn({size:15,weight:700,lineHeight:19.5}),link:/* @__PURE__ */Kn({size:15,weight:700,lineHeight:19.5}),meta:/* @__PURE__ */Kn({size:13,weight:400,lineHeight:17.55,marginTop:2}),price:/* @__PURE__ */Kn({size:15,weight:700,lineHeight:23.25,tabular:true}),was:/* @__PURE__ */Kn({size:13,weight:400,lineHeight:20.15,tabular:true,deco:"strike"}),smallUpTo:359,smallSq:48}},cl={line:/* @__PURE__ */Xn({w:360,h:147.094,gap:[14,0]}),img:/* @__PURE__ */Xn({w:64,h:64,radius:[14,14],bg:"surface",edge:{width:1.5,color:"#C6D3CD",ring:true}}),imgInset:6,imgFit:"contain",name:/* @__PURE__ */Xn({w:216,h:22.094,gap:[8,4],center:true}),nameText:/* @__PURE__ */Kn({size:17,weight:700,lineHeight:22.1,wrap:"auto"}),badge:/* @__PURE__ */Xn({w:32.625,h:22,padding:[0,8,0,8],radius:[999,999],bg:"#DEE4F1",edge:{width:1.5,color:"rgba(90, 96, 135, 0.45)",ring:true},center:true}),badgeText:/* @__PURE__ */Kn({size:13,weight:700,lineHeight:13,wrap:"auto"}),meta:/* @__PURE__ */Kn({size:15,weight:400,lineHeight:21,marginTop:2}),note:/* @__PURE__ */Kn({size:15,weight:700,lineHeight:21,color:"ink",marginTop:2}),acts:/* @__PURE__ */Xn({w:282,h:92,marginTop:10,gap:[12,8],center:true}),plan:/* @__PURE__ */Xn({w:193.703,h:44,padding:[3,3,3,3],radius:[999,999],bg:"surface",edge:{width:1.5,color:"#C6D3CD",ring:true}}),planBtn:/* @__PURE__ */Xn({w:63.859,h:38,padding:[0,14,0,14],minHeight:38,radius:[999,999]}),planText:/* @__PURE__ */Kn({size:15,weight:500,lineHeight:23.25,wrap:"auto"}),planOn:/* @__PURE__ */Xn({w:123.844,h:38,padding:[0,14,0,14],minHeight:38,radius:[999,999],bg:"ink",color:"surface"}),planOnText:/* @__PURE__ */Kn({size:15,weight:700,lineHeight:23.25,color:"surface",wrap:"auto"}),qty:/* @__PURE__ */Xn({w:104,h:40,radius:[999,999],bg:"surface",edge:{width:1.5,color:"#C6D3CD",ring:true},center:true}),countMin:24,qtyBtn:/* @__PURE__ */Xn({w:40,h:40,radius:[20,20],center:true}),qtyIcon:/* @__PURE__ */Xn({w:16,h:16}),count:/* @__PURE__ */Kn({size:15,weight:700,lineHeight:23.25,wrap:"auto",tabular:true}),remove:/* @__PURE__ */Xn({w:58.359,h:40,minHeight:40,color:"ink"}),removeText:/* @__PURE__ */Kn({size:15,weight:700,lineHeight:23.25,color:"ink",wrap:"auto",deco:"underline",decoOffset:3}),price:/* @__PURE__ */Kn({size:17,weight:700,lineHeight:22.1,wrap:"auto",tabular:true}),was:/* @__PURE__ */Kn({size:15,weight:400,lineHeight:19.5,wrap:"auto",tabular:true,deco:"strike"}),pressScale:.9,hover:{color:"ink",share:.06,over:"surface"},motion:{press:140,fill:150,planFill:150}},dl={note:/* @__PURE__ */Kn({size:13,weight:400,lineHeight:19.5,color:"muted",marginTop:12}),noteStrong:/* @__PURE__ */Kn({size:13,weight:700,lineHeight:19.5,color:"muted"})};var ul={card:/* @__PURE__ */Xn({w:325,h:125.25,padding:[14,16,14,16],radius:[0,20],bg:"surface",shadow:{color:"rgba(0, 0, 0, 0.06)",x:0,y:2,blur:3,spread:-1}}),kicker:/* @__PURE__ */Xn({w:293,h:24,gap:[8,8],center:true}),kickerText:/* @__PURE__ */Kn({size:15,weight:700,lineHeight:23.25}),source:/* @__PURE__ */Xn({w:116.719,h:24,padding:[0,9,0,9],radius:[999,999],bg:"#DAF6E8",center:true,color:"ink"}),sourceText:/* @__PURE__ */Kn({size:12,weight:700,lineHeight:18.6,color:"ink"}),title:/* @__PURE__ */Kn({shown:false,size:15,weight:700,lineHeight:23.25}),signal:/* @__PURE__ */Xn({w:293,h:65.25,marginTop:8,gap:[9,9],color:"#4D4D4D"}),signalText:/* @__PURE__ */Kn({size:15,weight:400,lineHeight:21.75,color:"#4D4D4D"}),signalLead:/* @__PURE__ */Kn({size:15,weight:700,lineHeight:21.75}),dot:/* @__PURE__ */Xn({w:9,h:9,radius:[4.5,4.5],bg:"alert",color:"#4D4D4D",dy:-1}),score:/* @__PURE__ */Xn({w:293,h:99.859,padding:[10,14,10,14],marginTop:12,gap:[12,12],radius:[10,10],bg:"#FCF0D6",center:true}),scoreLabel:/* @__PURE__ */Kn({size:14,weight:600,lineHeight:18.9,color:"#4D4D4D"}),scoreTag:/* @__PURE__ */Xn({w:63.125,h:20.188,padding:[2,6,2,6],marginTop:3,radius:[6,6],bg:"surface"}),scoreTagText:/* @__PURE__ */Kn({size:12,weight:600,lineHeight:16.2,tracking:.72,face:"mono",upper:true,marginTop:3,paddingTop:2}),scoreNums:/* @__PURE__ */Xn({w:106.109,h:51.141,gap:[6,0],center:true}),scoreWas:/* @__PURE__ */Kn({size:17,weight:700,lineHeight:26.35,color:"muted",deco:"strike",decoThickness:1.5}),scoreArrow:/* @__PURE__ */Xn({w:16,h:16,color:"muted"}),scoreArrowFlip:true,scoreNow:/* @__PURE__ */Kn({size:28,weight:700,lineHeight:28,tracking:-.84,tabular:true}),scoreOf:/* @__PURE__ */Kn({size:15,weight:700,lineHeight:15,color:"#4D4D4D",tabular:true}),scoreSince:/* @__PURE__ */Kn({size:13,weight:700,lineHeight:20.15,color:"ink",marginTop:3})},pl={card:/* @__PURE__ */Xn({w:329,h:380.172,padding:[16,16,16,16],marginTop:14,radius:[22,22],bg:"surface",shadow:{color:"rgba(38, 37, 35, 0.06)",x:0,y:1,blur:3,spread:0},color:"#262523"}),kicker:/* @__PURE__ */Xn({w:297,h:24,gap:[8,8],center:true,color:"#262523"}),kickerText:/* @__PURE__ */Kn({size:15,weight:800,lineHeight:22.5,color:"#262523"}),source:/* @__PURE__ */Xn({w:83.375,h:24,padding:[0,9,0,9],radius:[999,999],bg:"#F2F1EE",center:true,color:"#4A4845"}),sourceText:/* @__PURE__ */Kn({size:12,weight:700,lineHeight:18,color:"#4A4845"}),title:/* @__PURE__ */Kn({size:19,weight:800,lineHeight:23.18,color:"#262523",marginTop:12}),signal:/* @__PURE__ */Xn({w:297,h:65.25,marginTop:6,gap:[9,9],color:"#4A4845"}),signalText:/* @__PURE__ */Kn({size:15,weight:400,lineHeight:21.75,color:"#4A4845"}),signalLead:/* @__PURE__ */Kn({size:15,weight:800,lineHeight:21.75,color:"#262523"}),dot:/* @__PURE__ */Xn({w:9,h:9,radius:[4.5,4.5],bg:"#E5372B",color:"#4A4845",dy:-1}),score:/* @__PURE__ */Xn({w:297,h:69.75,padding:[10,14,10,14],marginTop:12,gap:[12,12],radius:[14,14],bg:"planAccentWash",center:true,color:"#262523"}),scoreLabel:/* @__PURE__ */Kn({size:13.5,weight:600,lineHeight:18.225,color:"#4A4845",wrap:"balance"}),scoreTag:/* @__PURE__ */Xn({w:51.609,h:17.5,padding:[2,6,2,6],marginTop:3,radius:[5,5],bg:"surface",color:"#262523"}),scoreTagText:/* @__PURE__ */Kn({size:10,weight:600,lineHeight:13.5,color:"#262523",tracking:.6,face:"mono",upper:true,wrap:"balance",marginTop:3,paddingTop:2}),scoreNums:/* @__PURE__ */Xn({w:94.75,h:49.75,gap:[6,0],center:true,color:"#262523"}),scoreWas:/* @__PURE__ */Kn({size:17,weight:700,lineHeight:25.5,color:"#6B6863",deco:"strike"}),scoreArrow:/* @__PURE__ */Xn({w:16,h:16,color:"#6B6863"}),scoreArrowFlip:true,scoreNow:/* @__PURE__ */Kn({size:28,weight:800,lineHeight:28,color:"#262523"}),scoreOf:/* @__PURE__ */Kn({size:13,weight:800,lineHeight:13,color:"muted"}),scoreSince:/* @__PURE__ */Kn({size:12.5,weight:700,lineHeight:18.75,color:"planLink",marginTop:3}),sources:/* @__PURE__ */Xn({w:131.375,h:24,gap:[4,4],color:"#262523"}),sourceDna:/* @__PURE__ */Xn({w:44,h:24,padding:[0,9,0,9],radius:[999,999],bg:"planLinkWash",center:true,color:"planLink"}),sourceDnaText:/* @__PURE__ */Kn({size:12,weight:700,lineHeight:18,color:"planLink"}),dotWatch:/* @__PURE__ */Xn({w:9,h:9,radius:[4.5,4.5],bg:"#E5A000",color:"#4A4845",dy:-1}),dotClear:/* @__PURE__ */Xn({w:9,h:9,radius:[4.5,4.5],bg:"#5FA82B",color:"#4A4845",dy:-1}),scoreLabelMax:135,says:/* @__PURE__ */Xn({w:297,h:52,padding:[10,12,10,12],marginTop:12,gap:[10,10],radius:[14,14],bg:"#F8F7F4",color:"#262523"}),saysImg:/* @__PURE__ */Xn({w:32,h:32,radius:[16,16],color:"#262523"}),saysText:/* @__PURE__ */Kn({size:14.5,weight:400,lineHeight:20.3,color:"#4A4845"}),saysBy:/* @__PURE__ */Kn({size:14.5,weight:800,lineHeight:20.3,color:"#262523"}),saysByGap:2,saysTag:/* @__PURE__ */Xn({w:51.609,h:15,padding:[2,6,2,6],radius:[5,5],bg:"surface",color:"#262523"}),saysTagText:/* @__PURE__ */Kn({size:10,weight:400,lineHeight:14,color:"#262523",tracking:.6,face:"mono",upper:true,paddingTop:2}),saysBare:/* @__PURE__ */Xn({w:297,h:81,padding:[10,12,10,12],marginTop:12,gap:[10,10],radius:[14,14],bg:"#F8F7F4",color:"#262523"}),saysKicker:/* @__PURE__ */Kn({size:17,weight:400,lineHeight:25.5,color:"#262523"}),saysSerif:/* @__PURE__ */Kn({size:17,weight:800,lineHeight:25.5,color:"#262523",tracking:-.17,wrap:"balance"}),jump:/* @__PURE__ */Xn({w:297,h:60,padding:[8,14,8,8],marginTop:12,gap:[12,12],radius:[14,14],bg:"planInk",center:true,color:"planOnInk"}),jumpImg:/* @__PURE__ */Xn({w:44,h:44,radius:[10,10],bg:"surface",color:"surface"}),jumpKicker:/* @__PURE__ */Kn({size:13,weight:800,lineHeight:19.5,color:"planAccent"}),jumpTitle:/* @__PURE__ */Kn({size:15,weight:800,lineHeight:18.75,color:"planOnInk"}),jumpGo:/* @__PURE__ */Kn({size:14,weight:800,lineHeight:21,color:"planOnInk"}),jumpPressScale:.98,more:/* @__PURE__ */Xn({w:87.547,h:36,marginTop:6,marginBottom:-4,gap:[4,4],minHeight:36,center:true,color:"planLink"}),moreText:/* @__PURE__ */Kn({size:15,weight:800,lineHeight:22.5,color:"planLink"}),moreIcon:/* @__PURE__ */Xn({w:16,h:16,color:"planLink"}),moreInset:16,moreTurn:{closed:90,open:-90},rep:/* @__PURE__ */Xn({w:297,h:48.5,padding:[14,14,12,14],marginTop:10,radius:[16,16],bg:"#F8F7F4",color:"#262523"})},hl={card:/* @__PURE__ */Xn({w:201.5,h:275.031,padding:[8,10,10,10],radius:[20,20],bg:"#FCF0D6"}),tones:{y:"#FCF0D6",c:"tintBlue",g:"tintGo",r:"tintPink"},img:/* @__PURE__ */Xn({w:181.5,h:113.438,radius:[10,10],bg:"#F3F3F3"}),n:/* @__PURE__ */Xn({w:28,h:28,radius:[14,14],bg:"surface",center:true,x:8,y:8}),nText:/* @__PURE__ */Kn({size:14,weight:700,lineHeight:14}),title:/* @__PURE__ */Kn({size:16,weight:700,lineHeight:20,marginTop:10}),text:/* @__PURE__ */Kn({size:15,weight:400,lineHeight:21,color:"#4D4D4D",marginTop:4}),foot:/* @__PURE__ */Xn({w:181.5,h:26.594,padding:[8,0,0,0],gap:[4,4],center:true,color:"ink"}),footText:/* @__PURE__ */Kn({size:12,weight:400,lineHeight:18.6,color:"ink",tracking:.48,face:"mono",upper:true,paddingTop:8}),footArrow:/* @__PURE__ */Xn({w:14,h:14,color:"ink"}),footArrowFlip:true,pressScale:.98,bare:/* @__PURE__ */Xn({w:181.5,h:42,padding:[2,0,0,0],center:true}),thumb:/* @__PURE__ */Xn({w:40,h:40,radius:[10,10],bg:"surface",center:true}),thumbIcon:/* @__PURE__ */Xn({w:22,h:22})},gl={card:/* @__PURE__ */Xn({w:221,h:152,padding:[8,8,12,8],radius:[20,20],bg:"#FCF0D6"}),tones:{y:"#FCF0D6",c:"#EEDCC8",g:"tintGo",r:"tintPink"},img:/* @__PURE__ */Xn({w:205,h:102.5,radius:[10,10],bg:"#F3F3F3"}),imgAspect:2,n:/* @__PURE__ */Xn({w:28,h:28,radius:[14,14],bg:"surface",center:true,x:8,y:8}),nText:/* @__PURE__ */Kn({size:14,weight:700,lineHeight:14}),title:/* @__PURE__ */Kn({size:15,weight:700,lineHeight:19.5,marginTop:10}),titleInset:4,pressScale:.98,bare:/* @__PURE__ */Xn({w:205,h:42,padding:[2,0,0,0],center:true}),thumb:/* @__PURE__ */Xn({w:40,h:40,radius:[10,10],bg:"surface",center:true}),thumbIcon:/* @__PURE__ */Xn({w:22,h:22,color:"ink"})},fl={card:/* @__PURE__ */Xn({w:226,h:172.047,gap:[10,10]}),img:/* @__PURE__ */Xn({w:226,h:141.25,radius:[14,14]}),imgAspect:1.6,title:/* @__PURE__ */Kn({size:16,weight:700,lineHeight:20.8,wrap:"balance"}),coverRadius:10,row:{from:440,card:/* @__PURE__ */Xn({w:400,h:80,padding:[6,0,6,0],gap:[10,10],minHeight:80,center:true}),img:/* @__PURE__ */Xn({w:64,h:64,radius:[10,10]}),arrowColumn:18,arrow:/* @__PURE__ */Xn({w:18,h:18,color:"ink"}),arrowTurn:180},phone:{upTo:639,card:/* @__PURE__ */Xn({w:216,h:162.5,gap:[8,8]}),img:/* @__PURE__ */Xn({w:216,h:135,radius:[14,14]}),imgAspect:1.6,title:/* @__PURE__ */Kn({size:15,weight:700,lineHeight:19.5,wrap:"balance"}),smallUpTo:359,smallW:208},mark:{tile:/* @__PURE__ */Xn({w:226,h:141.25,radius:[14,14],bg:"#F5F5F5",center:true,color:"ink"}),icon:{share:.36,min:16,max:40,color:"ink"}},ring:{width:2,offset:2,color:"text"},hoverOffset:3},ml={card:/* @__PURE__ */Xn({w:225.406,h:182.844,padding:[14,14,12,14],radius:[18,18],bg:"planAccentChip",color:"#262523"}),tones:{y:"planAccentChip",c:"planLinkChip",g:"#DDEFC4",r:"#FFD8D6"},top:/* @__PURE__ */Xn({w:197.406,h:30,center:true,color:"#262523"}),nText:/* @__PURE__ */Kn({size:30,weight:900,lineHeight:30,color:"#262523"}),icon:/* @__PURE__ */Xn({w:26,h:26,color:"#262523"}),title:/* @__PURE__ */Kn({size:17,weight:800,lineHeight:21.25,color:"#262523",marginTop:14}),text:/* @__PURE__ */Kn({size:14.5,weight:400,lineHeight:20.3,color:"#4A4845",marginTop:4}),foot:/* @__PURE__ */Xn({w:197.406,h:25.75,padding:[10,0,0,0],color:"planLink"}),footText:/* @__PURE__ */Kn({size:10.5,weight:400,lineHeight:15.75,color:"planLink",tracking:.42,face:"mono",upper:true,paddingTop:10})},bl={line:/* @__PURE__ */Xn({w:297,h:95.625,gap:[12,12],color:"#262523"}),img:/* @__PURE__ */Xn({w:64,h:64,radius:[14,14],bg:"planLinkWash",center:true,color:"planLink"}),icon:/* @__PURE__ */Xn({w:28,h:28,color:"planLink"}),name:/* @__PURE__ */Kn({size:16.5,weight:800,lineHeight:20.625,color:"#262523",wrap:"balance"}),prices:/* @__PURE__ */Xn({w:221,h:24,marginTop:3,gap:[8,2],center:true,color:"#262523"}),price:/* @__PURE__ */Kn({size:16,weight:800,lineHeight:24,color:"#262523",tabular:true}),was:/* @__PURE__ */Kn({size:14,weight:600,lineHeight:21,color:"#6B6863",deco:"strike"}),small:/* @__PURE__ */Kn({size:14,weight:400,lineHeight:21,color:"#6B6863"}),acts:/* @__PURE__ */Xn({w:221,h:40,marginTop:8,gap:[16,16],center:true,color:"#262523"}),step:/* @__PURE__ */Xn({w:110,h:40,radius:[999,999],bg:"surface",edge:{width:1.5,color:"#DAD7D1",ring:true},center:true,color:"#262523"}),remove:/* @__PURE__ */Xn({w:56.422,h:40,minHeight:40,color:"#4A4845"}),removeText:/* @__PURE__ */Kn({size:14.5,weight:700,lineHeight:21.75,color:"#4A4845",deco:"underline",decoOffset:3,decoThickness:1.5})},wl={bar:/* @__PURE__ */Xn({w:361,h:66,padding:[8,8,8,10],gap:[10,10],minHeight:60,radius:[22,22],bg:"surface",shadow:{color:"rgba(0, 0, 0, 0.06)",x:0,y:1,blur:3,spread:0},center:true,x:16}),lift:{color:"rgba(0, 0, 0, 0.09)",x:0,y:10,blur:28,spread:0},thumbs:/* @__PURE__ */Xn({w:88,h:44,padding:[0,4,0,0],center:true}),thumb:/* @__PURE__ */Xn({w:40,h:40,radius:[12,12],bg:"#F3F3F3"}),thumbRing:2,thumbOverlap:18,imgInset:4,imgFit:"contain",imgBlend:"multiply",count:/* @__PURE__ */Xn({w:20,h:20,padding:[0,5,0,5],radius:[10,10],bg:"text",center:true,color:"surface",x:72,y:-4}),countText:/* @__PURE__ */Kn({size:12,weight:700,lineHeight:12,color:"surface",tabular:true}),countAt:{top:-4,right:-4},sum:/* @__PURE__ */Xn({w:130.656,h:35.688,gap:[2,2]}),total:/* @__PURE__ */Kn({size:17,weight:700,lineHeight:18.7,tracking:-.17,tabular:true}),sub:/* @__PURE__ */Kn({size:12,weight:400,lineHeight:15,color:"muted"}),go:/* @__PURE__ */Xn({w:104.344,h:50,padding:[0,18,0,18],gap:[6,6],minHeight:50,radius:[999,999],bg:"pink",edge:{width:1,color:"ink",ring:true},center:true,color:"ink"}),goText:/* @__PURE__ */Kn({size:15,weight:700,lineHeight:23.25,color:"ink"}),pressScale:.97,hover:{color:"pink",share:.9,over:"text"},motion:{rise:{duration:240,from:24,fade:false},bump:{duration:240,scale:1.12,peakAt:.5,curve:"ease-out"}}},yl={bar:/* @__PURE__ */Xn({w:600,h:68,padding:[10,10,10,14],gap:[14,14],minHeight:68,radius:[26,26],bg:"surface",shadow:{color:"rgba(0, 0, 0, 0.06)",x:0,y:1,blur:3,spread:0},center:true}),lift:{color:"rgba(0, 0, 0, 0.09)",x:0,y:10,blur:28,spread:0},thumbs:/* @__PURE__ */Xn({w:102,h:44,padding:[0,6,0,0],center:true}),thumb:/* @__PURE__ */Xn({w:44,h:44,padding:[4,4,4,4],radius:[12,12],bg:"surface",shadow:{color:"rgba(0, 0, 0, 0.14)",x:0,y:1,blur:3,spread:0},fit:"contain"}),thumbRing:2,thumbOverlap:18,imgInset:4,imgFit:"contain",imgBlend:"normal",count:/* @__PURE__ */Xn({w:22,h:22,padding:[0,6,0,6],radius:[11,11],bg:"go",center:true,x:83,y:-5}),countText:/* @__PURE__ */Kn({size:12,weight:700,lineHeight:12,wrap:"auto",tabular:true}),countAt:{top:-5,right:-3},sum:/* @__PURE__ */Xn({w:307.484,h:43.5,gap:[2,2]}),total:/* @__PURE__ */Kn({size:20,weight:700,lineHeight:22,color:"ink",tracking:-.2,tabular:true}),sub:/* @__PURE__ */Kn({size:15,weight:400,lineHeight:19.5}),go:/* @__PURE__ */Xn({w:138.516,h:48,padding:[0,22,0,22],minHeight:48,radius:[999,999],bg:"ink",color:"surface"}),goText:/* @__PURE__ */Kn({size:17,weight:700,lineHeight:26.35,color:"surface",wrap:"auto"}),pressScale:.97,hover:{color:"ink",share:.86,over:"text"},motion:{rise:{duration:260,from:24,fade:true},bump:{duration:240,scale:1.1,peakAt:.5,curve:"out"}},phone:{upTo:559,bar:/* @__PURE__ */Xn({w:335,h:79,padding:[8,8,8,10],gap:[10,10],minHeight:64,radius:[22,22],bg:"surface",center:true}),thumb:/* @__PURE__ */Xn({w:40,h:40,padding:[4,4,4,4],radius:[12,12],bg:"surface",shadow:{color:"#FFFFFF",x:0,y:0,blur:0,spread:2},fit:"contain"}),go:/* @__PURE__ */Xn({w:94.594,h:48,padding:[0,18,0,18],minHeight:48,radius:[999,999],bg:"ink",color:"surface"}),lastOnly:true,wordHidden:true}},xl={card:/* @__PURE__ */Xn({w:393,h:655.609}),head:/* @__PURE__ */Xn({w:393,h:126.328,padding:[4,16,12,16],gap:[12,12]}),pic:/* @__PURE__ */Xn({w:64,h:64,radius:[10,10],bg:"#F3F3F3"}),packInset:.08,kind:/* @__PURE__ */Kn({size:12,weight:700,lineHeight:18.6,color:"ink",tracking:.72,face:"mono",upper:true}),title:/* @__PURE__ */Kn({size:22,weight:700,lineHeight:24.64,tracking:-.55,marginTop:2}),sub:/* @__PURE__ */Kn({size:14,weight:400,lineHeight:18.9,color:"#4D4D4D",marginTop:3}),close:/* @__PURE__ */Xn({w:36,h:36,padding:[1,6,1,6],radius:[18,18],center:true,color:"ink"}),closeIcon:/* @__PURE__ */Xn({w:20,h:20,color:"ink"}),body:/* @__PURE__ */Xn({w:393,h:529.281,padding:[0,16,24,16],gap:[12,12]}),box:/* @__PURE__ */Xn({w:361,h:169.281,padding:[14,14,14,14],radius:[20,20],bg:"tintPink"}),heading:/* @__PURE__ */Kn({size:17,weight:700,lineHeight:21.25}),rows:/* @__PURE__ */Xn({w:333,h:110.031,marginTop:10,gap:[10,10]}),row:/* @__PURE__ */Kn({size:15,weight:400,lineHeight:21.75}),rowHead:/* @__PURE__ */Kn({size:12,weight:400,lineHeight:17.4,color:"ink",tracking:.48,face:"mono",upper:true}),secHeading:/* @__PURE__ */Kn({size:17,weight:700,lineHeight:21.25}),how:/* @__PURE__ */Xn({w:361,h:49.5,marginTop:8,gap:[6,6]}),bullet:/* @__PURE__ */Xn({w:361,h:21.75,gap:[8,8],color:"#4D4D4D"}),bulletText:/* @__PURE__ */Kn({size:15,weight:400,lineHeight:21.75,color:"#4D4D4D"}),bulletColumn:14,dot:{size:6,top:9,color:"ink"},para:/* @__PURE__ */Kn({size:15,weight:400,lineHeight:22.5,color:"#4D4D4D",marginTop:6}),acts:/* @__PURE__ */Xn({w:361,h:98,gap:[2,2]}),btn:/* @__PURE__ */Xn({w:361,h:52,padding:[0,20,0,20],gap:[8,8],minHeight:52,radius:[999,999],bg:"ink",center:true,color:"surface"}),btnText:/* @__PURE__ */Kn({size:16,weight:700,lineHeight:24.8,color:"surface"}),more:/* @__PURE__ */Xn({w:164.891,h:44,padding:[0,12,0,12],minHeight:44,center:true,color:"ink"}),moreText:/* @__PURE__ */Kn({size:15,weight:700,lineHeight:23.25,color:"ink",deco:"underline",decoOffset:3,decoThickness:1.5}),tones:{calm:"tintBlue",y:"#FCF0D6",c:"#EEDCC8",g:"tintGo",r:"tintPink"},photoBg:"#F3F3F3",closeHover:"tintSage",pressScale:.97,hover:{color:"ink",share:.88,over:"surface"}},vl={card:/* @__PURE__ */Xn({w:558,h:571.375}),head:/* @__PURE__ */Xn({w:558,h:105.375,padding:[24,24,12,24],gap:[12,12]}),pic:/* @__PURE__ */Xn({w:64,h:64,radius:[10,10],bg:"#F5F5F5"}),packInset:.08,kind:/* @__PURE__ */Kn({size:15,weight:700,lineHeight:19.5,color:"ink"}),title:/* @__PURE__ */Kn({size:22,weight:500,lineHeight:24.64,color:"ink",tracking:-.44,marginTop:2}),sub:/* @__PURE__ */Kn({size:15,weight:400,lineHeight:20.25,marginTop:3}),close:/* @__PURE__ */Xn({w:40,h:40,padding:[1,6,1,6],radius:[20,20],center:true}),closeIcon:/* @__PURE__ */Xn({w:20,h:20}),body:/* @__PURE__ */Xn({w:558,h:466,padding:[0,24,24,24],gap:[22,22]}),box:/* @__PURE__ */Xn({w:510,h:129}),heading:/* @__PURE__ */Kn({size:16,weight:700,lineHeight:20}),rows:/* @__PURE__ */Xn({w:510,h:99,marginTop:10,gap:[12,12]}),row:/* @__PURE__ */Kn({size:15,weight:400,lineHeight:21.75}),rowHead:/* @__PURE__ */Kn({size:15,weight:700,lineHeight:21.75,color:"ink"}),secHeading:/* @__PURE__ */Kn({size:16,weight:700,lineHeight:20}),how:/* @__PURE__ */Xn({w:510,h:49.5,marginTop:8,gap:[6,6]}),bullet:/* @__PURE__ */Xn({w:510,h:21.75,gap:[8,8]}),bulletText:/* @__PURE__ */Kn({size:15,weight:400,lineHeight:21.75}),bulletColumn:14,dot:{size:6,top:9.75,color:"ink"},para:/* @__PURE__ */Kn({size:15,weight:400,lineHeight:22.5,marginTop:6}),acts:/* @__PURE__ */Xn({w:510,h:92,gap:[2,2]}),btn:/* @__PURE__ */Xn({w:510,h:46,padding:[0,20,0,20],gap:[8,8],minHeight:46,radius:[999,999],bg:"ink",center:true,color:"surface"}),btnText:/* @__PURE__ */Kn({size:17,weight:400,lineHeight:26.35,color:"surface",wrap:"auto"}),more:/* @__PURE__ */Xn({w:164.891,h:44,padding:[0,12,0,12],minHeight:44,center:true,color:"ink"}),moreText:/* @__PURE__ */Kn({size:15,weight:700,lineHeight:23.25,color:"ink",wrap:"auto",deco:"underline",decoOffset:3,decoThickness:1.5}),photoBg:"surface",closeHover:"none",pressScale:.97,hover:{color:"ink",share:.88,over:"surface"},phone:{upTo:419,head:/* @__PURE__ */Xn({w:341,h:145.031,padding:[24,24,12,24],gap:[10,10]}),pic:/* @__PURE__ */Xn({w:48,h:48,radius:[10,10],bg:"#F5F5F5"}),title:/* @__PURE__ */Kn({size:20,weight:500,lineHeight:22.4,color:"ink",tracking:-.4,marginTop:2})}},kl={card:/* @__PURE__ */Xn({w:329,h:323.109,padding:[12,14,12,14],radius:[16,16],edge:{width:1.5,color:"#262523",ring:true},color:"#262523"}),heading:/* @__PURE__ */Kn({size:10.5,weight:400,lineHeight:15.75,color:"#6B6863",tracking:.63,face:"mono",upper:true}),row:/* @__PURE__ */Xn({w:301,h:59.688,marginTop:10,gap:[10,10],color:"#262523"}),chipColumn:58,chips:{dna:{box:/* @__PURE__ */Xn({w:58,h:22,radius:[6,6],bg:"planLinkWash",center:true,color:"planLink"}),text:/* @__PURE__ */Kn({size:10.5,weight:700,lineHeight:15.75,color:"planLink",tracking:.42,face:"mono",upper:true})},record:{box:/* @__PURE__ */Xn({w:58,h:22,radius:[6,6],bg:"#F2F1EE",center:true,color:"#4A4845"}),text:/* @__PURE__ */Kn({size:10.5,weight:700,lineHeight:15.75,color:"#4A4845",tracking:.42,face:"mono",upper:true})},ask:{box:/* @__PURE__ */Xn({w:58,h:22,radius:[6,6],bg:"planAccentWash",center:true,color:"#262523"}),text:/* @__PURE__ */Kn({size:10.5,weight:700,lineHeight:15.75,color:"#262523",tracking:.42,face:"mono",upper:true})}},rowTitle:/* @__PURE__ */Kn({size:15,weight:800,lineHeight:19.5,color:"#262523"}),rowBody:/* @__PURE__ */Kn({size:14,weight:400,lineHeight:19.6,color:"#4A4845",marginTop:1}),score:/* @__PURE__ */Xn({w:301,h:42.797,padding:[11,12,11,14],marginTop:12,gap:[8,8],radius:[12,12],bg:"planInk",center:true,color:"planOnInk"}),scoreText:/* @__PURE__ */Kn({size:14.5,weight:800,lineHeight:18.85,color:"planOnInk"}),scoreValue:/* @__PURE__ */Kn({size:16,weight:700,lineHeight:20.8,color:"planAccent",face:"mono"})},Tl={card:/* @__PURE__ */Xn({w:325,h:134,marginTop:14}),head:/* @__PURE__ */Xn({w:325,h:24,marginBottom:10,gap:[12,12],center:true}),lead:/* @__PURE__ */Kn({size:14,weight:400,lineHeight:18.2,color:"#3D3D3D"}),name:/* @__PURE__ */Kn({size:14,weight:700,lineHeight:18.2,color:"ink"}),pills:{better:{box:/* @__PURE__ */Xn({w:66.094,h:24,padding:[0,10,0,10],minHeight:24,radius:[999,999],bg:"#D7F5E7",center:true,color:"ink"}),text:/* @__PURE__ */Kn({size:12,weight:700,lineHeight:12,color:"ink",tracking:.48,face:"mono"})},same:{box:/* @__PURE__ */Xn({w:50.734,h:24,padding:[0,10,0,10],minHeight:24,radius:[999,999],bg:"#FBEED0",center:true,color:"ink"}),text:/* @__PURE__ */Kn({size:12,weight:700,lineHeight:12,color:"ink",tracking:.48,face:"mono"})},worse:{box:/* @__PURE__ */Xn({w:58.406,h:24,padding:[0,10,0,10],minHeight:24,radius:[999,999],bg:"#F6EBDE",center:true,color:"#834D0D"}),text:/* @__PURE__ */Kn({size:12,weight:700,lineHeight:12,color:"#834D0D",tracking:.48,face:"mono"})}},viz:/* @__PURE__ */Xn({w:325,h:56}),grid:{rows:10,gap:1.5,radius:1.5,widthShare:.6},zones:{lot:6.5,some:3.5},colors:{go:"go",some:"#E4BA55",lot:"#BC6E13"},src:/* @__PURE__ */Xn({w:325,h:44,gap:[16,0],center:true}),srcBtn:/* @__PURE__ */Xn({w:181.5,h:44,gap:[6,6],minHeight:44,center:true,color:"#4D4D4D"}),srcText:/* @__PURE__ */Kn({size:14,weight:400,lineHeight:21.7,color:"#4D4D4D"}),srcIcon:/* @__PURE__ */Xn({w:16,h:16,color:"#5A6087"}),act:/* @__PURE__ */Xn({w:221.172,h:44,padding:[0,20,0,20],marginTop:6,marginBottom:14,minHeight:44,radius:[999,999],bg:"surface",edge:{width:1.5,color:"ink",ring:true},center:true,color:"ink"}),actText:/* @__PURE__ */Kn({size:15,weight:700,lineHeight:23.25,color:"ink",marginTop:6})},jl={card:/* @__PURE__ */Xn({w:393,h:179.25}),body:/* @__PURE__ */Xn({w:393,h:99.25,padding:[0,16,24,16],gap:[24,24]}),question:/* @__PURE__ */Kn({size:17,weight:700,lineHeight:21.25}),picks:/* @__PURE__ */Xn({w:361,h:96,marginTop:10,gap:[8,8]}),pick:/* @__PURE__ */Xn({w:115,h:44,padding:[4,4,4,4],gap:[6,6],minHeight:44,radius:[999,999],bg:"surface",edge:{width:1,color:"ink",ring:false},center:true,color:"ink"}),pickText:/* @__PURE__ */Kn({size:15,weight:400,lineHeight:18,color:"ink",wrap:"balance",paddingTop:4}),pickOn:/* @__PURE__ */Xn({w:115,h:44,padding:[4,4,4,4],gap:[6,6],minHeight:44,radius:[999,999],bg:"pink",edge:{width:1,color:"pink",ring:false},center:true,color:"ink"}),pickOnText:/* @__PURE__ */Kn({size:15,weight:700,lineHeight:18,color:"ink",wrap:"balance",paddingTop:4}),pickHover:{color:"pink",share:.3,over:"surface"},stepTop:16,row:/* @__PURE__ */Xn({w:361,h:44,gap:[8,8],minHeight:44,center:true}),rowLabel:/* @__PURE__ */Kn({size:15,weight:400,lineHeight:18.75}),rowValue:/* @__PURE__ */Kn({size:15,weight:700,lineHeight:18.75}),rowIcon:/* @__PURE__ */Xn({w:18,h:18,color:"ink"}),rowTurn:90,rowPressScale:.98,note:/* @__PURE__ */Xn({w:361,h:60.594,padding:[10,12,10,12],marginTop:12,radius:[10,10],bg:"#FFE8E6"}),noteText:/* @__PURE__ */Kn({size:14,weight:400,lineHeight:20.3,marginTop:12,paddingTop:10}),noteLink:/* @__PURE__ */Kn({size:14,weight:700,lineHeight:20.3,deco:"underline",decoOffset:3}),done:/* @__PURE__ */Kn({size:15,weight:400,lineHeight:21,wrap:"balance",marginTop:12}),acts:/* @__PURE__ */Xn({w:361,h:52,gap:[2,2]}),btn:/* @__PURE__ */Xn({w:361,h:52,padding:[0,20,0,20],gap:[8,8],minHeight:52,radius:[999,999],bg:"ink",center:true,color:"surface"}),btnText:/* @__PURE__ */Kn({size:16,weight:700,lineHeight:24.8,color:"surface"})},Sl={card:/* @__PURE__ */Xn({w:361,h:321.734,padding:[16,16,16,16],gap:[16,16],radius:[20,20],bg:"#FCF4E0"}),skies:{sun:"#FCF4E0",blue:"tintBlue"},now:/* @__PURE__ */Xn({w:329,h:113.891,gap:[12,12],center:true}),temp:/* @__PURE__ */Kn({size:64,weight:700,lineHeight:60.8,color:"ink",tracking:-2.56,tabular:true}),cond:/* @__PURE__ */Kn({size:17,weight:700,lineHeight:22.1,color:"ink",marginTop:8}),hl:/* @__PURE__ */Kn({size:15,weight:400,lineHeight:21,tabular:true,marginTop:2}),glyph:/* @__PURE__ */Xn({w:88,h:88}),walk:/* @__PURE__ */Xn({w:329,h:159.844,padding:[12,16,12,16],gap:[4,4],radius:[10,10],bg:"surface"}),walkTitle:/* @__PURE__ */Xn({w:297,h:22.094,gap:[8,8],center:true,color:"ink"}),walkTitleText:/* @__PURE__ */Kn({size:17,weight:700,lineHeight:22.1,color:"ink"}),walkText:/* @__PURE__ */Kn({size:15,weight:400,lineHeight:21.75}),lvl:/* @__PURE__ */Xn({w:10,h:10,radius:[5,5],bg:"#77DDAC",color:"ink"}),levels:{good:"#77DDAC",ok:"#F4CF7A",hot:"#DC8F7C",storm:"#8DA4BB"},comfort:/* @__PURE__ */Xn({w:297,h:32.5,padding:[12,0,0,0],marginTop:8,gap:[8,6],center:true}),comfortRule:{width:1,color:"line"},comfortLabel:/* @__PURE__ */Kn({size:13,weight:400,lineHeight:16.9,color:"muted"}),comfortValue:/* @__PURE__ */Kn({size:15,weight:700,lineHeight:19.5,color:"ink"}),bar:/* @__PURE__ */Xn({w:82,h:8,gap:[3,3]}),pipOn:/* @__PURE__ */Xn({w:14,h:8,radius:[2,2],bg:"#77DDAC"}),pipOff:/* @__PURE__ */Xn({w:14,h:8,radius:[2,2],bg:"#F1F5F2"})},Il={card:/* @__PURE__ */Xn({w:361,h:265.484,padding:[24,16,24,16],radius:[20,20],bg:"#FCF4E0"}),glyph:/* @__PURE__ */Xn({w:88,h:88}),temp:/* @__PURE__ */Kn({size:72,weight:700,lineHeight:68.4,color:"ink",tracking:-2.88,tabular:true,marginTop:8}),cond:/* @__PURE__ */Kn({size:17,weight:700,lineHeight:22.1,color:"ink",marginTop:8}),hl:/* @__PURE__ */Kn({size:15,weight:400,lineHeight:21,tabular:true,marginTop:2})},zl={card:/* @__PURE__ */Xn({w:272,h:187.984,padding:[16,16,16,16],gap:[8,8],radius:[20,20],bg:"#F5F5F5"}),top:/* @__PURE__ */Xn({w:240,h:24,gap:[8,8],center:true}),label:/* @__PURE__ */Kn({size:12,weight:700,lineHeight:15.6,color:"ink",tracking:.72,face:"mono",upper:true}),glyph:/* @__PURE__ */Xn({w:36,h:36,marginTop:-6,marginBottom:-6}),glyphMargin:[-6,-4,-6,0],big:/* @__PURE__ */Kn({size:28,weight:700,lineHeight:30.8,color:"ink",tracking:-.56,tabular:true}),small:/* @__PURE__ */Kn({size:15,weight:700,lineHeight:16.5,color:"muted",tabular:true}),smallGap:4,meta:/* @__PURE__ */Kn({size:14,weight:400,lineHeight:19.6}),btn:/* @__PURE__ */Xn({w:137.375,h:38,padding:[0,12,0,12],gap:[8,8],minHeight:38,radius:[999,999],bg:"ink",edge:{width:1.5,color:"ink",ring:false},center:true,color:"surface"}),btnText:/* @__PURE__ */Kn({size:15,weight:700,lineHeight:15,color:"surface"}),btnIcon:/* @__PURE__ */Xn({w:20,h:20,color:"surface"})},Dl={card:/* @__PURE__ */Xn({w:533.078,h:242,padding:[24,24,24,24],radius:[20,20],bg:"surface",edge:{width:1,color:"line",ring:false}}),head:/* @__PURE__ */Xn({w:483.078,h:34,marginBottom:16,gap:[12,12],center:true}),city:/* @__PURE__ */Kn({size:24,weight:700,lineHeight:28.8,color:"ink",tracking:-.48,wrap:"auto"}),units:/* @__PURE__ */Xn({w:78,h:34,padding:[2,2,2,2],radius:[999,999],edge:{width:1,color:"line",ring:false}}),unit:/* @__PURE__ */Xn({w:36,h:28,minHeight:28,radius:[999,999],center:true,color:"muted"}),unitText:/* @__PURE__ */Kn({size:13,weight:700,lineHeight:20.15,color:"muted",wrap:"auto"}),unitOn:/* @__PURE__ */Xn({w:36,h:28,minHeight:28,radius:[999,999],bg:"ink",center:true,color:"surface"}),unitOnText:/* @__PURE__ */Kn({size:13,weight:700,lineHeight:20.15,color:"surface",wrap:"auto"}),now:/* @__PURE__ */Xn({w:483.078,h:88,gap:[24,12],center:true}),glyph:/* @__PURE__ */Xn({w:88,h:88}),temp:/* @__PURE__ */Kn({size:51.2,weight:700,lineHeight:51.2,color:"ink",tracking:-1.536,wrap:"auto",tabular:true}),tempFluid:{min:44,vw:4,max:56},sky:/* @__PURE__ */Kn({size:15,weight:400,lineHeight:21,color:"muted",wrap:"auto",marginTop:6}),tags:/* @__PURE__ */Xn({w:483.078,h:30,marginTop:24,gap:[8,8]}),tag:/* @__PURE__ */Xn({w:123.75,h:30,padding:[0,14,0,14],gap:[8,8],minHeight:30,radius:[999,999],bg:"surface",edge:{width:1,color:"#F2C763",ring:false},center:true,color:"ink"}),tagText:/* @__PURE__ */Kn({size:13,weight:700,lineHeight:20.15,color:"ink",wrap:"auto"}),dot:7,hues:{red:"alert",yellow:"#F2C763",green:"go",blue:"#4E98C9",plain:"line",plainDot:"muted"},phone:{upTo:559,card:/* @__PURE__ */Xn({w:335,h:272,padding:[18,18,18,18],radius:[20,20],bg:"surface",edge:{width:1,color:"line",ring:false}}),glyph:/* @__PURE__ */Xn({w:64,h:64})}},Cl={card:/* @__PURE__ */Xn({w:361,h:48,padding:[0,16,0,16],gap:[12,12],minHeight:48,radius:[10,10],bg:"#FBF1EE",center:true,color:"#6D1D14"}),icon:/* @__PURE__ */Xn({w:20,h:20,color:"alert"}),title:/* @__PURE__ */Kn({size:15,weight:700,lineHeight:23.25,color:"#6D1D14"}),titleGap:6,text:/* @__PURE__ */Kn({size:15,weight:400,lineHeight:23.25,color:"#6D1D14"}),chev:/* @__PURE__ */Xn({w:16,h:16,color:"#6D1D14"}),pressScale:.98},Hl={grid:/* @__PURE__ */Xn({w:361,h:591.25,gap:[12,12]}),tile:/* @__PURE__ */Xn({w:174.5,h:143.359,padding:[14,14,14,14],gap:[6,6],minHeight:120,radius:[20,20],bg:"surface",edge:{width:1,color:"line",ring:false}}),label:/* @__PURE__ */Kn({size:12,weight:700,lineHeight:15.6,color:"muted",tracking:.72,face:"mono",upper:true}),labelGap:6,icon:/* @__PURE__ */Xn({w:16,h:16,color:"ink"}),chev:/* @__PURE__ */Xn({w:14,h:14,color:"muted"}),value:/* @__PURE__ */Kn({size:28,weight:700,lineHeight:30.8,color:"ink",tracking:-.56,tabular:true}),valueGap:6,unit:/* @__PURE__ */Kn({size:15,weight:700,lineHeight:16.5,color:"ink",tabular:true}),note:/* @__PURE__ */Kn({size:13,weight:400,lineHeight:18.2}),pressScale:.98},Fl={cell:/* @__PURE__ */Xn({w:54,h:100,padding:[2,0,0,0],gap:[4,4],center:true}),column:54,rows:[18,32,16,20,6],time:/* @__PURE__ */Kn({size:13,weight:400,lineHeight:15.6,color:"muted"}),timeNow:/* @__PURE__ */Kn({size:13,weight:700,lineHeight:15.6,color:"ink"}),glyph:/* @__PURE__ */Xn({w:32,h:32}),icon:/* @__PURE__ */Xn({w:24,h:24,color:"#926F06"}),chance:/* @__PURE__ */Kn({size:12,weight:700,lineHeight:12,color:"#1E7AB7",face:"mono"}),temp:/* @__PURE__ */Kn({size:15,weight:700,lineHeight:18,color:"ink",tabular:true}),quiet:/* @__PURE__ */Kn({size:13,weight:400,lineHeight:15.6,color:"muted",tabular:true}),bar:/* @__PURE__ */Xn({w:52,h:6,radius:[3,3],bg:"#77DDAC"}),barInset:1,levels:{good:"#77DDAC",ok:"#F4CF7A",hot:"#DC8F7C",storm:"#8DA4BB"},windows:/* @__PURE__ */Xn({w:327,h:76.594,marginBottom:12,gap:[8,8]}),window:/* @__PURE__ */Xn({w:159.5,h:76.594,padding:[10,12,10,12],gap:[2,2],radius:[10,10],bg:"tintGo"}),windowTitle:/* @__PURE__ */Kn({size:15,weight:700,lineHeight:19.5,color:"ink",tabular:true}),windowText:/* @__PURE__ */Kn({size:13,weight:400,lineHeight:17.55}),legend:/* @__PURE__ */Xn({w:327,h:18.188,marginTop:12,gap:[14,4],color:"muted"}),legendItem:/* @__PURE__ */Xn({w:47.813,h:18.188,gap:[6,6],center:true,color:"muted"}),legendText:/* @__PURE__ */Kn({size:13,weight:400,lineHeight:18.2,color:"muted",marginTop:12}),legendDot:/* @__PURE__ */Xn({w:10,h:10,radius:[5,5],bg:"#77DDAC",color:"muted"})},_l={row:/* @__PURE__ */Xn({w:327,h:48,gap:[8,8],minHeight:48,center:true}),rule:{width:1,color:"line"},columns:[48,32,30,155,30],walkColumns:[42,30,28,73,28,86],day:/* @__PURE__ */Kn({size:15,weight:700,lineHeight:18,color:"ink"}),sky:/* @__PURE__ */Xn({w:32,h:30,gap:[1,1]}),glyph:/* @__PURE__ */Xn({w:30,h:30}),chance:/* @__PURE__ */Kn({size:12,weight:700,lineHeight:12,color:"#1E7AB7",face:"mono"}),low:/* @__PURE__ */Kn({size:14,weight:400,lineHeight:14,color:"muted",face:"mono",tabular:true}),high:/* @__PURE__ */Kn({size:14,weight:400,lineHeight:14,color:"ink",face:"mono",tabular:true}),bar:/* @__PURE__ */Xn({w:155,h:6,radius:[3,3],bg:"#F1F5F2"}),fill:/* @__PURE__ */Xn({w:99.203,h:6,radius:[3,3],bg:"#DDB44F",x:23.25}),tag:/* @__PURE__ */Xn({w:42.016,h:24,padding:[0,10,0,10],minHeight:24,radius:[999,999],bg:"#FCF0D6",edge:{width:1,color:"tintYellowEdge",ring:true},center:true,color:"ink"}),tagText:/* @__PURE__ */Kn({size:12,weight:700,lineHeight:14.4,color:"ink"}),tags:{good:{bg:"tintGo",ring:"#8FE3BB",ringWidth:1,color:"ink"},ok:{bg:"#FCF0D6",ring:"tintYellowEdge",ringWidth:1,color:"ink"},warn:{bg:"#FBF1EE",ring:"#E9B8AB",ringWidth:1,color:"#6D1D14"},rain:{bg:"tintBlue",ring:"#AFD1E7",ringWidth:1,color:"ink"}}},Ol={phone:{list:/* @__PURE__ */Xn({w:361,h:140,marginTop:16,marginBottom:16,gap:[12,12]}),row:/* @__PURE__ */Xn({w:361,h:26,gap:[8,8],center:true}),columns:[24,56,185,72],icon:/* @__PURE__ */Xn({w:26,h:26}),name:/* @__PURE__ */Kn({size:15,weight:400,lineHeight:23.25}),bar:/* @__PURE__ */Xn({w:185,h:8,radius:[999,999],bg:"#ECECEC"}),fills:{high:"#B67A3F",mid:"#F2C763",low:"ink"},level:{high:/* @__PURE__ */Kn({size:13,weight:700,lineHeight:20.15,color:"#A05E32",face:"mono"}),mid:/* @__PURE__ */Kn({size:13,weight:400,lineHeight:20.15,color:"#A05E32",face:"mono"}),low:/* @__PURE__ */Kn({size:13,weight:400,lineHeight:20.15,color:"muted",face:"mono"})}},web:{list:/* @__PURE__ */Xn({w:344.891,h:140,marginTop:16,marginBottom:16,gap:[12,12]}),row:/* @__PURE__ */Xn({w:344.891,h:26,gap:[12,12],center:true}),columns:[26,64,138.891,80],icon:/* @__PURE__ */Xn({w:26,h:26}),name:/* @__PURE__ */Kn({size:15,weight:400,lineHeight:23.25,wrap:"auto"}),bar:/* @__PURE__ */Xn({w:138.891,h:8,radius:[999,999],bg:"#ECECEC"}),fills:{high:"#B67A3F",mid:"#F2C763",low:"ink"},level:{high:/* @__PURE__ */Kn({size:13,weight:700,lineHeight:20.15,color:"#A05E32",face:"mono",wrap:"auto"}),mid:/* @__PURE__ */Kn({size:13,weight:400,lineHeight:20.15,color:"#A05E32",face:"mono",wrap:"auto"}),low:/* @__PURE__ */Kn({size:13,weight:400,lineHeight:20.15,color:"muted",face:"mono",wrap:"auto"})}},webPhoneUpTo:559},El={phone:{body:/* @__PURE__ */Xn({w:361,h:88.344,gap:[12,12]}),gap:12,picks:/* @__PURE__ */Xn({w:361,h:36,gap:[10,10]}),on:/* @__PURE__ */Xn({w:103.016,h:36,padding:[0,12,0,12],gap:[6,6],minHeight:36,radius:[999,999],bg:"pink",edge:{width:1,color:"pink",ring:false},center:true,color:"ink"}),onText:/* @__PURE__ */Kn({size:15,weight:700,lineHeight:19.5,color:"ink"}),off:/* @__PURE__ */Xn({w:86.875,h:36,padding:[0,12,0,12],gap:[6,6],minHeight:36,radius:[999,999],bg:"surface",edge:{width:1,color:"ink",ring:false},center:true,color:"ink"}),offText:/* @__PURE__ */Kn({size:15,weight:400,lineHeight:19.5,color:"ink"}),check:/* @__PURE__ */Xn({w:16,h:16,color:"ink"}),read:/* @__PURE__ */Xn({w:361,h:40.344,gap:[12,0]}),value:/* @__PURE__ */Kn({size:36,weight:700,lineHeight:37.8,color:"ink",tracking:-.72,tabular:true}),word:/* @__PURE__ */Kn({size:17,weight:700,lineHeight:26.35,color:"alert",tracking:.34,face:"mono",upper:true})},web:{body:/* @__PURE__ */Xn({w:344.891,h:140.344}),gap:16,picks:/* @__PURE__ */Xn({w:344.891,h:82,marginTop:16,marginBottom:16,gap:[10,10]}),on:/* @__PURE__ */Xn({w:107.016,h:36,padding:[0,14,0,14],gap:[6,6],minHeight:36,radius:[999,999],bg:"pink",edge:{width:1,color:"pink",ring:false},center:true,color:"ink"}),onText:/* @__PURE__ */Kn({size:15,weight:700,lineHeight:19.5,color:"ink",wrap:"auto"}),off:/* @__PURE__ */Xn({w:90.875,h:36,padding:[0,14,0,14],gap:[6,6],minHeight:36,radius:[999,999],bg:"surface",edge:{width:1,color:"ink",ring:false},center:true,color:"ink"}),offText:/* @__PURE__ */Kn({size:15,weight:400,lineHeight:19.5,color:"ink",wrap:"auto"}),check:/* @__PURE__ */Xn({w:16,h:16,color:"ink"}),read:/* @__PURE__ */Xn({w:344.891,h:42.344,gap:[12,0]}),value:/* @__PURE__ */Kn({size:38.4,weight:700,lineHeight:40.32,color:"ink",tracking:-.768,wrap:"auto",tabular:true}),word:/* @__PURE__ */Kn({size:17,weight:700,lineHeight:26.35,color:"#A05E32",tracking:.34,face:"mono",upper:true,wrap:"auto"})},fluid:{min:36,vw:3,max:44},tones:{good:"#0C844B",ok:"#A05E32",low:"alert"}};function Pl(e){if(e!==null&&typeof e=="object"&&!Object.isFrozen(e))for(let t of Object.values(e))Pl(t);return e}var Ll=qn,Al=/* @__PURE__ */Symbol.for("@everfur-health/ui-core#preset@v1");function Bl(e){return Object.defineProperty(e,Al,{value:e,enumerable:true}),Pl(e)}var Rl={content:0,heading:2,control:1.8,compact:1.5,badge:1.3},Vl=Bl({name:"everfur",colors:{bg:Ll.color.bg,surface:Ll.color.efWhite,text:Ll.color.text,ink:Ll.role.color.ink,onInk:Ll.color.efWhite,muted:Ll.role.color.muted,line:Ll.role.color.line,go:Ll.role.color.go,onGo:Ll.role.color.ink,pink:Ll.color.efDustyPink,onPink:Ll.role.color.ink,alert:Ll.color.alert,alertDeep:Ll.color.alertDeep,icoSage:Ll.role.color.icoSage,bgMist:Ll.color.bgMist,tintSage:Ll.role.color.tintSage,tintBlue:Ll.role.color.tintBlue,tintGo:Ll.role.color.tintGo,tintPink:Ll.role.color.tintPink,tintYellowEdge:Ll.role.color.tintYellowEdge,tintWatch:Qn.colors.watch,tintRed:Ll.role.color.tintRed,scrim:Qn.colors.scrim,grab:Qn.colors.grab,focus:Ll.role.color.ink,planInk:Qn.colors.planInk,planOnInk:Qn.colors.planOnInk,planAccent:Qn.colors.planAccent,planLink:Qn.colors.planLink,planAccentWash:Qn.colors.planAccentWash,planAccentChip:Qn.colors.planAccentChip,planLinkWash:Qn.colors.planLinkWash,planLinkChip:Qn.colors.planLinkChip},radius:{...Ll.radius},space:{...Ll.space},type:{family:Ll.font.family.base,mono:Ll.font.family.mono,faces:{regular:"Azeret-Regular",medium:"Azeret-Medium",bold:"Azeret-Bold",mono:"AzeretMono-Regular",monoBold:"AzeretMono-Bold"},namedFaces:true,size:{xs:Ll.font.size.xs,sm:Ll.font.size.sm,md:Ll.font.size.md,lg:Ll.font.size.lg,xl:Ll.font.size.xl},weight:{...Ll.font.weight},lineHeight:{...Ll.font.lineHeight},scaleCaps:Rl},motion:{duration:{press:Ll.motion.duration.press,fade:Ll.motion.duration.fade,enter:Ll.motion.duration.enter,sheet:Ll.motion.duration.sheet,sheetOut:Ll.motion.duration.sheetOut},easing:{out:Ll.motion.easing.out,drawer:Ll.motion.easing.drawer},pop:{duration:Ll.motion.duration.enter,from:.95,peakAt:.55,amplitude:.035,switchAmplitude:.06},reduced:false},metrics:Qn});function $l(e){return e[Al]??Vl}function Wl(e){return e!==null&&typeof e=="object"&&!Array.isArray(e)}function Ml(e,t){if(!Wl(e)||!Wl(t))return t===void 0?e:t;let i={...e};for(let[r,n]of Object.entries(t))n!==void 0&&(i[r]=Ml(e[r],n));return i}function resolveTheme(e,t=Vl){if(!e)return t;let i=Ml(t,e),r=e.colors;if(r){let e=i.colors;for(let[t,i,n]of Nl){let l=r[i];l!==void 0&&r[t]===void 0&&(e[t]=Gl(l,n,e.surface)??e[t]??l)}}return Pl(i)}var Nl=[["planAccentWash","planAccent",.17],["planAccentChip","planAccent",.47],["planLinkWash","planLink",.12],["planLinkChip","planLink",.2]];function Gl(e,t,i){let r=e=>{let t=/^#([0-9a-f]{2})([0-9a-f]{2})([0-9a-f]{2})$/i.exec(e??"");return t?[t[1],t[2],t[3]].map(e=>parseInt(e,16)):void 0},[n,l]=[r(e),r(i)];if(!(!n||!l))return`#${n.map((e,i)=>Math.round(e*t+(l[i]??0)*(1-t)).toString(16).padStart(2,"0")).join("").toUpperCase()}`}var ql=/* @__PURE__ */(()=>{let t=/* @__PURE__ */Symbol.for("@everfur-health/ui-core#ThemeContext@v1"),i=globalThis,r=i[t]??(i[t]=e.createContext(null));return r.displayName??(r.displayName="EverfurThemeContext"),r})();function ThemeProvider({theme:t,children:i}){let r=Zl(),n=t===void 0||Yl(t)?t:Ul(t),l=e.useMemo(()=>Yl(t)?Jl(t):resolveTheme(t,r),[n,r]);return e.createElement(ql.Provider,{value:l},i)}function Ul(e){return JSON.stringify(e,(e,t)=>Wl(t)&&!Array.isArray(t)?Object.fromEntries(Object.keys(t).sort().map(e=>[e,t[e]])):t)}function Yl(e){return e!==void 0&&Object.isFrozen(e)&&Xl.every(t=>t in e)}var Xl=["name","colors","radius","space","type","motion","metrics"];function Kl(e,t){if(e===void 0)return true;if(!Wl(e))return t!==void 0;if(!Wl(t))return false;for(let i of Object.keys(e))if(!Kl(e[i],t[i]))return false;return true}var Ql=/* @__PURE__ */new WeakMap;function Jl(e){let t=Ql.get(e);if(t)return t;if(Kl(Vl,e))return Ql.set(e,e),e;let i=$l(e),r=Ml(Vl,i===Vl?e:Ml(i,e));r[Al]=i;let n=Pl(r);return Ql.set(e,n),n}function Zl(){let t=e.useContext(ql);return t?Jl(t):Vl}var eo=e=>Math.round(e*1e3)/1e3;function to(e,t=false){return t?e>450?"monoBold":"mono":e>500?"bold":e>450?"medium":"regular"}function io(e,t){let i=/^#([0-9a-f]{2})([0-9a-f]{2})([0-9a-f]{2})$/i.exec(e);if(!i)return e;let[r,n,l]=[i[1],i[2],i[3]].map(e=>parseInt(e,16));return`rgba(${r}, ${n}, ${l}, ${t})`}function ro(e){let t=/^#([0-9a-f]{2})([0-9a-f]{2})([0-9a-f]{2})$/i.exec(e);if(t)return[t[1],t[2],t[3]].map(e=>parseInt(e,16));let i=/^rgba?\(\s*([\d.]+)[\s,]+([\d.]+)[\s,]+([\d.]+)/i.exec(e);return i?[i[1],i[2],i[3]].map(Number):void 0}function no(e,t,i,r){let[n,l]=[ro(e),ro(i)];return!n||!l?r:`rgb(${n.map((e,i)=>Math.round(e*t+(l[i]??0)*(1-t))).join(", ")})`}function lo(e,t){let i=/^([a-zA-Z]+)(?:\/([\d.]+))?$/.exec(t),r=i?.[1];if(!i||r===void 0||!(r in e.colors))return t;let n=e.colors[r];return i[2]===void 0?n:io(n,Number(i[2]))}function oo(e,t){return t==="none"?"transparent":lo(e,t)}var ao=.45;function so(e,t,i,r=false){let n=e.metrics.button;if(t==="text"){let t=n.text;return{minHeight:0,paddingX:0,gap:n.ink.gap,radius:0,borderWidth:0,borderColor:"transparent",background:"transparent",iconSize:n.inkSm.iconSize,text:{size:t.fontSize,weight:t.fontWeight,lineHeight:eo(t.fontSize*t.lineHeight),color:lo(e,t.color)},pressScale:1,pressOpacity:t.pressOpacity,disabledOpacity:n.blockedOpacity??ao,fill:false,ring:false}}let l=e.metrics.variants.button,o=co(i),a=t==="outline"||t==="danger"||t==="warn",s=o?{...i==="compactSm"?l.sm:i==="compactLg"?l.lg:l.ink,borderWidth:a?l.outline.borderWidth:0,ring:l.outline.ring}:i==="row"?n.row:t==="danger"?n.danger:i==="sm"?n[`${t}Sm`]:n[t],c=e.colors,d=t==="money"||t==="warn"?n[t]:void 0,u={ink:{bg:c.ink,fg:c.onInk,edge:c.ink},go:{bg:c.go,fg:c.onGo,edge:c.ink},outline:{bg:"transparent",fg:c.ink,edge:c.ink},pink:{bg:c.pink,fg:c.onPink,edge:c.ink},danger:{bg:c.surface,fg:c.alert,edge:c.alert}},p=d?{bg:oo(e,d.bg),fg:lo(e,d.fg),edge:lo(e,d.edgeColor)}:u[t],h=t==="outline"&&r&&!o?n.outlineInSheetWeight:s.fontWeight;return{minHeight:s.minHeight,paddingX:s.paddingX,gap:s.gap,radius:e.radius.pill,borderWidth:s.borderWidth,borderColor:p.edge,background:p.bg,iconSize:s.iconSize,text:{size:s.fontSize,weight:h,lineHeight:eo(s.fontSize*s.lineHeight),color:p.fg},pressScale:e.motion.reduced?1:o?l.press:e.metrics.press.button,pressOpacity:1,disabledOpacity:o?l.disabledOpacity:n.blockedOpacity??ao,fill:s.fill,ring:s.ring}}function co(e){return e==="compact"||e==="compactSm"||e==="compactLg"}function uo(e,t){let i=e.metrics.pill,r=i.tones[t],n=t==="clear"?e.colors.ink:lo(e,r.fg);return{minHeight:i.minHeight,paddingX:i.paddingX,radius:e.radius.pill,background:lo(e,r.bg),ring:r.ring>0?{width:r.ring,color:lo(e,r.ringColor)}:null,dot:t==="new"?{size:i.dot,gap:i.dotGap,color:e.colors.go}:t==="allergy"?{size:i.allergyDot.size,gap:i.allergyDot.gap,color:lo(e,i.allergyDot.color)}:null,text:{size:i.fontSize,weight:i.fontWeight,lineHeight:eo(i.fontSize*i.lineHeight),color:n,mono:i.mono,tracking:i.letterSpacing,upper:i.upper}}}function po(e,t){let i=e.metrics.sheet,r=i.titleSize,n=i.titleLineHeight??e.metrics.card.titleLineHeight;return{size:r,weight:i.titleWeight??e.metrics.card.titleWeight,lineHeight:eo(r*n),color:lo(e,i.titleColor??"ink"),tracking:i.titleTracking??e.metrics.card.titleTracking}}function ho(e){let t=e.metrics,i=e.colors;return{cardTitle:{size:t.card.titleSize,weight:t.card.titleWeight,lineHeight:eo(t.card.titleSize*t.card.titleLineHeight),color:i.ink,tracking:t.card.titleTracking},cardLead:{size:t.card.leadSize,weight:e.type.weight.regular,lineHeight:eo(t.card.leadSize*t.card.leadLineHeight),color:i.text},body:{size:t.card.bodySize,weight:e.type.weight.regular,lineHeight:eo(t.card.bodySize*t.card.bodyLineHeight),color:i.text},kicker:{size:t.kicker.fontSize,weight:t.kicker.fontWeight,lineHeight:eo(t.kicker.fontSize*t.kicker.lineHeight),color:i.muted,mono:true,tracking:t.kicker.letterSpacing,upper:true},sheetTitle:po(e),stepperValue:{size:t.quantityStepper.valueSize,weight:t.quantityStepper.valueWeight,lineHeight:eo(t.quantityStepper.valueSize*t.quantityStepper.valueLineHeight),color:lo(e,t.quantityStepper.valueColor??"text")},tab:{size:t.tabs.fontSize,weight:t.tabs.fontWeight,lineHeight:eo(t.tabs.fontSize*t.tabs.lineHeight),color:i.muted},tabCurrent:{size:t.tabs.fontSize,weight:t.tabs.currentWeight,lineHeight:eo(t.tabs.fontSize*t.tabs.lineHeight),color:i.ink},emptyTitle:{size:t.empty.titleSize,weight:t.empty.titleWeight,lineHeight:eo(t.empty.titleSize*t.empty.titleLineHeight),color:i.ink,tracking:t.empty.titleTracking},emptyLead:{size:t.empty.leadSize,weight:e.type.weight.regular,lineHeight:eo(t.empty.leadSize*t.empty.leadLineHeight),color:i.text},emptyLink:{size:t.empty.linkSize,weight:t.empty.linkWeight,lineHeight:eo(t.empty.linkSize*t.card.bodyLineHeight),color:i.ink},sumTerm:{size:t.summary.termSize,weight:e.type.weight.regular,lineHeight:eo(t.summary.termSize*t.summary.termLineHeight),color:i.muted},sumValue:{size:t.summary.valueSize,weight:t.summary.valueWeight,lineHeight:eo(t.summary.valueSize*t.summary.valueLineHeight),color:i.ink},sumTotal:{size:t.summary.totalSize,weight:t.summary.valueWeight,lineHeight:eo(t.summary.totalSize*t.summary.totalLineHeight),color:i.ink}}}function go(e){let t=e.metrics.quantityStepper;return{edge:{width:t.borderWidth,color:lo(e,t.borderColor),inset:t.ring},button:t.button,icon:t.icon,valueMinWidth:t.valueMinWidth,fill:oo(e,t.fill??"none"),glyph:lo(e,t.glyph??"ink"),off:{color:lo(e,t.offColor),opacity:t.offOpacity}}}function fo(e,t){return{size:t.size,weight:t.weight,lineHeight:t.lineHeight,color:lo(e,t.color),...t.face==="mono"?{mono:true}:{},...t.face==="serif"?{serif:true}:{},...t.tracking?{tracking:t.tracking}:{},...t.upper?{upper:true}:{},...t.deco==="none"?{}:{deco:t.deco==="strike"?"strike":"underline",decoOffset:t.decoOffset,decoThickness:t.decoThickness},...t.tabular?{tabular:true}:{},...t.wrap==="auto"?{}:{wrap:t.wrap==="balance"?"balance":"pretty"}}}function mo(e,t){return t==="none"?void 0:lo(e,t)}function bo(e){let t=e.metrics.summary,i=(e,t)=>eo(e*t);return{paddingX:t.paddingX,paddingY:t.paddingY,radius:t.radius,borderWidth:t.borderWidth,borderColor:e.colors.line,background:lo(e,t.background),shadow:t.shadow,row:{paddingY:t.rowPaddingY,minHeight:t.rowMinHeight,gapX:t.rowGapX,gapY:t.rowGapY,divider:t.rowDivider,center:t.rowCenter},totalRowMinHeight:t.totalRowMinHeight,gap:t.gap??0,totalMarginTop:t.totalMarginTop??0,tabular:t.tabular,term:{size:t.termSize,weight:e.type.weight.regular,lineHeight:i(t.termSize,t.termLineHeight),color:lo(e,t.termColor)},value:{size:t.valueSize,weight:t.valueWeight,lineHeight:i(t.valueSize,t.valueLineHeight),color:lo(e,t.valueColor)},totalTerm:{size:t.totalTermSize,weight:t.totalTermWeight,lineHeight:i(t.totalTermSize,t.termLineHeight),color:lo(e,t.totalTermColor)},total:{size:t.totalSize,weight:t.totalWeight,lineHeight:i(t.totalSize,t.totalLineHeight),color:lo(e,t.valueColor)},off:fo(e,e.metrics.summary.off)}}function wo(e,t){let i=e.metrics.skeleton.widths;return`${i[t%i.length]}%`}function yo(e,t,i){return Math.max(t,i===void 0?e:Math.min(i,e))}function xo(e,t,i){return i!==void 0?i:e===void 0?void 0:`${e}-${t}`}var vo=e=>e,ko=e=>"edge"in e&&"shadow"in e&&"fit"in e,To=e=>"deco"in e&&"face"in e&&"tabular"in e;function jo(e){let t=/* @__PURE__ */new Map;for(let[i,r]of Object.entries(e))t.has(r)||t.set(r,i);return t}var So,Io=/* @__PURE__ */new WeakMap;function zo(e,t,i){let r=e.get(i),n=r===void 0?void 0:t[r];return typeof n=="number"?n:i}function Do(e){let t=Vl;return e.space===t.space&&e.radius===t.radius&&e.type.size===t.type.size&&e.type.weight===t.type.weight}function Co(e,t){let i=Vl;So??(So={space:jo(vo(i.space)),radius:jo(vo(i.radius)),size:jo(vo(i.type.size)),weight:jo(vo(i.type.weight))});let r=So,n=t=>zo(r.space,vo(e.space),t),l=t=>zo(r.radius,vo(e.radius),t),o=t=>Array.isArray(t)?t.map(o):t===null||typeof t!="object"?t:ko(t)?{...t,padding:t.padding.map(n),gap:t.gap.map(n),marginTop:n(t.marginTop),marginBottom:n(t.marginBottom),radius:t.radius.map(l)}:To(t)?{...t,size:zo(r.size,vo(e.type.size),t.size),weight:zo(r.weight,vo(e.type.weight),t.weight),marginTop:n(t.marginTop),paddingTop:n(t.paddingTop)}:Object.fromEntries(Object.entries(t).map(([e,t])=>[e,o(t)]));return o(t)}function Ho(e,t){if(Do(e))return t;let i=Io.get(t);i||Io.set(t,i=/* @__PURE__ */new WeakMap);let r=i.get(e);if(r)return r;let n=Co(e,t);return i.set(e,n),n}function Fo(e,t,i,r,n=false){let l=e.length;if(l===0||t<=0)return[];let{rows:o,gap:a,widthShare:s}=r.grid,c=t/l,d=Math.max(1,Math.round(c*s)),u=Number(((i-(o-1)*a)/o).toFixed(2));return e.map((e,l)=>{let s=Number.isFinite(e)?Math.min(10,Math.max(0,e)):0,p=[];for(let e=0;e<o;e+=1){let t=Number(Math.max(0,Math.min(1,s-e)).toFixed(3));t>0&&p.push({y:Number((i-(e+1)*((i-(o-1)*a)/o)-e*a).toFixed(2)),height:u,opacity:t})}let h=Math.round(l*c+(c-d)/2);return{x:n?Math.round(t-h-d):h,width:d,zone:s>=r.zones.lot?"lot":s>=r.zones.some?"some":"go",lights:p}})}var _o=/* @__PURE__ */(()=>{let t=/* @__PURE__ */Symbol.for("@everfur-health/ui-core#SurfaceContext@v1"),i=globalThis;return i[t]??(i[t]=e.createContext(null))})();function Oo(){return e.useContext(_o)}var Eo={display:"heading",headline:"heading",title:"heading",heading:"heading",body:"content",lead:"content",label:"control",meta:"compact",caption:"content",overline:"compact",kicker:"compact"};function Po(e,t){let i=e.colors;switch(t){case"ink":return i.ink;case"text":return i.text;case"muted":return i.muted;case"danger":return i.alertDeep;case"inverse":return i.onInk;default:return}}function Lo(e,t,i,r){let n=fo(e,e.metrics.text[t]),l=Po(e,i);return{...n,...l?{color:l}:{},...r?{weight:e.type.weight[r]}:{}}}var Ao=/* @__PURE__ */(()=>{let t=/* @__PURE__ */Symbol.for("@everfur-health/ui-core#PressFeedbackContext@v1"),i=globalThis,r=i[t]??(i[t]=e.createContext(null));return r.displayName??(r.displayName="EverfurPressFeedbackContext"),r})();function Bo(){return e.useContext(Ao)}function Ro(e,t,i,r={}){if(!e||r.disabled)return{onPress:i,onPressIn:void 0};let{onPressIn:n,onPress:l,haptic:o}=e,a=r.haptics!==false&&t.haptic&&o?o:void 0;return{onPress:i&&(l||a)?()=>{a?.(t),l?.(t),i()}:i,onPressIn:n?()=>n(t):void 0}}function Vo(e,t,i=1){return e?.pressScale?.[t]??i}var $o={display:"balance",headline:"balance",title:"balance",heading:"balance",body:"pretty",lead:"pretty",meta:"pretty",caption:"pretty",label:"auto",overline:"auto",kicker:"auto"};function Wo(e,t){return e.type.variantTiers?.[t]??Eo[t]}var Mo=/* @__PURE__ */(()=>{let t=/* @__PURE__ */Symbol.for("@everfur-health/ui-native#ReducedMotionContext@v1"),i=globalThis,r=i[t]??(i[t]=e.createContext(null));return r.displayName??(r.displayName="EverfurReducedMotionContext"),r})();function No(){return e.useContext(Mo)}function Go(e,i){let r=to(i.weight,i.mono===true);return{fontFamily:i.serif?e.type.faces.serif??e.type.faces.bold:e.type.faces[r],...e.type.namedFaces?{}:{fontWeight:String(i.weight)},fontSize:i.size,lineHeight:i.lineHeight,color:i.color,...i.tracking?{letterSpacing:i.tracking}:{},...i.upper?{textTransform:"uppercase"}:{},...i.deco?qo(i):{},...i.tabular?{fontVariant:["tabular-nums"]}:{},...i.wrap&&t.Platform.OS==="web"?{textWrap:i.wrap}:{}}}function qo(e){let i={textDecorationLine:e.deco==="strike"?"line-through":"underline"};return t.Platform.OS!=="web"?i:{...i,...e.decoOffset?{textUnderlineOffset:e.decoOffset}:{},...e.decoThickness?{textDecorationThickness:e.decoThickness}:{}}}function Uo(e,t){let[i=0,r=0,n=0,l=0]=t.padding,[o=0,a=0]=t.radius,s=mo(e,t.bg);return{paddingTop:i,paddingRight:r,paddingBottom:n,paddingLeft:l,...t.marginTop?{marginTop:t.marginTop}:{},...t.gap[0]?{columnGap:t.gap[0]}:{},...t.gap[1]?{rowGap:t.gap[1]}:{},...o===a?o?{borderRadius:o}:{}:{borderTopLeftRadius:o,borderTopRightRadius:o,borderBottomLeftRadius:a,borderBottomRightRadius:a},...s?{backgroundColor:s}:{},...t.edge.width>0&&!t.edge.ring?{borderWidth:t.edge.width,borderColor:lo(e,t.edge.color)}:{},...t.minHeight?{minHeight:t.minHeight}:{},...ea(t.shadow)}}function Yo(e,t){return t.edge.width>0&&t.edge.ring?ta(t.edge.width,lo(e,t.edge.color),t.radius[0]??0):null}function Xo(){if(t.Platform.OS!=="web")return false;let e=globalThis;return typeof e.matchMedia=="function"&&e.matchMedia("(prefers-reduced-motion: reduce)").matches}function Ko(i){let[r,n]=e.useState(()=>i===null&&Xo());return e.useEffect(()=>{if(i!==null)return;let e=true,r=t.AccessibilityInfo?.isReduceMotionEnabled;if(typeof r=="function"){let i=r.call(t.AccessibilityInfo);i!=null&&typeof i.then=="function"&&i.then(t=>{e&&n(t===true)},()=>{})}let l=t.AccessibilityInfo?.addEventListener?.("reduceMotionChanged",e=>n(e===true));return()=>{e=false,l?.remove?.()}},[i]),i??r}function Qo(e){let t=Ko(No());return e.motion.reduced||t}function Jo(e,t,i){return{...e===void 0?{}:{expanded:e},...t===void 0?{}:{checked:t},...i===void 0?{}:{selected:i!==false}}}function Zo(e){let t=Math.max(0,Math.ceil((44-e)/2));return t===0?void 0:{top:t,bottom:t,left:t,right:t}}function ea(e){return e.blur===0&&e.y===0&&e.x===0?null:{shadowColor:e.color,shadowOffset:{width:e.x,height:e.y},shadowOpacity:1,shadowRadius:e.blur,elevation:1}}function ta(e,i,r){let n={position:"absolute",top:0,right:0,bottom:0,left:0,borderRadius:r};return t.Platform.OS==="web"?{...n,boxShadow:`inset 0 0 0 ${e}px ${i}`}:{...n,borderWidth:e,borderColor:i}}var ia=/* @__PURE__ */new Set;function ra(e,t,i){let r=typeof __DEV__<"u"?__DEV__:typeof process<"u"&&process.env.NODE_ENV!=="production";!t||i||ia.has(e)||!r||(ia.add(e),console.warn(`@everfur-health/ui-native: ${e} draws its close (onClose) without a closeLabel, so a screen reader cannot name it. Pass closeLabel with onClose.`))}function na(e){return Math.round(e*100)/100}function la(e,t){let i=Number(t.weight),r=t.letterSpacing??0;return{...Go(e,{size:t.size,weight:i,lineHeight:na(t.size*t.lineHeight),color:e.colors.text,tracking:r?na(t.size*r):0,mono:t.face==="mono",upper:t.uppercase===true}),flexShrink:1}}function oa(e){return e==="auto"?null:t.Platform.OS==="ios"?{lineBreakStrategyIOS:"push-out"}:t.Platform.OS==="android"&&e==="balance"?{textBreakStrategy:"balanced"}:null}function aa(e,t){let i=e.type.weight[t];return e.type.namedFaces?{fontFamily:e.type.faces[to(i)]}:{fontWeight:String(i)}}function Text({tier:i,variant:r,tone:n,weight:l,level:o,lineBreak:a,typeRole:s,...c}){let d=Zl();if(s){let r=d.type.scaleCaps[i??s.tier??"content"],n=a?oa(a):null;return e.createElement(t.Text,{...r>0?{maxFontSizeMultiplier:r}:{},...n,...c,style:[la(d,s),c.style]})}let u=d.type.scaleCaps[i??(r?Wo(d,r):"content")],p=oa(a??(r?$o[r]:"auto"));if(r===void 0&&n===void 0&&l===void 0&&o===void 0)return p?e.createElement(t.Text,{...u>0?{maxFontSizeMultiplier:u}:{},...p,...c}):e.createElement(t.Text,u>0?{maxFontSizeMultiplier:u,...c}:c);let h=Po(d,n),g=r?Go(d,Lo(d,r,n,l)):{...h?{color:h}:{},...l?aa(d,l):{}},f=o===void 0?{}:{accessibilityRole:"header",...t.Platform.OS==="web"?{"aria-level":o}:{}};return e.createElement(t.Text,{...u>0?{maxFontSizeMultiplier:u}:{},...p,...f,...c,style:[g,c.style]})}var sa=24,ca=16,da=.8,ua=e=>Math.round(e*ca);function pa(e,t,i,r,n,l){let o=e-i/2,a=t-r/2,s=Math.round(o),c=Math.round(a);return{position:"absolute",left:s,top:c,width:i,height:r,transform:[{translateX:o-s},{translateY:a-c},{rotate:`${Math.atan2(l,n)*180/Math.PI}deg`},{scale:1/ca}]}}function ha(e,t,i){for(let r of e.strokes){let e=r.width*t,n=r.points,l=n.length/2,o=r.closed?l:l-1;for(let a=0;a<o;a+=1){let o=(a+1)%l,s=(n[a*2]??0)*t,c=(n[a*2+1]??0)*t,d=(n[o*2]??0)*t-s,u=(n[o*2+1]??0)*t-c,p=Math.hypot(d,u);if(p===0&&!(l===2&&r.cap))continue;let h=p===0?1:d/p,g=p===0?0:u/p,f=r.closed||a>0||r.cap?e/2:0,m=r.closed||o!==l-1||r.cap?e/2:0,b=(p+m-f)/2;i.push({paint:"backgroundColor",style:{...pa(s+h*b,c+g*b,ua(p+f+m),ua(e),h,g),borderTopLeftRadius:f>0?ua(e)/2:0,borderBottomLeftRadius:f>0?ua(e)/2:0,borderTopRightRadius:m>0?ua(e)/2:0,borderBottomRightRadius:m>0?ua(e)/2:0,...r.opacity===void 0?{}:{opacity:r.opacity}}})}}}function ga(e,t,i){for(let r of e.boxes){let e=(r.w+r.width)*t,n=(r.h+r.width)*t;i.push({paint:"borderColor",style:{...pa((r.x-r.width/2)*t+e/2,(r.y-r.width/2)*t+n/2,ua(e),ua(n),1,0),borderWidth:ua(r.width*t),borderRadius:(r.radius+r.width/2)*t*ca,...r.opacity===void 0?{}:{opacity:r.opacity}}})}}function fa(e,t,i){for(let r of e.triangles){let e=[0,1,2].map(e=>[(r[e*2]??0)*t,(r[e*2+1]??0)*t]),n=0,l=-1;for(let t=0;t<3;t+=1){let i=e[t]??[0,0],r=e[(t+1)%3]??[0,0],o=Math.hypot(r[0]-i[0],r[1]-i[1]);o>l&&(l=o,n=t)}if(l<=0)continue;let o=e[n]??[0,0],a=e[(n+1)%3]??[0,0],s=e[(n+2)%3]??[0,0],c=(a[0]-o[0])/l,d=(a[1]-o[1])/l,u=(s[0]-o[0])*c+(s[1]-o[1])*d,p=(s[0]-o[0])*-d+(s[1]-o[1])*c,h=Math.abs(p),g=p<0,f=g?-h/2:h/2,m=ua(u),b=ua(l)-m,w=ua(h);i.push({paint:g?"borderBottomColor":"borderTopColor",style:{...pa(o[0]+c*(l/2)-d*f,o[1]+d*(l/2)+c*f,m+b,w,c,d),width:0,height:0,borderLeftWidth:m,borderRightWidth:b,borderLeftColor:"transparent",borderRightColor:"transparent",...g?{borderBottomWidth:w}:{borderTopWidth:w}}})}for(let r of e.seams){let e=(r[0]??0)*t,n=(r[1]??0)*t,l=(r[2]??0)*t-e,o=(r[3]??0)*t-n,a=Math.hypot(l,o),s=da*(r[4]??0),c=da*(r[5]??0),d=a-s-c;if(a===0||d<=0)continue;let u=s+d/2;i.push({paint:"backgroundColor",style:pa(e+l/a*u,n+o/a*u,ua(d),ua(da),l/a,o/a)})}}var ma=/* @__PURE__ */new WeakMap;function ba(e,t){let i=ma.get(e);i===void 0&&(i=/* @__PURE__ */new Map,ma.set(e,i));let r=i.get(t);if(r!==void 0)return r;let n=[],l=t/sa;return ga(e,l,n),ha(e,l,n),fa(e,l,n),i.set(t,n),n}function Glyph({icon:e,size:r,color:n,label:l,testID:o,style:a}){let s=Zl(),c=r??s.metrics.icon.size,d=n??s.colors.ink;/* @__PURE__ */
|
|
29
|
+
return i.jsx(t.View,{testID:o,pointerEvents:"none",style:[{width:c,height:c},a],...l?{accessible:true,accessibilityRole:"image",accessibilityLabel:l}:{accessible:false,accessibilityElementsHidden:true,importantForAccessibility:"no-hide-descendants"},children:ba(e,c).map((e,r)=>/* @__PURE__ */i.jsx(t.View,{style:[e.style,{[e.paint]:d}]},r))})}var wa=/* @__PURE__ */(()=>{let e=/* @__PURE__ */Symbol.for("@everfur-health/ui-native#icons@v1"),t=globalThis;return t[e]??(t[e]={icons:{},warned:/* @__PURE__ */new Set})})();function ya(e){Object.assign(wa.icons,e)}function xa(e){let t=wa.icons[e];return t===void 0&&(typeof __DEV__<"u"?__DEV__:typeof process<"u"&&process.env.NODE_ENV!=="production")&&!wa.warned.has(e)&&(wa.warned.add(e),console.warn(`@everfur-health/ui-native: no icon "${e}" is registered. The lean entry draws only the icons an app registers: registerIcons({ ... }) with the UI_RN_ICON_* exports, or pass a drawing.`)),t}function Icon({name:e,...t}){let r=xa(e);return r?/* @__PURE__ */i.jsx(Glyph,{icon:r,...t}):null}function va(e,t,i,r=1){return ka(Bo(),e,t,i,r)}function ka(e,t,i,r,n=1){let l=Ro(e,{component:t,testID:i.testID,...i.item===void 0?{}:{item:i.item},label:i.label,trackId:i.trackId,haptic:i.haptic===true},r,{disabled:i.disabled});return{props:l.onPressIn?{onPress:l.onPress,onPressIn:l.onPressIn}:{onPress:l.onPress},scale:Vo(e,t,n)}}var Ta=e=>`cubic-bezier(${e.join(", ")})`,ja=(e,t)=>typeof e=="function"?e({pressed:t}):e,Sa;function Ia(){return Sa??(Sa=t.Animated.createAnimatedComponent(t.Pressable))}function za(e,i,r){let[n,l,o,a]=e.motion.easing.out;return t.Animated.timing(i,{toValue:r,duration:e.motion.duration.press,easing:t.Easing.bezier(n,l,o,a),useNativeDriver:true})}function PressBox({style:i,scale:r,still:n,pop:l,onPressIn:o,onPressOut:a,...s}){let c=Zl(),d=e.useRef(null),[u,p]=e.useState(false),h=!n&&r!==1,g=!n&&l?.scale!=null;if(t.Platform.OS==="web"){let n=h?{transitionProperty:"transform",transitionDuration:`${c.motion.duration.press}ms`,transitionTimingFunction:Ta(c.motion.easing.out)}:null;return e.createElement(t.Pressable,{...s,...l?{ref:l.ref}:null,onPressIn:o,onPressOut:a,style:({pressed:e})=>[ja(i,e),n,h&&e?{transform:[{scale:r}]}:null]})}if(!h&&!g)return e.createElement(t.Pressable,{...s,onPressIn:o,onPressOut:a,style:i});let f=d.current??(d.current=new t.Animated.Value(0)),m=h?f.interpolate({inputRange:[0,1],outputRange:[1,r]}):null,b=m&&g?t.Animated.multiply(m,l?.scale):m??l?.scale;return e.createElement(Ia(),{...s,onPressIn:e=>{s.disabled||(p(true),h&&za(c,f,1).start(),o?.(e))},onPressOut:e=>{p(false),h&&za(c,f,0).start(),a?.(e)},style:[ja(i,u),{transform:[{scale:b}]}]})}function Button({label:e,onPress:r,tone:n="ink",size:l="md",icon:o,disabled:a=false,loading:s=false,loadingLabel:c,loadingIndicator:d="spinner",fullWidth:u,accessibilityLabel:p,trackId:h,haptic:g,testID:f,style:m,children:b,nativeID:w,onPressIn:y,"aria-expanded":x,"aria-pressed":v,"aria-current":k}){let T=Zl(),j=Oo()==="sheet",S=Qo(T),I=so(T,n,l,j),z=a||s,D=u??(j||I.fill),C=s&&d!=="none",H=C&&c?c:p??(C&&c?c:e),F=va("Button",{testID:f,label:H,trackId:h,haptic:g,disabled:z},r,I.pressScale),_=F.props.onPressIn,O=y&&_?()=>{_(),y()}:y??_;/* @__PURE__ */
|
|
30
|
+
return i.jsxs(PressBox,{...F.props,onPressIn:O,scale:F.scale,still:S,disabled:z,nativeID:w,hitSlop:Zo(Math.max(I.minHeight,I.text.lineHeight)),accessibilityRole:"button",accessibilityLabel:H,accessibilityState:{disabled:z,busy:s,...Jo(x,v,k)},"aria-busy":s,testID:f,style:({pressed:e})=>[Da.base,{minHeight:Math.max(I.minHeight,0),paddingHorizontal:I.paddingX,columnGap:I.gap,borderRadius:I.radius,borderWidth:I.ring?0:I.borderWidth,borderColor:I.borderColor,backgroundColor:I.background},D?Da.block:Da.auto,z?{opacity:I.disabledOpacity}:null,e&&I.pressOpacity!==1&&!z?{opacity:I.pressOpacity}:null,m],children:[C?/* @__PURE__ */i.jsx(t.ActivityIndicator,{size:"small",color:I.text.color,animating:!S,hidesWhenStopped:false,accessibilityLabel:H}):o?/* @__PURE__ */i.jsx(Icon,{name:o,size:I.iconSize,color:I.text.color}):null,
|
|
31
|
+
/* @__PURE__ */i.jsx(t.View,{style:Da.labelBox,children:/* @__PURE__ */i.jsx(Text,{tier:"control",style:[Go(T,I.text),Da.label],children:C&&c?c:b??e})}),I.ring&&I.borderWidth>0?/* @__PURE__ */i.jsx(t.View,{pointerEvents:"none",style:ta(I.borderWidth,I.borderColor,I.radius)}):null]})}var Da=t.StyleSheet.create({base:{flexDirection:"row",alignItems:"center",justifyContent:"center"},block:{alignSelf:"stretch"},auto:{alignSelf:"flex-start"},labelBox:{flexShrink:1},label:{textAlign:"center"}});var Ca={block:{height:16,radius:8},shimmer:{duration:1150,bandShare:.6,bandMin:28,band:"rgba(255, 255, 255, 0.42)",skew:-14}};var Ha={drop:{color:"rgba(0, 0, 0, 0.16)",x:0,y:10,blur:30,spread:0},go:{h:44,paddingX:18,bg:"go",color:"text"},imgInset:3,totalLineHeight:18.6875};t.StyleSheet.create({head:{flexDirection:"row",flexWrap:"wrap",alignItems:"center",justifyContent:"space-between"},shrink:{flexShrink:1},end:{justifyContent:"flex-end"}});t.StyleSheet.create({chip:{flexDirection:"row",alignItems:"center",alignSelf:"flex-start"}});function Fa(e){return t.Platform.OS==="web"?{boxShadow:`${e.x}px ${e.y}px ${e.blur}px ${e.spread}px ${e.color}`}:{shadowColor:e.color,shadowOpacity:1,shadowRadius:e.blur/2,shadowOffset:{width:e.x,height:e.y},elevation:Math.round(e.blur/3)}}t.StyleSheet.create({st:{alignItems:"center",alignSelf:"stretch"},center:{textAlign:"center"},acts:{alignItems:"center",alignSelf:"stretch"},link:{alignItems:"center",justifyContent:"center"},underline:{textDecorationLine:"underline"},compact:{alignItems:"center"},iconBox:{alignItems:"center",justifyContent:"center"},pill:{alignItems:"center",justifyContent:"center"}});t.StyleSheet.create({acts:{flexDirection:"row",flexWrap:"wrap",alignItems:"center"},st:{alignItems:"center",alignSelf:"stretch"},center:{textAlign:"center"},stActs:{alignItems:"center",alignSelf:"stretch"},link:{alignItems:"center",justifyContent:"center"},underline:{textDecorationLine:"underline"}});function Pill({label:e,tone:r="plain",testID:n,style:l,maxFontSizeMultiplier:o,grouped:a=true}){let s=Zl(),c=uo(s,r);/* @__PURE__ */
|
|
32
|
+
return i.jsxs(t.View,{testID:n,...a?{accessible:true,accessibilityLabel:e}:null,style:[_a.pill,{minHeight:c.minHeight,paddingHorizontal:c.paddingX,borderRadius:c.radius,backgroundColor:c.background,...c.dot?{columnGap:c.dot.gap}:{}},l],children:[c.ring?/* @__PURE__ */i.jsx(t.View,{pointerEvents:"none",style:ta(c.ring.width,c.ring.color,c.radius)}):null,c.dot?/* @__PURE__ */i.jsx(t.View,{style:{width:c.dot.size,height:c.dot.size,borderRadius:c.dot.size/2,backgroundColor:c.dot.color}}):null,
|
|
33
|
+
/* @__PURE__ */i.jsx(Text,{tier:"control",numberOfLines:1,...o===void 0?{}:{maxFontSizeMultiplier:o},style:[Go(s,c.text),_a.label],children:e})]})}var _a=t.StyleSheet.create({pill:{flexDirection:"row",alignItems:"center",alignSelf:"flex-start",maxWidth:"100%"},label:{flexShrink:1}}),Oa={strokes:[{width:2,cap:true,closed:false,points:[21.73,18,13.73,4,12.997,3.258,11.99,2.986,10.983,3.258,10.25,4,2.25,18,1.982,19.005,2.254,20.008,2.994,20.739,4,21,20,21,20.999,20.731,21.731,19.999,21.998,18.999,21.73,18]},{width:2,cap:true,closed:false,points:[12,9,12,13]},{width:2,cap:true,closed:false,points:[12,17,12.01,17]}],boxes:[],triangles:[],seams:[]},Ea={strokes:[{width:2,cap:true,closed:false,points:[12,19,5,12,12,5]},{width:2,cap:true,closed:false,points:[19,12,5,12]}],boxes:[],triangles:[],seams:[]},Pa={strokes:[{width:2,cap:true,closed:true,points:[6,2,3,6,3,20,3.268,21,4,21.732,5,22,19,22,20,21.732,20.732,21,21,20,21,6,18,2]},{width:2,cap:true,closed:false,points:[3,6,21,6]},{width:2,cap:true,closed:false,points:[16,10,15.696,11.531,14.828,12.828,13.531,13.696,12,14,10.469,13.696,9.172,12.828,8.304,11.531,8,10]}],boxes:[],triangles:[],seams:[]},La={strokes:[{width:2,cap:true,closed:false,points:[10.034,20.999,10.765,21.732,11.766,22,12.766,21.732,13.498,20.999]},{width:2,cap:true,closed:false,points:[21.766,8,21.514,5.799,20.818,3.8,19.765,1.999]},{width:2,cap:true,closed:false,points:[3.766,1.999,2.714,3.8,2.018,5.799,1.765,8]},{width:2,cap:true,closed:true,points:[3.028,15.325,2.78,15.838,2.851,16.402,3.22,16.837,3.766,16.999,19.765,16.999,20.312,16.838,20.681,16.404,20.753,15.84,20.506,15.327,19.71,14.47,18.967,13.451,18.347,12.128,17.923,10.358,17.766,8,17.309,5.704,16.009,3.758,14.061,2.457,11.766,1.999,9.47,2.457,7.524,3.758,6.223,5.704,5.765,8,5.609,10.358,5.184,12.128,4.565,13.451,3.822,14.47,3.028,15.325]}],boxes:[],triangles:[],seams:[]},Aa={strokes:[{width:2,cap:true,closed:false,points:[2,11,22,11]},{width:2,cap:true,closed:false,points:[4,11,4.287,13.12,5.096,15.03,6.35,16.65,7.97,17.904,9.88,18.713,12,19,14.12,18.713,16.03,17.904,17.65,16.65,18.904,15.03,19.713,13.12,20,11]},{width:2,cap:true,closed:false,points:[8.5,8,9.352,7.333,10.581,6.933,12,6.8,13.419,6.933,14.648,7.333,15.5,8]}],boxes:[],triangles:[],seams:[]},Ba={strokes:[{width:2,cap:true,closed:true,points:[11,21.73,12,21.998,13,21.73,20,17.73,20.732,16.999,21,16,21,8,20.732,7.001,20,6.27,13,2.27,12,2.002,11,2.27,4,6.27,3.268,7.001,3,8,3,16,3.268,16.999,4,17.73]},{width:2,cap:true,closed:false,points:[12,22,12,12]},{width:2,cap:true,closed:false,points:[3.29,7,12,12,20.71,7]},{width:2,cap:true,closed:false,points:[7.5,4.27,16.5,9.42]}],boxes:[],triangles:[],seams:[]},Ra={strokes:[{width:2,cap:true,closed:false,points:[8,2,8,6]},{width:2,cap:true,closed:false,points:[16,2,16,6]},{width:2,cap:true,closed:false,points:[3,10,21,10]}],boxes:[{x:3,y:4,w:18,h:18,radius:2,width:2}],triangles:[],seams:[]},Va={strokes:[{width:2,cap:true,closed:true,points:[14.5,4,9.5,4,7,7,4,7,3,7.268,2.268,8,2,9,2,18,2.268,19,3,19.732,4,20,20,20,21,19.732,21.732,19,22,18,22,9,21.732,8,21,7.268,20,7,17,7,14.5,4]}],boxes:[{x:9,y:10,w:6,h:6,radius:3,width:2}],triangles:[],seams:[]},$a={strokes:[{width:2,cap:true,closed:false,points:[20,6,9,17,4,12]}],boxes:[],triangles:[],seams:[]},Wa={strokes:[{width:2,cap:true,closed:false,points:[9,18.001,15,12.001,9,6.001]}],boxes:[],triangles:[],seams:[]},Ma={strokes:[{width:2,cap:true,closed:true,points:[12,22,14.658,21.643,17.048,20.635,19.071,19.071,20.635,17.048,21.643,14.658,22,12,21.643,9.342,20.635,6.953,19.071,4.929,17.048,3.366,14.658,2.357,12,2,9.341,2.357,6.953,3.366,4.929,4.929,3.365,6.953,2.357,9.342,2,12,2.357,14.658,3.365,17.048,4.929,19.071,6.953,20.635,9.341,21.643,12,22]},{width:2,cap:true,closed:false,points:[12,6.001,12,12,16,14.001]}],boxes:[],triangles:[],seams:[]},Na={strokes:[{width:2,cap:true,closed:false,points:[12,15,12,3]},{width:2,cap:true,closed:false,points:[17,10,12,15,7,10]},{width:2,cap:true,closed:false,points:[21,15,21,19.001,20.847,19.765,20.414,20.414,19.765,20.847,19,21,5,21,4.235,20.847,3.586,20.414,3.153,19.765,3,19.001,3,15]}],boxes:[],triangles:[],seams:[]},Ga={strokes:[{width:2,cap:true,closed:false,points:[12,3,5,3,4,3.268,3.268,4,3,5,3,19,3.268,20,4,20.732,5,21,19,21,20,20.732,20.732,20,21,19,21,12]},{width:2,cap:true,closed:true,points:[18.375,2.625,19.326,2.076,20.424,2.076,21.375,2.625,21.924,3.576,21.924,4.674,21.375,5.625,12.362,14.639,11.509,15.144,8.636,15.984,8.142,15.858,8.016,15.364,8.856,12.491,9.362,11.639]}],boxes:[],triangles:[],seams:[]},qa={strokes:[{width:2,cap:true,closed:true,points:[15,2,6,2,5,2.268,4.268,3,4,4,4,20,4.268,21,5,21.732,6,22,18,22,19,21.732,19.732,21,20,20,20,7]},{width:2,cap:true,closed:false,points:[14,2,14,6,14.268,7,15,7.732,16,8,20,8]},{width:2,cap:true,closed:false,points:[10,9,8,9]},{width:2,cap:true,closed:false,points:[16,13,8,13]},{width:2,cap:true,closed:false,points:[16,17,8,17]}],boxes:[],triangles:[],seams:[]},Ua={strokes:[{width:2,cap:true,closed:false,points:[14.001,2,14.001,8,14.245,8.96,19.755,19.039,20,20.034,19.721,21.019,18.99,21.738,18,21.999,6,21.999,5.01,21.738,4.279,21.019,3.999,20.034,4.245,19.039,9.755,8.96,10,8,10,2]},{width:2,cap:true,closed:false,points:[6.453,15,17.547,15]},{width:2,cap:true,closed:false,points:[8.5,2,15.5,2]}],boxes:[],triangles:[],seams:[]},Ya={strokes:[{width:2,cap:true,closed:true,points:[20,20,20.765,19.847,21.415,19.413,21.847,18.765,22,18,22,8,21.847,7.235,21.415,6.585,20.765,6.152,20,6,12.1,6,11.14,5.765,10.41,5.099,9.6,3.899,8.879,3.239,7.93,2.999,4,2.999,3.234,3.152,2.586,3.586,2.152,4.234,2,5,2,18,2.152,18.765,2.586,19.413,3.234,19.847,4,20,20,20]}],boxes:[],triangles:[],seams:[]},Xa={strokes:[{width:2,cap:true,closed:true,points:[2,9.499,2.247,7.868,2.968,6.383,4.096,5.179,5.532,4.364,7.144,4.011,8.788,4.152,10.316,4.776,11.591,5.824,11.777,5.955,12,6.001,12.223,5.955,12.409,5.824,13.682,4.768,15.211,4.139,16.859,3.995,18.475,4.347,19.913,5.165,21.041,6.374,21.759,7.863,22,9.499,21.742,11.114,21.063,12.546,20.101,13.829,19,15,13.508,20.313,12.834,20.817,12.012,20.999,11.189,20.827,10.508,20.332,5,15,3.899,13.831,2.937,12.55,2.258,11.119,2,9.499]}],boxes:[],triangles:[],seams:[]},Ka={strokes:[{width:2,cap:true,closed:false,points:[9.09,9,9.842,7.832,11.04,7.127,12.427,7.039,13.705,7.584,14.6,8.648,14.92,10,14.608,11.08,13.864,11.92,12.976,12.52,12.232,12.88,11.92,13]},{width:2,cap:true,closed:false,points:[12,17,12.01,17]}],boxes:[{x:2,y:2,w:20,h:20,radius:10,width:2}],triangles:[],seams:[]},Qa={strokes:[{width:2,cap:true,closed:false,points:[15,21,15,13,14.707,12.293,14,12,10,12,9.293,12.293,9,13,9,21]},{width:2,cap:true,closed:true,points:[3,10,3.186,9.158,3.709,8.472,10.709,2.473,11.536,2.055,12.464,2.055,13.291,2.473,20.291,8.472,20.814,9.158,21,10,21,19,20.732,20,20,20.732,19,21,5,21,4,20.732,3.268,20,3,19]}],boxes:[],triangles:[],seams:[]},Ja={strokes:[{width:2,cap:true,closed:false,points:[21,15,17.914,11.914,17.018,11.397,15.982,11.397,15.086,11.914,6,21]}],boxes:[{x:3,y:3,w:18,h:18,radius:2,width:2},{x:7,y:7,w:4,h:4,radius:2,width:2}],triangles:[],seams:[]},Za={strokes:[{width:2,cap:true,closed:false,points:[12,16,12,12]},{width:2,cap:true,closed:false,points:[12,8,12.01,8]}],boxes:[{x:2,y:2,w:20,h:20,radius:10,width:2}],triangles:[],seams:[]},es={strokes:[{width:2,cap:true,closed:true,points:[11,20,8.727,19.628,6.697,18.538,5.131,16.848,4.199,14.741,4.001,12.446,4.558,10.211,5.811,8.278,7.624,6.856,9.8,6.1,12.322,5.587,14.274,5.099,15.788,4.568,16.993,3.921,18.02,3.088,19,2,19.734,3.557,20.375,5.318,20.828,7.42,21,10,20.72,12.286,19.931,14.388,18.708,16.245,17.127,17.796,15.265,18.98,13.198,19.735,11,20]},{width:2,cap:true,closed:false,points:[2,21,2.218,19.285,2.858,17.776,3.896,16.524,5.311,15.582,7.08,15,8.885,14.469,10.573,13.695,11.993,12.823,13,12]}],boxes:[],triangles:[],seams:[]},ts={strokes:[{width:2,cap:true,closed:false,points:[7,11,7,7,7.381,5.087,8.464,3.464,10.087,2.381,12,2,13.913,2.381,15.536,3.464,16.619,5.087,17,7,17,11]}],boxes:[{x:3,y:11,w:18,h:11,radius:2,width:2}],triangles:[],seams:[]},is={strokes:[{width:2,cap:true,closed:false,points:[22,7,13.03,12.7,12,12.996,10.97,12.7,2,7]}],boxes:[{x:2,y:4,w:20,h:16,radius:2,width:2}],triangles:[],seams:[]},rs={strokes:[{width:2,cap:true,closed:true,points:[7.9,20,10.431,20.853,13.102,20.925,15.676,20.211,17.927,18.772,19.656,16.736,20.712,14.282,21,11.627,20.497,9.003,19.246,6.643,17.357,4.754,14.997,3.503,12.373,3,9.718,3.288,7.264,4.344,5.228,6.073,3.789,8.324,3.075,10.898,3.147,13.569,4,16.1,2,22]}],boxes:[],triangles:[],seams:[]},ns={strokes:[{width:2,cap:true,closed:false,points:[5,12,19,12]}],boxes:[],triangles:[],seams:[]},ls={strokes:[],boxes:[{x:4.65,y:11.15,w:1.7,h:1.7,radius:.85,width:1.7},{x:11.15,y:11.15,w:1.7,h:1.7,radius:.85,width:1.7},{x:17.65,y:11.15,w:1.7,h:1.7,radius:.85,width:1.7}],triangles:[],seams:[]},os={strokes:[{width:2,cap:true,closed:true,points:[9,10,10.913,10.381,12.536,11.464,13.619,13.087,14,15,14,18.5,13.615,20.094,12.547,21.338,11.029,21.959,9.395,21.82,8.003,20.952,7.16,19.545,6.576,18.327,5.676,17.425,4.46,16.84,3.054,15.997,2.186,14.607,2.046,12.974,2.665,11.456,3.907,10.387,5.5,10]}],boxes:[{x:9,y:2,w:4,h:4,radius:2,width:2},{x:16,y:6,w:4,h:4,radius:2,width:2},{x:18,y:14,w:4,h:4,radius:2,width:2}],triangles:[],seams:[]},as={strokes:[{width:2,cap:true,closed:false,points:[13.832,16.568,14.492,16.629,15.045,16.265,15.4,15.8,16.106,15.211,17,15,20,15,21,15.268,21.732,16,22,17,22,20,21.732,21,21,21.732,20,22,16.488,21.654,13.112,20.63,10,18.966,7.272,16.728,5.034,14,3.37,10.888,2.346,7.512,2,4,2.268,3,3,2.268,4,2,7,2,8,2.268,8.732,3,9,4,9,7,8.789,7.894,8.2,8.6,7.732,8.951,7.366,9.515,7.44,10.184,9.084,12.765,11.249,14.928,13.832,16.568]}],boxes:[],triangles:[],seams:[]},ss={strokes:[{width:2,cap:true,closed:true,points:[10.5,20.5,20.5,10.5,21.594,8.894,21.985,6.99,21.613,5.082,20.536,3.464,18.918,2.387,17.01,2.015,15.106,2.406,13.5,3.5,3.5,13.5,2.406,15.106,2.015,17.01,2.387,18.918,3.464,20.536,5.082,21.613,6.99,21.985,8.894,21.594,10.5,20.5]},{width:2,cap:true,closed:false,points:[8.5,8.5,15.5,15.5]}],boxes:[],triangles:[],seams:[]},cs={strokes:[{width:2,cap:true,closed:false,points:[20,10,19.688,12.141,18.859,14.242,17.674,16.234,16.294,18.053,14.881,19.631,13.597,20.902,12.601,21.799,12,22,11.399,21.799,10.403,20.902,9.119,19.631,7.706,18.053,6.326,16.234,5.141,14.242,4.312,12.141,4,10,4.392,7.528,5.528,5.298,7.298,3.528,9.528,2.392,12,2,14.472,2.392,16.702,3.528,18.472,5.298,19.608,7.528,20,10]}],boxes:[{x:9,y:7,w:6,h:6,radius:3,width:2}],triangles:[],seams:[]},ds={strokes:[{width:2,cap:true,closed:false,points:[5,12,19.001,12]},{width:2,cap:true,closed:false,points:[12,5,12,19.001]}],boxes:[],triangles:[],seams:[]},us={strokes:[{width:2,cap:true,closed:false,points:[21,21,16.7,16.7]}],boxes:[{x:3,y:3,w:16,h:16,radius:8,width:2}],triangles:[],seams:[]},ps={strokes:[{width:2,cap:true,closed:true,points:[14.536,21.686,15.013,22,15.473,21.662,21.973,2.662,21.857,2.143,21.338,2.027,2.338,8.527,2,8.987,2.314,9.464,10.244,12.644,10.914,13.085,11.356,13.754]},{width:2,cap:true,closed:false,points:[21.854,2.147,10.914,13.086]}],boxes:[],triangles:[],seams:[]},hs={strokes:[{width:2,cap:true,closed:true,points:[20,12.999,19.722,15.298,18.938,17.22,17.73,18.806,16.175,20.096,14.352,21.131,12.34,21.949,11.67,21.94,9.654,21.125,7.828,20.093,6.272,18.805,5.062,17.22,4.279,15.298,4,12.999,4,6,4.293,5.293,5,5,6.574,4.788,8.218,4.21,9.812,3.346,11.24,2.28,12,1.999,12.76,2.28,14.192,3.35,15.786,4.213,17.427,4.79,19,5,19.707,5.293,20,6,20,12.999]},{width:2,cap:true,closed:false,points:[9,12,11,13.999,15,10]}],boxes:[],triangles:[],seams:[]},gs={strokes:[{width:2,cap:true,closed:true,points:[12,3.5,12.503,5.742,13.338,7.465,14.57,8.727,16.269,9.586,18.5,10.1,16.269,10.603,14.57,11.438,13.338,12.67,12.503,14.369,12,16.6,11.497,14.369,10.662,12.67,9.43,11.438,7.731,10.603,5.5,10.1,7.731,9.586,9.43,8.727,10.662,7.465,11.497,5.742,12,3.5]},{width:2,cap:true,closed:true,points:[19,15.5,19.426,16.793,20.207,17.574,21.5,18,20.207,18.426,19.426,19.207,19,20.5,18.574,19.207,17.793,18.426,16.5,18,17.793,17.574,18.574,16.793,19,15.5]}],boxes:[],triangles:[],seams:[]},fs={strokes:[{width:2,cap:true,closed:false,points:[17.798,2,21.798,6]},{width:2,cap:true,closed:false,points:[16.799,7.001,19.798,4]},{width:2,cap:true,closed:false,points:[18.8,9,8.5,19.3,7.374,19.967,6.159,19.967,5.1,19.3,4.5,18.7,3.834,17.574,3.834,16.359,4.5,15.3,14.8,5.001]},{width:2,cap:true,closed:false,points:[8.8,11,12.8,15]},{width:2,cap:true,closed:false,points:[4.799,19,1.799,22]},{width:2,cap:true,closed:false,points:[13.799,4,19.8,10]}],boxes:[],triangles:[],seams:[]},ms={strokes:[{width:2,cap:true,closed:false,points:[12.001,3,12.001,15]},{width:2,cap:true,closed:false,points:[7,8,12.001,3,17,8]},{width:2,cap:true,closed:false,points:[21,15,21,19,20.847,19.765,20.414,20.414,19.765,20.847,19.001,21,5,21,4.235,20.847,3.586,20.414,3.153,19.765,3,19,3,15]}],boxes:[],triangles:[],seams:[]},bs={strokes:[{width:1.75,cap:true,closed:false,points:[19,21,19,19,18.696,17.469,17.828,16.172,16.531,15.304,15,15,9,15,7.469,15.304,6.172,16.172,5.304,17.469,5,19,5,21]}],boxes:[{x:8,y:3,w:8,h:8,radius:4,width:1.75}],triangles:[],seams:[]},ws={strokes:[{width:2,cap:true,closed:false,points:[16,13,21.223,16.482,21.736,16.507,22,16.066,22,7.87,21.749,7.436,21.248,7.438,16,10.5]}],boxes:[{x:2,y:6,w:14,h:12,radius:2,width:2}],triangles:[],seams:[]},ys={strokes:[{width:2,cap:true,closed:false,points:[18,6,6,18]},{width:2,cap:true,closed:false,points:[6,6,18,18]}],boxes:[],triangles:[],seams:[]},xs={alert:Oa,"arrow-left":Ea,bag:Pa,bell:La,bowl:Aa,box:Ba,calendar:Ra,camera:Va,check:$a,chevron:Wa,clock:Ma,download:Na,edit:Ga,file:qa,flask:Ua,folder:Ya,heart:Xa,help:Ka,house:Qa,image:Ja,info:Za,leaf:es,lock:ts,mail:is,message:rs,minus:ns,more:ls,paw:os,phone:as,pill:ss,pin:cs,plus:ds,search:us,send:ps,shield:hs,sparkle:gs,syringe:fs,upload:ms,user:bs,video:ws,x:ys};function QuantityStepper(e){return vs(e,void 0)}function InkedQuantityStepper({ink:e,...t}){return vs(t,e)}function vs({value:r,min:n=1,max:l,label:o,fewerLabel:a,moreLabel:s,disabled:c=false,variant:d="standard",onChange:u,trackId:p,haptic:h,testID:g,style:f},m){let b=Zl(),w=Qo(b),y=go(b),x=b.metrics.variants.stepper,v=d==="compact",k=c||r<=n,T=c||l!==void 0&&r>=l,j=v?x.press:b.metrics.press.iconButton,S=va("QuantityStepper",{testID:g?`${g}-fewer`:void 0,item:"fewer",label:a,trackId:p,haptic:h,disabled:k},()=>u(yo(r-1,n,l)),j),I=va("QuantityStepper",{testID:g?`${g}-more`:void 0,item:"more",label:s,trackId:p,haptic:h,disabled:T},()=>u(yo(r+1,n,l)),j),z=e.useRef(r);e.useEffect(()=>{z.current!==r&&(z.current=r,t.Platform.OS==="ios"&&t.AccessibilityInfo.announceForAccessibility(`${o}, ${r}`))},[o,r]);let D=(e,t,r,n,l)=>/* @__PURE__ */i.jsx(PressBox,{...n.props,scale:n.scale,still:w,disabled:e,hitSlop:Zo(x.button.h),accessibilityRole:"button",accessibilityLabel:r,accessibilityState:{disabled:e},testID:g?`${g}-${l}`:void 0,style:[ks.button,{width:x.button.w,height:x.button.h,borderRadius:x.button.radius[0]??0},e?{opacity:x.disabledOpacity}:null],children:/* @__PURE__ */i.jsx(Glyph,{icon:t==="plus"?ds:ns,size:x.icon,color:m??lo(b,x.button.color)})}),C=(e,t,r,n,l)=>v?D(e,t,r,n,l):/* @__PURE__ */i.jsx(PressBox,{...n.props,scale:n.scale,still:w,disabled:e,hitSlop:Zo(y.button),accessibilityRole:"button",accessibilityLabel:r,accessibilityState:{disabled:e},testID:g?`${g}-${l}`:void 0,style:[ks.button,{width:y.button,height:y.button,borderRadius:y.button/2},e&&y.off.opacity!==1?{opacity:y.off.opacity}:null],children:/* @__PURE__ */i.jsx(Glyph,{icon:t==="plus"?ds:ns,size:y.icon,color:e?y.off.color:b.colors.ink})}),H=v?Yo(b,x.track):null;/* @__PURE__ */
|
|
34
|
+
return i.jsxs(t.View,{testID:g,style:[ks.qty,v?[Uo(b,x.track),{height:x.track.h}]:{borderWidth:y.edge.inset?0:y.edge.width,borderColor:y.edge.color,borderRadius:b.radius.pill},f],children:[v?H?/* @__PURE__ */i.jsx(t.View,{pointerEvents:"none",style:H}):null:y.edge.inset?/* @__PURE__ */i.jsx(t.View,{pointerEvents:"none",style:ta(y.edge.width,y.edge.color,b.radius.pill)}):null,C(k,"minus",a,S,"fewer"),
|
|
35
|
+
/* @__PURE__ */i.jsx(Text,{tier:"control",accessible:true,accessibilityRole:"adjustable",accessibilityLabel:o,accessibilityValue:{now:r,min:n,...l!==void 0?{max:l}:{},text:String(r)},"aria-valuenow":r,"aria-valuemin":n,"aria-valuemax":l,accessibilityState:{disabled:c},"aria-disabled":c||void 0,accessibilityActions:[{name:"increment"},{name:"decrement"}],onAccessibilityAction:e=>{e.nativeEvent.actionName==="increment"&&!T&&u(yo(r+1,n,l)),e.nativeEvent.actionName==="decrement"&&!k&&u(yo(r-1,n,l))},accessibilityLiveRegion:"polite",style:v?[Go(b,fo(b,x.value)),{width:x.valueWidth,textAlign:"center"},m?{color:m}:null]:[Go(b,ho(b).stepperValue),{minWidth:y.valueMinWidth,textAlign:"center",fontVariant:["tabular-nums"]}],children:String(r)}),C(T,"plus",s,I,"more")]})}var ks=t.StyleSheet.create({qty:{flexDirection:"row",alignItems:"center",alignSelf:"flex-start"},button:{alignItems:"center",justifyContent:"center"}});t.StyleSheet.create({row:{flexDirection:"row",flexWrap:"wrap",alignItems:"center",justifyContent:"space-between"},compact:{flexDirection:"row",alignItems:"center",justifyContent:"space-between"},titles:{flexShrink:1},edit:{flexDirection:"row",alignItems:"center",justifyContent:"center"},pressed:{opacity:.6}});t.StyleSheet.create({row:{flexDirection:"row",alignSelf:"stretch"},hairline:{position:"absolute",left:0,right:0},tab:{flex:1,flexBasis:0,flexDirection:"row",alignItems:"center",justifyContent:"center"},center:{flexShrink:1,textAlign:"center"}});t.StyleSheet.create({scrim:{flex:1,justifyContent:"flex-end"},sheet:{maxHeight:"100%"},grab:{alignItems:"center",justifyContent:"center"},head:{flexDirection:"row",alignItems:"center",justifyContent:"space-between"},titles:{flexShrink:1,flexGrow:1},close:{alignItems:"center",justifyContent:"center"},closeEnd:{marginLeft:"auto"},scroll:{flexGrow:0},top:{flexDirection:"row",alignItems:"center"}});function Skeleton({lines:e=3,shape:r,label:n,testID:l,style:o,block:a,color:s}){let c=Zl(),d=c.metrics.skeleton,u=s??d.color??c.colors.tintSage,p=n?{accessible:true,accessibilityRole:"progressbar",accessibilityLabel:n,accessibilityState:{busy:true}}:{accessibilityElementsHidden:true,importantForAccessibility:"no-hide-descendants"};return a?/* @__PURE__ */i.jsx(SkeletonBox,{block:a,fill:u,testID:l,style:o,named:p}):r?/* @__PURE__ */i.jsx(t.View,{testID:l,style:[Ts(c,r,u),o],...p}):/* @__PURE__ */i.jsx(t.View,{testID:l,style:[{rowGap:d.gap,alignSelf:"stretch"},o],...p,children:Array.from({length:Math.max(1,e)},(e,r)=>/* @__PURE__ */i.jsx(t.View,{style:{height:d.lineHeight,width:wo(c,r),borderRadius:c.radius.pill,backgroundColor:u}},r))})}function SkeletonBox({block:r,fill:n,testID:l,style:o,named:a}){let s=Zl(),c=Qo(s),d=Ca,u=d.shimmer,p=r.shimmer===true&&!c,[h,g]=e.useState(0),f=e.useRef(new t.Animated.Value(0)).current;e.useEffect(()=>{if(!p||h<=0)return;f.setValue(0);let e=t.Animated.loop(t.Animated.timing(f,{toValue:1,duration:u.duration,easing:t.Easing.inOut(t.Easing.ease),useNativeDriver:t.Platform.OS!=="web"}));return e.start(),()=>e.stop()},[p,h,f,u.duration]);let m=Math.max(u.bandMin,h*u.bandShare);/* @__PURE__ */
|
|
36
|
+
return i.jsx(t.View,{testID:l,onLayout:p?e=>g(Math.round(e.nativeEvent.layout.width)):void 0,style:[{width:r.width??"100%",height:r.height??d.block.height,borderRadius:r.radius??d.block.radius,borderCurve:"continuous",backgroundColor:n,overflow:"hidden"},o],...a,children:p&&h>0?/* @__PURE__ */i.jsx(t.Animated.View,{pointerEvents:"none",style:{position:"absolute",top:-6,bottom:-6,left:0,width:m,backgroundColor:u.band,transform:[{translateX:f.interpolate({inputRange:[0,1],outputRange:[-m,h+m]})},{skewX:`${u.skew}deg`}]}}):null})}function Ts(e,t,i){let r=t.radius==="circle",n=t.width??(r?t.height:void 0),l=js(e,t,n);return{height:t.height,...n===void 0?{alignSelf:"stretch"}:{width:n},borderRadius:l,backgroundColor:i}}function js(e,t,i){let r=t.radius??"pill";return r==="none"?0:r==="circle"?(typeof i=="number"?Math.min(i,t.height):t.height)/2:e.radius[r]}function SummaryList({rows:e,total:r=false,trailingRows:n=[],loading:l=false,loadingLabel:o,variant:a="standard",note:s,grouped:c=true,lineBreak:d,testID:u,style:p}){let h=Zl(),g=bo(h);if(l)/* @__PURE__ */
|
|
36
37
|
return i.jsx(t.View,{testID:u,style:[{padding:g.paddingX,borderRadius:g.radius,backgroundColor:h.colors.surface},p],children:/* @__PURE__ */i.jsx(Skeleton,{lines:4,label:o})});let f=typeof r=="object"?[...e,{...r,key:r.key??"total"}]:e,m=r!==false;if(f.length===0)return null;let b=e=>c?{accessible:true,accessibilityLabel:`${e.term}, ${e.value}`}:null,w=d===void 0?null:{lineBreak:d},y=s?{...s,key:s.key??"note"}:void 0,x=[...f,...n,...y?[y]:[]];if(a!=="standard"&&a!=="flush"){let e=h.metrics.variants.summary;/* @__PURE__ */
|
|
37
|
-
return i.jsx(t.View,{testID:u,style:[
|
|
38
|
-
return i.jsxs(t.View,{testID:
|
|
39
|
-
/* @__PURE__ */i.jsx(Text,{...w,style:
|
|
40
|
-
/* @__PURE__ */i.jsx(Text,{...w,style:
|
|
41
|
-
return i.jsx(t.View,{testID:u,style:[{paddingHorizontal:v?0:g.paddingX,paddingVertical:v?0:g.paddingY,borderWidth:v?0:g.borderWidth,borderColor:g.borderColor,borderRadius:g.radius,backgroundColor:g.background},
|
|
42
|
-
return i.jsxs(t.View,{testID:
|
|
43
|
-
/* @__PURE__ */i.jsx(Text,{...w,style:
|
|
44
|
-
/* @__PURE__ */i.jsx(Text,{...w,style:[
|
|
45
|
-
return i.jsx(t.Animated.Image,{...o,fadeDuration:0,onLoad:e=>{n?.(e);let i=a.motion.duration.fade;if(s||i<=0){c.setValue(1),r?.();return}t.Animated.timing(c,{toValue:1,duration:i,easing:t.Easing.out(t.Easing.cubic),useNativeDriver:t.Platform.OS!=="web"}).start(()=>r?.())},style:[l,{opacity:c}]})}function BlockThumbnail({src:r,alt:n,size:l="xs",icon:o=
|
|
46
|
-
return i.jsxs(t.View,{testID:u,style:[
|
|
47
|
-
return i.jsx(t.View,{style:[{margin:-b,padding:b,borderRadius:w+b,backgroundColor:
|
|
48
|
-
return i.jsx(t.View,{testID:v,onLayout:T,style:[$,k],children:/* @__PURE__ */i.jsx(t.View,{style:{flex:1},children:/* @__PURE__ */i.jsx(Skeleton,{lines:2,label:x})})});let W=o??[],M=W.slice(-3),N=W.length-M.length,G=f||m,q=e=>e+C.motion.rise.from,U={transform:[{translateY:_.interpolate({inputRange:[0,1],outputRange:[q(E.current||C.bar.h),0]})}],...C.motion.rise.fade?{opacity:_}:{}},Y=
|
|
49
|
-
return i.jsxs(t.Animated.View,{testID:v,onLayout:e=>{E.current=e.nativeEvent.layout.height,T?.(e)},style:[$,U,k],children:[M.length>0?/* @__PURE__ */i.jsxs(t.Animated.View,{accessibilityElementsHidden:true,importantForAccessibility:"no-hide-descendants",style:[
|
|
50
|
-
/* @__PURE__ */i.jsx(t.View,{testID:B("count"),style:[
|
|
38
|
+
return i.jsx(t.View,{testID:u,style:[Uo(h,a==="inset"?e.inset:e.box),p],children:x.map((r,n)=>{let l=r===y?"note":m&&n===f.length-1?"total":"row",o=l==="note"?e.renewRow:l==="total"?e.totalRow:e.row,a=l==="note"?e.renewTerm:l==="total"?e.totalTerm:e.term,s=l==="note"?e.renew:l==="total"?e.total:e.value;/* @__PURE__ */
|
|
39
|
+
return i.jsxs(t.View,{testID:xo(u,r.key??n,r.testID),...b(r),style:[Ss.cardRow,{columnGap:o.gap[0]??0,minHeight:o.minHeight||void 0,marginTop:o.marginTop||void 0}],children:[
|
|
40
|
+
/* @__PURE__ */i.jsx(Text,{...w,style:Go(h,fo(h,a)),children:r.term}),
|
|
41
|
+
/* @__PURE__ */i.jsx(Text,{...w,style:Go(h,fo(h,s)),children:r.value})]},r.key??`${n}`)})})}let v=a==="flush";/* @__PURE__ */
|
|
42
|
+
return i.jsx(t.View,{testID:u,style:[{paddingHorizontal:v?0:g.paddingX,paddingVertical:v?0:g.paddingY,borderWidth:v?0:g.borderWidth,borderColor:g.borderColor,borderRadius:g.radius,backgroundColor:g.background},ea(g.shadow),p],children:x.map((e,r)=>{let n=r===x.length-1,l=m&&r===f.length-1,o=l?g.totalRowMinHeight:g.row.minHeight;/* @__PURE__ */
|
|
43
|
+
return i.jsxs(t.View,{testID:xo(u,e.key??r,e.testID),...b(e),style:[Ss.row,{alignItems:g.row.center?"center":"baseline",paddingVertical:g.row.paddingY,columnGap:g.row.gapX,rowGap:g.row.gapY},o?{minHeight:o}:null,n||g.row.divider===0?null:{borderBottomWidth:g.row.divider,borderBottomColor:g.borderColor}],children:[
|
|
44
|
+
/* @__PURE__ */i.jsx(Text,{...w,style:Go(h,l?g.totalTerm:g.term),children:e.term}),
|
|
45
|
+
/* @__PURE__ */i.jsx(Text,{...w,style:[Go(h,l?g.total:e.tone==="off"?g.off:g.value),Ss.value,g.tabular?Ss.tabular:null],children:e.value})]},e.key??`${r}`)})})}var Ss=t.StyleSheet.create({row:{flexDirection:"row",flexWrap:"wrap",justifyContent:"space-between"},cardRow:{flexDirection:"row",justifyContent:"space-between",alignItems:"center"},value:{marginLeft:"auto",textAlign:"right"},tabular:{fontVariant:["tabular-nums"]}});function BlockIcon({icon:e,size:t,color:r,style:n}){let l=Zl();return typeof e=="function"?e({size:t,color:r??l.colors.ink}):typeof e!="string"?/* @__PURE__ */i.jsx(Glyph,{icon:e,size:t,color:r,style:n}):/* @__PURE__ */i.jsx(Icon,{name:e,size:t,color:r,style:n})}function Is(e,t){t>e.value&&e.onMore?e.onMore():t<e.value&&e.onFewer?e.onFewer():e.onChange?.(t)}function zs(t){let[i,r]=e.useState(null);return{shown:t!==null&&i===t,onShown:()=>r(t)}}function FadeImage({onShown:r,onLoad:n,style:l,...o}){let a=Zl(),s=Qo(a),c=e.useRef(new t.Animated.Value(0)).current;/* @__PURE__ */
|
|
46
|
+
return i.jsx(t.Animated.Image,{...o,fadeDuration:0,onLoad:e=>{n?.(e);let i=a.motion.duration.fade;if(s||i<=0){c.setValue(1),r?.();return}t.Animated.timing(c,{toValue:1,duration:i,easing:t.Easing.out(t.Easing.cubic),useNativeDriver:t.Platform.OS!=="web"}).start(()=>r?.())},style:[l,{opacity:c}]})}function BlockThumbnail({src:r,alt:n,size:l="xs",icon:o=Ba,iconSize:a,tint:s,iconColor:c,onError:d,testID:u,style:p}){let h=Zl(),g=h.metrics.thumbnail[l],[f,m]=e.useState(null),[b,w]=e.useState(null),y=r&&f!==r?r:null,x=g.top;e.useEffect(()=>{if(!x||!y)return;let e=true;return t.Image.getSize(y,(t,i)=>{e&&t>0&&i>0&&w(t/i)},()=>{}),()=>{e=false}},[x,y]);let v=y?g.frame:g.empty,[k=0,T=0,j=0,S=0]=v.padding,[I=0,z=0,D=0,C=0]=g.img.padding,H=Yo(h,v),F=g.top&&b!==null;/* @__PURE__ */
|
|
47
|
+
return i.jsxs(t.View,{testID:u,style:[Uo(h,v),l==="md"||l==="lg"?{width:"100%",aspectRatio:1}:{width:v.w,height:v.h},{alignItems:"center",justifyContent:"center",overflow:"hidden"},!y&&s!==void 0?{backgroundColor:s}:null,p],...y?{}:n?{accessible:true,accessibilityRole:"image",accessibilityLabel:n}:{accessibilityElementsHidden:true,importantForAccessibility:"no-hide-descendants"},children:[y?/* @__PURE__ */i.jsx(FadeImage,{source:{uri:y},accessibilityLabel:n,accessible:!!n,onError:()=>{m(y),d?.(y)},resizeMode:F?"stretch":g.img.fit==="contain"?"contain":"cover",style:F?{position:"absolute",top:k,left:S,width:v.w-S-T,height:(v.w-S-T)/b}:{position:"absolute",top:k+I,right:T+z,bottom:j+D,left:S+C}},y):/* @__PURE__ */i.jsx(BlockIcon,{icon:o,size:a??g.icon.w,color:c??lo(h,g.icon.color)}),H?/* @__PURE__ */i.jsx(t.View,{pointerEvents:"none",style:H}):null]})}t.StyleSheet.create({row:{flexDirection:"row",alignItems:"flex-start"},noGap:{columnGap:0},box:{alignItems:"center",justifyContent:"center"},grow:{flex:1,minWidth:0}});t.StyleSheet.create({row:{flexDirection:"row",alignItems:"center"},words:{flex:1,minWidth:0},center:{alignItems:"center",justifyContent:"center"}});t.StyleSheet.create({hintRow:{flexDirection:"row",alignItems:"flex-start"},grow:{flex:1}});t.StyleSheet.create({base:{alignItems:"center",justifyContent:"center",alignSelf:"flex-start"}});t.StyleSheet.create({base:{alignSelf:"flex-start"}});t.StyleSheet.create({track:{alignSelf:"flex-start"},thumb:{position:"absolute"}});t.StyleSheet.create({box:{flexDirection:"row"},line:{alignItems:"center"},area:{alignItems:"stretch"},input:{flex:1,minWidth:0,margin:0,borderWidth:0,backgroundColor:"transparent"},hidden:{position:"absolute",width:1,height:1,overflow:"hidden",opacity:0}});t.StyleSheet.create({clip:{overflow:"hidden"},center:{alignItems:"center",justifyContent:"center"},stack:{flexDirection:"row",alignItems:"center",alignSelf:"flex-start"}});t.StyleSheet.create({leadAuto:{flexShrink:0},words:{flex:1,minWidth:0},below:{alignSelf:"flex-start"},end:{flexDirection:"row",alignItems:"center",flexShrink:1,maxWidth:"45%",justifyContent:"flex-end"},flush:{marginTop:0}});t.StyleSheet.create({offRow:{flexDirection:"row",alignItems:"center",alignSelf:"stretch"},offText:{flexShrink:1,minWidth:0},offAction:{flexDirection:"row",alignItems:"center",marginLeft:"auto",flexShrink:0},row:{flexDirection:"row",alignItems:"flex-start"},copy:{flex:1,minWidth:0},acts:{flexDirection:"row",flexWrap:"wrap",alignItems:"center"}});t.StyleSheet.create({fill:{flex:1},host:{position:"absolute",left:0,right:0,alignItems:"center"},cardHost:{position:"absolute"},card:{alignSelf:"stretch"},start:{textAlign:"left"},pill:{flexDirection:"row",flexWrap:"wrap",alignItems:"center",justifyContent:"center",alignSelf:"center",maxWidth:"100%"},center:{textAlign:"center"},shrink:{flexShrink:1},topHost:{position:"absolute",alignItems:"center",zIndex:1e3},top:{flexDirection:"row",alignItems:"center"},copy:{flex:1}});t.StyleSheet.create({row:{flexDirection:"row",alignItems:"center"}});var Ds=[0,0,.58,1];function Cs(e){return typeof e=="number"?e:typeof e=="string"?e?{uri:e}:null:e&&typeof e=="object"&&e.uri?e:null}function Hs(e){return e===null?null:typeof e=="object"?e.uri:String(e)}function Thumb({m:r,image:n,first:l,fallback:o,onError:a,testID:s}){let c=Zl(),d=c.metrics.thumbnail.xs.icon,u=Hs(n),[p,h]=e.useState(null),g=u!==null&&p!==u?Cs(n):null,{shown:f,onShown:m}=zs(g?u:null),b=r.thumbRing,w=r.thumb.radius[0]??0,y=r.imgBlend==="multiply"?{mixBlendMode:"multiply"}:null,x=r.imgInset;/* @__PURE__ */
|
|
48
|
+
return i.jsx(t.View,{style:[{margin:-b,padding:b,borderRadius:w+b,backgroundColor:mo(c,r.bar.bg)||void 0},ea(r.thumb.shadow),l?null:{marginLeft:-b-r.thumbOverlap}],children:/* @__PURE__ */i.jsxs(t.View,{testID:s,style:[Uo(c,{...r.thumb,shadow:{...r.thumb.shadow,x:0,y:0,blur:0}}),{paddingTop:0,paddingRight:0,paddingBottom:0,paddingLeft:0,width:r.thumb.w,height:r.thumb.h,overflow:"hidden",alignItems:"center",justifyContent:"center"},!f&&o?.tint!==void 0?{backgroundColor:o.tint}:null],children:[f?null:/* @__PURE__ */i.jsx(BlockIcon,{icon:o?.icon??Ba,size:o?.iconSize??d.w,color:o?.iconColor??lo(c,d.color)}),g&&u!==null?/* @__PURE__ */i.jsx(FadeImage,{source:g,onShown:m,onError:()=>{h(u),n!==null&&a?.(n)},resizeMode:r.imgFit,style:[{position:"absolute",top:x,right:x,bottom:x,left:x},y]},u):null]})})}var Fs={color:"transparent",x:0,y:0,blur:0,spread:0};function _s(e){let t=Ho(e,wl),i=Ha;return{...t,bar:{...t.bar,shadow:Fs},lift:Fs,thumbRing:0,imgInset:i.imgInset,imgBlend:"normal",total:{...t.total,lineHeight:i.totalLineHeight},go:{...t.go,h:i.go.h,minHeight:i.go.h,padding:[0,i.go.paddingX,0,i.go.paddingX],bg:i.go.bg,edge:{...t.go.edge,width:0},color:i.go.color},goText:{...t.goText,color:i.go.color}}}function CartBar(r){let{count:n,countLabel:l,thumbs:o,fallback:a,onImageError:s,total:c,sub:d,actionLabel:u,actionHiddenWord:p,actionAccessibilityLabel:h,onPress:g,disabled:f=false,busy:m=false,visible:b=true,variant:w="standard",loading:y=false,loadingLabel:x,testID:v,style:k,onLayout:T}=r,j=e.useRef(c);e.useEffect(()=>{j.current!==c&&(j.current=c,t.Platform.OS==="ios"&&c&&!y&&t.AccessibilityInfo.announceForAccessibility?.([l,c].filter(Boolean).join(", ")))},[c,l,y]);let S=Zl(),I=Qo(S),z=w==="web",D=w==="checkout",C=z?Ho(S,yl):D?_s(S):Ho(S,wl),H=e=>Go(S,fo(S,e)),F=t.Platform.OS!=="web",_=e.useRef(new t.Animated.Value(1)).current,O=e.useRef(new t.Animated.Value(1)).current,E=e.useRef(0),[P,L]=e.useState(false),A=e.useRef({visible:b,count:n});if(e.useEffect(()=>{let e=A.current;if(A.current={visible:b,count:n},I)return;let i=e=>t.Easing.bezier(e[0]??0,e[1]??0,e[2]??1,e[3]??1),r=i(S.motion.easing.out);if(b&&!e.visible)_.setValue(0),t.Animated.timing(_,{toValue:1,duration:C.motion.rise.duration,easing:r,useNativeDriver:F}).start();else if(b&&typeof n=="number"&&typeof e.count=="number"&&n>e.count){let e=C.motion.bump,n=e.curve==="out"?r:i(Ds);O.setValue(1),t.Animated.sequence([t.Animated.timing(O,{toValue:e.scale,duration:e.duration*e.peakAt,easing:n,useNativeDriver:F}),t.Animated.timing(O,{toValue:1,duration:e.duration*(1-e.peakAt),easing:n,useNativeDriver:F})]).start()}},[b,n,I,_,O,C,S.motion.easing.out,F]),!b)return null;let B=e=>v===void 0?void 0:`${v}-${e}`,[R=0,V=0]=C.bar.gap,$=[Uo(S,{...C.bar,shadow:C.lift}),{flexDirection:"row",alignItems:"center",columnGap:R,rowGap:V},z?{width:"100%",maxWidth:C.bar.w,alignSelf:"center"}:null,D?Fa(Ha.drop):null];if(y)/* @__PURE__ */
|
|
49
|
+
return i.jsx(t.View,{testID:v,onLayout:T,style:[$,k],children:/* @__PURE__ */i.jsx(t.View,{style:{flex:1},children:/* @__PURE__ */i.jsx(Skeleton,{lines:2,label:x})})});let W=o??[],M=W.slice(-3),N=W.length-M.length,G=f||m,q=e=>e+C.motion.rise.from,U={transform:[{translateY:_.interpolate({inputRange:[0,1],outputRange:[q(E.current||C.bar.h),0]})}],...C.motion.rise.fade?{opacity:_}:{}},Y=Yo(S,C.go),X=[l,c,d].filter(e=>!!e);/* @__PURE__ */
|
|
50
|
+
return i.jsxs(t.Animated.View,{testID:v,onLayout:e=>{E.current=e.nativeEvent.layout.height,T?.(e)},style:[$,U,k],children:[M.length>0?/* @__PURE__ */i.jsxs(t.Animated.View,{accessibilityElementsHidden:true,importantForAccessibility:"no-hide-descendants",style:[Uo(S,C.thumbs),{flexDirection:"row",alignItems:"center",height:C.thumbs.h},{transform:[{scale:O}]}],children:[M.map((e,t)=>/* @__PURE__ */i.jsx(Thumb,{m:C,image:e,first:t===0,fallback:a,onError:s,testID:B(`thumb-${N+t}`)},N+t)),
|
|
51
|
+
/* @__PURE__ */i.jsx(t.View,{testID:B("count"),style:[Uo(S,C.count),{position:"absolute",top:C.countAt.top,right:C.countAt.right,minWidth:C.count.w,height:C.count.h,alignItems:"center",justifyContent:"center"}],children:/* @__PURE__ */i.jsx(Text,{style:H(C.countText),children:String(n)})})]}):null,
|
|
51
52
|
/* @__PURE__ */i.jsxs(t.View,{accessible:X.length>0,accessibilityLabel:X.length>0?X.join(", "):void 0,accessibilityLiveRegion:"polite",style:{flex:1,minWidth:0,rowGap:C.sum.gap[1]},children:[c?/* @__PURE__ */i.jsx(Text,{style:H(C.total),children:c}):null,d?/* @__PURE__ */i.jsx(Text,{style:H(C.sub),children:d}):null]}),
|
|
52
|
-
/* @__PURE__ */i.jsxs(t.Pressable,{testID:B("go"),onPress:G?void 0:g,disabled:G,onPressIn:()=>L(true),onPressOut:()=>L(false),accessibilityRole:"button",accessibilityLabel:h??`${u}${p??""}`,accessibilityState:{disabled:G,busy:m},"aria-busy":m,style:[
|
|
53
|
-
/* @__PURE__ */i.jsxs(Text,{style:H(C.goText),numberOfLines:1,children:[u,p??""]}),Y?/* @__PURE__ */i.jsx(t.View,{pointerEvents:"none",style:Y}):null]})]})}function Square({size:r,web:n,src:l,alt:o,fallback:a,onError:s,testID:c}){let d=
|
|
54
|
-
return i.jsxs(t.View,{testID:c,accessible:!m&&!!o,accessibilityRole:!m&&o?"image":void 0,accessibilityLabel:m?void 0:o,style:[
|
|
53
|
+
/* @__PURE__ */i.jsxs(t.Pressable,{testID:B("go"),onPress:G?void 0:g,disabled:G,onPressIn:()=>L(true),onPressOut:()=>L(false),accessibilityRole:"button",accessibilityLabel:h??`${u}${p??""}`,accessibilityState:{disabled:G,busy:m},"aria-busy":m,style:[Uo(S,C.go),{flexDirection:"row",alignItems:"center",justifyContent:"center",minHeight:C.go.h},P&&!I&&!G?{transform:[{scale:C.pressScale}]}:null,f?{opacity:ao}:null],children:[
|
|
54
|
+
/* @__PURE__ */i.jsxs(Text,{style:H(C.goText),numberOfLines:1,children:[u,p??""]}),Y?/* @__PURE__ */i.jsx(t.View,{pointerEvents:"none",style:Y}):null]})]})}function Square({size:r,web:n,src:l,alt:o,fallback:a,onError:s,testID:c}){let d=Zl(),u=n?Ho(d,sl):Ho(d,al),p=n?Ho(d,sl).sq:Ho(d,al)[r],h=d.metrics.thumbnail.xs.icon,[g,f]=e.useState(null),m=l&&g!==l?l:null,{shown:b,onShown:w}=zs(m),y=p.w*u.imgInset,x=u.imgBlend==="multiply"?{mixBlendMode:"multiply"}:null;/* @__PURE__ */
|
|
55
|
+
return i.jsxs(t.View,{testID:c,accessible:!m&&!!o,accessibilityRole:!m&&o?"image":void 0,accessibilityLabel:m?void 0:o,style:[Uo(d,p),{width:p.w,height:p.h,overflow:"hidden",alignItems:"center",justifyContent:"center"},!b&&a?.tint!==void 0?{backgroundColor:a.tint}:null],children:[b?null:/* @__PURE__ */i.jsx(BlockIcon,{icon:a?.icon??Ba,size:a?.iconSize??h.w,color:a?.iconColor??lo(d,h.color)}),m?/* @__PURE__ */i.jsx(FadeImage,{source:{uri:m},accessibilityLabel:o,accessible:!!o,onShown:w,onError:()=>{f(m),s?.(m)},resizeMode:u.imgFit,style:[{position:"absolute",top:y,right:y,bottom:y,left:y},x]},m):null]})}function PlanLine({name:r,image:n,imageAlt:l,price:o,wasPrice:a,smalls:s,quantity:c,removeLabel:d,onRemove:u,actions:p,fallback:h,onImageError:g,error:f,testID:m,style:b}){let w=Zl(),y=Ho(w,bl),x=e=>Go(w,fo(w,e)),[v,k]=e.useState(null),T=n&&v!==n?n:null,{shown:j,onShown:S}=zs(T),I=e=>m===void 0?void 0:`${m}-${e}`,[z=0]=y.line.gap,D=p!==void 0?p.map(e=>({...e,testID:xo(m,e.key,e.testID)})):d&&u?[{key:"remove",label:d,onPress:u,testID:I("remove"),disabled:void 0,accessibilityLabel:void 0}]:[];/* @__PURE__ */
|
|
55
56
|
return i.jsxs(t.View,{testID:m,style:[{flexDirection:"row",alignItems:"flex-start",columnGap:z},b],children:[
|
|
56
|
-
/* @__PURE__ */i.jsxs(t.View,{testID:I("image"),accessible:!T&&!!l,accessibilityRole:!T&&l?"image":void 0,accessibilityLabel:T?void 0:l,style:[
|
|
57
|
+
/* @__PURE__ */i.jsxs(t.View,{testID:I("image"),accessible:!T&&!!l,accessibilityRole:!T&&l?"image":void 0,accessibilityLabel:T?void 0:l,style:[Uo(w,y.img),{width:y.img.w,height:y.img.h,overflow:"hidden",alignItems:"center",justifyContent:"center"},!j&&h?.tint!==void 0?{backgroundColor:h.tint}:null],children:[j?null:/* @__PURE__ */i.jsx(BlockIcon,{icon:h?.icon??Ba,size:h?.iconSize??y.icon.w,color:h?.iconColor??lo(w,y.icon.color)}),T?/* @__PURE__ */i.jsx(FadeImage,{source:{uri:T},accessibilityLabel:l,accessible:!!l,onShown:S,onError:()=>{k(T),g?.(T)},resizeMode:"cover",style:{position:"absolute",top:0,right:0,bottom:0,left:0}},T):null]}),
|
|
57
58
|
/* @__PURE__ */i.jsxs(t.View,{style:{flex:1,minWidth:0},children:[
|
|
58
|
-
/* @__PURE__ */i.jsx(Text,{testID:I("name"),style:x(y.name),children:r}),o||a||s&&s.length>0?/* @__PURE__ */i.jsxs(t.View,{style:{flexDirection:"row",flexWrap:"wrap",alignItems:"center",columnGap:y.prices.gap[0],rowGap:y.prices.gap[1],marginTop:y.prices.marginTop},children:[o?/* @__PURE__ */i.jsx(Text,{testID:I("price"),style:x(y.price),children:o}):null,a?/* @__PURE__ */i.jsx(Text,{style:x(y.was),children:a}):null,s?.map((e,t)=>/* @__PURE__ */i.jsx(Text,{style:x(y.small),children:e},`${t}-${e}`))]}):null,c||D.length>0?/* @__PURE__ */i.jsxs(t.View,{style:{flexDirection:"row",alignItems:"center",columnGap:y.acts.gap[0],marginTop:y.acts.marginTop},children:[c?/* @__PURE__ */i.jsx(InkedQuantityStepper,{ink:
|
|
59
|
-
return i.jsxs(t.View,{testID:o,role:"group",accessibilityLabel:e.label,style:[
|
|
60
|
-
return i.jsx(t.Pressable,{testID:o===void 0?void 0:`${o}-${r.value}`,onPress:a?void 0:()=>e.onChange?.(r.value),accessibilityRole:"button",accessibilityLabel:r.label,accessibilityState:{checked:a},"aria-pressed":a,hitSlop:
|
|
61
|
-
return i.jsxs(t.View,{testID:r,role:"group",accessibilityLabel:e.label,style:[
|
|
62
|
-
/* @__PURE__ */i.jsx(Text,{testID:c("count"),accessibilityLiveRegion:"polite",style:[
|
|
59
|
+
/* @__PURE__ */i.jsx(Text,{testID:I("name"),style:x(y.name),children:r}),o||a||s&&s.length>0?/* @__PURE__ */i.jsxs(t.View,{style:{flexDirection:"row",flexWrap:"wrap",alignItems:"center",columnGap:y.prices.gap[0],rowGap:y.prices.gap[1],marginTop:y.prices.marginTop},children:[o?/* @__PURE__ */i.jsx(Text,{testID:I("price"),style:x(y.price),children:o}):null,a?/* @__PURE__ */i.jsx(Text,{style:x(y.was),children:a}):null,s?.map((e,t)=>/* @__PURE__ */i.jsx(Text,{style:x(y.small),children:e},`${t}-${e}`))]}):null,c||D.length>0?/* @__PURE__ */i.jsxs(t.View,{style:{flexDirection:"row",alignItems:"center",columnGap:y.acts.gap[0],marginTop:y.acts.marginTop},children:[c?/* @__PURE__ */i.jsx(InkedQuantityStepper,{ink:lo(w,y.step.color),variant:"compact",value:c.value,min:c.min,max:c.max,label:c.label,fewerLabel:c.fewerLabel,moreLabel:c.moreLabel,onChange:e=>Is(c,e)}):null,D.map(e=>/* @__PURE__ */i.jsx(t.Pressable,{testID:e.testID,onPress:e.disabled?void 0:e.onPress,disabled:e.disabled,accessibilityRole:"button",accessibilityLabel:e.accessibilityLabel??e.label,accessibilityState:e.disabled?{disabled:true}:void 0,hitSlop:Zo(y.remove.h),style:[{minHeight:y.remove.minHeight||void 0,justifyContent:"center"},e.disabled?{opacity:ao}:null],children:/* @__PURE__ */i.jsx(Text,{tier:"control",style:x(y.removeText),children:e.label})},e.key))]}):null,f?/* @__PURE__ */i.jsx(Text,{accessibilityRole:"alert",accessibilityLiveRegion:"polite",style:[x(y.small),{marginTop:y.acts.marginTop,color:w.colors.alert}],children:f}):null]})]})}function DrawerPlan({plan:e,testID:r}){let n=Zl(),l=Ho(n,cl),o=e.testID??r,a=Yo(n,l.plan);/* @__PURE__ */
|
|
60
|
+
return i.jsxs(t.View,{testID:o,role:"group",accessibilityLabel:e.label,style:[Uo(n,l.plan),{flexDirection:"row",alignSelf:"flex-start"}],children:[e.options.map(r=>{let a=r.value===e.value,s=a?l.planOn:l.planBtn;/* @__PURE__ */
|
|
61
|
+
return i.jsx(t.Pressable,{testID:o===void 0?void 0:`${o}-${r.value}`,onPress:a?void 0:()=>e.onChange?.(r.value),accessibilityRole:"button",accessibilityLabel:r.label,accessibilityState:{checked:a},"aria-pressed":a,hitSlop:Zo(s.minHeight||s.h),style:[Uo(n,s),{minHeight:s.minHeight||void 0,justifyContent:"center"}],children:/* @__PURE__ */i.jsx(Text,{tier:"control",style:Go(n,fo(n,a?l.planOnText:l.planText)),children:r.label})},r.value)}),a?/* @__PURE__ */i.jsx(t.View,{pointerEvents:"none",style:a}):null]})}function DrawerStepper({q:e,testID:r}){let n=Zl(),l=Ho(n,cl),o=Qo(n),a=e.min??1,s=e.max??Number.POSITIVE_INFINITY,c=e=>r===void 0?void 0:`${r}-${e}`,d=Yo(n,l.qty),u=(r,a,s,d,u)=>/* @__PURE__ */i.jsx(t.Pressable,{testID:c(u),onPress:s?void 0:()=>Is(e,d),accessibilityRole:"button",accessibilityLabel:r,disabled:s,accessibilityState:s?{disabled:true}:void 0,hitSlop:Zo(l.qtyBtn.w),style:({pressed:e})=>[Uo(n,l.qtyBtn),{width:l.qtyBtn.w,height:l.qtyBtn.h,alignItems:"center",justifyContent:"center"},e&&!o&&!s?{transform:[{scale:l.pressScale}]}:null],children:/* @__PURE__ */i.jsx(Glyph,{icon:a==="minus"?ns:ds,size:l.qtyIcon.w,color:n.colors.text})});/* @__PURE__ */
|
|
62
|
+
return i.jsxs(t.View,{testID:r,role:"group",accessibilityLabel:e.label,style:[Uo(n,l.qty),{flexDirection:"row",alignItems:"center",height:l.qty.h}],children:[u(e.fewerLabel,"minus",e.value<=a,Math.max(a,e.value-1),"fewer"),
|
|
63
|
+
/* @__PURE__ */i.jsx(Text,{testID:c("count"),accessibilityLiveRegion:"polite",style:[Go(n,fo(n,l.count)),{minWidth:l.countMin,textAlign:"center"}],children:e.value}),u(e.moreLabel,"plus",e.value>=s,Math.min(s,e.value+1),"more"),d?/* @__PURE__ */i.jsx(t.View,{pointerEvents:"none",style:d}):null]})}function DrawerLine({name:r,image:n,imageAlt:l,badge:o,meta:a,note:s,plan:c,price:d,wasPrice:u,quantity:p,removeLabel:h,onRemove:g,actions:f,fallback:m,onImageError:b,error:w,loading:y=false,loadingLabel:x,testID:v,style:k}){let T=Zl(),j=Ho(T,cl),S=e=>Go(T,fo(T,e)),[I,z]=e.useState(null),D=n&&I!==n?n:null,{shown:C,onShown:H}=zs(D),F=e=>v===void 0?void 0:`${v}-${e}`,[_=0]=j.line.gap,O=Yo(T,j.img),E=Yo(T,j.badge),P=T.metrics.thumbnail.xs.icon;if(y)/* @__PURE__ */
|
|
63
64
|
return i.jsxs(t.View,{testID:v,style:[{flexDirection:"row",alignItems:"flex-start",columnGap:_},k],children:[
|
|
64
|
-
/* @__PURE__ */i.jsx(t.View,{style:[
|
|
65
|
-
/* @__PURE__ */i.jsx(t.View,{style:{flex:1,minWidth:0},children:/* @__PURE__ */i.jsx(Skeleton,{lines:2,label:x})})]});let L=f!==void 0?f.map(e=>({...e,testID:
|
|
65
|
+
/* @__PURE__ */i.jsx(t.View,{style:[Uo(T,j.img),{width:j.img.w,height:j.img.h}],children:O?/* @__PURE__ */i.jsx(t.View,{pointerEvents:"none",style:O}):null}),
|
|
66
|
+
/* @__PURE__ */i.jsx(t.View,{style:{flex:1,minWidth:0},children:/* @__PURE__ */i.jsx(Skeleton,{lines:2,label:x})})]});let L=f!==void 0?f.map(e=>({...e,testID:xo(v,e.key,e.testID)})):h&&g?[{key:"remove",label:h,onPress:g,testID:F("remove"),disabled:void 0,accessibilityLabel:`${h} ${r}`}]:[];/* @__PURE__ */
|
|
66
67
|
return i.jsxs(t.View,{testID:v,style:[{flexDirection:"row",alignItems:"flex-start",columnGap:_},k],children:[
|
|
67
|
-
/* @__PURE__ */i.jsxs(t.View,{testID:F("image"),accessible:!D&&!!l,accessibilityRole:!D&&l?"image":void 0,accessibilityLabel:D?void 0:l,style:[
|
|
68
|
+
/* @__PURE__ */i.jsxs(t.View,{testID:F("image"),accessible:!D&&!!l,accessibilityRole:!D&&l?"image":void 0,accessibilityLabel:D?void 0:l,style:[Uo(T,j.img),{width:j.img.w,height:j.img.h,alignItems:"center",justifyContent:"center"},!C&&m?.tint!==void 0?{backgroundColor:m.tint}:null],children:[C?null:/* @__PURE__ */i.jsx(BlockIcon,{icon:m?.icon??Ba,size:m?.iconSize??P.w,color:m?.iconColor??lo(T,P.color)}),D?/* @__PURE__ */i.jsx(FadeImage,{source:{uri:D},accessibilityLabel:l,accessible:!!l,onShown:H,onError:()=>{z(D),b?.(D)},resizeMode:j.imgFit,style:{position:"absolute",top:j.imgInset,right:j.imgInset,bottom:j.imgInset,left:j.imgInset}},D):null,O?/* @__PURE__ */i.jsx(t.View,{pointerEvents:"none",style:O}):null]}),
|
|
68
69
|
/* @__PURE__ */i.jsxs(t.View,{style:{flex:1,minWidth:0},children:[
|
|
69
70
|
/* @__PURE__ */i.jsxs(t.View,{style:{flexDirection:"row",alignItems:"flex-start",columnGap:_},children:[
|
|
70
71
|
/* @__PURE__ */i.jsxs(t.View,{testID:F("name"),style:{flex:1,minWidth:0,flexDirection:"row",flexWrap:"wrap",alignItems:j.name.center?"center":"baseline",columnGap:j.name.gap[0],rowGap:j.name.gap[1]},children:[
|
|
71
|
-
/* @__PURE__ */i.jsx(Text,{style:S(j.nameText),children:r}),o?/* @__PURE__ */i.jsxs(t.View,{style:[
|
|
72
|
-
/* @__PURE__ */i.jsx(Text,{style:S(j.badgeText),children:o.label}),E?/* @__PURE__ */i.jsx(t.View,{pointerEvents:"none",style:E}):null]}):null]}),d||u?/* @__PURE__ */i.jsxs(t.View,{children:[d?/* @__PURE__ */i.jsx(Text,{testID:F("price"),style:[S(j.price),{alignSelf:"flex-start"}],children:d}):null,u?/* @__PURE__ */i.jsx(Text,{style:[S(j.was),{alignSelf:"flex-end",textAlign:"right"}],children:u}):null]}):null]}),a?/* @__PURE__ */i.jsx(Text,{style:[S(j.meta),{marginTop:j.meta.marginTop}],children:a}):null,s?/* @__PURE__ */i.jsx(Text,{style:[S(j.note),{marginTop:j.note.marginTop}],children:s}):null,c||p||L.length>0?/* @__PURE__ */i.jsxs(t.View,{style:{flexDirection:"row",flexWrap:"wrap",alignItems:"center",columnGap:j.acts.gap[0],rowGap:j.acts.gap[1],marginTop:j.acts.marginTop},children:[c?/* @__PURE__ */i.jsx(DrawerPlan,{plan:c,testID:F("plan")}):null,p?/* @__PURE__ */i.jsx(DrawerStepper,{q:p,testID:F("stepper")}):null,L.map(e=>/* @__PURE__ */i.jsx(t.Pressable,{testID:e.testID,onPress:e.disabled?void 0:e.onPress,disabled:e.disabled,accessibilityRole:"button",accessibilityLabel:e.accessibilityLabel??e.label,accessibilityState:e.disabled?{disabled:true}:void 0,hitSlop:
|
|
73
|
-
return i.jsxs(t.View,{testID:j,style:[
|
|
72
|
+
/* @__PURE__ */i.jsx(Text,{style:S(j.nameText),children:r}),o?/* @__PURE__ */i.jsxs(t.View,{style:[Uo(T,j.badge),{height:j.badge.h,justifyContent:"center"}],children:[
|
|
73
|
+
/* @__PURE__ */i.jsx(Text,{style:S(j.badgeText),children:o.label}),E?/* @__PURE__ */i.jsx(t.View,{pointerEvents:"none",style:E}):null]}):null]}),d||u?/* @__PURE__ */i.jsxs(t.View,{children:[d?/* @__PURE__ */i.jsx(Text,{testID:F("price"),style:[S(j.price),{alignSelf:"flex-start"}],children:d}):null,u?/* @__PURE__ */i.jsx(Text,{style:[S(j.was),{alignSelf:"flex-end",textAlign:"right"}],children:u}):null]}):null]}),a?/* @__PURE__ */i.jsx(Text,{style:[S(j.meta),{marginTop:j.meta.marginTop}],children:a}):null,s?/* @__PURE__ */i.jsx(Text,{style:[S(j.note),{marginTop:j.note.marginTop}],children:s}):null,c||p||L.length>0?/* @__PURE__ */i.jsxs(t.View,{style:{flexDirection:"row",flexWrap:"wrap",alignItems:"center",columnGap:j.acts.gap[0],rowGap:j.acts.gap[1],marginTop:j.acts.marginTop},children:[c?/* @__PURE__ */i.jsx(DrawerPlan,{plan:c,testID:F("plan")}):null,p?/* @__PURE__ */i.jsx(DrawerStepper,{q:p,testID:F("stepper")}):null,L.map(e=>/* @__PURE__ */i.jsx(t.Pressable,{testID:e.testID,onPress:e.disabled?void 0:e.onPress,disabled:e.disabled,accessibilityRole:"button",accessibilityLabel:e.accessibilityLabel??e.label,accessibilityState:e.disabled?{disabled:true}:void 0,hitSlop:Zo(j.remove.minHeight||j.remove.h),style:[{minHeight:j.remove.minHeight||void 0,justifyContent:"center"},e.disabled?{opacity:ao}:null],children:/* @__PURE__ */i.jsx(Text,{tier:"control",style:S(j.removeText),children:e.label})},e.key))]}):null,w?/* @__PURE__ */i.jsx(Text,{accessibilityRole:"alert",accessibilityLiveRegion:"polite",style:[S(j.meta),{marginTop:j.acts.marginTop,color:T.colors.alert}],children:w}):null]})]})}function CartLine(e){let{name:r,image:n,imageAlt:l,badge:o,meta:a,metas:s,price:c,wasPrice:d,quantity:u,removeLabel:p,onRemove:h,actions:g,fallback:f,onImageError:m,variant:b="standard",thumbSize:w="md",align:y="top",namePress:x,error:v,loading:k=false,loadingLabel:T,testID:j,style:S}=e,I=Zl(),z=Ho(I,ol),D=I.metrics.thumbnail.xs,C=e=>Go(I,fo(I,e)),H=n?D.frame.w:D.empty.w,[F=0,_=0]=z.line.gap,O={flexDirection:"row",alignItems:z.line.center?"center":"flex-start",columnGap:F};if(b==="drawer")/* @__PURE__ */return i.jsx(DrawerLine,{...e});if(k)/* @__PURE__ */
|
|
74
|
+
return i.jsxs(t.View,{testID:j,style:[Uo(I,z.line),O,S],children:[
|
|
74
75
|
/* @__PURE__ */i.jsx(t.View,{style:{width:H,height:H,borderRadius:D.frame.radius[0],backgroundColor:I.colors.tintSage}}),
|
|
75
|
-
/* @__PURE__ */i.jsx(t.View,{style:{flex:1},children:/* @__PURE__ */i.jsx(Skeleton,{lines:2,label:T})})]});let E=s&&s.length>0?s.map((e,t)=>/* @__PURE__ */i.jsx(Text,{style:[C(z.meta),{marginTop:z.meta.marginTop}],children:e},`${t}-${e}`)):a?/* @__PURE__ */i.jsx(Text,{style:[C(z.meta),{marginTop:z.meta.marginTop}],children:a}):null,P=e=>j===void 0?void 0:`${j}-${e}`,L=(e,r,n,l)=>/* @__PURE__ */i.jsx(t.Pressable,{testID:l?.testID,onPress:l?.disabled?void 0:n,disabled:l?.disabled,accessibilityRole:"button",accessibilityLabel:l?.accessibilityLabel??r,accessibilityState:l?.disabled?{disabled:true}:void 0,hitSlop:
|
|
76
|
+
/* @__PURE__ */i.jsx(t.View,{style:{flex:1},children:/* @__PURE__ */i.jsx(Skeleton,{lines:2,label:T})})]});let E=s&&s.length>0?s.map((e,t)=>/* @__PURE__ */i.jsx(Text,{style:[C(z.meta),{marginTop:z.meta.marginTop}],children:e},`${t}-${e}`)):a?/* @__PURE__ */i.jsx(Text,{style:[C(z.meta),{marginTop:z.meta.marginTop}],children:a}):null,P=e=>j===void 0?void 0:`${j}-${e}`,L=(e,r,n,l)=>/* @__PURE__ */i.jsx(t.Pressable,{testID:l?.testID,onPress:l?.disabled?void 0:n,disabled:l?.disabled,accessibilityRole:"button",accessibilityLabel:l?.accessibilityLabel??r,accessibilityState:l?.disabled?{disabled:true}:void 0,hitSlop:Zo(z.removeBox.minHeight||z.remove.lineHeight),style:[{minHeight:z.removeBox.minHeight||void 0,justifyContent:"center"},l?.disabled?{opacity:ao}:null],children:/* @__PURE__ */i.jsx(Text,{tier:"control",style:C(z.remove),children:r})},e),A=g!==void 0?g.length>0?g.map(e=>L(e.key,e.label,e.onPress,{disabled:e.disabled,accessibilityLabel:e.accessibilityLabel,testID:xo(j,e.key,e.testID)})):null:p&&h?L("remove",p,h):null;if(b==="square"||b==="web"){let e=b==="web",s=e?{...Ho(I,al),...Ho(I,sl)}:Ho(I,al),u=Yo(I,s.badge),k=(e,r,n,l)=>/* @__PURE__ */i.jsx(t.Pressable,{testID:l?.testID,onPress:l?.disabled?void 0:n,disabled:l?.disabled,accessibilityRole:"button",accessibilityLabel:l?.accessibilityLabel??r,accessibilityState:l?.disabled?{disabled:true}:void 0,hitSlop:Zo(s.actBox.minHeight||s.act.lineHeight),style:[{minHeight:s.actBox.minHeight||void 0,justifyContent:"center"},l?.disabled?{opacity:ao}:null],children:/* @__PURE__ */i.jsx(Text,{tier:"control",style:C(s.act),children:r})},e),T=e?[]:g!==void 0?g.map(e=>k(e.key,e.label,e.onPress,{disabled:e.disabled,accessibilityLabel:e.accessibilityLabel,testID:xo(j,e.key,e.testID)})):p&&h?[k("remove",p,h)]:[],z=x!==void 0&&T.length>0;/* @__PURE__ */
|
|
76
77
|
return i.jsxs(t.View,{testID:j,style:[{flexDirection:"row",alignItems:y==="center"||s.line.center?"center":"flex-start",columnGap:s.line.gap[0]},S],children:[
|
|
77
78
|
/* @__PURE__ */i.jsx(Square,{size:w,web:e,src:n,alt:l,fallback:f,onError:m,testID:P("image")}),
|
|
78
79
|
/* @__PURE__ */i.jsxs(t.View,{style:[{flex:1,minWidth:0},z?{zIndex:1}:null],children:[
|
|
79
80
|
/* @__PURE__ */i.jsxs(t.View,{style:{flexDirection:"row",flexWrap:"wrap",alignItems:s.name.center?"center":"baseline",columnGap:s.name.gap[0],rowGap:s.name.gap[1]},children:[
|
|
80
|
-
/* @__PURE__ */i.jsx(Text,{style:C(x?s.link:s.nameText),onPress:z?x.onPress:void 0,children:r}),o?/* @__PURE__ */i.jsxs(t.View,{style:[
|
|
81
|
-
/* @__PURE__ */i.jsx(Text,{style:C(s.badgeText),children:o.label}),u?/* @__PURE__ */i.jsx(t.View,{pointerEvents:"none",style:u}):null]}):null]}),a?/* @__PURE__ */i.jsx(Text,{style:[C(s.meta),{marginTop:s.meta.marginTop}],children:a}):null,T.length>0?/* @__PURE__ */i.jsx(t.View,{style:{flexDirection:"row",flexWrap:"wrap",alignItems:"center",columnGap:s.acts.gap[0],rowGap:s.acts.gap[1],marginTop:s.acts.marginTop},children:T}):null,v?/* @__PURE__ */i.jsx(Text,{accessibilityRole:"alert",accessibilityLiveRegion:"polite",style:[C(s.meta),{marginTop:s.acts.marginTop,color:I.colors.alert}],children:v}):null]}),c||d?/* @__PURE__ */i.jsxs(t.View,{style:{alignItems:"flex-end"},children:[c?/* @__PURE__ */i.jsx(Text,{testID:P("price"),style:C(s.price),children:c}):null,d?/* @__PURE__ */i.jsx(Text,{style:C(s.was),children:d}):null]}):null,x?/* @__PURE__ */i.jsx(t.Pressable,{testID:x.testID??P("name"),onPress:x.onPress,accessibilityRole:"button",accessibilityLabel:x.accessibilityLabel??r,style:{position:"absolute",top:-s.linkReach,right:0,bottom:-s.linkReach,left:0}}):null]})}if(b==="plan")/* @__PURE__ */return i.jsx(PlanLine,{...e});let B=u?/* @__PURE__ */i.jsx(QuantityStepper,{value:u.value,min:u.min,max:u.max,label:u.label,fewerLabel:u.fewerLabel,moreLabel:u.moreLabel,onChange:e=>
|
|
82
|
-
return i.jsxs(t.View,{testID:j,style:[
|
|
81
|
+
/* @__PURE__ */i.jsx(Text,{style:C(x?s.link:s.nameText),onPress:z?x.onPress:void 0,children:r}),o?/* @__PURE__ */i.jsxs(t.View,{style:[Uo(I,s.badge),{height:s.badge.h,justifyContent:"center"}],children:[
|
|
82
|
+
/* @__PURE__ */i.jsx(Text,{style:C(s.badgeText),children:o.label}),u?/* @__PURE__ */i.jsx(t.View,{pointerEvents:"none",style:u}):null]}):null]}),a?/* @__PURE__ */i.jsx(Text,{style:[C(s.meta),{marginTop:s.meta.marginTop}],children:a}):null,T.length>0?/* @__PURE__ */i.jsx(t.View,{style:{flexDirection:"row",flexWrap:"wrap",alignItems:"center",columnGap:s.acts.gap[0],rowGap:s.acts.gap[1],marginTop:s.acts.marginTop},children:T}):null,v?/* @__PURE__ */i.jsx(Text,{accessibilityRole:"alert",accessibilityLiveRegion:"polite",style:[C(s.meta),{marginTop:s.acts.marginTop,color:I.colors.alert}],children:v}):null]}),c||d?/* @__PURE__ */i.jsxs(t.View,{style:{alignItems:"flex-end"},children:[c?/* @__PURE__ */i.jsx(Text,{testID:P("price"),style:C(s.price),children:c}):null,d?/* @__PURE__ */i.jsx(Text,{style:C(s.was),children:d}):null]}):null,x?/* @__PURE__ */i.jsx(t.Pressable,{testID:x.testID??P("name"),onPress:x.onPress,accessibilityRole:"button",accessibilityLabel:x.accessibilityLabel??r,style:{position:"absolute",top:-s.linkReach,right:0,bottom:-s.linkReach,left:0}}):null]})}if(b==="plan")/* @__PURE__ */return i.jsx(PlanLine,{...e});let B=u?/* @__PURE__ */i.jsx(QuantityStepper,{value:u.value,min:u.min,max:u.max,label:u.label,fewerLabel:u.fewerLabel,moreLabel:u.moreLabel,onChange:e=>Is(u,e)}):null;/* @__PURE__ */
|
|
83
|
+
return i.jsxs(t.View,{testID:j,style:[Uo(I,z.line),{rowGap:_,columnGap:0},S],children:[
|
|
83
84
|
/* @__PURE__ */i.jsxs(t.View,{style:O,children:[
|
|
84
85
|
/* @__PURE__ */i.jsx(BlockThumbnail,{size:"xs",src:n,alt:l,icon:f?.icon,iconSize:f?.iconSize,tint:f?.tint,iconColor:f?.iconColor,onError:m,testID:P("image")}),
|
|
85
86
|
/* @__PURE__ */i.jsxs(t.View,{style:{flex:1,minWidth:0},children:[
|
|
86
87
|
/* @__PURE__ */i.jsxs(t.View,{style:{flexDirection:"row",flexWrap:"wrap",alignItems:"center",columnGap:z.name.gap[0],rowGap:z.name.gap[1]},children:[
|
|
87
|
-
/* @__PURE__ */i.jsx(Text,{style:C(z.nameText),children:r}),o?/* @__PURE__ */i.jsx(Pill,{label:o.label,tone:o.tone??"rx"}):null]}),E,B||A?/* @__PURE__ */i.jsxs(t.View,{style:{flexDirection:"row",alignItems:"center",...g&&g.length>1?{flexWrap:"wrap",rowGap:z.acts.gap[1]}:{},columnGap:z.acts.gap[0],marginTop:z.acts.marginTop},children:[B,A]}):null,v?/* @__PURE__ */i.jsx(Text,{accessibilityRole:"alert",accessibilityLiveRegion:"polite",style:[C(z.meta),{marginTop:z.acts.marginTop,color:I.colors.alert}],children:v}):null]})]}),c||d?/* @__PURE__ */i.jsxs(t.View,{style:{marginLeft:H+F,flexDirection:"row",flexWrap:"wrap",alignItems:"baseline",columnGap:z.end.gap[0],rowGap:z.end.gap[1]},children:[c?/* @__PURE__ */i.jsx(Text,{testID:P("price"),style:C(z.price),children:c}):null,d?/* @__PURE__ */i.jsx(Text,{style:C(z.was),children:d}):null]}):null]})}function Action({action:e,testID:r,quiet:n,web:l=false}){let o=
|
|
88
|
-
return i.jsxs(t.Pressable,{testID:r,onPress:u?void 0:e.onPress,disabled:u,hitSlop:
|
|
88
|
+
/* @__PURE__ */i.jsx(Text,{style:C(z.nameText),children:r}),o?/* @__PURE__ */i.jsx(Pill,{label:o.label,tone:o.tone??"rx"}):null]}),E,B||A?/* @__PURE__ */i.jsxs(t.View,{style:{flexDirection:"row",alignItems:"center",...g&&g.length>1?{flexWrap:"wrap",rowGap:z.acts.gap[1]}:{},columnGap:z.acts.gap[0],marginTop:z.acts.marginTop},children:[B,A]}):null,v?/* @__PURE__ */i.jsx(Text,{accessibilityRole:"alert",accessibilityLiveRegion:"polite",style:[C(z.meta),{marginTop:z.acts.marginTop,color:I.colors.alert}],children:v}):null]})]}),c||d?/* @__PURE__ */i.jsxs(t.View,{style:{marginLeft:H+F,flexDirection:"row",flexWrap:"wrap",alignItems:"baseline",columnGap:z.end.gap[0],rowGap:z.end.gap[1]},children:[c?/* @__PURE__ */i.jsx(Text,{testID:P("price"),style:C(z.price),children:c}):null,d?/* @__PURE__ */i.jsx(Text,{style:C(z.was),children:d}):null]}):null]})}function Action({action:e,testID:r,quiet:n,web:l=false}){let o=Zl(),a=Ho(o,Jn),s=Ho(o,Zn),c=Ho(o,el),d=Qo(o),u=e.disabled===true||e.busy===true,[p,h]=l?e.tone==="link"?[c.link,c.linkText]:e.tone==="go"?[c.go,c.goText]:[c.plain,c.plainText]:e.tone==="link"?[s.link,s.linkText]:e.tone==="go"?[a.go,a.goText]:n?[s.plain,s.plainText]:[a.plain,a.plainText],g=Go(o,fo(o,h)),f=l?c.icon.w:n?s.icon.w:a.icon.w,m=l?Yo(o,p):null;if(l){let n=e.tone!=="link"&&!d;/* @__PURE__ */
|
|
89
|
+
return i.jsxs(t.Pressable,{testID:r,onPress:u?void 0:e.onPress,disabled:u,hitSlop:Zo(p.h),accessibilityRole:"button",accessibilityLabel:e.label,accessibilityState:{disabled:u,busy:e.busy===true},style:({pressed:e})=>[Uo(o,p),{flexDirection:"row",alignItems:"center",justifyContent:"center"},u?{opacity:ao}:null,e&&n?{transform:[{scale:c.pressScale}]}:null],children:[e.icon?/* @__PURE__ */i.jsx(BlockIcon,{icon:e.icon,size:f,color:typeof g.color=="string"?g.color:void 0}):null,
|
|
89
90
|
/* @__PURE__ */i.jsx(Text,{tier:"control",numberOfLines:1,style:g,children:e.label}),m?/* @__PURE__ */i.jsx(t.View,{pointerEvents:"none",style:m}):null]})}/* @__PURE__ */
|
|
90
|
-
return i.jsxs(t.Pressable,{testID:r,onPress:u?void 0:e.onPress,disabled:u,hitSlop:
|
|
91
|
-
/* @__PURE__ */i.jsx(Text,{tier:"control",numberOfLines:1,style:g,children:e.label})]})}function Shot({shot:r,pressable:n,testID:l,onMeasure:o,quiet:a,web:s=false}){let c=
|
|
92
|
-
return i.jsx(t.View,{testID:l,style:[
|
|
93
|
-
return i.jsx(t.View,{style:{margin:-g,padding:g,borderRadius:(a.sq.radius[0]??0)+g,backgroundColor:
|
|
94
|
-
return i.jsx(t.View,{testID:y,style:[
|
|
95
|
-
return i.jsx(t.View,{testID:y,style:[{borderRadius:e,backgroundColor:
|
|
91
|
+
return i.jsxs(t.Pressable,{testID:r,onPress:u?void 0:e.onPress,disabled:u,hitSlop:Zo(p.h),accessibilityRole:"button",accessibilityLabel:e.label,accessibilityState:{disabled:u,busy:e.busy===true},style:[Uo(o,p),n?{flexShrink:1,minWidth:0}:{flex:1,minWidth:0},{flexDirection:"row",alignItems:"center",justifyContent:"center"},u?{opacity:ao}:null],children:[e.icon?/* @__PURE__ */i.jsx(BlockIcon,{icon:e.icon,size:f,color:typeof g.color=="string"?g.color:void 0}):null,
|
|
92
|
+
/* @__PURE__ */i.jsx(Text,{tier:"control",numberOfLines:1,style:g,children:e.label})]})}function Shot({shot:r,pressable:n,testID:l,onMeasure:o,quiet:a,web:s=false}){let c=Zl(),d=Ho(c,Jn),u=Ho(c,Zn),p=Ho(c,el),h=Qo(c),g=e.useRef(null),f=c.metrics.thumbnail.sm,m=p.sq.w*p.imgInset,b=!!r.src,w=p.sq.h,y=e.useMemo(()=>s?{padding:[m,m,m,m],h:w}:a&&b?u.shotImg:b?f.frame:f.empty,[s,m,w,a,b,u,f]),x=e.useCallback(()=>new Promise(e=>{let t=g.current;if(!t||typeof t.measureInWindow!="function"){e(null);return}let[i=0,r=0,n=0,l=0]=y.padding;t.measureInWindow((t,o,a,s)=>{e(a>0||s>0?{x:t+l,y:o+i,width:Math.max(0,a-l-r),height:Math.max(0,s-i-n)}:null)})}),[y]),v=r.key;e.useEffect(()=>{if(o)return o(v,x),()=>o(v,null)},[o,v,x]);let k=n&&r.onPress!==void 0,T=s?/* @__PURE__ */i.jsx(WebSquare,{shot:r,alt:k?void 0:r.alt,testID:k||o?void 0:l}):a?/* @__PURE__ */i.jsx(Square2,{shot:r,alt:k?void 0:r.alt,testID:k||o?void 0:l}):/* @__PURE__ */i.jsx(BlockThumbnail,{size:"sm",src:r.src,alt:k?void 0:r.alt,icon:r.icon,iconSize:r.iconSize,tint:r.tint,iconColor:r.iconColor,onError:r.onError,testID:k||o?void 0:l});return k?/* @__PURE__ */i.jsx(t.Pressable,{ref:g,collapsable:false,testID:l,onPress:r.onPress,hitSlop:Zo(y.h),accessibilityRole:"button",accessibilityLabel:r.alt,style:({pressed:e})=>e&&!h?{transform:[{scale:d.shotPressScale}]}:null,children:T}):o?/* @__PURE__ */i.jsx(t.View,{ref:g,collapsable:false,testID:l,children:T}):T}function Square2({shot:r,alt:n,testID:l}){let o=Zl(),a=Ho(o,Zn),[s,c]=e.useState(null),d=r.src&&s!==r.src?r.src:null;if(!d)/* @__PURE__ */return i.jsx(BlockThumbnail,{size:"sm",src:null,alt:n,icon:r.icon,iconSize:r.iconSize,tint:r.tint,iconColor:r.iconColor,testID:l});let[u=0,p=0,h=0,g=0]=a.shotImg.padding,f=a.shotBlend==="multiply"?{mixBlendMode:"multiply"}:null;/* @__PURE__ */
|
|
93
|
+
return i.jsx(t.View,{testID:l,style:[Uo(o,a.shot),{width:a.shot.w,height:a.shot.h,overflow:"hidden"}],children:/* @__PURE__ */i.jsx(t.Image,{source:{uri:d},accessibilityLabel:n,accessible:!!n,onError:()=>{c(d),r.onError?.(d)},resizeMode:a.shotImg.fit==="contain"?"contain":"cover",style:[{position:"absolute",top:u,right:p,bottom:h,left:g},f]})})}function WebSquare({shot:r,alt:n,testID:l}){let o=Zl(),a=Ho(o,el),s=o.metrics.thumbnail.sm.icon,[c,d]=e.useState(null),u=r.src&&c!==r.src?r.src:null,p=a.sq.w*a.imgInset,h=a.imgBlend==="multiply"?{mixBlendMode:"multiply"}:null,g=a.sqRing;/* @__PURE__ */
|
|
94
|
+
return i.jsx(t.View,{style:{margin:-g,padding:g,borderRadius:(a.sq.radius[0]??0)+g,backgroundColor:lo(o,a.card.bg)||void 0},children:/* @__PURE__ */i.jsx(t.View,{testID:l,accessible:!u&&!!n,accessibilityRole:!u&&n?"image":void 0,accessibilityLabel:u?void 0:n,style:[Uo(o,a.sq),{width:a.sq.w,height:a.sq.h,overflow:"hidden",alignItems:"center",justifyContent:"center"},!u&&r.tint!==void 0?{backgroundColor:r.tint}:null],children:u?/* @__PURE__ */i.jsx(t.Image,{source:{uri:u},accessibilityLabel:n,accessible:!!n,onError:()=>{d(u),r.onError?.(u)},resizeMode:a.imgFit,style:[{position:"absolute",top:p,right:p,bottom:p,left:p},h]}):/* @__PURE__ */i.jsx(BlockIcon,{icon:r.icon??Ba,size:r.iconSize??s.w,color:r.iconColor??lo(o,s.color)})})})}function Os(e,t){let i=[];for(let r=0;r<e.length;r+=t){let n=e.slice(r,r+t);for(;n.length<t;)n.push(null);i.push(n)}return i}function OrderRow(e){let{title:r,meta:n,metaLink:l,notes:o,total:a,status:s,shots:c=[],actions:d=[],onPress:u,accessibilityLabel:p,error:h,loading:g=false,loadingLabel:f,actionGrid:m=false,variant:b="standard",onShotMeasure:w,testID:y,style:x}=e,v=Zl(),k=Ho(v,Jn),T=Ho(v,Zn),j=Ho(v,el),S=b==="quiet",I=b==="web",z=e=>Go(v,fo(v,e));if(g)/* @__PURE__ */
|
|
95
|
+
return i.jsx(t.View,{testID:y,style:[Uo(v,I?j.card:k.card),x],children:/* @__PURE__ */i.jsx(Skeleton,{lines:3,label:f})});if(I){let[e=0]=j.card.radius,g=u?{zIndex:1}:null;/* @__PURE__ */
|
|
96
|
+
return i.jsx(t.View,{testID:y,style:[{borderRadius:e,backgroundColor:lo(v,j.card.bg)||void 0},ea(j.lift),x],children:/* @__PURE__ */i.jsxs(t.View,{style:[Uo(v,j.card),{flexDirection:"row",alignItems:j.card.center?"center":"flex-start"}],children:[u?/* @__PURE__ */i.jsx(t.Pressable,{onPress:u,accessibilityRole:"button",accessibilityLabel:p,style:{position:"absolute",top:0,right:0,bottom:0,left:0,borderRadius:e}}):null,c.length>0?/* @__PURE__ */i.jsx(t.View,{style:[{flexDirection:"row",width:j.shots.w},g],children:c.map((e,r)=>/* @__PURE__ */i.jsx(t.View,{style:r>0?{marginLeft:-j.sqOverlap}:null,children:/* @__PURE__ */i.jsx(Shot,{web:true,quiet:false,shot:e,pressable:u===void 0,testID:xo(y===void 0?void 0:`${y}-shot`,e.key,e.testID),onMeasure:w})},e.key))}):null,
|
|
96
97
|
/* @__PURE__ */i.jsxs(t.View,{pointerEvents:"box-none",style:{flex:1,minWidth:0,rowGap:j.text.gap[1]},children:[
|
|
97
98
|
/* @__PURE__ */i.jsxs(t.View,{style:{flexDirection:"row",flexWrap:"wrap",alignItems:j.when.center?"center":"baseline",columnGap:j.when.gap[0],rowGap:j.when.gap[1]},children:[
|
|
98
|
-
/* @__PURE__ */i.jsx(Text,{style:z(j.title),children:r}),a?/* @__PURE__ */i.jsx(Text,{style:z(j.total),children:a}):null,s?/* @__PURE__ */i.jsxs(t.View,{style:[
|
|
99
|
-
/* @__PURE__ */i.jsx(Text,{numberOfLines:1,style:z(j.chipText),children:s.label})]}):null]}),n?/* @__PURE__ */i.jsx(Text,{onPress:l?.onPress,accessibilityRole:l?.onPress?"link":void 0,testID:l?.testID,style:z(j.meta),children:n}):null,o?.map((e,t)=>typeof e=="string"?/* @__PURE__ */i.jsx(Text,{style:z(j.note),children:e},t):/* @__PURE__ */i.jsx(Text,{onPress:e.onPress,accessibilityRole:e.onPress?"link":void 0,testID:e.testID,style:z(j.note),children:e.text},t)),h?/* @__PURE__ */i.jsx(Text,{accessibilityRole:"alert",accessibilityLiveRegion:"polite",style:[z(j.note),{color:v.colors.alert}],children:h}):null]}),d.length>0?/* @__PURE__ */i.jsx(t.View,{style:[{flexDirection:"row",flexWrap:"wrap",justifyContent:"flex-end",alignItems:j.acts.center?"center":void 0,columnGap:j.acts.gap[0],rowGap:j.acts.gap[1]},g],children:d.map(e=>/* @__PURE__ */i.jsx(Action,{web:true,action:e,testID:
|
|
99
|
+
/* @__PURE__ */i.jsx(Text,{style:z(j.title),children:r}),a?/* @__PURE__ */i.jsx(Text,{style:z(j.total),children:a}):null,s?/* @__PURE__ */i.jsxs(t.View,{style:[Uo(v,s.stopped?j.chipOff:j.chip),{flexDirection:"row",alignItems:"center",columnGap:j.chip.gap[0]}],children:[s.icon?/* @__PURE__ */i.jsx(BlockIcon,{icon:s.icon,size:j.chipIcon.w,color:lo(v,j.chipIcon.color)}):null,
|
|
100
|
+
/* @__PURE__ */i.jsx(Text,{numberOfLines:1,style:z(j.chipText),children:s.label})]}):null]}),n?/* @__PURE__ */i.jsx(Text,{onPress:l?.onPress,accessibilityRole:l?.onPress?"link":void 0,testID:l?.testID,style:z(j.meta),children:n}):null,o?.map((e,t)=>typeof e=="string"?/* @__PURE__ */i.jsx(Text,{style:z(j.note),children:e},t):/* @__PURE__ */i.jsx(Text,{onPress:e.onPress,accessibilityRole:e.onPress?"link":void 0,testID:e.testID,style:z(j.note),children:e.text},t)),h?/* @__PURE__ */i.jsx(Text,{accessibilityRole:"alert",accessibilityLiveRegion:"polite",style:[z(j.note),{color:v.colors.alert}],children:h}):null]}),d.length>0?/* @__PURE__ */i.jsx(t.View,{style:[{flexDirection:"row",flexWrap:"wrap",justifyContent:"flex-end",alignItems:j.acts.center?"center":void 0,columnGap:j.acts.gap[0],rowGap:j.acts.gap[1]},g],children:d.map(e=>/* @__PURE__ */i.jsx(Action,{web:true,action:e,testID:xo(y,e.key,e.testID),quiet:false},e.key))}):null]})})}let D=a?/* @__PURE__ */i.jsx(Text,{style:[z(S?T.total:k.total),{marginLeft:"auto"}],children:a}):null,C=z(T.chipText),H=S?/* @__PURE__ */i.jsxs(t.View,{style:{flexDirection:"row",alignItems:"flex-start",justifyContent:"space-between",columnGap:T.top.gap[0],rowGap:T.top.gap[1]},children:[
|
|
100
101
|
/* @__PURE__ */i.jsxs(t.View,{style:{flexShrink:1,minWidth:0},children:[
|
|
101
102
|
/* @__PURE__ */i.jsxs(t.View,{style:{flexDirection:"row",flexWrap:"wrap",alignItems:T.when.center?"center":"baseline",columnGap:T.when.gap[0],rowGap:T.when.gap[1]},children:[
|
|
102
|
-
/* @__PURE__ */i.jsx(Text,{style:z(T.title),children:r}),s?/* @__PURE__ */i.jsxs(t.View,{style:[
|
|
103
|
+
/* @__PURE__ */i.jsx(Text,{style:z(T.title),children:r}),s?/* @__PURE__ */i.jsxs(t.View,{style:[Uo(v,T.chip),{flexDirection:"row",alignItems:"center",columnGap:T.chip.gap[0]}],children:[s.icon?/* @__PURE__ */i.jsx(BlockIcon,{icon:s.icon,size:T.chipIcon.w,color:lo(v,T.chipIcon.color)}):null,
|
|
103
104
|
/* @__PURE__ */i.jsx(Text,{numberOfLines:1,style:C,children:s.label})]}):null]}),n?/* @__PURE__ */i.jsx(Text,{style:[z(T.meta),{marginTop:T.meta.marginTop}],children:n}):null]}),D]}):/* @__PURE__ */i.jsxs(t.View,{style:{flexDirection:"row",alignItems:"baseline",justifyContent:"space-between",columnGap:k.top.gap[0],rowGap:k.top.gap[1]},children:[
|
|
104
105
|
/* @__PURE__ */i.jsxs(t.View,{style:{flexShrink:1,minWidth:0},children:[
|
|
105
|
-
/* @__PURE__ */i.jsx(Text,{style:z(k.title),children:r}),n?/* @__PURE__ */i.jsx(Text,{style:z(k.meta),children:n}):null]}),D]}),F=S?T.shots:k.shots,_=/* @__PURE__ */i.jsxs(i.Fragment,{children:[H,c.length>0?/* @__PURE__ */i.jsx(t.View,{style:{flexDirection:"row",flexWrap:"wrap",columnGap:F.gap[0],rowGap:F.gap[0],marginTop:F.marginTop},children:c.map(e=>/* @__PURE__ */i.jsx(Shot,{shot:e,pressable:u===void 0,testID:
|
|
106
|
-
return i.jsxs(t.View,{testID:y,style:[
|
|
107
|
-
/* @__PURE__ */i.jsx(t.View,{style:{flexDirection:"row",alignItems:k.card.center?"center":"flex-start",columnGap:k.card.gap[0]},children:u?/* @__PURE__ */i.jsx(t.Pressable,{onPress:u,accessibilityRole:"button",accessibilityLabel:p,style:{flex:1,minWidth:0},children:_}):/* @__PURE__ */i.jsx(t.View,{style:{flex:1,minWidth:0},children:_})}),h?/* @__PURE__ */i.jsx(Text,{accessibilityRole:"alert",accessibilityLiveRegion:"polite",style:[z(k.note),{marginTop:k.note.marginTop,color:v.colors.alert}],children:h}):null,d.length>0&&S?/* @__PURE__ */i.jsx(t.View,{style:{flexDirection:"row",flexWrap:"wrap",alignItems:T.acts.center?"center":void 0,columnGap:T.acts.gap[0],rowGap:T.acts.gap[1],marginTop:T.acts.marginTop},children:d.map(e=>/* @__PURE__ */i.jsx(Action,{action:e,testID:
|
|
108
|
-
/* @__PURE__ */i.jsx(Text,{style:o(r.saysSerif),children:e.text})]}):/* @__PURE__ */i.jsxs(t.View,{testID:n,style:[
|
|
106
|
+
/* @__PURE__ */i.jsx(Text,{style:z(k.title),children:r}),n?/* @__PURE__ */i.jsx(Text,{style:z(k.meta),children:n}):null]}),D]}),F=S?T.shots:k.shots,_=/* @__PURE__ */i.jsxs(i.Fragment,{children:[H,c.length>0?/* @__PURE__ */i.jsx(t.View,{style:{flexDirection:"row",flexWrap:"wrap",columnGap:F.gap[0],rowGap:F.gap[0],marginTop:F.marginTop},children:c.map(e=>/* @__PURE__ */i.jsx(Shot,{shot:e,pressable:u===void 0,testID:xo(y===void 0?void 0:`${y}-shot`,e.key,e.testID),onMeasure:w,quiet:S},e.key))}):null]});/* @__PURE__ */
|
|
107
|
+
return i.jsxs(t.View,{testID:y,style:[Uo(v,k.card),{columnGap:0},x],children:[
|
|
108
|
+
/* @__PURE__ */i.jsx(t.View,{style:{flexDirection:"row",alignItems:k.card.center?"center":"flex-start",columnGap:k.card.gap[0]},children:u?/* @__PURE__ */i.jsx(t.Pressable,{onPress:u,accessibilityRole:"button",accessibilityLabel:p,style:{flex:1,minWidth:0},children:_}):/* @__PURE__ */i.jsx(t.View,{style:{flex:1,minWidth:0},children:_})}),h?/* @__PURE__ */i.jsx(Text,{accessibilityRole:"alert",accessibilityLiveRegion:"polite",style:[z(k.note),{marginTop:k.note.marginTop,color:v.colors.alert}],children:h}):null,d.length>0&&S?/* @__PURE__ */i.jsx(t.View,{style:{flexDirection:"row",flexWrap:"wrap",alignItems:T.acts.center?"center":void 0,columnGap:T.acts.gap[0],rowGap:T.acts.gap[1],marginTop:T.acts.marginTop},children:d.map(e=>/* @__PURE__ */i.jsx(Action,{action:e,testID:xo(y,e.key,e.testID),quiet:true},e.key))}):null,d.length>0&&!S&&!m?/* @__PURE__ */i.jsx(t.View,{style:{flexDirection:"row",columnGap:k.acts.gap[0],marginTop:k.acts.marginTop},children:d.map(e=>/* @__PURE__ */i.jsx(Action,{action:e,testID:xo(y,e.key,e.testID),quiet:false},e.key))}):null,d.length>0&&!S&&m?/* @__PURE__ */i.jsx(t.View,{style:{rowGap:k.acts.gap[1],marginTop:k.acts.marginTop},children:Os(d,k.actsColumns).map((e,r)=>/* @__PURE__ */i.jsx(t.View,{style:{flexDirection:"row",columnGap:k.acts.gap[0]},children:e.map((e,r)=>/* @__PURE__ */i.jsx(t.View,{style:{flex:1,minWidth:0,flexDirection:"row"},children:e?/* @__PURE__ */i.jsx(Action,{action:e,testID:xo(y,e.key,e.testID),quiet:false}):null},e?e.key:`gap-${r}`))},r))}):null]})}function Es(e){return typeof e=="number"?e:typeof e=="string"?e?{uri:e}:null:e&&typeof e=="object"&&e.uri?e:null}function Photo({image:r,onImageError:n,box:l,testID:o}){let a=Zl(),[s,c]=e.useState(null),d=Es(r),u=[Uo(a,l),{width:l.w,height:l.h,overflow:"hidden"}];return!d||s===r?/* @__PURE__ */i.jsx(t.View,{style:u}):/* @__PURE__ */i.jsx(t.View,{style:u,children:/* @__PURE__ */i.jsx(FadeImage,{testID:o,source:d,resizeMode:"cover",onError:()=>{r!=null&&(c(r),n?.(r))},style:{position:"absolute",top:0,right:0,bottom:0,left:0}},JSON.stringify(d))})}function Quote({quote:e,m:r,testID:n}){let l=Zl(),o=e=>Go(l,fo(l,e)),a=e.tag?/* @__PURE__ */i.jsx(t.View,{testID:n===void 0?void 0:`${n}-tag`,style:Uo(l,r.saysTag),children:/* @__PURE__ */i.jsx(Text,{style:[o(r.saysTagText),{paddingTop:0,lineHeight:r.saysTag.h-(r.saysTag.padding?.[0]??0)-(r.saysTag.padding?.[2]??0)}],children:e.tag})}):null;return Es(e.image)===null?/* @__PURE__ */i.jsxs(t.View,{testID:n,style:[Uo(l,r.says),{flexDirection:"column",rowGap:r.saysBare.gap[1],marginTop:r.says.marginTop}],children:[e.by||a?/* @__PURE__ */i.jsxs(Text,{style:o(r.saysKicker),children:[e.by,e.by&&a?" ":null,a]}):null,
|
|
109
|
+
/* @__PURE__ */i.jsx(Text,{style:o(r.saysSerif),children:e.text})]}):/* @__PURE__ */i.jsxs(t.View,{testID:n,style:[Uo(l,r.says),{flexDirection:"row",alignItems:"flex-start",columnGap:r.says.gap[0],marginTop:r.says.marginTop}],children:[
|
|
109
110
|
/* @__PURE__ */i.jsx(Photo,{image:e.image,onImageError:e.onImageError,box:r.saysImg}),
|
|
110
|
-
/* @__PURE__ */i.jsxs(Text,{style:[o(r.saysText),{flex:1}],children:[e.by?/* @__PURE__ */i.jsx(Text,{style:o(r.saysBy),children:e.by}):null,e.by?" ":null,e.text,a?" ":null,a]})]})}function Jump({jump:e,m:r,testID:n}){let l=
|
|
111
|
+
/* @__PURE__ */i.jsxs(Text,{style:[o(r.saysText),{flex:1}],children:[e.by?/* @__PURE__ */i.jsx(Text,{style:o(r.saysBy),children:e.by}):null,e.by?" ":null,e.text,a?" ":null,a]})]})}function Jump({jump:e,m:r,testID:n}){let l=Zl(),o=Qo(l),a=e=>Go(l,fo(l,e)),s=Es(e.image)!==null,c=[Uo(l,r.jump),{flexDirection:"row",alignItems:"center",columnGap:r.jump.gap[0],marginTop:r.jump.marginTop}],d=/* @__PURE__ */i.jsxs(i.Fragment,{children:[s?/* @__PURE__ */i.jsx(Photo,{image:e.image,onImageError:e.onImageError,box:r.jumpImg}):null,
|
|
111
112
|
/* @__PURE__ */i.jsxs(t.View,{style:{flex:1,minWidth:0},children:[
|
|
112
113
|
/* @__PURE__ */i.jsx(Text,{style:a(r.jumpKicker),children:e.kicker}),
|
|
113
114
|
/* @__PURE__ */i.jsx(Text,{style:a(r.jumpTitle),children:e.title})]}),
|
|
114
|
-
/* @__PURE__ */i.jsx(Text,{style:a(r.jumpGo),children:e.go})]});return e.onPress?/* @__PURE__ */i.jsx(t.Pressable,{testID:n,onPress:e.onPress,accessibilityRole:"button",accessibilityLabel:e.accessibilityLabel??`${e.kicker}, ${e.title}`,style:({pressed:e})=>[...c,e&&!o?{transform:[{scale:r.jumpPressScale}]}:null],children:d}):/* @__PURE__ */i.jsx(t.View,{testID:n,style:c,children:d})}function PlanNeedCard({kicker:e,source:r,sources:n,title:l,signals:o,score:a,more:s,quote:c,jump:d,variant:u="standard",children:p,beforeJump:h,loading:g=false,loadingLabel:f,testID:m,style:b}){let w=
|
|
115
|
+
/* @__PURE__ */i.jsx(Text,{style:a(r.jumpGo),children:e.go})]});return e.onPress?/* @__PURE__ */i.jsx(t.Pressable,{testID:n,onPress:e.onPress,accessibilityRole:"button",accessibilityLabel:e.accessibilityLabel??`${e.kicker}, ${e.title}`,style:({pressed:e})=>[...c,e&&!o?{transform:[{scale:r.jumpPressScale}]}:null],children:d}):/* @__PURE__ */i.jsx(t.View,{testID:n,style:c,children:d})}function PlanNeedCard({kicker:e,source:r,sources:n,title:l,signals:o,score:a,more:s,quote:c,jump:d,variant:u="standard",children:p,beforeJump:h,loading:g=false,loadingLabel:f,testID:m,style:b}){let w=Zl(),y=u==="plan",x=Ho(w,pl),v=y?x:Ho(w,ul),k=e=>m===void 0?void 0:`${m}-${e}`,T=n??(r?[{label:r}]:[]),j=e=>Go(w,fo(w,e)),S=[Uo(w,v.card),{marginTop:0},b];if(g)/* @__PURE__ */
|
|
115
116
|
return i.jsx(t.View,{testID:m,style:S,children:/* @__PURE__ */i.jsx(Skeleton,{lines:3,label:f})});let I=j(v.signalText);/* @__PURE__ */
|
|
116
117
|
return i.jsxs(t.View,{testID:m,style:S,children:[
|
|
117
118
|
/* @__PURE__ */i.jsxs(t.View,{style:{flexDirection:"row",alignItems:"center",columnGap:v.kicker.gap[0],minHeight:T.length>0?v.kicker.h:void 0},children:[
|
|
118
119
|
/* @__PURE__ */i.jsx(Text,{style:j(v.kickerText),children:e}),T.length>0?/* @__PURE__ */i.jsx(t.View,{style:{marginLeft:"auto",flexDirection:"row",columnGap:x.sources.gap[0],flexShrink:1},children:T.map((e,r)=>{let l=e.kind==="dna";/* @__PURE__ */
|
|
119
|
-
return i.jsx(t.View,{testID:k(n?`source-${r}`:"source"),style:[
|
|
120
|
+
return i.jsx(t.View,{testID:k(n?`source-${r}`:"source"),style:[Uo(w,v.source),l?{backgroundColor:lo(w,x.sourceDna.bg)}:null,{height:v.source.h,justifyContent:"center"}],children:/* @__PURE__ */i.jsx(Text,{numberOfLines:1,style:j(l?x.sourceDnaText:v.sourceText),children:e.label})},`${r}-${e.label}`)})}):null]}),l?/* @__PURE__ */i.jsx(Text,{accessibilityRole:"header",style:[j(v.title),{marginTop:v.title.marginTop}],children:l}):null,o.map(e=>/* @__PURE__ */i.jsxs(t.View,{style:{flexDirection:"row",columnGap:v.signal.gap[0],marginTop:v.signal.marginTop},children:[e.dot===false?null:e.dot==="space"?/* @__PURE__ */i.jsx(t.View,{style:{width:v.dot.w}}):/* @__PURE__ */i.jsx(t.View,{style:{height:I.lineHeight,justifyContent:"center",paddingTop:(I.fontSize??0)*.4-v.dot.h/2},children:/* @__PURE__ */i.jsx(t.View,{style:{width:v.dot.w,height:v.dot.h,borderRadius:v.dot.w/2,backgroundColor:lo(w,y&&e.tone==="watch"?x.dotWatch.bg:y&&e.tone==="clear"?x.dotClear.bg:v.dot.bg),transform:[{translateY:v.dot.dy}]}})}),
|
|
120
121
|
/* @__PURE__ */i.jsxs(Text,{style:[I,{flex:1}],children:[e.lead?/* @__PURE__ */i.jsx(Text,{style:j(v.signalLead),children:e.lead}):null,e.lead?" ":null,e.text]})]},e.key)),y&&s?/* @__PURE__ */i.jsxs(i.Fragment,{children:[
|
|
121
122
|
/* @__PURE__ */i.jsxs(t.Pressable,{testID:k("more"),onPress:s.onPress,accessibilityRole:"button",accessibilityState:{expanded:s.expanded},"aria-expanded":s.expanded,style:{flexDirection:"row",alignItems:"center",alignSelf:"flex-start",columnGap:x.more.gap[0],minHeight:x.more.minHeight,marginTop:x.more.marginTop,marginBottom:x.more.marginBottom,marginLeft:x.moreInset},children:[
|
|
122
123
|
/* @__PURE__ */i.jsx(Text,{style:j(x.moreText),children:s.label}),
|
|
123
|
-
/* @__PURE__ */i.jsx(Glyph,{icon:
|
|
124
|
-
/* @__PURE__ */i.jsx(t.View,{style:{flexShrink:1,minWidth:0,maxWidth:y&&x.scoreLabelMax?x.scoreLabelMax:void 0},children:/* @__PURE__ */i.jsxs(Text,{style:j(v.scoreLabel),children:[a.label,a.tag?" ":null,a.tag?/* @__PURE__ */i.jsx(t.View,{testID:k("tag"),style:
|
|
124
|
+
/* @__PURE__ */i.jsx(Glyph,{icon:Wa,size:x.moreIcon.w,color:lo(w,x.moreText.color),style:{transform:[{rotate:`${s.expanded?x.moreTurn.open:x.moreTurn.closed}deg`}]}})]}),s.expanded?/* @__PURE__ */i.jsx(t.View,{testID:k("more-panel"),nativeID:s.panelId,style:[Uo(w,x.rep),{marginTop:x.rep.marginTop}],children:s.content}):null]}):null,a?/* @__PURE__ */i.jsxs(t.View,{testID:m===void 0?void 0:`${m}-score`,style:[Uo(w,v.score),{flexDirection:"row",justifyContent:"space-between",alignItems:"center"}],children:[
|
|
125
|
+
/* @__PURE__ */i.jsx(t.View,{style:{flexShrink:1,minWidth:0,maxWidth:y&&x.scoreLabelMax?x.scoreLabelMax:void 0},children:/* @__PURE__ */i.jsxs(Text,{style:j(v.scoreLabel),children:[a.label,a.tag?" ":null,a.tag?/* @__PURE__ */i.jsx(t.View,{testID:k("tag"),style:Uo(w,v.scoreTag),children:/* @__PURE__ */i.jsx(Text,{style:j(v.scoreTagText),children:a.tag})}):null]})}),
|
|
125
126
|
/* @__PURE__ */i.jsxs(t.View,{accessible:a.accessibilityLabel!==void 0,accessibilityLabel:a.accessibilityLabel,style:{flexShrink:0,alignItems:"flex-end"},children:[
|
|
126
|
-
/* @__PURE__ */i.jsxs(t.View,{style:{flexDirection:"row",alignItems:"center",columnGap:v.scoreNums.gap[0]},children:[a.was?/* @__PURE__ */i.jsx(Text,{style:j(v.scoreWas),children:a.was}):null,a.was?a.icon!==void 0?/* @__PURE__ */i.jsx(t.View,{testID:k("arrow"),children:/* @__PURE__ */i.jsx(BlockIcon,{icon:a.icon,size:v.scoreArrow.w,color:
|
|
127
|
-
/* @__PURE__ */i.jsxs(Text,{style:j(v.scoreNow),children:[a.now,a.of?/* @__PURE__ */i.jsx(Text,{style:j(v.scoreOf),children:a.of}):null]})]}),a.since?/* @__PURE__ */i.jsx(Text,{style:[j(v.scoreSince),{marginTop:v.scoreSince.marginTop}],children:a.since}):null]})]}):null,y&&c?/* @__PURE__ */i.jsx(Quote,{quote:c,m:x,testID:k("quote")}):null,y?h:null,y&&d?/* @__PURE__ */i.jsx(Jump,{jump:d,m:x,testID:k("jump")}):null,p]})}function
|
|
127
|
+
/* @__PURE__ */i.jsxs(t.View,{style:{flexDirection:"row",alignItems:"center",columnGap:v.scoreNums.gap[0]},children:[a.was?/* @__PURE__ */i.jsx(Text,{style:j(v.scoreWas),children:a.was}):null,a.was?a.icon!==void 0?/* @__PURE__ */i.jsx(t.View,{testID:k("arrow"),children:/* @__PURE__ */i.jsx(BlockIcon,{icon:a.icon,size:v.scoreArrow.w,color:lo(w,v.scoreArrow.color)})}):/* @__PURE__ */i.jsx(Glyph,{testID:k("arrow"),icon:Ea,size:v.scoreArrow.w,color:lo(w,v.scoreArrow.color),style:v.scoreArrowFlip?{transform:[{rotate:"180deg"}]}:void 0}):null,
|
|
128
|
+
/* @__PURE__ */i.jsxs(Text,{style:j(v.scoreNow),children:[a.now,a.of?/* @__PURE__ */i.jsx(Text,{style:j(v.scoreOf),children:a.of}):null]})]}),a.since?/* @__PURE__ */i.jsx(Text,{style:[j(v.scoreSince),{marginTop:v.scoreSince.marginTop}],children:a.since}):null]})]}):null,y&&c?/* @__PURE__ */i.jsx(Quote,{quote:c,m:x,testID:k("quote")}):null,y?h:null,y&&d?/* @__PURE__ */i.jsx(Jump,{jump:d,m:x,testID:k("jump")}):null,p]})}function Ps(e){return(typeof e=="string"?[e]:e).map(e=>typeof e=="string"?{text:e}:e)}function PriceSummary({rows:e,total:r,note:n,...l}){let o=Zl();if(n===void 0||n.length===0||l.loading)/* @__PURE__ */return i.jsx(SummaryList,{...l,rows:e,total:r??false});let{testID:a,style:s,...c}=l,d=Ho(o,dl),u=(e,t)=>({...e,testID:xo(a,e.key??t,e.testID)}),p=Go(o,fo(o,d.noteStrong));/* @__PURE__ */
|
|
128
129
|
return i.jsxs(t.View,{testID:a,style:s,children:[
|
|
129
130
|
/* @__PURE__ */i.jsx(SummaryList,{...c,rows:e.map((e,t)=>u(e,t)),total:r?u({...r,key:r.key??"total"},"total"):false}),
|
|
130
|
-
/* @__PURE__ */i.jsx(Text,{testID:a===void 0?void 0:`${a}-note`,style:[
|
|
131
|
-
return i.jsx(t.Pressable,{testID:a,onPress:l?void 0:n,disabled:l,accessibilityRole:"button",accessibilityLabel:r,accessibilityState:l?{disabled:true}:void 0,hitSlop:
|
|
132
|
-
return i.jsx(t.View,{testID:l,accessibilityLabel:e.label,style:[u,{borderRadius:a.stepButton.radius[0]},s?{backgroundColor:s}:null,n?
|
|
133
|
-
return i.jsxs(t.View,{testID:l,accessibilityLabel:e.label,style:[u,
|
|
134
|
-
/* @__PURE__ */i.jsx(StepButton,{icon:"minus",label:e.fewerLabel,onPress:()=>
|
|
135
|
-
/* @__PURE__ */i.jsx(Text,{testID:d("count"),accessibilityLiveRegion:"polite",style:[
|
|
136
|
-
/* @__PURE__ */i.jsx(StepButton,{icon:"plus",label:e.moreLabel,onPress:()=>
|
|
137
|
-
return i.jsxs(t.Pressable,{testID:n,onPress:f?void 0:e.onPress,disabled:f,accessibilityRole:c==="refill"?"button":"link",accessibilityLabel:e.label,accessibilityState:{disabled:f,busy:e.busy===true},hitSlop:
|
|
138
|
-
/* @__PURE__ */i.jsx(Text,{tier:"control",numberOfLines:1,style:h,children:e.label}),g?/* @__PURE__ */i.jsx(t.View,{pointerEvents:"none",style:g}):null]})}function BlendPhoto({src:r,alt:n,fallback:l,onError:o,testID:a}){let s=
|
|
139
|
-
return i.jsx(t.View,{testID:a,style:[
|
|
140
|
-
return i.jsx(t.Pressable,{testID:c,onPress:o?void 0:l,disabled:o,accessibilityRole:"button",accessibilityLabel:n,accessibilityState:o?{disabled:true}:void 0,hitSlop:
|
|
141
|
-
return i.jsx(t.View,{testID:n,accessibilityLabel:e.label,style:
|
|
142
|
-
return i.jsxs(t.View,{testID:n,accessibilityLabel:e.label,style:[
|
|
143
|
-
/* @__PURE__ */i.jsx(WebStepButton,{icon:"minus",size:o.stepIcon.w,label:e.fewerLabel,onPress:()=>
|
|
144
|
-
/* @__PURE__ */i.jsx(Text,{testID:c("count"),accessibilityLiveRegion:"polite",style:[
|
|
145
|
-
/* @__PURE__ */i.jsx(WebStepButton,{icon:"plus",size:o.stepIcon.w,label:e.moreLabel,onPress:()=>
|
|
146
|
-
return i.jsxs(t.Pressable,{testID:r,onPress:p?void 0:e.onPress,disabled:p,accessibilityRole:a==="refill"?"button":"link",accessibilityLabel:e.label,accessibilityState:{disabled:p,busy:e.busy===true},hitSlop:
|
|
147
|
-
/* @__PURE__ */i.jsx(Text,{tier:"control",numberOfLines:1,style:d,children:e.label}),u?/* @__PURE__ */i.jsx(t.View,{pointerEvents:"none",style:u}):null]})}function WebPhoto({src:r,alt:n,tagged:l,even:o,white:a,fallback:s,onError:c,testID:d}){let u=
|
|
148
|
-
return i.jsx(t.View,{testID:d,style:[
|
|
149
|
-
/* @__PURE__ */i.jsxs(t.View,{ref:r,collapsable:false,style:{marginBottom:I.square.marginBottom},children:[y?/* @__PURE__ */i.jsx(t.View,{style:{width:"100%",aspectRatio:1,borderRadius:I.square.radius[0],backgroundColor:S.colors.tintSage}}):/* @__PURE__ */i.jsx(WebPhoto,{src:l,alt:o,tagged:p!==void 0,even:k==="even",white:v==="white",fallback:f,onError:m,testID:D("image")}),!y&&p?/* @__PURE__ */i.jsxs(t.View,{testID:D("tag"),style:[
|
|
131
|
+
/* @__PURE__ */i.jsx(Text,{testID:a===void 0?void 0:`${a}-note`,style:[Go(o,fo(o,d.note)),{marginTop:d.note.marginTop}],children:Ps(n).map((e,t)=>e.strong?/* @__PURE__ */i.jsx(Text,{style:p,children:e.text},t):e.text)})]})}var Ls={tile:"md",row:"xs",card:"lg"};function StepButton({icon:e,label:r,onPress:n,disabled:l,color:o,testID:a}){let s=Zl(),c=Ho(s,il);/* @__PURE__ */
|
|
132
|
+
return i.jsx(t.Pressable,{testID:a,onPress:l?void 0:n,disabled:l,accessibilityRole:"button",accessibilityLabel:r,accessibilityState:l?{disabled:true}:void 0,hitSlop:Zo(c.stepButton.w),style:{width:c.stepButton.w,height:c.stepButton.h,borderRadius:c.stepButton.radius[0],alignItems:"center",justifyContent:"center"},children:/* @__PURE__ */i.jsx(Glyph,{icon:e==="minus"?ns:ds,size:c.stepIcon.w,color:o})})}function CardStepper({q:e,blend:r,lift:n,testID:l}){let o=Zl(),a=Ho(o,il),s=e.min??0,c=e.max??Number.POSITIVE_INFINITY,d=e=>l===void 0?void 0:`${l}-${e}`,u={position:"absolute",right:a.stepAt.right,bottom:a.stepAt.bottom};if(e.value<=0){let s=mo(o,a.step.bg);/* @__PURE__ */
|
|
133
|
+
return i.jsx(t.View,{testID:l,accessibilityLabel:e.label,style:[u,{borderRadius:a.stepButton.radius[0]},s?{backgroundColor:s}:null,n?ea({...r?Ho(o,rl).lift:a.lift}):null],children:/* @__PURE__ */i.jsx(StepButton,{icon:"plus",label:e.moreLabel,onPress:()=>Is(e,Math.min(c,e.value+1)),disabled:e.value>=c,color:lo(o,a.step.color),testID:d("more")})})}let p=lo(o,a.stepIn.color);/* @__PURE__ */
|
|
134
|
+
return i.jsxs(t.View,{testID:l,accessibilityLabel:e.label,style:[u,Uo(o,a.stepIn),{flexDirection:"row",alignItems:"center",width:a.stepIn.w,height:a.stepIn.h}],children:[
|
|
135
|
+
/* @__PURE__ */i.jsx(StepButton,{icon:"minus",label:e.fewerLabel,onPress:()=>Is(e,Math.max(s,e.value-1)),disabled:e.value<=s,color:p,testID:d("fewer")}),
|
|
136
|
+
/* @__PURE__ */i.jsx(Text,{testID:d("count"),accessibilityLiveRegion:"polite",style:[Go(o,fo(o,a.count)),{flex:1,textAlign:"center"}],children:e.value}),
|
|
137
|
+
/* @__PURE__ */i.jsx(StepButton,{icon:"plus",label:e.moreLabel,onPress:()=>Is(e,Math.min(c,e.value+1)),disabled:e.value>=c,color:p,testID:d("more")})]})}function CardPill({action:e,blend:r,testID:n}){let l=Zl(),o=Ho(l,il),a=Ho(l,rl),s=Qo(l),c=e.kind??"refill",[d,u,p]=c==="manage"?[o.pillSoft,o.pillSoftText,o.pillPressScale]:c==="inCart"?r?[a.pillOn,a.pillOnText,a.pillPressScale]:[o.pillOn,o.pillOnText,o.pillPressScale]:r?[a.pill,a.pillText,a.pillPressScale]:[o.pill,o.pillText,o.pillPressScale],h=Go(l,fo(l,u)),g=Yo(l,d),f=e.disabled===true||e.busy===true;/* @__PURE__ */
|
|
138
|
+
return i.jsxs(t.Pressable,{testID:n,onPress:f?void 0:e.onPress,disabled:f,accessibilityRole:c==="refill"?"button":"link",accessibilityLabel:e.label,accessibilityState:{disabled:f,busy:e.busy===true},hitSlop:Zo(d.minHeight),style:({pressed:e})=>[{position:"absolute",right:o.pillAt.right,bottom:o.pillAt.bottom,flexDirection:"row",alignItems:"center"},Uo(l,d),f?{opacity:ao}:null,e&&!s&&!f?{transform:[{scale:p}]}:null],children:[e.icon?/* @__PURE__ */i.jsx(BlockIcon,{icon:e.icon,size:o.pillIcon.w,color:typeof h.color=="string"?h.color:void 0}):null,
|
|
139
|
+
/* @__PURE__ */i.jsx(Text,{tier:"control",numberOfLines:1,style:h,children:e.label}),g?/* @__PURE__ */i.jsx(t.View,{pointerEvents:"none",style:g}):null]})}function BlendPhoto({src:r,alt:n,fallback:l,onError:o,testID:a}){let s=Zl(),c=Ho(s,rl),d=s.metrics.thumbnail.lg.frame,[u,p]=e.useState(null),h=r&&u!==r?r:null;if(!h)/* @__PURE__ */return i.jsx(BlockThumbnail,{size:"lg",src:null,alt:n,icon:l?.icon,iconSize:l?.iconSize,tint:l?.tint,iconColor:l?.iconColor,testID:a});let[g=0,f=0,m=0,b=0]=c.img.padding.map((e,t)=>e+(d.padding[t]??0)),w=c.imgBlend==="multiply"?{mixBlendMode:"multiply"}:null;/* @__PURE__ */
|
|
140
|
+
return i.jsx(t.View,{testID:a,style:[Uo(s,d),{width:"100%",aspectRatio:1,overflow:"hidden"}],children:/* @__PURE__ */i.jsx(t.Image,{source:{uri:h},accessibilityLabel:n,accessible:!!n,onError:()=>{p(h),o?.(h)},resizeMode:s.metrics.thumbnail.lg.img.fit==="contain"?"contain":"cover",style:[{position:"absolute",top:g,right:f,bottom:m,left:b},w]})})}function As(e,t,i,r){return i?e.imgInsetEven:t?e.imgInsetTag:r?e.imgInsetWhite:e.imgInset}function Bs(e,t,i,r=false,n=false){let l=Ho(e,nl),o=As(l,t,r,n);return o.share.map((e,t)=>e*i+(o.px[t]??0))}function WebStepButton({icon:e,size:r,label:n,onPress:l,disabled:o,color:a,settle:s,testID:c}){let d=Zl(),u=Ho(d,nl),p=Qo(d);/* @__PURE__ */
|
|
141
|
+
return i.jsx(t.Pressable,{testID:c,onPress:o?void 0:l,disabled:o,accessibilityRole:"button",accessibilityLabel:n,accessibilityState:o?{disabled:true}:void 0,hitSlop:Zo(u.stepButton.w),style:({pressed:e})=>[{width:u.stepButton.w,height:u.stepButton.h,borderRadius:u.stepButton.radius[0],alignItems:"center",justifyContent:"center"},e&&!p&&!o?{transform:[{scale:s}]}:null],children:/* @__PURE__ */i.jsx(Glyph,{icon:e==="minus"?ns:ds,size:r,color:a})})}function WebStepper({q:e,lift:r,testID:n}){let l=Zl(),o=Ho(l,nl),a=e.min??0,s=e.max??Number.POSITIVE_INFINITY,c=e=>n===void 0?void 0:`${n}-${e}`;if(e.value<=0)/* @__PURE__ */
|
|
142
|
+
return i.jsx(t.View,{testID:n,accessibilityLabel:e.label,style:Uo(l,r?o.add:{...o.add,shadow:{...o.add.shadow,x:0,y:0,blur:0}}),children:/* @__PURE__ */i.jsx(WebStepButton,{icon:"plus",size:o.addIcon.w,label:e.moreLabel,onPress:()=>Is(e,Math.min(s,e.value+1)),disabled:e.value>=s,color:lo(l,o.add.color),settle:o.addPressScale,testID:c("more")})});let d=lo(l,o.step.color);/* @__PURE__ */
|
|
143
|
+
return i.jsxs(t.View,{testID:n,accessibilityLabel:e.label,style:[Uo(l,o.step),{flexDirection:"row",alignItems:"center",height:o.step.h}],children:[
|
|
144
|
+
/* @__PURE__ */i.jsx(WebStepButton,{icon:"minus",size:o.stepIcon.w,label:e.fewerLabel,onPress:()=>Is(e,Math.max(a,e.value-1)),disabled:e.value<=a,color:d,settle:o.stepPressScale,testID:c("fewer")}),
|
|
145
|
+
/* @__PURE__ */i.jsx(Text,{testID:c("count"),accessibilityLiveRegion:"polite",style:[Go(l,fo(l,o.count)),{minWidth:o.step.w-2*o.stepButton.w,textAlign:"center"}],children:e.value}),
|
|
146
|
+
/* @__PURE__ */i.jsx(WebStepButton,{icon:"plus",size:o.stepIcon.w,label:e.moreLabel,onPress:()=>Is(e,Math.min(s,e.value+1)),disabled:e.value>=s,color:d,settle:o.stepPressScale,testID:c("more")})]})}function WebPill({action:e,testID:r}){let n=Zl(),l=Ho(n,nl),o=Qo(n),a=e.kind??"refill",[s,c]=a==="manage"?[l.pillSoft,l.pillSoftText]:a==="inCart"?[l.pillOn,l.pillOnText]:[l.pill,l.pillText],d=Go(n,fo(n,c)),u=Yo(n,s),p=e.disabled===true||e.busy===true;/* @__PURE__ */
|
|
147
|
+
return i.jsxs(t.Pressable,{testID:r,onPress:p?void 0:e.onPress,disabled:p,accessibilityRole:a==="refill"?"button":"link",accessibilityLabel:e.label,accessibilityState:{disabled:p,busy:e.busy===true},hitSlop:Zo(s.minHeight),style:({pressed:e})=>[{flexDirection:"row",alignItems:"center",justifyContent:"center"},Uo(n,s),p?{opacity:ao}:null,e&&!o&&!p?{transform:[{scale:l.pillPressScale}]}:null],children:[e.icon?/* @__PURE__ */i.jsx(BlockIcon,{icon:e.icon,size:l.pillIcon.w,color:typeof d.color=="string"?d.color:void 0}):null,
|
|
148
|
+
/* @__PURE__ */i.jsx(Text,{tier:"control",numberOfLines:1,style:d,children:e.label}),u?/* @__PURE__ */i.jsx(t.View,{pointerEvents:"none",style:u}):null]})}function WebPhoto({src:r,alt:n,tagged:l,even:o,white:a,fallback:s,onError:c,testID:d}){let u=Zl(),p=Ho(u,nl),[h,g]=e.useState(null),f=r&&h!==r?r:null,m=As(p,l,o,a),b=e=>`${Math.round((m.share[e]??0)*1e5)/1e3}%`,w=p.imgBlend==="multiply"?{mixBlendMode:"multiply"}:null;/* @__PURE__ */
|
|
149
|
+
return i.jsx(t.View,{testID:d,style:[Uo(u,p.square),{width:"100%",aspectRatio:1,overflow:"hidden"},a?{backgroundColor:lo(u,p.groundWhite)}:null,!f&&s?.tint?{backgroundColor:s.tint}:null],children:f?/* @__PURE__ */i.jsx(t.Image,{source:{uri:f},accessibilityLabel:n,accessible:!!n,onError:()=>{g(f),c?.(f)},resizeMode:p.imgFit,style:[{position:"absolute",top:b(0),right:b(1),bottom:b(2),left:b(3),marginTop:m.px[0]??0,marginRight:m.px[1]??0,marginBottom:m.px[2]??0,marginLeft:m.px[3]??0},w]}):s?.icon?/* @__PURE__ */i.jsx(t.View,{style:{flex:1,alignItems:"center",justifyContent:"center"},children:/* @__PURE__ */i.jsx(BlockIcon,{icon:s.icon,size:s.iconSize??p.addIcon.w,color:s.iconColor})}):null})}function WebCard({props:e,media:r}){let{name:n,image:l,imageAlt:o,meta:a,price:s,wasPrice:c,per:d,badge:u,tag:p,stepper:h,addLift:g=true,fallback:f,onImageError:m,action:b,onPress:w,loading:y=false,loadingLabel:x,ground:v="shelf",imageInset:k="standard",testID:T,style:j}=e,S=Zl(),I=Ho(S,nl),z=e=>Go(S,fo(S,e)),D=e=>T===void 0?void 0:`${T}-${e}`,C=p?.color??lo(S,I.tagIcon.color),H=Yo(S,I.badge),F=/* @__PURE__ */i.jsxs(i.Fragment,{children:[
|
|
150
|
+
/* @__PURE__ */i.jsxs(t.View,{ref:r,collapsable:false,style:{marginBottom:I.square.marginBottom},children:[y?/* @__PURE__ */i.jsx(t.View,{style:{width:"100%",aspectRatio:1,borderRadius:I.square.radius[0],backgroundColor:S.colors.tintSage}}):/* @__PURE__ */i.jsx(WebPhoto,{src:l,alt:o,tagged:p!==void 0,even:k==="even",white:v==="white",fallback:f,onError:m,testID:D("image")}),!y&&p?/* @__PURE__ */i.jsxs(t.View,{testID:D("tag"),style:[Uo(S,I.tag),{position:"absolute",left:I.tag.x,top:I.tag.y,maxWidth:"100%",flexDirection:"row",alignItems:"center",backgroundColor:no(C,I.tagMix,S.colors.surface,lo(S,I.tag.bg))}],children:[p.icon?/* @__PURE__ */i.jsx(BlockIcon,{icon:p.icon,size:I.tagIcon.w,color:C}):null,
|
|
150
151
|
/* @__PURE__ */i.jsx(Text,{numberOfLines:1,style:z(I.tagText),children:p.label})]}):null]}),y?/* @__PURE__ */i.jsx(Skeleton,{lines:3,label:x}):/* @__PURE__ */i.jsxs(t.View,{style:{rowGap:I.card.gap[1],marginTop:I.card.gap[1]},children:[
|
|
151
|
-
/* @__PURE__ */i.jsx(Text,{style:z(I.name),children:n}),s||c||d||u?/* @__PURE__ */i.jsxs(t.View,{style:{flexDirection:"row",flexWrap:"wrap",alignItems:"baseline",columnGap:I.price.gap[0],rowGap:I.price.gap[1]},children:[s?/* @__PURE__ */i.jsx(Text,{testID:D("price"),style:z(I.priceText),children:s}):null,c?/* @__PURE__ */i.jsx(Text,{style:z(I.was),children:c}):null,d?/* @__PURE__ */i.jsx(Text,{style:z(I.per),children:d}):null,u?/* @__PURE__ */i.jsxs(t.View,{testID:D("badge"),style:[
|
|
152
|
+
/* @__PURE__ */i.jsx(Text,{style:z(I.name),children:n}),s||c||d||u?/* @__PURE__ */i.jsxs(t.View,{style:{flexDirection:"row",flexWrap:"wrap",alignItems:"baseline",columnGap:I.price.gap[0],rowGap:I.price.gap[1]},children:[s?/* @__PURE__ */i.jsx(Text,{testID:D("price"),style:z(I.priceText),children:s}):null,c?/* @__PURE__ */i.jsx(Text,{style:z(I.was),children:c}):null,d?/* @__PURE__ */i.jsx(Text,{style:z(I.per),children:d}):null,u?/* @__PURE__ */i.jsxs(t.View,{testID:D("badge"),style:[Uo(S,I.badge),{alignSelf:"center",height:I.badge.h,flexDirection:"row",alignItems:"center"}],children:[
|
|
152
153
|
/* @__PURE__ */i.jsx(Text,{numberOfLines:1,style:z(I.badgeText),children:u}),H?/* @__PURE__ */i.jsx(t.View,{pointerEvents:"none",style:H}):null]}):null]}):null,a?/* @__PURE__ */i.jsx(Text,{style:z(I.meta),children:a}):null]})]});/* @__PURE__ */
|
|
153
|
-
return i.jsxs(t.View,{testID:T,style:[{rowGap:0},j],children:[w&&!y?/* @__PURE__ */i.jsx(t.Pressable,{testID:D("open"),onPress:w,accessibilityRole:"link",accessibilityLabel:n,children:F}):F,!y&&(h||b)?/* @__PURE__ */i.jsx(t.View,{pointerEvents:"box-none",style:{position:"absolute",top:0,left:0,right:0,aspectRatio:1},children:/* @__PURE__ */i.jsx(t.View,{style:{position:"absolute",right:I.actAt.right,bottom:I.actAt.bottom,flexDirection:"row"},children:h?/* @__PURE__ */i.jsx(WebStepper,{q:h,lift:g,testID:D("stepper")}):b?/* @__PURE__ */i.jsx(WebPill,{action:b,testID:D("action")}):null})}):null]})}function ProductTile(r){let{name:n,image:l,imageAlt:o,kicker:a,meta:s,price:c,wasPrice:d,per:u,metaTone:p,tag:h,stepper:g,addLift:f=true,fallback:m,onImageError:b,action:w,onPress:y,layout:x="tile",variant:v="standard",onImageMeasure:k,imageInset:T,ground:j,loading:S=false,loadingLabel:I,testID:z,style:D}=r,C=
|
|
154
|
-
/* @__PURE__ */i.jsxs(t.View,{ref:O,collapsable:false,style:{marginBottom:$.frame.marginBottom},children:[r,!S&&h?/* @__PURE__ */i.jsxs(t.View,{testID:W("tag"),style:[
|
|
154
|
+
return i.jsxs(t.View,{testID:T,style:[{rowGap:0},j],children:[w&&!y?/* @__PURE__ */i.jsx(t.Pressable,{testID:D("open"),onPress:w,accessibilityRole:"link",accessibilityLabel:n,children:F}):F,!y&&(h||b)?/* @__PURE__ */i.jsx(t.View,{pointerEvents:"box-none",style:{position:"absolute",top:0,left:0,right:0,aspectRatio:1},children:/* @__PURE__ */i.jsx(t.View,{style:{position:"absolute",right:I.actAt.right,bottom:I.actAt.bottom,flexDirection:"row"},children:h?/* @__PURE__ */i.jsx(WebStepper,{q:h,lift:g,testID:D("stepper")}):b?/* @__PURE__ */i.jsx(WebPill,{action:b,testID:D("action")}):null})}):null]})}function ProductTile(r){let{name:n,image:l,imageAlt:o,kicker:a,meta:s,price:c,wasPrice:d,per:u,metaTone:p,tag:h,stepper:g,addLift:f=true,fallback:m,onImageError:b,action:w,onPress:y,layout:x="tile",variant:v="standard",onImageMeasure:k,imageInset:T,ground:j,loading:S=false,loadingLabel:I,testID:z,style:D}=r,C=Zl(),H=v==="blend",F=v==="web",_=h!==void 0,O=e.useRef(null),E=C.metrics.thumbnail.lg.frame.padding,P=H?Ho(C,rl).img.padding:C.metrics.thumbnail.lg.img.padding,L=e.useCallback(()=>new Promise(e=>{let t=O.current;if(!t||typeof t.measureInWindow!="function"){e(null);return}t.measureInWindow((t,i,r,n)=>{let[l=0,o=0,a=0,s=0]=F?Bs(C,_,r,T==="even",j==="white"):P.map((e,t)=>e+(E[t]??0));e(r>0||n>0?{x:t+s,y:i+l,width:Math.max(0,r-s-o),height:Math.max(0,n-l-a)}:null)})}),[P,E,F,C,_,T,j]),A=x==="card"&&!S&&k!==void 0;e.useEffect(()=>{if(!(!A||!k))return k(L),()=>k(null)},[A,k,L]);let B=e=>Go(C,fo(C,e)),R=Ho(C,tl),V=Ho(C,ll),$=C.metrics.thumbnail[Ls[x]],W=e=>z===void 0?void 0:`${z}-${e}`;if(x==="card"&&F)/* @__PURE__ */return i.jsx(WebCard,{props:r,media:O});if(x==="card"){let e=Ho(C,il),r=S?/* @__PURE__ */i.jsx(t.View,{style:{width:"100%",aspectRatio:1,borderRadius:$.frame.radius[0],backgroundColor:C.colors.tintSage}}):H?/* @__PURE__ */i.jsx(BlendPhoto,{src:l,alt:o,fallback:m,onError:b,testID:W("image")}):/* @__PURE__ */i.jsx(BlockThumbnail,{size:"lg",src:l,alt:o,icon:m?.icon,iconSize:m?.iconSize,tint:m?.tint,iconColor:m?.iconColor,onError:b,testID:W("image")}),a=/* @__PURE__ */i.jsxs(i.Fragment,{children:[
|
|
155
|
+
/* @__PURE__ */i.jsxs(t.View,{ref:O,collapsable:false,style:{marginBottom:$.frame.marginBottom},children:[r,!S&&h?/* @__PURE__ */i.jsxs(t.View,{testID:W("tag"),style:[Uo(C,e.tag),{position:"absolute",left:e.tag.x,top:e.tag.y,height:e.tag.h,flexDirection:"row",alignItems:"center"}],children:[h.icon?/* @__PURE__ */i.jsx(BlockIcon,{icon:h.icon,size:e.tagIcon.w,color:h.color??lo(C,e.tagIcon.color)}):null,
|
|
155
156
|
/* @__PURE__ */i.jsx(Text,{numberOfLines:1,style:B(e.tagText),children:h.label})]}):null]}),S?/* @__PURE__ */i.jsx(Skeleton,{lines:3,label:I}):/* @__PURE__ */i.jsxs(t.View,{style:{rowGap:e.card.gap[1],marginTop:e.card.gap[1]},children:[c||d||u?/* @__PURE__ */i.jsxs(t.View,{style:{flexDirection:"row",alignItems:"baseline",columnGap:e.price.gap[0]},children:[c?/* @__PURE__ */i.jsx(Text,{testID:W("price"),style:B(e.priceText),children:c}):null,d?/* @__PURE__ */i.jsx(Text,{style:B(e.was),children:d}):null,u?/* @__PURE__ */i.jsx(Text,{style:B(e.per),children:u}):null]}):null,
|
|
156
157
|
/* @__PURE__ */i.jsx(Text,{style:B(e.name),children:n}),s?/* @__PURE__ */i.jsx(Text,{style:B(p==="auto"?e.metaAuto:p==="autoDark"?e.metaAutoDark:e.meta),children:s}):null]})]});/* @__PURE__ */
|
|
157
|
-
return i.jsxs(t.View,{testID:z,style:[
|
|
158
|
-
/* @__PURE__ */i.jsx(t.View,{style:{flex:1,minWidth:0},children:S?/* @__PURE__ */i.jsx(Skeleton,{lines:2,label:I}):/* @__PURE__ */i.jsxs(i.Fragment,{children:[N,s?/* @__PURE__ */i.jsx(Text,{style:[B(V.meta),{marginTop:V.meta.marginTop}],children:s}):null]})}),S?null:G]}):/* @__PURE__ */i.jsxs(t.View,{testID:z,style:[
|
|
159
|
-
return i.jsx(t.View,{testID:x,style:A,children:/* @__PURE__ */i.jsx(Skeleton,{lines:3,label:y})});let V=L.n,$=D?null:/* @__PURE__ */i.jsx(t.View,{style:[
|
|
158
|
+
return i.jsxs(t.View,{testID:z,style:[Uo(C,e.card),{rowGap:0},D],children:[y&&!S?/* @__PURE__ */i.jsx(t.Pressable,{testID:W("open"),onPress:y,accessibilityRole:"link",accessibilityLabel:n,children:a}):a,!S&&(g||w)?/* @__PURE__ */i.jsx(t.View,{pointerEvents:"box-none",style:{position:"absolute",top:0,left:0,right:0,aspectRatio:1},children:g?/* @__PURE__ */i.jsx(CardStepper,{q:g,blend:H,lift:f,testID:W("stepper")}):w?/* @__PURE__ */i.jsx(CardPill,{action:w,blend:H,testID:W("action")}):null}):null]})}let M=/* @__PURE__ */i.jsx(Text,{style:B(x==="row"?V.name:R.name),children:n}),N=y?/* @__PURE__ */i.jsx(t.Pressable,{onPress:y,accessibilityRole:"link",accessibilityLabel:n,children:M}):M,G=c||w?/* @__PURE__ */i.jsxs(t.View,{style:{flexDirection:"row",alignItems:"center",justifyContent:"space-between",columnGap:R.buy.gap[0],marginTop:x==="row"?0:R.buy.marginTop},children:[c?/* @__PURE__ */i.jsx(Text,{style:B(R.price),children:c}):/* @__PURE__ */i.jsx(t.View,{}),w?/* @__PURE__ */i.jsx(Button,{tone:"outline",size:"row",label:w.label,onPress:w.onPress,loading:w.busy,disabled:w.disabled}):null]}):null;return x==="row"?/* @__PURE__ */i.jsxs(t.View,{testID:z,style:[Uo(C,V.card),{flexDirection:"row",alignItems:V.card.center?"center":"flex-start"},D],children:[S?/* @__PURE__ */i.jsx(t.View,{style:{width:$.frame.w,height:$.frame.h,borderRadius:$.frame.radius[0],backgroundColor:C.colors.tintSage}}):/* @__PURE__ */i.jsx(BlockThumbnail,{size:"xs",src:l,alt:o,icon:m?.icon,iconSize:m?.iconSize,tint:m?.tint,iconColor:m?.iconColor,onError:b}),
|
|
159
|
+
/* @__PURE__ */i.jsx(t.View,{style:{flex:1,minWidth:0},children:S?/* @__PURE__ */i.jsx(Skeleton,{lines:2,label:I}):/* @__PURE__ */i.jsxs(i.Fragment,{children:[N,s?/* @__PURE__ */i.jsx(Text,{style:[B(V.meta),{marginTop:V.meta.marginTop}],children:s}):null]})}),S?null:G]}):/* @__PURE__ */i.jsxs(t.View,{testID:z,style:[Uo(C,R.card),D],children:[S?/* @__PURE__ */i.jsx(t.View,{style:{width:"100%",aspectRatio:1,borderRadius:$.frame.radius[0],backgroundColor:C.colors.tintSage,marginBottom:$.frame.marginBottom}}):/* @__PURE__ */i.jsx(BlockThumbnail,{size:"md",src:l,alt:o,icon:m?.icon,iconSize:m?.iconSize,tint:m?.tint,iconColor:m?.iconColor,onError:b,style:{marginBottom:$.frame.marginBottom}}),S?/* @__PURE__ */i.jsx(Skeleton,{lines:3,label:I}):/* @__PURE__ */i.jsxs(i.Fragment,{children:[a?/* @__PURE__ */i.jsx(Text,{style:B(R.kicker),children:a}):null,N,s?/* @__PURE__ */i.jsx(Text,{style:B(R.meta),children:s}):null,G]})]})}function Rs(e){return typeof e=="number"?e:typeof e=="string"?e?{uri:e}:null:e&&typeof e=="object"&&e.uri?e:null}function TipCard(r){let{number:n,title:l,text:o,foot:a,footArrow:s=false,footPress:c,tone:d="y",image:u,onImageError:p,icon:h=es,onPress:g,pressTarget:f="title",accessibilityLabel:m,variant:b="standard",loading:w=false,loadingLabel:y,testID:x,style:v}=r,k=Zl(),T=Qo(k),j=Ho(k,hl),S=Ho(k,gl),I=Ho(k,fl),z=Ho(k,ml),D=b==="web",C=b==="photo",H=b==="plan",[F,_]=e.useState(false),[O,E]=e.useState(null),P=e=>Go(k,fo(k,e)),L=C?{...j,card:S.card,tones:S.tones,img:S.img,n:S.n,nText:S.nText,title:S.title,pressScale:S.pressScale,bare:S.bare,thumb:S.thumb,thumbIcon:S.thumbIcon}:H?{...j,card:z.card,tones:z.tones,title:z.title,text:z.text,footText:z.footText,foot:z.foot,pressScale:1}:j,A=D?[Uo(k,I.card),v]:[Uo(k,L.card),{backgroundColor:lo(k,L.tones[d])},v],B=D?I.imgAspect:C?S.imgAspect:j.img.w/j.img.h,R=D?1:L.pressScale;if(w)/* @__PURE__ */
|
|
160
|
+
return i.jsx(t.View,{testID:x,style:A,children:/* @__PURE__ */i.jsx(Skeleton,{lines:3,label:y})});let V=L.n,$=D?null:/* @__PURE__ */i.jsx(t.View,{style:[Uo(k,V),{position:"absolute",left:V.x,top:V.y,width:V.w,height:V.h,alignItems:"center",justifyContent:"center"}],children:/* @__PURE__ */i.jsx(Text,{style:P(L.nText),children:n})}),W=/* @__PURE__ */i.jsx(Text,{style:P(D?I.title:L.title),children:l}),M=g!==void 0&&(D||f==="card"),N=e=>x===void 0?void 0:`${x}-${e}`,G=H?null:Rs(u),q=G&&O!==u?G:null,U=P(L.footText),Y=s||c?/* @__PURE__ */i.jsx(Glyph,{icon:Ea,size:j.footArrow.w,color:typeof U.color=="string"?U.color:void 0,style:j.footArrowFlip?{transform:[{rotate:"180deg"}]}:void 0}):null,X=/* @__PURE__ */i.jsx(Text,{style:U,children:a}),K={flexDirection:"row",alignItems:"center",columnGap:j.foot.gap[0]},Q=a&&!D&&!C?c?/* @__PURE__ */i.jsxs(t.Pressable,{testID:c.testID??N("foot"),onPress:c.onPress,accessibilityRole:"link",accessibilityLabel:c.accessibilityLabel??a,hitSlop:Zo(U.lineHeight??j.footArrow.w),style:[K,{marginTop:"auto",paddingTop:L.foot.padding[0],alignSelf:"flex-start",zIndex:1}],children:[X,Y]}):Y?/* @__PURE__ */i.jsxs(t.View,{style:[K,{marginTop:"auto",paddingTop:L.foot.padding[0]}],children:[X,Y]}):/* @__PURE__ */i.jsx(Text,{style:[U,{marginTop:"auto",paddingTop:L.foot.padding[0]}],children:a}):null,J=()=>{u!=null&&(E(u),p?.(u))},Z=e=>/* @__PURE__ */i.jsx(BlockIcon,{icon:h,size:e.w,color:lo(k,e.color)}),ee=H?/* @__PURE__ */i.jsxs(t.View,{accessibilityElementsHidden:true,importantForAccessibility:"no-hide-descendants",style:{flexDirection:"row",justifyContent:"space-between",alignItems:"center",minHeight:z.top.h},children:[
|
|
160
161
|
/* @__PURE__ */i.jsx(Text,{style:P(z.nText),children:n}),
|
|
161
|
-
/* @__PURE__ */i.jsx(BlockIcon,{icon:h,size:z.icon.w,color:
|
|
162
|
-
/* @__PURE__ */i.jsx(t.View,{style:[
|
|
163
|
-
/* @__PURE__ */i.jsx(t.View,{style:[
|
|
162
|
+
/* @__PURE__ */i.jsx(BlockIcon,{icon:h,size:z.icon.w,color:lo(k,z.icon.color)})]}):!D&&!q?/* @__PURE__ */i.jsxs(t.View,{testID:N("thumb"),accessibilityElementsHidden:true,importantForAccessibility:"no-hide-descendants",style:[Uo(k,L.bare),{flexDirection:"row",justifyContent:"space-between",alignItems:"center"}],children:[
|
|
163
|
+
/* @__PURE__ */i.jsx(t.View,{style:[Uo(k,V),{width:V.w,height:V.h,alignItems:"center",justifyContent:"center"}],children:/* @__PURE__ */i.jsx(Text,{style:P(L.nText),children:n})}),
|
|
164
|
+
/* @__PURE__ */i.jsx(t.View,{style:[Uo(k,L.thumb),{width:L.thumb.w,height:L.thumb.h,alignItems:"center",justifyContent:"center"}],children:Z(L.thumbIcon)})]}):/* @__PURE__ */i.jsxs(t.View,{accessibilityElementsHidden:true,importantForAccessibility:"no-hide-descendants",style:[Uo(k,D?I.img:L.img),{width:"100%",aspectRatio:B,overflow:"hidden"}],children:[q?/* @__PURE__ */i.jsx(FadeImage,{testID:N("image"),source:q,resizeMode:"cover",onError:J,style:{position:"absolute",top:0,right:0,bottom:0,left:0}},typeof u=="string"?u:JSON.stringify(u)):null,$]}),te=/* @__PURE__ */i.jsxs(i.Fragment,{children:[ee,
|
|
164
165
|
/* @__PURE__ */i.jsx(t.View,{style:D?null:{marginTop:L.title.marginTop,marginHorizontal:C?S.titleInset:0},children:g&&!M?/* @__PURE__ */i.jsx(t.Pressable,{onPress:g,accessibilityRole:"button",accessibilityLabel:l,children:W}):W}),o&&!D&&!C?/* @__PURE__ */i.jsx(Text,{style:[P(L.text),{marginTop:L.text.marginTop}],children:o}):null,Q]});return M&&c?/* @__PURE__ */i.jsxs(t.View,{testID:x,style:[...A,F&&!T?{transform:[{scale:R}]}:null],children:[te,
|
|
165
|
-
/* @__PURE__ */i.jsx(t.Pressable,{testID:N("cover"),onPress:g,onPressIn:()=>_(true),onPressOut:()=>_(false),accessibilityRole:"button",accessibilityLabel:m??l,style:{position:"absolute",top:0,right:0,bottom:0,left:0}})]}):M?/* @__PURE__ */i.jsx(t.Pressable,{testID:x,onPress:g,accessibilityRole:"button",accessibilityLabel:m??l,style:({pressed:e})=>[...A,e&&!T&&R!==1?{transform:[{scale:R}]}:null],children:te}):/* @__PURE__ */i.jsx(t.View,{testID:x,style:A,children:te})}function
|
|
166
|
-
return i.jsxs(t.View,{testID:T,style:[F?
|
|
167
|
-
/* @__PURE__ */i.jsx(Skeleton,{lines:4,label:k}),e?/* @__PURE__ */i.jsx(t.View,{pointerEvents:"none",style:e}):null]})}if(F){let e=
|
|
168
|
-
return i.jsxs(t.View,{testID:T,style:[
|
|
166
|
+
/* @__PURE__ */i.jsx(t.Pressable,{testID:N("cover"),onPress:g,onPressIn:()=>_(true),onPressOut:()=>_(false),accessibilityRole:"button",accessibilityLabel:m??l,style:{position:"absolute",top:0,right:0,bottom:0,left:0}})]}):M?/* @__PURE__ */i.jsx(t.Pressable,{testID:x,onPress:g,accessibilityRole:"button",accessibilityLabel:m??l,style:({pressed:e})=>[...A,e&&!T&&R!==1?{transform:[{scale:R}]}:null],children:te}):/* @__PURE__ */i.jsx(t.View,{testID:x,style:A,children:te})}function Vs(e){return typeof e=="number"?e:typeof e=="string"?e?{uri:e}:null:e&&typeof e=="object"&&e.uri?e:null}function $s(e){return e==null?null:typeof e=="object"?e.uri:String(e)}var Ws=e=>e===void 0?[]:typeof e=="string"?[e]:e;function WhySheet(r){let{kind:n,title:l,sub:o,image:a,imageKind:s="packshot",fallback:c,onImageError:d,onClose:u,closeLabel:p,heading:h,rows:g=[],sections:f=[],tone:m="calm",action:b,link:w,score:y,variant:x="standard",loading:v=false,loadingLabel:k,testID:T,style:j,part:S="whole",actions:I}=r;ra("WhySheet",u,p);let z=Zl(),D=Qo(z),C={why:Ho(z,xl),whyWeb:Ho(z,vl),whyPlan:Ho(z,kl)},H=x==="web",F=x==="plan",_=H?C.whyWeb:C.why,O=C.whyPlan,[E,P]=e.useState(false),L=$s(a),[A,B]=e.useState(null),R=L!==null&&A!==L?Vs(a):null,{shown:V,onShown:$}=zs(R?L:null),W=e=>Go(z,fo(z,e)),M=e=>T===void 0?void 0:`${T}-${e}`;if(v){let e=F?Yo(z,O.card):null;/* @__PURE__ */
|
|
167
|
+
return i.jsxs(t.View,{testID:T,style:[F?Uo(z,O.card):{paddingTop:_.head.padding[0],paddingHorizontal:_.body.padding[1],paddingBottom:_.body.padding[2]},j],children:[
|
|
168
|
+
/* @__PURE__ */i.jsx(Skeleton,{lines:4,label:k}),e?/* @__PURE__ */i.jsx(t.View,{pointerEvents:"none",style:e}):null]})}if(F){let e=Yo(z,O.card),r=y!==void 0&&g.length>=2;/* @__PURE__ */
|
|
169
|
+
return i.jsxs(t.View,{testID:T,style:[Uo(z,O.card),j],children:[h?/* @__PURE__ */i.jsx(Text,{style:W(O.heading),children:h}):null,g.map(e=>{let r=O.chips[e.kind??"record"];/* @__PURE__ */
|
|
169
170
|
return i.jsxs(t.View,{style:{flexDirection:"row",alignItems:"flex-start",columnGap:O.row.gap[0],marginTop:O.row.marginTop},children:[
|
|
170
|
-
/* @__PURE__ */i.jsx(t.View,{style:[
|
|
171
|
+
/* @__PURE__ */i.jsx(t.View,{style:[Uo(z,r.box),{width:O.chipColumn,height:r.box.h,alignItems:"center",justifyContent:"center"}],children:/* @__PURE__ */i.jsx(Text,{style:W(r.text),numberOfLines:1,children:e.label})}),
|
|
171
172
|
/* @__PURE__ */i.jsxs(t.View,{style:{flex:1,minWidth:0},children:[
|
|
172
|
-
/* @__PURE__ */i.jsx(Text,{style:W(O.rowTitle),children:e.text}),e.detail?/* @__PURE__ */i.jsx(Text,{style:[W(O.rowBody),{marginTop:O.rowBody.marginTop}],children:e.detail}):null]})]},e.key)}),r?/* @__PURE__ */i.jsxs(t.View,{testID:M("score"),accessible:true,accessibilityLabel:y.accessibilityLabel??`${y.text} ${y.value}`,style:[
|
|
173
|
+
/* @__PURE__ */i.jsx(Text,{style:W(O.rowTitle),children:e.text}),e.detail?/* @__PURE__ */i.jsx(Text,{style:[W(O.rowBody),{marginTop:O.rowBody.marginTop}],children:e.detail}):null]})]},e.key)}),r?/* @__PURE__ */i.jsxs(t.View,{testID:M("score"),accessible:true,accessibilityLabel:y.accessibilityLabel??`${y.text} ${y.value}`,style:[Uo(z,O.score),{flexDirection:"row",justifyContent:"space-between",alignItems:"center"}],children:[
|
|
173
174
|
/* @__PURE__ */i.jsx(Text,{style:[W(O.scoreText),{flexShrink:1}],children:y.text}),
|
|
174
|
-
/* @__PURE__ */i.jsx(Text,{style:W(O.scoreValue),children:y.value})]}):null,e?/* @__PURE__ */i.jsx(t.View,{pointerEvents:"none",style:e}):null]})}let N=s==="photo",G=_.packInset*_.pic.w,q=N?null:{mixBlendMode:"multiply"},U=()=>{a==null||L===null||(B(L),d?.(a))},Y=
|
|
175
|
-
/* @__PURE__ */i.jsxs(t.View,{accessibilityElementsHidden:true,importantForAccessibility:"no-hide-descendants",style:[
|
|
176
|
-
/* @__PURE__ */i.jsxs(t.View,{style:{flex:1,minWidth:0},children:[n?/* @__PURE__ */i.jsx(Text,{style:W(_.kind),children:n}):null,l?/* @__PURE__ */i.jsx(Text,{accessibilityRole:"header",style:[W(_.title),{marginTop:_.title.marginTop}],children:l}):null,o?/* @__PURE__ */i.jsx(Text,{style:[W(_.sub),{marginTop:_.sub.marginTop}],children:o}):null]}),u?/* @__PURE__ */i.jsx(t.Pressable,{testID:M("close"),onPress:u,hitSlop:
|
|
177
|
-
/* @__PURE__ */i.jsx(Text,{style:[W(_.btnText),{textAlign:"center"}],children:e.label}),Y?/* @__PURE__ */i.jsx(t.View,{pointerEvents:"none",style:Y}):null]}),ie=(e,r,n)=>/* @__PURE__ */i.jsx(t.Pressable,{testID:e.testID??r,onPress:ee(e),accessibilityRole:"link",accessibilityLabel:e.accessibilityLabel??e.label,style:[
|
|
175
|
+
/* @__PURE__ */i.jsx(Text,{style:W(O.scoreValue),children:y.value})]}):null,e?/* @__PURE__ */i.jsx(t.View,{pointerEvents:"none",style:e}):null]})}let N=s==="photo",G=_.packInset*_.pic.w,q=N?null:{mixBlendMode:"multiply"},U=()=>{a==null||L===null||(B(L),d?.(a))},Y=Yo(z,_.btn),X=S==="head",K=S==="body",Q=Uo(z,_.head),J=X?{columnGap:Q.columnGap,rowGap:Q.rowGap}:Q,Z=/* @__PURE__ */i.jsxs(t.View,{testID:X?T:void 0,style:[J,{flexDirection:"row",alignItems:"flex-start"},X?j:null],children:[
|
|
176
|
+
/* @__PURE__ */i.jsxs(t.View,{accessibilityElementsHidden:true,importantForAccessibility:"no-hide-descendants",style:[Uo(z,_.pic),N?{backgroundColor:lo(z,_.photoBg)}:null,!V&&c?.tint!==void 0?{backgroundColor:c.tint}:null,{width:_.pic.w,height:_.pic.h,overflow:"hidden",alignItems:"center",justifyContent:"center"}],children:[V?null:/* @__PURE__ */i.jsx(BlockIcon,{icon:c?.icon??Ba,size:c?.iconSize??z.metrics.thumbnail.xs.icon.w,color:c?.iconColor??lo(z,z.metrics.thumbnail.xs.icon.color)}),R?/* @__PURE__ */i.jsx(FadeImage,{testID:M("image"),source:R,resizeMode:N?"cover":"contain",onLoad:$,onError:U,style:[{position:"absolute",top:N?0:G,right:N?0:G,bottom:N?0:G,left:N?0:G},q]},L??void 0):null]}),
|
|
177
|
+
/* @__PURE__ */i.jsxs(t.View,{style:{flex:1,minWidth:0},children:[n?/* @__PURE__ */i.jsx(Text,{style:W(_.kind),children:n}):null,l?/* @__PURE__ */i.jsx(Text,{accessibilityRole:"header",style:[W(_.title),{marginTop:_.title.marginTop}],children:l}):null,o?/* @__PURE__ */i.jsx(Text,{style:[W(_.sub),{marginTop:_.sub.marginTop}],children:o}):null]}),u?/* @__PURE__ */i.jsx(t.Pressable,{testID:M("close"),onPress:u,hitSlop:Zo(_.close.w),accessibilityRole:"button",accessibilityLabel:p,style:{width:_.close.w,height:_.close.h,borderRadius:_.close.w/2,alignItems:"center",justifyContent:"center"},children:/* @__PURE__ */i.jsx(Glyph,{icon:ys,size:_.closeIcon.w,color:lo(z,_.close.color)})}):X?null:/* @__PURE__ */i.jsx(t.View,{style:{width:_.close.w}})]}),ee=e=>e.onPress?t=>e.onPress?.({currentTarget:t.currentTarget}):void 0,te=(e,r)=>/* @__PURE__ */i.jsxs(t.Pressable,{testID:e.testID??r,onPress:e.onPress,onPressIn:()=>P(true),onPressOut:()=>P(false),accessibilityRole:"button",accessibilityLabel:e.accessibilityLabel??e.label,accessibilityState:Jo(void 0,e.pressed,void 0),style:[Uo(z,_.btn),{flexDirection:"row",alignItems:"center",justifyContent:"center",minHeight:_.btn.h},E&&!D?{transform:[{scale:_.pressScale}]}:null],children:[
|
|
178
|
+
/* @__PURE__ */i.jsx(Text,{style:[W(_.btnText),{textAlign:"center"}],children:e.label}),Y?/* @__PURE__ */i.jsx(t.View,{pointerEvents:"none",style:Y}):null]}),ie=(e,r,n)=>/* @__PURE__ */i.jsx(t.Pressable,{testID:e.testID??r,onPress:ee(e),accessibilityRole:"link",accessibilityLabel:e.accessibilityLabel??e.label,style:[Uo(z,_.more),{alignSelf:"center",flexDirection:"row",alignItems:"center"}],children:/* @__PURE__ */i.jsx(Text,{style:W(_.moreText),children:e.label})},n),re=I!==void 0&&I.length>0,ne=/* @__PURE__ */i.jsxs(i.Fragment,{children:[g.length>0?/* @__PURE__ */i.jsxs(t.View,{style:[Uo(z,_.box),H?null:{backgroundColor:lo(z,C.why.tones[m])}],children:[h?/* @__PURE__ */i.jsx(Text,{accessibilityRole:"header",style:W(_.heading),children:h}):null,
|
|
178
179
|
/* @__PURE__ */i.jsx(t.View,{style:{rowGap:_.rows.gap[1],marginTop:_.rows.marginTop},children:g.map(e=>/* @__PURE__ */i.jsxs(t.View,{children:[e.label?/* @__PURE__ */i.jsx(Text,{style:W(_.rowHead),children:e.label}):null,
|
|
179
180
|
/* @__PURE__ */i.jsx(Text,{style:W(_.row),children:e.text})]},e.key))})]}):null,f.map((e,r)=>/* @__PURE__ */i.jsxs(t.View,{children:[
|
|
180
181
|
/* @__PURE__ */i.jsx(Text,{accessibilityRole:"header",style:W(_.secHeading),children:e.heading}),e.bullets&&e.bullets.length>0?/* @__PURE__ */i.jsx(t.View,{style:{rowGap:_.how.gap[1],marginTop:_.how.marginTop},children:e.bullets.map((e,r)=>/* @__PURE__ */i.jsxs(t.View,{style:{flexDirection:"row",columnGap:_.bullet.gap[0]},children:[
|
|
181
|
-
/* @__PURE__ */i.jsx(t.View,{style:{width:_.bulletColumn},children:/* @__PURE__ */i.jsx(t.View,{style:{width:_.dot.size,height:_.dot.size,marginTop:_.dot.top,borderRadius:_.dot.size/2,backgroundColor:
|
|
182
|
-
/* @__PURE__ */i.jsx(Text,{style:[W(_.bulletText),{flex:1,minWidth:0}],children:e})]},`${r}-${e}`))}):null,
|
|
183
|
-
/* @__PURE__ */i.jsx(t.View,{style:
|
|
184
|
-
return i.jsx(t.View,{testID:g,style:[{marginTop:b.card.marginTop},f],children:/* @__PURE__ */i.jsx(Skeleton,{lines:3,label:h})});let k=b.pills[l],T=b.viz.h,j=
|
|
182
|
+
/* @__PURE__ */i.jsx(t.View,{style:{width:_.bulletColumn},children:/* @__PURE__ */i.jsx(t.View,{style:{width:_.dot.size,height:_.dot.size,marginTop:_.dot.top,borderRadius:_.dot.size/2,backgroundColor:lo(z,_.dot.color)}})}),
|
|
183
|
+
/* @__PURE__ */i.jsx(Text,{style:[W(_.bulletText),{flex:1,minWidth:0}],children:e})]},`${r}-${e}`))}):null,Ws(e.text).map((e,t)=>/* @__PURE__ */i.jsx(Text,{style:[W(_.para),{marginTop:_.para.marginTop}],children:e},`${t}-${e}`))]},e.key??`${r}-${e.heading}`)),re?/* @__PURE__ */i.jsx(t.View,{style:{rowGap:_.acts.gap[1]},children:I.map((t,r)=>r===0?/* @__PURE__ */i.jsx(e.Fragment,{children:te(t,M("action"))},`${r}-${t.label}`):ie({label:t.label,testID:t.testID,accessibilityLabel:t.accessibilityLabel,onPress:()=>t.onPress?.()},M(`more-${r}`),`${r}-${t.label}`))}):b||w?/* @__PURE__ */i.jsxs(t.View,{style:{rowGap:_.acts.gap[1]},children:[b?te(b,M("action")):null,w?ie({label:w.label,testID:w.testID,onPress:w.onPress},M("link")):null]}):null]});return X?Z:K?ne:/* @__PURE__ */i.jsxs(t.View,{testID:T,style:j,children:[Z,
|
|
184
|
+
/* @__PURE__ */i.jsx(t.View,{style:Uo(z,_.body),children:ne})]})}function ScoreLights(r){let{values:n,state:l,heading:o,since:a,pill:s,vizLabel:c,source:d,next:u,loading:p=false,loadingLabel:h,testID:g,style:f}=r,m=Zl(),b=Ho(m,Tl),[w,y]=e.useState(0),x=e=>Go(m,fo(m,e)),v=e=>g===void 0?void 0:`${g}-${e}`;if(p)/* @__PURE__ */
|
|
185
|
+
return i.jsx(t.View,{testID:g,style:[{marginTop:b.card.marginTop},f],children:/* @__PURE__ */i.jsx(Skeleton,{lines:3,label:h})});let k=b.pills[l],T=b.viz.h,j=Fo(n,w,T,b,t.I18nManager.isRTL),S=e=>y(Math.round(e.nativeEvent.layout.width)),I=Yo(m,b.act);/* @__PURE__ */
|
|
185
186
|
return i.jsxs(t.View,{testID:g,style:[{marginTop:b.card.marginTop},f],children:[
|
|
186
|
-
/* @__PURE__ */i.jsxs(t.View,{style:[
|
|
187
|
+
/* @__PURE__ */i.jsxs(t.View,{style:[Uo(m,b.head),{flexDirection:"row",alignItems:"center",justifyContent:"space-between",marginBottom:b.head.marginBottom}],children:[
|
|
187
188
|
/* @__PURE__ */i.jsxs(Text,{style:[x(b.lead),{flexShrink:1}],children:[o?/* @__PURE__ */i.jsx(Text,{style:x(b.name),children:o}):null,o&&a?" · ":null,a??null]}),
|
|
188
|
-
/* @__PURE__ */i.jsx(t.View,{style:[
|
|
189
|
-
/* @__PURE__ */i.jsx(t.View,{testID:v("viz"),accessible:true,accessibilityRole:"image",accessibilityLabel:c,onLayout:S,style:{height:T},children:j.map((e,r)=>/* @__PURE__ */i.jsx(t.View,{style:{position:"absolute",left:e.x,top:0,width:e.width,height:T},children:e.lights.map((r,n)=>/* @__PURE__ */i.jsx(t.View,{style:{position:"absolute",left:0,top:r.y,width:e.width,height:r.height,borderRadius:b.grid.radius,backgroundColor:
|
|
189
|
+
/* @__PURE__ */i.jsx(t.View,{style:[Uo(m,k.box),{minHeight:k.box.minHeight,flexDirection:"row",alignItems:"center"}],children:/* @__PURE__ */i.jsx(Text,{style:x(k.text),numberOfLines:1,children:s})})]}),
|
|
190
|
+
/* @__PURE__ */i.jsx(t.View,{testID:v("viz"),accessible:true,accessibilityRole:"image",accessibilityLabel:c,onLayout:S,style:{height:T},children:j.map((e,r)=>/* @__PURE__ */i.jsx(t.View,{style:{position:"absolute",left:e.x,top:0,width:e.width,height:T},children:e.lights.map((r,n)=>/* @__PURE__ */i.jsx(t.View,{style:{position:"absolute",left:0,top:r.y,width:e.width,height:r.height,borderRadius:b.grid.radius,backgroundColor:lo(m,b.colors[e.zone]),opacity:r.opacity}},n))},r))}),d?/* @__PURE__ */i.jsx(t.View,{style:[Uo(m,b.src),{flexDirection:"row",flexWrap:"wrap",alignItems:"center"}],children:/* @__PURE__ */i.jsxs(t.Pressable,{testID:d.testID??v("source"),onPress:d.onPress?e=>d.onPress?.({currentTarget:e.currentTarget}):void 0,accessibilityRole:"button",accessibilityLabel:d.accessibilityLabel??d.label,style:[Uo(m,b.srcBtn),{minHeight:b.srcBtn.minHeight,flexDirection:"row",alignItems:"center"}],children:[
|
|
190
191
|
/* @__PURE__ */i.jsx(Text,{style:x(b.srcText),children:d.label}),
|
|
191
|
-
/* @__PURE__ */i.jsx(Glyph,{icon:
|
|
192
|
-
/* @__PURE__ */i.jsx(Text,{style:x(b.actText),children:u.label}),I?/* @__PURE__ */i.jsx(t.View,{pointerEvents:"none",style:I}):null]}):null]})}function
|
|
193
|
-
return i.jsx(t.View,{testID:T,style:[{paddingTop:D.head.padding[0],paddingHorizontal:C.body.padding[1],paddingBottom:C.body.padding[2]},j],children:/* @__PURE__ */i.jsx(Skeleton,{lines:4,label:k})});let V=
|
|
192
|
+
/* @__PURE__ */i.jsx(Glyph,{icon:Za,size:b.srcIcon.w,color:lo(m,b.srcIcon.color)})]})}):null,u?/* @__PURE__ */i.jsxs(t.Pressable,{testID:u.testID??v("next"),onPress:u.onPress?e=>u.onPress?.({currentTarget:e.currentTarget}):void 0,accessibilityRole:u.href!==void 0?"link":"button",accessibilityLabel:u.label,...t.Platform.OS==="web"&&u.href!==void 0?{href:u.href}:{},style:[Uo(m,b.act),{alignSelf:"flex-start",minHeight:b.act.minHeight,marginBottom:b.act.marginBottom,flexDirection:"row",alignItems:"center",justifyContent:"center"}],children:[
|
|
193
|
+
/* @__PURE__ */i.jsx(Text,{style:x(b.actText),children:u.label}),I?/* @__PURE__ */i.jsx(t.View,{pointerEvents:"none",style:I}):null]}):null]})}function Ms(e){return typeof e=="number"?e:typeof e=="string"?e?{uri:e}:null:e&&typeof e=="object"&&e.uri?e:null}function Ns(e){return e==null?null:typeof e=="object"?e.uri:String(e)}function Gs(e,t){return t===null?-1:typeof t=="number"?t>=0&&t<e.length?t:-1:typeof t=="string"?e.findIndex(e=>e.key===t):e.findIndex(e=>e.value===void 0||e.value===null)}function qs(e,t){let i=[];for(let r=0;r<e.length;r+=t){let n=e.slice(r,r+t);for(;n.length<t;)n.push(null);i.push(n)}return i}function CheckinSheet(r){let{kicker:n,title:l,image:o,imageKind:a="photo",fallback:s,onImageError:c,onClose:d,closeLabel:u,steps:p,open:h,onPick:g,onEditStep:f,flowLabel:m,note:b,doneText:w,action:y,children:x,loading:v=false,loadingLabel:k,testID:T,style:j}=r;ra("CheckinSheet",d,u);let S=Zl(),I=Qo(S),z={why:Ho(S,xl),checkin:Ho(S,jl)},D=z.why,C=z.checkin,[H,F]=e.useState(null),_=Ns(o),[O,E]=e.useState(null),P=_!==null&&O!==_?Ms(o):null,{shown:L,onShown:A}=zs(P?_:null),B=e=>Go(S,fo(S,e)),R=e=>T===void 0?void 0:`${T}-${e}`;if(v)/* @__PURE__ */
|
|
194
|
+
return i.jsx(t.View,{testID:T,style:[{paddingTop:D.head.padding[0],paddingHorizontal:C.body.padding[1],paddingBottom:C.body.padding[2]},j],children:/* @__PURE__ */i.jsx(Skeleton,{lines:4,label:k})});let V=Gs(p,h),$=e=>e.value!==void 0&&e.value!==null,W=V<0&&p.length>0&&p.every($),M=a==="photo",N=D.packInset*D.pic.w,G=()=>{o==null||_===null||(E(_),c?.(o))},q=Yo(S,C.btn),U=e=>({onPressIn:()=>F(e),onPressOut:()=>F(null)}),Y=(e,t)=>H===e&&!I?{transform:[{scale:t}]}:null,X=b?.link;/* @__PURE__ */
|
|
194
195
|
return i.jsxs(t.View,{testID:T,style:j,children:[
|
|
195
|
-
/* @__PURE__ */i.jsxs(t.View,{style:[
|
|
196
|
-
/* @__PURE__ */i.jsxs(t.View,{accessibilityElementsHidden:true,importantForAccessibility:"no-hide-descendants",style:[
|
|
197
|
-
/* @__PURE__ */i.jsxs(t.View,{style:{flex:1,minWidth:0},children:[n?/* @__PURE__ */i.jsx(Text,{accessibilityLiveRegion:"polite",style:B(D.kind),children:n}):null,l?/* @__PURE__ */i.jsx(Text,{accessibilityRole:"header",style:[B(D.title),{marginTop:D.title.marginTop}],children:l}):null]}),d?/* @__PURE__ */i.jsx(t.Pressable,{testID:R("close"),onPress:d,hitSlop:
|
|
198
|
-
/* @__PURE__ */i.jsxs(t.View,{style:
|
|
196
|
+
/* @__PURE__ */i.jsxs(t.View,{style:[Uo(S,D.head),{flexDirection:"row",alignItems:"flex-start"}],children:[
|
|
197
|
+
/* @__PURE__ */i.jsxs(t.View,{accessibilityElementsHidden:true,importantForAccessibility:"no-hide-descendants",style:[Uo(S,D.pic),M?{backgroundColor:lo(S,D.photoBg)}:null,!L&&s?.tint!==void 0?{backgroundColor:s.tint}:null,{width:D.pic.w,height:D.pic.h,overflow:"hidden",alignItems:"center",justifyContent:"center"}],children:[L?null:/* @__PURE__ */i.jsx(BlockIcon,{icon:s?.icon??Ba,size:s?.iconSize??S.metrics.thumbnail.xs.icon.w,color:s?.iconColor??lo(S,S.metrics.thumbnail.xs.icon.color)}),P?/* @__PURE__ */i.jsx(FadeImage,{testID:R("image"),source:P,resizeMode:M?"cover":"contain",onLoad:A,onError:G,style:[{position:"absolute",top:M?0:N,right:M?0:N,bottom:M?0:N,left:M?0:N},M?null:{mixBlendMode:"multiply"}]},_??void 0):null]}),
|
|
198
|
+
/* @__PURE__ */i.jsxs(t.View,{style:{flex:1,minWidth:0},children:[n?/* @__PURE__ */i.jsx(Text,{accessibilityLiveRegion:"polite",style:B(D.kind),children:n}):null,l?/* @__PURE__ */i.jsx(Text,{accessibilityRole:"header",style:[B(D.title),{marginTop:D.title.marginTop}],children:l}):null]}),d?/* @__PURE__ */i.jsx(t.Pressable,{testID:R("close"),onPress:d,hitSlop:Zo(D.close.w),accessibilityRole:"button",accessibilityLabel:u,style:{width:D.close.w,height:D.close.h,borderRadius:D.close.w/2,alignItems:"center",justifyContent:"center"},children:/* @__PURE__ */i.jsx(Glyph,{icon:ys,size:D.closeIcon.w,color:lo(S,D.close.color)})}):/* @__PURE__ */i.jsx(t.View,{style:{width:D.close.w}})]}),
|
|
199
|
+
/* @__PURE__ */i.jsxs(t.View,{style:Uo(S,C.body),children:[
|
|
199
200
|
/* @__PURE__ */i.jsxs(t.View,{accessibilityLabel:m,...t.Platform.OS==="web"?{role:"region"}:{},children:[p.map((e,r)=>{if(r===V){let n=e.columns??2;/* @__PURE__ */
|
|
200
201
|
return i.jsxs(t.View,{style:r>0?{paddingTop:C.stepTop}:null,children:[
|
|
201
202
|
/* @__PURE__ */i.jsx(Text,{accessibilityRole:"header",style:B(C.question),children:e.question}),
|
|
202
|
-
/* @__PURE__ */i.jsx(t.View,{accessibilityRole:"radiogroup",accessibilityLabel:e.question,style:{rowGap:C.picks.gap[1],marginTop:C.picks.marginTop},children:
|
|
203
|
-
return i.jsx(t.Pressable,{testID:R(`pick-${e.key}-${r.value}`),onPress:()=>g?.(e.key,r.value),accessibilityRole:"radio",accessibilityLabel:r.label,accessibilityState:{checked:l},"aria-checked":l,style:[
|
|
204
|
-
return i.jsxs(t.Pressable,{testID:R(l),onPress:f?()=>f(e.key):void 0,...U(l),accessibilityRole:"button",accessibilityLabel:`${e.label}: ${n}`,accessibilityState:{expanded:false},style:[
|
|
205
|
-
/* @__PURE__ */i.jsx(Glyph,{icon
|
|
203
|
+
/* @__PURE__ */i.jsx(t.View,{accessibilityRole:"radiogroup",accessibilityLabel:e.question,style:{rowGap:C.picks.gap[1],marginTop:C.picks.marginTop},children:qs(e.picks,n).map((r,n)=>/* @__PURE__ */i.jsx(t.View,{style:{flexDirection:"row",columnGap:C.picks.gap[0]},children:r.map((r,n)=>{if(!r)/* @__PURE__ */return i.jsx(t.View,{style:{flex:1}},`blank-${n}`);let l=e.value===r.value,o=l?C.pickOn:C.pick;/* @__PURE__ */
|
|
204
|
+
return i.jsx(t.Pressable,{testID:R(`pick-${e.key}-${r.value}`),onPress:()=>g?.(e.key,r.value),accessibilityRole:"radio",accessibilityLabel:r.label,accessibilityState:{checked:l},"aria-checked":l,style:[Uo(S,o),{flex:1,minWidth:0,minHeight:o.minHeight,alignItems:"center",justifyContent:"center"}],children:/* @__PURE__ */i.jsx(Text,{style:[B(l?C.pickOnText:C.pickText),{textAlign:"center"}],children:r.label})},r.value)})},n))})]},e.key)}if(!$(e))return null;let n=e.picks.find(t=>t.value===e.value)?.label??String(e.value),l=`row-${e.key}`;/* @__PURE__ */
|
|
205
|
+
return i.jsxs(t.Pressable,{testID:R(l),onPress:f?()=>f(e.key):void 0,...U(l),accessibilityRole:"button",accessibilityLabel:`${e.label}: ${n}`,accessibilityState:{expanded:false},style:[Uo(S,C.row),{flexDirection:"row",alignItems:"center",minHeight:C.row.minHeight},Y(l,C.rowPressScale)],children:[
|
|
206
|
+
/* @__PURE__ */i.jsx(Glyph,{icon:$a,size:C.rowIcon.w,color:lo(S,C.rowIcon.color)}),
|
|
206
207
|
/* @__PURE__ */i.jsx(Text,{style:B(C.rowLabel),children:e.label}),
|
|
207
208
|
/* @__PURE__ */i.jsx(Text,{style:[B(C.rowValue),{flex:1,minWidth:0,textAlign:"right"}],children:n}),
|
|
208
|
-
/* @__PURE__ */i.jsx(t.View,{style:{transform:[{rotate:`${C.rowTurn}deg`}]},children:/* @__PURE__ */i.jsx(Glyph,{icon:
|
|
209
|
+
/* @__PURE__ */i.jsx(t.View,{style:{transform:[{rotate:`${C.rowTurn}deg`}]},children:/* @__PURE__ */i.jsx(Glyph,{icon:Wa,size:C.rowIcon.w,color:lo(S,C.rowIcon.color)})})]},e.key)}),b?/* @__PURE__ */i.jsx(t.View,{style:[Uo(S,C.note),{marginTop:C.note.marginTop}],children:/* @__PURE__ */i.jsxs(Text,{style:B(C.noteText),children:[b.text,X?/* @__PURE__ */i.jsxs(i.Fragment,{children:[" ",
|
|
209
210
|
/* @__PURE__ */i.jsx(Text,{testID:X.testID??R("note-link"),accessibilityRole:"link",onPress:X.onPress?e=>X.onPress?.({currentTarget:e.currentTarget}):void 0,...t.Platform.OS==="web"&&X.href!==void 0?{href:X.href}:{},style:[B(C.noteLink),t.Platform.OS==="web"?{whiteSpace:"normal"}:null],children:X.label})]}):null,b.after?/* @__PURE__ */i.jsxs(i.Fragment,{children:[" ",
|
|
210
|
-
/* @__PURE__ */i.jsx(Text,{style:t.Platform.OS==="web"?{whiteSpace:"nowrap"}:null,children:b.after})]}):null]})}):null,W&&w?/* @__PURE__ */i.jsx(Text,{style:[B(C.done),{marginTop:C.done.marginTop}],children:w}):null]}),x,W&&y?/* @__PURE__ */i.jsx(t.View,{style:{rowGap:C.acts.gap[1]},children:/* @__PURE__ */i.jsxs(t.Pressable,{testID:y.testID??R("action"),onPress:y.onPress,...U("action"),accessibilityRole:"button",accessibilityLabel:y.accessibilityLabel??y.label,style:[
|
|
211
|
-
/* @__PURE__ */i.jsx(Text,{style:[B(C.btnText),{textAlign:"center"}],children:y.label}),q?/* @__PURE__ */i.jsx(t.View,{pointerEvents:"none",style:q}):null]})}):null]})]})}function
|
|
212
|
-
return i.jsx(t.View,{pointerEvents:"none",accessible:false,accessibilityElementsHidden:true,importantForAccessibility:"no-hide-descendants",style:{width:r,height:r},children:e.map((e,t)=>/* @__PURE__ */i.jsx(Glyph,{icon:e.icon,size:r,color:e.color,style:{position:"absolute",left:0,top:0}},t))})}function
|
|
213
|
-
return i.jsx(t.View,{testID:k,style:[
|
|
214
|
-
return i.jsxs(t.View,{testID:k,style:[
|
|
215
|
-
/* @__PURE__ */i.jsxs(t.View,{style:[
|
|
216
|
-
return i.jsx(t.Pressable,{testID:C(`unit-${r.value}`),role:"radio","aria-checked":n,accessibilityState:{checked:n},hitSlop:
|
|
217
|
-
/* @__PURE__ */i.jsxs(t.View,{style:[
|
|
211
|
+
/* @__PURE__ */i.jsx(Text,{style:t.Platform.OS==="web"?{whiteSpace:"nowrap"}:null,children:b.after})]}):null]})}):null,W&&w?/* @__PURE__ */i.jsx(Text,{style:[B(C.done),{marginTop:C.done.marginTop}],children:w}):null]}),x,W&&y?/* @__PURE__ */i.jsx(t.View,{style:{rowGap:C.acts.gap[1]},children:/* @__PURE__ */i.jsxs(t.Pressable,{testID:y.testID??R("action"),onPress:y.onPress,...U("action"),accessibilityRole:"button",accessibilityLabel:y.accessibilityLabel??y.label,style:[Uo(S,C.btn),{flexDirection:"row",alignItems:"center",justifyContent:"center",minHeight:C.btn.h},Y("action",D.pressScale)],children:[
|
|
212
|
+
/* @__PURE__ */i.jsx(Text,{style:[B(C.btnText),{textAlign:"center"}],children:y.label}),q?/* @__PURE__ */i.jsx(t.View,{pointerEvents:"none",style:q}):null]})}):null]})]})}function Us(e){let t=Zo(e);return t?{top:t.top,bottom:t.bottom}:void 0}function Layers({layers:e,size:r}){/* @__PURE__ */
|
|
213
|
+
return i.jsx(t.View,{pointerEvents:"none",accessible:false,accessibilityElementsHidden:true,importantForAccessibility:"no-hide-descendants",style:{width:r,height:r},children:e.map((e,t)=>/* @__PURE__ */i.jsx(Glyph,{icon:e.icon,size:r,color:e.color,style:{position:"absolute",left:0,top:0}},t))})}function Ys(e,t,r,n){return typeof t=="function"?t({size:r,color:e.colors.ink}):/* @__PURE__ */i.jsx(Layers,{layers:n?Nn:Mn,size:r})}function WeatherCard(e){let{variant:r="walk",heading:n,temperature:l,condition:o,details:a,glyph:s,sky:c="sun",level:d="good",verdict:u,advice:p,comfort:h,label:g,note:f,action:m,units:b,tags:w,tagsLabel:y,loading:x=false,loadingLabel:v,testID:k,style:T}=e,j=Zl(),S={weather:Ho(j,Sl),weatherSummary:Ho(j,Il),weatherTile:Ho(j,zl),weatherWeb:Ho(j,Dl)},{width:I}=t.useWindowDimensions(),z=e=>Go(j,fo(j,e)),D=e=>e.marginTop?{marginTop:e.marginTop}:null,C=e=>k===void 0?void 0:`${k}-${e}`,H=n!==void 0&&r!=="web"?{role:"region","aria-label":n}:{},F={backgroundColor:lo(j,S.weather.skies[c])};if(r==="web"){let e=S.weatherWeb,r=I>0&&I<=e.phone.upTo,a=r?{...e.card,padding:e.phone.card.padding}:e.card,c=r?e.phone.glyph.w:e.glyph.w;if(x)/* @__PURE__ */
|
|
214
|
+
return i.jsx(t.View,{testID:k,style:[Uo(j,a),T],children:/* @__PURE__ */i.jsx(Skeleton,{lines:3,label:v})});let d=Math.min(e.tempFluid.max,Math.max(e.tempFluid.min,I*e.tempFluid.vw/100)),u=d/e.temp.size,p=[z(e.temp),{fontSize:d,lineHeight:e.temp.lineHeight*u,letterSpacing:e.temp.tracking*u}],h=t=>lo(j,t==="red"||t==="yellow"||t==="green"||t==="blue"?e.hues[t]:e.hues.plain);/* @__PURE__ */
|
|
215
|
+
return i.jsxs(t.View,{testID:k,style:[Uo(j,a),T],children:[
|
|
216
|
+
/* @__PURE__ */i.jsxs(t.View,{style:[Uo(j,e.head),{flexDirection:"row",flexWrap:"wrap",alignItems:"center",justifyContent:"space-between",marginBottom:e.head.marginBottom}],children:[n?/* @__PURE__ */i.jsx(Text,{role:"heading","aria-level":2,style:z(e.city),children:n}):null,b?/* @__PURE__ */i.jsx(t.View,{role:"radiogroup","aria-label":b.label,style:[Uo(j,e.units),{flexDirection:"row"}],children:b.options.map(r=>{let n=r.value===b.value,l=n?e.unitOn:e.unit;/* @__PURE__ */
|
|
217
|
+
return i.jsx(t.Pressable,{testID:C(`unit-${r.value}`),role:"radio","aria-checked":n,accessibilityState:{checked:n},hitSlop:Us(e.unit.h),onPress:b.onChange&&!n?()=>b.onChange?.(r.value):void 0,style:[Uo(j,l),{minWidth:e.unit.w,alignItems:"center",justifyContent:"center"}],children:/* @__PURE__ */i.jsx(Text,{style:[z(n?e.unitOnText:e.unitText),{textAlign:"center"}],children:r.label})},r.value)})}):null]}),
|
|
218
|
+
/* @__PURE__ */i.jsxs(t.View,{style:[Uo(j,e.now),{flexDirection:"row",alignItems:"center"}],children:[Ys(j,s,c,true),
|
|
218
219
|
/* @__PURE__ */i.jsxs(t.View,{style:{flex:1,minWidth:0},children:[
|
|
219
|
-
/* @__PURE__ */i.jsx(Text,{style:p,children:l}),o?/* @__PURE__ */i.jsx(Text,{style:[z(e.sky),D(e.sky)],children:o}):null]})]}),w&&w.length>0?/* @__PURE__ */i.jsx(t.View,{role:"list","aria-label":y,style:[
|
|
220
|
-
/* @__PURE__ */i.jsx(t.View,{style:{width:e.dot,height:e.dot,borderRadius:e.dot/2,backgroundColor:r.hue?h(r.hue):
|
|
220
|
+
/* @__PURE__ */i.jsx(Text,{style:p,children:l}),o?/* @__PURE__ */i.jsx(Text,{style:[z(e.sky),D(e.sky)],children:o}):null]})]}),w&&w.length>0?/* @__PURE__ */i.jsx(t.View,{role:"list","aria-label":y,style:[Uo(j,e.tags),{flexDirection:"row",flexWrap:"wrap"}],children:w.map((r,n)=>/* @__PURE__ */i.jsxs(t.View,{role:"listitem",style:[Uo(j,e.tag),{flexDirection:"row",alignItems:"center",borderColor:h(r.hue)}],children:[
|
|
221
|
+
/* @__PURE__ */i.jsx(t.View,{style:{width:e.dot,height:e.dot,borderRadius:e.dot/2,backgroundColor:r.hue?h(r.hue):lo(j,e.hues.plainDot)}}),
|
|
221
222
|
/* @__PURE__ */i.jsx(Text,{style:z(e.tagText),children:r.label})]},n))}):null]})}if(r==="tile"){let e=S.weatherTile;if(x)/* @__PURE__ */
|
|
222
|
-
return i.jsx(t.View,{testID:k,style:[
|
|
223
|
-
return i.jsxs(t.View,{testID:k,...H,style:[
|
|
224
|
-
/* @__PURE__ */i.jsxs(t.View,{style:[
|
|
223
|
+
return i.jsx(t.View,{testID:k,style:[Uo(j,e.card),T],children:/* @__PURE__ */i.jsx(Skeleton,{lines:3,label:v})});let[r=0,n=0,o=0,c=0]=e.glyphMargin;/* @__PURE__ */
|
|
224
|
+
return i.jsxs(t.View,{testID:k,...H,style:[Uo(j,e.card),{alignItems:"flex-start"},T],children:[
|
|
225
|
+
/* @__PURE__ */i.jsxs(t.View,{style:[Uo(j,e.top),{flexDirection:"row",alignItems:"center",justifyContent:"space-between",alignSelf:"stretch"}],children:[
|
|
225
226
|
/* @__PURE__ */i.jsx(Text,{style:[z(e.label),{flexShrink:1}],children:g}),
|
|
226
|
-
/* @__PURE__ */i.jsx(t.View,{style:{marginTop:r,marginRight:n,marginBottom:o,marginLeft:c},children:
|
|
227
|
+
/* @__PURE__ */i.jsx(t.View,{style:{marginTop:r,marginRight:n,marginBottom:o,marginLeft:c},children:Ys(j,s,e.glyph.w,false)})]}),
|
|
227
228
|
/* @__PURE__ */i.jsxs(t.View,{style:{flexDirection:"row",flexWrap:"wrap",alignItems:"baseline"},children:[
|
|
228
|
-
/* @__PURE__ */i.jsx(Text,{style:z(e.big),children:l}),f?/* @__PURE__ */i.jsx(Text,{style:[z(e.small),{marginLeft:e.smallGap}],children:f}):null]}),a?/* @__PURE__ */i.jsx(Text,{style:z(e.meta),children:a}):null,m?/* @__PURE__ */i.jsxs(t.Pressable,{testID:m.testID??C("action"),onPress:m.onPress?e=>m.onPress?.({currentTarget:e.currentTarget}):void 0,accessibilityRole:m.href!==void 0?"link":"button",accessibilityLabel:m.label,...t.Platform.OS==="web"&&m.href!==void 0?{href:m.href}:{},hitSlop:
|
|
229
|
-
/* @__PURE__ */i.jsx(Glyph,{icon:
|
|
230
|
-
/* @__PURE__ */i.jsx(Text,{style:z(e.btnText),children:m.label})]}):null]})}if(r==="summary"){let e=S.weatherSummary;return x?/* @__PURE__ */i.jsx(t.View,{testID:k,style:[
|
|
229
|
+
/* @__PURE__ */i.jsx(Text,{style:z(e.big),children:l}),f?/* @__PURE__ */i.jsx(Text,{style:[z(e.small),{marginLeft:e.smallGap}],children:f}):null]}),a?/* @__PURE__ */i.jsx(Text,{style:z(e.meta),children:a}):null,m?/* @__PURE__ */i.jsxs(t.Pressable,{testID:m.testID??C("action"),onPress:m.onPress?e=>m.onPress?.({currentTarget:e.currentTarget}):void 0,accessibilityRole:m.href!==void 0?"link":"button",accessibilityLabel:m.label,...t.Platform.OS==="web"&&m.href!==void 0?{href:m.href}:{},hitSlop:Us(e.btn.minHeight||e.btn.h),style:[Uo(j,e.btn),{minHeight:e.btn.minHeight,flexDirection:"row",alignItems:"center",justifyContent:"center"}],children:[
|
|
230
|
+
/* @__PURE__ */i.jsx(Glyph,{icon:Gn,size:e.btnIcon.w,color:lo(j,e.btnIcon.color)}),
|
|
231
|
+
/* @__PURE__ */i.jsx(Text,{style:z(e.btnText),children:m.label})]}):null]})}if(r==="summary"){let e=S.weatherSummary;return x?/* @__PURE__ */i.jsx(t.View,{testID:k,style:[Uo(j,e.card),F,T],children:/* @__PURE__ */i.jsx(Skeleton,{lines:3,label:v})}):/* @__PURE__ */i.jsxs(t.View,{testID:k,...H,style:[Uo(j,e.card),F,{alignItems:"center"},T],children:[Ys(j,s,e.glyph.w,false),
|
|
231
232
|
/* @__PURE__ */i.jsx(Text,{style:[z(e.temp),D(e.temp),{textAlign:"center"}],children:l}),o?/* @__PURE__ */i.jsx(Text,{style:[z(e.cond),D(e.cond),{textAlign:"center"}],children:o}):null,a?/* @__PURE__ */i.jsx(Text,{style:[z(e.hl),D(e.hl),{textAlign:"center"}],children:a}):null]})}let _=S.weather;if(x)/* @__PURE__ */
|
|
232
|
-
return i.jsx(t.View,{testID:k,style:[
|
|
233
|
-
return i.jsxs(t.View,{testID:k,...H,style:[
|
|
234
|
-
/* @__PURE__ */i.jsxs(t.View,{style:[
|
|
233
|
+
return i.jsx(t.View,{testID:k,style:[Uo(j,_.card),F,T],children:/* @__PURE__ */i.jsx(Skeleton,{lines:3,label:v})});let O=h?Math.max(0,Math.round(h.total)):0,E=h?Math.min(O,Math.max(0,Math.round(h.filled))):0;/* @__PURE__ */
|
|
234
|
+
return i.jsxs(t.View,{testID:k,...H,style:[Uo(j,_.card),F,T],children:[
|
|
235
|
+
/* @__PURE__ */i.jsxs(t.View,{style:[Uo(j,_.now),{flexDirection:"row",alignItems:"center"}],children:[
|
|
235
236
|
/* @__PURE__ */i.jsxs(t.View,{style:{flex:1,minWidth:0},children:[
|
|
236
|
-
/* @__PURE__ */i.jsx(Text,{style:z(_.temp),children:l}),o?/* @__PURE__ */i.jsx(Text,{style:[z(_.cond),D(_.cond)],children:o}):null,a?/* @__PURE__ */i.jsx(Text,{style:[z(_.hl),D(_.hl)],children:a}):null]}),
|
|
237
|
-
/* @__PURE__ */i.jsx(t.View,{style:{width:_.lvl.w,height:_.lvl.h,borderRadius:_.lvl.w/2,backgroundColor:
|
|
238
|
-
/* @__PURE__ */i.jsx(Text,{style:[z(_.walkTitleText),{flexShrink:1}],children:u})]}):null,p?/* @__PURE__ */i.jsx(Text,{style:z(_.walkText),children:p}):null,h?/* @__PURE__ */i.jsxs(t.View,{testID:C("comfort"),accessible:true,role:"img","aria-label":h.accessibilityLabel??`${h.label}: ${h.value}`,style:[
|
|
237
|
+
/* @__PURE__ */i.jsx(Text,{style:z(_.temp),children:l}),o?/* @__PURE__ */i.jsx(Text,{style:[z(_.cond),D(_.cond)],children:o}):null,a?/* @__PURE__ */i.jsx(Text,{style:[z(_.hl),D(_.hl)],children:a}):null]}),Ys(j,s,_.glyph.w,false)]}),u||p||h?/* @__PURE__ */i.jsxs(t.View,{style:Uo(j,_.walk),children:[u?/* @__PURE__ */i.jsxs(t.View,{style:[Uo(j,_.walkTitle),{flexDirection:"row",alignItems:"center"}],children:[
|
|
238
|
+
/* @__PURE__ */i.jsx(t.View,{style:{width:_.lvl.w,height:_.lvl.h,borderRadius:_.lvl.w/2,backgroundColor:lo(j,_.levels[d])}}),
|
|
239
|
+
/* @__PURE__ */i.jsx(Text,{style:[z(_.walkTitleText),{flexShrink:1}],children:u})]}):null,p?/* @__PURE__ */i.jsx(Text,{style:z(_.walkText),children:p}):null,h?/* @__PURE__ */i.jsxs(t.View,{testID:C("comfort"),accessible:true,role:"img","aria-label":h.accessibilityLabel??`${h.label}: ${h.value}`,style:[Uo(j,_.comfort),{borderTopWidth:_.comfortRule.width,borderTopColor:lo(j,_.comfortRule.color),flexDirection:"row",flexWrap:"wrap",alignItems:"center"}],children:[
|
|
239
240
|
/* @__PURE__ */i.jsx(Text,{style:[z(_.comfortLabel),{marginRight:"auto"}],children:h.label}),
|
|
240
241
|
/* @__PURE__ */i.jsx(t.View,{style:{flexDirection:"row",columnGap:_.bar.gap[0]},children:Array.from({length:O},(e,r)=>{let n=r<E?_.pipOn:_.pipOff;/* @__PURE__ */
|
|
241
|
-
return i.jsx(t.View,{style:{width:n.w,height:n.h,borderRadius:n.radius[0],backgroundColor:
|
|
242
|
-
/* @__PURE__ */i.jsx(Text,{style:z(_.comfortValue),children:h.value})]}):null]}):null]})}var
|
|
243
|
-
/* @__PURE__ */i.jsx(Glyph,{icon:
|
|
242
|
+
return i.jsx(t.View,{style:{width:n.w,height:n.h,borderRadius:n.radius[0],backgroundColor:mo(j,n.bg)||void 0}},r)})}),
|
|
243
|
+
/* @__PURE__ */i.jsx(Text,{style:z(_.comfortValue),children:h.value})]}):null]}):null]})}var Xs=600*1e3,Ks=/* @__PURE__ */new Map;function Qs(e){let t=Date.now(),i=Ks.get(e);return i!==void 0&&t-i<Xs?false:(Ks.delete(e),Ks.set(e,t),Ks.size>32&&Ks.delete(Ks.keys().next().value),true)}function WeatherAlert(r){let{title:n,text:l,onPress:o,accessibilityLabel:a,loading:s=false,loadingLabel:c,testID:d,style:u}=r,p=Zl(),h=Ho(p,Cl),g=Qo(p),f=e=>Go(p,fo(p,e)),m=[Uo(p,h.card),{minHeight:h.card.minHeight,flexDirection:"row",alignItems:"center"}],b=l?`${n}, ${l}`:n,w=e.useRef(null);if(e.useEffect(()=>{if(s||!b)return;let e=w.current!==b&&Qs(b);w.current=b,e&&t.AccessibilityInfo.announceForAccessibility?.(b)},[s,b]),s/* @__PURE__ */)return i.jsx(t.View,{testID:d,style:[...m,u],children:/* @__PURE__ */i.jsx(t.View,{style:{flex:1},children:/* @__PURE__ */i.jsx(Skeleton,{lines:1,label:c})})});let y=/* @__PURE__ */i.jsxs(i.Fragment,{children:[
|
|
244
|
+
/* @__PURE__ */i.jsx(Glyph,{icon:Oa,size:h.icon.w,color:lo(p,h.icon.color)}),
|
|
244
245
|
/* @__PURE__ */i.jsxs(Text,{style:[f(h.text),{flex:1,minWidth:0}],children:[
|
|
245
246
|
/* @__PURE__ */i.jsx(Text,{style:f(h.title),children:n}),l?/* @__PURE__ */i.jsxs(i.Fragment,{children:[
|
|
246
|
-
/* @__PURE__ */i.jsx(t.View,{style:{width:h.titleGap,height:0}}),l]}):null]}),o?/* @__PURE__ */i.jsx(Glyph,{icon:
|
|
247
|
-
return i.jsx(t.View,{testID:a,style:s,children:/* @__PURE__ */i.jsx(Skeleton,{lines:3,label:o})});let h=[
|
|
248
|
-
/* @__PURE__ */i.jsxs(t.View,{style:{flexDirection:"row",alignItems:"center",columnGap:d.labelGap},children:[
|
|
249
|
-
/* @__PURE__ */i.jsx(Text,{style:[p(d.label),{flexShrink:1}],children:e.label}),e.onPress?/* @__PURE__ */i.jsx(t.View,{style:{marginLeft:"auto"},children:/* @__PURE__ */i.jsx(Glyph,{icon:
|
|
247
|
+
/* @__PURE__ */i.jsx(t.View,{style:{width:h.titleGap,height:0}}),l]}):null]}),o?/* @__PURE__ */i.jsx(Glyph,{icon:Wa,size:h.chev.w,color:lo(p,h.chev.color),testID:d===void 0?void 0:`${d}-chev`}):null]});return o?/* @__PURE__ */i.jsx(t.Pressable,{testID:d,onPress:e=>o({currentTarget:e.currentTarget}),accessibilityRole:"button",accessibilityLabel:a??b,style:({pressed:e})=>[...m,e&&!g?{transform:[{scale:h.pressScale}]}:null,u],children:y}):/* @__PURE__ */i.jsx(t.View,{testID:d,accessible:true,accessibilityRole:"alert",accessibilityLabel:a??b,style:[...m,u],children:y})}var Js=/* @__PURE__ */(()=>{let e=/* @__PURE__ */Symbol.for("@everfur-health/ui-native#weather-glyphs@v1"),t=globalThis;return t[e]??(t[e]={sky:{},detail:{},warned:/* @__PURE__ */new Set})})();function Zs(e,t){let i=Js[e][t],r=`${e}:${t}`;return i===void 0&&(typeof __DEV__<"u"?__DEV__:typeof process<"u"&&process.env.NODE_ENV!=="production")&&!Js.warned.has(r)&&(Js.warned.add(r),console.warn(`@everfur-health/ui-native: no weather ${e==="sky"?"sky":"icon"} "${t}" is registered. The weather blocks draw only the glyphs an app registers: registerWeatherGlyphs({ skies: UI_RN_WEATHER_SKIES, details: UI_RN_WEATHER_DETAILS }) from '@everfur-health/ui-native/weather-glyphs', or pass a drawing.`)),i}function ec(e,r,n,l){if(r===void 0)return null;if(typeof r=="function")return r({size:n,color:l});let o=Zs(e,r);return o?Array.isArray(o)?/* @__PURE__ */i.jsx(t.View,{pointerEvents:"none",accessible:false,accessibilityElementsHidden:true,importantForAccessibility:"no-hide-descendants",style:{width:n,height:n},children:o.map((e,t)=>/* @__PURE__ */i.jsx(Glyph,{icon:e.icon,size:n,color:e.color,style:{position:"absolute",left:0,top:0}},t))}):/* @__PURE__ */i.jsx(Glyph,{icon:o,size:n,color:l}):null}function WeatherDetails(e){let{items:r,label:n,loading:l=false,loadingLabel:o,testID:a,style:s}=e,c=Zl(),d=Ho(c,Hl),u=Qo(c),p=e=>Go(c,fo(c,e));if(l)/* @__PURE__ */
|
|
248
|
+
return i.jsx(t.View,{testID:a,style:s,children:/* @__PURE__ */i.jsx(Skeleton,{lines:3,label:o})});let h=[Uo(c,d.tile),{flex:1,minHeight:d.tile.minHeight,rowGap:d.tile.gap[1]}],g=e=>/* @__PURE__ */i.jsxs(i.Fragment,{children:[
|
|
249
|
+
/* @__PURE__ */i.jsxs(t.View,{style:{flexDirection:"row",alignItems:"center",columnGap:d.labelGap},children:[ec("detail",e.icon,d.icon.w,lo(c,d.icon.color)),
|
|
250
|
+
/* @__PURE__ */i.jsx(Text,{style:[p(d.label),{flexShrink:1}],children:e.label}),e.onPress?/* @__PURE__ */i.jsx(t.View,{style:{marginLeft:"auto"},children:/* @__PURE__ */i.jsx(Glyph,{icon:Wa,size:d.chev.w,color:lo(c,d.chev.color)})}):null]}),
|
|
250
251
|
/* @__PURE__ */i.jsxs(t.View,{style:{flexDirection:"row",flexWrap:"wrap",alignItems:"baseline",columnGap:d.valueGap},children:[
|
|
251
|
-
/* @__PURE__ */i.jsx(Text,{style:p(d.value),children:e.value}),e.unit?/* @__PURE__ */i.jsx(Text,{style:p(d.unit),children:e.unit}):null]}),e.note?/* @__PURE__ */i.jsx(Text,{style:[p(d.note),{marginTop:"auto"}],children:e.note}):null]}),f=e=>{let r=e.onPress;return r?/* @__PURE__ */i.jsx(t.Pressable,{testID:e.testID,accessibilityRole:"button",accessibilityLabel:e.accessibilityLabel,onPress:e=>r({currentTarget:e.currentTarget}),style:({pressed:e})=>[...h,e&&!u?{transform:[{scale:d.pressScale}]}:null],children:g(e)}):/* @__PURE__ */i.jsx(t.View,{testID:e.testID,accessible:e.accessibilityLabel!==void 0,"aria-label":e.accessibilityLabel,style:h,children:g(e)})},m=[];return r.forEach((e,t)=>t%2===0?m.push([e]):m[m.length-1]?.push(e)),/* @__PURE__ */i.jsx(t.View,{testID:a,role:"list","aria-label":n,style:[{rowGap:d.grid.gap[1]},s],children:m.map(e=>/* @__PURE__ */i.jsxs(t.View,{style:{flexDirection:"row",columnGap:d.grid.gap[0]},children:[e.map(e=>/* @__PURE__ */i.jsx(t.View,{role:"listitem",style:{flex:1,minWidth:0},children:f(e)},e.key)),e.length===1?/* @__PURE__ */i.jsx(t.View,{style:{flex:1}}):null]},e[0]?.key))})}function WeatherHours(e){let{variant:r="plain",hours:n,label:l,windows:o,legend:a,loading:s=false,loadingLabel:c,testID:d,style:u}=e,p=
|
|
252
|
+
/* @__PURE__ */i.jsx(Text,{style:p(d.value),children:e.value}),e.unit?/* @__PURE__ */i.jsx(Text,{style:p(d.unit),children:e.unit}):null]}),e.note?/* @__PURE__ */i.jsx(Text,{style:[p(d.note),{marginTop:"auto"}],children:e.note}):null]}),f=e=>{let r=e.onPress;return r?/* @__PURE__ */i.jsx(t.Pressable,{testID:e.testID,accessibilityRole:"button",accessibilityLabel:e.accessibilityLabel,onPress:e=>r({currentTarget:e.currentTarget}),style:({pressed:e})=>[...h,e&&!u?{transform:[{scale:d.pressScale}]}:null],children:g(e)}):/* @__PURE__ */i.jsx(t.View,{testID:e.testID,accessible:e.accessibilityLabel!==void 0,"aria-label":e.accessibilityLabel,style:h,children:g(e)})},m=[];return r.forEach((e,t)=>t%2===0?m.push([e]):m[m.length-1]?.push(e)),/* @__PURE__ */i.jsx(t.View,{testID:a,role:"list","aria-label":n,style:[{rowGap:d.grid.gap[1]},s],children:m.map(e=>/* @__PURE__ */i.jsxs(t.View,{style:{flexDirection:"row",columnGap:d.grid.gap[0]},children:[e.map(e=>/* @__PURE__ */i.jsx(t.View,{role:"listitem",style:{flex:1,minWidth:0},children:f(e)},e.key)),e.length===1?/* @__PURE__ */i.jsx(t.View,{style:{flex:1}}):null]},e[0]?.key))})}function WeatherHours(e){let{variant:r="plain",hours:n,label:l,windows:o,legend:a,loading:s=false,loadingLabel:c,testID:d,style:u}=e,p=Zl(),h=Ho(p,Fl),g=e=>Go(p,fo(p,e)),f=r==="walk";if(s)/* @__PURE__ */
|
|
252
253
|
return i.jsx(t.View,{testID:d,style:u,children:/* @__PURE__ */i.jsx(Skeleton,{lines:3,label:c})});let m=f?h.rows:h.rows.slice(0,h.rows.length-1),b=(e,r,n=false)=>/* @__PURE__ */i.jsx(t.View,{style:{height:m[e],alignSelf:n?"stretch":"center",justifyContent:"center",alignItems:n?void 0:"center"},children:r});/* @__PURE__ */
|
|
253
|
-
return i.jsxs(t.View,{testID:d,style:[{minWidth:0},u],children:[f&&o&&o.length>0?/* @__PURE__ */i.jsx(t.View,{style:{flexDirection:"row",columnGap:h.windows.gap[0],marginBottom:h.windows.marginBottom},children:o.map(e=>/* @__PURE__ */i.jsxs(t.View,{style:[
|
|
254
|
+
return i.jsxs(t.View,{testID:d,style:[{minWidth:0},u],children:[f&&o&&o.length>0?/* @__PURE__ */i.jsx(t.View,{style:{flexDirection:"row",columnGap:h.windows.gap[0],marginBottom:h.windows.marginBottom},children:o.map(e=>/* @__PURE__ */i.jsxs(t.View,{style:[Uo(p,h.window),{flex:1,minWidth:0,rowGap:h.window.gap[1]}],children:[
|
|
254
255
|
/* @__PURE__ */i.jsx(Text,{style:g(h.windowTitle),children:e.title}),e.text?/* @__PURE__ */i.jsx(Text,{style:g(h.windowText),children:e.text}):null]},e.key))}):null,
|
|
255
|
-
/* @__PURE__ */i.jsx(t.ScrollView,{horizontal:true,showsHorizontalScrollIndicator:false,tabIndex:0,role:"list","aria-label":l,contentContainerStyle:{flexDirection:"row"},children:n.map(e=>/* @__PURE__ */i.jsxs(t.View,{role:"listitem",accessible:e.accessibilityLabel!==void 0,"aria-label":e.accessibilityLabel,style:{width:h.column,paddingTop:h.cell.padding[0],rowGap:h.cell.gap[1]},children:[b(0,/* @__PURE__ */i.jsx(Text,{style:[g(e.now?h.timeNow:h.time),{textAlign:"center"}],numberOfLines:1,children:e.time})),b(1,e.icon!==void 0?
|
|
256
|
-
/* @__PURE__ */i.jsx(t.View,{style:{width:h.legendDot.w,height:h.legendDot.h,borderRadius:h.legendDot.w/2,backgroundColor:
|
|
257
|
-
/* @__PURE__ */i.jsx(Text,{style:g(h.legendText),children:e.label})]},e.level))}):null]})}var
|
|
256
|
+
/* @__PURE__ */i.jsx(t.ScrollView,{horizontal:true,showsHorizontalScrollIndicator:false,tabIndex:0,role:"list","aria-label":l,contentContainerStyle:{flexDirection:"row"},children:n.map(e=>/* @__PURE__ */i.jsxs(t.View,{role:"listitem",accessible:e.accessibilityLabel!==void 0,"aria-label":e.accessibilityLabel,style:{width:h.column,paddingTop:h.cell.padding[0],rowGap:h.cell.gap[1]},children:[b(0,/* @__PURE__ */i.jsx(Text,{style:[g(e.now?h.timeNow:h.time),{textAlign:"center"}],numberOfLines:1,children:e.time})),b(1,e.icon!==void 0?ec("detail",e.icon,h.icon.w,lo(p,h.icon.color)):ec("sky",e.glyph,h.glyph.w,p.colors.ink)),b(2,e.chance?/* @__PURE__ */i.jsx(Text,{style:g(h.chance),children:e.chance}):null),b(3,/* @__PURE__ */i.jsx(Text,{style:[g(e.quiet?h.quiet:h.temp),{textAlign:"center"}],numberOfLines:1,children:e.value})),f?b(4,/* @__PURE__ */i.jsx(t.View,{style:{height:h.bar.h,marginHorizontal:h.barInset,borderRadius:h.bar.radius[0],backgroundColor:lo(p,h.levels[e.level??"good"])}}),true):null]},e.key))}),f&&a&&a.length>0?/* @__PURE__ */i.jsx(t.View,{accessibilityElementsHidden:true,importantForAccessibility:"no-hide-descendants","aria-hidden":true,style:{flexDirection:"row",flexWrap:"wrap",columnGap:h.legend.gap[0],rowGap:h.legend.gap[1],marginTop:h.legend.marginTop},children:a.map(e=>/* @__PURE__ */i.jsxs(t.View,{style:{flexDirection:"row",alignItems:"center",columnGap:h.legendItem.gap[0]},children:[
|
|
257
|
+
/* @__PURE__ */i.jsx(t.View,{style:{width:h.legendDot.w,height:h.legendDot.h,borderRadius:h.legendDot.w/2,backgroundColor:lo(p,h.levels[e.level])}}),
|
|
258
|
+
/* @__PURE__ */i.jsx(Text,{style:g(h.legendText),children:e.label})]},e.level))}):null]})}var tc=e=>`${Math.round(Math.min(1,Math.max(0,e))*1e4)/100}%`;function WeatherForecast(e){let{variant:r="plain",days:n,label:l,loading:o=false,loadingLabel:a,testID:s,style:c}=e,d=Zl(),u=Ho(d,_l),p=e=>Go(d,fo(d,e)),h=r==="walk";if(o)/* @__PURE__ */
|
|
258
259
|
return i.jsx(t.View,{testID:s,style:c,children:/* @__PURE__ */i.jsx(Skeleton,{lines:3,label:a})});let[g=0,f=0,m=0,,b=0,w=0]=h?u.walkColumns:u.columns;/* @__PURE__ */
|
|
259
260
|
return i.jsx(t.View,{testID:s,role:"list","aria-label":l,style:c,children:n.map((e,r)=>{let[n=0,l=0]=e.range,o=u.tags[e.tag?.tone??"good"];/* @__PURE__ */
|
|
260
|
-
return i.jsxs(t.View,{role:"listitem",accessible:e.accessibilityLabel!==void 0,"aria-label":e.accessibilityLabel,style:{flexDirection:"row",alignItems:"center",columnGap:u.row.gap[0],minHeight:u.row.minHeight,borderTopWidth:r===0?0:u.rule.width,borderTopColor:
|
|
261
|
+
return i.jsxs(t.View,{role:"listitem",accessible:e.accessibilityLabel!==void 0,"aria-label":e.accessibilityLabel,style:{flexDirection:"row",alignItems:"center",columnGap:u.row.gap[0],minHeight:u.row.minHeight,borderTopWidth:r===0?0:u.rule.width,borderTopColor:lo(d,u.rule.color)},children:[
|
|
261
262
|
/* @__PURE__ */i.jsx(t.View,{style:{width:g},children:/* @__PURE__ */i.jsx(Text,{style:p(u.day),children:e.day})}),
|
|
262
|
-
/* @__PURE__ */i.jsxs(t.View,{style:{width:f,alignItems:"center",rowGap:u.sky.gap[1]},children:[
|
|
263
|
+
/* @__PURE__ */i.jsxs(t.View,{style:{width:f,alignItems:"center",rowGap:u.sky.gap[1]},children:[ec("sky",e.glyph,u.glyph.w,d.colors.ink),e.chance?/* @__PURE__ */i.jsx(Text,{style:p(u.chance),children:e.chance}):null]}),
|
|
263
264
|
/* @__PURE__ */i.jsx(t.View,{style:{width:m},children:/* @__PURE__ */i.jsx(Text,{style:[p(u.low),{textAlign:"right"}],children:e.low})}),
|
|
264
|
-
/* @__PURE__ */i.jsx(t.View,{style:{flex:1,minWidth:0,height:u.bar.h,borderRadius:u.bar.radius[0],backgroundColor:
|
|
265
|
-
/* @__PURE__ */i.jsx(t.View,{style:{width:b},children:/* @__PURE__ */i.jsx(Text,{style:p(u.high),children:e.high})}),h?/* @__PURE__ */i.jsx(t.View,{style:{width:w,alignItems:"flex-end"},children:e.tag?/* @__PURE__ */i.jsxs(t.View,{style:[
|
|
266
|
-
/* @__PURE__ */i.jsx(t.View,{pointerEvents:"none",style:
|
|
267
|
-
/* @__PURE__ */i.jsx(Text,{style:[p(u.tagText),{color:
|
|
265
|
+
/* @__PURE__ */i.jsx(t.View,{style:{flex:1,minWidth:0,height:u.bar.h,borderRadius:u.bar.radius[0],backgroundColor:mo(d,u.bar.bg)||void 0},children:/* @__PURE__ */i.jsx(t.View,{style:{position:"absolute",top:0,bottom:0,left:tc(n),right:tc(1-l),borderRadius:u.fill.radius[0],backgroundColor:mo(d,u.fill.bg)||void 0}})}),
|
|
266
|
+
/* @__PURE__ */i.jsx(t.View,{style:{width:b},children:/* @__PURE__ */i.jsx(Text,{style:p(u.high),children:e.high})}),h?/* @__PURE__ */i.jsx(t.View,{style:{width:w,alignItems:"flex-end"},children:e.tag?/* @__PURE__ */i.jsxs(t.View,{style:[Uo(d,u.tag),{minHeight:u.tag.minHeight,justifyContent:"center",backgroundColor:lo(d,o.bg)}],children:[
|
|
267
|
+
/* @__PURE__ */i.jsx(t.View,{pointerEvents:"none",style:ta(o.ringWidth,lo(d,o.ring),u.tag.radius[0]??0)}),
|
|
268
|
+
/* @__PURE__ */i.jsx(Text,{style:[p(u.tagText),{color:lo(d,o.color)}],numberOfLines:1,children:e.tag.label})]}):null}):null]},e.key)})})}function WeatherLevels(e){let{variant:r="phone",rows:n,label:l,loading:o=false,loadingLabel:a,testID:s,style:c}=e,d=Zl(),u=Ho(d,Ol),{width:p}=t.useWindowDimensions(),h=r==="web"&&!(p>0&&p<=u.webPhoneUpTo)?u.web:u.phone,g=e=>Go(d,fo(d,e));if(o)/* @__PURE__ */
|
|
268
269
|
return i.jsx(t.View,{testID:s,style:c,children:/* @__PURE__ */i.jsx(Skeleton,{lines:3,label:a})});let[f=0,m=0,,b=0]=h.columns;/* @__PURE__ */
|
|
269
270
|
return i.jsx(t.View,{testID:s,role:"list","aria-label":l,style:[{rowGap:h.list.gap[1]},c],children:n.map(e=>{let r=e.tone??"low",n=Math.round(Math.min(1,Math.max(0,e.value))*1e4)/100;/* @__PURE__ */
|
|
270
271
|
return i.jsxs(t.View,{role:"listitem",accessible:e.accessibilityLabel!==void 0,"aria-label":e.accessibilityLabel,style:{flexDirection:"row",alignItems:"center",columnGap:h.row.gap[0],minHeight:h.icon.h},children:[
|
|
271
|
-
/* @__PURE__ */i.jsx(t.View,{style:{width:f,height:h.icon.h,overflow:"visible"},children:
|
|
272
|
+
/* @__PURE__ */i.jsx(t.View,{style:{width:f,height:h.icon.h,overflow:"visible"},children:ec("detail",e.icon,h.icon.w,d.colors.ink)}),
|
|
272
273
|
/* @__PURE__ */i.jsx(t.View,{style:{width:m,flexDirection:"row"},children:/* @__PURE__ */i.jsx(Text,{style:[g(h.name),{flexShrink:1}],children:e.label})}),
|
|
273
|
-
/* @__PURE__ */i.jsx(t.View,{style:{flex:1,minWidth:0,height:h.bar.h,borderRadius:h.bar.radius[0],backgroundColor:
|
|
274
|
-
/* @__PURE__ */i.jsx(t.View,{style:{width:b},children:/* @__PURE__ */i.jsx(Text,{style:[g(h.level[r]),{textAlign:"right"}],children:e.level})})]},e.key)})})}function WeatherReading(e){let{variant:r="phone",value:n,word:l,tone:o="ok",choices:a,loading:s=false,loadingLabel:c,testID:d,style:u}=e,p=
|
|
275
|
-
return i.jsx(t.View,{testID:d,style:u,children:/* @__PURE__ */i.jsx(Skeleton,{lines:2,label:c})});let w=h.fluid,y=Math.min(w.max,Math.max(w.min,f*w.vw/100)),x=y/g.value.size,v=
|
|
274
|
+
/* @__PURE__ */i.jsx(t.View,{style:{flex:1,minWidth:0,height:h.bar.h,borderRadius:h.bar.radius[0],backgroundColor:mo(d,h.bar.bg)||void 0,overflow:"hidden"},children:/* @__PURE__ */i.jsx(t.View,{style:{width:`${n}%`,height:"100%",borderRadius:h.bar.radius[0],backgroundColor:lo(d,h.fills[r])}})}),
|
|
275
|
+
/* @__PURE__ */i.jsx(t.View,{style:{width:b},children:/* @__PURE__ */i.jsx(Text,{style:[g(h.level[r]),{textAlign:"right"}],children:e.level})})]},e.key)})})}function WeatherReading(e){let{variant:r="phone",value:n,word:l,tone:o="ok",choices:a,loading:s=false,loadingLabel:c,testID:d,style:u}=e,p=Zl(),h=Ho(p,El),g=r==="web"?h.web:h.phone,{width:f}=t.useWindowDimensions(),m=e=>Go(p,fo(p,e)),b=e=>d===void 0?void 0:`${d}-${e}`;if(s)/* @__PURE__ */
|
|
276
|
+
return i.jsx(t.View,{testID:d,style:u,children:/* @__PURE__ */i.jsx(Skeleton,{lines:2,label:c})});let w=h.fluid,y=Math.min(w.max,Math.max(w.min,f*w.vw/100)),x=y/g.value.size,v=Zo(g.off.minHeight||g.off.h);/* @__PURE__ */
|
|
276
277
|
return i.jsxs(t.View,{testID:d,style:[{rowGap:g.gap},u],children:[a?/* @__PURE__ */i.jsx(t.View,{role:"radiogroup","aria-label":a.label,style:{flexDirection:"row",flexWrap:"wrap",columnGap:g.picks.gap[0],rowGap:g.picks.gap[1],marginTop:g.picks.marginTop},children:a.options.map(e=>{let r=e.value===a.value,n=r?g.on:g.off;/* @__PURE__ */
|
|
277
|
-
return i.jsxs(t.Pressable,{testID:b(`pick-${e.value}`),role:"radio","aria-checked":r,accessibilityState:{checked:r},accessibilityLabel:e.label,hitSlop:v?{top:v.top,bottom:v.bottom}:void 0,onPress:a.onChange&&!r?()=>a.onChange?.(e.value):void 0,style:[
|
|
278
|
+
return i.jsxs(t.Pressable,{testID:b(`pick-${e.value}`),role:"radio","aria-checked":r,accessibilityState:{checked:r},accessibilityLabel:e.label,hitSlop:v?{top:v.top,bottom:v.bottom}:void 0,onPress:a.onChange&&!r?()=>a.onChange?.(e.value):void 0,style:[Uo(p,n),{minHeight:n.minHeight,flexDirection:"row",alignItems:"center",justifyContent:"center",columnGap:n.gap[0]}],children:[r?/* @__PURE__ */i.jsx(Glyph,{icon:$a,size:g.check.w,color:lo(p,g.check.color)}):null,
|
|
278
279
|
/* @__PURE__ */i.jsx(Text,{style:m(r?g.onText:g.offText),children:e.label})]},e.value)})}):null,
|
|
279
280
|
/* @__PURE__ */i.jsxs(t.View,{"aria-live":a?"polite":void 0,style:{flexDirection:"row",flexWrap:"wrap",alignItems:"baseline",columnGap:g.read.gap[0]},children:[
|
|
280
|
-
/* @__PURE__ */i.jsx(Text,{style:[m(g.value),{fontSize:y,lineHeight:g.value.lineHeight*x,letterSpacing:g.value.tracking*x}],children:n}),l?/* @__PURE__ */i.jsx(Text,{style:[m(g.word),{color:ro(p,h.tones[o])}],children:l}):null]})]})}var ec=false;function tc(){ec||(ec=true,ba(ws))}tc();var ic=e=>e,rc=/* @__PURE__ */Object.freeze({CartBar:ic(CartBar),CartLine:ic(CartLine),CheckinSheet:ic(CheckinSheet),OrderRow:ic(OrderRow),PlanNeedCard:ic(PlanNeedCard),PriceSummary:ic(PriceSummary),ProductTile:ic(ProductTile),ScoreLights:ic(ScoreLights),SummaryList:ic(SummaryList),TipCard:ic(TipCard),WeatherAlert:ic(WeatherAlert),WeatherCard:ic(WeatherCard),WeatherDetails:ic(WeatherDetails),WeatherForecast:ic(WeatherForecast),WeatherHours:ic(WeatherHours),WeatherLevels:ic(WeatherLevels),WeatherReading:ic(WeatherReading),WhySheet:ic(WhySheet)});function nc(e){return{knows(t,i){let r=Object.prototype.hasOwnProperty.call(yn,t)?yn[t]:void 0;if(r===void 0||!r.platforms.includes(e))return false;if(i===void 0)return true;let n=r.settings.variant;return i===n?.default?true:r.variants.includes(i)?n?.platforms===void 0||n.platforms.includes(e):false}}}function lc(e){return{id:e.id,...e.repeat?{repeat:e.repeat}:{},...e.visibleIf?{visibleIf:e.visibleIf}:{}}}function oc(e,t){if(t.knows(e.type,e.variant))return e;if(e.fallback==="hide")return null;let i=cc(e,t);if(i!==null)return i;let r=Object.prototype.hasOwnProperty.call(yn,e.type)?yn[e.type]:void 0,n=r?.fallback??null;if(n===null||n==="hide"||!t.knows(n))return null;let l=yn[n];if(r?.fallbackProps!==void 0&&l!==void 0)return sc(e,r,n,l);let o={};for(let[t,i]of Object.entries(e.bind))l?.props.includes(t)&&(o[t]=i);return{...lc(e),type:n,settings:{},bind:o,actions:{}}}function ac(e,t){return e.type==="boolean"?typeof t=="boolean":e.type==="enum"?typeof t=="string"&&(e.values??[]).includes(t):e.type==="lines"?Array.isArray(t)&&new Set(t).size===t.length&&t.every(t=>typeof t=="string"&&(e.values??[]).includes(t)):false}function sc(e,t,i,r){let n={},l={},o={},a;for(let[i,s]of Object.entries(t.fallbackProps??{})){if("from"in s){Object.prototype.hasOwnProperty.call(e.bind,s.from)&&(n[i]=e.bind[s.from]);continue}let t=s.const;if(i==="variant"){typeof t=="string"&&r.variants.includes(t)&&(a=t);continue}let c=Object.entries(r.settings).find(([e,t])=>e!=="variant"&&t.prop===i);c!==void 0&&ac(c[1],t)?l[c[0]]=t:typeof t=="string"&&(o[i]=t)}let s=/* @__PURE__ */new Set([...Object.keys(n),...Object.keys(o),...Object.keys(l).map(e=>r.settings[e]?.prop)]);return a!==void 0&&s.add("variant"),r.required.some(e=>!s.has(e))?null:{...lc(e),type:i,...a!==void 0?{variant:a}:{},settings:l,bind:n,actions:{},...Object.keys(o).length>0?{fixed:o}:{}}}function cc(e,t){let i=e.fallback;return i===void 0||i==="hide"||!t.knows(i.type,i.variant)?null:{...lc(e),type:i.type,...i.variant?{variant:i.variant}:{},settings:i.settings,bind:i.bind,actions:i.actions}}function dc(e,t){let i=[];for(let r of e.parts){let e=oc(r,t);e!==null&&i.push(e)}return i.length===0||i.length<e.minBlocks?null:i}var uc=/* @__PURE__ */Object.freeze(["everfur.com","www.everfur.com","docs.everfur.com"]),pc=/* @__PURE__ */Object.freeze(["chat","health_plan","plan.detail","records","shop","shop.cart","shop.orders","visit"]),hc=/* @__PURE__ */Object.freeze(["health_plan.checkout","health_plan.manage","health_plan.weight"]),gc=/^[a-z][a-z0-9_]*(\.[a-z][a-z0-9_]*){0,4}$/,fc=/^https:\/\/([A-Za-z0-9.-]+)(?:[/?#][^\s]*)?$/,mc=512;function bc(e){if(e.length>mc)return false;let t=fc.exec(e);return t!==null&&uc.includes((t[1]??"").toLowerCase())}function wc(e){if(typeof e!="string")return null;let t=e.indexOf(":");if(t<=0)return null;let i=e.slice(0,t),r=e.slice(t+1);switch(i){case"navigate":return pc.includes(r)?{kind:i,route:r}:null;case"open_sheet":return hc.includes(r)?{kind:i,id:r}:null;case"track":return gc.test(r)?{kind:i,event:r}:null;case"external":return bc(r)?{kind:i,url:r}:null;default:return null}}var yc=/* @__PURE__ */new Set(["action","actions","busy","disabled","error","fallback","footPress","link","loading","loadingLabel","metaLink","namePress","next","open","quantity","stepper","testID","visible"]),xc=/* @__PURE__ */Object.freeze({CartBar:["actionLabel","actionAccessibilityLabel","actionHiddenWord","countLabel","sub","total"],CartLine:["name","imageAlt","meta","price","wasPrice","removeLabel","note"],CheckinSheet:["kicker","title","flowLabel","doneText","closeLabel"],OrderRow:["number","title","meta","total","accessibilityLabel"],PlanNeedCard:["kicker","source","title"],PriceSummary:["note"],ProductTile:["name","imageAlt","kicker","meta","price","wasPrice","per","badge"],ScoreLights:["heading","pill","since","vizLabel"],SummaryList:["note"],TipCard:["number","title","text","foot","accessibilityLabel"],WeatherAlert:["title","text","accessibilityLabel"],WeatherCard:["heading","temperature","condition","details","verdict","advice","label","note","tagsLabel"],WeatherDetails:["label"],WeatherForecast:["label"],WeatherHours:["label"],WeatherLevels:["label"],WeatherReading:["value","word"],WhySheet:["kind","title","sub","heading","closeLabel"]}),vc=(e,t)=>Object.prototype.hasOwnProperty.call(e,t);function kc(e){return e==null||e===""?false:!Array.isArray(e)||e.length>0}function Tc(e,t){return vc(e,t)?e[t]:void 0}function jc(e,t,i){let r=e.visibleIf;if(r===void 0)return true;let n=l(r.source);if(n===null)return false;if(n.kind==="item")return true;let o=n.kind==="data"?kc(Tc(t,n.name)):vc(i,n.name);return r.op==="present"?o:!o}function Sc(e,t){let i=l(e.visibleIf?.source);if(i?.kind!=="item")return true;let r=kc(t[i.name]);return e.visibleIf?.op==="present"?r:!r}function Ic(e,t,i,r,n){let o=yn[e.type],a=o?.props??[],s=xc[e.type]??[],c={};for(let e of a)vc(t,e)&&!yc.has(e)&&t[e]!==void 0&&(c[e]=t[e]);for(let[n,o]of Object.entries(e.bind)){if(!a.includes(n)||yc.has(n))continue;let e=l(o);if(e===null)continue;let d,u=n;if(e.kind==="copy"){if(!s.includes(n))continue;d=vc(r,e.name)?r[e.name]:void 0,u=""}else if(e.kind==="item")u=e.name,d=vc(t,u)?t[u]:void 0;else{let t=Tc(i,e.name)?.[0];d=t!==void 0&&vc(t,n)?t[n]:void 0}e.kind!=="copy"&&u!==n&&!(s.includes(n)&&typeof d=="string")||(d===void 0?delete c[n]:c[n]=d)}for(let[t,i]of Object.entries(e.fixed??{}))a.includes(t)&&!yc.has(t)&&(c[t]=i);e.variant!==void 0&&a.includes("variant")&&(c.variant=e.variant);for(let[t,i]of Object.entries(e.settings)){let e=o?.settings[t];if(!(e===void 0||e.platforms!==void 0&&!e.platforms.includes(n)))if(e.type==="lines"){if(!Array.isArray(i))continue;for(let t of e.values??[])i.includes(t)||delete c[t]}else e.prop!==void 0&&a.includes(e.prop)&&(e.type==="boolean"&&typeof i=="boolean"||e.type==="enum"&&typeof i=="string"&&(e.values??[]).includes(i))&&(c[e.prop]=i)}return c}function zc(e,t){let i=e.key;return typeof i=="string"&&i!==""?`${i}#${t}`:String(t)}function Dc(e,t){let i=yn[e];return i!==void 0&&i.required.every(e=>t[e]!==void 0&&t[e]!==null)}function Cc(e,t,i,r="native"){if(yn[e.type]===void 0||!jc(e,t,i))return null;let n=l(e.repeat),o;if(e.repeat!==void 0){if(n?.kind!=="data")return null;o=Tc(t,n.name)??[]}else{let i=Object.values(e.bind).map(e=>l(e)).find(e=>e?.kind==="data");if(i){let e=Tc(t,i.name)?.[0];o=e===void 0?[]:[e]}else o=[{}]}let a=[],s=0;if(o.forEach((n,l)=>{if(!Sc(e,n))return;let o=Ic(e,n,t,i,r);Dc(e.type,o)?a.push({key:zc(n,l),props:/* @__PURE__ */Object.freeze(o)}):s+=1}),a.length===0&&s===0)return null;let c={};for(let[t,i]of Object.entries(e.actions)){let e=wc(i);e!==null&&(c[t]=e)}return{part:e,blocks:a,incomplete:s,actions:c}}var Hc=/* @__PURE__ */Object.freeze({regular:"regular",medium:"medium",bold:"bold",mono:"regular",monoMedium:"medium",monoBold:"bold"});function face(e,t){let i=e.type,r=i.families[t];return t==="mono"||i.namedFaces[t]?{fontFamily:r}:{fontFamily:r,fontWeight:i.weight[Hc[t]]}}function headingFace(e,t="bold"){let{headingFamily:i,headingWeight:r}=e.type;if(i===null&&r===null)return face(e,t);if(i!==null)return{fontFamily:i,fontWeight:r??e.type.weight[Hc[t]]};let n=face(e,t);return n.fontWeight===void 0||r===null?n:{fontFamily:n.fontFamily,fontWeight:r}}function Fc(e){return e<=450?"regular":e<=650?"medium":"bold"}var _c={regular:"mono",medium:"monoMedium",bold:"monoBold"};function textRole(e,t){let i=Oc.get(e);i===void 0&&(i=/* @__PURE__ */new Map,Oc.set(e,i));let r=i.get(t);if(r!==void 0)return r;let n=Ec(e,t);return i.set(t,n),n}var Oc=/* @__PURE__ */new WeakMap;function Ec(e,t){let i=e.type.roles[t],r=i.weight==="400"&&i.face!=="mono"?e.type.weight.regular:i.weight,n=Fc(Number(r)),l=i.face==="mono"?face(e,_c[n]):i.face==="heading"?headingFace(e,n):face(e,n),o=i.face==="heading"?e.type.headingWeight??r:r,a=l.fontWeight===void 0?l:{fontFamily:l.fontFamily,fontWeight:o},s=i.size,c={...a,fontSize:s,lineHeight:Math.round(s*i.lineHeight*100)/100};return i.letterSpacing!==0&&(c.letterSpacing=Math.round(s*i.letterSpacing*100)/100),i.uppercase&&(c.textTransform="uppercase"),/* @__PURE__ */Object.freeze(c)}var Pc=/* @__PURE__ */Object.freeze({ink:"#262523",ink2:"#4A4845",ink3:"#6B6863",paper:"#F8F7F4",card:"#FFFFFF",line:"#E7E6E2",tile:"#F2F1EE",shadow:"rgba(38, 37, 35, .07)",riskBg:"#FFE3E1",riskInk:"#B0231B",riskDot:"#E5372B",clearBg:"#E6F4D3",clearInk:"#2F6A12",clearDot:"#5FA82B",watchDot:"#E5A000"}),Lc=/* @__PURE__ */new WeakMap;function Ac(e){let t=Lc.get(e);if(t!==void 0)return t;let i=e.color,r=e.brightness==="dark",n=r?{dark:r,ink:i.text.primary,ink2:i.text.secondary,ink3:i.text.muted,paper:i.background,card:i.surface,line:i.borderRingCream,tile:i.surfaceSubtle,shadow:i.shadow,riskBg:i.badgeBgCritical,riskInk:i.danger,riskDot:i.danger,clearBg:i.badgeBgPositive,clearInk:i.success,clearDot:i.success,watchDot:i.warningStrong}:{dark:r,...Pc},l=(e,t)=>Mr(e,t,Lr(t),Bc),o=(e,t)=>contrastRatio(e,t)>=Bc?e:Pr(t,Bc),a=[n.card,n.paper].map(e=>$r(i.brandSoft,e)??e),s={primary:i.primary,onPrimary:o(i.onPrimary,i.primary),accent:i.accent,onAccent:o(i.onAccent,i.accent),link:l(i.linkInk,[n.card,n.paper,n.tile]),badge:i.brandSoft,onBadge:l(i.brandInk,a)},c=/* @__PURE__ */Object.freeze({...n,...s});return Lc.set(e,c),c}var Bc=4.5;var Rc=/* @__PURE__ */Symbol.for("@everfur/sdk#EverfurThemeContext@v1"),Vc=globalThis,$c=Vc[Rc]??(Vc[Rc]=e.createContext(un));$c.displayName??="EverfurThemeContext";function useEverfurTheme(){return e.useContext($c)}var Wc=e=>{let t=e.type.namedFaces,i=t=>face(e,t).fontFamily;return{family:i("regular"),mono:i("mono"),faces:{regular:i("regular"),medium:i("medium"),bold:i("bold"),mono:i("mono"),monoBold:i("monoBold"),serif:headingFace(e,"bold").fontFamily},namedFaces:t.regular&&t.medium&&t.bold}},Mc=/* @__PURE__ */new WeakMap;function Nc(e,t,i=Bl){if(i!==Bl)return Gc(e,t,i);let r=Mc.get(t);r===void 0&&Mc.set(t,r=/* @__PURE__ */new WeakMap);let n=r.get(e);return n===void 0&&r.set(e,n=Gc(e,t,i)),n}function Gc(e,t,i){let r=e.color,n=un.color,l=e.brightness==="dark",o=l?hn:un,a=e=>r[e]!==n[e],s={};if(a("primary")?(Object.assign(s,{ink:r.primary,onInk:r.onPrimary,focus:r.primary}),a("accent")||Object.assign(s,{go:r.primary,onGo:r.onPrimary})):a("onPrimary")&&(s.onInk=r.onPrimary),a("accent")&&Object.assign(s,{go:r.accent,onGo:r.onAccent}),a("brandSoft")&&(s.tintSage=r.brandSoft),a("danger")&&Object.assign(s,{alert:r.danger,alertDeep:r.danger}),l)Object.assign(s,{bg:r.background,surface:r.surface,text:r.text.primary,muted:r.text.muted,line:r.borderRingCream});else{let e=o.color;r.background!==e.background&&(s.bg=r.background),r.surface!==e.surface&&(s.surface=r.surface),r.text.primary!==e.text.primary&&(s.text=r.text.primary),r.text.muted!==e.text.muted&&(s.muted=r.text.muted)}let c={};Object.keys(s).length>0&&(c.colors={...s});let d=e.radius,u=o.radius;if(d.xs!==u.xs||d.sm!==u.sm||d.lg!==u.lg||d.xl!==u.xl||d.pill!==u.pill){let e={};d.xs!==u.xs&&(e.sm=d.xs),d.sm!==u.sm&&(e.md=d.sm),d.lg!==u.lg&&(e.lg=d.lg),d.xl!==u.xl&&(e.xl=d.xl),d.pill!==u.pill&&(e.pill=d.pill),c.radius=e,(d.lg!==u.lg||d.xl!==u.xl)&&(c.metrics={...d.lg!==u.lg?{card:{radius:d.lg},summary:{radius:d.lg}}:{},...d.xl!==u.xl?{sheet:{radius:d.xl}}:{}})}if(e.space.xs!==o.space.xs){let t=e.space.xs/o.space.xs,r=i.space,n=e=>Math.round(e*t);c.space={1:n(r[1]),2:n(r[2]),3:n(r[3]),4:n(r[4]),5:n(r[5]),6:n(r[6]),7:n(r[7]),8:n(r[8]),9:n(r[9])}}let p=e.type.size,h=o.type.size,g=p.caption!==h.caption||p.bodyTight!==h.bodyTight||p.body!==h.body||p.subtitle!==h.subtitle||p.verdict!==h.verdict,f=e.type.lineHeight,m=o.type.lineHeight,b=f.relaxed!==m.relaxed||f.tight!==m.tight,w=e.type.scaleCaps,y=o.type.scaleCaps,x=w.content!==y.content||w.heading!==y.heading||w.control!==y.control||w.compact!==y.compact||w.badge!==y.badge,v=g||b||x;c.type={...g?{size:{xs:p.caption,sm:p.bodyTight,md:p.body,lg:p.subtitle,xl:p.verdict}}:{},...b?{lineHeight:{body:f.relaxed,display:f.tight}}:{},...x?{scaleCaps:{content:w.content,heading:w.heading,control:w.control,compact:w.compact,badge:w.badge}}:{},...t(e)},e.motion.reducedMotion&&!i.motion.reduced&&(c.motion={reduced:true});let k=v||Object.keys(s).length>0||Object.keys(c).some(e=>e!=="type"&&e!=="colors")||e.type.families.regular!==un.type.families.regular,T=Yc(e,o,s.surface??i.colors.surface),j=Object.entries(T).filter(([e,t])=>t!==i.colors[e]);return j.length>0&&(c.colors={...s,...Object.fromEntries(j)}),k?{name:"partner",...c}:c}var qc={planAccent:Bl.colors.planAccent,planLink:Bl.colors.planLink},Uc={planAccentWash:["accent",.17],planAccentChip:["accent",.47],planLinkWash:["link",.12],planLinkChip:["link",.2]};function Yc(e,t,i){let r=Ac(e),n=Ac(t),l=e.color,o={};(l.primary!==t.color.primary||l.onPrimary!==t.color.onPrimary)&&Object.assign(o,{planInk:l.primary,planOnInk:r.onPrimary}),l.accent!==t.color.accent&&(o.planAccent=l.accent),r.link!==n.link&&(o.planLink=r.link);let a={accent:o.planAccent??qc.planAccent,link:o.planLink??qc.planLink},s={planLinkWash:r.dark?void 0:e.slots.planWash?.backgroundColor,planLinkChip:r.dark?void 0:e.slots.planChip?.backgroundColor},c=i.toLowerCase()!==r.card.toLowerCase();for(let[e,[t,i]]of Object.entries(Uc)){let n=s[e];n!==void 0?o[e]=n:c&&(o[e]=io(a[t],i,r.card,r.card))}return o}function Xc(t){let i=useEverfurTheme();return e.useMemo(()=>Nc(i,t),[i,t])}function BlockScope({children:t}){let i=Xc(Wc);return e.createElement(ThemeProvider,{theme:i},t)}function Kc(e){let t=nc("native");return{knows:(i,r)=>Object.prototype.hasOwnProperty.call(e,i)&&t.knows(i,r)}}function Qc(e,t,i){let r=Kc(i);if(e!==null){let t=dc(e,r);if(t!==null)return t}let n=vr(t);return n===null?[]:dc(n,r)??[]}var Jc=new Set(Object.keys(Bl.colors)),Zc=new Set(Object.keys(Bl.radius)),ed=new Set(Object.keys(Bl.space));function td(e){let t={},i={},r={};for(let[n,l]of Object.entries(e)){let[e,o,a]=n.split(".");o===void 0||a!==void 0||((e==="color"||e==="colors")&&typeof l=="string"&&Jc.has(o)?t[o]=l:e==="radius"&&typeof l=="number"&&l>=0&&Zc.has(o)?i[o]=l:e==="space"&&typeof l=="number"&&l>=0&&ed.has(o)&&(r[o]=l))}let n={};return Object.keys(t).length>0&&(n.colors=t),Object.keys(i).length>0&&(n.radius=i),Object.keys(r).length>0&&(n.space=r),Object.keys(n).length===0?null:n}function id(e,i,r,n){switch(e.kind){case"navigate":dt(r.onNavigate,e.route,i);return;case"open_sheet":dt(r.onOpenSheet,e.id,i);return;case"track":n("slots.track",{slot:i.slot,part:i.part,event:e.event});return;case"external":r.onOpenUrl?dt(r.onOpenUrl,e.url):t.Linking.openURL(e.url).catch(()=>{})}}function rd(e,t){return e.kind==="navigate"?t.onNavigate!==void 0:e.kind==="open_sheet"?t.onOpenSheet!==void 0:true}function DrawnPart({blocks:r,resolved:n,slot:l,handlers:o,track:a}){let s=Object.prototype.hasOwnProperty.call(r,n.part.type)?r[n.part.type]:void 0;if(s===void 0)return null;let c=n.actions.onPress;/* @__PURE__ */
|
|
281
|
-
return i.jsx(i.Fragment,{children:n.blocks.map(r=>{let d=`everfur-slot-${n.part.id}`,u=e.createElement(s,{...r.props,testID:d});if(c===void 0||!
|
|
282
|
-
return i.jsx(t.Pressable,{accessibilityRole:c.kind==="external"?"link":"button",onPress:()=>
|
|
283
|
-
return i.jsx(
|
|
284
|
-
return i.jsx(
|
|
285
|
-
return i.jsx(i.Fragment,{children:v})}var
|
|
286
|
-
return i.jsxs(t.View,{style:[d.bar,s],accessibilityLabel:
|
|
281
|
+
/* @__PURE__ */i.jsx(Text,{style:[m(g.value),{fontSize:y,lineHeight:g.value.lineHeight*x,letterSpacing:g.value.tracking*x}],children:n}),l?/* @__PURE__ */i.jsx(Text,{style:[m(g.word),{color:lo(p,h.tones[o])}],children:l}):null]})]})}var ic=false;function rc(){ic||(ic=true,ya(xs))}rc();var nc=e=>e,lc=/* @__PURE__ */Object.freeze({CartBar:nc(CartBar),CartLine:nc(CartLine),CheckinSheet:nc(CheckinSheet),OrderRow:nc(OrderRow),PlanNeedCard:nc(PlanNeedCard),PriceSummary:nc(PriceSummary),ProductTile:nc(ProductTile),ScoreLights:nc(ScoreLights),SummaryList:nc(SummaryList),TipCard:nc(TipCard),WeatherAlert:nc(WeatherAlert),WeatherCard:nc(WeatherCard),WeatherDetails:nc(WeatherDetails),WeatherForecast:nc(WeatherForecast),WeatherHours:nc(WeatherHours),WeatherLevels:nc(WeatherLevels),WeatherReading:nc(WeatherReading),WhySheet:nc(WhySheet)});function oc(e){return{knows(t,i){let r=Object.prototype.hasOwnProperty.call(vn,t)?vn[t]:void 0;if(r===void 0||!r.platforms.includes(e))return false;if(i===void 0)return true;let n=r.settings.variant;return i===n?.default?true:r.variants.includes(i)?n?.platforms===void 0||n.platforms.includes(e):false}}}function ac(e){return{id:e.id,...e.repeat?{repeat:e.repeat}:{},...e.visibleIf?{visibleIf:e.visibleIf}:{}}}function sc(e,t){if(t.knows(e.type,e.variant))return e;if(e.fallback==="hide")return null;let i=uc(e,t);if(i!==null)return i;let r=Object.prototype.hasOwnProperty.call(vn,e.type)?vn[e.type]:void 0,n=r?.fallback??null;if(n===null||n==="hide"||!t.knows(n))return null;let l=vn[n];if(r?.fallbackProps!==void 0&&l!==void 0)return dc(e,r,n,l);let o={};for(let[t,i]of Object.entries(e.bind))l?.props.includes(t)&&(o[t]=i);return{...ac(e),type:n,settings:{},bind:o,actions:{}}}function cc(e,t){return e.type==="boolean"?typeof t=="boolean":e.type==="enum"?typeof t=="string"&&(e.values??[]).includes(t):e.type==="lines"?Array.isArray(t)&&new Set(t).size===t.length&&t.every(t=>typeof t=="string"&&(e.values??[]).includes(t)):false}function dc(e,t,i,r){let n={},l={},o={},a;for(let[i,s]of Object.entries(t.fallbackProps??{})){if("from"in s){Object.prototype.hasOwnProperty.call(e.bind,s.from)&&(n[i]=e.bind[s.from]);continue}let t=s.const;if(i==="variant"){typeof t=="string"&&r.variants.includes(t)&&(a=t);continue}let c=Object.entries(r.settings).find(([e,t])=>e!=="variant"&&t.prop===i);c!==void 0&&cc(c[1],t)?l[c[0]]=t:typeof t=="string"&&(o[i]=t)}let s=/* @__PURE__ */new Set([...Object.keys(n),...Object.keys(o),...Object.keys(l).map(e=>r.settings[e]?.prop)]);return a!==void 0&&s.add("variant"),r.required.some(e=>!s.has(e))?null:{...ac(e),type:i,...a!==void 0?{variant:a}:{},settings:l,bind:n,actions:{},...Object.keys(o).length>0?{fixed:o}:{}}}function uc(e,t){let i=e.fallback;return i===void 0||i==="hide"||!t.knows(i.type,i.variant)?null:{...ac(e),type:i.type,...i.variant?{variant:i.variant}:{},settings:i.settings,bind:i.bind,actions:i.actions}}function pc(e,t){let i=[];for(let r of e.parts){let e=sc(r,t);e!==null&&i.push(e)}return i.length===0||i.length<e.minBlocks?null:i}var hc=/* @__PURE__ */Object.freeze(["everfur.com","www.everfur.com","docs.everfur.com"]),gc=/* @__PURE__ */Object.freeze(["chat","health_plan","plan.detail","records","shop","shop.cart","shop.orders","visit"]),fc=/* @__PURE__ */Object.freeze(["health_plan.checkout","health_plan.manage","health_plan.weight"]),mc=/^[a-z][a-z0-9_]*(\.[a-z][a-z0-9_]*){0,4}$/,bc=/^https:\/\/([A-Za-z0-9.-]+)(?:[/?#][^\s]*)?$/,wc=512;function yc(e){if(e.length>wc)return false;let t=bc.exec(e);return t!==null&&hc.includes((t[1]??"").toLowerCase())}function xc(e){if(typeof e!="string")return null;let t=e.indexOf(":");if(t<=0)return null;let i=e.slice(0,t),r=e.slice(t+1);switch(i){case"navigate":return gc.includes(r)?{kind:i,route:r}:null;case"open_sheet":return fc.includes(r)?{kind:i,id:r}:null;case"track":return mc.test(r)?{kind:i,event:r}:null;case"external":return yc(r)?{kind:i,url:r}:null;default:return null}}var vc=/* @__PURE__ */new Set(["action","actions","busy","disabled","error","fallback","footPress","link","loading","loadingLabel","metaLink","namePress","next","open","quantity","stepper","testID","visible"]),kc=/* @__PURE__ */Object.freeze({CartBar:["actionLabel","actionAccessibilityLabel","actionHiddenWord","countLabel","sub","total"],CartLine:["name","imageAlt","meta","price","wasPrice","removeLabel","note"],CheckinSheet:["kicker","title","flowLabel","doneText","closeLabel"],OrderRow:["number","title","meta","total","accessibilityLabel"],PlanNeedCard:["kicker","source","title"],PriceSummary:["note"],ProductTile:["name","imageAlt","kicker","meta","price","wasPrice","per","badge"],ScoreLights:["heading","pill","since","vizLabel"],SummaryList:["note"],TipCard:["number","title","text","foot","accessibilityLabel"],WeatherAlert:["title","text","accessibilityLabel"],WeatherCard:["heading","temperature","condition","details","verdict","advice","label","note","tagsLabel"],WeatherDetails:["label"],WeatherForecast:["label"],WeatherHours:["label"],WeatherLevels:["label"],WeatherReading:["value","word"],WhySheet:["kind","title","sub","heading","closeLabel"]}),Tc=(e,t)=>Object.prototype.hasOwnProperty.call(e,t);function jc(e){return e==null||e===""?false:!Array.isArray(e)||e.length>0}function Sc(e,t){return Tc(e,t)?e[t]:void 0}function Ic(e,t,i){let r=e.visibleIf;if(r===void 0)return true;let n=l(r.source);if(n===null)return false;if(n.kind==="item")return true;let o=n.kind==="data"?jc(Sc(t,n.name)):Tc(i,n.name);return r.op==="present"?o:!o}function zc(e,t){let i=l(e.visibleIf?.source);if(i?.kind!=="item")return true;let r=jc(t[i.name]);return e.visibleIf?.op==="present"?r:!r}function Dc(e,t,i,r,n){let o=vn[e.type],a=o?.props??[],s=kc[e.type]??[],c={};for(let e of a)Tc(t,e)&&!vc.has(e)&&t[e]!==void 0&&(c[e]=t[e]);for(let[n,o]of Object.entries(e.bind)){if(!a.includes(n)||vc.has(n))continue;let e=l(o);if(e===null)continue;let d,u=n;if(e.kind==="copy"){if(!s.includes(n))continue;d=Tc(r,e.name)?r[e.name]:void 0,u=""}else if(e.kind==="item")u=e.name,d=Tc(t,u)?t[u]:void 0;else{let t=Sc(i,e.name)?.[0];d=t!==void 0&&Tc(t,n)?t[n]:void 0}e.kind!=="copy"&&u!==n&&!(s.includes(n)&&typeof d=="string")||(d===void 0?delete c[n]:c[n]=d)}for(let[t,i]of Object.entries(e.fixed??{}))a.includes(t)&&!vc.has(t)&&(c[t]=i);e.variant!==void 0&&a.includes("variant")&&(c.variant=e.variant);for(let[t,i]of Object.entries(e.settings)){let e=o?.settings[t];if(!(e===void 0||e.platforms!==void 0&&!e.platforms.includes(n)))if(e.type==="lines"){if(!Array.isArray(i))continue;for(let t of e.values??[])i.includes(t)||delete c[t]}else e.prop!==void 0&&a.includes(e.prop)&&(e.type==="boolean"&&typeof i=="boolean"||e.type==="enum"&&typeof i=="string"&&(e.values??[]).includes(i))&&(c[e.prop]=i)}return c}function Cc(e,t){let i=e.key;return typeof i=="string"&&i!==""?`${i}#${t}`:String(t)}function Hc(e,t){let i=vn[e];return i!==void 0&&i.required.every(e=>t[e]!==void 0&&t[e]!==null)}function Fc(e,t,i,r="native"){if(vn[e.type]===void 0||!Ic(e,t,i))return null;let n=l(e.repeat),o;if(e.repeat!==void 0){if(n?.kind!=="data")return null;o=Sc(t,n.name)??[]}else{let i=Object.values(e.bind).map(e=>l(e)).find(e=>e?.kind==="data");if(i){let e=Sc(t,i.name)?.[0];o=e===void 0?[]:[e]}else o=[{}]}let a=[],s=0;if(o.forEach((n,l)=>{if(!zc(e,n))return;let o=Dc(e,n,t,i,r);Hc(e.type,o)?a.push({key:Cc(n,l),props:/* @__PURE__ */Object.freeze(o)}):s+=1}),a.length===0&&s===0)return null;let c={};for(let[t,i]of Object.entries(e.actions)){let e=xc(i);e!==null&&(c[t]=e)}return{part:e,blocks:a,incomplete:s,actions:c}}var _c=/* @__PURE__ */Object.freeze({regular:"regular",medium:"medium",bold:"bold",mono:"regular",monoMedium:"medium",monoBold:"bold"});function face(e,t){let i=e.type,r=i.families[t];return t==="mono"||i.namedFaces[t]?{fontFamily:r}:{fontFamily:r,fontWeight:i.weight[_c[t]]}}function headingFace(e,t="bold"){let{headingFamily:i,headingWeight:r}=e.type;if(i===null&&r===null)return face(e,t);if(i!==null)return{fontFamily:i,fontWeight:r??e.type.weight[_c[t]]};let n=face(e,t);return n.fontWeight===void 0||r===null?n:{fontFamily:n.fontFamily,fontWeight:r}}function Oc(e){return e<=450?"regular":e<=650?"medium":"bold"}var Ec={regular:"mono",medium:"monoMedium",bold:"monoBold"};function textRole(e,t){let i=Pc.get(e);i===void 0&&(i=/* @__PURE__ */new Map,Pc.set(e,i));let r=i.get(t);if(r!==void 0)return r;let n=Lc(e,t);return i.set(t,n),n}var Pc=/* @__PURE__ */new WeakMap;function Lc(e,t){let i=e.type.roles[t],r=i.weight==="400"&&i.face!=="mono"?e.type.weight.regular:i.weight,n=Oc(Number(r)),l=i.face==="mono"?face(e,Ec[n]):i.face==="heading"?headingFace(e,n):face(e,n),o=i.face==="heading"?e.type.headingWeight??r:r,a=l.fontWeight===void 0?l:{fontFamily:l.fontFamily,fontWeight:o},s=i.size,c={...a,fontSize:s,lineHeight:Math.round(s*i.lineHeight*100)/100};return i.letterSpacing!==0&&(c.letterSpacing=Math.round(s*i.letterSpacing*100)/100),i.uppercase&&(c.textTransform="uppercase"),/* @__PURE__ */Object.freeze(c)}var Ac=/* @__PURE__ */Object.freeze({ink:"#262523",ink2:"#4A4845",ink3:"#6B6863",paper:"#F8F7F4",card:"#FFFFFF",line:"#E7E6E2",tile:"#F2F1EE",shadow:"rgba(38, 37, 35, .07)",riskBg:"#FFE3E1",riskInk:"#B0231B",riskDot:"#E5372B",clearBg:"#E6F4D3",clearInk:"#2F6A12",clearDot:"#5FA82B",watchDot:"#E5A000"}),Bc=/* @__PURE__ */new WeakMap;function Rc(e){let t=Bc.get(e);if(t!==void 0)return t;let i=e.color,r=e.brightness==="dark",n=r?{dark:r,ink:i.text.primary,ink2:i.text.secondary,ink3:i.text.muted,paper:i.background,card:i.surface,line:i.borderRingCream,tile:i.surfaceSubtle,shadow:i.shadow,riskBg:i.badgeBgCritical,riskInk:i.danger,riskDot:i.danger,clearBg:i.badgeBgPositive,clearInk:i.success,clearDot:i.success,watchDot:i.warningStrong}:{dark:r,...Ac},l=(e,t)=>Gr(e,t,Br(t),Vc),o=(e,t)=>contrastRatio(e,t)>=Vc?e:Ar(t,Vc),a=[n.card,n.paper].map(e=>Mr(i.brandSoft,e)??e),s={primary:i.primary,onPrimary:o(i.onPrimary,i.primary),accent:i.accent,onAccent:o(i.onAccent,i.accent),link:l(i.linkInk,[n.card,n.paper,n.tile]),badge:i.brandSoft,onBadge:l(i.brandInk,a)},c=/* @__PURE__ */Object.freeze({...n,...s});return Bc.set(e,c),c}var Vc=4.5;var $c=/* @__PURE__ */Symbol.for("@everfur/sdk#EverfurThemeContext@v1"),Wc=globalThis,Mc=Wc[$c]??(Wc[$c]=e.createContext(hn));Mc.displayName??="EverfurThemeContext";function useEverfurTheme(){return e.useContext(Mc)}var Nc=e=>{let t=e.type.namedFaces,i=t=>face(e,t).fontFamily;return{family:i("regular"),mono:i("mono"),faces:{regular:i("regular"),medium:i("medium"),bold:i("bold"),mono:i("mono"),monoBold:i("monoBold"),serif:headingFace(e,"bold").fontFamily},namedFaces:t.regular&&t.medium&&t.bold}},Gc=/* @__PURE__ */new WeakMap;function qc(e,t,i=Vl){if(i!==Vl)return Uc(e,t,i);let r=Gc.get(t);r===void 0&&Gc.set(t,r=/* @__PURE__ */new WeakMap);let n=r.get(e);return n===void 0&&r.set(e,n=Uc(e,t,i)),n}function Uc(e,t,i){let r=e.color,n=hn.color,l=e.brightness==="dark",o=l?fn:hn,a=e=>r[e]!==n[e],s={};if(a("primary")?(Object.assign(s,{ink:r.primary,onInk:r.onPrimary,focus:r.primary}),a("accent")||Object.assign(s,{go:r.primary,onGo:r.onPrimary})):a("onPrimary")&&(s.onInk=r.onPrimary),a("accent")&&Object.assign(s,{go:r.accent,onGo:r.onAccent}),a("brandSoft")&&(s.tintSage=r.brandSoft),a("danger")&&Object.assign(s,{alert:r.danger,alertDeep:r.danger}),l)Object.assign(s,{bg:r.background,surface:r.surface,text:r.text.primary,muted:r.text.muted,line:r.borderRingCream});else{let e=o.color;r.background!==e.background&&(s.bg=r.background),r.surface!==e.surface&&(s.surface=r.surface),r.text.primary!==e.text.primary&&(s.text=r.text.primary),r.text.muted!==e.text.muted&&(s.muted=r.text.muted)}let c={};Object.keys(s).length>0&&(c.colors={...s});let d=e.radius,u=o.radius;if(d.xs!==u.xs||d.sm!==u.sm||d.lg!==u.lg||d.xl!==u.xl||d.pill!==u.pill){let e={};d.xs!==u.xs&&(e.sm=d.xs),d.sm!==u.sm&&(e.md=d.sm),d.lg!==u.lg&&(e.lg=d.lg),d.xl!==u.xl&&(e.xl=d.xl),d.pill!==u.pill&&(e.pill=d.pill),c.radius=e,(d.lg!==u.lg||d.xl!==u.xl)&&(c.metrics={...d.lg!==u.lg?{card:{radius:d.lg},summary:{radius:d.lg}}:{},...d.xl!==u.xl?{sheet:{radius:d.xl}}:{}})}if(e.space.xs!==o.space.xs){let t=e.space.xs/o.space.xs,r=i.space,n=e=>Math.round(e*t);c.space={1:n(r[1]),2:n(r[2]),3:n(r[3]),4:n(r[4]),5:n(r[5]),6:n(r[6]),7:n(r[7]),8:n(r[8]),9:n(r[9])}}let p=e.type.size,h=o.type.size,g=p.caption!==h.caption||p.bodyTight!==h.bodyTight||p.body!==h.body||p.subtitle!==h.subtitle||p.verdict!==h.verdict,f=e.type.lineHeight,m=o.type.lineHeight,b=f.relaxed!==m.relaxed||f.tight!==m.tight,w=e.type.scaleCaps,y=o.type.scaleCaps,x=w.content!==y.content||w.heading!==y.heading||w.control!==y.control||w.compact!==y.compact||w.badge!==y.badge,v=g||b||x;c.type={...g?{size:{xs:p.caption,sm:p.bodyTight,md:p.body,lg:p.subtitle,xl:p.verdict}}:{},...b?{lineHeight:{body:f.relaxed,display:f.tight}}:{},...x?{scaleCaps:{content:w.content,heading:w.heading,control:w.control,compact:w.compact,badge:w.badge}}:{},...t(e)},e.motion.reducedMotion&&!i.motion.reduced&&(c.motion={reduced:true});let k=v||Object.keys(s).length>0||Object.keys(c).some(e=>e!=="type"&&e!=="colors")||e.type.families.regular!==hn.type.families.regular,T=Kc(e,o,s.surface??i.colors.surface),j=Object.entries(T).filter(([e,t])=>t!==i.colors[e]);return j.length>0&&(c.colors={...s,...Object.fromEntries(j)}),k?{name:"partner",...c}:c}var Yc={planAccent:Vl.colors.planAccent,planLink:Vl.colors.planLink},Xc={planAccentWash:["accent",.17],planAccentChip:["accent",.47],planLinkWash:["link",.12],planLinkChip:["link",.2]};function Kc(e,t,i){let r=Rc(e),n=Rc(t),l=e.color,o={};(l.primary!==t.color.primary||l.onPrimary!==t.color.onPrimary)&&Object.assign(o,{planInk:l.primary,planOnInk:r.onPrimary}),l.accent!==t.color.accent&&(o.planAccent=l.accent),r.link!==n.link&&(o.planLink=r.link);let a={accent:o.planAccent??Yc.planAccent,link:o.planLink??Yc.planLink},s={planLinkWash:r.dark?void 0:e.slots.planWash?.backgroundColor,planLinkChip:r.dark?void 0:e.slots.planChip?.backgroundColor},c=i.toLowerCase()!==r.card.toLowerCase();for(let[e,[t,i]]of Object.entries(Xc)){let n=s[e];n!==void 0?o[e]=n:c&&(o[e]=no(a[t],i,r.card,r.card))}return o}function Qc(t){let i=useEverfurTheme();return e.useMemo(()=>qc(i,t),[i,t])}function BlockScope({children:t}){let i=Qc(Nc);return e.createElement(ThemeProvider,{theme:i},t)}function Jc(e){let t=oc("native");return{knows:(i,r)=>Object.prototype.hasOwnProperty.call(e,i)&&t.knows(i,r)}}function Zc(e,t,i){let r=Jc(i);if(e!==null){let t=pc(e,r);if(t!==null)return t}let n=Tr(t);return n===null?[]:pc(n,r)??[]}var ed=new Set(Object.keys(Vl.colors)),td=new Set(Object.keys(Vl.radius)),id=new Set(Object.keys(Vl.space));function rd(e){let t={},i={},r={};for(let[n,l]of Object.entries(e)){let[e,o,a]=n.split(".");o===void 0||a!==void 0||((e==="color"||e==="colors")&&typeof l=="string"&&ed.has(o)?t[o]=l:e==="radius"&&typeof l=="number"&&l>=0&&td.has(o)?i[o]=l:e==="space"&&typeof l=="number"&&l>=0&&id.has(o)&&(r[o]=l))}let n={};return Object.keys(t).length>0&&(n.colors=t),Object.keys(i).length>0&&(n.radius=i),Object.keys(r).length>0&&(n.space=r),Object.keys(n).length===0?null:n}function nd(e,i,r,n){switch(e.kind){case"navigate":pt(r.onNavigate,e.route,i);return;case"open_sheet":pt(r.onOpenSheet,e.id,i);return;case"track":n("slots.track",{slot:i.slot,part:i.part,event:e.event});return;case"external":r.onOpenUrl?pt(r.onOpenUrl,e.url):t.Linking.openURL(e.url).catch(()=>{})}}function ld(e,t){return e.kind==="navigate"?t.onNavigate!==void 0:e.kind==="open_sheet"?t.onOpenSheet!==void 0:true}function DrawnPart({blocks:r,resolved:n,slot:l,handlers:o,track:a}){let s=Object.prototype.hasOwnProperty.call(r,n.part.type)?r[n.part.type]:void 0;if(s===void 0)return null;let c=n.actions.onPress;/* @__PURE__ */
|
|
282
|
+
return i.jsx(i.Fragment,{children:n.blocks.map(r=>{let d=`everfur-slot-${n.part.id}`,u=e.createElement(s,{...r.props,testID:d});if(c===void 0||!ld(c,o))/* @__PURE__ */return i.jsx(e.Fragment,{children:u},r.key);let p={slot:l,part:n.part.id,key:r.key};/* @__PURE__ */
|
|
283
|
+
return i.jsx(t.Pressable,{accessibilityRole:c.kind==="external"?"link":"button",onPress:()=>nd(c,p,o,a),testID:`${d}-press`,children:u},r.key)})})}var od=/* @__PURE__ */new WeakMap,ad=e=>bn(JSON.stringify(e)),sd=class extends e.Component{constructor(){super(...arguments);this.state={failed:false}}static getDerivedStateFromError(){return{failed:true}}componentDidCatch(){try{this.props.onError()}catch{}}render(){return this.state.failed?null:this.props.children}};function SlotParts(t){let{slot:r,data:n,blocks:l,override:o}=t,a=t.handlers??cd,{runtime:s}=u(),[,c]=e.useState(0),d=e.useMemo(()=>t.doc===null?null:ad(t.doc),[t.doc]),p=d!==null&&od.get(s)?.has(d)===true?null:t.doc,h=e.useMemo(()=>Zc(p,r,l),[p,r,l]),g=e.useMemo(()=>Jc(l),[l]),f=e.useRef({doc:p,parts:/* @__PURE__ */new Set});f.current.doc!==p&&(f.current={doc:p,parts:/* @__PURE__ */new Set});let m=p?.copy??dd,b=e.useMemo(()=>rd(p?.tokens??ud),[p]),w=(e,t)=>{try{s.registry.services.telemetry.track(e,t)}catch{}},y=e=>()=>{if(w("slots.part_failed",{slot:r,part:e.id,bundled:p===null}),p===null||d===null)return;let t=od.get(s);t===void 0&&od.set(s,t=/* @__PURE__ */new Set),t.add(d),c(e=>e+1)},x=p===null?"b":"d",v=h.map(e=>{let t=`${x}:${e.id}`,s=o?.(e)??null;if(s!==null)/* @__PURE__ */
|
|
284
|
+
return i.jsx(sd,{onError:y(e),children:s},t);let c=Fc(e,n,m,"native");if(c!==null&&c.blocks.length===0){f.current.parts.has(e.id)||(f.current.parts.add(e.id),w("slots.part_incomplete",{slot:r,part:e.id,type:e.type}));let t=uc(e,g),i=t===null?null:Fc(t,n,m,"native");c=i!==null&&i.blocks.length>0?i:null}if(c===null)return null;let d=/* @__PURE__ */i.jsx(DrawnPart,{blocks:l,resolved:c,slot:r,handlers:a,track:w});/* @__PURE__ */
|
|
285
|
+
return i.jsx(sd,{onError:y(e),children:/* @__PURE__ */i.jsx(BlockScope,{children:b===null?d:/* @__PURE__ */i.jsx(ThemeProvider,{theme:b,children:d})})},t)});/* @__PURE__ */
|
|
286
|
+
return i.jsx(i.Fragment,{children:v})}var cd=/* @__PURE__ */Object.freeze({}),dd=/* @__PURE__ */Object.freeze({}),ud=/* @__PURE__ */Object.freeze({});function Slot(t){let{name:r,petRef:petRef,locale:n,serverSlots:l,...a}=t,s=_(l),{doc:c,source:d}=Wn(r,s),u=e.useMemo(()=>Zc(c,r,lc),[c,r]),p=e.useMemo(()=>o(u),[u]),h=qi({...petRef===void 0?{}:{petRef:petRef},sources:p,locale:n});return d==="pending"?null:/* @__PURE__ */i.jsx(SlotParts,{slot:r,doc:c,data:h,blocks:lc,handlers:a})}var pd=/* @__PURE__ */Object.freeze({imageVariant:"wide",reasonVariant:"pills",cartBarVisibility:"whenItems",cartBarPlacement:"sticky",addButtonSize:"full",addedVariant:"link",categoryVariant:"text",showCategory:false,cardShadow:false,cardBorder:true});function showHealthPlanCartBar(e,t){return(e??pd.cartBarVisibility)==="always"||t>0}function hd(e,t){if(e===void 0)return{};let i={};return e.backgroundColor!==void 0&&(i.backgroundColor=e.backgroundColor),e.borderColor!==void 0&&(i.borderColor=e.borderColor,i.borderWidth=1),e.borderRadius!==void 0&&(i.borderRadius=e.borderRadius),i}var gd={ink:"#10462E",go:"#07C168",alert:"#C03410",tintSage:"#E6ECE8"},fd=/* @__PURE__ */Symbol.for("@everfur-health/ui-core#ThemeContext@v1");function md(){let t=globalThis,i=t[fd];return i===void 0&&(i=e.createContext(null),i.displayName="EverfurThemeContext",t[fd]=i),i}var bd=(e,t)=>e.toUpperCase()===t.toUpperCase();function wd(e){let t=Sr(e);return t!==null&&Rr(t)<.18}var yd=/* @__PURE__ */new WeakMap;function xd(e,t){if(t===null)return e;let i=yd.get(e);i===void 0&&(i=/* @__PURE__ */new WeakMap,yd.set(e,i));let r=i.get(t);return r===void 0&&(r=vd(e,t),i.set(t,r)),r}function vd(e,t){let i=t.colors,r=!bd(i.ink,gd.ink),n=!bd(i.go,gd.go),l=e===hn&&wd(i.bg),o=l?fn:e,a=o.color,s=e=>l||a[e]===hn.color[e],c={};r&&s("primary")&&(Object.assign(c,{primary:i.ink,onPrimary:i.onInk,brand:i.ink,brandInk:i.ink}),s("linkInk")&&(c.linkInk=i.ink),!n&&s("accent")&&Object.assign(c,{accent:i.ink,onAccent:i.onInk})),n&&s("accent")&&Object.assign(c,{accent:i.go,onAccent:i.onGo}),!bd(i.alert,gd.alert)&&s("danger")&&(c.danger=i.alert),!bd(i.tintSage,gd.tintSage)&&s("brandSoft")&&(c.brandSoft=i.tintSage,s("brandSofter")&&(c.brandSofter=i.tintSage)),l&&Object.assign(c,{background:i.bg,surface:i.surface,text:{...a.text,primary:i.text,muted:i.muted},borderRingCream:i.line});let d=t.motion?.reduced===true&&!o.motion.reducedMotion;return!l&&!d&&Object.keys(c).length===0?e:{...o,color:{...a,...c},...d?{motion:{...o.motion,reducedMotion:true}}:{}}}function kd(){let t=useEverfurTheme(),i=e.useContext(md());return e.useMemo(()=>xd(t,i),[t,i])}var Td=/* @__PURE__ */Symbol.for("@everfur/sdk#HealthPlanCartDock@v1"),jd=globalThis,Sd=jd[Td]??(jd[Td]=e.createContext(null));function useHealthPlanCartDock(){return e.useContext(Sd)?.dock??null}var Id=/* @__PURE__ */Object.freeze({track(){},trackExpectedFailure(){}});var zd=/* @__PURE__ */Object.freeze({opened:"health_plan.opened",productClicked:"health_plan.product_clicked",checkoutStarted:"health_plan.checkout_started"});function Dd(){return e.useContext(d)?.runtime.registry.services.telemetry??Id}var Cd=e.createContext(null);function Hd(t){let i=e.useContext(Cd),r=e.useContext(d);return i??t??r?.activePet??null}function Fd(e,petRef,t){e.track(zd.checkoutStarted,{petRef:petRef,itemsCount:t.count,subtotal:t.subtotal,currency:t.currency})}function _d(e,t){let i=e.scaleCaps[t];return i>0?i:void 0}function Text2({tier:i,variant:r,...n}){let l=useEverfurTheme(),o=r===void 0?void 0:l.type.roles[r],a=_d(l.type,i??o?.tier??"content"),s=r===void 0?n:{...n,style:[{...textRole(l,r),color:l.color.text.primary,flexShrink:1},n.style]};return e.createElement(t.Text,a===void 0?s:{maxFontSizeMultiplier:a,...s})}e.forwardRef(function(i,r){return e.createElement(t.TextInput,{...i,...r===null?{}:{ref:r}})});function HealthPlanCartBar(r){let{cart:n,onCheckout:l,busy:o=false,priceFormat:a,style:s}=ft(r,["onCheckout"]),c=kd(),d=e.useMemo(()=>Od(c),[c]),u=formatHealthPlanPriceWith(n.subtotal,n.currency,a),p=n.count===0||o,h=Dd(),petRef=Hd(useHealthPlanCartDock()?.petRef);/* @__PURE__ */
|
|
287
|
+
return i.jsxs(t.View,{style:[d.bar,s],accessibilityLabel:Fi.cartLabel(c.meta.displayName),children:[
|
|
287
288
|
/* @__PURE__ */i.jsxs(t.View,{style:d.copy,children:[
|
|
288
289
|
/* @__PURE__ */i.jsxs(t.View,{style:d.labelRow,children:[
|
|
289
|
-
/* @__PURE__ */i.jsx(Text2,{style:d.label,children:
|
|
290
|
-
return i.jsx(SlotParts,{slot:n.slot,doc:n,data:a,blocks:
|
|
290
|
+
/* @__PURE__ */i.jsx(Text2,{style:d.label,children:Fi.cartLabel(c.meta.displayName)}),n.count>0?/* @__PURE__ */i.jsx(t.View,{style:d.count,accessibilityElementsHidden:true,importantForAccessibility:"no",children:/* @__PURE__ */i.jsx(Text2,{tier:"badge",style:d.countLabel,children:String(n.count)})}):null]}),n.count===0?/* @__PURE__ */i.jsx(Text2,{style:d.line,children:Di.cartEmpty}):u===null?null:/* @__PURE__ */i.jsxs(Text2,{style:d.line,children:[Di.subtotal," ",u]})]}),l===void 0?null:/* @__PURE__ */i.jsx(t.Pressable,{onPress:()=>{Fd(h,petRef,n),l(n.items)},disabled:p,accessibilityRole:"button",accessibilityLabel:Di.checkout,accessibilityState:{disabled:p,busy:o},style:[d.checkout,p?d.dimmed:null],testID:"health-plan-checkout",children:/* @__PURE__ */i.jsx(Text2,{tier:"control",style:d.checkoutLabel,children:Di.checkout})})]})}function Od(e){let{color:i,radius:r,space:n,type:l,slots:o}=e,a=o.cartBar?.textColor??i.text.onBrand,s=o.cartBar?.backgroundColor??i.brandInk,c=(t,i,r)=>({...face(e,r),fontSize:t,lineHeight:Math.round(t*l.lineHeight.snug),color:i});return t.StyleSheet.create({bar:{flexDirection:"row",alignItems:"center",justifyContent:"space-between",gap:n.md,paddingHorizontal:n.lg,paddingVertical:n.md,borderRadius:r.lg,backgroundColor:i.brand,...hd(o.cartBar)},copy:{flex:1,gap:2},labelRow:{flexDirection:"row",alignItems:"center",gap:n.sm},label:c(l.size.body,a,"bold"),count:{minWidth:22,height:22,paddingHorizontal:n.xs,borderRadius:r.pill,alignItems:"center",justifyContent:"center",backgroundColor:a},countLabel:c(l.size.caption,s,"bold"),line:c(l.size.caption,a,"regular"),checkout:{minHeight:44,paddingHorizontal:n.lg,borderRadius:r.pill,alignItems:"center",justifyContent:"center",backgroundColor:a},checkoutLabel:c(l.size.body,s,"bold"),dimmed:{opacity:.5}})}function NamedPart({name:t,petRef:petRef,locale:r}){let n=e.useMemo(()=>jr(t),[t]),l=e.useMemo(()=>o(n.parts),[n]),a=qi({...petRef===void 0?{}:{petRef:petRef},sources:l,locale:r});/* @__PURE__ */
|
|
291
|
+
return i.jsx(SlotParts,{slot:n.slot,doc:n,data:a,blocks:lc})}function HealthPlanFocusPart(e){/* @__PURE__ */
|
|
291
292
|
return i.jsx(NamedPart,{...e,name:"focus"})}function HealthPlanNeedsPart(e){/* @__PURE__ */
|
|
292
293
|
return i.jsx(NamedPart,{...e,name:"needs"})}function HealthPlanTipsPart(e){/* @__PURE__ */
|
|
293
294
|
return i.jsx(NamedPart,{...e,name:"tips"})}function ShopProductShelfPart(e){/* @__PURE__ */
|
|
@@ -295,4 +296,4 @@ return i.jsx(NamedPart,{...e,name:"shelf"})}function ShopCartSummaryPart(e){/* @
|
|
|
295
296
|
return i.jsxs(i.Fragment,{children:[
|
|
296
297
|
/* @__PURE__ */i.jsx(NamedPart,{...e,name:"cartLines"}),
|
|
297
298
|
/* @__PURE__ */i.jsx(NamedPart,{...e,name:"cartSummary"})]})}function ShopRecentOrdersPart(e){/* @__PURE__ */
|
|
298
|
-
return i.jsx(NamedPart,{...e,name:"orders"})}function HealthPlanCartBarPart(e){let t=useCapability("healthPlan").enabled,r=useEverfurHealthPlan(e.petRef===void 0?void 0:{petRef:e.petRef});return!t||r.status!=="ready"||!showHealthPlanCartBar(void 0,r.cart.count)?null:/* @__PURE__ */i.jsx(HealthPlanCartBar,{cart:r.cart,...e.onCheckout?{onCheckout:e.onCheckout}:{},...e.priceFormat?{priceFormat:e.priceFormat}:{},busy:r.pending.length>0,style:e.style})}var
|
|
299
|
+
return i.jsx(NamedPart,{...e,name:"orders"})}function HealthPlanCartBarPart(e){let t=useCapability("healthPlan").enabled,r=useEverfurHealthPlan(e.petRef===void 0?void 0:{petRef:e.petRef});return!t||r.status!=="ready"||!showHealthPlanCartBar(void 0,r.cart.count)?null:/* @__PURE__ */i.jsx(HealthPlanCartBar,{cart:r.cart,...e.onCheckout?{onCheckout:e.onCheckout}:{},...e.priceFormat?{priceFormat:e.priceFormat}:{},busy:r.pending.length>0,style:e.style})}var Ed=/* @__PURE__ */Object.freeze({Slot:Slot,HealthPlanFocus:HealthPlanFocusPart,HealthPlanNeeds:HealthPlanNeedsPart,HealthPlanTips:HealthPlanTipsPart,HealthPlanCartBar:HealthPlanCartBarPart,ShopProductShelf:ShopProductShelfPart,ShopCartSummary:ShopCartSummaryPart,ShopRecentOrders:ShopRecentOrdersPart});exports.Everfur=Ed;exports.HealthPlanCartBarPart=HealthPlanCartBarPart;exports.HealthPlanFocusPart=HealthPlanFocusPart;exports.HealthPlanNeedsPart=HealthPlanNeedsPart;exports.HealthPlanTipsPart=HealthPlanTipsPart;exports.ShopCartSummaryPart=ShopCartSummaryPart;exports.ShopProductShelfPart=ShopProductShelfPart;exports.ShopRecentOrdersPart=ShopRecentOrdersPart;exports.Slot=Slot;
|