@everfur/sdk 1.0.1 → 1.2.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 (240) hide show
  1. package/CHANGELOG.md +88 -0
  2. package/dist/{Chat.d-DDmNIlJn.d.cts → Chat.d-C76mPD5M.d.cts} +1 -1
  3. package/dist/{Chat.d-DySDBc6L.d.ts → Chat.d-Dn_DEpGG.d.ts} +1 -1
  4. package/dist/{DepthViews.d-Dq8eWBvw.d.cts → DepthViews.d-4teBIBu-.d.cts} +1 -1
  5. package/dist/{DepthViews.d-BIfqdrvX.d.ts → DepthViews.d-B5RHCzGS.d.ts} +1 -1
  6. package/dist/{DepthViews.d-BW3HrhnC.d.ts → DepthViews.d-DXGAGojW.d.ts} +1 -1
  7. package/dist/{DepthViews.d-BHb0Xb-C.d.cts → DepthViews.d-v6sBxjrf.d.cts} +1 -1
  8. package/dist/{LifecyclePort.d-Cr1p33a7.d.cts → LifecyclePort.d-Cb9NtmP-.d.cts} +5 -0
  9. package/dist/{LifecyclePort.d-Cr1p33a7.d.ts → LifecyclePort.d-Cb9NtmP-.d.ts} +5 -0
  10. package/dist/{RecordsPage.d-CLrw-AvZ.d.cts → RecordsPage.d-BF4EIVKg.d.cts} +1 -1
  11. package/dist/{RecordsPage.d-Bs-dghTH.d.ts → RecordsPage.d-D2J5rMWk.d.ts} +1 -1
  12. package/dist/animations/index.cjs +1 -1
  13. package/dist/animations/index.d.cts +3 -3
  14. package/dist/animations/index.d.ts +3 -3
  15. package/dist/animations/index.js +1 -1
  16. package/dist/{attachments.d-DjxmIsNp.d.ts → attachments.d-CedhQFlI.d.ts} +1 -1
  17. package/dist/{attachments.d-DTGYmW8Y.d.cts → attachments.d-DMZ8xCT9.d.cts} +1 -1
  18. package/dist/{bookingCopy.d-CX-DMiwi.d.ts → bookingCopy.d-CnKq4gvc.d.ts} +2 -2
  19. package/dist/{bookingCopy.d-D952V8Tq.d.cts → bookingCopy.d-DJmo8fzQ.d.cts} +2 -2
  20. package/dist/{branding.d-DC4imCYd.d.ts → branding.d-CNeG_CY3.d.ts} +8 -3
  21. package/dist/{branding.d-G7rpxDhI.d.cts → branding.d-KOXyiUqX.d.cts} +8 -3
  22. package/dist/{casesRepository.d-bWJHZD-_.d.cts → casesRepository.d-BcmH2Du1.d.cts} +1 -1
  23. package/dist/{casesRepository.d-CnJZlUZ4.d.ts → casesRepository.d-CG3psWUQ.d.ts} +1 -1
  24. package/dist/chat/index.cjs +26 -27
  25. package/dist/chat/index.d.cts +12 -12
  26. package/dist/chat/index.d.ts +12 -12
  27. package/dist/chat/index.js +27 -28
  28. package/dist/chat/lite/index.cjs +26 -27
  29. package/dist/chat/lite/index.d.cts +12 -12
  30. package/dist/chat/lite/index.d.ts +12 -12
  31. package/dist/chat/lite/index.js +26 -27
  32. package/dist/{chatHandoffToken.d-uKnSnIzN.d.cts → chatHandoffToken.d-BRODOPfQ.d.cts} +11 -6
  33. package/dist/{chatHandoffToken.d-BCEdhZpd.d.ts → chatHandoffToken.d-DETK_czu.d.ts} +11 -6
  34. package/dist/{chatTypes.d-DbdF3ij5.d.ts → checkin.d-CJoVeku7.d.ts} +69 -37
  35. package/dist/{chatTypes.d-CFyYBzps.d.cts → checkin.d-CQaV4WL2.d.cts} +69 -37
  36. package/dist/{chunk-63X2JJZY.js → chunk-HGQOS366.js} +1 -1
  37. package/dist/{chunk-FNF5TLN6.js → chunk-PSBCFPJG.js} +1 -1
  38. package/dist/{chunk-VKLLSI2B.js → chunk-PTO64HJN.js} +1 -1
  39. package/dist/{chunk-3RVFIOWI.js → chunk-QMYYV67E.js} +1 -1
  40. package/dist/client/index.cjs +17 -5
  41. package/dist/client/index.d.cts +84 -16
  42. package/dist/client/index.d.ts +84 -16
  43. package/dist/client/index.js +17 -5
  44. package/dist/{clinicBatch.d-C_kZtYt-.d.ts → clinicBatch.d-CSr_YFGU.d.ts} +2 -2
  45. package/dist/{clinicBatch.d-e3Cn5HhA.d.cts → clinicBatch.d-CyXyJab_.d.cts} +2 -2
  46. package/dist/{config.d--6siaeNg.d.ts → config.d-Bf15Q27G.d.ts} +1 -1
  47. package/dist/{config.d-Ba21AaZg.d.cts → config.d-D-7_tLb8.d.cts} +1 -1
  48. package/dist/consent/index.cjs +1 -1
  49. package/dist/consent/index.d.cts +5 -5
  50. package/dist/consent/index.d.ts +5 -5
  51. package/dist/consent/index.js +1 -1
  52. package/dist/{context.d-DLHTf-fV.d.cts → context.d-CCsGIBuw.d.cts} +6 -6
  53. package/dist/{context.d-TArU_9lj.d.ts → context.d-CFFj57ZA.d.ts} +6 -6
  54. package/dist/{copy.d-GokMma80.d.ts → copy.d-Dan0WfJS.d.ts} +2 -2
  55. package/dist/{copy.d-zWWCn3wB.d.cts → copy.d-uQ8jl0d3.d.cts} +2 -2
  56. package/dist/core/index.cjs +9 -8
  57. package/dist/core/index.d.cts +19 -17
  58. package/dist/core/index.d.ts +19 -17
  59. package/dist/core/index.js +9 -8
  60. package/dist/{depth.d-De5pT7vA.d.cts → depth.d-DFPfFTPF.d.cts} +2 -2
  61. package/dist/{depth.d-C_HL8yAz.d.ts → depth.d-DFsi6qtf.d.ts} +2 -2
  62. package/dist/{entitlementRepository.d-CoKN-Ksa.d.ts → entitlementRepository.d-BnvMk7Tc.d.ts} +4 -4
  63. package/dist/{entitlementRepository.d-Tj7lvs4e.d.cts → entitlementRepository.d-t6g97KZm.d.cts} +4 -4
  64. package/dist/{focus.d-B0qweva0.d.cts → focus.d-BkPLN-2r.d.cts} +1 -1
  65. package/dist/{focus.d-7G0BBmA9.d.ts → focus.d-_6rD03Ap.d.ts} +1 -1
  66. package/dist/health-plan/index.cjs +4 -4
  67. package/dist/health-plan/index.d.cts +16 -16
  68. package/dist/health-plan/index.d.ts +16 -16
  69. package/dist/health-plan/index.js +4 -4
  70. package/dist/{healthPlanRepository.d-CdCyUWph.d.ts → healthPlanRepository.d-CuumbPDh.d.ts} +2 -2
  71. package/dist/{healthPlanRepository.d-fPbLceBr.d.cts → healthPlanRepository.d-D6qYjNMQ.d.cts} +2 -2
  72. package/dist/{idempotency.d-IDta7Jjj.d.cts → idempotency.d-BGhv20mx.d.cts} +1 -1
  73. package/dist/{idempotency.d-CoUlC-Yd.d.ts → idempotency.d-RxPkjLqJ.d.ts} +1 -1
  74. package/dist/{identity.d-B7dPRGqm.d.ts → identity.d--2ec4agf.d.ts} +1 -1
  75. package/dist/{identity.d-_MK9Y7a4.d.cts → identity.d-CFc4KrK0.d.cts} +1 -1
  76. package/dist/{inbox.d-CuuPTWyW.d.ts → inbox.d-B6kD0a9r.d.ts} +1 -1
  77. package/dist/{inbox.d-ChNXTovj.d.cts → inbox.d-CzIVX_ji.d.cts} +1 -1
  78. package/dist/index.cjs +35 -35
  79. package/dist/index.d.cts +21 -19
  80. package/dist/index.d.ts +21 -19
  81. package/dist/index.js +36 -36
  82. package/dist/{introEvents.d-JvAWRKYu.d.cts → introEvents.d-BUCbS8oX.d.cts} +1 -1
  83. package/dist/{introEvents.d-D6Ay0ORN.d.ts → introEvents.d-wshlRCrU.d.ts} +1 -1
  84. package/dist/{layout.d-D3d4QMeO.d.ts → layout.d-C8UKQW3I.d.ts} +2 -2
  85. package/dist/{layout.d-ByfOEhpG.d.cts → layout.d-ChcRUbC4.d.cts} +2 -2
  86. package/dist/models.d-DHAQqrQr.d.ts +182 -0
  87. package/dist/models.d-Dml2f9-U.d.cts +182 -0
  88. package/dist/notifications/inbox/index.cjs +2 -2
  89. package/dist/notifications/inbox/index.d.cts +7 -7
  90. package/dist/notifications/inbox/index.d.ts +7 -7
  91. package/dist/notifications/inbox/index.js +2 -2
  92. package/dist/notifications/index.cjs +1 -1
  93. package/dist/notifications/index.d.cts +7 -7
  94. package/dist/notifications/index.d.ts +7 -7
  95. package/dist/notifications/index.js +1 -1
  96. package/dist/{optInView.d-Bxvg0WLJ.d.cts → optInView.d-Cu3J440l.d.cts} +2 -2
  97. package/dist/{optInView.d-BpFTJaaX.d.ts → optInView.d-DbSRM8qR.d.ts} +2 -2
  98. package/dist/parse.d-DtHmpAMT.d.cts +282 -0
  99. package/dist/parse.d-DtHmpAMT.d.ts +282 -0
  100. package/dist/{pets.d-BtbJcf8T.d.cts → pets.d-BRNg79qq.d.cts} +1 -1
  101. package/dist/{pets.d-Br960ekh.d.ts → pets.d-CS21gvuN.d.ts} +1 -1
  102. package/dist/{petsRepository.d-CSOth5XE.d.ts → petsRepository.d-BRL_wPcE.d.ts} +1 -1
  103. package/dist/{petsRepository.d-Bj9rPnCr.d.cts → petsRepository.d-uMbhgEsh.d.cts} +1 -1
  104. package/dist/photo/index.cjs +1 -1
  105. package/dist/photo/index.js +1 -1
  106. package/dist/{presentation.d-BvZs_jN-.d.cts → presentation.d-tJe7zo12.d.cts} +6 -2
  107. package/dist/{presentation.d-BvZs_jN-.d.ts → presentation.d-tJe7zo12.d.ts} +6 -2
  108. package/dist/records/depth/index.cjs +1 -1
  109. package/dist/records/depth/index.d.cts +9 -9
  110. package/dist/records/depth/index.d.ts +9 -9
  111. package/dist/records/depth/index.js +1 -1
  112. package/dist/records/index.cjs +4 -4
  113. package/dist/records/index.d.cts +13 -13
  114. package/dist/records/index.d.ts +13 -13
  115. package/dist/records/index.js +4 -4
  116. package/dist/{requestFunnel.d-LSnmCusf.d.ts → requestFunnel.d-BDuYHZMa.d.ts} +2 -2
  117. package/dist/{requestFunnel.d-BwO-jFLX.d.cts → requestFunnel.d-BdTkSu0W.d.cts} +2 -2
  118. package/dist/{route.d-D70-OHBc.d.cts → route.d-BhfmB7Pl.d.cts} +2 -2
  119. package/dist/{route.d-Bzyamuxa.d.ts → route.d-HALH1t37.d.ts} +2 -2
  120. package/dist/{runtimeTypes.d-BHdN-9aB.d.cts → runtimeTypes.d-BrEWaDPX.d.cts} +34 -6
  121. package/dist/{runtimeTypes.d-L_CbeCKS.d.ts → runtimeTypes.d-C7HFG1ev.d.ts} +34 -6
  122. package/dist/{screenProps.d-DB5IMaGZ.d.cts → screenProps.d-BjIsq_NY.d.cts} +1 -1
  123. package/dist/{screenProps.d-HGSPNGHt.d.ts → screenProps.d-C_q_3Lj7.d.ts} +1 -1
  124. package/dist/sdkConfigStore.d-BKqjpahR.d.ts +40 -0
  125. package/dist/sdkConfigStore.d-Cxj2n79d.d.cts +40 -0
  126. package/dist/server/events/index.cjs +2 -2
  127. package/dist/server/events/index.d.cts +2 -2
  128. package/dist/server/events/index.d.ts +2 -2
  129. package/dist/server/events/index.js +2 -2
  130. package/dist/server/index.cjs +2 -2
  131. package/dist/server/index.d.cts +3 -3
  132. package/dist/server/index.d.ts +3 -3
  133. package/dist/server/index.js +2 -2
  134. package/dist/shop/index.d.cts +3 -3
  135. package/dist/shop/index.d.ts +3 -3
  136. package/dist/slots/index.cjs +2 -2
  137. package/dist/slots/index.d.cts +6 -6
  138. package/dist/slots/index.d.ts +6 -6
  139. package/dist/slots/index.js +2 -2
  140. package/dist/tabs/index.cjs +78 -12
  141. package/dist/tabs/index.d.cts +129 -10
  142. package/dist/tabs/index.d.ts +129 -10
  143. package/dist/tabs/index.js +78 -12
  144. package/dist/televet/booking/index.cjs +1 -1
  145. package/dist/televet/booking/index.d.cts +6 -6
  146. package/dist/televet/booking/index.d.ts +6 -6
  147. package/dist/televet/booking/index.js +1 -1
  148. package/dist/televet/index.cjs +1 -1
  149. package/dist/televet/index.js +1 -1
  150. package/dist/testing/index.cjs +1 -1
  151. package/dist/testing/index.d.cts +1 -1
  152. package/dist/testing/index.d.ts +1 -1
  153. package/dist/testing/index.js +1 -1
  154. package/dist/testing/rn/index.cjs +1 -1
  155. package/dist/testing/rn/index.d.cts +12 -10
  156. package/dist/testing/rn/index.d.ts +12 -10
  157. package/dist/testing/rn/index.js +1 -1
  158. package/dist/testing/web/index.cjs +1 -1
  159. package/dist/testing/web/index.d.cts +12 -10
  160. package/dist/testing/web/index.d.ts +12 -10
  161. package/dist/testing/web/index.js +1 -1
  162. package/dist/texting/index.cjs +3 -3
  163. package/dist/texting/index.d.cts +22 -8
  164. package/dist/texting/index.d.ts +22 -8
  165. package/dist/texting/index.js +3 -3
  166. package/dist/{threadOptions.d-CS-Qu_rR.d.cts → threadOptions.d-RBSqklk5.d.cts} +6 -6
  167. package/dist/{threadOptions.d-FzFN0zsK.d.ts → threadOptions.d-Suof8GCE.d.ts} +6 -6
  168. package/dist/{timelineRows.d-CPS4admm.d.ts → timelineRows.d-CDA00bav.d.ts} +1 -1
  169. package/dist/{timelineRows.d-BJRCgmdv.d.cts → timelineRows.d-CXIvLZW0.d.cts} +1 -1
  170. package/dist/{tokens.d-DH1mYjZl.d.cts → tokens.d-DxM-tKjz.d.cts} +2 -0
  171. package/dist/{tokens.d-DH1mYjZl.d.ts → tokens.d-DxM-tKjz.d.ts} +2 -0
  172. package/dist/{typeStyle.d-BIDpuYpg.d.cts → typeStyle.d-DmdB2TfH.d.cts} +2 -2
  173. package/dist/{typeStyle.d-aRhFhBpG.d.ts → typeStyle.d-Ma1uBgn-.d.ts} +2 -2
  174. package/dist/{useHealthPlanSubscription.d-zjsvvlhz.d.cts → useHealthPlanSubscription.d-BJyHm00W.d.cts} +4 -4
  175. package/dist/{useHealthPlanSubscription.d-SQfx-45x.d.ts → useHealthPlanSubscription.d-mOHP3D8V.d.ts} +4 -4
  176. package/dist/{useInboxUnread.d-BxFKFU4o.d.ts → useInboxUnread.d-B6WPb-Qs.d.ts} +2 -2
  177. package/dist/{useInboxUnread.d-7p3IWs_A.d.cts → useInboxUnread.d-BZC4Td0f.d.cts} +2 -2
  178. package/dist/{usePresentation.d-BHO_uZ31.d.cts → usePresentation.d-BP8u0FS2.d.cts} +3 -3
  179. package/dist/{usePresentation.d-Dr7iD-4Y.d.ts → usePresentation.d-j0xDpOoe.d.ts} +3 -3
  180. package/dist/{useRecordsDepth.d-BinUa8W9.d.ts → useRecordsDepth.d-Cu7-cKAn.d.ts} +1 -1
  181. package/dist/{useRecordsDepth.d-Bk8BSerZ.d.cts → useRecordsDepth.d-CvxrlzGi.d.cts} +1 -1
  182. package/dist/{useUnread.d-DXcRBQw8.d.cts → useUnread.d-C4wKv3th.d.cts} +32 -18
  183. package/dist/{useUnread.d-CAeYh82_.d.ts → useUnread.d-DMicYM85.d.ts} +32 -18
  184. package/dist/video/index.cjs +1 -1
  185. package/dist/video/index.js +1 -1
  186. package/dist/{view.d-CaH6dZPJ.d.ts → view.d-Bq7d05Pv.d.ts} +3 -3
  187. package/dist/{view.d-DV4b1cov.d.cts → view.d-odmWgaGw.d.cts} +3 -3
  188. package/dist/web/consent/index.cjs +1 -1
  189. package/dist/web/consent/index.d.cts +5 -5
  190. package/dist/web/consent/index.d.ts +5 -5
  191. package/dist/web/consent/index.js +1 -1
  192. package/dist/web/health-plan/index.cjs +6 -6
  193. package/dist/web/health-plan/index.d.cts +17 -17
  194. package/dist/web/health-plan/index.d.ts +17 -17
  195. package/dist/web/health-plan/index.js +5 -5
  196. package/dist/web/inbox/index.cjs +2 -2
  197. package/dist/web/inbox/index.d.cts +8 -8
  198. package/dist/web/inbox/index.d.ts +8 -8
  199. package/dist/web/inbox/index.js +2 -2
  200. package/dist/web/index.cjs +43 -43
  201. package/dist/web/index.d.cts +61 -46
  202. package/dist/web/index.d.ts +61 -46
  203. package/dist/web/index.js +43 -43
  204. package/dist/web/intro/index.cjs +1 -1
  205. package/dist/web/intro/index.d.cts +7 -7
  206. package/dist/web/intro/index.d.ts +7 -7
  207. package/dist/web/intro/index.js +1 -1
  208. package/dist/web/notifications/index.cjs +1 -1
  209. package/dist/web/notifications/index.d.cts +6 -6
  210. package/dist/web/notifications/index.d.ts +6 -6
  211. package/dist/web/notifications/index.js +1 -1
  212. package/dist/web/records/depth/index.cjs +1 -1
  213. package/dist/web/records/depth/index.d.cts +9 -9
  214. package/dist/web/records/depth/index.d.ts +9 -9
  215. package/dist/web/records/depth/index.js +1 -1
  216. package/dist/web/records/index.cjs +3 -3
  217. package/dist/web/records/index.d.cts +11 -11
  218. package/dist/web/records/index.d.ts +11 -11
  219. package/dist/web/records/index.js +3 -3
  220. package/dist/web/records-sheet/index.cjs +4 -4
  221. package/dist/web/records-sheet/index.js +4 -4
  222. package/dist/web/shop/index.cjs +1 -1
  223. package/dist/web/shop/index.d.cts +3 -3
  224. package/dist/web/shop/index.d.ts +3 -3
  225. package/dist/web/shop/index.js +1 -1
  226. package/dist/web/televet/booking/index.cjs +2 -2
  227. package/dist/web/televet/booking/index.d.cts +7 -7
  228. package/dist/web/televet/booking/index.d.ts +7 -7
  229. package/dist/web/televet/booking/index.js +2 -2
  230. package/dist/web/televet/call/index.cjs +1 -1
  231. package/dist/web/televet/call/index.js +1 -1
  232. package/dist/web/televet/index.cjs +1 -1
  233. package/dist/web/televet/index.js +1 -1
  234. package/dist/web/texting/index.cjs +3 -3
  235. package/dist/web/texting/index.d.cts +22 -8
  236. package/dist/web/texting/index.d.ts +22 -8
  237. package/dist/web/texting/index.js +3 -3
  238. package/dist/web/ui/index.cjs +1 -1
  239. package/dist/web/ui/index.js +1 -1
  240. package/package.json +6 -2
@@ -1,6 +1,6 @@
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 client";
3
- import{createContext,useMemo,useRef,useEffect,useSyncExternalStore,useCallback,useId,useState,useContext,createElement,Component}from"react";import{jsxs,jsx,Fragment}from"react/jsx-runtime";function reportHostFailure(error){let globalConsole=globalThis.console;try{globalConsole?.error?.("[everfur] A host callback threw; the SDK ignored it.",error)}catch{}}function isThenable(value){return(typeof value=="object"||typeof value=="function")&&value!==null&&typeof value.then=="function"}function callHost(fn,...args){if(typeof fn=="function")try{let result=fn(...args);return isThenable(result)&&Promise.resolve(result).then(void 0,reportHostFailure),result}catch(error){reportHostFailure(error);return}}var GUARDED=/* @__PURE__ */new WeakMap;function guardHost(fn){if(typeof fn!="function")return;let cached=GUARDED.get(fn);if(cached!==void 0)return cached;let guarded=(...args)=>{callHost(fn,...args)};return GUARDED.set(fn,guarded),guarded}function guardHostProps(props,names){let guarded=null;for(let name of names){let fn=props[name];typeof fn=="function"&&(guarded??={...props},guarded[name]=guardHost(fn))}return guarded??props}var HostRenderBoundary=class extends Component{constructor(){super(...arguments);this.state={failed:false,key:this.props.resetKey}}static getDerivedStateFromError(){return{failed:true}}static getDerivedStateFromProps(props,state2){return Object.is(props.resetKey,state2.key)?null:{failed:false,key:props.resetKey}}render(){return this.state.failed?this.props.fallback:this.props.children}};function RenderHost({render:render}){return render()}function HostRender({render:render,fallback:fallback,resetKey:resetKey}){return createElement(HostRenderBoundary,{fallback:fallback,resetKey:resetKey,children:createElement(RenderHost,{render:render})})}var RETRYABILITY_ROWS=[{wireCode:"AccessDeniedException",envelope:"http_envelope",httpStatus:403,retryable:false},{wireCode:"AuthorizationException",envelope:"http_envelope",httpStatus:401,retryable:false},{wireCode:"ConflictException",envelope:"http_envelope",httpStatus:409,retryable:true},{wireCode:"DAILY_QUOTA_EXCEEDED",envelope:"http_envelope",httpStatus:429,retryable:true},{wireCode:"FILE_TOO_LARGE",envelope:"http_envelope",httpStatus:400,retryable:false},{wireCode:"IDEMPOTENCY_KEY_IN_FLIGHT",envelope:"http_envelope",httpStatus:409,retryable:true},{wireCode:"IDEMPOTENCY_KEY_REUSED_DIFFERENT_REQUEST",envelope:"http_envelope",httpStatus:409,retryable:false},{wireCode:"INVALID_CONTENT_TYPE",envelope:"http_envelope",httpStatus:400,retryable:false},{wireCode:"InternalFailureException",envelope:"http_envelope",httpStatus:500,retryable:true},{wireCode:"MethodNotAllowedException",envelope:"http_envelope",httpStatus:405,retryable:false},{wireCode:"NotImplementedException",envelope:"http_envelope",httpStatus:501,retryable:false},{wireCode:"PaymentRequiredException",envelope:"http_envelope",httpStatus:402,retryable:false},{wireCode:"ResourceNotFoundException",envelope:"http_envelope",httpStatus:404,retryable:false},{wireCode:"ServiceUnavailableException",envelope:"http_envelope",httpStatus:503,retryable:true},{wireCode:"TIER_UPGRADE_REQUIRED",envelope:"http_envelope",httpStatus:402,retryable:false},{wireCode:"ThrottlingException",envelope:"http_envelope",httpStatus:429,retryable:true},{wireCode:"ValidationException",envelope:"http_envelope",httpStatus:400,retryable:false},{wireCode:"accessDenied",envelope:"http_envelope",httpStatus:403,retryable:false},{wireCode:"access_denied",envelope:"oauth_error",httpStatus:302,retryable:false},{wireCode:"attachment_unreadable",envelope:"http_envelope",httpStatus:400,retryable:false},{wireCode:"authExpired",envelope:"http_envelope",httpStatus:401,retryable:true},{wireCode:"authRejected",envelope:"http_envelope",httpStatus:401,retryable:false},{wireCode:"catalog_empty_refused",envelope:"http_envelope",httpStatus:409,retryable:false},{wireCode:"catalog_shrink_refused",envelope:"http_envelope",httpStatus:409,retryable:false},{wireCode:"consent_invalid",envelope:"http_envelope",httpStatus:422,retryable:false},{wireCode:"consent_required",envelope:"http_envelope",httpStatus:422,retryable:false},{wireCode:"consent_scope_wrong_route",envelope:"http_envelope",httpStatus:400,retryable:false},{wireCode:"device_cipher_unavailable",envelope:"http_envelope",httpStatus:503,retryable:true},{wireCode:"email_invalid",envelope:"http_envelope",httpStatus:422,retryable:false},{wireCode:"endpoint_not_allowed",envelope:"http_envelope",httpStatus:422,retryable:false},{wireCode:"event_cursor_invalid",envelope:"http_envelope",httpStatus:400,retryable:false},{wireCode:"event_filter_invalid",envelope:"http_envelope",httpStatus:400,retryable:false},{wireCode:"event_id_invalid",envelope:"http_envelope",httpStatus:422,retryable:false},{wireCode:"event_payload_invalid",envelope:"http_envelope",httpStatus:400,retryable:false},{wireCode:"event_type_not_available",envelope:"http_envelope",httpStatus:400,retryable:false},{wireCode:"event_type_unknown",envelope:"http_envelope",httpStatus:400,retryable:false},{wireCode:"idempotency_key_invalid",envelope:"http_envelope",httpStatus:400,retryable:false},{wireCode:"idempotency_key_required",envelope:"http_envelope",httpStatus:400,retryable:false},{wireCode:"idempotency_key_reused",envelope:"http_envelope",httpStatus:409,retryable:false},{wireCode:"inbox_cursor_invalid",envelope:"http_envelope",httpStatus:422,retryable:false},{wireCode:"insufficientCapability",envelope:"http_envelope",httpStatus:403,retryable:false},{wireCode:"insufficient_scope",envelope:"http_envelope",httpStatus:403,retryable:false},{wireCode:"internal_error",envelope:"sse_frame",httpStatus:200,retryable:false},{wireCode:"invalidRequest",envelope:"http_envelope",httpStatus:400,retryable:false},{wireCode:"invalid_client",envelope:"oauth_error",httpStatus:401,retryable:false},{wireCode:"invalid_client_metadata",envelope:"oauth_error",httpStatus:400,retryable:false},{wireCode:"invalid_grant",envelope:"oauth_error",httpStatus:400,retryable:false},{wireCode:"invalid_redirect_uri",envelope:"oauth_error",httpStatus:400,retryable:false},{wireCode:"invalid_request",envelope:"oauth_error",httpStatus:400,retryable:false},{wireCode:"invalid_scope",envelope:"oauth_error",httpStatus:400,retryable:false},{wireCode:"invalid_target",envelope:"oauth_error",httpStatus:400,retryable:false},{wireCode:"item_id_invalid",envelope:"http_envelope",httpStatus:422,retryable:false},{wireCode:"linked_account_read_only",envelope:"http_envelope",httpStatus:409,retryable:false},{wireCode:"mcp_connection_not_found",envelope:"http_envelope",httpStatus:404,retryable:false},{wireCode:"mcp_request_conflict",envelope:"http_envelope",httpStatus:409,retryable:false},{wireCode:"mcp_request_gone",envelope:"http_envelope",httpStatus:410,retryable:false},{wireCode:"mcp_request_not_found",envelope:"http_envelope",httpStatus:404,retryable:false},{wireCode:"not_found",envelope:"sse_frame",httpStatus:200,retryable:false},{wireCode:"open_url_not_allowed",envelope:"http_envelope",httpStatus:422,retryable:false},{wireCode:"partner_visit_link_conflict",envelope:"http_envelope",httpStatus:409,retryable:false},{wireCode:"partner_visit_owner_only",envelope:"http_envelope",httpStatus:403,retryable:false},{wireCode:"partner_visit_pet_already_mapped",envelope:"http_envelope",httpStatus:409,retryable:false},{wireCode:"payload_too_large",envelope:"http_envelope",httpStatus:413,retryable:false},{wireCode:"petRefInUse",envelope:"http_envelope",httpStatus:409,retryable:false},{wireCode:"pet_health_list_removals_unconfirmed",envelope:"http_envelope",httpStatus:422,retryable:false},{wireCode:"pet_health_species_unsupported",envelope:"http_envelope",httpStatus:422,retryable:false},{wireCode:"pet_not_registered",envelope:"http_envelope",httpStatus:404,retryable:false},{wireCode:"provider_unsupported",envelope:"http_envelope",httpStatus:422,retryable:false},{wireCode:"rateLimited",envelope:"http_envelope",httpStatus:429,retryable:true},{wireCode:"read_target_invalid",envelope:"http_envelope",httpStatus:422,retryable:false},{wireCode:"record_species_unsupported",envelope:"http_envelope",httpStatus:422,retryable:false},{wireCode:"record_subject_not_found",envelope:"http_envelope",httpStatus:404,retryable:false},{wireCode:"record_upload_invalid",envelope:"http_envelope",httpStatus:400,retryable:false},{wireCode:"records_consent_required",envelope:"http_envelope",httpStatus:409,retryable:false},{wireCode:"sandbox_only",envelope:"http_envelope",httpStatus:403,retryable:false},{wireCode:"session_required",envelope:"http_envelope",httpStatus:403,retryable:false},{wireCode:"session_revoked",envelope:"http_envelope",httpStatus:401,retryable:false},{wireCode:"share_limit_reached",envelope:"http_envelope",httpStatus:429,retryable:false},{wireCode:"slow_down",envelope:"oauth_error",httpStatus:429,retryable:true},{wireCode:"species_unsupported",envelope:"http_envelope",httpStatus:422,retryable:false},{wireCode:"subscription_keys_invalid",envelope:"http_envelope",httpStatus:422,retryable:false},{wireCode:"tenant_filter_invalid",envelope:"http_envelope",httpStatus:400,retryable:false},{wireCode:"tenant_has_no_capabilities",envelope:"http_envelope",httpStatus:409,retryable:false},{wireCode:"tenant_resource_not_found",envelope:"http_envelope",httpStatus:404,retryable:false},{wireCode:"tenant_surface_not_enabled",envelope:"http_envelope",httpStatus:409,retryable:false},{wireCode:"timeout",envelope:"sse_frame",httpStatus:200,retryable:true},{wireCode:"token_invalid",envelope:"http_envelope",httpStatus:422,retryable:false},{wireCode:"unavailable",envelope:"sse_frame",httpStatus:200,retryable:true},{wireCode:"unavailable",envelope:"http_envelope",httpStatus:503,retryable:true},{wireCode:"unrestrictedKeyRequired",envelope:"http_envelope",httpStatus:403,retryable:false},{wireCode:"unsupported_grant_type",envelope:"oauth_error",httpStatus:400,retryable:false},{wireCode:"unsupported_response_type",envelope:"oauth_error",httpStatus:302,retryable:false},{wireCode:"user_ref_invalid",envelope:"http_envelope",httpStatus:400,retryable:false},{wireCode:"verify_mint_rate_limited",envelope:"http_envelope",httpStatus:429,retryable:true},{wireCode:"verify_mint_refused",envelope:"http_envelope",httpStatus:403,retryable:false},{wireCode:"verify_mint_unavailable",envelope:"http_envelope",httpStatus:503,retryable:true},{wireCode:"verify_user_ref_invalid",envelope:"http_envelope",httpStatus:422,retryable:false},{wireCode:"web_push_unavailable",envelope:"http_envelope",httpStatus:503,retryable:true},{wireCode:"webhook_endpoint_update_empty",envelope:"http_envelope",httpStatus:400,retryable:false},{wireCode:"webhook_endpoint_update_invalid",envelope:"http_envelope",httpStatus:400,retryable:false},{wireCode:"webhook_url_rejected",envelope:"http_envelope",httpStatus:400,retryable:false}],CONTRACT_RETRYABILITY=/* @__PURE__ */Object.freeze(RETRYABILITY_ROWS.map(row=>/* @__PURE__ */Object.freeze(row)));/* @__PURE__ */Object.freeze(CONTRACT_RETRYABILITY.map(row=>row.wireCode));var NORMALIZED_FOLD=/* @__PURE__ */Object.freeze({ValidationException:"validationFailed",AuthorizationException:"authRejected",PaymentRequiredException:"paymentRequired",AccessDeniedException:"accessDenied",ResourceNotFoundException:"resourceNotFound",ConflictException:"conflict",ThrottlingException:"rateLimited",InternalFailureException:"internalError",NotImplementedException:"notImplemented",ServiceUnavailableException:"serviceUnavailable",MethodNotAllowedException:"validationFailed",authExpired:"authExpired",unavailable:"serviceUnavailable",session_required:"sessionRequired",session_revoked:"authExpired",accessDenied:"accessDenied",invalidRequest:"sdkUpdateRequired",authRejected:"authRejected",rateLimited:"rateLimited",insufficientCapability:"accessDenied",unrestrictedKeyRequired:"accessDenied",user_ref_invalid:"validationFailed",event_cursor_invalid:"validationFailed",event_filter_invalid:"validationFailed",event_payload_invalid:"validationFailed",event_type_unknown:"validationFailed",idempotency_key_invalid:"validationFailed",idempotency_key_required:"validationFailed",idempotency_key_reused:"idempotencyConflict",payload_too_large:"validationFailed",webhook_url_rejected:"validationFailed",webhook_endpoint_update_empty:"validationFailed",webhook_endpoint_update_invalid:"validationFailed",event_type_not_available:"conflict",record_subject_not_found:"resourceNotFound",records_consent_required:"conflict",record_species_unsupported:"validationFailed",record_upload_invalid:"validationFailed",FILE_TOO_LARGE:"validationFailed",INVALID_CONTENT_TYPE:"validationFailed",attachment_unreadable:"validationFailed",provider_unsupported:"validationFailed",token_invalid:"validationFailed",device_cipher_unavailable:"serviceUnavailable",email_invalid:"validationFailed",consent_required:"validationFailed",consent_invalid:"validationFailed",consent_scope_wrong_route:"validationFailed",IDEMPOTENCY_KEY_IN_FLIGHT:"idempotencyInFlight",IDEMPOTENCY_KEY_REUSED_DIFFERENT_REQUEST:"idempotencyConflict",DAILY_QUOTA_EXCEEDED:"quotaExceeded",TIER_UPGRADE_REQUIRED:"paymentRequired",not_found:"conversationNotFound",timeout:"streamTimeout",internal_error:"internalError",invalid_request:"validationFailed",invalid_client:"authRejected",invalid_grant:"authRejected",unsupported_grant_type:"validationFailed",invalid_scope:"validationFailed",invalid_target:"validationFailed",invalid_redirect_uri:"validationFailed",invalid_client_metadata:"validationFailed",unsupported_response_type:"validationFailed",access_denied:"accessDenied",slow_down:"rateLimited",mcp_request_not_found:"resourceNotFound",mcp_request_gone:"resourceNotFound",mcp_connection_not_found:"resourceNotFound",mcp_request_conflict:"conflict",sandbox_only:"accessDenied",tenant_has_no_capabilities:"conflict",verify_mint_refused:"accessDenied",verify_mint_rate_limited:"rateLimited",verify_mint_unavailable:"serviceUnavailable",verify_user_ref_invalid:"validationFailed",insufficient_scope:"accessDenied",tenant_filter_invalid:"validationFailed",tenant_resource_not_found:"resourceNotFound",tenant_surface_not_enabled:"conflict",pet_health_species_unsupported:"validationFailed",pet_health_list_removals_unconfirmed:"validationFailed",petRefInUse:"conflict",share_limit_reached:"conflict",pet_not_registered:"resourceNotFound",species_unsupported:"validationFailed",partner_visit_owner_only:"accessDenied",partner_visit_link_conflict:"conflict",partner_visit_pet_already_mapped:"conflict",linked_account_read_only:"conflict",catalog_empty_refused:"conflict",catalog_shrink_refused:"conflict",endpoint_not_allowed:"validationFailed",event_id_invalid:"validationFailed",inbox_cursor_invalid:"validationFailed",item_id_invalid:"validationFailed",open_url_not_allowed:"validationFailed",read_target_invalid:"validationFailed",subscription_keys_invalid:"validationFailed",web_push_unavailable:"serviceUnavailable"}),CONTRACT_ERROR_ROWS=/* @__PURE__ */Object.freeze(CONTRACT_RETRYABILITY.map(generated=>/* @__PURE__ */Object.freeze({wireCode:generated.wireCode,envelope:generated.envelope,retryable:generated.retryable,normalized:NORMALIZED_FOLD[generated.wireCode]}))),BY_KEY=new Map(CONTRACT_ERROR_ROWS.map(r=>[r.envelope+r.wireCode.toUpperCase(),r])),ENVELOPE_LOOKUP_ORDER=/* @__PURE__ */Object.freeze(["http_envelope",...[...new Set(CONTRACT_ERROR_ROWS.map(r=>r.envelope))].filter(e=>e!=="http_envelope").sort()]);function contractErrorFor(wireCode,envelope){if(typeof wireCode!="string")return;let key=wireCode.trim().toUpperCase();if(key.length!==0)for(let candidate of[envelope??"http_envelope",...ENVELOPE_LOOKUP_ORDER]){let row=BY_KEY.get(candidate+key);if(row)return row}}var CATEGORY_OF=/* @__PURE__ */Object.freeze({authExpired:"authentication",authRejected:"authentication",sessionRequired:"authentication",identitySignatureRequired:"authentication",accessDenied:"authorization",paymentRequired:"entitlement",quotaExceeded:"rateLimit",rateLimited:"rateLimit",validationFailed:"invalidRequest",sdkUpdateRequired:"invalidRequest",runtimeDisposed:"invalidRequest",conversationNotFound:"notFound",petNotFound:"notFound",resourceNotFound:"notFound",conflict:"conflict",idempotencyConflict:"conflict",idempotencyInFlight:"conflict",streamTimeout:"connection",streamIncomplete:"connection",upstreamLlmTimeout:"connection",serviceUnavailable:"connection",internalError:"server",notImplemented:"server",mediaUploadFailed:"media",moderationBlocked:"policy",unknown:"unknown"});function categoryFor(code){return CATEGORY_OF[code]}function fromWire(wire){let contractRow=contractErrorFor(wire);if(contractRow)return contractRow.normalized;let upper=(wire??"").trim().toUpperCase(),canonical=upper.replace(/[^A-Z0-9]/g,"");if(canonical==="AUTHREJECTED")return"authRejected";if(upper.startsWith("AUTH"))return"authExpired";switch(canonical){case"DAILYQUOTAEXCEEDED":case"QUOTAEXCEEDED":return"quotaExceeded";case"RATELIMITED":case"TOOMANYREQUESTS":case"TELEVETRATELIMITED":return"rateLimited";case"IDEMPOTENCYKEYCONFLICT":case"IDEMPOTENCYCONFLICT":return"idempotencyConflict";case"ACCESSDENIED":case"FORBIDDEN":return"accessDenied";case"IDENTITYSIGNATUREREQUIRED":return"identitySignatureRequired";case"RUNTIMEDISPOSED":return"runtimeDisposed";case"NOTFOUND":case"CONVERSATIONNOTFOUND":return"conversationNotFound";case"PETNOTFOUND":return"petNotFound";case"TIMEOUT":case"STREAMTIMEOUT":return"streamTimeout";case"MEDIAUPLOADFAILED":case"UNRECOGNIZEDVIDEOFORMAT":case"FILETOOSMALL":return"mediaUploadFailed";case"MODERATIONBLOCKED":return"moderationBlocked";case"UPSTREAMLLMTIMEOUT":return"upstreamLlmTimeout";case"INTERNALERROR":case"INTERNALSERVERERROR":return"internalError";case"STREAMINCOMPLETE":case"CHATSTREAMINCOMPLETE":return"streamIncomplete";case"INVALIDANALYSISTYPE":case"INVALIDUPLOADPURPOSE":return"unknown";default:return"unknown"}}var AUTO_RETRYABLE_CODES=/* @__PURE__ */new Set(["streamTimeout","rateLimited","internalError","upstreamLlmTimeout","streamIncomplete"]);function isAutoRetryable(code){return AUTO_RETRYABLE_CODES.has(code)}var RETRYABLE_CONTRACT_CODES=/* @__PURE__ */new Set(["serviceUnavailable","conflict","idempotencyInFlight"]);function isRetryableCode(code){return isAutoRetryable(code)||RETRYABLE_CONTRACT_CODES.has(code)}var BACKOFF_BASE_MS=500,BACKOFF_CAP_MS=8e3,MAX_RETRY_ATTEMPTS=4;function backoffDelayMs(attempt,rng=Math.random){let bounded=Math.max(0,attempt),ceiling=Math.min(BACKOFF_BASE_MS*2**bounded,BACKOFF_CAP_MS);return Math.floor(rng()*ceiling)}var ACCESS_DENIED_COPY="This feature isn't available on your account right now.",VALIDATION_FAILED_COPY="Something in that request was not right. Check the details and try again.",USER_FACING_COPY=/* @__PURE__ */Object.freeze({authExpired:"Please sign in again to continue.",authRejected:"Please sign in again to continue.",sessionRequired:"This app needs to be updated to keep using Everfur.",accessDenied:ACCESS_DENIED_COPY,paymentRequired:"This is part of a paid plan.",quotaExceeded:"You have used today's messages. This resets tomorrow.",rateLimited:"You are sending messages quickly. Try again in a few seconds.",validationFailed:VALIDATION_FAILED_COPY,sdkUpdateRequired:"This app needs to be updated to keep using Everfur.",conflict:"That is already running. Wait for it to finish, then try again.",idempotencyConflict:"That message was already delivered.",idempotencyInFlight:"That is still processing. Give it a moment.",conversationNotFound:"This conversation is no longer available.",petNotFound:"We could not find that pet. Please pick a pet and try again.",resourceNotFound:"We could not find that.",streamTimeout:"The response timed out. Tap retry to try again.",mediaUploadFailed:"We could not upload that photo. Please attach it again.",moderationBlocked:"This request cannot be answered here.",upstreamLlmTimeout:"The response timed out. Tap retry to try again.",internalError:"We hit a snag on our end. Please try again.",notImplemented:"That is not available yet.",serviceUnavailable:"That service is briefly unavailable. Try again shortly.",streamIncomplete:"The connection dropped mid-answer. Tap retry to continue.",identitySignatureRequired:ACCESS_DENIED_COPY,runtimeDisposed:VALIDATION_FAILED_COPY,unknown:"Something went wrong. Please try again."}),SESSION_REVOKED_COPY="This session has ended. Please sign in again.",LINKED_ACCOUNT_READ_ONLY="linked_account_read_only";function displayFor(code,wireCode,reasonCode){return code==="conflict"&&reasonCode===LINKED_ACCOUNT_READ_ONLY?ACCESS_DENIED_COPY:(code==="authRejected"||code==="authExpired")&&typeof wireCode=="string"&&wireCode.trim().toLowerCase()==="session_revoked"?SESSION_REVOKED_COPY:userFacingError(code)}function userFacingError(code){return USER_FACING_COPY[code]}function defineHidden(target,key,value){Object.defineProperty(target,key,{value:value,enumerable:false,writable:false,configurable:false})}var REASON_CODE_SHAPE=/^[a-z][a-z0-9_]{0,63}$/;function makeEverfurError(code,opts){let row=contractErrorFor(opts?.wireCode,opts?.wireEnvelope),linkedReadOnly=code==="conflict"&&opts?.reasonCode===LINKED_ACCOUNT_READ_ONLY,error={code:code,category:categoryFor(code),retryable:opts?.retryable??(linkedReadOnly?false:isRetryableCode(code)),displayMessage:displayFor(code,opts?.wireCode,linkedReadOnly?LINKED_ACCOUNT_READ_ONLY:null)};opts?.httpStatus!==void 0&&(error.httpStatus=opts.httpStatus),opts?.requestId&&(error.requestId=opts.requestId),typeof opts?.reasonCode=="string"&&REASON_CODE_SHAPE.test(opts.reasonCode)&&(error.reasonCode=opts.reasonCode);let wait=opts?.retryAfterSeconds;if(typeof wait=="number"&&Number.isFinite(wait)&&wait>=0&&(error.retryAfterSeconds=Math.round(wait)),row);return opts?.wireMessage&&defineHidden(error,"wireMessage",opts.wireMessage),opts?.raw!==void 0&&opts.raw!==null&&defineHidden(error,"raw",opts.raw),/* @__PURE__ */Object.freeze(error)}function ok(value,warning){/* @__PURE__ */
3
+ import{createContext,useMemo,useRef,useEffect,useSyncExternalStore,useCallback,useId,useState,useContext,createElement,Component}from"react";import{jsxs,jsx,Fragment}from"react/jsx-runtime";function reportHostFailure(error){let globalConsole=globalThis.console;try{globalConsole?.error?.("[everfur] A host callback threw; the SDK ignored it.",error)}catch{}}function isThenable(value){return(typeof value=="object"||typeof value=="function")&&value!==null&&typeof value.then=="function"}function callHost(fn,...args){if(typeof fn=="function")try{let result=fn(...args);return isThenable(result)&&Promise.resolve(result).then(void 0,reportHostFailure),result}catch(error){reportHostFailure(error);return}}var GUARDED=/* @__PURE__ */new WeakMap;function guardHost(fn){if(typeof fn!="function")return;let cached=GUARDED.get(fn);if(cached!==void 0)return cached;let guarded=(...args)=>{callHost(fn,...args)};return GUARDED.set(fn,guarded),guarded}function guardHostProps(props,names){let guarded=null;for(let name of names){let fn=props[name];typeof fn=="function"&&(guarded??={...props},guarded[name]=guardHost(fn))}return guarded??props}var HostRenderBoundary=class extends Component{constructor(){super(...arguments);this.state={failed:false,key:this.props.resetKey}}static getDerivedStateFromError(){return{failed:true}}static getDerivedStateFromProps(props,state2){return Object.is(props.resetKey,state2.key)?null:{failed:false,key:props.resetKey}}render(){return this.state.failed?this.props.fallback:this.props.children}};function RenderHost({render:render}){return render()}function HostRender({render:render,fallback:fallback,resetKey:resetKey}){return createElement(HostRenderBoundary,{fallback:fallback,resetKey:resetKey,children:createElement(RenderHost,{render:render})})}var RETRYABILITY_ROWS=[{wireCode:"AccessDeniedException",envelope:"http_envelope",httpStatus:403,retryable:false},{wireCode:"AuthorizationException",envelope:"http_envelope",httpStatus:401,retryable:false},{wireCode:"ConflictException",envelope:"http_envelope",httpStatus:409,retryable:true},{wireCode:"DAILY_QUOTA_EXCEEDED",envelope:"http_envelope",httpStatus:429,retryable:true},{wireCode:"FILE_TOO_LARGE",envelope:"http_envelope",httpStatus:400,retryable:false},{wireCode:"IDEMPOTENCY_KEY_IN_FLIGHT",envelope:"http_envelope",httpStatus:409,retryable:true},{wireCode:"IDEMPOTENCY_KEY_REUSED_DIFFERENT_REQUEST",envelope:"http_envelope",httpStatus:409,retryable:false},{wireCode:"INVALID_CONTENT_TYPE",envelope:"http_envelope",httpStatus:400,retryable:false},{wireCode:"InternalFailureException",envelope:"http_envelope",httpStatus:500,retryable:true},{wireCode:"MethodNotAllowedException",envelope:"http_envelope",httpStatus:405,retryable:false},{wireCode:"NotImplementedException",envelope:"http_envelope",httpStatus:501,retryable:false},{wireCode:"PaymentRequiredException",envelope:"http_envelope",httpStatus:402,retryable:false},{wireCode:"ResourceNotFoundException",envelope:"http_envelope",httpStatus:404,retryable:false},{wireCode:"ServiceUnavailableException",envelope:"http_envelope",httpStatus:503,retryable:true},{wireCode:"TIER_UPGRADE_REQUIRED",envelope:"http_envelope",httpStatus:402,retryable:false},{wireCode:"ThrottlingException",envelope:"http_envelope",httpStatus:429,retryable:true},{wireCode:"ValidationException",envelope:"http_envelope",httpStatus:400,retryable:false},{wireCode:"accessDenied",envelope:"http_envelope",httpStatus:403,retryable:false},{wireCode:"access_denied",envelope:"oauth_error",httpStatus:302,retryable:false},{wireCode:"anonTokenInvalid",envelope:"http_envelope",httpStatus:401,retryable:false},{wireCode:"attachment_unreadable",envelope:"http_envelope",httpStatus:400,retryable:false},{wireCode:"authExpired",envelope:"http_envelope",httpStatus:401,retryable:true},{wireCode:"authRejected",envelope:"http_envelope",httpStatus:401,retryable:false},{wireCode:"catalog_empty_refused",envelope:"http_envelope",httpStatus:409,retryable:false},{wireCode:"catalog_shrink_refused",envelope:"http_envelope",httpStatus:409,retryable:false},{wireCode:"consent_invalid",envelope:"http_envelope",httpStatus:422,retryable:false},{wireCode:"consent_required",envelope:"http_envelope",httpStatus:422,retryable:false},{wireCode:"consent_scope_wrong_route",envelope:"http_envelope",httpStatus:400,retryable:false},{wireCode:"device_cipher_unavailable",envelope:"http_envelope",httpStatus:503,retryable:true},{wireCode:"email_invalid",envelope:"http_envelope",httpStatus:422,retryable:false},{wireCode:"endpoint_not_allowed",envelope:"http_envelope",httpStatus:422,retryable:false},{wireCode:"event_cursor_invalid",envelope:"http_envelope",httpStatus:400,retryable:false},{wireCode:"event_filter_invalid",envelope:"http_envelope",httpStatus:400,retryable:false},{wireCode:"event_id_invalid",envelope:"http_envelope",httpStatus:422,retryable:false},{wireCode:"event_payload_invalid",envelope:"http_envelope",httpStatus:400,retryable:false},{wireCode:"event_type_not_available",envelope:"http_envelope",httpStatus:400,retryable:false},{wireCode:"event_type_unknown",envelope:"http_envelope",httpStatus:400,retryable:false},{wireCode:"idempotency_key_invalid",envelope:"http_envelope",httpStatus:400,retryable:false},{wireCode:"idempotency_key_required",envelope:"http_envelope",httpStatus:400,retryable:false},{wireCode:"idempotency_key_reused",envelope:"http_envelope",httpStatus:409,retryable:false},{wireCode:"inbox_cursor_invalid",envelope:"http_envelope",httpStatus:422,retryable:false},{wireCode:"insufficientCapability",envelope:"http_envelope",httpStatus:403,retryable:false},{wireCode:"insufficient_scope",envelope:"http_envelope",httpStatus:403,retryable:false},{wireCode:"internal_error",envelope:"sse_frame",httpStatus:200,retryable:false},{wireCode:"invalidRequest",envelope:"http_envelope",httpStatus:400,retryable:false},{wireCode:"invalid_client",envelope:"oauth_error",httpStatus:401,retryable:false},{wireCode:"invalid_client_metadata",envelope:"oauth_error",httpStatus:400,retryable:false},{wireCode:"invalid_grant",envelope:"oauth_error",httpStatus:400,retryable:false},{wireCode:"invalid_redirect_uri",envelope:"oauth_error",httpStatus:400,retryable:false},{wireCode:"invalid_request",envelope:"oauth_error",httpStatus:400,retryable:false},{wireCode:"invalid_scope",envelope:"oauth_error",httpStatus:400,retryable:false},{wireCode:"invalid_target",envelope:"oauth_error",httpStatus:400,retryable:false},{wireCode:"item_id_invalid",envelope:"http_envelope",httpStatus:422,retryable:false},{wireCode:"linked_account_read_only",envelope:"http_envelope",httpStatus:409,retryable:false},{wireCode:"mcp_connection_not_found",envelope:"http_envelope",httpStatus:404,retryable:false},{wireCode:"mcp_request_conflict",envelope:"http_envelope",httpStatus:409,retryable:false},{wireCode:"mcp_request_gone",envelope:"http_envelope",httpStatus:410,retryable:false},{wireCode:"mcp_request_not_found",envelope:"http_envelope",httpStatus:404,retryable:false},{wireCode:"not_found",envelope:"sse_frame",httpStatus:200,retryable:false},{wireCode:"open_url_not_allowed",envelope:"http_envelope",httpStatus:422,retryable:false},{wireCode:"partner_visit_link_conflict",envelope:"http_envelope",httpStatus:409,retryable:false},{wireCode:"partner_visit_owner_only",envelope:"http_envelope",httpStatus:403,retryable:false},{wireCode:"partner_visit_pet_already_mapped",envelope:"http_envelope",httpStatus:409,retryable:false},{wireCode:"payload_too_large",envelope:"http_envelope",httpStatus:413,retryable:false},{wireCode:"petRefInUse",envelope:"http_envelope",httpStatus:409,retryable:false},{wireCode:"pet_health_list_removals_unconfirmed",envelope:"http_envelope",httpStatus:422,retryable:false},{wireCode:"pet_health_species_unsupported",envelope:"http_envelope",httpStatus:422,retryable:false},{wireCode:"pet_not_registered",envelope:"http_envelope",httpStatus:404,retryable:false},{wireCode:"provider_unsupported",envelope:"http_envelope",httpStatus:422,retryable:false},{wireCode:"rateLimited",envelope:"http_envelope",httpStatus:429,retryable:true},{wireCode:"read_target_invalid",envelope:"http_envelope",httpStatus:422,retryable:false},{wireCode:"record_species_unsupported",envelope:"http_envelope",httpStatus:422,retryable:false},{wireCode:"record_subject_not_found",envelope:"http_envelope",httpStatus:404,retryable:false},{wireCode:"record_upload_invalid",envelope:"http_envelope",httpStatus:400,retryable:false},{wireCode:"records_consent_required",envelope:"http_envelope",httpStatus:409,retryable:false},{wireCode:"sandbox_only",envelope:"http_envelope",httpStatus:403,retryable:false},{wireCode:"session_required",envelope:"http_envelope",httpStatus:403,retryable:false},{wireCode:"session_revoked",envelope:"http_envelope",httpStatus:401,retryable:false},{wireCode:"share_limit_reached",envelope:"http_envelope",httpStatus:429,retryable:false},{wireCode:"slow_down",envelope:"oauth_error",httpStatus:429,retryable:true},{wireCode:"species_unsupported",envelope:"http_envelope",httpStatus:422,retryable:false},{wireCode:"subscription_keys_invalid",envelope:"http_envelope",httpStatus:422,retryable:false},{wireCode:"tenant_filter_invalid",envelope:"http_envelope",httpStatus:400,retryable:false},{wireCode:"tenant_has_no_capabilities",envelope:"http_envelope",httpStatus:409,retryable:false},{wireCode:"tenant_resource_not_found",envelope:"http_envelope",httpStatus:404,retryable:false},{wireCode:"tenant_surface_not_enabled",envelope:"http_envelope",httpStatus:409,retryable:false},{wireCode:"timeout",envelope:"sse_frame",httpStatus:200,retryable:true},{wireCode:"token_invalid",envelope:"http_envelope",httpStatus:422,retryable:false},{wireCode:"unavailable",envelope:"sse_frame",httpStatus:200,retryable:true},{wireCode:"unavailable",envelope:"http_envelope",httpStatus:503,retryable:true},{wireCode:"unrestrictedKeyRequired",envelope:"http_envelope",httpStatus:403,retryable:false},{wireCode:"unsupported_grant_type",envelope:"oauth_error",httpStatus:400,retryable:false},{wireCode:"unsupported_response_type",envelope:"oauth_error",httpStatus:302,retryable:false},{wireCode:"user_ref_invalid",envelope:"http_envelope",httpStatus:400,retryable:false},{wireCode:"verify_mint_rate_limited",envelope:"http_envelope",httpStatus:429,retryable:true},{wireCode:"verify_mint_refused",envelope:"http_envelope",httpStatus:403,retryable:false},{wireCode:"verify_mint_unavailable",envelope:"http_envelope",httpStatus:503,retryable:true},{wireCode:"verify_user_ref_invalid",envelope:"http_envelope",httpStatus:422,retryable:false},{wireCode:"web_push_unavailable",envelope:"http_envelope",httpStatus:503,retryable:true},{wireCode:"webhook_endpoint_update_empty",envelope:"http_envelope",httpStatus:400,retryable:false},{wireCode:"webhook_endpoint_update_invalid",envelope:"http_envelope",httpStatus:400,retryable:false},{wireCode:"webhook_url_rejected",envelope:"http_envelope",httpStatus:400,retryable:false}],CONTRACT_RETRYABILITY=/* @__PURE__ */Object.freeze(RETRYABILITY_ROWS.map(row=>/* @__PURE__ */Object.freeze(row)));/* @__PURE__ */Object.freeze(CONTRACT_RETRYABILITY.map(row=>row.wireCode));var NORMALIZED_FOLD=/* @__PURE__ */Object.freeze({ValidationException:"validationFailed",AuthorizationException:"authRejected",PaymentRequiredException:"paymentRequired",AccessDeniedException:"accessDenied",ResourceNotFoundException:"resourceNotFound",ConflictException:"conflict",ThrottlingException:"rateLimited",InternalFailureException:"internalError",NotImplementedException:"notImplemented",ServiceUnavailableException:"serviceUnavailable",MethodNotAllowedException:"validationFailed",authExpired:"authExpired",unavailable:"serviceUnavailable",session_required:"sessionRequired",session_revoked:"authExpired",anonTokenInvalid:"authRejected",accessDenied:"accessDenied",invalidRequest:"sdkUpdateRequired",authRejected:"authRejected",rateLimited:"rateLimited",insufficientCapability:"accessDenied",unrestrictedKeyRequired:"accessDenied",user_ref_invalid:"validationFailed",event_cursor_invalid:"validationFailed",event_filter_invalid:"validationFailed",event_payload_invalid:"validationFailed",event_type_unknown:"validationFailed",idempotency_key_invalid:"validationFailed",idempotency_key_required:"validationFailed",idempotency_key_reused:"idempotencyConflict",payload_too_large:"validationFailed",webhook_url_rejected:"validationFailed",webhook_endpoint_update_empty:"validationFailed",webhook_endpoint_update_invalid:"validationFailed",event_type_not_available:"conflict",record_subject_not_found:"resourceNotFound",records_consent_required:"conflict",record_species_unsupported:"validationFailed",record_upload_invalid:"validationFailed",FILE_TOO_LARGE:"validationFailed",INVALID_CONTENT_TYPE:"validationFailed",attachment_unreadable:"validationFailed",provider_unsupported:"validationFailed",token_invalid:"validationFailed",device_cipher_unavailable:"serviceUnavailable",email_invalid:"validationFailed",consent_required:"validationFailed",consent_invalid:"validationFailed",consent_scope_wrong_route:"validationFailed",IDEMPOTENCY_KEY_IN_FLIGHT:"idempotencyInFlight",IDEMPOTENCY_KEY_REUSED_DIFFERENT_REQUEST:"idempotencyConflict",DAILY_QUOTA_EXCEEDED:"quotaExceeded",TIER_UPGRADE_REQUIRED:"paymentRequired",not_found:"conversationNotFound",timeout:"streamTimeout",internal_error:"internalError",invalid_request:"validationFailed",invalid_client:"authRejected",invalid_grant:"authRejected",unsupported_grant_type:"validationFailed",invalid_scope:"validationFailed",invalid_target:"validationFailed",invalid_redirect_uri:"validationFailed",invalid_client_metadata:"validationFailed",unsupported_response_type:"validationFailed",access_denied:"accessDenied",slow_down:"rateLimited",mcp_request_not_found:"resourceNotFound",mcp_request_gone:"resourceNotFound",mcp_connection_not_found:"resourceNotFound",mcp_request_conflict:"conflict",sandbox_only:"accessDenied",tenant_has_no_capabilities:"conflict",verify_mint_refused:"accessDenied",verify_mint_rate_limited:"rateLimited",verify_mint_unavailable:"serviceUnavailable",verify_user_ref_invalid:"validationFailed",insufficient_scope:"accessDenied",tenant_filter_invalid:"validationFailed",tenant_resource_not_found:"resourceNotFound",tenant_surface_not_enabled:"conflict",pet_health_species_unsupported:"validationFailed",pet_health_list_removals_unconfirmed:"validationFailed",petRefInUse:"conflict",share_limit_reached:"conflict",pet_not_registered:"resourceNotFound",species_unsupported:"validationFailed",partner_visit_owner_only:"accessDenied",partner_visit_link_conflict:"conflict",partner_visit_pet_already_mapped:"conflict",linked_account_read_only:"conflict",catalog_empty_refused:"conflict",catalog_shrink_refused:"conflict",endpoint_not_allowed:"validationFailed",event_id_invalid:"validationFailed",inbox_cursor_invalid:"validationFailed",item_id_invalid:"validationFailed",open_url_not_allowed:"validationFailed",read_target_invalid:"validationFailed",subscription_keys_invalid:"validationFailed",web_push_unavailable:"serviceUnavailable"}),CONTRACT_ERROR_ROWS=/* @__PURE__ */Object.freeze(CONTRACT_RETRYABILITY.map(generated=>/* @__PURE__ */Object.freeze({wireCode:generated.wireCode,envelope:generated.envelope,retryable:generated.retryable,normalized:NORMALIZED_FOLD[generated.wireCode]}))),BY_KEY=new Map(CONTRACT_ERROR_ROWS.map(r=>[r.envelope+r.wireCode.toUpperCase(),r])),ENVELOPE_LOOKUP_ORDER=/* @__PURE__ */Object.freeze(["http_envelope",...[...new Set(CONTRACT_ERROR_ROWS.map(r=>r.envelope))].filter(e=>e!=="http_envelope").sort()]);function contractErrorFor(wireCode,envelope){if(typeof wireCode!="string")return;let key=wireCode.trim().toUpperCase();if(key.length!==0)for(let candidate of[envelope??"http_envelope",...ENVELOPE_LOOKUP_ORDER]){let row=BY_KEY.get(candidate+key);if(row)return row}}var CATEGORY_OF=/* @__PURE__ */Object.freeze({authExpired:"authentication",authRejected:"authentication",sessionRequired:"authentication",identitySignatureRequired:"authentication",accessDenied:"authorization",paymentRequired:"entitlement",quotaExceeded:"rateLimit",rateLimited:"rateLimit",validationFailed:"invalidRequest",sdkUpdateRequired:"invalidRequest",runtimeDisposed:"invalidRequest",conversationNotFound:"notFound",petNotFound:"notFound",resourceNotFound:"notFound",conflict:"conflict",idempotencyConflict:"conflict",idempotencyInFlight:"conflict",streamTimeout:"connection",streamIncomplete:"connection",upstreamLlmTimeout:"connection",serviceUnavailable:"connection",internalError:"server",notImplemented:"server",mediaUploadFailed:"media",moderationBlocked:"policy",unknown:"unknown"});function categoryFor(code){return CATEGORY_OF[code]}function fromWire(wire){let contractRow=contractErrorFor(wire);if(contractRow)return contractRow.normalized;let upper=(wire??"").trim().toUpperCase(),canonical=upper.replace(/[^A-Z0-9]/g,"");if(canonical==="AUTHREJECTED")return"authRejected";if(upper.startsWith("AUTH"))return"authExpired";switch(canonical){case"DAILYQUOTAEXCEEDED":case"QUOTAEXCEEDED":return"quotaExceeded";case"RATELIMITED":case"TOOMANYREQUESTS":case"TELEVETRATELIMITED":return"rateLimited";case"IDEMPOTENCYKEYCONFLICT":case"IDEMPOTENCYCONFLICT":return"idempotencyConflict";case"ACCESSDENIED":case"FORBIDDEN":return"accessDenied";case"IDENTITYSIGNATUREREQUIRED":return"identitySignatureRequired";case"RUNTIMEDISPOSED":return"runtimeDisposed";case"NOTFOUND":case"CONVERSATIONNOTFOUND":return"conversationNotFound";case"PETNOTFOUND":return"petNotFound";case"TIMEOUT":case"STREAMTIMEOUT":return"streamTimeout";case"MEDIAUPLOADFAILED":case"UNRECOGNIZEDVIDEOFORMAT":case"FILETOOSMALL":return"mediaUploadFailed";case"MODERATIONBLOCKED":return"moderationBlocked";case"UPSTREAMLLMTIMEOUT":return"upstreamLlmTimeout";case"INTERNALERROR":case"INTERNALSERVERERROR":return"internalError";case"STREAMINCOMPLETE":case"CHATSTREAMINCOMPLETE":return"streamIncomplete";case"INVALIDANALYSISTYPE":case"INVALIDUPLOADPURPOSE":return"unknown";default:return"unknown"}}var AUTO_RETRYABLE_CODES=/* @__PURE__ */new Set(["streamTimeout","rateLimited","internalError","upstreamLlmTimeout","streamIncomplete"]);function isAutoRetryable(code){return AUTO_RETRYABLE_CODES.has(code)}var RETRYABLE_CONTRACT_CODES=/* @__PURE__ */new Set(["serviceUnavailable","conflict","idempotencyInFlight"]);function isRetryableCode(code){return isAutoRetryable(code)||RETRYABLE_CONTRACT_CODES.has(code)}var BACKOFF_BASE_MS=500,BACKOFF_CAP_MS=8e3,MAX_RETRY_ATTEMPTS=4;function backoffDelayMs(attempt,rng=Math.random){let bounded=Math.max(0,attempt),ceiling=Math.min(BACKOFF_BASE_MS*2**bounded,BACKOFF_CAP_MS);return Math.floor(rng()*ceiling)}var ACCESS_DENIED_COPY="This feature isn't available on your account right now.",VALIDATION_FAILED_COPY="Something in that request was not right. Check the details and try again.",USER_FACING_COPY=/* @__PURE__ */Object.freeze({authExpired:"Please sign in again to continue.",authRejected:"Please sign in again to continue.",sessionRequired:"This app needs to be updated to keep using Everfur.",accessDenied:ACCESS_DENIED_COPY,paymentRequired:"This is part of a paid plan.",quotaExceeded:"You have used today's messages. This resets tomorrow.",rateLimited:"You are sending messages quickly. Try again in a few seconds.",validationFailed:VALIDATION_FAILED_COPY,sdkUpdateRequired:"This app needs to be updated to keep using Everfur.",conflict:"That is already running. Wait for it to finish, then try again.",idempotencyConflict:"That message was already delivered.",idempotencyInFlight:"That is still processing. Give it a moment.",conversationNotFound:"This conversation is no longer available.",petNotFound:"We could not find that pet. Please pick a pet and try again.",resourceNotFound:"We could not find that.",streamTimeout:"The response timed out. Tap retry to try again.",mediaUploadFailed:"We could not upload that photo. Please attach it again.",moderationBlocked:"This request cannot be answered here.",upstreamLlmTimeout:"The response timed out. Tap retry to try again.",internalError:"We hit a snag on our end. Please try again.",notImplemented:"That is not available yet.",serviceUnavailable:"That service is briefly unavailable. Try again shortly.",streamIncomplete:"The connection dropped mid-answer. Tap retry to continue.",identitySignatureRequired:ACCESS_DENIED_COPY,runtimeDisposed:VALIDATION_FAILED_COPY,unknown:"Something went wrong. Please try again."}),SESSION_REVOKED_COPY="This session has ended. Please sign in again.",LINKED_ACCOUNT_READ_ONLY="linked_account_read_only";function displayFor(code,wireCode,reasonCode){return code==="conflict"&&reasonCode===LINKED_ACCOUNT_READ_ONLY?ACCESS_DENIED_COPY:(code==="authRejected"||code==="authExpired")&&typeof wireCode=="string"&&wireCode.trim().toLowerCase()==="session_revoked"?SESSION_REVOKED_COPY:userFacingError(code)}function userFacingError(code){return USER_FACING_COPY[code]}function defineHidden(target,key,value){Object.defineProperty(target,key,{value:value,enumerable:false,writable:false,configurable:false})}var REASON_CODE_SHAPE=/^[a-z][a-z0-9_]{0,63}$/;function makeEverfurError(code,opts){let row=contractErrorFor(opts?.wireCode,opts?.wireEnvelope),linkedReadOnly=code==="conflict"&&opts?.reasonCode===LINKED_ACCOUNT_READ_ONLY,error={code:code,category:categoryFor(code),retryable:opts?.retryable??(linkedReadOnly?false:isRetryableCode(code)),displayMessage:displayFor(code,opts?.wireCode,linkedReadOnly?LINKED_ACCOUNT_READ_ONLY:null)};opts?.httpStatus!==void 0&&(error.httpStatus=opts.httpStatus),opts?.requestId&&(error.requestId=opts.requestId),typeof opts?.reasonCode=="string"&&REASON_CODE_SHAPE.test(opts.reasonCode)&&(error.reasonCode=opts.reasonCode);let wait=opts?.retryAfterSeconds;if(typeof wait=="number"&&Number.isFinite(wait)&&wait>=0&&(error.retryAfterSeconds=Math.round(wait)),row);return opts?.wireMessage&&defineHidden(error,"wireMessage",opts.wireMessage),opts?.raw!==void 0&&opts.raw!==null&&defineHidden(error,"raw",opts.raw),/* @__PURE__ */Object.freeze(error)}function ok(value,warning){/* @__PURE__ */
4
4
  return Object.freeze({ok:true,value:value})}function err(error){/* @__PURE__ */
5
5
  return Object.freeze({ok:false,error:error})}var EverfurConfigError=class _EverfurConfigError extends Error{constructor(kind,message){super(message),this.name="EverfurConfigError",this.kind=kind,Object.setPrototypeOf(this,_EverfurConfigError.prototype)}};function assertNever(x){throw new Error(`assertNever: unhandled discriminated-union member ${JSON.stringify(x)}`)}function errorFrame(fields){/* @__PURE__ */
6
6
  return Object.freeze({kind:"error",terminal:true,code:fields.code,retryable:fields.retryable,wireMessage:fields.wireMessage,synthesized:fields.synthesized,lastEventId:fields.lastEventId,serverRequestId:null})}function mintFailedError(cause,refusal){let message=cause instanceof Error?cause.message:typeof cause=="string"?cause:null;return makeEverfurError("authRejected",{retryable:false,...refusal?.wireCode?{wireCode:refusal.wireCode}:{},...refusal?.requestId?{requestId:refusal.requestId}:{},...message?{wireMessage:message}:{},...cause!=null?{raw:cause}:{}})}function authHeaders(auth){let headers={};return auth.mode==="personalized"?headers.authorization=`Bearer ${auth.token}`:headers["x-everfur-partner-key"]=auth.publishableKey,auth.userRef&&(headers["x-everfur-user-ref"]=auth.userRef),auth.sessionId&&(headers["x-everfur-session-id"]=auth.sessionId),headers}function withAuthHeaders(req,auth){return{...req,headers:{...stripAuthHeaders(req.headers),...authHeaders(auth)}}}function stripAuthHeaders(headers){if(!headers)return{};let out={};for(let[key,value]of Object.entries(headers)){let lower=key.toLowerCase();lower==="authorization"||lower==="x-everfur-partner-key"||(out[key]=value)}return out}async function authedSend(req,ctx){if(ctx.mode==="anonymous")return ctx.transport.request(withAuthHeaders(req,{mode:"anonymous",publishableKey:ctx.publishableKey,userRef:ctx.userRef,...ctx.sessionId?{sessionId:ctx.sessionId}:{}}));let token;try{token=await ctx.identity.currentToken()}catch(cause){return ctx.identity.reportRejected?.(),err(mintFailedError(cause))}let first=await ctx.transport.request(withAuthHeaders(req,{mode:"personalized",token:token,userRef:ctx.userRef,...ctx.sessionId?{sessionId:ctx.sessionId}:{}}));if(first.ok||first.error.httpStatus!==401)return first;let refreshed;try{refreshed=await ctx.identity.currentToken({forceRefresh:!0})}catch(cause){return ctx.identity.reportRejected?.(),err(mintFailedError(cause,{wireCode:wireCodeOf(first.error.raw),requestId:first.error.requestId}))}let retry=await ctx.transport.request(withAuthHeaders(req,{mode:"personalized",token:refreshed,userRef:ctx.userRef,...ctx.sessionId?{sessionId:ctx.sessionId}:{}}));return!retry.ok&&retry.error.httpStatus===401?(ctx.identity.reportRejected?.(),err(refusedAfterRemintError(retry.error))):retry}function refusedAfterRemintError(refusal){let raw=refusal.raw,wireCode=wireCodeOf(raw);return makeEverfurError("authRejected",{retryable:false,...refusal.httpStatus!==void 0?{httpStatus:refusal.httpStatus}:{},...refusal.requestId?{requestId:refusal.requestId}:{},...wireCode?{wireCode:wireCode}:{},...refusal.reasonCode?{reasonCode:refusal.reasonCode}:{},...refusal.wireMessage?{wireMessage:refusal.wireMessage}:{},...raw!=null?{raw:raw}:{}})}function wireCodeOf(body){if(typeof body!="object"||body===null)return null;let b=body,code=(typeof b.error=="object"&&b.error!==null?b.error.code:void 0)??b.code;return typeof code=="string"&&code.length>0?code:null}function networkError(cause){return makeEverfurError("internalError",{retryable:true,wireMessage:describeCause(cause)})}function describeCause(cause){return cause instanceof Error?cause.message:typeof cause=="string"?cause:"network request failed"}var FUNNEL_UNARY_TIMEOUT_MS=3e4,RETRY_OVERRIDE_MAX_MS=BACKOFF_CAP_MS*2,IDEMPOTENCY_HEADER="idempotency-key",MUTATING_METHODS=/* @__PURE__ */new Set(["POST","PUT","PATCH","DELETE"]),NOOP_OBSERVER=/* @__PURE__ */Object.freeze({onEvent(){}}),defaultFunnelTimers=/* @__PURE__ */Object.freeze({setTimeout:(handler,ms)=>setTimeout(handler,ms),clearTimeout:handle=>clearTimeout(handle),now:()=>Date.now()});function seededIdempotencyKey(seed){let safe=seed.trim().replace(/[^A-Za-z0-9_.:-]/g,"-");return safe.length===0?null:`efs_${safe}`.slice(0,128)}function createRequestFunnel(deps){let observer=deps.observer??NOOP_OBSERVER,timers=deps.timers??defaultFunnelTimers,rng=deps.rng??Math.random,sleep=deps.sleep??((ms,signal)=>delayAbortable(ms,timers,signal)),ceiling=deps.maxAttempts??MAX_RETRY_ATTEMPTS,timeoutMs=deps.unaryTimeoutMs??FUNNEL_UNARY_TIMEOUT_MS,mintKey=deps.newIdempotencyKey??defaultIdempotencyKeyFactory(),emit=event=>{try{observer.onEvent(event)}catch{}};async function send(call,req,opts){let perCallMaxAttempts=opts?.maxAttempts,maxAttempts=Math.max(1,perCallMaxAttempts??ceiling),idempotent=opts?.idempotent??MUTATING_METHODS.has(req.method),seeded=opts?.idempotencyKey===void 0?null:seededIdempotencyKey(opts.idempotencyKey),idempotencyKey=idempotent?seeded??mintKey():null,base=assembleHeaders(req,idempotencyKey),attempt=0;for(;;){let stamp=extra=>/* @__PURE__ */Object.freeze({call:call,method:req.method,path:req.path,attempt:attempt,...idempotencyKey?{idempotencyKey:idempotencyKey}:{},...extra});emit(stamp({phase:"attempt"}));let deadline=boundedSignal(timeoutMs,timers),merged=mergeSignals(deadline.signal,req.signal),settled;try{settled=await authedSend({...base,signal:merged.signal},deps.auth)}catch(cause){settled=err(networkError(cause))}finally{merged.dispose(),deadline.cancel()}if(settled.ok)return emit(stamp({phase:"settled",ok:true,reason:"ok"})),settled;let error=settled.error,decision=decideRetry(error,attempt,{maxAttempts:maxAttempts,rng:rng,now:timers.now(),aborted:req.signal?.aborted===true,...perCallMaxAttempts!==void 0?{perCallMaxAttempts:perCallMaxAttempts}:{},...deps.errorPolicy!==void 0?{policy:deps.errorPolicy}:{}}),settledEvent={ok:false,code:error.code,reason:decision.reason,...error.httpStatus!==void 0?{httpStatus:error.httpStatus}:{},...error.requestId!==void 0?{requestId:error.requestId}:{}};if(!decision.retry)return emit(stamp({phase:"settled",...settledEvent})),err(error);if(emit(stamp({phase:"retry",...settledEvent,delayMs:decision.delayMs})),await sleep(decision.delayMs,req.signal),req.signal?.aborted===true)return emit(stamp({phase:"settled",...settledEvent,reason:"aborted"})),err(error);attempt+=1}}async function authorize(req){return withAuthHeaders(req,await resolveDeviceAuth(deps.auth))}async function*stream(call,req,signal){emit(
@@ -62,7 +62,7 @@ return jsxs("div",{style:styles.petRow,children:[
62
62
  /* @__PURE__ */jsx("label",{htmlFor:`${ids}-pet`,style:styles.label,children:copy.defaultPetLabel}),
63
63
  /* @__PURE__ */jsxs("select",{id:`${ids}-pet`,value:value,disabled:saving,onChange:event=>onChoose(event.currentTarget.value),style:styles.input,children:[value===""?/* @__PURE__ */jsx("option",{value:"",children:copy.noPetSelected}):null,pets.map(pet=>/* @__PURE__ */jsx("option",{value:pet.petRef,children:pet.name??pet.petRef},pet.petRef))]}),
64
64
  /* @__PURE__ */jsxs("div",{style:styles.links,children:[
65
- /* @__PURE__ */jsx("button",{type:"button",disabled:!changed||saving,"aria-busy":saving?"true":void 0,onClick:()=>onSave(value),style:styles.secondary,children:saving?copy.savingPet:copy.savePet}),saved&&!changed?/* @__PURE__ */jsx("p",{style:styles.footnote,role:"status",children:copy.petSaved}):null]})]})}function makeStyles2(theme){let{color:color,radius:radius,space:space,type:type,slots:slots}=theme,line=size=>`${Math.round(size*type.lineHeight.snug)}px`,text3=(size,ink,weight)=>({margin:0,...faceCss(theme,weight),fontSize:size,lineHeight:line(size),color:ink}),cardInk=slots.card?.textColor;return{card:{boxSizing:"border-box",display:"flex",flexDirection:"column",gap:space.md,padding:space.lg,borderRadius:radius.lg,border:`1px solid ${color.brandBorder}`,backgroundColor:color.surface,...slotCss(slots.card,1)},title:text3(type.size.subtitle,cardInk??color.text.primary,"bold"),subtitle:text3(type.size.body,cardInk??color.text.primary,"bold"),body:text3(type.size.body,cardInk??color.text.secondary,"regular"),footnote:text3(type.size.caption,color.text.muted,"regular"),phone:text3(type.size.body,cardInk??color.text.primary,"bold"),label:text3(type.size.caption,cardInk??color.text.primary,"bold"),input:{boxSizing:"border-box",width:"100%",minHeight:44,padding:`0 ${space.md}px`,borderRadius:radius.md,border:`1px solid ${color.controlEdge}`,backgroundColor:color.surface,...faceCss(theme,"regular"),fontSize:type.size.body,color:color.text.primary,...slotCss(slots.input,1)},consentRow:{display:"flex",alignItems:"flex-start",gap:space.sm,cursor:"pointer"},box:{width:24,height:24,minWidth:24,margin:0,accentColor:color.brand,cursor:"pointer"},consentText:{...text3(type.size.caption,cardInk??color.text.secondary,"regular"),whiteSpace:"pre-wrap"},primary:{minHeight:44,padding:`0 ${space.lg}px`,borderRadius:radius.pill,border:"none",backgroundColor:color.brand,color:color.text.onBrand,cursor:"pointer",...faceCss(theme,"bold"),fontSize:type.size.body,...slotCss(slots.primaryButton)},secondary:{minHeight:44,padding:`0 ${space.lg}px`,borderRadius:radius.pill,border:`1px solid ${color.brandBorder}`,backgroundColor:color.surface,color:color.brandInk,cursor:"pointer",...faceCss(theme,"bold"),fontSize:type.size.caption},link:{alignSelf:"flex-start",minHeight:44,padding:0,border:"none",background:"none",cursor:"pointer",...faceCss(theme,"bold"),fontSize:type.size.caption,color:color.linkInk,...slotCss(slots.link)},links:{display:"flex",flexWrap:"wrap",alignItems:"center",gap:space.md},notice:{display:"flex",flexDirection:"column",alignItems:"flex-start",gap:space.xs},noticeText:text3(type.size.caption,color.errorRed,"regular"),confirm:{display:"flex",flexDirection:"column",gap:space.sm,padding:space.md,borderRadius:radius.md,backgroundColor:color.surfaceSubtle},petRow:{display:"flex",flexDirection:"column",gap:space.xs},skeleton:{height:96,borderRadius:radius.md,backgroundColor:color.skeleton}}}var INTRO_OPEN_SYMBOL=/* @__PURE__ */Symbol.for("@everfur/sdk#IntroOpen@v1"),host=globalThis;function isIntroOpenState(value){if(typeof value!="object"||value===null)return false;let v=value;return v.holds instanceof Set&&v.listeners instanceof Set}var stored=host[INTRO_OPEN_SYMBOL],fresh=()=>({holds:/* @__PURE__ */new Set,listeners:/* @__PURE__ */new Set}),state=isIntroOpenState(stored)?stored:host[INTRO_OPEN_SYMBOL]=fresh();function isIntroOpen(){return state.holds.size>0}function subscribe(listener){return state.listeners.add(listener),()=>{state.listeners.delete(listener)}}function useIntroOpen(){return useSyncExternalStore(subscribe,isIntroOpen,isIntroOpen)}function resolveTextingAskDue(input){let readEnabled=input.enabled&&input.capabilityGranted&&input.hasProfile&&input.signedIn&&input.scheduleEligible&&!input.offeredThisSession,due=readEnabled&&input.identity==="none"&&input.surfaceReady;return{readEnabled:readEnabled,due:due}}var URGENT_LEVELS=/* @__PURE__ */new Set(["emergency","schedule_soon"]);function textingAskThreadReady(chat){if(chat.isBootstrapping===true||chat.isLoadingHistory===true||chat.isStreaming===true||chat.status==="error"||chat.stopped===true)return false;let last=chat.messages[chat.messages.length-1];return last===void 0||last.role!=="assistant"||last.pending===true||last.checkin!==void 0||last.text.trim().length===0?false:!(typeof last.urgencyLevel=="string"&&URGENT_LEVELS.has(last.urgencyLevel))}var IN_MEMORY_KVS=/* @__PURE__ */new WeakSet;function isInMemoryKv(kv){return IN_MEMORY_KVS.has(kv)}var TEXTING_ASK_SCHEDULE_KEY="everfur.texting.askSchedule.v1",TEXTING_ASK_SNOOZE_MS=2880*60*1e3,TEXTING_ASK_MAX_ASKS=3,EMPTY_TEXTING_ASK_ENTRY=/* @__PURE__ */Object.freeze({askCount:0,nextAskAt:null,completed:false});function isTextingAskEligible(read,now){if(read.status!=="ok")return false;let{entry:entry}=read;return entry.completed||entry.askCount>=TEXTING_ASK_MAX_ASKS?false:entry.nextAskAt===null||now>=entry.nextAskAt}function applyTextingAsk(entry,now){return{askCount:Math.min(entry.askCount+1,TEXTING_ASK_MAX_ASKS),nextAskAt:now+TEXTING_ASK_SNOOZE_MS,completed:entry.completed}}function applyTextingAskSnooze(entry,now){return{...entry,nextAskAt:now+TEXTING_ASK_SNOOZE_MS}}function applyTextingAskCompleted(entry){return{...entry,completed:true}}function nextTextingAskNumber(entry){return entry.askCount<=0?1:entry.askCount===1?2:3}function entryOf(raw){if(raw===null||typeof raw!="object"||Array.isArray(raw))return null;let o=raw,{askCount:askCount,nextAskAt:nextAskAt,completed:completed}=o;return typeof askCount!="number"||!Number.isInteger(askCount)||askCount<0||nextAskAt!==null&&(typeof nextAskAt!="number"||!Number.isFinite(nextAskAt))||typeof completed!="boolean"?null:{askCount:Math.min(askCount,TEXTING_ASK_MAX_ASKS),nextAskAt:nextAskAt,completed:completed}}function parseTextingAskMap(raw){let value;try{value=JSON.parse(raw)}catch{return null}if(value===null||typeof value!="object"||Array.isArray(value))return null;let out={};for(let[key,item]of Object.entries(value)){let entry=entryOf(item);if(entry===null)return null;out[key]=entry}return out}var SLOT=/* @__PURE__ */Symbol.for("@everfur/sdk/texting/ask-schedule@v1");function shared(){let host2=globalThis,state2=host2[SLOT];return state2===void 0&&(state2={sessions:/* @__PURE__ */new Map,sessionListeners:/* @__PURE__ */new Set,listeners:/* @__PURE__ */new Set,writeChain:Promise.resolve()},host2[SLOT]=state2),state2.sessionListeners===void 0&&(state2.sessionListeners=/* @__PURE__ */new Set),state2}async function load(kv){if(isInMemoryKv(kv))return{status:"unreadable"};let raw;try{raw=await kv.getItem(TEXTING_ASK_SCHEDULE_KEY)}catch{return{status:"unreadable"}}if(raw===null)try{return await kv.setItem(TEXTING_ASK_SCHEDULE_KEY,"{}"),await kv.getItem(TEXTING_ASK_SCHEDULE_KEY)===null?{status:"unreadable"}:{status:"ok",map:{}}}catch{return{status:"unreadable"}}let map=parseTextingAskMap(raw);if(map!==null)return{status:"ok",map:map};try{await kv.removeItem(TEXTING_ASK_SCHEDULE_KEY)}catch{}return{status:"unreadable"}}function subscribeTextingAskSchedule(listener){let{listeners:listeners2}=shared();return listeners2.add(listener),()=>{listeners2.delete(listener)}}function update(kv,userRef,change){let state2=shared(),run=async()=>{let loaded=await load(kv);if(loaded.status!=="ok")return;let current=loaded.map[userRef]??EMPTY_TEXTING_ASK_ENTRY;try{await kv.setItem(TEXTING_ASK_SCHEDULE_KEY,JSON.stringify({...loaded.map,[userRef]:change(current)}))}catch{return}for(let listener of[...state2.listeners])listener()},next=state2.writeChain.then(run,run);return state2.writeChain=next.catch(()=>{}),next}async function readTextingAskSchedule(kv,userRef){let loaded=await load(kv);return loaded.status!=="ok"?{status:"unreadable"}:{status:"ok",entry:loaded.map[userRef]??EMPTY_TEXTING_ASK_ENTRY}}function recordTextingAsk(kv,userRef,now=Date.now()){return update(kv,userRef,entry=>applyTextingAsk(entry,now))}function snoozeTextingAsk(kv,userRef,now=Date.now()){return update(kv,userRef,entry=>applyTextingAskSnooze(entry,now))}function markTextingAskCompleted(kv,userRef){return update(kv,userRef,applyTextingAskCompleted)}function textingAskSession(userRef){return shared().sessions.get(userRef)??null}function setTextingAskSession(userRef,entry){let state2=shared();state2.sessions.set(userRef,entry);for(let listener of[...state2.sessionListeners])listener()}function subscribeTextingAskSessions(listener){let{sessionListeners:sessionListeners}=shared();return sessionListeners.add(listener),()=>{sessionListeners.delete(listener)}}var NO_SNAPSHOT=()=>null;function useTextingGranted(){let{runtime:runtime}=useEverfurContext(),source=runtime.entitlements??null,subscribe2=useCallback(listener=>source===null?()=>{}:source.subscribe(listener),[source]),read=source===null?NO_SNAPSHOT:source.getSnapshot,snapshot=useSyncExternalStore(subscribe2,read,read);return useMemo(()=>snapshot!==null&&decideCapability("texting",snapshot.decisions,{isPending:snapshot.isPending}).enabled,[snapshot])}var IDLE=/* @__PURE__ */Object.freeze({status:"idle"});function useAskSchedule(userRef){let{runtime:runtime}=useEverfurContext(),kv=runtime.registry.services.kv,[state2,setState]=useState({user:null,value:IDLE});return useEffect(()=>{if(userRef===null)return;let live=true,read=()=>{readTextingAskSchedule(kv,userRef).then(value=>{live&&setState({user:userRef,value:{status:"ready",read:value}})})};read();let unsubscribe=subscribeTextingAskSchedule(read);return()=>{live=false,unsubscribe()}},[kv,userRef]),state2.user===userRef?state2.value:IDLE}function identityOf(texting){switch(texting.status){case"enroll":case"requesting":case"code":case"confirming":return"none";case"verified":case"optingOut":case"optedOut":return"exists";default:return"unknown"}}function useTextingAsk(options={}){let enabled=options.enabled!==false,ready=options.ready!==false,surface=options.surface??"prompt",entryWanted=options.entry===true,{runtime:runtime,userRef:userRef}=useEverfurContext(),kv=runtime.registry.services.kv,granted=useTextingGranted(),schedule=useAskSchedule(enabled&&userRef!==null?userRef:null),readSession=useCallback(()=>userRef===null?null:textingAskSession(userRef),[userRef]),current=useSyncExternalStore(subscribeTextingAskSessions,readSession,readSession),update2=useCallback(entry=>{userRef!==null&&setTextingAskSession(userRef,entry)},[userRef]),mine=current!==null&&current.surface===surface,handedOff=current!==null&&current.fromPrompt===true,stage=mine?current.stage==="handoff"?"hidden":current.stage:surface==="prompt"&&handedOff?"dismissed":"hidden",now=Date.now(),scheduleEligible=schedule.status==="ready"&&isTextingAskEligible(schedule.read,now),[readFor,setReadFor]=useState(null),entryRead=entryWanted&&userRef!==null&&granted,texting=useTextingState(userRef!==null&&readFor===userRef||stage!=="hidden"||mine||entryRead),identity=identityOf(texting),{readEnabled:readEnabled,due:due}=resolveTextingAskDue({enabled:enabled,capabilityGranted:granted,hasProfile:texting.profile!==null,signedIn:userRef!==null,scheduleEligible:scheduleEligible,offeredThisSession:current!==null,identity:identity,surfaceReady:ready});useEffect(()=>{readEnabled&&userRef!==null&&setReadFor(userRef)},[readEnabled,userRef]);let askNumber=current?.askNumber??(schedule.status==="ready"&&schedule.read.status==="ok"?nextTextingAskNumber(schedule.read.entry):1);useEffect(()=>{!due||userRef===null||textingAskSession(userRef)!==null||update2({surface:surface,stage:"offered",answered:false,askNumber:askNumber})},[due,userRef,update2,askNumber,surface]),useEffect(()=>{!mine||current.stage!=="handoff"||enabled&&ready&&granted&&texting.profile!==null&&identity==="none"&&update2({...current,stage:"offered"})},[mine,current,enabled,ready,granted,texting.profile,identity,update2]);let completed=schedule.status==="ready"&&schedule.read.status==="ok"&&schedule.read.entry.completed;useEffect(()=>{userRef===null||identity!=="exists"||completed||schedule.status!=="ready"||markTextingAskCompleted(kv,userRef)},[identity,completed,schedule.status,kv,userRef]),useEffect(()=>{mine&&current.stage==="enrolling"&&texting.status==="verified"&&update2({...current,stage:"verified"})},[mine,current,texting.status,update2]);let answer=useCallback(entry=>userRef===null||entry.answered?entry:(recordTextingAsk(kv,userRef),{...entry,answered:true}),[kv,userRef]),accept=useCallback(()=>{mine&&current.stage==="offered"&&update2({...current,stage:"enrolling"})},[mine,current,update2]),close=useCallback(()=>{if(!mine||current.stage!=="enrolling")return;let{back:back,...rest}=current;update2({...rest,stage:back??"offered"})},[mine,current,update2]),dismiss=useCallback(()=>{if(!(!mine||current.stage!=="offered"&&current.stage!=="enrolling")){if(surface==="prompt"){update2({...answer(current),surface:"chat",stage:"handoff",fromPrompt:true});return}current.fromPrompt===true&&current.answered&&userRef!==null&&snoozeTextingAsk(kv,userRef),update2({...answer(current),stage:"dismissed"})}},[mine,current,surface,update2,answer,kv,userRef]),{start:startCode}=texting,start=useCallback(async phone=>!mine||current.stage!=="enrolling"?false:(current.answered||update2(answer(current)),startCode(phone)),[mine,current,update2,answer,startCode]),canOpen=entryRead&&texting.profile!==null&&identity==="none"&&stage!=="enrolling"&&stage!=="verified",open=useCallback(()=>{if(!canOpen||userRef===null)return;let was=mine?current:null;update2({surface:surface,stage:"enrolling",answered:was?.answered??false,askNumber:current?.askNumber??askNumber,...was?.fromPrompt===true?{fromPrompt:true}:{},back:was?.stage==="offered"?"offered":"dismissed"})},[canOpen,userRef,mine,current,update2,surface,askNumber]),brand=texting.profile?.brandName??"";return useMemo(()=>({stage:userRef===null?"hidden":stage,brand:brand,askNumber:askNumber,texting:texting,accept:accept,dismiss:dismiss,close:close,start:start,canOpen:canOpen,open:open}),[userRef,stage,brand,askNumber,texting,accept,dismiss,close,start,canOpen,open])}var FOCUSABLE='button:not([disabled]), input:not([disabled]), textarea:not([disabled]), select:not([disabled]), a[href], [tabindex]:not([tabindex="-1"])';function isDialogElement(node){return node.tagName==="DIALOG"}function activeIn(node){if(typeof document>"u")return null;let root=node?.getRootNode();return root&&root!==document&&"activeElement"in root?root.activeElement:document.activeElement}function useModalDialog(open,onClose,returnFocusTo,options){let escapeAtKeyDown=options?.escapeAtKeyDown===true,dialogRef=useRef(null),wasOpen=useRef(false),opener=useRef(null),trigger=useRef(returnFocusTo);trigger.current=returnFocusTo;let restoreFocus=useCallback(()=>{if(!wasOpen.current)return;wasOpen.current=false;let target=trigger.current===void 0?opener.current:trigger.current.current;target&&target.isConnected&&target.focus(),(!target||!target.isConnected||activeIn(target)===target)&&(opener.current=null)},[]);useEffect(()=>{if(!open){restoreFocus();return}let node=dialogRef.current;if(!wasOpen.current){let active=activeIn(node);active!==null&&node!==null&&node.contains(active)||(opener.current=active instanceof HTMLElement?active:null)}if(wasOpen.current=true,node===null)return;if(!isDialogElement(node)){node.contains(activeIn(node))||(node.querySelector(FOCUSABLE)??node).focus();return}let dialog=node;typeof dialog.showModal=="function"?dialog.open||dialog.showModal():dialog.setAttribute("open","")},[open,restoreFocus]),useEffect(()=>restoreFocus,[restoreFocus]),useEffect(()=>{let node=dialogRef.current;if(!open||node===null||!isDialogElement(node))return;let dialog=node;if(typeof dialog.showModal!="function")return;let lastFocused=null,onFocusIn=event=>{event.target instanceof HTMLElement&&(lastFocused=event.target)},onNativeClose=()=>{if(!dialog.isConnected||dialog.open)return;let back=lastFocused;dialog.showModal(),back!==null&&back.isConnected&&dialog.contains(back)&&activeIn(dialog)!==back&&back.focus()};return dialog.addEventListener("focusin",onFocusIn),dialog.addEventListener("close",onNativeClose),()=>{dialog.removeEventListener("focusin",onFocusIn),dialog.removeEventListener("close",onNativeClose)}},[open]);let onKeyDown=useCallback(event=>{let node=dialogRef.current;if(node===null)return;if(event.key==="Escape"&&!isDialogElement(node)){event.preventDefault(),event.stopPropagation(),onClose();return}if(event.key==="Escape"&&escapeAtKeyDown);if(event.key!=="Tab")return;let focusable=Array.from(node.querySelectorAll(FOCUSABLE)),first=focusable[0],last=focusable[focusable.length-1];if(!first||!last){event.preventDefault();return}let active=activeIn(node);event.shiftKey&&(active===first||!node.contains(active))?(event.preventDefault(),last.focus()):!event.shiftKey&&(active===last||!node.contains(active))&&(event.preventDefault(),first.focus())},[onClose,escapeAtKeyDown]),onCancel=useCallback(event=>{event.target===event.currentTarget&&(event.preventDefault(),onClose())},[onClose]);return{dialogRef:dialogRef,onKeyDown:onKeyDown,onCancel:onCancel}}var FOCUS_RING_WIDTH=2,SELF_FOCUS_RING_ATTRIBUTE="data-ef-focus-ring";function ChatTextingAskController({enabled:enabled,ready:ready,onAsk:onAsk,entry:entry=false}){let ask=useTextingAsk({enabled:enabled,ready:ready,surface:"chat",entry:entry});return useEffect(()=>{callHost(onAsk,ask)},[ask,onAsk]),null}function textingAskLines(ask){return{line:TEXTING_BRAND_COPY.chatAskLine(ask.brand),accept:TEXTING_COPY.promptAccept,dismiss:TEXTING_COPY.promptDismiss,verified:TEXTING_BRAND_COPY.chatAskVerified(ask.brand)}}function ChatTextingAskComposer({ask:ask}){let theme=useEverfurTheme(),styles=useMemo(()=>makeAskStyles(theme),[theme]);/* @__PURE__ */
65
+ /* @__PURE__ */jsx("button",{type:"button",disabled:!changed||saving,"aria-busy":saving?"true":void 0,onClick:()=>onSave(value),style:styles.secondary,children:saving?copy.savingPet:copy.savePet}),saved&&!changed?/* @__PURE__ */jsx("p",{style:styles.footnote,role:"status",children:copy.petSaved}):null]})]})}function makeStyles2(theme){let{color:color,radius:radius,space:space,type:type,slots:slots}=theme,line=size=>`${Math.round(size*type.lineHeight.snug)}px`,text3=(size,ink,weight)=>({margin:0,...faceCss(theme,weight),fontSize:size,lineHeight:line(size),color:ink}),cardInk=slots.card?.textColor;return{card:{boxSizing:"border-box",display:"flex",flexDirection:"column",gap:space.md,padding:space.lg,borderRadius:radius.lg,border:`1px solid ${color.brandBorder}`,backgroundColor:color.surface,...slotCss(slots.card,1)},title:text3(type.size.subtitle,cardInk??color.text.primary,"bold"),subtitle:text3(type.size.body,cardInk??color.text.primary,"bold"),body:text3(type.size.body,cardInk??color.text.secondary,"regular"),footnote:text3(type.size.caption,color.text.muted,"regular"),phone:text3(type.size.body,cardInk??color.text.primary,"bold"),label:text3(type.size.caption,cardInk??color.text.primary,"bold"),input:{boxSizing:"border-box",width:"100%",minHeight:44,padding:`0 ${space.md}px`,borderRadius:radius.md,border:`1px solid ${color.controlEdge}`,backgroundColor:color.surface,...faceCss(theme,"regular"),fontSize:type.size.body,color:color.text.primary,...slotCss(slots.input,1)},consentRow:{display:"flex",alignItems:"flex-start",gap:space.sm,cursor:"pointer"},box:{width:24,height:24,minWidth:24,margin:0,accentColor:color.brand,cursor:"pointer"},consentText:{...text3(type.size.caption,cardInk??color.text.secondary,"regular"),whiteSpace:"pre-wrap"},primary:{minHeight:44,padding:`0 ${space.lg}px`,borderRadius:radius.pill,border:"none",backgroundColor:color.brand,color:color.text.onBrand,cursor:"pointer",...faceCss(theme,"bold"),fontSize:type.size.body,...slotCss(slots.primaryButton)},secondary:{minHeight:44,padding:`0 ${space.lg}px`,borderRadius:radius.pill,border:`1px solid ${color.brandBorder}`,backgroundColor:color.surface,color:color.brandInk,cursor:"pointer",...faceCss(theme,"bold"),fontSize:type.size.caption},link:{alignSelf:"flex-start",minHeight:44,padding:0,border:"none",background:"none",cursor:"pointer",...faceCss(theme,"bold"),fontSize:type.size.caption,color:color.linkInk,...slotCss(slots.link)},links:{display:"flex",flexWrap:"wrap",alignItems:"center",gap:space.md},notice:{display:"flex",flexDirection:"column",alignItems:"flex-start",gap:space.xs},noticeText:text3(type.size.caption,color.errorRed,"regular"),confirm:{display:"flex",flexDirection:"column",gap:space.sm,padding:space.md,borderRadius:radius.md,backgroundColor:color.surfaceSubtle},petRow:{display:"flex",flexDirection:"column",gap:space.xs},skeleton:{height:96,borderRadius:radius.md,backgroundColor:color.skeleton}}}var INTRO_OPEN_SYMBOL=/* @__PURE__ */Symbol.for("@everfur/sdk#IntroOpen@v1"),host=globalThis;function isIntroOpenState(value){if(typeof value!="object"||value===null)return false;let v=value;return v.holds instanceof Set&&v.listeners instanceof Set}var stored=host[INTRO_OPEN_SYMBOL],fresh=()=>({holds:/* @__PURE__ */new Set,listeners:/* @__PURE__ */new Set}),state=isIntroOpenState(stored)?stored:host[INTRO_OPEN_SYMBOL]=fresh();function isIntroOpen(){return state.holds.size>0}function subscribe(listener){return state.listeners.add(listener),()=>{state.listeners.delete(listener)}}function useIntroOpen(){return useSyncExternalStore(subscribe,isIntroOpen,isIntroOpen)}function resolveTextingAskDue(input){let readEnabled=input.enabled&&input.capabilityGranted&&input.hasProfile&&input.signedIn&&input.scheduleEligible&&!input.offeredThisSession,due=readEnabled&&input.identity==="none"&&input.surfaceReady;return{readEnabled:readEnabled,due:due}}var URGENT_LEVELS=/* @__PURE__ */new Set(["emergency","schedule_soon"]);function textingAskThreadReady(chat){if(chat.isBootstrapping===true||chat.isLoadingHistory===true||chat.isStreaming===true||chat.status==="error"||chat.stopped===true)return false;let last=chat.messages[chat.messages.length-1];return last===void 0||last.role!=="assistant"||last.pending===true||last.checkin!==void 0||last.text.trim().length===0?false:!(typeof last.urgencyLevel=="string"&&URGENT_LEVELS.has(last.urgencyLevel))}var IN_MEMORY_KVS=/* @__PURE__ */new WeakSet;function isInMemoryKv(kv){return IN_MEMORY_KVS.has(kv)}var TEXTING_ASK_SCHEDULE_KEY="everfur.texting.askSchedule.v1",TEXTING_ASK_SNOOZE_MS=2880*60*1e3,TEXTING_ASK_MAX_ASKS=3,EMPTY_TEXTING_ASK_ENTRY=/* @__PURE__ */Object.freeze({askCount:0,nextAskAt:null,completed:false});function isTextingAskEligible(read,now){if(read.status!=="ok")return false;let{entry:entry}=read;return entry.completed||entry.askCount>=TEXTING_ASK_MAX_ASKS?false:entry.nextAskAt===null||now>=entry.nextAskAt}function applyTextingAsk(entry,now){return{askCount:Math.min(entry.askCount+1,TEXTING_ASK_MAX_ASKS),nextAskAt:now+TEXTING_ASK_SNOOZE_MS,completed:entry.completed}}function applyTextingAskSnooze(entry,now){return{...entry,nextAskAt:now+TEXTING_ASK_SNOOZE_MS}}function applyTextingAskCompleted(entry){return{...entry,completed:true}}function nextTextingAskNumber(entry){return entry.askCount<=0?1:entry.askCount===1?2:3}function entryOf(raw){if(raw===null||typeof raw!="object"||Array.isArray(raw))return null;let o=raw,{askCount:askCount,nextAskAt:nextAskAt,completed:completed}=o;return typeof askCount!="number"||!Number.isInteger(askCount)||askCount<0||nextAskAt!==null&&(typeof nextAskAt!="number"||!Number.isFinite(nextAskAt))||typeof completed!="boolean"?null:{askCount:Math.min(askCount,TEXTING_ASK_MAX_ASKS),nextAskAt:nextAskAt,completed:completed}}function parseTextingAskMap(raw){let value;try{value=JSON.parse(raw)}catch{return null}if(value===null||typeof value!="object"||Array.isArray(value))return null;let out={};for(let[key,item]of Object.entries(value)){let entry=entryOf(item);if(entry===null)return null;out[key]=entry}return out}var SLOT=/* @__PURE__ */Symbol.for("@everfur/sdk/texting/ask-schedule@v1");function shared(){let host2=globalThis,state2=host2[SLOT];return state2===void 0&&(state2={sessions:/* @__PURE__ */new Map,sessionListeners:/* @__PURE__ */new Set,listeners:/* @__PURE__ */new Set,writeChain:Promise.resolve()},host2[SLOT]=state2),state2.sessionListeners===void 0&&(state2.sessionListeners=/* @__PURE__ */new Set),state2}async function load(kv){if(isInMemoryKv(kv))return{status:"unreadable"};let raw;try{raw=await kv.getItem(TEXTING_ASK_SCHEDULE_KEY)}catch{return{status:"unreadable"}}if(raw===null)try{return await kv.setItem(TEXTING_ASK_SCHEDULE_KEY,"{}"),await kv.getItem(TEXTING_ASK_SCHEDULE_KEY)===null?{status:"unreadable"}:{status:"ok",map:{}}}catch{return{status:"unreadable"}}let map=parseTextingAskMap(raw);if(map!==null)return{status:"ok",map:map};try{await kv.removeItem(TEXTING_ASK_SCHEDULE_KEY)}catch{}return{status:"unreadable"}}function subscribeTextingAskSchedule(listener){let{listeners:listeners2}=shared();return listeners2.add(listener),()=>{listeners2.delete(listener)}}function update(kv,userRef,change){let state2=shared(),run=async()=>{let loaded=await load(kv);if(loaded.status!=="ok")return;let current=loaded.map[userRef]??EMPTY_TEXTING_ASK_ENTRY;try{await kv.setItem(TEXTING_ASK_SCHEDULE_KEY,JSON.stringify({...loaded.map,[userRef]:change(current)}))}catch{return}for(let listener of[...state2.listeners])listener()},next=state2.writeChain.then(run,run);return state2.writeChain=next.catch(()=>{}),next}async function readTextingAskSchedule(kv,userRef){let loaded=await load(kv);return loaded.status!=="ok"?{status:"unreadable"}:{status:"ok",entry:loaded.map[userRef]??EMPTY_TEXTING_ASK_ENTRY}}function recordTextingAsk(kv,userRef,now=Date.now()){return update(kv,userRef,entry=>applyTextingAsk(entry,now))}function snoozeTextingAsk(kv,userRef,now=Date.now()){return update(kv,userRef,entry=>applyTextingAskSnooze(entry,now))}function markTextingAskCompleted(kv,userRef){return update(kv,userRef,applyTextingAskCompleted)}function textingAskSession(userRef){return shared().sessions.get(userRef)??null}function setTextingAskSession(userRef,entry){let state2=shared();state2.sessions.set(userRef,entry);for(let listener of[...state2.sessionListeners])listener()}function subscribeTextingAskSessions(listener){let{sessionListeners:sessionListeners}=shared();return sessionListeners.add(listener),()=>{sessionListeners.delete(listener)}}var NO_SNAPSHOT=()=>null;function useTextingGranted(){let{runtime:runtime}=useEverfurContext(),source=runtime.entitlements??null,subscribe2=useCallback(listener=>source===null?()=>{}:source.subscribe(listener),[source]),read=source===null?NO_SNAPSHOT:source.getSnapshot,snapshot=useSyncExternalStore(subscribe2,read,read);return useMemo(()=>snapshot!==null&&decideCapability("texting",snapshot.decisions,{isPending:snapshot.isPending}).enabled,[snapshot])}var IDLE=/* @__PURE__ */Object.freeze({status:"idle"});function useAskSchedule(userRef){let{runtime:runtime}=useEverfurContext(),kv=runtime.registry.services.kv,[state2,setState]=useState({user:null,value:IDLE});return useEffect(()=>{if(userRef===null)return;let live=true,read=()=>{readTextingAskSchedule(kv,userRef).then(value=>{live&&setState({user:userRef,value:{status:"ready",read:value}})})};read();let unsubscribe=subscribeTextingAskSchedule(read);return()=>{live=false,unsubscribe()}},[kv,userRef]),state2.user===userRef?state2.value:IDLE}function identityOf(texting){switch(texting.status){case"enroll":case"requesting":case"code":case"confirming":return"none";case"verified":case"optingOut":case"optedOut":return"exists";default:return"unknown"}}function useTextingAsk(options={}){let enabled=options.enabled!==false,ready=options.ready!==false,surface=options.surface??"prompt",entryWanted=options.entry===true,{runtime:runtime,userRef:userRef}=useEverfurContext(),kv=runtime.registry.services.kv,granted=useTextingGranted(),schedule=useAskSchedule(enabled&&userRef!==null?userRef:null),readSession=useCallback(()=>userRef===null?null:textingAskSession(userRef),[userRef]),current=useSyncExternalStore(subscribeTextingAskSessions,readSession,readSession),update2=useCallback(entry=>{userRef!==null&&setTextingAskSession(userRef,entry)},[userRef]),mine=current!==null&&current.surface===surface,handedOff=current!==null&&current.fromPrompt===true,stage=mine?current.stage==="handoff"?"hidden":current.stage:surface==="prompt"&&handedOff?"dismissed":"hidden",now=Date.now(),scheduleEligible=schedule.status==="ready"&&isTextingAskEligible(schedule.read,now),[readFor,setReadFor]=useState(null),entryRead=entryWanted&&userRef!==null&&granted,texting=useTextingState(userRef!==null&&readFor===userRef||stage!=="hidden"||mine||entryRead),identity=identityOf(texting),{readEnabled:readEnabled,due:due}=resolveTextingAskDue({enabled:enabled,capabilityGranted:granted,hasProfile:texting.profile!==null,signedIn:userRef!==null,scheduleEligible:scheduleEligible,offeredThisSession:current!==null,identity:identity,surfaceReady:ready});useEffect(()=>{readEnabled&&userRef!==null&&setReadFor(userRef)},[readEnabled,userRef]);let askNumber=current?.askNumber??(schedule.status==="ready"&&schedule.read.status==="ok"?nextTextingAskNumber(schedule.read.entry):1);useEffect(()=>{!due||userRef===null||textingAskSession(userRef)!==null||update2({surface:surface,stage:"offered",answered:false,askNumber:askNumber})},[due,userRef,update2,askNumber,surface]),useEffect(()=>{!mine||current.stage!=="handoff"||enabled&&ready&&granted&&texting.profile!==null&&identity==="none"&&update2({...current,stage:"offered"})},[mine,current,enabled,ready,granted,texting.profile,identity,update2]);let completed=schedule.status==="ready"&&schedule.read.status==="ok"&&schedule.read.entry.completed;useEffect(()=>{userRef===null||identity!=="exists"||completed||schedule.status!=="ready"||markTextingAskCompleted(kv,userRef)},[identity,completed,schedule.status,kv,userRef]),useEffect(()=>{mine&&current.stage==="enrolling"&&texting.status==="verified"&&update2({...current,stage:"verified"})},[mine,current,texting.status,update2]);let answer=useCallback(entry=>userRef===null||entry.answered?entry:(recordTextingAsk(kv,userRef),{...entry,answered:true}),[kv,userRef]),accept=useCallback(()=>{mine&&current.stage==="offered"&&update2({...current,stage:"enrolling"})},[mine,current,update2]),close=useCallback(()=>{if(!mine||current.stage!=="enrolling")return;let{back:back,...rest}=current;update2({...rest,stage:back??"offered"})},[mine,current,update2]),dismiss=useCallback(()=>{if(!(!mine||current.stage!=="offered"&&current.stage!=="enrolling")){if(surface==="prompt"){update2({...answer(current),surface:"chat",stage:"handoff",fromPrompt:true});return}current.fromPrompt===true&&current.answered&&userRef!==null&&snoozeTextingAsk(kv,userRef),update2({...answer(current),stage:"dismissed"})}},[mine,current,surface,update2,answer,kv,userRef]),{start:startCode}=texting,start=useCallback(async phone=>!mine||current.stage!=="enrolling"?false:(current.answered||update2(answer(current)),startCode(phone)),[mine,current,update2,answer,startCode]),canOpen=entryRead&&texting.profile!==null&&identity==="none"&&stage!=="enrolling"&&stage!=="verified",open=useCallback(()=>{if(!canOpen||userRef===null)return;let was=mine?current:null;update2({surface:surface,stage:"enrolling",answered:was?.answered??false,askNumber:current?.askNumber??askNumber,...was?.fromPrompt===true?{fromPrompt:true}:{},back:was?.stage==="offered"?"offered":"dismissed"})},[canOpen,userRef,mine,current,update2,surface,askNumber]),brand=texting.profile?.brandName??"";return useMemo(()=>({stage:userRef===null?"hidden":stage,brand:brand,askNumber:askNumber,texting:texting,accept:accept,dismiss:dismiss,close:close,start:start,canOpen:canOpen,open:open}),[userRef,stage,brand,askNumber,texting,accept,dismiss,close,start,canOpen,open])}var NOTHING_TO_ASK=/* @__PURE__ */new Set(["signedOut","unavailable","failed","verified","optingOut","optedOut"]);function useTextingPromptRequest(ask,requested,granted,onResolved){let{userRef:userRef}=useEverfurContext(),handledFor=useRef(null),{canOpen:canOpen,open:open,stage:stage,texting:texting}=ask;useEffect(()=>{if(!requested){handledFor.current=null;return}if(!(userRef===null||handledFor.current===userRef)){if(canOpen){handledFor.current=userRef,open();return}if(stage==="enrolling"||stage==="verified"){handledFor.current=userRef;return}(!granted||NOTHING_TO_ASK.has(texting.status))&&(handledFor.current=userRef,callHost(onResolved,"skipped"))}},[requested,userRef,canOpen,open,stage,texting.status,granted,onResolved])}var FOCUSABLE='button:not([disabled]), input:not([disabled]), textarea:not([disabled]), select:not([disabled]), a[href], [tabindex]:not([tabindex="-1"])';function isDialogElement(node){return node.tagName==="DIALOG"}function activeIn(node){if(typeof document>"u")return null;let root=node?.getRootNode();return root&&root!==document&&"activeElement"in root?root.activeElement:document.activeElement}function useModalDialog(open,onClose,returnFocusTo,options){let escapeAtKeyDown=options?.escapeAtKeyDown===true,dialogRef=useRef(null),wasOpen=useRef(false),opener=useRef(null),trigger=useRef(returnFocusTo);trigger.current=returnFocusTo;let restoreFocus=useCallback(()=>{if(!wasOpen.current)return;wasOpen.current=false;let target=trigger.current===void 0?opener.current:trigger.current.current;target&&target.isConnected&&target.focus(),(!target||!target.isConnected||activeIn(target)===target)&&(opener.current=null)},[]);useEffect(()=>{if(!open){restoreFocus();return}let node=dialogRef.current;if(!wasOpen.current){let active=activeIn(node);active!==null&&node!==null&&node.contains(active)||(opener.current=active instanceof HTMLElement?active:null)}if(wasOpen.current=true,node===null)return;if(!isDialogElement(node)){node.contains(activeIn(node))||(node.querySelector(FOCUSABLE)??node).focus();return}let dialog=node;typeof dialog.showModal=="function"?dialog.open||dialog.showModal():dialog.setAttribute("open","")},[open,restoreFocus]),useEffect(()=>restoreFocus,[restoreFocus]),useEffect(()=>{let node=dialogRef.current;if(!open||node===null||!isDialogElement(node))return;let dialog=node;if(typeof dialog.showModal!="function")return;let lastFocused=null,onFocusIn=event=>{event.target instanceof HTMLElement&&(lastFocused=event.target)},onNativeClose=()=>{if(!dialog.isConnected||dialog.open)return;let back=lastFocused;dialog.showModal(),back!==null&&back.isConnected&&dialog.contains(back)&&activeIn(dialog)!==back&&back.focus()};return dialog.addEventListener("focusin",onFocusIn),dialog.addEventListener("close",onNativeClose),()=>{dialog.removeEventListener("focusin",onFocusIn),dialog.removeEventListener("close",onNativeClose)}},[open]);let onKeyDown=useCallback(event=>{let node=dialogRef.current;if(node===null)return;if(event.key==="Escape"&&!isDialogElement(node)){event.preventDefault(),event.stopPropagation(),onClose();return}if(event.key==="Escape"&&escapeAtKeyDown);if(event.key!=="Tab")return;let focusable=Array.from(node.querySelectorAll(FOCUSABLE)),first=focusable[0],last=focusable[focusable.length-1];if(!first||!last){event.preventDefault();return}let active=activeIn(node);event.shiftKey&&(active===first||!node.contains(active))?(event.preventDefault(),last.focus()):!event.shiftKey&&(active===last||!node.contains(active))&&(event.preventDefault(),first.focus())},[onClose,escapeAtKeyDown]),onCancel=useCallback(event=>{event.target===event.currentTarget&&(event.preventDefault(),onClose())},[onClose]);return{dialogRef:dialogRef,onKeyDown:onKeyDown,onCancel:onCancel}}var FOCUS_RING_WIDTH=2,SELF_FOCUS_RING_ATTRIBUTE="data-ef-focus-ring";function ChatTextingAskController({enabled:enabled,ready:ready,onAsk:onAsk,entry:entry=false}){let ask=useTextingAsk({enabled:enabled,ready:ready,surface:"chat",entry:entry});return useEffect(()=>{callHost(onAsk,ask)},[ask,onAsk]),null}function textingAskLines(ask){return{line:TEXTING_BRAND_COPY.chatAskLine(ask.brand),accept:TEXTING_COPY.promptAccept,dismiss:TEXTING_COPY.promptDismiss,verified:TEXTING_BRAND_COPY.chatAskVerified(ask.brand)}}function ChatTextingAskComposer({ask:ask}){let theme=useEverfurTheme(),styles=useMemo(()=>makeAskStyles(theme),[theme]);/* @__PURE__ */
66
66
  return jsx(AskEntry,{ask:ask,styles:styles})}function AskEntry({ask:ask,styles:styles}){let ids=useId(),{texting:texting}=ask,{status:status,profile:profile,snapshot:snapshot}=texting,[phone,setPhone]=useState(""),[consented,setConsented]=useState(false),[code,setCode]=useState(""),[problem,setProblem]=useState(null),phoneRef=useRef(null),codeRef=useRef(null),[fieldFocused,setFieldFocused]=useState(false),fieldFocus={[SELF_FOCUS_RING_ATTRIBUTE]:"self",onFocus:()=>setFieldFocused(true),onBlur:()=>setFieldFocused(false)},pill=fieldFocused?{...styles.pill,...styles.pillFocused}:styles.pill,onNumber=status==="enroll"||status==="requesting"&&!snapshot.resending,onCode=status==="code"||status==="confirming"||status==="requesting";useEffect(()=>{setProblem(null)},[status]),useEffect(()=>{onNumber?phoneRef.current?.focus():onCode&&codeRef.current?.focus()},[onNumber,onCode]);let close=/* @__PURE__ */jsx("button",{type:"button","aria-label":TEXTING_COPY.close,onClick:ask.close,style:styles.close,children:/* @__PURE__ */jsx("svg",{width:18,height:18,viewBox:"0 0 24 24","aria-hidden":"true",focusable:"false",children:/* @__PURE__ */jsx("path",{d:"M6 6l12 12M18 6L6 18",stroke:"currentColor",strokeWidth:2,strokeLinecap:"round",fill:"none"})})}),refusal=snapshot.error===null?null:/* @__PURE__ */jsxs("div",{role:"alert",style:styles.notice,children:[
67
67
  /* @__PURE__ */jsx("p",{style:styles.noticeText,children:textingErrorText(snapshot.error,snapshot.failedAction,snapshot.codeRefusal)}),textingSupportText(snapshot.error)===null?null:/* @__PURE__ */jsx("p",{style:styles.footnote,children:textingSupportText(snapshot.error)})]}),inputProblem=problem===null?null:/* @__PURE__ */jsx("p",{role:"alert",style:styles.noticeText,children:textingInputProblemText(problem)});if(profile===null)return null;if(status==="loading"||status==="failed"||status==="signedOut"||status==="unavailable")/* @__PURE__ */
68
68
  return jsx("div",{style:styles.root,"data-everfur-texting-ask":"entry","aria-busy":status==="loading"?"true":void 0,children:/* @__PURE__ */jsxs("div",{style:styles.head,children:[
@@ -85,7 +85,7 @@ return jsxs("div",{style:styles.root,"data-everfur-texting-ask":"code",children:
85
85
  /* @__PURE__ */jsx("button",{type:"button",disabled:busy,onClick:()=>{setCode(""),texting.changeNumber()},style:styles.link,children:TEXTING_COPY.changeNumber})]})]}),close]}),inputProblem,refusal,
86
86
  /* @__PURE__ */jsxs("form",{style:pill,onSubmit:event=>{event.preventDefault(),submit()},children:[
87
87
  /* @__PURE__ */jsx("input",{ref:codeRef,type:"text",inputMode:"numeric",autoComplete:"one-time-code",maxLength:6,"aria-label":TEXTING_COPY.codeLabel,placeholder:TEXTING_COPY.codeLabel,value:code,disabled:busy,"aria-invalid":problem==="codeInvalidFormat"?"true":void 0,onChange:event=>setCode(event.currentTarget.value.replace(/\D/g,"")),...fieldFocus,style:{...styles.field,fontVariantNumeric:"tabular-nums"}}),
88
- /* @__PURE__ */jsx("button",{type:"submit",disabled:busy,"aria-busy":confirming?"true":void 0,style:styles.primary,children:confirming?TEXTING_COPY.confirmingCode:TEXTING_COPY.confirmCode})]})]})}return null}function makeAskStyles(theme){let{color:color,radius:radius,space:space,type:type,slots:slots}=theme,line=size=>`${Math.round(size*type.lineHeight.snug)}px`,text3=(size,ink,weight)=>({margin:0,...faceCss(theme,weight),fontSize:size,lineHeight:line(size),color:ink});return{root:{boxSizing:"border-box",display:"flex",flexDirection:"column",gap:space.sm,width:"100%"},head:{display:"flex",alignItems:"flex-start",gap:space.sm},headBody:{display:"flex",flexDirection:"column",gap:space.xs,minWidth:0,flex:"1 1 auto"},consentRow:{display:"flex",alignItems:"flex-start",gap:space.sm,cursor:"pointer"},box:{width:24,height:24,minWidth:24,margin:0,accentColor:color.brand,cursor:"pointer"},consentText:{...text3(type.size.caption,color.text.secondary,"regular"),whiteSpace:"pre-wrap"},body:text3(type.size.body,color.text.primary,"regular"),footnote:text3(type.size.caption,color.text.muted,"regular"),pill:{boxSizing:"border-box",display:"flex",alignItems:"center",gap:space.xs,margin:0,minHeight:50,padding:`${space.xs}px ${space.xs}px ${space.xs}px ${space.md}px`,borderRadius:radius.pill,border:`1.5px solid ${color.controlEdge}`,backgroundColor:color.surface,...slotCss(slots.input,1)},pillFocused:{border:`1.5px solid ${slots.input?.borderColor??color.brandInk}`,outline:`${FOCUS_RING_WIDTH}px solid ${color.brandInk}`,outlineOffset:FOCUS_RING_WIDTH},field:{boxSizing:"border-box",flex:"1 1 auto",minWidth:0,minHeight:44,padding:0,border:"none",outline:"none",background:"transparent",...faceCss(theme,"regular"),fontSize:Math.max(16,type.size.body),color:color.text.primary},primary:{flex:"0 0 auto",minHeight:44,padding:`0 ${space.lg}px`,borderRadius:radius.pill,border:"none",backgroundColor:color.brand,color:color.text.onBrand,cursor:"pointer",...faceCss(theme,"bold"),fontSize:type.size.caption,...slotCss(slots.primaryButton)},close:{flex:"0 0 auto",display:"inline-flex",alignItems:"center",justifyContent:"center",width:44,height:44,padding:0,border:"none",borderRadius:radius.pill,background:"none",color:color.text.muted,cursor:"pointer"},links:{display:"flex",flexWrap:"wrap",alignItems:"center",columnGap:space.md},link:{minHeight:44,padding:0,border:"none",background:"none",cursor:"pointer",...faceCss(theme,"bold"),fontSize:type.size.caption,color:color.linkInk,...slotCss(slots.link)},notice:{display:"flex",flexDirection:"column",gap:space.xs},noticeText:text3(type.size.caption,color.errorRed,"regular")}}var OPEN=/* @__PURE__ */new Set(["offered","enrolling"]);function EverfurTextingPrompt({onResolved:onResolved}){let introOpen=useIntroOpen(),ask=useTextingAsk({surface:"prompt",ready:!introOpen}),theme=useEverfurTheme(),styles=useMemo(()=>makePromptStyles(theme),[theme]),entryStyles=useMemo(()=>makeAskStyles(theme),[theme]),shown=useRef(false),[resolved,setResolved]=useState(false);OPEN.has(ask.stage)&&(shown.current=true);let open=shown.current&&(OPEN.has(ask.stage)||ask.stage==="verified")&&!resolved&&!introOpen,finish=()=>{resolved||(ask.stage==="verified"?(setResolved(true),callHost(onResolved,"verified")):ask.dismiss())};useEffect(()=>{shown.current&&ask.stage==="dismissed"&&!resolved&&(setResolved(true),callHost(onResolved,"dismissed"))},[ask.stage,onResolved,resolved]);let dialog=useModalDialog(open,finish);if(!open)return null;let title=ask.stage==="verified"?TEXTING_COPY.verifiedTitle:TEXTING_BRAND_COPY.promptTitle(ask.brand);/* @__PURE__ */
88
+ /* @__PURE__ */jsx("button",{type:"submit",disabled:busy,"aria-busy":confirming?"true":void 0,style:styles.primary,children:confirming?TEXTING_COPY.confirmingCode:TEXTING_COPY.confirmCode})]})]})}return null}function makeAskStyles(theme){let{color:color,radius:radius,space:space,type:type,slots:slots}=theme,line=size=>`${Math.round(size*type.lineHeight.snug)}px`,text3=(size,ink,weight)=>({margin:0,...faceCss(theme,weight),fontSize:size,lineHeight:line(size),color:ink});return{root:{boxSizing:"border-box",display:"flex",flexDirection:"column",gap:space.sm,width:"100%"},head:{display:"flex",alignItems:"flex-start",gap:space.sm},headBody:{display:"flex",flexDirection:"column",gap:space.xs,minWidth:0,flex:"1 1 auto"},consentRow:{display:"flex",alignItems:"flex-start",gap:space.sm,cursor:"pointer"},box:{width:24,height:24,minWidth:24,margin:0,accentColor:color.brand,cursor:"pointer"},consentText:{...text3(type.size.caption,color.text.secondary,"regular"),whiteSpace:"pre-wrap"},body:text3(type.size.body,color.text.primary,"regular"),footnote:text3(type.size.caption,color.text.muted,"regular"),pill:{boxSizing:"border-box",display:"flex",alignItems:"center",gap:space.xs,margin:0,minHeight:50,padding:`${space.xs}px ${space.xs}px ${space.xs}px ${space.md}px`,borderRadius:radius.pill,border:`1.5px solid ${color.controlEdge}`,backgroundColor:color.surface,...slotCss(slots.input,1)},pillFocused:{border:`1.5px solid ${slots.input?.borderColor??color.brandInk}`,outline:`${FOCUS_RING_WIDTH}px solid ${color.brandInk}`,outlineOffset:FOCUS_RING_WIDTH},field:{boxSizing:"border-box",flex:"1 1 auto",minWidth:0,minHeight:44,padding:0,border:"none",outline:"none",background:"transparent",...faceCss(theme,"regular"),fontSize:Math.max(16,type.size.body),color:color.text.primary},primary:{flex:"0 0 auto",minHeight:44,padding:`0 ${space.lg}px`,borderRadius:radius.pill,border:"none",backgroundColor:color.brand,color:color.text.onBrand,cursor:"pointer",...faceCss(theme,"bold"),fontSize:type.size.caption,...slotCss(slots.primaryButton)},close:{flex:"0 0 auto",display:"inline-flex",alignItems:"center",justifyContent:"center",width:44,height:44,padding:0,border:"none",borderRadius:radius.pill,background:"none",color:color.text.muted,cursor:"pointer"},links:{display:"flex",flexWrap:"wrap",alignItems:"center",columnGap:space.md},link:{minHeight:44,padding:0,border:"none",background:"none",cursor:"pointer",...faceCss(theme,"bold"),fontSize:type.size.caption,color:color.linkInk,...slotCss(slots.link)},notice:{display:"flex",flexDirection:"column",gap:space.xs},noticeText:text3(type.size.caption,color.errorRed,"regular")}}var OPEN=/* @__PURE__ */new Set(["offered","enrolling"]);function EverfurTextingPrompt({onResolved:onResolved,requested:requested=false}){let introOpen=useIntroOpen(),ask=useTextingAsk({surface:"prompt",ready:!introOpen,entry:requested});useTextingPromptRequest(ask,requested,useTextingGranted(),onResolved);let theme=useEverfurTheme(),styles=useMemo(()=>makePromptStyles(theme),[theme]),entryStyles=useMemo(()=>makeAskStyles(theme),[theme]),shown=useRef(false),[resolved,setResolved]=useState(false);OPEN.has(ask.stage)&&(shown.current=true);let open=shown.current&&(OPEN.has(ask.stage)||ask.stage==="verified")&&!resolved&&!introOpen,finish=()=>{resolved||(ask.stage==="verified"?(setResolved(true),callHost(onResolved,"verified")):ask.dismiss())};useEffect(()=>{shown.current&&ask.stage==="dismissed"&&!resolved&&(setResolved(true),callHost(onResolved,"dismissed"))},[ask.stage,onResolved,resolved]);let dialog=useModalDialog(open,finish);if(!open)return null;let title=ask.stage==="verified"?TEXTING_COPY.verifiedTitle:TEXTING_BRAND_COPY.promptTitle(ask.brand);/* @__PURE__ */
89
89
  return jsx("dialog",{ref:dialog.dialogRef,"aria-label":title,"aria-modal":"true",onCancel:dialog.onCancel,onKeyDown:dialog.onKeyDown,style:styles.frame,"data-everfur-texting-prompt":"",children:/* @__PURE__ */jsx("div",{style:styles.scrim,onClick:event=>{event.target===event.currentTarget&&finish()},children:/* @__PURE__ */jsxs("div",{style:styles.panel,children:[
90
90
  /* @__PURE__ */jsx("h2",{style:styles.title,children:title}),ask.stage==="offered"?/* @__PURE__ */jsxs(Fragment,{children:[
91
91
  /* @__PURE__ */jsx("p",{style:styles.body,children:TEXTING_COPY.promptBody}),
@@ -125,4 +125,4 @@ return jsxRuntime.jsx(PlanNeedCard,{ref:root,...props})}function PriceSummary3(p
125
125
  return jsxRuntime.jsx(BlockScope,{children:/* @__PURE__ */jsxRuntime.jsx(PriceSummaryBody,{...props})})}function PriceSummaryBody(props){let root=useBlockStyles(PRICE_SUMMARY_PARTS);/* @__PURE__ */
126
126
  return jsxRuntime.jsx(PriceSummary,{ref:root,...props})}function ProductTile3(props){return registerIconSet(),/* @__PURE__ */jsxRuntime.jsx(BlockScope,{children:/* @__PURE__ */jsxRuntime.jsx(ProductTileBody,{...props})})}function ProductTileBody(props){let root=useBlockStyles(PRODUCT_TILE_PARTS);/* @__PURE__ */
127
127
  return jsxRuntime.jsx(ProductTile,{ref:root,...props})}function TipCard3(props){return registerIconSet(),/* @__PURE__ */jsxRuntime.jsx(BlockScope,{children:/* @__PURE__ */jsxRuntime.jsx(TipCardBody,{...props})})}function TipCardBody(props){let root=useBlockStyles(TIP_CARD_PARTS);/* @__PURE__ */
128
- return jsxRuntime.jsx(TipCard,{ref:root,...props})}var SDK_VERSION="1.0.1";var WEB_RUNTIME_PUBLIC_KEYS=/* @__PURE__ */Object.freeze({k1:"X4wc1hwVONs4I9Vmclo9ExrfPZlH8-tgY7NmzxuA5lI"});function webRuntimeIdentity(version,keys){let keySet=Object.keys(keys).sort().map(id=>`${id}=${keys[id]}`).join(",");return`v${1}|${version}|${keySet}`}var WEB_RUNTIME_IDENTITY=webRuntimeIdentity(SDK_VERSION,WEB_RUNTIME_PUBLIC_KEYS);var RENDERER_SYMBOL=/* @__PURE__ */Symbol.for(`@everfur/sdk#WebRuntimeRenderer@${WEB_RUNTIME_IDENTITY}`),slot=globalThis;function renderRuntimePart(spec2,props){let renderer=slot[RENDERER_SYMBOL];return renderer===void 0?react.createElement(spec2.bundled,props):renderer(spec2,props)}var spec=(name,bundled)=>({part:"ui",name:name,bundled:bundled,wait:"bundled"}),CART_LINE=spec("CartLine",CartLine3),ORDER_ROW=spec("OrderRow",OrderRow3),PLAN_NEED_CARD=spec("PlanNeedCard",PlanNeedCard3),PRICE_SUMMARY=spec("PriceSummary",PriceSummary3),PRODUCT_TILE=spec("ProductTile",ProductTile3),TIP_CARD=spec("TipCard",TipCard3);function CartLine4(props){return renderRuntimePart(CART_LINE,props)}function OrderRow4(props){return renderRuntimePart(ORDER_ROW,props)}function PlanNeedCard4(props){return renderRuntimePart(PLAN_NEED_CARD,props)}function PriceSummary4(props){return renderRuntimePart(PRICE_SUMMARY,props)}function ProductTile4(props){return renderRuntimePart(PRODUCT_TILE,props)}function TipCard4(props){return renderRuntimePart(TIP_CARD,props)}exports.CartLine=CartLine4;exports.OrderRow=OrderRow4;exports.PlanNeedCard=PlanNeedCard4;exports.PriceSummary=PriceSummary4;exports.ProductTile=ProductTile4;exports.TipCard=TipCard4;
128
+ return jsxRuntime.jsx(TipCard,{ref:root,...props})}var SDK_VERSION="1.2.0";var WEB_RUNTIME_PUBLIC_KEYS=/* @__PURE__ */Object.freeze({k1:"X4wc1hwVONs4I9Vmclo9ExrfPZlH8-tgY7NmzxuA5lI"});function webRuntimeIdentity(version,keys){let keySet=Object.keys(keys).sort().map(id=>`${id}=${keys[id]}`).join(",");return`v${1}|${version}|${keySet}`}var WEB_RUNTIME_IDENTITY=webRuntimeIdentity(SDK_VERSION,WEB_RUNTIME_PUBLIC_KEYS);var RENDERER_SYMBOL=/* @__PURE__ */Symbol.for(`@everfur/sdk#WebRuntimeRenderer@${WEB_RUNTIME_IDENTITY}`),slot=globalThis;function renderRuntimePart(spec2,props){let renderer=slot[RENDERER_SYMBOL];return renderer===void 0?react.createElement(spec2.bundled,props):renderer(spec2,props)}var spec=(name,bundled)=>({part:"ui",name:name,bundled:bundled,wait:"bundled"}),CART_LINE=spec("CartLine",CartLine3),ORDER_ROW=spec("OrderRow",OrderRow3),PLAN_NEED_CARD=spec("PlanNeedCard",PlanNeedCard3),PRICE_SUMMARY=spec("PriceSummary",PriceSummary3),PRODUCT_TILE=spec("ProductTile",ProductTile3),TIP_CARD=spec("TipCard",TipCard3);function CartLine4(props){return renderRuntimePart(CART_LINE,props)}function OrderRow4(props){return renderRuntimePart(ORDER_ROW,props)}function PlanNeedCard4(props){return renderRuntimePart(PLAN_NEED_CARD,props)}function PriceSummary4(props){return renderRuntimePart(PRICE_SUMMARY,props)}function ProductTile4(props){return renderRuntimePart(PRODUCT_TILE,props)}function TipCard4(props){return renderRuntimePart(TIP_CARD,props)}exports.CartLine=CartLine4;exports.OrderRow=OrderRow4;exports.PlanNeedCard=PlanNeedCard4;exports.PriceSummary=PriceSummary4;exports.ProductTile=ProductTile4;exports.TipCard=TipCard4;
@@ -1,6 +1,6 @@
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 client";
3
- import{UI_ICON_LEAF,UI_ICON_ARROW_LEFT,planNeedCardCss,PlanNeedCard,buttonCss,tipCardCss,TipCard,Button}from"../../chunk-FNF5TLN6.js";import{BlockScope,UI_ICON_PLUS,UI_ICON_MINUS,UI_ICON_BOX,useBlockStyles,cartLineCss,CartLine,thumbnailCss,BlockThumbnail}from"../../chunk-3RVFIOWI.js";import{renderRuntimePart,registerIcons,UI_ICON_CHEVRON,iconCss,skeletonCss,summaryListCss,useEfdsPart,useLinkComponent,Skeleton,cx,dataOf,itemTestID,BlockIcon,SummaryList,useTheme,blockMetrics,productBlendBlockMetrics,orderWebBlockMetrics,productWebBlockMetrics,colorOf,mixColor,stepTo,SvgIcon}from"../../chunk-VKLLSI2B.js";import{jsx,jsxs,Fragment}from"react/jsx-runtime";import{forwardRef,Fragment as Fragment$1,useRef,useCallback,useEffect,useMemo,useState,useLayoutEffect}from"react";var UI_ICON_ALERT={viewBox:"0 0 24 24",children:[["g",{fill:"none",stroke:"currentColor",strokeWidth:"2",strokeLinecap:"round",strokeLinejoin:"round"},[["path",{d:"m21.73 18-8-14a2 2 0 0 0-3.48 0l-8 14A2 2 0 0 0 4 21h16a2 2 0 0 0 1.73-3"},[]],["path",{d:"M12 9v4"},[]],["path",{d:"M12 17h.01"},[]]]]]};var UI_ICON_BAG={viewBox:"0 0 24 24",children:[["g",{fill:"none",stroke:"currentColor",strokeWidth:"2",strokeLinecap:"round",strokeLinejoin:"round"},[["path",{d:"M6 2 3 6v14a2 2 0 0 0 2 2h14a2 2 0 0 0 2-2V6l-3-4Z"},[]],["path",{d:"M3 6h18"},[]],["path",{d:"M16 10a4 4 0 0 1-8 0"},[]]]]]};var UI_ICON_BELL={viewBox:"0 0 16.8429 16.8429",children:[["g",{fill:"none"},[["g",{},[["path",{d:"M7.04162 14.7372C7.16482 14.9506 7.342 15.1278 7.55536 15.2509C7.76872 15.3741 8.01075 15.439 8.25711 15.439C8.50348 15.439 8.74551 15.3741 8.95887 15.2509C9.17223 15.1278 9.34941 14.9506 9.47261 14.7372M15.275 5.61403C15.275 3.99993 14.7135 2.59636 13.8714 1.40332M2.64283 1.40332C1.80069 2.59636 1.23926 3.99993 1.23926 5.61403M2.12491 10.7553C2.03323 10.8558 1.97273 10.9808 1.95077 11.115C1.9288 11.2492 1.94632 11.387 2.00119 11.5114C2.05606 11.6359 2.14592 11.7417 2.25983 11.816C2.37375 11.8904 2.50681 11.93 2.64283 11.9301H13.8714C14.0074 11.9302 14.1405 11.8907 14.2545 11.8165C14.3685 11.7423 14.4584 11.6366 14.5135 11.5122C14.5685 11.3878 14.5862 11.2501 14.5644 11.1159C14.5426 10.9816 14.4823 10.8566 14.3907 10.756C13.4573 9.79387 12.4678 8.77137 12.4678 5.61403C12.4678 4.49728 12.0242 3.42627 11.2345 2.63661C10.4449 1.84695 9.37387 1.40332 8.25711 1.40332C7.14036 1.40332 6.06935 1.84695 5.27969 2.63661C4.49003 3.42627 4.0464 4.49728 4.0464 5.61403C4.0464 8.77137 3.05618 9.79387 2.12491 10.7553Z",stroke:"currentColor",strokeWidth:"1.40357",strokeLinecap:"round",strokeLinejoin:"round"},[]]]]]]]};var UI_ICON_BOWL={viewBox:"0 0 24 24",children:[["g",{fill:"none",stroke:"currentColor",strokeWidth:"2",strokeLinecap:"round",strokeLinejoin:"round"},[["path",{d:"M2 11h20"},[]],["path",{d:"M4 11c0 4.4 3.6 8 8 8s8-3.6 8-8"},[]],["path",{d:"M8.5 8c1.2-1.6 5.8-1.6 7 0"},[]]]]]};var UI_ICON_CALENDAR={viewBox:"0 0 24 24",children:[["g",{fill:"none",stroke:"currentColor",strokeWidth:"2",strokeLinecap:"round",strokeLinejoin:"round"},[["path",{d:"M8 2v4"},[]],["path",{d:"M16 2v4"},[]],["rect",{width:"18",height:"18",x:"3",y:"4",rx:"2"},[]],["path",{d:"M3 10h18"},[]]]]]};var UI_ICON_CAMERA={viewBox:"0 0 24 24",children:[["g",{fill:"none",stroke:"currentColor",strokeWidth:"2",strokeLinecap:"round",strokeLinejoin:"round"},[["path",{d:"M14.5 4h-5L7 7H4a2 2 0 0 0-2 2v9a2 2 0 0 0 2 2h16a2 2 0 0 0 2-2V9a2 2 0 0 0-2-2h-3l-2.5-3z"},[]],["circle",{cx:"12",cy:"13",r:"3"},[]]]]]};var UI_ICON_CHECK={viewBox:"0 0 24 24",children:[["path",{d:"M20 6 9 17l-5-5",fill:"none",stroke:"currentColor",strokeWidth:"2",strokeLinecap:"round",strokeLinejoin:"round"},[]]]};var UI_ICON_CLOCK={viewBox:"0 0 22.5814 22.5814",children:[["g",{fill:"none"},[["g",{},[["path",{d:"M11.2907 20.6999C16.4871 20.6999 20.6996 16.4873 20.6996 11.2909C20.6996 6.09451 16.4871 1.88199 11.2907 1.88199C6.0943 1.88199 1.88178 6.09451 1.88178 11.2909C1.88178 16.4873 6.0943 20.6999 11.2907 20.6999Z",stroke:"currentColor",strokeWidth:"1.88179",strokeLinecap:"round",strokeLinejoin:"round"},[]],["path",{d:"M11.2907 5.64559V11.2909L15.0543 13.1727",stroke:"currentColor",strokeWidth:"1.88179",strokeLinecap:"round",strokeLinejoin:"round"},[]]]]]]]};var UI_ICON_DOWNLOAD={viewBox:"0 0 24.7029 24.7029",children:[["g",{fill:"none"},[["g",{},[["path",{d:"M12.3514 15.4394V3.08798M17.4978 10.293L12.3514 15.4394L7.20495 10.293M21.6149 15.4394V19.5566C21.6149 20.1025 21.3981 20.6261 21.012 21.0122C20.6259 21.3982 20.1023 21.6151 19.5564 21.6151H5.14637C4.60041 21.6151 4.0768 21.3982 3.69074 21.0122C3.30469 20.6261 3.0878 20.1025 3.0878 19.5566V15.4394",stroke:"currentColor",strokeWidth:"2.05857",strokeLinecap:"round",strokeLinejoin:"round"},[]]]]]]]};var UI_ICON_EDIT={viewBox:"0 0 24 24",children:[["g",{fill:"none",stroke:"currentColor",strokeWidth:"2",strokeLinecap:"round",strokeLinejoin:"round"},[["path",{d:"M12 3H5a2 2 0 0 0-2 2v14a2 2 0 0 0 2 2h14a2 2 0 0 0 2-2v-7"},[]],["path",{d:"M18.375 2.625a1 1 0 0 1 3 3l-9.013 9.014a2 2 0 0 1-.853.505l-2.873.84a.5.5 0 0 1-.62-.62l.84-2.873a2 2 0 0 1 .506-.852z"},[]]]]]};var UI_ICON_FILE={viewBox:"0 0 24 24",children:[["g",{fill:"none",stroke:"currentColor",strokeWidth:"2",strokeLinecap:"round",strokeLinejoin:"round"},[["path",{d:"M15 2H6a2 2 0 0 0-2 2v16a2 2 0 0 0 2 2h12a2 2 0 0 0 2-2V7Z"},[]],["path",{d:"M14 2v4a2 2 0 0 0 2 2h4"},[]],["path",{d:"M10 9H8"},[]],["path",{d:"M16 13H8"},[]],["path",{d:"M16 17H8"},[]]]]]};var UI_ICON_FLASK={viewBox:"0 0 22.5814 22.5814",children:[["g",{fill:"none"},[["g",{},[["path",{d:"M13.1725 1.88153V7.52689C13.1724 7.84254 13.2516 8.15316 13.403 8.43014L18.5873 17.9143C18.7442 18.201 18.8237 18.5234 18.818 18.8501C18.8124 19.1767 18.7218 19.4963 18.5552 19.7773C18.3886 20.0583 18.1517 20.2911 17.8678 20.4528C17.5839 20.6145 17.2628 20.6995 16.9361 20.6994H5.64536C5.31866 20.6995 4.99757 20.6145 4.71368 20.4528C4.42979 20.2911 4.19288 20.0583 4.02626 19.7773C3.85964 19.4963 3.76906 19.1767 3.76342 18.8501C3.75778 18.5234 3.83728 18.201 3.99409 17.9143L9.17841 8.43014C9.32979 8.15316 9.40907 7.84254 9.40893 7.52689V1.88153",stroke:"currentColor",strokeWidth:"1.88179",strokeLinecap:"round",strokeLinejoin:"round"},[]],["path",{d:"M6.07162 14.1128H16.5099",stroke:"currentColor",strokeWidth:"1.88179",strokeLinecap:"round",strokeLinejoin:"round"},[]],["path",{d:"M7.99755 1.88153H14.5838",stroke:"currentColor",strokeWidth:"1.88179",strokeLinecap:"round",strokeLinejoin:"round"},[]]]]]]]};var UI_ICON_FOLDER={viewBox:"0 0 22.5814 22.5814",children:[["g",{fill:"none"},[["g",{},[["path",{d:"M18.8179 18.8175C19.3169 18.8175 19.7956 18.6193 20.1485 18.2664C20.5014 17.9135 20.6996 17.4348 20.6996 16.9358V7.52683C20.6996 7.02775 20.5014 6.54911 20.1485 6.19621C19.7956 5.8433 19.3169 5.64504 18.8179 5.64504H11.3848C11.0701 5.64813 10.7596 5.57223 10.4818 5.42429C10.204 5.27635 9.96778 5.0611 9.79469 4.79824L9.03257 3.66917C8.86123 3.40898 8.62796 3.19541 8.35372 3.04761C8.07947 2.89981 7.77282 2.82241 7.46128 2.82236H3.76357C3.26449 2.82236 2.78585 3.02062 2.43294 3.37353C2.08004 3.72643 1.88178 4.20507 1.88178 4.70415V16.9358C1.88178 17.4348 2.08004 17.9135 2.43294 18.2664C2.78585 18.6193 3.26449 18.8175 3.76357 18.8175H18.8179Z",stroke:"currentColor",strokeWidth:"1.88179",strokeLinecap:"round",strokeLinejoin:"round"},[]]]]]]]};var UI_ICON_HEART={viewBox:"0 0 25.7143 25.7143",children:[["g",{fill:"none"},[["g",{},[["path",{d:"M2.14286 10.1783C2.14288 8.98605 2.50456 7.82182 3.18014 6.8394C3.85572 5.85699 4.81341 5.10261 5.92672 4.67591C7.04004 4.2492 8.2566 4.17024 9.41573 4.44945C10.5749 4.72867 11.622 5.35292 12.4189 6.23976C12.4751 6.29978 12.5429 6.34762 12.6183 6.38034C12.6937 6.41305 12.775 6.42993 12.8571 6.42993C12.9393 6.42993 13.0206 6.41305 13.096 6.38034C13.1714 6.34762 13.2392 6.29978 13.2954 6.23976C14.0898 5.34716 15.1372 4.71766 16.2982 4.43505C17.4592 4.15244 18.6787 4.23014 19.7945 4.65778C20.9103 5.08543 21.8693 5.84275 22.5441 6.82894C23.2188 7.81514 23.5771 8.98344 23.5714 10.1783C23.5714 12.6319 21.9643 14.4641 20.3571 16.0712L14.4729 21.7637C14.2732 21.993 14.0271 22.1772 13.7508 22.304C13.4745 22.4309 13.1743 22.4975 12.8703 22.4994C12.5663 22.5013 12.2653 22.4385 11.9875 22.3152C11.7096 22.1919 11.4611 22.0108 11.2586 21.7841L5.35714 16.0712C3.75 14.4641 2.14286 12.6426 2.14286 10.1783Z",stroke:"currentColor",strokeWidth:"2.14286",strokeLinecap:"round",strokeLinejoin:"round"},[]]]]]]]};var UI_ICON_HELP={viewBox:"0 0 24 24",children:[["g",{fill:"none",stroke:"currentColor",strokeWidth:"2",strokeLinecap:"round",strokeLinejoin:"round"},[["circle",{cx:"12",cy:"12",r:"10"},[]],["path",{d:"M9.09 9a3 3 0 0 1 5.83 1c0 2-3 3-3 3"},[]],["path",{d:"M12 17h.01"},[]]]]]};var UI_ICON_HOUSE={viewBox:"0 0 24 24",children:[["g",{fill:"none",stroke:"currentColor",strokeWidth:"2",strokeLinecap:"round",strokeLinejoin:"round"},[["path",{d:"M15 21v-8a1 1 0 0 0-1-1h-4a1 1 0 0 0-1 1v8"},[]],["path",{d:"M3 10a2 2 0 0 1 .709-1.528l7-5.999a2 2 0 0 1 2.582 0l7 5.999A2 2 0 0 1 21 10v9a2 2 0 0 1-2 2H5a2 2 0 0 1-2-2z"},[]]]]]};var UI_ICON_IMAGE={viewBox:"0 0 24 24",children:[["g",{fill:"none",stroke:"currentColor",strokeWidth:"2",strokeLinecap:"round",strokeLinejoin:"round"},[["rect",{width:"18",height:"18",x:"3",y:"3",rx:"2"},[]],["circle",{cx:"9",cy:"9",r:"2"},[]],["path",{d:"m21 15-3.086-3.086a2 2 0 0 0-2.828 0L6 21"},[]]]]]};var UI_ICON_INFO={viewBox:"0 0 24 24",children:[["g",{fill:"none",stroke:"currentColor",strokeWidth:"2",strokeLinecap:"round",strokeLinejoin:"round"},[["circle",{cx:"12",cy:"12",r:"10"},[]],["path",{d:"M12 16v-4"},[]],["path",{d:"M12 8h.01"},[]]]]]};var UI_ICON_LOCK={viewBox:"0 0 24 24",children:[["g",{fill:"none",stroke:"currentColor",strokeWidth:"2",strokeLinecap:"round",strokeLinejoin:"round"},[["rect",{width:"18",height:"11",x:"3",y:"11",rx:"2"},[]],["path",{d:"M7 11V7a5 5 0 0 1 10 0v4"},[]]]]]};var UI_ICON_MAIL={viewBox:"0 0 24 24",children:[["g",{fill:"none",stroke:"currentColor",strokeWidth:"2",strokeLinecap:"round",strokeLinejoin:"round"},[["rect",{width:"20",height:"16",x:"2",y:"4",rx:"2"},[]],["path",{d:"m22 7-8.97 5.7a1.94 1.94 0 0 1-2.06 0L2 7"},[]]]]]};var UI_ICON_MESSAGE={viewBox:"0 0 24 24",children:[["path",{d:"M7.9 20A9 9 0 1 0 4 16.1L2 22Z",fill:"none",stroke:"currentColor",strokeWidth:"2",strokeLinecap:"round",strokeLinejoin:"round"},[]]]};var UI_ICON_MORE={viewBox:"0 0 24 24",children:[["g",{fill:"currentColor"},[["circle",{cx:"5.5",cy:"12",r:"1.7"},[]],["circle",{cx:"12",cy:"12",r:"1.7"},[]],["circle",{cx:"18.5",cy:"12",r:"1.7"},[]]]]]};var UI_ICON_PAW={viewBox:"0 0 24 24",children:[["g",{fill:"none",stroke:"currentColor",strokeWidth:"2",strokeLinecap:"round",strokeLinejoin:"round"},[["circle",{cx:"11",cy:"4",r:"2"},[]],["circle",{cx:"18",cy:"8",r:"2"},[]],["circle",{cx:"20",cy:"16",r:"2"},[]],["path",{d:"M9 10a5 5 0 0 1 5 5v3.5a3.5 3.5 0 0 1-6.84 1.045Q6.52 17.48 4.46 16.84A3.5 3.5 0 0 1 5.5 10Z"},[]]]]]};var UI_ICON_PHONE={viewBox:"0 0 24 24",children:[["path",{d:"M13.832 16.568a1 1 0 0 0 1.213-.303l.355-.465A2 2 0 0 1 17 15h3a2 2 0 0 1 2 2v3a2 2 0 0 1-2 2A18 18 0 0 1 2 4a2 2 0 0 1 2-2h3a2 2 0 0 1 2 2v3a2 2 0 0 1-.8 1.6l-.468.351a1 1 0 0 0-.292 1.233 14 14 0 0 0 6.392 6.384",fill:"none",stroke:"currentColor",strokeWidth:"2",strokeLinecap:"round",strokeLinejoin:"round"},[]]]};var UI_ICON_PILL={viewBox:"0 0 24 24",children:[["g",{fill:"none",stroke:"currentColor",strokeWidth:"2",strokeLinecap:"round",strokeLinejoin:"round"},[["path",{d:"m10.5 20.5 10-10a4.95 4.95 0 1 0-7-7l-10 10a4.95 4.95 0 1 0 7 7Z"},[]],["path",{d:"m8.5 8.5 7 7"},[]]]]]};var UI_ICON_PIN={viewBox:"0 0 24 24",children:[["g",{fill:"none",stroke:"currentColor",strokeWidth:"2",strokeLinecap:"round",strokeLinejoin:"round"},[["path",{d:"M20 10c0 4.993-5.539 10.193-7.399 11.799a1 1 0 0 1-1.202 0C9.539 20.193 4 14.993 4 10a8 8 0 0 1 16 0"},[]],["circle",{cx:"12",cy:"10",r:"3"},[]]]]]};var UI_ICON_SEARCH={viewBox:"0 0 24 24",children:[["g",{fill:"none",stroke:"currentColor",strokeWidth:"2",strokeLinecap:"round",strokeLinejoin:"round"},[["circle",{cx:"11",cy:"11",r:"8"},[]],["path",{d:"m21 21-4.3-4.3"},[]]]]]};var UI_ICON_SEND={viewBox:"0 0 24 24",children:[["g",{fill:"none",stroke:"currentColor",strokeWidth:"2",strokeLinecap:"round",strokeLinejoin:"round"},[["path",{d:"M14.536 21.686a.5.5 0 0 0 .937-.024l6.5-19a.496.496 0 0 0-.635-.635l-19 6.5a.5.5 0 0 0-.024.937l7.93 3.18a2 2 0 0 1 1.112 1.11z"},[]],["path",{d:"m21.854 2.147-10.94 10.939"},[]]]]]};var UI_ICON_SHIELD={viewBox:"0 0 22.5814 22.5814",children:[["g",{fill:"none"},[["g",{},[["path",{d:"M18.8178 12.2313C18.8178 16.9358 15.5247 19.2881 11.6106 20.6523C11.4056 20.7218 11.183 20.7185 10.9802 20.6429C7.05663 19.288 3.76351 16.9358 3.76351 12.2313V5.6451C3.76351 5.39556 3.86264 5.15624 4.03909 4.97979C4.21554 4.80333 4.45486 4.7042 4.7044 4.7042C6.58619 4.7042 8.93842 3.57513 10.5756 2.14498C10.7749 1.97467 11.0285 1.8811 11.2907 1.8811C11.5528 1.8811 11.8064 1.97467 12.0057 2.14498C13.6523 3.58454 15.9951 4.7042 17.8769 4.7042C18.1264 4.7042 18.3658 4.80333 18.5422 4.97979C18.7187 5.15624 18.8178 5.39556 18.8178 5.6451V12.2313Z",stroke:"currentColor",strokeWidth:"1.88179",strokeLinecap:"round",strokeLinejoin:"round"},[]],["path",{d:"M8.468 11.2906L10.3498 13.1724L14.1134 9.40885",stroke:"currentColor",strokeWidth:"1.88179",strokeLinecap:"round",strokeLinejoin:"round"},[]]]]]]]};var UI_ICON_SPARKLE={viewBox:"0 0 24 24",children:[["g",{fill:"none",stroke:"currentColor",strokeWidth:"2",strokeLinecap:"round",strokeLinejoin:"round"},[["path",{d:"M12 3.5c.6 4.2 2.3 6 6.5 6.6-4.2.6-5.9 2.3-6.5 6.5-.6-4.2-2.3-5.9-6.5-6.5 4.2-.6 5.9-2.4 6.5-6.6Z"},[]],["path",{d:"M19 15.5c.3 1.6.9 2.2 2.5 2.5-1.6.3-2.2.9-2.5 2.5-.3-1.6-.9-2.2-2.5-2.5 1.6-.3 2.2-.9 2.5-2.5Z"},[]]]]]};var UI_ICON_SYRINGE={viewBox:"0 0 19.5956 19.5956",children:[["g",{fill:"none"},[["g",{},[["path",{d:"M14.5322 1.63281L17.7982 4.89874",stroke:"currentColor",strokeWidth:"1.63296",strokeLinecap:"round",strokeLinejoin:"round"},[]],["path",{d:"M13.7158 5.71556L16.1653 3.26611",stroke:"currentColor",strokeWidth:"1.63296",strokeLinecap:"round",strokeLinejoin:"round"},[]],["path",{d:"M15.3496 7.34845L6.93981 15.7582C6.12333 16.5747 4.89861 16.5747 4.16377 15.7582L3.67388 15.2683C2.8574 14.4518 2.8574 13.2271 3.67388 12.4923L12.0836 4.08252",stroke:"currentColor",strokeWidth:"1.63296",strokeLinecap:"round",strokeLinejoin:"round"},[]],["path",{d:"M7.18457 8.9812L10.4505 12.2471",stroke:"currentColor",strokeWidth:"1.63296",strokeLinecap:"round",strokeLinejoin:"round"},[]],["path",{d:"M3.9182 15.5134L1.46875 17.9629",stroke:"currentColor",strokeWidth:"1.63296",strokeLinecap:"round",strokeLinejoin:"round"},[]],["path",{d:"M11.2666 3.26611L16.1655 8.16501",stroke:"currentColor",strokeWidth:"1.63296",strokeLinecap:"round",strokeLinejoin:"round"},[]]]]]]]};var UI_ICON_UPLOAD={viewBox:"0 0 24.7029 24.7029",children:[["g",{fill:"none"},[["g",{},[["path",{d:"M12.3515 3.08766V15.4391M7.20503 8.23409L12.3515 3.08766L17.4979 8.23409M21.615 15.4391V19.5562C21.615 20.1022 21.3981 20.6258 21.0121 21.0119C20.626 21.3979 20.1024 21.6148 19.5565 21.6148H5.14646C4.60049 21.6148 4.07688 21.3979 3.69083 21.0119C3.30477 20.6258 3.08789 20.1022 3.08789 19.5562V15.4391",stroke:"currentColor",strokeWidth:"2.05857",strokeLinecap:"round",strokeLinejoin:"round"},[]]]]]]]};var UI_ICON_USER={viewBox:"0 0 24 24",children:[["g",{fill:"none",stroke:"currentColor",strokeWidth:"1.75",strokeLinecap:"round",strokeLinejoin:"round"},[["path",{d:"M19 21v-2a4 4 0 0 0-4-4H9a4 4 0 0 0-4 4v2"},[]],["circle",{cx:"12",cy:"7",r:"4"},[]]]]]};var UI_ICON_VIDEO={viewBox:"0 0 24 24",children:[["g",{fill:"none",stroke:"currentColor",strokeWidth:"2",strokeLinecap:"round",strokeLinejoin:"round"},[["path",{d:"m16 13 5.223 3.482a.5.5 0 0 0 .777-.416V7.87a.5.5 0 0 0-.752-.432L16 10.5"},[]],["rect",{x:"2",y:"6",width:"14",height:"12",rx:"2"},[]]]]]};var UI_ICON_X={viewBox:"0 0 24 24",children:[["g",{fill:"none",stroke:"currentColor",strokeWidth:"2",strokeLinecap:"round",strokeLinejoin:"round"},[["path",{d:"M18 6 6 18"},[]],["path",{d:"m6 6 12 12"},[]]]]]};var UI_ICONS={alert:UI_ICON_ALERT,"arrow-left":UI_ICON_ARROW_LEFT,bag:UI_ICON_BAG,bell:UI_ICON_BELL,bowl:UI_ICON_BOWL,box:UI_ICON_BOX,calendar:UI_ICON_CALENDAR,camera:UI_ICON_CAMERA,check:UI_ICON_CHECK,chevron:UI_ICON_CHEVRON,clock:UI_ICON_CLOCK,download:UI_ICON_DOWNLOAD,edit:UI_ICON_EDIT,file:UI_ICON_FILE,flask:UI_ICON_FLASK,folder:UI_ICON_FOLDER,heart:UI_ICON_HEART,help:UI_ICON_HELP,house:UI_ICON_HOUSE,image:UI_ICON_IMAGE,info:UI_ICON_INFO,leaf:UI_ICON_LEAF,lock:UI_ICON_LOCK,mail:UI_ICON_MAIL,message:UI_ICON_MESSAGE,minus:UI_ICON_MINUS,more:UI_ICON_MORE,paw:UI_ICON_PAW,phone:UI_ICON_PHONE,pill:UI_ICON_PILL,pin:UI_ICON_PIN,plus:UI_ICON_PLUS,search:UI_ICON_SEARCH,send:UI_ICON_SEND,shield:UI_ICON_SHIELD,sparkle:UI_ICON_SPARKLE,syringe:UI_ICON_SYRINGE,upload:UI_ICON_UPLOAD,user:UI_ICON_USER,video:UI_ICON_VIDEO,x:UI_ICON_X};var registered=false;function registerIconSet(){registered||(registered=true,registerIcons(UI_ICONS))}var orderRowCss={name:"orderRow",props:[33,"",""],segments:[[548,`.efds-order-row{box-sizing:border-box;padding:0px 0px 0px 0px;display:grid;grid-template-columns:minmax(0, 1fr);column-gap:0px;list-style:none;margin:0px}\n.efds-order-row__body{min-width:0px}\n.efds-order-row__open{font:inherit;text-decoration:none;white-space:normal;cursor:pointer;touch-action:manipulation;-webkit-tap-highlight-color:transparent;box-sizing:border-box;border-style:solid;appearance:none;border:0px;padding:0px;background:none;display:block;width:100%;text-align:start;color:inherit;outline:var(--ef-ui-focus-width) solid transparent;outline-offset:var(--ef-ui-focus-offset)}\n.efds-order-row__open:focus-visible{outline-color:var(--ef-ui-color-focus)}\n.efds-order-row__top{display:flex;align-items:baseline;justify-content:space-between;column-gap:var(--ef-ui-t-space-3);row-gap:var(--ef-ui-t-space-3)}\n.efds-order-row__meta{min-width:0px;font-family:var(--ef-ui-font-family);font-weight:var(--ef-ui-t-type-weight-regular);font-size:var(--ef-ui-t-type-size-xs);line-height:17.55px;color:var(--ef-ui-color-muted);text-wrap:pretty}\n.efds-order-row__meta.efds-order-row__meta.efds-order-row__meta{margin:0px}\n.efds-order-row__title{display:block;font-family:var(--ef-ui-font-family);font-weight:var(--ef-ui-t-type-weight-bold);font-size:16px;line-height:20px;color:var(--ef-ui-color-text);letter-spacing:-0.16px;text-wrap:pretty}\n.efds-order-row__total{margin-inline-start:auto;font-family:var(--ef-ui-font-family);font-weight:var(--ef-ui-t-type-weight-bold);font-size:16px;line-height:24.8px;color:var(--ef-ui-color-text);font-variant-numeric:tabular-nums;text-wrap:pretty}\n.efds-order-row__shots{display:flex;flex-wrap:wrap;column-gap:var(--ef-ui-t-space-2);row-gap:var(--ef-ui-t-space-2);margin-top:var(--ef-ui-t-space-2)}\n.efds-order-row__measure{display:grid;flex:none}\n.efds-order-row__shot{font:inherit;text-decoration:none;white-space:nowrap;cursor:pointer;touch-action:manipulation;-webkit-tap-highlight-color:transparent;box-sizing:border-box;border-style:solid;appearance:none;border:0px;padding:0px;background:none;display:grid;flex:none;border-radius:var(--ef-ui-t-metrics-thumbnail-sm-frame-radius-0);outline:var(--ef-ui-focus-width) solid transparent;outline-offset:var(--ef-ui-focus-offset)}\n.efds-order-row__shot--empty{border-radius:var(--ef-ui-t-metrics-thumbnail-sm-empty-radius-0)}\n.efds-order-row__shot:active{transform:scale(0.96)}\n.efds-order-row__shot:focus-visible{outline-color:var(--ef-ui-color-focus)}\n.efds-order-row__error{grid-column:1 / -1;font-family:var(--ef-ui-font-family);font-weight:var(--ef-ui-t-type-weight-medium);font-size:var(--ef-ui-t-type-size-xs);line-height:17.55px;color:var(--ef-ui-color-alert);text-wrap:pretty}\n.efds-order-row__error.efds-order-row__error.efds-order-row__error{margin:0px;margin-top:var(--ef-ui-t-space-2)}\n.efds-order-row__acts{grid-column:1 / -1;display:grid;grid-auto-flow:column;grid-auto-columns:minmax(0, 1fr);column-gap:var(--ef-ui-t-space-2);margin-top:var(--ef-ui-t-space-3)}\n.efds-order-row__acts--grid{grid-auto-flow:row;grid-template-columns:repeat(2, minmax(0, 1fr));row-gap:var(--ef-ui-t-space-2)}\n.efds-order-row__act{font:inherit;text-decoration:none;white-space:nowrap;cursor:pointer;touch-action:manipulation;-webkit-tap-highlight-color:transparent;box-sizing:border-box;border-style:solid;appearance:none;border:0px solid var(--ef-ui-color-line);padding:0px var(--ef-ui-t-space-3) 0px var(--ef-ui-t-space-3);background:#F3F3F3;position:relative;column-gap:6px;row-gap:6px;border-radius:var(--ef-ui-radius-pill) var(--ef-ui-radius-pill) var(--ef-ui-radius-pill) var(--ef-ui-radius-pill);min-height:40px;display:inline-flex;align-items:center;justify-content:center;min-width:0px;font-family:var(--ef-ui-font-family);font-weight:var(--ef-ui-t-type-weight-bold);font-size:14px;line-height:21.7px;color:var(--ef-ui-color-text);text-wrap:pretty;outline:var(--ef-ui-focus-width) solid transparent;outline-offset:var(--ef-ui-focus-offset)}\n.efds-order-row__act--go{background:var(--ef-ui-color-go)}\n.efds-order-row__act:focus-visible{outline-color:var(--ef-ui-color-focus)}\n.efds-order-row__act:disabled, .efds-order-row__act[aria-disabled="true"]{opacity:0.45;cursor:default}\n.efds-order-row__act > .efds-icon{width:16px;height:16px;color:inherit}\n.efds-order-row__heading{display:grid;grid-template-columns:minmax(0, 1fr) auto;align-items:start;column-gap:var(--ef-ui-t-space-3);row-gap:var(--ef-ui-t-space-3)}\n.efds-order-row__words{display:block;min-width:0px}\n.efds-order-row__when{display:flex;flex-wrap:wrap;align-items:center;column-gap:var(--ef-ui-t-space-2);row-gap:var(--ef-ui-t-space-1)}\n.efds-order-row__day{font-family:var(--ef-ui-font-family);font-weight:var(--ef-ui-t-type-weight-bold);font-size:16px;line-height:20.8px;color:var(--ef-ui-color-text);text-wrap:pretty}\n.efds-order-row__chip{box-sizing:border-box;padding:0px 9px 0px 5px;column-gap:var(--ef-ui-t-space-1);row-gap:var(--ef-ui-t-space-1);border-radius:var(--ef-ui-radius-pill) var(--ef-ui-radius-pill) var(--ef-ui-radius-pill) var(--ef-ui-radius-pill);background:var(--ef-ui-color-tint-go);min-height:24px;display:inline-flex;align-items:center;white-space:nowrap;font-family:var(--ef-ui-font-family);font-weight:var(--ef-ui-t-type-weight-bold);font-size:12px;line-height:15.6px;color:var(--ef-ui-color-ink);text-wrap:pretty}\n.efds-order-row__chip > .efds-icon{width:14px;height:14px;color:var(--ef-ui-color-ink)}\n.efds-order-row__line{display:block;margin-top:2px;font-family:var(--ef-ui-font-family);font-weight:var(--ef-ui-t-type-weight-regular);font-size:var(--ef-ui-t-type-size-xs);line-height:17.55px;color:var(--ef-ui-color-muted);text-wrap:pretty}\n.efds-order-row__amount{font-family:var(--ef-ui-font-family);font-weight:var(--ef-ui-t-type-weight-bold);font-size:16px;line-height:24.8px;color:var(--ef-ui-color-text);font-variant-numeric:tabular-nums;text-wrap:pretty}\n.efds-order-row__shots--quiet{column-gap:var(--ef-ui-t-space-2);row-gap:var(--ef-ui-t-space-2);margin-top:var(--ef-ui-t-space-2)}\n.efds-order-row__shots--quiet .efds-thumbnail--sm.efds-thumbnail--photo{box-sizing:border-box;padding:0px 0px 0px 0px;border-radius:14px 14px 14px 14px;background:#F3F3F3;width:64px;height:64px;isolation:isolate}\n.efds-order-row__shots--quiet .efds-thumbnail--sm > .efds-thumbnail__img{top:0px;right:0px;bottom:0px;left:0px;width:100%;height:100%;padding:6.391px 6.391px 6.391px 6.391px;object-fit:contain;mix-blend-mode:multiply}\n.efds-order-row__acts--quiet{display:flex;flex-wrap:wrap;align-items:center;column-gap:var(--ef-ui-t-space-3);row-gap:var(--ef-ui-t-space-3);margin-top:var(--ef-ui-t-space-3)}\n.efds-order-row__act--quiet{padding:0px var(--ef-ui-t-space-4) 0px var(--ef-ui-t-space-4);min-height:44px}\n.efds-order-row__act--quiet > .efds-icon{width:16px;height:16px;color:inherit}\n.efds-order-row__act--link{padding:0px 6px 0px 6px;background:none;column-gap:unset;row-gap:unset;border-radius:unset;min-height:44px;text-decoration-line:underline;text-underline-offset:3px;text-decoration-thickness:1.5px}\n.efds-order-row--web{box-sizing:border-box;padding:var(--ef-ui-t-space-4) var(--ef-ui-t-space-5) var(--ef-ui-t-space-4) var(--ef-ui-t-space-4);column-gap:var(--ef-ui-t-space-5);row-gap:var(--ef-ui-t-space-4);border-radius:var(--ef-ui-radius-lg) var(--ef-ui-radius-lg) var(--ef-ui-radius-lg) var(--ef-ui-radius-lg);background:var(--ef-ui-color-surface);box-shadow:0px 1px 2px 0px rgba(0, 0, 0, 0.04), 0px 6px 20px 0px rgba(0, 0, 0, 0.05);position:relative;grid-template-columns:auto minmax(0, 1fr) auto;align-items:center}\n.efds-order-row__cover{font:inherit;text-decoration:none;white-space:nowrap;cursor:pointer;touch-action:manipulation;-webkit-tap-highlight-color:transparent;box-sizing:border-box;border-style:solid;appearance:none;border:0px;padding:0px;background:none;position:absolute;inset:0px;z-index:0;border-radius:inherit;outline:var(--ef-ui-focus-width) solid transparent;outline-offset:var(--ef-ui-focus-offset)}\n.efds-order-row__cover:focus-visible{outline-color:var(--ef-ui-color-focus)}\n.efds-order-row--press .efds-order-row__squares, .efds-order-row--press .efds-order-row__acts--web{position:relative;z-index:1}\n.efds-order-row__squares{display:flex;width:172px}\n.efds-order-row__sq{box-sizing:border-box;padding:0px 0px 0px 0px;border-radius:14px 14px 14px 14px;background:#F3F3F3;display:grid;place-items:center;flex:none;width:72px;height:72px;overflow:hidden;box-shadow:0 0 0 3px var(--ef-ui-color-surface)}\n.efds-order-row__squares > * + *{margin-left:-22px}\n.efds-order-row__measure--web, .efds-order-row__shot--web{display:block;flex:none;border-radius:14px}\n.efds-order-row__sqimg{grid-area:1 / 1;place-self:stretch;display:block;box-sizing:border-box;width:100%;height:100%;padding:10%;object-fit:contain;mix-blend-mode:multiply}\n.efds-order-row__sq > .efds-icon{width:var(--ef-ui-t-metrics-thumbnail-sm-icon-w);height:var(--ef-ui-t-metrics-thumbnail-sm-icon-w);color:var(--ef-ui-t-metrics-thumbnail-sm-icon-color)}\n.efds-order-row__text{display:grid;column-gap:2px;row-gap:2px;min-width:0px}\n.efds-order-row__stamp{display:flex;flex-wrap:wrap;align-items:center;column-gap:var(--ef-ui-t-space-3);row-gap:var(--ef-ui-t-space-1);font-family:var(--ef-ui-font-family);font-weight:var(--ef-ui-t-type-weight-bold);font-size:19px;line-height:24.7px;color:var(--ef-ui-color-text);font-variant-numeric:tabular-nums;text-wrap:pretty}\n.efds-order-row__stamp.efds-order-row__stamp.efds-order-row__stamp{margin:0px}\n.efds-order-row__sum{font-family:var(--ef-ui-font-family);font-weight:900;font-size:19px;line-height:24.7px;color:var(--ef-ui-color-text);font-variant-numeric:tabular-nums;text-wrap:pretty}\n.efds-order-row__chip--web{box-sizing:border-box;padding:0px 10px 0px 6px;column-gap:var(--ef-ui-t-space-1);row-gap:var(--ef-ui-t-space-1);border-radius:var(--ef-ui-radius-pill) var(--ef-ui-radius-pill) var(--ef-ui-radius-pill) var(--ef-ui-radius-pill);background:var(--ef-ui-color-tint-go);min-height:26px;font-family:var(--ef-ui-font-family);font-weight:var(--ef-ui-t-type-weight-bold);font-size:var(--ef-ui-t-type-size-xs);line-height:16.9px;color:var(--ef-ui-color-ink);font-variant-numeric:tabular-nums;text-wrap:pretty}\n.efds-order-row__chip--web > .efds-icon{width:16px;height:16px;color:var(--ef-ui-color-ink)}\n.efds-order-row__what{font-family:var(--ef-ui-font-family);font-weight:var(--ef-ui-t-type-weight-regular);font-size:16px;line-height:22.4px;color:var(--ef-ui-color-text);text-wrap:pretty}\n.efds-order-row__what.efds-order-row__what.efds-order-row__what{margin:0px}\n.efds-order-row__note{font-family:var(--ef-ui-font-family);font-weight:var(--ef-ui-t-type-weight-regular);font-size:var(--ef-ui-t-type-size-sm);line-height:21px;color:var(--ef-ui-color-text);text-wrap:pretty}\n.efds-order-row__note.efds-order-row__note.efds-order-row__note{margin:0px}\n.efds-order-row__error--web{grid-column:auto;font-family:var(--ef-ui-font-family);font-weight:var(--ef-ui-t-type-weight-regular);font-size:var(--ef-ui-t-type-size-sm);line-height:21px;color:var(--ef-ui-color-alert);text-wrap:pretty}\n.efds-order-row__error--web.efds-order-row__error--web.efds-order-row__error--web{margin-top:0px}\n.efds-order-row__acts--web{grid-column:3;display:flex;flex-wrap:wrap;justify-content:flex-end;align-items:center;column-gap:var(--ef-ui-t-space-5);row-gap:var(--ef-ui-t-space-2);margin-top:0px}\n.efds-order-row__act--web{border:0;padding:0px 20px 0px 20px;background:var(--ef-ui-color-surface);column-gap:var(--ef-ui-t-space-2);row-gap:var(--ef-ui-t-space-2);box-shadow:0px 0px 0px 0px, inset 0 0 0 1.5px #C6D3CD;min-height:46px;font-size:16px;line-height:19.2px;color:var(--ef-ui-color-ink)}\n.efds-order-row__act--web-go{padding:0px var(--ef-ui-t-space-5) 0px var(--ef-ui-t-space-5);background:var(--ef-ui-color-ink);column-gap:var(--ef-ui-t-space-2);row-gap:var(--ef-ui-t-space-2);min-height:52px;font-size:var(--ef-ui-t-type-size-md);line-height:20.4px;color:var(--ef-ui-color-surface);text-wrap:unset}\n.efds-order-row__act--web-link{padding:0px 0px 0px 0px;background:none;column-gap:var(--ef-ui-t-space-2);row-gap:var(--ef-ui-t-space-2);border-radius:unset;min-height:44px;font-size:var(--ef-ui-t-type-size-md);line-height:20.4px;color:var(--ef-ui-color-ink);text-decoration-line:underline;text-underline-offset:4px}\n.efds-order-row__act--web:active, .efds-order-row__act--web-go:active{transform:scale(0.97)}\n@media (hover: hover) and (pointer: fine){\n.efds-order-row__act--web:hover{background:color-mix(in srgb, var(--ef-ui-color-ink) 6%, var(--ef-ui-color-surface))}\n}\n.efds-order-row__act--web > .efds-icon, .efds-order-row__act--web-go > .efds-icon, .efds-order-row__act--web-link > .efds-icon{width:18px;height:18px;color:inherit}\n.efds-order-row__chip--off{background:transparent}\n.efds-order-row__link{font:inherit;text-decoration:none;white-space:normal;cursor:pointer;touch-action:manipulation;-webkit-tap-highlight-color:transparent;box-sizing:border-box;border-style:solid;appearance:none;border:0px;padding:0px;background:none;display:inline;color:inherit;text-align:inherit;text-decoration-line:underline;outline:var(--ef-ui-focus-width) solid transparent;outline-offset:var(--ef-ui-focus-offset)}\n.efds-order-row__link:focus-visible{outline-color:var(--ef-ui-color-focus)}\n@container (max-width: 599px){\n.efds-order-row--web{grid-template-columns:minmax(0, 1fr);padding:var(--ef-ui-t-space-4) var(--ef-ui-t-space-4) var(--ef-ui-t-space-4) var(--ef-ui-t-space-4)}\n.efds-order-row__squares{width:auto}\n.efds-order-row__sq{width:64px;height:64px}\n.efds-order-row__squares > * + *{margin-left:-16px}\n.efds-order-row__acts--web{grid-column:1 / -1;justify-content:flex-start}\n}\n@media (max-width: 639px){\n.efds-order-row--web{grid-template-columns:minmax(0, 1fr) auto;column-gap:var(--ef-ui-t-space-3);row-gap:var(--ef-ui-t-space-2);padding:0px;border-radius:0px;background:none;box-shadow:none}\n.efds-order-row__squares{grid-column:2;grid-row:1;width:auto;align-self:start}\n.efds-order-row__sq{width:48px;height:48px;border-radius:12px;box-shadow:0 0 0 2px var(--ef-ui-color-surface)}\n.efds-order-row__measure--web, .efds-order-row__shot--web{border-radius:12px}\n.efds-order-row__squares > * + *{margin-left:-18px}\n.efds-order-row__text{grid-column:1;grid-row:1}\n.efds-order-row__stamp{column-gap:var(--ef-ui-t-space-3);row-gap:2px;font-family:var(--ef-ui-font-family);font-weight:var(--ef-ui-t-type-weight-bold);font-size:16px;line-height:20.8px;color:var(--ef-ui-color-text);font-variant-numeric:tabular-nums;text-wrap:pretty}\n.efds-order-row__sum{font-family:var(--ef-ui-font-family);font-weight:900;font-size:16px;line-height:20.8px;color:var(--ef-ui-color-text);font-variant-numeric:tabular-nums;text-wrap:pretty}\n.efds-order-row__chip--web{min-height:24px;font-family:var(--ef-ui-font-family);font-weight:var(--ef-ui-t-type-weight-bold);font-size:12px;line-height:15.6px;color:var(--ef-ui-color-ink);font-variant-numeric:tabular-nums;text-wrap:pretty}\n.efds-order-row__what{display:none}\n.efds-order-row__what--keep{display:block}\n.efds-order-row__note{font-family:var(--ef-ui-font-family);font-weight:var(--ef-ui-t-type-weight-regular);font-size:var(--ef-ui-t-type-size-xs);line-height:18.2px;color:var(--ef-ui-color-text);text-wrap:pretty}\n.efds-order-row__acts--web{grid-column:1 / -1;justify-content:flex-start;column-gap:var(--ef-ui-t-space-5);row-gap:var(--ef-ui-t-space-2)}\n.efds-order-row__act--web{min-height:46px;padding:0px var(--ef-ui-t-space-4) 0px var(--ef-ui-t-space-4);font-family:var(--ef-ui-font-family);font-weight:var(--ef-ui-t-type-weight-bold);font-size:var(--ef-ui-t-type-size-sm);line-height:18px;color:var(--ef-ui-color-ink);text-wrap:pretty}\n.efds-order-row__act--web-link{font-family:var(--ef-ui-font-family);font-weight:var(--ef-ui-t-type-weight-bold);font-size:var(--ef-ui-t-type-size-sm);line-height:18px;color:var(--ef-ui-color-ink);text-decoration-line:underline;text-underline-offset:4px;text-wrap:pretty}\n}\n`],[1413,`@media (prefers-reduced-motion: reduce){\n.efds-order-row__shot:active, .efds-order-row__act--web:active, .efds-order-row__act--web-go:active{transform:none}\n}\n`],[1436,`@media (forced-colors: active){\n.efds-order-row__open:not(:focus-visible), .efds-order-row__shot:not(:focus-visible), .efds-order-row__act:not(:focus-visible), .efds-order-row__cover:not(:focus-visible), .efds-order-row__link:not(:focus-visible){outline-style:none}\n}\n`]],needs:[iconCss,skeletonCss,thumbnailCss]};var productTileCss={name:"productTile",props:[34,"--ef-ui-t-metrics-thumbnail-md-frame-margin-bottom:6px;--ef-ui-t-metrics-thumbnail-lg-frame-margin-bottom:8px",""],segments:[[639,`.efds-product-tile{box-sizing:border-box;padding:0px 0px 0px 0px;column-gap:var(--ef-ui-t-space-1);row-gap:var(--ef-ui-t-space-1);display:grid;align-content:start}\n.efds-product-tile > .efds-product-tile__img{margin-bottom:var(--ef-ui-t-metrics-thumbnail-md-frame-margin-bottom)}\n.efds-product-tile__ph{display:block;width:100%;aspect-ratio:1 / 1;border-radius:var(--ef-ui-t-metrics-thumbnail-md-frame-radius-0);background:var(--ef-ui-color-tint-sage);margin-bottom:var(--ef-ui-t-metrics-thumbnail-md-frame-margin-bottom)}\n.efds-product-tile__kicker{display:block;font-family:var(--ef-ui-font-mono);font-weight:var(--ef-ui-t-type-weight-regular);font-size:12px;line-height:15.6px;color:var(--ef-ui-color-muted);letter-spacing:0.12px;text-wrap:pretty}\n.efds-product-tile__name{display:block;font-family:var(--ef-ui-font-family);font-weight:var(--ef-ui-t-type-weight-bold);font-size:var(--ef-ui-t-type-size-sm);line-height:19.5px;color:var(--ef-ui-color-text);text-wrap:balance}\n.efds-product-tile__meta{display:block;font-family:var(--ef-ui-font-family);font-weight:var(--ef-ui-t-type-weight-regular);font-size:var(--ef-ui-t-type-size-xs);line-height:18.2px;color:var(--ef-ui-color-muted);text-wrap:pretty}\n.efds-product-tile__open{font:inherit;text-decoration:none;white-space:normal;cursor:pointer;touch-action:manipulation;-webkit-tap-highlight-color:transparent;box-sizing:border-box;border-style:solid;appearance:none;border:0px;padding:0px;background:none;text-align:start;font-family:var(--ef-ui-font-family);font-weight:var(--ef-ui-t-type-weight-bold);font-size:var(--ef-ui-t-type-size-sm);line-height:19.5px;color:var(--ef-ui-color-text);text-wrap:balance;outline:var(--ef-ui-focus-width) solid transparent;outline-offset:var(--ef-ui-focus-offset)}\n.efds-product-tile__open:focus-visible{outline-color:var(--ef-ui-color-focus)}\n.efds-product-tile__buy{display:flex;align-items:center;justify-content:space-between;column-gap:var(--ef-ui-t-space-2);margin-top:6px}\n.efds-product-tile__price{font-family:var(--ef-ui-font-family);font-weight:var(--ef-ui-t-type-weight-bold);font-size:var(--ef-ui-t-type-size-sm);line-height:23.25px;color:var(--ef-ui-color-text);font-variant-numeric:tabular-nums;text-wrap:pretty}\n.efds-product-row{box-sizing:border-box;padding:0px 0px 0px 0px;column-gap:var(--ef-ui-t-space-3);row-gap:var(--ef-ui-t-space-3);display:grid;grid-template-columns:var(--ef-ui-t-metrics-thumbnail-xs-frame-w) minmax(0, 1fr);align-items:center}\n.efds-product-row--buy{grid-template-columns:var(--ef-ui-t-metrics-thumbnail-xs-frame-w) minmax(0, 1fr) auto}\n.efds-product-row__ph{width:var(--ef-ui-t-metrics-thumbnail-xs-frame-w);height:var(--ef-ui-t-metrics-thumbnail-xs-frame-h);border-radius:var(--ef-ui-t-metrics-thumbnail-xs-frame-radius-0);background:var(--ef-ui-color-tint-sage)}\n.efds-product-row__body{min-width:0px}\n.efds-product-row__name{font-family:var(--ef-ui-font-family);font-weight:var(--ef-ui-t-type-weight-bold);font-size:var(--ef-ui-t-type-size-md);line-height:22.1px;color:var(--ef-ui-color-ink);text-wrap:pretty}\n.efds-product-row__name.efds-product-row__name.efds-product-row__name{margin:0px}\n.efds-product-row__meta{font-family:var(--ef-ui-font-family);font-weight:var(--ef-ui-t-type-weight-regular);font-size:var(--ef-ui-t-type-size-xs);line-height:18.85px;color:var(--ef-ui-color-muted);text-wrap:pretty}\n.efds-product-row__meta.efds-product-row__meta.efds-product-row__meta{margin:0px;margin-top:2px}\n.efds-product-row .efds-product-tile__open{font-family:var(--ef-ui-font-family);font-weight:var(--ef-ui-t-type-weight-bold);font-size:var(--ef-ui-t-type-size-md);line-height:22.1px;color:var(--ef-ui-color-ink);text-wrap:pretty}\n.efds-product-row .efds-product-tile__buy{margin-top:0px}\n.efds-product-card{box-sizing:border-box;padding:0px 0px 0px 0px;column-gap:2px;row-gap:2px;position:relative;display:grid;align-content:start}\n.efds-product-card__media{position:relative;margin-bottom:var(--ef-ui-t-metrics-thumbnail-lg-frame-margin-bottom)}\n.efds-product-card__ph{display:block;width:100%;aspect-ratio:1 / 1;border-radius:var(--ef-ui-t-metrics-thumbnail-lg-frame-radius-0);background:var(--ef-ui-color-tint-sage)}\n.efds-product-card__tag{box-sizing:border-box;padding:0px 9px 0px 6px;column-gap:var(--ef-ui-t-space-1);row-gap:var(--ef-ui-t-space-1);border-radius:var(--ef-ui-radius-pill) var(--ef-ui-radius-pill) var(--ef-ui-radius-pill) var(--ef-ui-radius-pill);background:var(--ef-ui-color-surface);min-height:26px;position:absolute;inset-inline-start:8px;top:8px;display:inline-flex;align-items:center;height:26px;white-space:nowrap;font-family:var(--ef-ui-font-family);font-weight:var(--ef-ui-t-type-weight-bold);font-size:12px;line-height:12px;color:var(--ef-ui-color-text);text-wrap:pretty}\n.efds-product-card__tag > .efds-icon{width:16px;height:16px;color:#CA4463}\n.efds-product-card__step{position:absolute;z-index:2;inset-inline-end:8px;bottom:8px;display:grid;border-radius:19px;background:var(--ef-ui-color-surface);box-shadow:0px 2px 8px 0px rgba(0, 0, 0, 0.14);color:var(--ef-ui-color-text)}\n.efds-product-card__step--in{box-sizing:border-box;padding:0px 0px 0px 0px;border-radius:19px 19px 19px 19px;background:var(--ef-ui-color-ink);box-shadow:unset;grid-template-columns:38px 1fr 38px;align-items:center;width:112px;height:38px;color:var(--ef-ui-color-surface)}\n.efds-product-card__btn{font:inherit;text-decoration:none;white-space:nowrap;cursor:pointer;touch-action:manipulation;-webkit-tap-highlight-color:transparent;box-sizing:border-box;border-style:solid;appearance:none;border:0px;padding:0px;background:none;position:relative;display:grid;place-items:center;width:38px;height:38px;border-radius:19px;color:inherit;outline:var(--ef-ui-focus-width) solid transparent;outline-offset:var(--ef-ui-focus-offset)}\n.efds-product-card__btn:focus-visible{outline-color:var(--ef-ui-color-focus)}\n.efds-product-card__btn:disabled, .efds-product-card__btn[aria-disabled="true"]{cursor:default}\n.efds-product-card__btn > .efds-icon{width:18px;height:18px;color:inherit}\n.efds-product-card__count{text-align:center;font-family:var(--ef-ui-font-family);font-weight:var(--ef-ui-t-type-weight-bold);font-size:var(--ef-ui-t-type-size-sm);line-height:23.25px;color:var(--ef-ui-color-surface);font-variant-numeric:tabular-nums;text-wrap:pretty}\n.efds-product-card__price{display:flex;align-items:baseline;column-gap:6px}\n.efds-product-card__price.efds-product-card__price.efds-product-card__price{margin:0px}\n.efds-product-card__now{font-family:var(--ef-ui-font-family);font-weight:var(--ef-ui-t-type-weight-bold);font-size:var(--ef-ui-t-type-size-md);line-height:26.35px;color:var(--ef-ui-color-text);letter-spacing:-0.17px;font-variant-numeric:tabular-nums;text-wrap:pretty}\n.efds-product-card__was{font-family:var(--ef-ui-font-family);font-weight:var(--ef-ui-t-type-weight-regular);font-size:var(--ef-ui-t-type-size-xs);line-height:20.15px;color:var(--ef-ui-color-muted);text-decoration-line:line-through;font-variant-numeric:tabular-nums;text-wrap:pretty}\n.efds-product-card__name{display:block;font-family:var(--ef-ui-font-family);font-weight:var(--ef-ui-t-type-weight-medium);font-size:14px;line-height:18.2px;color:var(--ef-ui-color-text);text-wrap:balance}\n.efds-product-card__meta{font-family:var(--ef-ui-font-family);font-weight:var(--ef-ui-t-type-weight-regular);font-size:12px;line-height:16.2px;color:var(--ef-ui-color-muted);text-wrap:pretty}\n.efds-product-card__meta.efds-product-card__meta.efds-product-card__meta{margin:0px}\n.efds-product-card__meta--auto{font-weight:var(--ef-ui-t-type-weight-medium);color:#16864A}\n.efds-product-card__meta--auto-dark{font-weight:var(--ef-ui-t-type-weight-medium);color:var(--ef-ui-color-ink)}\n.efds-product-card__per{font-family:var(--ef-ui-font-family);font-weight:var(--ef-ui-t-type-weight-regular);font-size:12px;line-height:16.2px;color:var(--ef-ui-color-muted);font-variant-numeric:tabular-nums;text-wrap:pretty}\n.efds-product-card__open{font:inherit;text-decoration:none;white-space:nowrap;cursor:pointer;touch-action:manipulation;-webkit-tap-highlight-color:transparent;box-sizing:border-box;border-style:solid;appearance:none;border:0px;padding:0px;background:none;position:absolute;inset:0px;z-index:1;border-radius:var(--ef-ui-t-metrics-thumbnail-lg-frame-radius-0);outline:var(--ef-ui-focus-width) solid transparent;outline-offset:var(--ef-ui-focus-offset)}\n.efds-product-card__open:focus-visible{outline-color:var(--ef-ui-color-focus)}\n.efds-product-card__pill{font:inherit;text-decoration:none;white-space:nowrap;cursor:pointer;touch-action:manipulation;-webkit-tap-highlight-color:transparent;box-sizing:border-box;border-style:solid;appearance:none;border:0px solid var(--ef-ui-color-line);padding:0px 14px 0px 14px;background:var(--ef-ui-color-go);position:absolute;z-index:2;inset-inline-end:8px;bottom:8px;column-gap:var(--ef-ui-t-space-1);row-gap:var(--ef-ui-t-space-1);border-radius:var(--ef-ui-radius-pill) var(--ef-ui-radius-pill) var(--ef-ui-radius-pill) var(--ef-ui-radius-pill);min-height:36px;display:inline-flex;align-items:center;font-family:var(--ef-ui-font-family);font-weight:var(--ef-ui-t-type-weight-bold);font-size:14px;line-height:21.7px;color:var(--ef-ui-color-text);text-wrap:pretty;outline:var(--ef-ui-focus-width) solid transparent;outline-offset:var(--ef-ui-focus-offset)}\n.efds-product-card__pill:active{transform:scale(0.96)}\n.efds-product-card__pill:focus-visible{outline-color:var(--ef-ui-color-focus)}\n.efds-product-card__pill:disabled, .efds-product-card__pill[aria-disabled="true"]{opacity:0.45;cursor:default}\n.efds-product-card__pill > .efds-icon{width:16px;height:16px;color:inherit}\n.efds-product-card__pill--on{border:0;background:var(--ef-ui-color-surface);box-shadow:0px 0px 0px 0px, inset 0 0 0 2px var(--ef-ui-color-text)}\n.efds-product-card__pill--soft{background:var(--ef-ui-color-surface);box-shadow:0px 2px 8px 0px rgba(0, 0, 0, 0.14)}\n.efds-product-card--blend .efds-thumbnail--lg.efds-thumbnail--photo{isolation:isolate}\n.efds-product-card--blend .efds-thumbnail--lg > .efds-thumbnail__img{padding:var(--ef-ui-t-space-6) 14px var(--ef-ui-t-space-4) 14px;mix-blend-mode:multiply}\n.efds-product-card--blend .efds-product-card__step:not(.efds-product-card__step--in){box-shadow:0px 2px 8px 0px rgba(0, 0, 0, 0.08)}\n.efds-product-card__step.efds-product-card__step--flat:not(.efds-product-card__step--in){box-shadow:none}\n.efds-product-card__pill--money{border:0;background:var(--ef-ui-color-pink);box-shadow:0px 0px 0px 0px, inset 0 0 0 1px var(--ef-ui-color-ink);color:var(--ef-ui-color-ink)}\n.efds-product-card__pill--ring{border:0;background:var(--ef-ui-color-surface);box-shadow:0px 0px 0px 0px, inset 0 0 0 2px var(--ef-ui-color-ink);color:var(--ef-ui-color-ink)}\n.efds-product-card__pill--money:active, .efds-product-card__pill--ring:active{transform:scale(0.97)}\n.efds-product-web{box-sizing:border-box;padding:0px 0px 0px 0px;column-gap:2px;row-gap:2px;position:relative;display:grid;align-content:start;min-width:0px}\n.efds-product-web__square{box-sizing:border-box;padding:0px 0px 0px 0px;border-radius:var(--ef-ui-radius-lg) var(--ef-ui-radius-lg) var(--ef-ui-radius-lg) var(--ef-ui-radius-lg);background:#F5F5F5;position:relative;display:block;aspect-ratio:1 / 1;margin-bottom:10px;outline:var(--ef-ui-focus-width) solid transparent;outline-offset:3px}\n.efds-product-web__img{display:block;box-sizing:border-box;width:100%;height:100%;padding:7% 7% 7% 7%;object-fit:contain;mix-blend-mode:multiply}\n.efds-product-web--white .efds-product-web__img{padding:11% 11% 14% 11%}\n.efds-product-web--tag .efds-product-web__img{padding:calc(11% + 26px) 11% 10% 11%}\n.efds-product-web--even .efds-product-web__img{padding:7% 7% 7% 7%}\n.efds-product-web--white .efds-product-web__square{background:var(--ef-ui-color-surface)}\n.efds-product-web--white .efds-product-web__img{mix-blend-mode:normal}\n.efds-product-web__mark{position:absolute;inset:0px;display:grid;place-items:center;border-radius:inherit}\n.efds-product-web__ph{display:block;width:100%;aspect-ratio:1 / 1;margin-bottom:10px;border-radius:var(--ef-ui-radius-lg);background:var(--ef-ui-color-tint-sage)}\n.efds-product-web__tag{box-sizing:border-box;padding:0px var(--ef-ui-t-space-3) 0px var(--ef-ui-t-space-2);column-gap:5px;row-gap:5px;border-radius:var(--ef-ui-radius-pill) var(--ef-ui-radius-pill) var(--ef-ui-radius-pill) var(--ef-ui-radius-pill);background:#F7E3E8;min-height:30px;position:absolute;z-index:1;top:10px;inset-inline-start:10px;display:inline-flex;align-items:center;max-width:calc(100% - 20px);white-space:nowrap;pointer-events:none;font-family:var(--ef-ui-font-family);font-weight:var(--ef-ui-t-type-weight-bold);font-size:var(--ef-ui-t-type-size-xs);line-height:14.3px;color:var(--ef-ui-color-ink);text-wrap:pretty}\n.efds-product-web__tag.efds-product-web__tag.efds-product-web__tag{margin:0px}\n.efds-product-web__tag > .efds-icon{flex:none;width:16px;height:16px;color:#CA4463}\n.efds-product-web__name{font:inherit;text-decoration:none;white-space:normal;cursor:pointer;touch-action:manipulation;-webkit-tap-highlight-color:transparent;box-sizing:border-box;border-style:solid;appearance:none;border:0px;padding:0px;background:none;display:block;text-align:start;font-family:var(--ef-ui-font-family);font-weight:var(--ef-ui-t-type-weight-medium);font-size:var(--ef-ui-t-type-size-md);line-height:1.3;color:var(--ef-ui-color-text);text-wrap:balance;outline:0px}\n.efds-product-web__name::after{content:"";position:absolute;inset:0px;z-index:1;border-radius:20px}\n@container (max-width: 599px){\n.efds-product-web__name{font-family:var(--ef-ui-font-family);font-weight:var(--ef-ui-t-type-weight-medium);font-size:16px;line-height:1.3;color:var(--ef-ui-color-text);text-wrap:balance}\n}\n@container (max-width: 399px){\n.efds-product-web__name{font-family:var(--ef-ui-font-family);font-weight:var(--ef-ui-t-type-weight-medium);font-size:14px;line-height:1.3;color:var(--ef-ui-color-text);text-wrap:balance}\n}\n.efds-product-web:has(.efds-product-web__name:focus-visible) .efds-product-web__square{outline-color:var(--ef-ui-color-focus)}\n.efds-product-web .efds-product-web__name:focus-visible{outline:0px}\n@media (hover: hover) and (pointer: fine){\n.efds-product-web:has(.efds-product-web__name:hover) .efds-product-web__square{box-shadow:inset 0 0 0 1.5px color-mix(in srgb, var(--ef-ui-color-ink) 45%, transparent)}\n.efds-product-web:has(.efds-product-web__name:hover) .efds-product-web__name{text-decoration-line:underline;text-underline-offset:3px}\n}\n.efds-product-web__price{display:flex;flex-wrap:wrap;align-items:baseline;column-gap:var(--ef-ui-t-space-2);row-gap:2px}\n.efds-product-web__price.efds-product-web__price.efds-product-web__price{margin:0px}\n.efds-product-web__now{font-family:var(--ef-ui-font-family);font-weight:var(--ef-ui-t-type-weight-bold);font-size:18px;line-height:27.9px;color:var(--ef-ui-color-text);letter-spacing:-0.18px;font-variant-numeric:tabular-nums;text-wrap:pretty}\n.efds-product-web__was{font-family:var(--ef-ui-font-family);font-weight:var(--ef-ui-t-type-weight-regular);font-size:var(--ef-ui-t-type-size-sm);line-height:23.25px;color:var(--ef-ui-color-text);text-decoration-line:line-through;font-variant-numeric:tabular-nums;text-wrap:pretty}\n.efds-product-web__per{font-family:var(--ef-ui-font-family);font-weight:var(--ef-ui-t-type-weight-regular);font-size:var(--ef-ui-t-type-size-sm);line-height:23.25px;color:var(--ef-ui-color-text);font-variant-numeric:tabular-nums;text-wrap:pretty}\n.efds-product-web__badge{box-sizing:border-box;padding:0px var(--ef-ui-t-space-2) 0px var(--ef-ui-t-space-2);border-radius:var(--ef-ui-radius-pill) var(--ef-ui-radius-pill) var(--ef-ui-radius-pill) var(--ef-ui-radius-pill);background:#DEE4F1;box-shadow:0px 0px 0px 0px, inset 0 0 0 1.5px rgba(90, 96, 135, 0.45);display:inline-flex;align-items:center;align-self:center;height:22px;white-space:nowrap;font-style:normal;font-family:var(--ef-ui-font-family);font-weight:var(--ef-ui-t-type-weight-bold);font-size:var(--ef-ui-t-type-size-xs);line-height:13px;color:var(--ef-ui-color-text);font-variant-numeric:tabular-nums;text-wrap:pretty}\n.efds-product-web__meta{font-family:var(--ef-ui-font-family);font-weight:var(--ef-ui-t-type-weight-regular);font-size:var(--ef-ui-t-type-size-sm);line-height:21px;color:var(--ef-ui-color-text);text-wrap:pretty}\n.efds-product-web__meta.efds-product-web__meta.efds-product-web__meta{margin:0px}\n.efds-product-web__act{position:absolute;z-index:2;inset-inline-end:10px;bottom:10px;display:flex}\n.efds-product-web__step{box-sizing:border-box;padding:0px 0px 0px 0px;border-radius:22px 22px 22px 22px;background:var(--ef-ui-color-surface);box-shadow:0px 2px 8px 0px rgba(0, 0, 0, 0.14);display:grid;color:var(--ef-ui-color-text)}\n.efds-product-web__step--flat:not(.efds-product-web__step--in){box-shadow:none}\n.efds-product-web__step--in{background:var(--ef-ui-color-ink);box-shadow:none;grid-template-columns:44px minmax(28px, auto) 44px;align-items:center;height:44px;color:var(--ef-ui-color-surface)}\n.efds-product-web__btn{font:inherit;text-decoration:none;white-space:nowrap;cursor:pointer;touch-action:manipulation;-webkit-tap-highlight-color:transparent;box-sizing:border-box;border-style:solid;appearance:none;border:0px;padding:0px;background:none;position:relative;display:grid;place-items:center;width:44px;height:44px;border-radius:22px;color:inherit;outline:var(--ef-ui-focus-width) solid transparent;outline-offset:var(--ef-ui-focus-offset)}\n.efds-product-web__btn:active{transform:scale(0.94)}\n.efds-product-web__step--in .efds-product-web__btn{width:44px;height:44px;border-radius:22px}\n.efds-product-web__step--in .efds-product-web__btn:active{transform:scale(0.88)}\n.efds-product-web__btn:focus-visible{outline-color:var(--ef-ui-color-focus)}\n.efds-product-web__btn:disabled, .efds-product-web__btn[aria-disabled="true"]{cursor:default}\n.efds-product-web__btn > .efds-icon{width:20px;height:20px;color:inherit}\n.efds-product-web__step--in .efds-product-web__btn > .efds-icon{width:18px;height:18px}\n.efds-product-web__count{text-align:center;font-family:var(--ef-ui-font-family);font-weight:var(--ef-ui-t-type-weight-bold);font-size:var(--ef-ui-t-type-size-sm);line-height:23.25px;color:var(--ef-ui-color-surface);font-variant-numeric:tabular-nums;text-wrap:pretty}\n.efds-product-web__pill{font:inherit;text-decoration:none;white-space:nowrap;cursor:pointer;touch-action:manipulation;-webkit-tap-highlight-color:transparent;box-sizing:border-box;border-style:solid;appearance:none;border:0px solid var(--ef-ui-color-line);padding:0px var(--ef-ui-t-space-4) 0px var(--ef-ui-t-space-4);background:var(--ef-ui-color-ink);position:relative;column-gap:6px;row-gap:6px;border-radius:var(--ef-ui-radius-pill) var(--ef-ui-radius-pill) var(--ef-ui-radius-pill) var(--ef-ui-radius-pill);min-height:44px;display:inline-flex;align-items:center;justify-content:center;font-family:var(--ef-ui-font-family);font-weight:var(--ef-ui-t-type-weight-bold);font-size:var(--ef-ui-t-type-size-sm);line-height:15px;color:var(--ef-ui-color-surface);text-wrap:pretty;outline:var(--ef-ui-focus-width) solid transparent;outline-offset:var(--ef-ui-focus-offset)}\n.efds-product-web__pill--on{border:0;background:var(--ef-ui-color-surface);box-shadow:0px 0px 0px 0px, inset 0 0 0 2px var(--ef-ui-color-ink);color:var(--ef-ui-color-ink)}\n.efds-product-web__pill--soft{background:var(--ef-ui-color-surface);box-shadow:0px 2px 8px 0px rgba(0, 0, 0, 0.14);color:var(--ef-ui-color-text)}\n.efds-product-web__pill:active{transform:scale(0.97)}\n.efds-product-web__pill:focus-visible{outline-color:var(--ef-ui-color-focus)}\n.efds-product-web__pill:disabled, .efds-product-web__pill[aria-disabled="true"]{opacity:0.45;cursor:default}\n.efds-product-web__pill > .efds-icon{width:18px;height:18px;color:inherit}\n`],[1437,`@media (forced-colors: active){\n.efds-product-tile__open:not(:focus-visible), .efds-product-card__btn:not(:focus-visible), .efds-product-card__open:not(:focus-visible), .efds-product-card__pill:not(:focus-visible), .efds-product-web__square:not(:focus-visible), .efds-product-web__btn:not(:focus-visible), .efds-product-web__pill:not(:focus-visible){outline-style:none}\n}\n`],[1450,`@media (forced-colors: active){\n.efds-product-web:has(.efds-product-web__name:focus-visible) .efds-product-web__square{outline-style:solid;outline-color:CanvasText}\n}\n`]],needs:[buttonCss,iconCss,skeletonCss,thumbnailCss]};var CART_LINE_PARTS=[cartLineCss],ORDER_ROW_PARTS=[orderRowCss,iconCss],PLAN_NEED_CARD_PARTS=[planNeedCardCss],PRICE_SUMMARY_PARTS=[skeletonCss,summaryListCss],PRODUCT_TILE_PARTS=[productTileCss],TIP_CARD_PARTS=[tipCardCss];function CartLine2(props){return registerIconSet(),/* @__PURE__ */jsx(BlockScope,{children:/* @__PURE__ */jsx(CartLineBody,{...props})})}function CartLineBody(props){let root=useBlockStyles(CART_LINE_PARTS);/* @__PURE__ */
3
+ import{UI_ICON_LEAF,UI_ICON_ARROW_LEFT,planNeedCardCss,PlanNeedCard,buttonCss,tipCardCss,TipCard,Button}from"../../chunk-PSBCFPJG.js";import{BlockScope,UI_ICON_PLUS,UI_ICON_MINUS,UI_ICON_BOX,useBlockStyles,cartLineCss,CartLine,thumbnailCss,BlockThumbnail}from"../../chunk-QMYYV67E.js";import{renderRuntimePart,registerIcons,UI_ICON_CHEVRON,iconCss,skeletonCss,summaryListCss,useEfdsPart,useLinkComponent,Skeleton,cx,dataOf,itemTestID,BlockIcon,SummaryList,useTheme,blockMetrics,productBlendBlockMetrics,orderWebBlockMetrics,productWebBlockMetrics,colorOf,mixColor,stepTo,SvgIcon}from"../../chunk-PTO64HJN.js";import{jsx,jsxs,Fragment}from"react/jsx-runtime";import{forwardRef,Fragment as Fragment$1,useRef,useCallback,useEffect,useMemo,useState,useLayoutEffect}from"react";var UI_ICON_ALERT={viewBox:"0 0 24 24",children:[["g",{fill:"none",stroke:"currentColor",strokeWidth:"2",strokeLinecap:"round",strokeLinejoin:"round"},[["path",{d:"m21.73 18-8-14a2 2 0 0 0-3.48 0l-8 14A2 2 0 0 0 4 21h16a2 2 0 0 0 1.73-3"},[]],["path",{d:"M12 9v4"},[]],["path",{d:"M12 17h.01"},[]]]]]};var UI_ICON_BAG={viewBox:"0 0 24 24",children:[["g",{fill:"none",stroke:"currentColor",strokeWidth:"2",strokeLinecap:"round",strokeLinejoin:"round"},[["path",{d:"M6 2 3 6v14a2 2 0 0 0 2 2h14a2 2 0 0 0 2-2V6l-3-4Z"},[]],["path",{d:"M3 6h18"},[]],["path",{d:"M16 10a4 4 0 0 1-8 0"},[]]]]]};var UI_ICON_BELL={viewBox:"0 0 16.8429 16.8429",children:[["g",{fill:"none"},[["g",{},[["path",{d:"M7.04162 14.7372C7.16482 14.9506 7.342 15.1278 7.55536 15.2509C7.76872 15.3741 8.01075 15.439 8.25711 15.439C8.50348 15.439 8.74551 15.3741 8.95887 15.2509C9.17223 15.1278 9.34941 14.9506 9.47261 14.7372M15.275 5.61403C15.275 3.99993 14.7135 2.59636 13.8714 1.40332M2.64283 1.40332C1.80069 2.59636 1.23926 3.99993 1.23926 5.61403M2.12491 10.7553C2.03323 10.8558 1.97273 10.9808 1.95077 11.115C1.9288 11.2492 1.94632 11.387 2.00119 11.5114C2.05606 11.6359 2.14592 11.7417 2.25983 11.816C2.37375 11.8904 2.50681 11.93 2.64283 11.9301H13.8714C14.0074 11.9302 14.1405 11.8907 14.2545 11.8165C14.3685 11.7423 14.4584 11.6366 14.5135 11.5122C14.5685 11.3878 14.5862 11.2501 14.5644 11.1159C14.5426 10.9816 14.4823 10.8566 14.3907 10.756C13.4573 9.79387 12.4678 8.77137 12.4678 5.61403C12.4678 4.49728 12.0242 3.42627 11.2345 2.63661C10.4449 1.84695 9.37387 1.40332 8.25711 1.40332C7.14036 1.40332 6.06935 1.84695 5.27969 2.63661C4.49003 3.42627 4.0464 4.49728 4.0464 5.61403C4.0464 8.77137 3.05618 9.79387 2.12491 10.7553Z",stroke:"currentColor",strokeWidth:"1.40357",strokeLinecap:"round",strokeLinejoin:"round"},[]]]]]]]};var UI_ICON_BOWL={viewBox:"0 0 24 24",children:[["g",{fill:"none",stroke:"currentColor",strokeWidth:"2",strokeLinecap:"round",strokeLinejoin:"round"},[["path",{d:"M2 11h20"},[]],["path",{d:"M4 11c0 4.4 3.6 8 8 8s8-3.6 8-8"},[]],["path",{d:"M8.5 8c1.2-1.6 5.8-1.6 7 0"},[]]]]]};var UI_ICON_CALENDAR={viewBox:"0 0 24 24",children:[["g",{fill:"none",stroke:"currentColor",strokeWidth:"2",strokeLinecap:"round",strokeLinejoin:"round"},[["path",{d:"M8 2v4"},[]],["path",{d:"M16 2v4"},[]],["rect",{width:"18",height:"18",x:"3",y:"4",rx:"2"},[]],["path",{d:"M3 10h18"},[]]]]]};var UI_ICON_CAMERA={viewBox:"0 0 24 24",children:[["g",{fill:"none",stroke:"currentColor",strokeWidth:"2",strokeLinecap:"round",strokeLinejoin:"round"},[["path",{d:"M14.5 4h-5L7 7H4a2 2 0 0 0-2 2v9a2 2 0 0 0 2 2h16a2 2 0 0 0 2-2V9a2 2 0 0 0-2-2h-3l-2.5-3z"},[]],["circle",{cx:"12",cy:"13",r:"3"},[]]]]]};var UI_ICON_CHECK={viewBox:"0 0 24 24",children:[["path",{d:"M20 6 9 17l-5-5",fill:"none",stroke:"currentColor",strokeWidth:"2",strokeLinecap:"round",strokeLinejoin:"round"},[]]]};var UI_ICON_CLOCK={viewBox:"0 0 22.5814 22.5814",children:[["g",{fill:"none"},[["g",{},[["path",{d:"M11.2907 20.6999C16.4871 20.6999 20.6996 16.4873 20.6996 11.2909C20.6996 6.09451 16.4871 1.88199 11.2907 1.88199C6.0943 1.88199 1.88178 6.09451 1.88178 11.2909C1.88178 16.4873 6.0943 20.6999 11.2907 20.6999Z",stroke:"currentColor",strokeWidth:"1.88179",strokeLinecap:"round",strokeLinejoin:"round"},[]],["path",{d:"M11.2907 5.64559V11.2909L15.0543 13.1727",stroke:"currentColor",strokeWidth:"1.88179",strokeLinecap:"round",strokeLinejoin:"round"},[]]]]]]]};var UI_ICON_DOWNLOAD={viewBox:"0 0 24.7029 24.7029",children:[["g",{fill:"none"},[["g",{},[["path",{d:"M12.3514 15.4394V3.08798M17.4978 10.293L12.3514 15.4394L7.20495 10.293M21.6149 15.4394V19.5566C21.6149 20.1025 21.3981 20.6261 21.012 21.0122C20.6259 21.3982 20.1023 21.6151 19.5564 21.6151H5.14637C4.60041 21.6151 4.0768 21.3982 3.69074 21.0122C3.30469 20.6261 3.0878 20.1025 3.0878 19.5566V15.4394",stroke:"currentColor",strokeWidth:"2.05857",strokeLinecap:"round",strokeLinejoin:"round"},[]]]]]]]};var UI_ICON_EDIT={viewBox:"0 0 24 24",children:[["g",{fill:"none",stroke:"currentColor",strokeWidth:"2",strokeLinecap:"round",strokeLinejoin:"round"},[["path",{d:"M12 3H5a2 2 0 0 0-2 2v14a2 2 0 0 0 2 2h14a2 2 0 0 0 2-2v-7"},[]],["path",{d:"M18.375 2.625a1 1 0 0 1 3 3l-9.013 9.014a2 2 0 0 1-.853.505l-2.873.84a.5.5 0 0 1-.62-.62l.84-2.873a2 2 0 0 1 .506-.852z"},[]]]]]};var UI_ICON_FILE={viewBox:"0 0 24 24",children:[["g",{fill:"none",stroke:"currentColor",strokeWidth:"2",strokeLinecap:"round",strokeLinejoin:"round"},[["path",{d:"M15 2H6a2 2 0 0 0-2 2v16a2 2 0 0 0 2 2h12a2 2 0 0 0 2-2V7Z"},[]],["path",{d:"M14 2v4a2 2 0 0 0 2 2h4"},[]],["path",{d:"M10 9H8"},[]],["path",{d:"M16 13H8"},[]],["path",{d:"M16 17H8"},[]]]]]};var UI_ICON_FLASK={viewBox:"0 0 22.5814 22.5814",children:[["g",{fill:"none"},[["g",{},[["path",{d:"M13.1725 1.88153V7.52689C13.1724 7.84254 13.2516 8.15316 13.403 8.43014L18.5873 17.9143C18.7442 18.201 18.8237 18.5234 18.818 18.8501C18.8124 19.1767 18.7218 19.4963 18.5552 19.7773C18.3886 20.0583 18.1517 20.2911 17.8678 20.4528C17.5839 20.6145 17.2628 20.6995 16.9361 20.6994H5.64536C5.31866 20.6995 4.99757 20.6145 4.71368 20.4528C4.42979 20.2911 4.19288 20.0583 4.02626 19.7773C3.85964 19.4963 3.76906 19.1767 3.76342 18.8501C3.75778 18.5234 3.83728 18.201 3.99409 17.9143L9.17841 8.43014C9.32979 8.15316 9.40907 7.84254 9.40893 7.52689V1.88153",stroke:"currentColor",strokeWidth:"1.88179",strokeLinecap:"round",strokeLinejoin:"round"},[]],["path",{d:"M6.07162 14.1128H16.5099",stroke:"currentColor",strokeWidth:"1.88179",strokeLinecap:"round",strokeLinejoin:"round"},[]],["path",{d:"M7.99755 1.88153H14.5838",stroke:"currentColor",strokeWidth:"1.88179",strokeLinecap:"round",strokeLinejoin:"round"},[]]]]]]]};var UI_ICON_FOLDER={viewBox:"0 0 22.5814 22.5814",children:[["g",{fill:"none"},[["g",{},[["path",{d:"M18.8179 18.8175C19.3169 18.8175 19.7956 18.6193 20.1485 18.2664C20.5014 17.9135 20.6996 17.4348 20.6996 16.9358V7.52683C20.6996 7.02775 20.5014 6.54911 20.1485 6.19621C19.7956 5.8433 19.3169 5.64504 18.8179 5.64504H11.3848C11.0701 5.64813 10.7596 5.57223 10.4818 5.42429C10.204 5.27635 9.96778 5.0611 9.79469 4.79824L9.03257 3.66917C8.86123 3.40898 8.62796 3.19541 8.35372 3.04761C8.07947 2.89981 7.77282 2.82241 7.46128 2.82236H3.76357C3.26449 2.82236 2.78585 3.02062 2.43294 3.37353C2.08004 3.72643 1.88178 4.20507 1.88178 4.70415V16.9358C1.88178 17.4348 2.08004 17.9135 2.43294 18.2664C2.78585 18.6193 3.26449 18.8175 3.76357 18.8175H18.8179Z",stroke:"currentColor",strokeWidth:"1.88179",strokeLinecap:"round",strokeLinejoin:"round"},[]]]]]]]};var UI_ICON_HEART={viewBox:"0 0 25.7143 25.7143",children:[["g",{fill:"none"},[["g",{},[["path",{d:"M2.14286 10.1783C2.14288 8.98605 2.50456 7.82182 3.18014 6.8394C3.85572 5.85699 4.81341 5.10261 5.92672 4.67591C7.04004 4.2492 8.2566 4.17024 9.41573 4.44945C10.5749 4.72867 11.622 5.35292 12.4189 6.23976C12.4751 6.29978 12.5429 6.34762 12.6183 6.38034C12.6937 6.41305 12.775 6.42993 12.8571 6.42993C12.9393 6.42993 13.0206 6.41305 13.096 6.38034C13.1714 6.34762 13.2392 6.29978 13.2954 6.23976C14.0898 5.34716 15.1372 4.71766 16.2982 4.43505C17.4592 4.15244 18.6787 4.23014 19.7945 4.65778C20.9103 5.08543 21.8693 5.84275 22.5441 6.82894C23.2188 7.81514 23.5771 8.98344 23.5714 10.1783C23.5714 12.6319 21.9643 14.4641 20.3571 16.0712L14.4729 21.7637C14.2732 21.993 14.0271 22.1772 13.7508 22.304C13.4745 22.4309 13.1743 22.4975 12.8703 22.4994C12.5663 22.5013 12.2653 22.4385 11.9875 22.3152C11.7096 22.1919 11.4611 22.0108 11.2586 21.7841L5.35714 16.0712C3.75 14.4641 2.14286 12.6426 2.14286 10.1783Z",stroke:"currentColor",strokeWidth:"2.14286",strokeLinecap:"round",strokeLinejoin:"round"},[]]]]]]]};var UI_ICON_HELP={viewBox:"0 0 24 24",children:[["g",{fill:"none",stroke:"currentColor",strokeWidth:"2",strokeLinecap:"round",strokeLinejoin:"round"},[["circle",{cx:"12",cy:"12",r:"10"},[]],["path",{d:"M9.09 9a3 3 0 0 1 5.83 1c0 2-3 3-3 3"},[]],["path",{d:"M12 17h.01"},[]]]]]};var UI_ICON_HOUSE={viewBox:"0 0 24 24",children:[["g",{fill:"none",stroke:"currentColor",strokeWidth:"2",strokeLinecap:"round",strokeLinejoin:"round"},[["path",{d:"M15 21v-8a1 1 0 0 0-1-1h-4a1 1 0 0 0-1 1v8"},[]],["path",{d:"M3 10a2 2 0 0 1 .709-1.528l7-5.999a2 2 0 0 1 2.582 0l7 5.999A2 2 0 0 1 21 10v9a2 2 0 0 1-2 2H5a2 2 0 0 1-2-2z"},[]]]]]};var UI_ICON_IMAGE={viewBox:"0 0 24 24",children:[["g",{fill:"none",stroke:"currentColor",strokeWidth:"2",strokeLinecap:"round",strokeLinejoin:"round"},[["rect",{width:"18",height:"18",x:"3",y:"3",rx:"2"},[]],["circle",{cx:"9",cy:"9",r:"2"},[]],["path",{d:"m21 15-3.086-3.086a2 2 0 0 0-2.828 0L6 21"},[]]]]]};var UI_ICON_INFO={viewBox:"0 0 24 24",children:[["g",{fill:"none",stroke:"currentColor",strokeWidth:"2",strokeLinecap:"round",strokeLinejoin:"round"},[["circle",{cx:"12",cy:"12",r:"10"},[]],["path",{d:"M12 16v-4"},[]],["path",{d:"M12 8h.01"},[]]]]]};var UI_ICON_LOCK={viewBox:"0 0 24 24",children:[["g",{fill:"none",stroke:"currentColor",strokeWidth:"2",strokeLinecap:"round",strokeLinejoin:"round"},[["rect",{width:"18",height:"11",x:"3",y:"11",rx:"2"},[]],["path",{d:"M7 11V7a5 5 0 0 1 10 0v4"},[]]]]]};var UI_ICON_MAIL={viewBox:"0 0 24 24",children:[["g",{fill:"none",stroke:"currentColor",strokeWidth:"2",strokeLinecap:"round",strokeLinejoin:"round"},[["rect",{width:"20",height:"16",x:"2",y:"4",rx:"2"},[]],["path",{d:"m22 7-8.97 5.7a1.94 1.94 0 0 1-2.06 0L2 7"},[]]]]]};var UI_ICON_MESSAGE={viewBox:"0 0 24 24",children:[["path",{d:"M7.9 20A9 9 0 1 0 4 16.1L2 22Z",fill:"none",stroke:"currentColor",strokeWidth:"2",strokeLinecap:"round",strokeLinejoin:"round"},[]]]};var UI_ICON_MORE={viewBox:"0 0 24 24",children:[["g",{fill:"currentColor"},[["circle",{cx:"5.5",cy:"12",r:"1.7"},[]],["circle",{cx:"12",cy:"12",r:"1.7"},[]],["circle",{cx:"18.5",cy:"12",r:"1.7"},[]]]]]};var UI_ICON_PAW={viewBox:"0 0 24 24",children:[["g",{fill:"none",stroke:"currentColor",strokeWidth:"2",strokeLinecap:"round",strokeLinejoin:"round"},[["circle",{cx:"11",cy:"4",r:"2"},[]],["circle",{cx:"18",cy:"8",r:"2"},[]],["circle",{cx:"20",cy:"16",r:"2"},[]],["path",{d:"M9 10a5 5 0 0 1 5 5v3.5a3.5 3.5 0 0 1-6.84 1.045Q6.52 17.48 4.46 16.84A3.5 3.5 0 0 1 5.5 10Z"},[]]]]]};var UI_ICON_PHONE={viewBox:"0 0 24 24",children:[["path",{d:"M13.832 16.568a1 1 0 0 0 1.213-.303l.355-.465A2 2 0 0 1 17 15h3a2 2 0 0 1 2 2v3a2 2 0 0 1-2 2A18 18 0 0 1 2 4a2 2 0 0 1 2-2h3a2 2 0 0 1 2 2v3a2 2 0 0 1-.8 1.6l-.468.351a1 1 0 0 0-.292 1.233 14 14 0 0 0 6.392 6.384",fill:"none",stroke:"currentColor",strokeWidth:"2",strokeLinecap:"round",strokeLinejoin:"round"},[]]]};var UI_ICON_PILL={viewBox:"0 0 24 24",children:[["g",{fill:"none",stroke:"currentColor",strokeWidth:"2",strokeLinecap:"round",strokeLinejoin:"round"},[["path",{d:"m10.5 20.5 10-10a4.95 4.95 0 1 0-7-7l-10 10a4.95 4.95 0 1 0 7 7Z"},[]],["path",{d:"m8.5 8.5 7 7"},[]]]]]};var UI_ICON_PIN={viewBox:"0 0 24 24",children:[["g",{fill:"none",stroke:"currentColor",strokeWidth:"2",strokeLinecap:"round",strokeLinejoin:"round"},[["path",{d:"M20 10c0 4.993-5.539 10.193-7.399 11.799a1 1 0 0 1-1.202 0C9.539 20.193 4 14.993 4 10a8 8 0 0 1 16 0"},[]],["circle",{cx:"12",cy:"10",r:"3"},[]]]]]};var UI_ICON_SEARCH={viewBox:"0 0 24 24",children:[["g",{fill:"none",stroke:"currentColor",strokeWidth:"2",strokeLinecap:"round",strokeLinejoin:"round"},[["circle",{cx:"11",cy:"11",r:"8"},[]],["path",{d:"m21 21-4.3-4.3"},[]]]]]};var UI_ICON_SEND={viewBox:"0 0 24 24",children:[["g",{fill:"none",stroke:"currentColor",strokeWidth:"2",strokeLinecap:"round",strokeLinejoin:"round"},[["path",{d:"M14.536 21.686a.5.5 0 0 0 .937-.024l6.5-19a.496.496 0 0 0-.635-.635l-19 6.5a.5.5 0 0 0-.024.937l7.93 3.18a2 2 0 0 1 1.112 1.11z"},[]],["path",{d:"m21.854 2.147-10.94 10.939"},[]]]]]};var UI_ICON_SHIELD={viewBox:"0 0 22.5814 22.5814",children:[["g",{fill:"none"},[["g",{},[["path",{d:"M18.8178 12.2313C18.8178 16.9358 15.5247 19.2881 11.6106 20.6523C11.4056 20.7218 11.183 20.7185 10.9802 20.6429C7.05663 19.288 3.76351 16.9358 3.76351 12.2313V5.6451C3.76351 5.39556 3.86264 5.15624 4.03909 4.97979C4.21554 4.80333 4.45486 4.7042 4.7044 4.7042C6.58619 4.7042 8.93842 3.57513 10.5756 2.14498C10.7749 1.97467 11.0285 1.8811 11.2907 1.8811C11.5528 1.8811 11.8064 1.97467 12.0057 2.14498C13.6523 3.58454 15.9951 4.7042 17.8769 4.7042C18.1264 4.7042 18.3658 4.80333 18.5422 4.97979C18.7187 5.15624 18.8178 5.39556 18.8178 5.6451V12.2313Z",stroke:"currentColor",strokeWidth:"1.88179",strokeLinecap:"round",strokeLinejoin:"round"},[]],["path",{d:"M8.468 11.2906L10.3498 13.1724L14.1134 9.40885",stroke:"currentColor",strokeWidth:"1.88179",strokeLinecap:"round",strokeLinejoin:"round"},[]]]]]]]};var UI_ICON_SPARKLE={viewBox:"0 0 24 24",children:[["g",{fill:"none",stroke:"currentColor",strokeWidth:"2",strokeLinecap:"round",strokeLinejoin:"round"},[["path",{d:"M12 3.5c.6 4.2 2.3 6 6.5 6.6-4.2.6-5.9 2.3-6.5 6.5-.6-4.2-2.3-5.9-6.5-6.5 4.2-.6 5.9-2.4 6.5-6.6Z"},[]],["path",{d:"M19 15.5c.3 1.6.9 2.2 2.5 2.5-1.6.3-2.2.9-2.5 2.5-.3-1.6-.9-2.2-2.5-2.5 1.6-.3 2.2-.9 2.5-2.5Z"},[]]]]]};var UI_ICON_SYRINGE={viewBox:"0 0 19.5956 19.5956",children:[["g",{fill:"none"},[["g",{},[["path",{d:"M14.5322 1.63281L17.7982 4.89874",stroke:"currentColor",strokeWidth:"1.63296",strokeLinecap:"round",strokeLinejoin:"round"},[]],["path",{d:"M13.7158 5.71556L16.1653 3.26611",stroke:"currentColor",strokeWidth:"1.63296",strokeLinecap:"round",strokeLinejoin:"round"},[]],["path",{d:"M15.3496 7.34845L6.93981 15.7582C6.12333 16.5747 4.89861 16.5747 4.16377 15.7582L3.67388 15.2683C2.8574 14.4518 2.8574 13.2271 3.67388 12.4923L12.0836 4.08252",stroke:"currentColor",strokeWidth:"1.63296",strokeLinecap:"round",strokeLinejoin:"round"},[]],["path",{d:"M7.18457 8.9812L10.4505 12.2471",stroke:"currentColor",strokeWidth:"1.63296",strokeLinecap:"round",strokeLinejoin:"round"},[]],["path",{d:"M3.9182 15.5134L1.46875 17.9629",stroke:"currentColor",strokeWidth:"1.63296",strokeLinecap:"round",strokeLinejoin:"round"},[]],["path",{d:"M11.2666 3.26611L16.1655 8.16501",stroke:"currentColor",strokeWidth:"1.63296",strokeLinecap:"round",strokeLinejoin:"round"},[]]]]]]]};var UI_ICON_UPLOAD={viewBox:"0 0 24.7029 24.7029",children:[["g",{fill:"none"},[["g",{},[["path",{d:"M12.3515 3.08766V15.4391M7.20503 8.23409L12.3515 3.08766L17.4979 8.23409M21.615 15.4391V19.5562C21.615 20.1022 21.3981 20.6258 21.0121 21.0119C20.626 21.3979 20.1024 21.6148 19.5565 21.6148H5.14646C4.60049 21.6148 4.07688 21.3979 3.69083 21.0119C3.30477 20.6258 3.08789 20.1022 3.08789 19.5562V15.4391",stroke:"currentColor",strokeWidth:"2.05857",strokeLinecap:"round",strokeLinejoin:"round"},[]]]]]]]};var UI_ICON_USER={viewBox:"0 0 24 24",children:[["g",{fill:"none",stroke:"currentColor",strokeWidth:"1.75",strokeLinecap:"round",strokeLinejoin:"round"},[["path",{d:"M19 21v-2a4 4 0 0 0-4-4H9a4 4 0 0 0-4 4v2"},[]],["circle",{cx:"12",cy:"7",r:"4"},[]]]]]};var UI_ICON_VIDEO={viewBox:"0 0 24 24",children:[["g",{fill:"none",stroke:"currentColor",strokeWidth:"2",strokeLinecap:"round",strokeLinejoin:"round"},[["path",{d:"m16 13 5.223 3.482a.5.5 0 0 0 .777-.416V7.87a.5.5 0 0 0-.752-.432L16 10.5"},[]],["rect",{x:"2",y:"6",width:"14",height:"12",rx:"2"},[]]]]]};var UI_ICON_X={viewBox:"0 0 24 24",children:[["g",{fill:"none",stroke:"currentColor",strokeWidth:"2",strokeLinecap:"round",strokeLinejoin:"round"},[["path",{d:"M18 6 6 18"},[]],["path",{d:"m6 6 12 12"},[]]]]]};var UI_ICONS={alert:UI_ICON_ALERT,"arrow-left":UI_ICON_ARROW_LEFT,bag:UI_ICON_BAG,bell:UI_ICON_BELL,bowl:UI_ICON_BOWL,box:UI_ICON_BOX,calendar:UI_ICON_CALENDAR,camera:UI_ICON_CAMERA,check:UI_ICON_CHECK,chevron:UI_ICON_CHEVRON,clock:UI_ICON_CLOCK,download:UI_ICON_DOWNLOAD,edit:UI_ICON_EDIT,file:UI_ICON_FILE,flask:UI_ICON_FLASK,folder:UI_ICON_FOLDER,heart:UI_ICON_HEART,help:UI_ICON_HELP,house:UI_ICON_HOUSE,image:UI_ICON_IMAGE,info:UI_ICON_INFO,leaf:UI_ICON_LEAF,lock:UI_ICON_LOCK,mail:UI_ICON_MAIL,message:UI_ICON_MESSAGE,minus:UI_ICON_MINUS,more:UI_ICON_MORE,paw:UI_ICON_PAW,phone:UI_ICON_PHONE,pill:UI_ICON_PILL,pin:UI_ICON_PIN,plus:UI_ICON_PLUS,search:UI_ICON_SEARCH,send:UI_ICON_SEND,shield:UI_ICON_SHIELD,sparkle:UI_ICON_SPARKLE,syringe:UI_ICON_SYRINGE,upload:UI_ICON_UPLOAD,user:UI_ICON_USER,video:UI_ICON_VIDEO,x:UI_ICON_X};var registered=false;function registerIconSet(){registered||(registered=true,registerIcons(UI_ICONS))}var orderRowCss={name:"orderRow",props:[33,"",""],segments:[[548,`.efds-order-row{box-sizing:border-box;padding:0px 0px 0px 0px;display:grid;grid-template-columns:minmax(0, 1fr);column-gap:0px;list-style:none;margin:0px}\n.efds-order-row__body{min-width:0px}\n.efds-order-row__open{font:inherit;text-decoration:none;white-space:normal;cursor:pointer;touch-action:manipulation;-webkit-tap-highlight-color:transparent;box-sizing:border-box;border-style:solid;appearance:none;border:0px;padding:0px;background:none;display:block;width:100%;text-align:start;color:inherit;outline:var(--ef-ui-focus-width) solid transparent;outline-offset:var(--ef-ui-focus-offset)}\n.efds-order-row__open:focus-visible{outline-color:var(--ef-ui-color-focus)}\n.efds-order-row__top{display:flex;align-items:baseline;justify-content:space-between;column-gap:var(--ef-ui-t-space-3);row-gap:var(--ef-ui-t-space-3)}\n.efds-order-row__meta{min-width:0px;font-family:var(--ef-ui-font-family);font-weight:var(--ef-ui-t-type-weight-regular);font-size:var(--ef-ui-t-type-size-xs);line-height:17.55px;color:var(--ef-ui-color-muted);text-wrap:pretty}\n.efds-order-row__meta.efds-order-row__meta.efds-order-row__meta{margin:0px}\n.efds-order-row__title{display:block;font-family:var(--ef-ui-font-family);font-weight:var(--ef-ui-t-type-weight-bold);font-size:16px;line-height:20px;color:var(--ef-ui-color-text);letter-spacing:-0.16px;text-wrap:pretty}\n.efds-order-row__total{margin-inline-start:auto;font-family:var(--ef-ui-font-family);font-weight:var(--ef-ui-t-type-weight-bold);font-size:16px;line-height:24.8px;color:var(--ef-ui-color-text);font-variant-numeric:tabular-nums;text-wrap:pretty}\n.efds-order-row__shots{display:flex;flex-wrap:wrap;column-gap:var(--ef-ui-t-space-2);row-gap:var(--ef-ui-t-space-2);margin-top:var(--ef-ui-t-space-2)}\n.efds-order-row__measure{display:grid;flex:none}\n.efds-order-row__shot{font:inherit;text-decoration:none;white-space:nowrap;cursor:pointer;touch-action:manipulation;-webkit-tap-highlight-color:transparent;box-sizing:border-box;border-style:solid;appearance:none;border:0px;padding:0px;background:none;display:grid;flex:none;border-radius:var(--ef-ui-t-metrics-thumbnail-sm-frame-radius-0);outline:var(--ef-ui-focus-width) solid transparent;outline-offset:var(--ef-ui-focus-offset)}\n.efds-order-row__shot--empty{border-radius:var(--ef-ui-t-metrics-thumbnail-sm-empty-radius-0)}\n.efds-order-row__shot:active{transform:scale(0.96)}\n.efds-order-row__shot:focus-visible{outline-color:var(--ef-ui-color-focus)}\n.efds-order-row__error{grid-column:1 / -1;font-family:var(--ef-ui-font-family);font-weight:var(--ef-ui-t-type-weight-medium);font-size:var(--ef-ui-t-type-size-xs);line-height:17.55px;color:var(--ef-ui-color-alert);text-wrap:pretty}\n.efds-order-row__error.efds-order-row__error.efds-order-row__error{margin:0px;margin-top:var(--ef-ui-t-space-2)}\n.efds-order-row__acts{grid-column:1 / -1;display:grid;grid-auto-flow:column;grid-auto-columns:minmax(0, 1fr);column-gap:var(--ef-ui-t-space-2);margin-top:var(--ef-ui-t-space-3)}\n.efds-order-row__acts--grid{grid-auto-flow:row;grid-template-columns:repeat(2, minmax(0, 1fr));row-gap:var(--ef-ui-t-space-2)}\n.efds-order-row__act{font:inherit;text-decoration:none;white-space:nowrap;cursor:pointer;touch-action:manipulation;-webkit-tap-highlight-color:transparent;box-sizing:border-box;border-style:solid;appearance:none;border:0px solid var(--ef-ui-color-line);padding:0px var(--ef-ui-t-space-3) 0px var(--ef-ui-t-space-3);background:#F3F3F3;position:relative;column-gap:6px;row-gap:6px;border-radius:var(--ef-ui-radius-pill) var(--ef-ui-radius-pill) var(--ef-ui-radius-pill) var(--ef-ui-radius-pill);min-height:40px;display:inline-flex;align-items:center;justify-content:center;min-width:0px;font-family:var(--ef-ui-font-family);font-weight:var(--ef-ui-t-type-weight-bold);font-size:14px;line-height:21.7px;color:var(--ef-ui-color-text);text-wrap:pretty;outline:var(--ef-ui-focus-width) solid transparent;outline-offset:var(--ef-ui-focus-offset)}\n.efds-order-row__act--go{background:var(--ef-ui-color-go)}\n.efds-order-row__act:focus-visible{outline-color:var(--ef-ui-color-focus)}\n.efds-order-row__act:disabled, .efds-order-row__act[aria-disabled="true"]{opacity:0.45;cursor:default}\n.efds-order-row__act > .efds-icon{width:16px;height:16px;color:inherit}\n.efds-order-row__heading{display:grid;grid-template-columns:minmax(0, 1fr) auto;align-items:start;column-gap:var(--ef-ui-t-space-3);row-gap:var(--ef-ui-t-space-3)}\n.efds-order-row__words{display:block;min-width:0px}\n.efds-order-row__when{display:flex;flex-wrap:wrap;align-items:center;column-gap:var(--ef-ui-t-space-2);row-gap:var(--ef-ui-t-space-1)}\n.efds-order-row__day{font-family:var(--ef-ui-font-family);font-weight:var(--ef-ui-t-type-weight-bold);font-size:16px;line-height:20.8px;color:var(--ef-ui-color-text);text-wrap:pretty}\n.efds-order-row__chip{box-sizing:border-box;padding:0px 9px 0px 5px;column-gap:var(--ef-ui-t-space-1);row-gap:var(--ef-ui-t-space-1);border-radius:var(--ef-ui-radius-pill) var(--ef-ui-radius-pill) var(--ef-ui-radius-pill) var(--ef-ui-radius-pill);background:var(--ef-ui-color-tint-go);min-height:24px;display:inline-flex;align-items:center;white-space:nowrap;font-family:var(--ef-ui-font-family);font-weight:var(--ef-ui-t-type-weight-bold);font-size:12px;line-height:15.6px;color:var(--ef-ui-color-ink);text-wrap:pretty}\n.efds-order-row__chip > .efds-icon{width:14px;height:14px;color:var(--ef-ui-color-ink)}\n.efds-order-row__line{display:block;margin-top:2px;font-family:var(--ef-ui-font-family);font-weight:var(--ef-ui-t-type-weight-regular);font-size:var(--ef-ui-t-type-size-xs);line-height:17.55px;color:var(--ef-ui-color-muted);text-wrap:pretty}\n.efds-order-row__amount{font-family:var(--ef-ui-font-family);font-weight:var(--ef-ui-t-type-weight-bold);font-size:16px;line-height:24.8px;color:var(--ef-ui-color-text);font-variant-numeric:tabular-nums;text-wrap:pretty}\n.efds-order-row__shots--quiet{column-gap:var(--ef-ui-t-space-2);row-gap:var(--ef-ui-t-space-2);margin-top:var(--ef-ui-t-space-2)}\n.efds-order-row__shots--quiet .efds-thumbnail--sm.efds-thumbnail--photo{box-sizing:border-box;padding:0px 0px 0px 0px;border-radius:14px 14px 14px 14px;background:#F3F3F3;width:64px;height:64px;isolation:isolate}\n.efds-order-row__shots--quiet .efds-thumbnail--sm > .efds-thumbnail__img{top:0px;right:0px;bottom:0px;left:0px;width:100%;height:100%;padding:6.391px 6.391px 6.391px 6.391px;object-fit:contain;mix-blend-mode:multiply}\n.efds-order-row__acts--quiet{display:flex;flex-wrap:wrap;align-items:center;column-gap:var(--ef-ui-t-space-3);row-gap:var(--ef-ui-t-space-3);margin-top:var(--ef-ui-t-space-3)}\n.efds-order-row__act--quiet{padding:0px var(--ef-ui-t-space-4) 0px var(--ef-ui-t-space-4);min-height:44px}\n.efds-order-row__act--quiet > .efds-icon{width:16px;height:16px;color:inherit}\n.efds-order-row__act--link{padding:0px 6px 0px 6px;background:none;column-gap:unset;row-gap:unset;border-radius:unset;min-height:44px;text-decoration-line:underline;text-underline-offset:3px;text-decoration-thickness:1.5px}\n.efds-order-row--web{box-sizing:border-box;padding:var(--ef-ui-t-space-4) var(--ef-ui-t-space-5) var(--ef-ui-t-space-4) var(--ef-ui-t-space-4);column-gap:var(--ef-ui-t-space-5);row-gap:var(--ef-ui-t-space-4);border-radius:var(--ef-ui-radius-lg) var(--ef-ui-radius-lg) var(--ef-ui-radius-lg) var(--ef-ui-radius-lg);background:var(--ef-ui-color-surface);box-shadow:0px 1px 2px 0px rgba(0, 0, 0, 0.04), 0px 6px 20px 0px rgba(0, 0, 0, 0.05);position:relative;grid-template-columns:auto minmax(0, 1fr) auto;align-items:center}\n.efds-order-row__cover{font:inherit;text-decoration:none;white-space:nowrap;cursor:pointer;touch-action:manipulation;-webkit-tap-highlight-color:transparent;box-sizing:border-box;border-style:solid;appearance:none;border:0px;padding:0px;background:none;position:absolute;inset:0px;z-index:0;border-radius:inherit;outline:var(--ef-ui-focus-width) solid transparent;outline-offset:var(--ef-ui-focus-offset)}\n.efds-order-row__cover:focus-visible{outline-color:var(--ef-ui-color-focus)}\n.efds-order-row--press .efds-order-row__squares, .efds-order-row--press .efds-order-row__acts--web{position:relative;z-index:1}\n.efds-order-row__squares{display:flex;width:172px}\n.efds-order-row__sq{box-sizing:border-box;padding:0px 0px 0px 0px;border-radius:14px 14px 14px 14px;background:#F3F3F3;display:grid;place-items:center;flex:none;width:72px;height:72px;overflow:hidden;box-shadow:0 0 0 3px var(--ef-ui-color-surface)}\n.efds-order-row__squares > * + *{margin-left:-22px}\n.efds-order-row__measure--web, .efds-order-row__shot--web{display:block;flex:none;border-radius:14px}\n.efds-order-row__sqimg{grid-area:1 / 1;place-self:stretch;display:block;box-sizing:border-box;width:100%;height:100%;padding:10%;object-fit:contain;mix-blend-mode:multiply}\n.efds-order-row__sq > .efds-icon{width:var(--ef-ui-t-metrics-thumbnail-sm-icon-w);height:var(--ef-ui-t-metrics-thumbnail-sm-icon-w);color:var(--ef-ui-t-metrics-thumbnail-sm-icon-color)}\n.efds-order-row__text{display:grid;column-gap:2px;row-gap:2px;min-width:0px}\n.efds-order-row__stamp{display:flex;flex-wrap:wrap;align-items:center;column-gap:var(--ef-ui-t-space-3);row-gap:var(--ef-ui-t-space-1);font-family:var(--ef-ui-font-family);font-weight:var(--ef-ui-t-type-weight-bold);font-size:19px;line-height:24.7px;color:var(--ef-ui-color-text);font-variant-numeric:tabular-nums;text-wrap:pretty}\n.efds-order-row__stamp.efds-order-row__stamp.efds-order-row__stamp{margin:0px}\n.efds-order-row__sum{font-family:var(--ef-ui-font-family);font-weight:900;font-size:19px;line-height:24.7px;color:var(--ef-ui-color-text);font-variant-numeric:tabular-nums;text-wrap:pretty}\n.efds-order-row__chip--web{box-sizing:border-box;padding:0px 10px 0px 6px;column-gap:var(--ef-ui-t-space-1);row-gap:var(--ef-ui-t-space-1);border-radius:var(--ef-ui-radius-pill) var(--ef-ui-radius-pill) var(--ef-ui-radius-pill) var(--ef-ui-radius-pill);background:var(--ef-ui-color-tint-go);min-height:26px;font-family:var(--ef-ui-font-family);font-weight:var(--ef-ui-t-type-weight-bold);font-size:var(--ef-ui-t-type-size-xs);line-height:16.9px;color:var(--ef-ui-color-ink);font-variant-numeric:tabular-nums;text-wrap:pretty}\n.efds-order-row__chip--web > .efds-icon{width:16px;height:16px;color:var(--ef-ui-color-ink)}\n.efds-order-row__what{font-family:var(--ef-ui-font-family);font-weight:var(--ef-ui-t-type-weight-regular);font-size:16px;line-height:22.4px;color:var(--ef-ui-color-text);text-wrap:pretty}\n.efds-order-row__what.efds-order-row__what.efds-order-row__what{margin:0px}\n.efds-order-row__note{font-family:var(--ef-ui-font-family);font-weight:var(--ef-ui-t-type-weight-regular);font-size:var(--ef-ui-t-type-size-sm);line-height:21px;color:var(--ef-ui-color-text);text-wrap:pretty}\n.efds-order-row__note.efds-order-row__note.efds-order-row__note{margin:0px}\n.efds-order-row__error--web{grid-column:auto;font-family:var(--ef-ui-font-family);font-weight:var(--ef-ui-t-type-weight-regular);font-size:var(--ef-ui-t-type-size-sm);line-height:21px;color:var(--ef-ui-color-alert);text-wrap:pretty}\n.efds-order-row__error--web.efds-order-row__error--web.efds-order-row__error--web{margin-top:0px}\n.efds-order-row__acts--web{grid-column:3;display:flex;flex-wrap:wrap;justify-content:flex-end;align-items:center;column-gap:var(--ef-ui-t-space-5);row-gap:var(--ef-ui-t-space-2);margin-top:0px}\n.efds-order-row__act--web{border:0;padding:0px 20px 0px 20px;background:var(--ef-ui-color-surface);column-gap:var(--ef-ui-t-space-2);row-gap:var(--ef-ui-t-space-2);box-shadow:0px 0px 0px 0px, inset 0 0 0 1.5px #C6D3CD;min-height:46px;font-size:16px;line-height:19.2px;color:var(--ef-ui-color-ink)}\n.efds-order-row__act--web-go{padding:0px var(--ef-ui-t-space-5) 0px var(--ef-ui-t-space-5);background:var(--ef-ui-color-ink);column-gap:var(--ef-ui-t-space-2);row-gap:var(--ef-ui-t-space-2);min-height:52px;font-size:var(--ef-ui-t-type-size-md);line-height:20.4px;color:var(--ef-ui-color-surface);text-wrap:unset}\n.efds-order-row__act--web-link{padding:0px 0px 0px 0px;background:none;column-gap:var(--ef-ui-t-space-2);row-gap:var(--ef-ui-t-space-2);border-radius:unset;min-height:44px;font-size:var(--ef-ui-t-type-size-md);line-height:20.4px;color:var(--ef-ui-color-ink);text-decoration-line:underline;text-underline-offset:4px}\n.efds-order-row__act--web:active, .efds-order-row__act--web-go:active{transform:scale(0.97)}\n@media (hover: hover) and (pointer: fine){\n.efds-order-row__act--web:hover{background:color-mix(in srgb, var(--ef-ui-color-ink) 6%, var(--ef-ui-color-surface))}\n}\n.efds-order-row__act--web > .efds-icon, .efds-order-row__act--web-go > .efds-icon, .efds-order-row__act--web-link > .efds-icon{width:18px;height:18px;color:inherit}\n.efds-order-row__chip--off{background:transparent}\n.efds-order-row__link{font:inherit;text-decoration:none;white-space:normal;cursor:pointer;touch-action:manipulation;-webkit-tap-highlight-color:transparent;box-sizing:border-box;border-style:solid;appearance:none;border:0px;padding:0px;background:none;display:inline;color:inherit;text-align:inherit;text-decoration-line:underline;outline:var(--ef-ui-focus-width) solid transparent;outline-offset:var(--ef-ui-focus-offset)}\n.efds-order-row__link:focus-visible{outline-color:var(--ef-ui-color-focus)}\n@container (max-width: 599px){\n.efds-order-row--web{grid-template-columns:minmax(0, 1fr);padding:var(--ef-ui-t-space-4) var(--ef-ui-t-space-4) var(--ef-ui-t-space-4) var(--ef-ui-t-space-4)}\n.efds-order-row__squares{width:auto}\n.efds-order-row__sq{width:64px;height:64px}\n.efds-order-row__squares > * + *{margin-left:-16px}\n.efds-order-row__acts--web{grid-column:1 / -1;justify-content:flex-start}\n}\n@media (max-width: 639px){\n.efds-order-row--web{grid-template-columns:minmax(0, 1fr) auto;column-gap:var(--ef-ui-t-space-3);row-gap:var(--ef-ui-t-space-2);padding:0px;border-radius:0px;background:none;box-shadow:none}\n.efds-order-row__squares{grid-column:2;grid-row:1;width:auto;align-self:start}\n.efds-order-row__sq{width:48px;height:48px;border-radius:12px;box-shadow:0 0 0 2px var(--ef-ui-color-surface)}\n.efds-order-row__measure--web, .efds-order-row__shot--web{border-radius:12px}\n.efds-order-row__squares > * + *{margin-left:-18px}\n.efds-order-row__text{grid-column:1;grid-row:1}\n.efds-order-row__stamp{column-gap:var(--ef-ui-t-space-3);row-gap:2px;font-family:var(--ef-ui-font-family);font-weight:var(--ef-ui-t-type-weight-bold);font-size:16px;line-height:20.8px;color:var(--ef-ui-color-text);font-variant-numeric:tabular-nums;text-wrap:pretty}\n.efds-order-row__sum{font-family:var(--ef-ui-font-family);font-weight:900;font-size:16px;line-height:20.8px;color:var(--ef-ui-color-text);font-variant-numeric:tabular-nums;text-wrap:pretty}\n.efds-order-row__chip--web{min-height:24px;font-family:var(--ef-ui-font-family);font-weight:var(--ef-ui-t-type-weight-bold);font-size:12px;line-height:15.6px;color:var(--ef-ui-color-ink);font-variant-numeric:tabular-nums;text-wrap:pretty}\n.efds-order-row__what{display:none}\n.efds-order-row__what--keep{display:block}\n.efds-order-row__note{font-family:var(--ef-ui-font-family);font-weight:var(--ef-ui-t-type-weight-regular);font-size:var(--ef-ui-t-type-size-xs);line-height:18.2px;color:var(--ef-ui-color-text);text-wrap:pretty}\n.efds-order-row__acts--web{grid-column:1 / -1;justify-content:flex-start;column-gap:var(--ef-ui-t-space-5);row-gap:var(--ef-ui-t-space-2)}\n.efds-order-row__act--web{min-height:46px;padding:0px var(--ef-ui-t-space-4) 0px var(--ef-ui-t-space-4);font-family:var(--ef-ui-font-family);font-weight:var(--ef-ui-t-type-weight-bold);font-size:var(--ef-ui-t-type-size-sm);line-height:18px;color:var(--ef-ui-color-ink);text-wrap:pretty}\n.efds-order-row__act--web-link{font-family:var(--ef-ui-font-family);font-weight:var(--ef-ui-t-type-weight-bold);font-size:var(--ef-ui-t-type-size-sm);line-height:18px;color:var(--ef-ui-color-ink);text-decoration-line:underline;text-underline-offset:4px;text-wrap:pretty}\n}\n`],[1413,`@media (prefers-reduced-motion: reduce){\n.efds-order-row__shot:active, .efds-order-row__act--web:active, .efds-order-row__act--web-go:active{transform:none}\n}\n`],[1436,`@media (forced-colors: active){\n.efds-order-row__open:not(:focus-visible), .efds-order-row__shot:not(:focus-visible), .efds-order-row__act:not(:focus-visible), .efds-order-row__cover:not(:focus-visible), .efds-order-row__link:not(:focus-visible){outline-style:none}\n}\n`]],needs:[iconCss,skeletonCss,thumbnailCss]};var productTileCss={name:"productTile",props:[34,"--ef-ui-t-metrics-thumbnail-md-frame-margin-bottom:6px;--ef-ui-t-metrics-thumbnail-lg-frame-margin-bottom:8px",""],segments:[[639,`.efds-product-tile{box-sizing:border-box;padding:0px 0px 0px 0px;column-gap:var(--ef-ui-t-space-1);row-gap:var(--ef-ui-t-space-1);display:grid;align-content:start}\n.efds-product-tile > .efds-product-tile__img{margin-bottom:var(--ef-ui-t-metrics-thumbnail-md-frame-margin-bottom)}\n.efds-product-tile__ph{display:block;width:100%;aspect-ratio:1 / 1;border-radius:var(--ef-ui-t-metrics-thumbnail-md-frame-radius-0);background:var(--ef-ui-color-tint-sage);margin-bottom:var(--ef-ui-t-metrics-thumbnail-md-frame-margin-bottom)}\n.efds-product-tile__kicker{display:block;font-family:var(--ef-ui-font-mono);font-weight:var(--ef-ui-t-type-weight-regular);font-size:12px;line-height:15.6px;color:var(--ef-ui-color-muted);letter-spacing:0.12px;text-wrap:pretty}\n.efds-product-tile__name{display:block;font-family:var(--ef-ui-font-family);font-weight:var(--ef-ui-t-type-weight-bold);font-size:var(--ef-ui-t-type-size-sm);line-height:19.5px;color:var(--ef-ui-color-text);text-wrap:balance}\n.efds-product-tile__meta{display:block;font-family:var(--ef-ui-font-family);font-weight:var(--ef-ui-t-type-weight-regular);font-size:var(--ef-ui-t-type-size-xs);line-height:18.2px;color:var(--ef-ui-color-muted);text-wrap:pretty}\n.efds-product-tile__open{font:inherit;text-decoration:none;white-space:normal;cursor:pointer;touch-action:manipulation;-webkit-tap-highlight-color:transparent;box-sizing:border-box;border-style:solid;appearance:none;border:0px;padding:0px;background:none;text-align:start;font-family:var(--ef-ui-font-family);font-weight:var(--ef-ui-t-type-weight-bold);font-size:var(--ef-ui-t-type-size-sm);line-height:19.5px;color:var(--ef-ui-color-text);text-wrap:balance;outline:var(--ef-ui-focus-width) solid transparent;outline-offset:var(--ef-ui-focus-offset)}\n.efds-product-tile__open:focus-visible{outline-color:var(--ef-ui-color-focus)}\n.efds-product-tile__buy{display:flex;align-items:center;justify-content:space-between;column-gap:var(--ef-ui-t-space-2);margin-top:6px}\n.efds-product-tile__price{font-family:var(--ef-ui-font-family);font-weight:var(--ef-ui-t-type-weight-bold);font-size:var(--ef-ui-t-type-size-sm);line-height:23.25px;color:var(--ef-ui-color-text);font-variant-numeric:tabular-nums;text-wrap:pretty}\n.efds-product-row{box-sizing:border-box;padding:0px 0px 0px 0px;column-gap:var(--ef-ui-t-space-3);row-gap:var(--ef-ui-t-space-3);display:grid;grid-template-columns:var(--ef-ui-t-metrics-thumbnail-xs-frame-w) minmax(0, 1fr);align-items:center}\n.efds-product-row--buy{grid-template-columns:var(--ef-ui-t-metrics-thumbnail-xs-frame-w) minmax(0, 1fr) auto}\n.efds-product-row__ph{width:var(--ef-ui-t-metrics-thumbnail-xs-frame-w);height:var(--ef-ui-t-metrics-thumbnail-xs-frame-h);border-radius:var(--ef-ui-t-metrics-thumbnail-xs-frame-radius-0);background:var(--ef-ui-color-tint-sage)}\n.efds-product-row__body{min-width:0px}\n.efds-product-row__name{font-family:var(--ef-ui-font-family);font-weight:var(--ef-ui-t-type-weight-bold);font-size:var(--ef-ui-t-type-size-md);line-height:22.1px;color:var(--ef-ui-color-ink);text-wrap:pretty}\n.efds-product-row__name.efds-product-row__name.efds-product-row__name{margin:0px}\n.efds-product-row__meta{font-family:var(--ef-ui-font-family);font-weight:var(--ef-ui-t-type-weight-regular);font-size:var(--ef-ui-t-type-size-xs);line-height:18.85px;color:var(--ef-ui-color-muted);text-wrap:pretty}\n.efds-product-row__meta.efds-product-row__meta.efds-product-row__meta{margin:0px;margin-top:2px}\n.efds-product-row .efds-product-tile__open{font-family:var(--ef-ui-font-family);font-weight:var(--ef-ui-t-type-weight-bold);font-size:var(--ef-ui-t-type-size-md);line-height:22.1px;color:var(--ef-ui-color-ink);text-wrap:pretty}\n.efds-product-row .efds-product-tile__buy{margin-top:0px}\n.efds-product-card{box-sizing:border-box;padding:0px 0px 0px 0px;column-gap:2px;row-gap:2px;position:relative;display:grid;align-content:start}\n.efds-product-card__media{position:relative;margin-bottom:var(--ef-ui-t-metrics-thumbnail-lg-frame-margin-bottom)}\n.efds-product-card__ph{display:block;width:100%;aspect-ratio:1 / 1;border-radius:var(--ef-ui-t-metrics-thumbnail-lg-frame-radius-0);background:var(--ef-ui-color-tint-sage)}\n.efds-product-card__tag{box-sizing:border-box;padding:0px 9px 0px 6px;column-gap:var(--ef-ui-t-space-1);row-gap:var(--ef-ui-t-space-1);border-radius:var(--ef-ui-radius-pill) var(--ef-ui-radius-pill) var(--ef-ui-radius-pill) var(--ef-ui-radius-pill);background:var(--ef-ui-color-surface);min-height:26px;position:absolute;inset-inline-start:8px;top:8px;display:inline-flex;align-items:center;height:26px;white-space:nowrap;font-family:var(--ef-ui-font-family);font-weight:var(--ef-ui-t-type-weight-bold);font-size:12px;line-height:12px;color:var(--ef-ui-color-text);text-wrap:pretty}\n.efds-product-card__tag > .efds-icon{width:16px;height:16px;color:#CA4463}\n.efds-product-card__step{position:absolute;z-index:2;inset-inline-end:8px;bottom:8px;display:grid;border-radius:19px;background:var(--ef-ui-color-surface);box-shadow:0px 2px 8px 0px rgba(0, 0, 0, 0.14);color:var(--ef-ui-color-text)}\n.efds-product-card__step--in{box-sizing:border-box;padding:0px 0px 0px 0px;border-radius:19px 19px 19px 19px;background:var(--ef-ui-color-ink);box-shadow:unset;grid-template-columns:38px 1fr 38px;align-items:center;width:112px;height:38px;color:var(--ef-ui-color-surface)}\n.efds-product-card__btn{font:inherit;text-decoration:none;white-space:nowrap;cursor:pointer;touch-action:manipulation;-webkit-tap-highlight-color:transparent;box-sizing:border-box;border-style:solid;appearance:none;border:0px;padding:0px;background:none;position:relative;display:grid;place-items:center;width:38px;height:38px;border-radius:19px;color:inherit;outline:var(--ef-ui-focus-width) solid transparent;outline-offset:var(--ef-ui-focus-offset)}\n.efds-product-card__btn:focus-visible{outline-color:var(--ef-ui-color-focus)}\n.efds-product-card__btn:disabled, .efds-product-card__btn[aria-disabled="true"]{cursor:default}\n.efds-product-card__btn > .efds-icon{width:18px;height:18px;color:inherit}\n.efds-product-card__count{text-align:center;font-family:var(--ef-ui-font-family);font-weight:var(--ef-ui-t-type-weight-bold);font-size:var(--ef-ui-t-type-size-sm);line-height:23.25px;color:var(--ef-ui-color-surface);font-variant-numeric:tabular-nums;text-wrap:pretty}\n.efds-product-card__price{display:flex;align-items:baseline;column-gap:6px}\n.efds-product-card__price.efds-product-card__price.efds-product-card__price{margin:0px}\n.efds-product-card__now{font-family:var(--ef-ui-font-family);font-weight:var(--ef-ui-t-type-weight-bold);font-size:var(--ef-ui-t-type-size-md);line-height:26.35px;color:var(--ef-ui-color-text);letter-spacing:-0.17px;font-variant-numeric:tabular-nums;text-wrap:pretty}\n.efds-product-card__was{font-family:var(--ef-ui-font-family);font-weight:var(--ef-ui-t-type-weight-regular);font-size:var(--ef-ui-t-type-size-xs);line-height:20.15px;color:var(--ef-ui-color-muted);text-decoration-line:line-through;font-variant-numeric:tabular-nums;text-wrap:pretty}\n.efds-product-card__name{display:block;font-family:var(--ef-ui-font-family);font-weight:var(--ef-ui-t-type-weight-medium);font-size:14px;line-height:18.2px;color:var(--ef-ui-color-text);text-wrap:balance}\n.efds-product-card__meta{font-family:var(--ef-ui-font-family);font-weight:var(--ef-ui-t-type-weight-regular);font-size:12px;line-height:16.2px;color:var(--ef-ui-color-muted);text-wrap:pretty}\n.efds-product-card__meta.efds-product-card__meta.efds-product-card__meta{margin:0px}\n.efds-product-card__meta--auto{font-weight:var(--ef-ui-t-type-weight-medium);color:#16864A}\n.efds-product-card__meta--auto-dark{font-weight:var(--ef-ui-t-type-weight-medium);color:var(--ef-ui-color-ink)}\n.efds-product-card__per{font-family:var(--ef-ui-font-family);font-weight:var(--ef-ui-t-type-weight-regular);font-size:12px;line-height:16.2px;color:var(--ef-ui-color-muted);font-variant-numeric:tabular-nums;text-wrap:pretty}\n.efds-product-card__open{font:inherit;text-decoration:none;white-space:nowrap;cursor:pointer;touch-action:manipulation;-webkit-tap-highlight-color:transparent;box-sizing:border-box;border-style:solid;appearance:none;border:0px;padding:0px;background:none;position:absolute;inset:0px;z-index:1;border-radius:var(--ef-ui-t-metrics-thumbnail-lg-frame-radius-0);outline:var(--ef-ui-focus-width) solid transparent;outline-offset:var(--ef-ui-focus-offset)}\n.efds-product-card__open:focus-visible{outline-color:var(--ef-ui-color-focus)}\n.efds-product-card__pill{font:inherit;text-decoration:none;white-space:nowrap;cursor:pointer;touch-action:manipulation;-webkit-tap-highlight-color:transparent;box-sizing:border-box;border-style:solid;appearance:none;border:0px solid var(--ef-ui-color-line);padding:0px 14px 0px 14px;background:var(--ef-ui-color-go);position:absolute;z-index:2;inset-inline-end:8px;bottom:8px;column-gap:var(--ef-ui-t-space-1);row-gap:var(--ef-ui-t-space-1);border-radius:var(--ef-ui-radius-pill) var(--ef-ui-radius-pill) var(--ef-ui-radius-pill) var(--ef-ui-radius-pill);min-height:36px;display:inline-flex;align-items:center;font-family:var(--ef-ui-font-family);font-weight:var(--ef-ui-t-type-weight-bold);font-size:14px;line-height:21.7px;color:var(--ef-ui-color-text);text-wrap:pretty;outline:var(--ef-ui-focus-width) solid transparent;outline-offset:var(--ef-ui-focus-offset)}\n.efds-product-card__pill:active{transform:scale(0.96)}\n.efds-product-card__pill:focus-visible{outline-color:var(--ef-ui-color-focus)}\n.efds-product-card__pill:disabled, .efds-product-card__pill[aria-disabled="true"]{opacity:0.45;cursor:default}\n.efds-product-card__pill > .efds-icon{width:16px;height:16px;color:inherit}\n.efds-product-card__pill--on{border:0;background:var(--ef-ui-color-surface);box-shadow:0px 0px 0px 0px, inset 0 0 0 2px var(--ef-ui-color-text)}\n.efds-product-card__pill--soft{background:var(--ef-ui-color-surface);box-shadow:0px 2px 8px 0px rgba(0, 0, 0, 0.14)}\n.efds-product-card--blend .efds-thumbnail--lg.efds-thumbnail--photo{isolation:isolate}\n.efds-product-card--blend .efds-thumbnail--lg > .efds-thumbnail__img{padding:var(--ef-ui-t-space-6) 14px var(--ef-ui-t-space-4) 14px;mix-blend-mode:multiply}\n.efds-product-card--blend .efds-product-card__step:not(.efds-product-card__step--in){box-shadow:0px 2px 8px 0px rgba(0, 0, 0, 0.08)}\n.efds-product-card__step.efds-product-card__step--flat:not(.efds-product-card__step--in){box-shadow:none}\n.efds-product-card__pill--money{border:0;background:var(--ef-ui-color-pink);box-shadow:0px 0px 0px 0px, inset 0 0 0 1px var(--ef-ui-color-ink);color:var(--ef-ui-color-ink)}\n.efds-product-card__pill--ring{border:0;background:var(--ef-ui-color-surface);box-shadow:0px 0px 0px 0px, inset 0 0 0 2px var(--ef-ui-color-ink);color:var(--ef-ui-color-ink)}\n.efds-product-card__pill--money:active, .efds-product-card__pill--ring:active{transform:scale(0.97)}\n.efds-product-web{box-sizing:border-box;padding:0px 0px 0px 0px;column-gap:2px;row-gap:2px;position:relative;display:grid;align-content:start;min-width:0px}\n.efds-product-web__square{box-sizing:border-box;padding:0px 0px 0px 0px;border-radius:var(--ef-ui-radius-lg) var(--ef-ui-radius-lg) var(--ef-ui-radius-lg) var(--ef-ui-radius-lg);background:#F5F5F5;position:relative;display:block;aspect-ratio:1 / 1;margin-bottom:10px;outline:var(--ef-ui-focus-width) solid transparent;outline-offset:3px}\n.efds-product-web__img{display:block;box-sizing:border-box;width:100%;height:100%;padding:7% 7% 7% 7%;object-fit:contain;mix-blend-mode:multiply}\n.efds-product-web--white .efds-product-web__img{padding:11% 11% 14% 11%}\n.efds-product-web--tag .efds-product-web__img{padding:calc(11% + 26px) 11% 10% 11%}\n.efds-product-web--even .efds-product-web__img{padding:7% 7% 7% 7%}\n.efds-product-web--white .efds-product-web__square{background:var(--ef-ui-color-surface)}\n.efds-product-web--white .efds-product-web__img{mix-blend-mode:normal}\n.efds-product-web__mark{position:absolute;inset:0px;display:grid;place-items:center;border-radius:inherit}\n.efds-product-web__ph{display:block;width:100%;aspect-ratio:1 / 1;margin-bottom:10px;border-radius:var(--ef-ui-radius-lg);background:var(--ef-ui-color-tint-sage)}\n.efds-product-web__tag{box-sizing:border-box;padding:0px var(--ef-ui-t-space-3) 0px var(--ef-ui-t-space-2);column-gap:5px;row-gap:5px;border-radius:var(--ef-ui-radius-pill) var(--ef-ui-radius-pill) var(--ef-ui-radius-pill) var(--ef-ui-radius-pill);background:#F7E3E8;min-height:30px;position:absolute;z-index:1;top:10px;inset-inline-start:10px;display:inline-flex;align-items:center;max-width:calc(100% - 20px);white-space:nowrap;pointer-events:none;font-family:var(--ef-ui-font-family);font-weight:var(--ef-ui-t-type-weight-bold);font-size:var(--ef-ui-t-type-size-xs);line-height:14.3px;color:var(--ef-ui-color-ink);text-wrap:pretty}\n.efds-product-web__tag.efds-product-web__tag.efds-product-web__tag{margin:0px}\n.efds-product-web__tag > .efds-icon{flex:none;width:16px;height:16px;color:#CA4463}\n.efds-product-web__name{font:inherit;text-decoration:none;white-space:normal;cursor:pointer;touch-action:manipulation;-webkit-tap-highlight-color:transparent;box-sizing:border-box;border-style:solid;appearance:none;border:0px;padding:0px;background:none;display:block;text-align:start;font-family:var(--ef-ui-font-family);font-weight:var(--ef-ui-t-type-weight-medium);font-size:var(--ef-ui-t-type-size-md);line-height:1.3;color:var(--ef-ui-color-text);text-wrap:balance;outline:0px}\n.efds-product-web__name::after{content:"";position:absolute;inset:0px;z-index:1;border-radius:20px}\n@container (max-width: 599px){\n.efds-product-web__name{font-family:var(--ef-ui-font-family);font-weight:var(--ef-ui-t-type-weight-medium);font-size:16px;line-height:1.3;color:var(--ef-ui-color-text);text-wrap:balance}\n}\n@container (max-width: 399px){\n.efds-product-web__name{font-family:var(--ef-ui-font-family);font-weight:var(--ef-ui-t-type-weight-medium);font-size:14px;line-height:1.3;color:var(--ef-ui-color-text);text-wrap:balance}\n}\n.efds-product-web:has(.efds-product-web__name:focus-visible) .efds-product-web__square{outline-color:var(--ef-ui-color-focus)}\n.efds-product-web .efds-product-web__name:focus-visible{outline:0px}\n@media (hover: hover) and (pointer: fine){\n.efds-product-web:has(.efds-product-web__name:hover) .efds-product-web__square{box-shadow:inset 0 0 0 1.5px color-mix(in srgb, var(--ef-ui-color-ink) 45%, transparent)}\n.efds-product-web:has(.efds-product-web__name:hover) .efds-product-web__name{text-decoration-line:underline;text-underline-offset:3px}\n}\n.efds-product-web__price{display:flex;flex-wrap:wrap;align-items:baseline;column-gap:var(--ef-ui-t-space-2);row-gap:2px}\n.efds-product-web__price.efds-product-web__price.efds-product-web__price{margin:0px}\n.efds-product-web__now{font-family:var(--ef-ui-font-family);font-weight:var(--ef-ui-t-type-weight-bold);font-size:18px;line-height:27.9px;color:var(--ef-ui-color-text);letter-spacing:-0.18px;font-variant-numeric:tabular-nums;text-wrap:pretty}\n.efds-product-web__was{font-family:var(--ef-ui-font-family);font-weight:var(--ef-ui-t-type-weight-regular);font-size:var(--ef-ui-t-type-size-sm);line-height:23.25px;color:var(--ef-ui-color-text);text-decoration-line:line-through;font-variant-numeric:tabular-nums;text-wrap:pretty}\n.efds-product-web__per{font-family:var(--ef-ui-font-family);font-weight:var(--ef-ui-t-type-weight-regular);font-size:var(--ef-ui-t-type-size-sm);line-height:23.25px;color:var(--ef-ui-color-text);font-variant-numeric:tabular-nums;text-wrap:pretty}\n.efds-product-web__badge{box-sizing:border-box;padding:0px var(--ef-ui-t-space-2) 0px var(--ef-ui-t-space-2);border-radius:var(--ef-ui-radius-pill) var(--ef-ui-radius-pill) var(--ef-ui-radius-pill) var(--ef-ui-radius-pill);background:#DEE4F1;box-shadow:0px 0px 0px 0px, inset 0 0 0 1.5px rgba(90, 96, 135, 0.45);display:inline-flex;align-items:center;align-self:center;height:22px;white-space:nowrap;font-style:normal;font-family:var(--ef-ui-font-family);font-weight:var(--ef-ui-t-type-weight-bold);font-size:var(--ef-ui-t-type-size-xs);line-height:13px;color:var(--ef-ui-color-text);font-variant-numeric:tabular-nums;text-wrap:pretty}\n.efds-product-web__meta{font-family:var(--ef-ui-font-family);font-weight:var(--ef-ui-t-type-weight-regular);font-size:var(--ef-ui-t-type-size-sm);line-height:21px;color:var(--ef-ui-color-text);text-wrap:pretty}\n.efds-product-web__meta.efds-product-web__meta.efds-product-web__meta{margin:0px}\n.efds-product-web__act{position:absolute;z-index:2;inset-inline-end:10px;bottom:10px;display:flex}\n.efds-product-web__step{box-sizing:border-box;padding:0px 0px 0px 0px;border-radius:22px 22px 22px 22px;background:var(--ef-ui-color-surface);box-shadow:0px 2px 8px 0px rgba(0, 0, 0, 0.14);display:grid;color:var(--ef-ui-color-text)}\n.efds-product-web__step--flat:not(.efds-product-web__step--in){box-shadow:none}\n.efds-product-web__step--in{background:var(--ef-ui-color-ink);box-shadow:none;grid-template-columns:44px minmax(28px, auto) 44px;align-items:center;height:44px;color:var(--ef-ui-color-surface)}\n.efds-product-web__btn{font:inherit;text-decoration:none;white-space:nowrap;cursor:pointer;touch-action:manipulation;-webkit-tap-highlight-color:transparent;box-sizing:border-box;border-style:solid;appearance:none;border:0px;padding:0px;background:none;position:relative;display:grid;place-items:center;width:44px;height:44px;border-radius:22px;color:inherit;outline:var(--ef-ui-focus-width) solid transparent;outline-offset:var(--ef-ui-focus-offset)}\n.efds-product-web__btn:active{transform:scale(0.94)}\n.efds-product-web__step--in .efds-product-web__btn{width:44px;height:44px;border-radius:22px}\n.efds-product-web__step--in .efds-product-web__btn:active{transform:scale(0.88)}\n.efds-product-web__btn:focus-visible{outline-color:var(--ef-ui-color-focus)}\n.efds-product-web__btn:disabled, .efds-product-web__btn[aria-disabled="true"]{cursor:default}\n.efds-product-web__btn > .efds-icon{width:20px;height:20px;color:inherit}\n.efds-product-web__step--in .efds-product-web__btn > .efds-icon{width:18px;height:18px}\n.efds-product-web__count{text-align:center;font-family:var(--ef-ui-font-family);font-weight:var(--ef-ui-t-type-weight-bold);font-size:var(--ef-ui-t-type-size-sm);line-height:23.25px;color:var(--ef-ui-color-surface);font-variant-numeric:tabular-nums;text-wrap:pretty}\n.efds-product-web__pill{font:inherit;text-decoration:none;white-space:nowrap;cursor:pointer;touch-action:manipulation;-webkit-tap-highlight-color:transparent;box-sizing:border-box;border-style:solid;appearance:none;border:0px solid var(--ef-ui-color-line);padding:0px var(--ef-ui-t-space-4) 0px var(--ef-ui-t-space-4);background:var(--ef-ui-color-ink);position:relative;column-gap:6px;row-gap:6px;border-radius:var(--ef-ui-radius-pill) var(--ef-ui-radius-pill) var(--ef-ui-radius-pill) var(--ef-ui-radius-pill);min-height:44px;display:inline-flex;align-items:center;justify-content:center;font-family:var(--ef-ui-font-family);font-weight:var(--ef-ui-t-type-weight-bold);font-size:var(--ef-ui-t-type-size-sm);line-height:15px;color:var(--ef-ui-color-surface);text-wrap:pretty;outline:var(--ef-ui-focus-width) solid transparent;outline-offset:var(--ef-ui-focus-offset)}\n.efds-product-web__pill--on{border:0;background:var(--ef-ui-color-surface);box-shadow:0px 0px 0px 0px, inset 0 0 0 2px var(--ef-ui-color-ink);color:var(--ef-ui-color-ink)}\n.efds-product-web__pill--soft{background:var(--ef-ui-color-surface);box-shadow:0px 2px 8px 0px rgba(0, 0, 0, 0.14);color:var(--ef-ui-color-text)}\n.efds-product-web__pill:active{transform:scale(0.97)}\n.efds-product-web__pill:focus-visible{outline-color:var(--ef-ui-color-focus)}\n.efds-product-web__pill:disabled, .efds-product-web__pill[aria-disabled="true"]{opacity:0.45;cursor:default}\n.efds-product-web__pill > .efds-icon{width:18px;height:18px;color:inherit}\n`],[1437,`@media (forced-colors: active){\n.efds-product-tile__open:not(:focus-visible), .efds-product-card__btn:not(:focus-visible), .efds-product-card__open:not(:focus-visible), .efds-product-card__pill:not(:focus-visible), .efds-product-web__square:not(:focus-visible), .efds-product-web__btn:not(:focus-visible), .efds-product-web__pill:not(:focus-visible){outline-style:none}\n}\n`],[1450,`@media (forced-colors: active){\n.efds-product-web:has(.efds-product-web__name:focus-visible) .efds-product-web__square{outline-style:solid;outline-color:CanvasText}\n}\n`]],needs:[buttonCss,iconCss,skeletonCss,thumbnailCss]};var CART_LINE_PARTS=[cartLineCss],ORDER_ROW_PARTS=[orderRowCss,iconCss],PLAN_NEED_CARD_PARTS=[planNeedCardCss],PRICE_SUMMARY_PARTS=[skeletonCss,summaryListCss],PRODUCT_TILE_PARTS=[productTileCss],TIP_CARD_PARTS=[tipCardCss];function CartLine2(props){return registerIconSet(),/* @__PURE__ */jsx(BlockScope,{children:/* @__PURE__ */jsx(CartLineBody,{...props})})}function CartLineBody(props){let root=useBlockStyles(CART_LINE_PARTS);/* @__PURE__ */
4
4
  return jsx(CartLine,{ref:root,...props})}function Action({action:action,testID:testID,quiet:quiet,web:web=false}){let off=action.disabled===true||action.busy===true,tone=web?action.tone==="link"?"efds-order-row__act--web-link":action.tone==="go"?"efds-order-row__act--web-go":"efds-order-row__act--web":action.tone==="link"?"efds-order-row__act--link":action.tone==="go"?"efds-order-row__act--go":quiet?"efds-order-row__act--quiet":void 0;/* @__PURE__ */
5
5
  return jsxs("button",{type:"button","data-testid":testID,onClick:off?void 0:action.onPress,disabled:action.disabled,"aria-disabled":action.busy&&!action.disabled||void 0,"aria-busy":action.busy||void 0,className:cx("efds-order-row__act",tone),children:[
6
6
  /* @__PURE__ */jsx("span",{"aria-hidden":"true","data-hit":"",className:"efds-hit"}),action.icon?/* @__PURE__ */jsx(BlockIcon,{icon:action.icon}):null,action.label]})}function Linked({link:link,A:A,children:children}){return link?.href!==void 0?/* @__PURE__ */jsx(A,{href:link.href,onClick:link.onPress,"data-testid":link.testID,className:"efds-order-row__link",children:children}):link?.onPress?/* @__PURE__ */jsx("button",{type:"button",onClick:link.onPress,"data-testid":link.testID,className:"efds-order-row__link",children:children}):children}function Shot({shot:shot,pressable:pressable,testID:testID,onMeasure:onMeasure,web:web=false}){let t=useTheme(),ref=useRef(null),setRef=useCallback(el=>{ref.current=el},[]),p=t.metrics.thumbnail.sm,w=blockMetrics(t,orderWebBlockMetrics),sqInset=w.sq.w*w.imgInset,hasSrc=!!shot.src,frame=useMemo(()=>web?{padding:[sqInset,sqInset,sqInset,sqInset]}:hasSrc?p.frame:p.empty,[web,sqInset,hasSrc,p]),measure=useCallback(async()=>{let el=ref.current;if(!el||!el.isConnected)return null;let r=el.getBoundingClientRect(),[pt=0,pr=0,pb=0,pl=0]=frame.padding;return{x:r.left+pl,y:r.top+pt,width:Math.max(0,r.width-pl-pr),height:Math.max(0,r.height-pt-pb)}},[frame]),key=shot.key;useEffect(()=>{if(onMeasure)return onMeasure(key,measure),()=>onMeasure(key,null)},[onMeasure,key,measure]);let live=pressable&&shot.onPress!==void 0,art=web?/* @__PURE__ */jsx(WebSquare,{shot:shot,alt:live?void 0:shot.alt,testID:live||onMeasure?void 0:testID}):/* @__PURE__ */jsx(BlockThumbnail,{size:"sm",src:shot.src,alt:live?void 0:shot.alt,icon:shot.icon,iconSize:shot.iconSize,onError:shot.onError,tint:shot.tint,iconColor:shot.iconColor,testID:live||onMeasure?void 0:testID});return live?/* @__PURE__ */jsx("button",{ref:setRef,type:"button","data-testid":testID,onClick:shot.onPress,"aria-label":shot.alt,className:cx("efds-order-row__shot",web?"efds-order-row__shot--web":!shot.src&&"efds-order-row__shot--empty"),children:art}):onMeasure?/* @__PURE__ */jsx("span",{ref:setRef,"data-testid":testID,className:cx("efds-order-row__measure",web&&"efds-order-row__measure--web"),children:art}):art}function WebSquare({shot:shot,alt:alt,testID:testID}){let[failed,setFailed]=useState(null),photo=shot.src&&failed!==shot.src?shot.src:null;/* @__PURE__ */