@everfur/sdk 0.19.0 → 0.21.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.
Files changed (203) hide show
  1. package/CHANGELOG.md +46 -0
  2. package/dist/{Chat.d-BHovj6Ku.d.ts → Chat.d-CoGJrK3t.d.ts} +1 -1
  3. package/dist/{Chat.d-BO-XtVYe.d.cts → Chat.d-JDtlG_EW.d.cts} +1 -1
  4. package/dist/{DepthViews.d-DKoZgF8l.d.ts → DepthViews.d-CNQn-eEr.d.ts} +1 -1
  5. package/dist/{DepthViews.d-CBUunxP1.d.ts → DepthViews.d-D31VlFKU.d.ts} +1 -1
  6. package/dist/{DepthViews.d-BwIkdmWZ.d.cts → DepthViews.d-XTv4s3ru.d.cts} +1 -1
  7. package/dist/{DepthViews.d-Bx85LeiP.d.cts → DepthViews.d-zxM_xbP9.d.cts} +1 -1
  8. package/dist/{RecordsPage.d-DRFp2LXH.d.cts → RecordsPage.d-CSZHrtWJ.d.cts} +11 -5
  9. package/dist/{RecordsPage.d-CsvBhU0f.d.ts → RecordsPage.d-D_y-ZB3S.d.ts} +11 -5
  10. package/dist/animations/index.d.cts +3 -3
  11. package/dist/animations/index.d.ts +3 -3
  12. package/dist/{attachments.d-DWUsHPf9.d.cts → attachments.d-D74wbmQU.d.cts} +1 -1
  13. package/dist/{attachments.d-DOZjCdkb.d.ts → attachments.d-Dm6NUJTR.d.ts} +1 -1
  14. package/dist/{bookingCopy.d-BlMWlvgv.d.ts → bookingCopy.d-DMmLKY5Q.d.ts} +2 -2
  15. package/dist/{bookingCopy.d-tvO7y6MK.d.cts → bookingCopy.d-iaYDPvPd.d.cts} +2 -2
  16. package/dist/{casesRepository.d-C7qbrOL-.d.ts → casesRepository.d-CCJJQXnl.d.ts} +1 -1
  17. package/dist/{casesRepository.d-sSo6oakf.d.cts → casesRepository.d-G2dahIKO.d.cts} +1 -1
  18. package/dist/chat/index.d.cts +10 -10
  19. package/dist/chat/index.d.ts +10 -10
  20. package/dist/chat/lite/index.d.cts +10 -10
  21. package/dist/chat/lite/index.d.ts +10 -10
  22. package/dist/{chatHandoffToken.d-C4tEyuCT.d.ts → chatHandoffToken.d-DVv9tl8h.d.ts} +5 -5
  23. package/dist/{chatHandoffToken.d-D6GUoBvs.d.cts → chatHandoffToken.d-xmnHrTA5.d.cts} +5 -5
  24. package/dist/{chatTypes.d-CSyw9em_.d.cts → chatTypes.d-CQC7GTdE.d.cts} +4 -4
  25. package/dist/{chatTypes.d-BI4vidgu.d.ts → chatTypes.d-hS1AilYl.d.ts} +4 -4
  26. package/dist/chunk-2NA7TPUA.js +5 -0
  27. package/dist/chunk-IJU5TV5N.js +12 -0
  28. package/dist/chunk-TFX6WMDN.js +30 -0
  29. package/dist/chunk-WZNPR5TY.js +34 -0
  30. package/dist/client/index.cjs +1 -1
  31. package/dist/client/index.d.cts +6 -6
  32. package/dist/client/index.d.ts +6 -6
  33. package/dist/client/index.js +1 -1
  34. package/dist/{clinicBatch.d-BxA_uGBb.d.cts → clinicBatch.d-4PFwKJfw.d.cts} +3 -3
  35. package/dist/{clinicBatch.d-T5oSAhY-.d.ts → clinicBatch.d-BpP2NBb3.d.ts} +3 -3
  36. package/dist/{clinicRequestProps.d-CjsMg_OD.d.ts → clinicRequestProps.d-BuMuGoVZ.d.ts} +1 -1
  37. package/dist/{clinicRequestProps.d-1dCtouGA.d.cts → clinicRequestProps.d-DjzUdDFx.d.cts} +1 -1
  38. package/dist/{config.d-N5Xzy53V.d.ts → config.d-D9igq-vT.d.ts} +1 -1
  39. package/dist/{config.d-jCmrhM4a.d.cts → config.d-cX5E6DAw.d.cts} +1 -1
  40. package/dist/consent/index.cjs +1 -1
  41. package/dist/consent/index.d.cts +5 -5
  42. package/dist/consent/index.d.ts +5 -5
  43. package/dist/consent/index.js +1 -1
  44. package/dist/{context.d-l4HkFJI8.d.cts → context.d-BrRRNw9I.d.cts} +4 -4
  45. package/dist/{context.d-BJEpEERH.d.ts → context.d-hPfsEsNf.d.ts} +4 -4
  46. package/dist/{copy.d-hFRaovog.d.ts → copy.d-CDlirTR4.d.ts} +2 -2
  47. package/dist/{copy.d-hS49oJ4w.d.cts → copy.d-DWjSkbrZ.d.cts} +2 -2
  48. package/dist/core/index.cjs +1 -1
  49. package/dist/core/index.d.cts +14 -14
  50. package/dist/core/index.d.ts +14 -14
  51. package/dist/core/index.js +1 -1
  52. package/dist/{depth.d-C99_xup2.d.ts → depth.d-CfBorxcQ.d.ts} +3 -3
  53. package/dist/{depth.d-BYwddMNU.d.cts → depth.d-KkrGx98U.d.cts} +3 -3
  54. package/dist/{entitlementRepository.d-CiU_QIPL.d.cts → entitlementRepository.d-BvnWpcQH.d.cts} +2 -2
  55. package/dist/{entitlementRepository.d-qZAlET7C.d.ts → entitlementRepository.d-DpQrIgW6.d.ts} +2 -2
  56. package/dist/{focus.d-RJMXplJc.d.cts → focus.d-9loikWy8.d.cts} +2 -2
  57. package/dist/{focus.d-CG6KhDBK.d.ts → focus.d-CYwVLDvR.d.ts} +2 -2
  58. package/dist/health-plan/index.cjs +53 -37
  59. package/dist/health-plan/index.d.cts +10 -10
  60. package/dist/health-plan/index.d.ts +10 -10
  61. package/dist/health-plan/index.js +54 -38
  62. package/dist/{idempotency.d-DJyOZDPb.d.cts → idempotency.d-CVKkUhY4.d.cts} +1 -1
  63. package/dist/{idempotency.d-D-ZWpO9p.d.ts → idempotency.d-DGQ_xML5.d.ts} +1 -1
  64. package/dist/{identity.d-CA7mW59I.d.cts → identity.d-Bnl5Z0MM.d.cts} +1 -1
  65. package/dist/{identity.d-DIOnFzXL.d.ts → identity.d-DR5YwO6E.d.ts} +1 -1
  66. package/dist/index.cjs +1 -1
  67. package/dist/index.d.cts +13 -13
  68. package/dist/index.d.ts +13 -13
  69. package/dist/index.js +1 -1
  70. package/dist/{introEvents.d-BjqfFgE1.d.ts → introEvents.d-D_yL7lnE.d.ts} +1 -1
  71. package/dist/{introEvents.d-7wNDMhEF.d.cts → introEvents.d-JmPqEqMQ.d.cts} +1 -1
  72. package/dist/{models.d-BSqvbTE1.d.cts → models.d-BN53M9sU.d.cts} +52 -1
  73. package/dist/{models.d-DOwnr8fi.d.ts → models.d-Bhq9p6Wa.d.ts} +52 -1
  74. package/dist/notifications/inbox/index.d.cts +4 -4
  75. package/dist/notifications/inbox/index.d.ts +4 -4
  76. package/dist/notifications/index.d.cts +7 -7
  77. package/dist/notifications/index.d.ts +7 -7
  78. package/dist/{optInView.d-BQhHPleh.d.cts → optInView.d-BizcW_QG.d.cts} +2 -2
  79. package/dist/{optInView.d-B5v4cDDW.d.ts → optInView.d-CZvKlq-o.d.ts} +2 -2
  80. package/dist/{pets.d-DRqMaP8A.d.cts → pets.d-C4CWxQPh.d.cts} +1 -1
  81. package/dist/{pets.d-DVrOb-Bj.d.ts → pets.d-uCzgFbGi.d.ts} +1 -1
  82. package/dist/{petsRepository.d-tZADfKA1.d.cts → petsRepository.d-DOcVv9bd.d.cts} +1 -1
  83. package/dist/{petsRepository.d-CpYWRWFq.d.ts → petsRepository.d-DRW7NkKm.d.ts} +1 -1
  84. package/dist/records/depth/index.cjs +1 -1
  85. package/dist/records/depth/index.d.cts +11 -11
  86. package/dist/records/depth/index.d.ts +11 -11
  87. package/dist/records/depth/index.js +1 -1
  88. package/dist/records/index.cjs +16 -14
  89. package/dist/records/index.d.cts +47 -17
  90. package/dist/records/index.d.ts +47 -17
  91. package/dist/records/index.js +16 -14
  92. package/dist/{requestFunnel.d-B8OVGh0p.d.ts → requestFunnel.d-BYLycQMI.d.ts} +2 -2
  93. package/dist/{requestFunnel.d-C4abgvt9.d.cts → requestFunnel.d-CQ0O8fMG.d.cts} +2 -2
  94. package/dist/{route.d-BAZqGLfl.d.ts → route.d-DFJ0gXj8.d.ts} +2 -2
  95. package/dist/{route.d-CTf8h9vS.d.cts → route.d-q9yndhFy.d.cts} +2 -2
  96. package/dist/{runtimeTypes.d-DbaQKGLv.d.cts → runtimeTypes.d-3LRuzxr7.d.cts} +4 -4
  97. package/dist/{runtimeTypes.d-DrIz5e6L.d.ts → runtimeTypes.d-BJHYj2MI.d.ts} +4 -4
  98. package/dist/{screenProps.d-Di3wYGCn.d.cts → screenProps.d-DfAmuKkr.d.cts} +2 -2
  99. package/dist/{screenProps.d-BP8LAZWn.d.ts → screenProps.d-tVzlXGaN.d.ts} +2 -2
  100. package/dist/server/events/index.cjs +1 -1
  101. package/dist/server/events/index.d.cts +2 -2
  102. package/dist/server/events/index.d.ts +2 -2
  103. package/dist/server/events/index.js +1 -1
  104. package/dist/server/index.cjs +1 -1
  105. package/dist/server/index.d.cts +3 -3
  106. package/dist/server/index.d.ts +3 -3
  107. package/dist/server/index.js +1 -1
  108. package/dist/{sheetSeam.d-BBuEIVsa.d.cts → sheetSeam.d-B9iQqG_I.d.cts} +2 -2
  109. package/dist/{sheetSeam.d-B09jf4YC.d.ts → sheetSeam.d-CtuKILqp.d.ts} +2 -2
  110. package/dist/shop/index.cjs +187 -145
  111. package/dist/shop/index.d.cts +3 -3
  112. package/dist/shop/index.d.ts +3 -3
  113. package/dist/shop/index.js +188 -146
  114. package/dist/tabs/index.cjs +1 -1
  115. package/dist/tabs/index.d.cts +8 -8
  116. package/dist/tabs/index.d.ts +8 -8
  117. package/dist/tabs/index.js +1 -1
  118. package/dist/televet/booking/index.d.cts +6 -6
  119. package/dist/televet/booking/index.d.ts +6 -6
  120. package/dist/testing/index.cjs +1 -1
  121. package/dist/testing/index.d.cts +1 -1
  122. package/dist/testing/index.d.ts +1 -1
  123. package/dist/testing/index.js +1 -1
  124. package/dist/testing/rn/index.d.cts +8 -8
  125. package/dist/testing/rn/index.d.ts +8 -8
  126. package/dist/testing/web/index.d.cts +9 -9
  127. package/dist/testing/web/index.d.ts +9 -9
  128. package/dist/texting/index.d.cts +5 -5
  129. package/dist/texting/index.d.ts +5 -5
  130. package/dist/{threadOptions.d-Cwmyu8pc.d.ts → threadOptions.d-DfH26dy7.d.ts} +2 -2
  131. package/dist/{threadOptions.d-REwBuXAY.d.cts → threadOptions.d-I6G3BdlP.d.cts} +2 -2
  132. package/dist/{timelineRows.d-CTlGQTB0.d.ts → timelineRows.d-CugnCOfZ.d.ts} +1 -1
  133. package/dist/{timelineRows.d-CongJG58.d.cts → timelineRows.d-uSfr2IP3.d.cts} +1 -1
  134. package/dist/{types.d-d3RdaeAA.d.cts → types.d-BOKzNuuF.d.cts} +87 -85
  135. package/dist/{types.d-d3RdaeAA.d.ts → types.d-BOKzNuuF.d.ts} +87 -85
  136. package/dist/ui/index.cjs +98 -46
  137. package/dist/ui/index.d.cts +4 -3
  138. package/dist/ui/index.d.ts +4 -3
  139. package/dist/ui/index.js +98 -46
  140. package/dist/{useHealthPlanSubscription.d-BSo5kFT9.d.ts → useHealthPlanSubscription.d-CVVQIFpG.d.ts} +2 -2
  141. package/dist/{useHealthPlanSubscription.d-Br7GKHTt.d.cts → useHealthPlanSubscription.d-DylPMm_m.d.cts} +2 -2
  142. package/dist/{useInboxUnread.d-Blxu00eY.d.ts → useInboxUnread.d-DDoSII8D.d.ts} +1 -1
  143. package/dist/{useInboxUnread.d-pi6FNnK-.d.cts → useInboxUnread.d-Dq3CCAa3.d.cts} +1 -1
  144. package/dist/{usePresentation.d-yd9Gh4GB.d.ts → usePresentation.d-CDNK4MDY.d.ts} +2 -2
  145. package/dist/{usePresentation.d-C6ci1s3j.d.cts → usePresentation.d-CrobH0d_.d.cts} +2 -2
  146. package/dist/{useRecords.d-BYNX01El.d.cts → useRecords.d-BMSW4aRD.d.cts} +46 -3
  147. package/dist/{useRecords.d-DWk61a4c.d.ts → useRecords.d-Cv1nhZrv.d.ts} +46 -3
  148. package/dist/{useRecordsDepth.d-C5snbNxR.d.ts → useRecordsDepth.d-BvBYIPii.d.ts} +1 -1
  149. package/dist/{useRecordsDepth.d-BIDVPfx7.d.cts → useRecordsDepth.d-Cd5Vyb7D.d.cts} +1 -1
  150. package/dist/{useUnread.d-CORommFJ.d.cts → useUnread.d-B4Yqcteg.d.cts} +3 -3
  151. package/dist/{useUnread.d-w0dKMnx7.d.ts → useUnread.d-ElAEfgl1.d.ts} +3 -3
  152. package/dist/{view.d-CK2UN4qn.d.ts → view.d-2RWoY9kd.d.ts} +5 -5
  153. package/dist/{view.d-DUhKppyl.d.cts → view.d-utmOR2ee.d.cts} +5 -5
  154. package/dist/web/consent/index.cjs +1 -1
  155. package/dist/web/consent/index.d.cts +5 -5
  156. package/dist/web/consent/index.d.ts +5 -5
  157. package/dist/web/consent/index.js +1 -1
  158. package/dist/web/health-plan/index.cjs +43 -16
  159. package/dist/web/health-plan/index.d.cts +12 -12
  160. package/dist/web/health-plan/index.d.ts +12 -12
  161. package/dist/web/health-plan/index.js +32 -27
  162. package/dist/web/health-plan/styles.css +160 -1
  163. package/dist/web/inbox/index.cjs +1 -1
  164. package/dist/web/inbox/index.d.cts +5 -5
  165. package/dist/web/inbox/index.d.ts +5 -5
  166. package/dist/web/inbox/index.js +1 -1
  167. package/dist/web/index.cjs +1 -1
  168. package/dist/web/index.d.cts +27 -27
  169. package/dist/web/index.d.ts +27 -27
  170. package/dist/web/index.js +1 -1
  171. package/dist/web/intro/index.cjs +1 -1
  172. package/dist/web/intro/index.d.cts +8 -8
  173. package/dist/web/intro/index.d.ts +8 -8
  174. package/dist/web/intro/index.js +1 -1
  175. package/dist/web/notifications/index.d.cts +6 -6
  176. package/dist/web/notifications/index.d.ts +6 -6
  177. package/dist/web/records/depth/index.cjs +1 -1
  178. package/dist/web/records/depth/index.d.cts +11 -11
  179. package/dist/web/records/depth/index.d.ts +11 -11
  180. package/dist/web/records/depth/index.js +1 -1
  181. package/dist/web/records/index.cjs +15 -13
  182. package/dist/web/records/index.d.cts +43 -19
  183. package/dist/web/records/index.d.ts +43 -19
  184. package/dist/web/records/index.js +15 -13
  185. package/dist/web/records-sheet/index.cjs +1 -1
  186. package/dist/web/records-sheet/index.d.cts +4 -4
  187. package/dist/web/records-sheet/index.d.ts +4 -4
  188. package/dist/web/records-sheet/index.js +1 -1
  189. package/dist/web/shop/index.cjs +110 -88
  190. package/dist/web/shop/index.d.cts +3 -3
  191. package/dist/web/shop/index.d.ts +3 -3
  192. package/dist/web/shop/index.js +67 -81
  193. package/dist/web/televet/booking/index.d.cts +6 -6
  194. package/dist/web/televet/booking/index.d.ts +6 -6
  195. package/dist/web/texting/index.d.cts +5 -5
  196. package/dist/web/texting/index.d.ts +5 -5
  197. package/dist/web/ui/index.cjs +96 -57
  198. package/dist/web/ui/index.d.cts +4 -3
  199. package/dist/web/ui/index.d.ts +4 -3
  200. package/dist/web/ui/index.js +41 -46
  201. package/dist/web/ui/styles.css +481 -1
  202. package/package.json +5 -5
  203. package/dist/chunk-Y3Q4GW47.js +0 -31
@@ -1,47 +1,93 @@
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 react=require("react"),reactNative=require("react-native"),jsxRuntime=require("react/jsx-runtime");var EverfurConfigError=class _EverfurConfigError extends Error{constructor(kind,message){super(message),this.name="EverfurConfigError",this.kind=kind,Object.setPrototypeOf(this,_EverfurConfigError.prototype)}};var EVERFUR_CONTEXT_SYMBOL=/* @__PURE__ */Symbol.for("@everfur/sdk#EverfurContext@v1"),globalContextHost=globalThis,EverfurContext=globalContextHost[EVERFUR_CONTEXT_SYMBOL]??(globalContextHost[EVERFUR_CONTEXT_SYMBOL]=react.createContext(null));EverfurContext.displayName??="EverfurContext";var stores=/* @__PURE__ */new WeakMap,NONE=[];function storeOf(client){let s=stores.get(client);return s||(s={items:NONE,flash:null,storage:null,binding:null,lastKey:null,listeners:/* @__PURE__ */new Set},stores.set(client,s)),s}function set(client,items){let s=storeOf(client);if(s.items=items,s.storage)try{s.storage.write(JSON.stringify(items))}catch{}for(let l of[...s.listeners])l()}function clamp(n){return Math.max(1,Math.min(5,Math.round(n)))}function cartKey(line){return`${line.offerId}|${line.petId??""}|${line.rxId??""}`}var str=v=>typeof v=="string"&&v!=="";function httpsOnly(v){return typeof v=="string"&&/^https:\/\/[^\s]+$/i.test(v)?v:null}function parseItems(raw){if(!raw)return NONE;let data;try{data=JSON.parse(raw)}catch{return NONE}if(!Array.isArray(data))return NONE;let out=[];for(let d of data){if(!d||typeof d!="object")continue;let o=d;if(!str(o.offerId)||typeof o.title!="string"||typeof o.quantity!="number"||!Number.isFinite(o.quantity))continue;let unitPrice=typeof o.unitPrice=="number"&&Number.isFinite(o.unitPrice)?o.unitPrice:null,petId=str(o.petId)?o.petId:void 0,rxId=str(o.rxId)?o.rxId:void 0,imageUrl=httpsOnly(o.imageUrl),line={offerId:o.offerId,...petId?{petId:petId}:{},...rxId?{rxId:rxId}:{}},key=cartKey(line);out.some(i=>i.key===key)||out.push({...line,key:key,title:o.title,unitPrice:unitPrice,requiresRx:o.requiresRx===true,quantity:rxId?Math.max(1,Math.round(o.quantity)):clamp(o.quantity),...imageUrl?{imageUrl:imageUrl}:{}})}return out.length>0?out:NONE}function mergeItems(stored,live){let byKey=new Map(live.map(i=>[i.key,i])),out=stored.map(i=>byKey.get(i.key)??i);for(let i of live)stored.some(x=>x.key===i.key)||out.push(i);return out.length>0?out:NONE}var NOOP=()=>{};function bindAsyncCartStorage(client,store,key){let s=storeOf(client);if(!store||s.binding!==null)return NOOP;if(s.lastKey!==null&&s.lastKey!==key&&s.items.length>0){s.items=NONE;for(let l of[...s.listeners])l()}s.lastKey=key;let token={};s.binding={key:key,token:token};let writer={read:()=>null,write:value=>{store.setItem(key,value).catch(()=>{})}},settle=(raw,readOk)=>{if(s.binding?.token!==token)return;s.storage=writer;let stored=parseItems(raw);stored.length>0?set(client,mergeItems(stored,s.items)):readOk&&s.items.length>0&&set(client,s.items)};try{store.getItem(key).then(raw=>settle(raw,!0),()=>settle(null,!1))}catch{settle(null,false)}return()=>{s.binding?.token===token&&(s.binding=null,s.storage=null)}}function cartItems(client){return storeOf(client).items}function addToCart(client,input){let key=cartKey(input),items=cartItems(client),was=items.find(i=>i.key===key),quantity=input.rxId?Math.max(1,Math.round(input.quantity)):clamp((was?.quantity??0)+input.quantity),item={...input,key:key,quantity:quantity};return set(client,was?items.map(i=>i.key===key?item:i):[...items,item]),item}function setCartQuantity(client,key,quantity){let items=cartItems(client);set(client,items.map(i=>i.key===key&&!i.rxId?{...i,quantity:clamp(quantity)}:i))}function removeFromCart(client,key){let items=cartItems(client),was=items.find(i=>i.key===key)??null;return was&&set(client,items.filter(i=>i.key!==key)),was}function removePlaced(client,keys){let gone=new Set(keys),items=cartItems(client);items.some(i=>gone.has(i.key))&&set(client,items.filter(i=>!gone.has(i.key)))}function flashCart(client,line){storeOf(client).flash=line}function takeCartFlash(client){let s=storeOf(client),line=s.flash;return s.flash=null,line}function cartLines(items){return items.map(i=>({offerId:i.offerId,quantity:i.quantity,...i.petId?{petId:i.petId}:{},...i.rxId?{rxId:i.rxId}:{}}))}function cartSubtotal(items){let sum=0;for(let i of items){if(i.unitPrice===null)return null;sum+=i.unitPrice*i.quantity}return sum}function cartCount(items){return items.reduce((n,i)=>n+i.quantity,0)}function useCart(client){let s=storeOf(client);return react.useSyncExternalStore(l=>(s.listeners.add(l),()=>{s.listeners.delete(l)}),()=>s.items,()=>s.items)}var SHOP_ORDERS_V2_COPY={title:pet=>`${pet}’s orders`,onAuto:n=>`${n} on auto-refill`,nothingOnAuto:"Nothing on auto-refill",onTheWay:n=>n===0?"Nothing on the way":n===1?"1 package on the way":`${n} packages on the way`,today:"Today",hasLeft:(pet,units,drug)=>`${pet} has ${units} ${drug} left`,enoughUntil:day=>`Enough until ${day}`,boxArrives:"Her box arrives",rxArrives:drug=>`Her ${drug} arrives`,items:n=>n===1?"1 item":`${n} items`,units:(n,unit)=>`${n} ${n===1?unit:`${unit}s`}`,shipsTomorrow:"Ships tomorrow",needsVetOk:prescriber=>`Needs ${prescriber}’s OK`,trackingDown:"Tracking isn’t loading. Pull down to try again.",wontRunOut:"She won’t run out",oldBottleEnds:day=>`Her old bottle ends today. The new one is due ${day}.`,runsOut:drug=>`Her ${drug} runs out`,orderToday:day=>`Order today, it arrives ${day}.`,refill:"Refill",inCart:"In cart",autoTitle:"On auto-refill",autoSub:"Timed to her supply",rxTag:"Rx",ships:"Ships",autoRefill:"Auto-refill",paused:"Paused",planMeta:(say,price,whenFilled)=>price===null?say:`${say} · ${price}${whenFilled?" when filled":""}`,everyDays:n=>n===1?"every day":`every ${n} days`,everyDaysAlone:n=>n===1?"Every day":`Every ${n} days`,everyMonthsAfter:n=>n===1?"every month":`every ${n} months`,everyMonths:n=>n===1?"Every month":`Every ${n} months`,amountEvery:(amount,every)=>`${amount}, ${every}`,vetOks:prescriber=>`${prescriber} OKs each refill`,leftOnRx:n=>`${n} left on her prescription`,offOnAuto:pct=>`${pct}% off on auto`,skipped:day=>`Skipped ${day}.`,undo:"Undo",skip:"Skip",change:"Change",pause:"Pause",resume:day=>day?`Resume · next ships ${day}`:"Resume",sheetTitle:"Manage auto-refill",skipTitle:day=>`Skip ${day}?`,changeTitle:"How often",pauseTitle:"Pause auto-refill?",sheetMeta:(say,day)=>day?`${say} · next ships ${day}`:say,skipSay:day=>`The next one ships a cycle later, ${day}.`,skipGo:short=>`Skip, next ships ${short}`,changeRxSay:prescriber=>`${prescriber} OKs a new amount before the next one ships.`,save:"Save",pauseRxSay:(prescriber,refills)=>`Nothing ships until you resume. ${prescriber}’s prescription stays on file, with its ${refills===1?"1 refill":`${refills} refills`}.`,pauseSay:"Nothing ships until you resume. Resume any time, here.",pauseGo:"Pause it",keep:"Keep it as it is",close:"Close",saveFailed:"That didn’t save. Try again.",saidSkipped:(name,day)=>`Skipped. ${name} next ships ${day}.`,saidSaved:(name,day)=>`Saved. ${name} from ${day}.`,saidPaused:"Paused. Nothing ships until you resume.",buyAgainTitle:"Buy again",buyAgainSub:"From her past orders",likelyOut:"Likely out by now",ordered:short=>`Ordered ${short}`,addOne:name=>`Add ${name}`,oneLess:name=>`One less ${name}`,everythingElse:pet=>`Everything else for ${pet}`,pastTitle:"Past orders",pastSub:"Last 3 months",delivered:"Delivered",everfurBox:"Everfur box",addAll:n=>n===2?"Add both to cart":`Add all ${n} to cart`,inTheCart:"In the cart",receipt:"Receipt",help:"Help with an order",legal:"Prescription refills need the prescribing vet’s OK each time, and are charged once filled.",itemCount:n=>n===1?"1 item":`${n} items`,shipsFree:items=>`${items} · ships free`,freeOver:(items,threshold)=>`${items} · free shipping over ${threshold}`,todayPlusRx:amount=>`today, + ${amount} Rx when filled`,whenFilled:off=>off?`when it’s filled, ${off} off`:"when it’s filled",checkout:"Checkout"};function shopOrdersV2Copy(over){return over?{...SHOP_ORDERS_V2_COPY,...over}:SHOP_ORDERS_V2_COPY}function omsOk(value){/* @__PURE__ */
3
3
  return Object.freeze({ok:true,value:value})}function omsErr(error){/* @__PURE__ */
4
- return Object.freeze({ok:false,error:/* @__PURE__ */Object.freeze(error)})}function isOmsRefusal(error,reasonCode){return error.kind==="refused"&&(reasonCode===void 0||error.reasonCode===reasonCode)}function isOmsUnavailable(error){return error.kind==="unavailable"}function isOmsRetryable(error){return error.kind==="network"||error.kind==="timeout"||error.kind==="serviceUnavailable"||error.kind==="refused"&&error.reasonCode==="order_state_conflict"}var REASON=/^[a-z][a-z0-9_]{0,63}$/,MAX_MESSAGE=300;function cleanMessage(raw){if(typeof raw!="string")return null;let text=raw.replace(/[\u0000-\u001f\u007f]+/g," ").trim();return text.length===0||text.length>MAX_MESSAGE?null:text}function retryAfter(header){if(!header)return null;let seconds=Number(header);return Number.isFinite(seconds)&&seconds>=0?Math.min(Math.round(seconds),3600):null}function omsErrorFromStatus(status,body,headers){let requestId=headers.requestId,rid=requestId?{requestId:requestId}:{};if(status===404)return{kind:"unavailable",...rid};if(status===401)return{kind:"signedOut"};if(status===402||status===409||status===422){let envelope=body&&typeof body=="object"?body:{},reason=typeof envelope.reason_code=="string"&&REASON.test(envelope.reason_code)?envelope.reason_code:null;return{kind:"refused",status:status,reasonCode:reason,message:cleanMessage(envelope.message),...rid}}return status===400?{kind:"invalidRequest",...rid}:status===429?{kind:"rateLimited",retryAfterSeconds:retryAfter(headers.retryAfter??null),...rid}:status===503?{kind:"serviceUnavailable",...rid}:status===403?{kind:"unavailable",...rid}:{kind:"serverError",status:status,...rid}}function newIdempotencyKey(){let c=globalThis.crypto;if(c&&typeof c.randomUUID=="function")return c.randomUUID();if(c&&typeof c.getRandomValues=="function"){let b=c.getRandomValues(new Uint8Array(16));b[6]=b[6]&15|64,b[8]=b[8]&63|128;let h=Array.from(b,x=>x.toString(16).padStart(2,"0")).join("");return`${h.slice(0,8)}-${h.slice(8,12)}-${h.slice(12,16)}-${h.slice(16,20)}-${h.slice(20)}`}throw new EverfurConfigError("missing-peer-dependency","No secure random source: cannot make an idempotency key")}var MAX_ROUNDS=3,NAME_REQUIRED_REASONS=["client_name_missing"];function isNameRequired(error){return!!error&&error.kind==="refused"&&!!error.reasonCode&&NAME_REQUIRED_REASONS.includes(error.reasonCode)}var ShopActionKeys=class{constructor(make=newIdempotencyKey){this.make=make;this.keys=/* @__PURE__ */new Map}key(step){let k=this.keys.get(step);return k||(k=this.make(),this.keys.set(step,k)),k}next(step){let k=this.make();return this.keys.set(step,k),k}};async function confirmWithPayerActions(confirm,keys,payments,options={reconfirm:true}){let key=keys.key("confirm"),orderIds=[];for(let round=0;round<MAX_ROUNDS;round+=1){let res=await confirm(key);if(!res.ok)return{kind:"failed",error:res.error};orderIds=res.value.resale.map(r=>r.orderId);let pending=res.value.resale.filter(r=>r.outcome==="action_required"&&r.payerAction);if(pending.length===0)return{kind:"confirmed",orderIds:orderIds};if(!payments)return{kind:"needsPayerAction",orderIds:orderIds};if(round===0&&options.beforePayerAction)try{options.beforePayerAction(orderIds)}catch{}for(let entry of pending){let stepResult=await payments.handleNextAction(entry.payerAction,{orderId:entry.orderId});if(!stepResult.ok)return stepResult.closed?{kind:"payerActionClosed",orderIds:orderIds}:{kind:"payerActionFailed",orderIds:orderIds,message:stepResult.message}}if(!options.reconfirm)return{kind:"confirmed",orderIds:orderIds};key=keys.next("confirm")}return{kind:"needsPayerAction",orderIds:orderIds}}var UNAVAILABLE_PACKAGE_SOURCE=/* @__PURE__ */Object.freeze({load:()=>Promise.resolve(omsErr({kind:"unavailable"})),removeLine:()=>Promise.resolve(omsErr({kind:"unavailable"})),skip:()=>Promise.resolve(omsErr({kind:"unavailable"})),approve:()=>Promise.resolve({kind:"failed",error:{kind:"unavailable"}})});async function offersFor(client,ids){let unique=[...new Set(ids)],read=await Promise.all(unique.map(id=>client.offer(id)));return new Map(unique.map((id,i)=>[id,read[i].ok?read[i].value:null]))}function createOmsPackageSource(client){async function build(plan,review){let offers=await offersFor(client,review.lines.map(l=>l.offerId)),lines=review.lines.map(l=>({...l,offer:offers.get(l.offerId)??null})),draft=null;if(review.state==="open"&&lines.length>0){let d=await client.draftCycle(plan.planId,review.cycle);if(d.ok)draft=d.value;else if(d.error.kind!=="refused")return omsErr(d.error)}return omsOk({plan:plan,review:review,lines:lines,draft:draft})}return{async load(){let plans=await client.plans();if(!plans.ok)return omsErr(plans.error);let plan=plans.value.plans.find(p=>p.state==="active")??plans.value.plans.find(p=>p.state!=="cancelled");if(!plan)return omsOk(null);let review=await client.cycleReview(plan.planId);return review.ok?build(plan,review.value):omsErr(review.error)},async removeLine(pkg,index,keys){let rest=pkg.lines.filter((_,i)=>i!==index).map(l=>({offerId:l.offerId,quantity:l.quantity,...l.petId?{petId:l.petId}:{}})),edited=await client.editCycle(pkg.plan.planId,pkg.review.cycle,{idempotencyKey:keys.key(`remove:${index}`),lines:rest});return edited.ok?build(pkg.plan,edited.value):omsErr(edited.error)},async skip(pkg,keys){let res=await client.skipCycle(pkg.plan.planId,pkg.review.cycle,{idempotencyKey:keys.key("skip")});return res.ok?omsOk(void 0):omsErr(res.error)},approve(pkg,keys,payments){let draft=pkg.draft;return draft?confirmWithPayerActions(idempotencyKey=>client.approveCycle(pkg.plan.planId,pkg.review.cycle,{idempotencyKey:idempotencyKey,checkoutId:draft.checkoutId,expectedTotal:draft.total}),keys,payments,{reconfirm:false}):Promise.resolve({kind:"failed",error:{kind:"invalidRequest"}})}}}function formatCents(cents){let sign=cents<0?"-":"",abs=Math.abs(Math.round(cents));return`${sign}$${Math.floor(abs/100).toLocaleString("en-US")}.${String(abs%100).padStart(2,"0")}`}function placeholder(key){return`[copy:shop.${key}]`}var MONTHS=["January","February","March","April","May","June","July","August","September","October","November","December"];function possessive(name){return`${name}’s`}function listNames(names){return names.length<=1?names[0]??"":`${names.slice(0,-1).join(", ")} and ${names[names.length-1]}`}function asDate(iso){if(!iso)return null;let d=new Date(/^\d{4}-\d{2}-\d{2}$/.test(iso)?`${iso}T00:00:00Z`:iso);return Number.isNaN(d.getTime())?null:d}function formatDay(iso,opts={}){let d=asDate(iso);if(!d)return null;if(opts.when&&d.getUTCFullYear()!==(opts.now??/* @__PURE__ */new Date).getUTCFullYear())return d.toLocaleDateString("en-US",{timeZone:"UTC",month:"short",day:"numeric",year:"numeric"});let weekday=opts.weekday===true||opts.when===true;return d.toLocaleDateString("en-US",{timeZone:"UTC",...weekday?{weekday:"short"}:{},month:"short",day:"numeric"})}function formatWhen(iso){let d=asDate(iso);if(!d)return null;let day=d.toLocaleDateString("en-US",{weekday:"short",month:"short",day:"numeric"}),time=d.toLocaleTimeString("en-US",{hour:"numeric",minute:"2-digit"});return`${day} · ${time}`}function monthOf(iso){let d=asDate(iso);return d?MONTHS[d.getUTCMonth()]:null}function cardLabel(brand,last4){return`${brand?brand.charAt(0).toUpperCase()+brand.slice(1):""} ending ${last4}`}var PHARMACY_REFUSAL="We can’t send this prescription to the pharmacy yet. Contact us.",PHARMACY_REFUSALS=["prescription_missing","prescription_reference_missing","prescription_unreadable","prescriptions_disagree","first_fill_mixed_with_refill","duplicate_prescription_line","prescription_in_flight","client_email_missing","client_phone_missing","client_phone_not_us","practice_email_missing","practice_phone_missing","practice_phone_not_us","patient_birth_date_missing","patient_weight_missing","weight_below_partner_unit","species_not_supported","sex_not_supported","refills_over_partner_limit","indications_missing","indication_not_mapped","compounding_missing","compounding_reason_not_mapped","compounding_unexplained","delivery_speed_unavailable","address_missing","address_not_deliverable"],SHOP_COPY={tabsLabel:"Care",tabPackage:"Package",tabShop:"Shop",tabOrders:"Orders",tabPlan:"Plan",legal:"Prescription items need a valid prescription from a licensed vet, and are filled by a licensed partner pharmacy.",legalTracking:"Prescription items are filled by a licensed partner pharmacy.",loadFailed:thing=>`We couldn’t load ${thing}. Check your connection and try again.`,tryAgain:"Try again",actionFailed:"That didn’t go through. Try again.",saving:"Saving…",keepIt:"Keep it",close:"Close",thingPackage:placeholder("thing.package"),thingShop:placeholder("thing.shop"),thingProduct:placeholder("thing.product"),thingPlan:placeholder("thing.plan"),thingOrders:"your orders",thingOrder:"this order",packageTitle:month=>`${month} package`,packageSub:(names,reviewBy,arrives)=>{let s=[];return names.length>0&&s.push(`For ${listNames(names)}.`),reviewBy&&arrives&&s.push(`Approve by ${reviewBy} and it arrives ${arrives}.`),s.length?s.join(" "):null},inThisPackage:"In this package",reviewBy:day=>`Review by ${day}`,forPet:name=>`For ${name}`,details:"Details",remove:"Remove",removed:"Removed.",total:"Total",items:"Items",shipping:"Shipping",tax:"Tax",free:"Free",approveAndShip:"Approve and ship",itemCount:n=>n===1?placeholder("package.item_count_one"):`${n} items`,withTotal:(label,total)=>`${label} · ${total}`,approveRegion:"Approve",packageDetailsRegion:"Package details",deliveryPaymentRegion:"Delivery and payment",questionsRegion:"Questions",approving:"Approving…",skipThisMonth:"Skip this month",chargedWhenShips:card=>`Charged to ${card} when it ships.`,rxCheckedFirst:"Prescriptions are checked with the vet who wrote them first.",delivery:"Delivery",arrives:day=>`Arrives ${day}`,change:"Change",outOfStock:"Out of stock",packageOutOfStock:"Out of stock right now, so it won’t ship this month.",packageEmpty:month=>`Nothing in ${possessive(month)} package yet. Add something from the shop, or skip this month.`,itemNoLongerSold:placeholder("package.item_no_longer_sold"),reviewClosed:placeholder("package.review_closed"),approvalInProgress:placeholder("package.approval_in_progress"),priceChanged:placeholder("package.price_changed"),cardStepFailed:placeholder("package.card_step_failed"),cardStepClosed:placeholder("package.card_step_closed"),noCardOnFile:placeholder("package.no_card_on_file"),shopTitle:"Shop",searchLabel:"Search the shop",searchPlaceholder:"Search the shop…",filtersLabel:"Filter",filterAll:"All",refillSoon:"Refill soon",prescribedFor:names=>`Prescribed for ${listNames(names)}`,inMonthsPackage:month=>`In ${possessive(month)} package →`,forPets:names=>`For ${listNames(names)}`,allProducts:placeholder("shop.all_products_title"),rx:"Rx",hasPrescription:name=>`${name} has a prescription`,needsPrescription:"Needs a prescription",noMatches:q=>`Nothing in the shop matches ‘${q}’.`,nothingHereYet:"Nothing here yet.",photoToCome:"Photo to come",backToShop:"Shop",howOften:"How often",everyMonthIn:name=>`Every month, in ${possessive(name)} package`,skipOrStop:"Skip or stop any month",justOnce:"Just once",shipsWith:month=>`Ships with ${possessive(month)} package`,justOnceShipsNow:placeholder("product.just_once_meta"),oneFewer:"One fewer",oneMore:"One more",quantity:"Quantity",addToPackage:month=>`Add to ${possessive(month)} package`,refillInPackage:month=>`Refill in ${possessive(month)} package`,buyNow:placeholder("product.buy_now"),startPlan:placeholder("product.start_plan"),adding:"Adding…",outOfStockNow:"Out of stock right now.",prescription:"Prescription",noPrescriptionFor:name=>`No prescription for ${name} on file.`,bookVideoVisit:"Book a video visit",refillsLeft:n=>`${n} ${n===1?"refill":"refills"} left`,rxBeingPrepared:"This prescription is being prepared. You can order it soon.",rxTooSoon:placeholder("rx.too_soon"),rxRenew:placeholder("rx.needs_renewal"),rxPick:placeholder("rx.pick_pet"),educational:"Educational, not a diagnosis.",planTitle:"Your plan",whatRepeats:"What repeats",repeatsLabel:title=>`${title} repeats`,cadenceMonths:months=>months===1?"Every month":`Every ${months} months`,cadenceDays:placeholder("plan.cadence_days"),repeatsEmpty:"Nothing repeats yet. Pick Every month when you add something, and it shows up here.",nextPackage:"Next package",reviewByLabel:"Review by",ships:"Ships",reviewMonthsPackage:month=>`Review ${possessive(month)} package →`,deliveryAndPayment:"Delivery and payment",shipTo:"Ship to",payWith:"Pay with",needABreak:"Need a break?",skipMonth:month=>`Skip ${month}`,skipMonthAsk:month=>`Skip ${month}?`,skipMonthBody:"Nothing ships this month.",pausePlan:"Pause the plan",pausePlanAsk:"Pause the plan?",pausePlanBody:"Nothing ships until you turn it back on.",declined:month=>month?`Declined. Update your card so ${possessive(month)} package can ship.`:"Declined.",resumePlan:placeholder("plan.resume"),stopReason:reason=>placeholder(`plan.stop_reason.${reason}`),consentTitle:placeholder("plan.consent_title"),consentBody:placeholder("plan.consent_body"),consentTermsLink:placeholder("plan.consent_terms_link"),consentAgree:placeholder("plan.consent_agree"),ordersTitle:"Orders",ordersSub:names=>`Packages and one-off orders for ${listNames(names)}.`,allOrders:"All orders",placed:day=>`Placed ${day}`,ordersEmpty:"No orders yet. Your first package shows up here once you approve it.",paymentFailed:"Payment failed",backToCare:"Care",onItsWay:title=>`${title}, on its way`,shouldArrive:day=>`It should arrive ${day}.`,whereItStands:"Where it stands",stepApproved:"Approved",stepChecking:"Checking prescriptions…",stepFilled:"Filled by the pharmacy",stepShipped:"Shipped",stepDelivered:"Delivered",now:"Now",expected:day=>`Expected ${day}.`,inTheBox:"In the box",payment:"Payment",cancelOrder:placeholder("order.cancel"),payOrder:placeholder("order.pay"),trackPackage:placeholder("order.track"),orderStatus:{pending_placement:"Confirmed, sending to the pharmacy",placement_unknown:"Confirmed",placed:"With the pharmacy, in review",accepted:"Approved by the pharmacist",release_sent:"Approved, being prepared",release_unknown:"Approved, being prepared",released:"Being prepared",shipped:"Shipped",delivered:"Delivered",needs_support:"We’re looking into this order",rejected:placeholder("order.status.rejected"),cancelled:"Cancelled",pending_handoff:placeholder("order.status.pending_handoff")},addressTitle:placeholder("address.title"),addressLabel:placeholder("address.label"),addressRecipient:placeholder("address.recipient_name"),addressLine1:placeholder("address.line1"),addressLine2:placeholder("address.line2"),addressCity:placeholder("address.city"),addressRegion:placeholder("address.region"),addressPostal:placeholder("address.postal_code"),addressSave:placeholder("address.save"),addressNeeded:placeholder("address.needed"),cardTitle:placeholder("card.title"),cardBody:placeholder("card.body"),cardStart:placeholder("card.start"),cardUnavailable:placeholder("card.unavailable"),confirmTitle:placeholder("buy.confirm_title"),confirmPay:placeholder("buy.confirm_pay"),nameMissing:placeholder("checkout.name_missing"),addName:placeholder("checkout.add_name"),firstName:placeholder("checkout.first_name"),lastName:placeholder("checkout.last_name"),saveName:placeholder("checkout.save_name"),refusal:{operation_not_supported:"This action isn’t available for this order.",order_not_sellable:"We can’t ship this order as it is. Add items or contact us.",rx_being_prepared:"This prescription is being prepared. You can order it soon.",rx_not_dispensable:PHARMACY_REFUSAL,...Object.fromEntries(PHARMACY_REFUSALS.map(code=>[code,PHARMACY_REFUSAL])),order_state_conflict:"This order changed. Refresh and try again.",payment_method_in_use:"A subscription or an order uses this card."},rateLimited:placeholder("error.rate_limited")},SHOP_COPY_PLACEHOLDERS=(()=>{let keys=/* @__PURE__ */new Set,visit=v=>{if(typeof v=="string"){let m=/^\[copy:(shop\.[a-z0-9_.]+)\]$/.exec(v);m&&keys.add(m[1])}else if(typeof v=="function")try{visit(v("x","x","x"))}catch{}else if(v&&typeof v=="object")for(let inner of Object.values(v))visit(inner)};return visit(SHOP_COPY),[...keys].sort()})();function shopCopy(overrides){return overrides?{...SHOP_COPY,...overrides}:SHOP_COPY}function refusalLine(copy,error){if(error.kind==="rateLimited")return copy.rateLimited;if(error.kind==="refused"){if(isNameRequired(error))return copy.nameMissing;let own=error.reasonCode?copy.refusal[error.reasonCode]:void 0;if(own)return own;if(error.message)return error.message}return copy.actionFailed}var SHOP_V3_COPY={cartTitle:"Cart",cartLabel:n=>n>0?`Cart, ${n} item${n>1?"s":""}`:"Cart, empty",cartEmptyTitle:"Your cart is empty",cartEmptyBody:null,addToCart:"Add to cart",viewCart:"View cart",addedToCart:name=>`${name} is in your cart.`,removedFromCart:name=>`${name} is out of your cart.`,quantityLabel:name=>`How many: ${name}`,fewer:"One fewer",more:"One more",remove:"Remove",subtotal:"Subtotal",shipping:"Shipping",tax:"Tax",free:"Free",total:"Total",checkoutCart:total=>`Checkout · ${total}`,checkoutKicker:"Checkout",itemQuantity:n=>`Qty ${n}`,shipsTo:"Ships to",payWith:"Pay with",placeOrder:total=>`Place order · ${total}`,chooseAddress:placeholder("checkout.choose_address"),chooseCard:placeholder("checkout.choose_card"),addAddress:placeholder("checkout.add_address"),addCard:placeholder("card.start"),makeDefault:placeholder("address.make_default"),editAddress:placeholder("address.edit"),noAddressYet:placeholder("address.needed"),noCardYet:placeholder("package.no_card_on_file"),placedHeader:"Order placed",placedTitle:"Order placed.",placedSteps:"What's coming",placedShips:"It ships.",placedArrives:"It arrives at home.",viewOrder:"View order",ordersTitle:"Orders",ordersEmptyTitle:"No orders yet",ordersEmptyBody:null,moreOrders:placeholder("orders.more"),subscriptionBox:"Subscription box",orderTitle:n=>n===null?"Order":`Order ${n}`,arrivesBy:day=>`Arrives by ${day}`,deliveredOn:day=>`Delivered ${day}`,expected:day=>`Expected ${day}`,orderSteps:["Ordered","Shipped","Out for delivery","Delivered"],tracking:"Tracking",trackOn:carrier=>`Track on ${carrier}`,inThisOrder:"In this order",orderItemLine:n=>`Qty ${n}`,buyAgain:"Buy again",orderHelp:"Get help with this order",paidWith:"Paid with",refund:placeholder("order.refund"),discount:placeholder("order.discount"),cancelAsk:placeholder("order.cancel_ask"),cancelBody:null,cancelRequested:placeholder("order.cancel_requested"),close:"Close",manageKicker:"Your subscription",manageTitle:name=>`Manage ${name}`,manage:"Manage",shipsEvery:"Ships every",daysChip:n=>`${n} days`,skipNext:"Skip the next box",cancelSubscription:"Cancel subscription",nextBox:day=>`Next box ${day}`,everyDays:n=>`Every ${n} days`,subscribedLine:(n,next)=>next===null?`Every ${n} days`:`Every ${n} days · next box ${next}`,skipped:"Skipped.",cancelSubscriptionAsk:placeholder("plan.cancel_ask"),cancelSubscriptionBody:placeholder("plan.cancel_body")},SHOP_V3_COPY_PLACEHOLDERS=Object.values(SHOP_V3_COPY).filter(v=>typeof v=="string"&&v.startsWith("[copy:"));function shopV3Copy(overrides){if(!overrides)return SHOP_V3_COPY;let own={};for(let[k,v]of Object.entries(overrides))k in SHOP_V3_COPY&&v!==void 0&&(own[k]=v);return{...SHOP_V3_COPY,...own}}var ShopContext=react.createContext(null);function ShopProvider(props){let{client:client,pets:pets,payments:payments,packageSource:packageSource,copy:copy,v3Copy:v3Copy,saveProfileName:saveProfileName,onProfileNameRequired:onProfileNameRequired,children:children}=props,saveName=react.useRef(saveProfileName);saveName.current=saveProfileName;let editName=react.useRef(onProfileNameRequired);editName.current=onProfileNameRequired;let canSave=!!saveProfileName,canEdit=!!onProfileNameRequired,value=react.useMemo(()=>{let list=pets??[],names=new Map(list.map(p=>[p.petId,p.name]));return{client:client,pets:list,petName:id=>id?names.get(id)??null:null,payments:payments??null,packageSource:packageSource??createOmsPackageSource(client),copy:shopCopy(copy),v3:shopV3Copy(v3Copy),saveProfileName:canSave?name=>saveName.current?saveName.current(name):Promise.resolve(false):null,onProfileNameRequired:canEdit?()=>editName.current?.():null}},[client,pets,payments,packageSource,copy,v3Copy,canSave,canEdit]);return react.createElement(ShopContext.Provider,{value:value},children)}function useShop(){let ctx=react.useContext(ShopContext);if(!ctx)throw new EverfurConfigError("not-initialized","useShop: wrap the shop in <ShopProvider>");return ctx}function useShopRead(key,read){let[state,setState]=react.useState({key:null,phase:"loading",value:null,error:null}),epoch=react.useRef(0),inflight=react.useRef(null),readRef=react.useRef(read);readRef.current=read;let load=react.useCallback(quiet=>{let mine=++epoch.current;if(key===null)return Promise.resolve();quiet||setState({key:key,phase:"loading",value:null,error:null});let done=readRef.current().then(res=>{if(mine!==epoch.current)return;if(res.ok){setState({key:key,phase:"ready",value:res.value,error:null});return}let next={key:key,phase:res.error.kind==="unavailable"?"unavailable":"failed",value:null,error:res.error};quiet&&next.phase==="failed"?setState(prev=>prev.key===key&&prev.phase==="ready"?prev:next):setState(next)},()=>{});return inflight.current={epoch:mine,done:done},done.then(()=>{inflight.current?.epoch===mine&&(inflight.current=null)}),done},[key]);react.useEffect(()=>(load(false),()=>{epoch.current+=1}),[load]);let refresh=react.useCallback(()=>{load(false)},[load]),reread=react.useCallback(()=>{let running=inflight.current;return running&&running.epoch===epoch.current?running.done:load(true)},[load]);return state.key!==key?{phase:"loading",value:null,error:null,refresh:refresh,reread:reread}:{phase:state.phase,value:state.value,error:state.error,refresh:refresh,reread:reread}}function useShopConfig(){let{client:client}=useShop();return useShopRead("shop-config",()=>client.shopConfig())}function useOffers(query={}){let{client:client}=useShop(),text=query.text?.trim()??"",key=`offers:${text}:${query.requiresRx??""}`;return useShopRead(key,()=>client.offers({...text?{text:text}:{},...query.requiresRx!==void 0?{requiresRx:query.requiresRx}:{},limit:100}))}function useOffer(offerId){let{client:client}=useShop();return useShopRead(offerId?`offer:${offerId}`:null,()=>client.offer(offerId))}function usePrescriptions(){let{client:client}=useShop();return useShopRead("prescriptions",()=>client.prescriptions())}function useAddresses(){let{client:client}=useShop();return useShopRead("addresses",()=>client.addresses())}function useAddress(ref){let{client:client}=useShop();return useShopRead(ref?`address:${ref}`:null,()=>client.address(ref))}function usePaymentMethods(){let{client:client}=useShop();return useShopRead("payment-methods",()=>client.paymentMethods())}function useOrder(orderId){let{client:client}=useShop();return useShopRead(orderId?`order:${orderId}`:null,()=>client.order(orderId))}function usePlans(){let{client:client}=useShop();return useShopRead("plans",()=>client.plans({limit:100}))}function usePackage(){let{packageSource:packageSource}=useShop();return useShopRead("package",()=>packageSource.load())}function useShopAction(act){let[busy,setBusy]=react.useState(false),[error,setError]=react.useState(null),keys=react.useRef(null),running=react.useRef(false),actRef=react.useRef(act);actRef.current=act;let mounted=react.useRef(true);react.useEffect(()=>(mounted.current=true,()=>{mounted.current=false}),[]);let run=react.useCallback(async(...args)=>{if(running.current)return null;running.current=true,keys.current??=new ShopActionKeys,setBusy(true),setError(null);try{let res=await actRef.current(keys.current,...args);return res.ok?keys.current=null:isRetryWithSameKey(res.error)||(keys.current=null),mounted.current&&setError(res.ok?null:res.error),res}finally{running.current=false,mounted.current&&setBusy(false)}},[]),reset=react.useCallback(()=>{keys.current=null,setError(null)},[]);return{busy:busy,error:error,run:run,reset:reset}}function isRetryWithSameKey(error){return error.kind==="network"||error.kind==="timeout"||error.kind==="serviceUnavailable"||error.kind==="serverError"}function distinct(xs){let out=[];for(let x of xs)x!==null&&!out.includes(x)&&out.push(x);return out}var FORMS=[[/\b(inject(ion|able)?|vial|syringe|pen)s?\b/i,"syringe"],[/\b(chew(able)?|soft ?chew|treat)s?\b/i,"bowl"],[/\b(shampoo|spray|ointment|cream|gel|lotion|topical|spot[- ]on|otic|ophthalmic|wipe|foam|mousse|collar)s?\b/i,"shield"],[/\b(solution|suspension|liquid|syrup|elixir|drops?|oral ?paste|paste)s?\b/i,"flask"],[/\b(tablet|caplet|capsule|tab|cap|pill)s?\b/i,"pill"]];function drugFormIcon(title,form){for(let text of[title,form]){if(!text)continue;let hit=FORMS.find(([re])=>re.test(text));if(hit)return hit[1]}return"pill"}function tileFor(rx,title,form){return rx?{tone:"pink",icon:drugFormIcon(title,form)}:{tone:"yellow",icon:"leaf"}}var DRUG_FORMS=[[FORMS[0][0],"injection"],[FORMS[1][0],"chew"],[FORMS[2][0],"topical"],[FORMS[3][0],"liquid"],[/\b(capsule|cap)s?\b/i,"capsule"],[/\b(tablet|caplet|tab|pill)s?\b/i,"tablet"]];function drugForm(rx,title,form){if(!rx)return null;for(let text of[title,form]){if(!text)continue;let hit=DRUG_FORMS.find(([re])=>re.test(text));if(hit)return hit[1]}return"unknown"}var FORM_TILES={tablet:{tone:"pink",icon:"pill"},capsule:{tone:"sage",icon:"pill"},liquid:{tone:"base",icon:"flask"},injection:{tone:"base",icon:"syringe"},chew:{tone:"yellow",icon:"bowl"},topical:{tone:"sage",icon:"shield"},unknown:{tone:"pink",icon:"pill"}};function formTile(form){return form?FORM_TILES[form]:{tone:"yellow",icon:"leaf"}}function addressLine(a){return`${a.line2?`${a.line1}, ${a.line2}`:a.line1}, ${a.city}, ${a.region?`${a.region} `:""}${a.postalCode}`}function rxPill(copy){return{label:copy.rx,tone:"rx"}}function refillsLeft(rx){return rx.fillsTotal!==null&&rx.fillsUsed!==null?Math.max(0,rx.fillsTotal-Math.max(rx.fillsUsed,1)):null}function toPackageView(i){let{pkg:pkg,copy:copy,petName:petName}=i,review=pkg.review,month=monthOf(review.shipsOn),names=distinct(pkg.lines.map(l=>petName(l.petId))),open=review.state==="open",priced=new Map(review.quoteLines.map(q=>[`${q.offerId}:${q.petId??""}`,q])),items=pkg.lines.map((line,index)=>{let offer=line.offer,q=priced.get(`${line.offerId}:${line.petId??""}`),rx=offer?.requiresRx??false,pills=[];return offer||pills.push({label:copy.outOfStock,tone:"later"}),{petId:line.petId,view:{key:`${line.offerId}:${line.petId??""}:${index}`,name:offer?.title??copy.itemNoLongerSold,rx:rx,meta:null,alert:offer?null:copy.packageOutOfStock,pills:pills,price:q&&offer?formatCents(q.unitPrice*q.quantity-q.discount):null,...tileFor(rx,offer?.title),details:offer?{label:copy.details,to:{name:"product",offerId:offer.offerId,...line.petId?{petId:line.petId}:{}}}:null,remove:open?{label:copy.remove,busy:i.removing===index,disabled:i.removing!==null,onPress:()=>i.onRemove(index)}:null}}}),groups=[];for(let it of items){let name=petName(it.petId),label=name?copy.forPet(name):null,existing=groups.find(g=>g.label===label);existing?existing.items.push(it.view):groups.push({label:label,items:[it.view]})}let sum=[],d=pkg.draft;d?(sum.push({k:copy.items,v:formatCents(d.total-d.shipping-d.tax)}),sum.push({k:copy.shipping,v:d.shipping===0?copy.free:formatCents(d.shipping)}),sum.push({k:copy.tax,v:formatCents(d.tax)}),sum.push({k:copy.total,v:formatCents(d.total)})):review.quoteLines.length>0&&sum.push({k:copy.items,v:formatCents(review.quoteLines.reduce((n,q)=>n+q.unitPrice*q.quantity-q.discount,0))});let card=i.card?cardLabel(i.card.brand,i.card.last4):null,anyRx=pkg.lines.some(l=>l.offer?.requiresRx),note=card?[copy.chargedWhenShips(card),anyRx?copy.rxCheckedFirst:null].filter(Boolean).join(" "):null,error=i.error;!error&&review.state==="approving"?error=copy.approvalInProgress:!error&&review.state!=="open"&&review.state!==null?error=copy.reviewClosed:!error&&open&&!i.card&&(error=copy.noCardOnFile);let approve=open&&d&&i.card?{label:copy.approveAndShip,busyLabel:copy.approving,busy:i.approving,disabled:i.approving||i.placed===true||i.removing!==null,onPress:i.onApprove}:null;return{title:month?copy.packageTitle(month):copy.tabPackage,sub:copy.packageSub(names,formatDay(review.approveBy,{weekday:true}),null),reviewPill:review.approveBy&&open?copy.reviewBy(formatDay(review.approveBy)):null,countPill:pkg.lines.length>0?copy.itemCount(pkg.lines.length):null,fine:null,groups:pkg.lines.length>0?groups:[],empty:pkg.lines.length===0?{line:month?copy.packageEmpty(month):copy.nothingHereYet,shop:{label:copy.tabShop,to:{name:"shop"}},skip:null}:null,add:null,sum:sum,approve:approve,skip:open?{label:copy.skipThisMonth,to:{name:"plan"}}:null,note:note,error:error,delivery:i.address?[{k:copy.shipTo,v:addressLine(i.address),change:{label:copy.change,to:{name:"address",then:{name:"package"}}}}]:[],legal:copy.legal}}function readyRxFor(offerId,prescriptions){return prescriptions.filter(p=>p.status==="ready"&&p.offerId===offerId)}function toTile(offer,prescriptions,copy,petName,forPetId=null){let pills=[],meta=null,petId=forPetId,holder;return offer.requiresRx&&(pills.push(rxPill(copy)),holder=readyRxFor(offer.offerId,prescriptions).find(p=>petName(p.petId)),petId=holder?.petId??forPetId,meta=holder?copy.hasPrescription(petName(holder.petId)):copy.needsPrescription),{key:offer.offerId,to:{name:"product",offerId:offer.offerId,...petId?{petId:petId}:{}},name:offer.title,meta:meta,price:offer.price!==null?formatCents(offer.price):null,pills:pills,...tileFor(offer.requiresRx,offer.title,holder?.form),form:drugForm(offer.requiresRx,offer.title,holder?.form),imageUrl:offer.imageUrl??null}}function isFirstFill(rx){return rx.fillsUsed===null||rx.fillsUsed===0}function toShelves(i){let{copy:copy}=i,tile=o=>toTile(o,i.prescriptions,copy,i.petName,i.petId??null),shelves=[],byId=/* @__PURE__ */new Map;for(let o of[...i.offers,...i.prescribed??[]])byId.set(o.offerId,o);let first=[],refill=[],firstPets=[];if(!i.searching){let ready=i.prescriptions.filter(p=>p.status==="ready"&&p.offerId!==null&&i.petName(p.petId));for(let offerId of distinct(ready.map(p=>p.offerId))){let o=byId.get(offerId);if(!o||!o.requiresRx)continue;let holders=ready.filter(p=>p.offerId===offerId);if(holders.every(isFirstFill)){first.push(o);for(let p of holders)firstPets.includes(i.petName(p.petId))||firstPets.push(i.petName(p.petId))}else refill.push(o)}}first.length>0&&shelves.push({key:"prescribed",title:copy.prescribedFor(firstPets),link:null,tiles:first.map(tile)}),refill.length>0&&shelves.push({key:"refill",title:copy.refillSoon,link:i.packageMonth?{label:copy.inMonthsPackage(i.packageMonth),to:{name:"package"}}:null,tiles:refill.map(tile)});let above=new Set([...first,...refill].map(o=>o.offerId));return shelves.push({key:"all",title:i.petNames.length>0?copy.forPets(i.petNames):copy.allProducts,link:null,tiles:i.offers.filter(o=>!above.has(o.offerId)).map(tile)}),shelves}function toProductView(i){let{copy:copy,offer:offer}=i,monthly=i.plansOn&&i.petName!==null,choice=monthly?i.choice:"once",submitLabel=choice==="monthly"?i.packageMonth?copy.addToPackage(i.packageMonth):copy.startPlan:copy.buyNow,sellable=offer.price!==null;return{back:{label:copy.backToShop,to:{name:"shop"}},title:offer.title,sub:null,price:sellable?formatCents(offer.price):null,priceUnit:null,...tileFor(false),form:null,imageUrl:offer.imageUrl??null,source:null,stockLine:sellable?null:copy.outOfStockNow,choices:monthly?[{value:"monthly",title:copy.everyMonthIn(i.petName),meta:copy.skipOrStop},{value:"once",title:copy.justOnce,meta:copy.justOnceShipsNow}]:null,choice:monthly?choice:null,onChoice:v=>i.onChoice(v==="once"?"once":"monthly"),quantity:i.quantity,onQuantity:n=>i.onQuantity(Math.min(99,Math.max(1,n))),submit:sellable?{label:submitLabel,busyLabel:copy.adding,busy:i.busy,disabled:i.busy,onPress:i.onSubmit}:{label:copy.outOfStock,disabled:true,onPress:()=>{}},error:i.error,facts:null,cards:[],aside:null,legal:copy.legal}}function toRxProductView(i){let{copy:copy,offer:offer}=i,ready=readyRxFor(offer.offerId,i.prescriptions).filter(p=>i.petName(p.petId)),rx=(i.petId?ready.find(p=>p.petId===i.petId):void 0)??ready[0]??null,sellable=offer.price!==null,script=null,submit=null,form=rx?.form??null;if(rx){let left=refillsLeft(rx);script={name:copy.hasPrescription(i.petName(rx.petId)),meta:left!==null&&left>0?copy.refillsLeft(left):null,directions:null},submit=sellable?{label:i.packageMonth?copy.refillInPackage(i.packageMonth):copy.buyNow,busyLabel:copy.adding,busy:i.busy,disabled:i.busy,onPress:()=>i.onSubmit(rx)}:{label:copy.outOfStock,disabled:true,onPress:()=>{}}}else{let held=i.prescriptions.filter(p=>p.offerId===offer.offerId&&(p.status==="being_prepared"||p.status==="too_soon")&&i.petName(p.petId)),wait=(i.petId?held.find(p=>p.petId===i.petId):void 0)??held[0]??null;if(wait)script={name:copy.hasPrescription(i.petName(wait.petId)),meta:wait.status==="being_prepared"?copy.rxBeingPrepared:copy.rxTooSoon,directions:null},submit=null,form=wait.form;else{let who=(i.petId?i.petName(i.petId):null)??i.firstPetName;script=who?{name:copy.noPrescriptionFor(who),meta:null,directions:null}:null,submit=i.bookVisitHref?{label:copy.bookVideoVisit,href:i.bookVisitHref}:null}}return{back:{label:copy.backToShop,to:{name:"shop"}},stepLabel:copy.prescription,title:offer.title,sub:null,price:sellable?formatCents(offer.price):null,priceUnit:null,...tileFor(true,offer.title,form),form:drugForm(true,offer.title,form),imageUrl:offer.imageUrl??null,script:script,stockLine:sellable?null:copy.outOfStockNow,submit:submit,note:null,error:i.error,cards:[],aside:null,legal:copy.legal}}function cadenceLine(days,copy){let months=Math.round(days/30.4);return months>=1&&Math.abs(days-months*30.4)<=2?copy.cadenceMonths(months):copy.cadenceDays}function toPlanView(i){let{copy:copy}=i,live=i.plans.filter(p=>p.state!=="cancelled"),rows=[];for(let plan of live)plan.lines.forEach((line,n)=>{let offer=i.offers.get(line.offerId)??null,pet=i.petName(line.petId),title=[offer?.title??copy.itemNoLongerSold,pet].filter(Boolean).join(" · "),stop=plan.stopReason,meta=stop==="payment_declined"?copy.declined(i.packageMonth):stop&&stop!=="customer"?copy.stopReason(stop):cadenceLine(plan.cadenceDays,copy);rows.push({key:`${plan.planId}:${n}`,title:title,meta:meta,alert:!!(stop&&stop!=="customer"),on:plan.state==="active",busy:i.busyPlan===plan.planId,onToggle:on=>i.onToggle(plan,on),error:i.rowError&&i.rowError.planId===plan.planId&&n===0?i.rowError.line:null})});let active=live.find(p=>p.state==="active")??null,sum=[],reviewBy=formatDay(i.reviewBy,{weekday:true});reviewBy&&sum.push({k:copy.reviewByLabel,v:reviewBy});let ships=formatDay(active?.nextRun??null,{weekday:true});ships&&sum.push({k:copy.ships,v:ships});let declined=live.some(p=>p.stopReason==="payment_declined"),delivery=[];i.address&&delivery.push({k:copy.shipTo,v:addressLine(i.address),change:{label:copy.change,to:{name:"address",then:{name:"plan"}}}}),i.card&&delivery.push({k:copy.payWith,v:cardLabel(i.card.brand,i.card.last4),alert:declined?copy.declined(i.packageMonth):null,change:{label:copy.change,to:{name:"card",then:{name:"plan"}}}});let month=i.packageMonth??monthOf(active?.nextRun??null);return{sub:null,rows:rows,emptyLine:rows.length===0?copy.repeatsEmpty:null,next:active&&sum.length>0?{sum:sum,link:i.packageMonth?{label:copy.reviewMonthsPackage(i.packageMonth),to:{name:"package"}}:null}:null,delivery:delivery,breakCard:active?{skip:month?{label:copy.skipMonth(month),ask:copy.skipMonthAsk(month),body:copy.skipMonthBody}:null,pause:{label:copy.pausePlan,ask:copy.pausePlanAsk,body:copy.pausePlanBody},busy:i.breakBusy,error:i.breakError,onConfirm:i.onBreak}:null,legal:copy.legal}}var STEP_OF={pending_placement:1,placement_unknown:1,placed:1,accepted:2,release_sent:2,release_unknown:2,released:2,shipped:3,delivered:5};var SharedContext=react.createContext(null),ShopSharedProvider=SharedContext.Provider;function useShopShared(){let s=react.useContext(SharedContext);if(!s)throw new EverfurConfigError("not-initialized","shop screens render inside EverfurShop");return s}function packageMonth(pkg){return pkg.phase==="ready"&&pkg.value?monthOf(pkg.value.review.shipsOn):null}function loadable(read,map){return read.phase==="ready"&&read.value!==null?{phase:"ready",value:map(read.value)}:read.phase==="loading"?{phase:"loading"}:{phase:"failed",retry:read.refresh}}function pickCard(cards,id){return!cards||cards.length===0?null:(id?cards.find(c=>c.paymentMethodId===id):void 0)??cards[0]??null}function useOffersById(ids){let{client:client}=useShop(),unique=[...new Set(ids)].sort();return useShopRead(`offers-by-id:${unique.join(",")}`,async()=>{let read=await Promise.all(unique.map(id=>client.offer(id)));return omsOk(new Map(unique.map((id,i)=>[id,read[i].ok?read[i].value:null])))})}function outcomeLine(copy,outcome){return outcome.kind==="confirmed"?null:outcome.kind==="needsPayerAction"?copy.cardStepFailed:outcome.kind==="payerActionFailed"?outcome.message??copy.cardStepFailed:outcome.kind==="payerActionClosed"?copy.cardStepClosed:outcome.error.kind==="refused"&&outcome.error.reasonCode==="price_changed"?copy.priceChanged:refusalLine(copy,outcome.error)}var orderNotices=/* @__PURE__ */new WeakMap;function leaveOrderNotice(client,orderId,line){let notices=orderNotices.get(client);notices||(notices=/* @__PURE__ */new Map,orderNotices.set(client,notices)),line?notices.set(orderId,line):notices.delete(orderId)}function peekOrderNotice(client,orderId){return orderNotices.get(client)?.get(orderId)??null}function dropOrderNotice(client,orderId){orderNotices.get(client)?.delete(orderId)}var CARD_PAGE_NOTICE="\0card";function usePackageScreen(go){let{copy:copy,petName:petName,packageSource:packageSource,payments:payments,client:client}=useShop(),{tabs:tabs,pkg:pkg}=useShopShared(),plan=pkg.phase==="ready"?pkg.value?.plan??null:null,cards=usePaymentMethods(),address=useAddress(plan?.destination??null),[removing,setRemoving]=react.useState(null),[error,setError]=react.useState(null),[approving,setApproving]=react.useState(false),[placed,setPlaced]=react.useState(false),remove=useShopAction((keys,p,index)=>packageSource.removeLine(p,index,keys));if(pkg.phase==="ready"&&pkg.value===null)return{tabs:tabs,view:{phase:"failed",retry:pkg.refresh}};let view=loadable(pkg,p=>toPackageView({pkg:p,card:pickCard(cards.value,p.plan.paymentMethodId),address:address.value?.address??null,copy:copy,petName:petName,removing:removing,approving:approving,placed:placed,error:error,onRemove:index=>{setRemoving(index),setError(null),remove.run(p,index).then(res=>{setRemoving(null),res&&res.ok?pkg.refresh():res&&setError(refusalLine(copy,res.error))})},onApprove:()=>{approving||placed||(setApproving(true),setError(null),(async()=>{let outcome=await approveOnce(packageSource,p,payments);setApproving(false);let line=outcomeLine(copy,outcome),orderId=outcome.kind!=="failed"?outcome.orderIds[0]:void 0;orderId?(setPlaced(true),leaveOrderNotice(client,orderId,line),go({name:"order",orderId:orderId})):(setError(line),outcome.kind==="failed"&&outcome.error.kind==="refused"&&pkg.refresh())})())}}));return{tabs:tabs,view:view}}var approvalKeys=/* @__PURE__ */new WeakMap;async function approveOnce(source,p,payments){let keys=approvalKeys.get(p);keys||(keys=new ShopActionKeys,approvalKeys.set(p,keys));let out=await source.approve(p,keys,payments);return(out.kind!=="failed"||out.error.kind==="refused")&&approvalKeys.delete(p),out}function useDebounced(value,ms){let[v,setV]=react.useState(value);return react.useEffect(()=>{let t=setTimeout(()=>setV(value),ms);return()=>clearTimeout(t)},[value,ms]),v}function useShopScreen(initialQuery){let{client:client,copy:copy,petName:petName,pets:pets}=useShop(),{tabs:tabs,pkg:pkg}=useShopShared(),[query,setQuery]=react.useState(initialQuery??""),text=useDebounced(query,250),offers=useOffers({text:text}),rx=usePrescriptions(),prescriptions=rx.value??[],names=pets.map(p=>p.name),month=packageMonth(pkg),prescribedIds=prescriptions.filter(p=>p.status==="ready"&&p.offerId!==null&&petName(p.petId)).map(p=>p.offerId),prescribed=useOffersById(prescribedIds),first=offers.phase==="ready"?offers.value??null:null,[laterState,setLater]=react.useState(null),later=laterState&&first&&laterState.first===first?laterState:null,cursor=later?later.cursor:first?.nextCursor??null,moreBusy=react.useRef(false),onMore=react.useCallback(()=>{if(!first||!cursor||moreBusy.current)return;moreBusy.current=true,setLater(l=>({first:first,offers:l&&l.first===first?l.offers:[],cursor:cursor,loading:true,failed:false}));let words=text.trim();client.offers({...words?{text:words}:{},cursor:cursor,limit:100}).then(res=>{moreBusy.current=false,setLater(l=>!l||l.first!==first?l:res.ok?{first:first,offers:[...l.offers,...res.value.offers],cursor:res.value.nextCursor,loading:false,failed:false}:{...l,loading:false,failed:true})})},[client,first,cursor,text]),shelves,prescribedWait=rx.phase==="loading"||prescribedIds.length>0&&prescribed.phase==="loading";if(first&&!prescribedWait){let seen=/* @__PURE__ */new Set,all=[];for(let o of[...first.offers,...later?.offers??[]])seen.has(o.offerId)||(seen.add(o.offerId),all.push(o));shelves={phase:"ready",value:toShelves({offers:all,prescribed:[...prescribed.value?.values()??[]].filter(o=>o!==null),prescriptions:prescriptions,copy:copy,petName:petName,petNames:names,packageMonth:month,searching:text.trim()!=="",petId:pets.length===1?pets[0].petId:null})}}else offers.phase==="loading"||prescribedWait?shelves={phase:"loading"}:offers.phase==="unavailable"?shelves={phase:"ready",value:[]}:shelves={phase:"failed",retry:offers.refresh};let count=shelves.phase==="ready"?shelves.value.reduce((n,s)=>n+s.tiles.length,0):1,empty=shelves.phase==="ready"&&count===0?text.trim()?copy.noMatches(text.trim()):copy.nothingHereYet:null,more=first&&cursor?{onMore:onMore,loading:later?.loading??false,failed:later?.failed??false}:null;return{tabs:tabs,view:{sub:null,query:query,onQuery:setQuery,filters:[],shelves:shelves,empty:empty,legal:copy.legal,more:more}}}function lineFor(offer,quantity,petId,rx){return{offerId:offer.offerId,quantity:rx?.packCount??quantity,...rx?.petId??petId?{petId:rx?.petId??petId}:{},...rx?{rxId:rx.rxId}:{}}}function routeFor(name,line){return{name:name,offerId:line.offerId,quantity:line.quantity,...line.petId?{petId:line.petId}:{},...line.rxId?{rxId:line.rxId}:{}}}function useProductScreen(offerId,petId,go){let{copy:copy,petName:petName,pets:pets,client:client}=useShop(),{config:config,pkg:pkg,bookVisitHref:bookVisitHref}=useShopShared(),offer=useOffer(offerId),rx=usePrescriptions(),[choice,setChoice]=react.useState("monthly"),[quantity,setQuantity]=react.useState(1),[error,setError]=react.useState(null),month=packageMonth(pkg),plans=usePlans(),plan=(pkg.phase==="ready"?pkg.value?.plan??null:null)??plans.value?.plans.find(p=>p.state==="active")??null,addToPlan=useShopAction((keys,p,line)=>client.updatePlan(p.planId,{idempotencyKey:keys.key("add"),lines:[...p.lines.map(l=>({offerId:l.offerId,quantity:l.quantity,...l.petId?{petId:l.petId}:{}})),line]})),submit=(line,monthly)=>{if(setError(null),!monthly)return go(routeFor("buy",line));if(!plan)return go(routeFor("consent",line));addToPlan.run(plan,line).then(res=>{res&&res.ok?(pkg.refresh(),go({name:"package"})):res&&setError(refusalLine(copy,res.error))})};if(offer.phase==="ready"&&offer.value?.requiresRx){let o=offer.value,base={offer:o,copy:copy,petId:petId??null,petName:petName,firstPetName:pets[0]?.name??null,packageMonth:month,error:error,bookVisitHref:bookVisitHref};return rx.phase==="unavailable"?{kind:"rx",view:{phase:"ready",value:toRxProductView({...base,prescriptions:[],busy:false,onSubmit:()=>{}})}}:{kind:"rx",view:loadable(rx,list=>toRxProductView({...base,prescriptions:list,busy:addToPlan.busy,onSubmit:p=>submit(lineFor(o,1,null,p),plan!==null)}))}}let petForChoice=(petId?petName(petId):null)??pets[0]?.name??null;return{kind:"product",view:loadable(offer,o=>toProductView({offer:o,copy:copy,petName:petForChoice,packageMonth:month,plansOn:config.recurringTermsVersion!==null,choice:choice,onChoice:setChoice,quantity:quantity,onQuantity:setQuantity,busy:addToPlan.busy,error:error,onSubmit:()=>submit(lineFor(o,quantity,petId??pets[0]?.petId??null,null),choice==="monthly"&&config.recurringTermsVersion!==null&&petForChoice!==null)}))}}function usePlanScreen(){let{copy:copy,petName:petName,client:client}=useShop(),{tabs:tabs,pkg:pkg}=useShopShared(),plans=usePlans(),cards=usePaymentMethods(),live=(plans.value?.plans??[]).filter(p=>p.state!=="cancelled"),active=live.find(p=>p.state==="active")??live[0]??null,address=useAddress(active?.destination??null),offers=useOffersById(live.flatMap(p=>p.lines.map(l=>l.offerId))),[busyPlan,setBusyPlan]=react.useState(null),[rowError,setRowError]=react.useState(null),[breakError,setBreakError]=react.useState(null),toggle=useShopAction((keys,p,on)=>client.planAction(p.planId,{idempotencyKey:keys.key(on?"resume":"pause"),operation:on?"resume":"pause"})),brk=useShopAction((keys,p,which)=>client.planAction(p.planId,{idempotencyKey:keys.key(which),operation:which})),month=packageMonth(pkg);if(plans.phase==="unavailable")return{tabs:tabs,view:{phase:"failed",retry:plans.refresh}};let view=loadable(plans,()=>toPlanView({plans:live,offers:offers.value??/* @__PURE__ */new Map,copy:copy,petName:petName,card:pickCard(cards.value,active?.paymentMethodId??null),address:address.value?.address??null,reviewBy:pkg.phase==="ready"?pkg.value?.review.approveBy??null:null,packageMonth:month,busyPlan:busyPlan,rowError:rowError,onToggle:(p,on)=>{setBusyPlan(p.planId),setRowError(null),toggle.run(p,on).then(res=>{setBusyPlan(null),toggle.reset(),res&&res.ok?plans.refresh():res&&setRowError({planId:p.planId,line:refusalLine(copy,res.error)})})},breakBusy:brk.busy,breakError:breakError,onBreak:async which=>{if(!active)return false;setBreakError(null);let res=await brk.run(active,which);return res&&res.ok?(brk.reset(),plans.refresh(),pkg.refresh(),true):(res&&setBreakError(refusalLine(copy,res.error)),false)}}));return{tabs:tabs,view:view}}var addedAddresses=/* @__PURE__ */new WeakMap;function peekAddedAddress(client){return addedAddresses.get(client)??null}function dropAddedAddress(client){addedAddresses.delete(client)}function useAddressStep(then,go){let{copy:copy,client:client}=useShop(),{pkg:pkg}=useShopShared(),back=then??{name:"package"},saved=react.useRef(null),save=useShopAction(async(keys,input)=>{let sent=JSON.stringify(input),ref=saved.current?.sent===sent?saved.current.ref:null;if(ref===null){let res=await client.addAddress(input);if(!res.ok)return omsErr(res.error);ref=res.value.ref,saved.current={sent:sent,ref:ref}}if(then?.name==="package"||then?.name==="plan"){let page=await client.plans({limit:100});if(!page.ok)return omsErr(page.error);let live=page.value.plans.filter(p=>p.state!=="cancelled"),shown=then.name==="package"?live.find(p=>p.planId===(pkg.value?.plan.planId??null))??null:live.find(p=>p.state==="active")??live[0]??null,moving=shown?live.filter(p=>p.planId===shown.planId||shown.destination!==null&&p.destination===shown.destination):[];for(let p of moving){if(p.destination===ref)continue;let moved=await client.updatePlan(p.planId,{idempotencyKey:keys.key(`destination:${p.planId}`),destination:ref});if(!moved.ok)return omsErr(moved.error)}}return omsOk(ref)});return{back:{label:copy.backToCare,to:back},busy:save.busy,error:save.error?refusalLine(copy,save.error):null,onSave:input=>{save.run(input).then(res=>{!res||!res.ok||(then?.name==="package"||then?.name==="plan"?pkg.refresh():addedAddresses.set(client,res.value),go(back))})}}}function useCardStep(then,go,handoff){let{copy:copy,client:client,payments:payments}=useShop(),{config:config}=useShopShared(),back=then??{name:"plan"},[error,setError]=react.useState(()=>peekOrderNotice(client,CARD_PAGE_NOTICE));react.useEffect(()=>dropOrderNotice(client,CARD_PAGE_NOTICE),[client]);let setup=useShopAction(async()=>{if(handoff){let step2=await handoff();return step2.ok?omsOk(true):(setError(step2.closed?copy.cardStepClosed:step2.message??copy.cardStepFailed),omsOk(false))}let s=await client.setupPaymentMethod();if(!s.ok||!payments)return s.ok?omsErr({kind:"invalidRequest"}):omsErr(s.error);let step=await payments.confirmCardSetup(s.value.payerAction);return step.ok?omsOk(true):(setError(step.closed?copy.cardStepClosed:step.message??copy.cardStepFailed),omsOk(false))}),on=handoff?true:payments!==null&&config.stripePublishableKey!==null;return{back:{label:copy.backToCare,to:back},error:error??(setup.error?refusalLine(copy,setup.error):null),start:on?{label:copy.cardStart,busyLabel:copy.saving,busy:setup.busy,disabled:setup.busy,onPress:()=>{setError(null),setup.run().then(res=>{res&&res.ok&&res.value&&go(back)})}}:null}}function useNameStep(retry){let{copy:copy,saveProfileName:saveProfileName,onProfileNameRequired:onProfileNameRequired}=useShop(),[open,setOpen]=react.useState(false),[busy,setBusy]=react.useState(false),[error,setError]=react.useState(null),retryRef=react.useRef(retry);retryRef.current=retry;let running=react.useRef(false),mounted=react.useRef(true);return react.useEffect(()=>(mounted.current=true,()=>{mounted.current=false}),[]),{view:open?{line:copy.nameMissing,form:saveProfileName?{firstLabel:copy.firstName,lastLabel:copy.lastName,saveLabel:copy.saveName,busy:busy,error:error,onSave:name=>{let firstName=name.firstName.trim(),lastName=name.lastName.trim();running.current||!firstName||!lastName||(running.current=true,setBusy(true),setError(null),saveProfileName({firstName:firstName,lastName:lastName}).then(saved=>saved,()=>false).then(saved=>{if(running.current=false,!!mounted.current){if(setBusy(false),!saved){setError(copy.actionFailed);return}setOpen(false),retryRef.current()}}))}}:null,handoff:!saveProfileName&&onProfileNameRequired?{label:copy.addName,onPress:onProfileNameRequired}:null}:null,raise:e=>isNameRequired(e)?(setError(null),setOpen(true),true):false,clear:()=>setOpen(false)}}function useCheckoutBasics(){let addresses=useAddresses(),cards=usePaymentMethods(),address=addresses.value?.find(a=>a.isDefault&&a.isComplete)??addresses.value?.find(a=>a.isComplete)??null,card=pickCard(cards.value,null);return{addresses:addresses,cards:cards,address:address,card:card}}function quoteLine(copy,quote){return quote.phase==="unavailable"?copy.actionFailed:quote.phase==="failed"&&quote.error?refusalLine(copy,quote.error):null}function useBuyStep(route,go){let{copy:copy,client:client,payments:payments,petName:petName}=useShop(),offer=useOffer(route.offerId),{address:address,card:card}=useCheckoutBasics(),line=react.useMemo(()=>({offerId:route.offerId,quantity:route.quantity,...route.petId?{petId:route.petId}:{},...route.rxId?{rxId:route.rxId}:{}}),[route.offerId,route.quantity,route.petId,route.rxId]),quote=useShopRead(address?`quote:${address.ref}:${JSON.stringify(line)}`:null,()=>client.quote({lines:[line],shipTo:address.ref})),[shown,setShown]=react.useState(null),[error,setError]=react.useState(null),[placed,setPlaced]=react.useState(false),buy=useShopAction(async keys=>{let draft=await client.createCheckout({idempotencyKey:keys.key("draft"),lines:[line],shipTo:address.ref});if(!draft.ok)return omsErr(draft.error);if((shown??quote.value?.total??null)!==draft.value.total)return setShown(draft.value.total),omsErr({kind:"refused",status:409,reasonCode:"price_changed",message:null});let out=await confirmWithPayerActions(idempotencyKey=>client.confirmCheckout(draft.value.checkoutId,{idempotencyKey:idempotencyKey,expectedTotal:draft.value.total,paymentMethodId:card.paymentMethodId}),keys,payments);return out.kind==="failed"?omsErr(out.error):omsOk(out)}),needs=[...address?[]:[{label:copy.addressNeeded,to:{name:"address",then:route}}],...card?[]:[{label:copy.cardTitle,to:{name:"card",then:route}}]],q=quote.value,total=shown??q?.total??null,placeRef=react.useRef(()=>{}),name=useNameStep(()=>placeRef.current()),place2=()=>{placed||(setError(null),name.clear(),buy.run().then(res=>{if(!res)return;let out=res.ok?res.value:{kind:"failed",error:res.error},orderId=out.kind!=="failed"?out.orderIds[0]:void 0;orderId?(setPlaced(true),leaveOrderNotice(client,orderId,outcomeLine(copy,out)),go({name:"order",orderId:orderId})):out.kind==="failed"&&name.raise(out.error)||setError(outcomeLine(copy,out))}))};return placeRef.current=place2,{back:{label:copy.backToShop,to:{name:"product",offerId:route.offerId}},title:copy.confirmTitle,lines:offer.value?[{key:line.offerId,name:offer.value.title,meta:petName(line.petId),price:offer.value.price!==null?formatCents(offer.value.price*line.quantity):null,form:drugForm(offer.value.requiresRx,offer.value.title)}]:[],sum:q&&total!==null?[{k:copy.shipping,v:q.shipping===0?copy.free:formatCents(q.shipping)},{k:copy.tax,v:formatCents(q.tax)},{k:copy.total,v:formatCents(total)}]:null,needs:needs,pay:address&&card&&q?{label:copy.confirmPay,busyLabel:copy.saving,busy:buy.busy,disabled:buy.busy||placed,onPress:place2}:null,note:card?copy.chargedWhenShips(cardLabel(card.brand,card.last4)):null,error:error??quoteLine(copy,quote),nameStep:name.view}}function useConsentStep(route,go){let{copy:copy,client:client}=useShop(),{config:config,pkg:pkg}=useShopShared(),{address:address,card:card}=useCheckoutBasics(),create=useShopAction(keys=>client.createPlan({idempotencyKey:keys.key("create"),cadenceDays:30,destination:address.ref,paymentMethodId:card.paymentMethodId,consentTermsVersion:config.recurringTermsVersion,lines:[{offerId:route.offerId,quantity:route.quantity,...route.petId?{petId:route.petId}:{},...route.rxId?{rxId:route.rxId}:{}}]})),needs=[...address?[]:[{label:copy.addressNeeded,to:{name:"address",then:route}}],...card?[]:[{label:copy.cardTitle,to:{name:"card",then:route}}]];return{back:{label:copy.backToShop,to:{name:"product",offerId:route.offerId}},terms:config.recurringTermsUrl?{label:copy.consentTermsLink,href:config.recurringTermsUrl}:null,needs:needs,error:create.error?refusalLine(copy,create.error):null,agree:address&&card&&config.recurringTermsVersion?{label:copy.consentAgree,busyLabel:copy.saving,busy:create.busy,disabled:create.busy,onPress:()=>{create.run().then(res=>{res&&res.ok&&(pkg.refresh(),go({name:"plan"}))})}}:null}}var STEP_KEYS=["ordered","shipped","out_for_delivery","delivered"];function paymentFailed(order){return order.paymentStatus==="failed"||order.canPay&&order.paymentStatus==="requires_action"}function paymentSettled(order){return!order.canPay&&(order.paymentStatus==="authorized"||order.paymentStatus==="captured")}function paymentHeld(order){return order.paymentStatus==="authorized"||order.paymentStatus==="captured"}function statusPill(status,copy,v3,failed=false){if(failed)return{label:copy.paymentFailed,tone:"risk"};let label=copy.orderStatus[status]??v3.orderSteps[0];return status==="delivered"?{label:label,tone:"done"}:status==="cancelled"||status==="rejected"?{label:label,tone:"quiet"}:status==="needs_support"?{label:label,tone:"risk"}:{label:label,tone:"wait"}}function latestTracking(order){if(order.tracking)return order.tracking;let best=null;for(let sh of order.shipments)for(let ev of sh.tracking)(!best||(ev.occurredAt??"")>(best.occurredAt??""))&&(best=ev);return best}function arrivesByOf(order){return order.arrivesBy??latestTracking(order)?.deliveryBy??null}function deliveredAt(order){let step=order.steps?.find(s=>s.key==="delivered");if(step?.at)return step.at;for(let sh of order.shipments){let ev=sh.tracking.find(t=>t.status==="delivered");if(ev?.occurredAt)return ev.occurredAt}return null}function orderEnded(status){return status==="cancelled"||status==="rejected"||status==="needs_support"}function orderHeadline(order,copy,v3){let status=order.summary.status;return paymentFailed(order)?copy.paymentFailed:status==="delivered"?v3.orderSteps[3]:orderEnded(status)?copy.orderStatus[status]??v3.orderSteps[0]:status==="shipped"?v3.orderSteps[1]:v3.orderSteps[0]}function orderSubline(order,copy,v3){let status=order.summary.status;if(orderEnded(status)||paymentFailed(order))return null;if(status==="delivered"){let day=formatDay(deliveredAt(order),{when:true});return day?v3.deliveredOn(day):null}let by=formatDay(arrivesByOf(order),{weekday:true});if(by)return v3.arrivesBy(by);let line=copy.orderStatus[status]??null;return line===orderHeadline(order,copy,v3)?null:line}function offersBuyAgain(status){return status==="delivered"||orderEnded(status)}function trackSteps(order,v3){let status=order.summary.status;if(status==="cancelled"||status==="rejected")return null;let sent=order.steps&&order.steps.length>0?order.steps:null,tracking=latestTracking(order),shippedAt=order.shipments.flatMap(sh=>sh.tracking).map(t=>t.occurredAt).filter(d=>!!d).sort()[0]??null,derived={ordered:{done:true,at:order.summary.placedAt},shipped:{done:status==="shipped"||status==="delivered"||!!tracking,at:shippedAt},out_for_delivery:{done:status==="delivered",at:null},delivered:{done:status==="delivered",at:deliveredAt(order)}},by=formatDay(arrivesByOf(order),{weekday:true}),steps=STEP_KEYS.map((key,i)=>{let s=sent?.find(x=>x.key===key),done=s?s.done:derived[key].done,at=s?s.at:derived[key].at,line=done?formatDay(at,{when:true}):key==="delivered"&&by?v3.expected(by):null;return{key:key,title:v3.orderSteps[i],line:line,done:done}}),nowAt=steps.reduce((at,s,i)=>s.done?i:at,-1);return steps.map(({done:done,...s},i)=>({...s,state:done?i===nowAt&&i<steps.length-1?"now":"done":"next"}))}function itemNames(items){return items.map(i=>i.title).join(", ")}function orderMeta(summary,copy,total=formatCents(summary.total)){let day=formatDay(summary.placedAt);return day?`${copy.placed(day)} · ${total}`:total}var PHONE_BOX={body:{paddingTop:8,paddingRight:16,paddingLeft:16},pushBody:{paddingRight:16,paddingLeft:16},subtabs:{backgroundColor:"#ffffff"},subtab:{minHeight:44,rowGap:6,columnGap:6},subtabCurrent:{minHeight:44,rowGap:6,columnGap:6},titleBlock:{paddingTop:4,rowGap:2,columnGap:2},screenTitle:{},screenMeta:{},stack:{marginTop:12,rowGap:12,columnGap:12},card:{paddingTop:16,paddingRight:16,paddingBottom:16,paddingLeft:16,borderWidth:1,borderColor:"#e4e4e4",borderRadius:20,backgroundColor:"#ffffff"},cardHead:{marginBottom:12,rowGap:8,columnGap:16},cardTitle:{marginBottom:12},cardTitleInHead:{},cardLink:{},cardLinkAfterNote:{marginTop:12,marginBottom:2.34},forLabel:{marginTop:4,marginBottom:8},forLabelNext:{marginTop:16,marginBottom:8},itemsLiFirst:{paddingBottom:16,rowGap:12,columnGap:12},itemsLiMid:{paddingTop:16,paddingBottom:16,borderTopWidth:1,borderTopColor:"#e4e4e4",rowGap:12,columnGap:12},itemsLiLast:{paddingTop:16,borderTopWidth:1,borderTopColor:"#e4e4e4",rowGap:12,columnGap:12},thumb:{borderRadius:10,backgroundColor:"#eaeef6",width:48,height:48},thumbIcon:{width:22,height:22},thumbPink:{borderRadius:10,backgroundColor:"#ffeae8"},thumbYellow:{borderRadius:10,backgroundColor:"#fcf0d6"},thumbSage:{borderRadius:10,backgroundColor:"#e6ece8"},itemsName:{rowGap:4,columnGap:8},itemsMeta:{marginTop:2},itemsActs:{marginTop:6,rowGap:16,columnGap:16},itemsActLink:{},itemsActButton:{},itemsEnd:{rowGap:4,columnGap:4},itemsPrice:{},pill:{paddingRight:10,paddingLeft:10,borderRadius:999,backgroundColor:"#eaeef6",minHeight:24},pillSoon:{paddingRight:10,paddingLeft:10,borderRadius:999,backgroundColor:"#ffffff",minHeight:24},btnRow:{paddingRight:14,paddingLeft:14,borderWidth:1,borderColor:"#10462e",borderRadius:999,minHeight:36,rowGap:8,columnGap:8},btnRowIcon:{width:17,height:17},btnRowLabel:{},sumTotal:{paddingRight:24,paddingLeft:24,borderWidth:1,borderColor:"#e4e4e4",borderRadius:20,backgroundColor:"#ffffff"},sumRowFirst:{paddingTop:14,paddingBottom:14,rowGap:2,columnGap:16},sumRowLast:{paddingTop:14,paddingBottom:14,rowGap:2,columnGap:16},sumDt:{},sumDd:{},sumDdTotal:{},noteAfterSum:{marginTop:12},rowsLiFirst:{paddingBottom:16,rowGap:8,columnGap:16},rowsLiNext:{paddingTop:16,borderTopWidth:1,borderTopColor:"#e4e4e4",rowGap:8,columnGap:16},rowsK:{},rowsV:{marginTop:2},rowsMeta:{marginTop:2},legal:{marginTop:32},legalText:{},traybar:{paddingTop:12,paddingRight:16,paddingBottom:8,paddingLeft:16,backgroundColor:"#ffffff",rowGap:6,columnGap:6},btnInk:{paddingRight:24,paddingLeft:24,borderWidth:1,borderColor:"#10462e",borderRadius:999,backgroundColor:"#10462e",minHeight:50,rowGap:8,columnGap:8},traybarFine:{},input:{paddingRight:16,paddingLeft:16,borderWidth:1,borderColor:"#e4e4e4",borderRadius:10,backgroundColor:"#ffffff",minHeight:52,rowGap:10,columnGap:10},inputIcon:{width:20,height:20},inputText:{paddingTop:1,paddingRight:2,paddingBottom:1,paddingLeft:2},inputPlaceholder:{},filters:{paddingBottom:2,rowGap:8,columnGap:8},filter:{paddingRight:14,paddingLeft:14,borderWidth:1,borderColor:"#e4e4e4",borderRadius:999,minHeight:36},filterCurrent:{paddingRight:14,paddingLeft:14,borderWidth:1,borderColor:"#10462e",borderRadius:999,backgroundColor:"#ffeae8",minHeight:36},sectionHead:{marginTop:8,rowGap:8,columnGap:12},prods:{rowGap:16,columnGap:12},prod:{rowGap:12,columnGap:12},prodImg:{borderRadius:10,backgroundColor:"#ffeae8",aspectRatio:1},prodIcon:{width:36,height:36},prodTags:{rowGap:6,columnGap:6,position:"absolute",top:8,left:8},prodBody:{rowGap:4,columnGap:4},prodName:{},prodMeta:{},prodPrice:{marginTop:4,rowGap:8,columnGap:8},pillClear:{paddingRight:10,paddingLeft:10,borderRadius:999,backgroundColor:"#ffffff",minHeight:24},pillPlain:{paddingRight:10,paddingLeft:10,borderRadius:999,backgroundColor:"#ffffff",minHeight:24},pillOverdue:{paddingRight:10,paddingLeft:10,borderRadius:999,backgroundColor:"#ffffff",minHeight:24},hero:{borderRadius:20,backgroundColor:"#fcf0d6",aspectRatio:1.6},heroIcon:{width:56,height:56},source:{rowGap:8,columnGap:8},sourceIcon:{marginTop:2,width:16,height:16},sourceBold:{},sourceLink:{},choices:{rowGap:8,columnGap:8},choiceCurrent:{paddingTop:14,paddingRight:16,paddingBottom:14,paddingLeft:16,borderWidth:1,borderColor:"#10462e",borderRadius:10,backgroundColor:"#ffeae8",rowGap:12,columnGap:12},choice:{paddingTop:14,paddingRight:16,paddingBottom:14,paddingLeft:16,borderWidth:1,borderColor:"#e4e4e4",borderRadius:10,backgroundColor:"#ffffff",rowGap:12,columnGap:12},radioOn:{borderWidth:6,borderColor:"#10462e",borderRadius:10,backgroundColor:"#ffffff",width:20,height:20},radioOff:{borderWidth:1,borderColor:"#819d90",borderRadius:10,backgroundColor:"#ffffff",width:20,height:20},choiceText:{},choiceTitle:{},choiceMeta:{marginTop:2},facts:{marginTop:12,rowGap:8,columnGap:8},factsLi:{paddingTop:12,paddingRight:12,paddingBottom:12,paddingLeft:12,borderRadius:10,backgroundColor:"#e6ece8",rowGap:4,columnGap:4},factsLiHer:{paddingTop:12,paddingRight:12,paddingBottom:12,paddingLeft:12,borderRadius:10,backgroundColor:"#fcf0d6",rowGap:4,columnGap:4},factsK:{},factsN:{},factsUnit:{},noteAfterFacts:{marginTop:12},cardLead:{marginBottom:12},person:{rowGap:12,columnGap:16},avatar:{borderRadius:18,backgroundColor:"#ffffff",width:36,height:36},personName:{},personMeta:{},sourceInCard:{marginTop:12,rowGap:8,columnGap:8},sourceInCardIcon:{marginTop:2,width:16,height:16},noteAfterSource:{marginTop:8},rxLead:{marginBottom:12},btnOutlineSm:{marginTop:12,paddingRight:16,paddingLeft:16,borderWidth:1,borderColor:"#10462e",borderRadius:999,minHeight:46,rowGap:8,columnGap:8},btnOutlineSmIcon:{width:20,height:20},noteStandalone:{},noteLink:{},sumPlain:{paddingRight:24,paddingLeft:24,borderWidth:1,borderColor:"#e4e4e4",borderRadius:20,backgroundColor:"#ffffff"},sumPlainRowFirst:{paddingTop:14,paddingBottom:14,rowGap:2,columnGap:16},sumPlainRowLast:{paddingTop:14,paddingBottom:14,rowGap:2,columnGap:16},sumPlainDd:{},planRowsLiFirst:{paddingTop:12,paddingBottom:12,rowGap:8,columnGap:16},planRowsLiNext:{paddingTop:12,paddingBottom:12,borderTopWidth:1,borderTopColor:"#e4e4e4",rowGap:8,columnGap:16},switch:{width:48,height:28},switchTrack:{borderRadius:999,backgroundColor:"#10462e",width:48,height:28},switchKnob:{borderRadius:11,backgroundColor:"#ffffff",position:"absolute",top:3,left:3,transform:[{translateX:20}],width:22,height:22},switchTrackOff:{borderRadius:999,backgroundColor:"#d0d6d3",width:48,height:28},switchKnobOff:{borderRadius:11,backgroundColor:"#ffffff",position:"absolute",top:3,left:3,width:22,height:22},breaks:{marginTop:12,rowGap:12,columnGap:24},btnSm:{paddingRight:16,paddingLeft:16,borderWidth:1,borderColor:"#10462e",borderRadius:999,minHeight:46,rowGap:8,columnGap:8},linkDanger:{},sheet:{borderTopLeftRadius:28,borderTopRightRadius:28,backgroundColor:"#ffffff"},sheetBackdrop:{backgroundColor:"rgba(0, 0, 0, 0.32)",position:"absolute"},sheetGrab:{height:20},sheetGrabBar:{borderRadius:3,backgroundColor:"#c9c9c9",width:36,height:5},sheetHead:{paddingTop:4,paddingRight:16,paddingBottom:12,paddingLeft:16,rowGap:12,columnGap:12},sheetClose:{paddingTop:1,paddingRight:6,paddingBottom:1,paddingLeft:6,borderRadius:18,backgroundColor:"#e6ece8",width:36,height:36},sheetCloseIcon:{width:20,height:20},sheetBody:{paddingRight:16,paddingBottom:24,paddingLeft:16,rowGap:12,columnGap:12},sheetText:{},sheetActions:{marginTop:16,rowGap:8,columnGap:8},btnDanger:{paddingRight:16,paddingLeft:16,borderWidth:1,borderColor:"#c03410",borderRadius:999,backgroundColor:"#ffffff",minHeight:46,rowGap:8,columnGap:8},btnOutline:{paddingRight:24,paddingLeft:24,borderWidth:1,borderColor:"#10462e",borderRadius:999,minHeight:52,rowGap:8,columnGap:8},rec:{marginRight:-8,marginLeft:-8,rowGap:4,columnGap:4},recRow:{paddingTop:10,paddingRight:8,paddingBottom:10,paddingLeft:8,borderRadius:10,rowGap:12,columnGap:12},recIcon:{width:20,height:20},recText:{rowGap:2,columnGap:2},recTitle:{},recMeta:{},recEnd:{rowGap:8,columnGap:8},trackerLi:{paddingBottom:24,rowGap:16,columnGap:16},trackerLiLast:{rowGap:16,columnGap:16},trackerLineDone:{borderRadius:1,backgroundColor:"#10462e",position:"absolute",top:30,left:13,bottom:2,width:2},trackerLine:{borderRadius:1,backgroundColor:"#e4e4e4",position:"absolute",top:30,left:13,bottom:2,width:2},dotDone:{borderWidth:2,borderColor:"#10462e",borderRadius:14,backgroundColor:"#10462e",width:28,height:28},dotDoneIcon:{width:16,height:16},dotNow:{borderWidth:2,borderColor:"#10462e",borderRadius:14,backgroundColor:"#ffffff",width:28,height:28},dotNowCore:{borderRadius:5,backgroundColor:"#07c168",width:10,height:10},dotNext:{borderWidth:2,borderColor:"#e4e4e4",borderRadius:14,backgroundColor:"#ffffff",width:28,height:28},trackerTitle:{paddingTop:3,rowGap:4,columnGap:8},trackerTitleNext:{paddingTop:3,rowGap:4,columnGap:8},trackerWhen:{marginTop:2},trackerText:{marginTop:2},pillStable:{paddingRight:10,paddingLeft:10,borderRadius:999,backgroundColor:"#dcf6ea",minHeight:24},trackItemsEnd:{rowGap:4,columnGap:4},trackItemsLiFirst:{paddingBottom:16,rowGap:12,columnGap:12},trackItemsLiLast:{paddingTop:16,borderTopWidth:1,borderTopColor:"#e4e4e4",rowGap:12,columnGap:12},noteAfterTotal:{marginTop:8},rowLink:{paddingTop:16,paddingRight:24,paddingBottom:16,paddingLeft:24,borderWidth:1,borderColor:"#e4e4e4",borderRadius:20,backgroundColor:"#ffffff",rowGap:12,columnGap:12},rowLinkIcon:{width:22,height:22},rowLinkChevron:{width:20,height:20},ghost:{marginTop:16,rowGap:10,columnGap:10},ghostBar:{borderRadius:999,backgroundColor:"#e6ece8",height:12},field:{rowGap:6,columnGap:6},fieldLabel:{},fieldInput:{paddingRight:16,paddingLeft:16,borderWidth:1,borderColor:"#e4e4e4",borderRadius:10,backgroundColor:"#ffffff",minHeight:52,rowGap:10,columnGap:10},fieldInputText:{paddingTop:1,paddingRight:2,paddingBottom:1,paddingLeft:2}},PHONE_TEXT={body:{color:"#000000",fontSize:17,fontWeight:"400",lineHeight:26.34375},pushBody:{color:"#000000",fontSize:17,fontWeight:"400",lineHeight:26.34375},subtabs:{color:"#000000",fontSize:17,fontWeight:"400",lineHeight:26.34375},subtab:{color:"#6b6b6b",fontSize:15,fontWeight:"500",lineHeight:23.25},subtabCurrent:{color:"#10462e",fontSize:15,fontWeight:"700",lineHeight:23.25},titleBlock:{color:"#000000",fontSize:17,fontWeight:"400",lineHeight:26.34375},screenTitle:{color:"#10462e",fontSize:22,fontWeight:"500",lineHeight:26.390625,letterSpacing:-.33},screenMeta:{color:"#6b6b6b",fontSize:13,fontWeight:"400",lineHeight:18.84375},stack:{color:"#000000",fontSize:17,fontWeight:"400",lineHeight:26.34375},card:{color:"#000000",fontSize:17,fontWeight:"400",lineHeight:26.34375},cardHead:{color:"#000000",fontSize:17,fontWeight:"400",lineHeight:26.34375},cardTitle:{color:"#10462e",fontSize:18,fontWeight:"700",lineHeight:22.5,letterSpacing:-.36},cardTitleInHead:{color:"#10462e",fontSize:18,fontWeight:"700",lineHeight:22.5,letterSpacing:-.36},cardLink:{color:"#10462e",fontSize:15,fontWeight:"700",lineHeight:21},cardLinkAfterNote:{color:"#10462e",fontSize:15,fontWeight:"700",lineHeight:21},forLabel:{color:"#6b6b6b",fontSize:12,fontWeight:"700",lineHeight:16.796875,letterSpacing:.72,textTransform:"uppercase"},forLabelNext:{color:"#6b6b6b",fontSize:12,fontWeight:"700",lineHeight:16.796875,letterSpacing:.72,textTransform:"uppercase"},itemsLiFirst:{color:"#000000",fontSize:17,fontWeight:"400",lineHeight:26.34375},itemsLiMid:{color:"#000000",fontSize:17,fontWeight:"400",lineHeight:26.34375},itemsLiLast:{color:"#000000",fontSize:17,fontWeight:"400",lineHeight:26.34375},thumb:{color:"#10462e",fontSize:17,fontWeight:"400",lineHeight:26.34375},thumbIcon:{color:"#10462e",fontSize:17,fontWeight:"400",lineHeight:26.34375},thumbPink:{color:"#10462e",fontSize:17,fontWeight:"400",lineHeight:26.34375},thumbYellow:{color:"#10462e",fontSize:17,fontWeight:"400",lineHeight:26.34375},thumbSage:{color:"#10462e",fontSize:17,fontWeight:"400",lineHeight:26.34375},itemsName:{color:"#10462e",fontSize:17,fontWeight:"700",lineHeight:22.09375},itemsMeta:{color:"#6b6b6b",fontSize:13,fontWeight:"400",lineHeight:18.84375},itemsActs:{color:"#000000",fontSize:17,fontWeight:"400",lineHeight:26.34375},itemsActLink:{color:"#10462e",fontSize:13,fontWeight:"700",lineHeight:20.140625,textDecorationLine:"underline"},itemsActButton:{color:"#10462e",fontSize:13,fontWeight:"700",lineHeight:20.140625,textDecorationLine:"underline",textAlign:"center"},itemsEnd:{color:"#000000",fontSize:17,fontWeight:"400",lineHeight:26.34375,fontVariant:["tabular-nums"]},itemsPrice:{color:"#10462e",fontSize:17,fontWeight:"700",lineHeight:26.34375,fontVariant:["tabular-nums"]},pill:{color:"#10462e",fontSize:12,fontWeight:"700",lineHeight:12,letterSpacing:.72,textTransform:"uppercase"},pillSoon:{color:"#10462e",fontSize:12,fontWeight:"700",lineHeight:12,letterSpacing:.72,textTransform:"uppercase"},btnRow:{color:"#10462e",fontSize:14,fontWeight:"400",lineHeight:14,textAlign:"center",fontVariant:["tabular-nums"]},btnRowIcon:{color:"#10462e",fontSize:14,fontWeight:"400",lineHeight:14,textAlign:"center",fontVariant:["tabular-nums"]},btnRowLabel:{color:"#10462e",fontSize:14,fontWeight:"400",lineHeight:14,textAlign:"center",fontVariant:["tabular-nums"]},sumTotal:{color:"#000000",fontSize:17,fontWeight:"400",lineHeight:26.34375},sumRowFirst:{color:"#000000",fontSize:17,fontWeight:"400",lineHeight:26.34375},sumRowLast:{color:"#000000",fontSize:17,fontWeight:"400",lineHeight:26.34375},sumDt:{color:"#6b6b6b",fontSize:15,fontWeight:"400",lineHeight:23.25},sumDd:{color:"#10462e",fontSize:15,fontWeight:"700",lineHeight:21,textAlign:"right"},sumDdTotal:{color:"#10462e",fontSize:20,fontWeight:"700",lineHeight:28,textAlign:"right"},noteAfterSum:{color:"#6b6b6b",fontSize:13,fontWeight:"400",lineHeight:19.5},rowsLiFirst:{color:"#000000",fontSize:17,fontWeight:"400",lineHeight:26.34375},rowsLiNext:{color:"#000000",fontSize:17,fontWeight:"400",lineHeight:26.34375},rowsK:{color:"#10462e",fontSize:17,fontWeight:"700",lineHeight:22.09375},rowsV:{color:"#000000",fontSize:15,fontWeight:"400",lineHeight:21.75},rowsMeta:{color:"#6b6b6b",fontSize:13,fontWeight:"400",lineHeight:18.84375},legal:{color:"#6b6b6b",fontSize:13,fontWeight:"400",lineHeight:20.796875,textAlign:"center"},legalText:{color:"#6b6b6b",fontSize:13,fontWeight:"400",lineHeight:20.796875,textAlign:"center"},traybar:{color:"#000000",fontSize:17,fontWeight:"400",lineHeight:26.34375},btnInk:{color:"#ffffff",fontSize:17,fontWeight:"700",lineHeight:17,textAlign:"center"},traybarFine:{color:"#6b6b6b",fontSize:12,fontWeight:"400",lineHeight:15.59375,textAlign:"center"},input:{color:"#000000",fontSize:17,fontWeight:"400",lineHeight:26.34375},inputIcon:{color:"#6b6b6b",fontSize:17,fontWeight:"400",lineHeight:26.34375},inputText:{color:"#000000",fontSize:17,fontWeight:"400",lineHeight:26.34375},inputPlaceholder:{color:"#757575",fontSize:17,fontWeight:"400"},filters:{color:"#000000",fontSize:17,fontWeight:"400",lineHeight:26.34375},filter:{color:"#10462e",fontSize:15,fontWeight:"400",lineHeight:18},filterCurrent:{color:"#10462e",fontSize:15,fontWeight:"700",lineHeight:18},sectionHead:{color:"#000000",fontSize:17,fontWeight:"400",lineHeight:26.34375},prods:{color:"#000000",fontSize:17,fontWeight:"400",lineHeight:26.34375},prod:{color:"#000000",fontSize:17,fontWeight:"400",lineHeight:26.34375},prodImg:{color:"#10462e",fontSize:17,fontWeight:"400",lineHeight:26.34375},prodIcon:{color:"#10462e",fontSize:17,fontWeight:"400",lineHeight:26.34375},prodTags:{color:"#000000",fontSize:17,fontWeight:"400",lineHeight:26.34375},prodBody:{color:"#000000",fontSize:17,fontWeight:"400",lineHeight:26.34375},prodName:{color:"#10462e",fontSize:15,fontWeight:"700",lineHeight:19.5},prodMeta:{color:"#6b6b6b",fontSize:13,fontWeight:"400",lineHeight:18.84375},prodPrice:{color:"#10462e",fontSize:15,fontWeight:"700",lineHeight:23.25,fontVariant:["tabular-nums"]},pillClear:{color:"#07c168",fontSize:12,fontWeight:"700",lineHeight:12,letterSpacing:.72,textTransform:"uppercase"},pillPlain:{color:"#10462e",fontSize:12,fontWeight:"700",lineHeight:12,letterSpacing:.72,textTransform:"uppercase"},pillOverdue:{color:"#c03410",fontSize:12,fontWeight:"700",lineHeight:12,letterSpacing:.72,textTransform:"uppercase"},hero:{color:"#10462e",fontSize:17,fontWeight:"400",lineHeight:26.34375},heroIcon:{color:"#10462e",fontSize:17,fontWeight:"400",lineHeight:26.34375},source:{color:"#6b6b6b",fontSize:13,fontWeight:"400",lineHeight:19.5},sourceIcon:{color:"#819d90",fontSize:13,fontWeight:"400",lineHeight:19.5},sourceBold:{color:"#6b6b6b",fontSize:13,fontWeight:"700",lineHeight:19.5},sourceLink:{color:"#10462e",fontSize:13,fontWeight:"700",lineHeight:19.5,textDecorationLine:"underline"},choices:{color:"#000000",fontSize:17,fontWeight:"400",lineHeight:26.34375},choiceCurrent:{color:"#000000",fontSize:17,fontWeight:"400",lineHeight:26.34375},choice:{color:"#000000",fontSize:17,fontWeight:"400",lineHeight:26.34375},radioOn:{color:"#000000",fontSize:13.333,fontWeight:"400"},radioOff:{color:"#000000",fontSize:13.333,fontWeight:"400"},choiceText:{color:"#000000",fontSize:17,fontWeight:"400",lineHeight:26.34375},choiceTitle:{color:"#10462e",fontSize:17,fontWeight:"700",lineHeight:22.09375},choiceMeta:{color:"#6b6b6b",fontSize:13,fontWeight:"400",lineHeight:18.1875},facts:{color:"#000000",fontSize:17,fontWeight:"400",lineHeight:26.34375},factsLi:{color:"#000000",fontSize:17,fontWeight:"400",lineHeight:26.34375},factsLiHer:{color:"#000000",fontSize:17,fontWeight:"400",lineHeight:26.34375},factsK:{color:"#6b6b6b",fontSize:13,fontWeight:"400",lineHeight:18.1875},factsN:{color:"#10462e",fontSize:20,fontWeight:"700",lineHeight:22,letterSpacing:-.4,fontVariant:["tabular-nums"]},factsUnit:{color:"#6b6b6b",fontSize:13,fontWeight:"500",lineHeight:14.296875,letterSpacing:-.4,fontVariant:["tabular-nums"]},noteAfterFacts:{color:"#6b6b6b",fontSize:13,fontWeight:"400",lineHeight:19.5},cardLead:{color:"#000000",fontSize:15,fontWeight:"400",lineHeight:22.5},person:{color:"#000000",fontSize:17,fontWeight:"400",lineHeight:26.34375},avatar:{color:"#000000",fontSize:17,fontWeight:"400",lineHeight:26.34375},personName:{color:"#10462e",fontSize:17,fontWeight:"700",lineHeight:22.09375},personMeta:{color:"#6b6b6b",fontSize:13,fontWeight:"400",lineHeight:18.84375},sourceInCard:{color:"#6b6b6b",fontSize:13,fontWeight:"400",lineHeight:19.5},sourceInCardIcon:{color:"#819d90",fontSize:13,fontWeight:"400",lineHeight:19.5},noteAfterSource:{color:"#6b6b6b",fontSize:13,fontWeight:"400",lineHeight:19.5},rxLead:{color:"#000000",fontSize:15,fontWeight:"400",lineHeight:22.5},btnOutlineSm:{color:"#10462e",fontSize:15,fontWeight:"400",lineHeight:15,textAlign:"center"},btnOutlineSmIcon:{color:"#10462e",fontSize:15,fontWeight:"400",lineHeight:15,textAlign:"center"},noteStandalone:{color:"#6b6b6b",fontSize:13,fontWeight:"400",lineHeight:19.5},noteLink:{color:"#10462e",fontSize:15,fontWeight:"700",lineHeight:21},sumPlain:{color:"#000000",fontSize:17,fontWeight:"400",lineHeight:26.34375},sumPlainRowFirst:{color:"#000000",fontSize:17,fontWeight:"400",lineHeight:26.34375},sumPlainRowLast:{color:"#000000",fontSize:17,fontWeight:"400",lineHeight:26.34375},sumPlainDd:{color:"#10462e",fontSize:15,fontWeight:"700",lineHeight:21,textAlign:"right"},planRowsLiFirst:{color:"#000000",fontSize:17,fontWeight:"400",lineHeight:26.34375},planRowsLiNext:{color:"#000000",fontSize:17,fontWeight:"400",lineHeight:26.34375},switch:{color:"#000000",fontSize:17,fontWeight:"400",lineHeight:26.34375},switchTrack:{color:"#000000",fontSize:13.333,fontWeight:"400"},switchKnob:{color:"#000000",fontSize:17,fontWeight:"400",lineHeight:26.34375},switchTrackOff:{color:"#000000",fontSize:13.333,fontWeight:"400"},switchKnobOff:{color:"#000000",fontSize:17,fontWeight:"400",lineHeight:26.34375},breaks:{color:"#000000",fontSize:17,fontWeight:"400",lineHeight:26.34375},btnSm:{color:"#10462e",fontSize:15,fontWeight:"400",lineHeight:15,textAlign:"center"},linkDanger:{color:"#c03410",fontSize:15,fontWeight:"700",lineHeight:23.25,textDecorationLine:"underline",textAlign:"center"},sheet:{color:"#000000",fontSize:17,fontWeight:"400",lineHeight:26.34375},sheetBackdrop:{color:"#000000",fontSize:17,fontWeight:"400",lineHeight:26.34375},sheetGrab:{color:"#000000",fontSize:17,fontWeight:"400",lineHeight:26.34375},sheetGrabBar:{color:"#000000",fontSize:17,fontWeight:"400",lineHeight:26.34375},sheetHead:{color:"#000000",fontSize:17,fontWeight:"400",lineHeight:26.34375},sheetClose:{color:"#10462e",fontSize:13.333,fontWeight:"400",textAlign:"center"},sheetCloseIcon:{color:"#10462e",fontSize:13.333,fontWeight:"400",textAlign:"center"},sheetBody:{color:"#000000",fontSize:17,fontWeight:"400",lineHeight:26.34375},sheetText:{color:"#000000",fontSize:17,fontWeight:"400",lineHeight:25.5},sheetActions:{color:"#000000",fontSize:17,fontWeight:"400",lineHeight:26.34375},btnDanger:{color:"#c03410",fontSize:15,fontWeight:"700",lineHeight:23.25,textAlign:"center"},btnOutline:{color:"#10462e",fontSize:17,fontWeight:"700",lineHeight:17,textAlign:"center"},rec:{color:"#000000",fontSize:17,fontWeight:"400",lineHeight:26.34375},recRow:{color:"#000000",fontSize:17,fontWeight:"400",lineHeight:26.34375},recIcon:{color:"#6b6b6b",fontSize:17,fontWeight:"400",lineHeight:26.34375},recText:{color:"#000000",fontSize:17,fontWeight:"400",lineHeight:26.34375},recTitle:{color:"#10462e",fontSize:17,fontWeight:"700",lineHeight:22.09375},recMeta:{color:"#6b6b6b",fontSize:13,fontWeight:"400",lineHeight:18.1875},recEnd:{color:"#6b6b6b",fontSize:15,fontWeight:"400",lineHeight:23.25},trackerLi:{color:"#000000",fontSize:17,fontWeight:"400",lineHeight:26.34375},trackerLiLast:{color:"#000000",fontSize:17,fontWeight:"400",lineHeight:26.34375},trackerLineDone:{color:"#000000",fontSize:17,fontWeight:"400",lineHeight:26.34375},trackerLine:{color:"#000000",fontSize:17,fontWeight:"400",lineHeight:26.34375},dotDone:{color:"#ffffff",fontSize:17,fontWeight:"400",lineHeight:26.34375},dotDoneIcon:{color:"#ffffff",fontSize:17,fontWeight:"400",lineHeight:26.34375},dotNow:{color:"#000000",fontSize:17,fontWeight:"400",lineHeight:26.34375},dotNowCore:{color:"#000000",fontSize:17,fontWeight:"400",lineHeight:26.34375},dotNext:{color:"#000000",fontSize:17,fontWeight:"400",lineHeight:26.34375},trackerTitle:{color:"#10462e",fontSize:17,fontWeight:"700",lineHeight:22.09375},trackerTitleNext:{color:"#6b6b6b",fontSize:17,fontWeight:"700",lineHeight:22.09375},trackerWhen:{color:"#6b6b6b",fontSize:13,fontWeight:"400",lineHeight:18.1875},trackerText:{color:"#000000",fontSize:15,fontWeight:"400",lineHeight:22.5},pillStable:{color:"#10462e",fontSize:12,fontWeight:"700",lineHeight:12,letterSpacing:.72,textTransform:"uppercase"},trackItemsEnd:{color:"#000000",fontSize:17,fontWeight:"400",lineHeight:26.34375,fontVariant:["tabular-nums"]},trackItemsLiFirst:{color:"#000000",fontSize:17,fontWeight:"400",lineHeight:26.34375},trackItemsLiLast:{color:"#000000",fontSize:17,fontWeight:"400",lineHeight:26.34375},noteAfterTotal:{color:"#6b6b6b",fontSize:13,fontWeight:"400",lineHeight:19.5},rowLink:{color:"#10462e",fontSize:15,fontWeight:"700",lineHeight:20.25},rowLinkIcon:{color:"#10462e",fontSize:15,fontWeight:"700",lineHeight:20.25},rowLinkChevron:{color:"#819d90",fontSize:15,fontWeight:"700",lineHeight:20.25},ghost:{color:"#000000",fontSize:17,fontWeight:"400",lineHeight:26.34375},ghostBar:{color:"#000000",fontSize:17,fontWeight:"400",lineHeight:26.34375},field:{color:"#000000",fontSize:17,fontWeight:"400",lineHeight:26.34375},fieldLabel:{color:"#10462e",fontSize:15,fontWeight:"700",lineHeight:21},fieldInput:{color:"#000000",fontSize:17,fontWeight:"400",lineHeight:26.34375},fieldInputText:{color:"#000000",fontSize:17,fontWeight:"400",lineHeight:26.34375}},PHONE_DECOR={body:{font:"sans"},pushBody:{font:"sans"},subtabs:{font:"sans",lineBottom:{width:1,color:"#e4e4e4"}},subtab:{font:"sans"},subtabCurrent:{font:"sans",insetBottom:{width:3,color:"#07c168"}},titleBlock:{font:"sans"},screenTitle:{font:"sans",wrap:"balance"},screenMeta:{font:"mono",wrap:"pretty"},stack:{font:"sans"},card:{font:"sans"},cardHead:{font:"sans"},cardTitle:{font:"sans"},cardTitleInHead:{font:"sans"},cardLink:{font:"sans"},cardLinkAfterNote:{font:"sans"},forLabel:{font:"mono"},forLabelNext:{font:"mono"},itemsLiFirst:{font:"sans"},itemsLiMid:{font:"sans"},itemsLiLast:{font:"sans"},thumb:{font:"sans"},thumbIcon:{font:"sans"},thumbPink:{font:"sans"},thumbYellow:{font:"sans"},thumbSage:{font:"sans"},itemsName:{font:"sans"},itemsMeta:{font:"sans"},itemsActs:{font:"sans"},itemsActLink:{font:"sans",underlineOffset:3},itemsActButton:{font:"sans",underlineOffset:3},itemsEnd:{font:"sans"},itemsPrice:{font:"sans"},pill:{font:"mono"},pillSoon:{font:"mono",ring:{width:1.25,color:"#f6d892"}},btnRow:{font:"sans"},btnRowIcon:{font:"sans"},btnRowLabel:{font:"sans"},sumTotal:{font:"sans"},sumRowFirst:{font:"sans"},sumRowLast:{font:"sans"},sumDt:{font:"sans"},sumDd:{font:"sans"},sumDdTotal:{font:"sans"},noteAfterSum:{font:"sans"},rowsLiFirst:{font:"sans"},rowsLiNext:{font:"sans"},rowsK:{font:"sans"},rowsV:{font:"sans"},rowsMeta:{font:"sans"},legal:{font:"sans"},legalText:{font:"sans"},traybar:{font:"sans",lineTop:{width:1,color:"#e4e4e4"}},btnInk:{font:"sans"},traybarFine:{font:"sans"},input:{font:"sans"},inputIcon:{font:"sans"},inputText:{font:"sans"},inputPlaceholder:{font:"sans"},filters:{font:"sans"},filter:{font:"sans"},filterCurrent:{font:"sans"},sectionHead:{font:"sans"},prods:{font:"sans"},prod:{font:"sans"},prodImg:{font:"sans"},prodIcon:{font:"sans"},prodTags:{font:"sans"},prodBody:{font:"sans"},prodName:{font:"sans"},prodMeta:{font:"sans"},prodPrice:{font:"sans"},pillClear:{font:"mono",ring:{width:1.5,color:"#07c168"}},pillPlain:{font:"mono",ring:{width:1.5,color:"rgba(16, 70, 46, 0.2)"}},pillOverdue:{font:"mono",ring:{width:1.25,color:"#c03410"}},hero:{font:"sans"},heroIcon:{font:"sans"},source:{font:"sans"},sourceIcon:{font:"sans"},sourceBold:{font:"sans"},sourceLink:{font:"sans",underlineOffset:3},choices:{font:"sans"},choiceCurrent:{font:"sans"},choice:{font:"sans"},radioOn:{font:"sans"},radioOff:{font:"sans"},choiceText:{font:"sans"},choiceTitle:{font:"sans"},choiceMeta:{font:"sans"},facts:{font:"sans"},factsLi:{font:"sans"},factsLiHer:{font:"sans"},factsK:{font:"sans"},factsN:{font:"sans"},factsUnit:{font:"sans"},noteAfterFacts:{font:"sans"},cardLead:{font:"sans"},person:{font:"sans"},avatar:{font:"sans",ring:{width:1,color:"#e4e4e4"}},personName:{font:"sans"},personMeta:{font:"sans"},sourceInCard:{font:"sans"},sourceInCardIcon:{font:"sans"},noteAfterSource:{font:"sans"},rxLead:{font:"sans"},btnOutlineSm:{font:"sans"},btnOutlineSmIcon:{font:"sans"},noteStandalone:{font:"sans"},noteLink:{font:"sans"},sumPlain:{font:"sans"},sumPlainRowFirst:{font:"sans"},sumPlainRowLast:{font:"sans"},sumPlainDd:{font:"sans"},planRowsLiFirst:{font:"sans"},planRowsLiNext:{font:"sans"},switch:{font:"sans"},switchTrack:{font:"sans"},switchKnob:{font:"sans",drop:{x:0,y:1,blur:2,spread:0,color:"rgba(16, 70, 46, 0.06)"}},switchTrackOff:{font:"sans"},switchKnobOff:{font:"sans",drop:{x:0,y:1,blur:2,spread:0,color:"rgba(16, 70, 46, 0.06)"}},breaks:{font:"sans"},btnSm:{font:"sans"},linkDanger:{font:"sans",underlineOffset:3},sheet:{font:"sans"},sheetBackdrop:{font:"sans"},sheetGrab:{font:"sans"},sheetGrabBar:{font:"sans"},sheetHead:{font:"sans"},sheetClose:{font:"sans"},sheetCloseIcon:{font:"sans"},sheetBody:{font:"sans"},sheetText:{font:"sans"},sheetActions:{font:"sans"},btnDanger:{font:"sans"},btnOutline:{font:"sans"},rec:{font:"sans"},recRow:{font:"sans"},recIcon:{font:"sans"},recText:{font:"sans"},recTitle:{font:"sans"},recMeta:{font:"sans"},recEnd:{font:"sans"},trackerLi:{font:"sans"},trackerLiLast:{font:"sans"},trackerLineDone:{font:"sans"},trackerLine:{font:"sans"},dotDone:{font:"sans"},dotDoneIcon:{font:"sans"},dotNow:{font:"sans"},dotNowCore:{font:"sans"},dotNext:{font:"sans"},trackerTitle:{font:"sans"},trackerTitleNext:{font:"sans"},trackerWhen:{font:"sans"},trackerText:{font:"sans"},pillStable:{font:"mono"},trackItemsEnd:{font:"sans"},trackItemsLiFirst:{font:"sans"},trackItemsLiLast:{font:"sans"},noteAfterTotal:{font:"sans"},rowLink:{font:"sans"},rowLinkIcon:{font:"sans"},rowLinkChevron:{font:"sans"},ghost:{font:"sans"},ghostBar:{font:"sans"},field:{font:"sans"},fieldLabel:{font:"sans"},fieldInput:{font:"sans"},fieldInputText:{font:"sans"}},PHONE_ICONS={shield:{size:56,uri:"data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAKgAAACoCAQAAADeQm0/AAAK6klEQVR4Ae3BCbBVhWEA0HPveyDyBSGWzR2GuOMSo6VVo3XBoo5RxAJGDG6ALT/5T2syMdFGo0mclP4X/49bVBStSxBS9QOJURGraINRsxRRcWNxQVwG+YAs0uk4nZjKff/e9+7bnHeOhoaGhoaGhoaGOAK17XAjHWEnA/GW5R4z1wI1LFCrBppkoh191jLXu9EqNSlQm85wk21F63SWWWpQRi36mR/rppDuxtjWQ2pORq3p52GniuNwX3G/9WpKRm05wOP2Ftdg48z1rhqSUUvGmK2PJPo42x+8qGZk1IrtXOcqWUl1N04f82xWEwK14RAz7KZ4zxvjj2pARvVlXe5WfZWin3N0+i9VF6i2L7rHQdLxmDHeUlWBaurpEhfpIT2rXeEaG1VNoFoC4/3IjtL3kpzZqiRQHQe7wcHK52FTLFYFgco73jeNlMR/O9NGtztIEjNd4zEVFqik7s6Us59kOozViR6mO10yz/ipu21QMYFK2c0FztZfUt9zlT/7lqsltco013tFRQTKL2uUiY4WSKrTWB3+0gnu0lty89xglo3KLFBO3Y1wmpN9QTFedqIXfNZQcw1VjPfd714P2qBsAuUxxEH+wYmaFOtW3/ChrdvOvzlfsTrN9gvPeFUZBNKxvV3sbBe72MtehinNShPMVdgItxqkFOu96HkvWGaZ5V7TKQWBUhxtpOF2MkBP6bnLP3lf17Y31bnSs9bbVnjSXPMULVCcrPNdapC0vWKih8V3tGvtKW0rXG6aTYoQKMYBZhkibetc7mrJXeRyTdL2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61FGIQ67z1MWu0bcFXb7vrR5ctW529sKklGot1X4gqU+I+42ud4036sKllGMjUa71QJDda3Jg1ZoU4SM4rR50o99y3wlcrVa6mGHFCmjeAfd5QnfNVncOnd5Sy9k9M5brnaFtQZo1+LLNuillN7bYLtO223Qayl9QEofkNIHpPQBKX1ASh+Q0gek9AEpoYNC5/gonCv0byekhN4RqvBRmCW0zwkZoS1CS/VX48M0wjJThTY7ISP0rldN1Ok7ZrnXSz4Mp7rfPfoLveI9J2RELTBRaJQ6m9zpj07O11Q7V9wCEWlRjfabKiprjlG2OSSf6bLaNaqVT5k17jBI3M3WiciIW+0fnjVA1I0qLPaow4ozxAKzpcW1uM4vxKQl7bVWqayoEpeZ6bDfi5suq12jWnHzveAyKXGvmmqLhLRc73naThc7Q9QnTDbN2xqEpstq16hWaIJfull/cQ1mut8BOTLye8HLbveAgaLKrFdvrt26NsLjrpPUbKElWuWV1pUPbLbKGcYKRGXNMcJWLZguq12jWpyqyk+MEddmhal+rU0X0rpz2M+9ZLTzRKWMM1fadl+X1a5RrWnWukaJuHpTrNaiG4FCXKvGSEl/8R8XabddqwmSGlSq06NAob7pQQMUrtkjFitIoHBnWmSGlJ61WanKAQUKFGeM5SboXr15dilCoHjXqjFSfg0q1SlSoDf6uUOVgeKaLbREq6IFeutM95mnn3bvW+5RTXolcDKGKnMe3vGGAz520v4HN6Zvz27hkx4AAAAASUVORK5CYII="},bag:{size:22,uri:"data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAEIAAABCCAQAAABJXchjAAAC/UlEQVR4Ae3BXWiVZQAA4Od792m0UJhSQy+GdZHrSBDLrF0kDbuwELstUgmDfjToIgw0MRW7kSAQEiJJbwJBjcDALgx/yDCK/F8QFKbEmmKazZuQFqLf+c62c7b3bGeH78LncdcdidFN86ipJuZfpw0YRWI0r9qhMVbaqaYWtfXYK9EYSx11Xg1BLbPslWiUxF6z1BBUF+wxQyPNsEdQVYvqNlqu0TokDqsiVc0iG+QO22T8Nlkos8FR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Us6deH7lcLLG/yxzvS1sM5lhPuMsBSiLTFfTKkJOmaIM2QWSSaxzlNz9IM8MdnnSCSKW8dgW9UkWynO01DSpts9THvrbOWkc7yvGmmmm0SrvEgqJWRSki2SZ63wRD9b0rvaBFUNSqaA852Xo8Y5dT7ada/e5xqe8VtMtL5LUr6DVAzmB2WO5lh5qkGovM9ZYd6FXQLi+R166gV4VINSa61CUmyrLWQi9ar1yLFVoERa2KykSqd5oOJ6lXr97BtunTZ4vPLfSxNC1WaBEUtSr6V2QktVihRVDUqmi3nJHUq6BdXiLvEG/aLTayis5QFFzkALvFRlqnVkWJRf6wW87I6/WGc4z1jfm2+Y+NcqL97PO/8g+Ihe5zzyrCeQAAAABJRU5ErkJggg=="},check:{size:16,uri:"data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAADAAAAAwCAQAAAD9CzEMAAABVUlEQVR4Ae3Bu20UQQAA0Lde13AF0AQSLZglQISklphxAUAdyDOSJXIyMlIaOG0CLTAShBTgI1jGd+fznu+XgPY9k8nkP9A4pdfeWXjrizut0wk+mpl55oOFv86cSpAMGivOnUZ0rXrv1p0zpxBcq6JPVjSOFyRVlK1pHCtIqii7p3GcIKmibEPjGEFSRdkDGocLkirKHtQ4VJBUUTaicZggqaJsVGvVhc+C377ZLkqqKNuitXTuqydmXip644KkirKtzqxaGNy4NCZIqih7RGvpVvHKoPPT3KYoqa5kj2qt+q7oDJ4reuuCpIqyHbTW9YrOoFP0loKkirKdtO7rFZ1Bp+gNgqSKsh21NvWKzqBT9AiSKsp21npIr+gMOsVTSRVle2iMeSPbFGV7aY2Z++XCuivZnlrj5orOUpTtrbVNr+gMouwAre16P7zApRuTyWTyz/oDUB1ZN9kNGUEAAAAASUVORK5CYII="},file:{size:16,uri:"data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAADAAAAAwCAQAAAD9CzEMAAABtElEQVR4Ad3Bv2rUcAAA4K+/ZndUXARBIp3cxEkQHYq4aOmiHQTvQH0GIw30DYTK3WhdgqBu/sHdQe2mzQNY6wM4V0oI5rze7+5yZNDv889bMm7DTZecNN03W56LWjLqlOeumMcD2yKWjXrjsvlct++LiZY13fPQ/G746ZMJEk23VF54ZM9kh0Zt46ljBU2XVB7bM4u+2raeYwVNJ1S+ms1QX22g5xjBYob6agM9Y4JFDfXVBnr+EixuqK820DMiaONAZUVl6IHawG0NQRu7KpvOqWy7r7alIdHGwKoja9aMO6MhaOOVD2aUiFmXS1VKmULtjmeumkEQk0vVUrk/Dlyz4aV9UyTa27Fj1KExQUymVCtlWkjEFAoLCjoWdCzoWCJmXS4VV8oUJgpicqlpUrmIoGNBTKY0TSkTkYgpFBYUdCzoWNCxRMy6XCqulClMFMTkUtOkchFBx4KYTGmaUiYiEVMoLCjoWNCxoGNB04HKijZWVH5oCJp2VTadM6/zNlU+a0g0Da06smZNe080BE0vfbCo195qWDbqnQvOau+9u35pWDLujpsuOm0+3330yo7/zm9pA1VwIYzMRQAAAABJRU5ErkJggg=="},message:{size:20,uri:"data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAADwAAAA8CAQAAACQ9RH5AAAD+UlEQVR4Ae3Bf4iW9QEA8M/7vVfIS67uamWlcZW1cE7SrD8qNK2z2hzbXJ60QtoUrP5IiiiSKJIiCIoo65/KiDIz1jbJ+WtalDXH8kedyVwL71REa8w8Uy/jrDievu/zvK/v/X76z8/HCSf8WAr65wzXmORnGtSpU2efXfbZY7s1tuuHgr76rWtdbbTutVltueX6pKAvrrHQxfpmk7k26VVBby72pBv0x3dedZ+9elTQkwYLzFXUfwc1W60HBd1rtN4IlfZYYa1W++33pQb16l3kJtNUesgC3SrozgjrNcra4Qlrfaq6er93j0ZZy9zssKoKqhvufRdI7fegZ/XuNgv8RGqrKxxSRY1qhnvPKKnHzPC+vthooVNdLjrTWEtUUaOa1S4RtbvSq47qq04r7PJLQeIiRe84To3jNbtb9JUmG/XXR9aZbqjERC22q1Cj0lCrDJM4pMm/DMRuG8wSJH7lLV8oU6PSI64XzbHCQO10w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ksWvE+xay160QDCIMY9LGXGEUvNIbNSPmalAYRB7DYqZcqCpWbBVimjdhtA6N+k+6SccsJS9EWnpXzYhL6F/u0XUjZYqjZKCQf0LfRrjdulfM1JS9WLvi7lg9boU+jXYSmLHrGUbZZ2WJ9Cf+6yWsox05ay056Vstrv6kvox4i9UubttNRNWZBywLA+hH6st0rKU2YtdbM+K2WVj+hDKG/MTilzntAGu1yQ8inLlDasvMfcImXKN7XBJf/nfYpd67IXlRTKGvewlBlHtMVnzUr5uJVKCmXtMiplyoK2WDAlZdQuJYVyJtwv5ZQT2uRZp6V82IRSQjlbhZRN2uYRKcO2KCWU8VPulvI1/6BtvuFFKXdbpoRQxv2uUWzRFm20Ucqoe5QQylgv5ZjT2ui0L0p5QAmhd6v9imLzdmqrrRYU+3W/pmehd++V8rRZbTXrkJTf0rPQu19Q7If2abPdLih2vZ6F3t2o2DEXtNl5zyp2g56F3l2v2Je03XHFrtez0LsbFfuOtjuj2A16Fnr304pdo+2GFPsZPQu9O6vY27XdTYp9V89C784q9vva7g7FzupZ6N20Yuss12ZvdZ9i/6FnoXdnFXuLL2mvIX/hzYqd1bPQu7NS3u95K7XRz/lba6VM69mw3r1qvWWKvc0f+XlzfuSSdljhV211zISU//aQng0p43GfdPXZYY+ehTKOuORq8xNHlBDK+IHjrjbHvKaEUM5BV5uDShlWzjmXvdfVY7u/Vsqwsv7Re/ySq8NXPaikUNbr7vCKq8F33am0UN55H3TJle7HfsePlDasHz/wdbd6syvXjFv8mz4M68+so272dlemv3GL/9SXYf265ITX/LZhV5ZLHrHZT/RpyGAmbbLOleOoJ50xgCGDW26dB/2ydpv2J446b0BDchl3s5vc7GY3uU47/I8zzvh3Z5zxXzqdTqfT6XQ69fl/IEJ+PiL5Pq8AAAAASUVORK5CYII="},syringe:{size:56,uri:"data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAKgAAACoCAQAAADeQm0/AAAMeklEQVR4Ae3BbYykd0EA8N/Msx2206estARvwBgDpw0Kigvthn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vdH+6kN833XEhUVqbwGl7raQNXV5adutkGFRdIxwi+dLVId3e5zpWVSEEnPWPfYU/reNsl8KYmkKXaSqcZIT7vrPalbaiLpO8xUR6i8512vVcoi1THKec62rcpY4gHTLVIFkeqJtZjoZAOUzypPuN8c3aokUm39NGsxwVibKd1a87RpNc9aVRWpFf2NM8Eh9jVE8ZZZ4BWt5vpSTYjUnhF2t6c97GawzQ2wuc01YoXVVltttc+97z3vesdngiAIgiAIgiAIgiAIgiAIgiAIgiAIgiAIgiAIgoL+D/kco6VOaO7DAAAAAElFTkSuQmCC"}};function fontFace(f,weight){return f?typeof f=="string"?{fontFamily:f,fontWeight:weight}:{fontFamily:weight==="700"?f.bold??f.regular:weight==="500"?f.medium??f.regular:f.regular}:{fontWeight:weight}}function makeKit(options){let views=/* @__PURE__ */new Map,texts=/* @__PURE__ */new Map,types=/* @__PURE__ */new Map,type=key=>{let s=types.get(key);if(!s){let{fontWeight:fontWeight,...rest}=PHONE_TEXT[key];s={...rest,...fontFace(PHONE_DECOR[key].font==="mono"?options.fonts?.mono:options.fonts?.sans,fontWeight)},types.set(key,s)}return s};return{options:options,v(key){let s=views.get(key);return s||(s={...PHONE_BOX[key]},views.set(key,s)),s},t(key){let s=texts.get(key);return s||(s={...PHONE_BOX[key],...type(key)},texts.set(key,s)),s},tx:type}}var DEFAULT_KIT=/* @__PURE__ */makeKit({}),KitContext=/* @__PURE__ */react.createContext(DEFAULT_KIT);function ShopKitProvider({fonts:fonts,renderIcon:renderIcon,children:children}){let kit=react.useMemo(()=>makeKit({...fonts?{fonts:fonts}:{},...renderIcon?{renderIcon:renderIcon}:{}}),[fonts,renderIcon]);return react.createElement(KitContext.Provider,{value:kit},children)}function useKit(){return react.useContext(KitContext)}function inkOf(key){return PHONE_TEXT[key].color??"#000000"}function Decor({k:k}){let d=PHONE_DECOR[k],radius=PHONE_BOX[k].borderRadius??0,out=[];if(d.ring){let ring2=reactNative.Platform.OS==="web"?{boxShadow:`inset 0 0 0 ${d.ring.width}px ${d.ring.color}`}:{borderWidth:d.ring.width,borderColor:d.ring.color};out.push(react.createElement(reactNative.View,{key:"ring",pointerEvents:"none",style:[{position:"absolute",top:0,right:0,bottom:0,left:0,borderRadius:radius},ring2]}))}return d.insetBottom&&out.push(react.createElement(reactNative.View,{key:"bar",pointerEvents:"none",style:{position:"absolute",right:0,bottom:0,left:0,height:d.insetBottom.width,backgroundColor:d.insetBottom.color}})),d.lineTop&&out.push(react.createElement(reactNative.View,{key:"top",pointerEvents:"none",style:{position:"absolute",right:0,top:-d.lineTop.width,left:0,height:d.lineTop.width,backgroundColor:d.lineTop.color}})),d.lineBottom&&out.push(react.createElement(reactNative.View,{key:"bottom",pointerEvents:"none",style:{position:"absolute",right:0,bottom:-d.lineBottom.width,left:0,height:d.lineBottom.width,backgroundColor:d.lineBottom.color}})),out.length?out:null}function dropShadow(k){let d=PHONE_DECOR[k].drop;return d?reactNative.Platform.OS==="web"?{boxShadow:`${d.x}px ${d.y}px ${d.blur}px ${d.spread}px ${d.color}`}:{shadowColor:d.color,shadowOpacity:1,shadowRadius:d.blur/2,shadowOffset:{width:d.x,height:d.y}}:null}function Icon({name:name,size:size,color:color,style:style}){let own=useKit().options.renderIcon?.({name:name,size:size,color:color});if(own!=null)return react.createElement(reactNative.View,{style:[{width:size,height:size},style],pointerEvents:"none"},own);let img=[{width:size,height:size,tintColor:color},style];return react.createElement(reactNative.Image,{source:{uri:PHONE_ICONS[name].uri},style:img,accessible:false,importantForAccessibility:"no",resizeMode:"contain"})}function PartIcon({name:name,k:k,inkKey:inkKey,style:style}){let box2=PHONE_BOX[k];return react.createElement(Icon,{name:name,size:box2.width??24,color:inkOf(inkKey??k),style:[box2.marginTop?{marginTop:box2.marginTop}:null,style]})}function T({k:k,style:style,children:children,lines:lines,role:role,bare:bare}){let kit=useKit();return react.createElement(reactNative.Text,{style:[bare?kit.tx(k):kit.t(k),wrapStyle(k),style],...wrapOf(k),...lines?{numberOfLines:lines}:{},...role?{accessibilityRole:role}:{}},children)}function wrapOf(k){return PHONE_DECOR[k].wrap?reactNative.Platform.OS==="web"?{}:reactNative.Platform.OS==="ios"?{lineBreakStrategyIOS:"standard"}:{textBreakStrategy:"balanced"}:{}}function wrapStyle(k){let w=PHONE_DECOR[k].wrap;return w&&reactNative.Platform.OS==="web"?{textWrap:w}:null}function underline(k){let off=PHONE_DECOR[k].underlineOffset;return off?{textUnderlineOffset:off}:{}}function Press({onPress:onPress,disabled:disabled,label:label,style:style,children:children,role:role="button",selected:selected,hitSlop:hitSlop}){return react.createElement(reactNative.Pressable,{...hitSlop?{hitSlop:hitSlop}:{},onPress:disabled?void 0:onPress,disabled:disabled===true,accessibilityRole:role,...label?{accessibilityLabel:label}:{},accessibilityState:{disabled:disabled===true,...selected!==void 0?{selected:selected,checked:selected}:{}},style:style},children)}function phoneLabel(label){return label.replace(/\s*→$/,"")}var NavContext=react.createContext({go:()=>{},openExternal:()=>{}});function ShopNativeNavProvider({value:value,children:children}){return react.createElement(NavContext.Provider,{value:value},children)}function useShopNativeNav(){return react.useContext(NavContext)}var DEFAULT_SHOP_LOOK="partner",LookContext=react.createContext(DEFAULT_SHOP_LOOK),ShopLookProvider=LookContext.Provider;function useShopLook(){return react.useContext(LookContext)}function useEverfurAppLook(){return useShopLook()==="everfur-app"}var TAB_ROUTE={package:{name:"package"},shop:{name:"shop"},orders:{name:"orders"},plan:{name:"plan"}};function tabLabel(copy,tab){return tab==="package"?copy.tabPackage:tab==="shop"?copy.tabShop:tab==="orders"?copy.tabOrders:copy.tabPlan}function CareTabs({copy:copy,current:current,tabs:tabs}){let kit=useKit(),nav=useShopNativeNav();/* @__PURE__ */
5
- return jsxRuntime.jsxs(reactNative.View,{style:[kit.v("subtabs"),{flexDirection:"row",zIndex:1}],accessibilityRole:"tablist",accessibilityLabel:copy.tabsLabel,testID:"shop-subtabs",children:[tabs.map(tab=>{let on=tab===current,k=on?"subtabCurrent":"subtab";/* @__PURE__ */
6
- return jsxRuntime.jsxs(Press,{role:"tab",selected:on,onPress:()=>nav.go(TAB_ROUTE[tab]),style:[kit.v(k),{flex:1,alignItems:"center",justifyContent:"center"}],children:[
7
- /* @__PURE__ */jsxRuntime.jsx(T,{k:k,bare:true,children:tabLabel(copy,tab)}),
8
- /* @__PURE__ */jsxRuntime.jsx(Decor,{k:k})]},tab)}),
4
+ return Object.freeze({ok:false,error:/* @__PURE__ */Object.freeze(error)})}function isOmsRefusal(error,reasonCode){return error.kind==="refused"&&(reasonCode===void 0||error.reasonCode===reasonCode)}function isOmsUnavailable(error){return error.kind==="unavailable"}function isOmsRetryable(error){return error.kind==="network"||error.kind==="timeout"||error.kind==="serviceUnavailable"||error.kind==="refused"&&error.reasonCode==="order_state_conflict"}var REASON=/^[a-z][a-z0-9_]{0,63}$/,MAX_MESSAGE=300;function cleanMessage(raw){if(typeof raw!="string")return null;let text=raw.replace(/[\u0000-\u001f\u007f]+/g," ").trim();return text.length===0||text.length>MAX_MESSAGE?null:text}function retryAfter(header){if(!header)return null;let seconds=Number(header);return Number.isFinite(seconds)&&seconds>=0?Math.min(Math.round(seconds),3600):null}function omsErrorFromStatus(status,body,headers){let requestId=headers.requestId,rid=requestId?{requestId:requestId}:{};if(status===404)return{kind:"unavailable",...rid};if(status===401)return{kind:"signedOut"};if(status===402||status===409||status===422){let envelope=body&&typeof body=="object"?body:{},reason=typeof envelope.reason_code=="string"&&REASON.test(envelope.reason_code)?envelope.reason_code:null;return{kind:"refused",status:status,reasonCode:reason,message:cleanMessage(envelope.message),...rid}}return status===400?{kind:"invalidRequest",...rid}:status===429?{kind:"rateLimited",retryAfterSeconds:retryAfter(headers.retryAfter??null),...rid}:status===503?{kind:"serviceUnavailable",...rid}:status===403?{kind:"unavailable",...rid}:{kind:"serverError",status:status,...rid}}function newIdempotencyKey(){let c=globalThis.crypto;if(c&&typeof c.randomUUID=="function")return c.randomUUID();if(c&&typeof c.getRandomValues=="function"){let b=c.getRandomValues(new Uint8Array(16));b[6]=b[6]&15|64,b[8]=b[8]&63|128;let h=Array.from(b,x=>x.toString(16).padStart(2,"0")).join("");return`${h.slice(0,8)}-${h.slice(8,12)}-${h.slice(12,16)}-${h.slice(16,20)}-${h.slice(20)}`}throw new EverfurConfigError("missing-peer-dependency","No secure random source: cannot make an idempotency key")}var MAX_ROUNDS=3,NAME_REQUIRED_REASONS=["client_name_missing"];function isNameRequired(error){return!!error&&error.kind==="refused"&&!!error.reasonCode&&NAME_REQUIRED_REASONS.includes(error.reasonCode)}var ShopActionKeys=class{constructor(make=newIdempotencyKey){this.make=make;this.keys=/* @__PURE__ */new Map}key(step){let k2=this.keys.get(step);return k2||(k2=this.make(),this.keys.set(step,k2)),k2}next(step){let k2=this.make();return this.keys.set(step,k2),k2}};async function confirmWithPayerActions(confirm,keys,payments,options={reconfirm:true}){let key=keys.key("confirm"),orderIds=[];for(let round=0;round<MAX_ROUNDS;round+=1){let res=await confirm(key);if(!res.ok)return{kind:"failed",error:res.error};orderIds=res.value.resale.map(r=>r.orderId);let pending=res.value.resale.filter(r=>r.outcome==="action_required"&&r.payerAction);if(pending.length===0)return{kind:"confirmed",orderIds:orderIds};if(!payments)return{kind:"needsPayerAction",orderIds:orderIds};if(round===0&&options.beforePayerAction)try{options.beforePayerAction(orderIds)}catch{}for(let entry of pending){let stepResult=await payments.handleNextAction(entry.payerAction,{orderId:entry.orderId});if(!stepResult.ok)return stepResult.closed?{kind:"payerActionClosed",orderIds:orderIds}:{kind:"payerActionFailed",orderIds:orderIds,message:stepResult.message}}if(!options.reconfirm)return{kind:"confirmed",orderIds:orderIds};key=keys.next("confirm")}return{kind:"needsPayerAction",orderIds:orderIds}}var UNAVAILABLE_PACKAGE_SOURCE=/* @__PURE__ */Object.freeze({load:()=>Promise.resolve(omsErr({kind:"unavailable"})),removeLine:()=>Promise.resolve(omsErr({kind:"unavailable"})),skip:()=>Promise.resolve(omsErr({kind:"unavailable"})),approve:()=>Promise.resolve({kind:"failed",error:{kind:"unavailable"}})});async function offersFor(client,ids){let unique=[...new Set(ids)],read=await Promise.all(unique.map(id=>client.offer(id)));return new Map(unique.map((id,i)=>[id,read[i].ok?read[i].value:null]))}function createOmsPackageSource(client){async function build(plan,review){let offers=await offersFor(client,review.lines.map(l=>l.offerId)),lines=review.lines.map(l=>({...l,offer:offers.get(l.offerId)??null})),draft=null;if(review.state==="open"&&lines.length>0){let d=await client.draftCycle(plan.planId,review.cycle);if(d.ok)draft=d.value;else if(d.error.kind!=="refused")return omsErr(d.error)}return omsOk({plan:plan,review:review,lines:lines,draft:draft})}return{async load(){let plans=await client.plans();if(!plans.ok)return omsErr(plans.error);let plan=plans.value.plans.find(p=>p.state==="active")??plans.value.plans.find(p=>p.state!=="cancelled");if(!plan)return omsOk(null);let review=await client.cycleReview(plan.planId);return review.ok?build(plan,review.value):omsErr(review.error)},async removeLine(pkg,index,keys){let rest=pkg.lines.filter((_,i)=>i!==index).map(l=>({offerId:l.offerId,quantity:l.quantity,...l.petId?{petId:l.petId}:{}})),edited=await client.editCycle(pkg.plan.planId,pkg.review.cycle,{idempotencyKey:keys.key(`remove:${index}`),lines:rest});return edited.ok?build(pkg.plan,edited.value):omsErr(edited.error)},async skip(pkg,keys){let res=await client.skipCycle(pkg.plan.planId,pkg.review.cycle,{idempotencyKey:keys.key("skip")});return res.ok?omsOk(void 0):omsErr(res.error)},approve(pkg,keys,payments){let draft=pkg.draft;return draft?confirmWithPayerActions(idempotencyKey=>client.approveCycle(pkg.plan.planId,pkg.review.cycle,{idempotencyKey:idempotencyKey,checkoutId:draft.checkoutId,expectedTotal:draft.total}),keys,payments,{reconfirm:false}):Promise.resolve({kind:"failed",error:{kind:"invalidRequest"}})}}}function formatCents(cents){let sign=cents<0?"-":"",abs=Math.abs(Math.round(cents));return`${sign}$${Math.floor(abs/100).toLocaleString("en-US")}.${String(abs%100).padStart(2,"0")}`}function placeholder(key){return`[copy:shop.${key}]`}var MONTHS=["January","February","March","April","May","June","July","August","September","October","November","December"];function possessive(name){return`${name}’s`}function listNames(names){return names.length<=1?names[0]??"":`${names.slice(0,-1).join(", ")} and ${names[names.length-1]}`}function asDate(iso){if(!iso)return null;let d=new Date(/^\d{4}-\d{2}-\d{2}$/.test(iso)?`${iso}T00:00:00Z`:iso);return Number.isNaN(d.getTime())?null:d}function formatDay(iso,opts={}){let d=asDate(iso);if(!d)return null;if(opts.when&&d.getUTCFullYear()!==(opts.now??/* @__PURE__ */new Date).getUTCFullYear())return d.toLocaleDateString("en-US",{timeZone:"UTC",month:"short",day:"numeric",year:"numeric"});let weekday=opts.weekday===true||opts.when===true;return d.toLocaleDateString("en-US",{timeZone:"UTC",...weekday?{weekday:"short"}:{},month:"short",day:"numeric"})}function formatWhen(iso){let d=asDate(iso);if(!d)return null;let day=d.toLocaleDateString("en-US",{weekday:"short",month:"short",day:"numeric"}),time=d.toLocaleTimeString("en-US",{hour:"numeric",minute:"2-digit"});return`${day} · ${time}`}function monthOf(iso){let d=asDate(iso);return d?MONTHS[d.getUTCMonth()]:null}function cardLabel(brand,last4){return`${brand?brand.charAt(0).toUpperCase()+brand.slice(1):""} ending ${last4}`}var PHARMACY_REFUSAL="We can’t send this prescription to the pharmacy yet. Contact us.",PHARMACY_REFUSALS=["prescription_missing","prescription_reference_missing","prescription_unreadable","prescriptions_disagree","first_fill_mixed_with_refill","duplicate_prescription_line","prescription_in_flight","client_email_missing","client_phone_missing","client_phone_not_us","practice_email_missing","practice_phone_missing","practice_phone_not_us","patient_birth_date_missing","patient_weight_missing","weight_below_partner_unit","species_not_supported","sex_not_supported","refills_over_partner_limit","indications_missing","indication_not_mapped","compounding_missing","compounding_reason_not_mapped","compounding_unexplained","delivery_speed_unavailable","address_missing","address_not_deliverable"],SHOP_COPY={tabsLabel:"Care",tabPackage:"Package",tabShop:"Shop",tabOrders:"Orders",tabPlan:"Plan",legal:"Prescription items need a valid prescription from a licensed vet, and are filled by a licensed partner pharmacy.",legalTracking:"Prescription items are filled by a licensed partner pharmacy.",loadFailed:thing=>`We couldn’t load ${thing}. Check your connection and try again.`,tryAgain:"Try again",actionFailed:"That didn’t go through. Try again.",saving:"Saving…",keepIt:"Keep it",close:"Close",thingPackage:placeholder("thing.package"),thingShop:placeholder("thing.shop"),thingProduct:placeholder("thing.product"),thingPlan:placeholder("thing.plan"),thingOrders:"your orders",thingOrder:"this order",packageTitle:month=>`${month} package`,packageSub:(names,reviewBy,arrives)=>{let s=[];return names.length>0&&s.push(`For ${listNames(names)}.`),reviewBy&&arrives&&s.push(`Approve by ${reviewBy} and it arrives ${arrives}.`),s.length?s.join(" "):null},inThisPackage:"In this package",reviewBy:day=>`Review by ${day}`,forPet:name=>`For ${name}`,details:"Details",remove:"Remove",removed:"Removed.",total:"Total",items:"Items",shipping:"Shipping",tax:"Tax",free:"Free",approveAndShip:"Approve and ship",itemCount:n=>n===1?placeholder("package.item_count_one"):`${n} items`,withTotal:(label,total)=>`${label} · ${total}`,approveRegion:"Approve",packageDetailsRegion:"Package details",deliveryPaymentRegion:"Delivery and payment",questionsRegion:"Questions",approving:"Approving…",skipThisMonth:"Skip this month",chargedWhenShips:card=>`Charged to ${card} when it ships.`,rxCheckedFirst:"Prescriptions are checked with the vet who wrote them first.",delivery:"Delivery",arrives:day=>`Arrives ${day}`,change:"Change",outOfStock:"Out of stock",packageOutOfStock:"Out of stock right now, so it won’t ship this month.",packageEmpty:month=>`Nothing in ${possessive(month)} package yet. Add something from the shop, or skip this month.`,itemNoLongerSold:placeholder("package.item_no_longer_sold"),reviewClosed:placeholder("package.review_closed"),approvalInProgress:placeholder("package.approval_in_progress"),priceChanged:placeholder("package.price_changed"),cardStepFailed:placeholder("package.card_step_failed"),cardStepClosed:placeholder("package.card_step_closed"),noCardOnFile:placeholder("package.no_card_on_file"),shopTitle:"Shop",searchLabel:"Search the shop",searchPlaceholder:"Search the shop…",filtersLabel:"Filter",filterAll:"All",refillSoon:"Refill soon",prescribedFor:names=>`Prescribed for ${listNames(names)}`,inMonthsPackage:month=>`In ${possessive(month)} package →`,forPets:names=>`For ${listNames(names)}`,allProducts:placeholder("shop.all_products_title"),rx:"Rx",hasPrescription:name=>`${name} has a prescription`,needsPrescription:"Needs a prescription",noMatches:q=>`Nothing in the shop matches ‘${q}’.`,nothingHereYet:"Nothing here yet.",photoToCome:"Photo to come",backToShop:"Shop",howOften:"How often",everyMonthIn:name=>`Every month, in ${possessive(name)} package`,skipOrStop:"Skip or stop any month",justOnce:"Just once",shipsWith:month=>`Ships with ${possessive(month)} package`,justOnceShipsNow:placeholder("product.just_once_meta"),oneFewer:"One fewer",oneMore:"One more",quantity:"Quantity",addToPackage:month=>`Add to ${possessive(month)} package`,refillInPackage:month=>`Refill in ${possessive(month)} package`,buyNow:placeholder("product.buy_now"),startPlan:placeholder("product.start_plan"),adding:"Adding…",outOfStockNow:"Out of stock right now.",prescription:"Prescription",noPrescriptionFor:name=>`No prescription for ${name} on file.`,bookVideoVisit:"Book a video visit",refillsLeft:n=>`${n} ${n===1?"refill":"refills"} left`,rxBeingPrepared:"This prescription is being prepared. You can order it soon.",rxTooSoon:placeholder("rx.too_soon"),rxRenew:placeholder("rx.needs_renewal"),rxPick:placeholder("rx.pick_pet"),educational:"Educational, not a diagnosis.",planTitle:"Your plan",whatRepeats:"What repeats",repeatsLabel:title=>`${title} repeats`,cadenceMonths:months=>months===1?"Every month":`Every ${months} months`,cadenceDays:placeholder("plan.cadence_days"),repeatsEmpty:"Nothing repeats yet. Pick Every month when you add something, and it shows up here.",nextPackage:"Next package",reviewByLabel:"Review by",ships:"Ships",reviewMonthsPackage:month=>`Review ${possessive(month)} package →`,deliveryAndPayment:"Delivery and payment",shipTo:"Ship to",payWith:"Pay with",needABreak:"Need a break?",skipMonth:month=>`Skip ${month}`,skipMonthAsk:month=>`Skip ${month}?`,skipMonthBody:"Nothing ships this month.",pausePlan:"Pause the plan",pausePlanAsk:"Pause the plan?",pausePlanBody:"Nothing ships until you turn it back on.",declined:month=>month?`Declined. Update your card so ${possessive(month)} package can ship.`:"Declined.",resumePlan:placeholder("plan.resume"),stopReason:reason=>placeholder(`plan.stop_reason.${reason}`),consentTitle:placeholder("plan.consent_title"),consentBody:placeholder("plan.consent_body"),consentTermsLink:placeholder("plan.consent_terms_link"),consentAgree:placeholder("plan.consent_agree"),ordersTitle:"Orders",ordersSub:names=>`Packages and one-off orders for ${listNames(names)}.`,allOrders:"All orders",placed:day=>`Placed ${day}`,ordersEmpty:"No orders yet. Your first package shows up here once you approve it.",paymentFailed:"Payment failed",backToCare:"Care",onItsWay:title=>`${title}, on its way`,shouldArrive:day=>`It should arrive ${day}.`,whereItStands:"Where it stands",stepApproved:"Approved",stepChecking:"Checking prescriptions…",stepFilled:"Filled by the pharmacy",stepShipped:"Shipped",stepDelivered:"Delivered",now:"Now",expected:day=>`Expected ${day}.`,inTheBox:"In the box",payment:"Payment",cancelOrder:placeholder("order.cancel"),payOrder:placeholder("order.pay"),trackPackage:placeholder("order.track"),orderStatus:{pending_placement:"Confirmed, sending to the pharmacy",placement_unknown:"Confirmed",placed:"With the pharmacy, in review",accepted:"Approved by the pharmacist",release_sent:"Approved, being prepared",release_unknown:"Approved, being prepared",released:"Being prepared",shipped:"Shipped",delivered:"Delivered",needs_support:"We’re looking into this order",rejected:placeholder("order.status.rejected"),cancelled:"Cancelled",pending_handoff:placeholder("order.status.pending_handoff")},addressTitle:placeholder("address.title"),addressLabel:placeholder("address.label"),addressRecipient:placeholder("address.recipient_name"),addressLine1:placeholder("address.line1"),addressLine2:placeholder("address.line2"),addressCity:placeholder("address.city"),addressRegion:placeholder("address.region"),addressPostal:placeholder("address.postal_code"),addressSave:placeholder("address.save"),addressNeeded:placeholder("address.needed"),cardTitle:placeholder("card.title"),cardBody:placeholder("card.body"),cardStart:placeholder("card.start"),cardUnavailable:placeholder("card.unavailable"),confirmTitle:placeholder("buy.confirm_title"),confirmPay:placeholder("buy.confirm_pay"),nameMissing:placeholder("checkout.name_missing"),addName:placeholder("checkout.add_name"),firstName:placeholder("checkout.first_name"),lastName:placeholder("checkout.last_name"),saveName:placeholder("checkout.save_name"),refusal:{operation_not_supported:"This action isn’t available for this order.",order_not_sellable:"We can’t ship this order as it is. Add items or contact us.",rx_being_prepared:"This prescription is being prepared. You can order it soon.",rx_not_dispensable:PHARMACY_REFUSAL,...Object.fromEntries(PHARMACY_REFUSALS.map(code=>[code,PHARMACY_REFUSAL])),order_state_conflict:"This order changed. Refresh and try again.",payment_method_in_use:"A subscription or an order uses this card."},rateLimited:placeholder("error.rate_limited")},SHOP_COPY_PLACEHOLDERS=(()=>{let keys=/* @__PURE__ */new Set,visit=v=>{if(typeof v=="string"){let m=/^\[copy:(shop\.[a-z0-9_.]+)\]$/.exec(v);m&&keys.add(m[1])}else if(typeof v=="function")try{visit(v("x","x","x"))}catch{}else if(v&&typeof v=="object")for(let inner of Object.values(v))visit(inner)};return visit(SHOP_COPY),[...keys].sort()})();function shopCopy(overrides){return overrides?{...SHOP_COPY,...overrides}:SHOP_COPY}function refusalLine(copy,error){if(error.kind==="rateLimited")return copy.rateLimited;if(error.kind==="refused"){if(isNameRequired(error))return copy.nameMissing;let own=error.reasonCode?copy.refusal[error.reasonCode]:void 0;if(own)return own;if(error.message)return error.message}return copy.actionFailed}var SHOP_V3_COPY={cartTitle:"Cart",cartLabel:n=>n>0?`Cart, ${n} item${n>1?"s":""}`:"Cart, empty",cartEmptyTitle:"Your cart is empty",cartEmptyBody:null,addToCart:"Add to cart",viewCart:"View cart",addedToCart:name=>`${name} is in your cart.`,removedFromCart:name=>`${name} is out of your cart.`,quantityLabel:name=>`How many: ${name}`,fewer:"One fewer",more:"One more",remove:"Remove",subtotal:"Subtotal",shipping:"Shipping",tax:"Tax",free:"Free",total:"Total",checkoutCart:total=>`Checkout · ${total}`,checkoutKicker:"Checkout",itemQuantity:n=>`Qty ${n}`,shipsTo:"Ships to",payWith:"Pay with",placeOrder:total=>`Place order · ${total}`,chooseAddress:placeholder("checkout.choose_address"),chooseCard:placeholder("checkout.choose_card"),addAddress:placeholder("checkout.add_address"),addCard:placeholder("card.start"),makeDefault:placeholder("address.make_default"),editAddress:placeholder("address.edit"),noAddressYet:placeholder("address.needed"),noCardYet:placeholder("package.no_card_on_file"),placedHeader:"Order placed",placedTitle:"Order placed.",placedSteps:"What's coming",placedShips:"It ships.",placedArrives:"It arrives at home.",viewOrder:"View order",ordersTitle:"Orders",ordersEmptyTitle:"No orders yet",ordersEmptyBody:null,moreOrders:placeholder("orders.more"),subscriptionBox:"Subscription box",orderTitle:n=>n===null?"Order":`Order ${n}`,arrivesBy:day=>`Arrives by ${day}`,deliveredOn:day=>`Delivered ${day}`,expected:day=>`Expected ${day}`,orderSteps:["Ordered","Shipped","Out for delivery","Delivered"],tracking:"Tracking",trackOn:carrier=>`Track on ${carrier}`,inThisOrder:"In this order",orderItemLine:n=>`Qty ${n}`,buyAgain:"Buy again",orderHelp:"Get help with this order",paidWith:"Paid with",refund:placeholder("order.refund"),discount:placeholder("order.discount"),cancelAsk:placeholder("order.cancel_ask"),cancelBody:null,cancelRequested:placeholder("order.cancel_requested"),close:"Close",manageKicker:"Your subscription",manageTitle:name=>`Manage ${name}`,manage:"Manage",shipsEvery:"Ships every",daysChip:n=>`${n} days`,skipNext:"Skip the next box",cancelSubscription:"Cancel subscription",nextBox:day=>`Next box ${day}`,everyDays:n=>`Every ${n} days`,subscribedLine:(n,next)=>next===null?`Every ${n} days`:`Every ${n} days · next box ${next}`,skipped:"Skipped.",cancelSubscriptionAsk:placeholder("plan.cancel_ask"),cancelSubscriptionBody:placeholder("plan.cancel_body")},SHOP_V3_COPY_PLACEHOLDERS=Object.values(SHOP_V3_COPY).filter(v=>typeof v=="string"&&v.startsWith("[copy:"));function shopV3Copy(overrides){if(!overrides)return SHOP_V3_COPY;let own={};for(let[k2,v]of Object.entries(overrides))k2 in SHOP_V3_COPY&&v!==void 0&&(own[k2]=v);return{...SHOP_V3_COPY,...own}}var ShopContext=react.createContext(null);function ShopProvider(props){let{client:client,pets:pets,payments:payments,packageSource:packageSource,copy:copy,v3Copy:v3Copy,saveProfileName:saveProfileName,onProfileNameRequired:onProfileNameRequired,children:children}=props,saveName=react.useRef(saveProfileName);saveName.current=saveProfileName;let editName=react.useRef(onProfileNameRequired);editName.current=onProfileNameRequired;let canSave=!!saveProfileName,canEdit=!!onProfileNameRequired,value=react.useMemo(()=>{let list=pets??[],names=new Map(list.map(p=>[p.petId,p.name]));return{client:client,pets:list,petName:id=>id?names.get(id)??null:null,payments:payments??null,packageSource:packageSource??createOmsPackageSource(client),copy:shopCopy(copy),v3:shopV3Copy(v3Copy),saveProfileName:canSave?name=>saveName.current?saveName.current(name):Promise.resolve(false):null,onProfileNameRequired:canEdit?()=>editName.current?.():null}},[client,pets,payments,packageSource,copy,v3Copy,canSave,canEdit]);return react.createElement(ShopContext.Provider,{value:value},children)}function useShop(){let ctx=react.useContext(ShopContext);if(!ctx)throw new EverfurConfigError("not-initialized","useShop: wrap the shop in <ShopProvider>");return ctx}function useShopRead(key,read){let[state,setState]=react.useState({key:null,phase:"loading",value:null,error:null}),epoch=react.useRef(0),inflight=react.useRef(null),readRef=react.useRef(read);readRef.current=read;let load=react.useCallback(quiet=>{let mine=++epoch.current;if(key===null)return Promise.resolve();quiet||setState({key:key,phase:"loading",value:null,error:null});let done=readRef.current().then(res=>{if(mine!==epoch.current)return;if(res.ok){setState({key:key,phase:"ready",value:res.value,error:null});return}let next={key:key,phase:res.error.kind==="unavailable"?"unavailable":"failed",value:null,error:res.error};quiet&&next.phase==="failed"?setState(prev=>prev.key===key&&prev.phase==="ready"?prev:next):setState(next)},()=>{});return inflight.current={epoch:mine,done:done},done.then(()=>{inflight.current?.epoch===mine&&(inflight.current=null)}),done},[key]);react.useEffect(()=>(load(false),()=>{epoch.current+=1}),[load]);let refresh=react.useCallback(()=>{load(false)},[load]),reread=react.useCallback(()=>{let running=inflight.current;return running&&running.epoch===epoch.current?running.done:load(true)},[load]);return state.key!==key?{phase:"loading",value:null,error:null,refresh:refresh,reread:reread}:{phase:state.phase,value:state.value,error:state.error,refresh:refresh,reread:reread}}function useShopConfig(){let{client:client}=useShop();return useShopRead("shop-config",()=>client.shopConfig())}function useOffers(query={}){let{client:client}=useShop(),text=query.text?.trim()??"",key=`offers:${text}:${query.requiresRx??""}`;return useShopRead(key,()=>client.offers({...text?{text:text}:{},...query.requiresRx!==void 0?{requiresRx:query.requiresRx}:{},limit:100}))}function useOffer(offerId){let{client:client}=useShop();return useShopRead(offerId?`offer:${offerId}`:null,()=>client.offer(offerId))}function usePrescriptions(){let{client:client}=useShop();return useShopRead("prescriptions",()=>client.prescriptions())}function useAddresses(){let{client:client}=useShop();return useShopRead("addresses",()=>client.addresses())}function useAddress(ref){let{client:client}=useShop();return useShopRead(ref?`address:${ref}`:null,()=>client.address(ref))}function usePaymentMethods(){let{client:client}=useShop();return useShopRead("payment-methods",()=>client.paymentMethods())}function useOrder(orderId){let{client:client}=useShop();return useShopRead(orderId?`order:${orderId}`:null,()=>client.order(orderId))}function usePlans(){let{client:client}=useShop();return useShopRead("plans",()=>client.plans({limit:100}))}function usePackage(){let{packageSource:packageSource}=useShop();return useShopRead("package",()=>packageSource.load())}function useShopAction(act){let[busy,setBusy]=react.useState(false),[error,setError]=react.useState(null),keys=react.useRef(null),running=react.useRef(false),actRef=react.useRef(act);actRef.current=act;let mounted=react.useRef(true);react.useEffect(()=>(mounted.current=true,()=>{mounted.current=false}),[]);let run=react.useCallback(async(...args)=>{if(running.current)return null;running.current=true,keys.current??=new ShopActionKeys,setBusy(true),setError(null);try{let res=await actRef.current(keys.current,...args);return res.ok?keys.current=null:isRetryWithSameKey(res.error)||(keys.current=null),mounted.current&&setError(res.ok?null:res.error),res}finally{running.current=false,mounted.current&&setBusy(false)}},[]),reset=react.useCallback(()=>{keys.current=null,setError(null)},[]);return{busy:busy,error:error,run:run,reset:reset}}function isRetryWithSameKey(error){return error.kind==="network"||error.kind==="timeout"||error.kind==="serviceUnavailable"||error.kind==="serverError"}function distinct(xs){let out=[];for(let x of xs)x!==null&&!out.includes(x)&&out.push(x);return out}var FORMS=[[/\b(inject(ion|able)?|vial|syringe|pen)s?\b/i,"syringe"],[/\b(chew(able)?|soft ?chew|treat)s?\b/i,"bowl"],[/\b(shampoo|spray|ointment|cream|gel|lotion|topical|spot[- ]on|otic|ophthalmic|wipe|foam|mousse|collar)s?\b/i,"shield"],[/\b(solution|suspension|liquid|syrup|elixir|drops?|oral ?paste|paste)s?\b/i,"flask"],[/\b(tablet|caplet|capsule|tab|cap|pill)s?\b/i,"pill"]];function drugFormIcon(title,form){for(let text of[title,form]){if(!text)continue;let hit=FORMS.find(([re])=>re.test(text));if(hit)return hit[1]}return"pill"}function tileFor(rx,title,form){return rx?{tone:"pink",icon:drugFormIcon(title,form)}:{tone:"yellow",icon:"leaf"}}var DRUG_FORMS=[[FORMS[0][0],"injection"],[FORMS[1][0],"chew"],[FORMS[2][0],"topical"],[FORMS[3][0],"liquid"],[/\b(capsule|cap)s?\b/i,"capsule"],[/\b(tablet|caplet|tab|pill)s?\b/i,"tablet"]];function drugForm(rx,title,form){if(!rx)return null;for(let text of[title,form]){if(!text)continue;let hit=DRUG_FORMS.find(([re])=>re.test(text));if(hit)return hit[1]}return"unknown"}var FORM_TILES={tablet:{tone:"pink",icon:"pill"},capsule:{tone:"sage",icon:"pill"},liquid:{tone:"base",icon:"flask"},injection:{tone:"base",icon:"syringe"},chew:{tone:"yellow",icon:"bowl"},topical:{tone:"sage",icon:"shield"},unknown:{tone:"pink",icon:"pill"}};function formTile(form){return form?FORM_TILES[form]:{tone:"yellow",icon:"leaf"}}function addressLine(a){return`${a.line2?`${a.line1}, ${a.line2}`:a.line1}, ${a.city}, ${a.region?`${a.region} `:""}${a.postalCode}`}function rxPill(copy){return{label:copy.rx,tone:"rx"}}function refillsLeft(rx){return rx.fillsTotal!==null&&rx.fillsUsed!==null?Math.max(0,rx.fillsTotal-Math.max(rx.fillsUsed,1)):null}function toPackageView(i){let{pkg:pkg,copy:copy,petName:petName}=i,review=pkg.review,month=monthOf(review.shipsOn),names=distinct(pkg.lines.map(l=>petName(l.petId))),open=review.state==="open",priced=new Map(review.quoteLines.map(q=>[`${q.offerId}:${q.petId??""}`,q])),items=pkg.lines.map((line,index)=>{let offer=line.offer,q=priced.get(`${line.offerId}:${line.petId??""}`),rx=offer?.requiresRx??false,pills=[];return offer||pills.push({label:copy.outOfStock,tone:"later"}),{petId:line.petId,view:{key:`${line.offerId}:${line.petId??""}:${index}`,name:offer?.title??copy.itemNoLongerSold,rx:rx,meta:null,alert:offer?null:copy.packageOutOfStock,pills:pills,price:q&&offer?formatCents(q.unitPrice*q.quantity-q.discount):null,...tileFor(rx,offer?.title),details:offer?{label:copy.details,to:{name:"product",offerId:offer.offerId,...line.petId?{petId:line.petId}:{}}}:null,remove:open?{label:copy.remove,busy:i.removing===index,disabled:i.removing!==null,onPress:()=>i.onRemove(index)}:null}}}),groups2=[];for(let it of items){let name=petName(it.petId),label=name?copy.forPet(name):null,existing=groups2.find(g=>g.label===label);existing?existing.items.push(it.view):groups2.push({label:label,items:[it.view]})}let sum=[],d=pkg.draft;d?(sum.push({k:copy.items,v:formatCents(d.total-d.shipping-d.tax)}),sum.push({k:copy.shipping,v:d.shipping===0?copy.free:formatCents(d.shipping)}),sum.push({k:copy.tax,v:formatCents(d.tax)}),sum.push({k:copy.total,v:formatCents(d.total)})):review.quoteLines.length>0&&sum.push({k:copy.items,v:formatCents(review.quoteLines.reduce((n,q)=>n+q.unitPrice*q.quantity-q.discount,0))});let card=i.card?cardLabel(i.card.brand,i.card.last4):null,anyRx=pkg.lines.some(l=>l.offer?.requiresRx),note=card?[copy.chargedWhenShips(card),anyRx?copy.rxCheckedFirst:null].filter(Boolean).join(" "):null,error=i.error;!error&&review.state==="approving"?error=copy.approvalInProgress:!error&&review.state!=="open"&&review.state!==null?error=copy.reviewClosed:!error&&open&&!i.card&&(error=copy.noCardOnFile);let approve=open&&d&&i.card?{label:copy.approveAndShip,busyLabel:copy.approving,busy:i.approving,disabled:i.approving||i.placed===true||i.removing!==null,onPress:i.onApprove}:null;return{title:month?copy.packageTitle(month):copy.tabPackage,sub:copy.packageSub(names,formatDay(review.approveBy,{weekday:true}),null),reviewPill:review.approveBy&&open?copy.reviewBy(formatDay(review.approveBy)):null,countPill:pkg.lines.length>0?copy.itemCount(pkg.lines.length):null,fine:null,groups:pkg.lines.length>0?groups2:[],empty:pkg.lines.length===0?{line:month?copy.packageEmpty(month):copy.nothingHereYet,shop:{label:copy.tabShop,to:{name:"shop"}},skip:null}:null,add:null,sum:sum,approve:approve,skip:open?{label:copy.skipThisMonth,to:{name:"plan"}}:null,note:note,error:error,delivery:i.address?[{k:copy.shipTo,v:addressLine(i.address),change:{label:copy.change,to:{name:"address",then:{name:"package"}}}}]:[],legal:copy.legal}}function readyRxFor(offerId,prescriptions){return prescriptions.filter(p=>p.status==="ready"&&p.offerId===offerId)}function toTile(offer,prescriptions,copy,petName,forPetId=null){let pills=[],meta=null,petId=forPetId,holder;return offer.requiresRx&&(pills.push(rxPill(copy)),holder=readyRxFor(offer.offerId,prescriptions).find(p=>petName(p.petId)),petId=holder?.petId??forPetId,meta=holder?copy.hasPrescription(petName(holder.petId)):copy.needsPrescription),{key:offer.offerId,to:{name:"product",offerId:offer.offerId,...petId?{petId:petId}:{}},name:offer.title,meta:meta,price:offer.price!==null?formatCents(offer.price):null,pills:pills,...tileFor(offer.requiresRx,offer.title,holder?.form),form:drugForm(offer.requiresRx,offer.title,holder?.form),imageUrl:offer.imageUrl??null}}function isFirstFill(rx){return rx.fillsUsed===null||rx.fillsUsed===0}function toShelves(i){let{copy:copy}=i,tile=o=>toTile(o,i.prescriptions,copy,i.petName,i.petId??null),shelves=[],byId=/* @__PURE__ */new Map;for(let o of[...i.offers,...i.prescribed??[]])byId.set(o.offerId,o);let first=[],refill=[],firstPets=[];if(!i.searching){let ready=i.prescriptions.filter(p=>p.status==="ready"&&p.offerId!==null&&i.petName(p.petId));for(let offerId of distinct(ready.map(p=>p.offerId))){let o=byId.get(offerId);if(!o||!o.requiresRx)continue;let holders=ready.filter(p=>p.offerId===offerId);if(holders.every(isFirstFill)){first.push(o);for(let p of holders)firstPets.includes(i.petName(p.petId))||firstPets.push(i.petName(p.petId))}else refill.push(o)}}first.length>0&&shelves.push({key:"prescribed",title:copy.prescribedFor(firstPets),link:null,tiles:first.map(tile)}),refill.length>0&&shelves.push({key:"refill",title:copy.refillSoon,link:i.packageMonth?{label:copy.inMonthsPackage(i.packageMonth),to:{name:"package"}}:null,tiles:refill.map(tile)});let above=new Set([...first,...refill].map(o=>o.offerId));return shelves.push({key:"all",title:i.petNames.length>0?copy.forPets(i.petNames):copy.allProducts,link:null,tiles:i.offers.filter(o=>!above.has(o.offerId)).map(tile)}),shelves}function toProductView(i){let{copy:copy,offer:offer}=i,monthly=i.plansOn&&i.petName!==null,choice=monthly?i.choice:"once",submitLabel=choice==="monthly"?i.packageMonth?copy.addToPackage(i.packageMonth):copy.startPlan:copy.buyNow,sellable=offer.price!==null;return{back:{label:copy.backToShop,to:{name:"shop"}},title:offer.title,sub:null,price:sellable?formatCents(offer.price):null,priceUnit:null,...tileFor(false),form:null,imageUrl:offer.imageUrl??null,source:null,stockLine:sellable?null:copy.outOfStockNow,choices:monthly?[{value:"monthly",title:copy.everyMonthIn(i.petName),meta:copy.skipOrStop},{value:"once",title:copy.justOnce,meta:copy.justOnceShipsNow}]:null,choice:monthly?choice:null,onChoice:v=>i.onChoice(v==="once"?"once":"monthly"),quantity:i.quantity,onQuantity:n=>i.onQuantity(Math.min(99,Math.max(1,n))),submit:sellable?{label:submitLabel,busyLabel:copy.adding,busy:i.busy,disabled:i.busy,onPress:i.onSubmit}:{label:copy.outOfStock,disabled:true,onPress:()=>{}},error:i.error,facts:null,cards:[],aside:null,legal:copy.legal}}function toRxProductView(i){let{copy:copy,offer:offer}=i,ready=readyRxFor(offer.offerId,i.prescriptions).filter(p=>i.petName(p.petId)),rx=(i.petId?ready.find(p=>p.petId===i.petId):void 0)??ready[0]??null,sellable=offer.price!==null,script=null,submit=null,form=rx?.form??null;if(rx){let left=refillsLeft(rx);script={name:copy.hasPrescription(i.petName(rx.petId)),meta:left!==null&&left>0?copy.refillsLeft(left):null,directions:null},submit=sellable?{label:i.packageMonth?copy.refillInPackage(i.packageMonth):copy.buyNow,busyLabel:copy.adding,busy:i.busy,disabled:i.busy,onPress:()=>i.onSubmit(rx)}:{label:copy.outOfStock,disabled:true,onPress:()=>{}}}else{let held=i.prescriptions.filter(p=>p.offerId===offer.offerId&&(p.status==="being_prepared"||p.status==="too_soon")&&i.petName(p.petId)),wait=(i.petId?held.find(p=>p.petId===i.petId):void 0)??held[0]??null;if(wait)script={name:copy.hasPrescription(i.petName(wait.petId)),meta:wait.status==="being_prepared"?copy.rxBeingPrepared:copy.rxTooSoon,directions:null},submit=null,form=wait.form;else{let who=(i.petId?i.petName(i.petId):null)??i.firstPetName;script=who?{name:copy.noPrescriptionFor(who),meta:null,directions:null}:null,submit=i.bookVisitHref?{label:copy.bookVideoVisit,href:i.bookVisitHref}:null}}return{back:{label:copy.backToShop,to:{name:"shop"}},stepLabel:copy.prescription,title:offer.title,sub:null,price:sellable?formatCents(offer.price):null,priceUnit:null,...tileFor(true,offer.title,form),form:drugForm(true,offer.title,form),imageUrl:offer.imageUrl??null,script:script,stockLine:sellable?null:copy.outOfStockNow,submit:submit,note:null,error:i.error,cards:[],aside:null,legal:copy.legal}}function cadenceLine(days,copy){let months=Math.round(days/30.4);return months>=1&&Math.abs(days-months*30.4)<=2?copy.cadenceMonths(months):copy.cadenceDays}function toPlanView(i){let{copy:copy}=i,live=i.plans.filter(p=>p.state!=="cancelled"),rows=[];for(let plan of live)plan.lines.forEach((line,n)=>{let offer=i.offers.get(line.offerId)??null,pet=i.petName(line.petId),title=[offer?.title??copy.itemNoLongerSold,pet].filter(Boolean).join(" · "),stop=plan.stopReason,meta=stop==="payment_declined"?copy.declined(i.packageMonth):stop&&stop!=="customer"?copy.stopReason(stop):cadenceLine(plan.cadenceDays,copy);rows.push({key:`${plan.planId}:${n}`,title:title,meta:meta,alert:!!(stop&&stop!=="customer"),on:plan.state==="active",busy:i.busyPlan===plan.planId,onToggle:on=>i.onToggle(plan,on),error:i.rowError&&i.rowError.planId===plan.planId&&n===0?i.rowError.line:null})});let active=live.find(p=>p.state==="active")??null,sum=[],reviewBy=formatDay(i.reviewBy,{weekday:true});reviewBy&&sum.push({k:copy.reviewByLabel,v:reviewBy});let ships=formatDay(active?.nextRun??null,{weekday:true});ships&&sum.push({k:copy.ships,v:ships});let declined=live.some(p=>p.stopReason==="payment_declined"),delivery=[];i.address&&delivery.push({k:copy.shipTo,v:addressLine(i.address),change:{label:copy.change,to:{name:"address",then:{name:"plan"}}}}),i.card&&delivery.push({k:copy.payWith,v:cardLabel(i.card.brand,i.card.last4),alert:declined?copy.declined(i.packageMonth):null,change:{label:copy.change,to:{name:"card",then:{name:"plan"}}}});let month=i.packageMonth??monthOf(active?.nextRun??null);return{sub:null,rows:rows,emptyLine:rows.length===0?copy.repeatsEmpty:null,next:active&&sum.length>0?{sum:sum,link:i.packageMonth?{label:copy.reviewMonthsPackage(i.packageMonth),to:{name:"package"}}:null}:null,delivery:delivery,breakCard:active?{skip:month?{label:copy.skipMonth(month),ask:copy.skipMonthAsk(month),body:copy.skipMonthBody}:null,pause:{label:copy.pausePlan,ask:copy.pausePlanAsk,body:copy.pausePlanBody},busy:i.breakBusy,error:i.breakError,onConfirm:i.onBreak}:null,legal:copy.legal}}var STEP_OF={pending_placement:1,placement_unknown:1,placed:1,accepted:2,release_sent:2,release_unknown:2,released:2,shipped:3,delivered:5};var SharedContext=react.createContext(null),ShopSharedProvider=SharedContext.Provider;function useShopShared(){let s=react.useContext(SharedContext);if(!s)throw new EverfurConfigError("not-initialized","shop screens render inside EverfurShop");return s}function packageMonth(pkg){return pkg.phase==="ready"&&pkg.value?monthOf(pkg.value.review.shipsOn):null}function loadable(read,map){return read.phase==="ready"&&read.value!==null?{phase:"ready",value:map(read.value)}:read.phase==="loading"?{phase:"loading"}:{phase:"failed",retry:read.refresh}}function pickCard(cards,id){return!cards||cards.length===0?null:(id?cards.find(c=>c.paymentMethodId===id):void 0)??cards[0]??null}function useOffersById(ids){let{client:client}=useShop(),unique=[...new Set(ids)].sort();return useShopRead(`offers-by-id:${unique.join(",")}`,async()=>{let read=await Promise.all(unique.map(id=>client.offer(id)));return omsOk(new Map(unique.map((id,i)=>[id,read[i].ok?read[i].value:null])))})}function outcomeLine(copy,outcome){return outcome.kind==="confirmed"?null:outcome.kind==="needsPayerAction"?copy.cardStepFailed:outcome.kind==="payerActionFailed"?outcome.message??copy.cardStepFailed:outcome.kind==="payerActionClosed"?copy.cardStepClosed:outcome.error.kind==="refused"&&outcome.error.reasonCode==="price_changed"?copy.priceChanged:refusalLine(copy,outcome.error)}var orderNotices=/* @__PURE__ */new WeakMap;function leaveOrderNotice(client,orderId,line){let notices=orderNotices.get(client);notices||(notices=/* @__PURE__ */new Map,orderNotices.set(client,notices)),line?notices.set(orderId,line):notices.delete(orderId)}function peekOrderNotice(client,orderId){return orderNotices.get(client)?.get(orderId)??null}function dropOrderNotice(client,orderId){orderNotices.get(client)?.delete(orderId)}var CARD_PAGE_NOTICE="\0card";function usePackageScreen(go){let{copy:copy,petName:petName,packageSource:packageSource,payments:payments,client:client}=useShop(),{tabs:tabs,pkg:pkg}=useShopShared(),plan=pkg.phase==="ready"?pkg.value?.plan??null:null,cards=usePaymentMethods(),address=useAddress(plan?.destination??null),[removing,setRemoving]=react.useState(null),[error,setError]=react.useState(null),[approving,setApproving]=react.useState(false),[placed,setPlaced]=react.useState(false),remove=useShopAction((keys,p,index)=>packageSource.removeLine(p,index,keys));if(pkg.phase==="ready"&&pkg.value===null)return{tabs:tabs,view:{phase:"failed",retry:pkg.refresh}};let view=loadable(pkg,p=>toPackageView({pkg:p,card:pickCard(cards.value,p.plan.paymentMethodId),address:address.value?.address??null,copy:copy,petName:petName,removing:removing,approving:approving,placed:placed,error:error,onRemove:index=>{setRemoving(index),setError(null),remove.run(p,index).then(res=>{setRemoving(null),res&&res.ok?pkg.refresh():res&&setError(refusalLine(copy,res.error))})},onApprove:()=>{approving||placed||(setApproving(true),setError(null),(async()=>{let outcome=await approveOnce(packageSource,p,payments);setApproving(false);let line=outcomeLine(copy,outcome),orderId=outcome.kind!=="failed"?outcome.orderIds[0]:void 0;orderId?(setPlaced(true),leaveOrderNotice(client,orderId,line),go({name:"order",orderId:orderId})):(setError(line),outcome.kind==="failed"&&outcome.error.kind==="refused"&&pkg.refresh())})())}}));return{tabs:tabs,view:view}}var approvalKeys=/* @__PURE__ */new WeakMap;async function approveOnce(source,p,payments){let keys=approvalKeys.get(p);keys||(keys=new ShopActionKeys,approvalKeys.set(p,keys));let out=await source.approve(p,keys,payments);return(out.kind!=="failed"||out.error.kind==="refused")&&approvalKeys.delete(p),out}function useDebounced(value,ms){let[v,setV]=react.useState(value);return react.useEffect(()=>{let t=setTimeout(()=>setV(value),ms);return()=>clearTimeout(t)},[value,ms]),v}function useShopScreen(initialQuery){let{client:client,copy:copy,petName:petName,pets:pets}=useShop(),{tabs:tabs,pkg:pkg}=useShopShared(),[query,setQuery]=react.useState(initialQuery??""),text=useDebounced(query,250),offers=useOffers({text:text}),rx=usePrescriptions(),prescriptions=rx.value??[],names=pets.map(p=>p.name),month=packageMonth(pkg),prescribedIds=prescriptions.filter(p=>p.status==="ready"&&p.offerId!==null&&petName(p.petId)).map(p=>p.offerId),prescribed=useOffersById(prescribedIds),first=offers.phase==="ready"?offers.value??null:null,[laterState,setLater]=react.useState(null),later=laterState&&first&&laterState.first===first?laterState:null,cursor=later?later.cursor:first?.nextCursor??null,moreBusy=react.useRef(false),onMore=react.useCallback(()=>{if(!first||!cursor||moreBusy.current)return;moreBusy.current=true,setLater(l=>({first:first,offers:l&&l.first===first?l.offers:[],cursor:cursor,loading:true,failed:false}));let words=text.trim();client.offers({...words?{text:words}:{},cursor:cursor,limit:100}).then(res=>{moreBusy.current=false,setLater(l=>!l||l.first!==first?l:res.ok?{first:first,offers:[...l.offers,...res.value.offers],cursor:res.value.nextCursor,loading:false,failed:false}:{...l,loading:false,failed:true})})},[client,first,cursor,text]),shelves,prescribedWait=rx.phase==="loading"||prescribedIds.length>0&&prescribed.phase==="loading";if(first&&!prescribedWait){let seen=/* @__PURE__ */new Set,all=[];for(let o of[...first.offers,...later?.offers??[]])seen.has(o.offerId)||(seen.add(o.offerId),all.push(o));shelves={phase:"ready",value:toShelves({offers:all,prescribed:[...prescribed.value?.values()??[]].filter(o=>o!==null),prescriptions:prescriptions,copy:copy,petName:petName,petNames:names,packageMonth:month,searching:text.trim()!=="",petId:pets.length===1?pets[0].petId:null})}}else offers.phase==="loading"||prescribedWait?shelves={phase:"loading"}:offers.phase==="unavailable"?shelves={phase:"ready",value:[]}:shelves={phase:"failed",retry:offers.refresh};let count=shelves.phase==="ready"?shelves.value.reduce((n,s)=>n+s.tiles.length,0):1,empty=shelves.phase==="ready"&&count===0?text.trim()?copy.noMatches(text.trim()):copy.nothingHereYet:null,more=first&&cursor?{onMore:onMore,loading:later?.loading??false,failed:later?.failed??false}:null;return{tabs:tabs,view:{sub:null,query:query,onQuery:setQuery,filters:[],shelves:shelves,empty:empty,legal:copy.legal,more:more}}}function lineFor(offer,quantity,petId,rx){return{offerId:offer.offerId,quantity:rx?.packCount??quantity,...rx?.petId??petId?{petId:rx?.petId??petId}:{},...rx?{rxId:rx.rxId}:{}}}function routeFor(name,line){return{name:name,offerId:line.offerId,quantity:line.quantity,...line.petId?{petId:line.petId}:{},...line.rxId?{rxId:line.rxId}:{}}}function useProductScreen(offerId,petId,go){let{copy:copy,petName:petName,pets:pets,client:client}=useShop(),{config:config,pkg:pkg,bookVisitHref:bookVisitHref}=useShopShared(),offer=useOffer(offerId),rx=usePrescriptions(),[choice,setChoice]=react.useState("monthly"),[quantity,setQuantity]=react.useState(1),[error,setError]=react.useState(null),month=packageMonth(pkg),plans=usePlans(),plan=(pkg.phase==="ready"?pkg.value?.plan??null:null)??plans.value?.plans.find(p=>p.state==="active")??null,addToPlan=useShopAction((keys,p,line)=>client.updatePlan(p.planId,{idempotencyKey:keys.key("add"),lines:[...p.lines.map(l=>({offerId:l.offerId,quantity:l.quantity,...l.petId?{petId:l.petId}:{}})),line]})),submit=(line,monthly)=>{if(setError(null),!monthly)return go(routeFor("buy",line));if(!plan)return go(routeFor("consent",line));addToPlan.run(plan,line).then(res=>{res&&res.ok?(pkg.refresh(),go({name:"package"})):res&&setError(refusalLine(copy,res.error))})};if(offer.phase==="ready"&&offer.value?.requiresRx){let o=offer.value,base={offer:o,copy:copy,petId:petId??null,petName:petName,firstPetName:pets[0]?.name??null,packageMonth:month,error:error,bookVisitHref:bookVisitHref};return rx.phase==="unavailable"?{kind:"rx",view:{phase:"ready",value:toRxProductView({...base,prescriptions:[],busy:false,onSubmit:()=>{}})}}:{kind:"rx",view:loadable(rx,list=>toRxProductView({...base,prescriptions:list,busy:addToPlan.busy,onSubmit:p=>submit(lineFor(o,1,null,p),plan!==null)}))}}let petForChoice=(petId?petName(petId):null)??pets[0]?.name??null;return{kind:"product",view:loadable(offer,o=>toProductView({offer:o,copy:copy,petName:petForChoice,packageMonth:month,plansOn:config.recurringTermsVersion!==null,choice:choice,onChoice:setChoice,quantity:quantity,onQuantity:setQuantity,busy:addToPlan.busy,error:error,onSubmit:()=>submit(lineFor(o,quantity,petId??pets[0]?.petId??null,null),choice==="monthly"&&config.recurringTermsVersion!==null&&petForChoice!==null)}))}}function usePlanScreen(){let{copy:copy,petName:petName,client:client}=useShop(),{tabs:tabs,pkg:pkg}=useShopShared(),plans=usePlans(),cards=usePaymentMethods(),live=(plans.value?.plans??[]).filter(p=>p.state!=="cancelled"),active=live.find(p=>p.state==="active")??live[0]??null,address=useAddress(active?.destination??null),offers=useOffersById(live.flatMap(p=>p.lines.map(l=>l.offerId))),[busyPlan,setBusyPlan]=react.useState(null),[rowError,setRowError]=react.useState(null),[breakError,setBreakError]=react.useState(null),toggle=useShopAction((keys,p,on)=>client.planAction(p.planId,{idempotencyKey:keys.key(on?"resume":"pause"),operation:on?"resume":"pause"})),brk=useShopAction((keys,p,which)=>client.planAction(p.planId,{idempotencyKey:keys.key(which),operation:which})),month=packageMonth(pkg);if(plans.phase==="unavailable")return{tabs:tabs,view:{phase:"failed",retry:plans.refresh}};let view=loadable(plans,()=>toPlanView({plans:live,offers:offers.value??/* @__PURE__ */new Map,copy:copy,petName:petName,card:pickCard(cards.value,active?.paymentMethodId??null),address:address.value?.address??null,reviewBy:pkg.phase==="ready"?pkg.value?.review.approveBy??null:null,packageMonth:month,busyPlan:busyPlan,rowError:rowError,onToggle:(p,on)=>{setBusyPlan(p.planId),setRowError(null),toggle.run(p,on).then(res=>{setBusyPlan(null),toggle.reset(),res&&res.ok?plans.refresh():res&&setRowError({planId:p.planId,line:refusalLine(copy,res.error)})})},breakBusy:brk.busy,breakError:breakError,onBreak:async which=>{if(!active)return false;setBreakError(null);let res=await brk.run(active,which);return res&&res.ok?(brk.reset(),plans.refresh(),pkg.refresh(),true):(res&&setBreakError(refusalLine(copy,res.error)),false)}}));return{tabs:tabs,view:view}}var addedAddresses=/* @__PURE__ */new WeakMap;function peekAddedAddress(client){return addedAddresses.get(client)??null}function dropAddedAddress(client){addedAddresses.delete(client)}function useAddressStep(then,go){let{copy:copy,client:client}=useShop(),{pkg:pkg}=useShopShared(),back=then??{name:"package"},saved=react.useRef(null),save=useShopAction(async(keys,input)=>{let sent=JSON.stringify(input),ref=saved.current?.sent===sent?saved.current.ref:null;if(ref===null){let res=await client.addAddress(input);if(!res.ok)return omsErr(res.error);ref=res.value.ref,saved.current={sent:sent,ref:ref}}if(then?.name==="package"||then?.name==="plan"){let page=await client.plans({limit:100});if(!page.ok)return omsErr(page.error);let live=page.value.plans.filter(p=>p.state!=="cancelled"),shown=then.name==="package"?live.find(p=>p.planId===(pkg.value?.plan.planId??null))??null:live.find(p=>p.state==="active")??live[0]??null,moving=shown?live.filter(p=>p.planId===shown.planId||shown.destination!==null&&p.destination===shown.destination):[];for(let p of moving){if(p.destination===ref)continue;let moved=await client.updatePlan(p.planId,{idempotencyKey:keys.key(`destination:${p.planId}`),destination:ref});if(!moved.ok)return omsErr(moved.error)}}return omsOk(ref)});return{back:{label:copy.backToCare,to:back},busy:save.busy,error:save.error?refusalLine(copy,save.error):null,onSave:input=>{save.run(input).then(res=>{!res||!res.ok||(then?.name==="package"||then?.name==="plan"?pkg.refresh():addedAddresses.set(client,res.value),go(back))})}}}function useCardStep(then,go,handoff){let{copy:copy,client:client,payments:payments}=useShop(),{config:config}=useShopShared(),back=then??{name:"plan"},[error,setError]=react.useState(()=>peekOrderNotice(client,CARD_PAGE_NOTICE));react.useEffect(()=>dropOrderNotice(client,CARD_PAGE_NOTICE),[client]);let setup=useShopAction(async()=>{if(handoff){let step2=await handoff();return step2.ok?omsOk(true):(setError(step2.closed?copy.cardStepClosed:step2.message??copy.cardStepFailed),omsOk(false))}let s=await client.setupPaymentMethod();if(!s.ok||!payments)return s.ok?omsErr({kind:"invalidRequest"}):omsErr(s.error);let step=await payments.confirmCardSetup(s.value.payerAction);return step.ok?omsOk(true):(setError(step.closed?copy.cardStepClosed:step.message??copy.cardStepFailed),omsOk(false))}),on=handoff?true:payments!==null&&config.stripePublishableKey!==null;return{back:{label:copy.backToCare,to:back},error:error??(setup.error?refusalLine(copy,setup.error):null),start:on?{label:copy.cardStart,busyLabel:copy.saving,busy:setup.busy,disabled:setup.busy,onPress:()=>{setError(null),setup.run().then(res=>{res&&res.ok&&res.value&&go(back)})}}:null}}function useNameStep(retry){let{copy:copy,saveProfileName:saveProfileName,onProfileNameRequired:onProfileNameRequired}=useShop(),[open,setOpen]=react.useState(false),[busy,setBusy]=react.useState(false),[error,setError]=react.useState(null),retryRef=react.useRef(retry);retryRef.current=retry;let running=react.useRef(false),mounted=react.useRef(true);return react.useEffect(()=>(mounted.current=true,()=>{mounted.current=false}),[]),{view:open?{line:copy.nameMissing,form:saveProfileName?{firstLabel:copy.firstName,lastLabel:copy.lastName,saveLabel:copy.saveName,busy:busy,error:error,onSave:name=>{let firstName=name.firstName.trim(),lastName=name.lastName.trim();running.current||!firstName||!lastName||(running.current=true,setBusy(true),setError(null),saveProfileName({firstName:firstName,lastName:lastName}).then(saved=>saved,()=>false).then(saved=>{if(running.current=false,!!mounted.current){if(setBusy(false),!saved){setError(copy.actionFailed);return}setOpen(false),retryRef.current()}}))}}:null,handoff:!saveProfileName&&onProfileNameRequired?{label:copy.addName,onPress:onProfileNameRequired}:null}:null,raise:e=>isNameRequired(e)?(setError(null),setOpen(true),true):false,clear:()=>setOpen(false)}}function useCheckoutBasics(){let addresses=useAddresses(),cards=usePaymentMethods(),address=addresses.value?.find(a=>a.isDefault&&a.isComplete)??addresses.value?.find(a=>a.isComplete)??null,card=pickCard(cards.value,null);return{addresses:addresses,cards:cards,address:address,card:card}}function quoteLine(copy,quote){return quote.phase==="unavailable"?copy.actionFailed:quote.phase==="failed"&&quote.error?refusalLine(copy,quote.error):null}function useBuyStep(route,go){let{copy:copy,client:client,payments:payments,petName:petName}=useShop(),offer=useOffer(route.offerId),{address:address,card:card}=useCheckoutBasics(),line=react.useMemo(()=>({offerId:route.offerId,quantity:route.quantity,...route.petId?{petId:route.petId}:{},...route.rxId?{rxId:route.rxId}:{}}),[route.offerId,route.quantity,route.petId,route.rxId]),quote=useShopRead(address?`quote:${address.ref}:${JSON.stringify(line)}`:null,()=>client.quote({lines:[line],shipTo:address.ref})),[shown,setShown]=react.useState(null),[error,setError]=react.useState(null),[placed,setPlaced]=react.useState(false),buy=useShopAction(async keys=>{let draft=await client.createCheckout({idempotencyKey:keys.key("draft"),lines:[line],shipTo:address.ref});if(!draft.ok)return omsErr(draft.error);if((shown??quote.value?.total??null)!==draft.value.total)return setShown(draft.value.total),omsErr({kind:"refused",status:409,reasonCode:"price_changed",message:null});let out=await confirmWithPayerActions(idempotencyKey=>client.confirmCheckout(draft.value.checkoutId,{idempotencyKey:idempotencyKey,expectedTotal:draft.value.total,paymentMethodId:card.paymentMethodId}),keys,payments);return out.kind==="failed"?omsErr(out.error):omsOk(out)}),needs=[...address?[]:[{label:copy.addressNeeded,to:{name:"address",then:route}}],...card?[]:[{label:copy.cardTitle,to:{name:"card",then:route}}]],q=quote.value,total=shown??q?.total??null,placeRef=react.useRef(()=>{}),name=useNameStep(()=>placeRef.current()),place3=()=>{placed||(setError(null),name.clear(),buy.run().then(res=>{if(!res)return;let out=res.ok?res.value:{kind:"failed",error:res.error},orderId=out.kind!=="failed"?out.orderIds[0]:void 0;orderId?(setPlaced(true),leaveOrderNotice(client,orderId,outcomeLine(copy,out)),go({name:"order",orderId:orderId})):out.kind==="failed"&&name.raise(out.error)||setError(outcomeLine(copy,out))}))};return placeRef.current=place3,{back:{label:copy.backToShop,to:{name:"product",offerId:route.offerId}},title:copy.confirmTitle,lines:offer.value?[{key:line.offerId,name:offer.value.title,meta:petName(line.petId),price:offer.value.price!==null?formatCents(offer.value.price*line.quantity):null,form:drugForm(offer.value.requiresRx,offer.value.title)}]:[],sum:q&&total!==null?[{k:copy.shipping,v:q.shipping===0?copy.free:formatCents(q.shipping)},{k:copy.tax,v:formatCents(q.tax)},{k:copy.total,v:formatCents(total)}]:null,needs:needs,pay:address&&card&&q?{label:copy.confirmPay,busyLabel:copy.saving,busy:buy.busy,disabled:buy.busy||placed,onPress:place3}:null,note:card?copy.chargedWhenShips(cardLabel(card.brand,card.last4)):null,error:error??quoteLine(copy,quote),nameStep:name.view}}function useConsentStep(route,go){let{copy:copy,client:client}=useShop(),{config:config,pkg:pkg}=useShopShared(),{address:address,card:card}=useCheckoutBasics(),create=useShopAction(keys=>client.createPlan({idempotencyKey:keys.key("create"),cadenceDays:30,destination:address.ref,paymentMethodId:card.paymentMethodId,consentTermsVersion:config.recurringTermsVersion,lines:[{offerId:route.offerId,quantity:route.quantity,...route.petId?{petId:route.petId}:{},...route.rxId?{rxId:route.rxId}:{}}]})),needs=[...address?[]:[{label:copy.addressNeeded,to:{name:"address",then:route}}],...card?[]:[{label:copy.cardTitle,to:{name:"card",then:route}}]];return{back:{label:copy.backToShop,to:{name:"product",offerId:route.offerId}},terms:config.recurringTermsUrl?{label:copy.consentTermsLink,href:config.recurringTermsUrl}:null,needs:needs,error:create.error?refusalLine(copy,create.error):null,agree:address&&card&&config.recurringTermsVersion?{label:copy.consentAgree,busyLabel:copy.saving,busy:create.busy,disabled:create.busy,onPress:()=>{create.run().then(res=>{res&&res.ok&&(pkg.refresh(),go({name:"plan"}))})}}:null}}var STEP_KEYS=["ordered","shipped","out_for_delivery","delivered"];function paymentFailed(order){return order.paymentStatus==="failed"||order.canPay&&order.paymentStatus==="requires_action"}function paymentSettled(order){return!order.canPay&&(order.paymentStatus==="authorized"||order.paymentStatus==="captured")}function paymentHeld(order){return order.paymentStatus==="authorized"||order.paymentStatus==="captured"}function statusPill(status,copy,v3,failed=false){if(failed)return{label:copy.paymentFailed,tone:"risk"};let label=copy.orderStatus[status]??v3.orderSteps[0];return status==="delivered"?{label:label,tone:"done"}:status==="cancelled"||status==="rejected"?{label:label,tone:"quiet"}:status==="needs_support"?{label:label,tone:"risk"}:{label:label,tone:"wait"}}function latestTracking(order){if(order.tracking)return order.tracking;let best=null;for(let sh of order.shipments)for(let ev of sh.tracking)(!best||(ev.occurredAt??"")>(best.occurredAt??""))&&(best=ev);return best}function arrivesByOf(order){return order.arrivesBy??latestTracking(order)?.deliveryBy??null}function deliveredAt(order){let step=order.steps?.find(s=>s.key==="delivered");if(step?.at)return step.at;for(let sh of order.shipments){let ev=sh.tracking.find(t=>t.status==="delivered");if(ev?.occurredAt)return ev.occurredAt}return null}function orderEnded(status){return status==="cancelled"||status==="rejected"||status==="needs_support"}function orderHeadline(order,copy,v3){let status=order.summary.status;return paymentFailed(order)?copy.paymentFailed:status==="delivered"?v3.orderSteps[3]:orderEnded(status)?copy.orderStatus[status]??v3.orderSteps[0]:status==="shipped"?v3.orderSteps[1]:v3.orderSteps[0]}function orderSubline(order,copy,v3){let status=order.summary.status;if(orderEnded(status)||paymentFailed(order))return null;if(status==="delivered"){let day=formatDay(deliveredAt(order),{when:true});return day?v3.deliveredOn(day):null}let by=formatDay(arrivesByOf(order),{weekday:true});if(by)return v3.arrivesBy(by);let line=copy.orderStatus[status]??null;return line===orderHeadline(order,copy,v3)?null:line}function offersBuyAgain(status){return status==="delivered"||orderEnded(status)}function trackSteps(order,v3){let status=order.summary.status;if(status==="cancelled"||status==="rejected")return null;let sent=order.steps&&order.steps.length>0?order.steps:null,tracking=latestTracking(order),shippedAt=order.shipments.flatMap(sh=>sh.tracking).map(t=>t.occurredAt).filter(d=>!!d).sort()[0]??null,derived2={ordered:{done:true,at:order.summary.placedAt},shipped:{done:status==="shipped"||status==="delivered"||!!tracking,at:shippedAt},out_for_delivery:{done:status==="delivered",at:null},delivered:{done:status==="delivered",at:deliveredAt(order)}},by=formatDay(arrivesByOf(order),{weekday:true}),steps=STEP_KEYS.map((key,i)=>{let s=sent?.find(x=>x.key===key),done=s?s.done:derived2[key].done,at=s?s.at:derived2[key].at,line=done?formatDay(at,{when:true}):key==="delivered"&&by?v3.expected(by):null;return{key:key,title:v3.orderSteps[i],line:line,done:done}}),nowAt=steps.reduce((at,s,i)=>s.done?i:at,-1);return steps.map(({done:done,...s},i)=>({...s,state:done?i===nowAt&&i<steps.length-1?"now":"done":"next"}))}function itemNames(items){return items.map(i=>i.title).join(", ")}function orderMeta(summary,copy,total=formatCents(summary.total)){let day=formatDay(summary.placedAt);return day?`${copy.placed(day)} · ${total}`:total}var PHONE_BOX={body:{paddingTop:8,paddingRight:16,paddingLeft:16},pushBody:{paddingRight:16,paddingLeft:16},subtabs:{backgroundColor:"#ffffff"},subtab:{minHeight:44,rowGap:6,columnGap:6},subtabCurrent:{minHeight:44,rowGap:6,columnGap:6},titleBlock:{paddingTop:4,rowGap:2,columnGap:2},screenTitle:{},screenMeta:{},stack:{marginTop:12,rowGap:12,columnGap:12},card:{paddingTop:16,paddingRight:16,paddingBottom:16,paddingLeft:16,borderWidth:1,borderColor:"#e4e4e4",borderRadius:20,backgroundColor:"#ffffff"},cardHead:{marginBottom:12,rowGap:8,columnGap:16},cardTitle:{marginBottom:12},cardTitleInHead:{},cardLink:{},cardLinkAfterNote:{marginTop:12,marginBottom:2.34},forLabel:{marginTop:4,marginBottom:8},forLabelNext:{marginTop:16,marginBottom:8},itemsLiFirst:{paddingBottom:16,rowGap:12,columnGap:12},itemsLiMid:{paddingTop:16,paddingBottom:16,borderTopWidth:1,borderTopColor:"#e4e4e4",rowGap:12,columnGap:12},itemsLiLast:{paddingTop:16,borderTopWidth:1,borderTopColor:"#e4e4e4",rowGap:12,columnGap:12},thumb:{borderRadius:10,backgroundColor:"#eaeef6",width:48,height:48},thumbIcon:{width:22,height:22},thumbPink:{borderRadius:10,backgroundColor:"#ffeae8"},thumbYellow:{borderRadius:10,backgroundColor:"#fcf0d6"},thumbSage:{borderRadius:10,backgroundColor:"#e6ece8"},itemsName:{rowGap:4,columnGap:8},itemsMeta:{marginTop:2},itemsActs:{marginTop:6,rowGap:16,columnGap:16},itemsActLink:{},itemsActButton:{},itemsEnd:{rowGap:4,columnGap:4},itemsPrice:{},pill:{paddingRight:10,paddingLeft:10,borderRadius:999,backgroundColor:"#eaeef6",minHeight:24},pillSoon:{paddingRight:10,paddingLeft:10,borderRadius:999,backgroundColor:"#ffffff",minHeight:24},btnRow:{paddingRight:14,paddingLeft:14,borderWidth:1,borderColor:"#10462e",borderRadius:999,minHeight:36,rowGap:8,columnGap:8},btnRowIcon:{width:17,height:17},btnRowLabel:{},sumTotal:{paddingRight:24,paddingLeft:24,borderWidth:1,borderColor:"#e4e4e4",borderRadius:20,backgroundColor:"#ffffff"},sumRowFirst:{paddingTop:14,paddingBottom:14,rowGap:2,columnGap:16},sumRowLast:{paddingTop:14,paddingBottom:14,rowGap:2,columnGap:16},sumDt:{},sumDd:{},sumDdTotal:{},noteAfterSum:{marginTop:12},rowsLiFirst:{paddingBottom:16,rowGap:8,columnGap:16},rowsLiNext:{paddingTop:16,borderTopWidth:1,borderTopColor:"#e4e4e4",rowGap:8,columnGap:16},rowsK:{},rowsV:{marginTop:2},rowsMeta:{marginTop:2},legal:{marginTop:32},legalText:{},traybar:{paddingTop:12,paddingRight:16,paddingBottom:8,paddingLeft:16,backgroundColor:"#ffffff",rowGap:6,columnGap:6},btnInk:{paddingRight:24,paddingLeft:24,borderWidth:1,borderColor:"#10462e",borderRadius:999,backgroundColor:"#10462e",minHeight:50,rowGap:8,columnGap:8},traybarFine:{},input:{paddingRight:16,paddingLeft:16,borderWidth:1,borderColor:"#e4e4e4",borderRadius:10,backgroundColor:"#ffffff",minHeight:52,rowGap:10,columnGap:10},inputIcon:{width:20,height:20},inputText:{paddingTop:1,paddingRight:2,paddingBottom:1,paddingLeft:2},inputPlaceholder:{},filters:{paddingBottom:2,rowGap:8,columnGap:8},filter:{paddingRight:14,paddingLeft:14,borderWidth:1,borderColor:"#e4e4e4",borderRadius:999,minHeight:36},filterCurrent:{paddingRight:14,paddingLeft:14,borderWidth:1,borderColor:"#10462e",borderRadius:999,backgroundColor:"#ffeae8",minHeight:36},sectionHead:{marginTop:8,rowGap:8,columnGap:12},prods:{rowGap:16,columnGap:12},prod:{rowGap:12,columnGap:12},prodImg:{borderRadius:10,backgroundColor:"#ffeae8",aspectRatio:1},prodIcon:{width:36,height:36},prodTags:{rowGap:6,columnGap:6,position:"absolute",top:8,left:8},prodBody:{rowGap:4,columnGap:4},prodName:{},prodMeta:{},prodPrice:{marginTop:4,rowGap:8,columnGap:8},pillClear:{paddingRight:10,paddingLeft:10,borderRadius:999,backgroundColor:"#ffffff",minHeight:24},pillPlain:{paddingRight:10,paddingLeft:10,borderRadius:999,backgroundColor:"#ffffff",minHeight:24},pillOverdue:{paddingRight:10,paddingLeft:10,borderRadius:999,backgroundColor:"#ffffff",minHeight:24},hero:{borderRadius:20,backgroundColor:"#fcf0d6",aspectRatio:1.6},heroIcon:{width:56,height:56},source:{rowGap:8,columnGap:8},sourceIcon:{marginTop:2,width:16,height:16},sourceBold:{},sourceLink:{},choices:{rowGap:8,columnGap:8},choiceCurrent:{paddingTop:14,paddingRight:16,paddingBottom:14,paddingLeft:16,borderWidth:1,borderColor:"#10462e",borderRadius:10,backgroundColor:"#ffeae8",rowGap:12,columnGap:12},choice:{paddingTop:14,paddingRight:16,paddingBottom:14,paddingLeft:16,borderWidth:1,borderColor:"#e4e4e4",borderRadius:10,backgroundColor:"#ffffff",rowGap:12,columnGap:12},radioOn:{borderWidth:6,borderColor:"#10462e",borderRadius:10,backgroundColor:"#ffffff",width:20,height:20},radioOff:{borderWidth:1,borderColor:"#819d90",borderRadius:10,backgroundColor:"#ffffff",width:20,height:20},choiceText:{},choiceTitle:{},choiceMeta:{marginTop:2},facts:{marginTop:12,rowGap:8,columnGap:8},factsLi:{paddingTop:12,paddingRight:12,paddingBottom:12,paddingLeft:12,borderRadius:10,backgroundColor:"#e6ece8",rowGap:4,columnGap:4},factsLiHer:{paddingTop:12,paddingRight:12,paddingBottom:12,paddingLeft:12,borderRadius:10,backgroundColor:"#fcf0d6",rowGap:4,columnGap:4},factsK:{},factsN:{},factsUnit:{},noteAfterFacts:{marginTop:12},cardLead:{marginBottom:12},person:{rowGap:12,columnGap:16},avatar:{borderRadius:18,backgroundColor:"#ffffff",width:36,height:36},personName:{},personMeta:{},sourceInCard:{marginTop:12,rowGap:8,columnGap:8},sourceInCardIcon:{marginTop:2,width:16,height:16},noteAfterSource:{marginTop:8},rxLead:{marginBottom:12},btnOutlineSm:{marginTop:12,paddingRight:16,paddingLeft:16,borderWidth:1,borderColor:"#10462e",borderRadius:999,minHeight:46,rowGap:8,columnGap:8},btnOutlineSmIcon:{width:20,height:20},noteStandalone:{},noteLink:{},sumPlain:{paddingRight:24,paddingLeft:24,borderWidth:1,borderColor:"#e4e4e4",borderRadius:20,backgroundColor:"#ffffff"},sumPlainRowFirst:{paddingTop:14,paddingBottom:14,rowGap:2,columnGap:16},sumPlainRowLast:{paddingTop:14,paddingBottom:14,rowGap:2,columnGap:16},sumPlainDd:{},planRowsLiFirst:{paddingTop:12,paddingBottom:12,rowGap:8,columnGap:16},planRowsLiNext:{paddingTop:12,paddingBottom:12,borderTopWidth:1,borderTopColor:"#e4e4e4",rowGap:8,columnGap:16},switch:{width:48,height:28},switchTrack:{borderRadius:999,backgroundColor:"#10462e",width:48,height:28},switchKnob:{borderRadius:11,backgroundColor:"#ffffff",position:"absolute",top:3,left:3,transform:[{translateX:20}],width:22,height:22},switchTrackOff:{borderRadius:999,backgroundColor:"#d0d6d3",width:48,height:28},switchKnobOff:{borderRadius:11,backgroundColor:"#ffffff",position:"absolute",top:3,left:3,width:22,height:22},breaks:{marginTop:12,rowGap:12,columnGap:24},btnSm:{paddingRight:16,paddingLeft:16,borderWidth:1,borderColor:"#10462e",borderRadius:999,minHeight:46,rowGap:8,columnGap:8},linkDanger:{},sheet:{borderTopLeftRadius:28,borderTopRightRadius:28,backgroundColor:"#ffffff"},sheetBackdrop:{backgroundColor:"rgba(0, 0, 0, 0.32)",position:"absolute"},sheetGrab:{height:20},sheetGrabBar:{borderRadius:3,backgroundColor:"#c9c9c9",width:36,height:5},sheetHead:{paddingTop:4,paddingRight:16,paddingBottom:12,paddingLeft:16,rowGap:12,columnGap:12},sheetClose:{paddingTop:1,paddingRight:6,paddingBottom:1,paddingLeft:6,borderRadius:18,backgroundColor:"#e6ece8",width:36,height:36},sheetCloseIcon:{width:20,height:20},sheetBody:{paddingRight:16,paddingBottom:24,paddingLeft:16,rowGap:12,columnGap:12},sheetText:{},sheetActions:{marginTop:16,rowGap:8,columnGap:8},btnDanger:{paddingRight:16,paddingLeft:16,borderWidth:1,borderColor:"#c03410",borderRadius:999,backgroundColor:"#ffffff",minHeight:46,rowGap:8,columnGap:8},btnOutline:{paddingRight:24,paddingLeft:24,borderWidth:1,borderColor:"#10462e",borderRadius:999,minHeight:52,rowGap:8,columnGap:8},rec:{marginRight:-8,marginLeft:-8,rowGap:4,columnGap:4},recRow:{paddingTop:10,paddingRight:8,paddingBottom:10,paddingLeft:8,borderRadius:10,rowGap:12,columnGap:12},recIcon:{width:20,height:20},recText:{rowGap:2,columnGap:2},recTitle:{},recMeta:{},recEnd:{rowGap:8,columnGap:8},trackerLi:{paddingBottom:24,rowGap:16,columnGap:16},trackerLiLast:{rowGap:16,columnGap:16},trackerLineDone:{borderRadius:1,backgroundColor:"#10462e",position:"absolute",top:30,left:13,bottom:2,width:2},trackerLine:{borderRadius:1,backgroundColor:"#e4e4e4",position:"absolute",top:30,left:13,bottom:2,width:2},dotDone:{borderWidth:2,borderColor:"#10462e",borderRadius:14,backgroundColor:"#10462e",width:28,height:28},dotDoneIcon:{width:16,height:16},dotNow:{borderWidth:2,borderColor:"#10462e",borderRadius:14,backgroundColor:"#ffffff",width:28,height:28},dotNowCore:{borderRadius:5,backgroundColor:"#07c168",width:10,height:10},dotNext:{borderWidth:2,borderColor:"#e4e4e4",borderRadius:14,backgroundColor:"#ffffff",width:28,height:28},trackerTitle:{paddingTop:3,rowGap:4,columnGap:8},trackerTitleNext:{paddingTop:3,rowGap:4,columnGap:8},trackerWhen:{marginTop:2},trackerText:{marginTop:2},pillStable:{paddingRight:10,paddingLeft:10,borderRadius:999,backgroundColor:"#dcf6ea",minHeight:24},trackItemsEnd:{rowGap:4,columnGap:4},trackItemsLiFirst:{paddingBottom:16,rowGap:12,columnGap:12},trackItemsLiLast:{paddingTop:16,borderTopWidth:1,borderTopColor:"#e4e4e4",rowGap:12,columnGap:12},noteAfterTotal:{marginTop:8},rowLink:{paddingTop:16,paddingRight:24,paddingBottom:16,paddingLeft:24,borderWidth:1,borderColor:"#e4e4e4",borderRadius:20,backgroundColor:"#ffffff",rowGap:12,columnGap:12},rowLinkIcon:{width:22,height:22},rowLinkChevron:{width:20,height:20},ghost:{marginTop:16,rowGap:10,columnGap:10},ghostBar:{borderRadius:999,backgroundColor:"#e6ece8",height:12},field:{rowGap:6,columnGap:6},fieldLabel:{},fieldInput:{paddingRight:16,paddingLeft:16,borderWidth:1,borderColor:"#e4e4e4",borderRadius:10,backgroundColor:"#ffffff",minHeight:52,rowGap:10,columnGap:10},fieldInputText:{paddingTop:1,paddingRight:2,paddingBottom:1,paddingLeft:2}},PHONE_TEXT={body:{color:"#000000",fontSize:17,fontWeight:"400",lineHeight:26.34375},pushBody:{color:"#000000",fontSize:17,fontWeight:"400",lineHeight:26.34375},subtabs:{color:"#000000",fontSize:17,fontWeight:"400",lineHeight:26.34375},subtab:{color:"#6b6b6b",fontSize:15,fontWeight:"500",lineHeight:23.25},subtabCurrent:{color:"#10462e",fontSize:15,fontWeight:"700",lineHeight:23.25},titleBlock:{color:"#000000",fontSize:17,fontWeight:"400",lineHeight:26.34375},screenTitle:{color:"#10462e",fontSize:22,fontWeight:"500",lineHeight:26.390625,letterSpacing:-.33},screenMeta:{color:"#6b6b6b",fontSize:13,fontWeight:"400",lineHeight:18.84375},stack:{color:"#000000",fontSize:17,fontWeight:"400",lineHeight:26.34375},card:{color:"#000000",fontSize:17,fontWeight:"400",lineHeight:26.34375},cardHead:{color:"#000000",fontSize:17,fontWeight:"400",lineHeight:26.34375},cardTitle:{color:"#10462e",fontSize:18,fontWeight:"700",lineHeight:22.5,letterSpacing:-.36},cardTitleInHead:{color:"#10462e",fontSize:18,fontWeight:"700",lineHeight:22.5,letterSpacing:-.36},cardLink:{color:"#10462e",fontSize:15,fontWeight:"700",lineHeight:21},cardLinkAfterNote:{color:"#10462e",fontSize:15,fontWeight:"700",lineHeight:21},forLabel:{color:"#6b6b6b",fontSize:12,fontWeight:"700",lineHeight:16.796875,letterSpacing:.72,textTransform:"uppercase"},forLabelNext:{color:"#6b6b6b",fontSize:12,fontWeight:"700",lineHeight:16.796875,letterSpacing:.72,textTransform:"uppercase"},itemsLiFirst:{color:"#000000",fontSize:17,fontWeight:"400",lineHeight:26.34375},itemsLiMid:{color:"#000000",fontSize:17,fontWeight:"400",lineHeight:26.34375},itemsLiLast:{color:"#000000",fontSize:17,fontWeight:"400",lineHeight:26.34375},thumb:{color:"#10462e",fontSize:17,fontWeight:"400",lineHeight:26.34375},thumbIcon:{color:"#10462e",fontSize:17,fontWeight:"400",lineHeight:26.34375},thumbPink:{color:"#10462e",fontSize:17,fontWeight:"400",lineHeight:26.34375},thumbYellow:{color:"#10462e",fontSize:17,fontWeight:"400",lineHeight:26.34375},thumbSage:{color:"#10462e",fontSize:17,fontWeight:"400",lineHeight:26.34375},itemsName:{color:"#10462e",fontSize:17,fontWeight:"700",lineHeight:22.09375},itemsMeta:{color:"#6b6b6b",fontSize:13,fontWeight:"400",lineHeight:18.84375},itemsActs:{color:"#000000",fontSize:17,fontWeight:"400",lineHeight:26.34375},itemsActLink:{color:"#10462e",fontSize:13,fontWeight:"700",lineHeight:20.140625,textDecorationLine:"underline"},itemsActButton:{color:"#10462e",fontSize:13,fontWeight:"700",lineHeight:20.140625,textDecorationLine:"underline",textAlign:"center"},itemsEnd:{color:"#000000",fontSize:17,fontWeight:"400",lineHeight:26.34375,fontVariant:["tabular-nums"]},itemsPrice:{color:"#10462e",fontSize:17,fontWeight:"700",lineHeight:26.34375,fontVariant:["tabular-nums"]},pill:{color:"#10462e",fontSize:12,fontWeight:"700",lineHeight:12,letterSpacing:.72,textTransform:"uppercase"},pillSoon:{color:"#10462e",fontSize:12,fontWeight:"700",lineHeight:12,letterSpacing:.72,textTransform:"uppercase"},btnRow:{color:"#10462e",fontSize:14,fontWeight:"400",lineHeight:14,textAlign:"center",fontVariant:["tabular-nums"]},btnRowIcon:{color:"#10462e",fontSize:14,fontWeight:"400",lineHeight:14,textAlign:"center",fontVariant:["tabular-nums"]},btnRowLabel:{color:"#10462e",fontSize:14,fontWeight:"400",lineHeight:14,textAlign:"center",fontVariant:["tabular-nums"]},sumTotal:{color:"#000000",fontSize:17,fontWeight:"400",lineHeight:26.34375},sumRowFirst:{color:"#000000",fontSize:17,fontWeight:"400",lineHeight:26.34375},sumRowLast:{color:"#000000",fontSize:17,fontWeight:"400",lineHeight:26.34375},sumDt:{color:"#6b6b6b",fontSize:15,fontWeight:"400",lineHeight:23.25},sumDd:{color:"#10462e",fontSize:15,fontWeight:"700",lineHeight:21,textAlign:"right"},sumDdTotal:{color:"#10462e",fontSize:20,fontWeight:"700",lineHeight:28,textAlign:"right"},noteAfterSum:{color:"#6b6b6b",fontSize:13,fontWeight:"400",lineHeight:19.5},rowsLiFirst:{color:"#000000",fontSize:17,fontWeight:"400",lineHeight:26.34375},rowsLiNext:{color:"#000000",fontSize:17,fontWeight:"400",lineHeight:26.34375},rowsK:{color:"#10462e",fontSize:17,fontWeight:"700",lineHeight:22.09375},rowsV:{color:"#000000",fontSize:15,fontWeight:"400",lineHeight:21.75},rowsMeta:{color:"#6b6b6b",fontSize:13,fontWeight:"400",lineHeight:18.84375},legal:{color:"#6b6b6b",fontSize:13,fontWeight:"400",lineHeight:20.796875,textAlign:"center"},legalText:{color:"#6b6b6b",fontSize:13,fontWeight:"400",lineHeight:20.796875,textAlign:"center"},traybar:{color:"#000000",fontSize:17,fontWeight:"400",lineHeight:26.34375},btnInk:{color:"#ffffff",fontSize:17,fontWeight:"700",lineHeight:17,textAlign:"center"},traybarFine:{color:"#6b6b6b",fontSize:12,fontWeight:"400",lineHeight:15.59375,textAlign:"center"},input:{color:"#000000",fontSize:17,fontWeight:"400",lineHeight:26.34375},inputIcon:{color:"#6b6b6b",fontSize:17,fontWeight:"400",lineHeight:26.34375},inputText:{color:"#000000",fontSize:17,fontWeight:"400",lineHeight:26.34375},inputPlaceholder:{color:"#757575",fontSize:17,fontWeight:"400"},filters:{color:"#000000",fontSize:17,fontWeight:"400",lineHeight:26.34375},filter:{color:"#10462e",fontSize:15,fontWeight:"400",lineHeight:18},filterCurrent:{color:"#10462e",fontSize:15,fontWeight:"700",lineHeight:18},sectionHead:{color:"#000000",fontSize:17,fontWeight:"400",lineHeight:26.34375},prods:{color:"#000000",fontSize:17,fontWeight:"400",lineHeight:26.34375},prod:{color:"#000000",fontSize:17,fontWeight:"400",lineHeight:26.34375},prodImg:{color:"#10462e",fontSize:17,fontWeight:"400",lineHeight:26.34375},prodIcon:{color:"#10462e",fontSize:17,fontWeight:"400",lineHeight:26.34375},prodTags:{color:"#000000",fontSize:17,fontWeight:"400",lineHeight:26.34375},prodBody:{color:"#000000",fontSize:17,fontWeight:"400",lineHeight:26.34375},prodName:{color:"#10462e",fontSize:15,fontWeight:"700",lineHeight:19.5},prodMeta:{color:"#6b6b6b",fontSize:13,fontWeight:"400",lineHeight:18.84375},prodPrice:{color:"#10462e",fontSize:15,fontWeight:"700",lineHeight:23.25,fontVariant:["tabular-nums"]},pillClear:{color:"#07c168",fontSize:12,fontWeight:"700",lineHeight:12,letterSpacing:.72,textTransform:"uppercase"},pillPlain:{color:"#10462e",fontSize:12,fontWeight:"700",lineHeight:12,letterSpacing:.72,textTransform:"uppercase"},pillOverdue:{color:"#c03410",fontSize:12,fontWeight:"700",lineHeight:12,letterSpacing:.72,textTransform:"uppercase"},hero:{color:"#10462e",fontSize:17,fontWeight:"400",lineHeight:26.34375},heroIcon:{color:"#10462e",fontSize:17,fontWeight:"400",lineHeight:26.34375},source:{color:"#6b6b6b",fontSize:13,fontWeight:"400",lineHeight:19.5},sourceIcon:{color:"#819d90",fontSize:13,fontWeight:"400",lineHeight:19.5},sourceBold:{color:"#6b6b6b",fontSize:13,fontWeight:"700",lineHeight:19.5},sourceLink:{color:"#10462e",fontSize:13,fontWeight:"700",lineHeight:19.5,textDecorationLine:"underline"},choices:{color:"#000000",fontSize:17,fontWeight:"400",lineHeight:26.34375},choiceCurrent:{color:"#000000",fontSize:17,fontWeight:"400",lineHeight:26.34375},choice:{color:"#000000",fontSize:17,fontWeight:"400",lineHeight:26.34375},radioOn:{color:"#000000",fontSize:13.333,fontWeight:"400"},radioOff:{color:"#000000",fontSize:13.333,fontWeight:"400"},choiceText:{color:"#000000",fontSize:17,fontWeight:"400",lineHeight:26.34375},choiceTitle:{color:"#10462e",fontSize:17,fontWeight:"700",lineHeight:22.09375},choiceMeta:{color:"#6b6b6b",fontSize:13,fontWeight:"400",lineHeight:18.1875},facts:{color:"#000000",fontSize:17,fontWeight:"400",lineHeight:26.34375},factsLi:{color:"#000000",fontSize:17,fontWeight:"400",lineHeight:26.34375},factsLiHer:{color:"#000000",fontSize:17,fontWeight:"400",lineHeight:26.34375},factsK:{color:"#6b6b6b",fontSize:13,fontWeight:"400",lineHeight:18.1875},factsN:{color:"#10462e",fontSize:20,fontWeight:"700",lineHeight:22,letterSpacing:-.4,fontVariant:["tabular-nums"]},factsUnit:{color:"#6b6b6b",fontSize:13,fontWeight:"500",lineHeight:14.296875,letterSpacing:-.4,fontVariant:["tabular-nums"]},noteAfterFacts:{color:"#6b6b6b",fontSize:13,fontWeight:"400",lineHeight:19.5},cardLead:{color:"#000000",fontSize:15,fontWeight:"400",lineHeight:22.5},person:{color:"#000000",fontSize:17,fontWeight:"400",lineHeight:26.34375},avatar:{color:"#000000",fontSize:17,fontWeight:"400",lineHeight:26.34375},personName:{color:"#10462e",fontSize:17,fontWeight:"700",lineHeight:22.09375},personMeta:{color:"#6b6b6b",fontSize:13,fontWeight:"400",lineHeight:18.84375},sourceInCard:{color:"#6b6b6b",fontSize:13,fontWeight:"400",lineHeight:19.5},sourceInCardIcon:{color:"#819d90",fontSize:13,fontWeight:"400",lineHeight:19.5},noteAfterSource:{color:"#6b6b6b",fontSize:13,fontWeight:"400",lineHeight:19.5},rxLead:{color:"#000000",fontSize:15,fontWeight:"400",lineHeight:22.5},btnOutlineSm:{color:"#10462e",fontSize:15,fontWeight:"400",lineHeight:15,textAlign:"center"},btnOutlineSmIcon:{color:"#10462e",fontSize:15,fontWeight:"400",lineHeight:15,textAlign:"center"},noteStandalone:{color:"#6b6b6b",fontSize:13,fontWeight:"400",lineHeight:19.5},noteLink:{color:"#10462e",fontSize:15,fontWeight:"700",lineHeight:21},sumPlain:{color:"#000000",fontSize:17,fontWeight:"400",lineHeight:26.34375},sumPlainRowFirst:{color:"#000000",fontSize:17,fontWeight:"400",lineHeight:26.34375},sumPlainRowLast:{color:"#000000",fontSize:17,fontWeight:"400",lineHeight:26.34375},sumPlainDd:{color:"#10462e",fontSize:15,fontWeight:"700",lineHeight:21,textAlign:"right"},planRowsLiFirst:{color:"#000000",fontSize:17,fontWeight:"400",lineHeight:26.34375},planRowsLiNext:{color:"#000000",fontSize:17,fontWeight:"400",lineHeight:26.34375},switch:{color:"#000000",fontSize:17,fontWeight:"400",lineHeight:26.34375},switchTrack:{color:"#000000",fontSize:13.333,fontWeight:"400"},switchKnob:{color:"#000000",fontSize:17,fontWeight:"400",lineHeight:26.34375},switchTrackOff:{color:"#000000",fontSize:13.333,fontWeight:"400"},switchKnobOff:{color:"#000000",fontSize:17,fontWeight:"400",lineHeight:26.34375},breaks:{color:"#000000",fontSize:17,fontWeight:"400",lineHeight:26.34375},btnSm:{color:"#10462e",fontSize:15,fontWeight:"400",lineHeight:15,textAlign:"center"},linkDanger:{color:"#c03410",fontSize:15,fontWeight:"700",lineHeight:23.25,textDecorationLine:"underline",textAlign:"center"},sheet:{color:"#000000",fontSize:17,fontWeight:"400",lineHeight:26.34375},sheetBackdrop:{color:"#000000",fontSize:17,fontWeight:"400",lineHeight:26.34375},sheetGrab:{color:"#000000",fontSize:17,fontWeight:"400",lineHeight:26.34375},sheetGrabBar:{color:"#000000",fontSize:17,fontWeight:"400",lineHeight:26.34375},sheetHead:{color:"#000000",fontSize:17,fontWeight:"400",lineHeight:26.34375},sheetClose:{color:"#10462e",fontSize:13.333,fontWeight:"400",textAlign:"center"},sheetCloseIcon:{color:"#10462e",fontSize:13.333,fontWeight:"400",textAlign:"center"},sheetBody:{color:"#000000",fontSize:17,fontWeight:"400",lineHeight:26.34375},sheetText:{color:"#000000",fontSize:17,fontWeight:"400",lineHeight:25.5},sheetActions:{color:"#000000",fontSize:17,fontWeight:"400",lineHeight:26.34375},btnDanger:{color:"#c03410",fontSize:15,fontWeight:"700",lineHeight:23.25,textAlign:"center"},btnOutline:{color:"#10462e",fontSize:17,fontWeight:"700",lineHeight:17,textAlign:"center"},rec:{color:"#000000",fontSize:17,fontWeight:"400",lineHeight:26.34375},recRow:{color:"#000000",fontSize:17,fontWeight:"400",lineHeight:26.34375},recIcon:{color:"#6b6b6b",fontSize:17,fontWeight:"400",lineHeight:26.34375},recText:{color:"#000000",fontSize:17,fontWeight:"400",lineHeight:26.34375},recTitle:{color:"#10462e",fontSize:17,fontWeight:"700",lineHeight:22.09375},recMeta:{color:"#6b6b6b",fontSize:13,fontWeight:"400",lineHeight:18.1875},recEnd:{color:"#6b6b6b",fontSize:15,fontWeight:"400",lineHeight:23.25},trackerLi:{color:"#000000",fontSize:17,fontWeight:"400",lineHeight:26.34375},trackerLiLast:{color:"#000000",fontSize:17,fontWeight:"400",lineHeight:26.34375},trackerLineDone:{color:"#000000",fontSize:17,fontWeight:"400",lineHeight:26.34375},trackerLine:{color:"#000000",fontSize:17,fontWeight:"400",lineHeight:26.34375},dotDone:{color:"#ffffff",fontSize:17,fontWeight:"400",lineHeight:26.34375},dotDoneIcon:{color:"#ffffff",fontSize:17,fontWeight:"400",lineHeight:26.34375},dotNow:{color:"#000000",fontSize:17,fontWeight:"400",lineHeight:26.34375},dotNowCore:{color:"#000000",fontSize:17,fontWeight:"400",lineHeight:26.34375},dotNext:{color:"#000000",fontSize:17,fontWeight:"400",lineHeight:26.34375},trackerTitle:{color:"#10462e",fontSize:17,fontWeight:"700",lineHeight:22.09375},trackerTitleNext:{color:"#6b6b6b",fontSize:17,fontWeight:"700",lineHeight:22.09375},trackerWhen:{color:"#6b6b6b",fontSize:13,fontWeight:"400",lineHeight:18.1875},trackerText:{color:"#000000",fontSize:15,fontWeight:"400",lineHeight:22.5},pillStable:{color:"#10462e",fontSize:12,fontWeight:"700",lineHeight:12,letterSpacing:.72,textTransform:"uppercase"},trackItemsEnd:{color:"#000000",fontSize:17,fontWeight:"400",lineHeight:26.34375,fontVariant:["tabular-nums"]},trackItemsLiFirst:{color:"#000000",fontSize:17,fontWeight:"400",lineHeight:26.34375},trackItemsLiLast:{color:"#000000",fontSize:17,fontWeight:"400",lineHeight:26.34375},noteAfterTotal:{color:"#6b6b6b",fontSize:13,fontWeight:"400",lineHeight:19.5},rowLink:{color:"#10462e",fontSize:15,fontWeight:"700",lineHeight:20.25},rowLinkIcon:{color:"#10462e",fontSize:15,fontWeight:"700",lineHeight:20.25},rowLinkChevron:{color:"#819d90",fontSize:15,fontWeight:"700",lineHeight:20.25},ghost:{color:"#000000",fontSize:17,fontWeight:"400",lineHeight:26.34375},ghostBar:{color:"#000000",fontSize:17,fontWeight:"400",lineHeight:26.34375},field:{color:"#000000",fontSize:17,fontWeight:"400",lineHeight:26.34375},fieldLabel:{color:"#10462e",fontSize:15,fontWeight:"700",lineHeight:21},fieldInput:{color:"#000000",fontSize:17,fontWeight:"400",lineHeight:26.34375},fieldInputText:{color:"#000000",fontSize:17,fontWeight:"400",lineHeight:26.34375}},PHONE_DECOR={body:{font:"sans"},pushBody:{font:"sans"},subtabs:{font:"sans",lineBottom:{width:1,color:"#e4e4e4"}},subtab:{font:"sans"},subtabCurrent:{font:"sans",insetBottom:{width:3,color:"#07c168"}},titleBlock:{font:"sans"},screenTitle:{font:"sans",wrap:"balance"},screenMeta:{font:"mono",wrap:"pretty"},stack:{font:"sans"},card:{font:"sans"},cardHead:{font:"sans"},cardTitle:{font:"sans"},cardTitleInHead:{font:"sans"},cardLink:{font:"sans"},cardLinkAfterNote:{font:"sans"},forLabel:{font:"mono"},forLabelNext:{font:"mono"},itemsLiFirst:{font:"sans"},itemsLiMid:{font:"sans"},itemsLiLast:{font:"sans"},thumb:{font:"sans"},thumbIcon:{font:"sans"},thumbPink:{font:"sans"},thumbYellow:{font:"sans"},thumbSage:{font:"sans"},itemsName:{font:"sans"},itemsMeta:{font:"sans"},itemsActs:{font:"sans"},itemsActLink:{font:"sans",underlineOffset:3},itemsActButton:{font:"sans",underlineOffset:3},itemsEnd:{font:"sans"},itemsPrice:{font:"sans"},pill:{font:"mono"},pillSoon:{font:"mono",ring:{width:1.25,color:"#f6d892"}},btnRow:{font:"sans"},btnRowIcon:{font:"sans"},btnRowLabel:{font:"sans"},sumTotal:{font:"sans"},sumRowFirst:{font:"sans"},sumRowLast:{font:"sans"},sumDt:{font:"sans"},sumDd:{font:"sans"},sumDdTotal:{font:"sans"},noteAfterSum:{font:"sans"},rowsLiFirst:{font:"sans"},rowsLiNext:{font:"sans"},rowsK:{font:"sans"},rowsV:{font:"sans"},rowsMeta:{font:"sans"},legal:{font:"sans"},legalText:{font:"sans"},traybar:{font:"sans",lineTop:{width:1,color:"#e4e4e4"}},btnInk:{font:"sans"},traybarFine:{font:"sans"},input:{font:"sans"},inputIcon:{font:"sans"},inputText:{font:"sans"},inputPlaceholder:{font:"sans"},filters:{font:"sans"},filter:{font:"sans"},filterCurrent:{font:"sans"},sectionHead:{font:"sans"},prods:{font:"sans"},prod:{font:"sans"},prodImg:{font:"sans"},prodIcon:{font:"sans"},prodTags:{font:"sans"},prodBody:{font:"sans"},prodName:{font:"sans"},prodMeta:{font:"sans"},prodPrice:{font:"sans"},pillClear:{font:"mono",ring:{width:1.5,color:"#07c168"}},pillPlain:{font:"mono",ring:{width:1.5,color:"rgba(16, 70, 46, 0.2)"}},pillOverdue:{font:"mono",ring:{width:1.25,color:"#c03410"}},hero:{font:"sans"},heroIcon:{font:"sans"},source:{font:"sans"},sourceIcon:{font:"sans"},sourceBold:{font:"sans"},sourceLink:{font:"sans",underlineOffset:3},choices:{font:"sans"},choiceCurrent:{font:"sans"},choice:{font:"sans"},radioOn:{font:"sans"},radioOff:{font:"sans"},choiceText:{font:"sans"},choiceTitle:{font:"sans"},choiceMeta:{font:"sans"},facts:{font:"sans"},factsLi:{font:"sans"},factsLiHer:{font:"sans"},factsK:{font:"sans"},factsN:{font:"sans"},factsUnit:{font:"sans"},noteAfterFacts:{font:"sans"},cardLead:{font:"sans"},person:{font:"sans"},avatar:{font:"sans",ring:{width:1,color:"#e4e4e4"}},personName:{font:"sans"},personMeta:{font:"sans"},sourceInCard:{font:"sans"},sourceInCardIcon:{font:"sans"},noteAfterSource:{font:"sans"},rxLead:{font:"sans"},btnOutlineSm:{font:"sans"},btnOutlineSmIcon:{font:"sans"},noteStandalone:{font:"sans"},noteLink:{font:"sans"},sumPlain:{font:"sans"},sumPlainRowFirst:{font:"sans"},sumPlainRowLast:{font:"sans"},sumPlainDd:{font:"sans"},planRowsLiFirst:{font:"sans"},planRowsLiNext:{font:"sans"},switch:{font:"sans"},switchTrack:{font:"sans"},switchKnob:{font:"sans",drop:{x:0,y:1,blur:2,spread:0,color:"rgba(16, 70, 46, 0.06)"}},switchTrackOff:{font:"sans"},switchKnobOff:{font:"sans",drop:{x:0,y:1,blur:2,spread:0,color:"rgba(16, 70, 46, 0.06)"}},breaks:{font:"sans"},btnSm:{font:"sans"},linkDanger:{font:"sans",underlineOffset:3},sheet:{font:"sans"},sheetBackdrop:{font:"sans"},sheetGrab:{font:"sans"},sheetGrabBar:{font:"sans"},sheetHead:{font:"sans"},sheetClose:{font:"sans"},sheetCloseIcon:{font:"sans"},sheetBody:{font:"sans"},sheetText:{font:"sans"},sheetActions:{font:"sans"},btnDanger:{font:"sans"},btnOutline:{font:"sans"},rec:{font:"sans"},recRow:{font:"sans"},recIcon:{font:"sans"},recText:{font:"sans"},recTitle:{font:"sans"},recMeta:{font:"sans"},recEnd:{font:"sans"},trackerLi:{font:"sans"},trackerLiLast:{font:"sans"},trackerLineDone:{font:"sans"},trackerLine:{font:"sans"},dotDone:{font:"sans"},dotDoneIcon:{font:"sans"},dotNow:{font:"sans"},dotNowCore:{font:"sans"},dotNext:{font:"sans"},trackerTitle:{font:"sans"},trackerTitleNext:{font:"sans"},trackerWhen:{font:"sans"},trackerText:{font:"sans"},pillStable:{font:"mono"},trackItemsEnd:{font:"sans"},trackItemsLiFirst:{font:"sans"},trackItemsLiLast:{font:"sans"},noteAfterTotal:{font:"sans"},rowLink:{font:"sans"},rowLinkIcon:{font:"sans"},rowLinkChevron:{font:"sans"},ghost:{font:"sans"},ghostBar:{font:"sans"},field:{font:"sans"},fieldLabel:{font:"sans"},fieldInput:{font:"sans"},fieldInputText:{font:"sans"}},PHONE_ICONS={shield:{size:56,uri:"data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAKgAAACoCAQAAADeQm0/AAAK6klEQVR4Ae3BCbBVhWEA0HPveyDyBSGWzR2GuOMSo6VVo3XBoo5RxAJGDG6ALT/5T2syMdFGo0mclP4X/49bVBStSxBS9QOJURGraINRsxRRcWNxQVwG+YAs0uk4nZjKff/e9+7bnHeOhoaGhoaGhoaGOAK17XAjHWEnA/GW5R4z1wI1LFCrBppkoh191jLXu9EqNSlQm85wk21F63SWWWpQRi36mR/rppDuxtjWQ2pORq3p52GniuNwX3G/9WpKRm05wOP2Ftdg48z1rhqSUUvGmK2PJPo42x+8qGZk1IrtXOcqWUl1N04f82xWEwK14RAz7KZ4zxvjj2pARvVlXe5WfZWin3N0+i9VF6i2L7rHQdLxmDHeUlWBaurpEhfpIT2rXeEaG1VNoFoC4/3IjtL3kpzZqiRQHQe7wcHK52FTLFYFgco73jeNlMR/O9NGtztIEjNd4zEVFqik7s6Us59kOozViR6mO10yz/ipu21QMYFK2c0FztZfUt9zlT/7lqsltco013tFRQTKL2uUiY4WSKrTWB3+0gnu0lty89xglo3KLFBO3Y1wmpN9QTFedqIXfNZQcw1VjPfd714P2qBsAuUxxEH+wYmaFOtW3/ChrdvOvzlfsTrN9gvPeFUZBNKxvV3sbBe72MtehinNShPMVdgItxqkFOu96HkvWGaZ5V7TKQWBUhxtpOF2MkBP6bnLP3lf17Y31bnSs9bbVnjSXPMULVCcrPNdapC0vWKih8V3tGvtKW0rXG6aTYoQKMYBZhkibetc7mrJXeRyTdL2otP8SWKB5Ea5w7bSNsM3vak4A011hrStcab7JJSR1CgzdZOuJUb7iTWKtcYsjxiunzR1N9bvLZZIRjL7m6ObNP3BRSZ7RamWut4SB+grTV8121sSCCSRsdhQ6flPPzZHmrImuNSu0vOivX0stowkLjBeWjqc5UovSdfHnpG30pf0ko4dvOF3YgvE19tr+irdcre40Qrl1M0oE/2dQOlWGqJTTFnxjdJXa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dOsTp1ipaK0+GAEnotdtHoOhxQQq/FLooQxFmr5JaSdcayVsktJetECeI8KFMylpLMHFGCONdk5hvLEzLXRAni9Mu0mmM0D7lXpk+UIM4puceMpkvupChBnK/k1kvVMsVauQOiBHEuOSfzuI/Usk2XzCmXRQlibZN7y1ZTDXePrd6Q2yZSEOtTvXJrnPakSvP1WiN30k6RUrEGvei4Vpm5jut1xLemesrTSird8LJBkVLxzlhun0olJW+qZple0YJ6fGG1QWP5zypfqkOqPtv9Yp/partuqSPqkqrXQQ/bbKXUSDftsFG/OqXq1+91W71kiQUStw363n67/WYcUuPzqy22SM3Wjj/1uWncUhNx0wUXTFhQAEEBBAUQFEBQAEEBBAUQFEBQAEEBBAUQFECQ65NrMxna5PqUBbkTcs+ZDM/L/aQslTsj97kFDhrQONMs8rbcGWWJSp94TXNst1pZUOkdf2iG372rQlBpwHLNsMINFVoMdd5u3WabPD96xglDJKpZ5QXdpmmsf3xnv4+NkKity3SN87cT7hrD/w1CmKiWHePxAAAAAElFTkSuQmCC"},plus:{size:17,uri:"data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAADMAAAAzCAQAAACQqPihAAAAz0lEQVR4Ae3BIVLDUBiF0S+XDrZLqE3dYwcgqzAVkSyARXQtVSBRlbADcLwtICur2slE8ZKKfzK96p1DVVVhd0Qltpz4I6Qh5pFPek98ESBiXhh0hIiYM4N7QoSFsBAWwkJYCAthISyEhbAQFgvGWjYsmZYYPLBj2pEDmUJDqeWXudZk/hGljvk6CqL0xlxn9hQaxlo2LJn2TKL3wwfTjhzIFBaMZTLXrEj0vtkRICyEhbAQFsJCWAgLYSEshIWwEBYi5p3BnhtLvJKoqurmLoEZGakNbs0TAAAAAElFTkSuQmCC"},search:{size:20,uri:"data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAADwAAAA8CAQAAACQ9RH5AAAD2UlEQVR4Ae3Ba2hVdQAA8N85N4uVbbdNp1ExI3siZBaVICwqTPOxJkX0dFAQRkEfioqooIIeBNH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yrLWQi9ar1yLFVoERa2KykSqd5oOJ6lXr97BtunTZ4vPLfSxNC1WaBEUtSr6V2QktVihRVDUqmi3nJHUq6BdXiLvEG/aLTayis5QFFzkALvFRlqnVkWJRf6wW87I6/WGc4z1jfm2+Y+NcqL97PO/8g+Ihe5zzyrCeQAAAABJRU5ErkJggg=="},check:{size:16,uri:"data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAADAAAAAwCAQAAAD9CzEMAAABVUlEQVR4Ae3Bu20UQQAA0Lde13AF0AQSLZglQISklphxAUAdyDOSJXIyMlIaOG0CLTAShBTgI1jGd+fznu+XgPY9k8nkP9A4pdfeWXjrizut0wk+mpl55oOFv86cSpAMGivOnUZ0rXrv1p0zpxBcq6JPVjSOFyRVlK1pHCtIqii7p3GcIKmibEPjGEFSRdkDGocLkirKHtQ4VJBUUTaicZggqaJsVGvVhc+C377ZLkqqKNuitXTuqydmXip644KkirKtzqxaGNy4NCZIqih7RGvpVvHKoPPT3KYoqa5kj2qt+q7oDJ4reuuCpIqyHbTW9YrOoFP0loKkirKdtO7rFZ1Bp+gNgqSKsh21NvWKzqBT9AiSKsp21npIr+gMOsVTSRVle2iMeSPbFGV7aY2Z++XCuivZnlrj5orOUpTtrbVNr+gMouwAre16P7zApRuTyWTyz/oDUB1ZN9kNGUEAAAAASUVORK5CYII="},file:{size:16,uri:"data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAADAAAAAwCAQAAAD9CzEMAAABtElEQVR4Ad3Bv2rUcAAA4K+/ZndUXARBIp3cxEkQHYq4aOmiHQTvQH0GIw30DYTK3WhdgqBu/sHdQe2mzQNY6wM4V0oI5rze7+5yZNDv889bMm7DTZecNN03W56LWjLqlOeumMcD2yKWjXrjsvlct++LiZY13fPQ/G746ZMJEk23VF54ZM9kh0Zt46ljBU2XVB7bM4u+2raeYwVNJ1S+ms1QX22g5xjBYob6agM9Y4JFDfXVBnr+EixuqK820DMiaONAZUVl6IHawG0NQRu7KpvOqWy7r7alIdHGwK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zQ2wuc01YoXVVltttc+97z3vesdngiAIgiAIgiAIgiAIgiAIgiAIgiAIgiAIgiAIgoL+D/kco6VOaO7DAAAAAElFTkSuQmCC"}};function fontFace(f,weight){return f?typeof f=="string"?{fontFamily:f,fontWeight:weight}:{fontFamily:weight==="700"?f.bold??f.regular:weight==="500"?f.medium??f.regular:f.regular}:{fontWeight:weight}}function makeKit(options){let views=/* @__PURE__ */new Map,texts=/* @__PURE__ */new Map,types=/* @__PURE__ */new Map,type=key=>{let s=types.get(key);if(!s){let{fontWeight:fontWeight,...rest}=PHONE_TEXT[key];s={...rest,...fontFace(PHONE_DECOR[key].font==="mono"?options.fonts?.mono:options.fonts?.sans,fontWeight)},types.set(key,s)}return s};return{options:options,v(key){let s=views.get(key);return s||(s={...PHONE_BOX[key]},views.set(key,s)),s},t(key){let s=texts.get(key);return s||(s={...PHONE_BOX[key],...type(key)},texts.set(key,s)),s},tx:type}}var DEFAULT_KIT=/* @__PURE__ */makeKit({}),KitContext=/* @__PURE__ */react.createContext(DEFAULT_KIT);function ShopKitProvider({fonts:fonts,renderIcon:renderIcon,children:children}){let kit=react.useMemo(()=>makeKit({...fonts?{fonts:fonts}:{},...renderIcon?{renderIcon:renderIcon}:{}}),[fonts,renderIcon]);return react.createElement(KitContext.Provider,{value:kit},children)}function useKit(){return react.useContext(KitContext)}function inkOf(key){return PHONE_TEXT[key].color??"#000000"}function Decor({k:k2}){let d=PHONE_DECOR[k2],radius=PHONE_BOX[k2].borderRadius??0,out=[];if(d.ring){let ring2=reactNative.Platform.OS==="web"?{boxShadow:`inset 0 0 0 ${d.ring.width}px ${d.ring.color}`}:{borderWidth:d.ring.width,borderColor:d.ring.color};out.push(react.createElement(reactNative.View,{key:"ring",pointerEvents:"none",style:[{position:"absolute",top:0,right:0,bottom:0,left:0,borderRadius:radius},ring2]}))}return d.insetBottom&&out.push(react.createElement(reactNative.View,{key:"bar",pointerEvents:"none",style:{position:"absolute",right:0,bottom:0,left:0,height:d.insetBottom.width,backgroundColor:d.insetBottom.color}})),d.lineTop&&out.push(react.createElement(reactNative.View,{key:"top",pointerEvents:"none",style:{position:"absolute",right:0,top:-d.lineTop.width,left:0,height:d.lineTop.width,backgroundColor:d.lineTop.color}})),d.lineBottom&&out.push(react.createElement(reactNative.View,{key:"bottom",pointerEvents:"none",style:{position:"absolute",right:0,bottom:-d.lineBottom.width,left:0,height:d.lineBottom.width,backgroundColor:d.lineBottom.color}})),out.length?out:null}function dropShadow(k2){let d=PHONE_DECOR[k2].drop;return d?reactNative.Platform.OS==="web"?{boxShadow:`${d.x}px ${d.y}px ${d.blur}px ${d.spread}px ${d.color}`}:{shadowColor:d.color,shadowOpacity:1,shadowRadius:d.blur/2,shadowOffset:{width:d.x,height:d.y}}:null}function Icon({name:name,size:size,color:color,style:style}){let own=useKit().options.renderIcon?.({name:name,size:size,color:color});if(own!=null)return react.createElement(reactNative.View,{style:[{width:size,height:size},style],pointerEvents:"none"},own);let img=[{width:size,height:size,tintColor:color},style];return react.createElement(reactNative.Image,{source:{uri:PHONE_ICONS[name].uri},style:img,accessible:false,importantForAccessibility:"no",resizeMode:"contain"})}function PartIcon({name:name,k:k2,inkKey:inkKey,style:style}){let box2=PHONE_BOX[k2];return react.createElement(Icon,{name:name,size:box2.width??24,color:inkOf(inkKey??k2),style:[box2.marginTop?{marginTop:box2.marginTop}:null,style]})}function T({k:k2,style:style,children:children,lines:lines,role:role,bare:bare}){let kit=useKit();return react.createElement(reactNative.Text,{style:[bare?kit.tx(k2):kit.t(k2),wrapStyle(k2),style],...wrapOf(k2),...lines?{numberOfLines:lines}:{},...role?{accessibilityRole:role}:{}},children)}function wrapOf(k2){return PHONE_DECOR[k2].wrap?reactNative.Platform.OS==="web"?{}:reactNative.Platform.OS==="ios"?{lineBreakStrategyIOS:"standard"}:{textBreakStrategy:"balanced"}:{}}function wrapStyle(k2){let w=PHONE_DECOR[k2].wrap;return w&&reactNative.Platform.OS==="web"?{textWrap:w}:null}function underline(k2){let off=PHONE_DECOR[k2].underlineOffset;return off?{textUnderlineOffset:off}:{}}function Press({onPress:onPress,disabled:disabled,label:label,style:style,children:children,role:role="button",selected:selected,hitSlop:hitSlop}){return react.createElement(reactNative.Pressable,{...hitSlop?{hitSlop:hitSlop}:{},onPress:disabled?void 0:onPress,disabled:disabled===true,accessibilityRole:role,...label?{accessibilityLabel:label}:{},accessibilityState:{disabled:disabled===true,...selected!==void 0?{selected:selected,checked:selected}:{}},style:style},children)}function phoneLabel(label){return label.replace(/\s*→$/,"")}var NavContext=react.createContext({go:()=>{},openExternal:()=>{}});function ShopNativeNavProvider({value:value,children:children}){return react.createElement(NavContext.Provider,{value:value},children)}function useShopNativeNav(){return react.useContext(NavContext)}var everfurTokens=/* @__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 BLOCK_BOX={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},BLOCK_TEXT={shown:true,color:"text",tracking:0,face:"sans",upper:false,wrap:"pretty",tabular:false,deco:"none",decoOffset:0,decoThickness:0,marginTop:0,paddingTop:0},blockBox=p=>({...BLOCK_BOX,...p}),blockText=p=>({...BLOCK_TEXT,...p}),everfurMetrics={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},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"}},everfurBlocksMetrics={order:{card:blockBox({w:361,h:163.547}),top:blockBox({w:361,h:39.547,gap:[12,12]}),title:blockText({size:16,weight:700,lineHeight:20,tracking:-.16}),meta:blockText({size:13,weight:400,lineHeight:17.55,color:"muted"}),total:blockText({size:16,weight:700,lineHeight:24.8,tabular:true}),shots:blockBox({w:361,h:64,marginTop:8,gap:[8,8]}),acts:blockBox({w:361,h:40,marginTop:12,gap:[8,8]}),go:blockBox({w:176.5,h:40,padding:[0,12,0,12],gap:[6,6],minHeight:40,radius:[999,999],bg:"go",center:true}),goText:blockText({size:14,weight:700,lineHeight:21.7}),plain:blockBox({w:176.5,h:40,padding:[0,12,0,12],gap:[6,6],minHeight:40,radius:[999,999],bg:"#F3F3F3",center:true}),plainText:blockText({size:14,weight:700,lineHeight:21.7}),note:blockText({size:13,weight:500,lineHeight:17.55,marginTop:8}),icon:blockBox({w:16,h:16}),actsColumns:2,shotPressScale:.96},orderQuiet:{top:blockBox({w:361,h:43.547,gap:[12,12]}),when:blockBox({w:300.063,h:24,gap:[8,4],center:true}),title:blockText({size:16,weight:700,lineHeight:20.8}),chip:blockBox({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:blockText({size:12,weight:700,lineHeight:15.6,color:"ink"}),chipIcon:blockBox({w:14,h:14,color:"ink"}),meta:blockText({size:13,weight:400,lineHeight:17.55,color:"muted",marginTop:2}),total:blockText({size:16,weight:700,lineHeight:24.8,tabular:true}),shots:blockBox({w:361,h:64,marginTop:8,gap:[8,8]}),shot:blockBox({w:64,h:64,radius:[14,14],bg:"#F3F3F3"}),shotImg:blockBox({w:64,h:64,padding:[6.391,6.391,6.391,6.391],fit:"contain"}),shotBlend:"multiply",acts:blockBox({w:361,h:44,marginTop:12,gap:[12,12],center:true}),plain:blockBox({w:162.109,h:44,padding:[0,16,0,16],gap:[6,6],minHeight:44,radius:[999,999],bg:"#F3F3F3",center:true}),plainText:blockText({size:14,weight:700,lineHeight:21.7}),icon:blockBox({w:16,h:16}),link:blockBox({w:62.578,h:44,padding:[0,6,0,6],minHeight:44}),linkText:blockText({size:14,weight:700,lineHeight:21.7,deco:"underline",decoOffset:3,decoThickness:1.5})},orderWeb:{card:blockBox({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:blockBox({w:172,h:72}),sq:blockBox({w:72,h:72,radius:[14,14],bg:"#F3F3F3"}),sqRing:3,sqOverlap:22,imgInset:.1,imgFit:"contain",imgBlend:"multiply",text:blockBox({w:446.547,h:95.781,gap:[2,2]}),when:blockBox({w:446.547,h:26,gap:[12,4],center:true}),title:blockText({size:19,weight:700,lineHeight:24.7,tabular:true}),total:blockText({size:19,weight:900,lineHeight:24.7,tabular:true}),chip:blockBox({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:blockText({size:13,weight:700,lineHeight:16.9,color:"ink",tabular:true}),chipIcon:blockBox({w:16,h:16,color:"ink"}),meta:blockText({size:16,weight:400,lineHeight:22.4}),note:blockText({size:15,weight:400,lineHeight:21}),acts:blockBox({w:245.453,h:46,gap:[24,8],center:true}),plain:blockBox({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:blockText({size:16,weight:700,lineHeight:19.2,color:"ink"}),icon:blockBox({w:18,h:18,color:"ink"}),link:blockBox({w:61.422,h:44,gap:[8,8],minHeight:44,center:true,color:"ink"}),linkText:blockText({size:17,weight:700,lineHeight:20.4,color:"ink",deco:"underline",decoOffset:4}),go:blockBox({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:blockText({size:17,weight:700,lineHeight:20.4,color:"surface",wrap:"auto"}),pressScale:.97,hoverFill:{color:"ink",share:.06,over:"surface"},chipOff:blockBox({w:97.422,h:26,padding:[0,10,0,6],gap:[4,4],minHeight:26,radius:[999,999],center:true,color:"ink"}),metaLink:blockText({size:16,weight:400,lineHeight:22.4,deco:"underline"}),narrow:{upTo:599,card:blockBox({w:560,h:247.391,padding:[16,16,16,16],gap:[24,16],radius:[20,20],bg:"surface",center:true}),sq:blockBox({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:blockBox({w:335,h:120.984,gap:[12,8],center:true}),sq:blockBox({w:48,h:48,radius:[12,12],bg:"#F3F3F3"}),sqRing:2,sqOverlap:18,when:blockBox({w:215,h:46.797,gap:[12,2],center:true}),title:blockText({size:16,weight:700,lineHeight:20.8,tabular:true}),total:blockText({size:16,weight:900,lineHeight:20.8,tabular:true}),chip:blockBox({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:blockText({size:12,weight:700,lineHeight:15.6,color:"ink",tabular:true}),whatHidden:true,note:blockText({size:13,weight:400,lineHeight:18.2}),acts:blockBox({w:335,h:46,gap:[24,8],center:true}),plain:blockBox({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:blockText({size:15,weight:700,lineHeight:18,color:"ink"}),linkText:blockText({size:15,weight:700,lineHeight:18,color:"ink",deco:"underline",decoOffset:4})}},product:{card:blockBox({w:156,h:310.969,gap:[4,4]}),kicker:blockText({size:12,weight:400,lineHeight:15.6,color:"muted",tracking:.12,face:"mono"}),name:blockText({size:15,weight:700,lineHeight:19.5,wrap:"balance"}),meta:blockText({size:13,weight:400,lineHeight:18.2,color:"muted"}),buy:blockBox({w:156,h:36,marginTop:6,gap:[8,8],center:true}),price:blockText({size:15,weight:700,lineHeight:23.25,tabular:true})},productCard:{card:blockBox({w:174.5,h:249.219,gap:[2,2]}),tag:blockBox({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:blockBox({w:16,h:16,color:"#CA4463"}),tagText:blockText({size:12,weight:700,lineHeight:12}),price:blockBox({w:174.5,h:26.344,gap:[6,6]}),priceText:blockText({size:17,weight:700,lineHeight:26.35,tracking:-.17,tabular:true}),was:blockText({size:13,weight:400,lineHeight:20.15,color:"muted",tabular:true,deco:"strike"}),name:blockText({size:14,weight:500,lineHeight:18.2,wrap:"balance"}),meta:blockText({size:12,weight:400,lineHeight:16.2,color:"muted"}),metaAuto:blockText({size:12,weight:500,lineHeight:16.2,color:"#16864A"}),step:blockBox({w:112,h:38,radius:[19,19],bg:"surface",center:true,x:54.5,y:128.5}),stepIn:blockBox({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:blockBox({w:38,h:38,radius:[19,19],center:true}),stepIcon:blockBox({w:18,h:18}),count:blockText({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:blockText({size:12,weight:400,lineHeight:16.2,color:"muted",tabular:true}),metaAutoDark:blockText({size:12,weight:500,lineHeight:16.2,color:"ink"}),pill:blockBox({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:blockText({size:14,weight:700,lineHeight:21.7}),pillOn:blockBox({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:blockText({size:14,weight:700,lineHeight:21.7}),pillIcon:blockBox({w:16,h:16}),pillSoft:blockBox({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:blockText({size:14,weight:700,lineHeight:21.7}),pillAt:{right:8,bottom:8},pillPressScale:.96},productBlend:{img:blockBox({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:blockBox({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:blockText({size:14,weight:700,lineHeight:21.7,color:"ink"}),pillOn:blockBox({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:blockText({size:14,weight:700,lineHeight:21.7,color:"ink"}),pillPressScale:.97},productWeb:{card:blockBox({w:306.656,h:370.641,gap:[2,2]}),square:blockBox({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:blockBox({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:blockText({size:13,weight:700,lineHeight:14.3,color:"ink"}),tagIcon:blockBox({w:16,h:16,color:"#CA4463"}),tagMix:.15,name:blockText({size:17,weight:500,lineHeight:22.1,wrap:"balance"}),nameLeading:1.3,coverRadius:20,price:blockBox({w:306.656,h:27.891,gap:[8,2]}),priceText:blockText({size:18,weight:700,lineHeight:27.9,tracking:-.18,tabular:true}),was:blockText({size:15,weight:400,lineHeight:23.25,tabular:true,deco:"strike"}),per:blockText({size:15,weight:400,lineHeight:23.25,tabular:true}),badge:blockBox({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:blockText({size:13,weight:700,lineHeight:13,tabular:true}),meta:blockText({size:15,weight:400,lineHeight:21}),add:blockBox({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:blockBox({w:20,h:20}),actAt:{right:10,bottom:10},step:blockBox({w:116,h:44,radius:[22,22],bg:"ink",center:true,color:"surface"}),stepButton:blockBox({w:44,h:44,radius:[22,22],center:true,color:"surface"}),stepIcon:blockBox({w:18,h:18,color:"surface"}),count:blockText({size:15,weight:700,lineHeight:23.25,color:"surface",tabular:true}),pill:blockBox({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:blockText({size:15,weight:700,lineHeight:15,color:"surface"}),pillOn:blockBox({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:blockText({size:15,weight:700,lineHeight:15,color:"ink"}),pillIcon:blockBox({w:18,h:18,color:"ink"}),pillSoft:blockBox({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:blockText({size:15,weight:700,lineHeight:15}),nameSteps:[{upTo:599,name:blockText({size:16,weight:500,lineHeight:20.8,wrap:"balance"})},{upTo:399,name:blockText({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}},productRow:{card:blockBox({shown:false,w:361,h:109.328,gap:[12,12],center:true}),name:blockText({shown:false,size:17,weight:700,lineHeight:22.1,color:"ink"}),meta:blockText({shown:false,size:13,weight:400,lineHeight:18.85,color:"muted",marginTop:2})},cart:{line:blockBox({w:361,h:109.328,gap:[12,12],center:true}),name:blockBox({w:289,h:24,gap:[8,4],center:true,color:"ink"}),nameText:blockText({size:17,weight:700,lineHeight:22.1,color:"ink"}),meta:blockText({size:13,weight:400,lineHeight:18.85,color:"muted",marginTop:2}),price:blockText({size:17,weight:700,lineHeight:26.35,color:"ink",tabular:true}),was:blockText({shown:false,size:13,weight:400,lineHeight:18.85,color:"muted",marginTop:2}),acts:blockBox({w:289,h:20.141,marginTop:6,gap:[16,16]}),remove:blockText({size:13,weight:700,lineHeight:20.15,color:"ink",deco:"underline",decoOffset:3}),removeBox:blockBox({w:53.016,h:20.141,color:"ink"}),end:blockBox({w:289,h:26.344,gap:[4,4]})},cartSquare:{line:blockBox({w:361,h:95.094,gap:[12,12]}),sm:blockBox({w:48,h:48,radius:[12,12],bg:"#F3F3F3"}),md:blockBox({w:52,h:52,radius:[12,12],bg:"#F3F3F3"}),lg:blockBox({w:56,h:56,radius:[12,12],bg:"#F3F3F3"}),imgInset:.1,imgFit:"contain",imgBlend:"multiply",name:blockBox({w:239.109,h:20,gap:[6,4],center:true}),nameText:blockText({size:15,weight:700,lineHeight:19.5}),link:blockText({size:15,weight:700,lineHeight:19.5}),linkReach:4,badge:blockBox({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:blockText({size:12,weight:700,lineHeight:12}),meta:blockText({size:13,weight:400,lineHeight:17.55,color:"muted",marginTop:2}),acts:blockBox({w:239.109,h:32,marginTop:6,gap:[16,16]}),act:blockText({size:13,weight:700,lineHeight:20.15,color:"ink",deco:"underline",decoOffset:3}),actBox:blockBox({w:84.531,h:32,minHeight:32,color:"ink"}),price:blockText({size:15,weight:700,lineHeight:23.25,tabular:true}),was:blockText({size:13,weight:400,lineHeight:20.15,color:"muted",tabular:true,deco:"strike"})},cartWeb:{line:blockBox({w:404,h:88,gap:[16,0],center:true}),sq:blockBox({w:88,h:88,radius:[14,14],bg:"#F3F3F3"}),imgInset:.1,imgFit:"contain",imgBlend:"multiply",name:blockBox({w:225.875,h:24.688,gap:[8,4],center:true}),nameText:blockText({size:19,weight:700,lineHeight:24.7}),link:blockText({size:19,weight:700,lineHeight:24.7}),linkReach:4,badge:blockBox({w:32.625,h:22,padding:[0,8,0,8],radius:[999,999],bg:"#DEE4F1",center:true}),badgeText:blockText({size:13,weight:700,lineHeight:13}),meta:blockText({size:15,weight:400,lineHeight:21,marginTop:2}),price:blockText({size:19,weight:700,lineHeight:29.45,tabular:true}),was:blockText({size:15,weight:400,lineHeight:23.25,tabular:true,deco:"strike"}),narrow:{upTo:599,sq:blockBox({w:64,h:64,radius:[14,14],bg:"#F3F3F3"}),cost:blockBox({w:432,h:29.438,marginTop:4,gap:[8,8]}),nameText:blockText({size:17,weight:700,lineHeight:22.1}),link:blockText({size:17,weight:700,lineHeight:22.1})},narrower:{upTo:330,sq:blockBox({w:56,h:56,radius:[14,14],bg:"#F3F3F3"}),cost:blockBox({w:216,h:29.438,marginTop:4,gap:[8,8]}),nameText:blockText({size:17,weight:700,lineHeight:22.1}),link:blockText({size:17,weight:700,lineHeight:22.1})},phone:{upTo:639,line:blockBox({w:303,h:81.25,gap:[12,0],center:true}),sq:blockBox({w:56,h:56,radius:[12,12],bg:"#F3F3F3"}),cost:blockBox({w:235,h:23.25,marginTop:2,gap:[8,8]}),nameText:blockText({size:15,weight:700,lineHeight:19.5}),link:blockText({size:15,weight:700,lineHeight:19.5}),meta:blockText({size:13,weight:400,lineHeight:17.55,marginTop:2}),price:blockText({size:15,weight:700,lineHeight:23.25,tabular:true}),was:blockText({size:13,weight:400,lineHeight:20.15,tabular:true,deco:"strike"}),smallUpTo:359,smallSq:48}},price:{note:blockText({size:13,weight:400,lineHeight:19.5,color:"muted",marginTop:12}),noteStrong:blockText({size:13,weight:700,lineHeight:19.5,color:"muted"})},priceWeb:{rows:blockBox({w:536,h:166.625,gap:[10,10]}),row:blockBox({w:536,h:26.344,gap:[16,16]}),term:blockText({size:17,weight:400,lineHeight:26.35,wrap:"balance"}),value:blockText({size:17,weight:700,lineHeight:26.35,tabular:true}),off:blockText({size:17,weight:700,lineHeight:26.35,color:"ink",wrap:"balance"}),total:blockBox({w:536,h:49.594,marginTop:8,gap:[16,16]}),totalTerm:blockText({size:20,weight:700,lineHeight:31,wrap:"balance"}),totalValue:blockText({size:32,weight:700,lineHeight:49.6,tracking:-.64,tabular:true}),note:blockText({size:15,weight:400,lineHeight:22.5,marginTop:16}),noteStrong:blockText({size:15,weight:700,lineHeight:22.5,color:"ink"}),phone:{upTo:639,rows:blockBox({w:239,h:145.141,gap:[8,8]}),term:blockText({size:15,weight:400,lineHeight:23.25,wrap:"balance"}),value:blockText({size:15,weight:700,lineHeight:23.25,tabular:true}),totalTerm:blockText({size:18,weight:700,lineHeight:27.9,wrap:"balance"}),totalValue:blockText({size:28,weight:700,lineHeight:43.4,tracking:-.56,tabular:true}),note:blockText({size:15,weight:400,lineHeight:22.5,marginTop:12})},drawer:{rows:blockBox({w:360,h:154.219,marginTop:32,gap:[10,10]}),term:blockText({size:17,weight:400,lineHeight:26.35,wrap:"balance"}),value:blockText({size:17,weight:700,lineHeight:26.35,tabular:true}),totalTerm:blockText({size:20,weight:700,lineHeight:31,wrap:"balance"}),totalValue:blockText({size:24,weight:700,lineHeight:37.2,tabular:true}),note:blockText({size:15,weight:400,lineHeight:22.5,marginTop:12})}},need:{card:blockBox({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:blockBox({w:293,h:24,gap:[8,8],center:true}),kickerText:blockText({size:15,weight:700,lineHeight:23.25}),source:blockBox({w:116.719,h:24,padding:[0,9,0,9],radius:[999,999],bg:"#DAF6E8",center:true,color:"ink"}),sourceText:blockText({size:12,weight:700,lineHeight:18.6,color:"ink"}),title:blockText({shown:false,size:15,weight:700,lineHeight:23.25}),signal:blockBox({w:293,h:65.25,marginTop:8,gap:[9,9],color:"#4D4D4D"}),signalText:blockText({size:15,weight:400,lineHeight:21.75,color:"#4D4D4D"}),signalLead:blockText({size:15,weight:700,lineHeight:21.75}),dot:blockBox({w:9,h:9,radius:[4.5,4.5],bg:"alert",color:"#4D4D4D",dy:-1}),score:blockBox({w:293,h:99.859,padding:[10,14,10,14],marginTop:12,gap:[12,12],radius:[10,10],bg:"#FCF0D6",center:true}),scoreLabel:blockText({size:14,weight:600,lineHeight:18.9,color:"#4D4D4D"}),scoreTag:blockBox({w:63.125,h:20.188,padding:[2,6,2,6],marginTop:3,radius:[6,6],bg:"surface"}),scoreTagText:blockText({size:12,weight:600,lineHeight:16.2,tracking:.72,face:"mono",upper:true,marginTop:3,paddingTop:2}),scoreNums:blockBox({w:106.109,h:51.141,gap:[6,0],center:true}),scoreWas:blockText({size:17,weight:700,lineHeight:26.35,color:"muted",deco:"strike",decoThickness:1.5}),scoreArrow:blockBox({w:16,h:16,color:"muted"}),scoreArrowFlip:true,scoreNow:blockText({size:28,weight:700,lineHeight:28,tracking:-.84,tabular:true}),scoreOf:blockText({size:15,weight:700,lineHeight:15,color:"#4D4D4D",tabular:true}),scoreSince:blockText({size:13,weight:700,lineHeight:20.15,color:"ink",marginTop:3})},needPlan:{card:blockBox({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:blockBox({w:297,h:24,gap:[8,8],center:true,color:"#262523"}),kickerText:blockText({size:15,weight:800,lineHeight:22.5,color:"#262523"}),source:blockBox({w:83.375,h:24,padding:[0,9,0,9],radius:[999,999],bg:"#F2F1EE",center:true,color:"#4A4845"}),sourceText:blockText({size:12,weight:700,lineHeight:18,color:"#4A4845"}),title:blockText({size:19,weight:800,lineHeight:23.18,color:"#262523",marginTop:12}),signal:blockBox({w:297,h:65.25,marginTop:6,gap:[9,9],color:"#4A4845"}),signalText:blockText({size:15,weight:400,lineHeight:21.75,color:"#4A4845"}),signalLead:blockText({size:15,weight:800,lineHeight:21.75,color:"#262523"}),dot:blockBox({w:9,h:9,radius:[4.5,4.5],bg:"#E5372B",color:"#4A4845",dy:-1}),score:blockBox({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:blockText({size:13.5,weight:600,lineHeight:18.225,color:"#4A4845",wrap:"balance"}),scoreTag:blockBox({w:51.609,h:17.5,padding:[2,6,2,6],marginTop:3,radius:[5,5],bg:"surface",color:"#262523"}),scoreTagText:blockText({size:10,weight:600,lineHeight:13.5,color:"#262523",tracking:.6,face:"mono",upper:true,wrap:"balance",marginTop:3,paddingTop:2}),scoreNums:blockBox({w:94.75,h:49.75,gap:[6,0],center:true,color:"#262523"}),scoreWas:blockText({size:17,weight:700,lineHeight:25.5,color:"#6B6863",deco:"strike"}),scoreArrow:blockBox({w:16,h:16,color:"#6B6863"}),scoreArrowFlip:true,scoreNow:blockText({size:28,weight:800,lineHeight:28,color:"#262523"}),scoreOf:blockText({size:13,weight:800,lineHeight:13,color:"muted"}),scoreSince:blockText({size:12.5,weight:700,lineHeight:18.75,color:"planLink",marginTop:3}),sources:blockBox({w:131.375,h:24,gap:[4,4],color:"#262523"}),sourceDna:blockBox({w:44,h:24,padding:[0,9,0,9],radius:[999,999],bg:"planLinkWash",center:true,color:"planLink"}),sourceDnaText:blockText({size:12,weight:700,lineHeight:18,color:"planLink"}),dotWatch:blockBox({w:9,h:9,radius:[4.5,4.5],bg:"#E5A000",color:"#4A4845",dy:-1}),dotClear:blockBox({w:9,h:9,radius:[4.5,4.5],bg:"#5FA82B",color:"#4A4845",dy:-1}),scoreLabelMax:135,says:blockBox({w:297,h:52,padding:[10,12,10,12],marginTop:12,gap:[10,10],radius:[14,14],bg:"#F8F7F4",color:"#262523"}),saysImg:blockBox({w:32,h:32,radius:[16,16],color:"#262523"}),saysText:blockText({size:14.5,weight:400,lineHeight:20.3,color:"#4A4845"}),saysBy:blockText({size:14.5,weight:800,lineHeight:20.3,color:"#262523"}),saysByGap:2,saysTag:blockBox({w:51.609,h:15,padding:[2,6,2,6],radius:[5,5],bg:"surface",color:"#262523"}),saysTagText:blockText({size:10,weight:400,lineHeight:14,color:"#262523",tracking:.6,face:"mono",upper:true,paddingTop:2}),saysBare:blockBox({w:297,h:81,padding:[10,12,10,12],marginTop:12,gap:[10,10],radius:[14,14],bg:"#F8F7F4",color:"#262523"}),saysKicker:blockText({size:17,weight:400,lineHeight:25.5,color:"#262523"}),saysSerif:blockText({size:17,weight:800,lineHeight:25.5,color:"#262523",tracking:-.17,wrap:"balance"}),jump:blockBox({w:297,h:60,padding:[8,14,8,8],marginTop:12,gap:[12,12],radius:[14,14],bg:"planInk",center:true,color:"planOnInk"}),jumpImg:blockBox({w:44,h:44,radius:[10,10],bg:"surface",color:"surface"}),jumpKicker:blockText({size:13,weight:800,lineHeight:19.5,color:"planAccent"}),jumpTitle:blockText({size:15,weight:800,lineHeight:18.75,color:"planOnInk"}),jumpGo:blockText({size:14,weight:800,lineHeight:21,color:"planOnInk"}),jumpPressScale:.98,more:blockBox({w:87.547,h:36,marginTop:6,marginBottom:-4,gap:[4,4],minHeight:36,center:true,color:"planLink"}),moreText:blockText({size:15,weight:800,lineHeight:22.5,color:"planLink"}),moreIcon:blockBox({w:16,h:16,color:"planLink"}),moreInset:16,moreTurn:{closed:90,open:-90},rep:blockBox({w:297,h:48.5,padding:[14,14,12,14],marginTop:10,radius:[16,16],bg:"#F8F7F4",color:"#262523"})},tip:{card:blockBox({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:blockBox({w:181.5,h:113.438,radius:[10,10],bg:"#F3F3F3"}),n:blockBox({w:28,h:28,radius:[14,14],bg:"surface",center:true,x:8,y:8}),nText:blockText({size:14,weight:700,lineHeight:14}),title:blockText({size:16,weight:700,lineHeight:20,marginTop:10}),text:blockText({size:15,weight:400,lineHeight:21,color:"#4D4D4D",marginTop:4}),foot:blockBox({w:181.5,h:26.594,padding:[8,0,0,0],gap:[4,4],center:true,color:"ink"}),footText:blockText({size:12,weight:400,lineHeight:18.6,color:"ink",tracking:.48,face:"mono",upper:true,paddingTop:8}),footArrow:blockBox({w:14,h:14,color:"ink"}),footArrowFlip:true,pressScale:.98,bare:blockBox({w:181.5,h:42,padding:[2,0,0,0],center:true}),thumb:blockBox({w:40,h:40,radius:[10,10],bg:"surface",center:true}),thumbIcon:blockBox({w:22,h:22})},tipPhoto:{card:blockBox({w:221,h:152,padding:[8,8,12,8],radius:[20,20],bg:"#FCF0D6"}),tones:{y:"#FCF0D6",c:"#EEDCC8",g:"tintGo",r:"tintPink"},img:blockBox({w:205,h:102.5,radius:[10,10],bg:"#F3F3F3"}),imgAspect:2,n:blockBox({w:28,h:28,radius:[14,14],bg:"surface",center:true,x:8,y:8}),nText:blockText({size:14,weight:700,lineHeight:14}),title:blockText({size:15,weight:700,lineHeight:19.5,marginTop:10}),titleInset:4,pressScale:.98,bare:blockBox({w:205,h:42,padding:[2,0,0,0],center:true}),thumb:blockBox({w:40,h:40,radius:[10,10],bg:"surface",center:true}),thumbIcon:blockBox({w:22,h:22,color:"ink"})},tipWeb:{card:blockBox({w:226,h:172.047,gap:[10,10]}),img:blockBox({w:226,h:141.25,radius:[14,14]}),imgAspect:1.6,title:blockText({size:16,weight:700,lineHeight:20.8,wrap:"balance"}),coverRadius:10,row:{from:440,card:blockBox({w:400,h:80,padding:[6,0,6,0],gap:[10,10],minHeight:80,center:true}),img:blockBox({w:64,h:64,radius:[10,10]}),arrowColumn:18,arrow:blockBox({w:18,h:18,color:"ink"}),arrowTurn:180},phone:{upTo:639,card:blockBox({w:216,h:162.5,gap:[8,8]}),img:blockBox({w:216,h:135,radius:[14,14]}),imgAspect:1.6,title:blockText({size:15,weight:700,lineHeight:19.5,wrap:"balance"}),smallUpTo:359,smallW:208},mark:{tile:blockBox({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},tipPlan:{card:blockBox({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:blockBox({w:197.406,h:30,center:true,color:"#262523"}),nText:blockText({size:30,weight:900,lineHeight:30,color:"#262523"}),icon:blockBox({w:26,h:26,color:"#262523"}),title:blockText({size:17,weight:800,lineHeight:21.25,color:"#262523",marginTop:14}),text:blockText({size:14.5,weight:400,lineHeight:20.3,color:"#4A4845",marginTop:4}),foot:blockBox({w:197.406,h:25.75,padding:[10,0,0,0],color:"planLink"}),footText:blockText({size:10.5,weight:400,lineHeight:15.75,color:"planLink",tracking:.42,face:"mono",upper:true,paddingTop:10})},cartPlan:{line:blockBox({w:297,h:95.625,gap:[12,12],color:"#262523"}),img:blockBox({w:64,h:64,radius:[14,14],bg:"planLinkWash",center:true,color:"planLink"}),icon:blockBox({w:28,h:28,color:"planLink"}),name:blockText({size:16.5,weight:800,lineHeight:20.625,color:"#262523",wrap:"balance"}),prices:blockBox({w:221,h:24,marginTop:3,gap:[8,2],center:true,color:"#262523"}),price:blockText({size:16,weight:800,lineHeight:24,color:"#262523",tabular:true}),was:blockText({size:14,weight:600,lineHeight:21,color:"#6B6863",deco:"strike"}),small:blockText({size:14,weight:400,lineHeight:21,color:"#6B6863"}),acts:blockBox({w:221,h:40,marginTop:8,gap:[16,16],center:true,color:"#262523"}),step:blockBox({w:110,h:40,radius:[999,999],bg:"surface",edge:{width:1.5,color:"#DAD7D1",ring:true},center:true,color:"#262523"}),remove:blockBox({w:56.422,h:40,minHeight:40,color:"#4A4845"}),removeText:blockText({size:14.5,weight:700,lineHeight:21.75,color:"#4A4845",deco:"underline",decoOffset:3,decoThickness:1.5})}};function deepFreeze(value){if(value!==null&&typeof value=="object"&&!Object.isFrozen(value))for(let v of Object.values(value))deepFreeze(v);return value}var k=everfurTokens,PRESET=/* @__PURE__ */Symbol.for("@everfur-health/ui-core#preset@v1");function asPreset(theme){return Object.defineProperty(theme,PRESET,{value:theme,enumerable:true}),deepFreeze(theme)}var SCALE_CAPS={content:0,heading:2,control:1.8,compact:1.5,badge:1.3},everfurTheme=asPreset({name:"everfur",colors:{bg:k.color.bg,surface:k.color.efWhite,text:k.color.text,ink:k.role.color.ink,onInk:k.color.efWhite,muted:k.role.color.muted,line:k.role.color.line,go:k.role.color.go,onGo:k.role.color.ink,pink:k.color.efDustyPink,onPink:k.role.color.ink,alert:k.color.alert,alertDeep:k.color.alertDeep,icoSage:k.role.color.icoSage,bgMist:k.color.bgMist,tintSage:k.role.color.tintSage,tintBlue:k.role.color.tintBlue,tintGo:k.role.color.tintGo,tintPink:k.role.color.tintPink,tintYellowEdge:k.role.color.tintYellowEdge,tintWatch:everfurMetrics.colors.watch,tintRed:k.role.color.tintRed,scrim:everfurMetrics.colors.scrim,grab:everfurMetrics.colors.grab,focus:k.role.color.ink,planInk:everfurMetrics.colors.planInk,planOnInk:everfurMetrics.colors.planOnInk,planAccent:everfurMetrics.colors.planAccent,planLink:everfurMetrics.colors.planLink,planAccentWash:everfurMetrics.colors.planAccentWash,planAccentChip:everfurMetrics.colors.planAccentChip,planLinkWash:everfurMetrics.colors.planLinkWash,planLinkChip:everfurMetrics.colors.planLinkChip},radius:{...k.radius},space:{...k.space},type:{family:k.font.family.base,mono:k.font.family.mono,faces:{regular:"Azeret-Regular",medium:"Azeret-Medium",bold:"Azeret-Bold",mono:"AzeretMono-Regular",monoBold:"AzeretMono-Bold"},namedFaces:true,size:{xs:k.font.size.xs,sm:k.font.size.sm,md:k.font.size.md,lg:k.font.size.lg,xl:k.font.size.xl},weight:{...k.font.weight},lineHeight:{...k.font.lineHeight},scaleCaps:SCALE_CAPS},motion:{duration:{press:k.motion.duration.press,fade:k.motion.duration.fade,enter:k.motion.duration.enter,sheet:k.motion.duration.sheet,sheetOut:k.motion.duration.sheetOut},easing:{out:k.motion.easing.out,drawer:k.motion.easing.drawer},pop:{duration:k.motion.duration.enter,from:.95,peakAt:.55,amplitude:.035,switchAmplitude:.06},reduced:false},metrics:everfurMetrics});function presetOf(theme){return theme[PRESET]??everfurTheme}function isObject(v){return v!==null&&typeof v=="object"&&!Array.isArray(v)}function merge(base,over){if(!isObject(base)||!isObject(over))return over===void 0?base:over;let out={...base};for(let[key,value]of Object.entries(over))value!==void 0&&(out[key]=merge(base[key],value));return out}function resolveTheme(partial,base=everfurTheme){if(!partial)return base;let merged=merge(base,partial),given=partial.colors;if(given){let colors=merged.colors;for(let[wash,from,share]of PLAN_WASHES){let c=given[from];c!==void 0&&given[wash]===void 0&&(colors[wash]=mixHex(c,share,colors.surface)??colors[wash]??c)}}return deepFreeze(merged)}var PLAN_WASHES=[["planAccentWash","planAccent",.17],["planAccentChip","planAccent",.47],["planLinkWash","planLink",.12],["planLinkChip","planLink",.2]];function mixHex(color,share,ground){let ch=v=>{let m=/^#([0-9a-f]{2})([0-9a-f]{2})([0-9a-f]{2})$/i.exec(v??"");return m?[m[1],m[2],m[3]].map(h=>parseInt(h,16)):void 0},[c,g]=[ch(color),ch(ground)];if(!(!c||!g))return`#${c.map((v,i)=>Math.round(v*share+(g[i]??0)*(1-share)).toString(16).padStart(2,"0")).join("").toUpperCase()}`}var ThemeContext=/* @__PURE__ */(()=>{let key=/* @__PURE__ */Symbol.for("@everfur-health/ui-core#ThemeContext@v1"),host=globalThis,context=host[key]??(host[key]=react.createContext(null));return context.displayName??(context.displayName="EverfurThemeContext"),context})();function ThemeProvider({theme:theme,children:children}){let outer=useTheme(),key=theme===void 0||isComplete(theme)?theme:contentKey(theme),value=react.useMemo(()=>isComplete(theme)?filled(theme):resolveTheme(theme,outer),[key,outer]);return react.createElement(ThemeContext.Provider,{value:value},children)}function contentKey(value){return JSON.stringify(value,(_,v)=>isObject(v)&&!Array.isArray(v)?Object.fromEntries(Object.keys(v).sort().map(k2=>[k2,v[k2]])):v)}function isComplete(theme){return theme!==void 0&&Object.isFrozen(theme)&&GROUPS.every(g=>g in theme)}var GROUPS=["name","colors","radius","space","type","motion","metrics"];function hasEvery(shape,value){if(shape===void 0)return true;if(!isObject(shape))return value!==void 0;if(!isObject(value))return false;for(let key of Object.keys(shape))if(!hasEvery(shape[key],value[key]))return false;return true}var fills=/* @__PURE__ */new WeakMap;function filled(theme){let hit=fills.get(theme);if(hit)return hit;if(hasEvery(everfurTheme,theme))return fills.set(theme,theme),theme;let preset=presetOf(theme),merged=merge(everfurTheme,preset===everfurTheme?theme:merge(preset,theme));merged[PRESET]=preset;let out=deepFreeze(merged);return fills.set(theme,out),out}function useTheme(){let explicit=react.useContext(ThemeContext);return explicit?filled(explicit):everfurTheme}var px=n=>Math.round(n*1e3)/1e3;function faceOf(weight,mono=false){return mono?weight>450?"monoBold":"mono":weight>500?"bold":weight>450?"medium":"regular"}function withAlpha(color,alpha){let m=/^#([0-9a-f]{2})([0-9a-f]{2})([0-9a-f]{2})$/i.exec(color);if(!m)return color;let[r,g,b]=[m[1],m[2],m[3]].map(h=>parseInt(h,16));return`rgba(${r}, ${g}, ${b}, ${alpha})`}function channelsOf(color){let hex=/^#([0-9a-f]{2})([0-9a-f]{2})([0-9a-f]{2})$/i.exec(color);if(hex)return[hex[1],hex[2],hex[3]].map(h=>parseInt(h,16));let rgb=/^rgba?\(\s*([\d.]+)[\s,]+([\d.]+)[\s,]+([\d.]+)/i.exec(color);return rgb?[rgb[1],rgb[2],rgb[3]].map(Number):void 0}function mixColor(color,share,base,fallback){let[c,b]=[channelsOf(color),channelsOf(base)];return!c||!b?fallback:`rgb(${c.map((v,i)=>Math.round(v*share+(b[i]??0)*(1-share))).join(", ")})`}function colorOf(t,value){let m=/^([a-zA-Z]+)(?:\/([\d.]+))?$/.exec(value),role=m?.[1];if(!m||role===void 0||!(role in t.colors))return value;let c=t.colors[role];return m[2]===void 0?c:withAlpha(c,Number(m[2]))}function fillOf(t,value){return value==="none"?"transparent":colorOf(t,value)}var DISABLED_OPACITY=.45;function pillSpec(t,tone){let m=t.metrics.pill,p=m.tones[tone],fg=tone==="clear"?t.colors.ink:colorOf(t,p.fg);return{minHeight:m.minHeight,paddingX:m.paddingX,radius:t.radius.pill,background:colorOf(t,p.bg),ring:p.ring>0?{width:p.ring,color:colorOf(t,p.ringColor)}:null,dot:tone==="new"?{size:m.dot,gap:m.dotGap,color:t.colors.go}:tone==="allergy"?{size:m.allergyDot.size,gap:m.allergyDot.gap,color:colorOf(t,m.allergyDot.color)}:null,text:{size:m.fontSize,weight:m.fontWeight,lineHeight:px(m.fontSize*m.lineHeight),color:fg,mono:m.mono,tracking:m.letterSpacing,upper:m.upper}}}function sheetTitleSpec(t,narrow){let m=t.metrics.sheet,size=m.titleSize,lineHeight=m.titleLineHeight??t.metrics.card.titleLineHeight;return{size:size,weight:m.titleWeight??t.metrics.card.titleWeight,lineHeight:px(size*lineHeight),color:colorOf(t,m.titleColor??"ink"),tracking:m.titleTracking??t.metrics.card.titleTracking}}function textSpecs(t){let m=t.metrics,c=t.colors;return{cardTitle:{size:m.card.titleSize,weight:m.card.titleWeight,lineHeight:px(m.card.titleSize*m.card.titleLineHeight),color:c.ink,tracking:m.card.titleTracking},cardLead:{size:m.card.leadSize,weight:t.type.weight.regular,lineHeight:px(m.card.leadSize*m.card.leadLineHeight),color:c.text},body:{size:m.card.bodySize,weight:t.type.weight.regular,lineHeight:px(m.card.bodySize*m.card.bodyLineHeight),color:c.text},kicker:{size:m.kicker.fontSize,weight:m.kicker.fontWeight,lineHeight:px(m.kicker.fontSize*m.kicker.lineHeight),color:c.muted,mono:true,tracking:m.kicker.letterSpacing,upper:true},sheetTitle:sheetTitleSpec(t),stepperValue:{size:m.quantityStepper.valueSize,weight:m.quantityStepper.valueWeight,lineHeight:px(m.quantityStepper.valueSize*m.quantityStepper.valueLineHeight),color:colorOf(t,m.quantityStepper.valueColor??"text")},tab:{size:m.tabs.fontSize,weight:m.tabs.fontWeight,lineHeight:px(m.tabs.fontSize*m.tabs.lineHeight),color:c.muted},tabCurrent:{size:m.tabs.fontSize,weight:m.tabs.currentWeight,lineHeight:px(m.tabs.fontSize*m.tabs.lineHeight),color:c.ink},emptyTitle:{size:m.empty.titleSize,weight:m.empty.titleWeight,lineHeight:px(m.empty.titleSize*m.empty.titleLineHeight),color:c.ink,tracking:m.empty.titleTracking},emptyLead:{size:m.empty.leadSize,weight:t.type.weight.regular,lineHeight:px(m.empty.leadSize*m.empty.leadLineHeight),color:c.text},emptyLink:{size:m.empty.linkSize,weight:m.empty.linkWeight,lineHeight:px(m.empty.linkSize*m.card.bodyLineHeight),color:c.ink},sumTerm:{size:m.summary.termSize,weight:t.type.weight.regular,lineHeight:px(m.summary.termSize*m.summary.termLineHeight),color:c.muted},sumValue:{size:m.summary.valueSize,weight:m.summary.valueWeight,lineHeight:px(m.summary.valueSize*m.summary.valueLineHeight),color:c.ink},sumTotal:{size:m.summary.totalSize,weight:m.summary.valueWeight,lineHeight:px(m.summary.totalSize*m.summary.totalLineHeight),color:c.ink}}}function quantityStepperSpec(t){let m=t.metrics.quantityStepper;return{edge:{width:m.borderWidth,color:colorOf(t,m.borderColor),inset:m.ring},button:m.button,icon:m.icon,valueMinWidth:m.valueMinWidth,fill:fillOf(t,m.fill??"none"),glyph:colorOf(t,m.glyph??"ink"),off:{color:colorOf(t,m.offColor),opacity:m.offOpacity}}}function textPartSpec(t,p){return{size:p.size,weight:p.weight,lineHeight:p.lineHeight,color:colorOf(t,p.color),...p.face==="mono"?{mono:true}:{},...p.face==="serif"?{serif:true}:{},...p.tracking?{tracking:p.tracking}:{},...p.upper?{upper:true}:{},...p.deco==="none"?{}:{deco:p.deco==="strike"?"strike":"underline",decoOffset:p.decoOffset,decoThickness:p.decoThickness},...p.tabular?{tabular:true}:{},...p.wrap==="auto"?{}:{wrap:p.wrap==="balance"?"balance":"pretty"}}}function partFill(t,value){return value==="none"?void 0:colorOf(t,value)}function summarySpec(t){let m=t.metrics.summary,lh=(size,ratio)=>px(size*ratio);return{paddingX:m.paddingX,paddingY:m.paddingY,radius:m.radius,borderWidth:m.borderWidth,borderColor:t.colors.line,background:colorOf(t,m.background),shadow:m.shadow,row:{paddingY:m.rowPaddingY,minHeight:m.rowMinHeight,gapX:m.rowGapX,gapY:m.rowGapY,divider:m.rowDivider,center:m.rowCenter},totalRowMinHeight:m.totalRowMinHeight,gap:m.gap??0,totalMarginTop:m.totalMarginTop??0,tabular:m.tabular,term:{size:m.termSize,weight:t.type.weight.regular,lineHeight:lh(m.termSize,m.termLineHeight),color:colorOf(t,m.termColor)},value:{size:m.valueSize,weight:m.valueWeight,lineHeight:lh(m.valueSize,m.valueLineHeight),color:colorOf(t,m.valueColor)},totalTerm:{size:m.totalTermSize,weight:m.totalTermWeight,lineHeight:lh(m.totalTermSize,m.termLineHeight),color:colorOf(t,m.totalTermColor)},total:{size:m.totalSize,weight:m.totalWeight,lineHeight:lh(m.totalSize,m.totalLineHeight),color:colorOf(t,m.valueColor)},off:textPartSpec(t,t.metrics.summary.off)}}function skeletonWidth(t,index){let widths=t.metrics.skeleton.widths;return`${widths[index%widths.length]}%`}function clampStep(value,min,max){return Math.max(min,max===void 0?value:Math.min(max,value))}function itemTestID(parent,key,own){return own!==void 0?own:parent===void 0?void 0:`${parent}-${key}`}function initialsOf(name){return name.trim().split(/\s+/).filter(Boolean).slice(0,2).map(w=>firstGrapheme(w).toLocaleUpperCase()).join("")}function firstGrapheme(word){let Seg=Intl.Segmenter;if(Seg)for(let s of new Seg(void 0,{granularity:"grapheme"}).segment(word))return s.segment;return Array.from(word)[0]??""}function avatarSpec(t,size,tint="default"){let m=t.metrics.lists.avatar,side=typeof size=="number"?size:m.sizes[size],initials=textPartSpec(t,side<=m.sizes.xs?m.initialsXs:m.initials),ring2=size==="xl"?m.ringXl:m.ring;return{side:side,initials:initials,tint:colorOf(t,m.tints[tint]),photoBg:colorOf(t,m.bg),edge:{width:m.edge.width,color:colorOf(t,m.edge.color)},ring:{width:ring2.width,offset:ring2.offset,color:colorOf(t,ring2.color)},dot:{size:m.dot.size,edge:m.dot.edge,edgeColor:colorOf(t,m.dot.edgeColor),color:t.colors.go}}}function listRowSpec(t,variant,destructive=false){let m=t.metrics.lists,tiles=variant==="tiles",title=textPartSpec(t,tiles?m.tiles.title:m.rows.title),subtitle=textPartSpec(t,tiles?m.tiles.subtitle:m.rows.subtitle),a=m.tiles.alert;return{row:tiles?m.tiles.row:m.rows.row,title:destructive?{...title,color:colorOf(t,a.title)}:title,subtitle:destructive?{...subtitle,color:colorOf(t,a.subtitle)}:subtitle,value:textPartSpec(t,m.end.text),icon:{size:m.tiles.icon.w,column:m.tiles.leading,color:colorOf(t,destructive?a.icon:m.tiles.icon.color)},chevron:{size:m.end.chevron.w,color:colorOf(t,m.end.chevron.color)},fill:destructive&&tiles?colorOf(t,a.bg):partFill(t,tiles?m.tiles.row.bg:"none"),pressedFill:colorOf(t,m.tiles.pressed),gap:m.tiles.row.gap[0]??0,endGap:m.end.gap,disabledOpacity:DISABLED_OPACITY}}var nums=group=>group,isBox=v=>"edge"in v&&"shadow"in v&&"fit"in v,isText=v=>"deco"in v&&"face"in v&&"tabular"in v;function byValue(group){let out=/* @__PURE__ */new Map;for(let[k2,v]of Object.entries(group))out.has(v)||out.set(v,k2);return out}var groups,derived=/* @__PURE__ */new WeakMap;function tokenOf(map,theme,v){let k2=map.get(v),t=k2===void 0?void 0:theme[k2];return typeof t=="number"?t:v}function blocksMetrics(theme){let base=everfurBlocksMetrics,p=everfurTheme;if(theme.space===p.space&&theme.radius===p.radius&&theme.type.size===p.type.size&&theme.type.weight===p.type.weight)return base;let hit=derived.get(theme);if(hit)return hit;groups??(groups={space:byValue(nums(p.space)),radius:byValue(nums(p.radius)),size:byValue(nums(p.type.size)),weight:byValue(nums(p.type.weight))});let g=groups,space=v=>tokenOf(g.space,nums(theme.space),v),radius=v=>tokenOf(g.radius,nums(theme.radius),v),walk=v=>Array.isArray(v)?v.map(walk):v===null||typeof v!="object"?v:isBox(v)?{...v,padding:v.padding.map(space),gap:v.gap.map(space),marginTop:space(v.marginTop),marginBottom:space(v.marginBottom),radius:v.radius.map(radius)}:isText(v)?{...v,size:tokenOf(g.size,nums(theme.type.size),v.size),weight:tokenOf(g.weight,nums(theme.type.weight),v.weight),marginTop:space(v.marginTop),paddingTop:space(v.paddingTop)}:Object.fromEntries(Object.entries(v).map(([k2,x])=>[k2,walk(x)])),out=walk(base);return derived.set(theme,out),out}var TEXT_VARIANT_TIERS={display:"heading",headline:"heading",title:"heading",heading:"heading",body:"content",lead:"content",label:"control",meta:"compact",caption:"content",overline:"compact",kicker:"compact"};function textToneColor(t,tone){let c=t.colors;switch(tone){case"ink":return c.ink;case"text":return c.text;case"muted":return c.muted;case"danger":return c.alertDeep;case"inverse":return c.onInk;default:return}}function textVariantSpec(t,variant,tone,weight){let base=textPartSpec(t,t.metrics.text[variant]),color=textToneColor(t,tone);return{...base,...color?{color:color}:{},...weight?{weight:t.type.weight[weight]}:{}}}var PressFeedbackContext=/* @__PURE__ */(()=>{let key=/* @__PURE__ */Symbol.for("@everfur-health/ui-core#PressFeedbackContext@v1"),host=globalThis,context=host[key]??(host[key]=react.createContext(null));return context.displayName??(context.displayName="EverfurPressFeedbackContext"),context})();function usePressFeedback(){return react.useContext(PressFeedbackContext)}function pressHandlers(feedback,event,onPress,options={}){if(!feedback||options.disabled)return{onPress:onPress,onPressIn:void 0};let{onPressIn:reportIn,onPress:report,haptic:haptic}=feedback,tick=options.haptics!==false&&event.haptic&&haptic?haptic:void 0;return{onPress:onPress&&(report||tick)?()=>{tick?.(event),report?.(event),onPress()}:onPress,onPressIn:reportIn?()=>reportIn(event):void 0}}function pressScaleFor(feedback,component,designScale=1){return feedback?.pressScale?.[component]??designScale}var TEXT_VARIANT_BREAKS={display:"balance",headline:"balance",title:"balance",heading:"balance",body:"pretty",lead:"pretty",meta:"pretty",caption:"pretty",label:"auto",overline:"auto",kicker:"auto"};function textVariantTier(t,variant){return t.type.variantTiers?.[variant]??TEXT_VARIANT_TIERS[variant]}var ReducedMotionContext=/* @__PURE__ */(()=>{let key=/* @__PURE__ */Symbol.for("@everfur-health/ui-native#ReducedMotionContext@v1"),host=globalThis,context=host[key]??(host[key]=react.createContext(null));return context.displayName??(context.displayName="EverfurReducedMotionContext"),context})();function useKnownReducedMotion(){return react.useContext(ReducedMotionContext)}function rnText(t,spec){let face3=faceOf(spec.weight,spec.mono===true);return{fontFamily:spec.serif?t.type.faces.serif??t.type.faces.bold:t.type.faces[face3],...t.type.namedFaces?{}:{fontWeight:String(spec.weight)},fontSize:spec.size,lineHeight:spec.lineHeight,color:spec.color,...spec.tracking?{letterSpacing:spec.tracking}:{},...spec.upper?{textTransform:"uppercase"}:{},...spec.deco?rnDeco(spec):{},...spec.tabular?{fontVariant:["tabular-nums"]}:{},...spec.wrap&&reactNative.Platform.OS==="web"?{textWrap:spec.wrap}:{}}}function rnDeco(spec){let base={textDecorationLine:spec.deco==="strike"?"line-through":"underline"};return reactNative.Platform.OS!=="web"?base:{...base,...spec.decoOffset?{textUnderlineOffset:spec.decoOffset}:{},...spec.decoThickness?{textDecorationThickness:spec.decoThickness}:{}}}function rnBox(t,b){let[pt=0,pr=0,pb=0,pl=0]=b.padding,[rt=0,rb=0]=b.radius,fill=partFill(t,b.bg);return{paddingTop:pt,paddingRight:pr,paddingBottom:pb,paddingLeft:pl,...b.marginTop?{marginTop:b.marginTop}:{},...b.gap[0]?{columnGap:b.gap[0]}:{},...b.gap[1]?{rowGap:b.gap[1]}:{},...rt===rb?rt?{borderRadius:rt}:{}:{borderTopLeftRadius:rt,borderTopRightRadius:rt,borderBottomLeftRadius:rb,borderBottomRightRadius:rb},...fill?{backgroundColor:fill}:{},...b.edge.width>0&&!b.edge.ring?{borderWidth:b.edge.width,borderColor:colorOf(t,b.edge.color)}:{},...b.minHeight?{minHeight:b.minHeight}:{},...rnShadow(b.shadow)}}function rnRing(t,b){return b.edge.width>0&&b.edge.ring?ringOverlay(b.edge.width,colorOf(t,b.edge.color),b.radius[0]??0):null}function webReducedMotion(){if(reactNative.Platform.OS!=="web")return false;let g=globalThis;return typeof g.matchMedia=="function"&&g.matchMedia("(prefers-reduced-motion: reduce)").matches}function useOsReducedMotion(known){let[reduced,setReduced]=react.useState(()=>known===null&&webReducedMotion());return react.useEffect(()=>{if(known!==null)return;let mounted=true,query=reactNative.AccessibilityInfo?.isReduceMotionEnabled;if(typeof query=="function"){let result=query.call(reactNative.AccessibilityInfo);result!=null&&typeof result.then=="function"&&result.then(value=>{mounted&&setReduced(value===true)},()=>{})}let subscription=reactNative.AccessibilityInfo?.addEventListener?.("reduceMotionChanged",value=>setReduced(value===true));return()=>{mounted=false,subscription?.remove?.()}},[known]),known??reduced}function useRnReduced(t){let os=useOsReducedMotion(useKnownReducedMotion());return t.motion.reduced||os}function slopFor(size){let pad2=Math.max(0,Math.ceil((44-size)/2));return pad2===0?void 0:{top:pad2,bottom:pad2,left:pad2,right:pad2}}function rnShadow(s){return s.blur===0&&s.y===0&&s.x===0?null:{shadowColor:s.color,shadowOffset:{width:s.x,height:s.y},shadowOpacity:1,shadowRadius:s.blur,elevation:1}}function ringOverlay(width,color,radius){let fill={position:"absolute",top:0,right:0,bottom:0,left:0,borderRadius:radius};return reactNative.Platform.OS==="web"?{...fill,boxShadow:`inset 0 0 0 ${width}px ${color}`}:{...fill,borderWidth:width,borderColor:color}}function breakProps(mode){return mode==="auto"?null:reactNative.Platform.OS==="ios"?{lineBreakStrategyIOS:"push-out"}:reactNative.Platform.OS==="android"&&mode==="balance"?{textBreakStrategy:"balanced"}:null}function weightStyle(t,weight){let w=t.type.weight[weight];return t.type.namedFaces?{fontFamily:t.type.faces[faceOf(w)]}:{fontWeight:String(w)}}function Text2({tier:tier,variant:variant,tone:tone,weight:weight,level:level,lineBreak:lineBreak,...props}){let t=useTheme(),cap=t.type.scaleCaps[tier??(variant?textVariantTier(t,variant):"content")],breaks=breakProps(lineBreak??(variant?TEXT_VARIANT_BREAKS[variant]:"auto"));if(variant===void 0&&tone===void 0&&weight===void 0&&level===void 0)return breaks?react.createElement(reactNative.Text,{...cap>0?{maxFontSizeMultiplier:cap}:{},...breaks,...props}):react.createElement(reactNative.Text,cap>0?{maxFontSizeMultiplier:cap,...props}:props);let color=textToneColor(t,tone),own=variant?rnText(t,textVariantSpec(t,variant,tone,weight)):{...color?{color:color}:{},...weight?weightStyle(t,weight):{}},heading=level===void 0?{}:{accessibilityRole:"header",...reactNative.Platform.OS==="web"?{"aria-level":level}:{}};return react.createElement(reactNative.Text,{...cap>0?{maxFontSizeMultiplier:cap}:{},...breaks,...heading,...props,style:[own,props.style]})}var BOX=24,FINE=16,SEAM=.8,fine=dp=>Math.round(dp*FINE);function place(cx,cy,W,H,ux,uy){let left=cx-W/2,top=cy-H/2,x=Math.round(left),y=Math.round(top);return{position:"absolute",left:x,top:y,width:W,height:H,transform:[{translateX:left-x},{translateY:top-y},{rotate:`${Math.atan2(uy,ux)*180/Math.PI}deg`},{scale:1/FINE}]}}function strokePieces(icon,k2,out){for(let s of icon.strokes){let w=s.width*k2,pts=s.points,n=pts.length/2,last=s.closed?n:n-1;for(let i=0;i<last;i+=1){let j=(i+1)%n,px2=(pts[i*2]??0)*k2,py=(pts[i*2+1]??0)*k2,dx=(pts[j*2]??0)*k2-px2,dy=(pts[j*2+1]??0)*k2-py,len=Math.hypot(dx,dy);if(len===0&&!(n===2&&s.cap))continue;let ux=len===0?1:dx/len,uy=len===0?0:dy/len,e0=s.closed||i>0||s.cap?w/2:0,e1=s.closed||j!==n-1||s.cap?w/2:0,along=(len+e1-e0)/2;out.push({paint:"backgroundColor",style:{...place(px2+ux*along,py+uy*along,fine(len+e0+e1),fine(w),ux,uy),borderTopLeftRadius:e0>0?fine(w)/2:0,borderBottomLeftRadius:e0>0?fine(w)/2:0,borderTopRightRadius:e1>0?fine(w)/2:0,borderBottomRightRadius:e1>0?fine(w)/2:0,...s.opacity===void 0?{}:{opacity:s.opacity}}})}}}function boxPieces(icon,k2,out){for(let b of icon.boxes){let w=(b.w+b.width)*k2,h=(b.h+b.width)*k2;out.push({paint:"borderColor",style:{...place((b.x-b.width/2)*k2+w/2,(b.y-b.width/2)*k2+h/2,fine(w),fine(h),1,0),borderWidth:fine(b.width*k2),borderRadius:(b.radius+b.width/2)*k2*FINE,...b.opacity===void 0?{}:{opacity:b.opacity}}})}}function trianglePieces(icon,k2,out){for(let t of icon.triangles){let p=[0,1,2].map(i=>[(t[i*2]??0)*k2,(t[i*2+1]??0)*k2]),base=0,len=-1;for(let i=0;i<3;i+=1){let a2=p[i]??[0,0],b=p[(i+1)%3]??[0,0],d=Math.hypot(b[0]-a2[0],b[1]-a2[1]);d>len&&(len=d,base=i)}if(len<=0)continue;let b0=p[base]??[0,0],b1=p[(base+1)%3]??[0,0],a=p[(base+2)%3]??[0,0],ux=(b1[0]-b0[0])/len,uy=(b1[1]-b0[1])/len,along=(a[0]-b0[0])*ux+(a[1]-b0[1])*uy,across=(a[0]-b0[0])*-uy+(a[1]-b0[1])*ux,h=Math.abs(across),up=across<0,mid=up?-h/2:h/2,bl=fine(along),br=fine(len)-bl,bh=fine(h);out.push({paint:up?"borderBottomColor":"borderTopColor",style:{...place(b0[0]+ux*(len/2)-uy*mid,b0[1]+uy*(len/2)+ux*mid,bl+br,bh,ux,uy),width:0,height:0,borderLeftWidth:bl,borderRightWidth:br,borderLeftColor:"transparent",borderRightColor:"transparent",...up?{borderBottomWidth:bh}:{borderTopWidth:bh}}})}for(let e of icon.seams){let x0=(e[0]??0)*k2,y0=(e[1]??0)*k2,dx=(e[2]??0)*k2-x0,dy=(e[3]??0)*k2-y0,d=Math.hypot(dx,dy),in0=SEAM*(e[4]??0),in1=SEAM*(e[5]??0),bar=d-in0-in1;if(d===0||bar<=0)continue;let mid=in0+bar/2;out.push({paint:"backgroundColor",style:place(x0+dx/d*mid,y0+dy/d*mid,fine(bar),fine(SEAM),dx/d,dy/d)})}}var cache=/* @__PURE__ */new WeakMap;function piecesOf(icon,size){let sizes=cache.get(icon);sizes===void 0&&(sizes=/* @__PURE__ */new Map,cache.set(icon,sizes));let hit=sizes.get(size);if(hit!==void 0)return hit;let out=[],k2=size/BOX;return boxPieces(icon,k2,out),strokePieces(icon,k2,out),trianglePieces(icon,k2,out),sizes.set(size,out),out}function Glyph({icon:icon,size:size,color:color,label:label,testID:testID,style:style}){let t=useTheme(),side=size??t.metrics.icon.size,ink=color??t.colors.ink;/* @__PURE__ */
5
+ return jsxRuntime.jsx(reactNative.View,{testID:testID,pointerEvents:"none",style:[{width:side,height:side},style],...label?{accessible:true,accessibilityRole:"image",accessibilityLabel:label}:{accessible:false,accessibilityElementsHidden:true,importantForAccessibility:"no-hide-descendants"},children:piecesOf(icon,side).map((piece,i)=>/* @__PURE__ */jsxRuntime.jsx(reactNative.View,{style:[piece.style,{[piece.paint]:ink}]},i))})}var REGISTRY=/* @__PURE__ */(()=>{let key=/* @__PURE__ */Symbol.for("@everfur-health/ui-native#icons@v1"),host=globalThis;return host[key]??(host[key]={icons:{},warned:/* @__PURE__ */new Set})})();function iconNamed(name){let icon=REGISTRY.icons[name];return icon===void 0&&(typeof __DEV__<"u"?__DEV__:typeof process<"u"&&process.env.NODE_ENV!=="production")&&!REGISTRY.warned.has(name)&&(REGISTRY.warned.add(name),console.warn(`@everfur-health/ui-native: no icon "${name}" is registered. The lean entry draws only the icons an app registers: registerIcons({ ... }) with the UI_RN_ICON_* exports, or pass a drawing.`)),icon}function Icon2({name:name,...rest}){let icon=iconNamed(name);return icon?/* @__PURE__ */jsxRuntime.jsx(Glyph,{icon:icon,...rest}):null}function usePressLayer(component,info,onPress,designScale=1){return pressLayerOf(usePressFeedback(),component,info,onPress,designScale)}function pressLayerOf(feedback,component,info,onPress,designScale=1){let h=pressHandlers(feedback,{component:component,testID:info.testID,...info.item===void 0?{}:{item:info.item},label:info.label,trackId:info.trackId,haptic:info.haptic===true},onPress,{disabled:info.disabled});return{props:h.onPressIn?{onPress:h.onPress,onPressIn:h.onPressIn}:{onPress:h.onPress},scale:pressScaleFor(feedback,component,designScale)}}var cubic=e=>`cubic-bezier(${e.join(", ")})`,styleAt=(style,pressed)=>typeof style=="function"?style({pressed:pressed}):style,animatedPressable;function animatedPressableOf(){return animatedPressable??(animatedPressable=reactNative.Animated.createAnimatedComponent(reactNative.Pressable))}function pressTiming(t,value,toValue){let[a,b,c,d]=t.motion.easing.out;return reactNative.Animated.timing(value,{toValue:toValue,duration:t.motion.duration.press,easing:reactNative.Easing.bezier(a,b,c,d),useNativeDriver:true})}function PressBox({style:style,scale:scale,still:still,pop:pop,onPressIn:onPressIn,onPressOut:onPressOut,...props}){let t=useTheme(),value=react.useRef(null),[held,setHeld]=react.useState(false),scales=!still&&scale!==1,popping=!still&&pop?.scale!=null;if(reactNative.Platform.OS==="web"){let motion=scales?{transitionProperty:"transform",transitionDuration:`${t.motion.duration.press}ms`,transitionTimingFunction:cubic(t.motion.easing.out)}:null;return react.createElement(reactNative.Pressable,{...props,...pop?{ref:pop.ref}:null,onPressIn:onPressIn,onPressOut:onPressOut,style:({pressed:pressed})=>[styleAt(style,pressed),motion,scales&&pressed?{transform:[{scale:scale}]}:null]})}if(!scales&&!popping)return react.createElement(reactNative.Pressable,{...props,onPressIn:onPressIn,onPressOut:onPressOut,style:style});let v=value.current??(value.current=new reactNative.Animated.Value(0)),pressScale=scales?v.interpolate({inputRange:[0,1],outputRange:[1,scale]}):null,both=pressScale&&popping?reactNative.Animated.multiply(pressScale,pop?.scale):pressScale??pop?.scale;return react.createElement(animatedPressableOf(),{...props,onPressIn:e=>{props.disabled||(setHeld(true),scales&&pressTiming(t,v,1).start(),onPressIn?.(e))},onPressOut:e=>{setHeld(false),scales&&pressTiming(t,v,0).start(),onPressOut?.(e)},style:[styleAt(style,held),{transform:[{scale:both}]}]})}reactNative.StyleSheet.create({base:{flexDirection:"row",alignItems:"center",justifyContent:"center"},block:{alignSelf:"stretch"},auto:{alignSelf:"flex-start"},labelBox:{flexShrink:1},label:{textAlign:"center"}});function Card({title:title,action:action,lead:lead,children:children,tone:tone="default",headGap:headGap,onPress:onPress,accessibilityLabel:accessibilityLabel,trackId:trackId,haptic:haptic,testID:testID,style:style}){let t=useTheme(),reduced=useRnReduced(t),m=t.metrics.card,tx=textSpecs(t),spoken=accessibilityLabel??title,press=usePressLayer("Card",{testID:testID,label:spoken,trackId:trackId,haptic:haptic},onPress,t.metrics.press.card),titleNode=title?/* @__PURE__ */jsxRuntime.jsx(Text2,{accessibilityRole:"header",tier:"heading",lineBreak:"balance",style:[rnText(t,tx.cardTitle),styles2.shrink],children:title}):null,ghost=tone==="ghost",frame={padding:m.padding,borderWidth:m.borderWidth,borderColor:ghost?colorOf(t,m.ghost.borderColor):t.colors.line,...ghost?{borderStyle:m.ghost.borderStyle}:null,borderRadius:m.radius,backgroundColor:t.colors.surface},body=/* @__PURE__ */jsxRuntime.jsxs(jsxRuntime.Fragment,{children:[action?/* @__PURE__ */jsxRuntime.jsxs(reactNative.View,{style:[styles2.head,titleNode?null:styles2.end,{columnGap:m.headGapX,rowGap:m.headGapY,marginBottom:headGap??m.headGap}],children:[titleNode,action]}):titleNode?/* @__PURE__ */jsxRuntime.jsx(reactNative.View,{style:{marginBottom:lead||children?headGap??m.titleGap:0},children:titleNode}):null,lead?/* @__PURE__ */jsxRuntime.jsx(Text2,{style:[rnText(t,tx.cardLead),{marginBottom:children?m.leadGap:0}],children:lead}):null,children]});return onPress?/* @__PURE__ */jsxRuntime.jsx(PressBox,{testID:testID,...press.props,scale:press.scale,still:reduced,accessibilityRole:"button",accessibilityLabel:spoken,style:[frame,style],children:body}):/* @__PURE__ */jsxRuntime.jsx(reactNative.View,{testID:testID,style:[frame,style],children:body})}var styles2=reactNative.StyleSheet.create({head:{flexDirection:"row",flexWrap:"wrap",alignItems:"center",justifyContent:"space-between"},shrink:{flexShrink:1},end:{justifyContent:"flex-end"}});reactNative.StyleSheet.create({chip:{flexDirection:"row",alignItems:"center",alignSelf:"flex-start"}});reactNative.StyleSheet.create({st:{alignItems:"center",alignSelf:"stretch"},center:{textAlign:"center"},acts:{alignItems:"center",alignSelf:"stretch"},link:{alignItems:"center",justifyContent:"center"},underline:{textDecorationLine:"underline"}});reactNative.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:label,tone:tone="plain",testID:testID,style:style,maxFontSizeMultiplier:maxFontSizeMultiplier,grouped:grouped=true}){let t=useTheme(),s=pillSpec(t,tone);/* @__PURE__ */
6
+ return jsxRuntime.jsxs(reactNative.View,{testID:testID,...grouped?{accessible:true,accessibilityLabel:label}:null,style:[styles6.pill,{minHeight:s.minHeight,paddingHorizontal:s.paddingX,borderRadius:s.radius,backgroundColor:s.background,...s.dot?{columnGap:s.dot.gap}:{}},style],children:[s.ring?/* @__PURE__ */jsxRuntime.jsx(reactNative.View,{pointerEvents:"none",style:ringOverlay(s.ring.width,s.ring.color,s.radius)}):null,s.dot?/* @__PURE__ */jsxRuntime.jsx(reactNative.View,{style:{width:s.dot.size,height:s.dot.size,borderRadius:s.dot.size/2,backgroundColor:s.dot.color}}):null,
7
+ /* @__PURE__ */jsxRuntime.jsx(Text2,{tier:"control",numberOfLines:1,...maxFontSizeMultiplier===void 0?{}:{maxFontSizeMultiplier:maxFontSizeMultiplier},style:[rnText(t,s.text),styles6.label],children:label})]})}var styles6=reactNative.StyleSheet.create({pill:{flexDirection:"row",alignItems:"center",alignSelf:"flex-start",maxWidth:"100%"},label:{flexShrink:1}});var UI_RN_ICON_BOX={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:[]};var UI_RN_ICON_CHEVRON={strokes:[{width:2,cap:true,closed:false,points:[9,18.001,15,12.001,9,6.001]}],boxes:[],triangles:[],seams:[]};var UI_RN_ICON_MINUS={strokes:[{width:2,cap:true,closed:false,points:[5,12,19,12]}],boxes:[],triangles:[],seams:[]};var UI_RN_ICON_PLUS={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:[]};function QuantityStepper(props){return useStepper(props,void 0)}function InkedQuantityStepper({ink:ink,...props}){return useStepper(props,ink)}function useStepper({value:value,min:min=1,max:max,label:label,fewerLabel:fewerLabel,moreLabel:moreLabel,disabled:disabled=false,variant:variant="standard",onChange:onChange,trackId:trackId,haptic:haptic,testID:testID,style:style},ink){let t=useTheme(),reduced=useRnReduced(t),s=quantityStepperSpec(t),st=t.metrics.variants.stepper,compact=variant==="compact",lessOff=disabled||value<=min,moreOff=disabled||max!==void 0&&value>=max,designScale=compact?st.press:t.metrics.press.iconButton,fewer=usePressLayer("QuantityStepper",{testID:testID?`${testID}-fewer`:void 0,item:"fewer",label:fewerLabel,trackId:trackId,haptic:haptic,disabled:lessOff},()=>onChange(clampStep(value-1,min,max)),designScale),more=usePressLayer("QuantityStepper",{testID:testID?`${testID}-more`:void 0,item:"more",label:moreLabel,trackId:trackId,haptic:haptic,disabled:moreOff},()=>onChange(clampStep(value+1,min,max)),designScale),last=react.useRef(value);react.useEffect(()=>{last.current!==value&&(last.current=value,reactNative.Platform.OS==="ios"&&reactNative.AccessibilityInfo.announceForAccessibility(`${label}, ${value}`))},[label,value]);let compactButton=(off,name,a11y,press,id)=>/* @__PURE__ */jsxRuntime.jsx(PressBox,{...press.props,scale:press.scale,still:reduced,disabled:off,hitSlop:slopFor(st.button.h),accessibilityRole:"button",accessibilityLabel:a11y,accessibilityState:{disabled:off},testID:testID?`${testID}-${id}`:void 0,style:[styles7.button,{width:st.button.w,height:st.button.h,borderRadius:st.button.radius[0]??0},off?{opacity:st.disabledOpacity}:null],children:/* @__PURE__ */jsxRuntime.jsx(Glyph,{icon:name==="plus"?UI_RN_ICON_PLUS:UI_RN_ICON_MINUS,size:st.icon,color:ink??colorOf(t,st.button.color)})}),button=(off,name,a11y,press,id)=>compact?compactButton(off,name,a11y,press,id):/* @__PURE__ */jsxRuntime.jsx(PressBox,{...press.props,scale:press.scale,still:reduced,disabled:off,hitSlop:slopFor(s.button),accessibilityRole:"button",accessibilityLabel:a11y,accessibilityState:{disabled:off},testID:testID?`${testID}-${id}`:void 0,style:[styles7.button,{width:s.button,height:s.button,borderRadius:s.button/2},off&&s.off.opacity!==1?{opacity:s.off.opacity}:null],children:/* @__PURE__ */jsxRuntime.jsx(Glyph,{icon:name==="plus"?UI_RN_ICON_PLUS:UI_RN_ICON_MINUS,size:s.icon,color:off?s.off.color:t.colors.ink})}),ring2=compact?rnRing(t,st.track):null;/* @__PURE__ */
8
+ return jsxRuntime.jsxs(reactNative.View,{testID:testID,style:[styles7.qty,compact?[rnBox(t,st.track),{height:st.track.h}]:{borderWidth:s.edge.inset?0:s.edge.width,borderColor:s.edge.color,borderRadius:t.radius.pill},style],children:[compact?ring2?/* @__PURE__ */jsxRuntime.jsx(reactNative.View,{pointerEvents:"none",style:ring2}):null:s.edge.inset?/* @__PURE__ */jsxRuntime.jsx(reactNative.View,{pointerEvents:"none",style:ringOverlay(s.edge.width,s.edge.color,t.radius.pill)}):null,button(lessOff,"minus",fewerLabel,fewer,"fewer"),
9
+ /* @__PURE__ */jsxRuntime.jsx(Text2,{tier:"control",accessible:true,accessibilityRole:"adjustable",accessibilityLabel:label,accessibilityValue:{now:value,min:min,...max!==void 0?{max:max}:{},text:String(value)},"aria-valuenow":value,"aria-valuemin":min,"aria-valuemax":max,accessibilityState:{disabled:disabled},"aria-disabled":disabled||void 0,accessibilityActions:[{name:"increment"},{name:"decrement"}],onAccessibilityAction:e=>{e.nativeEvent.actionName==="increment"&&!moreOff&&onChange(clampStep(value+1,min,max)),e.nativeEvent.actionName==="decrement"&&!lessOff&&onChange(clampStep(value-1,min,max))},accessibilityLiveRegion:"polite",style:compact?[rnText(t,textPartSpec(t,st.value)),{width:st.valueWidth,textAlign:"center"},ink?{color:ink}:null]:[rnText(t,textSpecs(t).stepperValue),{minWidth:s.valueMinWidth,textAlign:"center",fontVariant:["tabular-nums"]}],children:String(value)}),button(moreOff,"plus",moreLabel,more,"more")]})}var styles7=reactNative.StyleSheet.create({qty:{flexDirection:"row",alignItems:"center",alignSelf:"flex-start"},button:{alignItems:"center",justifyContent:"center"}});function SectionHeader({title:title,kicker:kicker,action:action,testID:testID,style:style}){let t=useTheme(),m=t.metrics.sectionHeader,tx=textSpecs(t);/* @__PURE__ */
10
+ return jsxRuntime.jsxs(reactNative.View,{testID:testID,style:[styles8.row,{columnGap:m.gapX,rowGap:m.gapY,marginTop:m.marginTop},style],children:[
11
+ /* @__PURE__ */jsxRuntime.jsxs(reactNative.View,{style:styles8.titles,children:[kicker?/* @__PURE__ */jsxRuntime.jsx(Text2,{tier:"compact",style:rnText(t,tx.kicker),children:kicker}):null,
12
+ /* @__PURE__ */jsxRuntime.jsx(Text2,{accessibilityRole:"header",style:rnText(t,tx.cardTitle),children:title})]}),action]})}var styles8=reactNative.StyleSheet.create({row:{flexDirection:"row",flexWrap:"wrap",alignItems:"center",justifyContent:"space-between"},titles:{flexShrink:1}});reactNative.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"}});var ABSOLUTE_FILL=/* @__PURE__ */Object.freeze({position:"absolute",top:0,right:0,bottom:0,left:0});reactNative.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:lines=3,label:label,testID:testID,style:style}){let t=useTheme(),m=t.metrics.skeleton;/* @__PURE__ */
13
+ return jsxRuntime.jsx(reactNative.View,{testID:testID,style:[{rowGap:m.gap,alignSelf:"stretch"},style],...label?{accessible:true,accessibilityRole:"progressbar",accessibilityLabel:label,accessibilityState:{busy:true}}:{accessibilityElementsHidden:true,importantForAccessibility:"no-hide-descendants"},children:Array.from({length:Math.max(1,lines)},(_,i)=>/* @__PURE__ */jsxRuntime.jsx(reactNative.View,{style:{height:m.lineHeight,width:skeletonWidth(t,i),borderRadius:t.radius.pill,backgroundColor:t.colors.tintSage}},i))})}function SummaryList({rows:given,total:total=false,trailingRows:trailingRows=[],loading:loading=false,loadingLabel:loadingLabel,variant:variant="standard",note:note,grouped:grouped=true,lineBreak:lineBreak,testID:testID,style:style}){let t=useTheme(),s=summarySpec(t);if(loading)/* @__PURE__ */
14
+ return jsxRuntime.jsx(reactNative.View,{testID:testID,style:[{padding:s.paddingX,borderRadius:s.radius,backgroundColor:t.colors.surface},style],children:/* @__PURE__ */jsxRuntime.jsx(Skeleton,{lines:4,label:loadingLabel})});let rows=typeof total=="object"?[...given,{...total,key:total.key??"total"}]:given,large=total!==false;if(rows.length===0)return null;let read=row=>grouped?{accessible:true,accessibilityLabel:`${row.term}, ${row.value}`}:null,breaks=lineBreak===void 0?null:{lineBreak:lineBreak},noteRow=note?{...note,key:note.key??"note"}:void 0,all=[...rows,...trailingRows,...noteRow?[noteRow]:[]];if(variant!=="standard"&&variant!=="flush"){let su=t.metrics.variants.summary;/* @__PURE__ */
15
+ return jsxRuntime.jsx(reactNative.View,{testID:testID,style:[rnBox(t,variant==="inset"?su.inset:su.box),style],children:all.map((row,i)=>{let kind=row===noteRow?"note":large&&i===rows.length-1?"total":"row",box2=kind==="note"?su.renewRow:kind==="total"?su.totalRow:su.row,term=kind==="note"?su.renewTerm:kind==="total"?su.totalTerm:su.term,value=kind==="note"?su.renew:kind==="total"?su.total:su.value;/* @__PURE__ */
16
+ return jsxRuntime.jsxs(reactNative.View,{testID:itemTestID(testID,row.key??i,row.testID),...read(row),style:[styles11.cardRow,{columnGap:box2.gap[0]??0,minHeight:box2.minHeight||void 0,marginTop:box2.marginTop||void 0}],children:[
17
+ /* @__PURE__ */jsxRuntime.jsx(Text2,{...breaks,style:rnText(t,textPartSpec(t,term)),children:row.term}),
18
+ /* @__PURE__ */jsxRuntime.jsx(Text2,{...breaks,style:rnText(t,textPartSpec(t,value)),children:row.value})]},row.key??`${i}`)})})}let flush=variant==="flush";/* @__PURE__ */
19
+ return jsxRuntime.jsx(reactNative.View,{testID:testID,style:[{paddingHorizontal:flush?0:s.paddingX,paddingVertical:flush?0:s.paddingY,borderWidth:flush?0:s.borderWidth,borderColor:s.borderColor,borderRadius:s.radius,backgroundColor:s.background},rnShadow(s.shadow),style],children:all.map((row,i)=>{let last=i===all.length-1,isTotal=large&&i===rows.length-1,minHeight=isTotal?s.totalRowMinHeight:s.row.minHeight;/* @__PURE__ */
20
+ return jsxRuntime.jsxs(reactNative.View,{testID:itemTestID(testID,row.key??i,row.testID),...read(row),style:[styles11.row,{alignItems:s.row.center?"center":"baseline",paddingVertical:s.row.paddingY,columnGap:s.row.gapX,rowGap:s.row.gapY},minHeight?{minHeight:minHeight}:null,last||s.row.divider===0?null:{borderBottomWidth:s.row.divider,borderBottomColor:s.borderColor}],children:[
21
+ /* @__PURE__ */jsxRuntime.jsx(Text2,{...breaks,style:rnText(t,isTotal?s.totalTerm:s.term),children:row.term}),
22
+ /* @__PURE__ */jsxRuntime.jsx(Text2,{...breaks,style:[rnText(t,isTotal?s.total:row.tone==="off"?s.off:s.value),styles11.value,s.tabular?styles11.tabular:null],children:row.value})]},row.key??`${i}`)})})}var styles11=reactNative.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:icon,size:size,color:color,style:style}){let t=useTheme();return typeof icon=="function"?icon({size:size,color:color??t.colors.ink}):typeof icon!="string"?/* @__PURE__ */jsxRuntime.jsx(Glyph,{icon:icon,size:size,color:color,style:style}):/* @__PURE__ */jsxRuntime.jsx(Icon2,{name:icon,size:size,color:color,style:style})}function stepTo(q,next){next>q.value&&q.onMore?q.onMore():next<q.value&&q.onFewer?q.onFewer():q.onChange?.(next)}function useShown(key){let[loaded,setLoaded]=react.useState(null);return{shown:key!==null&&loaded===key,onShown:()=>setLoaded(key)}}function FadeImage({onShown:onShown,onLoad:onLoad,style:style,...props}){let t=useTheme(),reduced=useRnReduced(t),fade=react.useRef(new reactNative.Animated.Value(0)).current;/* @__PURE__ */
23
+ return jsxRuntime.jsx(reactNative.Animated.Image,{...props,fadeDuration:0,onLoad:e=>{onLoad?.(e);let ms=t.motion.duration.fade;if(reduced||ms<=0){fade.setValue(1),onShown?.();return}reactNative.Animated.timing(fade,{toValue:1,duration:ms,easing:reactNative.Easing.out(reactNative.Easing.cubic),useNativeDriver:reactNative.Platform.OS!=="web"}).start(()=>onShown?.())},style:[style,{opacity:fade}]})}function Thumbnail(props){/* @__PURE__ */
24
+ return jsxRuntime.jsx(BlockThumbnail,{...props})}function BlockThumbnail({src:src,alt:alt,size:size="xs",icon:icon=UI_RN_ICON_BOX,iconSize:iconSize,tint:tint,iconColor:iconColor,onError:onError,testID:testID,style:style}){let t=useTheme(),p=t.metrics.thumbnail[size],[failed,setFailed]=react.useState(null),[aspect,setAspect]=react.useState(null),photo=src&&failed!==src?src:null,top=p.top;react.useEffect(()=>{if(!top||!photo)return;let live=true;return reactNative.Image.getSize(photo,(w,h)=>{live&&w>0&&h>0&&setAspect(w/h)},()=>{}),()=>{live=false}},[top,photo]);let frame=photo?p.frame:p.empty,[pt=0,pr=0,pb=0,pl=0]=frame.padding,[ipt=0,ipr=0,ipb=0,ipl=0]=p.img.padding,ring2=rnRing(t,frame),tall=p.top&&aspect!==null;/* @__PURE__ */
25
+ return jsxRuntime.jsxs(reactNative.View,{testID:testID,style:[rnBox(t,frame),size==="md"||size==="lg"?{width:"100%",aspectRatio:1}:{width:frame.w,height:frame.h},{alignItems:"center",justifyContent:"center",overflow:"hidden"},!photo&&tint!==void 0?{backgroundColor:tint}:null,style],...photo?{}:alt?{accessible:true,accessibilityRole:"image",accessibilityLabel:alt}:{accessibilityElementsHidden:true,importantForAccessibility:"no-hide-descendants"},children:[photo?/* @__PURE__ */jsxRuntime.jsx(FadeImage,{source:{uri:photo},accessibilityLabel:alt,accessible:!!alt,onError:()=>{setFailed(photo),onError?.(photo)},resizeMode:tall?"stretch":p.img.fit==="contain"?"contain":"cover",style:tall?{position:"absolute",top:pt,left:pl,width:frame.w-pl-pr,height:(frame.w-pl-pr)/aspect}:{position:"absolute",top:pt+ipt,right:pr+ipr,bottom:pb+ipb,left:pl+ipl}},photo):/* @__PURE__ */jsxRuntime.jsx(BlockIcon,{icon:icon,size:iconSize??p.icon.w,color:iconColor??colorOf(t,p.icon.color)}),ring2?/* @__PURE__ */jsxRuntime.jsx(reactNative.View,{pointerEvents:"none",style:ring2}):null]})}reactNative.StyleSheet.create({row:{flexDirection:"row",alignItems:"flex-start"},noGap:{columnGap:0},box:{alignItems:"center",justifyContent:"center"},grow:{flex:1,minWidth:0}});reactNative.StyleSheet.create({row:{flexDirection:"row",alignItems:"center"},words:{flex:1,minWidth:0},center:{alignItems:"center",justifyContent:"center"}});reactNative.StyleSheet.create({hintRow:{flexDirection:"row",alignItems:"flex-start"},grow:{flex:1}});reactNative.StyleSheet.create({base:{alignItems:"center",justifyContent:"center",alignSelf:"flex-start"}});reactNative.StyleSheet.create({base:{alignSelf:"flex-start"}});reactNative.StyleSheet.create({track:{alignSelf:"flex-start"},thumb:{position:"absolute"}});reactNative.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}});function sourceOf(src){return typeof src=="string"?{uri:src}:src}function keyOf(src){return src==null?null:typeof src=="object"?src.uri:String(src)}function Face({name:name,src:src,side:side,tint:tint,initials:initials,initialsSize:initialsSize}){let t=useTheme(),s=avatarSpec(t,side,tint),[failed,setFailed]=react.useState(null),key=keyOf(src),photo=src!=null&&failed!==key?src:null,round={width:side,height:side,borderRadius:side/2};if(photo!==null)/* @__PURE__ */
26
+ return jsxRuntime.jsxs(reactNative.View,{style:[round,styles19.clip,{backgroundColor:s.photoBg}],children:[s.edge.width>0?/* @__PURE__ */jsxRuntime.jsx(reactNative.View,{style:ringOverlay(s.edge.width,s.edge.color,side/2)}):null,
27
+ /* @__PURE__ */jsxRuntime.jsx(reactNative.Image,{source:sourceOf(photo),resizeMode:"cover",onError:()=>setFailed(key),style:ABSOLUTE_FILL})]});let text=initialsSize?{...s.initials,size:initialsSize,lineHeight:Math.round(initialsSize*(s.initials.lineHeight/s.initials.size)*1e3)/1e3}:s.initials;/* @__PURE__ */
28
+ return jsxRuntime.jsx(reactNative.View,{style:[round,styles19.center,{backgroundColor:s.tint}],children:/* @__PURE__ */jsxRuntime.jsx(Text2,{tier:"badge",style:rnText(t,text),numberOfLines:1,children:initials??initialsOf(name)})})}function Avatar({name:name,src:src,size:size="md",tint:tint="default",initials:initials,ring:ring2=false,dot:dot=false,dotLabel:dotLabel,decorative:decorative=false,testID:testID,style:style}){let t=useTheme(),s=avatarSpec(t,size,tint),out=s.ring.offset+s.ring.width,spoken=dot&&dotLabel?`${name}, ${dotLabel}`:name;/* @__PURE__ */
29
+ return jsxRuntime.jsxs(reactNative.View,{testID:testID,style:[{width:s.side,height:s.side},style],...decorative?{accessible:false,accessibilityElementsHidden:true,importantForAccessibility:"no-hide-descendants"}:{accessible:true,accessibilityRole:"image",accessibilityLabel:spoken},children:[
30
+ /* @__PURE__ */jsxRuntime.jsx(Face,{name:name,src:src,side:s.side,tint:tint,initials:initials}),ring2?/* @__PURE__ */jsxRuntime.jsx(reactNative.View,{pointerEvents:"none",style:{position:"absolute",top:-out,left:-out,width:s.side+2*out,height:s.side+2*out,borderRadius:s.side/2+out,borderWidth:s.ring.width,borderColor:s.ring.color}}):null,dot?/* @__PURE__ */jsxRuntime.jsx(reactNative.View,{pointerEvents:"none",testID:testID?`${testID}-dot`:void 0,style:{position:"absolute",right:0,bottom:0,width:s.dot.size,height:s.dot.size,borderRadius:s.dot.size/2,borderWidth:s.dot.edge,borderColor:s.dot.edgeColor,backgroundColor:s.dot.color}}):null]})}var styles19=reactNative.StyleSheet.create({clip:{overflow:"hidden"},center:{alignItems:"center",justifyContent:"center"},stack:{flexDirection:"row",alignItems:"center",alignSelf:"flex-start"}}),RowPlaceContext=/* @__PURE__ */react.createContext(null);function breakable(text){return text.replace(/\//g,"/​")}var LONG_WORD=12;function hasLongWord(text){return text.split(/[\s/]+/).some(w=>w.length>LONG_WORD)}function ListRow({title:title,subtitle:subtitle,titleLines:titleLines,subtitleLines:subtitleLines,value:value,icon:icon,avatar:avatar,thumbnail:thumbnail,leading:leading,trailing:trailing,chevron:chevron,onPress:onPress,destructive:destructive=false,disabled:disabled=false,selected:selected,variant:variant,accessibilityLabel:accessibilityLabel,accessibilityHint:accessibilityHint,accessibilityRole:accessibilityRole="button",trackId:trackId,haptic:haptic,testID:testID,style:style}){let t=useTheme(),reduced=useRnReduced(t),place22=react.useContext(RowPlaceContext),look=variant??place22?.variant??"rows",first=place22?.first??true,last=place22?.last??true,s=listRowSpec(t,look,destructive),m=t.metrics.lists,tiles=look==="tiles",[pt=0,pr=0,pb=0,pl=0]=s.row.padding,showChevron=chevron??!!onPress,stacked=trailing!=null&&hasLongWord(title),lead=leading?/* @__PURE__ */jsxRuntime.jsx(reactNative.View,{style:styles20.leadAuto,children:leading}):avatar?/* @__PURE__ */jsxRuntime.jsx(reactNative.View,{style:{width:m.tiles.leadingFace},children:/* @__PURE__ */jsxRuntime.jsx(Avatar,{...avatar,size:m.avatar.face,decorative:true})}):thumbnail?/* @__PURE__ */jsxRuntime.jsx(Thumbnail,{...thumbnail,size:"xs"}):icon?/* @__PURE__ */jsxRuntime.jsx(reactNative.View,{style:{width:s.icon.column},children:/* @__PURE__ */jsxRuntime.jsx(BlockIcon,{icon:icon,size:s.icon.size,color:s.icon.color})}):null,words=/* @__PURE__ */jsxRuntime.jsxs(reactNative.View,{style:[styles20.words,tiles?{rowGap:m.tiles.text.gap[1]}:null],children:[
31
+ /* @__PURE__ */jsxRuntime.jsx(Text2,{style:rnText(t,s.title),numberOfLines:titleLines,children:breakable(title)}),subtitle?/* @__PURE__ */jsxRuntime.jsx(Text2,{style:[rnText(t,s.subtitle),tiles?null:{marginTop:m.rows.subtitle.marginTop}],numberOfLines:subtitleLines,children:subtitle}):null,trailing!=null&&stacked?/* @__PURE__ */jsxRuntime.jsx(reactNative.View,{style:[styles20.below,{marginTop:m.tiles.text.gap[1]}],children:trailing}):null]}),end=!!value||trailing!=null&&!stacked||showChevron?/* @__PURE__ */jsxRuntime.jsxs(reactNative.View,{style:[styles20.end,{columnGap:s.endGap}],children:[value?/* @__PURE__ */jsxRuntime.jsx(Text2,{style:rnText(t,s.value),numberOfLines:1,children:value}):null,trailing!=null&&!stacked?trailing:null,showChevron?/* @__PURE__ */jsxRuntime.jsx(Glyph,{icon:UI_RN_ICON_CHEVRON,size:s.chevron.size,color:s.chevron.color}):null]}):null,box2={flexDirection:"row",alignItems:s.row.center?"center":"flex-start",columnGap:s.row.gap[0]??0,paddingTop:tiles||!first?pt:0,paddingBottom:tiles||!last?pb:0,paddingLeft:pl,paddingRight:pr,...tiles?{borderRadius:s.row.radius[0]??0}:{},...!tiles&&!first?{borderTopWidth:s.row.edge.width,borderTopColor:t.colors.line}:{},...disabled?{opacity:s.disabledOpacity}:{}},spoken=accessibilityLabel??[title,subtitle,value].filter(Boolean).join(", "),press=usePressLayer("ListRow",{testID:testID,label:spoken,trackId:trackId,haptic:haptic,disabled:disabled},onPress),content=/* @__PURE__ */jsxRuntime.jsxs(jsxRuntime.Fragment,{children:[lead,words,end]});return onPress?/* @__PURE__ */jsxRuntime.jsx(PressBox,{testID:testID,...press.props,scale:press.scale,still:reduced,disabled:disabled,accessibilityRole:accessibilityRole,accessibilityLabel:spoken,accessibilityHint:accessibilityHint,accessibilityState:{disabled:disabled,...selected===void 0?{}:{selected:selected}},style:({pressed:pressed})=>[box2,pressed&&!disabled?{backgroundColor:s.pressedFill}:s.fill?{backgroundColor:s.fill}:null,style],children:content}):/* @__PURE__ */jsxRuntime.jsx(reactNative.View,{testID:testID,style:[box2,s.fill?{backgroundColor:s.fill}:null,style],...trailing==null?{accessible:true,accessibilityLabel:spoken}:{},children:content})}function ListSection({title:title,footer:footer,inset:inset=true,variant:variant="rows",label:label,children:children,testID:testID,style:style}){let t=useTheme(),m=t.metrics.lists,rows=react.Children.toArray(children).filter(react.isValidElement),list=/* @__PURE__ */jsxRuntime.jsx(reactNative.View,{accessibilityRole:"list",accessibilityLabel:label??title,style:variant==="tiles"?{rowGap:m.tiles.list.gap[1],marginHorizontal:-m.tiles.outdent}:null,children:rows.map((row,i)=>
32
+ /* @__PURE__ */jsxRuntime.jsx(reactNative.View,{role:"listitem",children:/* @__PURE__ */jsxRuntime.jsx(RowPlaceContext.Provider,{value:{variant:variant,first:i===0,last:i===rows.length-1},children:row})},row.key??i))}),note=footer?/* @__PURE__ */jsxRuntime.jsx(Text2,{style:[rnText(t,textPartSpec(t,m.section.note)),{marginTop:m.section.note.marginTop}],children:footer}):null;return inset?/* @__PURE__ */jsxRuntime.jsxs(Card,{testID:testID,title:title,style:style,children:[list,note]}):/* @__PURE__ */jsxRuntime.jsxs(reactNative.View,{testID:testID,style:[title?{marginTop:m.section.head.marginTop}:null,style],children:[title?/* @__PURE__ */jsxRuntime.jsx(SectionHeader,{title:title,style:styles20.flush}):null,list,note]})}var styles20=reactNative.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}});reactNative.StyleSheet.create({row:{flexDirection:"row",alignItems:"flex-start"},copy:{flex:1,minWidth:0},acts:{flexDirection:"row",flexWrap:"wrap",alignItems:"center"}});reactNative.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}});reactNative.StyleSheet.create({row:{flexDirection:"row",alignItems:"center"}});function Square({size:size,web:web,src:src,alt:alt,fallback:fallback,onError:onError,testID:testID}){let t=useTheme(),q=web?blocksMetrics(t).cartWeb:blocksMetrics(t).cartSquare,box2=web?blocksMetrics(t).cartWeb.sq:blocksMetrics(t).cartSquare[size],icon=t.metrics.thumbnail.xs.icon,[failed,setFailed]=react.useState(null),photo=src&&failed!==src?src:null,{shown:shown,onShown:onShown}=useShown(photo),inset=box2.w*q.imgInset,blend=q.imgBlend==="multiply"?{mixBlendMode:"multiply"}:null;/* @__PURE__ */
33
+ return jsxRuntime.jsxs(reactNative.View,{testID:testID,accessible:!photo&&!!alt,accessibilityRole:!photo&&alt?"image":void 0,accessibilityLabel:photo?void 0:alt,style:[rnBox(t,box2),{width:box2.w,height:box2.h,overflow:"hidden",alignItems:"center",justifyContent:"center"},!shown&&fallback?.tint!==void 0?{backgroundColor:fallback.tint}:null],children:[shown?null:/* @__PURE__ */jsxRuntime.jsx(BlockIcon,{icon:fallback?.icon??UI_RN_ICON_BOX,size:fallback?.iconSize??icon.w,color:fallback?.iconColor??colorOf(t,icon.color)}),photo?/* @__PURE__ */jsxRuntime.jsx(FadeImage,{source:{uri:photo},accessibilityLabel:alt,accessible:!!alt,onShown:onShown,onError:()=>{setFailed(photo),onError?.(photo)},resizeMode:q.imgFit,style:[{position:"absolute",top:inset,right:inset,bottom:inset,left:inset},blend]},photo):null]})}function PlanLine({name:name,image:image,imageAlt:imageAlt,price:price,wasPrice:wasPrice,smalls:smalls,quantity:quantity,removeLabel:removeLabel,onRemove:onRemove,actions:actions,fallback:fallback,onImageError:onImageError,error:error,testID:testID,style:style}){let t=useTheme(),p=blocksMetrics(t).cartPlan,text=x=>rnText(t,textPartSpec(t,x)),[failed,setFailed]=react.useState(null),photo=image&&failed!==image?image:null,{shown:shown,onShown:onShown}=useShown(photo),part=n=>testID===void 0?void 0:`${testID}-${n}`,[gx=0]=p.line.gap,acts=actions!==void 0?actions.map(a=>({...a,testID:itemTestID(testID,a.key,a.testID)})):removeLabel&&onRemove?[{key:"remove",label:removeLabel,onPress:onRemove,testID:part("remove"),disabled:void 0,accessibilityLabel:void 0}]:[];/* @__PURE__ */
34
+ return jsxRuntime.jsxs(reactNative.View,{testID:testID,style:[{flexDirection:"row",alignItems:"flex-start",columnGap:gx},style],children:[
35
+ /* @__PURE__ */jsxRuntime.jsxs(reactNative.View,{testID:part("image"),accessible:!photo&&!!imageAlt,accessibilityRole:!photo&&imageAlt?"image":void 0,accessibilityLabel:photo?void 0:imageAlt,style:[rnBox(t,p.img),{width:p.img.w,height:p.img.h,overflow:"hidden",alignItems:"center",justifyContent:"center"},!shown&&fallback?.tint!==void 0?{backgroundColor:fallback.tint}:null],children:[shown?null:/* @__PURE__ */jsxRuntime.jsx(BlockIcon,{icon:fallback?.icon??UI_RN_ICON_BOX,size:fallback?.iconSize??p.icon.w,color:fallback?.iconColor??colorOf(t,p.icon.color)}),photo?/* @__PURE__ */jsxRuntime.jsx(FadeImage,{source:{uri:photo},accessibilityLabel:imageAlt,accessible:!!imageAlt,onShown:onShown,onError:()=>{setFailed(photo),onImageError?.(photo)},resizeMode:"cover",style:{position:"absolute",top:0,right:0,bottom:0,left:0}},photo):null]}),
36
+ /* @__PURE__ */jsxRuntime.jsxs(reactNative.View,{style:{flex:1,minWidth:0},children:[
37
+ /* @__PURE__ */jsxRuntime.jsx(Text2,{testID:part("name"),style:text(p.name),children:name}),price||wasPrice||smalls&&smalls.length>0?/* @__PURE__ */jsxRuntime.jsxs(reactNative.View,{style:{flexDirection:"row",flexWrap:"wrap",alignItems:"center",columnGap:p.prices.gap[0],rowGap:p.prices.gap[1],marginTop:p.prices.marginTop},children:[price?/* @__PURE__ */jsxRuntime.jsx(Text2,{testID:part("price"),style:text(p.price),children:price}):null,wasPrice?/* @__PURE__ */jsxRuntime.jsx(Text2,{style:text(p.was),children:wasPrice}):null,smalls?.map((line,i)=>/* @__PURE__ */jsxRuntime.jsx(Text2,{style:text(p.small),children:line},`${i}-${line}`))]}):null,quantity||acts.length>0?/* @__PURE__ */jsxRuntime.jsxs(reactNative.View,{style:{flexDirection:"row",alignItems:"center",columnGap:p.acts.gap[0],marginTop:p.acts.marginTop},children:[quantity?/* @__PURE__ */jsxRuntime.jsx(InkedQuantityStepper,{ink:colorOf(t,p.step.color),variant:"compact",value:quantity.value,min:quantity.min,max:quantity.max,label:quantity.label,fewerLabel:quantity.fewerLabel,moreLabel:quantity.moreLabel,onChange:v=>stepTo(quantity,v)}):null,acts.map(a=>/* @__PURE__ */jsxRuntime.jsx(reactNative.Pressable,{testID:a.testID,onPress:a.disabled?void 0:a.onPress,disabled:a.disabled,accessibilityRole:"button",accessibilityLabel:a.accessibilityLabel??a.label,accessibilityState:a.disabled?{disabled:true}:void 0,hitSlop:slopFor(p.remove.h),style:[{minHeight:p.remove.minHeight||void 0,justifyContent:"center"},a.disabled?{opacity:DISABLED_OPACITY}:null],children:/* @__PURE__ */jsxRuntime.jsx(Text2,{tier:"control",style:text(p.removeText),children:a.label})},a.key))]}):null,error?/* @__PURE__ */jsxRuntime.jsx(Text2,{accessibilityRole:"alert",accessibilityLiveRegion:"polite",style:[text(p.small),{marginTop:p.acts.marginTop,color:t.colors.alert}],children:error}):null]})]})}function CartLine(props){let{name:name,image:image,imageAlt:imageAlt,badge:badge,meta:meta,price:price,wasPrice:wasPrice,quantity:quantity,removeLabel:removeLabel,onRemove:onRemove,actions:actions,fallback:fallback,onImageError:onImageError,variant:variant="standard",thumbSize:thumbSize="md",align:align="top",namePress:namePress,error:error,loading:loading=false,loadingLabel:loadingLabel,testID:testID,style:style}=props,t=useTheme(),m=blocksMetrics(t).cart,shot=t.metrics.thumbnail.xs,text=p=>rnText(t,textPartSpec(t,p)),side=image?shot.frame.w:shot.empty.w,[gx=0,gy=0]=m.line.gap,row={flexDirection:"row",alignItems:m.line.center?"center":"flex-start",columnGap:gx};if(loading)/* @__PURE__ */
38
+ return jsxRuntime.jsxs(reactNative.View,{testID:testID,style:[rnBox(t,m.line),row,style],children:[
39
+ /* @__PURE__ */jsxRuntime.jsx(reactNative.View,{style:{width:side,height:side,borderRadius:shot.frame.radius[0],backgroundColor:t.colors.tintSage}}),
40
+ /* @__PURE__ */jsxRuntime.jsx(reactNative.View,{style:{flex:1},children:/* @__PURE__ */jsxRuntime.jsx(Skeleton,{lines:2,label:loadingLabel})})]});let metaEl=meta?/* @__PURE__ */jsxRuntime.jsx(Text2,{style:[text(m.meta),{marginTop:m.meta.marginTop}],children:meta}):null,part=n=>testID===void 0?void 0:`${testID}-${n}`,act=(key,label,onPress,extra)=>/* @__PURE__ */jsxRuntime.jsx(reactNative.Pressable,{testID:extra?.testID,onPress:extra?.disabled?void 0:onPress,disabled:extra?.disabled,accessibilityRole:"button",accessibilityLabel:extra?.accessibilityLabel??label,accessibilityState:extra?.disabled?{disabled:true}:void 0,hitSlop:slopFor(m.removeBox.minHeight||m.remove.lineHeight),style:[{minHeight:m.removeBox.minHeight||void 0,justifyContent:"center"},extra?.disabled?{opacity:DISABLED_OPACITY}:null],children:/* @__PURE__ */jsxRuntime.jsx(Text2,{tier:"control",style:text(m.remove),children:label})},key),remove=actions!==void 0?actions.length>0?actions.map(a=>act(a.key,a.label,a.onPress,{disabled:a.disabled,accessibilityLabel:a.accessibilityLabel,testID:itemTestID(testID,a.key,a.testID)})):null:removeLabel&&onRemove?act("remove",removeLabel,onRemove):null;if(variant==="square"||variant==="web"){let web=variant==="web",q=web?{...blocksMetrics(t).cartSquare,...blocksMetrics(t).cartWeb}:blocksMetrics(t).cartSquare,ring2=rnRing(t,q.badge),sqAct=(key,label,onPress,extra)=>/* @__PURE__ */jsxRuntime.jsx(reactNative.Pressable,{testID:extra?.testID,onPress:extra?.disabled?void 0:onPress,disabled:extra?.disabled,accessibilityRole:"button",accessibilityLabel:extra?.accessibilityLabel??label,accessibilityState:extra?.disabled?{disabled:true}:void 0,hitSlop:slopFor(q.actBox.minHeight||q.act.lineHeight),style:[{minHeight:q.actBox.minHeight||void 0,justifyContent:"center"},extra?.disabled?{opacity:DISABLED_OPACITY}:null],children:/* @__PURE__ */jsxRuntime.jsx(Text2,{tier:"control",style:text(q.act),children:label})},key),acts=web?[]:actions!==void 0?actions.map(a=>sqAct(a.key,a.label,a.onPress,{disabled:a.disabled,accessibilityLabel:a.accessibilityLabel,testID:itemTestID(testID,a.key,a.testID)})):removeLabel&&onRemove?[sqAct("remove",removeLabel,onRemove)]:[],lifted=namePress!==void 0&&acts.length>0;/* @__PURE__ */
41
+ return jsxRuntime.jsxs(reactNative.View,{testID:testID,style:[{flexDirection:"row",alignItems:align==="center"||q.line.center?"center":"flex-start",columnGap:q.line.gap[0]},style],children:[
42
+ /* @__PURE__ */jsxRuntime.jsx(Square,{size:thumbSize,web:web,src:image,alt:imageAlt,fallback:fallback,onError:onImageError,testID:part("image")}),
43
+ /* @__PURE__ */jsxRuntime.jsxs(reactNative.View,{style:[{flex:1,minWidth:0},lifted?{zIndex:1}:null],children:[
44
+ /* @__PURE__ */jsxRuntime.jsxs(reactNative.View,{style:{flexDirection:"row",flexWrap:"wrap",alignItems:q.name.center?"center":"baseline",columnGap:q.name.gap[0],rowGap:q.name.gap[1]},children:[
45
+ /* @__PURE__ */jsxRuntime.jsx(Text2,{style:text(namePress?q.link:q.nameText),onPress:lifted?namePress.onPress:void 0,children:name}),badge?/* @__PURE__ */jsxRuntime.jsxs(reactNative.View,{style:[rnBox(t,q.badge),{height:q.badge.h,justifyContent:"center"}],children:[
46
+ /* @__PURE__ */jsxRuntime.jsx(Text2,{style:text(q.badgeText),children:badge.label}),ring2?/* @__PURE__ */jsxRuntime.jsx(reactNative.View,{pointerEvents:"none",style:ring2}):null]}):null]}),meta?/* @__PURE__ */jsxRuntime.jsx(Text2,{style:[text(q.meta),{marginTop:q.meta.marginTop}],children:meta}):null,acts.length>0?/* @__PURE__ */jsxRuntime.jsx(reactNative.View,{style:{flexDirection:"row",flexWrap:"wrap",alignItems:"center",columnGap:q.acts.gap[0],rowGap:q.acts.gap[1],marginTop:q.acts.marginTop},children:acts}):null,error?/* @__PURE__ */jsxRuntime.jsx(Text2,{accessibilityRole:"alert",accessibilityLiveRegion:"polite",style:[text(q.meta),{marginTop:q.acts.marginTop,color:t.colors.alert}],children:error}):null]}),price||wasPrice?/* @__PURE__ */jsxRuntime.jsxs(reactNative.View,{style:{alignItems:"flex-end"},children:[price?/* @__PURE__ */jsxRuntime.jsx(Text2,{testID:part("price"),style:text(q.price),children:price}):null,wasPrice?/* @__PURE__ */jsxRuntime.jsx(Text2,{style:text(q.was),children:wasPrice}):null]}):null,namePress?/* @__PURE__ */jsxRuntime.jsx(reactNative.Pressable,{testID:namePress.testID??part("name"),onPress:namePress.onPress,accessibilityRole:"button",accessibilityLabel:namePress.accessibilityLabel??name,style:{position:"absolute",top:-q.linkReach,right:0,bottom:-q.linkReach,left:0}}):null]})}if(variant==="plan")/* @__PURE__ */return jsxRuntime.jsx(PlanLine,{...props});let stepper=quantity?/* @__PURE__ */jsxRuntime.jsx(QuantityStepper,{value:quantity.value,min:quantity.min,max:quantity.max,label:quantity.label,fewerLabel:quantity.fewerLabel,moreLabel:quantity.moreLabel,onChange:v=>stepTo(quantity,v)}):null;/* @__PURE__ */
47
+ return jsxRuntime.jsxs(reactNative.View,{testID:testID,style:[rnBox(t,m.line),{rowGap:gy,columnGap:0},style],children:[
48
+ /* @__PURE__ */jsxRuntime.jsxs(reactNative.View,{style:row,children:[
49
+ /* @__PURE__ */jsxRuntime.jsx(BlockThumbnail,{size:"xs",src:image,alt:imageAlt,icon:fallback?.icon,iconSize:fallback?.iconSize,tint:fallback?.tint,iconColor:fallback?.iconColor,onError:onImageError,testID:part("image")}),
50
+ /* @__PURE__ */jsxRuntime.jsxs(reactNative.View,{style:{flex:1,minWidth:0},children:[
51
+ /* @__PURE__ */jsxRuntime.jsxs(reactNative.View,{style:{flexDirection:"row",flexWrap:"wrap",alignItems:"center",columnGap:m.name.gap[0],rowGap:m.name.gap[1]},children:[
52
+ /* @__PURE__ */jsxRuntime.jsx(Text2,{style:text(m.nameText),children:name}),badge?/* @__PURE__ */jsxRuntime.jsx(Pill,{label:badge.label,tone:badge.tone??"rx"}):null]}),metaEl,stepper||remove?/* @__PURE__ */jsxRuntime.jsxs(reactNative.View,{style:{flexDirection:"row",alignItems:"center",...actions&&actions.length>1?{flexWrap:"wrap",rowGap:m.acts.gap[1]}:{},columnGap:m.acts.gap[0],marginTop:m.acts.marginTop},children:[stepper,remove]}):null,error?/* @__PURE__ */jsxRuntime.jsx(Text2,{accessibilityRole:"alert",accessibilityLiveRegion:"polite",style:[text(m.meta),{marginTop:m.acts.marginTop,color:t.colors.alert}],children:error}):null]})]}),price||wasPrice?/* @__PURE__ */jsxRuntime.jsxs(reactNative.View,{style:{marginLeft:side+gx,flexDirection:"row",flexWrap:"wrap",alignItems:"baseline",columnGap:m.end.gap[0],rowGap:m.end.gap[1]},children:[price?/* @__PURE__ */jsxRuntime.jsx(Text2,{testID:part("price"),style:text(m.price),children:price}):null,wasPrice?/* @__PURE__ */jsxRuntime.jsx(Text2,{style:text(m.was),children:wasPrice}):null]}):null]})}var DEFAULT_SHOP_LOOK="partner",LookContext=react.createContext(DEFAULT_SHOP_LOOK),ShopLookProvider=LookContext.Provider;function useShopLook(){return react.useContext(LookContext)}function useEverfurAppLook(){return useShopLook()==="everfur-app"}var freezeInPlace=Object.freeze;function deepFreeze2(value){if(value!==null&&typeof value=="object"&&!Object.isFrozen(value)){freezeInPlace(value);for(let key of Object.keys(value))deepFreeze2(value[key])}return value}var TEXT_SCALE_TIER_CAPS=/* @__PURE__ */Object.freeze({content:0,heading:2,control:1.8,compact:1.5,badge:1.3}),SPACE={xs:4,sm:8,md:12,lg:16,xl:24,xxl:32},RADIUS={tile:5,xs:6,sm:10,md:14,lg:20,xl:28,pill:500},TYPE_SIZE={nano:8,small:9,micro:10,tiny:11,caption:13,bodyTight:15,body:17,subtitle:20,heading:22,verdict:24},LINE_HEIGHT={tight:1.15,snug:1.3,normal:1.4,relaxed:1.55},WEIGHT={regular:"400",medium:"500",bold:"700"},LETTER_SPACING={eyebrow:1,monoWide:.9,headerBrand:-.42,tight:-.35},DEFAULT_MAX_FONT_SCALE=0,SYSTEM_FONT_FAMILY="System",SYSTEM_MONO_FAMILY="monospace",TIERS=["content","heading","control","compact","badge"];function authoredTierSizes(size){let out={};for(let tier of TIERS)out[tier]=size;return out}var NO_FONT_SOURCES=[];function baseType(){return{family:SYSTEM_FONT_FAMILY,mono:SYSTEM_MONO_FAMILY,fontUrl:null,families:{regular:SYSTEM_FONT_FAMILY,medium:SYSTEM_FONT_FAMILY,bold:SYSTEM_FONT_FAMILY,mono:SYSTEM_MONO_FAMILY,monoMedium:SYSTEM_MONO_FAMILY,monoBold:SYSTEM_MONO_FAMILY},namedFaces:{regular:false,medium:false,bold:false,mono:false,monoMedium:false,monoBold:false},fontUrls:{},size:TYPE_SIZE,tierSizes:authoredTierSizes(TYPE_SIZE),lineHeight:LINE_HEIGHT,weight:WEIGHT,letterSpacing:LETTER_SPACING,scale:1,maxScale:DEFAULT_MAX_FONT_SCALE,scaleCaps:TEXT_SCALE_TIER_CAPS,headingFamily:null,headingWeight:null,fontSources:NO_FONT_SOURCES}}var NO_SLOTS={},EASING_CURVES=/* @__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(curve){return`cubic-bezier(${curve.join(", ")})`}var MOTION={duration:{instant:80,fast:140,normal:220,slow:320},spring:{gentle:{damping:18,stiffness:200}},easing:{standard:cssCubicBezier(EASING_CURVES.standard),emphasized:cssCubicBezier(EASING_CURVES.emphasized),exit:cssCubicBezier(EASING_CURVES.exit)},reducedMotion:false},LIGHT_COLOR={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)"},EVERFUR_LIGHT=deepFreeze2({brightness:"light",highContrast:false,meta:{displayName:"Everfur",logoUrl:null,placeholder:null,hidePoweredBy:false,assistantAvatarUrl:null},color:LIGHT_COLOR,space:SPACE,radius:RADIUS,type:baseType(),motion:MOTION,slots:NO_SLOTS}),DARK_COLOR={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)"},EVERFUR_DARK=deepFreeze2({brightness:"dark",highContrast:false,meta:{displayName:"Everfur",logoUrl:null,placeholder:null,hidePoweredBy:false,assistantAvatarUrl:null},color:DARK_COLOR,space:SPACE,radius:RADIUS,type:baseType(),motion:MOTION,slots:NO_SLOTS});var FACE_WEIGHT=/* @__PURE__ */Object.freeze({regular:"regular",medium:"medium",bold:"bold",mono:"regular",monoMedium:"medium",monoBold:"bold"});function face(theme,weight){let type=theme.type,fontFamily=type.families[weight];return weight==="mono"||type.namedFaces[weight]?{fontFamily:fontFamily}:{fontFamily:fontFamily,fontWeight:type.weight[FACE_WEIGHT[weight]]}}function headingFace(theme,fallback="bold"){let{headingFamily:headingFamily,headingWeight:headingWeight}=theme.type;if(headingFamily===null&&headingWeight===null)return face(theme,fallback);if(headingFamily!==null)return{fontFamily:headingFamily,fontWeight:headingWeight??theme.type.weight[FACE_WEIGHT[fallback]]};let base=face(theme,fallback);return base.fontWeight===void 0||headingWeight===null?base:{fontFamily:base.fontFamily,fontWeight:headingWeight}}function toRgba(value){if(typeof value=="number")return argbIntToRgba(value);if(typeof value!="string")return null;let s=value.trim();if(s.length===0)return null;if(s.startsWith("#"))return fromHex(s.slice(1));if(s.toLowerCase().startsWith("0x"))return fromHex(s.slice(2));if(s.toLowerCase().startsWith("rgb"))return fromRgbFunc(s);if(/^[0-9a-fA-F]+$/.test(s)){let hex=fromHex(s);if(hex!==null)return hex}return/^\d+$/.test(s)?argbIntToRgba(Number.parseInt(s,10)):null}function fromHex(hex){let h=hex.trim();if(!/^[0-9a-fA-F]+$/.test(h))return null;if(h.length===3)return{r:dup(h[0]),g:dup(h[1]),b:dup(h[2]),a:1};if(h.length===6)return{r:byte(h,0),g:byte(h,2),b:byte(h,4),a:1};if(h.length===8){let a=byte(h,0);return{r:byte(h,2),g:byte(h,4),b:byte(h,6),a:a/255}}return null}function fromRgbFunc(input){let open=input.indexOf("("),close=input.indexOf(")");if(open<0||close<0||close<open)return null;let parts=input.slice(open+1,close).split(",").map(p=>p.trim());if(parts.length<3)return null;let r=clampByte(Number(parts[0])),g=clampByte(Number(parts[1])),b=clampByte(Number(parts[2]));if(r===null||g===null||b===null)return null;let a=1;if(parts.length>=4){let alpha=Number(parts[3]);if(!Number.isFinite(alpha))return null;a=Math.min(1,Math.max(0,alpha))}return{r:r,g:g,b:b,a:a}}function argbIntToRgba(n){if(!Number.isFinite(n))return null;let int2=Math.trunc(n)>>>0,a=int2>>>24&255;return{r:int2>>>16&255,g:int2>>>8&255,b:int2&255,a:a===0?1:a/255}}function byte(hex,at){return Number.parseInt(hex.slice(at,at+2),16)}function dup(nibble){return Number.parseInt(`${nibble??"0"}${nibble??"0"}`,16)}function clampByte(n){return Number.isFinite(n)?Math.min(255,Math.max(0,Math.round(n))):null}function rgbToHex(r,g,b){return`#${hex2(r)}${hex2(g)}${hex2(b)}`.toUpperCase()}function hex2(n){return n.toString(16).padStart(2,"0")}var NEAR_BLACK="#111111",WHITE="#FFFFFF",BLACK="#000000";function readableOn(background){let rgba=toRgba(background);if(rgba===null)return WHITE;let bg=relativeLuminance(rgba),black=relativeLuminance({r:17,g:17,b:17}),white=relativeLuminance({r:255,g:255,b:255});return luminanceContrast(bg,white)>=luminanceContrast(bg,black)?WHITE:NEAR_BLACK}function legibleOn(background,target){let first=readableOn(background);return contrastRatio(first,background)>=target?first:contrastRatio(WHITE,background)>=contrastRatio(BLACK,background)?WHITE:BLACK}function poleForGrounds(grounds){let worst=ink=>grounds.reduce((low,ground)=>Math.min(low,contrastRatio(ink,ground)),Number.POSITIVE_INFINITY);return worst(WHITE)>=worst(BLACK)?WHITE:BLACK}function relativeLuminance(rgba){let r=linearize(rgba.r/255),g=linearize(rgba.g/255),b=linearize(rgba.b/255);return.2126*r+.7152*g+.0722*b}function linearize(channel){return channel<=.03928?channel/12.92:Math.pow((channel+.055)/1.055,2.4)}function luminanceContrast(l1,l2){let lighter=Math.max(l1,l2),darker=Math.min(l1,l2);return(lighter+.05)/(darker+.05)}function contrastRatio(a,b){let fg=toRgba(a),bg=toRgba(b);if(fg===null||bg===null)return 1;let ground=bg.a>=1?bg:{...bg},fore=fg.a>=1?fg:composite(fg,ground);return luminanceContrast(relativeLuminance(fore),relativeLuminance(ground))}function composite(fg,bg){let a=fg.a,mix=(f,g)=>Math.round(f*a+g*(1-a));return{r:mix(fg.r,bg.r),g:mix(fg.g,bg.g),b:mix(fg.b,bg.b),a:1}}function flattenOnto(color,background){let fg=toRgba(color),bg=toRgba(background);if(fg===null||bg===null)return null;let out=fg.a>=1?fg:composite(fg,{...bg});return rgbToHex(out.r,out.g,out.b)}var PUSH_STEP=.05;function pushToContrast(color,grounds,pole,target){let first=grounds[0];if(first===void 0)return pole;let reads=candidate=>grounds.every(ground=>contrastRatio(candidate,ground)>=target);if(toRgba(color)===null)return pole;if(reads(color))return color;let flat=flattenOnto(color,first),from=flat===null?null:toRgba(flat),to=toRgba(pole);if(from===null||to===null)return pole;for(let step=1;step<1/PUSH_STEP;step+=1){let t=step*PUSH_STEP,mix=(a,b)=>Math.round(a+(b-a)*t),candidate=rgbToHex(mix(from.r,to.r),mix(from.g,to.g),mix(from.b,to.b));if(reads(candidate))return candidate}return pole}var DESIGN_V3_LIGHT=/* @__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"}),cache2=/* @__PURE__ */new WeakMap;function v3Palette(theme){let hit=cache2.get(theme);if(hit!==void 0)return hit;let c=theme.color,dark=theme.brightness==="dark",neutrals=dark?{dark:dark,ink:c.text.primary,ink2:c.text.secondary,ink3:c.text.muted,paper:c.background,card:c.surface,line:c.borderRingCream,tile:c.surfaceSubtle,shadow:c.shadow,riskBg:c.badgeBgCritical,riskInk:c.danger,riskDot:c.danger,clearBg:c.badgeBgPositive,clearInk:c.success,clearDot:c.success,watchDot:c.warningStrong}:{dark:dark,...DESIGN_V3_LIGHT},textOn=(ink,grounds)=>pushToContrast(ink,grounds,poleForGrounds(grounds),V3_TEXT_CONTRAST),labelOn=(ink,fill)=>contrastRatio(ink,fill)>=V3_TEXT_CONTRAST?ink:legibleOn(fill,V3_TEXT_CONTRAST),badgeGrounds=[neutrals.card,neutrals.paper].map(under=>flattenOnto(c.brandSoft,under)??under),brand={primary:c.primary,onPrimary:labelOn(c.onPrimary,c.primary),accent:c.accent,onAccent:labelOn(c.onAccent,c.accent),link:textOn(c.linkInk,[neutrals.card,neutrals.paper,neutrals.tile]),badge:c.brandSoft,onBadge:textOn(c.brandInk,badgeGrounds)},palette=/* @__PURE__ */Object.freeze({...neutrals,...brand});return cache2.set(theme,palette),palette}var V3_TEXT_CONTRAST=4.5;var EVERFUR_THEME_CONTEXT_SYMBOL=/* @__PURE__ */Symbol.for("@everfur/sdk#EverfurThemeContext@v1"),globalThemeHost=globalThis,EverfurThemeContext=globalThemeHost[EVERFUR_THEME_CONTEXT_SYMBOL]??(globalThemeHost[EVERFUR_THEME_CONTEXT_SYMBOL]=react.createContext(EVERFUR_LIGHT));EverfurThemeContext.displayName??="EverfurThemeContext";function useEverfurTheme(){return react.useContext(EverfurThemeContext)}var rnBlockFonts=theme=>{let n=theme.type.namedFaces,family=key=>face(theme,key).fontFamily;return{family:family("regular"),mono:family("mono"),faces:{regular:family("regular"),medium:family("medium"),bold:family("bold"),mono:family("mono"),monoBold:family("monoBold"),serif:headingFace(theme,"bold").fontFamily},namedFaces:n.regular&&n.medium&&n.bold}},mapped=/* @__PURE__ */new WeakMap;function themeInputFromEverfur(theme,fonts,base=everfurTheme){if(base!==everfurTheme)return mapEverfur(theme,fonts,base);let byTheme=mapped.get(fonts);byTheme===void 0&&mapped.set(fonts,byTheme=/* @__PURE__ */new WeakMap);let input=byTheme.get(theme);return input===void 0&&byTheme.set(theme,input=mapEverfur(theme,fonts,base)),input}function mapEverfur(theme,fonts,base){let c=theme.color,d=EVERFUR_LIGHT.color,dark=theme.brightness==="dark",compiled=dark?EVERFUR_DARK:EVERFUR_LIGHT,moved=key=>c[key]!==d[key],colors={};if(moved("primary")?(Object.assign(colors,{ink:c.primary,onInk:c.onPrimary,focus:c.primary}),moved("accent")||Object.assign(colors,{go:c.primary,onGo:c.onPrimary})):moved("onPrimary")&&(colors.onInk=c.onPrimary),moved("accent")&&Object.assign(colors,{go:c.accent,onGo:c.onAccent}),moved("brandSoft")&&(colors.tintSage=c.brandSoft),moved("danger")&&Object.assign(colors,{alert:c.danger,alertDeep:c.danger}),dark)Object.assign(colors,{bg:c.background,surface:c.surface,text:c.text.primary,muted:c.text.muted,line:c.borderRingCream});else{let k2=compiled.color;c.background!==k2.background&&(colors.bg=c.background),c.surface!==k2.surface&&(colors.surface=c.surface),c.text.primary!==k2.text.primary&&(colors.text=c.text.primary),c.text.muted!==k2.text.muted&&(colors.muted=c.text.muted)}let over={};Object.keys(colors).length>0&&(over.colors={...colors});let r=theme.radius,kr=compiled.radius;if(r.xs!==kr.xs||r.sm!==kr.sm||r.lg!==kr.lg||r.xl!==kr.xl||r.pill!==kr.pill){let radius={};r.xs!==kr.xs&&(radius.sm=r.xs),r.sm!==kr.sm&&(radius.md=r.sm),r.lg!==kr.lg&&(radius.lg=r.lg),r.xl!==kr.xl&&(radius.xl=r.xl),r.pill!==kr.pill&&(radius.pill=r.pill),over.radius=radius,(r.lg!==kr.lg||r.xl!==kr.xl)&&(over.metrics={...r.lg!==kr.lg?{card:{radius:r.lg},summary:{radius:r.lg}}:{},...r.xl!==kr.xl?{sheet:{radius:r.xl}}:{}})}if(theme.space.xs!==compiled.space.xs){let f=theme.space.xs/compiled.space.xs,s=base.space,n=v=>Math.round(v*f);over.space={1:n(s[1]),2:n(s[2]),3:n(s[3]),4:n(s[4]),5:n(s[5]),6:n(s[6]),7:n(s[7]),8:n(s[8]),9:n(s[9])}}let ts=theme.type.size,ks=compiled.type.size,sizeMoved=ts.caption!==ks.caption||ts.bodyTight!==ks.bodyTight||ts.body!==ks.body||ts.subtitle!==ks.subtitle||ts.verdict!==ks.verdict,lh=theme.type.lineHeight,klh=compiled.type.lineHeight,lineMoved=lh.relaxed!==klh.relaxed||lh.tight!==klh.tight,caps=theme.type.scaleCaps,kcaps=compiled.type.scaleCaps,capsMoved=caps.content!==kcaps.content||caps.heading!==kcaps.heading||caps.control!==kcaps.control||caps.compact!==kcaps.compact||caps.badge!==kcaps.badge,typeMoved=sizeMoved||lineMoved||capsMoved;over.type={...sizeMoved?{size:{xs:ts.caption,sm:ts.bodyTight,md:ts.body,lg:ts.subtitle,xl:ts.verdict}}:{},...lineMoved?{lineHeight:{body:lh.relaxed,display:lh.tight}}:{},...capsMoved?{scaleCaps:{content:caps.content,heading:caps.heading,control:caps.control,compact:caps.compact,badge:caps.badge}}:{},...fonts(theme)},theme.motion.reducedMotion&&!base.motion.reduced&&(over.motion={reduced:true});let branded=typeMoved||Object.keys(colors).length>0||Object.keys(over).some(k2=>k2!=="type"&&k2!=="colors")||theme.type.families.regular!==EVERFUR_LIGHT.type.families.regular,plan=planColors(theme,compiled,colors.surface??base.colors.surface),ownPlan=Object.entries(plan).filter(([k2,v])=>v!==base.colors[k2]);return ownPlan.length>0&&(over.colors={...colors,...Object.fromEntries(ownPlan)}),branded?{name:"partner",...over}:over}var DS_PLAN={planAccent:everfurTheme.colors.planAccent,planLink:everfurTheme.colors.planLink},PLAN_WASHES2={planAccentWash:["accent",.17],planAccentChip:["accent",.47],planLinkWash:["link",.12],planLinkChip:["link",.2]};function planColors(theme,compiled,surface){let v=v3Palette(theme),k2=v3Palette(compiled),c=theme.color,out={};(c.primary!==compiled.color.primary||c.onPrimary!==compiled.color.onPrimary)&&Object.assign(out,{planInk:c.primary,planOnInk:v.onPrimary}),c.accent!==compiled.color.accent&&(out.planAccent=c.accent),v.link!==k2.link&&(out.planLink=v.link);let ink={accent:out.planAccent??DS_PLAN.planAccent,link:out.planLink??DS_PLAN.planLink},slot={planLinkWash:v.dark?void 0:theme.slots.planWash?.backgroundColor,planLinkChip:v.dark?void 0:theme.slots.planChip?.backgroundColor},ownCard=surface.toLowerCase()!==v.card.toLowerCase();for(let[key,[from,share]]of Object.entries(PLAN_WASHES2)){let given=slot[key];given!==void 0?out[key]=given:ownCard&&(out[key]=mixColor(ink[from],share,v.card,v.card))}return out}function useBlockThemeInput(fonts){let everfur=useEverfurTheme();return react.useMemo(()=>themeInputFromEverfur(everfur,fonts),[everfur,fonts])}function BlockScope({children:children}){let input=useBlockThemeInput(rnBlockFonts);return react.createElement(ThemeProvider,{theme:input},children)}var TAB_ROUTE={package:{name:"package"},shop:{name:"shop"},orders:{name:"orders"},plan:{name:"plan"}};function tabLabel(copy,tab){return tab==="package"?copy.tabPackage:tab==="shop"?copy.tabShop:tab==="orders"?copy.tabOrders:copy.tabPlan}function CareTabs({copy:copy,current:current,tabs:tabs}){let kit=useKit(),nav=useShopNativeNav();/* @__PURE__ */
53
+ return jsxRuntime.jsxs(reactNative.View,{style:[kit.v("subtabs"),{flexDirection:"row",zIndex:1}],accessibilityRole:"tablist",accessibilityLabel:copy.tabsLabel,testID:"shop-subtabs",children:[tabs.map(tab=>{let on=tab===current,k2=on?"subtabCurrent":"subtab";/* @__PURE__ */
54
+ return jsxRuntime.jsxs(Press,{role:"tab",selected:on,onPress:()=>nav.go(TAB_ROUTE[tab]),style:[kit.v(k2),{flex:1,alignItems:"center",justifyContent:"center"}],children:[
55
+ /* @__PURE__ */jsxRuntime.jsx(T,{k:k2,bare:true,children:tabLabel(copy,tab)}),
56
+ /* @__PURE__ */jsxRuntime.jsx(Decor,{k:k2})]},tab)}),
9
57
  /* @__PURE__ */jsxRuntime.jsx(Decor,{k:"subtabs"})]})}function Frame({tabs:tabs,tray:tray,onNearEnd:onNearEnd,onRefresh:onRefresh,children:children}){let kit=useKit(),[pulling,setPulling]=react.useState(false),near=react.useRef(onNearEnd);near.current=onNearEnd;let box2=react.useRef({offset:0,view:0,content:0}),check=()=>{let b=box2.current;near.current&&b.view>0&&b.content>0&&b.offset+b.view*2>=b.content&&near.current()},paging=onNearEnd===void 0?{}:{scrollEventThrottle:100,onLayout:e=>{box2.current.view=e.nativeEvent.layout.height,check()},onContentSizeChange:(_w,h)=>{box2.current.content=h,check()},onScroll:e=>{let n=e.nativeEvent;box2.current={offset:n.contentOffset.y,view:n.layoutMeasurement.height,content:n.contentSize.height},check()}};/* @__PURE__ */
10
58
  return jsxRuntime.jsxs(reactNative.View,{style:{flex:1,backgroundColor:PHONE_BOX.subtabs.backgroundColor},children:[tabs?/* @__PURE__ */jsxRuntime.jsx(CareTabs,{copy:tabs.copy,current:tabs.current,tabs:tabs.tabs}):null,
11
59
  /* @__PURE__ */jsxRuntime.jsx(reactNative.ScrollView,{style:{flex:1},contentContainerStyle:[kit.v(tabs?"body":"pushBody"),BODY_END],keyboardShouldPersistTaps:"handled",...paging,...onRefresh?{refreshControl:/* @__PURE__ */jsxRuntime.jsx(reactNative.RefreshControl,{refreshing:pulling,tintColor:inkOf("screenMeta"),colors:[inkOf("screenMeta")],onRefresh:()=>{setPulling(true),onRefresh().finally(()=>setPulling(false))}})}:{},children:/* @__PURE__ */jsxRuntime.jsx(reactNative.View,{testID:"shop-body",children:children})}),tray??null]})}var BODY_END={paddingBottom:PHONE_BOX.breaks.columnGap};function TitleBlock({title:title,meta:meta}){let kit=useKit();/* @__PURE__ */
12
60
  return jsxRuntime.jsxs(reactNative.View,{style:kit.v("titleBlock"),children:[
13
61
  /* @__PURE__ */jsxRuntime.jsx(T,{k:"screenTitle",role:"header",children:title}),meta?/* @__PURE__ */jsxRuntime.jsx(T,{k:"screenMeta",children:meta}):null]})}function Stack({children:children}){let kit=useKit();/* @__PURE__ */
14
- return jsxRuntime.jsx(reactNative.View,{style:kit.v("stack"),children:children})}function Card({children:children,label:label,style:style}){let kit=useKit();/* @__PURE__ */
62
+ return jsxRuntime.jsx(reactNative.View,{style:kit.v("stack"),children:children})}function Card2({children:children,label:label,style:style}){let kit=useKit();/* @__PURE__ */
15
63
  return jsxRuntime.jsx(reactNative.View,{style:[kit.v("card"),style],...label?{accessibilityLabel:label}:{},children:children})}function CardTitle({children:children}){/* @__PURE__ */
16
64
  return jsxRuntime.jsx(T,{k:"cardTitle",role:"header",children:children})}function CardHead({title:title,end:end}){let kit=useKit();/* @__PURE__ */
17
65
  return jsxRuntime.jsxs(reactNative.View,{style:[kit.v("cardHead"),{flexDirection:"row",flexWrap:"wrap",alignItems:"center",justifyContent:"space-between"}],children:[
18
- /* @__PURE__ */jsxRuntime.jsx(T,{k:"cardTitleInHead",role:"header",children:title}),end??null]})}function ShopLinkText({link:link,k:k="cardLink",style:style}){let kit=useKit(),nav=useShopNativeNav();/* @__PURE__ */
19
- return jsxRuntime.jsx(Press,{role:"link",onPress:()=>nav.go(link.to),style:[kit.v(k),style],children:/* @__PURE__ */jsxRuntime.jsx(T,{k:k,bare:true,children:phoneLabel(link.label)})})}var PILL_KEY={rx:"pill",soon:"pillSoon",clear:"pillClear",plain:"pillPlain",overdue:"pillOverdue",later:"pillPlain",stable:"pillStable"};function Pill({pill:pill}){let kit=useKit(),k=PILL_KEY[pill.tone];/* @__PURE__ */
20
- return jsxRuntime.jsxs(reactNative.View,{style:[kit.v(k),{flexDirection:"row",alignItems:"center",alignSelf:"flex-start",flexShrink:1}],children:[
21
- /* @__PURE__ */jsxRuntime.jsx(T,{k:k,bare:true,style:{flexShrink:1},children:pill.label}),
22
- /* @__PURE__ */jsxRuntime.jsx(Decor,{k:k})]})}var TILE_KEY={base:null,pink:"thumbPink",yellow:"thumbYellow",sage:"thumbSage"};function tileTint(tone){let k=TILE_KEY[tone];return(k?PHONE_BOX[k]:PHONE_BOX.thumb).backgroundColor}function useProductTile(v){return useEverfurAppLook()&&v.form!==void 0?formTile(v.form):{tone:v.tone,icon:v.icon}}function TilePhoto({uri:uri,onFailed:onFailed}){let[state,setState]=react.useState("loading");return state==="failed"?null:/* @__PURE__ */jsxRuntime.jsx(reactNative.Image,{source:{uri:uri},resizeMode:"cover",accessible:false,accessibilityElementsHidden:true,importantForAccessibility:"no-hide-descendants",onLoad:()=>setState("loaded"),onError:()=>{setState("failed"),onFailed?.()},style:{position:"absolute",top:0,left:0,right:0,bottom:0,opacity:state==="loaded"?1:0}})}function Thumb({tone:tone,icon:icon,imageUrl:imageUrl}){let kit=useKit();/* @__PURE__ */
66
+ /* @__PURE__ */jsxRuntime.jsx(T,{k:"cardTitleInHead",role:"header",children:title}),end??null]})}function ShopLinkText({link:link,k:k2="cardLink",style:style}){let kit=useKit(),nav=useShopNativeNav();/* @__PURE__ */
67
+ return jsxRuntime.jsx(Press,{role:"link",onPress:()=>nav.go(link.to),style:[kit.v(k2),style],children:/* @__PURE__ */jsxRuntime.jsx(T,{k:k2,bare:true,children:phoneLabel(link.label)})})}var PILL_KEY={rx:"pill",soon:"pillSoon",clear:"pillClear",plain:"pillPlain",overdue:"pillOverdue",later:"pillPlain",stable:"pillStable"};function Pill2({pill:pill}){let kit=useKit(),k2=PILL_KEY[pill.tone];/* @__PURE__ */
68
+ return jsxRuntime.jsxs(reactNative.View,{style:[kit.v(k2),{flexDirection:"row",alignItems:"center",alignSelf:"flex-start",flexShrink:1}],children:[
69
+ /* @__PURE__ */jsxRuntime.jsx(T,{k:k2,bare:true,style:{flexShrink:1},children:pill.label}),
70
+ /* @__PURE__ */jsxRuntime.jsx(Decor,{k:k2})]})}var TILE_KEY={base:null,pink:"thumbPink",yellow:"thumbYellow",sage:"thumbSage"};function tileTint(tone){let k2=TILE_KEY[tone];return(k2?PHONE_BOX[k2]:PHONE_BOX.thumb).backgroundColor}function useProductTile(v){return useEverfurAppLook()&&v.form!==void 0?formTile(v.form):{tone:v.tone,icon:v.icon}}function TilePhoto({uri:uri,onFailed:onFailed}){let[state,setState]=react.useState("loading");return state==="failed"?null:/* @__PURE__ */jsxRuntime.jsx(reactNative.Image,{source:{uri:uri},resizeMode:"cover",accessible:false,accessibilityElementsHidden:true,importantForAccessibility:"no-hide-descendants",onLoad:()=>setState("loaded"),onError:()=>{setState("failed"),onFailed?.()},style:{position:"absolute",top:0,left:0,right:0,bottom:0,opacity:state==="loaded"?1:0}})}function Thumb({tone:tone,icon:icon,imageUrl:imageUrl}){let kit=useKit();/* @__PURE__ */
23
71
  return jsxRuntime.jsxs(reactNative.View,{style:[kit.v("thumb"),{backgroundColor:tileTint(tone),alignItems:"center",justifyContent:"center"},imageUrl?{overflow:"hidden"}:null],children:[
24
72
  /* @__PURE__ */jsxRuntime.jsx(PartIcon,{name:icon,k:"thumbIcon",inkKey:"thumb"}),imageUrl?/* @__PURE__ */jsxRuntime.jsx(TilePhoto,{uri:imageUrl},imageUrl):null]})}function ItemRow({index:index,count:count,thumb:thumb,children:children,end:end,first:first="itemsLiFirst",mid:mid="itemsLiMid",last:last="itemsLiLast"}){let kit=useKit(),style=[];count===1?style.push({paddingTop:0,paddingBottom:0}):index===0?style.push(kit.v(first)):index===count-1?style.push(kit.v(last)):style.push(kit.v(mid));let gap=PHONE_BOX.itemsLiFirst.columnGap;return style.push({rowGap:0,columnGap:0}),/* @__PURE__ */jsxRuntime.jsxs(reactNative.View,{style:style,children:[
25
73
  /* @__PURE__ */jsxRuntime.jsxs(reactNative.View,{style:{flexDirection:"row",alignItems:"center",columnGap:gap},children:[thumb,
26
74
  /* @__PURE__ */jsxRuntime.jsx(reactNative.View,{style:{flex:1,minWidth:0,marginRight:gap},children:children})]}),end?/* @__PURE__ */jsxRuntime.jsx(reactNative.View,{style:{marginTop:PHONE_BOX.itemsLiFirst.rowGap,marginLeft:PHONE_BOX.thumb.width+gap,marginRight:gap,alignItems:"flex-start"},children:end}):null]})}function ItemName({name:name,rx:rx,copy:copy,pills:pills}){let kit=useKit();/* @__PURE__ */
27
75
  return jsxRuntime.jsxs(reactNative.View,{style:[kit.v("itemsName"),{flexDirection:"row",flexWrap:"wrap",alignItems:"center"}],children:[
28
- /* @__PURE__ */jsxRuntime.jsx(T,{k:"itemsName",bare:true,children:name}),rx?/* @__PURE__ */jsxRuntime.jsx(Pill,{pill:{label:copy.rx,tone:"rx"}}):null,(pills??[]).map(p=>/* @__PURE__ */jsxRuntime.jsx(Pill,{pill:p},p.label))]})}function Sum({rows:rows,total:total}){let kit=useKit(),box2=total?"sumTotal":"sumPlain",row=total?"sumRowFirst":"sumPlainRowFirst",dd=total?"sumDd":"sumPlainDd";/* @__PURE__ */
29
- return jsxRuntime.jsx(reactNative.View,{style:kit.v(box2),children:rows.map((r,i)=>{let lastRow=i===rows.length-1;/* @__PURE__ */
30
- return jsxRuntime.jsxs(reactNative.View,{style:[kit.v(row),{flexDirection:"row",flexWrap:"wrap",alignItems:"baseline",justifyContent:"space-between"},lastRow?null:{borderBottomWidth:PHONE_BOX.card.borderWidth,borderBottomColor:PHONE_BOX.card.borderColor}],children:[
31
- /* @__PURE__ */jsxRuntime.jsx(T,{k:"sumDt",children:r.k}),
32
- /* @__PURE__ */jsxRuntime.jsx(T,{k:total&&lastRow?"sumDdTotal":dd,style:{marginLeft:"auto"},children:r.v})]},`${r.k}-${i}`)})})}function Rows({rows:rows,plan:plan}){let kit=useKit();/* @__PURE__ */
76
+ /* @__PURE__ */jsxRuntime.jsx(T,{k:"itemsName",bare:true,children:name}),rx?/* @__PURE__ */jsxRuntime.jsx(Pill2,{pill:{label:copy.rx,tone:"rx"}}):null,(pills??[]).map(p=>/* @__PURE__ */jsxRuntime.jsx(Pill2,{pill:p},p.label))]})}var APP_INK={colors:{ink:everfurTheme.colors.ink}};function Sum({rows:rows,total:total}){let lines=rows.map((r,i)=>({key:`${r.k}-${i}`,term:r.k,value:r.v})),last=total?lines[lines.length-1]:void 0;/* @__PURE__ */
77
+ return jsxRuntime.jsx(BlockScope,{children:/* @__PURE__ */jsxRuntime.jsx(ThemeProvider,{theme:APP_INK,children:/* @__PURE__ */jsxRuntime.jsx(SummaryList,{rows:last?lines.slice(0,-1):lines,total:last})})})}function RecRows({label:label,rows:rows,testID:testID}){/* @__PURE__ */
78
+ return jsxRuntime.jsx(BlockScope,{children:/* @__PURE__ */jsxRuntime.jsx(ThemeProvider,{theme:APP_INK,children:/* @__PURE__ */jsxRuntime.jsx(ListSection,{variant:"tiles",inset:false,label:label,testID:testID,children:rows.map(r=>/* @__PURE__ */jsxRuntime.jsx(ListRow,{icon:({size:size})=>/* @__PURE__ */jsxRuntime.jsx(Icon,{name:r.icon,size:size,color:inkOf("recIcon")}),title:r.title,subtitle:r.meta,trailing:r.pill?/* @__PURE__ */jsxRuntime.jsx(Pill2,{pill:r.pill}):void 0,chevron:false,accessibilityRole:"link",accessibilityLabel:[r.title,r.meta,r.pill?.label].filter(Boolean).join(", "),onPress:r.onPress},r.key))})})})}function Rows({rows:rows,plan:plan}){let kit=useKit();/* @__PURE__ */
33
79
  return jsxRuntime.jsx(reactNative.View,{children:rows.map((r,i)=>{let pad2;return plan?pad2=kit.v(i===0?"planRowsLiFirst":"planRowsLiNext"):rows.length===1?pad2={}:i===0?pad2=kit.v("rowsLiFirst"):i===rows.length-1?pad2=kit.v("rowsLiNext"):pad2={...kit.v("rowsLiNext"),paddingBottom:PHONE_BOX.rowsLiFirst.paddingBottom},/* @__PURE__ */jsxRuntime.jsxs(reactNative.View,{style:[pad2,{flexDirection:"row",alignItems:"center",rowGap:0,columnGap:0}],children:[
34
80
  /* @__PURE__ */jsxRuntime.jsxs(reactNative.View,{style:{flex:1,minWidth:0},children:[
35
81
  /* @__PURE__ */jsxRuntime.jsx(T,{k:"rowsK",children:r.k}),r.v?/* @__PURE__ */jsxRuntime.jsx(T,{k:"rowsV",children:r.v}):null,r.meta?/* @__PURE__ */jsxRuntime.jsx(T,{k:"rowsMeta",style:r.metaAlert?{color:inkOf("pillOverdue")}:null,children:r.meta}):null,r.alert?/* @__PURE__ */jsxRuntime.jsx(InlineError,{line:r.alert}):null]}),r.end?/* @__PURE__ */jsxRuntime.jsx(reactNative.View,{style:{marginLeft:PHONE_BOX.rowsLiFirst.columnGap},children:r.end}):null]},r.key)})})}function Legal({line:line}){/* @__PURE__ */
36
82
  return jsxRuntime.jsx(reactNative.View,{testID:"shop-legal",children:/* @__PURE__ */jsxRuntime.jsx(T,{k:"legal",children:line})})}function busyLabel(a){return a.busy&&a.busyLabel?a.busyLabel:a.label}function InkButton({action:action}){let kit=useKit();/* @__PURE__ */
37
- return jsxRuntime.jsx(Press,{onPress:action.onPress,disabled:action.disabled===true,style:[kit.v("btnInk"),{flexDirection:"row",alignItems:"center",justifyContent:"center"}],children:/* @__PURE__ */jsxRuntime.jsx(T,{k:"btnInk",bare:true,children:busyLabel(action)})})}function OutlineButton({action:action,k:k,icon:icon,iconKey:iconKey}){let kit=useKit();/* @__PURE__ */
38
- return jsxRuntime.jsxs(Press,{onPress:action.onPress,disabled:action.disabled===true,style:[kit.v(k),{flexDirection:"row",alignItems:"center",justifyContent:"center",alignSelf:k==="btnOutline"||k==="btnDanger"?"stretch":"flex-start"}],children:[icon&&iconKey?/* @__PURE__ */jsxRuntime.jsx(PartIcon,{name:icon,k:iconKey,inkKey:k}):null,
39
- /* @__PURE__ */jsxRuntime.jsx(T,{k:k==="btnRow"?"btnRowLabel":k,bare:true,children:busyLabel(action)})]})}function ActText({label:label,onPress:onPress,disabled:disabled}){/* @__PURE__ */
40
- return jsxRuntime.jsx(Press,{onPress:onPress,disabled:disabled===true,children:/* @__PURE__ */jsxRuntime.jsx(T,{k:"itemsActButton",bare:true,style:[underline("itemsActButton"),{textAlign:"left"}],children:label})})}function TrayBar({action:action,fine:fine2,error:error}){let kit=useKit();return!action&&!fine2&&!error?null:/* @__PURE__ */jsxRuntime.jsxs(reactNative.View,{style:kit.v("traybar"),testID:"shop-traybar",children:[
41
- /* @__PURE__ */jsxRuntime.jsx(InlineError,{line:error??null}),action?/* @__PURE__ */jsxRuntime.jsx(InkButton,{action:action}):null,fine2?/* @__PURE__ */jsxRuntime.jsx(T,{k:"traybarFine",children:fine2}):null,
83
+ return jsxRuntime.jsx(Press,{onPress:action.onPress,disabled:action.disabled===true,style:[kit.v("btnInk"),{flexDirection:"row",alignItems:"center",justifyContent:"center"}],children:/* @__PURE__ */jsxRuntime.jsx(T,{k:"btnInk",bare:true,children:busyLabel(action)})})}function OutlineButton({action:action,k:k2,icon:icon,iconKey:iconKey}){let kit=useKit();/* @__PURE__ */
84
+ return jsxRuntime.jsxs(Press,{onPress:action.onPress,disabled:action.disabled===true,style:[kit.v(k2),{flexDirection:"row",alignItems:"center",justifyContent:"center",alignSelf:k2==="btnOutline"||k2==="btnDanger"?"stretch":"flex-start"}],children:[icon&&iconKey?/* @__PURE__ */jsxRuntime.jsx(PartIcon,{name:icon,k:iconKey,inkKey:k2}):null,
85
+ /* @__PURE__ */jsxRuntime.jsx(T,{k:k2==="btnRow"?"btnRowLabel":k2,bare:true,children:busyLabel(action)})]})}function ActText({label:label,onPress:onPress,disabled:disabled}){/* @__PURE__ */
86
+ return jsxRuntime.jsx(Press,{onPress:onPress,disabled:disabled===true,children:/* @__PURE__ */jsxRuntime.jsx(T,{k:"itemsActButton",bare:true,style:[underline("itemsActButton"),{textAlign:"left"}],children:label})})}function TrayBar({action:action,fine:fine3,error:error}){let kit=useKit();return!action&&!fine3&&!error?null:/* @__PURE__ */jsxRuntime.jsxs(reactNative.View,{style:kit.v("traybar"),testID:"shop-traybar",children:[
87
+ /* @__PURE__ */jsxRuntime.jsx(InlineError,{line:error??null}),action?/* @__PURE__ */jsxRuntime.jsx(InkButton,{action:action}):null,fine3?/* @__PURE__ */jsxRuntime.jsx(T,{k:"traybarFine",children:fine3}):null,
42
88
  /* @__PURE__ */jsxRuntime.jsx(Decor,{k:"traybar"})]})}function Ghost({rows:rows=3}){let kit=useKit(),widths=["100%","82%","64%"];/* @__PURE__ */
43
89
  return jsxRuntime.jsx(reactNative.View,{style:kit.v("ghost"),accessibilityElementsHidden:true,importantForAccessibility:"no-hide-descendants",children:Array.from({length:rows},(_,i)=>/* @__PURE__ */jsxRuntime.jsx(reactNative.View,{style:[kit.v("ghostBar"),{width:widths[i%3]}]},i))})}function LoadFailed({copy:copy,thing:thing,retry:retry}){/* @__PURE__ */
44
- return jsxRuntime.jsxs(Card,{children:[
90
+ return jsxRuntime.jsxs(Card2,{children:[
45
91
  /* @__PURE__ */jsxRuntime.jsx(T,{k:"cardLead",children:copy.loadFailed(thing)}),
46
92
  /* @__PURE__ */jsxRuntime.jsx(OutlineButton,{k:"btnSm",action:{label:copy.tryAgain,onPress:retry}})]})}function InlineError({line:line}){return line?/* @__PURE__ */jsxRuntime.jsx(reactNative.View,{accessibilityLiveRegion:"polite",accessibilityRole:"alert",children:/* @__PURE__ */jsxRuntime.jsx(T,{k:"noteAfterSum",style:{color:inkOf("pillOverdue")},children:line})}):null}function ShopSwitch({on:on,label:label,disabled:disabled,onChange:onChange}){let kit=useKit();/* @__PURE__ */
47
93
  return jsxRuntime.jsxs(Press,{role:"switch",label:label,selected:on,disabled:disabled===true,onPress:()=>onChange(!on),style:kit.v("switch"),children:[
@@ -64,7 +110,7 @@ return jsxRuntime.jsxs(reactNative.View,{style:[li,{flexDirection:"row",alignIte
64
110
  /* @__PURE__ */jsxRuntime.jsx(reactNative.View,{style:{width:DOT_COLUMN,marginRight:li.columnGap},children:/* @__PURE__ */jsxRuntime.jsx(Dot,{state:s.state})}),
65
111
  /* @__PURE__ */jsxRuntime.jsxs(reactNative.View,{style:{flex:1,minWidth:0},children:[
66
112
  /* @__PURE__ */jsxRuntime.jsxs(reactNative.View,{style:[kit.v(titleKey),{flexDirection:"row",flexWrap:"wrap",alignItems:"center"}],children:[
67
- /* @__PURE__ */jsxRuntime.jsx(T,{k:titleKey,bare:true,children:s.title}),s.state==="now"?/* @__PURE__ */jsxRuntime.jsx(Pill,{pill:{label:copy.now,tone:"stable"}}):null]}),s.when?/* @__PURE__ */jsxRuntime.jsx(T,{k:"trackerWhen",children:s.when}):null,s.text?/* @__PURE__ */jsxRuntime.jsx(T,{k:"trackerText",children:s.text}):null]})]},s.key)})})}var SHOP_FOREGROUND_COOLDOWN_MS=2e3;function useRereadOnForeground(signal,reread,enabled=true){let latest=react.useRef({reread:reread,enabled:enabled});latest.current={reread:reread,enabled:enabled},react.useEffect(()=>{let last=Number.NEGATIVE_INFINITY;return signal(()=>{if(!latest.current.enabled)return;let now=Date.now();now-last<SHOP_FOREGROUND_COOLDOWN_MS||(last=now,latest.current.reread())})},[signal])}var appForeground=listener=>{let away=reactNative.AppState.currentState==="background",subscription=reactNative.AppState.addEventListener("change",next=>{next==="background"?away=true:next==="active"&&away&&(away=false,listener())});return()=>subscription.remove()};var PAGE=20;function useOrdersList(){let{client:client,copy:copy}=useShop(),first=useShopRead("v3-orders",()=>client.orders({limit:PAGE})),[more,setMore]=react.useState(null),[moreBusy,setMoreBusy]=react.useState(false),[moreError,setMoreError]=react.useState(null),firstValue=first.value;react.useEffect(()=>setMore(null),[firstValue]),useRereadOnForeground(appForeground,first.reread,more===null);let orders=[...firstValue?.orders??[],...more?.orders??[]],cursor=more?more.cursor:firstValue?.nextCursor??null,missing=orders.filter(o=>!o.items).map(o=>o.orderId),details=useShopRead(missing.length>0?`v3-order-items:${missing.join(",")}`:null,async()=>{let read=await Promise.all(missing.map(id=>client.order(id)));return omsOk(new Map(missing.map((id,i)=>[id,read[i].ok?read[i].value.lines.map(l=>({title:l.title,quantity:l.quantity,rx:l.requiresRx,imageUrl:l.imageUrl??null})):[]])))}),named=o=>o.items?o.items.map(i=>({title:i.title,quantity:i.quantity,rx:false,imageUrl:i.imageUrl??null})):details.value?.get(o.orderId)??null,busy=react.useRef(false),loadMore=react.useCallback(()=>{!cursor||busy.current||(busy.current=true,setMoreBusy(true),setMoreError(null),client.orders({limit:PAGE,cursor:cursor}).then(res=>{busy.current=false,setMoreBusy(false),res.ok?setMore(m=>({orders:[...m?.orders??[],...res.value.orders],cursor:res.value.nextCursor})):setMoreError(refusalLine(copy,res.error))}))},[client,copy,cursor]);return{first:first,orders:orders,named:named,hasMore:cursor!==null,loadMore:loadMore,moreBusy:moreBusy,moreError:moreError}}function useOrderModel(orderId,go){let{client:client,copy:copy,v3:v3,payments:payments}=useShop(),order=useOrder(orderId);useRereadOnForeground(appForeground,order.reread);let cards=usePaymentMethods(),[line,setLine]=react.useState(()=>peekOrderNotice(client,orderId));react.useEffect(()=>dropOrderNotice(client,orderId),[client,orderId]);let[asking,setAsking]=react.useState(false),cancel=useShopAction(keys=>client.cancelOrder(orderId,{idempotencyKey:keys.key("cancel"),reasonCode:"customer_request"})),pay=useShopAction(async keys=>{let key=keys.key("pay");for(let round=0;round<3;round+=1){let res=await client.payOrder(orderId,{idempotencyKey:key});if(!res.ok)return omsErr(res.error);if(res.value.outcome==="authorized")return omsOk({kind:"confirmed",orderIds:[orderId]});if(!payments||!res.value.payerAction)return omsOk({kind:"needsPayerAction",orderIds:[orderId]});let step=await payments.handleNextAction(res.value.payerAction,{orderId:orderId});if(!step.ok)return omsOk(step.closed?{kind:"payerActionClosed",orderIds:[orderId]}:{kind:"payerActionFailed",orderIds:[orderId],message:step.message});key=keys.next("pay")}return omsOk({kind:"needsPayerAction",orderIds:[orderId]})}),o=order.phase==="ready"&&order.value?order.value:null,busy=pay.busy||cancel.busy,onPay=()=>{setLine(null),pay.run().then(res=>{res&&(setLine(res.ok?outcomeLine(copy,res.value):refusalLine(copy,res.error)),order.refresh())})},onCancel=()=>{cancel.run().then(res=>{if(!res)return;if(!res.ok){setLine(refusalLine(copy,res.error)),setAsking(false),order.reread();return}setAsking(false),cancel.reset();let out=res.value.outcome;setLine(out==="requested"?v3.cancelRequested:out==="not_cancellable"?copy.refusal.operation_not_supported??copy.actionFailed:null),order.refresh()})},sum=[],refundRow=null,paidCard,buyAgain=null,shown=line;if(o){let subtotal=o.subtotal??o.lines.reduce((n,l)=>n+l.unitPrice*l.quantity,0),discount=o.discount??o.lines.reduce((n,l)=>n+l.discount,0),tax=o.tax??o.lines.reduce((n,l)=>n+l.tax,0)+o.shippingTax,refunded=o.refunds.reduce((n,r)=>r.state==="succeeded"?n+r.amount:n,0);sum=[{k:v3.subtotal,v:formatCents(subtotal)},...discount>0?[{k:v3.discount,v:formatCents(-discount)}]:[],{k:copy.shipping,v:o.shipping===0?copy.free:formatCents(o.shipping)},{k:copy.tax,v:formatCents(tax)},{k:copy.total,v:formatCents(o.summary.total),total:true}],refundRow=refunded>0?{k:v3.refund,v:formatCents(refunded)}:null,paidCard=o.paymentMethodId&&paymentHeld(o)?(cards.value??[]).find(c=>c.paymentMethodId===o.paymentMethodId):void 0;let plain=o.lines.filter(l=>!l.requiresRx),rxLine=o.lines.find(l=>l.requiresRx)??null;buyAgain=offersBuyAgain(o.summary.status)?plain.length>0?()=>{for(let l of plain)addToCart(client,{offerId:l.offerId,title:l.title,unitPrice:l.unitPrice,requiresRx:false,quantity:l.quantity,...l.petId?{petId:l.petId}:{},...l.imageUrl?{imageUrl:l.imageUrl}:{}});go({name:"cart"})}:rxLine?()=>go({name:"product",offerId:rxLine.offerId,...rxLine.petId?{petId:rxLine.petId}:{}}):null:null,(line===copy.cardStepClosed||line===copy.cardStepFailed)&&paymentSettled(o)&&(shown=null)}return{order:order,o:o,ref:o?.summary.referenceNumber??null,line:shown,asking:asking,setAsking:setAsking,pay:pay,cancel:cancel,busy:busy,onPay:onPay,onCancel:onCancel,sum:sum,refundRow:refundRow,paidCard:paidCard,buyAgain:buyAgain}}var freezeInPlace=Object.freeze;function deepFreeze(value){if(value!==null&&typeof value=="object"&&!Object.isFrozen(value)){freezeInPlace(value);for(let key of Object.keys(value))deepFreeze(value[key])}return value}var TEXT_SCALE_TIER_CAPS=/* @__PURE__ */Object.freeze({content:0,heading:2,control:1.8,compact:1.5,badge:1.3}),SPACE={xs:4,sm:8,md:12,lg:16,xl:24,xxl:32},RADIUS={tile:5,xs:6,sm:10,md:14,lg:20,xl:28,pill:500},TYPE_SIZE={nano:8,small:9,micro:10,tiny:11,caption:13,bodyTight:15,body:17,subtitle:20,heading:22,verdict:24},LINE_HEIGHT={tight:1.15,snug:1.3,normal:1.4,relaxed:1.55},WEIGHT={regular:"400",medium:"500",bold:"700"},LETTER_SPACING={eyebrow:1,monoWide:.9,headerBrand:-.42,tight:-.35},DEFAULT_MAX_FONT_SCALE=0,SYSTEM_FONT_FAMILY="System",SYSTEM_MONO_FAMILY="monospace",TIERS=["content","heading","control","compact","badge"];function authoredTierSizes(size){let out={};for(let tier of TIERS)out[tier]=size;return out}var NO_FONT_SOURCES=[];function baseType(){return{family:SYSTEM_FONT_FAMILY,mono:SYSTEM_MONO_FAMILY,fontUrl:null,families:{regular:SYSTEM_FONT_FAMILY,medium:SYSTEM_FONT_FAMILY,bold:SYSTEM_FONT_FAMILY,mono:SYSTEM_MONO_FAMILY,monoMedium:SYSTEM_MONO_FAMILY,monoBold:SYSTEM_MONO_FAMILY},namedFaces:{regular:false,medium:false,bold:false,mono:false,monoMedium:false,monoBold:false},fontUrls:{},size:TYPE_SIZE,tierSizes:authoredTierSizes(TYPE_SIZE),lineHeight:LINE_HEIGHT,weight:WEIGHT,letterSpacing:LETTER_SPACING,scale:1,maxScale:DEFAULT_MAX_FONT_SCALE,scaleCaps:TEXT_SCALE_TIER_CAPS,headingFamily:null,headingWeight:null,fontSources:NO_FONT_SOURCES}}var NO_SLOTS={},EASING_CURVES=/* @__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(curve){return`cubic-bezier(${curve.join(", ")})`}var MOTION={duration:{instant:80,fast:140,normal:220,slow:320},spring:{gentle:{damping:18,stiffness:200}},easing:{standard:cssCubicBezier(EASING_CURVES.standard),emphasized:cssCubicBezier(EASING_CURVES.emphasized),exit:cssCubicBezier(EASING_CURVES.exit)},reducedMotion:false},LIGHT_COLOR={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)"},EVERFUR_LIGHT=deepFreeze({brightness:"light",highContrast:false,meta:{displayName:"Everfur",logoUrl:null,placeholder:null,hidePoweredBy:false,assistantAvatarUrl:null},color:LIGHT_COLOR,space:SPACE,radius:RADIUS,type:baseType(),motion:MOTION,slots:NO_SLOTS}),DARK_COLOR={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)"};deepFreeze({brightness:"dark",highContrast:false,meta:{displayName:"Everfur",logoUrl:null,placeholder:null,hidePoweredBy:false,assistantAvatarUrl:null},color:DARK_COLOR,space:SPACE,radius:RADIUS,type:baseType(),motion:MOTION,slots:NO_SLOTS});var EVERFUR_THEME_CONTEXT_SYMBOL=/* @__PURE__ */Symbol.for("@everfur/sdk#EverfurThemeContext@v1"),globalThemeHost=globalThis,EverfurThemeContext=globalThemeHost[EVERFUR_THEME_CONTEXT_SYMBOL]??(globalThemeHost[EVERFUR_THEME_CONTEXT_SYMBOL]=react.createContext(EVERFUR_LIGHT));EverfurThemeContext.displayName??="EverfurThemeContext";function useEverfurTheme(){return react.useContext(EverfurThemeContext)}function tierMultiplier(type,tier){let cap=type.scaleCaps[tier];return cap>0?cap:void 0}function Text2({tier:tier="content",...props}){let{type:type}=useEverfurTheme(),cap=tierMultiplier(type,tier);return react.createElement(reactNative.Text,cap===void 0?props:{maxFontSizeMultiplier:cap,...props})}var TextInput=react.forwardRef(function(props,ref){return react.createElement(reactNative.TextInput,{...props,...ref===null?{}:{ref:ref}})});var DESIGN_RN_PLAN_ICONS=/* @__PURE__ */Object.freeze({shield:{strokes:[{width:1.8,cap:true,closed:true,points:[12,3,19,6,19,12,18.759,14.125,18.074,16,17,17.625,15.593,19,13.907,20.125,12,21,10.093,20.125,8.407,19,7,17.625,5.926,16,5.241,14.125,5,12,5,6]},{width:1.8,cap:true,closed:false,points:[9,12,11,14,15,10]}],boxes:[],triangles:[],seams:[]},arrow:{strokes:[{width:2,cap:true,closed:false,points:[4.5,12,19,12]},{width:2,cap:true,closed:false,points:[13.5,6.5,19,12,13.5,17.5]}],boxes:[],triangles:[],seams:[]},check:{strokes:[{width:2.4,cap:true,closed:false,points:[5,12.6,9.4,17,19,7.4]}],boxes:[],triangles:[],seams:[]},star:{strokes:[],boxes:[],triangles:[[12,16.9,6.8,19.6,7.8,13.8],[16.2,13.8,17.2,19.6,12,16.9],[7.8,13.8,3.5,9.7,9.4,8.8],[14.6,8.8,20.5,9.7,16.2,13.8],[9.4,8.8,12,3.5,14.6,8.8],[16.2,13.8,12,16.9,7.8,13.8],[14.6,8.8,16.2,13.8,7.8,13.8],[14.6,8.8,7.8,13.8,9.4,8.8]],seams:[[12,16.9,7.8,13.8,.245,.677],[12,16.9,16.2,13.8,.245,.677],[7.8,13.8,9.4,8.8,.69,.248],[14.6,8.8,16.2,13.8,.248,.243],[14.6,8.8,9.4,8.8,.68,.245],[16.2,13.8,7.8,13.8,.677,.68],[14.6,8.8,7.8,13.8,.68,.69]]},truck:{strokes:[{width:1.7,cap:false,closed:true,points:[2.8,6.5,14.2,6.5,14.2,16,2.8,16]},{width:1.7,cap:false,closed:false,points:[14.2,9.5,17.8,9.5,21.2,12.9,21.2,16,14.2,16]}],boxes:[{x:5,y:15.8,w:3.6,h:3.6,radius:1.8,width:1.7},{x:15.4,y:15.8,w:3.6,h:3.6,radius:1.8,width:1.7}],triangles:[],seams:[]},refresh:{strokes:[{width:1.7,cap:true,closed:false,points:[4,12,4.343,14.363,5.368,16.52,6.985,18.278,9.048,19.48,11.374,20.021,13.756,19.85,15.981,18.984,17.852,17.5,19.201,15.53,19.909,13.249,19.912,10.861,19.21,8.578,17.865,6.605,15.998,5.116,13.775,4.245,11.393,4.068,9.066,4.602,7,5.8]},{width:1.7,cap:true,closed:false,points:[4,4,4,8,8,8]}],boxes:[],triangles:[],seams:[]},card:{strokes:[{width:1.7,cap:true,closed:false,points:[3,9.5,21,9.5]},{width:1.7,cap:true,closed:false,points:[6.5,15,10.5,15]}],boxes:[{x:3,y:5.5,w:18,h:13,radius:2.2,width:1.7}],triangles:[],seams:[]},alert:{strokes:[{width:1.9,cap:true,closed:true,points:[12,3.5,21.5,20,2.5,20]},{width:1.9,cap:true,closed:false,points:[12,10,12,14.5]},{width:1.9,cap:true,closed:false,points:[12,17.2,12.01,17.2]}],boxes:[],triangles:[],seams:[]},x:{strokes:[{width:2,cap:true,closed:false,points:[6.5,6.5,17.5,17.5]},{width:2,cap:true,closed:false,points:[17.5,6.5,6.5,17.5]}],boxes:[],triangles:[],seams:[]},chat:{strokes:[{width:1.7,cap:false,closed:true,points:[5,5.2,19,5.2,19.8,5.414,20.386,6,20.6,6.8,20.6,15.4,20.386,16.2,19.8,16.786,19,17,10.3,17,5.5,20.6,5.5,17,5,17,4.2,16.786,3.614,16.2,3.4,15.4,3.4,6.8,3.614,6,4.2,5.414,5,5.2]}],boxes:[],triangles:[],seams:[]},repeat:{strokes:[{width:1.8,cap:true,closed:false,points:[4.5,11,4.824,8.824,5.766,6.837,7.244,5.208,9.131,4.077,11.264,3.543,13.461,3.65,15.533,4.391,17.3,5.7,19.5,8]},{width:1.8,cap:true,closed:false,points:[19.5,3.5,19.5,8,15,8]},{width:1.8,cap:true,closed:false,points:[19.5,13,19.176,15.176,18.234,17.163,16.756,18.792,14.869,19.923,12.736,20.457,10.539,20.35,8.467,19.609,6.7,18.3,4.5,16]},{width:1.8,cap:true,closed:false,points:[4.5,20.5,4.5,16,9,16]}],boxes:[],triangles:[],seams:[]},calendar:{strokes:[{width:1.8,cap:true,closed:false,points:[4,10,20,10]},{width:1.8,cap:true,closed:false,points:[8.5,3.5,8.5,7.5]},{width:1.8,cap:true,closed:false,points:[15.5,3.5,15.5,7.5]}],boxes:[{x:4,y:5.5,w:16,h:15,radius:2.5,width:1.8}],triangles:[],seams:[]},flame:{strokes:[],boxes:[],triangles:[[12.15,14.513,13.1,15.2,13.1,13.7],[11.5,13.3,12.15,14.513,13.1,13.7],[16.874,10.907,15.7,9.3,15.381,10.659],[14.7,16.7,16.838,18.516,17.693,16.84],[14.7,16.7,14.489,17.681,16.838,18.516],[18,14.9,14.507,15.633,17.693,16.84],[16.874,10.907,15.381,10.659,14.685,11.707],[17.693,12.759,16.874,10.907,14.685,11.707],[15.538,19.832,16.838,18.516,14.489,17.681],[14.685,11.707,13.959,14.633,17.693,12.759],[17.693,12.759,13.959,14.633,18,14.9],[13.891,20.692,13.055,19.006,12,21],[12,21,12,19.2,10.109,20.692],[8.462,19.832,10.109,20.692,10.659,18.863],[10.659,18.863,9.741,17.97,8.462,19.832],[6.307,16.84,9.602,15.677,6,14.9],[6.273,13.033,6,14.9,9.602,15.677],[9.602,15.677,10.113,14.812,6.273,13.033],[6.988,11.438,6.273,13.033,10.113,14.812],[13.525,7.088,12.856,5.017,12,3.5],[13.856,9.589,13.525,7.088,12,3.5],[13.7,12.4,13.856,9.589,12,3.5],[10.113,14.812,10.792,14.042,6.988,11.438],[14.7,16.7,17.693,16.84,14.507,15.633],[13.7,12.4,13.959,14.633,14.685,11.707],[14.507,15.633,18,14.9,13.959,14.633],[13.1,13.7,13.959,14.633,13.7,12.4],[11.5,13.3,13.1,13.7,13.7,12.4],[7.983,10.048,6.988,11.438,10.792,14.042],[10.792,14.042,11.5,13.3,7.983,10.048],[14.489,17.681,13.913,18.475,15.538,19.832],[13.891,20.692,15.538,19.832,13.913,18.475],[13.891,20.692,13.913,18.475,13.055,19.006],[12,19.2,12,21,13.055,19.006],[10.659,18.863,10.109,20.692,12,19.2],[7.162,18.516,8.462,19.832,9.741,17.97],[9.741,17.97,9.4,16.7,7.162,18.516],[6.307,16.84,7.162,18.516,9.4,16.7],[6.307,16.84,9.4,16.7,9.602,15.677],[9.1,8.8,7.983,10.048,11.5,13.3],[11.5,13.3,13.7,12.4,9.1,8.8],[10.054,7.77,9.1,8.8,13.7,12.4],[10.927,6.683,10.054,7.77,13.7,12.4],[11.613,5.481,10.927,6.683,13.7,12.4],[12.006,4.106,11.613,5.481,13.7,12.4],[12,2.5,12.006,4.106,13.7,12.4],[12,2.5,13.7,12.4,12,3.5]],seams:[[12.15,14.513,13.1,13.7,.121,.428],[11.5,13.3,13.1,13.7,.681,.356],[15.381,10.659,16.874,10.907,.033,.883],[14.7,16.7,16.838,18.516,.648,1.318],[14.7,16.7,17.693,16.84,.648,1.533],[14.489,17.681,16.838,18.516,.51,1.318],[14.507,15.633,18,14.9,.782,1.787],[14.507,15.633,17.693,16.84,.782,1.533],[14.685,11.707,16.874,10.907,.68,.883],[14.685,11.707,17.693,12.759,.61,.484],[14.489,17.681,15.538,19.832,.51,1.115],[13.959,14.633,14.685,11.707,1.333,.576],[13.959,14.633,17.693,12.759,.851,.484],[13.959,14.633,18,14.9,.851,1.787],[13.055,19.006,13.891,20.692,.36,.984],[12,21,13.055,19.006,.945,.395],[12,19.2,12,21,.394,.945],[10.109,20.692,12,19.2,.715,.394],[10.109,20.692,10.659,18.863,.715,.428],[10.659,18.863,8.462,19.832,.428,.809],[8.462,19.832,9.741,17.97,.809,.525],[6.307,16.84,9.602,15.677,1.65,.812],[6,14.9,9.602,15.677,.194,1.012],[6.273,13.033,9.602,15.677,2.068,1.012],[10.113,14.812,6.273,13.033,1.217,2.068],[10.113,14.812,6.988,11.438,1.217,2.2],[12,3.5,13.525,7.088,4.697,5.571],[12,3.5,13.856,9.589,4.697,3.017],[12,3.5,13.7,12.4,4.648,26.765],[10.792,14.042,6.988,11.438,1.339,2.2],[13.7,12.4,13.959,14.633,.819,1.333],[13.1,13.7,13.7,12.4,0,.819],[11.5,13.3,13.7,12.4,.681,.537],[10.792,14.042,7.983,10.048,1.339,2.328],[11.5,13.3,7.983,10.048,1.438,2.328],[13.913,18.475,15.538,19.832,.409,1.115],[13.891,20.692,13.913,18.475,.984,.409],[7.162,18.516,9.741,17.97,.977,.525],[7.162,18.516,9.4,16.7,.977,.677],[6.307,16.84,9.4,16.7,1.65,.677],[11.5,13.3,9.1,8.8,1.438,1.129],[13.7,12.4,9.1,8.8,2.046,1.129],[10.054,7.77,13.7,12.4,.079,2.285],[10.927,6.683,13.7,12.4,.237,3.126],[11.613,5.481,13.7,12.4,.475,5.451],[12.006,4.106,13.7,12.4,.961,15.892],[12,2.5,13.7,12.4,2.974,26.765]]},box:{strokes:[{width:1.7,cap:false,closed:true,points:[3.8,7.8,12,4,20.2,7.8,20.2,16.4,12,20,3.8,16.4]},{width:1.7,cap:false,closed:false,points:[3.8,7.8,12,11.6,20.2,7.8]},{width:1.7,cap:false,closed:false,points:[12,11.6,12,20]}],boxes:[],triangles:[],seams:[]},cart:{strokes:[{width:1.8,cap:true,closed:false,points:[2.8,4,5.4,4,7.7,14.6,8.203,15.401,9.1,15.7,17.3,15.7,18.197,15.401,18.7,14.6,20.4,7.6,6.3,7.6]}],boxes:[{x:8.3,y:18.3,w:2.6,h:2.6,radius:1.3,width:1.8},{x:15.8,y:18.3,w:2.6,h:2.6,radius:1.3,width:1.8}],triangles:[],seams:[]},minus:{strokes:[{width:2.2,cap:true,closed:false,points:[6,12,18,12]}],boxes:[],triangles:[],seams:[]},plus:{strokes:[{width:2.2,cap:true,closed:false,points:[12,6,12,18]},{width:2.2,cap:true,closed:false,points:[6,12,18,12]}],boxes:[],triangles:[],seams:[]},chev:{strokes:[{width:2,cap:true,closed:false,points:[9,5.5,15.5,12,9,18.5]}],boxes:[],triangles:[],seams:[]},pulse:{strokes:[{width:1.8,cap:true,closed:false,points:[3,12.5,6.8,12.5,9.2,6.9,13.4,17.5,15.8,12.5,21,12.5]}],boxes:[],triangles:[],seams:[]},file:{strokes:[{width:1.7,cap:true,closed:true,points:[7,3.5,14.2,3.5,18.5,7.8,18.5,20,18.324,20.424,17.9,20.6,7,20.6,6.576,20.424,6.4,20,6.4,4.1,6.576,3.676,7,3.5]},{width:1.7,cap:true,closed:false,points:[14,3.6,14,8,18.4,8]},{width:1.7,cap:true,closed:false,points:[9.4,12.4,14.6,12.4]},{width:1.7,cap:true,closed:false,points:[9.4,15.8,14.6,15.8]}],boxes:[],triangles:[],seams:[]},kit:{strokes:[{width:1.7,cap:false,closed:true,points:[4,7.6,12,3.6,20,7.6,20,16.4,12,20.4,4,16.4]},{width:1.7,cap:false,closed:false,points:[4,7.6,12,11.6,20,7.6]},{width:1.7,cap:false,closed:false,points:[12,11.6,12,20.4]}],boxes:[],triangles:[],seams:[]},dna:{strokes:[{width:1.7,cap:true,closed:false,points:[7,3.5,7.28,4.645,8.04,5.594,9.16,6.394,10.52,7.097,12,7.75,13.48,8.403,14.84,9.106,15.96,9.906,16.72,10.855,17,12,16.72,13.145,15.96,14.094,14.84,14.894,13.48,15.597,12,16.25,10.52,16.903,9.16,17.606,8.04,18.406,7.28,19.355,7,20.5]},{width:1.7,cap:true,closed:false,points:[17,3.5,16.72,4.645,15.96,5.594,14.84,6.394,13.48,7.097,12,7.75,10.52,8.403,9.16,9.106,8.04,9.906,7.28,10.855,7,12,7.28,13.145,8.04,14.094,9.16,14.894,10.52,15.597,12,16.25,13.48,16.903,14.84,17.606,15.96,18.406,16.72,19.355,17,20.5]},{width:1.7,cap:true,closed:false,points:[8.6,6.3,15.4,6.3]},{width:1.7,cap:true,closed:false,points:[8.6,17.7,15.4,17.7]},{width:1.7,cap:true,closed:false,points:[10.4,9.6,13.6,9.6]},{width:1.7,cap:true,closed:false,points:[10.4,14.4,13.6,14.4]}],boxes:[],triangles:[],seams:[]},heart:{strokes:[{width:1.8,cap:false,closed:true,points:[12,20.2,11.739,20.035,11.041,19.559,10.03,18.804,8.831,17.799,7.569,16.575,6.37,15.163,5.359,13.593,4.661,11.895,4.4,10.1,4.833,8.454,5.87,7.105,7.349,6.264,9.039,6.062,10.675,6.532,12,7.6,13.325,6.532,14.961,6.062,16.651,6.264,18.13,7.105,19.167,8.454,19.6,10.1,19.339,11.895,18.641,13.593,17.63,15.163,16.431,16.575,15.169,17.799,13.97,18.804,12.959,19.559,12.261,20.035,12,20.2]}],boxes:[],triangles:[],seams:[]},bottle:{strokes:[{width:1.7,cap:false,closed:true,points:[7.2,6.2,16.8,6.2,17.507,6.493,17.8,7.2,17.8,19.5,17.572,20.35,16.95,20.972,16.1,21.2,7.9,21.2,7.05,20.972,6.428,20.35,6.2,19.5,6.2,7.2,6.493,6.493,7.2,6.2]},{width:1.7,cap:false,closed:true,points:[9,11,15,11,15,16,9,16]}],boxes:[{x:8,y:2.8,w:8,h:3.4,radius:1,width:1.7}],triangles:[],seams:[]},harness:{strokes:[{width:1.5,cap:true,closed:false,points:[7.5,4.5,7.728,6.82,8.364,8.708,9.336,10.116,10.572,10.996,12,11.3,13.428,10.996,14.664,10.116,15.636,8.708,16.272,6.82,16.5,4.5]},{width:1.5,cap:true,closed:true,points:[5,12.6,19,12.6,19,17.2,18.692,18.35,17.85,19.192,16.7,19.5,7.3,19.5,6.15,19.192,5.308,18.35,5,17.2]},{width:1.5,cap:true,closed:false,points:[8.2,15.3,15.8,15.3]}],boxes:[{x:10.7,y:8.9,w:2.6,h:2.6,radius:1.3,width:1.5}],triangles:[],seams:[]},ramp:{strokes:[{width:1.5,cap:true,closed:false,points:[2.5,19.5,21.5,19.5]},{width:1.5,cap:true,closed:false,points:[3.5,19.5,3.5,16.5,8,16.5,8,13.5,12.5,13.5,12.5,10.5,17,10.5,17,7.5,20.5,7.5,20.5,19.5]},{width:1.5,cap:true,closed:false,points:[3.5,16.5,20.5,7.5],opacity:.35}],boxes:[],triangles:[],seams:[]}});var BOX=24,FINE=16,SEAM=.8,fine=dp=>Math.round(dp*FINE);function place(cx,cy,W,H,ux,uy){let left=cx-W/2,top=cy-H/2,x=Math.round(left),y=Math.round(top);return{position:"absolute",left:x,top:y,width:W,height:H,transform:[{translateX:left-x},{translateY:top-y},{rotate:`${Math.atan2(uy,ux)*180/Math.PI}deg`},{scale:1/FINE}]}}function strokePieces(icon,k,out){for(let s of icon.strokes){let w=s.width*k,pts=s.points,n=pts.length/2,last=s.closed?n:n-1;for(let i=0;i<last;i+=1){let j=(i+1)%n,px=(pts[i*2]??0)*k,py=(pts[i*2+1]??0)*k,dx=(pts[j*2]??0)*k-px,dy=(pts[j*2+1]??0)*k-py,len=Math.hypot(dx,dy);if(len===0&&!(n===2&&s.cap))continue;let ux=len===0?1:dx/len,uy=len===0?0:dy/len,e0=s.closed||i>0||s.cap?w/2:0,e1=s.closed||j!==n-1||s.cap?w/2:0,along=(len+e1-e0)/2;out.push({paint:"backgroundColor",style:{...place(px+ux*along,py+uy*along,fine(len+e0+e1),fine(w),ux,uy),borderTopLeftRadius:e0>0?fine(w)/2:0,borderBottomLeftRadius:e0>0?fine(w)/2:0,borderTopRightRadius:e1>0?fine(w)/2:0,borderBottomRightRadius:e1>0?fine(w)/2:0,...s.opacity===void 0?{}:{opacity:s.opacity}}})}}}function boxPieces(icon,k,out){for(let b of icon.boxes){let w=(b.w+b.width)*k,h=(b.h+b.width)*k;out.push({paint:"borderColor",style:{...place((b.x-b.width/2)*k+w/2,(b.y-b.width/2)*k+h/2,fine(w),fine(h),1,0),borderWidth:fine(b.width*k),borderRadius:(b.radius+b.width/2)*k*FINE,...b.opacity===void 0?{}:{opacity:b.opacity}}})}}function trianglePieces(icon,k,out){for(let t of icon.triangles){let p=[0,1,2].map(i=>[(t[i*2]??0)*k,(t[i*2+1]??0)*k]),base=0,len=-1;for(let i=0;i<3;i+=1){let a2=p[i]??[0,0],b=p[(i+1)%3]??[0,0],d=Math.hypot(b[0]-a2[0],b[1]-a2[1]);d>len&&(len=d,base=i)}if(len<=0)continue;let b0=p[base]??[0,0],b1=p[(base+1)%3]??[0,0],a=p[(base+2)%3]??[0,0],ux=(b1[0]-b0[0])/len,uy=(b1[1]-b0[1])/len,along=(a[0]-b0[0])*ux+(a[1]-b0[1])*uy,across=(a[0]-b0[0])*-uy+(a[1]-b0[1])*ux,h=Math.abs(across),up=across<0,mid=up?-h/2:h/2,bl=fine(along),br=fine(len)-bl,bh=fine(h);out.push({paint:up?"borderBottomColor":"borderTopColor",style:{...place(b0[0]+ux*(len/2)-uy*mid,b0[1]+uy*(len/2)+ux*mid,bl+br,bh,ux,uy),width:0,height:0,borderLeftWidth:bl,borderRightWidth:br,borderLeftColor:"transparent",borderRightColor:"transparent",...up?{borderBottomWidth:bh}:{borderTopWidth:bh}}})}for(let e of icon.seams){let x0=(e[0]??0)*k,y0=(e[1]??0)*k,dx=(e[2]??0)*k-x0,dy=(e[3]??0)*k-y0,d=Math.hypot(dx,dy),in0=SEAM*(e[4]??0),in1=SEAM*(e[5]??0),bar=d-in0-in1;if(d===0||bar<=0)continue;let mid=in0+bar/2;out.push({paint:"backgroundColor",style:place(x0+dx/d*mid,y0+dy/d*mid,fine(bar),fine(SEAM),dx/d,dy/d)})}}var cache=/* @__PURE__ */new Map;function piecesOf(name,size){let key=`${name}:${size}`,hit=cache.get(key);if(hit!==void 0)return hit;let icon=DESIGN_RN_PLAN_ICONS[name],out=[],k=size/BOX;return boxPieces(icon,k,out),strokePieces(icon,k,out),trianglePieces(icon,k,out),cache.set(key,out),out}function FocusIcon({name:name,size:size=18,color:color}){let pieces=DESIGN_RN_PLAN_ICONS[name]===void 0?[]:piecesOf(name,size);/* @__PURE__ */
113
+ /* @__PURE__ */jsxRuntime.jsx(T,{k:titleKey,bare:true,children:s.title}),s.state==="now"?/* @__PURE__ */jsxRuntime.jsx(Pill2,{pill:{label:copy.now,tone:"stable"}}):null]}),s.when?/* @__PURE__ */jsxRuntime.jsx(T,{k:"trackerWhen",children:s.when}):null,s.text?/* @__PURE__ */jsxRuntime.jsx(T,{k:"trackerText",children:s.text}):null]})]},s.key)})})}var SHOP_FOREGROUND_COOLDOWN_MS=2e3;function useRereadOnForeground(signal,reread,enabled=true){let latest=react.useRef({reread:reread,enabled:enabled});latest.current={reread:reread,enabled:enabled},react.useEffect(()=>{let last=Number.NEGATIVE_INFINITY;return signal(()=>{if(!latest.current.enabled)return;let now=Date.now();now-last<SHOP_FOREGROUND_COOLDOWN_MS||(last=now,latest.current.reread())})},[signal])}var appForeground=listener=>{let away=reactNative.AppState.currentState==="background",subscription=reactNative.AppState.addEventListener("change",next=>{next==="background"?away=true:next==="active"&&away&&(away=false,listener())});return()=>subscription.remove()};var PAGE=20;function useOrdersList(){let{client:client,copy:copy}=useShop(),first=useShopRead("v3-orders",()=>client.orders({limit:PAGE})),[more,setMore]=react.useState(null),[moreBusy,setMoreBusy]=react.useState(false),[moreError,setMoreError]=react.useState(null),firstValue=first.value;react.useEffect(()=>setMore(null),[firstValue]),useRereadOnForeground(appForeground,first.reread,more===null);let orders=[...firstValue?.orders??[],...more?.orders??[]],cursor=more?more.cursor:firstValue?.nextCursor??null,missing=orders.filter(o=>!o.items).map(o=>o.orderId),details=useShopRead(missing.length>0?`v3-order-items:${missing.join(",")}`:null,async()=>{let read=await Promise.all(missing.map(id=>client.order(id)));return omsOk(new Map(missing.map((id,i)=>[id,read[i].ok?read[i].value.lines.map(l=>({title:l.title,quantity:l.quantity,rx:l.requiresRx,imageUrl:l.imageUrl??null})):[]])))}),named=o=>o.items?o.items.map(i=>({title:i.title,quantity:i.quantity,rx:false,imageUrl:i.imageUrl??null})):details.value?.get(o.orderId)??null,busy=react.useRef(false),loadMore=react.useCallback(()=>{!cursor||busy.current||(busy.current=true,setMoreBusy(true),setMoreError(null),client.orders({limit:PAGE,cursor:cursor}).then(res=>{busy.current=false,setMoreBusy(false),res.ok?setMore(m=>({orders:[...m?.orders??[],...res.value.orders],cursor:res.value.nextCursor})):setMoreError(refusalLine(copy,res.error))}))},[client,copy,cursor]);return{first:first,orders:orders,named:named,hasMore:cursor!==null,loadMore:loadMore,moreBusy:moreBusy,moreError:moreError}}function useOrderModel(orderId,go){let{client:client,copy:copy,v3:v3,payments:payments}=useShop(),order=useOrder(orderId);useRereadOnForeground(appForeground,order.reread);let cards=usePaymentMethods(),[line,setLine]=react.useState(()=>peekOrderNotice(client,orderId));react.useEffect(()=>dropOrderNotice(client,orderId),[client,orderId]);let[asking,setAsking]=react.useState(false),cancel=useShopAction(keys=>client.cancelOrder(orderId,{idempotencyKey:keys.key("cancel"),reasonCode:"customer_request"})),pay=useShopAction(async keys=>{let key=keys.key("pay");for(let round=0;round<3;round+=1){let res=await client.payOrder(orderId,{idempotencyKey:key});if(!res.ok)return omsErr(res.error);if(res.value.outcome==="authorized")return omsOk({kind:"confirmed",orderIds:[orderId]});if(!payments||!res.value.payerAction)return omsOk({kind:"needsPayerAction",orderIds:[orderId]});let step=await payments.handleNextAction(res.value.payerAction,{orderId:orderId});if(!step.ok)return omsOk(step.closed?{kind:"payerActionClosed",orderIds:[orderId]}:{kind:"payerActionFailed",orderIds:[orderId],message:step.message});key=keys.next("pay")}return omsOk({kind:"needsPayerAction",orderIds:[orderId]})}),o=order.phase==="ready"&&order.value?order.value:null,busy=pay.busy||cancel.busy,onPay=()=>{setLine(null),pay.run().then(res=>{res&&(setLine(res.ok?outcomeLine(copy,res.value):refusalLine(copy,res.error)),order.refresh())})},onCancel=()=>{cancel.run().then(res=>{if(!res)return;if(!res.ok){setLine(refusalLine(copy,res.error)),setAsking(false),order.reread();return}setAsking(false),cancel.reset();let out=res.value.outcome;setLine(out==="requested"?v3.cancelRequested:out==="not_cancellable"?copy.refusal.operation_not_supported??copy.actionFailed:null),order.refresh()})},sum=[],refundRow=null,paidCard,buyAgain=null,shown=line;if(o){let subtotal=o.subtotal??o.lines.reduce((n,l)=>n+l.unitPrice*l.quantity,0),discount=o.discount??o.lines.reduce((n,l)=>n+l.discount,0),tax=o.tax??o.lines.reduce((n,l)=>n+l.tax,0)+o.shippingTax,refunded=o.refunds.reduce((n,r)=>r.state==="succeeded"?n+r.amount:n,0);sum=[{k:v3.subtotal,v:formatCents(subtotal)},...discount>0?[{k:v3.discount,v:formatCents(-discount)}]:[],{k:copy.shipping,v:o.shipping===0?copy.free:formatCents(o.shipping)},{k:copy.tax,v:formatCents(tax)},{k:copy.total,v:formatCents(o.summary.total),total:true}],refundRow=refunded>0?{k:v3.refund,v:formatCents(refunded)}:null,paidCard=o.paymentMethodId&&paymentHeld(o)?(cards.value??[]).find(c=>c.paymentMethodId===o.paymentMethodId):void 0;let plain=o.lines.filter(l=>!l.requiresRx),rxLine=o.lines.find(l=>l.requiresRx)??null;buyAgain=offersBuyAgain(o.summary.status)?plain.length>0?()=>{for(let l of plain)addToCart(client,{offerId:l.offerId,title:l.title,unitPrice:l.unitPrice,requiresRx:false,quantity:l.quantity,...l.petId?{petId:l.petId}:{},...l.imageUrl?{imageUrl:l.imageUrl}:{}});go({name:"cart"})}:rxLine?()=>go({name:"product",offerId:rxLine.offerId,...rxLine.petId?{petId:rxLine.petId}:{}}):null:null,(line===copy.cardStepClosed||line===copy.cardStepFailed)&&paymentSettled(o)&&(shown=null)}return{order:order,o:o,ref:o?.summary.referenceNumber??null,line:shown,asking:asking,setAsking:setAsking,pay:pay,cancel:cancel,busy:busy,onPay:onPay,onCancel:onCancel,sum:sum,refundRow:refundRow,paidCard:paidCard,buyAgain:buyAgain}}function tierMultiplier(type,tier){let cap=type.scaleCaps[tier];return cap>0?cap:void 0}function Text3({tier:tier="content",...props}){let{type:type}=useEverfurTheme(),cap=tierMultiplier(type,tier);return react.createElement(reactNative.Text,cap===void 0?props:{maxFontSizeMultiplier:cap,...props})}var TextInput2=react.forwardRef(function(props,ref){return react.createElement(reactNative.TextInput,{...props,...ref===null?{}:{ref:ref}})});var DESIGN_RN_PLAN_ICONS=/* @__PURE__ */Object.freeze({shield:{strokes:[{width:1.8,cap:true,closed:true,points:[12,3,19,6,19,12,18.759,14.125,18.074,16,17,17.625,15.593,19,13.907,20.125,12,21,10.093,20.125,8.407,19,7,17.625,5.926,16,5.241,14.125,5,12,5,6]},{width:1.8,cap:true,closed:false,points:[9,12,11,14,15,10]}],boxes:[],triangles:[],seams:[]},arrow:{strokes:[{width:2,cap:true,closed:false,points:[4.5,12,19,12]},{width:2,cap:true,closed:false,points:[13.5,6.5,19,12,13.5,17.5]}],boxes:[],triangles:[],seams:[]},check:{strokes:[{width:2.4,cap:true,closed:false,points:[5,12.6,9.4,17,19,7.4]}],boxes:[],triangles:[],seams:[]},star:{strokes:[],boxes:[],triangles:[[12,16.9,6.8,19.6,7.8,13.8],[16.2,13.8,17.2,19.6,12,16.9],[7.8,13.8,3.5,9.7,9.4,8.8],[14.6,8.8,20.5,9.7,16.2,13.8],[9.4,8.8,12,3.5,14.6,8.8],[16.2,13.8,12,16.9,7.8,13.8],[14.6,8.8,16.2,13.8,7.8,13.8],[14.6,8.8,7.8,13.8,9.4,8.8]],seams:[[12,16.9,7.8,13.8,.245,.677],[12,16.9,16.2,13.8,.245,.677],[7.8,13.8,9.4,8.8,.69,.248],[14.6,8.8,16.2,13.8,.248,.243],[14.6,8.8,9.4,8.8,.68,.245],[16.2,13.8,7.8,13.8,.677,.68],[14.6,8.8,7.8,13.8,.68,.69]]},truck:{strokes:[{width:1.7,cap:false,closed:true,points:[2.8,6.5,14.2,6.5,14.2,16,2.8,16]},{width:1.7,cap:false,closed:false,points:[14.2,9.5,17.8,9.5,21.2,12.9,21.2,16,14.2,16]}],boxes:[{x:5,y:15.8,w:3.6,h:3.6,radius:1.8,width:1.7},{x:15.4,y:15.8,w:3.6,h:3.6,radius:1.8,width:1.7}],triangles:[],seams:[]},refresh:{strokes:[{width:1.7,cap:true,closed:false,points:[4,12,4.343,14.363,5.368,16.52,6.985,18.278,9.048,19.48,11.374,20.021,13.756,19.85,15.981,18.984,17.852,17.5,19.201,15.53,19.909,13.249,19.912,10.861,19.21,8.578,17.865,6.605,15.998,5.116,13.775,4.245,11.393,4.068,9.066,4.602,7,5.8]},{width:1.7,cap:true,closed:false,points:[4,4,4,8,8,8]}],boxes:[],triangles:[],seams:[]},card:{strokes:[{width:1.7,cap:true,closed:false,points:[3,9.5,21,9.5]},{width:1.7,cap:true,closed:false,points:[6.5,15,10.5,15]}],boxes:[{x:3,y:5.5,w:18,h:13,radius:2.2,width:1.7}],triangles:[],seams:[]},alert:{strokes:[{width:1.9,cap:true,closed:true,points:[12,3.5,21.5,20,2.5,20]},{width:1.9,cap:true,closed:false,points:[12,10,12,14.5]},{width:1.9,cap:true,closed:false,points:[12,17.2,12.01,17.2]}],boxes:[],triangles:[],seams:[]},x:{strokes:[{width:2,cap:true,closed:false,points:[6.5,6.5,17.5,17.5]},{width:2,cap:true,closed:false,points:[17.5,6.5,6.5,17.5]}],boxes:[],triangles:[],seams:[]},chat:{strokes:[{width:1.7,cap:false,closed:true,points:[5,5.2,19,5.2,19.8,5.414,20.386,6,20.6,6.8,20.6,15.4,20.386,16.2,19.8,16.786,19,17,10.3,17,5.5,20.6,5.5,17,5,17,4.2,16.786,3.614,16.2,3.4,15.4,3.4,6.8,3.614,6,4.2,5.414,5,5.2]}],boxes:[],triangles:[],seams:[]},repeat:{strokes:[{width:1.8,cap:true,closed:false,points:[4.5,11,4.824,8.824,5.766,6.837,7.244,5.208,9.131,4.077,11.264,3.543,13.461,3.65,15.533,4.391,17.3,5.7,19.5,8]},{width:1.8,cap:true,closed:false,points:[19.5,3.5,19.5,8,15,8]},{width:1.8,cap:true,closed:false,points:[19.5,13,19.176,15.176,18.234,17.163,16.756,18.792,14.869,19.923,12.736,20.457,10.539,20.35,8.467,19.609,6.7,18.3,4.5,16]},{width:1.8,cap:true,closed:false,points:[4.5,20.5,4.5,16,9,16]}],boxes:[],triangles:[],seams:[]},calendar:{strokes:[{width:1.8,cap:true,closed:false,points:[4,10,20,10]},{width:1.8,cap:true,closed:false,points:[8.5,3.5,8.5,7.5]},{width:1.8,cap:true,closed:false,points:[15.5,3.5,15.5,7.5]}],boxes:[{x:4,y:5.5,w:16,h:15,radius:2.5,width:1.8}],triangles:[],seams:[]},flame:{strokes:[],boxes:[],triangles:[[12.15,14.513,13.1,15.2,13.1,13.7],[11.5,13.3,12.15,14.513,13.1,13.7],[16.874,10.907,15.7,9.3,15.381,10.659],[14.7,16.7,16.838,18.516,17.693,16.84],[14.7,16.7,14.489,17.681,16.838,18.516],[18,14.9,14.507,15.633,17.693,16.84],[16.874,10.907,15.381,10.659,14.685,11.707],[17.693,12.759,16.874,10.907,14.685,11.707],[15.538,19.832,16.838,18.516,14.489,17.681],[14.685,11.707,13.959,14.633,17.693,12.759],[17.693,12.759,13.959,14.633,18,14.9],[13.891,20.692,13.055,19.006,12,21],[12,21,12,19.2,10.109,20.692],[8.462,19.832,10.109,20.692,10.659,18.863],[10.659,18.863,9.741,17.97,8.462,19.832],[6.307,16.84,9.602,15.677,6,14.9],[6.273,13.033,6,14.9,9.602,15.677],[9.602,15.677,10.113,14.812,6.273,13.033],[6.988,11.438,6.273,13.033,10.113,14.812],[13.525,7.088,12.856,5.017,12,3.5],[13.856,9.589,13.525,7.088,12,3.5],[13.7,12.4,13.856,9.589,12,3.5],[10.113,14.812,10.792,14.042,6.988,11.438],[14.7,16.7,17.693,16.84,14.507,15.633],[13.7,12.4,13.959,14.633,14.685,11.707],[14.507,15.633,18,14.9,13.959,14.633],[13.1,13.7,13.959,14.633,13.7,12.4],[11.5,13.3,13.1,13.7,13.7,12.4],[7.983,10.048,6.988,11.438,10.792,14.042],[10.792,14.042,11.5,13.3,7.983,10.048],[14.489,17.681,13.913,18.475,15.538,19.832],[13.891,20.692,15.538,19.832,13.913,18.475],[13.891,20.692,13.913,18.475,13.055,19.006],[12,19.2,12,21,13.055,19.006],[10.659,18.863,10.109,20.692,12,19.2],[7.162,18.516,8.462,19.832,9.741,17.97],[9.741,17.97,9.4,16.7,7.162,18.516],[6.307,16.84,7.162,18.516,9.4,16.7],[6.307,16.84,9.4,16.7,9.602,15.677],[9.1,8.8,7.983,10.048,11.5,13.3],[11.5,13.3,13.7,12.4,9.1,8.8],[10.054,7.77,9.1,8.8,13.7,12.4],[10.927,6.683,10.054,7.77,13.7,12.4],[11.613,5.481,10.927,6.683,13.7,12.4],[12.006,4.106,11.613,5.481,13.7,12.4],[12,2.5,12.006,4.106,13.7,12.4],[12,2.5,13.7,12.4,12,3.5]],seams:[[12.15,14.513,13.1,13.7,.121,.428],[11.5,13.3,13.1,13.7,.681,.356],[15.381,10.659,16.874,10.907,.033,.883],[14.7,16.7,16.838,18.516,.648,1.318],[14.7,16.7,17.693,16.84,.648,1.533],[14.489,17.681,16.838,18.516,.51,1.318],[14.507,15.633,18,14.9,.782,1.787],[14.507,15.633,17.693,16.84,.782,1.533],[14.685,11.707,16.874,10.907,.68,.883],[14.685,11.707,17.693,12.759,.61,.484],[14.489,17.681,15.538,19.832,.51,1.115],[13.959,14.633,14.685,11.707,1.333,.576],[13.959,14.633,17.693,12.759,.851,.484],[13.959,14.633,18,14.9,.851,1.787],[13.055,19.006,13.891,20.692,.36,.984],[12,21,13.055,19.006,.945,.395],[12,19.2,12,21,.394,.945],[10.109,20.692,12,19.2,.715,.394],[10.109,20.692,10.659,18.863,.715,.428],[10.659,18.863,8.462,19.832,.428,.809],[8.462,19.832,9.741,17.97,.809,.525],[6.307,16.84,9.602,15.677,1.65,.812],[6,14.9,9.602,15.677,.194,1.012],[6.273,13.033,9.602,15.677,2.068,1.012],[10.113,14.812,6.273,13.033,1.217,2.068],[10.113,14.812,6.988,11.438,1.217,2.2],[12,3.5,13.525,7.088,4.697,5.571],[12,3.5,13.856,9.589,4.697,3.017],[12,3.5,13.7,12.4,4.648,26.765],[10.792,14.042,6.988,11.438,1.339,2.2],[13.7,12.4,13.959,14.633,.819,1.333],[13.1,13.7,13.7,12.4,0,.819],[11.5,13.3,13.7,12.4,.681,.537],[10.792,14.042,7.983,10.048,1.339,2.328],[11.5,13.3,7.983,10.048,1.438,2.328],[13.913,18.475,15.538,19.832,.409,1.115],[13.891,20.692,13.913,18.475,.984,.409],[7.162,18.516,9.741,17.97,.977,.525],[7.162,18.516,9.4,16.7,.977,.677],[6.307,16.84,9.4,16.7,1.65,.677],[11.5,13.3,9.1,8.8,1.438,1.129],[13.7,12.4,9.1,8.8,2.046,1.129],[10.054,7.77,13.7,12.4,.079,2.285],[10.927,6.683,13.7,12.4,.237,3.126],[11.613,5.481,13.7,12.4,.475,5.451],[12.006,4.106,13.7,12.4,.961,15.892],[12,2.5,13.7,12.4,2.974,26.765]]},box:{strokes:[{width:1.7,cap:false,closed:true,points:[3.8,7.8,12,4,20.2,7.8,20.2,16.4,12,20,3.8,16.4]},{width:1.7,cap:false,closed:false,points:[3.8,7.8,12,11.6,20.2,7.8]},{width:1.7,cap:false,closed:false,points:[12,11.6,12,20]}],boxes:[],triangles:[],seams:[]},cart:{strokes:[{width:1.8,cap:true,closed:false,points:[2.8,4,5.4,4,7.7,14.6,8.203,15.401,9.1,15.7,17.3,15.7,18.197,15.401,18.7,14.6,20.4,7.6,6.3,7.6]}],boxes:[{x:8.3,y:18.3,w:2.6,h:2.6,radius:1.3,width:1.8},{x:15.8,y:18.3,w:2.6,h:2.6,radius:1.3,width:1.8}],triangles:[],seams:[]},minus:{strokes:[{width:2.2,cap:true,closed:false,points:[6,12,18,12]}],boxes:[],triangles:[],seams:[]},plus:{strokes:[{width:2.2,cap:true,closed:false,points:[12,6,12,18]},{width:2.2,cap:true,closed:false,points:[6,12,18,12]}],boxes:[],triangles:[],seams:[]},chev:{strokes:[{width:2,cap:true,closed:false,points:[9,5.5,15.5,12,9,18.5]}],boxes:[],triangles:[],seams:[]},pulse:{strokes:[{width:1.8,cap:true,closed:false,points:[3,12.5,6.8,12.5,9.2,6.9,13.4,17.5,15.8,12.5,21,12.5]}],boxes:[],triangles:[],seams:[]},file:{strokes:[{width:1.7,cap:true,closed:true,points:[7,3.5,14.2,3.5,18.5,7.8,18.5,20,18.324,20.424,17.9,20.6,7,20.6,6.576,20.424,6.4,20,6.4,4.1,6.576,3.676,7,3.5]},{width:1.7,cap:true,closed:false,points:[14,3.6,14,8,18.4,8]},{width:1.7,cap:true,closed:false,points:[9.4,12.4,14.6,12.4]},{width:1.7,cap:true,closed:false,points:[9.4,15.8,14.6,15.8]}],boxes:[],triangles:[],seams:[]},kit:{strokes:[{width:1.7,cap:false,closed:true,points:[4,7.6,12,3.6,20,7.6,20,16.4,12,20.4,4,16.4]},{width:1.7,cap:false,closed:false,points:[4,7.6,12,11.6,20,7.6]},{width:1.7,cap:false,closed:false,points:[12,11.6,12,20.4]}],boxes:[],triangles:[],seams:[]},dna:{strokes:[{width:1.7,cap:true,closed:false,points:[7,3.5,7.28,4.645,8.04,5.594,9.16,6.394,10.52,7.097,12,7.75,13.48,8.403,14.84,9.106,15.96,9.906,16.72,10.855,17,12,16.72,13.145,15.96,14.094,14.84,14.894,13.48,15.597,12,16.25,10.52,16.903,9.16,17.606,8.04,18.406,7.28,19.355,7,20.5]},{width:1.7,cap:true,closed:false,points:[17,3.5,16.72,4.645,15.96,5.594,14.84,6.394,13.48,7.097,12,7.75,10.52,8.403,9.16,9.106,8.04,9.906,7.28,10.855,7,12,7.28,13.145,8.04,14.094,9.16,14.894,10.52,15.597,12,16.25,13.48,16.903,14.84,17.606,15.96,18.406,16.72,19.355,17,20.5]},{width:1.7,cap:true,closed:false,points:[8.6,6.3,15.4,6.3]},{width:1.7,cap:true,closed:false,points:[8.6,17.7,15.4,17.7]},{width:1.7,cap:true,closed:false,points:[10.4,9.6,13.6,9.6]},{width:1.7,cap:true,closed:false,points:[10.4,14.4,13.6,14.4]}],boxes:[],triangles:[],seams:[]},heart:{strokes:[{width:1.8,cap:false,closed:true,points:[12,20.2,11.739,20.035,11.041,19.559,10.03,18.804,8.831,17.799,7.569,16.575,6.37,15.163,5.359,13.593,4.661,11.895,4.4,10.1,4.833,8.454,5.87,7.105,7.349,6.264,9.039,6.062,10.675,6.532,12,7.6,13.325,6.532,14.961,6.062,16.651,6.264,18.13,7.105,19.167,8.454,19.6,10.1,19.339,11.895,18.641,13.593,17.63,15.163,16.431,16.575,15.169,17.799,13.97,18.804,12.959,19.559,12.261,20.035,12,20.2]}],boxes:[],triangles:[],seams:[]},bottle:{strokes:[{width:1.7,cap:false,closed:true,points:[7.2,6.2,16.8,6.2,17.507,6.493,17.8,7.2,17.8,19.5,17.572,20.35,16.95,20.972,16.1,21.2,7.9,21.2,7.05,20.972,6.428,20.35,6.2,19.5,6.2,7.2,6.493,6.493,7.2,6.2]},{width:1.7,cap:false,closed:true,points:[9,11,15,11,15,16,9,16]}],boxes:[{x:8,y:2.8,w:8,h:3.4,radius:1,width:1.7}],triangles:[],seams:[]},harness:{strokes:[{width:1.5,cap:true,closed:false,points:[7.5,4.5,7.728,6.82,8.364,8.708,9.336,10.116,10.572,10.996,12,11.3,13.428,10.996,14.664,10.116,15.636,8.708,16.272,6.82,16.5,4.5]},{width:1.5,cap:true,closed:true,points:[5,12.6,19,12.6,19,17.2,18.692,18.35,17.85,19.192,16.7,19.5,7.3,19.5,6.15,19.192,5.308,18.35,5,17.2]},{width:1.5,cap:true,closed:false,points:[8.2,15.3,15.8,15.3]}],boxes:[{x:10.7,y:8.9,w:2.6,h:2.6,radius:1.3,width:1.5}],triangles:[],seams:[]},ramp:{strokes:[{width:1.5,cap:true,closed:false,points:[2.5,19.5,21.5,19.5]},{width:1.5,cap:true,closed:false,points:[3.5,19.5,3.5,16.5,8,16.5,8,13.5,12.5,13.5,12.5,10.5,17,10.5,17,7.5,20.5,7.5,20.5,19.5]},{width:1.5,cap:true,closed:false,points:[3.5,16.5,20.5,7.5],opacity:.35}],boxes:[],triangles:[],seams:[]}});var BOX2=24,FINE2=16,SEAM2=.8,fine2=dp=>Math.round(dp*FINE2);function place2(cx,cy,W,H,ux,uy){let left=cx-W/2,top=cy-H/2,x=Math.round(left),y=Math.round(top);return{position:"absolute",left:x,top:y,width:W,height:H,transform:[{translateX:left-x},{translateY:top-y},{rotate:`${Math.atan2(uy,ux)*180/Math.PI}deg`},{scale:1/FINE2}]}}function strokePieces2(icon,k2,out){for(let s of icon.strokes){let w=s.width*k2,pts=s.points,n=pts.length/2,last=s.closed?n:n-1;for(let i=0;i<last;i+=1){let j=(i+1)%n,px2=(pts[i*2]??0)*k2,py=(pts[i*2+1]??0)*k2,dx=(pts[j*2]??0)*k2-px2,dy=(pts[j*2+1]??0)*k2-py,len=Math.hypot(dx,dy);if(len===0&&!(n===2&&s.cap))continue;let ux=len===0?1:dx/len,uy=len===0?0:dy/len,e0=s.closed||i>0||s.cap?w/2:0,e1=s.closed||j!==n-1||s.cap?w/2:0,along=(len+e1-e0)/2;out.push({paint:"backgroundColor",style:{...place2(px2+ux*along,py+uy*along,fine2(len+e0+e1),fine2(w),ux,uy),borderTopLeftRadius:e0>0?fine2(w)/2:0,borderBottomLeftRadius:e0>0?fine2(w)/2:0,borderTopRightRadius:e1>0?fine2(w)/2:0,borderBottomRightRadius:e1>0?fine2(w)/2:0,...s.opacity===void 0?{}:{opacity:s.opacity}}})}}}function boxPieces2(icon,k2,out){for(let b of icon.boxes){let w=(b.w+b.width)*k2,h=(b.h+b.width)*k2;out.push({paint:"borderColor",style:{...place2((b.x-b.width/2)*k2+w/2,(b.y-b.width/2)*k2+h/2,fine2(w),fine2(h),1,0),borderWidth:fine2(b.width*k2),borderRadius:(b.radius+b.width/2)*k2*FINE2,...b.opacity===void 0?{}:{opacity:b.opacity}}})}}function trianglePieces2(icon,k2,out){for(let t of icon.triangles){let p=[0,1,2].map(i=>[(t[i*2]??0)*k2,(t[i*2+1]??0)*k2]),base=0,len=-1;for(let i=0;i<3;i+=1){let a2=p[i]??[0,0],b=p[(i+1)%3]??[0,0],d=Math.hypot(b[0]-a2[0],b[1]-a2[1]);d>len&&(len=d,base=i)}if(len<=0)continue;let b0=p[base]??[0,0],b1=p[(base+1)%3]??[0,0],a=p[(base+2)%3]??[0,0],ux=(b1[0]-b0[0])/len,uy=(b1[1]-b0[1])/len,along=(a[0]-b0[0])*ux+(a[1]-b0[1])*uy,across=(a[0]-b0[0])*-uy+(a[1]-b0[1])*ux,h=Math.abs(across),up=across<0,mid=up?-h/2:h/2,bl=fine2(along),br=fine2(len)-bl,bh=fine2(h);out.push({paint:up?"borderBottomColor":"borderTopColor",style:{...place2(b0[0]+ux*(len/2)-uy*mid,b0[1]+uy*(len/2)+ux*mid,bl+br,bh,ux,uy),width:0,height:0,borderLeftWidth:bl,borderRightWidth:br,borderLeftColor:"transparent",borderRightColor:"transparent",...up?{borderBottomWidth:bh}:{borderTopWidth:bh}}})}for(let e of icon.seams){let x0=(e[0]??0)*k2,y0=(e[1]??0)*k2,dx=(e[2]??0)*k2-x0,dy=(e[3]??0)*k2-y0,d=Math.hypot(dx,dy),in0=SEAM2*(e[4]??0),in1=SEAM2*(e[5]??0),bar=d-in0-in1;if(d===0||bar<=0)continue;let mid=in0+bar/2;out.push({paint:"backgroundColor",style:place2(x0+dx/d*mid,y0+dy/d*mid,fine2(bar),fine2(SEAM2),dx/d,dy/d)})}}var cache3=/* @__PURE__ */new Map;function piecesOf2(name,size){let key=`${name}:${size}`,hit=cache3.get(key);if(hit!==void 0)return hit;let icon=DESIGN_RN_PLAN_ICONS[name],out=[],k2=size/BOX2;return boxPieces2(icon,k2,out),strokePieces2(icon,k2,out),trianglePieces2(icon,k2,out),cache3.set(key,out),out}function FocusIcon({name:name,size:size=18,color:color}){let pieces=DESIGN_RN_PLAN_ICONS[name]===void 0?[]:piecesOf2(name,size);/* @__PURE__ */
68
114
  return jsxRuntime.jsx(reactNative.View,{accessibilityElementsHidden:true,importantForAccessibility:"no-hide-descendants",testID:`health-plan-icon-${name}`,children:/* @__PURE__ */jsxRuntime.jsx(reactNative.View,{style:{width:size,height:size},children:pieces.map((piece,i)=>/* @__PURE__ */jsxRuntime.jsx(reactNative.View,{style:[piece.style,{[piece.paint]:color}]},i))})})}var HIDDEN={pointerEvents:"none",accessibilityElementsHidden:true,importantForAccessibility:"no-hide-descendants"};function ShopV3Icon({name:name,size:size,color:color}){let w=Math.max(1.5,Math.round(size*1.8/24*2)/2),at=n=>Math.round(size*n);switch(name){case"check":case"plus":case"minus":case"cart":case"box":/* @__PURE__ */
69
115
  return jsxRuntime.jsx(FocusIcon,{name:name,size:size,color:color});case"close":/* @__PURE__ */
70
116
  return jsxRuntime.jsx(FocusIcon,{name:"x",size:size,color:color});case"chev":/* @__PURE__ */
@@ -86,56 +132,56 @@ return jsxRuntime.jsxs(reactNative.View,{style:{width:size,height:size},...HIDDE
86
132
  /* @__PURE__ */jsxRuntime.jsx(reactNative.View,{style:{position:"absolute",left:at(.66),top:at(.1),width:w,height:at(.18),borderRadius:w,backgroundColor:color}})]});case"pin":/* @__PURE__ */
87
133
  return jsxRuntime.jsxs(reactNative.View,{style:{width:size,height:size},...HIDDEN,children:[
88
134
  /* @__PURE__ */jsxRuntime.jsx(reactNative.View,{style:{position:"absolute",left:at(.24),top:at(.1),width:at(.52),height:at(.52),borderWidth:w,borderColor:color,borderRadius:size}}),
89
- /* @__PURE__ */jsxRuntime.jsx(reactNative.View,{style:{position:"absolute",left:at(.5)-w/2,top:at(.6),width:w,height:at(.28),borderRadius:w,backgroundColor:color}})]})}}var FACE_WEIGHT=/* @__PURE__ */Object.freeze({regular:"regular",medium:"medium",bold:"bold",mono:"regular",monoMedium:"medium",monoBold:"bold"});function face(theme,weight){let type=theme.type,fontFamily=type.families[weight];return weight==="mono"||type.namedFaces[weight]?{fontFamily:fontFamily}:{fontFamily:fontFamily,fontWeight:type.weight[FACE_WEIGHT[weight]]}}function headingFace(theme,fallback="bold"){let{headingFamily:headingFamily,headingWeight:headingWeight}=theme.type;if(headingFamily===null&&headingWeight===null)return face(theme,fallback);if(headingFamily!==null)return{fontFamily:headingFamily,fontWeight:headingWeight??theme.type.weight[FACE_WEIGHT[fallback]]};let base=face(theme,fallback);return base.fontWeight===void 0||headingWeight===null?base:{fontFamily:base.fontFamily,fontWeight:headingWeight}}function toRgba(value){if(typeof value=="number")return argbIntToRgba(value);if(typeof value!="string")return null;let s=value.trim();if(s.length===0)return null;if(s.startsWith("#"))return fromHex(s.slice(1));if(s.toLowerCase().startsWith("0x"))return fromHex(s.slice(2));if(s.toLowerCase().startsWith("rgb"))return fromRgbFunc(s);if(/^[0-9a-fA-F]+$/.test(s)){let hex=fromHex(s);if(hex!==null)return hex}return/^\d+$/.test(s)?argbIntToRgba(Number.parseInt(s,10)):null}function fromHex(hex){let h=hex.trim();if(!/^[0-9a-fA-F]+$/.test(h))return null;if(h.length===3)return{r:dup(h[0]),g:dup(h[1]),b:dup(h[2]),a:1};if(h.length===6)return{r:byte(h,0),g:byte(h,2),b:byte(h,4),a:1};if(h.length===8){let a=byte(h,0);return{r:byte(h,2),g:byte(h,4),b:byte(h,6),a:a/255}}return null}function fromRgbFunc(input){let open=input.indexOf("("),close=input.indexOf(")");if(open<0||close<0||close<open)return null;let parts=input.slice(open+1,close).split(",").map(p=>p.trim());if(parts.length<3)return null;let r=clampByte(Number(parts[0])),g=clampByte(Number(parts[1])),b=clampByte(Number(parts[2]));if(r===null||g===null||b===null)return null;let a=1;if(parts.length>=4){let alpha=Number(parts[3]);if(!Number.isFinite(alpha))return null;a=Math.min(1,Math.max(0,alpha))}return{r:r,g:g,b:b,a:a}}function argbIntToRgba(n){if(!Number.isFinite(n))return null;let int2=Math.trunc(n)>>>0,a=int2>>>24&255;return{r:int2>>>16&255,g:int2>>>8&255,b:int2&255,a:a===0?1:a/255}}function byte(hex,at){return Number.parseInt(hex.slice(at,at+2),16)}function dup(nibble){return Number.parseInt(`${nibble??"0"}${nibble??"0"}`,16)}function clampByte(n){return Number.isFinite(n)?Math.min(255,Math.max(0,Math.round(n))):null}function rgbToHex(r,g,b){return`#${hex2(r)}${hex2(g)}${hex2(b)}`.toUpperCase()}function hex2(n){return n.toString(16).padStart(2,"0")}var NEAR_BLACK="#111111",WHITE="#FFFFFF",BLACK="#000000";function readableOn(background){let rgba=toRgba(background);if(rgba===null)return WHITE;let bg=relativeLuminance(rgba),black=relativeLuminance({r:17,g:17,b:17}),white=relativeLuminance({r:255,g:255,b:255});return luminanceContrast(bg,white)>=luminanceContrast(bg,black)?WHITE:NEAR_BLACK}function legibleOn(background,target){let first=readableOn(background);return contrastRatio(first,background)>=target?first:contrastRatio(WHITE,background)>=contrastRatio(BLACK,background)?WHITE:BLACK}function poleForGrounds(grounds){let worst=ink=>grounds.reduce((low,ground)=>Math.min(low,contrastRatio(ink,ground)),Number.POSITIVE_INFINITY);return worst(WHITE)>=worst(BLACK)?WHITE:BLACK}function relativeLuminance(rgba){let r=linearize(rgba.r/255),g=linearize(rgba.g/255),b=linearize(rgba.b/255);return.2126*r+.7152*g+.0722*b}function linearize(channel){return channel<=.03928?channel/12.92:Math.pow((channel+.055)/1.055,2.4)}function luminanceContrast(l1,l2){let lighter=Math.max(l1,l2),darker=Math.min(l1,l2);return(lighter+.05)/(darker+.05)}function contrastRatio(a,b){let fg=toRgba(a),bg=toRgba(b);if(fg===null||bg===null)return 1;let ground=bg.a>=1?bg:{...bg},fore=fg.a>=1?fg:composite(fg,ground);return luminanceContrast(relativeLuminance(fore),relativeLuminance(ground))}function composite(fg,bg){let a=fg.a,mix=(f,g)=>Math.round(f*a+g*(1-a));return{r:mix(fg.r,bg.r),g:mix(fg.g,bg.g),b:mix(fg.b,bg.b),a:1}}function flattenOnto(color,background){let fg=toRgba(color),bg=toRgba(background);if(fg===null||bg===null)return null;let out=fg.a>=1?fg:composite(fg,{...bg});return rgbToHex(out.r,out.g,out.b)}var PUSH_STEP=.05;function pushToContrast(color,grounds,pole,target){let first=grounds[0];if(first===void 0)return pole;let reads=candidate=>grounds.every(ground=>contrastRatio(candidate,ground)>=target);if(toRgba(color)===null)return pole;if(reads(color))return color;let flat=flattenOnto(color,first),from=flat===null?null:toRgba(flat),to=toRgba(pole);if(from===null||to===null)return pole;for(let step=1;step<1/PUSH_STEP;step+=1){let t=step*PUSH_STEP,mix=(a,b)=>Math.round(a+(b-a)*t),candidate=rgbToHex(mix(from.r,to.r),mix(from.g,to.g),mix(from.b,to.b));if(reads(candidate))return candidate}return pole}var DESIGN_V3_LIGHT=/* @__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"}),cache2=/* @__PURE__ */new WeakMap;function v3Palette(theme){let hit=cache2.get(theme);if(hit!==void 0)return hit;let c=theme.color,dark=theme.brightness==="dark",neutrals=dark?{dark:dark,ink:c.text.primary,ink2:c.text.secondary,ink3:c.text.muted,paper:c.background,card:c.surface,line:c.borderRingCream,tile:c.surfaceSubtle,shadow:c.shadow,riskBg:c.badgeBgCritical,riskInk:c.danger,riskDot:c.danger,clearBg:c.badgeBgPositive,clearInk:c.success,clearDot:c.success,watchDot:c.warningStrong}:{dark:dark,...DESIGN_V3_LIGHT},textOn=(ink,grounds)=>pushToContrast(ink,grounds,poleForGrounds(grounds),V3_TEXT_CONTRAST),labelOn=(ink,fill)=>contrastRatio(ink,fill)>=V3_TEXT_CONTRAST?ink:legibleOn(fill,V3_TEXT_CONTRAST),badgeGrounds=[neutrals.card,neutrals.paper].map(under=>flattenOnto(c.brandSoft,under)??under),brand={primary:c.primary,onPrimary:labelOn(c.onPrimary,c.primary),accent:c.accent,onAccent:labelOn(c.onAccent,c.accent),link:textOn(c.linkInk,[neutrals.card,neutrals.paper,neutrals.tile]),badge:c.brandSoft,onBadge:textOn(c.brandInk,badgeGrounds)},palette=/* @__PURE__ */Object.freeze({...neutrals,...brand});return cache2.set(theme,palette),palette}var V3_TEXT_CONTRAST=4.5;function box(k){return PHONE_BOX[k]}var INK=PHONE_TEXT.screenTitle.color,BODY=PHONE_TEXT.cardLead.color,MUTED=PHONE_TEXT.screenMeta.color,LINE=box("card").borderColor,WHITE2=box("card").backgroundColor,RED=PHONE_TEXT.pillOverdue.color;function appPalette(){return{ink:INK,ink2:BODY,ink3:MUTED,paper:WHITE2,tile:box("ghostBar").backgroundColor,line:LINE,card:WHITE2,link:INK,soft:box("thumb").backgroundColor,onSoft:PHONE_TEXT.thumb.color,accent:INK,onAccent:PHONE_TEXT.dotDone.color,wait:box("pillSoon").backgroundColor,chosen:box("choiceCurrent").backgroundColor,button:box("btnInk").backgroundColor,onButton:PHONE_TEXT.btnInk.color,riskBg:WHITE2,riskInk:RED,clearBg:WHITE2,clearInk:PHONE_TEXT.pillClear.color,edge:LINE,rail:box("trackerLine").backgroundColor,ring:LINE,scrim:box("sheetBackdrop").backgroundColor,toastInk:PHONE_TEXT.btnInk.color}}function face2(fonts,mono,weight){let f=mono?fonts?.mono:fonts?.sans;return f?typeof f=="string"?{fontFamily:f,fontWeight:weight}:{fontFamily:weight==="700"?f.bold??f.regular:weight==="500"?f.medium??f.regular:f.regular}:{fontWeight:weight}}function typeOf(fonts,k){let{fontWeight:fontWeight,...rest}=PHONE_TEXT[k];return{...rest,...face2(fonts,PHONE_DECOR[k].font==="mono",fontWeight)}}var pad=k=>{let b=box(k);return{paddingTop:b.paddingTop,paddingRight:b.paddingRight,paddingBottom:b.paddingBottom,paddingLeft:b.paddingLeft}},ring=k=>{let b=box(k);return{borderWidth:b.borderWidth,borderColor:b.borderColor,borderRadius:b.borderRadius}},thumbBox=size=>({width:size,height:size,borderRadius:box("thumb").borderRadius,overflow:"hidden",alignItems:"center",justifyContent:"center",backgroundColor:box("thumb").backgroundColor});function makeAppStyles(fonts){let t=k=>typeOf(fonts,k),card={...pad("card"),...ring("card"),backgroundColor:WHITE2},thumb=box("thumb").width,gap=box("stack").rowGap;return reactNative.StyleSheet.create({page:{flex:1,backgroundColor:WHITE2},body:{...pad("body"),paddingBottom:box("breaks").columnGap,gap:gap},foot:{...pad("traybar"),gap:box("traybar").rowGap,backgroundColor:WHITE2,borderTopWidth:PHONE_DECOR.traybar.lineTop?.width??1,borderTopColor:PHONE_DECOR.traybar.lineTop?.color??LINE},title:t("screenTitle"),sub2:{...t("screenMeta"),marginTop:box("titleBlock").rowGap-gap},k:{...t("forLabel"),marginTop:box("forLabel").marginTop,marginBottom:0},card:card,items:{gap:box("itemsLiMid").paddingTop},item:{flexDirection:"row",alignItems:"flex-start",gap:box("itemsLiFirst").columnGap},itemImg:thumbBox(thumb),itemName:t("itemsName"),itemP:{flexDirection:"row",flexWrap:"wrap",alignItems:"center",columnGap:8,rowGap:2,marginTop:box("itemsMeta").marginTop},itemPrice:t("itemsPrice"),itemSmall:t("itemsMeta"),itemActs:{flexDirection:"row",alignItems:"center",gap:box("itemsActs").columnGap,marginTop:box("itemsActs").marginTop},step:{flexDirection:"row",alignItems:"center",height:40,...ring("btnRow"),backgroundColor:WHITE2},stepValue:{...t("btnRowLabel"),width:30,textAlign:"center"},rm:{minHeight:40,justifyContent:"center"},rmText:t("itemsActLink"),fine:t("noteStandalone"),fineC:{...t("legal"),marginTop:14},coFine:t("traybarFine"),empty:{alignItems:"center",gap:8,paddingTop:48,paddingHorizontal:12,paddingBottom:8},emptyTile:{...thumbBox(72),borderRadius:box("card").borderRadius,marginBottom:8},emptyTitle:{...t("screenTitle"),textAlign:"center"},emptyBody:{...t("cardLead"),textAlign:"center",maxWidth:270},linkText:{...t("cardLink"),textDecorationLine:"underline"},cancelText:t("linkDanger"),doneCheck:{width:76,height:76,borderRadius:38,alignItems:"center",justifyContent:"center",backgroundColor:box("dotDone").backgroundColor},doneTitle:{...t("screenTitle"),marginTop:20,textAlign:"center"},doneWhen:{...t("cardLink"),marginTop:10,textAlign:"center"},doneWho:{...t("screenMeta"),marginTop:2,textAlign:"center"},next:{alignSelf:"stretch",marginTop:22,...card,paddingVertical:4},nextLi:{flexDirection:"row",alignItems:"center",gap:box("recRow").columnGap,paddingVertical:box("recRow").paddingTop},nextIc:thumbBox(36),nextK:t("forLabel"),nextV:{...t("rowsV"),color:INK,marginTop:1},btn:{minHeight:box("btnInk").minHeight,paddingHorizontal:box("btnInk").paddingLeft,...ring("btnInk"),alignItems:"center",justifyContent:"center",flexDirection:"row",gap:8,backgroundColor:box("btnInk").backgroundColor},btnLg:{minHeight:box("btnInk").minHeight,paddingHorizontal:box("btnInk").paddingLeft},btnSm:{minHeight:box("btnSm").minHeight,paddingHorizontal:box("btnSm").paddingLeft},btnGhost:{backgroundColor:"transparent",...ring("btnOutline")},btnText:t("btnInk"),btnTextLg:{fontSize:PHONE_TEXT.btnInk.fontSize,lineHeight:PHONE_TEXT.btnInk.lineHeight},btnTextSm:{fontSize:PHONE_TEXT.btnSm.fontSize,lineHeight:PHONE_TEXT.btnSm.lineHeight},btnTextGhost:{color:PHONE_TEXT.btnOutline.color},scrim:{flex:1,justifyContent:"flex-end",backgroundColor:box("sheetBackdrop").backgroundColor},sheet:{maxHeight:"88%",paddingTop:0,paddingHorizontal:box("sheetBody").paddingLeft,borderTopLeftRadius:box("sheet").borderTopLeftRadius,borderTopRightRadius:box("sheet").borderTopRightRadius,backgroundColor:box("sheet").backgroundColor},grab:{alignSelf:"center",width:box("sheetGrabBar").width,height:box("sheetGrabBar").height,borderRadius:box("sheetGrabBar").borderRadius,backgroundColor:box("sheetGrabBar").backgroundColor,marginTop:8,marginBottom:8},sheetTop:{flexDirection:"row",alignItems:"center",justifyContent:"space-between",paddingTop:box("sheetHead").paddingTop,paddingBottom:4},kicker:{...t("forLabel"),flexShrink:1},x:{width:box("sheetClose").width,height:box("sheetClose").height,borderRadius:box("sheetClose").borderRadius,alignItems:"center",justifyContent:"center",backgroundColor:box("sheetClose").backgroundColor},sheetTitle:{...t("cardTitleInHead"),marginTop:4},co:{gap:gap,marginTop:2},coItems:{gap:box("itemsLiFirst").columnGap},coItem:{flexDirection:"row",alignItems:"center",gap:box("itemsLiFirst").columnGap},coPic:thumbBox(44),coName:t("itemsName"),coSmall:t("itemsMeta"),coPrice:t("itemsPrice"),coRows:{paddingVertical:2,paddingHorizontal:box("card").paddingLeft,...ring("card"),backgroundColor:WHITE2},coRowsOnPage:{backgroundColor:WHITE2},coKey:{...t("sumDt"),width:74},coValue:{...t("sumDd"),textAlign:"left",flex:1,minWidth:0},opts:{gap:box("choices").rowGap},opt:{flexDirection:"row",alignItems:"center",gap:box("choice").columnGap,minHeight:48,...pad("choice"),...ring("choice"),backgroundColor:box("choice").backgroundColor},optOn:{...ring("choiceCurrent"),backgroundColor:box("choiceCurrent").backgroundColor},optRadio:{width:box("radioOff").width,height:box("radioOff").height,...ring("radioOff"),backgroundColor:box("radioOff").backgroundColor},optRadioOn:{...ring("radioOn")},optName:t("choiceTitle"),optSmall:{...t("choiceMeta"),marginTop:box("choiceMeta").marginTop},every:{flexDirection:"row",gap:4,padding:4,borderRadius:999,borderWidth:1,borderColor:LINE,backgroundColor:WHITE2},everyOn:{backgroundColor:INK},everyText:{...t("btnSm"),textAlign:"center"},everyTextOn:{color:WHITE2},coK:{...t("forLabel"),marginBottom:box("forLabel").marginBottom},subc:{flexDirection:"row",alignItems:"center",gap:box("itemsLiFirst").columnGap,...card},subcImg:thumbBox(thumb),subcName:t("itemsName"),subcSmall:{...t("itemsMeta"),marginTop:2},subcAlert:{...t("itemsMeta"),color:RED,marginTop:2},subcBtn:{minHeight:40,paddingHorizontal:box("btnSm").paddingLeft,...ring("btnSm"),alignItems:"center",justifyContent:"center",backgroundColor:WHITE2},subcBtnText:t("btnSm"),coProd:{flexDirection:"row",alignItems:"center",gap:box("itemsLiFirst").columnGap},coProdImg:thumbBox(thumb),coProdT:t("itemsName"),coProdP:{...t("itemsMeta"),marginTop:2},error:{paddingVertical:0,paddingHorizontal:0,borderRadius:0,backgroundColor:"transparent"},errorText:{...t("noteAfterSum"),color:RED},toast:{paddingVertical:12,paddingHorizontal:16,borderRadius:box("choice").borderRadius,backgroundColor:INK},toastText:{...t("cardLead"),color:WHITE2},ghostLine:{height:box("ghostBar").height,borderRadius:box("ghostBar").borderRadius,backgroundColor:box("ghostBar").backgroundColor},fieldLabel:{...t("fieldLabel"),marginBottom:box("field").rowGap},field:{...t("fieldInputText"),minHeight:box("fieldInput").minHeight,paddingHorizontal:box("fieldInput").paddingLeft,...ring("fieldInput"),backgroundColor:box("fieldInput").backgroundColor},fieldErr:{...t("noteAfterSum"),color:RED,marginTop:6}})}function shopPalette(theme){let v=v3Palette(theme),c=theme.color,dark=theme.brightness==="dark";return{ink:v.ink,ink2:v.ink2,ink3:v.ink3,paper:v.paper,tile:v.tile,line:v.line,card:v.card,link:v.link,soft:c.brandSofter,onSoft:c.brandInk,accent:v.accent,onAccent:v.onAccent,wait:dark?c.badgeBgCaution:"#FFF3C9",chosen:dark?c.surfaceSubtle:"#FFF7DC",button:v.primary,onButton:v.onPrimary,riskBg:v.riskBg,riskInk:v.riskInk,clearBg:v.clearBg,clearInk:v.clearInk,edge:dark?v.line:"#DAD7D1",rail:dark?v.line:"#E2DFD9",ring:dark?v.line:"#CFCBC4",scrim:dark?"rgba(0,0,0,0.6)":"rgba(38,37,35,0.45)",toastInk:dark?c.text.primary:"#FFFFFF"}}function hostFace(f,weight){return typeof f=="string"?{fontFamily:f,fontWeight:weight==="bold"?"700":weight==="medium"?"500":"400"}:{fontFamily:weight==="bold"?f.bold??f.regular:weight==="medium"?f.medium??f.regular:f.regular}}function faceOf(theme,fonts,w){let host=w==="mono"||w==="monoBold"?fonts?.mono:fonts?.sans;return host?hostFace(host,w==="mono"?"regular":w==="monoBold"?"bold":w):face(theme,w)}function makeShopStyles(theme,fonts,look="partner"){let P=shopPalette(theme),dark=theme.brightness==="dark",t=(size,ink,weight="regular",ratio=1.35)=>({...faceOf(theme,fonts,weight),fontSize:size,lineHeight:Math.round(size*ratio),color:ink}),heading=(size,ratio)=>({...fonts?.sans?hostFace(fonts.sans,"bold"):headingFace(theme,"bold"),fontSize:size,lineHeight:Math.round(size*ratio),color:P.ink}),lift={shadowColor:"#262523",shadowOpacity:dark?0:.06,shadowRadius:3,shadowOffset:{width:0,height:1},elevation:dark?0:1},s=reactNative.StyleSheet.create({page:{flex:1,backgroundColor:P.paper},body:{paddingHorizontal:18,paddingTop:8,paddingBottom:28,gap:12},foot:{paddingTop:12,paddingHorizontal:18,gap:10,backgroundColor:P.paper,borderTopWidth:1,borderTopColor:P.line},grow:{flex:1,minWidth:0},row:{flexDirection:"row",alignItems:"center"},title:heading(29,1.08),sub2:{...t(15,P.ink2,"regular",1.45),marginTop:-6},k:{...t(16,P.ink,"bold",1.3),marginTop:6,marginHorizontal:2,marginBottom:-4},card:{paddingVertical:14,paddingHorizontal:16,borderRadius:22,backgroundColor:P.card,...lift},items:{gap:18},item:{flexDirection:"row",alignItems:"flex-start",gap:12},itemImg:{width:64,height:64,borderRadius:14,overflow:"hidden",alignItems:"center",justifyContent:"center",backgroundColor:P.soft},itemName:t(16.5,P.ink,"bold",1.25),itemP:{flexDirection:"row",flexWrap:"wrap",alignItems:"center",columnGap:8,rowGap:2,marginTop:3},itemPrice:{...t(16,P.ink,"bold",1.3),fontVariant:["tabular-nums"]},itemWas:{...t(14,P.ink3,"medium",1.3),textDecorationLine:"line-through"},itemSmall:t(14,P.ink3,"regular",1.35),itemActs:{flexDirection:"row",alignItems:"center",gap:16,marginTop:8},step:{flexDirection:"row",alignItems:"center",height:40,borderRadius:999,borderWidth:1.5,borderColor:P.edge,backgroundColor:P.card},stepButton:{width:40,height:40,borderRadius:999,alignItems:"center",justifyContent:"center"},stepOff:{opacity:.3},stepValue:{...t(15.5,P.ink,"bold",1.2),width:30,textAlign:"center",fontVariant:["tabular-nums"]},rm:{minHeight:40,justifyContent:"center"},rmText:{...t(14.5,P.ink2,"bold",1.3),textDecorationLine:"underline"},sum:{paddingVertical:6,paddingHorizontal:16,borderRadius:16,backgroundColor:P.card,...lift},sumFlat:{paddingVertical:6,paddingHorizontal:16,borderRadius:16,backgroundColor:P.paper},sumRow:{flexDirection:"row",alignItems:"center",justifyContent:"space-between",gap:12,minHeight:34},sumKey:{...t(15,P.ink2,"regular",1.35),flexShrink:1},sumValue:{...t(15,P.ink,"regular",1.35),fontVariant:["tabular-nums"],textAlign:"right"},sumTotalRow:{minHeight:42},sumTotal:{...t(17,P.ink,"bold",1.3),fontVariant:["tabular-nums"]},fine:t(13,P.ink3,"regular",1.45),fineC:{...t(13,P.ink3,"regular",1.45),marginTop:14,textAlign:"center"},coFine:{...t(12.5,P.ink3,"regular",1.45),textAlign:"center"},empty:{alignItems:"center",gap:8,paddingTop:48,paddingHorizontal:12,paddingBottom:8},emptyTile:{width:72,height:72,borderRadius:20,marginBottom:8,alignItems:"center",justifyContent:"center",backgroundColor:P.soft},emptyTitle:{...heading(28,1.1),textAlign:"center"},emptyBody:{...t(15.5,P.ink2,"regular",1.45),textAlign:"center",maxWidth:270},emptyAct:{marginTop:12},link:{minHeight:40,justifyContent:"center",alignSelf:"center"},linkText:{...t(15,P.link,"bold",1.3),textDecorationLine:"underline"},acts:{gap:4,alignItems:"stretch",marginTop:4},cancel:{minHeight:40,justifyContent:"center",alignSelf:"center"},cancelText:t(14.5,P.riskInk,"bold",1.3),orders:{gap:10},order:{flexDirection:"row",alignItems:"center",gap:10,paddingVertical:14,paddingLeft:16,paddingRight:14,borderRadius:22,backgroundColor:P.card,...lift},orderTop:{flexDirection:"row",flexWrap:"wrap",alignItems:"center",columnGap:10,rowGap:4},orderNo:{...t(12,P.ink3,"mono",1.3),letterSpacing:.48},orderWhat:{...t(16,P.ink,"bold",1.3),marginTop:8},orderMeta:{...t(14,P.ink3,"regular",1.4),marginTop:2},pics:{flexDirection:"row",gap:6,marginTop:10},pic:{width:40,height:40,borderRadius:10,overflow:"hidden",alignItems:"center",justifyContent:"center",backgroundColor:P.soft},pill:{flexDirection:"row",alignItems:"center",gap:6,minHeight:26,paddingHorizontal:10,borderRadius:999,backgroundColor:P.wait},pillText:t(13,P.ink,"bold",1.2),pillDone:{backgroundColor:P.clearBg},pillDoneText:{color:P.clearInk},pillSub:{backgroundColor:P.soft},pillSubText:{color:P.onSoft},pillRisk:{backgroundColor:P.riskBg},pillRiskText:{color:P.riskInk},pillQuiet:{backgroundColor:P.tile},pillQuietText:{color:P.ink2},carrier:{flexDirection:"row",alignItems:"center",gap:12},carrierIc:{width:40,height:40,borderRadius:11,alignItems:"center",justifyContent:"center",backgroundColor:P.soft},carrierName:t(16,P.ink,"bold",1.3),carrierNo:{...t(13,P.ink2,"mono",1.35),letterSpacing:.26,marginTop:1},carrierWait:t(14.5,P.ink2,"regular",1.4),carrierGo:{marginTop:10},trackLi:{flexDirection:"row",gap:12,paddingBottom:16},trackLast:{paddingBottom:0},trackRail:{position:"absolute",left:10,top:20,bottom:-2,width:2,borderRadius:1,backgroundColor:P.rail},trackRailDone:{backgroundColor:P.ink},trackDot:{width:22,height:22,borderRadius:11,alignItems:"center",justifyContent:"center",backgroundColor:P.card,borderWidth:2,borderColor:P.ring},trackDotDone:{backgroundColor:P.ink,borderWidth:0},trackDotNow:{backgroundColor:P.accent,borderColor:P.ink},trackT:t(15.5,P.ink,"bold",1.3),trackTNext:{color:P.ink3},trackD:{...t(14,P.ink3,"regular",1.35),marginTop:1},done:{paddingTop:40,paddingHorizontal:22,paddingBottom:20,alignItems:"center"},doneCheck:{width:76,height:76,borderRadius:38,alignItems:"center",justifyContent:"center",backgroundColor:P.accent},doneTitle:{...heading(34,1.1),marginTop:20,textAlign:"center"},doneWhen:{...t(16,P.ink,"bold",1.35),marginTop:10,textAlign:"center"},doneWho:{...t(15,P.ink2,"regular",1.35),marginTop:2,textAlign:"center"},next:{alignSelf:"stretch",marginTop:22,paddingVertical:4,paddingHorizontal:16,borderRadius:18,backgroundColor:P.card,...lift},nextLi:{flexDirection:"row",alignItems:"center",gap:12,paddingVertical:10},nextIc:{width:36,height:36,borderRadius:11,overflow:"hidden",alignItems:"center",justifyContent:"center",backgroundColor:P.soft},nextK:{...t(10.5,P.ink3,"mono",1.3),letterSpacing:.53,textTransform:"uppercase"},nextV:{...t(15,P.ink,"medium",1.35),marginTop:1},btn:{minHeight:48,paddingHorizontal:22,borderRadius:999,alignItems:"center",justifyContent:"center",flexDirection:"row",gap:8,backgroundColor:P.button},btnLg:{minHeight:56,paddingHorizontal:28},btnSm:{minHeight:40,paddingHorizontal:16},btnGhost:{backgroundColor:"transparent",borderWidth:1.5,borderColor:P.ink},btnOff:{opacity:.32},btnText:{...t(16,P.onButton,"bold",1.25),textAlign:"center"},btnTextLg:{fontSize:17,lineHeight:21},btnTextSm:{fontSize:15,lineHeight:19},btnTextGhost:{color:P.ink},scrim:{flex:1,justifyContent:"flex-end",backgroundColor:P.scrim},sheet:{maxHeight:"88%",paddingTop:10,paddingHorizontal:20,borderTopLeftRadius:28,borderTopRightRadius:28,backgroundColor:P.card},grab:{alignSelf:"center",width:40,height:5,borderRadius:3,backgroundColor:P.edge,marginBottom:10},sheetTop:{flexDirection:"row",alignItems:"center",justifyContent:"space-between"},kicker:{...t(11,P.ink3,"mono",1.3),letterSpacing:.88,textTransform:"uppercase",flexShrink:1},x:{width:40,height:40,marginRight:-8,alignItems:"center",justifyContent:"center",borderRadius:20},sheetTitle:{...heading(26,1.1),marginTop:4},co:{gap:10,marginTop:2},coItems:{gap:10},coItem:{flexDirection:"row",alignItems:"center",gap:12},coPic:{width:44,height:44,borderRadius:10,overflow:"hidden",alignItems:"center",justifyContent:"center",backgroundColor:P.soft},coName:t(15.5,P.ink,"bold",1.25),coSmall:t(13.5,P.ink3,"regular",1.35),coPrice:{...t(15,P.ink,"bold",1.3),fontVariant:["tabular-nums"]},coRows:{paddingVertical:2,paddingHorizontal:14,borderRadius:16,backgroundColor:P.paper},coRowsOnPage:{backgroundColor:P.card,...lift},coRow:{flexDirection:"row",alignItems:"center",gap:10,minHeight:44},coKey:{...t(14.5,P.ink3,"regular",1.3),width:74},coValue:{...t(14.5,P.ink,"bold",1.3),flex:1,minWidth:0},opts:{gap:8},opt:{flexDirection:"row",alignItems:"center",gap:12,minHeight:48,paddingVertical:12,paddingHorizontal:14,borderRadius:16,borderWidth:1.5,borderColor:P.edge},optOn:{backgroundColor:P.chosen,borderWidth:2,borderColor:P.ink},optRadio:{width:22,height:22,borderRadius:11,borderWidth:2,borderColor:P.edge,backgroundColor:P.card},optRadioOn:{borderWidth:7,borderColor:P.ink},optName:t(16,P.ink,"bold",1.35),optSmall:t(13,P.ink2,"regular",1.4),every:{flexDirection:"row",gap:4,padding:4,borderRadius:999,borderWidth:1.5,borderColor:P.edge,backgroundColor:P.card},everyBtn:{flex:1,minHeight:36,paddingHorizontal:6,borderRadius:999,alignItems:"center",justifyContent:"center"},everyOn:{backgroundColor:P.ink},everyText:{...t(14,P.ink,"bold",1.2),textAlign:"center"},everyTextOn:{color:P.card},coK:{...t(10.5,P.ink3,"mono",1.3),letterSpacing:.63,textTransform:"uppercase",marginBottom:6},subc:{flexDirection:"row",alignItems:"center",gap:12,paddingVertical:12,paddingLeft:12,paddingRight:14,borderRadius:22,backgroundColor:P.clearBg},subcImg:{width:56,height:56,borderRadius:14,overflow:"hidden",alignItems:"center",justifyContent:"center",backgroundColor:P.card},subcName:t(16,P.ink,"bold",1.25),subcSmall:{...t(14,P.ink2,"regular",1.35),marginTop:2},subcAlert:{...t(14,P.riskInk,"bold",1.35),marginTop:2},subcBtn:{minHeight:40,paddingHorizontal:14,borderRadius:999,alignItems:"center",justifyContent:"center",borderWidth:1.5,borderColor:P.ink,backgroundColor:P.card},subcBtnText:t(14,P.ink,"bold",1.2),coProd:{flexDirection:"row",alignItems:"center",gap:12},coProdImg:{width:56,height:56,borderRadius:14,overflow:"hidden",alignItems:"center",justifyContent:"center",backgroundColor:P.soft},coProdT:t(14,P.ink2,"bold",1.35),coProdP:{...t(14,P.ink2,"regular",1.35),marginTop:2},error:{paddingVertical:12,paddingHorizontal:14,borderRadius:14,backgroundColor:P.riskBg},errorText:t(14.5,P.riskInk,"medium",1.4),toast:{paddingVertical:12,paddingHorizontal:15,borderRadius:16,backgroundColor:P.ink},toastText:t(14.5,P.toastInk,"regular",1.4),ghostLine:{height:14,borderRadius:7,backgroundColor:P.tile},fieldLabel:{...t(15,P.ink,"bold",1.3),marginBottom:8},field:{...t(17,P.ink,"regular",1.25),minHeight:52,paddingHorizontal:16,borderRadius:16,borderWidth:1.5,borderColor:P.edge,backgroundColor:P.card},fieldErr:{...t(14,P.riskInk,"bold",1.35),marginTop:6}});return look==="everfur-app"?{...s,...makeAppStyles(fonts),palette:appPalette()}:{...s,palette:P}}var HostContext=react.createContext({bottomInset:0,screenBottomInset:0,cardHandoff:null,onOrderHelp:null}),ShopV3HostProvider=HostContext.Provider;function useShopV3Host(){return react.useContext(HostContext)}function useShopStyles(){let theme=useEverfurTheme(),fonts=useKit().options.fonts,look=useShopLook();return react.useMemo(()=>makeShopStyles(theme,fonts,look),[theme,fonts,look])}function Page({head:head,foot:foot,children:children,testID:testID,onRefresh:onRefresh}){let s=useShopStyles(),{bottomInset:bottomInset}=useShopV3Host(),[pulling,setPulling]=react.useState(false),refreshControl=onRefresh?/* @__PURE__ */jsxRuntime.jsx(reactNative.RefreshControl,{refreshing:pulling,tintColor:s.palette.ink3,colors:[s.palette.ink3],onRefresh:()=>{setPulling(true),onRefresh().finally(()=>setPulling(false))}}):void 0;/* @__PURE__ */
135
+ /* @__PURE__ */jsxRuntime.jsx(reactNative.View,{style:{position:"absolute",left:at(.5)-w/2,top:at(.6),width:w,height:at(.28),borderRadius:w,backgroundColor:color}})]})}}function box(k2){return PHONE_BOX[k2]}var INK=PHONE_TEXT.screenTitle.color,BODY=PHONE_TEXT.cardLead.color,MUTED=PHONE_TEXT.screenMeta.color,LINE=box("card").borderColor,WHITE2=box("card").backgroundColor,RED=PHONE_TEXT.pillOverdue.color;function appPalette(){return{ink:INK,ink2:BODY,ink3:MUTED,paper:WHITE2,tile:box("ghostBar").backgroundColor,line:LINE,card:WHITE2,link:INK,soft:box("thumb").backgroundColor,onSoft:PHONE_TEXT.thumb.color,accent:INK,onAccent:PHONE_TEXT.dotDone.color,wait:box("pillSoon").backgroundColor,chosen:box("choiceCurrent").backgroundColor,button:box("btnInk").backgroundColor,onButton:PHONE_TEXT.btnInk.color,riskBg:WHITE2,riskInk:RED,clearBg:WHITE2,clearInk:PHONE_TEXT.pillClear.color,edge:LINE,rail:box("trackerLine").backgroundColor,ring:LINE,scrim:box("sheetBackdrop").backgroundColor,toastInk:PHONE_TEXT.btnInk.color}}function face2(fonts,mono,weight){let f=mono?fonts?.mono:fonts?.sans;return f?typeof f=="string"?{fontFamily:f,fontWeight:weight}:{fontFamily:weight==="700"?f.bold??f.regular:weight==="500"?f.medium??f.regular:f.regular}:{fontWeight:weight}}function typeOf(fonts,k2){let{fontWeight:fontWeight,...rest}=PHONE_TEXT[k2];return{...rest,...face2(fonts,PHONE_DECOR[k2].font==="mono",fontWeight)}}var pad=k2=>{let b=box(k2);return{paddingTop:b.paddingTop,paddingRight:b.paddingRight,paddingBottom:b.paddingBottom,paddingLeft:b.paddingLeft}},ring=k2=>{let b=box(k2);return{borderWidth:b.borderWidth,borderColor:b.borderColor,borderRadius:b.borderRadius}},thumbBox=size=>({width:size,height:size,borderRadius:box("thumb").borderRadius,overflow:"hidden",alignItems:"center",justifyContent:"center",backgroundColor:box("thumb").backgroundColor});function makeAppStyles(fonts){let t=k2=>typeOf(fonts,k2),card={...pad("card"),...ring("card"),backgroundColor:WHITE2},thumb=box("thumb").width,gap=box("stack").rowGap;return reactNative.StyleSheet.create({page:{flex:1,backgroundColor:WHITE2},body:{...pad("body"),paddingBottom:box("breaks").columnGap,gap:gap},foot:{...pad("traybar"),gap:box("traybar").rowGap,backgroundColor:WHITE2,borderTopWidth:PHONE_DECOR.traybar.lineTop?.width??1,borderTopColor:PHONE_DECOR.traybar.lineTop?.color??LINE},title:t("screenTitle"),sub2:{...t("screenMeta"),marginTop:box("titleBlock").rowGap-gap},k:{...t("forLabel"),marginTop:box("forLabel").marginTop,marginBottom:0},card:card,items:{gap:box("itemsLiMid").paddingTop},item:{flexDirection:"row",alignItems:"flex-start",gap:box("itemsLiFirst").columnGap},itemImg:thumbBox(thumb),itemName:t("itemsName"),itemP:{flexDirection:"row",flexWrap:"wrap",alignItems:"center",columnGap:8,rowGap:2,marginTop:box("itemsMeta").marginTop},itemPrice:t("itemsPrice"),itemSmall:t("itemsMeta"),itemActs:{flexDirection:"row",alignItems:"center",gap:box("itemsActs").columnGap,marginTop:box("itemsActs").marginTop},step:{flexDirection:"row",alignItems:"center",height:40,...ring("btnRow"),backgroundColor:WHITE2},stepValue:{...t("btnRowLabel"),width:30,textAlign:"center"},rm:{minHeight:40,justifyContent:"center"},rmText:t("itemsActLink"),fine:t("noteStandalone"),fineC:{...t("legal"),marginTop:14},coFine:t("traybarFine"),empty:{alignItems:"center",gap:8,paddingTop:48,paddingHorizontal:12,paddingBottom:8},emptyTile:{...thumbBox(72),borderRadius:box("card").borderRadius,marginBottom:8},emptyTitle:{...t("screenTitle"),textAlign:"center"},emptyBody:{...t("cardLead"),textAlign:"center",maxWidth:270},linkText:{...t("cardLink"),textDecorationLine:"underline"},cancelText:t("linkDanger"),doneCheck:{width:76,height:76,borderRadius:38,alignItems:"center",justifyContent:"center",backgroundColor:box("dotDone").backgroundColor},doneTitle:{...t("screenTitle"),marginTop:20,textAlign:"center"},doneWhen:{...t("cardLink"),marginTop:10,textAlign:"center"},doneWho:{...t("screenMeta"),marginTop:2,textAlign:"center"},next:{alignSelf:"stretch",marginTop:22,...card,paddingVertical:4},nextLi:{flexDirection:"row",alignItems:"center",gap:box("recRow").columnGap,paddingVertical:box("recRow").paddingTop},nextIc:thumbBox(36),nextK:t("forLabel"),nextV:{...t("rowsV"),color:INK,marginTop:1},btn:{minHeight:box("btnInk").minHeight,paddingHorizontal:box("btnInk").paddingLeft,...ring("btnInk"),alignItems:"center",justifyContent:"center",flexDirection:"row",gap:8,backgroundColor:box("btnInk").backgroundColor},btnLg:{minHeight:box("btnInk").minHeight,paddingHorizontal:box("btnInk").paddingLeft},btnSm:{minHeight:box("btnSm").minHeight,paddingHorizontal:box("btnSm").paddingLeft},btnGhost:{backgroundColor:"transparent",...ring("btnOutline")},btnText:t("btnInk"),btnTextLg:{fontSize:PHONE_TEXT.btnInk.fontSize,lineHeight:PHONE_TEXT.btnInk.lineHeight},btnTextSm:{fontSize:PHONE_TEXT.btnSm.fontSize,lineHeight:PHONE_TEXT.btnSm.lineHeight},btnTextGhost:{color:PHONE_TEXT.btnOutline.color},scrim:{flex:1,justifyContent:"flex-end",backgroundColor:box("sheetBackdrop").backgroundColor},sheet:{maxHeight:"88%",paddingTop:0,paddingHorizontal:box("sheetBody").paddingLeft,borderTopLeftRadius:box("sheet").borderTopLeftRadius,borderTopRightRadius:box("sheet").borderTopRightRadius,backgroundColor:box("sheet").backgroundColor},grab:{alignSelf:"center",width:box("sheetGrabBar").width,height:box("sheetGrabBar").height,borderRadius:box("sheetGrabBar").borderRadius,backgroundColor:box("sheetGrabBar").backgroundColor,marginTop:8,marginBottom:8},sheetTop:{flexDirection:"row",alignItems:"center",justifyContent:"space-between",paddingTop:box("sheetHead").paddingTop,paddingBottom:4},kicker:{...t("forLabel"),flexShrink:1},x:{width:box("sheetClose").width,height:box("sheetClose").height,borderRadius:box("sheetClose").borderRadius,alignItems:"center",justifyContent:"center",backgroundColor:box("sheetClose").backgroundColor},sheetTitle:{...t("cardTitleInHead"),marginTop:4},co:{gap:gap,marginTop:2},coItems:{gap:box("itemsLiFirst").columnGap},coItem:{flexDirection:"row",alignItems:"center",gap:box("itemsLiFirst").columnGap},coPic:thumbBox(44),coName:t("itemsName"),coSmall:t("itemsMeta"),coPrice:t("itemsPrice"),coRows:{paddingVertical:2,paddingHorizontal:box("card").paddingLeft,...ring("card"),backgroundColor:WHITE2},coRowsOnPage:{backgroundColor:WHITE2},coKey:{...t("sumDt"),width:74},coValue:{...t("sumDd"),textAlign:"left",flex:1,minWidth:0},opts:{gap:box("choices").rowGap},opt:{flexDirection:"row",alignItems:"center",gap:box("choice").columnGap,minHeight:48,...pad("choice"),...ring("choice"),backgroundColor:box("choice").backgroundColor},optOn:{...ring("choiceCurrent"),backgroundColor:box("choiceCurrent").backgroundColor},optRadio:{width:box("radioOff").width,height:box("radioOff").height,...ring("radioOff"),backgroundColor:box("radioOff").backgroundColor},optRadioOn:{...ring("radioOn")},optName:t("choiceTitle"),optSmall:{...t("choiceMeta"),marginTop:box("choiceMeta").marginTop},every:{flexDirection:"row",gap:4,padding:4,borderRadius:999,borderWidth:1,borderColor:LINE,backgroundColor:WHITE2},everyOn:{backgroundColor:INK},everyText:{...t("btnSm"),textAlign:"center"},everyTextOn:{color:WHITE2},coK:{...t("forLabel"),marginBottom:box("forLabel").marginBottom},subc:{flexDirection:"row",alignItems:"center",gap:box("itemsLiFirst").columnGap,...card},subcImg:thumbBox(thumb),subcName:t("itemsName"),subcSmall:{...t("itemsMeta"),marginTop:2},subcAlert:{...t("itemsMeta"),color:RED,marginTop:2},subcBtn:{minHeight:40,paddingHorizontal:box("btnSm").paddingLeft,...ring("btnSm"),alignItems:"center",justifyContent:"center",backgroundColor:WHITE2},subcBtnText:t("btnSm"),coProd:{flexDirection:"row",alignItems:"center",gap:box("itemsLiFirst").columnGap},coProdImg:thumbBox(thumb),coProdT:t("itemsName"),coProdP:{...t("itemsMeta"),marginTop:2},error:{paddingVertical:0,paddingHorizontal:0,borderRadius:0,backgroundColor:"transparent"},errorText:{...t("noteAfterSum"),color:RED},toast:{paddingVertical:12,paddingHorizontal:16,borderRadius:box("choice").borderRadius,backgroundColor:INK},toastText:{...t("cardLead"),color:WHITE2},ghostLine:{height:box("ghostBar").height,borderRadius:box("ghostBar").borderRadius,backgroundColor:box("ghostBar").backgroundColor},fieldLabel:{...t("fieldLabel"),marginBottom:box("field").rowGap},field:{...t("fieldInputText"),minHeight:box("fieldInput").minHeight,paddingHorizontal:box("fieldInput").paddingLeft,...ring("fieldInput"),backgroundColor:box("fieldInput").backgroundColor},fieldErr:{...t("noteAfterSum"),color:RED,marginTop:6}})}function shopPalette(theme){let v=v3Palette(theme),c=theme.color,dark=theme.brightness==="dark";return{ink:v.ink,ink2:v.ink2,ink3:v.ink3,paper:v.paper,tile:v.tile,line:v.line,card:v.card,link:v.link,soft:c.brandSofter,onSoft:c.brandInk,accent:v.accent,onAccent:v.onAccent,wait:dark?c.badgeBgCaution:"#FFF3C9",chosen:dark?c.surfaceSubtle:"#FFF7DC",button:v.primary,onButton:v.onPrimary,riskBg:v.riskBg,riskInk:v.riskInk,clearBg:v.clearBg,clearInk:v.clearInk,edge:dark?v.line:"#DAD7D1",rail:dark?v.line:"#E2DFD9",ring:dark?v.line:"#CFCBC4",scrim:dark?"rgba(0,0,0,0.6)":"rgba(38,37,35,0.45)",toastInk:dark?c.text.primary:"#FFFFFF"}}function hostFace(f,weight){return typeof f=="string"?{fontFamily:f,fontWeight:weight==="bold"?"700":weight==="medium"?"500":"400"}:{fontFamily:weight==="bold"?f.bold??f.regular:weight==="medium"?f.medium??f.regular:f.regular}}function faceOf2(theme,fonts,w){let host=w==="mono"||w==="monoBold"?fonts?.mono:fonts?.sans;return host?hostFace(host,w==="mono"?"regular":w==="monoBold"?"bold":w):face(theme,w)}function makeShopStyles(theme,fonts,look="partner"){let P=shopPalette(theme),dark=theme.brightness==="dark",t=(size,ink,weight="regular",ratio=1.35)=>({...faceOf2(theme,fonts,weight),fontSize:size,lineHeight:Math.round(size*ratio),color:ink}),heading=(size,ratio)=>({...fonts?.sans?hostFace(fonts.sans,"bold"):headingFace(theme,"bold"),fontSize:size,lineHeight:Math.round(size*ratio),color:P.ink}),lift={shadowColor:"#262523",shadowOpacity:dark?0:.06,shadowRadius:3,shadowOffset:{width:0,height:1},elevation:dark?0:1},s=reactNative.StyleSheet.create({page:{flex:1,backgroundColor:P.paper},body:{paddingHorizontal:18,paddingTop:8,paddingBottom:28,gap:12},foot:{paddingTop:12,paddingHorizontal:18,gap:10,backgroundColor:P.paper,borderTopWidth:1,borderTopColor:P.line},grow:{flex:1,minWidth:0},row:{flexDirection:"row",alignItems:"center"},title:heading(29,1.08),sub2:{...t(15,P.ink2,"regular",1.45),marginTop:-6},k:{...t(16,P.ink,"bold",1.3),marginTop:6,marginHorizontal:2,marginBottom:-4},card:{paddingVertical:14,paddingHorizontal:16,borderRadius:22,backgroundColor:P.card,...lift},items:{gap:18},item:{flexDirection:"row",alignItems:"flex-start",gap:12},itemImg:{width:64,height:64,borderRadius:14,overflow:"hidden",alignItems:"center",justifyContent:"center",backgroundColor:P.soft},itemName:t(16.5,P.ink,"bold",1.25),itemP:{flexDirection:"row",flexWrap:"wrap",alignItems:"center",columnGap:8,rowGap:2,marginTop:3},itemPrice:{...t(16,P.ink,"bold",1.3),fontVariant:["tabular-nums"]},itemWas:{...t(14,P.ink3,"medium",1.3),textDecorationLine:"line-through"},itemSmall:t(14,P.ink3,"regular",1.35),itemActs:{flexDirection:"row",alignItems:"center",gap:16,marginTop:8},step:{flexDirection:"row",alignItems:"center",height:40,borderRadius:999,borderWidth:1.5,borderColor:P.edge,backgroundColor:P.card},stepButton:{width:40,height:40,borderRadius:999,alignItems:"center",justifyContent:"center"},stepOff:{opacity:.3},stepValue:{...t(15.5,P.ink,"bold",1.2),width:30,textAlign:"center",fontVariant:["tabular-nums"]},rm:{minHeight:40,justifyContent:"center"},rmText:{...t(14.5,P.ink2,"bold",1.3),textDecorationLine:"underline"},fine:t(13,P.ink3,"regular",1.45),fineC:{...t(13,P.ink3,"regular",1.45),marginTop:14,textAlign:"center"},coFine:{...t(12.5,P.ink3,"regular",1.45),textAlign:"center"},empty:{alignItems:"center",gap:8,paddingTop:48,paddingHorizontal:12,paddingBottom:8},emptyTile:{width:72,height:72,borderRadius:20,marginBottom:8,alignItems:"center",justifyContent:"center",backgroundColor:P.soft},emptyTitle:{...heading(28,1.1),textAlign:"center"},emptyBody:{...t(15.5,P.ink2,"regular",1.45),textAlign:"center",maxWidth:270},emptyAct:{marginTop:12},link:{minHeight:40,justifyContent:"center",alignSelf:"center"},linkText:{...t(15,P.link,"bold",1.3),textDecorationLine:"underline"},acts:{gap:4,alignItems:"stretch",marginTop:4},cancel:{minHeight:40,justifyContent:"center",alignSelf:"center"},cancelText:t(14.5,P.riskInk,"bold",1.3),orders:{gap:10},order:{flexDirection:"row",alignItems:"center",gap:10,paddingVertical:14,paddingLeft:16,paddingRight:14,borderRadius:22,backgroundColor:P.card,...lift},orderTop:{flexDirection:"row",flexWrap:"wrap",alignItems:"center",columnGap:10,rowGap:4},orderNo:{...t(12,P.ink3,"mono",1.3),letterSpacing:.48},orderWhat:{...t(16,P.ink,"bold",1.3),marginTop:8},orderMeta:{...t(14,P.ink3,"regular",1.4),marginTop:2},pics:{flexDirection:"row",gap:6,marginTop:10},pic:{width:40,height:40,borderRadius:10,overflow:"hidden",alignItems:"center",justifyContent:"center",backgroundColor:P.soft},pill:{flexDirection:"row",alignItems:"center",gap:6,minHeight:26,paddingHorizontal:10,borderRadius:999,backgroundColor:P.wait},pillText:t(13,P.ink,"bold",1.2),pillDone:{backgroundColor:P.clearBg},pillDoneText:{color:P.clearInk},pillSub:{backgroundColor:P.soft},pillSubText:{color:P.onSoft},pillRisk:{backgroundColor:P.riskBg},pillRiskText:{color:P.riskInk},pillQuiet:{backgroundColor:P.tile},pillQuietText:{color:P.ink2},carrier:{flexDirection:"row",alignItems:"center",gap:12},carrierIc:{width:40,height:40,borderRadius:11,alignItems:"center",justifyContent:"center",backgroundColor:P.soft},carrierName:t(16,P.ink,"bold",1.3),carrierNo:{...t(13,P.ink2,"mono",1.35),letterSpacing:.26,marginTop:1},carrierWait:t(14.5,P.ink2,"regular",1.4),carrierGo:{marginTop:10},trackLi:{flexDirection:"row",gap:12,paddingBottom:16},trackLast:{paddingBottom:0},trackRail:{position:"absolute",left:10,top:20,bottom:-2,width:2,borderRadius:1,backgroundColor:P.rail},trackRailDone:{backgroundColor:P.ink},trackDot:{width:22,height:22,borderRadius:11,alignItems:"center",justifyContent:"center",backgroundColor:P.card,borderWidth:2,borderColor:P.ring},trackDotDone:{backgroundColor:P.ink,borderWidth:0},trackDotNow:{backgroundColor:P.accent,borderColor:P.ink},trackT:t(15.5,P.ink,"bold",1.3),trackTNext:{color:P.ink3},trackD:{...t(14,P.ink3,"regular",1.35),marginTop:1},done:{paddingTop:40,paddingHorizontal:22,paddingBottom:20,alignItems:"center"},doneCheck:{width:76,height:76,borderRadius:38,alignItems:"center",justifyContent:"center",backgroundColor:P.accent},doneTitle:{...heading(34,1.1),marginTop:20,textAlign:"center"},doneWhen:{...t(16,P.ink,"bold",1.35),marginTop:10,textAlign:"center"},doneWho:{...t(15,P.ink2,"regular",1.35),marginTop:2,textAlign:"center"},next:{alignSelf:"stretch",marginTop:22,paddingVertical:4,paddingHorizontal:16,borderRadius:18,backgroundColor:P.card,...lift},nextLi:{flexDirection:"row",alignItems:"center",gap:12,paddingVertical:10},nextIc:{width:36,height:36,borderRadius:11,overflow:"hidden",alignItems:"center",justifyContent:"center",backgroundColor:P.soft},nextK:{...t(10.5,P.ink3,"mono",1.3),letterSpacing:.53,textTransform:"uppercase"},nextV:{...t(15,P.ink,"medium",1.35),marginTop:1},btn:{minHeight:48,paddingHorizontal:22,borderRadius:999,alignItems:"center",justifyContent:"center",flexDirection:"row",gap:8,backgroundColor:P.button},btnLg:{minHeight:56,paddingHorizontal:28},btnSm:{minHeight:40,paddingHorizontal:16},btnGhost:{backgroundColor:"transparent",borderWidth:1.5,borderColor:P.ink},btnOff:{opacity:.32},btnText:{...t(16,P.onButton,"bold",1.25),textAlign:"center"},btnTextLg:{fontSize:17,lineHeight:21},btnTextSm:{fontSize:15,lineHeight:19},btnTextGhost:{color:P.ink},scrim:{flex:1,justifyContent:"flex-end",backgroundColor:P.scrim},sheet:{maxHeight:"88%",paddingTop:10,paddingHorizontal:20,borderTopLeftRadius:28,borderTopRightRadius:28,backgroundColor:P.card},grab:{alignSelf:"center",width:40,height:5,borderRadius:3,backgroundColor:P.edge,marginBottom:10},sheetTop:{flexDirection:"row",alignItems:"center",justifyContent:"space-between"},kicker:{...t(11,P.ink3,"mono",1.3),letterSpacing:.88,textTransform:"uppercase",flexShrink:1},x:{width:40,height:40,marginRight:-8,alignItems:"center",justifyContent:"center",borderRadius:20},sheetTitle:{...heading(26,1.1),marginTop:4},co:{gap:10,marginTop:2},coItems:{gap:10},coItem:{flexDirection:"row",alignItems:"center",gap:12},coPic:{width:44,height:44,borderRadius:10,overflow:"hidden",alignItems:"center",justifyContent:"center",backgroundColor:P.soft},coName:t(15.5,P.ink,"bold",1.25),coSmall:t(13.5,P.ink3,"regular",1.35),coPrice:{...t(15,P.ink,"bold",1.3),fontVariant:["tabular-nums"]},coRows:{paddingVertical:2,paddingHorizontal:14,borderRadius:16,backgroundColor:P.paper},coRowsOnPage:{backgroundColor:P.card,...lift},coRow:{flexDirection:"row",alignItems:"center",gap:10,minHeight:44},coKey:{...t(14.5,P.ink3,"regular",1.3),width:74},coValue:{...t(14.5,P.ink,"bold",1.3),flex:1,minWidth:0},opts:{gap:8},opt:{flexDirection:"row",alignItems:"center",gap:12,minHeight:48,paddingVertical:12,paddingHorizontal:14,borderRadius:16,borderWidth:1.5,borderColor:P.edge},optOn:{backgroundColor:P.chosen,borderWidth:2,borderColor:P.ink},optRadio:{width:22,height:22,borderRadius:11,borderWidth:2,borderColor:P.edge,backgroundColor:P.card},optRadioOn:{borderWidth:7,borderColor:P.ink},optName:t(16,P.ink,"bold",1.35),optSmall:t(13,P.ink2,"regular",1.4),every:{flexDirection:"row",gap:4,padding:4,borderRadius:999,borderWidth:1.5,borderColor:P.edge,backgroundColor:P.card},everyBtn:{flex:1,minHeight:36,paddingHorizontal:6,borderRadius:999,alignItems:"center",justifyContent:"center"},everyOn:{backgroundColor:P.ink},everyText:{...t(14,P.ink,"bold",1.2),textAlign:"center"},everyTextOn:{color:P.card},coK:{...t(10.5,P.ink3,"mono",1.3),letterSpacing:.63,textTransform:"uppercase",marginBottom:6},subc:{flexDirection:"row",alignItems:"center",gap:12,paddingVertical:12,paddingLeft:12,paddingRight:14,borderRadius:22,backgroundColor:P.clearBg},subcImg:{width:56,height:56,borderRadius:14,overflow:"hidden",alignItems:"center",justifyContent:"center",backgroundColor:P.card},subcName:t(16,P.ink,"bold",1.25),subcSmall:{...t(14,P.ink2,"regular",1.35),marginTop:2},subcAlert:{...t(14,P.riskInk,"bold",1.35),marginTop:2},subcBtn:{minHeight:40,paddingHorizontal:14,borderRadius:999,alignItems:"center",justifyContent:"center",borderWidth:1.5,borderColor:P.ink,backgroundColor:P.card},subcBtnText:t(14,P.ink,"bold",1.2),coProd:{flexDirection:"row",alignItems:"center",gap:12},coProdImg:{width:56,height:56,borderRadius:14,overflow:"hidden",alignItems:"center",justifyContent:"center",backgroundColor:P.soft},coProdT:t(14,P.ink2,"bold",1.35),coProdP:{...t(14,P.ink2,"regular",1.35),marginTop:2},error:{paddingVertical:12,paddingHorizontal:14,borderRadius:14,backgroundColor:P.riskBg},errorText:t(14.5,P.riskInk,"medium",1.4),toast:{paddingVertical:12,paddingHorizontal:15,borderRadius:16,backgroundColor:P.ink},toastText:t(14.5,P.toastInk,"regular",1.4),ghostLine:{height:14,borderRadius:7,backgroundColor:P.tile},fieldLabel:{...t(15,P.ink,"bold",1.3),marginBottom:8},field:{...t(17,P.ink,"regular",1.25),minHeight:52,paddingHorizontal:16,borderRadius:16,borderWidth:1.5,borderColor:P.edge,backgroundColor:P.card},fieldErr:{...t(14,P.riskInk,"bold",1.35),marginTop:6}});return look==="everfur-app"?{...s,...makeAppStyles(fonts),palette:appPalette()}:{...s,palette:P}}var HostContext=react.createContext({bottomInset:0,screenBottomInset:0,cardHandoff:null,onOrderHelp:null}),ShopV3HostProvider=HostContext.Provider;function useShopV3Host(){return react.useContext(HostContext)}function useShopStyles(){let theme=useEverfurTheme(),fonts=useKit().options.fonts,look=useShopLook();return react.useMemo(()=>makeShopStyles(theme,fonts,look),[theme,fonts,look])}function Page({head:head,foot:foot,children:children,testID:testID,onRefresh:onRefresh}){let s=useShopStyles(),{bottomInset:bottomInset}=useShopV3Host(),[pulling,setPulling]=react.useState(false),refreshControl=onRefresh?/* @__PURE__ */jsxRuntime.jsx(reactNative.RefreshControl,{refreshing:pulling,tintColor:s.palette.ink3,colors:[s.palette.ink3],onRefresh:()=>{setPulling(true),onRefresh().finally(()=>setPulling(false))}}):void 0;/* @__PURE__ */
90
136
  return jsxRuntime.jsxs(reactNative.View,{style:s.page,testID:testID,children:[head??null,
91
137
  /* @__PURE__ */jsxRuntime.jsx(reactNative.ScrollView,{style:{flex:1},contentContainerStyle:s.body,keyboardShouldPersistTaps:"handled",refreshControl:refreshControl,children:children}),foot?/* @__PURE__ */jsxRuntime.jsx(reactNative.View,{style:[s.foot,{paddingBottom:Math.max(12,bottomInset)}],children:foot}):null]})}function Title({children:children,sub:sub}){let s=useShopStyles();/* @__PURE__ */
92
138
  return jsxRuntime.jsxs(jsxRuntime.Fragment,{children:[
93
- /* @__PURE__ */jsxRuntime.jsx(Text2,{tier:"heading",style:s.title,accessibilityRole:"header",children:children}),sub?/* @__PURE__ */jsxRuntime.jsx(Text2,{style:s.sub2,children:sub}):null]})}function K({children:children}){let s=useShopStyles();/* @__PURE__ */
94
- return jsxRuntime.jsx(Text2,{tier:"heading",style:s.k,accessibilityRole:"header",children:children})}function Card2({children:children,style:style}){let s=useShopStyles();/* @__PURE__ */
95
- return jsxRuntime.jsx(reactNative.View,{style:[s.card,style],children:children})}function Thumb2({rx:rx,size:size=64,onCard:onCard,title:title,imageUrl:imageUrl}){let s=useShopStyles(),app=useEverfurAppLook(),box2=size===64?s.itemImg:size===56?onCard?s.subcImg:s.coProdImg:size===44?s.coPic:size===40?s.pic:s.nextIc,photo=imageUrl?/* @__PURE__ */jsxRuntime.jsx(TilePhoto,{uri:imageUrl},imageUrl):null,clip=imageUrl?{overflow:"hidden"}:null;if(app){let tile=formTile(drugForm(rx,title)),px=typeof box2.width=="number"?box2.width:48;/* @__PURE__ */
139
+ /* @__PURE__ */jsxRuntime.jsx(Text3,{tier:"heading",style:s.title,accessibilityRole:"header",children:children}),sub?/* @__PURE__ */jsxRuntime.jsx(Text3,{style:s.sub2,children:sub}):null]})}function K({children:children}){let s=useShopStyles();/* @__PURE__ */
140
+ return jsxRuntime.jsx(Text3,{tier:"heading",style:s.k,accessibilityRole:"header",children:children})}function Card3({children:children,style:style}){let s=useShopStyles();/* @__PURE__ */
141
+ return jsxRuntime.jsx(reactNative.View,{style:[s.card,style],children:children})}function Thumb2({rx:rx,size:size=64,onCard:onCard,title:title,imageUrl:imageUrl}){let s=useShopStyles(),app=useEverfurAppLook(),box2=size===64?s.itemImg:size===56?onCard?s.subcImg:s.coProdImg:size===44?s.coPic:size===40?s.pic:s.nextIc,photo=imageUrl?/* @__PURE__ */jsxRuntime.jsx(TilePhoto,{uri:imageUrl},imageUrl):null,clip=imageUrl?{overflow:"hidden"}:null;if(app){let tile=formTile(drugForm(rx,title)),px2=typeof box2.width=="number"?box2.width:48;/* @__PURE__ */
96
142
  return jsxRuntime.jsxs(reactNative.View,{style:[box2,{backgroundColor:tileTint(tile.tone)},clip],accessibilityElementsHidden:true,importantForAccessibility:"no-hide-descendants",children:[
97
- /* @__PURE__ */jsxRuntime.jsx(Icon,{name:tile.icon,size:Math.round(px*.46),color:inkOf("thumb")}),photo]})}/* @__PURE__ */
143
+ /* @__PURE__ */jsxRuntime.jsx(Icon,{name:tile.icon,size:Math.round(px2*.46),color:inkOf("thumb")}),photo]})}/* @__PURE__ */
98
144
  return jsxRuntime.jsxs(reactNative.View,{style:[box2,clip],accessibilityElementsHidden:true,importantForAccessibility:"no-hide-descendants",children:[
99
- /* @__PURE__ */jsxRuntime.jsx(ShopV3Icon,{name:rx?"rx":"supplement",size:Math.round(size*.46),color:s.palette.onSoft}),photo]})}function IconTile({name:name,size:size=36}){let s=useShopStyles(),box2=size===72?s.emptyTile:size===40?s.carrierIc:s.nextIc;/* @__PURE__ */
145
+ /* @__PURE__ */jsxRuntime.jsx(ShopV3Icon,{name:rx?"rx":"supplement",size:Math.round(size*.46),color:s.palette.onSoft}),photo]})}function useThumbFallback(rx){let s=useShopStyles();return react.useMemo(()=>({tint:s.palette.soft,iconSize:Math.round(64*.46),icon:({size:size})=>/* @__PURE__ */jsxRuntime.jsx(ShopV3Icon,{name:rx?"rx":"supplement",size:size,color:s.palette.onSoft})}),[rx,s.palette.soft,s.palette.onSoft])}function ItemLine({rx:rx,title:title,imageUrl:imageUrl,price:price,smalls:smalls,quantity:quantity,removeLabel:removeLabel,onRemove:onRemove,testID:testID}){let fallback=useThumbFallback(rx);/* @__PURE__ */
146
+ return jsxRuntime.jsx(BlockScope,{children:/* @__PURE__ */jsxRuntime.jsx(CartLine,{variant:"plan",testID:testID,name:title,image:imageUrl??null,fallback:fallback,price:price,smalls:smalls,quantity:quantity,actions:[{key:"remove",label:removeLabel,accessibilityLabel:`${removeLabel}: ${title}`,onPress:onRemove}]})})}function IconTile({name:name,size:size=36}){let s=useShopStyles(),box2=size===72?s.emptyTile:size===40?s.carrierIc:s.nextIc;/* @__PURE__ */
100
147
  return jsxRuntime.jsx(reactNative.View,{style:box2,accessibilityElementsHidden:true,importantForAccessibility:"no-hide-descendants",children:/* @__PURE__ */jsxRuntime.jsx(ShopV3Icon,{name:name,size:size===72?30:size===40?21:18,color:s.palette.onSoft})})}var SLOP_40={top:2,bottom:2,left:2,right:2};function Stepper({value:value,max:max,label:label,fewerLabel:fewerLabel,moreLabel:moreLabel,disabled:disabled,onChange:onChange}){let s=useShopStyles(),lessOff=disabled||value<=1,moreOff=disabled||value>=max;/* @__PURE__ */
101
148
  return jsxRuntime.jsxs(reactNative.View,{style:s.step,accessibilityLabel:label,accessible:false,children:[
102
149
  /* @__PURE__ */jsxRuntime.jsx(reactNative.Pressable,{style:[s.stepButton,lessOff?s.stepOff:null],accessibilityRole:"button",accessibilityLabel:fewerLabel,accessibilityState:{disabled:lessOff},disabled:lessOff,hitSlop:SLOP_40,onPress:()=>onChange(value-1),children:/* @__PURE__ */jsxRuntime.jsx(ShopV3Icon,{name:"minus",size:16,color:s.palette.ink})}),
103
- /* @__PURE__ */jsxRuntime.jsx(Text2,{tier:"control",style:s.stepValue,accessibilityLabel:`${label}, ${value}`,children:String(value)}),
150
+ /* @__PURE__ */jsxRuntime.jsx(Text3,{tier:"control",style:s.stepValue,accessibilityLabel:`${label}, ${value}`,children:String(value)}),
104
151
  /* @__PURE__ */jsxRuntime.jsx(reactNative.Pressable,{style:[s.stepButton,moreOff?s.stepOff:null],accessibilityRole:"button",accessibilityLabel:moreLabel,accessibilityState:{disabled:moreOff},disabled:moreOff,hitSlop:SLOP_40,onPress:()=>onChange(value+1),children:/* @__PURE__ */jsxRuntime.jsx(ShopV3Icon,{name:"plus",size:16,color:s.palette.ink})})]})}function Btn({label:label,onPress:onPress,ghost:ghost,size:size="md",busy:busy,busyLabel:busyLabel2,disabled:disabled,testID:testID}){let s=useShopStyles(),off=!!disabled||!!busy,shown=busy&&busyLabel2?busyLabel2:label;/* @__PURE__ */
105
- return jsxRuntime.jsx(reactNative.Pressable,{style:[s.btn,size==="lg"?s.btnLg:size==="sm"?s.btnSm:null,ghost?s.btnGhost:null,off?s.btnOff:null],accessibilityRole:"button",accessibilityLabel:shown,accessibilityState:{disabled:off,busy:!!busy},disabled:off,hitSlop:size==="sm"?SLOP_40:void 0,onPress:onPress,testID:testID,children:/* @__PURE__ */jsxRuntime.jsx(Text2,{tier:"control",style:[s.btnText,size==="lg"?s.btnTextLg:size==="sm"?s.btnTextSm:null,ghost?s.btnTextGhost:null],numberOfLines:2,children:shown})})}function LinkBtn({label:label,onPress:onPress,tone:tone="link",role:role="button",disabled:disabled,a11yLabel:a11yLabel}){let s=useShopStyles(),box2=tone==="remove"?s.rm:tone==="risk"?s.cancel:s.link,text=tone==="remove"?s.rmText:tone==="risk"?s.cancelText:s.linkText;/* @__PURE__ */
106
- return jsxRuntime.jsx(reactNative.Pressable,{style:[box2,disabled?s.btnOff:null],accessibilityRole:role,accessibilityLabel:a11yLabel??label,accessibilityState:{disabled:!!disabled},disabled:disabled,hitSlop:SLOP_40,onPress:onPress,children:/* @__PURE__ */jsxRuntime.jsx(Text2,{tier:"control",style:text,children:label})})}function Sum2({rows:rows,flat:flat}){let s=useShopStyles(),look=useShopLook();return rows.length===0?null:look==="everfur-app"?/* @__PURE__ */jsxRuntime.jsx(Sum,{rows:rows,total:rows[rows.length-1]?.total===true}):/* @__PURE__ */jsxRuntime.jsx(reactNative.View,{style:flat?s.sumFlat:s.sum,children:rows.map(r=>/* @__PURE__ */jsxRuntime.jsxs(reactNative.View,{style:[s.sumRow,r.total?s.sumTotalRow:null],accessible:true,accessibilityLabel:`${r.k}, ${r.v}`,children:[
107
- /* @__PURE__ */jsxRuntime.jsx(Text2,{style:r.total?s.sumTotal:s.sumKey,children:r.k}),
108
- /* @__PURE__ */jsxRuntime.jsx(Text2,{style:r.total?s.sumTotal:s.sumValue,children:r.v})]},r.k))})}function Track({steps:steps,label:label}){let s=useShopStyles();/* @__PURE__ */
152
+ return jsxRuntime.jsx(reactNative.Pressable,{style:[s.btn,size==="lg"?s.btnLg:size==="sm"?s.btnSm:null,ghost?s.btnGhost:null,off?s.btnOff:null],accessibilityRole:"button",accessibilityLabel:shown,accessibilityState:{disabled:off,busy:!!busy},disabled:off,hitSlop:size==="sm"?SLOP_40:void 0,onPress:onPress,testID:testID,children:/* @__PURE__ */jsxRuntime.jsx(Text3,{tier:"control",style:[s.btnText,size==="lg"?s.btnTextLg:size==="sm"?s.btnTextSm:null,ghost?s.btnTextGhost:null],numberOfLines:2,children:shown})})}function LinkBtn({label:label,onPress:onPress,tone:tone="link",role:role="button",disabled:disabled,a11yLabel:a11yLabel}){let s=useShopStyles(),box2=tone==="remove"?s.rm:tone==="risk"?s.cancel:s.link,text=tone==="remove"?s.rmText:tone==="risk"?s.cancelText:s.linkText;/* @__PURE__ */
153
+ return jsxRuntime.jsx(reactNative.Pressable,{style:[box2,disabled?s.btnOff:null],accessibilityRole:role,accessibilityLabel:a11yLabel??label,accessibilityState:{disabled:!!disabled},disabled:disabled,hitSlop:SLOP_40,onPress:onPress,children:/* @__PURE__ */jsxRuntime.jsx(Text3,{tier:"control",style:text,children:label})})}function Sum2({rows:rows,flat:flat}){let s=useShopStyles(),look=useShopLook(),paint=react.useMemo(()=>({colors:flat?{ink:s.palette.ink,bg:s.palette.paper}:{ink:s.palette.ink}}),[flat,s.palette.ink,s.palette.paper]);if(rows.length===0)return null;if(look==="everfur-app")/* @__PURE__ */return jsxRuntime.jsx(Sum,{rows:rows,total:rows[rows.length-1]?.total===true});let at=rows.findIndex(r=>r.total===true),lines=rows.map((r,i)=>({key:`${r.k}-${i}`,term:r.k,value:r.v})),head=at>=0?lines.slice(0,at):lines,total=at>=0?lines[at]:void 0,trailing=at>=0&&at<lines.length-1?lines.slice(at+1):void 0;/* @__PURE__ */
154
+ return jsxRuntime.jsx(BlockScope,{children:/* @__PURE__ */jsxRuntime.jsx(ThemeProvider,{theme:paint,children:/* @__PURE__ */jsxRuntime.jsx(SummaryList,{variant:flat?"inset":"card",rows:head,total:total,trailingRows:trailing})})})}function Track({steps:steps,label:label}){let s=useShopStyles();/* @__PURE__ */
109
155
  return jsxRuntime.jsx(reactNative.View,{accessibilityLabel:label,children:steps.map((st,i)=>{let last=i===steps.length-1,railDone=st.state==="done"&&steps[i+1]?.state==="done";/* @__PURE__ */
110
156
  return jsxRuntime.jsxs(reactNative.View,{style:[s.trackLi,last?s.trackLast:null],accessible:true,accessibilityLabel:[st.title,st.line].filter(Boolean).join(", "),children:[last?null:/* @__PURE__ */jsxRuntime.jsx(reactNative.View,{style:[s.trackRail,railDone?s.trackRailDone:null]}),
111
157
  /* @__PURE__ */jsxRuntime.jsx(reactNative.View,{style:[s.trackDot,st.state==="done"?s.trackDotDone:st.state==="now"?s.trackDotNow:null],children:st.state==="done"?/* @__PURE__ */jsxRuntime.jsx(ShopV3Icon,{name:"check",size:13,color:s.palette.card}):null}),
112
158
  /* @__PURE__ */jsxRuntime.jsxs(reactNative.View,{style:s.grow,children:[
113
- /* @__PURE__ */jsxRuntime.jsx(Text2,{style:[s.trackT,st.state==="next"?s.trackTNext:null],children:st.title}),st.line?/* @__PURE__ */jsxRuntime.jsx(Text2,{style:s.trackD,children:st.line}):null]})]},st.key)})})}var KIT_TONE={wait:"soon",done:"clear",risk:"overdue",quiet:"later",sub:"plain"};function kitPill(pill){return{label:pill.label,tone:KIT_TONE[pill.tone]}}function StatusPill({label:label,tone:tone}){let s=useShopStyles();if(useShopLook()==="everfur-app")/* @__PURE__ */return jsxRuntime.jsx(Pill,{pill:kitPill({label:label,tone:tone})});let box2=tone==="done"?s.pillDone:tone==="sub"?s.pillSub:tone==="risk"?s.pillRisk:tone==="quiet"?s.pillQuiet:null,ink=tone==="done"?s.pillDoneText:tone==="sub"?s.pillSubText:tone==="risk"?s.pillRiskText:tone==="quiet"?s.pillQuietText:null;/* @__PURE__ */
114
- return jsxRuntime.jsx(reactNative.View,{style:[s.pill,box2],children:/* @__PURE__ */jsxRuntime.jsx(Text2,{tier:"badge",style:[s.pillText,ink],children:label})})}function Empty({icon:icon,title:title,body:body,action:action}){let s=useShopStyles();/* @__PURE__ */
159
+ /* @__PURE__ */jsxRuntime.jsx(Text3,{style:[s.trackT,st.state==="next"?s.trackTNext:null],children:st.title}),st.line?/* @__PURE__ */jsxRuntime.jsx(Text3,{style:s.trackD,children:st.line}):null]})]},st.key)})})}var KIT_TONE={wait:"soon",done:"clear",risk:"overdue",quiet:"later",sub:"plain"};function kitPill(pill){return{label:pill.label,tone:KIT_TONE[pill.tone]}}function StatusPill({label:label,tone:tone}){let s=useShopStyles();if(useShopLook()==="everfur-app")/* @__PURE__ */return jsxRuntime.jsx(Pill2,{pill:kitPill({label:label,tone:tone})});let box2=tone==="done"?s.pillDone:tone==="sub"?s.pillSub:tone==="risk"?s.pillRisk:tone==="quiet"?s.pillQuiet:null,ink=tone==="done"?s.pillDoneText:tone==="sub"?s.pillSubText:tone==="risk"?s.pillRiskText:tone==="quiet"?s.pillQuietText:null;/* @__PURE__ */
160
+ return jsxRuntime.jsx(reactNative.View,{style:[s.pill,box2],children:/* @__PURE__ */jsxRuntime.jsx(Text3,{tier:"badge",style:[s.pillText,ink],children:label})})}function Empty({icon:icon,title:title,body:body,action:action}){let s=useShopStyles();/* @__PURE__ */
115
161
  return jsxRuntime.jsxs(reactNative.View,{style:s.empty,children:[
116
162
  /* @__PURE__ */jsxRuntime.jsx(IconTile,{name:icon,size:72}),
117
- /* @__PURE__ */jsxRuntime.jsx(Text2,{tier:"heading",style:s.emptyTitle,accessibilityRole:"header",children:title}),body?/* @__PURE__ */jsxRuntime.jsx(Text2,{style:s.emptyBody,children:body}):null,action?/* @__PURE__ */jsxRuntime.jsx(reactNative.View,{style:s.emptyAct,children:action}):null]})}function Ghosts({rows:rows=3}){let s=useShopStyles(),widths=["100%","82%","64%"];/* @__PURE__ */
163
+ /* @__PURE__ */jsxRuntime.jsx(Text3,{tier:"heading",style:s.emptyTitle,accessibilityRole:"header",children:title}),body?/* @__PURE__ */jsxRuntime.jsx(Text3,{style:s.emptyBody,children:body}):null,action?/* @__PURE__ */jsxRuntime.jsx(reactNative.View,{style:s.emptyAct,children:action}):null]})}function Ghosts({rows:rows=3}){let s=useShopStyles(),widths=["100%","82%","64%"];/* @__PURE__ */
118
164
  return jsxRuntime.jsx(reactNative.View,{style:[s.card,{gap:12}],accessibilityElementsHidden:true,importantForAccessibility:"no-hide-descendants",testID:"shop-ghost",children:Array.from({length:rows},(_,i)=>/* @__PURE__ */jsxRuntime.jsx(reactNative.View,{style:[s.ghostLine,{width:widths[i%3]}]},i))})}function ErrorLine({line:line,children:children}){let s=useShopStyles();return line?/* @__PURE__ */jsxRuntime.jsxs(reactNative.View,{style:[s.error,{gap:10}],accessibilityLiveRegion:"polite",testID:"shop-error",children:[
119
- /* @__PURE__ */jsxRuntime.jsx(Text2,{style:s.errorText,accessibilityRole:"alert",children:line}),children??null]}):null}function Toast({line:line}){let s=useShopStyles();return line?/* @__PURE__ */jsxRuntime.jsx(reactNative.View,{style:s.toast,accessibilityLiveRegion:"polite",testID:"shop-toast",children:/* @__PURE__ */jsxRuntime.jsx(Text2,{style:s.toastText,children:line})}):null}function Sheet({open:open,kicker:kicker,closeLabel:closeLabel,onClose:onClose,children:children,foot:foot,testID:testID}){let s=useShopStyles(),{screenBottomInset:screenBottomInset}=useShopV3Host();/* @__PURE__ */
165
+ /* @__PURE__ */jsxRuntime.jsx(Text3,{style:s.errorText,accessibilityRole:"alert",children:line}),children??null]}):null}function Toast2({line:line}){let s=useShopStyles();return line?/* @__PURE__ */jsxRuntime.jsx(reactNative.View,{style:s.toast,accessibilityLiveRegion:"polite",testID:"shop-toast",children:/* @__PURE__ */jsxRuntime.jsx(Text3,{style:s.toastText,children:line})}):null}function Sheet2({open:open,kicker:kicker,closeLabel:closeLabel,onClose:onClose,children:children,foot:foot,testID:testID}){let s=useShopStyles(),{screenBottomInset:screenBottomInset}=useShopV3Host();/* @__PURE__ */
120
166
  return jsxRuntime.jsx(reactNative.Modal,{visible:open,transparent:true,animationType:"slide",onRequestClose:onClose,statusBarTranslucent:true,children:/* @__PURE__ */jsxRuntime.jsxs(reactNative.KeyboardAvoidingView,{style:s.scrim,behavior:reactNative.Platform.OS==="ios"?"padding":void 0,children:[
121
167
  /* @__PURE__ */jsxRuntime.jsx(reactNative.Pressable,{style:{position:"absolute",top:0,right:0,bottom:0,left:0},onPress:onClose,accessibilityRole:"button",accessibilityLabel:closeLabel}),
122
168
  /* @__PURE__ */jsxRuntime.jsxs(reactNative.View,{style:[s.sheet,{paddingBottom:Math.max(24,screenBottomInset+6)}],accessibilityViewIsModal:true,testID:testID??"shop-sheet",children:[
123
169
  /* @__PURE__ */jsxRuntime.jsx(reactNative.View,{style:s.grab,accessibilityElementsHidden:true,importantForAccessibility:"no-hide-descendants"}),
124
170
  /* @__PURE__ */jsxRuntime.jsxs(reactNative.View,{style:s.sheetTop,children:[
125
- /* @__PURE__ */jsxRuntime.jsx(Text2,{tier:"compact",style:s.kicker,accessibilityRole:"header",children:kicker}),
171
+ /* @__PURE__ */jsxRuntime.jsx(Text3,{tier:"compact",style:s.kicker,accessibilityRole:"header",children:kicker}),
126
172
  /* @__PURE__ */jsxRuntime.jsx(reactNative.Pressable,{style:s.x,onPress:onClose,accessibilityRole:"button",accessibilityLabel:closeLabel,hitSlop:SLOP_40,children:/* @__PURE__ */jsxRuntime.jsx(ShopV3Icon,{name:"close",size:18,color:s.palette.ink})})]}),
127
- /* @__PURE__ */jsxRuntime.jsx(reactNative.ScrollView,{style:{flexGrow:0},contentContainerStyle:s.co,keyboardShouldPersistTaps:"handled",children:children}),foot?/* @__PURE__ */jsxRuntime.jsx(reactNative.View,{style:{marginTop:12,gap:10},children:foot}):null]})]})})}function CoRow({icon:icon,k:k,value:value,onPress:onPress,disabled:disabled}){let s=useShopStyles(),body=/* @__PURE__ */jsxRuntime.jsxs(jsxRuntime.Fragment,{children:[icon?/* @__PURE__ */jsxRuntime.jsx(ShopV3Icon,{name:icon,size:20,color:s.palette.ink2}):null,
128
- /* @__PURE__ */jsxRuntime.jsx(Text2,{style:s.coKey,children:k}),
129
- /* @__PURE__ */jsxRuntime.jsx(Text2,{style:s.coValue,numberOfLines:2,children:value}),onPress?/* @__PURE__ */jsxRuntime.jsx(ShopV3Icon,{name:"chev",size:16,color:s.palette.ink3}):null]});return onPress?/* @__PURE__ */jsxRuntime.jsx(reactNative.Pressable,{style:[s.coRow,disabled?s.btnOff:null],onPress:onPress,disabled:disabled,accessibilityRole:"button",accessibilityLabel:`${k}, ${value}`,children:body}):/* @__PURE__ */jsxRuntime.jsx(reactNative.View,{style:s.coRow,accessible:true,accessibilityLabel:`${k}, ${value}`,children:body})}function Opt({on:on,name:name,small:small,onPress:onPress}){let s=useShopStyles();/* @__PURE__ */
173
+ /* @__PURE__ */jsxRuntime.jsx(reactNative.ScrollView,{style:{flexGrow:0},contentContainerStyle:s.co,keyboardShouldPersistTaps:"handled",children:children}),foot?/* @__PURE__ */jsxRuntime.jsx(reactNative.View,{style:{marginTop:12,gap:10},children:foot}):null]})]})})}function CoRow({icon:icon,k:k2,value:value,onPress:onPress,disabled:disabled}){let s=useShopStyles(),body=/* @__PURE__ */jsxRuntime.jsxs(jsxRuntime.Fragment,{children:[icon?/* @__PURE__ */jsxRuntime.jsx(ShopV3Icon,{name:icon,size:20,color:s.palette.ink2}):null,
174
+ /* @__PURE__ */jsxRuntime.jsx(Text3,{style:s.coKey,children:k2}),
175
+ /* @__PURE__ */jsxRuntime.jsx(Text3,{style:s.coValue,numberOfLines:2,children:value}),onPress?/* @__PURE__ */jsxRuntime.jsx(ShopV3Icon,{name:"chev",size:16,color:s.palette.ink3}):null]});return onPress?/* @__PURE__ */jsxRuntime.jsx(reactNative.Pressable,{style:[s.coRow,disabled?s.btnOff:null],onPress:onPress,disabled:disabled,accessibilityRole:"button",accessibilityLabel:`${k2}, ${value}`,children:body}):/* @__PURE__ */jsxRuntime.jsx(reactNative.View,{style:s.coRow,accessible:true,accessibilityLabel:`${k2}, ${value}`,children:body})}function Opt({on:on,name:name,small:small,onPress:onPress}){let s=useShopStyles();/* @__PURE__ */
130
176
  return jsxRuntime.jsxs(reactNative.Pressable,{style:[s.opt,on?s.optOn:null],onPress:onPress,accessibilityRole:"radio",accessibilityState:{checked:on,selected:on},accessibilityLabel:[name,small].filter(Boolean).join(", "),children:[
131
177
  /* @__PURE__ */jsxRuntime.jsx(reactNative.View,{style:[s.optRadio,on?s.optRadioOn:null]}),
132
178
  /* @__PURE__ */jsxRuntime.jsxs(reactNative.View,{style:s.grow,children:[
133
- /* @__PURE__ */jsxRuntime.jsx(Text2,{style:s.optName,children:name}),small?/* @__PURE__ */jsxRuntime.jsx(Text2,{style:s.optSmall,children:small}):null]})]})}function Field({label:label,value:value,onChange:onChange,autoComplete:autoComplete,error:error,kind:kind}){let s=useShopStyles();/* @__PURE__ */
179
+ /* @__PURE__ */jsxRuntime.jsx(Text3,{style:s.optName,children:name}),small?/* @__PURE__ */jsxRuntime.jsx(Text3,{style:s.optSmall,children:small}):null]})]})}function Field2({label:label,value:value,onChange:onChange,autoComplete:autoComplete,error:error,kind:kind}){let s=useShopStyles();/* @__PURE__ */
134
180
  return jsxRuntime.jsxs(reactNative.View,{children:[
135
- /* @__PURE__ */jsxRuntime.jsx(Text2,{tier:"control",style:s.fieldLabel,children:label}),
136
- /* @__PURE__ */jsxRuntime.jsx(TextInput,{style:s.field,value:value,onChangeText:onChange,accessibilityLabel:label,autoComplete:autoComplete,placeholderTextColor:s.palette.ink3,...kind==="state"?{autoCapitalize:"characters",autoCorrect:false,maxLength:2}:null,...kind==="zip"?{keyboardType:"number-pad",maxLength:10}:null}),error?/* @__PURE__ */jsxRuntime.jsx(Text2,{style:s.fieldErr,children:error}):null]})}function stepAt(o,key){return o.steps?.find(s=>s.key===key)?.at??null}function appSteps(o,copy){let at=STEP_OF[o.summary.status];if(at===void 0)return null;let events=o.shipments.flatMap(sh=>sh.tracking),times=pick=>events.filter(e=>pick(e.status)).map(e=>e.occurredAt).filter(d=>!!d).sort()[0]??null,tracking=latestTracking(o),shippedText=tracking?.trackingNumber?[tracking.carrier,tracking.trackingNumber].filter(Boolean).join(" "):null,by=formatDay(arrivesByOf(o),{weekday:true}),delivered=at===5;return[{key:"approved",title:copy.stepApproved,when:formatWhen(o.summary.placedAt),text:null},{key:"checking",title:copy.stepChecking,when:null,text:null},{key:"filled",title:copy.stepFilled,when:null,text:null},{key:"shipped",title:copy.stepShipped,when:formatWhen(stepAt(o,"shipped")??times(()=>true)),text:shippedText},{key:"delivered",title:copy.stepDelivered,when:formatWhen(stepAt(o,"delivered")??times(s=>s==="delivered")),text:!delivered&&by?copy.expected(by):null}].map((d,n)=>{let state=n<at||delivered?"done":n===at?"now":"next";return{...d,when:state==="next"?null:d.when,state:state}})}function AppOrderScreen({orderId:orderId,go:go}){let{copy:copy,v3:v3,petName:petName}=useShop(),host=useShopV3Host(),kit=useKit(),nav=useShopNativeNav(),{order:order,o:o,ref:ref,line:line,asking:asking,setAsking:setAsking,pay:pay,cancel:cancel,busy:busy,onPay:onPay,onCancel:onCancel,sum:sum,refundRow:refundRow,paidCard:paidCard,buyAgain:buyAgain}=useOrderModel(orderId,go);if(!o)/* @__PURE__ */
181
+ /* @__PURE__ */jsxRuntime.jsx(Text3,{tier:"control",style:s.fieldLabel,children:label}),
182
+ /* @__PURE__ */jsxRuntime.jsx(TextInput2,{style:s.field,value:value,onChangeText:onChange,accessibilityLabel:label,autoComplete:autoComplete,placeholderTextColor:s.palette.ink3,...kind==="state"?{autoCapitalize:"characters",autoCorrect:false,maxLength:2}:null,...kind==="zip"?{keyboardType:"number-pad",maxLength:10}:null}),error?/* @__PURE__ */jsxRuntime.jsx(Text3,{style:s.fieldErr,children:error}):null]})}function stepAt(o,key){return o.steps?.find(s=>s.key===key)?.at??null}function appSteps(o,copy){let at=STEP_OF[o.summary.status];if(at===void 0)return null;let events=o.shipments.flatMap(sh=>sh.tracking),times=pick=>events.filter(e=>pick(e.status)).map(e=>e.occurredAt).filter(d=>!!d).sort()[0]??null,tracking=latestTracking(o),shippedText=tracking?.trackingNumber?[tracking.carrier,tracking.trackingNumber].filter(Boolean).join(" "):null,by=formatDay(arrivesByOf(o),{weekday:true}),delivered=at===5;return[{key:"approved",title:copy.stepApproved,when:formatWhen(o.summary.placedAt),text:null},{key:"checking",title:copy.stepChecking,when:null,text:null},{key:"filled",title:copy.stepFilled,when:null,text:null},{key:"shipped",title:copy.stepShipped,when:formatWhen(stepAt(o,"shipped")??times(()=>true)),text:shippedText},{key:"delivered",title:copy.stepDelivered,when:formatWhen(stepAt(o,"delivered")??times(s=>s==="delivered")),text:!delivered&&by?copy.expected(by):null}].map((d,n)=>{let state=n<at||delivered?"done":n===at?"now":"next";return{...d,when:state==="next"?null:d.when,state:state}})}function AppOrderScreen({orderId:orderId,go:go}){let{copy:copy,v3:v3,petName:petName}=useShop(),host=useShopV3Host(),kit=useKit(),nav=useShopNativeNav(),{order:order,o:o,ref:ref,line:line,asking:asking,setAsking:setAsking,pay:pay,cancel:cancel,busy:busy,onPay:onPay,onCancel:onCancel,sum:sum,refundRow:refundRow,paidCard:paidCard,buyAgain:buyAgain}=useOrderModel(orderId,go);if(!o)/* @__PURE__ */
137
183
  return jsxRuntime.jsx(Frame,{onRefresh:order.reread,children:/* @__PURE__ */jsxRuntime.jsxs(reactNative.View,{testID:"shop-order",children:[order.phase==="loading"?/* @__PURE__ */jsxRuntime.jsx(Ghost,{rows:2}):null,
138
- /* @__PURE__ */jsxRuntime.jsx(Stack,{children:order.phase==="loading"?/* @__PURE__ */jsxRuntime.jsxs(Card,{children:[
184
+ /* @__PURE__ */jsxRuntime.jsx(Stack,{children:order.phase==="loading"?/* @__PURE__ */jsxRuntime.jsxs(Card2,{children:[
139
185
  /* @__PURE__ */jsxRuntime.jsx(CardTitle,{children:copy.whereItStands}),
140
186
  /* @__PURE__ */jsxRuntime.jsx(Ghost,{})]}):/* @__PURE__ */jsxRuntime.jsx(LoadFailed,{copy:copy,thing:copy.thingOrder,retry:order.refresh})}),
141
187
  /* @__PURE__ */jsxRuntime.jsx(Legal,{line:copy.legalTracking})]})});let sub=[ref?v3.orderTitle(ref):null,orderSubline(o,copy,v3)].filter(Boolean).join(" · "),steps=appSteps(o,copy),tracking=latestTracking(o),carrier=tracking?.carrier??null,link=kit.v("rowLink"),gap=PHONE_BOX.noteAfterTotal.marginTop;/* @__PURE__ */
@@ -143,15 +189,15 @@ return jsxRuntime.jsxs(Frame,{onRefresh:order.reread,children:[
143
189
  /* @__PURE__ */jsxRuntime.jsxs(reactNative.View,{testID:"shop-order",children:[
144
190
  /* @__PURE__ */jsxRuntime.jsx(TitleBlock,{title:orderHeadline(o,copy,v3),meta:sub||null}),
145
191
  /* @__PURE__ */jsxRuntime.jsx(InlineError,{line:line}),
146
- /* @__PURE__ */jsxRuntime.jsxs(Stack,{children:[steps?/* @__PURE__ */jsxRuntime.jsxs(Card,{children:[
192
+ /* @__PURE__ */jsxRuntime.jsxs(Stack,{children:[steps?/* @__PURE__ */jsxRuntime.jsxs(Card2,{children:[
147
193
  /* @__PURE__ */jsxRuntime.jsx(CardTitle,{children:copy.whereItStands}),
148
194
  /* @__PURE__ */jsxRuntime.jsx(reactNative.View,{accessibilityLabel:v3.tracking,children:/* @__PURE__ */jsxRuntime.jsx(Tracker,{copy:copy,steps:steps})}),tracking?.trackingUrl?/* @__PURE__ */jsxRuntime.jsx(reactNative.View,{style:{marginTop:gap},children:/* @__PURE__ */jsxRuntime.jsx(Press,{role:"link",label:carrier?v3.trackOn(carrier):copy.trackPackage,onPress:()=>nav.openExternal(tracking.trackingUrl),style:[kit.v("cardLink"),{alignSelf:"flex-start"}],children:/* @__PURE__ */jsxRuntime.jsx(T,{k:"cardLink",bare:true,style:underline("cardLink"),children:carrier?v3.trackOn(carrier):copy.trackPackage})})}):null]}):null,
149
- /* @__PURE__ */jsxRuntime.jsxs(Card,{children:[
195
+ /* @__PURE__ */jsxRuntime.jsxs(Card2,{children:[
150
196
  /* @__PURE__ */jsxRuntime.jsx(CardTitle,{children:copy.inTheBox}),
151
197
  /* @__PURE__ */jsxRuntime.jsx(reactNative.View,{children:o.lines.map((l,i)=>{let tile=formTile(drugForm(l.requiresRx,l.title)),meta=[petName(l.petId),v3.orderItemLine(l.quantity)].filter(Boolean).join(" · ");/* @__PURE__ */
152
198
  return jsxRuntime.jsxs(ItemRow,{index:i,count:o.lines.length,first:"trackItemsLiFirst",last:"trackItemsLiLast",thumb:/* @__PURE__ */jsxRuntime.jsx(Thumb,{tone:tile.tone,icon:tile.icon,imageUrl:l.imageUrl??null}),children:[
153
199
  /* @__PURE__ */jsxRuntime.jsx(ItemName,{name:l.title,rx:l.requiresRx,copy:copy}),meta?/* @__PURE__ */jsxRuntime.jsx(T,{k:"itemsMeta",children:meta}):null]},l.lineId)})})]}),
154
- /* @__PURE__ */jsxRuntime.jsxs(Card,{children:[
200
+ /* @__PURE__ */jsxRuntime.jsxs(Card2,{children:[
155
201
  /* @__PURE__ */jsxRuntime.jsx(CardTitle,{children:copy.payment}),
156
202
  /* @__PURE__ */jsxRuntime.jsx(Sum,{rows:sum,total:true}),refundRow?/* @__PURE__ */jsxRuntime.jsx(reactNative.View,{style:{marginTop:gap},children:/* @__PURE__ */jsxRuntime.jsx(Sum,{rows:[refundRow],total:false})}):null,paidCard?/* @__PURE__ */jsxRuntime.jsx(T,{k:"noteAfterTotal",children:`${v3.paidWith} ${cardLabel(paidCard.brand,paidCard.last4)}`}):null,o.canPay?/* @__PURE__ */jsxRuntime.jsx(reactNative.View,{style:{marginTop:kit.v("breaks").marginTop},testID:"shop-order-pay",children:/* @__PURE__ */jsxRuntime.jsx(InkButton,{action:{label:copy.payOrder,busy:pay.busy,busyLabel:copy.saving,disabled:busy,onPress:onPay}})}):null]}),buyAgain||host.onOrderHelp||o.canCancel?/* @__PURE__ */jsxRuntime.jsxs(reactNative.View,{style:{rowGap:kit.v("sheetActions").rowGap},children:[buyAgain?/* @__PURE__ */jsxRuntime.jsx(OutlineButton,{k:"btnOutline",action:{label:v3.buyAgain,onPress:buyAgain}}):null,host.onOrderHelp?/* @__PURE__ */jsxRuntime.jsx(CardLinkButton,{label:v3.orderHelp,onPress:()=>host.onOrderHelp?.(orderId)}):null,o.canCancel?/* @__PURE__ */jsxRuntime.jsx(CardLinkButton,{label:copy.cancelOrder,danger:true,disabled:busy,onPress:()=>setAsking(true)}):null]}):null,
157
203
  /* @__PURE__ */jsxRuntime.jsxs(Press,{role:"link",label:copy.allOrders,onPress:()=>go({name:"orders"}),style:[link,{flexDirection:"row",alignItems:"center",rowGap:0,columnGap:0}],children:[
@@ -159,14 +205,14 @@ return jsxRuntime.jsxs(ItemRow,{index:i,count:o.lines.length,first:"trackItemsLi
159
205
  /* @__PURE__ */jsxRuntime.jsx(T,{k:"rowLink",bare:true,style:{flex:1,minWidth:0},children:copy.allOrders}),
160
206
  /* @__PURE__ */jsxRuntime.jsx(PartIcon,{name:"chevron",k:"rowLinkChevron",style:{marginLeft:link.columnGap}})]})]}),
161
207
  /* @__PURE__ */jsxRuntime.jsx(Legal,{line:copy.legalTracking})]}),
162
- /* @__PURE__ */jsxRuntime.jsx(ConfirmSheet,{open:asking,title:v3.cancelAsk,body:v3.cancelBody,confirm:copy.cancelOrder,keep:copy.keepIt,closeLabel:copy.close,busyLabel:copy.saving,busy:cancel.busy,error:null,onConfirm:onCancel,onClose:()=>!cancel.busy&&setAsking(false)})]})}function CardLinkButton({label:label,onPress:onPress,danger:danger,disabled:disabled}){let k=danger?"linkDanger":"cardLink";/* @__PURE__ */
163
- return jsxRuntime.jsx(Press,{label:label,onPress:onPress,disabled:disabled===true,style:{minHeight:44,justifyContent:"center",alignSelf:"center",opacity:disabled?.4:1},children:/* @__PURE__ */jsxRuntime.jsx(T,{k:k,bare:true,style:[underline(k),{textDecorationLine:"underline",textAlign:"center"}],children:label})})}var EVERY=[30,60,90];function cadenceChoices(current){return EVERY.includes(current)?EVERY:[...EVERY,current].sort((a,b)=>a-b)}function useSubscriptions(){let{client:client}=useShop(),read=usePlans(),[own,setOwn]=react.useState(/* @__PURE__ */new Map),value=read.value;react.useEffect(()=>setOwn(/* @__PURE__ */new Map),[value]);let plans=react.useMemo(()=>(value?.plans??[]).map(p=>own.get(p.planId)??p).filter(p=>p.state!=="cancelled"),[value,own]),ids=[...new Set(plans.flatMap(p=>p.lines.map(l=>l.offerId)))].sort(),offers=useShopRead(ids.length>0?`v3-plan-offers:${ids.join(",")}`:null,async()=>{let got=await Promise.all(ids.map(id=>client.offer(id)));return omsOk(new Map(ids.map((id,i)=>[id,got[i].ok?got[i].value:null])))});return{phase:read.phase==="unavailable"?"none":read.phase==="failed"?"failed":read.phase==="loading"||ids.length>0&&offers.phase==="loading"?"loading":"ready",plans:plans,offers:offers.value??/* @__PURE__ */new Map,refresh:read.refresh,put:plan=>setOwn(m=>new Map(m).set(plan.planId,plan))}}function planName(plan,offers,gone){return itemNames(plan.lines.map(l=>({title:offers.get(l.offerId)?.title??gone})))}var planRx=(plan,offers)=>plan.lines.some(l=>offers.get(l.offerId)?.requiresRx===true);function Subscriptions({subs:subs,onOrders:onOrders}){let{client:client,copy:copy,v3:v3}=useShop(),{pkg:pkg}=useShopShared(),s=useShopStyles(),[managing,setManaging]=react.useState(null),[pane,setPane]=react.useState("main"),[line,setLine]=react.useState(null),[error,setError]=react.useState(null),cadence=useShopAction((keys,p,days)=>client.updatePlan(p.planId,{idempotencyKey:keys.key(`cadence:${p.planId}:${days}`),cadenceDays:days})),act=useShopAction((keys,p,operation)=>client.planAction(p.planId,{idempotencyKey:keys.key(`${operation}:${p.planId}`),operation:operation})),cancel=useShopAction((_keys,p)=>client.cancelPlan(p.planId)),busy=cadence.busy||act.busy||cancel.busy,month=packageMonth(pkg);if(subs.phase==="none"||subs.phase==="ready"&&subs.plans.length===0)return null;if(subs.phase==="loading")/* @__PURE__ */return jsxRuntime.jsx(Ghosts,{rows:2});if(subs.phase==="failed")/* @__PURE__ */
208
+ /* @__PURE__ */jsxRuntime.jsx(ConfirmSheet,{open:asking,title:v3.cancelAsk,body:v3.cancelBody,confirm:copy.cancelOrder,keep:copy.keepIt,closeLabel:copy.close,busyLabel:copy.saving,busy:cancel.busy,error:null,onConfirm:onCancel,onClose:()=>!cancel.busy&&setAsking(false)})]})}function CardLinkButton({label:label,onPress:onPress,danger:danger,disabled:disabled}){let k2=danger?"linkDanger":"cardLink";/* @__PURE__ */
209
+ return jsxRuntime.jsx(Press,{label:label,onPress:onPress,disabled:disabled===true,style:{minHeight:44,justifyContent:"center",alignSelf:"center",opacity:disabled?.4:1},children:/* @__PURE__ */jsxRuntime.jsx(T,{k:k2,bare:true,style:[underline(k2),{textDecorationLine:"underline",textAlign:"center"}],children:label})})}var EVERY=[30,60,90];function cadenceChoices(current){return EVERY.includes(current)?EVERY:[...EVERY,current].sort((a,b)=>a-b)}function useSubscriptions(){let{client:client}=useShop(),read=usePlans(),[own,setOwn]=react.useState(/* @__PURE__ */new Map),value=read.value;react.useEffect(()=>setOwn(/* @__PURE__ */new Map),[value]);let plans=react.useMemo(()=>(value?.plans??[]).map(p=>own.get(p.planId)??p).filter(p=>p.state!=="cancelled"),[value,own]),ids=[...new Set(plans.flatMap(p=>p.lines.map(l=>l.offerId)))].sort(),offers=useShopRead(ids.length>0?`v3-plan-offers:${ids.join(",")}`:null,async()=>{let got=await Promise.all(ids.map(id=>client.offer(id)));return omsOk(new Map(ids.map((id,i)=>[id,got[i].ok?got[i].value:null])))});return{phase:read.phase==="unavailable"?"none":read.phase==="failed"?"failed":read.phase==="loading"||ids.length>0&&offers.phase==="loading"?"loading":"ready",plans:plans,offers:offers.value??/* @__PURE__ */new Map,refresh:read.refresh,put:plan=>setOwn(m=>new Map(m).set(plan.planId,plan))}}function planName(plan,offers,gone){return itemNames(plan.lines.map(l=>({title:offers.get(l.offerId)?.title??gone})))}var planRx=(plan,offers)=>plan.lines.some(l=>offers.get(l.offerId)?.requiresRx===true);function Subscriptions({subs:subs,onOrders:onOrders}){let{client:client,copy:copy,v3:v3}=useShop(),{pkg:pkg}=useShopShared(),s=useShopStyles(),[managing,setManaging]=react.useState(null),[pane,setPane]=react.useState("main"),[line,setLine]=react.useState(null),[error,setError]=react.useState(null),cadence=useShopAction((keys,p,days)=>client.updatePlan(p.planId,{idempotencyKey:keys.key(`cadence:${p.planId}:${days}`),cadenceDays:days})),act=useShopAction((keys,p,operation)=>client.planAction(p.planId,{idempotencyKey:keys.key(`${operation}:${p.planId}`),operation:operation})),cancel=useShopAction((_keys,p)=>client.cancelPlan(p.planId)),busy=cadence.busy||act.busy||cancel.busy,month=packageMonth(pkg);if(subs.phase==="none"||subs.phase==="ready"&&subs.plans.length===0)return null;if(subs.phase==="loading")/* @__PURE__ */return jsxRuntime.jsx(Ghosts,{rows:2});if(subs.phase==="failed")/* @__PURE__ */
164
210
  return jsxRuntime.jsx(ErrorLine,{line:copy.loadFailed(copy.thingPlan),children:/* @__PURE__ */jsxRuntime.jsx(Btn,{ghost:true,size:"sm",label:copy.tryAgain,onPress:subs.refresh})});let plan=managing?subs.plans.find(p=>p.planId===managing)??null:null,open=p=>{setManaging(p.planId),setPane("main"),setLine(null),setError(null)},close=()=>{busy||(setManaging(null),setPane("main"),setLine(null),setError(null))},done=(res,after,refreshPackage)=>res?res.ok?(setError(null),setLine(after),subs.put(res.value),pkg.refresh(),true):(setError(refusalLine(copy,res.error)),false):false,onEvery=(p,days)=>{busy||days===p.cadenceDays||(setLine(null),cadence.run(p,days).then(res=>done(res,null)))},onOp=(p,operation)=>{setLine(null),act.run(p,operation).then(res=>{done(res,operation==="skip"?v3.skipped:null)&&setPane("main")})},onCancel=p=>{cancel.run(p).then(res=>{done(res,null)&&(setManaging(null),setPane("main"))})};/* @__PURE__ */
165
211
  return jsxRuntime.jsxs(jsxRuntime.Fragment,{children:[
166
212
  /* @__PURE__ */jsxRuntime.jsx(K,{children:v3.manageKicker}),subs.plans.map(p=>/* @__PURE__ */jsxRuntime.jsx(PlanCard,{plan:p,name:planName(p,subs.offers,copy.itemNoLongerSold),rx:planRx(p,subs.offers),month:month,onManage:()=>open(p)},p.planId)),
167
- /* @__PURE__ */jsxRuntime.jsx(Sheet,{open:plan!==null,kicker:v3.manageKicker,closeLabel:copy.close,onClose:close,testID:"shop-manage",children:plan?pane==="main"?/* @__PURE__ */jsxRuntime.jsx(ManageMain,{plan:plan,name:planName(plan,subs.offers,copy.itemNoLongerSold),rx:planRx(plan,subs.offers),busy:busy,line:line,error:error,onEvery:d=>onEvery(plan,d),onSkip:()=>onOp(plan,"skip"),onPause:()=>{setLine(null),setError(null),setPane("pause")},onResume:()=>onOp(plan,"resume"),onCancel:()=>{setLine(null),setError(null),setPane("cancel")},onOrders:()=>{close(),onOrders()}}):/* @__PURE__ */jsxRuntime.jsxs(reactNative.View,{style:{gap:10},children:[
168
- /* @__PURE__ */jsxRuntime.jsx(Text2,{tier:"heading",style:s.sheetTitle,accessibilityRole:"header",children:pane==="pause"?copy.pausePlanAsk:v3.cancelSubscriptionAsk}),
169
- /* @__PURE__ */jsxRuntime.jsx(Text2,{style:s.sub2,children:pane==="pause"?copy.pausePlanBody:v3.cancelSubscriptionBody}),
213
+ /* @__PURE__ */jsxRuntime.jsx(Sheet2,{open:plan!==null,kicker:v3.manageKicker,closeLabel:copy.close,onClose:close,testID:"shop-manage",children:plan?pane==="main"?/* @__PURE__ */jsxRuntime.jsx(ManageMain,{plan:plan,name:planName(plan,subs.offers,copy.itemNoLongerSold),rx:planRx(plan,subs.offers),busy:busy,line:line,error:error,onEvery:d=>onEvery(plan,d),onSkip:()=>onOp(plan,"skip"),onPause:()=>{setLine(null),setError(null),setPane("pause")},onResume:()=>onOp(plan,"resume"),onCancel:()=>{setLine(null),setError(null),setPane("cancel")},onOrders:()=>{close(),onOrders()}}):/* @__PURE__ */jsxRuntime.jsxs(reactNative.View,{style:{gap:10},children:[
214
+ /* @__PURE__ */jsxRuntime.jsx(Text3,{tier:"heading",style:s.sheetTitle,accessibilityRole:"header",children:pane==="pause"?copy.pausePlanAsk:v3.cancelSubscriptionAsk}),
215
+ /* @__PURE__ */jsxRuntime.jsx(Text3,{style:s.sub2,children:pane==="pause"?copy.pausePlanBody:v3.cancelSubscriptionBody}),
170
216
  /* @__PURE__ */jsxRuntime.jsx(ErrorLine,{line:error}),
171
217
  /* @__PURE__ */jsxRuntime.jsxs(reactNative.View,{style:{gap:10,marginTop:8},children:[
172
218
  /* @__PURE__ */jsxRuntime.jsx(Btn,{label:pane==="pause"?copy.pausePlan:v3.cancelSubscription,busy:busy,busyLabel:copy.saving,onPress:()=>pane==="pause"?onOp(plan,"pause"):onCancel(plan),testID:pane==="pause"?"shop-plan-pause-confirm":"shop-plan-cancel-confirm"}),
@@ -174,65 +220,60 @@ return jsxRuntime.jsxs(jsxRuntime.Fragment,{children:[
174
220
  return jsxRuntime.jsxs(reactNative.View,{style:s.subc,testID:"shop-plan-card",children:[
175
221
  /* @__PURE__ */jsxRuntime.jsx(Thumb2,{rx:rx,size:56,onCard:true,title:name}),
176
222
  /* @__PURE__ */jsxRuntime.jsxs(reactNative.View,{style:s.grow,accessible:true,accessibilityLabel:[name,next?v3.nextBox(next):null,stop??v3.everyDays(plan.cadenceDays)].filter(Boolean).join(", "),children:[
177
- /* @__PURE__ */jsxRuntime.jsx(Text2,{style:s.subcName,children:name}),next?/* @__PURE__ */jsxRuntime.jsx(Text2,{style:s.subcSmall,children:v3.nextBox(next)}):null,stop?/* @__PURE__ */jsxRuntime.jsx(Text2,{style:plan.state==="paused"&&(plan.stopReason??"customer")==="customer"?s.subcSmall:s.subcAlert,children:stop}):/* @__PURE__ */jsxRuntime.jsx(Text2,{style:s.subcSmall,children:v3.everyDays(plan.cadenceDays)})]}),
178
- /* @__PURE__ */jsxRuntime.jsx(reactNative.Pressable,{style:s.subcBtn,onPress:onManage,accessibilityRole:"button",accessibilityLabel:v3.manageTitle(name),hitSlop:{top:2,bottom:2,left:2,right:2},children:/* @__PURE__ */jsxRuntime.jsx(Text2,{tier:"control",style:s.subcBtnText,children:v3.manage})})]})}function stopLine(plan,copy,month){let reason=plan.stopReason;return reason==="payment_declined"?copy.declined(month):reason&&reason!=="customer"?copy.stopReason(reason):plan.state==="paused"?copy.pausePlanBody:null}function ManageMain({plan:plan,name:name,rx:rx,busy:busy,line:line,error:error,onEvery:onEvery,onSkip:onSkip,onPause:onPause,onResume:onResume,onCancel:onCancel,onOrders:onOrders}){let{copy:copy,v3:v3}=useShop(),s=useShopStyles(),active=plan.state==="active",paused=plan.state==="paused",next=active?formatDay(plan.nextRun):null;/* @__PURE__ */
223
+ /* @__PURE__ */jsxRuntime.jsx(Text3,{style:s.subcName,children:name}),next?/* @__PURE__ */jsxRuntime.jsx(Text3,{style:s.subcSmall,children:v3.nextBox(next)}):null,stop?/* @__PURE__ */jsxRuntime.jsx(Text3,{style:plan.state==="paused"&&(plan.stopReason??"customer")==="customer"?s.subcSmall:s.subcAlert,children:stop}):/* @__PURE__ */jsxRuntime.jsx(Text3,{style:s.subcSmall,children:v3.everyDays(plan.cadenceDays)})]}),
224
+ /* @__PURE__ */jsxRuntime.jsx(reactNative.Pressable,{style:s.subcBtn,onPress:onManage,accessibilityRole:"button",accessibilityLabel:v3.manageTitle(name),hitSlop:{top:2,bottom:2,left:2,right:2},children:/* @__PURE__ */jsxRuntime.jsx(Text3,{tier:"control",style:s.subcBtnText,children:v3.manage})})]})}function stopLine(plan,copy,month){let reason=plan.stopReason;return reason==="payment_declined"?copy.declined(month):reason&&reason!=="customer"?copy.stopReason(reason):plan.state==="paused"?copy.pausePlanBody:null}function ManageMain({plan:plan,name:name,rx:rx,busy:busy,line:line,error:error,onEvery:onEvery,onSkip:onSkip,onPause:onPause,onResume:onResume,onCancel:onCancel,onOrders:onOrders}){let{copy:copy,v3:v3}=useShop(),s=useShopStyles(),active=plan.state==="active",paused=plan.state==="paused",next=active?formatDay(plan.nextRun):null;/* @__PURE__ */
179
225
  return jsxRuntime.jsxs(reactNative.View,{style:s.co,children:[
180
226
  /* @__PURE__ */jsxRuntime.jsxs(reactNative.View,{style:s.coProd,accessible:true,accessibilityRole:"header",accessibilityLabel:`${v3.manageTitle(name)}, ${v3.subscribedLine(plan.cadenceDays,next)}`,children:[
181
227
  /* @__PURE__ */jsxRuntime.jsx(Thumb2,{rx:rx,size:56,title:name}),
182
228
  /* @__PURE__ */jsxRuntime.jsxs(reactNative.View,{style:s.grow,children:[
183
- /* @__PURE__ */jsxRuntime.jsx(Text2,{style:s.coProdT,children:name}),
184
- /* @__PURE__ */jsxRuntime.jsx(Text2,{style:s.coProdP,children:v3.subscribedLine(plan.cadenceDays,next)})]})]}),
229
+ /* @__PURE__ */jsxRuntime.jsx(Text3,{style:s.coProdT,children:name}),
230
+ /* @__PURE__ */jsxRuntime.jsx(Text3,{style:s.coProdP,children:v3.subscribedLine(plan.cadenceDays,next)})]})]}),
185
231
  /* @__PURE__ */jsxRuntime.jsxs(reactNative.View,{children:[
186
- /* @__PURE__ */jsxRuntime.jsx(Text2,{tier:"compact",style:s.coK,children:v3.shipsEvery}),
232
+ /* @__PURE__ */jsxRuntime.jsx(Text3,{tier:"compact",style:s.coK,children:v3.shipsEvery}),
187
233
  /* @__PURE__ */jsxRuntime.jsx(reactNative.View,{style:s.every,accessibilityRole:"radiogroup",accessibilityLabel:v3.shipsEvery,children:cadenceChoices(plan.cadenceDays).map(d=>{let on=d===plan.cadenceDays;/* @__PURE__ */
188
- return jsxRuntime.jsx(reactNative.Pressable,{style:[s.everyBtn,on?s.everyOn:null],onPress:()=>onEvery(d),disabled:busy,accessibilityRole:"radio",accessibilityLabel:v3.daysChip(d),accessibilityState:{checked:on,disabled:busy},testID:`shop-plan-every-${d}`,children:/* @__PURE__ */jsxRuntime.jsx(Text2,{tier:"control",style:[s.everyText,on?s.everyTextOn:null],numberOfLines:1,children:v3.daysChip(d)})},d)})})]}),
189
- /* @__PURE__ */jsxRuntime.jsx(Toast,{line:line}),
234
+ return jsxRuntime.jsx(reactNative.Pressable,{style:[s.everyBtn,on?s.everyOn:null],onPress:()=>onEvery(d),disabled:busy,accessibilityRole:"radio",accessibilityLabel:v3.daysChip(d),accessibilityState:{checked:on,disabled:busy},testID:`shop-plan-every-${d}`,children:/* @__PURE__ */jsxRuntime.jsx(Text3,{tier:"control",style:[s.everyText,on?s.everyTextOn:null],numberOfLines:1,children:v3.daysChip(d)})},d)})})]}),
235
+ /* @__PURE__ */jsxRuntime.jsx(Toast2,{line:line}),
190
236
  /* @__PURE__ */jsxRuntime.jsx(ErrorLine,{line:error}),active?/* @__PURE__ */jsxRuntime.jsx(Btn,{ghost:true,label:v3.skipNext,disabled:busy,onPress:onSkip,testID:"shop-plan-skip"}):null,paused?/* @__PURE__ */jsxRuntime.jsx(Btn,{label:copy.resumePlan,busy:busy,busyLabel:copy.saving,onPress:onResume,testID:"shop-plan-resume"}):null,active?/* @__PURE__ */jsxRuntime.jsx(LinkBtn,{label:copy.pausePlan,disabled:busy,onPress:onPause}):null,
191
237
  /* @__PURE__ */jsxRuntime.jsx(LinkBtn,{label:v3.cancelSubscription,tone:"risk",disabled:busy,onPress:onCancel}),
192
- /* @__PURE__ */jsxRuntime.jsx(LinkBtn,{label:copy.allOrders,onPress:onOrders})]})}var ICON_COLUMN=22;function AppOrdersScreen({tabs:tabs}){let{copy:copy,v3:v3,pets:pets}=useShop(),kit=useKit(),{first:first,orders:orders,named:named,hasMore:hasMore,loadMore:loadMore,moreBusy:moreBusy,moreError:moreError}=useOrdersList(),subs=useSubscriptions(),names=pets.map(p=>p.name),loading=first.phase==="loading"||subs.phase==="loading",subbed=subs.phase==="failed"||subs.phase==="ready"&&subs.plans.length>0,body;return first.phase==="failed"?body=/* @__PURE__ */jsxRuntime.jsx(LoadFailed,{copy:copy,thing:copy.thingOrders,retry:first.refresh}):loading?body=/* @__PURE__ */jsxRuntime.jsx(Card,{label:copy.allOrders,children:/* @__PURE__ */jsxRuntime.jsx(Ghost,{})}):orders.length===0&&subbed?body=/* @__PURE__ */jsxRuntime.jsx(Subscriptions,{subs:subs,onOrders:()=>{}}):body=/* @__PURE__ */jsxRuntime.jsxs(jsxRuntime.Fragment,{children:[subbed?/* @__PURE__ */jsxRuntime.jsxs(jsxRuntime.Fragment,{children:[
238
+ /* @__PURE__ */jsxRuntime.jsx(LinkBtn,{label:copy.allOrders,onPress:onOrders})]})}function AppOrdersScreen({tabs:tabs}){let{copy:copy,v3:v3,pets:pets}=useShop(),kit=useKit(),{first:first,orders:orders,named:named,hasMore:hasMore,loadMore:loadMore,moreBusy:moreBusy,moreError:moreError}=useOrdersList(),subs=useSubscriptions(),names=pets.map(p=>p.name),loading=first.phase==="loading"||subs.phase==="loading",subbed=subs.phase==="failed"||subs.phase==="ready"&&subs.plans.length>0,body;return first.phase==="failed"?body=/* @__PURE__ */jsxRuntime.jsx(LoadFailed,{copy:copy,thing:copy.thingOrders,retry:first.refresh}):loading?body=/* @__PURE__ */jsxRuntime.jsx(Card2,{label:copy.allOrders,children:/* @__PURE__ */jsxRuntime.jsx(Ghost,{})}):orders.length===0&&subbed?body=/* @__PURE__ */jsxRuntime.jsx(Subscriptions,{subs:subs,onOrders:()=>{}}):body=/* @__PURE__ */jsxRuntime.jsxs(jsxRuntime.Fragment,{children:[subbed?/* @__PURE__ */jsxRuntime.jsxs(jsxRuntime.Fragment,{children:[
193
239
  /* @__PURE__ */jsxRuntime.jsx(Subscriptions,{subs:subs,onOrders:()=>{}}),
194
240
  /* @__PURE__ */jsxRuntime.jsx(K,{children:v3.ordersTitle})]}):null,
195
- /* @__PURE__ */jsxRuntime.jsxs(Card,{label:copy.allOrders,children:[orders.length===0?/* @__PURE__ */jsxRuntime.jsx(T,{k:"cardLead",children:copy.ordersEmpty}):null,orders.length>0?/* @__PURE__ */jsxRuntime.jsx(reactNative.View,{style:kit.v("rec"),testID:"shop-orders-list",children:orders.map(o=>/* @__PURE__ */jsxRuntime.jsx(OrderRow,{order:o,items:named(o)},o.orderId))}):null,
241
+ /* @__PURE__ */jsxRuntime.jsxs(Card2,{label:copy.allOrders,children:[orders.length===0?/* @__PURE__ */jsxRuntime.jsx(T,{k:"cardLead",children:copy.ordersEmpty}):null,orders.length>0?/* @__PURE__ */jsxRuntime.jsx(OrderList,{orders:orders,named:named}):null,
196
242
  /* @__PURE__ */jsxRuntime.jsx(InlineError,{line:moreError}),hasMore?/* @__PURE__ */jsxRuntime.jsx(reactNative.View,{style:{marginTop:kit.v("breaks").marginTop},children:/* @__PURE__ */jsxRuntime.jsx(OutlineButton,{k:"btnSm",action:{label:v3.moreOrders,busy:moreBusy,busyLabel:copy.saving,disabled:moreBusy,onPress:loadMore}})}):null]})]}),/* @__PURE__ */jsxRuntime.jsx(Frame,{tabs:{copy:copy,current:"orders",tabs:tabs},onRefresh:first.reread,children:/* @__PURE__ */jsxRuntime.jsxs(reactNative.View,{testID:"shop-orders",children:[
197
243
  /* @__PURE__ */jsxRuntime.jsx(TitleBlock,{title:copy.ordersTitle,meta:names.length>0?copy.ordersSub(names):null}),
198
244
  /* @__PURE__ */jsxRuntime.jsx(Stack,{children:body}),
199
- /* @__PURE__ */jsxRuntime.jsx(Legal,{line:copy.legal})]})})}function OrderRow({order:order,items:items}){let{copy:copy,v3:v3}=useShop(),kit=useKit(),nav=useShopNativeNav(),pill=kitPill(statusPill(order.status,copy,v3)),title=items&&items.length>0?itemNames(items):order.referenceNumber??copy.tabOrders,day=formatDay(order.placedAt),count=order.itemCount??(items?items.reduce((n,i)=>n+i.quantity,0):null),meta=[day?copy.placed(day):null,count!==null&&count>1?copy.itemCount(count):null,formatCents(order.total)].filter(Boolean).join(" · "),gap=kit.v("recRow").columnGap;/* @__PURE__ */
200
- return jsxRuntime.jsxs(Press,{role:"link",label:[title,meta,pill.label].join(", "),onPress:()=>nav.go({name:"order",orderId:order.orderId}),style:[kit.v("recRow"),{flexDirection:"row",alignItems:"center",rowGap:0,columnGap:0}],children:[
201
- /* @__PURE__ */jsxRuntime.jsx(reactNative.View,{style:{width:ICON_COLUMN,marginRight:gap},children:/* @__PURE__ */jsxRuntime.jsx(PartIcon,{name:"box",k:"recIcon"})}),
202
- /* @__PURE__ */jsxRuntime.jsxs(reactNative.View,{style:[kit.v("recText"),{flex:1,minWidth:0}],children:[
203
- /* @__PURE__ */jsxRuntime.jsx(T,{k:"recTitle",children:title}),
204
- /* @__PURE__ */jsxRuntime.jsx(T,{k:"recMeta",children:meta})]}),
205
- /* @__PURE__ */jsxRuntime.jsx(reactNative.View,{style:[kit.v("recEnd"),{flexDirection:"row",alignItems:"center",justifyContent:"flex-end",marginLeft:gap,flexShrink:1,maxWidth:"45%"}],children:/* @__PURE__ */jsxRuntime.jsx(Pill,{pill:pill})})]})}var DesignContext=react.createContext({on:false,screen:null,copy:SHOP_ORDERS_V2_COPY,onHelp:null,onCartBar:null}),OrdersV2DesignProvider=DesignContext.Provider;function useOrdersV2Design(){return react.useContext(DesignContext)}var ORDERS_V2_SEAM={useShop:useShop,useShopShared:useShopShared,useCart:useCart,addToCart:addToCart,removeFromCart:removeFromCart,setCartQuantity:setCartQuantity,cartMaxQuantity:5,usePrescriptions:usePrescriptions,usePlans:usePlans,useShopRead:useShopRead,useShopAction:useShopAction};var RN_ORDERS_V2_SEAM={...ORDERS_V2_SEAM,useKit:useKit,useShopNativeNav:useShopNativeNav,useShopV3Host:useShopV3Host,CareTabs:CareTabs,LoadFailed:LoadFailed};var US_STATES=["AL","AK","AZ","AR","CA","CO","CT","DE","DC","FL","GA","HI","ID","IL","IN","IA","KS","KY","LA","ME","MD","MA","MI","MN","MS","MO","MT","NE","NV","NH","NJ","NM","NY","NC","ND","OH","OK","OR","PA","RI","SC","SD","TN","TX","UT","VT","VA","WA","WV","WI","WY","AS","GU","MP","PR","VI","AA","AE","AP"],US_ZIP=/^\d{5}(-\d{4})?$/;function isUsState(region){return US_STATES.includes(region.trim().toUpperCase())}function Gap({children:children}){let kit=useKit();/* @__PURE__ */
206
- return jsxRuntime.jsx(reactNative.View,{style:{rowGap:kit.v("stack").rowGap,marginTop:kit.v("stack").rowGap},children:children})}var FIELD_LIMITS={label:60,recipientName:100,line1:100,line2:100,city:60,region:60,postalCode:16},AUTOFILL={label:{autoComplete:"off"},recipientName:{autoComplete:"name",textContentType:"name"},line1:{autoComplete:"address-line1",textContentType:"streetAddressLine1"},line2:{autoComplete:"address-line2",textContentType:"streetAddressLine2"},city:{autoComplete:"off",textContentType:"addressCity"},region:{autoComplete:"off",textContentType:"addressState"},postalCode:{autoComplete:"postal-code",textContentType:"postalCode"}};function Field2({label:label,value:value,name:name,onChange:onChange}){let kit=useKit(),fill=AUTOFILL[name];/* @__PURE__ */
245
+ /* @__PURE__ */jsxRuntime.jsx(Legal,{line:copy.legal})]})})}function OrderList({orders:orders,named:named}){let{copy:copy,v3:v3}=useShop(),nav=useShopNativeNav(),rows=orders.map(order=>{let items=named(order),title=items&&items.length>0?itemNames(items):order.referenceNumber??copy.tabOrders,day=formatDay(order.placedAt),count=order.itemCount??(items?items.reduce((n,i)=>n+i.quantity,0):null),meta=[day?copy.placed(day):null,count!==null&&count>1?copy.itemCount(count):null,formatCents(order.total)].filter(Boolean).join(" · ");return{key:order.orderId,icon:"box",title:title,meta:meta,pill:kitPill(statusPill(order.status,copy,v3)),onPress:()=>nav.go({name:"order",orderId:order.orderId})}});/* @__PURE__ */
246
+ return jsxRuntime.jsx(RecRows,{label:copy.allOrders,rows:rows,testID:"shop-orders-list"})}var DesignContext=react.createContext({on:false,screen:null,copy:SHOP_ORDERS_V2_COPY,onHelp:null,onCartBar:null}),OrdersV2DesignProvider=DesignContext.Provider;function useOrdersV2Design(){return react.useContext(DesignContext)}var ORDERS_V2_SEAM={useShop:useShop,useShopShared:useShopShared,useCart:useCart,addToCart:addToCart,removeFromCart:removeFromCart,setCartQuantity:setCartQuantity,cartMaxQuantity:5,usePrescriptions:usePrescriptions,usePlans:usePlans,useShopRead:useShopRead,useShopAction:useShopAction};var RN_ORDERS_V2_SEAM={...ORDERS_V2_SEAM,useKit:useKit,useShopNativeNav:useShopNativeNav,useShopV3Host:useShopV3Host,CareTabs:CareTabs,LoadFailed:LoadFailed};var US_STATES=["AL","AK","AZ","AR","CA","CO","CT","DE","DC","FL","GA","HI","ID","IL","IN","IA","KS","KY","LA","ME","MD","MA","MI","MN","MS","MO","MT","NE","NV","NH","NJ","NM","NY","NC","ND","OH","OK","OR","PA","RI","SC","SD","TN","TX","UT","VT","VA","WA","WV","WI","WY","AS","GU","MP","PR","VI","AA","AE","AP"],US_ZIP=/^\d{5}(-\d{4})?$/;function isUsState(region){return US_STATES.includes(region.trim().toUpperCase())}function Gap({children:children}){let kit=useKit();/* @__PURE__ */
247
+ return jsxRuntime.jsx(reactNative.View,{style:{rowGap:kit.v("stack").rowGap,marginTop:kit.v("stack").rowGap},children:children})}var FIELD_LIMITS={label:60,recipientName:100,line1:100,line2:100,city:60,region:60,postalCode:16},AUTOFILL={label:{autoComplete:"off"},recipientName:{autoComplete:"name",textContentType:"name"},line1:{autoComplete:"address-line1",textContentType:"streetAddressLine1"},line2:{autoComplete:"address-line2",textContentType:"streetAddressLine2"},city:{autoComplete:"off",textContentType:"addressCity"},region:{autoComplete:"off",textContentType:"addressState"},postalCode:{autoComplete:"postal-code",textContentType:"postalCode"}};function Field3({label:label,value:value,name:name,onChange:onChange}){let kit=useKit(),fill=AUTOFILL[name];/* @__PURE__ */
207
248
  return jsxRuntime.jsxs(reactNative.View,{style:kit.v("field"),children:[
208
249
  /* @__PURE__ */jsxRuntime.jsx(T,{k:"fieldLabel",children:label}),
209
- /* @__PURE__ */jsxRuntime.jsx(reactNative.View,{style:[kit.v("fieldInput"),{flexDirection:"row",alignItems:"center"}],children:/* @__PURE__ */jsxRuntime.jsx(reactNative.TextInput,{style:[kit.t("fieldInputText"),{flex:1,minWidth:0}],value:value,onChangeText:onChange,accessibilityLabel:label,autoComplete:fill.autoComplete,...fill.textContentType?{textContentType:fill.textContentType}:{},autoCapitalize:name==="region"?"characters":"words",autoCorrect:false,maxLength:FIELD_LIMITS[name],...name==="postalCode"?{keyboardType:"number-pad"}:{}})})]})}function AddressFormScreen({copy:copy,busy:busy,error:error,onSave:onSave}){let[f,setF]=react.useState({label:"",recipientName:"",line1:"",line2:"",city:"",region:"",postalCode:""}),set2=k=>v=>setF(prev=>({...prev,[k]:v.slice(0,FIELD_LIMITS[k])})),ready=!!(f.label.trim()&&f.recipientName.trim()&&f.line1.trim()&&f.city.trim()&&isUsState(f.region)&&US_ZIP.test(f.postalCode.trim())),submit=()=>{!ready||busy||onSave({label:f.label.trim(),makeDefault:false,address:{recipientName:f.recipientName.trim(),line1:f.line1.trim(),line2:f.line2.trim()||null,city:f.city.trim(),region:f.region.trim().toUpperCase(),postalCode:f.postalCode.trim(),country:"US"}})},fields=[["label",copy.addressLabel],["recipientName",copy.addressRecipient],["line1",copy.addressLine1],["line2",copy.addressLine2],["city",copy.addressCity],["region",copy.addressRegion],["postalCode",copy.addressPostal]];/* @__PURE__ */
250
+ /* @__PURE__ */jsxRuntime.jsx(reactNative.View,{style:[kit.v("fieldInput"),{flexDirection:"row",alignItems:"center"}],children:/* @__PURE__ */jsxRuntime.jsx(reactNative.TextInput,{style:[kit.t("fieldInputText"),{flex:1,minWidth:0}],value:value,onChangeText:onChange,accessibilityLabel:label,autoComplete:fill.autoComplete,...fill.textContentType?{textContentType:fill.textContentType}:{},autoCapitalize:name==="region"?"characters":"words",autoCorrect:false,maxLength:FIELD_LIMITS[name],...name==="postalCode"?{keyboardType:"number-pad"}:{}})})]})}function AddressFormScreen({copy:copy,busy:busy,error:error,onSave:onSave}){let[f,setF]=react.useState({label:"",recipientName:"",line1:"",line2:"",city:"",region:"",postalCode:""}),set2=k2=>v=>setF(prev=>({...prev,[k2]:v.slice(0,FIELD_LIMITS[k2])})),ready=!!(f.label.trim()&&f.recipientName.trim()&&f.line1.trim()&&f.city.trim()&&isUsState(f.region)&&US_ZIP.test(f.postalCode.trim())),submit=()=>{!ready||busy||onSave({label:f.label.trim(),makeDefault:false,address:{recipientName:f.recipientName.trim(),line1:f.line1.trim(),line2:f.line2.trim()||null,city:f.city.trim(),region:f.region.trim().toUpperCase(),postalCode:f.postalCode.trim(),country:"US"}})},fields=[["label",copy.addressLabel],["recipientName",copy.addressRecipient],["line1",copy.addressLine1],["line2",copy.addressLine2],["city",copy.addressCity],["region",copy.addressRegion],["postalCode",copy.addressPostal]];/* @__PURE__ */
210
251
  return jsxRuntime.jsxs(Frame,{children:[
211
- /* @__PURE__ */jsxRuntime.jsx(Stack,{children:/* @__PURE__ */jsxRuntime.jsxs(Card,{children:[
252
+ /* @__PURE__ */jsxRuntime.jsx(Stack,{children:/* @__PURE__ */jsxRuntime.jsxs(Card2,{children:[
212
253
  /* @__PURE__ */jsxRuntime.jsx(CardTitle,{children:copy.addressTitle}),
213
- /* @__PURE__ */jsxRuntime.jsxs(Gap,{children:[fields.map(([k,label])=>/* @__PURE__ */jsxRuntime.jsx(Field2,{name:k,label:label,value:f[k],onChange:set2(k)},k)),
254
+ /* @__PURE__ */jsxRuntime.jsxs(Gap,{children:[fields.map(([k2,label])=>/* @__PURE__ */jsxRuntime.jsx(Field3,{name:k2,label:label,value:f[k2],onChange:set2(k2)},k2)),
214
255
  /* @__PURE__ */jsxRuntime.jsx(InlineError,{line:error}),
215
256
  /* @__PURE__ */jsxRuntime.jsx(InkButton,{action:{label:copy.addressSave,busyLabel:copy.saving,busy:busy,disabled:!ready||busy,onPress:submit}})]})]})}),
216
257
  /* @__PURE__ */jsxRuntime.jsx(Legal,{line:copy.legal})]})}function CardSetupScreen({copy:copy,start:start,error:error}){/* @__PURE__ */
217
258
  return jsxRuntime.jsxs(Frame,{children:[
218
- /* @__PURE__ */jsxRuntime.jsx(Stack,{children:/* @__PURE__ */jsxRuntime.jsxs(Card,{children:[
259
+ /* @__PURE__ */jsxRuntime.jsx(Stack,{children:/* @__PURE__ */jsxRuntime.jsxs(Card2,{children:[
219
260
  /* @__PURE__ */jsxRuntime.jsx(CardTitle,{children:copy.cardTitle}),
220
261
  /* @__PURE__ */jsxRuntime.jsx(T,{k:"cardLead",children:start?copy.cardBody:copy.cardUnavailable}),
221
262
  /* @__PURE__ */jsxRuntime.jsx(InlineError,{line:error}),start?/* @__PURE__ */jsxRuntime.jsx(Gap,{children:/* @__PURE__ */jsxRuntime.jsx(InkButton,{action:start})}):null]})}),
222
263
  /* @__PURE__ */jsxRuntime.jsx(Legal,{line:copy.legal})]})}function BuyConfirmScreen({copy:copy,title:title,lines:lines,sum:sum,needs:needs,pay:pay,note:note,error:error}){/* @__PURE__ */
223
264
  return jsxRuntime.jsxs(Frame,{children:[
224
265
  /* @__PURE__ */jsxRuntime.jsxs(Stack,{children:[
225
- /* @__PURE__ */jsxRuntime.jsxs(Card,{children:[
266
+ /* @__PURE__ */jsxRuntime.jsxs(Card2,{children:[
226
267
  /* @__PURE__ */jsxRuntime.jsx(CardTitle,{children:title}),
227
268
  /* @__PURE__ */jsxRuntime.jsx(reactNative.View,{children:lines.map((l,i)=>/* @__PURE__ */jsxRuntime.jsxs(ItemRow,{index:i,count:lines.length,thumb:/* @__PURE__ */jsxRuntime.jsx(Thumb,{tone:"pink",icon:"pill"}),end:l.price?/* @__PURE__ */jsxRuntime.jsx(T,{k:"itemsPrice",children:l.price}):null,children:[
228
269
  /* @__PURE__ */jsxRuntime.jsx(T,{k:"itemsName",children:l.name}),l.meta?/* @__PURE__ */jsxRuntime.jsx(T,{k:"itemsMeta",children:l.meta}):null]},l.key))})]}),
229
- /* @__PURE__ */jsxRuntime.jsxs(Card,{children:[
270
+ /* @__PURE__ */jsxRuntime.jsxs(Card2,{children:[
230
271
  /* @__PURE__ */jsxRuntime.jsx(CardTitle,{children:copy.total}),sum?/* @__PURE__ */jsxRuntime.jsx(Sum,{rows:sum,total:true}):null,
231
272
  /* @__PURE__ */jsxRuntime.jsxs(Gap,{children:[needs.map(n=>/* @__PURE__ */jsxRuntime.jsx(ShopLinkText,{link:n,style:{alignSelf:"flex-start"}},n.label)),pay?/* @__PURE__ */jsxRuntime.jsx(InkButton,{action:pay}):null]}),
232
273
  /* @__PURE__ */jsxRuntime.jsx(InlineError,{line:error}),note?/* @__PURE__ */jsxRuntime.jsx(T,{k:"noteAfterTotal",children:note}):null]})]}),
233
274
  /* @__PURE__ */jsxRuntime.jsx(Legal,{line:copy.legal})]})}function PlanConsentScreen({copy:copy,terms:terms,needs:needs,agree:agree,error:error}){let nav=useShopNativeNav(),kit=useKit();/* @__PURE__ */
234
275
  return jsxRuntime.jsxs(Frame,{children:[
235
- /* @__PURE__ */jsxRuntime.jsx(Stack,{children:/* @__PURE__ */jsxRuntime.jsxs(Card,{children:[
276
+ /* @__PURE__ */jsxRuntime.jsx(Stack,{children:/* @__PURE__ */jsxRuntime.jsxs(Card2,{children:[
236
277
  /* @__PURE__ */jsxRuntime.jsx(CardTitle,{children:copy.consentTitle}),
237
278
  /* @__PURE__ */jsxRuntime.jsx(T,{k:"cardLead",children:copy.consentBody}),
238
279
  /* @__PURE__ */jsxRuntime.jsxs(Gap,{children:[terms?/* @__PURE__ */jsxRuntime.jsx(Press,{role:"link",label:terms.label,onPress:()=>nav.openExternal(terms.href),style:[kit.v("cardLink"),{alignSelf:"flex-start"}],children:/* @__PURE__ */jsxRuntime.jsx(T,{k:"cardLink",bare:true,style:underline("cardLink"),children:terms.label})}):null,needs.map(n=>/* @__PURE__ */jsxRuntime.jsx(ShopLinkText,{link:n,style:{alignSelf:"flex-start"}},n.label)),
@@ -240,69 +281,69 @@ return jsxRuntime.jsxs(Frame,{children:[
240
281
  /* @__PURE__ */jsxRuntime.jsx(Legal,{line:copy.legal})]})}var FIRST_LABEL={marginTop:Math.max(0,PHONE_BOX.forLabel.marginTop-PHONE_BOX.cardHead.marginBottom)};function PackageScreen({copy:copy,tabs:tabs,view:view}){let kit=useKit(),nav=useShopNativeNav(),frame={copy:copy,current:"package",tabs:tabs};if(view.phase!=="ready")/* @__PURE__ */
241
282
  return jsxRuntime.jsxs(Frame,{tabs:frame,children:[
242
283
  /* @__PURE__ */jsxRuntime.jsx(TitleBlock,{title:copy.tabPackage}),
243
- /* @__PURE__ */jsxRuntime.jsx(Stack,{children:view.phase==="failed"?/* @__PURE__ */jsxRuntime.jsx(LoadFailed,{copy:copy,thing:copy.thingPackage,retry:view.retry}):/* @__PURE__ */jsxRuntime.jsxs(Card,{children:[
284
+ /* @__PURE__ */jsxRuntime.jsx(Stack,{children:view.phase==="failed"?/* @__PURE__ */jsxRuntime.jsx(LoadFailed,{copy:copy,thing:copy.thingPackage,retry:view.retry}):/* @__PURE__ */jsxRuntime.jsxs(Card2,{children:[
244
285
  /* @__PURE__ */jsxRuntime.jsx(CardHead,{title:copy.inThisPackage}),
245
286
  /* @__PURE__ */jsxRuntime.jsx(Ghost,{})]})}),
246
287
  /* @__PURE__ */jsxRuntime.jsx(Legal,{line:copy.legal})]});let v=view.value,total=v.sum.find(r=>r.k===copy.total)?.v??null,approve=v.approve?{...v.approve,label:total&&!v.approve.busy?copy.withTotal(v.approve.label,total):v.approve.label}:null,headPill=v.countPill??v.reviewPill,firstGroup=true;/* @__PURE__ */
247
288
  return jsxRuntime.jsxs(Frame,{tabs:frame,tray:/* @__PURE__ */jsxRuntime.jsx(TrayBar,{action:approve,fine:v.fine??null,error:v.approve?v.error:null}),children:[
248
289
  /* @__PURE__ */jsxRuntime.jsx(TitleBlock,{title:v.title,meta:v.sub}),
249
290
  /* @__PURE__ */jsxRuntime.jsxs(Stack,{children:[
250
- /* @__PURE__ */jsxRuntime.jsxs(Card,{children:[
251
- /* @__PURE__ */jsxRuntime.jsx(CardHead,{title:copy.inThisPackage,end:headPill?/* @__PURE__ */jsxRuntime.jsx(Pill,{pill:{label:headPill,tone:"soon"}}):null}),v.empty?/* @__PURE__ */jsxRuntime.jsxs(jsxRuntime.Fragment,{children:[
291
+ /* @__PURE__ */jsxRuntime.jsxs(Card2,{children:[
292
+ /* @__PURE__ */jsxRuntime.jsx(CardHead,{title:copy.inThisPackage,end:headPill?/* @__PURE__ */jsxRuntime.jsx(Pill2,{pill:{label:headPill,tone:"soon"}}):null}),v.empty?/* @__PURE__ */jsxRuntime.jsxs(jsxRuntime.Fragment,{children:[
252
293
  /* @__PURE__ */jsxRuntime.jsx(T,{k:"cardLead",children:v.empty.line}),
253
294
  /* @__PURE__ */jsxRuntime.jsx(OutlineButton,{k:"btnSm",action:{label:v.empty.shop.label,onPress:()=>nav.go(v.empty.shop.to)}})]}):null,v.groups.map((g,gi)=>{let label=g.label?/* @__PURE__ */jsxRuntime.jsx(T,{k:firstGroup?"forLabel":"forLabelNext",style:firstGroup?FIRST_LABEL:null,children:g.label}):null;return g.label&&(firstGroup=false),/* @__PURE__ */jsxRuntime.jsxs(react.Fragment,{children:[label,
254
295
  /* @__PURE__ */jsxRuntime.jsx(reactNative.View,{children:g.items.map((it,i)=>/* @__PURE__ */jsxRuntime.jsxs(ItemRow,{index:i,count:g.items.length,thumb:/* @__PURE__ */jsxRuntime.jsx(Thumb,{tone:it.tone,icon:it.icon}),end:it.price?/* @__PURE__ */jsxRuntime.jsx(T,{k:"itemsPrice",children:it.price}):null,children:[
255
- /* @__PURE__ */jsxRuntime.jsx(ItemName,{name:it.name,rx:it.rx,copy:copy,pills:it.pills}),it.meta?/* @__PURE__ */jsxRuntime.jsx(T,{k:"itemsMeta",children:it.meta}):null,it.alert?/* @__PURE__ */jsxRuntime.jsx(reactNative.View,{accessibilityLiveRegion:"polite",children:/* @__PURE__ */jsxRuntime.jsx(T,{k:"itemsMeta",children:it.alert})}):null,it.details||it.remove?/* @__PURE__ */jsxRuntime.jsxs(reactNative.View,{style:[kit.v("itemsActs"),{flexDirection:"row"}],children:[it.details?/* @__PURE__ */jsxRuntime.jsx(ActText,{label:it.details.label,onPress:()=>nav.go(it.details.to)}):null,it.remove?/* @__PURE__ */jsxRuntime.jsx(ActText,{label:it.remove.busy&&it.remove.busyLabel?it.remove.busyLabel:it.remove.label,onPress:it.remove.onPress,disabled:it.remove.disabled===true}):null]}):null]},it.key))})]},g.label??gi)})]}),v.add?/* @__PURE__ */jsxRuntime.jsxs(Card,{children:[
296
+ /* @__PURE__ */jsxRuntime.jsx(ItemName,{name:it.name,rx:it.rx,copy:copy,pills:it.pills}),it.meta?/* @__PURE__ */jsxRuntime.jsx(T,{k:"itemsMeta",children:it.meta}):null,it.alert?/* @__PURE__ */jsxRuntime.jsx(reactNative.View,{accessibilityLiveRegion:"polite",children:/* @__PURE__ */jsxRuntime.jsx(T,{k:"itemsMeta",children:it.alert})}):null,it.details||it.remove?/* @__PURE__ */jsxRuntime.jsxs(reactNative.View,{style:[kit.v("itemsActs"),{flexDirection:"row"}],children:[it.details?/* @__PURE__ */jsxRuntime.jsx(ActText,{label:it.details.label,onPress:()=>nav.go(it.details.to)}):null,it.remove?/* @__PURE__ */jsxRuntime.jsx(ActText,{label:it.remove.busy&&it.remove.busyLabel?it.remove.busyLabel:it.remove.label,onPress:it.remove.onPress,disabled:it.remove.disabled===true}):null]}):null]},it.key))})]},g.label??gi)})]}),v.add?/* @__PURE__ */jsxRuntime.jsxs(Card2,{children:[
256
297
  /* @__PURE__ */jsxRuntime.jsx(CardHead,{title:v.add.title,end:v.add.link?/* @__PURE__ */jsxRuntime.jsx(ShopLinkText,{link:v.add.link}):null}),
257
298
  /* @__PURE__ */jsxRuntime.jsx(reactNative.View,{children:v.add.items.map((it,i)=>/* @__PURE__ */jsxRuntime.jsxs(ItemRow,{index:i,count:v.add.items.length,thumb:/* @__PURE__ */jsxRuntime.jsx(Thumb,{tone:it.tone,icon:it.icon}),end:/* @__PURE__ */jsxRuntime.jsx(OutlineButton,{k:"btnRow",icon:"plus",iconKey:"btnRowIcon",action:it.add}),children:[
258
299
  /* @__PURE__ */jsxRuntime.jsx(ItemName,{name:it.name,rx:false,copy:copy}),it.meta||it.price?/* @__PURE__ */jsxRuntime.jsx(T,{k:"itemsMeta",children:[it.meta,it.price].filter(Boolean).join(" · ")}):null]},it.key))})]}):null,
259
- /* @__PURE__ */jsxRuntime.jsxs(Card,{children:[
260
- /* @__PURE__ */jsxRuntime.jsx(CardTitle,{children:copy.total}),v.sum.length>0?/* @__PURE__ */jsxRuntime.jsx(Sum,{rows:v.sum,total:true}):null,v.note?/* @__PURE__ */jsxRuntime.jsx(T,{k:"noteAfterSum",children:v.note}):null,v.skip?"to"in v.skip?/* @__PURE__ */jsxRuntime.jsx(ShopLinkText,{link:v.skip,k:"cardLinkAfterNote",style:{alignSelf:"flex-start"}}):/* @__PURE__ */jsxRuntime.jsx(Press,{onPress:v.skip.onPress,disabled:v.skip.disabled===true,style:{alignSelf:"flex-start"},children:/* @__PURE__ */jsxRuntime.jsx(T,{k:"cardLinkAfterNote",children:v.skip.label})}):null,v.approve?null:/* @__PURE__ */jsxRuntime.jsx(InlineError,{line:v.error})]}),v.delivery.length>0?/* @__PURE__ */jsxRuntime.jsxs(Card,{children:[
300
+ /* @__PURE__ */jsxRuntime.jsxs(Card2,{children:[
301
+ /* @__PURE__ */jsxRuntime.jsx(CardTitle,{children:copy.total}),v.sum.length>0?/* @__PURE__ */jsxRuntime.jsx(Sum,{rows:v.sum,total:true}):null,v.note?/* @__PURE__ */jsxRuntime.jsx(T,{k:"noteAfterSum",children:v.note}):null,v.skip?"to"in v.skip?/* @__PURE__ */jsxRuntime.jsx(ShopLinkText,{link:v.skip,k:"cardLinkAfterNote",style:{alignSelf:"flex-start"}}):/* @__PURE__ */jsxRuntime.jsx(Press,{onPress:v.skip.onPress,disabled:v.skip.disabled===true,style:{alignSelf:"flex-start"},children:/* @__PURE__ */jsxRuntime.jsx(T,{k:"cardLinkAfterNote",children:v.skip.label})}):null,v.approve?null:/* @__PURE__ */jsxRuntime.jsx(InlineError,{line:v.error})]}),v.delivery.length>0?/* @__PURE__ */jsxRuntime.jsxs(Card2,{children:[
261
302
  /* @__PURE__ */jsxRuntime.jsx(CardTitle,{children:copy.delivery}),
262
303
  /* @__PURE__ */jsxRuntime.jsx(Rows,{rows:v.delivery.map(r=>({key:r.k,k:r.k,v:r.v??null,meta:r.meta??null,end:r.change?/* @__PURE__ */jsxRuntime.jsx(ShopLinkText,{link:r.change}):null}))})]}):null]}),
263
304
  /* @__PURE__ */jsxRuntime.jsx(Legal,{line:v.legal})]})}function ShopSwitchCard({title:title,rows:rows}){/* @__PURE__ */
264
- return jsxRuntime.jsxs(Card,{children:[
305
+ return jsxRuntime.jsxs(Card2,{children:[
265
306
  /* @__PURE__ */jsxRuntime.jsx(CardTitle,{children:title}),
266
307
  /* @__PURE__ */jsxRuntime.jsx(Rows,{plan:true,rows:rows.map(r=>({key:r.key,k:r.title,meta:r.meta??null,end:/* @__PURE__ */jsxRuntime.jsx(ShopSwitch,{on:r.on,disabled:r.disabled===true,label:r.label,onChange:r.onChange})}))})]})}function BreakCard({copy:copy,card:card}){let kit=useKit(),[open,setOpen]=react.useState(null),sheet=open?card[open]:null;/* @__PURE__ */
267
- return jsxRuntime.jsxs(Card,{children:[
308
+ return jsxRuntime.jsxs(Card2,{children:[
268
309
  /* @__PURE__ */jsxRuntime.jsx(CardTitle,{children:copy.needABreak}),
269
310
  /* @__PURE__ */jsxRuntime.jsxs(reactNative.View,{style:[kit.v("breaks"),{flexDirection:"row",flexWrap:"wrap",alignItems:"center",marginTop:Math.max(0,PHONE_BOX.breaks.marginTop-PHONE_BOX.cardTitle.marginBottom)}],children:[card.skip?/* @__PURE__ */jsxRuntime.jsx(OutlineButton,{k:"btnSm",action:{label:card.skip.label,onPress:()=>setOpen("skip")}}):null,card.pause?/* @__PURE__ */jsxRuntime.jsx(Press,{onPress:()=>setOpen("pause"),children:/* @__PURE__ */jsxRuntime.jsx(T,{k:"linkDanger",bare:true,style:underline("linkDanger"),children:card.pause.label})}):null]}),sheet?null:/* @__PURE__ */jsxRuntime.jsx(InlineError,{line:card.error}),
270
311
  /* @__PURE__ */jsxRuntime.jsx(ConfirmSheet,{open:sheet!==null,title:sheet?.ask??"",body:sheet?.body??"",confirm:sheet?.label??"",keep:copy.keepIt,closeLabel:copy.close,busyLabel:copy.saving,busy:card.busy,error:sheet?card.error:null,onConfirm:()=>{open&&card.onConfirm(open).then(done=>{done&&setOpen(null)})},onClose:()=>setOpen(null)})]})}function PlanScreen({copy:copy,tabs:tabs,view:view,reminders:reminders}){let frame={copy:copy,current:"plan",tabs:tabs};if(view.phase!=="ready")/* @__PURE__ */
271
312
  return jsxRuntime.jsxs(Frame,{tabs:frame,children:[
272
313
  /* @__PURE__ */jsxRuntime.jsx(TitleBlock,{title:copy.planTitle}),
273
- /* @__PURE__ */jsxRuntime.jsx(Stack,{children:view.phase==="failed"?/* @__PURE__ */jsxRuntime.jsx(LoadFailed,{copy:copy,thing:copy.thingPlan,retry:view.retry}):/* @__PURE__ */jsxRuntime.jsxs(Card,{children:[
314
+ /* @__PURE__ */jsxRuntime.jsx(Stack,{children:view.phase==="failed"?/* @__PURE__ */jsxRuntime.jsx(LoadFailed,{copy:copy,thing:copy.thingPlan,retry:view.retry}):/* @__PURE__ */jsxRuntime.jsxs(Card2,{children:[
274
315
  /* @__PURE__ */jsxRuntime.jsx(CardTitle,{children:copy.whatRepeats}),
275
316
  /* @__PURE__ */jsxRuntime.jsx(Ghost,{})]})}),
276
317
  /* @__PURE__ */jsxRuntime.jsx(Legal,{line:copy.legal})]});let v=view.value;/* @__PURE__ */
277
318
  return jsxRuntime.jsxs(Frame,{tabs:frame,children:[
278
319
  /* @__PURE__ */jsxRuntime.jsx(TitleBlock,{title:copy.planTitle,meta:v.sub}),
279
- /* @__PURE__ */jsxRuntime.jsxs(Stack,{children:[v.next?/* @__PURE__ */jsxRuntime.jsxs(Card,{children:[
320
+ /* @__PURE__ */jsxRuntime.jsxs(Stack,{children:[v.next?/* @__PURE__ */jsxRuntime.jsxs(Card2,{children:[
280
321
  /* @__PURE__ */jsxRuntime.jsx(CardHead,{title:copy.nextPackage,end:v.next.link?/* @__PURE__ */jsxRuntime.jsx(ShopLinkText,{link:v.next.link}):null}),
281
322
  /* @__PURE__ */jsxRuntime.jsx(Sum,{rows:v.next.sum,total:false})]}):null,
282
- /* @__PURE__ */jsxRuntime.jsxs(Card,{children:[
283
- /* @__PURE__ */jsxRuntime.jsx(CardTitle,{children:copy.whatRepeats}),v.emptyLine?/* @__PURE__ */jsxRuntime.jsx(T,{k:"cardLead",children:v.emptyLine}):null,v.rows.length>0?/* @__PURE__ */jsxRuntime.jsx(Rows,{plan:true,rows:v.rows.map(r=>({key:r.key,k:r.title,meta:r.meta,metaAlert:r.alert,alert:r.error,end:/* @__PURE__ */jsxRuntime.jsx(ShopSwitch,{on:r.on,disabled:r.busy,label:copy.repeatsLabel(r.title),onChange:r.onToggle})}))}):null]}),reminders??null,v.delivery.length>0?/* @__PURE__ */jsxRuntime.jsxs(Card,{children:[
323
+ /* @__PURE__ */jsxRuntime.jsxs(Card2,{children:[
324
+ /* @__PURE__ */jsxRuntime.jsx(CardTitle,{children:copy.whatRepeats}),v.emptyLine?/* @__PURE__ */jsxRuntime.jsx(T,{k:"cardLead",children:v.emptyLine}):null,v.rows.length>0?/* @__PURE__ */jsxRuntime.jsx(Rows,{plan:true,rows:v.rows.map(r=>({key:r.key,k:r.title,meta:r.meta,metaAlert:r.alert,alert:r.error,end:/* @__PURE__ */jsxRuntime.jsx(ShopSwitch,{on:r.on,disabled:r.busy,label:copy.repeatsLabel(r.title),onChange:r.onToggle})}))}):null]}),reminders??null,v.delivery.length>0?/* @__PURE__ */jsxRuntime.jsxs(Card2,{children:[
284
325
  /* @__PURE__ */jsxRuntime.jsx(CardTitle,{children:copy.deliveryAndPayment}),
285
326
  /* @__PURE__ */jsxRuntime.jsx(Rows,{plan:true,rows:v.delivery.map(r=>({key:r.k,k:r.k,v:r.v,alert:r.alert??null,end:r.change?/* @__PURE__ */jsxRuntime.jsx(ShopLinkText,{link:r.change}):null}))})]}):null,v.breakCard?/* @__PURE__ */jsxRuntime.jsx(BreakCard,{copy:copy,card:v.breakCard}):null]}),
286
327
  /* @__PURE__ */jsxRuntime.jsx(Legal,{line:v.legal})]})}function Hero({copy:copy,tone:tone,icon:icon,imageUrl:imageUrl}){let kit=useKit(),[failed,setFailed]=react.useState(null),photo=imageUrl&&failed!==imageUrl?imageUrl:null;/* @__PURE__ */
287
328
  return jsxRuntime.jsxs(reactNative.View,{style:[kit.v("hero"),{backgroundColor:tileTint(tone),alignItems:"center",justifyContent:"center"},imageUrl?{overflow:"hidden"}:null],...photo?{accessibilityElementsHidden:true,importantForAccessibility:"no-hide-descendants"}:{accessible:true,accessibilityRole:"image",accessibilityLabel:copy.photoToCome},children:[icon?/* @__PURE__ */jsxRuntime.jsx(PartIcon,{name:icon,k:"heroIcon",inkKey:"prodIcon"}):null,photo?/* @__PURE__ */jsxRuntime.jsx(TilePhoto,{uri:photo,onFailed:()=>setFailed(photo)},photo):null]})}function ProductHero({copy:copy,v:v}){let look=useProductTile(v);/* @__PURE__ */
288
- return jsxRuntime.jsx(Hero,{copy:copy,tone:look.tone,icon:look.icon,imageUrl:v.imageUrl??null})}function Source({icon:icon,bold:bold,rest:rest,link:link,inCard:inCard}){let kit=useKit(),nav=useShopNativeNav(),k=inCard?"sourceInCard":"source";/* @__PURE__ */
289
- return jsxRuntime.jsxs(reactNative.View,{style:[kit.v(k),{flexDirection:"row",alignItems:"flex-start"}],children:[
329
+ return jsxRuntime.jsx(Hero,{copy:copy,tone:look.tone,icon:look.icon,imageUrl:v.imageUrl??null})}function Source({icon:icon,bold:bold,rest:rest,link:link,inCard:inCard}){let kit=useKit(),nav=useShopNativeNav(),k2=inCard?"sourceInCard":"source";/* @__PURE__ */
330
+ return jsxRuntime.jsxs(reactNative.View,{style:[kit.v(k2),{flexDirection:"row",alignItems:"flex-start"}],children:[
290
331
  /* @__PURE__ */jsxRuntime.jsx(PartIcon,{name:icon,k:inCard?"sourceInCardIcon":"sourceIcon"}),
291
- /* @__PURE__ */jsxRuntime.jsxs(reactNative.Text,{style:[kit.tx(k),{flex:1,minWidth:0}],children:[bold?/* @__PURE__ */jsxRuntime.jsx(reactNative.Text,{style:kit.tx("sourceBold"),children:bold}):null,bold?` ${rest}`:rest,link?" ":null,link?/* @__PURE__ */jsxRuntime.jsx(reactNative.Text,{style:[kit.tx("sourceLink"),underline("sourceLink")],accessibilityRole:"link",onPress:()=>nav.openExternal(link.href),children:link.label}):null]})]})}function ProductScreen({copy:copy,view:view}){let kit=useKit();if(view.phase!=="ready")/* @__PURE__ */
332
+ /* @__PURE__ */jsxRuntime.jsxs(reactNative.Text,{style:[kit.tx(k2),{flex:1,minWidth:0}],children:[bold?/* @__PURE__ */jsxRuntime.jsx(reactNative.Text,{style:kit.tx("sourceBold"),children:bold}):null,bold?` ${rest}`:rest,link?" ":null,link?/* @__PURE__ */jsxRuntime.jsx(reactNative.Text,{style:[kit.tx("sourceLink"),underline("sourceLink")],accessibilityRole:"link",onPress:()=>nav.openExternal(link.href),children:link.label}):null]})]})}function ProductScreen({copy:copy,view:view}){let kit=useKit();if(view.phase!=="ready")/* @__PURE__ */
292
333
  return jsxRuntime.jsxs(Frame,{children:[
293
334
  /* @__PURE__ */jsxRuntime.jsxs(Stack,{children:[
294
- /* @__PURE__ */jsxRuntime.jsx(Hero,{copy:copy,tone:"base",icon:null}),view.phase==="failed"?/* @__PURE__ */jsxRuntime.jsx(LoadFailed,{copy:copy,thing:copy.thingProduct,retry:view.retry}):/* @__PURE__ */jsxRuntime.jsx(Card,{children:/* @__PURE__ */jsxRuntime.jsx(Ghost,{})})]}),
335
+ /* @__PURE__ */jsxRuntime.jsx(Hero,{copy:copy,tone:"base",icon:null}),view.phase==="failed"?/* @__PURE__ */jsxRuntime.jsx(LoadFailed,{copy:copy,thing:copy.thingProduct,retry:view.retry}):/* @__PURE__ */jsxRuntime.jsx(Card2,{children:/* @__PURE__ */jsxRuntime.jsx(Ghost,{})})]}),
295
336
  /* @__PURE__ */jsxRuntime.jsx(Legal,{line:copy.legal})]});let v=view.value,price=v.price?v.priceUnit?`${v.price} ${v.priceUnit}`:v.price:null,meta=[v.sub,price].filter(Boolean).join(" · ")||null;/* @__PURE__ */
296
337
  return jsxRuntime.jsxs(Frame,{tray:/* @__PURE__ */jsxRuntime.jsx(TrayBar,{action:v.submit,fine:v.fine??null,error:v.error}),children:[
297
338
  /* @__PURE__ */jsxRuntime.jsx(TitleBlock,{title:v.title,meta:meta}),
298
339
  /* @__PURE__ */jsxRuntime.jsxs(Stack,{children:[
299
- /* @__PURE__ */jsxRuntime.jsx(ProductHero,{copy:copy,v:v}),v.source?/* @__PURE__ */jsxRuntime.jsx(Source,{icon:"check",bold:v.source.bold,rest:v.source.rest,link:v.source.link}):null,v.stockLine?/* @__PURE__ */jsxRuntime.jsx(T,{k:"noteStandalone",children:v.stockLine}):null,v.choices?/* @__PURE__ */jsxRuntime.jsx(Card,{label:copy.howOften,children:/* @__PURE__ */jsxRuntime.jsx(reactNative.View,{style:kit.v("choices"),accessibilityRole:"radiogroup",accessibilityLabel:copy.howOften,children:v.choices.map(c=>{let on=v.choice===c.value,k=on?"choiceCurrent":"choice";/* @__PURE__ */
300
- return jsxRuntime.jsxs(Press,{role:"radio",selected:on,label:[c.title,c.meta].filter(Boolean).join(", "),onPress:()=>v.onChoice(c.value),style:[kit.v(k),{flexDirection:"row",alignItems:"center",rowGap:0,columnGap:0}],children:[
301
- /* @__PURE__ */jsxRuntime.jsx(reactNative.View,{style:{width:RADIO_COLUMN,marginRight:kit.v(k).columnGap},children:/* @__PURE__ */jsxRuntime.jsx(reactNative.View,{style:kit.v(on?"radioOn":"radioOff")})}),
302
- /* @__PURE__ */jsxRuntime.jsxs(reactNative.View,{style:{flex:1,minWidth:0,marginRight:kit.v(k).columnGap},children:[
303
- /* @__PURE__ */jsxRuntime.jsx(T,{k:"choiceTitle",style:{lineHeight:kit.tx("choiceText").lineHeight},children:c.title}),c.meta?/* @__PURE__ */jsxRuntime.jsx(T,{k:"choiceMeta",children:c.meta}):null]})]},c.value)})})}):null,v.facts?/* @__PURE__ */jsxRuntime.jsxs(Card,{children:[
340
+ /* @__PURE__ */jsxRuntime.jsx(ProductHero,{copy:copy,v:v}),v.source?/* @__PURE__ */jsxRuntime.jsx(Source,{icon:"check",bold:v.source.bold,rest:v.source.rest,link:v.source.link}):null,v.stockLine?/* @__PURE__ */jsxRuntime.jsx(T,{k:"noteStandalone",children:v.stockLine}):null,v.choices?/* @__PURE__ */jsxRuntime.jsx(Card2,{label:copy.howOften,children:/* @__PURE__ */jsxRuntime.jsx(reactNative.View,{style:kit.v("choices"),accessibilityRole:"radiogroup",accessibilityLabel:copy.howOften,children:v.choices.map(c=>{let on=v.choice===c.value,k2=on?"choiceCurrent":"choice";/* @__PURE__ */
341
+ return jsxRuntime.jsxs(Press,{role:"radio",selected:on,label:[c.title,c.meta].filter(Boolean).join(", "),onPress:()=>v.onChoice(c.value),style:[kit.v(k2),{flexDirection:"row",alignItems:"center",rowGap:0,columnGap:0}],children:[
342
+ /* @__PURE__ */jsxRuntime.jsx(reactNative.View,{style:{width:RADIO_COLUMN,marginRight:kit.v(k2).columnGap},children:/* @__PURE__ */jsxRuntime.jsx(reactNative.View,{style:kit.v(on?"radioOn":"radioOff")})}),
343
+ /* @__PURE__ */jsxRuntime.jsxs(reactNative.View,{style:{flex:1,minWidth:0,marginRight:kit.v(k2).columnGap},children:[
344
+ /* @__PURE__ */jsxRuntime.jsx(T,{k:"choiceTitle",style:{lineHeight:kit.tx("choiceText").lineHeight},children:c.title}),c.meta?/* @__PURE__ */jsxRuntime.jsx(T,{k:"choiceMeta",children:c.meta}):null]})]},c.value)})})}):null,v.facts?/* @__PURE__ */jsxRuntime.jsxs(Card2,{children:[
304
345
  /* @__PURE__ */jsxRuntime.jsx(CardTitle,{children:v.facts.title}),
305
- /* @__PURE__ */jsxRuntime.jsx(Facts,{rows:v.facts.rows}),v.facts.note?/* @__PURE__ */jsxRuntime.jsx(T,{k:"noteAfterFacts",children:v.facts.note}):null]}):null,v.cards.map(c=>/* @__PURE__ */jsxRuntime.jsxs(Card,{children:[
346
+ /* @__PURE__ */jsxRuntime.jsx(Facts,{rows:v.facts.rows}),v.facts.note?/* @__PURE__ */jsxRuntime.jsx(T,{k:"noteAfterFacts",children:v.facts.note}):null]}):null,v.cards.map(c=>/* @__PURE__ */jsxRuntime.jsxs(Card2,{children:[
306
347
  /* @__PURE__ */jsxRuntime.jsx(CardTitle,{children:c.title}),
307
348
  /* @__PURE__ */jsxRuntime.jsx(T,{k:"cardLead",children:c.lead})]},c.key))]}),
308
349
  /* @__PURE__ */jsxRuntime.jsx(Legal,{line:v.legal})]})}var RADIO_COLUMN=22;function Facts({rows:rows}){let kit=useKit(),pairs=[];rows.forEach((r,i)=>{i%2===0&&pairs.push([]),pairs[pairs.length-1].push(r)});let gap=kit.v("facts").columnGap;
@@ -313,26 +354,26 @@ return jsxRuntime.jsx(reactNative.View,{style:[kit.v("facts"),{columnGap:0,margi
313
354
  /* @__PURE__ */,jsxRuntime.jsx(reactNative.Text,{style:kit.tx("factsUnit"),children:r.unit})]})]},r.k)),pair.length===1?/* @__PURE__ */jsxRuntime.jsx(reactNative.View,{style:{flex:1}}):null]},i))})}function RxProductScreen({copy:copy,view:view,avatar:avatar}){let kit=useKit(),nav=useShopNativeNav();if(view.phase!=="ready")/* @__PURE__ */
314
355
  return jsxRuntime.jsxs(Frame,{children:[
315
356
  /* @__PURE__ */jsxRuntime.jsxs(Stack,{children:[
316
- /* @__PURE__ */jsxRuntime.jsx(Hero,{copy:copy,tone:"pink",icon:null}),view.phase==="failed"?/* @__PURE__ */jsxRuntime.jsx(LoadFailed,{copy:copy,thing:copy.thingProduct,retry:view.retry}):/* @__PURE__ */jsxRuntime.jsx(Card,{children:/* @__PURE__ */jsxRuntime.jsx(Ghost,{})})]}),
357
+ /* @__PURE__ */jsxRuntime.jsx(Hero,{copy:copy,tone:"pink",icon:null}),view.phase==="failed"?/* @__PURE__ */jsxRuntime.jsx(LoadFailed,{copy:copy,thing:copy.thingProduct,retry:view.retry}):/* @__PURE__ */jsxRuntime.jsx(Card2,{children:/* @__PURE__ */jsxRuntime.jsx(Ghost,{})})]}),
317
358
  /* @__PURE__ */jsxRuntime.jsx(Legal,{line:copy.legal})]});let v=view.value,meta=[v.stepLabel,v.sub].filter(Boolean).join(" · ")||null,submit=v.submit?"href"in v.submit?{label:v.submit.label,onPress:()=>nav.openExternal(v.submit.href)}:v.submit:null,ask=v.aside?/* @__PURE__ */jsxRuntime.jsx(OutlineButton,{k:"btnOutlineSm",icon:"message",iconKey:"btnOutlineSmIcon",action:{label:v.aside.link.label,onPress:()=>nav.openExternal(v.aside.link.href)}}):null,gap=kit.v("person").columnGap;/* @__PURE__ */
318
359
  return jsxRuntime.jsxs(Frame,{tray:/* @__PURE__ */jsxRuntime.jsx(TrayBar,{action:submit,fine:v.fine??null,error:v.error}),children:[
319
360
  /* @__PURE__ */jsxRuntime.jsx(TitleBlock,{title:v.title,meta:meta}),
320
361
  /* @__PURE__ */jsxRuntime.jsxs(Stack,{children:[
321
- /* @__PURE__ */jsxRuntime.jsx(ProductHero,{copy:copy,v:v}),v.stockLine?/* @__PURE__ */jsxRuntime.jsx(T,{k:"noteStandalone",children:v.stockLine}):null,v.script?/* @__PURE__ */jsxRuntime.jsxs(Card,{children:[
362
+ /* @__PURE__ */jsxRuntime.jsx(ProductHero,{copy:copy,v:v}),v.stockLine?/* @__PURE__ */jsxRuntime.jsx(T,{k:"noteStandalone",children:v.stockLine}):null,v.script?/* @__PURE__ */jsxRuntime.jsxs(Card2,{children:[
322
363
  /* @__PURE__ */jsxRuntime.jsxs(reactNative.View,{style:[kit.v("person"),{flexDirection:"row",alignItems:"center",rowGap:0,columnGap:0}],children:[avatar?/* @__PURE__ */jsxRuntime.jsxs(reactNative.View,{style:[kit.v("avatar"),{marginRight:gap,overflow:"hidden"}],children:[
323
364
  /* @__PURE__ */jsxRuntime.jsx(reactNative.Image,{source:avatar,style:{width:"100%",height:"100%"},accessible:false}),
324
365
  /* @__PURE__ */jsxRuntime.jsx(Decor,{k:"avatar"})]}):null,
325
366
  /* @__PURE__ */jsxRuntime.jsxs(reactNative.View,{style:{flex:1,minWidth:0,marginRight:gap},children:[
326
- /* @__PURE__ */jsxRuntime.jsx(T,{k:"personName",role:"header",children:v.script.name}),v.script.meta?/* @__PURE__ */jsxRuntime.jsx(T,{k:"personMeta",children:v.script.meta}):null]})]}),v.script.directions?/* @__PURE__ */jsxRuntime.jsx(Source,{icon:"file",rest:v.script.directions,inCard:true}):null,v.script.note?/* @__PURE__ */jsxRuntime.jsx(T,{k:"noteAfterSource",children:v.script.note}):null]}):null,v.cards.map((c,i)=>/* @__PURE__ */jsxRuntime.jsxs(Card,{children:[
367
+ /* @__PURE__ */jsxRuntime.jsx(T,{k:"personName",role:"header",children:v.script.name}),v.script.meta?/* @__PURE__ */jsxRuntime.jsx(T,{k:"personMeta",children:v.script.meta}):null]})]}),v.script.directions?/* @__PURE__ */jsxRuntime.jsx(Source,{icon:"file",rest:v.script.directions,inCard:true}):null,v.script.note?/* @__PURE__ */jsxRuntime.jsx(T,{k:"noteAfterSource",children:v.script.note}):null]}):null,v.cards.map((c,i)=>/* @__PURE__ */jsxRuntime.jsxs(Card2,{children:[
327
368
  /* @__PURE__ */jsxRuntime.jsx(CardTitle,{children:c.title}),
328
- /* @__PURE__ */jsxRuntime.jsx(T,{k:"rxLead",children:c.lead}),c.note?/* @__PURE__ */jsxRuntime.jsx(T,{k:"noteStandalone",children:c.note}):null,i===v.cards.length-1?ask:null]},c.key)),v.cards.length===0&&v.aside?/* @__PURE__ */jsxRuntime.jsxs(Card,{children:[
369
+ /* @__PURE__ */jsxRuntime.jsx(T,{k:"rxLead",children:c.lead}),c.note?/* @__PURE__ */jsxRuntime.jsx(T,{k:"noteStandalone",children:c.note}):null,i===v.cards.length-1?ask:null]},c.key)),v.cards.length===0&&v.aside?/* @__PURE__ */jsxRuntime.jsxs(Card2,{children:[
329
370
  /* @__PURE__ */jsxRuntime.jsx(CardTitle,{children:v.aside.title}),
330
371
  /* @__PURE__ */jsxRuntime.jsx(T,{k:"rxLead",children:v.aside.lead}),ask]}):null,typeof v.note=="string"?/* @__PURE__ */jsxRuntime.jsx(T,{k:"noteStandalone",children:v.note}):null,v.note&&typeof v.note!="string"?/* @__PURE__ */jsxRuntime.jsxs(T,{k:"noteStandalone",children:[`${v.note.before} `
331
372
  /* @__PURE__ */,jsxRuntime.jsx(reactNative.Text,{style:kit.tx("noteLink"),accessibilityRole:"link",onPress:()=>nav.openExternal(v.note.link.href),children:v.note.link.label}),v.note.after]}):null]}),
332
373
  /* @__PURE__ */jsxRuntime.jsx(Legal,{line:v.legal})]})}function Prods({children:children}){let kit=useKit(),rows=[];return children.forEach((c,i)=>{i%2===0&&rows.push([]),rows[rows.length-1].push(c)}),/* @__PURE__ */jsxRuntime.jsx(reactNative.View,{style:[kit.v("prods"),{columnGap:0}],children:rows.map((row,i)=>/* @__PURE__ */jsxRuntime.jsxs(reactNative.View,{style:{flexDirection:"row",columnGap:PHONE_BOX.prods.columnGap,alignItems:"stretch"},children:[row,row.length===1?/* @__PURE__ */jsxRuntime.jsx(reactNative.View,{style:{flex:1}}):null]},i))})}function Tile({tile:tile}){let kit=useKit(),nav=useShopNativeNav(),look=useProductTile(tile),label=[tile.name,...tile.pills.map(p=>p.label),tile.meta,tile.price].filter(Boolean).join(", ");/* @__PURE__ */
333
374
  return jsxRuntime.jsxs(Press,{role:"link",label:label,onPress:()=>nav.go(tile.to),style:[kit.v("prod"),{flex:1,minWidth:0}],children:[
334
375
  /* @__PURE__ */jsxRuntime.jsxs(reactNative.View,{style:[kit.v("prodImg"),{backgroundColor:tileTint(look.tone),alignItems:"center",justifyContent:"center"},tile.imageUrl?{overflow:"hidden"}:null],children:[
335
- /* @__PURE__ */jsxRuntime.jsx(PartIcon,{name:look.icon,k:"prodIcon"}),tile.imageUrl?/* @__PURE__ */jsxRuntime.jsx(TilePhoto,{uri:tile.imageUrl},tile.imageUrl):null]}),tile.pills.length>0?/* @__PURE__ */jsxRuntime.jsx(reactNative.View,{style:[kit.v("prodTags"),{flexDirection:"row",flexWrap:"wrap"}],children:tile.pills.map(p=>/* @__PURE__ */jsxRuntime.jsx(Pill,{pill:p},p.label))}):null,
376
+ /* @__PURE__ */jsxRuntime.jsx(PartIcon,{name:look.icon,k:"prodIcon"}),tile.imageUrl?/* @__PURE__ */jsxRuntime.jsx(TilePhoto,{uri:tile.imageUrl},tile.imageUrl):null]}),tile.pills.length>0?/* @__PURE__ */jsxRuntime.jsx(reactNative.View,{style:[kit.v("prodTags"),{flexDirection:"row",flexWrap:"wrap"}],children:tile.pills.map(p=>/* @__PURE__ */jsxRuntime.jsx(Pill2,{pill:p},p.label))}):null,
336
377
  /* @__PURE__ */jsxRuntime.jsxs(reactNative.View,{style:kit.v("prodBody"),children:[
337
378
  /* @__PURE__ */jsxRuntime.jsx(T,{k:"prodName",children:tile.name}),tile.meta?/* @__PURE__ */jsxRuntime.jsx(T,{k:"prodMeta",children:tile.meta}):null,tile.price?/* @__PURE__ */jsxRuntime.jsx(T,{k:"prodPrice",children:tile.price}):null]})]})}function GhostTiles({n:n}){let kit=useKit();/* @__PURE__ */
338
379
  return jsxRuntime.jsx(reactNative.View,{accessibilityElementsHidden:true,importantForAccessibility:"no-hide-descendants",children:/* @__PURE__ */jsxRuntime.jsx(Prods,{children:Array.from({length:n},(_,i)=>/* @__PURE__ */jsxRuntime.jsxs(reactNative.View,{style:[kit.v("prod"),{flex:1,minWidth:0}],children:[
@@ -343,83 +384,84 @@ return jsxRuntime.jsxs(Frame,{tabs:{copy:copy,current:"shop",tabs:tabs},onNearEn
343
384
  /* @__PURE__ */jsxRuntime.jsxs(Stack,{children:[
344
385
  /* @__PURE__ */jsxRuntime.jsxs(reactNative.View,{style:[kit.v("input"),{flexDirection:"row",alignItems:"center"}],children:[
345
386
  /* @__PURE__ */jsxRuntime.jsx(PartIcon,{name:"search",k:"inputIcon"}),
346
- /* @__PURE__ */jsxRuntime.jsx(reactNative.TextInput,{style:[kit.t("inputText"),{flex:1,minWidth:0}],value:view.query,onChangeText:view.onQuery,placeholder:copy.searchPlaceholder,placeholderTextColor:inkOf("inputPlaceholder"),accessibilityLabel:copy.searchLabel,autoCapitalize:"none",autoCorrect:false,returnKeyType:"search"})]}),view.filters.length>0?/* @__PURE__ */jsxRuntime.jsx(reactNative.ScrollView,{horizontal:true,showsHorizontalScrollIndicator:false,accessibilityLabel:copy.filtersLabel,contentContainerStyle:[kit.v("filters"),{flexDirection:"row"}],children:view.filters.map(f=>{let k=f.current?"filterCurrent":"filter";/* @__PURE__ */
347
- return jsxRuntime.jsx(Press,{role:"tab",selected:f.current,...f.to?{onPress:()=>nav.go(f.to)}:{},style:[kit.v(k),{flexDirection:"row",alignItems:"center"}],children:/* @__PURE__ */jsxRuntime.jsx(T,{k:k,bare:true,children:f.label})},f.label)})}):null,shelves.phase==="failed"?/* @__PURE__ */jsxRuntime.jsx(LoadFailed,{copy:copy,thing:copy.thingShop,retry:shelves.retry}):null,shelves.phase==="loading"?/* @__PURE__ */jsxRuntime.jsx(GhostTiles,{n:6}):null,shelves.phase==="ready"?shelves.value.filter(s=>s.tiles.length>0).map(s=>/* @__PURE__ */jsxRuntime.jsxs(reactNative.View,{children:[
387
+ /* @__PURE__ */jsxRuntime.jsx(reactNative.TextInput,{style:[kit.t("inputText"),{flex:1,minWidth:0}],value:view.query,onChangeText:view.onQuery,placeholder:copy.searchPlaceholder,placeholderTextColor:inkOf("inputPlaceholder"),accessibilityLabel:copy.searchLabel,autoCapitalize:"none",autoCorrect:false,returnKeyType:"search"})]}),view.filters.length>0?/* @__PURE__ */jsxRuntime.jsx(reactNative.ScrollView,{horizontal:true,showsHorizontalScrollIndicator:false,accessibilityLabel:copy.filtersLabel,contentContainerStyle:[kit.v("filters"),{flexDirection:"row"}],children:view.filters.map(f=>{let k2=f.current?"filterCurrent":"filter";/* @__PURE__ */
388
+ return jsxRuntime.jsx(Press,{role:"tab",selected:f.current,...f.to?{onPress:()=>nav.go(f.to)}:{},style:[kit.v(k2),{flexDirection:"row",alignItems:"center"}],children:/* @__PURE__ */jsxRuntime.jsx(T,{k:k2,bare:true,children:f.label})},f.label)})}):null,shelves.phase==="failed"?/* @__PURE__ */jsxRuntime.jsx(LoadFailed,{copy:copy,thing:copy.thingShop,retry:shelves.retry}):null,shelves.phase==="loading"?/* @__PURE__ */jsxRuntime.jsx(GhostTiles,{n:6}):null,shelves.phase==="ready"?shelves.value.filter(s=>s.tiles.length>0).map(s=>/* @__PURE__ */jsxRuntime.jsxs(reactNative.View,{children:[
348
389
  /* @__PURE__ */jsxRuntime.jsxs(reactNative.View,{style:[kit.v("sectionHead"),{flexDirection:"row",flexWrap:"wrap",alignItems:"center",justifyContent:"space-between"}],children:[
349
390
  /* @__PURE__ */jsxRuntime.jsx(T,{k:"cardTitleInHead",role:"header",children:s.title}),s.link?/* @__PURE__ */jsxRuntime.jsx(ShopLinkText,{link:s.link}):null]}),
350
391
  /* @__PURE__ */jsxRuntime.jsx(Prods,{children:s.tiles.map(t=>/* @__PURE__ */jsxRuntime.jsx(Tile,{tile:t},t.key))})]},s.key)):null,more?.loading?/* @__PURE__ */jsxRuntime.jsx(GhostTiles,{n:2}):null,more?.failed?/* @__PURE__ */jsxRuntime.jsx(LoadFailed,{copy:copy,thing:copy.thingShop,retry:more.onMore}):null,shelves.phase==="ready"&&view.empty?/* @__PURE__ */jsxRuntime.jsx(reactNative.View,{accessibilityLiveRegion:"polite",children:/* @__PURE__ */jsxRuntime.jsx(T,{k:"cardLead",children:view.empty})}):null]}),
351
- /* @__PURE__ */jsxRuntime.jsx(Legal,{line:view.legal})]})}function useCartCheckout(items,go,cardHandoff=null){let{client:client,copy:copy,v3:v3,payments:payments}=useShop(),addresses=useAddresses(),cards=usePaymentMethods(),[open,setOpen]=react.useState(false),[pane,setPane]=react.useState("main"),[addressRef,setAddressRef]=react.useState(()=>peekAddedAddress(client));react.useEffect(()=>dropAddedAddress(client),[client]);let[cardId,setCardId]=react.useState(null),[error,setError]=react.useState(null),usable=(addresses.value??[]).filter(a=>a.isComplete),address=usable.find(a=>a.ref===addressRef)??usable.find(a=>a.isDefault)??usable[0]??null,cardList=cards.value??[],card=cardList.find(c=>c.paymentMethodId===cardId)??cardList[0]??null,lines=react.useMemo(()=>cartLines(items),[items]),linesKey=JSON.stringify(lines),quote=useShopRead(address&&lines.length>0?`cart-quote:${address.ref}:${linesKey}`:null,()=>client.quote({lines:lines,shipTo:address.ref})),[shown,setShown]=react.useState(null),draftKey=`${address?.ref??""}:${linesKey}`,shownTotal=shown&&shown.key===draftKey?shown.total:null,placeRef=react.useRef(()=>{}),nameStep=useNameStep(()=>placeRef.current()),placedKeys=items.map(i=>i.key),placeAction=useShopAction(async keys=>{let draft=await client.createCheckout({idempotencyKey:keys.key("draft"),lines:lines,shipTo:address.ref});if(!draft.ok)return omsErr(draft.error);if((shownTotal??quote.value?.total??null)!==draft.value.total)return setShown({key:draftKey,total:draft.value.total}),omsErr({kind:"refused",status:409,reasonCode:"price_changed",message:null});let out=await confirmWithPayerActions(idempotencyKey=>client.confirmCheckout(draft.value.checkoutId,{idempotencyKey:idempotencyKey,expectedTotal:draft.value.total,paymentMethodId:card.paymentMethodId}),keys,payments,{reconfirm:true,beforePayerAction:()=>removePlaced(client,placedKeys)});return out.kind==="failed"?omsErr(out.error):omsOk(out)}),place2=()=>{!address||!card||!quote.value||placeAction.busy||(setError(null),nameStep.clear(),placeAction.run().then(res=>{if(!res)return;let out=res.ok?res.value:{kind:"failed",error:res.error};if(out.kind==="failed"){if(nameStep.raise(out.error))return;setError(outcomeLine(copy,out));return}if(out.orderIds.length===0){setError(copy.actionFailed);return}if(removePlaced(client,placedKeys),setOpen(false),setPane("main"),out.kind==="confirmed"){go({name:"placed",orderIds:out.orderIds});return}leaveOrderNotice(client,out.orderIds[0],outcomeLine(copy,out)),go({name:"order",orderId:out.orderIds[0]})}))};placeRef.current=place2;let[cardBusy,setCardBusy]=react.useState(false),before=react.useRef(null);react.useEffect(()=>{if(!before.current||cards.phase!=="ready"||!cards.value)return;let added=cards.value.find(c=>!before.current.has(c.paymentMethodId));before.current=null,added&&setCardId(added.paymentMethodId)},[cards.phase,cards.value]);let addCard=cardHandoff?{busy:cardBusy,run:()=>{if(cardBusy)return;setCardBusy(true),setError(null);let ids=new Set(cardList.map(c=>c.paymentMethodId));cardHandoff().then(step=>{setCardBusy(false),step.ok?(before.current=ids,setPane("main"),cards.refresh()):setError(step.closed?copy.cardStepClosed:step.message??copy.cardStepFailed)},()=>{setCardBusy(false),setError(copy.cardStepFailed)})}}:null,save=useShopAction((_keys,input)=>client.addAddress(input)),saveAddress={busy:save.busy,error:save.error?refusalLine(copy,save.error):null,run:input=>{save.run(input).then(res=>{res&&res.ok&&(setAddressRef(res.value.ref),setPane("main"),addresses.refresh())})}},sub=cartSubtotal(items),q=quote.value,totalCents=shownTotal??q?.total??null,sum=[];sub!==null&&sum.push({k:v3.subtotal,v:formatCents(sub)}),q&&totalCents!==null&&(sum.push({k:v3.shipping,v:q.shipping===0?v3.free:formatCents(q.shipping)}),sum.push({k:v3.tax,v:formatCents(q.tax)}),sum.push({k:v3.total,v:formatCents(totalCents),total:true}));let rx=items.some(i=>i.requiresRx),fineParts=[card?copy.chargedWhenShips(cardLabel(card.brand,card.last4)):null,rx?copy.rxCheckedFirst:null].filter(x=>!!x);return{open:open,pane:pane,setPane:setPane,openSheet:()=>{setError(null),setPane("main"),setOpen(true)},closeSheet:()=>{placeAction.busy||(setOpen(false),setPane("main"))},addresses:[...usable].sort((a,b)=>Number(b.isDefault)-Number(a.isDefault)),addressesLoading:addresses.phase==="loading",address:address,chooseAddress:ref=>{setAddressRef(ref),setPane("main")},cards:cardList,cardsLoading:cards.phase==="loading",card:card,chooseCard:id=>{setCardId(id),setPane("main")},addCard:addCard,saveAddress:saveAddress,sum:sum,subtotal:sub!==null?formatCents(sub):null,total:totalCents!==null?formatCents(totalCents):null,canPlace:!!address&&!!card&&!!q&&items.length>0&&!placeAction.busy,placing:placeAction.busy,place:place2,error:nameStep.view!==null?null:error??quoteLine(copy,quote),nameStep:nameStep.view,fine:fineParts.length>0?fineParts.join(" "):null}}var TOAST_MS=3200;function useToast(initial){let[line,setLine]=react.useState(initial);return react.useEffect(()=>{if(!line)return;let t=setTimeout(()=>setLine(null),TOAST_MS);return()=>clearTimeout(t)},[line]),[line,setLine]}function CartScreen({go:go}){let{client:client,copy:copy,v3:v3}=useShop(),{cardHandoff:cardHandoff}=useShopV3Host(),items=useCart(client),co=useCartCheckout(items,go,cardHandoff),[toast,setToast]=useToast(()=>takeCartFlash(client));if(items.length===0)/* @__PURE__ */
392
+ /* @__PURE__ */jsxRuntime.jsx(Legal,{line:view.legal})]})}function useCartCheckout(items,go,cardHandoff=null){let{client:client,copy:copy,v3:v3,payments:payments}=useShop(),addresses=useAddresses(),cards=usePaymentMethods(),[open,setOpen]=react.useState(false),[pane,setPane]=react.useState("main"),[addressRef,setAddressRef]=react.useState(()=>peekAddedAddress(client));react.useEffect(()=>dropAddedAddress(client),[client]);let[cardId,setCardId]=react.useState(null),[error,setError]=react.useState(null),usable=(addresses.value??[]).filter(a=>a.isComplete),address=usable.find(a=>a.ref===addressRef)??usable.find(a=>a.isDefault)??usable[0]??null,cardList=cards.value??[],card=cardList.find(c=>c.paymentMethodId===cardId)??cardList[0]??null,lines=react.useMemo(()=>cartLines(items),[items]),linesKey=JSON.stringify(lines),quote=useShopRead(address&&lines.length>0?`cart-quote:${address.ref}:${linesKey}`:null,()=>client.quote({lines:lines,shipTo:address.ref})),[shown,setShown]=react.useState(null),draftKey=`${address?.ref??""}:${linesKey}`,shownTotal=shown&&shown.key===draftKey?shown.total:null,placeRef=react.useRef(()=>{}),nameStep=useNameStep(()=>placeRef.current()),placedKeys=items.map(i=>i.key),placeAction=useShopAction(async keys=>{let draft=await client.createCheckout({idempotencyKey:keys.key("draft"),lines:lines,shipTo:address.ref});if(!draft.ok)return omsErr(draft.error);if((shownTotal??quote.value?.total??null)!==draft.value.total)return setShown({key:draftKey,total:draft.value.total}),omsErr({kind:"refused",status:409,reasonCode:"price_changed",message:null});let out=await confirmWithPayerActions(idempotencyKey=>client.confirmCheckout(draft.value.checkoutId,{idempotencyKey:idempotencyKey,expectedTotal:draft.value.total,paymentMethodId:card.paymentMethodId}),keys,payments,{reconfirm:true,beforePayerAction:()=>removePlaced(client,placedKeys)});return out.kind==="failed"?omsErr(out.error):omsOk(out)}),place3=()=>{!address||!card||!quote.value||placeAction.busy||(setError(null),nameStep.clear(),placeAction.run().then(res=>{if(!res)return;let out=res.ok?res.value:{kind:"failed",error:res.error};if(out.kind==="failed"){if(nameStep.raise(out.error))return;setError(outcomeLine(copy,out));return}if(out.orderIds.length===0){setError(copy.actionFailed);return}if(removePlaced(client,placedKeys),setOpen(false),setPane("main"),out.kind==="confirmed"){go({name:"placed",orderIds:out.orderIds});return}leaveOrderNotice(client,out.orderIds[0],outcomeLine(copy,out)),go({name:"order",orderId:out.orderIds[0]})}))};placeRef.current=place3;let[cardBusy,setCardBusy]=react.useState(false),before=react.useRef(null);react.useEffect(()=>{if(!before.current||cards.phase!=="ready"||!cards.value)return;let added=cards.value.find(c=>!before.current.has(c.paymentMethodId));before.current=null,added&&setCardId(added.paymentMethodId)},[cards.phase,cards.value]);let addCard=cardHandoff?{busy:cardBusy,run:()=>{if(cardBusy)return;setCardBusy(true),setError(null);let ids=new Set(cardList.map(c=>c.paymentMethodId));cardHandoff().then(step=>{setCardBusy(false),step.ok?(before.current=ids,setPane("main"),cards.refresh()):setError(step.closed?copy.cardStepClosed:step.message??copy.cardStepFailed)},()=>{setCardBusy(false),setError(copy.cardStepFailed)})}}:null,save=useShopAction((_keys,input)=>client.addAddress(input)),saveAddress={busy:save.busy,error:save.error?refusalLine(copy,save.error):null,run:input=>{save.run(input).then(res=>{res&&res.ok&&(setAddressRef(res.value.ref),setPane("main"),addresses.refresh())})}},sub=cartSubtotal(items),q=quote.value,totalCents=shownTotal??q?.total??null,sum=[];sub!==null&&sum.push({k:v3.subtotal,v:formatCents(sub)}),q&&totalCents!==null&&(sum.push({k:v3.shipping,v:q.shipping===0?v3.free:formatCents(q.shipping)}),sum.push({k:v3.tax,v:formatCents(q.tax)}),sum.push({k:v3.total,v:formatCents(totalCents),total:true}));let rx=items.some(i=>i.requiresRx),fineParts=[card?copy.chargedWhenShips(cardLabel(card.brand,card.last4)):null,rx?copy.rxCheckedFirst:null].filter(x=>!!x);return{open:open,pane:pane,setPane:setPane,openSheet:()=>{setError(null),setPane("main"),setOpen(true)},closeSheet:()=>{placeAction.busy||(setOpen(false),setPane("main"))},addresses:[...usable].sort((a,b)=>Number(b.isDefault)-Number(a.isDefault)),addressesLoading:addresses.phase==="loading",address:address,chooseAddress:ref=>{setAddressRef(ref),setPane("main")},cards:cardList,cardsLoading:cards.phase==="loading",card:card,chooseCard:id=>{setCardId(id),setPane("main")},addCard:addCard,saveAddress:saveAddress,sum:sum,subtotal:sub!==null?formatCents(sub):null,total:totalCents!==null?formatCents(totalCents):null,canPlace:!!address&&!!card&&!!q&&items.length>0&&!placeAction.busy,placing:placeAction.busy,place:place3,error:nameStep.view!==null?null:error??quoteLine(copy,quote),nameStep:nameStep.view,fine:fineParts.length>0?fineParts.join(" "):null}}var TOAST_MS=3200;function useToast2(initial){let[line,setLine]=react.useState(initial);return react.useEffect(()=>{if(!line)return;let t=setTimeout(()=>setLine(null),TOAST_MS);return()=>clearTimeout(t)},[line]),[line,setLine]}function CartScreen({go:go}){let{client:client,copy:copy,v3:v3}=useShop(),{cardHandoff:cardHandoff}=useShopV3Host(),items=useCart(client),co=useCartCheckout(items,go,cardHandoff),[toast,setToast]=useToast2(()=>takeCartFlash(client));if(items.length===0)/* @__PURE__ */
352
393
  return jsxRuntime.jsxs(Page,{testID:"shop-cart",children:[
353
- /* @__PURE__ */jsxRuntime.jsx(Toast,{line:toast}),
394
+ /* @__PURE__ */jsxRuntime.jsx(Toast2,{line:toast}),
354
395
  /* @__PURE__ */jsxRuntime.jsx(Empty,{icon:"cart",title:v3.cartEmptyTitle,body:v3.cartEmptyBody,action:/* @__PURE__ */jsxRuntime.jsx(Btn,{label:copy.tabShop,onPress:()=>go({name:"shop"})})})]});let barAmount=co.subtotal??co.total;/* @__PURE__ */
355
396
  return jsxRuntime.jsxs(Page,{testID:"shop-cart",foot:/* @__PURE__ */jsxRuntime.jsx(Btn,{size:"lg",label:barAmount?v3.checkoutCart(barAmount):v3.checkoutKicker,onPress:co.openSheet,testID:"shop-cart-checkout"}),children:[
356
397
  /* @__PURE__ */jsxRuntime.jsx(Title,{children:v3.cartTitle}),
357
- /* @__PURE__ */jsxRuntime.jsx(Toast,{line:toast}),
358
- /* @__PURE__ */jsxRuntime.jsx(Card2,{children:/* @__PURE__ */jsxRuntime.jsx(reactNative.View,{style:{gap:18},children:items.map(item=>/* @__PURE__ */jsxRuntime.jsx(CartLine,{item:item,onQuantity:n=>setCartQuantity(client,item.key,n),onRemove:()=>{let gone=removeFromCart(client,item.key);gone&&setToast(v3.removedFromCart(gone.title))}},item.key))})}),
398
+ /* @__PURE__ */jsxRuntime.jsx(Toast2,{line:toast}),
399
+ /* @__PURE__ */jsxRuntime.jsx(Card3,{children:/* @__PURE__ */jsxRuntime.jsx(reactNative.View,{style:{gap:18},children:items.map(item=>/* @__PURE__ */jsxRuntime.jsx(CartItem,{item:item,onQuantity:n=>setCartQuantity(client,item.key,n),onRemove:()=>{let gone=removeFromCart(client,item.key);gone&&setToast(v3.removedFromCart(gone.title))}},item.key))})}),
359
400
  /* @__PURE__ */jsxRuntime.jsx(Sum2,{rows:co.sum}),
360
- /* @__PURE__ */jsxRuntime.jsx(CheckoutSheet,{co:co,items:items})]})}function CartLine({item:item,onQuantity:onQuantity,onRemove:onRemove}){let{copy:copy,v3:v3,petName:petName}=useShop(),s=useShopStyles(),pet=petName(item.petId);/* @__PURE__ */
401
+ /* @__PURE__ */jsxRuntime.jsx(CheckoutSheet,{co:co,items:items})]})}function CartItem({item:item,onQuantity:onQuantity,onRemove:onRemove}){return useEverfurAppLook()?/* @__PURE__ */jsxRuntime.jsx(KitLine,{item:item,onQuantity:onQuantity,onRemove:onRemove}):/* @__PURE__ */jsxRuntime.jsx(PlanLine2,{item:item,onQuantity:onQuantity,onRemove:onRemove})}function PlanLine2({item:item,onQuantity:onQuantity,onRemove:onRemove}){let{copy:copy,v3:v3,petName:petName}=useShop(),pet=petName(item.petId),smalls=[...pet?[copy.forPet(pet)]:[],...item.rxId?[v3.itemQuantity(item.quantity)]:[]];/* @__PURE__ */
402
+ return jsxRuntime.jsx(ItemLine,{testID:"shop-cart-line",rx:item.requiresRx,title:item.title,imageUrl:item.imageUrl,price:item.unitPrice!==null?formatCents(item.unitPrice*item.quantity):void 0,smalls:smalls,quantity:item.rxId?void 0:{value:item.quantity,min:1,max:5,label:v3.quantityLabel(item.title),fewerLabel:v3.fewer,moreLabel:v3.more,onChange:onQuantity},removeLabel:v3.remove,onRemove:onRemove})}function KitLine({item:item,onQuantity:onQuantity,onRemove:onRemove}){let{copy:copy,v3:v3,petName:petName}=useShop(),s=useShopStyles(),pet=petName(item.petId);/* @__PURE__ */
361
403
  return jsxRuntime.jsxs(reactNative.View,{style:s.item,testID:"shop-cart-line",children:[
362
404
  /* @__PURE__ */jsxRuntime.jsx(Thumb2,{rx:item.requiresRx,title:item.title,imageUrl:item.imageUrl}),
363
405
  /* @__PURE__ */jsxRuntime.jsxs(reactNative.View,{style:s.grow,children:[
364
- /* @__PURE__ */jsxRuntime.jsx(Text2,{style:s.itemName,children:item.title}),
365
- /* @__PURE__ */jsxRuntime.jsxs(reactNative.View,{style:s.itemP,children:[item.unitPrice!==null?/* @__PURE__ */jsxRuntime.jsx(Text2,{style:s.itemPrice,children:formatCents(item.unitPrice*item.quantity)}):null,pet?/* @__PURE__ */jsxRuntime.jsx(Text2,{style:s.itemSmall,children:copy.forPet(pet)}):null,item.rxId?/* @__PURE__ */jsxRuntime.jsx(Text2,{style:s.itemSmall,children:v3.itemQuantity(item.quantity)}):null]}),
406
+ /* @__PURE__ */jsxRuntime.jsx(Text3,{style:s.itemName,children:item.title}),
407
+ /* @__PURE__ */jsxRuntime.jsxs(reactNative.View,{style:s.itemP,children:[item.unitPrice!==null?/* @__PURE__ */jsxRuntime.jsx(Text3,{style:s.itemPrice,children:formatCents(item.unitPrice*item.quantity)}):null,pet?/* @__PURE__ */jsxRuntime.jsx(Text3,{style:s.itemSmall,children:copy.forPet(pet)}):null,item.rxId?/* @__PURE__ */jsxRuntime.jsx(Text3,{style:s.itemSmall,children:v3.itemQuantity(item.quantity)}):null]}),
366
408
  /* @__PURE__ */jsxRuntime.jsxs(reactNative.View,{style:s.itemActs,children:[item.rxId?null:/* @__PURE__ */jsxRuntime.jsx(LineStepper,{item:item,onQuantity:onQuantity}),
367
409
  /* @__PURE__ */jsxRuntime.jsx(LinkBtn,{label:v3.remove,tone:"remove",onPress:onRemove,a11yLabel:`${v3.remove}: ${item.title}`})]})]})]})}function LineStepper({item:item,onQuantity:onQuantity}){let{v3:v3}=useShop();/* @__PURE__ */
368
410
  return jsxRuntime.jsx(Stepper,{value:item.quantity,max:5,label:v3.quantityLabel(item.title),fewerLabel:v3.fewer,moreLabel:v3.more,onChange:onQuantity})}function CheckoutSheet({co:co,items:items}){let{copy:copy,v3:v3}=useShop(),kicker=co.pane==="address"||co.pane==="addAddress"?v3.shipsTo:co.pane==="card"?v3.payWith:v3.checkoutKicker,foot=co.pane==="main"?/* @__PURE__ */jsxRuntime.jsx(Btn,{size:"lg",label:co.total?v3.placeOrder(co.total):v3.checkoutKicker,busy:co.placing,busyLabel:copy.saving,disabled:!co.canPlace,onPress:co.place,testID:"shop-place-order"}):null;/* @__PURE__ */
369
- return jsxRuntime.jsxs(Sheet,{open:co.open,kicker:kicker,closeLabel:copy.close,onClose:co.closeSheet,foot:foot,testID:"shop-checkout",children:[co.pane==="main"?/* @__PURE__ */jsxRuntime.jsx(MainPane,{co:co,items:items}):null,co.pane==="address"?/* @__PURE__ */jsxRuntime.jsx(AddressPane,{co:co}):null,co.pane==="addAddress"?/* @__PURE__ */jsxRuntime.jsx(AddAddressPane,{co:co}):null,co.pane==="card"?/* @__PURE__ */jsxRuntime.jsx(CardPane,{co:co}):null]})}function MainPane({co:co,items:items}){let{v3:v3}=useShop(),s=useShopStyles();/* @__PURE__ */
411
+ return jsxRuntime.jsxs(Sheet2,{open:co.open,kicker:kicker,closeLabel:copy.close,onClose:co.closeSheet,foot:foot,testID:"shop-checkout",children:[co.pane==="main"?/* @__PURE__ */jsxRuntime.jsx(MainPane,{co:co,items:items}):null,co.pane==="address"?/* @__PURE__ */jsxRuntime.jsx(AddressPane,{co:co}):null,co.pane==="addAddress"?/* @__PURE__ */jsxRuntime.jsx(AddAddressPane,{co:co}):null,co.pane==="card"?/* @__PURE__ */jsxRuntime.jsx(CardPane,{co:co}):null]})}function MainPane({co:co,items:items}){let{v3:v3}=useShop(),s=useShopStyles();/* @__PURE__ */
370
412
  return jsxRuntime.jsxs(jsxRuntime.Fragment,{children:[
371
413
  /* @__PURE__ */jsxRuntime.jsx(reactNative.View,{style:s.coItems,children:items.map(i=>/* @__PURE__ */jsxRuntime.jsxs(reactNative.View,{style:s.coItem,accessible:true,accessibilityLabel:[i.title,v3.itemQuantity(i.quantity),i.unitPrice!==null?formatCents(i.unitPrice*i.quantity):null].filter(Boolean).join(", "),children:[
372
414
  /* @__PURE__ */jsxRuntime.jsx(Thumb2,{rx:i.requiresRx,size:44,title:i.title,imageUrl:i.imageUrl}),
373
415
  /* @__PURE__ */jsxRuntime.jsxs(reactNative.View,{style:s.grow,children:[
374
- /* @__PURE__ */jsxRuntime.jsx(Text2,{style:s.coName,children:i.title}),
375
- /* @__PURE__ */jsxRuntime.jsx(Text2,{style:s.coSmall,children:v3.itemQuantity(i.quantity)})]}),i.unitPrice!==null?/* @__PURE__ */jsxRuntime.jsx(Text2,{style:s.coPrice,children:formatCents(i.unitPrice*i.quantity)}):null]},i.key))}),
416
+ /* @__PURE__ */jsxRuntime.jsx(Text3,{style:s.coName,children:i.title}),
417
+ /* @__PURE__ */jsxRuntime.jsx(Text3,{style:s.coSmall,children:v3.itemQuantity(i.quantity)})]}),i.unitPrice!==null?/* @__PURE__ */jsxRuntime.jsx(Text3,{style:s.coPrice,children:formatCents(i.unitPrice*i.quantity)}):null]},i.key))}),
376
418
  /* @__PURE__ */jsxRuntime.jsxs(reactNative.View,{style:s.coRows,children:[
377
419
  /* @__PURE__ */jsxRuntime.jsx(CoRow,{icon:"truck",k:v3.shipsTo,value:co.address?co.address.label:co.addressesLoading?" ":v3.noAddressYet,onPress:()=>co.setPane(co.addresses.some(a=>a.isComplete)?"address":"addAddress")}),
378
420
  /* @__PURE__ */jsxRuntime.jsx(CoRow,{icon:"card",k:v3.payWith,value:co.card?cardLabel(co.card.brand,co.card.last4):co.cardsLoading?" ":v3.noCardYet,onPress:()=>co.setPane("card")})]}),
379
421
  /* @__PURE__ */jsxRuntime.jsx(Sum2,{rows:co.sum,flat:true}),co.nameStep?/* @__PURE__ */jsxRuntime.jsx(NameStep,{step:co.nameStep}):null,
380
- /* @__PURE__ */jsxRuntime.jsx(ErrorLine,{line:co.error}),co.fine?/* @__PURE__ */jsxRuntime.jsx(Text2,{style:s.coFine,children:co.fine}):null]})}function AddressPane({co:co}){let{v3:v3}=useShop(),s=useShopStyles();/* @__PURE__ */
422
+ /* @__PURE__ */jsxRuntime.jsx(ErrorLine,{line:co.error}),co.fine?/* @__PURE__ */jsxRuntime.jsx(Text3,{style:s.coFine,children:co.fine}):null]})}function AddressPane({co:co}){let{v3:v3}=useShop(),s=useShopStyles();/* @__PURE__ */
381
423
  return jsxRuntime.jsxs(reactNative.View,{style:s.opts,children:[co.addresses.filter(a=>a.isComplete).map(a=>/* @__PURE__ */jsxRuntime.jsx(Opt,{on:co.address?.ref===a.ref,name:a.label,onPress:()=>co.chooseAddress(a.ref)},a.ref)),
382
- /* @__PURE__ */jsxRuntime.jsx(Btn,{ghost:true,label:v3.addAddress,onPress:()=>co.setPane("addAddress")})]})}function AddAddressPane({co:co}){let{copy:copy}=useShop(),[f,setF]=react.useState({label:"",recipient:"",line1:"",line2:"",city:"",region:"",postal:""}),set2=k=>v=>setF(x=>({...x,[k]:v})),ready=f.label.trim()&&f.recipient.trim()&&f.line1.trim()&&f.city.trim()&&isUsState(f.region)&&US_ZIP.test(f.postal.trim()),input=()=>({label:f.label.trim().slice(0,60),makeDefault:co.addresses.length===0,address:{recipientName:f.recipient.trim(),line1:f.line1.trim(),line2:f.line2.trim()||null,city:f.city.trim(),region:f.region.trim().toUpperCase(),postalCode:f.postal.trim(),country:"US"}});/* @__PURE__ */
424
+ /* @__PURE__ */jsxRuntime.jsx(Btn,{ghost:true,label:v3.addAddress,onPress:()=>co.setPane("addAddress")})]})}function AddAddressPane({co:co}){let{copy:copy}=useShop(),[f,setF]=react.useState({label:"",recipient:"",line1:"",line2:"",city:"",region:"",postal:""}),set2=k2=>v=>setF(x=>({...x,[k2]:v})),ready=f.label.trim()&&f.recipient.trim()&&f.line1.trim()&&f.city.trim()&&isUsState(f.region)&&US_ZIP.test(f.postal.trim()),input=()=>({label:f.label.trim().slice(0,60),makeDefault:co.addresses.length===0,address:{recipientName:f.recipient.trim(),line1:f.line1.trim(),line2:f.line2.trim()||null,city:f.city.trim(),region:f.region.trim().toUpperCase(),postalCode:f.postal.trim(),country:"US"}});/* @__PURE__ */
383
425
  return jsxRuntime.jsxs(reactNative.View,{style:{gap:14},children:[
384
- /* @__PURE__ */jsxRuntime.jsx(Field,{label:copy.addressLabel,value:f.label,onChange:set2("label"),autoComplete:"off"}),
385
- /* @__PURE__ */jsxRuntime.jsx(Field,{label:copy.addressRecipient,value:f.recipient,onChange:set2("recipient"),autoComplete:"name"}),
386
- /* @__PURE__ */jsxRuntime.jsx(Field,{label:copy.addressLine1,value:f.line1,onChange:set2("line1"),autoComplete:"address-line1"}),
387
- /* @__PURE__ */jsxRuntime.jsx(Field,{label:copy.addressLine2,value:f.line2,onChange:set2("line2"),autoComplete:"address-line2"}),
388
- /* @__PURE__ */jsxRuntime.jsx(Field,{label:copy.addressCity,value:f.city,onChange:set2("city"),autoComplete:"off"}),
389
- /* @__PURE__ */jsxRuntime.jsx(Field,{label:copy.addressRegion,value:f.region,onChange:set2("region"),autoComplete:"off",kind:"state"}),
390
- /* @__PURE__ */jsxRuntime.jsx(Field,{label:copy.addressPostal,value:f.postal,onChange:set2("postal"),autoComplete:"postal-code",kind:"zip"}),
426
+ /* @__PURE__ */jsxRuntime.jsx(Field2,{label:copy.addressLabel,value:f.label,onChange:set2("label"),autoComplete:"off"}),
427
+ /* @__PURE__ */jsxRuntime.jsx(Field2,{label:copy.addressRecipient,value:f.recipient,onChange:set2("recipient"),autoComplete:"name"}),
428
+ /* @__PURE__ */jsxRuntime.jsx(Field2,{label:copy.addressLine1,value:f.line1,onChange:set2("line1"),autoComplete:"address-line1"}),
429
+ /* @__PURE__ */jsxRuntime.jsx(Field2,{label:copy.addressLine2,value:f.line2,onChange:set2("line2"),autoComplete:"address-line2"}),
430
+ /* @__PURE__ */jsxRuntime.jsx(Field2,{label:copy.addressCity,value:f.city,onChange:set2("city"),autoComplete:"off"}),
431
+ /* @__PURE__ */jsxRuntime.jsx(Field2,{label:copy.addressRegion,value:f.region,onChange:set2("region"),autoComplete:"off",kind:"state"}),
432
+ /* @__PURE__ */jsxRuntime.jsx(Field2,{label:copy.addressPostal,value:f.postal,onChange:set2("postal"),autoComplete:"postal-code",kind:"zip"}),
391
433
  /* @__PURE__ */jsxRuntime.jsx(ErrorLine,{line:co.saveAddress.error}),
392
434
  /* @__PURE__ */jsxRuntime.jsx(Btn,{label:copy.addressSave,busy:co.saveAddress.busy,busyLabel:copy.saving,disabled:!ready,onPress:()=>co.saveAddress.run(input())})]})}function CardPane({co:co}){let{copy:copy,v3:v3}=useShop(),s=useShopStyles();/* @__PURE__ */
393
435
  return jsxRuntime.jsxs(reactNative.View,{style:s.opts,children:[co.cards.map(c=>/* @__PURE__ */jsxRuntime.jsx(Opt,{on:co.card?.paymentMethodId===c.paymentMethodId,name:cardLabel(c.brand,c.last4),onPress:()=>co.chooseCard(c.paymentMethodId)},c.paymentMethodId)),co.addCard?/* @__PURE__ */jsxRuntime.jsx(Btn,{ghost:true,label:v3.addCard,busy:co.addCard.busy,busyLabel:copy.saving,onPress:co.addCard.run}):null,
394
436
  /* @__PURE__ */jsxRuntime.jsx(ErrorLine,{line:co.error})]})}function NameStep({step:step}){let[first,setFirst]=react.useState(""),[last,setLast]=react.useState("");/* @__PURE__ */
395
437
  return jsxRuntime.jsxs(ErrorLine,{line:step.line,children:[step.form?/* @__PURE__ */jsxRuntime.jsxs(reactNative.View,{style:{gap:12},children:[
396
- /* @__PURE__ */jsxRuntime.jsx(Field,{label:step.form.firstLabel,value:first,onChange:setFirst,autoComplete:"given-name"}),
397
- /* @__PURE__ */jsxRuntime.jsx(Field,{label:step.form.lastLabel,value:last,onChange:setLast,autoComplete:"family-name"}),step.form.error?/* @__PURE__ */jsxRuntime.jsx(Text2,{children:step.form.error}):null,
438
+ /* @__PURE__ */jsxRuntime.jsx(Field2,{label:step.form.firstLabel,value:first,onChange:setFirst,autoComplete:"given-name"}),
439
+ /* @__PURE__ */jsxRuntime.jsx(Field2,{label:step.form.lastLabel,value:last,onChange:setLast,autoComplete:"family-name"}),step.form.error?/* @__PURE__ */jsxRuntime.jsx(Text3,{children:step.form.error}):null,
398
440
  /* @__PURE__ */jsxRuntime.jsx(Btn,{label:step.form.saveLabel,busy:step.form.busy,disabled:!first.trim()||!last.trim(),onPress:()=>step.form.onSave({firstName:first,lastName:last}),testID:"shop-save-name"})]}):null,step.handoff?/* @__PURE__ */jsxRuntime.jsx(Btn,{ghost:true,size:"sm",label:step.handoff.label,onPress:step.handoff.onPress,testID:"shop-add-name"}):null]})}function OrderScreen({orderId:orderId,go:go}){let{copy:copy,v3:v3,petName:petName}=useShop(),host=useShopV3Host(),nav=useShopNativeNav(),s=useShopStyles(),{order:order,o:o,ref:ref,line:line,asking:asking,setAsking:setAsking,pay:pay,cancel:cancel,busy:busy,onPay:onPay,onCancel:onCancel,sum:totals,refundRow:refundRow,paidCard:paidCard,buyAgain:buyAgain}=useOrderModel(orderId,go);if(order.phase==="loading")/* @__PURE__ */
399
441
  return jsxRuntime.jsxs(Page,{testID:"shop-order",children:[
400
442
  /* @__PURE__ */jsxRuntime.jsx(Ghosts,{}),
401
443
  /* @__PURE__ */jsxRuntime.jsx(Ghosts,{rows:2})]});if(!o)/* @__PURE__ */
402
444
  return jsxRuntime.jsx(Page,{testID:"shop-order",onRefresh:order.reread,children:/* @__PURE__ */jsxRuntime.jsx(ErrorLine,{line:copy.loadFailed(copy.thingOrder),children:/* @__PURE__ */jsxRuntime.jsx(Btn,{ghost:true,size:"sm",label:copy.tryAgain,onPress:order.refresh})})});let steps=trackSteps(o,v3),tracking=latestTracking(o),carrier=tracking?.carrier??null,sum=refundRow?[...totals,refundRow]:totals;/* @__PURE__ */
403
- return jsxRuntime.jsxs(Page,{testID:"shop-order",onRefresh:order.reread,children:[ref?/* @__PURE__ */jsxRuntime.jsx(Text2,{style:s.orderNo,children:v3.orderTitle(ref)}):null,
445
+ return jsxRuntime.jsxs(Page,{testID:"shop-order",onRefresh:order.reread,children:[ref?/* @__PURE__ */jsxRuntime.jsx(Text3,{style:s.orderNo,children:v3.orderTitle(ref)}):null,
404
446
  /* @__PURE__ */jsxRuntime.jsx(Title,{sub:orderSubline(o,copy,v3),children:orderHeadline(o,copy,v3)}),
405
- /* @__PURE__ */jsxRuntime.jsx(ErrorLine,{line:line}),o.canPay?/* @__PURE__ */jsxRuntime.jsx(Btn,{label:copy.payOrder,busy:pay.busy,busyLabel:copy.saving,disabled:busy,onPress:onPay,testID:"shop-order-pay"}):null,steps?/* @__PURE__ */jsxRuntime.jsx(Card2,{children:/* @__PURE__ */jsxRuntime.jsx(Track,{steps:steps,label:v3.tracking})}):null,tracking&&(carrier||tracking.trackingNumber)?/* @__PURE__ */jsxRuntime.jsxs(Card2,{children:[
447
+ /* @__PURE__ */jsxRuntime.jsx(ErrorLine,{line:line}),o.canPay?/* @__PURE__ */jsxRuntime.jsx(Btn,{label:copy.payOrder,busy:pay.busy,busyLabel:copy.saving,disabled:busy,onPress:onPay,testID:"shop-order-pay"}):null,steps?/* @__PURE__ */jsxRuntime.jsx(Card3,{children:/* @__PURE__ */jsxRuntime.jsx(Track,{steps:steps,label:v3.tracking})}):null,tracking&&(carrier||tracking.trackingNumber)?/* @__PURE__ */jsxRuntime.jsxs(Card3,{children:[
406
448
  /* @__PURE__ */jsxRuntime.jsxs(reactNative.View,{style:s.carrier,children:[
407
449
  /* @__PURE__ */jsxRuntime.jsx(IconTile,{name:"truck",size:40}),
408
450
  /* @__PURE__ */jsxRuntime.jsxs(reactNative.View,{style:s.grow,children:[
409
- /* @__PURE__ */jsxRuntime.jsx(Text2,{style:s.carrierName,children:carrier??v3.tracking}),tracking.trackingNumber?/* @__PURE__ */jsxRuntime.jsx(Text2,{style:s.carrierNo,children:tracking.trackingNumber}):null]})]}),tracking.trackingUrl?/* @__PURE__ */jsxRuntime.jsx(reactNative.View,{style:s.carrierGo,children:/* @__PURE__ */jsxRuntime.jsx(Btn,{ghost:true,size:"sm",label:carrier?v3.trackOn(carrier):copy.trackPackage,onPress:()=>nav.openExternal(tracking.trackingUrl)})}):null]}):null,
451
+ /* @__PURE__ */jsxRuntime.jsx(Text3,{style:s.carrierName,children:carrier??v3.tracking}),tracking.trackingNumber?/* @__PURE__ */jsxRuntime.jsx(Text3,{style:s.carrierNo,children:tracking.trackingNumber}):null]})]}),tracking.trackingUrl?/* @__PURE__ */jsxRuntime.jsx(reactNative.View,{style:s.carrierGo,children:/* @__PURE__ */jsxRuntime.jsx(Btn,{ghost:true,size:"sm",label:carrier?v3.trackOn(carrier):copy.trackPackage,onPress:()=>nav.openExternal(tracking.trackingUrl)})}):null]}):null,
410
452
  /* @__PURE__ */jsxRuntime.jsx(K,{children:v3.inThisOrder}),
411
- /* @__PURE__ */jsxRuntime.jsx(Card2,{children:/* @__PURE__ */jsxRuntime.jsx(reactNative.View,{style:s.items,children:o.lines.map(l=>{let pet=petName(l.petId);/* @__PURE__ */
453
+ /* @__PURE__ */jsxRuntime.jsx(Card3,{children:/* @__PURE__ */jsxRuntime.jsx(reactNative.View,{style:s.items,children:o.lines.map(l=>{let pet=petName(l.petId);/* @__PURE__ */
412
454
  return jsxRuntime.jsxs(reactNative.View,{style:s.item,children:[
413
455
  /* @__PURE__ */jsxRuntime.jsx(Thumb2,{rx:l.requiresRx,imageUrl:l.imageUrl}),
414
456
  /* @__PURE__ */jsxRuntime.jsxs(reactNative.View,{style:s.grow,children:[
415
- /* @__PURE__ */jsxRuntime.jsx(Text2,{style:s.itemName,children:l.title}),
457
+ /* @__PURE__ */jsxRuntime.jsx(Text3,{style:s.itemName,children:l.title}),
416
458
  /* @__PURE__ */jsxRuntime.jsxs(reactNative.View,{style:s.itemP,children:[
417
- /* @__PURE__ */jsxRuntime.jsx(Text2,{style:s.itemPrice,children:formatCents(l.unitPrice*l.quantity)}),
418
- /* @__PURE__ */jsxRuntime.jsx(Text2,{style:s.itemSmall,children:v3.orderItemLine(l.quantity)}),pet?/* @__PURE__ */jsxRuntime.jsx(Text2,{style:s.itemSmall,children:copy.forPet(pet)}):null]})]})]},l.lineId)})})}),
459
+ /* @__PURE__ */jsxRuntime.jsx(Text3,{style:s.itemPrice,children:formatCents(l.unitPrice*l.quantity)}),
460
+ /* @__PURE__ */jsxRuntime.jsx(Text3,{style:s.itemSmall,children:v3.orderItemLine(l.quantity)}),pet?/* @__PURE__ */jsxRuntime.jsx(Text3,{style:s.itemSmall,children:copy.forPet(pet)}):null]})]})]},l.lineId)})})}),
419
461
  /* @__PURE__ */jsxRuntime.jsx(Sum2,{rows:sum}),paidCard?/* @__PURE__ */jsxRuntime.jsx(reactNative.View,{style:[s.coRows,s.coRowsOnPage],children:/* @__PURE__ */jsxRuntime.jsx(CoRow,{icon:"card",k:v3.paidWith,value:cardLabel(paidCard.brand,paidCard.last4)})}):null,
420
462
  /* @__PURE__ */jsxRuntime.jsxs(reactNative.View,{style:s.acts,children:[buyAgain?/* @__PURE__ */jsxRuntime.jsx(Btn,{ghost:true,label:v3.buyAgain,onPress:buyAgain}):null,host.onOrderHelp?/* @__PURE__ */jsxRuntime.jsx(LinkBtn,{label:v3.orderHelp,onPress:()=>host.onOrderHelp?.(orderId)}):null,o.canCancel?/* @__PURE__ */jsxRuntime.jsx(LinkBtn,{label:copy.cancelOrder,tone:"risk",disabled:busy,onPress:()=>setAsking(true)}):null]}),
421
- /* @__PURE__ */jsxRuntime.jsxs(Sheet,{open:asking,kicker:v3.orderTitle(ref),closeLabel:copy.close,onClose:()=>!cancel.busy&&setAsking(false),children:[
422
- /* @__PURE__ */jsxRuntime.jsx(Text2,{tier:"heading",style:s.sheetTitle,accessibilityRole:"header",children:v3.cancelAsk}),v3.cancelBody?/* @__PURE__ */jsxRuntime.jsx(Text2,{style:s.sub2,children:v3.cancelBody}):null,
463
+ /* @__PURE__ */jsxRuntime.jsxs(Sheet2,{open:asking,kicker:v3.orderTitle(ref),closeLabel:copy.close,onClose:()=>!cancel.busy&&setAsking(false),children:[
464
+ /* @__PURE__ */jsxRuntime.jsx(Text3,{tier:"heading",style:s.sheetTitle,accessibilityRole:"header",children:v3.cancelAsk}),v3.cancelBody?/* @__PURE__ */jsxRuntime.jsx(Text3,{style:s.sub2,children:v3.cancelBody}):null,
423
465
  /* @__PURE__ */jsxRuntime.jsxs(reactNative.View,{style:{gap:10,marginTop:8},children:[
424
466
  /* @__PURE__ */jsxRuntime.jsx(Btn,{label:copy.cancelOrder,busy:cancel.busy,busyLabel:copy.saving,onPress:onCancel,testID:"shop-order-cancel-confirm"}),
425
467
  /* @__PURE__ */jsxRuntime.jsx(Btn,{ghost:true,label:copy.keepIt,disabled:cancel.busy,onPress:()=>setAsking(false)})]})]})]})}function OrdersScreen({tabs:tabs,go:go}){let{copy:copy,v3:v3}=useShop(),s=useShopStyles(),{first:first,orders:orders,named:named,hasMore:hasMore,loadMore:loadMore,moreBusy:moreBusy,moreError:moreError}=useOrdersList(),subs=useSubscriptions(),head=/* @__PURE__ */jsxRuntime.jsx(CareTabs,{copy:copy,current:"orders",tabs:tabs});if(first.phase==="loading"||subs.phase==="loading")/* @__PURE__ */
@@ -437,20 +479,20 @@ return jsxRuntime.jsxs(Page,{head:head,testID:"shop-orders",onRefresh:first.rere
437
479
  return jsxRuntime.jsxs(reactNative.Pressable,{style:s.order,onPress:onPress,accessibilityRole:"button",accessibilityLabel:[pill.label,order.referenceNumber,what,meta].filter(Boolean).join(", "),testID:"shop-order-card",children:[
438
480
  /* @__PURE__ */jsxRuntime.jsxs(reactNative.View,{style:s.grow,children:[
439
481
  /* @__PURE__ */jsxRuntime.jsxs(reactNative.View,{style:s.orderTop,children:[
440
- /* @__PURE__ */jsxRuntime.jsx(StatusPill,{label:pill.label,tone:pill.tone}),order.referenceNumber?/* @__PURE__ */jsxRuntime.jsx(Text2,{style:s.orderNo,children:order.referenceNumber}):null]}),what?/* @__PURE__ */jsxRuntime.jsx(Text2,{style:s.orderWhat,children:what}):null,
441
- /* @__PURE__ */jsxRuntime.jsx(Text2,{style:what?s.orderMeta:[s.orderMeta,{marginTop:8}],children:meta}),items&&items.length>0?/* @__PURE__ */jsxRuntime.jsx(reactNative.View,{style:s.pics,children:items.slice(0,6).map((i,n)=>/* @__PURE__ */jsxRuntime.jsx(Thumb2,{rx:i.rx,size:40,imageUrl:i.imageUrl},`${i.title}-${n}`))}):null]}),
482
+ /* @__PURE__ */jsxRuntime.jsx(StatusPill,{label:pill.label,tone:pill.tone}),order.referenceNumber?/* @__PURE__ */jsxRuntime.jsx(Text3,{style:s.orderNo,children:order.referenceNumber}):null]}),what?/* @__PURE__ */jsxRuntime.jsx(Text3,{style:s.orderWhat,children:what}):null,
483
+ /* @__PURE__ */jsxRuntime.jsx(Text3,{style:what?s.orderMeta:[s.orderMeta,{marginTop:8}],children:meta}),items&&items.length>0?/* @__PURE__ */jsxRuntime.jsx(reactNative.View,{style:s.pics,children:items.slice(0,6).map((i,n)=>/* @__PURE__ */jsxRuntime.jsx(Thumb2,{rx:i.rx,size:40,imageUrl:i.imageUrl},`${i.title}-${n}`))}):null]}),
442
484
  /* @__PURE__ */jsxRuntime.jsx(ShopV3Icon,{name:"chev",size:18,color:s.palette.ink3})]})}function PlacedScreen({orderIds:orderIds,go:go}){let{client:client,copy:copy,v3:v3}=useShop(),s=useShopStyles(),orders=(useShopRead(`placed:${orderIds.join(",")}`,async()=>omsOk(await Promise.all(orderIds.map(id=>client.order(id))))).value??[]).flatMap(r=>r.ok?[r.value]:[]),arrives=orders.map(o=>o.arrivesBy??o.tracking?.deliveryBy??null).filter(d=>!!d).sort().pop(),day=formatDay(arrives??null,{weekday:true}),lines=orders.flatMap(o=>o.lines),one=orderIds.length===1;/* @__PURE__ */
443
485
  return jsxRuntime.jsx(Page,{testID:"shop-placed",foot:/* @__PURE__ */jsxRuntime.jsx(Btn,{label:one?v3.viewOrder:copy.allOrders,onPress:()=>go(one?{name:"order",orderId:orderIds[0]}:{name:"orders"}),testID:"shop-placed-view"}),children:/* @__PURE__ */jsxRuntime.jsxs(reactNative.View,{style:s.done,children:[
444
486
  /* @__PURE__ */jsxRuntime.jsx(reactNative.View,{style:s.doneCheck,accessibilityElementsHidden:true,importantForAccessibility:"no-hide-descendants",children:/* @__PURE__ */jsxRuntime.jsx(ShopV3Icon,{name:"check",size:34,color:s.palette.onAccent})}),
445
- /* @__PURE__ */jsxRuntime.jsx(Text2,{tier:"heading",style:s.doneTitle,accessibilityRole:"header",children:v3.placedTitle}),day?/* @__PURE__ */jsxRuntime.jsx(Text2,{style:s.doneWhen,children:v3.arrivesBy(day)}):null,orders.map(o=>o.summary.referenceNumber?/* @__PURE__ */jsxRuntime.jsx(Text2,{style:s.doneWho,children:v3.orderTitle(o.summary.referenceNumber)},o.summary.orderId):null),lines.length>0?/* @__PURE__ */jsxRuntime.jsxs(reactNative.View,{style:s.next,accessibilityLabel:v3.placedSteps,children:[lines.map(l=>/* @__PURE__ */jsxRuntime.jsxs(reactNative.View,{style:s.nextLi,accessible:true,accessibilityLabel:`${l.title}, ${v3.itemQuantity(l.quantity)}`,children:[
487
+ /* @__PURE__ */jsxRuntime.jsx(Text3,{tier:"heading",style:s.doneTitle,accessibilityRole:"header",children:v3.placedTitle}),day?/* @__PURE__ */jsxRuntime.jsx(Text3,{style:s.doneWhen,children:v3.arrivesBy(day)}):null,orders.map(o=>o.summary.referenceNumber?/* @__PURE__ */jsxRuntime.jsx(Text3,{style:s.doneWho,children:v3.orderTitle(o.summary.referenceNumber)},o.summary.orderId):null),lines.length>0?/* @__PURE__ */jsxRuntime.jsxs(reactNative.View,{style:s.next,accessibilityLabel:v3.placedSteps,children:[lines.map(l=>/* @__PURE__ */jsxRuntime.jsxs(reactNative.View,{style:s.nextLi,accessible:true,accessibilityLabel:`${l.title}, ${v3.itemQuantity(l.quantity)}`,children:[
446
488
  /* @__PURE__ */jsxRuntime.jsx(Thumb2,{rx:l.requiresRx,size:36,title:l.title,imageUrl:l.imageUrl}),
447
489
  /* @__PURE__ */jsxRuntime.jsxs(reactNative.View,{style:s.grow,children:[
448
- /* @__PURE__ */jsxRuntime.jsx(Text2,{tier:"compact",style:s.nextK,children:v3.itemQuantity(l.quantity)}),
449
- /* @__PURE__ */jsxRuntime.jsx(Text2,{style:s.nextV,children:l.title})]})]},l.lineId)),day?/* @__PURE__ */jsxRuntime.jsxs(reactNative.View,{style:s.nextLi,accessible:true,accessibilityLabel:`${day}, ${v3.placedArrives}`,children:[
490
+ /* @__PURE__ */jsxRuntime.jsx(Text3,{tier:"compact",style:s.nextK,children:v3.itemQuantity(l.quantity)}),
491
+ /* @__PURE__ */jsxRuntime.jsx(Text3,{style:s.nextV,children:l.title})]})]},l.lineId)),day?/* @__PURE__ */jsxRuntime.jsxs(reactNative.View,{style:s.nextLi,accessible:true,accessibilityLabel:`${day}, ${v3.placedArrives}`,children:[
450
492
  /* @__PURE__ */jsxRuntime.jsx(IconTile,{name:"calendar"}),
451
493
  /* @__PURE__ */jsxRuntime.jsxs(reactNative.View,{style:s.grow,children:[
452
- /* @__PURE__ */jsxRuntime.jsx(Text2,{tier:"compact",style:s.nextK,children:day}),
453
- /* @__PURE__ */jsxRuntime.jsx(Text2,{style:s.nextV,children:v3.placedArrives})]})]}):null]}):null]})})}function LivePackage(){let{copy:copy}=useShop(),nav=useShopNativeNav(),{tabs:tabs,view:view}=usePackageScreen(nav.go);/* @__PURE__ */
494
+ /* @__PURE__ */jsxRuntime.jsx(Text3,{tier:"compact",style:s.nextK,children:day}),
495
+ /* @__PURE__ */jsxRuntime.jsx(Text3,{style:s.nextV,children:v3.placedArrives})]})]}):null]}):null]})})}function LivePackage(){let{copy:copy}=useShop(),nav=useShopNativeNav(),{tabs:tabs,view:view}=usePackageScreen(nav.go);/* @__PURE__ */
454
496
  return jsxRuntime.jsx(PackageScreen,{copy:copy,tabs:tabs,view:view})}function LiveShop({initialQuery:initialQuery}){let{copy:copy}=useShop(),{tabs:tabs,view:view}=useShopScreen(initialQuery);/* @__PURE__ */
455
497
  return jsxRuntime.jsxs(reactNative.View,{style:{flex:1},children:[
456
498
  /* @__PURE__ */jsxRuntime.jsx(ShopScreen,{copy:copy,tabs:tabs,view:view}),
@@ -476,4 +518,4 @@ return jsxRuntime.jsx(LiveCard,{handoff:cardHandoff,...route.then?{then:route.th
476
518
  return jsxRuntime.jsx(LiveBuy,{route:route});case"consent":/* @__PURE__ */
477
519
  return jsxRuntime.jsx(LiveConsent,{route:route});case"cart":/* @__PURE__ */
478
520
  return jsxRuntime.jsx(LiveCart,{});case"placed":/* @__PURE__ */
479
- return jsxRuntime.jsx(LivePlaced,{orderIds:route.orderIds},route.orderIds.join(","))}}function parseUrl(raw,base){let Url=globalThis.URL;if(typeof Url=="function"){let url;try{url=base===void 0?new Url(raw):new Url(raw,base)}catch{return null}try{if(url.protocol)return url}catch{}}return parseByPattern(raw)}var WHOLE_URL=/^([a-z][a-z0-9+.-]*):\/\/(?:([^:@/?#]*)(?::([^@/?#]*))?@)?(\[[0-9a-f:.]+\]|[\w.~-]+)(?::(\d*))?(\/[^?#]*)?(\?[^#]*)?(#.*)?$/i,REWRITTEN_BY_STANDARD_PARSER=/[\s\u0000-\u001f\u007f\\]/,DEFAULT_PORTS={"http:":"80","https:":"443"};function parseByPattern(raw,base){let input=raw.trim();let match=REWRITTEN_BY_STANDARD_PARSER.test(input)?null:WHOLE_URL.exec(input);if(match===null)return null;let[,scheme="",username="",password="",host="",portText="",path="",query="",fragment=""]=match,protocol=`${scheme.toLowerCase()}:`,portNumber=Number(portText);if(portNumber>65535)return null;let port=portText===""||String(portNumber)===DEFAULT_PORTS[protocol]?"":String(portNumber),special=DEFAULT_PORTS[protocol]!==void 0,hostPort=host.toLowerCase()+(port&&`:${port}`),pathname=path||(special?"/":""),credentials=username||password?`${username}${password&&`:${password}`}@`:"";return{href:`${protocol}//${credentials}${hostPort}${pathname}${query}${fragment}`,protocol:protocol,username:username,password:password,hostname:host.toLowerCase(),port:port,origin:special?`${protocol}//${hostPort}`:"null",pathname:pathname,search:query==="?"?"":query,hash:fragment==="#"?"":fragment}}var SECRET_IN_URL=/(client_secret|_secret_|[?&#](sk|rk)_(live|test)_)/i,FAILED={ok:false,message:null},CLOSED={ok:false,message:null,closed:true};function safePageUrl(raw){if(!raw)return null;let u=parseUrl(raw);return u===null||u.protocol!=="https:"||u.username||u.password||SECRET_IN_URL.test(raw)?null:u.href}function returnedParam(result,returnUrl,key){if(result.type!=="success"||typeof result.url!="string"||!result.url.startsWith(returnUrl))return;let queryAt=result.url.indexOf("?");if(queryAt===-1)return null;let query=result.url.slice(queryAt+1).split("#")[0]??"";for(let pair of query.split("&")){let[k,v=""]=pair.split("=");if(k===key)try{return decodeURIComponent(v)}catch{return null}}return null}async function runInBrowser(openAuthSession,url,returnUrl,read){let result;try{result=await openAuthSession(url,returnUrl)}catch{return FAILED}return result.type!=="success"?CLOSED:read(result)}function createInAppBrowserCardSetup(options){let{openAuthSession:openAuthSession,pageUrl:pageUrl,client:client,returnUrl:returnUrl}=options,makePage=async()=>{if(pageUrl)return pageUrl();if(!client)return null;let res=await client.startCardSetupSession({idempotencyKey:newIdempotencyKey(),returnUrl:returnUrl});return res.ok?res.value.url:null};return async()=>{let url;try{url=safePageUrl(await makePage())}catch{url=null}return url?runInBrowser(openAuthSession,url,returnUrl,result=>{let outcome=returnedParam(result,returnUrl,"oms_card");return outcome===void 0?FAILED:outcome==="canceled"?CLOSED:outcome===null||outcome==="done"?{ok:true}:FAILED}):FAILED}}function createInAppBrowserPayments(options){let{openAuthSession:openAuthSession,client:client,returnUrl:returnUrl}=options;return{confirmCardSetup:()=>Promise.resolve(FAILED),async handleNextAction(_clientSecret,context){if(!context?.orderId)return FAILED;let url;try{let res=await client.cardActionLink(context.orderId,{returnUrl:returnUrl});url=res.ok?safePageUrl(res.value.url):null}catch{url=null}return url?runInBrowser(openAuthSession,url,returnUrl,result=>{let outcome=returnedParam(result,returnUrl,"oms_card_action");return outcome==="succeeded"?{ok:true}:outcome==="canceled"?CLOSED:FAILED}):FAILED}}}function createInAppBrowserCard(options){return{cardHandoff:createInAppBrowserCardSetup({openAuthSession:options.openAuthSession,client:options.client,returnUrl:options.returnUrl}),payments:createInAppBrowserPayments(options)}}var OmsWireError=class _OmsWireError extends Error{constructor(field){super(`OMS answer could not be read: ${field}`);this.field=field;this.name="OmsWireError",Object.setPrototypeOf(this,_OmsWireError.prototype)}};function obj(value,field){if(value===null||typeof value!="object"||Array.isArray(value))throw new OmsWireError(field);return value}function arr(value,field){if(value==null)return[];if(!Array.isArray(value))throw new OmsWireError(field);return value}function str2(o,key,field=key){let v=o[key];if(typeof v!="string"||v.length===0)throw new OmsWireError(field);return v}function optStr(o,key){let v=o[key];return typeof v=="string"&&v.length>0?v:null}function int(o,key,field=key){let v=o[key];if(typeof v!="number"||!Number.isFinite(v))throw new OmsWireError(field);return Math.trunc(v)}function optInt(o,key){let v=o[key];return typeof v=="number"&&Number.isFinite(v)?Math.trunc(v):null}function bool(o,key){return o[key]===true}function petIdOf(value){if(!value||typeof value!="object")return null;let id=value.pet_id;return typeof id=="string"&&id.length>0?id:null}var PACK_UNITS=["each","gram","milliliter"],SPEEDS=["ground","two_day","next_day"];function packUnit(o){let v=o.pack_unit;return typeof v=="string"&&PACK_UNITS.includes(v)?v:null}function speed(v){return typeof v=="string"&&SPEEDS.includes(v)?v:null}function httpsUrl(o,key){let v=optStr(o,key);return v&&parseUrl(v)?.protocol==="https:"?v:null}function optNum(o,key){let v=o[key];return typeof v=="number"&&Number.isFinite(v)?v:null}function optDate(o,key){let v=optStr(o,key);return v&&/^\d{4}-\d{2}-\d{2}$/.test(v)?v:null}function optBool(o,key){let v=o[key];return typeof v=="boolean"?v:null}var FULFILLERS=["pharmacy","everfur_box"];function supplyFromWire(raw){if(raw===null||typeof raw!="object"||Array.isArray(raw))return null;let o=raw,unitsLeft=optInt(o,"units_left"),unitLabel=optStr(o,"unit_label"),dailyUnits=optNum(o,"daily_units"),runsOutOn=optDate(o,"runs_out_on");return unitsLeft===null||unitsLeft<0||!unitLabel||dailyUnits===null||dailyUnits<=0||!runsOutOn?null:{unitsLeft:unitsLeft,unitLabel:unitLabel,dailyUnits:dailyUnits,runsOutOn:runsOutOn,refillArrivesOn:optDate(o,"refill_arrives_on")}}function orderListStepFromWire(raw){if(raw===null||typeof raw!="object"||Array.isArray(raw))return[];let o=raw,key=optStr(o,"key");return key?[{key:key,doneAt:optStr(o,"done_at")}]:[]}function shopConfigFromWire(raw){let o=obj(raw,"shop-config"),delivery=o.delivery&&typeof o.delivery=="object"?o.delivery:null,key=optStr(o,"stripe_publishable_key");return{recurringTermsVersion:optStr(o,"recurring_terms_version"),recurringTermsUrl:httpsUrl(o,"recurring_terms_url"),stripePublishableKey:key&&/^pk_(test|live)_[A-Za-z0-9]+$/.test(key)?key:null,delivery:delivery?{firstFill:speed(delivery.first_fill),refill:speed(delivery.refill)}:null,rxContactMissing:Array.isArray(o.rx_contact_missing)?o.rx_contact_missing.filter(p=>typeof p=="string"):null,freeShippingThresholdCents:optInt(o,"free_shipping_threshold_cents"),firstRxDiscountCents:optInt(o,"first_rx_discount_cents")}}function offerFromWire(raw){let o=obj(raw,"offer"),qty=o.pack_quantity;return{offerId:str2(o,"offer_id"),sku:optStr(o,"sku")??"",title:str2(o,"title"),fulfillmentType:optStr(o,"fulfillment_type")??"physical",requiresRx:bool(o,"requires_rx"),compounded:bool(o,"compounded"),packQuantity:typeof qty=="string"&&/^\d+(\.\d+)?$/.test(qty)?qty:null,packUnit:packUnit(o),price:optInt(o,"price"),imageUrl:httpsUrl(o,"image_url")}}function offerPageFromWire(raw){let o=obj(raw,"offers");return{offers:arr(o.offers,"offers").map(offerFromWire),nextCursor:optStr(o,"next_cursor")}}function quoteFromWire(raw){let o=obj(raw,"quote");return{lines:arr(o.lines,"lines").map(l=>{let line=obj(l,"line");return{offerId:str2(line,"offer_id"),quantity:int(line,"quantity"),petId:petIdOf(line.pet),unitPrice:int(line,"unit_price"),discount:optInt(line,"discount")??0,tax:optInt(line,"tax")??0,whenFilledDiscountCents:optInt(line,"when_filled_discount_cents"),isRx:optBool(line,"is_rx"),chargedWhenFilled:optBool(line,"charged_when_filled")}}),shipping:int(o,"shipping"),tax:optInt(o,"tax")??0,total:int(o,"total"),expiresAt:str2(o,"expires_at"),whenFilledDiscountCents:optInt(o,"when_filled_discount_cents"),dueTodayCents:optInt(o,"due_today_cents"),dueWhenFilledCents:optInt(o,"due_when_filled_cents"),shipsOn:optDate(o,"ships_on"),arrivesOn:optDate(o,"arrives_on")}}function checkoutFromWire(raw){let o=obj(raw,"checkout");return{checkoutId:str2(o,"checkout_id"),state:optStr(o,"state")??"draft",orderIds:arr(o.order_ids,"order_ids").filter(id=>typeof id=="string"),createdAt:optStr(o,"created_at")??"",total:int(o,"total"),shipping:optInt(o,"shipping")??0,tax:optInt(o,"tax")??0}}function confirmationFromWire(raw){let o=obj(raw,"confirmation");return{checkoutId:str2(o,"checkout_id"),resale:arr(o.resale,"resale").map(r=>{let entry=obj(r,"resale"),outcome=str2(entry,"outcome");if(outcome!=="confirmed"&&outcome!=="action_required")throw new OmsWireError("resale.outcome");let payerAction=optStr(entry,"payer_action");if(outcome==="action_required"&&!payerAction)throw new OmsWireError("resale.payer_action");return{outcome:outcome,orderId:str2(entry,"order_id"),payerAction:outcome==="confirmed"?null:payerAction}})}}function orderSummaryFromWire(raw){let o=obj(raw,"order"),ref=o.reference&&typeof o.reference=="object"?o.reference:null;return{orderId:str2(o,"order_id"),referenceNumber:ref?optStr(ref,"number"):null,status:str2(o,"status"),total:int(o,"total"),placedAt:optStr(o,"placed_at"),itemCount:optInt(o,"item_count"),items:Array.isArray(o.items)?o.items.flatMap(orderItemFromWire):null,fulfiller:FULFILLERS.includes(optStr(o,"fulfiller")??"")?o.fulfiller:null,arrivesBy:optDate(o,"arrives_by"),steps:Array.isArray(o.steps)?o.steps.flatMap(orderListStepFromWire):null,currentStep:optStr(o,"current_step"),statusLineKey:optStr(o,"status_line_key"),prescriberName:optStr(o,"prescriber_name")}}function orderItemFromWire(raw){if(raw===null||typeof raw!="object"||Array.isArray(raw))return[];let o=raw,offerId=optStr(o,"offer_id"),title=optStr(o,"title"),quantity=optInt(o,"quantity");return offerId&&title&&quantity!==null?[{offerId:offerId,title:title,quantity:quantity,imageUrl:httpsUrl(o,"image_url")}]:[]}function orderStepFromWire(raw){if(raw===null||typeof raw!="object"||Array.isArray(raw))return[];let o=raw,key=optStr(o,"key");return key?[{key:key,done:o.done===true,at:optStr(o,"at")}]:[]}function optTrackingFromWire(raw){if(raw===null||typeof raw!="object"||Array.isArray(raw))return null;try{return trackingFromWire(raw)}catch{return null}}function orderPageFromWire(raw){let o=obj(raw,"orders");return{orders:arr(o.orders,"orders").map(orderSummaryFromWire),nextCursor:optStr(o,"next_cursor")}}function orderLineFromWire(raw){let o=obj(raw,"line"),qty=o.pack_quantity;return{lineId:str2(o,"line_id"),offerId:str2(o,"offer_id"),sku:optStr(o,"sku")??"",title:str2(o,"title"),requiresRx:bool(o,"requires_rx"),compounded:bool(o,"compounded"),packQuantity:typeof qty=="string"&&/^\d+(\.\d+)?$/.test(qty)?qty:null,packUnit:packUnit(o),quantity:int(o,"quantity"),unitPrice:int(o,"unit_price"),discount:optInt(o,"discount")??0,tax:optInt(o,"tax")??0,fulfillmentType:optStr(o,"fulfillment_type")??"physical",petId:petIdOf(o.pet),imageUrl:httpsUrl(o,"image_url")}}function trackingFromWire(raw){let o=obj(raw,"tracking");return{carrier:optStr(o,"carrier"),trackingNumber:optStr(o,"tracking_number"),status:str2(o,"status"),occurredAt:optStr(o,"occurred_at"),trackingUrl:httpsUrl(o,"tracking_url"),deliveryBy:optStr(o,"delivery_by")}}function shipmentFromWire(raw){let o=obj(raw,"shipment");return{shipmentId:str2(o,"shipment_id"),state:str2(o,"state"),lines:arr(o.lines,"shipment.lines").map(l=>{let line=obj(l,"shipment.line");return{lineId:str2(line,"line_id"),quantity:int(line,"quantity")}}),tracking:arr(o.tracking,"tracking").map(trackingFromWire)}}function orderFromWire(raw){let o=obj(raw,"order");return{summary:orderSummaryFromWire(o.summary),lines:arr(o.lines,"lines").map(orderLineFromWire),shipping:optInt(o,"shipping")??0,shippingTax:optInt(o,"shipping_tax")??0,shipments:arr(o.shipments,"shipments").map(shipmentFromWire),canCancel:bool(o,"can_cancel"),canReturn:bool(o,"can_return"),canPay:bool(o,"can_pay"),paymentStatus:optStr(o,"payment_status"),refunds:arr(o.refunds,"refunds").map(r=>{let refund=obj(r,"refund");return{refundId:str2(refund,"refund_id"),amount:int(refund,"amount"),state:str2(refund,"state")}}),returnIds:arr(o.return_ids,"return_ids").filter(id=>typeof id=="string"),subtotal:optInt(o,"subtotal"),discount:optInt(o,"discount"),tax:optInt(o,"tax"),arrivesBy:optStr(o,"arrives_by"),tracking:optTrackingFromWire(o.tracking),steps:Array.isArray(o.steps)?o.steps.flatMap(orderStepFromWire):null,paymentMethodId:optStr(o,"payment_method_id")}}function cancelOutcomeFromWire(raw){let o=obj(raw,"cancel");return{outcome:str2(o,"outcome"),refunded:optInt(o,"refunded"),reasonCode:optStr(o,"reason_code")}}function payOutcomeFromWire(raw){let o=obj(raw,"pay"),outcome=str2(o,"outcome");if(outcome!=="authorized"&&outcome!=="action_required")throw new OmsWireError("pay.outcome");let payerAction=optStr(o,"payer_action");if(outcome==="action_required"&&!payerAction)throw new OmsWireError("pay.payer_action");return{outcome:outcome,orderId:str2(o,"order_id"),payerAction:outcome==="authorized"?null:payerAction}}function returnFromWire(raw){let o=obj(raw,"return");return{returnId:str2(o,"return_id"),orderId:str2(o,"order_id"),lines:arr(o.lines,"return.lines").map(l=>{let line=obj(l,"return.line");return{lineId:str2(line,"line_id"),quantity:int(line,"quantity"),reasonCode:str2(line,"reason_code")}}),state:str2(o,"state"),rma:optStr(o,"rma"),labelUrl:httpsUrl(o,"label_url")}}function caseFromWire(raw){let o=obj(raw,"case");return{caseId:str2(o,"case_id"),orderId:str2(o,"order_id"),reasonCode:str2(o,"reason_code"),message:typeof o.message=="string"?o.message:"",openedAt:str2(o,"opened_at"),closedAt:optStr(o,"closed_at")}}function casesFromWire(raw){return arr(obj(raw,"cases").cases,"cases").map(caseFromWire)}function prescriptionsFromWire(raw){return arr(obj(raw,"prescriptions").prescriptions,"prescriptions").map(r=>{let o=obj(r,"prescription");return{rxId:str2(o,"rx_id"),petId:str2(o,"pet_id"),drug:optStr(o,"drug")??"",strength:optStr(o,"strength"),form:optStr(o,"form"),status:str2(o,"status"),offerId:optStr(o,"offer_id"),packCount:optInt(o,"pack_count"),fillsUsed:optInt(o,"fills_used"),fillsTotal:optInt(o,"fills_total"),expiresOn:optStr(o,"expires_on"),nextFillOn:optStr(o,"next_fill_on"),supply:supplyFromWire(o.supply),prescriberName:optStr(o,"prescriber_name"),refillsTotal:optInt(o,"refills_total"),refillsLeft:optInt(o,"refills_left")}})}function optPostalAddressFromWire(raw){if(raw===null||typeof raw!="object"||Array.isArray(raw))return null;let a=raw,line1=optStr(a,"line1"),city=optStr(a,"city"),postalCode=optStr(a,"postal_code"),country=optStr(a,"country");return!line1||!city||!postalCode||!country?null:{recipientName:optStr(a,"recipient_name"),line1:line1,line2:optStr(a,"line2"),city:city,region:optStr(a,"region")??"",postalCode:postalCode,country:country}}function optReceiptCardFromWire(raw){if(raw===null||typeof raw!="object"||Array.isArray(raw))return null;let o=raw,brand=optStr(o,"brand"),last4=optStr(o,"last4");return brand&&last4?{brand:brand,last4:last4}:null}function receiptFromWire(raw){let o=obj(raw,"receipt"),ref=o.reference&&typeof o.reference=="object"?o.reference:null;return{orderId:str2(o,"order_id"),referenceNumber:ref?optStr(ref,"number"):null,placedAt:str2(o,"placed_at"),lines:arr(o.lines,"receipt.lines").map(l=>{let line=obj(l,"receipt.line");return{title:str2(line,"title","receipt.line.title"),quantity:int(line,"quantity","receipt.line.quantity"),unitPrice:int(line,"unit_price","receipt.line.unit_price"),discount:int(line,"discount","receipt.line.discount"),tax:int(line,"tax","receipt.line.tax"),total:int(line,"total","receipt.line.total")}}),subtotal:int(o,"subtotal"),shipping:int(o,"shipping"),tax:int(o,"tax"),discounts:int(o,"discounts"),total:int(o,"total"),paidAt:optStr(o,"paid_at"),card:optReceiptCardFromWire(o.card),shipTo:optPostalAddressFromWire(o.ship_to)}}function addressEntryFromWire(raw){let o=obj(raw,"address");return{ref:str2(o,"ref"),label:optStr(o,"label")??"",isDefault:bool(o,"is_default"),isComplete:bool(o,"is_complete")}}function addressesFromWire(raw){return arr(obj(raw,"addresses").addresses,"addresses").map(addressEntryFromWire)}function addressDetailFromWire(raw){let o=obj(raw,"address"),a=obj(o.address,"address.address"),address={recipientName:optStr(a,"recipient_name"),line1:str2(a,"line1","address.line1"),line2:optStr(a,"line2"),city:str2(a,"city","address.city"),region:optStr(a,"region")??"",postalCode:str2(a,"postal_code","address.postal_code"),country:str2(a,"country","address.country")};return{...addressEntryFromWire(o),address:address}}function paymentMethodsFromWire(raw){return arr(obj(raw,"payment_methods").payment_methods,"payment_methods").map(r=>{let o=obj(r,"payment_method");return{paymentMethodId:str2(o,"payment_method_id"),brand:optStr(o,"brand")??"",last4:optStr(o,"last4")??"",wallet:optStr(o,"wallet")}})}function paymentSetupFromWire(raw){let o=obj(raw,"setup");return{setupId:str2(o,"setup_id"),payerAction:str2(o,"payer_action")}}function cardSetupLinkFromWire(raw){let o=obj(raw,"card_setup");return{url:str2(o,"url")}}function cardActionLinkFromWire(raw){let o=obj(raw,"card_action");return{url:str2(o,"url"),expiresAt:str2(o,"expires_at")}}function planFromWire(raw){let o=obj(raw,"plan");return{planId:str2(o,"plan_id"),lines:arr(o.lines,"plan.lines").map(l=>{let line=obj(l,"plan.line");return{offerId:str2(line,"offer_id"),quantity:int(line,"quantity"),petId:petIdOf(line.pet)}}),cadenceDays:int(o,"cadence_days"),destination:optStr(o,"destination"),paymentMethodId:optStr(o,"payment_method_id"),discountBps:optInt(o,"discount_bps")??0,nextRun:optStr(o,"next_run"),state:str2(o,"state"),stopReason:optStr(o,"stop_reason"),priceCentsPerCycle:optInt(o,"price_cents_per_cycle"),chargedWhenFilled:optBool(o,"charged_when_filled"),nextShipOn:optDate(o,"next_ship_on"),skippedCycleOn:optDate(o,"skipped_cycle_on"),prescriberName:optStr(o,"prescriber_name"),refillsLeft:optInt(o,"refills_left"),refillsTotal:optInt(o,"refills_total"),autoDiscountPct:optInt(o,"auto_discount_pct"),changeOptions:changeOptionsFromWire(o.change_options),skipWarning:skipWarningFromWire(o.skip_warning)}}function skipWarningFromWire(raw){if(raw===null||typeof raw!="object"||Array.isArray(raw))return null;let o=raw,key=optStr(o,"key");if(key!=="last_dose"&&key!=="bottle_gap")return null;let v=o.values!==null&&typeof o.values=="object"&&!Array.isArray(o.values)?o.values:{},unit=optStr(v,"unit_label")?.trim();return{key:key,values:{unitLabel:unit||null,doseOn:optDate(v,"dose_on"),noneFor:optDate(v,"none_for"),lastsTo:optDate(v,"lasts_to"),weeks:optInt(v,"weeks")}}}function changeOptionsFromWire(raw){if(!Array.isArray(raw))return null;let out=raw.flatMap(r=>{if(r===null||typeof r!="object"||Array.isArray(r))return[];let o=r,offerId=optStr(o,"offer_id"),title=optStr(o,"title"),quantity=optInt(o,"quantity"),price=optInt(o,"price_cents_per_cycle"),cadences=Array.isArray(o.cadence_days)?o.cadence_days.filter(d=>Number.isInteger(d)&&d>0):[];if(!offerId||!title||quantity===null||quantity<1||price===null||cadences.length===0)return[];let qty=o.pack_quantity;return[{offerId:offerId,title:title,size:optStr(o,"size"),packQuantity:typeof qty=="string"&&/^\d+(\.\d+)?$/.test(qty)?qty:null,packUnit:packUnit(o),unitLabel:optStr(o,"unit_label"),quantity:quantity,priceCentsPerCycle:price,cadenceDays:cadences,current:o.current===true}]});return out.length>0?out:null}function buyAgainFromWire(raw){return arr(obj(raw,"buy_again").items,"items").flatMap(r=>{if(r===null||typeof r!="object"||Array.isArray(r))return[];let o=r,offerId=optStr(o,"offer_id"),title=optStr(o,"title");return!offerId||!title?[]:[{offerId:offerId,title:title,imageUrl:httpsUrl(o,"image_url"),priceCents:optInt(o,"price_cents"),lastOrderedOn:optDate(o,"last_ordered_on"),isRx:optBool(o,"is_rx")??false,likelyOut:optBool(o,"likely_out")??false}]})}function planPageFromWire(raw){let o=obj(raw,"plans");return{plans:arr(o.plans,"plans").map(planFromWire),nextCursor:optStr(o,"next_cursor")}}function cartLineToWire(line){let wire={offer_id:line.offerId,quantity:line.quantity};return line.petId&&(wire.pet={namespace:"consumer",pet_id:line.petId}),line.rxId&&(wire.rx_id=line.rxId),line.plan&&(wire.plan=line.plan),wire}function addressInputToWire(input){let a=input.address;return{label:input.label,make_default:input.makeDefault===true,address:{recipient_name:a.recipientName,line1:a.line1,line2:a.line2,city:a.city,region:a.region,postal_code:a.postalCode,country:a.country}}}function cycleReviewFromWire(raw){let o=obj(raw,"cycle"),review=o.review&&typeof o.review=="object"&&!Array.isArray(o.review)?o.review:null,pick=key=>review&&review[key]!==void 0&&review[key]!==null?review[key]:o[key];return{planId:str2(o,"plan_id"),reviewId:optStr(o,"review_id")??(review?optStr(review,"review_id"):null),cycle:int(o,"cycle"),state:review?optStr(review,"state")??optStr(o,"state"):optStr(o,"state"),lines:arr(pick("lines"),"cycle.lines").map(l=>{let line=obj(l,"cycle.line");return{offerId:str2(line,"offer_id"),quantity:int(line,"quantity"),petId:petIdOf(line.pet)}}),shipsOn:review?optStr(review,"ships_on")??optStr(o,"ships_on"):optStr(o,"ships_on"),approveBy:review?optStr(review,"approve_by")??optStr(o,"approve_by"):optStr(o,"approve_by"),quoteLines:arr(o.quote&&typeof o.quote=="object"?o.quote.lines:null,"cycle.quote.lines").map(l=>{let line=obj(l,"cycle.quote.line");return{offerId:str2(line,"offer_id"),quantity:int(line,"quantity"),petId:petIdOf(line.pet),unitPrice:int(line,"unit_price"),discount:optInt(line,"discount")??0,tax:optInt(line,"tax")??0}})}}function cycleDraftFromWire(raw){let o=obj(raw,"cycle-draft");return{checkoutId:str2(o,"checkout_id"),shipping:optInt(o,"shipping")??0,tax:optInt(o,"tax")??0,total:int(o,"total"),expiresAt:optStr(o,"expires_at")}}var DEFAULT_PATH="/api/v1/oms",DEFAULT_TIMEOUT_MS=3e4,PAYMENT_METHOD_ID=/^[A-Za-z0-9_]+$/,REASON_CODE=/^[a-z][a-z0-9_]{0,63}$/;function checkBaseUrl(raw){let url=parseUrl(raw);if(url===null)throw new EverfurConfigError("invalid-argument","createOmsClient: baseUrl is not a URL");let local=url.hostname==="localhost"||url.hostname==="127.0.0.1"||url.hostname==="[::1]";if(url.protocol!=="https:"&&!(local&&url.protocol==="http:"))throw new EverfurConfigError("invalid-argument","createOmsClient: baseUrl must be https");if(url.username||url.password||url.search||url.hash)throw new EverfurConfigError("invalid-argument","createOmsClient: baseUrl must be a bare origin or path");return url.origin+url.pathname.replace(/\/+$/,"")}function seg(id){return encodeURIComponent(id)}function isValidId(id){return typeof id=="string"&&id.length>0&&id.length<=256}function createOmsClient(config){let base=checkBaseUrl(config.baseUrl)+(config.path??DEFAULT_PATH).replace(/\/+$/,""),fetchImpl=config.fetch??(typeof globalThis.fetch=="function"?globalThis.fetch.bind(globalThis):void 0);if(!fetchImpl)throw new EverfurConfigError("missing-peer-dependency","createOmsClient: no fetch available; pass config.fetch");if(!config.auth||config.auth.kind!=="everfur_consumer"||typeof config.auth.getToken!="function")throw new EverfurConfigError("invalid-argument",'createOmsClient: auth must be { kind: "everfur_consumer", getToken }');let getToken=config.auth.getToken,channel=config.channel??"web",timeoutMs=config.timeoutMs??DEFAULT_TIMEOUT_MS;async function token(){try{let t=await getToken();return typeof t=="string"&&t.length>0?t:null}catch{return null}}async function send(call){let bearer=await token();if(!bearer)return omsErr({kind:"signedOut"});let url=base+call.path;if(call.query){let params=new URLSearchParams;for(let[k,v]of Object.entries(call.query))v!==void 0&&params.set(k,String(v));let qs=params.toString();qs&&(url+=`?${qs}`)}let headers={accept:"application/json",authorization:`Bearer ${bearer}`},init={method:call.method,headers:headers};call.body!==void 0&&(headers["content-type"]="application/json",init.body=JSON.stringify(call.body));let controller=typeof AbortController=="function"?new AbortController:null;controller&&(init.signal=controller.signal);let timedOut=false,timer=setTimeout(()=>{timedOut=true,controller?.abort()},timeoutMs),res;try{res=await fetchImpl(url,init)}catch{return clearTimeout(timer),omsErr({kind:timedOut?"timeout":"network"})}try{let requestId=res.headers.get("x-request-id")??void 0,rid=requestId?{requestId:requestId}:{};if(res.status<200||res.status>=300){let body=res.status===402||res.status===409||res.status===422?await res.json().catch(()=>null):null;return omsErr(omsErrorFromStatus(res.status,body,{...rid,retryAfter:res.headers.get("retry-after")}))}if(call.read===null||res.status===204)return omsOk(void 0);let raw;try{raw=await res.json()}catch{return omsErr({kind:"badResponse",...rid})}try{return omsOk(call.read(raw))}catch{return omsErr({kind:"badResponse",...rid})}}catch{return omsErr({kind:timedOut?"timeout":"network"})}finally{clearTimeout(timer)}}let invalid=()=>Promise.resolve(omsErr({kind:"invalidRequest"}));function withId(id,run){return isValidId(id)?run(seg(id)):invalid()}let lines=ls=>ls.map(cartLineToWire);return{shopConfig:()=>send({method:"GET",path:"/shop-config",read:shopConfigFromWire}),offers:(q={})=>send({method:"GET",path:"/catalog/offers",query:{text:q.text,requires_rx:q.requiresRx,cursor:q.cursor,limit:q.limit},read:offerPageFromWire}),offer:offerId=>withId(offerId,id=>send({method:"GET",path:`/catalog/offers/${id}`,read:offerFromWire})),prescriptions:()=>send({method:"GET",path:"/prescriptions",read:prescriptionsFromWire}),addresses:()=>send({method:"GET",path:"/addresses",read:addressesFromWire}),address:ref=>withId(ref,id=>send({method:"GET",path:`/addresses/${id}`,read:addressDetailFromWire})),addAddress:input=>send({method:"POST",path:"/addresses",body:addressInputToWire(input),read:addressEntryFromWire}),updateAddress:(ref,input)=>withId(ref,id=>send({method:"PUT",path:`/addresses/${id}`,body:addressInputToWire(input),read:addressEntryFromWire})),removeAddress:ref=>withId(ref,id=>send({method:"DELETE",path:`/addresses/${id}`,read:null})),makeDefaultAddress:ref=>withId(ref,id=>send({method:"POST",path:`/addresses/${id}/default`,read:addressEntryFromWire})),paymentMethods:()=>send({method:"GET",path:"/payment-methods",read:paymentMethodsFromWire}),setupPaymentMethod:()=>send({method:"POST",path:"/payment-methods/setup",read:paymentSetupFromWire}),startCardSetupSession:r=>send({method:"POST",path:"/payment-methods/setup-session",body:{idempotency_key:r.idempotencyKey,return_url:r.returnUrl},read:cardSetupLinkFromWire}),removePaymentMethod:pm=>PAYMENT_METHOD_ID.test(pm)?send({method:"DELETE",path:`/payment-methods/${pm}`,read:null}):invalid(),quote:r=>send({method:"POST",path:"/cart/quote",body:{lines:lines(r.lines),ship_to:r.shipTo,promo_code:r.promoCode??null},read:quoteFromWire}),createCheckout:r=>send({method:"POST",path:"/checkouts",body:{idempotency_key:r.idempotencyKey,channel:channel,lines:lines(r.lines),ship_to:r.shipTo,receipt_email:r.receiptEmail??null,promo_code:r.promoCode??null},read:checkoutFromWire}),confirmCheckout:(checkoutId,r)=>PAYMENT_METHOD_ID.test(r.paymentMethodId)&&Number.isInteger(r.expectedTotal)?withId(checkoutId,id=>send({method:"POST",path:`/checkouts/${id}/confirm`,body:{idempotency_key:r.idempotencyKey,expected_total:r.expectedTotal,payment_method_id:r.paymentMethodId},read:confirmationFromWire})):invalid(),orders:(q={})=>q.since!==void 0&&!/^\d{4}-\d{2}-\d{2}$/.test(q.since)?invalid():send({method:"GET",path:"/orders",query:{cursor:q.cursor,limit:q.limit,reference:q.reference,since:q.since},read:orderPageFromWire}),order:orderId=>withId(orderId,id=>send({method:"GET",path:`/orders/${id}`,read:orderFromWire})),cancelOrder:(orderId,r)=>REASON_CODE.test(r.reasonCode)?withId(orderId,id=>send({method:"POST",path:`/orders/${id}/cancel`,body:{idempotency_key:r.idempotencyKey,reason_code:r.reasonCode},read:cancelOutcomeFromWire})):invalid(),payOrder:(orderId,r)=>{if(r.paymentMethodId!==void 0&&!PAYMENT_METHOD_ID.test(r.paymentMethodId))return invalid();let body={idempotency_key:r.idempotencyKey};return r.paymentMethodId&&(body.payment_method_id=r.paymentMethodId),withId(orderId,id=>send({method:"POST",path:`/orders/${id}/pay`,body:body,read:payOutcomeFromWire}))},cardActionLink:(orderId,r)=>withId(orderId,id=>send({method:"POST",path:`/orders/${id}/card-action-link`,body:{return_url:r.returnUrl},read:cardActionLinkFromWire})),receipt:orderId=>withId(orderId,id=>send({method:"GET",path:`/orders/${id}/receipt`,read:receiptFromWire})),requestReturn:(orderId,r)=>r.lines.every(l=>REASON_CODE.test(l.reasonCode))?withId(orderId,id=>send({method:"POST",path:`/orders/${id}/returns`,body:{idempotency_key:r.idempotencyKey,lines:r.lines.map(l=>({line_id:l.lineId,quantity:l.quantity,reason_code:l.reasonCode}))},read:returnFromWire})):invalid(),getReturn:returnId=>withId(returnId,id=>send({method:"GET",path:`/returns/${id}`,read:returnFromWire})),cancelReturn:returnId=>withId(returnId,id=>send({method:"POST",path:`/returns/${id}/cancel`,read:returnFromWire})),openCase:(orderId,r)=>REASON_CODE.test(r.reasonCode)&&r.message.length<=4e3?withId(orderId,id=>send({method:"POST",path:`/orders/${id}/cases`,body:{idempotency_key:r.idempotencyKey,reason_code:r.reasonCode,message:r.message},read:caseFromWire})):invalid(),orderCases:orderId=>withId(orderId,id=>send({method:"GET",path:`/orders/${id}/cases`,read:casesFromWire})),plans:(q={})=>send({method:"GET",path:"/subscriptions",query:{cursor:q.cursor,limit:q.limit},read:planPageFromWire}),buyAgain:()=>send({method:"GET",path:"/buy-again",read:buyAgainFromWire}),createPlan:input=>PAYMENT_METHOD_ID.test(input.paymentMethodId)?send({method:"POST",path:"/subscriptions",body:{idempotency_key:input.idempotencyKey,cadence_days:input.cadenceDays,destination:input.destination,payment_method_id:input.paymentMethodId,consent_terms_version:input.consentTermsVersion,lines:lines(input.lines)},read:planFromWire}):invalid(),updatePlan:(planId,patch)=>{if(patch.paymentMethodId!==void 0&&!PAYMENT_METHOD_ID.test(patch.paymentMethodId))return invalid();let body={idempotency_key:patch.idempotencyKey};if(patch.lines&&(body.lines=lines(patch.lines)),patch.cadenceDays!==void 0&&(body.cadence_days=patch.cadenceDays),patch.offerId!==void 0){if(!isValidId(patch.offerId)||patch.cadenceDays===void 0||patch.lines)return invalid();body.offer_id=patch.offerId}return patch.destination!==void 0&&(body.destination=patch.destination),patch.paymentMethodId!==void 0&&(body.payment_method_id=patch.paymentMethodId),withId(planId,id=>send({method:"PATCH",path:`/subscriptions/${id}`,body:body,read:planFromWire}))},planAction:(planId,r)=>withId(planId,id=>send({method:"POST",path:`/subscriptions/${id}/actions`,body:{idempotency_key:r.idempotencyKey,operation:r.operation},read:planFromWire})),cancelPlan:planId=>withId(planId,id=>send({method:"POST",path:`/subscriptions/${id}/cancel`,read:planFromWire})),cycleReview:planId=>withId(planId,id=>send({method:"GET",path:`/subscriptions/${id}/cycle`,read:cycleReviewFromWire})),editCycle:(planId,cycle,r)=>Number.isInteger(cycle)&&cycle>0?withId(planId,id=>send({method:"PUT",path:`/subscriptions/${id}/cycles/${cycle}/lines`,body:{idempotency_key:r.idempotencyKey,lines:lines(r.lines)},read:cycleReviewFromWire})):invalid(),draftCycle:(planId,cycle)=>Number.isInteger(cycle)&&cycle>0?withId(planId,id=>send({method:"POST",path:`/subscriptions/${id}/cycles/${cycle}/draft`,read:cycleDraftFromWire})):invalid(),approveCycle:(planId,cycle,r)=>Number.isInteger(cycle)&&cycle>0&&Number.isInteger(r.expectedTotal)?withId(planId,id=>send({method:"POST",path:`/subscriptions/${id}/cycles/${cycle}/approve`,body:{idempotency_key:r.idempotencyKey,checkout_id:r.checkoutId,expected_total:r.expectedTotal},read:confirmationFromWire})):invalid(),skipCycle:(planId,cycle,r)=>Number.isInteger(cycle)&&cycle>0?withId(planId,id=>send({method:"POST",path:`/subscriptions/${id}/cycles/${cycle}/skip`,body:{idempotency_key:r.idempotencyKey},read:planFromWire})):invalid()}}exports.EverfurShop=EverfurShop;exports.SHOP_COPY=SHOP_COPY;exports.SHOP_COPY_PLACEHOLDERS=SHOP_COPY_PLACEHOLDERS;exports.SHOP_ORDERS_V2_COPY=SHOP_ORDERS_V2_COPY;exports.SHOP_V3_COPY=SHOP_V3_COPY;exports.SHOP_V3_COPY_PLACEHOLDERS=SHOP_V3_COPY_PLACEHOLDERS;exports.ShopSwitchCard=ShopSwitchCard;exports.UNAVAILABLE_PACKAGE_SOURCE=UNAVAILABLE_PACKAGE_SOURCE;exports.createInAppBrowserCard=createInAppBrowserCard;exports.createInAppBrowserCardSetup=createInAppBrowserCardSetup;exports.createInAppBrowserPayments=createInAppBrowserPayments;exports.createOmsClient=createOmsClient;exports.createOmsPackageSource=createOmsPackageSource;exports.isOmsRefusal=isOmsRefusal;exports.isOmsRetryable=isOmsRetryable;exports.isOmsUnavailable=isOmsUnavailable;exports.newIdempotencyKey=newIdempotencyKey;exports.shopBackRoute=shopBackRoute;exports.shopCopy=shopCopy;exports.shopOrdersV2Copy=shopOrdersV2Copy;exports.shopV3Copy=shopV3Copy;
521
+ return jsxRuntime.jsx(LivePlaced,{orderIds:route.orderIds},route.orderIds.join(","))}}function parseUrl(raw,base){let Url=globalThis.URL;if(typeof Url=="function"){let url;try{url=base===void 0?new Url(raw):new Url(raw,base)}catch{return null}try{if(url.protocol)return url}catch{}}return parseByPattern(raw)}var WHOLE_URL=/^([a-z][a-z0-9+.-]*):\/\/(?:([^:@/?#]*)(?::([^@/?#]*))?@)?(\[[0-9a-f:.]+\]|[\w.~-]+)(?::(\d*))?(\/[^?#]*)?(\?[^#]*)?(#.*)?$/i,REWRITTEN_BY_STANDARD_PARSER=/[\s\u0000-\u001f\u007f\\]/,DEFAULT_PORTS={"http:":"80","https:":"443"};function parseByPattern(raw,base){let input=raw.trim();let match=REWRITTEN_BY_STANDARD_PARSER.test(input)?null:WHOLE_URL.exec(input);if(match===null)return null;let[,scheme="",username="",password="",host="",portText="",path="",query="",fragment=""]=match,protocol=`${scheme.toLowerCase()}:`,portNumber=Number(portText);if(portNumber>65535)return null;let port=portText===""||String(portNumber)===DEFAULT_PORTS[protocol]?"":String(portNumber),special=DEFAULT_PORTS[protocol]!==void 0,hostPort=host.toLowerCase()+(port&&`:${port}`),pathname=path||(special?"/":""),credentials=username||password?`${username}${password&&`:${password}`}@`:"";return{href:`${protocol}//${credentials}${hostPort}${pathname}${query}${fragment}`,protocol:protocol,username:username,password:password,hostname:host.toLowerCase(),port:port,origin:special?`${protocol}//${hostPort}`:"null",pathname:pathname,search:query==="?"?"":query,hash:fragment==="#"?"":fragment}}var SECRET_IN_URL=/(client_secret|_secret_|[?&#](sk|rk)_(live|test)_)/i,FAILED={ok:false,message:null},CLOSED={ok:false,message:null,closed:true};function safePageUrl(raw){if(!raw)return null;let u=parseUrl(raw);return u===null||u.protocol!=="https:"||u.username||u.password||SECRET_IN_URL.test(raw)?null:u.href}function returnedParam(result,returnUrl,key){if(result.type!=="success"||typeof result.url!="string"||!result.url.startsWith(returnUrl))return;let queryAt=result.url.indexOf("?");if(queryAt===-1)return null;let query=result.url.slice(queryAt+1).split("#")[0]??"";for(let pair of query.split("&")){let[k2,v=""]=pair.split("=");if(k2===key)try{return decodeURIComponent(v)}catch{return null}}return null}async function runInBrowser(openAuthSession,url,returnUrl,read){let result;try{result=await openAuthSession(url,returnUrl)}catch{return FAILED}return result.type!=="success"?CLOSED:read(result)}function createInAppBrowserCardSetup(options){let{openAuthSession:openAuthSession,pageUrl:pageUrl,client:client,returnUrl:returnUrl}=options,makePage=async()=>{if(pageUrl)return pageUrl();if(!client)return null;let res=await client.startCardSetupSession({idempotencyKey:newIdempotencyKey(),returnUrl:returnUrl});return res.ok?res.value.url:null};return async()=>{let url;try{url=safePageUrl(await makePage())}catch{url=null}return url?runInBrowser(openAuthSession,url,returnUrl,result=>{let outcome=returnedParam(result,returnUrl,"oms_card");return outcome===void 0?FAILED:outcome==="canceled"?CLOSED:outcome===null||outcome==="done"?{ok:true}:FAILED}):FAILED}}function createInAppBrowserPayments(options){let{openAuthSession:openAuthSession,client:client,returnUrl:returnUrl}=options;return{confirmCardSetup:()=>Promise.resolve(FAILED),async handleNextAction(_clientSecret,context){if(!context?.orderId)return FAILED;let url;try{let res=await client.cardActionLink(context.orderId,{returnUrl:returnUrl});url=res.ok?safePageUrl(res.value.url):null}catch{url=null}return url?runInBrowser(openAuthSession,url,returnUrl,result=>{let outcome=returnedParam(result,returnUrl,"oms_card_action");return outcome==="succeeded"?{ok:true}:outcome==="canceled"?CLOSED:FAILED}):FAILED}}}function createInAppBrowserCard(options){return{cardHandoff:createInAppBrowserCardSetup({openAuthSession:options.openAuthSession,client:options.client,returnUrl:options.returnUrl}),payments:createInAppBrowserPayments(options)}}var OmsWireError=class _OmsWireError extends Error{constructor(field){super(`OMS answer could not be read: ${field}`);this.field=field;this.name="OmsWireError",Object.setPrototypeOf(this,_OmsWireError.prototype)}};function obj(value,field){if(value===null||typeof value!="object"||Array.isArray(value))throw new OmsWireError(field);return value}function arr(value,field){if(value==null)return[];if(!Array.isArray(value))throw new OmsWireError(field);return value}function str2(o,key,field=key){let v=o[key];if(typeof v!="string"||v.length===0)throw new OmsWireError(field);return v}function optStr(o,key){let v=o[key];return typeof v=="string"&&v.length>0?v:null}function int(o,key,field=key){let v=o[key];if(typeof v!="number"||!Number.isFinite(v))throw new OmsWireError(field);return Math.trunc(v)}function optInt(o,key){let v=o[key];return typeof v=="number"&&Number.isFinite(v)?Math.trunc(v):null}function bool(o,key){return o[key]===true}function petIdOf(value){if(!value||typeof value!="object")return null;let id=value.pet_id;return typeof id=="string"&&id.length>0?id:null}var PACK_UNITS=["each","gram","milliliter"],SPEEDS=["ground","two_day","next_day"];function packUnit(o){let v=o.pack_unit;return typeof v=="string"&&PACK_UNITS.includes(v)?v:null}function speed(v){return typeof v=="string"&&SPEEDS.includes(v)?v:null}function httpsUrl(o,key){let v=optStr(o,key);return v&&parseUrl(v)?.protocol==="https:"?v:null}function optNum(o,key){let v=o[key];return typeof v=="number"&&Number.isFinite(v)?v:null}function optDate(o,key){let v=optStr(o,key);return v&&/^\d{4}-\d{2}-\d{2}$/.test(v)?v:null}function optBool(o,key){let v=o[key];return typeof v=="boolean"?v:null}var FULFILLERS=["pharmacy","everfur_box"];function supplyFromWire(raw){if(raw===null||typeof raw!="object"||Array.isArray(raw))return null;let o=raw,unitsLeft=optInt(o,"units_left"),unitLabel=optStr(o,"unit_label"),dailyUnits=optNum(o,"daily_units"),runsOutOn=optDate(o,"runs_out_on");return unitsLeft===null||unitsLeft<0||!unitLabel||dailyUnits===null||dailyUnits<=0||!runsOutOn?null:{unitsLeft:unitsLeft,unitLabel:unitLabel,dailyUnits:dailyUnits,runsOutOn:runsOutOn,refillArrivesOn:optDate(o,"refill_arrives_on")}}function orderListStepFromWire(raw){if(raw===null||typeof raw!="object"||Array.isArray(raw))return[];let o=raw,key=optStr(o,"key");return key?[{key:key,doneAt:optStr(o,"done_at")}]:[]}function shopConfigFromWire(raw){let o=obj(raw,"shop-config"),delivery=o.delivery&&typeof o.delivery=="object"?o.delivery:null,key=optStr(o,"stripe_publishable_key");return{recurringTermsVersion:optStr(o,"recurring_terms_version"),recurringTermsUrl:httpsUrl(o,"recurring_terms_url"),stripePublishableKey:key&&/^pk_(test|live)_[A-Za-z0-9]+$/.test(key)?key:null,delivery:delivery?{firstFill:speed(delivery.first_fill),refill:speed(delivery.refill)}:null,rxContactMissing:Array.isArray(o.rx_contact_missing)?o.rx_contact_missing.filter(p=>typeof p=="string"):null,freeShippingThresholdCents:optInt(o,"free_shipping_threshold_cents"),firstRxDiscountCents:optInt(o,"first_rx_discount_cents")}}function offerFromWire(raw){let o=obj(raw,"offer"),qty=o.pack_quantity;return{offerId:str2(o,"offer_id"),sku:optStr(o,"sku")??"",title:str2(o,"title"),fulfillmentType:optStr(o,"fulfillment_type")??"physical",requiresRx:bool(o,"requires_rx"),compounded:bool(o,"compounded"),packQuantity:typeof qty=="string"&&/^\d+(\.\d+)?$/.test(qty)?qty:null,packUnit:packUnit(o),price:optInt(o,"price"),imageUrl:httpsUrl(o,"image_url")}}function offerPageFromWire(raw){let o=obj(raw,"offers");return{offers:arr(o.offers,"offers").map(offerFromWire),nextCursor:optStr(o,"next_cursor")}}function quoteFromWire(raw){let o=obj(raw,"quote");return{lines:arr(o.lines,"lines").map(l=>{let line=obj(l,"line");return{offerId:str2(line,"offer_id"),quantity:int(line,"quantity"),petId:petIdOf(line.pet),unitPrice:int(line,"unit_price"),discount:optInt(line,"discount")??0,tax:optInt(line,"tax")??0,whenFilledDiscountCents:optInt(line,"when_filled_discount_cents"),isRx:optBool(line,"is_rx"),chargedWhenFilled:optBool(line,"charged_when_filled")}}),shipping:int(o,"shipping"),tax:optInt(o,"tax")??0,total:int(o,"total"),expiresAt:str2(o,"expires_at"),whenFilledDiscountCents:optInt(o,"when_filled_discount_cents"),dueTodayCents:optInt(o,"due_today_cents"),dueWhenFilledCents:optInt(o,"due_when_filled_cents"),shipsOn:optDate(o,"ships_on"),arrivesOn:optDate(o,"arrives_on")}}function checkoutFromWire(raw){let o=obj(raw,"checkout");return{checkoutId:str2(o,"checkout_id"),state:optStr(o,"state")??"draft",orderIds:arr(o.order_ids,"order_ids").filter(id=>typeof id=="string"),createdAt:optStr(o,"created_at")??"",total:int(o,"total"),shipping:optInt(o,"shipping")??0,tax:optInt(o,"tax")??0}}function confirmationFromWire(raw){let o=obj(raw,"confirmation");return{checkoutId:str2(o,"checkout_id"),resale:arr(o.resale,"resale").map(r=>{let entry=obj(r,"resale"),outcome=str2(entry,"outcome");if(outcome!=="confirmed"&&outcome!=="action_required")throw new OmsWireError("resale.outcome");let payerAction=optStr(entry,"payer_action");if(outcome==="action_required"&&!payerAction)throw new OmsWireError("resale.payer_action");return{outcome:outcome,orderId:str2(entry,"order_id"),payerAction:outcome==="confirmed"?null:payerAction}})}}function orderSummaryFromWire(raw){let o=obj(raw,"order"),ref=o.reference&&typeof o.reference=="object"?o.reference:null;return{orderId:str2(o,"order_id"),referenceNumber:ref?optStr(ref,"number"):null,status:str2(o,"status"),total:int(o,"total"),placedAt:optStr(o,"placed_at"),itemCount:optInt(o,"item_count"),items:Array.isArray(o.items)?o.items.flatMap(orderItemFromWire):null,fulfiller:FULFILLERS.includes(optStr(o,"fulfiller")??"")?o.fulfiller:null,arrivesBy:optDate(o,"arrives_by"),steps:Array.isArray(o.steps)?o.steps.flatMap(orderListStepFromWire):null,currentStep:optStr(o,"current_step"),statusLineKey:optStr(o,"status_line_key"),prescriberName:optStr(o,"prescriber_name")}}function orderItemFromWire(raw){if(raw===null||typeof raw!="object"||Array.isArray(raw))return[];let o=raw,offerId=optStr(o,"offer_id"),title=optStr(o,"title"),quantity=optInt(o,"quantity");return offerId&&title&&quantity!==null?[{offerId:offerId,title:title,quantity:quantity,imageUrl:httpsUrl(o,"image_url")}]:[]}function orderStepFromWire(raw){if(raw===null||typeof raw!="object"||Array.isArray(raw))return[];let o=raw,key=optStr(o,"key");return key?[{key:key,done:o.done===true,at:optStr(o,"at")}]:[]}function optTrackingFromWire(raw){if(raw===null||typeof raw!="object"||Array.isArray(raw))return null;try{return trackingFromWire(raw)}catch{return null}}function orderPageFromWire(raw){let o=obj(raw,"orders");return{orders:arr(o.orders,"orders").map(orderSummaryFromWire),nextCursor:optStr(o,"next_cursor")}}function orderLineFromWire(raw){let o=obj(raw,"line"),qty=o.pack_quantity;return{lineId:str2(o,"line_id"),offerId:str2(o,"offer_id"),sku:optStr(o,"sku")??"",title:str2(o,"title"),requiresRx:bool(o,"requires_rx"),compounded:bool(o,"compounded"),packQuantity:typeof qty=="string"&&/^\d+(\.\d+)?$/.test(qty)?qty:null,packUnit:packUnit(o),quantity:int(o,"quantity"),unitPrice:int(o,"unit_price"),discount:optInt(o,"discount")??0,tax:optInt(o,"tax")??0,fulfillmentType:optStr(o,"fulfillment_type")??"physical",petId:petIdOf(o.pet),imageUrl:httpsUrl(o,"image_url")}}function trackingFromWire(raw){let o=obj(raw,"tracking");return{carrier:optStr(o,"carrier"),trackingNumber:optStr(o,"tracking_number"),status:str2(o,"status"),occurredAt:optStr(o,"occurred_at"),trackingUrl:httpsUrl(o,"tracking_url"),deliveryBy:optStr(o,"delivery_by")}}function shipmentFromWire(raw){let o=obj(raw,"shipment");return{shipmentId:str2(o,"shipment_id"),state:str2(o,"state"),lines:arr(o.lines,"shipment.lines").map(l=>{let line=obj(l,"shipment.line");return{lineId:str2(line,"line_id"),quantity:int(line,"quantity")}}),tracking:arr(o.tracking,"tracking").map(trackingFromWire)}}function orderFromWire(raw){let o=obj(raw,"order");return{summary:orderSummaryFromWire(o.summary),lines:arr(o.lines,"lines").map(orderLineFromWire),shipping:optInt(o,"shipping")??0,shippingTax:optInt(o,"shipping_tax")??0,shipments:arr(o.shipments,"shipments").map(shipmentFromWire),canCancel:bool(o,"can_cancel"),canReturn:bool(o,"can_return"),canPay:bool(o,"can_pay"),paymentStatus:optStr(o,"payment_status"),refunds:arr(o.refunds,"refunds").map(r=>{let refund=obj(r,"refund");return{refundId:str2(refund,"refund_id"),amount:int(refund,"amount"),state:str2(refund,"state")}}),returnIds:arr(o.return_ids,"return_ids").filter(id=>typeof id=="string"),subtotal:optInt(o,"subtotal"),discount:optInt(o,"discount"),tax:optInt(o,"tax"),arrivesBy:optStr(o,"arrives_by"),tracking:optTrackingFromWire(o.tracking),steps:Array.isArray(o.steps)?o.steps.flatMap(orderStepFromWire):null,paymentMethodId:optStr(o,"payment_method_id")}}function cancelOutcomeFromWire(raw){let o=obj(raw,"cancel");return{outcome:str2(o,"outcome"),refunded:optInt(o,"refunded"),reasonCode:optStr(o,"reason_code")}}function payOutcomeFromWire(raw){let o=obj(raw,"pay"),outcome=str2(o,"outcome");if(outcome!=="authorized"&&outcome!=="action_required")throw new OmsWireError("pay.outcome");let payerAction=optStr(o,"payer_action");if(outcome==="action_required"&&!payerAction)throw new OmsWireError("pay.payer_action");return{outcome:outcome,orderId:str2(o,"order_id"),payerAction:outcome==="authorized"?null:payerAction}}function returnFromWire(raw){let o=obj(raw,"return");return{returnId:str2(o,"return_id"),orderId:str2(o,"order_id"),lines:arr(o.lines,"return.lines").map(l=>{let line=obj(l,"return.line");return{lineId:str2(line,"line_id"),quantity:int(line,"quantity"),reasonCode:str2(line,"reason_code")}}),state:str2(o,"state"),rma:optStr(o,"rma"),labelUrl:httpsUrl(o,"label_url")}}function caseFromWire(raw){let o=obj(raw,"case");return{caseId:str2(o,"case_id"),orderId:str2(o,"order_id"),reasonCode:str2(o,"reason_code"),message:typeof o.message=="string"?o.message:"",openedAt:str2(o,"opened_at"),closedAt:optStr(o,"closed_at")}}function casesFromWire(raw){return arr(obj(raw,"cases").cases,"cases").map(caseFromWire)}function prescriptionsFromWire(raw){return arr(obj(raw,"prescriptions").prescriptions,"prescriptions").map(r=>{let o=obj(r,"prescription");return{rxId:str2(o,"rx_id"),petId:str2(o,"pet_id"),drug:optStr(o,"drug")??"",strength:optStr(o,"strength"),form:optStr(o,"form"),status:str2(o,"status"),offerId:optStr(o,"offer_id"),packCount:optInt(o,"pack_count"),fillsUsed:optInt(o,"fills_used"),fillsTotal:optInt(o,"fills_total"),expiresOn:optStr(o,"expires_on"),nextFillOn:optStr(o,"next_fill_on"),supply:supplyFromWire(o.supply),prescriberName:optStr(o,"prescriber_name"),refillsTotal:optInt(o,"refills_total"),refillsLeft:optInt(o,"refills_left")}})}function optPostalAddressFromWire(raw){if(raw===null||typeof raw!="object"||Array.isArray(raw))return null;let a=raw,line1=optStr(a,"line1"),city=optStr(a,"city"),postalCode=optStr(a,"postal_code"),country=optStr(a,"country");return!line1||!city||!postalCode||!country?null:{recipientName:optStr(a,"recipient_name"),line1:line1,line2:optStr(a,"line2"),city:city,region:optStr(a,"region")??"",postalCode:postalCode,country:country}}function optReceiptCardFromWire(raw){if(raw===null||typeof raw!="object"||Array.isArray(raw))return null;let o=raw,brand=optStr(o,"brand"),last4=optStr(o,"last4");return brand&&last4?{brand:brand,last4:last4}:null}function receiptFromWire(raw){let o=obj(raw,"receipt"),ref=o.reference&&typeof o.reference=="object"?o.reference:null;return{orderId:str2(o,"order_id"),referenceNumber:ref?optStr(ref,"number"):null,placedAt:str2(o,"placed_at"),lines:arr(o.lines,"receipt.lines").map(l=>{let line=obj(l,"receipt.line");return{title:str2(line,"title","receipt.line.title"),quantity:int(line,"quantity","receipt.line.quantity"),unitPrice:int(line,"unit_price","receipt.line.unit_price"),discount:int(line,"discount","receipt.line.discount"),tax:int(line,"tax","receipt.line.tax"),total:int(line,"total","receipt.line.total")}}),subtotal:int(o,"subtotal"),shipping:int(o,"shipping"),tax:int(o,"tax"),discounts:int(o,"discounts"),total:int(o,"total"),paidAt:optStr(o,"paid_at"),card:optReceiptCardFromWire(o.card),shipTo:optPostalAddressFromWire(o.ship_to)}}function addressEntryFromWire(raw){let o=obj(raw,"address");return{ref:str2(o,"ref"),label:optStr(o,"label")??"",isDefault:bool(o,"is_default"),isComplete:bool(o,"is_complete")}}function addressesFromWire(raw){return arr(obj(raw,"addresses").addresses,"addresses").map(addressEntryFromWire)}function addressDetailFromWire(raw){let o=obj(raw,"address"),a=obj(o.address,"address.address"),address={recipientName:optStr(a,"recipient_name"),line1:str2(a,"line1","address.line1"),line2:optStr(a,"line2"),city:str2(a,"city","address.city"),region:optStr(a,"region")??"",postalCode:str2(a,"postal_code","address.postal_code"),country:str2(a,"country","address.country")};return{...addressEntryFromWire(o),address:address}}function paymentMethodsFromWire(raw){return arr(obj(raw,"payment_methods").payment_methods,"payment_methods").map(r=>{let o=obj(r,"payment_method");return{paymentMethodId:str2(o,"payment_method_id"),brand:optStr(o,"brand")??"",last4:optStr(o,"last4")??"",wallet:optStr(o,"wallet")}})}function paymentSetupFromWire(raw){let o=obj(raw,"setup");return{setupId:str2(o,"setup_id"),payerAction:str2(o,"payer_action")}}function cardSetupLinkFromWire(raw){let o=obj(raw,"card_setup");return{url:str2(o,"url")}}function cardActionLinkFromWire(raw){let o=obj(raw,"card_action");return{url:str2(o,"url"),expiresAt:str2(o,"expires_at")}}function planFromWire(raw){let o=obj(raw,"plan");return{planId:str2(o,"plan_id"),lines:arr(o.lines,"plan.lines").map(l=>{let line=obj(l,"plan.line");return{offerId:str2(line,"offer_id"),quantity:int(line,"quantity"),petId:petIdOf(line.pet)}}),cadenceDays:int(o,"cadence_days"),destination:optStr(o,"destination"),paymentMethodId:optStr(o,"payment_method_id"),discountBps:optInt(o,"discount_bps")??0,nextRun:optStr(o,"next_run"),state:str2(o,"state"),stopReason:optStr(o,"stop_reason"),priceCentsPerCycle:optInt(o,"price_cents_per_cycle"),chargedWhenFilled:optBool(o,"charged_when_filled"),nextShipOn:optDate(o,"next_ship_on"),skippedCycleOn:optDate(o,"skipped_cycle_on"),prescriberName:optStr(o,"prescriber_name"),refillsLeft:optInt(o,"refills_left"),refillsTotal:optInt(o,"refills_total"),autoDiscountPct:optInt(o,"auto_discount_pct"),changeOptions:changeOptionsFromWire(o.change_options),skipWarning:skipWarningFromWire(o.skip_warning)}}function skipWarningFromWire(raw){if(raw===null||typeof raw!="object"||Array.isArray(raw))return null;let o=raw,key=optStr(o,"key");if(key!=="last_dose"&&key!=="bottle_gap")return null;let v=o.values!==null&&typeof o.values=="object"&&!Array.isArray(o.values)?o.values:{},unit=optStr(v,"unit_label")?.trim();return{key:key,values:{unitLabel:unit||null,doseOn:optDate(v,"dose_on"),noneFor:optDate(v,"none_for"),lastsTo:optDate(v,"lasts_to"),weeks:optInt(v,"weeks")}}}function changeOptionsFromWire(raw){if(!Array.isArray(raw))return null;let out=raw.flatMap(r=>{if(r===null||typeof r!="object"||Array.isArray(r))return[];let o=r,offerId=optStr(o,"offer_id"),title=optStr(o,"title"),quantity=optInt(o,"quantity"),price=optInt(o,"price_cents_per_cycle"),cadences=Array.isArray(o.cadence_days)?o.cadence_days.filter(d=>Number.isInteger(d)&&d>0):[];if(!offerId||!title||quantity===null||quantity<1||price===null||cadences.length===0)return[];let qty=o.pack_quantity;return[{offerId:offerId,title:title,size:optStr(o,"size"),packQuantity:typeof qty=="string"&&/^\d+(\.\d+)?$/.test(qty)?qty:null,packUnit:packUnit(o),unitLabel:optStr(o,"unit_label"),quantity:quantity,priceCentsPerCycle:price,cadenceDays:cadences,current:o.current===true}]});return out.length>0?out:null}function buyAgainFromWire(raw){return arr(obj(raw,"buy_again").items,"items").flatMap(r=>{if(r===null||typeof r!="object"||Array.isArray(r))return[];let o=r,offerId=optStr(o,"offer_id"),title=optStr(o,"title");return!offerId||!title?[]:[{offerId:offerId,title:title,imageUrl:httpsUrl(o,"image_url"),priceCents:optInt(o,"price_cents"),lastOrderedOn:optDate(o,"last_ordered_on"),isRx:optBool(o,"is_rx")??false,likelyOut:optBool(o,"likely_out")??false}]})}function planPageFromWire(raw){let o=obj(raw,"plans");return{plans:arr(o.plans,"plans").map(planFromWire),nextCursor:optStr(o,"next_cursor")}}function cartLineToWire(line){let wire={offer_id:line.offerId,quantity:line.quantity};return line.petId&&(wire.pet={namespace:"consumer",pet_id:line.petId}),line.rxId&&(wire.rx_id=line.rxId),line.plan&&(wire.plan=line.plan),wire}function addressInputToWire(input){let a=input.address;return{label:input.label,make_default:input.makeDefault===true,address:{recipient_name:a.recipientName,line1:a.line1,line2:a.line2,city:a.city,region:a.region,postal_code:a.postalCode,country:a.country}}}function cycleReviewFromWire(raw){let o=obj(raw,"cycle"),review=o.review&&typeof o.review=="object"&&!Array.isArray(o.review)?o.review:null,pick=key=>review&&review[key]!==void 0&&review[key]!==null?review[key]:o[key];return{planId:str2(o,"plan_id"),reviewId:optStr(o,"review_id")??(review?optStr(review,"review_id"):null),cycle:int(o,"cycle"),state:review?optStr(review,"state")??optStr(o,"state"):optStr(o,"state"),lines:arr(pick("lines"),"cycle.lines").map(l=>{let line=obj(l,"cycle.line");return{offerId:str2(line,"offer_id"),quantity:int(line,"quantity"),petId:petIdOf(line.pet)}}),shipsOn:review?optStr(review,"ships_on")??optStr(o,"ships_on"):optStr(o,"ships_on"),approveBy:review?optStr(review,"approve_by")??optStr(o,"approve_by"):optStr(o,"approve_by"),quoteLines:arr(o.quote&&typeof o.quote=="object"?o.quote.lines:null,"cycle.quote.lines").map(l=>{let line=obj(l,"cycle.quote.line");return{offerId:str2(line,"offer_id"),quantity:int(line,"quantity"),petId:petIdOf(line.pet),unitPrice:int(line,"unit_price"),discount:optInt(line,"discount")??0,tax:optInt(line,"tax")??0}})}}function cycleDraftFromWire(raw){let o=obj(raw,"cycle-draft");return{checkoutId:str2(o,"checkout_id"),shipping:optInt(o,"shipping")??0,tax:optInt(o,"tax")??0,total:int(o,"total"),expiresAt:optStr(o,"expires_at")}}var DEFAULT_PATH="/api/v1/oms",DEFAULT_TIMEOUT_MS=3e4,PAYMENT_METHOD_ID=/^[A-Za-z0-9_]+$/,REASON_CODE=/^[a-z][a-z0-9_]{0,63}$/;function checkBaseUrl(raw){let url=parseUrl(raw);if(url===null)throw new EverfurConfigError("invalid-argument","createOmsClient: baseUrl is not a URL");let local=url.hostname==="localhost"||url.hostname==="127.0.0.1"||url.hostname==="[::1]";if(url.protocol!=="https:"&&!(local&&url.protocol==="http:"))throw new EverfurConfigError("invalid-argument","createOmsClient: baseUrl must be https");if(url.username||url.password||url.search||url.hash)throw new EverfurConfigError("invalid-argument","createOmsClient: baseUrl must be a bare origin or path");return url.origin+url.pathname.replace(/\/+$/,"")}function seg(id){return encodeURIComponent(id)}function isValidId(id){return typeof id=="string"&&id.length>0&&id.length<=256}function createOmsClient(config){let base=checkBaseUrl(config.baseUrl)+(config.path??DEFAULT_PATH).replace(/\/+$/,""),fetchImpl=config.fetch??(typeof globalThis.fetch=="function"?globalThis.fetch.bind(globalThis):void 0);if(!fetchImpl)throw new EverfurConfigError("missing-peer-dependency","createOmsClient: no fetch available; pass config.fetch");if(!config.auth||config.auth.kind!=="everfur_consumer"||typeof config.auth.getToken!="function")throw new EverfurConfigError("invalid-argument",'createOmsClient: auth must be { kind: "everfur_consumer", getToken }');let getToken=config.auth.getToken,channel=config.channel??"web",timeoutMs=config.timeoutMs??DEFAULT_TIMEOUT_MS;async function token(){try{let t=await getToken();return typeof t=="string"&&t.length>0?t:null}catch{return null}}async function send(call){let bearer=await token();if(!bearer)return omsErr({kind:"signedOut"});let url=base+call.path;if(call.query){let params=new URLSearchParams;for(let[k2,v]of Object.entries(call.query))v!==void 0&&params.set(k2,String(v));let qs=params.toString();qs&&(url+=`?${qs}`)}let headers={accept:"application/json",authorization:`Bearer ${bearer}`},init={method:call.method,headers:headers};call.body!==void 0&&(headers["content-type"]="application/json",init.body=JSON.stringify(call.body));let controller=typeof AbortController=="function"?new AbortController:null;controller&&(init.signal=controller.signal);let timedOut=false,timer=setTimeout(()=>{timedOut=true,controller?.abort()},timeoutMs),res;try{res=await fetchImpl(url,init)}catch{return clearTimeout(timer),omsErr({kind:timedOut?"timeout":"network"})}try{let requestId=res.headers.get("x-request-id")??void 0,rid=requestId?{requestId:requestId}:{};if(res.status<200||res.status>=300){let body=res.status===402||res.status===409||res.status===422?await res.json().catch(()=>null):null;return omsErr(omsErrorFromStatus(res.status,body,{...rid,retryAfter:res.headers.get("retry-after")}))}if(call.read===null||res.status===204)return omsOk(void 0);let raw;try{raw=await res.json()}catch{return omsErr({kind:"badResponse",...rid})}try{return omsOk(call.read(raw))}catch{return omsErr({kind:"badResponse",...rid})}}catch{return omsErr({kind:timedOut?"timeout":"network"})}finally{clearTimeout(timer)}}let invalid=()=>Promise.resolve(omsErr({kind:"invalidRequest"}));function withId(id,run){return isValidId(id)?run(seg(id)):invalid()}let lines=ls=>ls.map(cartLineToWire);return{shopConfig:()=>send({method:"GET",path:"/shop-config",read:shopConfigFromWire}),offers:(q={})=>send({method:"GET",path:"/catalog/offers",query:{text:q.text,requires_rx:q.requiresRx,cursor:q.cursor,limit:q.limit},read:offerPageFromWire}),offer:offerId=>withId(offerId,id=>send({method:"GET",path:`/catalog/offers/${id}`,read:offerFromWire})),prescriptions:()=>send({method:"GET",path:"/prescriptions",read:prescriptionsFromWire}),addresses:()=>send({method:"GET",path:"/addresses",read:addressesFromWire}),address:ref=>withId(ref,id=>send({method:"GET",path:`/addresses/${id}`,read:addressDetailFromWire})),addAddress:input=>send({method:"POST",path:"/addresses",body:addressInputToWire(input),read:addressEntryFromWire}),updateAddress:(ref,input)=>withId(ref,id=>send({method:"PUT",path:`/addresses/${id}`,body:addressInputToWire(input),read:addressEntryFromWire})),removeAddress:ref=>withId(ref,id=>send({method:"DELETE",path:`/addresses/${id}`,read:null})),makeDefaultAddress:ref=>withId(ref,id=>send({method:"POST",path:`/addresses/${id}/default`,read:addressEntryFromWire})),paymentMethods:()=>send({method:"GET",path:"/payment-methods",read:paymentMethodsFromWire}),setupPaymentMethod:()=>send({method:"POST",path:"/payment-methods/setup",read:paymentSetupFromWire}),startCardSetupSession:r=>send({method:"POST",path:"/payment-methods/setup-session",body:{idempotency_key:r.idempotencyKey,return_url:r.returnUrl},read:cardSetupLinkFromWire}),removePaymentMethod:pm=>PAYMENT_METHOD_ID.test(pm)?send({method:"DELETE",path:`/payment-methods/${pm}`,read:null}):invalid(),quote:r=>send({method:"POST",path:"/cart/quote",body:{lines:lines(r.lines),ship_to:r.shipTo,promo_code:r.promoCode??null},read:quoteFromWire}),createCheckout:r=>send({method:"POST",path:"/checkouts",body:{idempotency_key:r.idempotencyKey,channel:channel,lines:lines(r.lines),ship_to:r.shipTo,receipt_email:r.receiptEmail??null,promo_code:r.promoCode??null},read:checkoutFromWire}),confirmCheckout:(checkoutId,r)=>PAYMENT_METHOD_ID.test(r.paymentMethodId)&&Number.isInteger(r.expectedTotal)?withId(checkoutId,id=>send({method:"POST",path:`/checkouts/${id}/confirm`,body:{idempotency_key:r.idempotencyKey,expected_total:r.expectedTotal,payment_method_id:r.paymentMethodId},read:confirmationFromWire})):invalid(),orders:(q={})=>q.since!==void 0&&!/^\d{4}-\d{2}-\d{2}$/.test(q.since)?invalid():send({method:"GET",path:"/orders",query:{cursor:q.cursor,limit:q.limit,reference:q.reference,since:q.since},read:orderPageFromWire}),order:orderId=>withId(orderId,id=>send({method:"GET",path:`/orders/${id}`,read:orderFromWire})),cancelOrder:(orderId,r)=>REASON_CODE.test(r.reasonCode)?withId(orderId,id=>send({method:"POST",path:`/orders/${id}/cancel`,body:{idempotency_key:r.idempotencyKey,reason_code:r.reasonCode},read:cancelOutcomeFromWire})):invalid(),payOrder:(orderId,r)=>{if(r.paymentMethodId!==void 0&&!PAYMENT_METHOD_ID.test(r.paymentMethodId))return invalid();let body={idempotency_key:r.idempotencyKey};return r.paymentMethodId&&(body.payment_method_id=r.paymentMethodId),withId(orderId,id=>send({method:"POST",path:`/orders/${id}/pay`,body:body,read:payOutcomeFromWire}))},cardActionLink:(orderId,r)=>withId(orderId,id=>send({method:"POST",path:`/orders/${id}/card-action-link`,body:{return_url:r.returnUrl},read:cardActionLinkFromWire})),receipt:orderId=>withId(orderId,id=>send({method:"GET",path:`/orders/${id}/receipt`,read:receiptFromWire})),requestReturn:(orderId,r)=>r.lines.every(l=>REASON_CODE.test(l.reasonCode))?withId(orderId,id=>send({method:"POST",path:`/orders/${id}/returns`,body:{idempotency_key:r.idempotencyKey,lines:r.lines.map(l=>({line_id:l.lineId,quantity:l.quantity,reason_code:l.reasonCode}))},read:returnFromWire})):invalid(),getReturn:returnId=>withId(returnId,id=>send({method:"GET",path:`/returns/${id}`,read:returnFromWire})),cancelReturn:returnId=>withId(returnId,id=>send({method:"POST",path:`/returns/${id}/cancel`,read:returnFromWire})),openCase:(orderId,r)=>REASON_CODE.test(r.reasonCode)&&r.message.length<=4e3?withId(orderId,id=>send({method:"POST",path:`/orders/${id}/cases`,body:{idempotency_key:r.idempotencyKey,reason_code:r.reasonCode,message:r.message},read:caseFromWire})):invalid(),orderCases:orderId=>withId(orderId,id=>send({method:"GET",path:`/orders/${id}/cases`,read:casesFromWire})),plans:(q={})=>send({method:"GET",path:"/subscriptions",query:{cursor:q.cursor,limit:q.limit},read:planPageFromWire}),buyAgain:()=>send({method:"GET",path:"/buy-again",read:buyAgainFromWire}),createPlan:input=>PAYMENT_METHOD_ID.test(input.paymentMethodId)?send({method:"POST",path:"/subscriptions",body:{idempotency_key:input.idempotencyKey,cadence_days:input.cadenceDays,destination:input.destination,payment_method_id:input.paymentMethodId,consent_terms_version:input.consentTermsVersion,lines:lines(input.lines)},read:planFromWire}):invalid(),updatePlan:(planId,patch)=>{if(patch.paymentMethodId!==void 0&&!PAYMENT_METHOD_ID.test(patch.paymentMethodId))return invalid();let body={idempotency_key:patch.idempotencyKey};if(patch.lines&&(body.lines=lines(patch.lines)),patch.cadenceDays!==void 0&&(body.cadence_days=patch.cadenceDays),patch.offerId!==void 0){if(!isValidId(patch.offerId)||patch.cadenceDays===void 0||patch.lines)return invalid();body.offer_id=patch.offerId}return patch.destination!==void 0&&(body.destination=patch.destination),patch.paymentMethodId!==void 0&&(body.payment_method_id=patch.paymentMethodId),withId(planId,id=>send({method:"PATCH",path:`/subscriptions/${id}`,body:body,read:planFromWire}))},planAction:(planId,r)=>withId(planId,id=>send({method:"POST",path:`/subscriptions/${id}/actions`,body:{idempotency_key:r.idempotencyKey,operation:r.operation},read:planFromWire})),cancelPlan:planId=>withId(planId,id=>send({method:"POST",path:`/subscriptions/${id}/cancel`,read:planFromWire})),cycleReview:planId=>withId(planId,id=>send({method:"GET",path:`/subscriptions/${id}/cycle`,read:cycleReviewFromWire})),editCycle:(planId,cycle,r)=>Number.isInteger(cycle)&&cycle>0?withId(planId,id=>send({method:"PUT",path:`/subscriptions/${id}/cycles/${cycle}/lines`,body:{idempotency_key:r.idempotencyKey,lines:lines(r.lines)},read:cycleReviewFromWire})):invalid(),draftCycle:(planId,cycle)=>Number.isInteger(cycle)&&cycle>0?withId(planId,id=>send({method:"POST",path:`/subscriptions/${id}/cycles/${cycle}/draft`,read:cycleDraftFromWire})):invalid(),approveCycle:(planId,cycle,r)=>Number.isInteger(cycle)&&cycle>0&&Number.isInteger(r.expectedTotal)?withId(planId,id=>send({method:"POST",path:`/subscriptions/${id}/cycles/${cycle}/approve`,body:{idempotency_key:r.idempotencyKey,checkout_id:r.checkoutId,expected_total:r.expectedTotal},read:confirmationFromWire})):invalid(),skipCycle:(planId,cycle,r)=>Number.isInteger(cycle)&&cycle>0?withId(planId,id=>send({method:"POST",path:`/subscriptions/${id}/cycles/${cycle}/skip`,body:{idempotency_key:r.idempotencyKey},read:planFromWire})):invalid()}}exports.EverfurShop=EverfurShop;exports.SHOP_COPY=SHOP_COPY;exports.SHOP_COPY_PLACEHOLDERS=SHOP_COPY_PLACEHOLDERS;exports.SHOP_ORDERS_V2_COPY=SHOP_ORDERS_V2_COPY;exports.SHOP_V3_COPY=SHOP_V3_COPY;exports.SHOP_V3_COPY_PLACEHOLDERS=SHOP_V3_COPY_PLACEHOLDERS;exports.ShopSwitchCard=ShopSwitchCard;exports.UNAVAILABLE_PACKAGE_SOURCE=UNAVAILABLE_PACKAGE_SOURCE;exports.createInAppBrowserCard=createInAppBrowserCard;exports.createInAppBrowserCardSetup=createInAppBrowserCardSetup;exports.createInAppBrowserPayments=createInAppBrowserPayments;exports.createOmsClient=createOmsClient;exports.createOmsPackageSource=createOmsPackageSource;exports.isOmsRefusal=isOmsRefusal;exports.isOmsRetryable=isOmsRetryable;exports.isOmsUnavailable=isOmsUnavailable;exports.newIdempotencyKey=newIdempotencyKey;exports.shopBackRoute=shopBackRoute;exports.shopCopy=shopCopy;exports.shopOrdersV2Copy=shopOrdersV2Copy;exports.shopV3Copy=shopV3Copy;