@everfur/sdk 1.5.0 → 1.5.2

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 (87) hide show
  1. package/dist/{bookingCopy.d-BuDv16WP.d.ts → bookingCopy.d-BL2-URcv.d.ts} +3 -2
  2. package/dist/{bookingCopy.d-rnBSqOSN.d.cts → bookingCopy.d-Dfew1pjY.d.cts} +3 -2
  3. package/dist/care/index.cjs +2 -2
  4. package/dist/care/index.js +2 -2
  5. package/dist/chat/index.cjs +235 -234
  6. package/dist/chat/index.js +311 -310
  7. package/dist/chat/lite/index.cjs +339 -338
  8. package/dist/chat/lite/index.js +314 -313
  9. package/dist/{chunk-4KFFE42Z.js → chunk-2T5CB5MW.js} +20 -20
  10. package/dist/{chunk-HHCGXQJR.js → chunk-ASE36WGP.js} +11 -11
  11. package/dist/{chunk-6IHY7HS7.js → chunk-CMDCBYUH.js} +1 -1
  12. package/dist/{chunk-BMYNDBUR.js → chunk-K7YHXFPQ.js} +1 -1
  13. package/dist/client/index.cjs +1 -1
  14. package/dist/client/index.d.cts +2 -2
  15. package/dist/client/index.d.ts +2 -2
  16. package/dist/client/index.js +1 -1
  17. package/dist/core/index.cjs +31 -31
  18. package/dist/core/index.js +31 -31
  19. package/dist/health-plan/index.cjs +266 -266
  20. package/dist/health-plan/index.js +443 -443
  21. package/dist/{inbox.d-DJ9xgU1Z.d.ts → inbox.d-B2JXK0uI.d.ts} +1 -1
  22. package/dist/{inbox.d-CPcMMz-Y.d.cts → inbox.d-CwA1ogzV.d.cts} +1 -1
  23. package/dist/index.cjs +257 -256
  24. package/dist/index.js +364 -363
  25. package/dist/{models.d-BULqCO2R.d.ts → models.d-NAWqF1wC.d.ts} +4 -1
  26. package/dist/{models.d-BKmOfoqV.d.cts → models.d-wJ_Ze4p5.d.cts} +4 -1
  27. package/dist/notifications/inbox/index.cjs +28 -28
  28. package/dist/notifications/inbox/index.d.cts +5 -5
  29. package/dist/notifications/inbox/index.d.ts +5 -5
  30. package/dist/notifications/inbox/index.js +53 -53
  31. package/dist/notifications/index.cjs +1 -1
  32. package/dist/notifications/index.d.cts +3 -3
  33. package/dist/notifications/index.d.ts +3 -3
  34. package/dist/notifications/index.js +1 -1
  35. package/dist/{parse.d-Cj3fURer.d.ts → parse.d-QjB2LJCd.d.ts} +19 -10
  36. package/dist/{parse.d-cH7ZmMeo.d.cts → parse.d-_Ttu2h5g.d.cts} +19 -10
  37. package/dist/records/depth/index.cjs +80 -80
  38. package/dist/records/depth/index.js +115 -115
  39. package/dist/records/index.cjs +653 -653
  40. package/dist/records/index.js +1074 -1074
  41. package/dist/{route.d-DSYEd2MR.d.ts → route.d-DtuKY5dM.d.ts} +1 -1
  42. package/dist/{route.d-DCzQh4ix.d.cts → route.d-Nt-r-7IO.d.cts} +1 -1
  43. package/dist/server/events/index.cjs +1 -1
  44. package/dist/server/events/index.js +1 -1
  45. package/dist/server/index.cjs +1 -1
  46. package/dist/server/index.js +1 -1
  47. package/dist/shop/index.cjs +188 -188
  48. package/dist/shop/index.js +386 -386
  49. package/dist/shop/orders-v2/index.cjs +72 -72
  50. package/dist/shop/orders-v2/index.js +126 -126
  51. package/dist/tabs/index.cjs +114 -111
  52. package/dist/tabs/index.d.cts +19 -6
  53. package/dist/tabs/index.d.ts +19 -6
  54. package/dist/tabs/index.js +191 -188
  55. package/dist/televet/booking/index.cjs +214 -212
  56. package/dist/televet/booking/index.d.cts +2 -2
  57. package/dist/televet/booking/index.d.ts +2 -2
  58. package/dist/televet/booking/index.js +344 -342
  59. package/dist/televet/call/index.cjs +53 -53
  60. package/dist/televet/call/index.js +67 -67
  61. package/dist/{useInboxUnread.d-CXiaR3BZ.d.ts → useInboxUnread.d-0DrQPn7J.d.ts} +1 -1
  62. package/dist/{useInboxUnread.d-DERpMelw.d.cts → useInboxUnread.d-CRcOTkmu.d.cts} +1 -1
  63. package/dist/web/health-plan/index.cjs +1 -1
  64. package/dist/web/health-plan/index.js +1 -1
  65. package/dist/web/inbox/index.cjs +1 -1
  66. package/dist/web/inbox/index.d.cts +6 -6
  67. package/dist/web/inbox/index.d.ts +6 -6
  68. package/dist/web/inbox/index.js +1 -1
  69. package/dist/web/index.cjs +184 -184
  70. package/dist/web/index.js +181 -181
  71. package/dist/web/notifications/index.cjs +1 -1
  72. package/dist/web/notifications/index.d.cts +2 -2
  73. package/dist/web/notifications/index.d.ts +2 -2
  74. package/dist/web/notifications/index.js +1 -1
  75. package/dist/web/records-sheet/index.cjs +1 -1
  76. package/dist/web/records-sheet/index.js +1 -1
  77. package/dist/web/shop/index.cjs +1 -1
  78. package/dist/web/shop/index.js +2 -2
  79. package/dist/web/televet/booking/index.cjs +7 -8
  80. package/dist/web/televet/booking/index.d.cts +2 -2
  81. package/dist/web/televet/booking/index.d.ts +2 -2
  82. package/dist/web/televet/booking/index.js +7 -8
  83. package/dist/web/televet/call/index.cjs +1 -1
  84. package/dist/web/televet/call/index.js +1 -1
  85. package/dist/web/ui/index.cjs +1 -1
  86. package/dist/web/ui/index.js +33 -33
  87. package/package.json +1 -1
@@ -1,127 +1,127 @@
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
- import{createContext,createElement as e,useState as t,useEffect as n,useRef as o,useCallback as r,useMemo as i,useContext as l}from"react";import{AccessibilityInfo as a,View as s,ScrollView as d,RefreshControl as u,AppState as f,Text as c,Animated as p,Pressable as h,Image as g,Platform as y,Easing as m,PanResponder as b,Modal as S}from"react-native";import{jsx as k,jsxs as v,Fragment as w}from"react/jsx-runtime";var A=class _EverfurConfigError extends Error{constructor(e,t){super(t),this.name="EverfurConfigError",this.kind=e,Object.setPrototypeOf(this,_EverfurConfigError.prototype)}};var T=createContext(null);function OrdersV2SeamProvider({seam:t,children:n}){return e(T.Provider,{value:t},n)}function W(){let e=l(T);if(!e)throw new A("not-initialized","Orders v2 renders inside EverfurShop");return e}function C(){return W().useShop()}function I(){return W().useShopShared()}function R(e){return W().useCart(e)}function z(){return W().usePrescriptions()}function x(){return W().usePlans()}function H(e,t){return W().useShopRead(e,t)}function G(e){return W().useShopAction(e)}function V(){let e=W();return{add:e.addToCart,remove:e.removeFromCart,setQuantity:e.setCartQuantity,max:e.cartMaxQuantity}}function U(e){return`${e.offerId}|${e.petId??""}|${e.rxId??""}`}function O(e){let t=e<0?"-":"",n=Math.abs(Math.round(e));return`${t}$${Math.floor(n/100).toLocaleString("en-US")}.${String(n%100).padStart(2,"0")}`}var L=["Sun","Mon","Tue","Wed","Thu","Fri","Sat"],B=["Jan","Feb","Mar","Apr","May","Jun","Jul","Aug","Sep","Oct","Nov","Dec"],N=864e5;function q(e){if(!e)return null;let t=/^(\d{4})-(\d{2})-(\d{2})/.exec(e);if(!t)return null;let n=Date.UTC(Number(t[1]),Number(t[2])-1,Number(t[3]));return Number.isNaN(n)?null:Math.round(n/N)}function P(e){return new Date(e*N).toISOString().slice(0,10)}function M(e=/* @__PURE__ */new Date){let t=e=>String(e).padStart(2,"0");return`${e.getFullYear()}-${t(e.getMonth()+1)}-${t(e.getDate())}`}function K(e,t){return P((q(e)??0)+t)}function D(e){let t=/^(\d{4})-(\d{2})-(\d{2})/.exec(e);if(!t)return e;let n=new Date(Date.UTC(Number(t[1]),Number(t[2])-1-3,1)),o=new Date(Date.UTC(n.getUTCFullYear(),n.getUTCMonth()+1,0)).getUTCDate();return n.setUTCDate(Math.min(Number(t[3]),o)),n.toISOString().slice(0,10)}function F(e){let t=q(e);if(t===null)return null;let n=new Date(t*N);return{iso:P(t),weekday:L[n.getUTCDay()],date:n.getUTCDate(),month:B[n.getUTCMonth()]}}function J(e){let t=F(e);return t?`${t.weekday}, ${t.month} ${t.date}`:null}function E(e){let t=F(e);return t?`${t.month} ${t.date}`:null}function Z(e){if(!e)return null;let t=/^(\d{4}-\d{2}-\d{2})/.exec(e);return t?t[1]:null}function Y(e){return e%100===0?`$${(e/100).toLocaleString("en-US")}`:O(e)}var Q=/* @__PURE__ */new Set(["delivered","cancelled","rejected"]);function X(e){return!Q.has(e.status)&&e.placedAt!==null}function j(e){return e.fulfiller==="pharmacy"}function $(e){let t=null;for(let n of e)n.supply&&(!t||(q(n.supply.runsOutOn)??1/0)<(q(t.supply.runsOutOn)??1/0))&&(t=n);return t}var _=14;function ee(e,t){let n=new Set((e.items??[]).map(e=>e.offerId));return t.find(e=>e.offerId!==null&&n.has(e.offerId))??null}function te(e,t,n){let o=e.items??[],r=j(e)?ee(e,t):null,i=o[0]??null,l=e.itemCount??o.reduce((e,t)=>e+t.quantity,0),a=o.length,s,d;if(j(e)){let e=r?.drug||i?.title||null;s=e?n.rxArrives(e):n.boxArrives,d=r?.packCount&&r.supply?n.units(r.packCount,r.supply.unitLabel):i?.title??null}else s=n.boxArrives,d=a>1?n.items(l||a):i?.title??null;let u=null;return e.steps&&e.steps.length>0&&(u=e.steps.map(t=>({done:t.doneAt!==null&&t.key!==e.currentStep,now:t.key===e.currentStep}))),{kind:"package",key:`pkg:${e.orderId}`,orderId:e.orderId,day:F(e.arrivesBy),title:s,what:d,steps:u,status:ne(e,n),imageUrl:i?.imageUrl??null,count:a>1?a:null,label:[s,d].filter(Boolean).join(", ")}}function ne(e,t){switch(e.statusLineKey){case"ships_tomorrow":return{text:t.shipsTomorrow,tone:"go"};case"needs_vet_ok":return e.prescriberName?{text:t.needsVetOk(e.prescriberName),tone:"wait"}:null;default:return null}}function oe({today:e,prescriptions:t,orders:n,petName:o,copy:r}){let i=n.filter(X),l=[],a=$(t),s=a?o(a.petId):null,d=F(e);a&&a.supply&&s&&a.drug&&a.supply.unitsLeft>0&&l.push({kind:"today",key:"today",day:d,title:r.hasLeft(s,a.supply.unitsLeft,a.drug),line:r.enoughUntil(J(a.supply.runsOutOn))});let u=[...i.map(e=>te(e,t,r)).sort((e,t)=>(q(e.day?.iso)??1/0)-(q(t.day?.iso)??1/0))];if(a&&a.supply&&a.drug){let t=q(e),n=q(a.supply.runsOutOn)<t?e:a.supply.runsOutOn,o=q(n);if(o<=t+_){let e=i.filter(e=>ee(e,[a])!==null),t=e.find(e=>{let t=q(e.arrivesBy);return t!==null&&t<=o}),l=F(n);if(t)u.push({kind:"runout",key:"runout",day:l,out:false,title:r.wontRunOut,line:r.oldBottleEnds(J(t.arrivesBy)),refill:null});else{let t=e.length===0&&a.status==="ready"&&a.offerId!==null,n=e.length===0?J(a.supply.refillArrivesOn??null):null;u.push({kind:"runout",key:"runout",day:l,out:true,title:r.runsOut(a.drug),line:n?r.orderToday(n):null,refill:t?a:null})}u.sort((e,t)=>(q(e.day?.iso)??1/0)-(q(t.day?.iso)??1/0))}}return l.push(...u),{headline:r.onTheWay(i.length),rows:l}}var re=12;function ie(e){return e.filter(e=>e.state==="active"||e.state==="paused")}function le(e,t,n,o){let r=t&&e%30===0?e/30:null;return n?o.amountEvery(n,r?o.everyMonthsAfter(r):o.everyDays(e)):r?o.everyMonths(r):o.everyDaysAlone(e)}function ae(e,t){return!e||(t?.supply?t.supply.dailyUnits<1:false)}function se(e,t){let n=e.lines[0];if(!n)return null;let o=t.get(n.offerId);if(o)return o;let r=e.changeOptions?.find(e=>e.offerId===n.offerId);return r?{offerId:r.offerId,sku:"",title:r.title,fulfillmentType:"physical",requiresRx:r.unitLabel!==null,compounded:false,packQuantity:r.packQuantity,packUnit:r.packUnit,price:null,imageUrl:null}:null}function de(e,{offers:t,prescriptions:n,copy:o}){let r=e.lines[0],i=se(e,t);if(!i)return null;let l=e.chargedWhenFilled??i.requiresRx,a=new Set((e.changeOptions??[]).map(e=>e.offerId)),s=n.find(e=>e.offerId===i.offerId)??(l?n.find(e=>e.offerId!==null&&a.has(e.offerId))??null:null),d=i.packQuantity?Number(i.packQuantity):null,u=l&&s?.supply&&d&&r?o.units(d*r.quantity,s.supply.unitLabel):null,f=ae(l,s),c=le(e.cadenceDays,f,u,o),p=e.priceCentsPerCycle!=null?O(e.priceCentsPerCycle):null,h=e.state==="paused",g=e.prescriberName??null,y=e.refillsLeft??null,m=l&&g?{line:o.vetOks(g),small:y!==null?o.leftOnRx(y):null,pips:y!==null?Math.min(y,re):0}:null,b=!l&&e.autoDiscountPct?o.offOnAuto(e.autoDiscountPct):null,S=J(e.skippedCycleOn);return{planId:e.planId,offerId:i.offerId,name:i.title,imageUrl:i.imageUrl??null,rx:l,say:c,meta:o.planMeta(c,p,l),paused:h,next:F(e.nextShipOn??null),cadenceDays:e.cadenceDays,byMonth:f,vet:m,discount:b,skipped:!h&&S?o.skipped(S):null,resumeLabel:o.resume(J(e.nextShipOn??null)),prescriber:g,refillsLeft:y,options:e.changeOptions&&e.changeOptions.length>0?e.changeOptions:null}}function ue(e){return ie(e.plans).map(t=>de(t,e)).filter(e=>e!==null).sort((e,t)=>(q(e.next?.iso)??1/0)-(q(t.next?.iso)??1/0))}function fe(e,t){let n=e.filter(e=>!e.paused).length;return n>0?t.onAuto(n):t.nothingOnAuto}var ce=[14,21,30,45,60,90];function pe(e,t,n){let o=e.packQuantity?Number(e.packQuantity):null;return e.unitLabel&&o?n.units(o*e.quantity,e.unitLabel):t&&e.size?e.size:null}function he(e,t){let n=e.options;if(!n){let n=ce.map(n=>({key:String(n),days:n,offerId:null,label:le(n,e.byMonth,null,t),price:null}));return{choices:n,picked:n.some(t=>t.days===e.cadenceDays)?String(e.cadenceDays):null}}let o=n.length>1,r=n.flatMap(n=>n.cadenceDays.map(r=>({key:`${n.offerId}:${r}`,days:r,offerId:n.offerId,label:le(r,e.byMonth,pe(n,o,t),t),price:O(n.priceCentsPerCycle)}))),i=n.find(e=>e.current),l=i?`${i.offerId}:${e.cadenceDays}`:null;return{choices:r,picked:r.some(e=>e.key===l)?l:null}}function ge(e,t){return t.offerId&&t.offerId!==e.offerId?{cadenceDays:t.days,offerId:t.offerId}:{cadenceDays:t.days}}function ye(e,t,n){let o=t.next?J(t.next.iso):null,r=n.sheetMeta(t.say,o);if(e==="skip"){let i=t.next?K(t.next.iso,t.cadenceDays):null;return{mode:e,title:o?n.skipTitle(o):n.sheetTitle,itemMeta:r,say:i?{text:n.skipSay(J(i)),warn:false}:null,choices:[],picked:null,go:i?n.skipGo(E(i)):null}}if(e==="change")return{mode:e,title:n.changeTitle,itemMeta:r,say:t.rx&&t.prescriber?{text:n.changeRxSay(t.prescriber),warn:false}:null,...he(t,n),go:n.save};let i=t.rx&&t.prescriber&&t.refillsLeft!==null;return{mode:e,title:n.pauseTitle,itemMeta:r,say:i?{text:n.pauseRxSay(t.prescriber,t.refillsLeft),warn:true}:{text:n.pauseSay,warn:false},choices:[],picked:null,go:n.pauseGo}}function me(e,t,n,o){if(e==="pause")return o.saidPaused;let r=J(n?.nextShipOn??null)??(t.next?J(t.next.iso):null)??"";return e==="skip"?o.saidSkipped(t.name,r):o.saidSaved(t.name,r)}function be(e,t){return t.find(t=>t.offerId===e&&t.status==="ready")??null}function Se(e,t){return e.map(e=>{let n=e.isRx?null:{offerId:e.offerId,title:e.title,unitPrice:e.priceCents,requiresRx:false,quantity:1,...e.imageUrl?{imageUrl:e.imageUrl}:{}},o=E(e.lastOrderedOn);return{offerId:e.offerId,title:e.title,price:e.priceCents!=null?O(e.priceCents):null,imageUrl:e.imageUrl,meta:e.likelyOut?t.likelyOut:o?t.ordered(o):null,due:e.likelyOut,add:n,cartKey:n?U(n):null}})}function ke(e,t){let n=q(t)??-1/0;return e.filter(e=>Q.has(e.status)&&(q(Z(e.placedAt))??-1/0)>=n).sort((e,t)=>(t.placedAt??"").localeCompare(e.placedAt??""))}function ve(e,t,n,o){let r=e.items??[],i=e.status==="delivered",l=i?Z(e.steps?.find(e=>e.key==="delivered")?.doneAt):null,a=e.itemCount??r.reduce((e,t)=>e+t.quantity,0),s=[i?o.delivered:t(e.status),e.fulfiller==="everfur_box"?o.everfurBox:null,a>0?o.itemCount(a):null].filter(Boolean).join(" · "),d=r.filter(e=>!n.some(t=>t.offerId===e.offerId)||be(e.offerId,n)!==null);return{orderId:e.orderId,day:J(l??Z(e.placedAt)),meta:s,total:O(e.total),shots:r.map(e=>({offerId:e.offerId,title:e.title,imageUrl:e.imageUrl??null})),addCount:d.length,offerIds:d.map(e=>e.offerId)}}function we(e,t){return e.length>0&&e.every(e=>t.some(t=>t.offerId===e))}function Ae(e,t,n,o=null){let r=e.reduce((e,t)=>e+(t.rxId?1:t.quantity),0);if(r===0)return null;let i=0,l=0,a=false,s=false;for(let t of e){let e=t.unitPrice===null?null:t.unitPrice*t.quantity;t.requiresRx?(a=true,l=l===null||e===null?null:l+e):(s=true,i=i===null||e===null?null:i+e)}let d=e.slice(-3).map(e=>e.imageUrl??null),u=n.itemCount(r);if(!a){let e=t===null||i===null?u:i>=t?n.shipsFree(u):n.freeOver(u,Y(t));return{count:r,thumbs:d,total:i===null?null:O(i),sub:e}}let f=o&&l!==null?Math.min(o,l):0,c=l===null?null:l-f;return s?{count:r,thumbs:d,total:i===null?null:O(i),sub:c===null?u:n.todayPlusRx(O(c))}:{count:r,thumbs:d,total:c===null?null:O(c),sub:n.whenFilled(f>0?Y(f):null)}}async function Te(e,t){if(!t.offerId)return null;let n=await e.offer(t.offerId);return n.ok?{offerId:t.offerId,title:n.value.title,unitPrice:n.value.price,requiresRx:true,quantity:t.packCount??1,petId:t.petId,rxId:t.rxId,...n.value.imageUrl?{imageUrl:n.value.imageUrl}:{}}:null}async function We(e,t,n){let[o,r]=await Promise.all([e.order(t.orderId),e.prescriptions()]);if(!o.ok)return null;let i=r.ok?r.value:[],l=[];for(let e of o.value.lines){if(!t.offerIds.includes(e.offerId))continue;let o=e.requiresRx?be(e.offerId,i):null;if(e.requiresRx&&!o)continue;let r=t.shots.find(t=>t.offerId===e.offerId),a={offerId:e.offerId,title:e.title,unitPrice:e.unitPrice,requiresRx:e.requiresRx,quantity:o?o.packCount??1:1,...r?.imageUrl?{imageUrl:r.imageUrl}:{},...o?{petId:o.petId,rxId:o.rxId}:e.petId?{petId:e.petId}:{}};n.some(e=>e.key===U(a))||l.push(a)}return l}function Ce(e){/* @__PURE__ */
3
- return Object.freeze({ok:true,value:e})}function Ie(e,t){return e.phase==="unavailable"?{...e,phase:"ready",value:t}:e}function Re(e){let{client:n,pets:l,petName:a,copy:shopCopy,v3:s}=C(),{config:d}=I(),[u]=t(()=>M()),f=D(u),c=Ie(z(),[]),p=H(`orders-v2:${f}`,()=>n.orders({since:f,limit:50})),h=Ie(x(),{plans:[],nextCursor:null}),g=H("buy-again",()=>n.buyAgain()),[y,m]=t(/* @__PURE__ */new Map),b=R(n),S=i(()=>(h.value?.plans??[]).map(e=>y.get(e.planId)??e),[h.value,y]),k=i(()=>[...new Set(ie(S).flatMap(e=>e.lines.map(e=>e.offerId)))].sort(),[S]),v=H(`orders-v2-offers:${k.join(",")}`,async()=>{let e=await Promise.all(k.map(e=>n.offer(e))),t=/* @__PURE__ */new Map;return e.forEach(e=>{e.ok&&t.set(e.value.offerId,e.value)}),Ce(t)}),w=o(null);v.phase==="ready"&&v.value&&(w.current=v.value);let A=v.value??w.current,T=[c,p,h],W=T.some(e=>e.phase==="failed"||e.phase==="unavailable"),G=!W&&(T.some(e=>e.phase==="loading")||k.length>0&&v.phase==="loading"&&w.current===null),V=W?"failed":G?"loading":"ready",U=i(()=>{if(V!=="ready")return null;let t=c.value??[],n=p.value?.orders??[],o=l.length===1?l[0].name:null,r=ue({plans:S,offers:A??/* @__PURE__ */new Map,prescriptions:t,copy:e}),i=g.phase==="ready"&&g.value&&g.value.length>0?Se(g.value,e):null,d=ke(n,f).map(n=>ve(n,e=>shopCopy.orderStatus[e]??s.orderSteps[0]??e,t,e));return{title:o?e.title(o):shopCopy.ordersTitle,autoLine:fe(r,e),hero:oe({today:u,prescriptions:t,orders:n,petName:a,copy:e}),refills:r,again:i,past:d,moreLabel:o?e.everythingElse(o):shopCopy.tabShop}},[V,c.value,p.value,S,A,g.phase,g.value,l,a,e,shopCopy,s,u,f]),O=i(()=>Ae(b,d.freeShippingThresholdCents??null,e,d.firstRxDiscountCents??null),[b,d.freeShippingThresholdCents,d.firstRxDiscountCents,e]),L=r(()=>{for(let e of[c,p,h,g])e.phase!=="ready"&&e.refresh()},[c,p,h,g]),B=r(async()=>{await Promise.all([c.reread(),p.reread(),h.reread(),g.reread()])},[c,p,h,g]),N=r(e=>{m(t=>new Map(t).set(e.planId,e)),h.reread().then(()=>m(/* @__PURE__ */new Map))},[h]),q=r(e=>S.find(t=>t.planId===e)??null,[S]);return{phase:V,view:U,bar:O,plan:q,retry:L,reread:B,saved:N}}function ze(){let{client:e}=C();return G((t,n)=>{let o=t.key(`plan-${n.mode}`);if(n.mode==="change"){let t=n.cadenceDays??30;return e.updatePlan(n.planId,n.offerId?{idempotencyKey:o,cadenceDays:t,offerId:n.offerId}:{idempotencyKey:o,cadenceDays:t})}return e.planAction(n.planId,{idempotencyKey:o,operation:n.mode})})}function xe(e){let t=o(true);return n(()=>{let e=true,n=a.isReduceMotionEnabled?.();n&&typeof n.then=="function"&&n.then(n=>{e&&(t.current=n)});let o=a.addEventListener?.("reduceMotionChanged",e=>{t.current=e});return()=>{e=false,o?.remove?.()}},[e]),i(()=>()=>t.current,[e])}function He(e,t){return e?typeof e=="string"?{fontFamily:e,fontWeight:t}:{fontFamily:t==="700"?e.bold??e.regular:t==="500"?e.medium??e.regular:e.regular}:{fontWeight:t}}function Press({onPress:t,disabled:n,label:o,style:r,children:i,role:l="button",selected:a,hitSlop:s}){return e(h,{...s?{hitSlop:s}:{},onPress:n?void 0:t,disabled:n===true,accessibilityRole:l,...o?{accessibilityLabel:o}:{},accessibilityState:{disabled:n===true,...a!==void 0?{selected:a,checked:a}:{}},style:r},i)}var Ge=e=>{let t=f.currentState==="background",n=f.addEventListener("change",n=>{n==="background"?t=true:n==="active"&&t&&(t=false,e())});return()=>n.remove()};var Ve={body:{paddingTop:12,paddingRight:16,paddingLeft:16},subtabs:{backgroundColor:"#ffffff"},subtab:{minHeight:44,rowGap:6,columnGap:6},subtabCurrent:{minHeight:44,rowGap:6,columnGap:6},head:{rowGap:2,columnGap:2},headTitle:{},headLine:{marginTop:2},way:{marginTop:24},wayTitle:{},tl:{marginTop:16,rowGap:12,columnGap:12},tlRow:{rowGap:12,columnGap:12},date:{paddingTop:8,paddingBottom:8,borderRadius:14,rowGap:3,columnGap:3,width:48,height:68},dateSmall:{},dateBig:{},dateToday:{paddingTop:8,paddingBottom:8,borderRadius:14,backgroundColor:"#000000",rowGap:3,columnGap:3,width:48,height:68},dateTodaySmall:{},dateTodayBig:{},dateOutSmall:{},dateOutBig:{},say:{paddingTop:4,paddingBottom:4},sayTitle:{rowGap:6,columnGap:6},sayLine:{marginTop:2},sayOutTitle:{rowGap:6,columnGap:6},run:{rowGap:12,columnGap:12},pkg:{paddingTop:12,paddingRight:12,paddingBottom:12,paddingLeft:16,borderRadius:20,backgroundColor:"#f3f3f3",rowGap:12,columnGap:12},pkgWhen:{},pkgWhat:{marginTop:2},pkgNow:{marginTop:8,rowGap:6,columnGap:6},pkgDot:{borderRadius:4,backgroundColor:"#07c168",width:8,height:8},steps:{marginTop:8,rowGap:3,columnGap:3},step:{borderRadius:2,backgroundColor:"#e4e4e4",height:4},stepDone:{borderRadius:2,backgroundColor:"#000000",height:4},tile:{paddingTop:6,paddingRight:6,paddingBottom:6,paddingLeft:6,borderRadius:14,backgroundColor:"#ffffff",width:56,height:56},tileCount:{paddingRight:5,paddingLeft:5,borderRadius:10,backgroundColor:"#000000",position:"absolute",width:20,height:20,top:-5,right:-5},sec:{marginTop:32},secHead:{marginBottom:12,rowGap:12,columnGap:12},secTitle:{},secSub:{},refs:{rowGap:12,columnGap:12},ref:{paddingTop:16,paddingRight:16,paddingBottom:16,paddingLeft:16,borderRadius:20,backgroundColor:"#f3f3f3",columnGap:12},refName:{rowGap:4,columnGap:6},refNameLink:{},rx:{paddingRight:7,paddingLeft:7,borderRadius:999,backgroundColor:"#ffc3bc",height:20},refMeta:{marginTop:2},when:{},whenSmall:{},whenBig:{marginTop:4,marginBottom:2},whenPausedBig:{marginTop:4,marginBottom:2},vet:{marginTop:12,rowGap:8,columnGap:8},vetIcon:{width:18,height:18},vetLeaf:{width:18,height:18},vetSmall:{},pips:{rowGap:3,columnGap:3},pip:{borderRadius:3,backgroundColor:"#ca4463",width:6,height:6},note:{marginTop:8},noteButton:{},acts:{marginTop:12,rowGap:8,columnGap:8},btn:{paddingRight:12,paddingLeft:12,borderRadius:999,backgroundColor:"#ffffff",minHeight:40,rowGap:6,columnGap:6},btnIcon:{width:16,height:16},btnGo:{paddingRight:12,paddingLeft:12,borderRadius:999,backgroundColor:"#07c168",minHeight:40,rowGap:6,columnGap:6},btnInk:{paddingRight:12,paddingLeft:12,borderRadius:999,backgroundColor:"#000000",minHeight:40,rowGap:6,columnGap:6},shelf:{paddingRight:16,marginRight:-16,paddingBottom:4,paddingLeft:16,marginLeft:-16,rowGap:12,columnGap:12},item:{rowGap:2,columnGap:2,width:128},itemImg:{marginBottom:8,borderRadius:20,backgroundColor:"#f3f3f3",aspectRatio:1},itemPhoto:{paddingTop:12,paddingRight:12,paddingBottom:16,paddingLeft:12},itemPrice:{},itemName:{},itemMeta:{},itemMetaDue:{},more:{paddingTop:14,paddingRight:14,paddingBottom:14,paddingLeft:14,borderRadius:20,backgroundColor:"#ffffff",aspectRatio:1,width:128},moreIcon:{width:24,height:24},moreLabel:{},stepper:{borderRadius:18,backgroundColor:"#ffffff",position:"absolute",width:104,height:36,right:8,bottom:8},stepperButton:{borderRadius:18,width:36,height:36},stepperIcon:{width:18,height:18},stepperPlusOut:{borderRadius:18,width:36,height:36},past:{rowGap:24,columnGap:24},order:{},orderTop:{rowGap:12,columnGap:12},orderMeta:{},orderDay:{},orderTotal:{},shots:{marginTop:8,rowGap:8,columnGap:8},shot:{paddingTop:8,paddingRight:8,paddingBottom:8,paddingLeft:8,borderRadius:14,backgroundColor:"#f3f3f3",width:64,height:64},shotPhoto:{width:48,height:48},orderActs:{marginTop:12,rowGap:8,columnGap:8},orderBtn:{paddingRight:12,paddingLeft:12,borderRadius:999,backgroundColor:"#f3f3f3",minHeight:40,rowGap:6,columnGap:6},help:{paddingTop:16,marginTop:32,paddingRight:24,paddingBottom:16,paddingLeft:24,borderWidth:1,borderColor:"#e4e4e4",borderRadius:20,backgroundColor:"#ffffff",rowGap:12,columnGap:12},helpIcon:{width:22,height:22},helpChevron:{width:20,height:20},helpLabel:{},legal:{marginTop:32},legalText:{},backdrop:{backgroundColor:"rgba(0, 0, 0, 0.32)"},sheet:{paddingBottom:34,borderTopLeftRadius:28,borderTopRightRadius:28,backgroundColor:"#ffffff"},sheetGrab:{height:20},sheetGrabBar:{borderRadius:3,backgroundColor:"#c9c9c9",width:36,height:5},sheetHead:{paddingTop:4,paddingRight:16,paddingBottom:12,paddingLeft:16,rowGap:12,columnGap:12},sheetTitle:{},sheetClose:{paddingTop:1,paddingRight:6,paddingBottom:1,paddingLeft:6,borderRadius:18,backgroundColor:"#e6ece8",width:36,height:36},sheetCloseIcon:{width:20,height:20},sheetBody:{paddingRight:16,paddingBottom:24,paddingLeft:16,rowGap:12,columnGap:12},sheetItem:{rowGap:12,columnGap:12},sheetItemText:{},sheetItemName:{},sheetSayWarn:{marginTop:16,rowGap:12,columnGap:12},sheetSayIcon:{marginTop:2,width:20,height:20},sheetActs:{marginTop:24,paddingBottom:16,rowGap:8,columnGap:8},sheetGo:{paddingRight:12,paddingLeft:12,borderRadius:999,backgroundColor:"#000000",minHeight:50,rowGap:6,columnGap:6},sheetKeep:{paddingRight:12,paddingLeft:12,borderRadius:999,backgroundColor:"#f3f3f3",minHeight:50,rowGap:6,columnGap:6},sheetSay:{marginTop:16},choices:{marginTop:16,rowGap:8,columnGap:8},choice:{paddingTop:14,paddingRight:16,paddingBottom:14,paddingLeft:16,borderWidth:1,borderColor:"#e4e4e4",borderRadius:10,backgroundColor:"#ffffff",rowGap:12,columnGap:12},choiceOn:{paddingTop:14,paddingRight:16,paddingBottom:14,paddingLeft:16,borderWidth:1,borderColor:"#10462e",borderRadius:10,backgroundColor:"#ffffff",rowGap:12,columnGap:12},radioOff:{borderWidth:1,borderColor:"#819d90",borderRadius:10,backgroundColor:"#ffffff",width:20,height:20,marginRight:2},radioOn:{borderWidth:6,borderColor:"#10462e",borderRadius:10,backgroundColor:"#ffffff",width:20,height:20,marginRight:2},choiceTitle:{},choiceEnd:{},stepperIn:{borderRadius:18,backgroundColor:"#000000",position:"absolute",width:104,height:36,right:8,bottom:8},stepperCount:{},bar:{paddingTop:8,paddingRight:8,paddingBottom:8,paddingLeft:10,borderRadius:22,backgroundColor:"#ffffff",minHeight:60,rowGap:10,columnGap:10},thumbs:{paddingRight:4},thumb:{paddingTop:3,paddingRight:3,paddingBottom:3,paddingLeft:3,borderRadius:12,backgroundColor:"#f3f3f3",width:40,height:40},thumbCount:{paddingRight:5,paddingLeft:5,borderRadius:10,backgroundColor:"#000000",position:"absolute",width:20,height:20,top:-4,right:-4},barSum:{rowGap:2,columnGap:2},barTotal:{},barSub:{},barGo:{paddingRight:18,paddingLeft:18,borderRadius:999,backgroundColor:"#07c168",minHeight:44,rowGap:6,columnGap:6}},Ue={body:{color:"#000000",fontSize:17,fontWeight:"400",lineHeight:26.34375},subtabs:{color:"#000000",fontSize:17,fontWeight:"400",lineHeight:26.34375},subtab:{color:"#6b6b6b",fontSize:15,fontWeight:"500",lineHeight:23.25},subtabCurrent:{color:"#10462e",fontSize:15,fontWeight:"700",lineHeight:23.25},head:{color:"#000000",fontSize:17,fontWeight:"400",lineHeight:26.34375},headTitle:{color:"#000000",fontSize:26,fontWeight:"700",lineHeight:27.296875,letterSpacing:-.78},headLine:{color:"#6b6b6b",fontSize:14,fontWeight:"400",lineHeight:18.890625},way:{color:"#000000",fontSize:17,fontWeight:"400",lineHeight:26.34375},wayTitle:{color:"#000000",fontSize:24,fontWeight:"700",lineHeight:26.390625,letterSpacing:-.6},tl:{color:"#000000",fontSize:17,fontWeight:"400",lineHeight:26.34375},tlRow:{color:"#000000",fontSize:17,fontWeight:"400",lineHeight:26.34375},date:{color:"#000000",fontSize:17,fontWeight:"400",lineHeight:17,fontVariant:["tabular-nums"]},dateSmall:{color:"#6b6b6b",fontSize:12,fontWeight:"700",lineHeight:12,letterSpacing:.48,textTransform:"uppercase",fontVariant:["tabular-nums"]},dateBig:{color:"#000000",fontSize:22,fontWeight:"700",lineHeight:22,letterSpacing:-.66,fontVariant:["tabular-nums"]},dateToday:{color:"#000000",fontSize:17,fontWeight:"400",lineHeight:17,fontVariant:["tabular-nums"]},dateTodaySmall:{color:"#ffffff",fontSize:12,fontWeight:"700",lineHeight:12,letterSpacing:.48,textTransform:"uppercase",fontVariant:["tabular-nums"]},dateTodayBig:{color:"#ffffff",fontSize:22,fontWeight:"700",lineHeight:22,letterSpacing:-.66,fontVariant:["tabular-nums"]},dateOutSmall:{color:"#c03410",fontSize:12,fontWeight:"700",lineHeight:12,letterSpacing:.48,textTransform:"uppercase",fontVariant:["tabular-nums"]},dateOutBig:{color:"#c03410",fontSize:22,fontWeight:"700",lineHeight:22,letterSpacing:-.66,fontVariant:["tabular-nums"]},say:{color:"#000000",fontSize:17,fontWeight:"400",lineHeight:26.34375},sayTitle:{color:"#000000",fontSize:16,fontWeight:"700",lineHeight:20,letterSpacing:-.16},sayLine:{color:"#6b6b6b",fontSize:15,fontWeight:"400",lineHeight:20.25},sayOutTitle:{color:"#c03410",fontSize:16,fontWeight:"700",lineHeight:20,letterSpacing:-.16},run:{color:"#000000",fontSize:17,fontWeight:"400",lineHeight:26.34375},pkg:{color:"#000000",fontSize:17,fontWeight:"400",lineHeight:26.34375},pkgWhen:{color:"#000000",fontSize:16,fontWeight:"700",lineHeight:20,letterSpacing:-.16},pkgWhat:{color:"#6b6b6b",fontSize:14,fontWeight:"400",lineHeight:18.890625},pkgNow:{color:"#000000",fontSize:14,fontWeight:"500",lineHeight:18.1875},pkgDot:{color:"#000000",fontSize:14,fontWeight:"500",lineHeight:18.1875},steps:{color:"#000000",fontSize:17,fontWeight:"400",lineHeight:26.34375},step:{color:"#000000",fontSize:17,fontWeight:"400",lineHeight:26.34375},stepDone:{color:"#000000",fontSize:17,fontWeight:"400",lineHeight:26.34375},tile:{color:"#000000",fontSize:17,fontWeight:"400",lineHeight:26.34375},tileCount:{color:"#ffffff",fontSize:12,fontWeight:"700",lineHeight:12},sec:{color:"#000000",fontSize:17,fontWeight:"400",lineHeight:26.34375},secHead:{color:"#000000",fontSize:17,fontWeight:"400",lineHeight:26.34375},secTitle:{color:"#000000",fontSize:20,fontWeight:"700",lineHeight:23,letterSpacing:-.4},secSub:{color:"#6b6b6b",fontSize:13,fontWeight:"400",lineHeight:20.140625},refs:{color:"#000000",fontSize:17,fontWeight:"400",lineHeight:26.34375},ref:{color:"#000000",fontSize:17,fontWeight:"400",lineHeight:26.34375},refName:{color:"#000000",fontSize:16,fontWeight:"700",lineHeight:20,letterSpacing:-.16},refNameLink:{color:"#000000",fontSize:16,fontWeight:"700",lineHeight:20,letterSpacing:-.16},rx:{color:"#000000",fontSize:12,fontWeight:"700",lineHeight:12,letterSpacing:-.16},refMeta:{color:"#6b6b6b",fontSize:13,fontWeight:"400",lineHeight:17.546875},when:{color:"#000000",fontSize:17,fontWeight:"400",lineHeight:17,textAlign:"right"},whenSmall:{color:"#6b6b6b",fontSize:12,fontWeight:"700",lineHeight:12,letterSpacing:.48,textTransform:"uppercase",textAlign:"right"},whenBig:{color:"#000000",fontSize:24,fontWeight:"700",lineHeight:24,letterSpacing:-.84,textAlign:"right",fontVariant:["tabular-nums"]},whenPausedBig:{color:"#6b6b6b",fontSize:17,fontWeight:"700",lineHeight:17,letterSpacing:-.17,textAlign:"right",fontVariant:["tabular-nums"]},vet:{color:"#000000",fontSize:13,fontWeight:"400",lineHeight:17.546875},vetIcon:{color:"#ca4463",fontSize:13,fontWeight:"400",lineHeight:17.546875},vetLeaf:{color:"#16864a",fontSize:13,fontWeight:"400",lineHeight:17.546875},vetSmall:{color:"#6b6b6b",fontSize:12,fontWeight:"400",lineHeight:16.1875},pips:{color:"#000000",fontSize:13,fontWeight:"400",lineHeight:17.546875},pip:{color:"#000000",fontSize:13,fontWeight:"400",lineHeight:17.546875},note:{color:"#000000",fontSize:13,fontWeight:"500",lineHeight:17.546875},noteButton:{color:"#000000",fontSize:13,fontWeight:"700",lineHeight:17.546875,textDecorationLine:"underline",textAlign:"center"},acts:{color:"#000000",fontSize:17,fontWeight:"400",lineHeight:26.34375},btn:{color:"#000000",fontSize:14,fontWeight:"700",lineHeight:21.6875,textAlign:"center"},btnIcon:{color:"#ffffff",fontSize:14,fontWeight:"700",lineHeight:21.6875},btnGo:{color:"#000000",fontSize:14,fontWeight:"700",lineHeight:21.6875,textAlign:"center"},btnInk:{color:"#ffffff",fontSize:14,fontWeight:"700",lineHeight:21.6875},shelf:{color:"#000000",fontSize:17,fontWeight:"400",lineHeight:26.34375},item:{color:"#000000",fontSize:17,fontWeight:"400",lineHeight:26.34375},itemImg:{color:"#000000",fontSize:17,fontWeight:"400",lineHeight:26.34375},itemPhoto:{color:"#000000",fontSize:17,fontWeight:"400",lineHeight:26.34375},itemPrice:{color:"#000000",fontSize:16,fontWeight:"700",lineHeight:24.796875,letterSpacing:-.16,fontVariant:["tabular-nums"]},itemName:{color:"#000000",fontSize:14,fontWeight:"500",lineHeight:18.1875},itemMeta:{color:"#6b6b6b",fontSize:12,fontWeight:"400",lineHeight:16.1875},itemMetaDue:{color:"#b25e05",fontSize:12,fontWeight:"500",lineHeight:16.1875},more:{color:"#000000",fontSize:15,fontWeight:"700",lineHeight:18.75},moreIcon:{color:"#b6407f",fontSize:15,fontWeight:"700",lineHeight:18.75},moreLabel:{color:"#000000",fontSize:15,fontWeight:"700",lineHeight:18.75},stepper:{color:"#000000",fontSize:17,fontWeight:"400",lineHeight:26.34375},stepperButton:{color:"#000000",fontSize:13.333,fontWeight:"400",textAlign:"center"},stepperIcon:{color:"#000000",fontSize:13.333,fontWeight:"400",textAlign:"center"},stepperPlusOut:{color:"#000000",fontSize:13.333,fontWeight:"400",textAlign:"center"},past:{color:"#000000",fontSize:17,fontWeight:"400",lineHeight:26.34375},order:{color:"#000000",fontSize:17,fontWeight:"400",lineHeight:26.34375},orderTop:{color:"#000000",fontSize:17,fontWeight:"400",lineHeight:26.34375},orderMeta:{color:"#6b6b6b",fontSize:13,fontWeight:"400",lineHeight:17.546875},orderDay:{color:"#000000",fontSize:16,fontWeight:"700",lineHeight:20,letterSpacing:-.16},orderTotal:{color:"#000000",fontSize:16,fontWeight:"700",lineHeight:24.796875,fontVariant:["tabular-nums"]},shots:{color:"#000000",fontSize:17,fontWeight:"400",lineHeight:26.34375},shot:{color:"#000000",fontSize:17,fontWeight:"400",lineHeight:26.34375,textDecorationLine:"underline"},shotPhoto:{color:"#000000",fontSize:17,fontWeight:"400",lineHeight:26.34375},orderActs:{color:"#000000",fontSize:17,fontWeight:"400",lineHeight:26.34375},orderBtn:{color:"#000000",fontSize:14,fontWeight:"700",lineHeight:21.6875},help:{color:"#10462e",fontSize:15,fontWeight:"700",lineHeight:20.25},helpIcon:{color:"#10462e",fontSize:15,fontWeight:"700",lineHeight:20.25},helpChevron:{color:"#819d90",fontSize:15,fontWeight:"700",lineHeight:20.25},helpLabel:{color:"#10462e",fontSize:15,fontWeight:"700",lineHeight:20.25},legal:{color:"#6b6b6b",fontSize:13,fontWeight:"400",lineHeight:20.796875,textAlign:"center"},legalText:{color:"#6b6b6b",fontSize:13,fontWeight:"400",lineHeight:20.796875,textAlign:"center"},backdrop:{color:"#000000",fontSize:17,fontWeight:"400",lineHeight:26.34375},sheet:{color:"#000000",fontSize:17,fontWeight:"400",lineHeight:26.34375},sheetGrab:{color:"#000000",fontSize:17,fontWeight:"400",lineHeight:26.34375},sheetGrabBar:{color:"#000000",fontSize:17,fontWeight:"400",lineHeight:26.34375},sheetHead:{color:"#000000",fontSize:17,fontWeight:"400",lineHeight:26.34375},sheetTitle:{color:"#10462e",fontSize:18,fontWeight:"700",lineHeight:22.5,letterSpacing:-.36},sheetClose:{color:"#10462e",fontSize:13.333,fontWeight:"400",textAlign:"center"},sheetCloseIcon:{color:"#10462e",fontSize:13.333,fontWeight:"400",textAlign:"center"},sheetBody:{color:"#000000",fontSize:17,fontWeight:"400",lineHeight:26.34375},sheetItem:{color:"#000000",fontSize:17,fontWeight:"400",lineHeight:26.34375},sheetItemText:{color:"#6b6b6b",fontSize:13,fontWeight:"400",lineHeight:17.546875},sheetItemName:{color:"#000000",fontSize:16,fontWeight:"700",lineHeight:21.59375},sheetSayWarn:{color:"#000000",fontSize:15,fontWeight:"400",lineHeight:21.75},sheetSayIcon:{color:"#b25e05",fontSize:15,fontWeight:"400",lineHeight:21.75},sheetActs:{color:"#000000",fontSize:17,fontWeight:"400",lineHeight:26.34375},sheetGo:{color:"#ffffff",fontSize:16,fontWeight:"700",lineHeight:24.796875,textAlign:"center"},sheetKeep:{color:"#000000",fontSize:16,fontWeight:"700",lineHeight:24.796875,textAlign:"center"},sheetSay:{color:"#000000",fontSize:15,fontWeight:"400",lineHeight:21.75},choices:{color:"#000000",fontSize:17,fontWeight:"400",lineHeight:26.34375},choice:{color:"#000000",fontSize:17,fontWeight:"400",lineHeight:26.34375},choiceOn:{color:"#000000",fontSize:17,fontWeight:"400",lineHeight:26.34375},radioOff:{color:"#000000",fontSize:13.333,fontWeight:"400"},radioOn:{color:"#000000",fontSize:13.333,fontWeight:"400"},choiceTitle:{color:"#10462e",fontSize:17,fontWeight:"700",lineHeight:22.09375},choiceEnd:{color:"#6b6b6b",fontSize:13,fontWeight:"400",lineHeight:20.140625},stepperIn:{color:"#ffffff",fontSize:17,fontWeight:"400",lineHeight:26.34375},stepperCount:{color:"#ffffff",fontSize:15,fontWeight:"700",lineHeight:23.25,textAlign:"center",fontVariant:["tabular-nums"]},bar:{color:"#000000",fontSize:17,fontWeight:"400",lineHeight:26.34375},thumbs:{color:"#000000",fontSize:17,fontWeight:"400",lineHeight:26.34375},thumb:{color:"#000000",fontSize:17,fontWeight:"400",lineHeight:26.34375},thumbCount:{color:"#ffffff",fontSize:12,fontWeight:"700",lineHeight:12,fontVariant:["tabular-nums"]},barSum:{color:"#000000",fontSize:17,fontWeight:"400",lineHeight:26.34375},barTotal:{color:"#000000",fontSize:17,fontWeight:"700",lineHeight:18.6875,letterSpacing:-.17,fontVariant:["tabular-nums"]},barSub:{color:"#6b6b6b",fontSize:12,fontWeight:"400",lineHeight:15},barGo:{color:"#000000",fontSize:15,fontWeight:"700",lineHeight:23.25}},Oe={body:{font:"sans"},subtabs:{font:"sans",lineBottom:{width:1,color:"#e4e4e4"}},subtab:{font:"sans"},subtabCurrent:{font:"sans",insetBottom:{width:3,color:"#07c168"}},head:{font:"sans"},headTitle:{font:"sans"},headLine:{font:"sans",wrap:"pretty"},way:{font:"sans"},wayTitle:{font:"sans",wrap:"pretty"},tl:{font:"sans"},tlRow:{font:"sans"},date:{font:"sans",wrap:"pretty"},dateSmall:{font:"mono",wrap:"pretty"},dateBig:{font:"sans",wrap:"pretty"},dateToday:{font:"sans",wrap:"pretty"},dateTodaySmall:{font:"mono",wrap:"pretty"},dateTodayBig:{font:"sans",wrap:"pretty"},dateOutSmall:{font:"mono",wrap:"pretty"},dateOutBig:{font:"sans",wrap:"pretty"},say:{font:"sans",wrap:"pretty"},sayTitle:{font:"sans",wrap:"pretty"},sayLine:{font:"sans",wrap:"pretty"},sayOutTitle:{font:"sans",wrap:"pretty"},run:{font:"sans"},pkg:{font:"sans"},pkgWhen:{font:"sans",wrap:"pretty"},pkgWhat:{font:"sans",wrap:"pretty"},pkgNow:{font:"sans",wrap:"pretty"},pkgDot:{font:"sans",wrap:"pretty"},steps:{font:"sans"},step:{font:"sans"},stepDone:{font:"sans"},tile:{font:"sans"},tileCount:{font:"sans"},sec:{font:"sans"},secHead:{font:"sans"},secTitle:{font:"sans",wrap:"pretty"},secSub:{font:"sans"},refs:{font:"sans"},ref:{font:"sans"},refName:{font:"sans",wrap:"pretty"},refNameLink:{font:"sans",wrap:"pretty"},rx:{font:"mono",wrap:"pretty"},refMeta:{font:"sans",wrap:"pretty"},when:{font:"sans",wrap:"pretty"},whenSmall:{font:"mono",wrap:"pretty"},whenBig:{font:"sans",wrap:"pretty"},whenPausedBig:{font:"sans",wrap:"pretty"},vet:{font:"sans",wrap:"pretty"},vetIcon:{font:"sans",wrap:"pretty"},vetLeaf:{font:"sans",wrap:"pretty"},vetSmall:{font:"sans",wrap:"pretty"},pips:{font:"sans",wrap:"pretty"},pip:{font:"sans",wrap:"pretty"},note:{font:"sans",wrap:"pretty"},noteButton:{font:"sans",underlineOffset:3,wrap:"pretty"},acts:{font:"sans"},btn:{font:"sans"},btnIcon:{font:"sans"},btnGo:{font:"sans"},btnInk:{font:"sans"},shelf:{font:"sans"},item:{font:"sans"},itemImg:{font:"sans"},itemPhoto:{font:"sans"},itemPrice:{font:"sans",wrap:"pretty"},itemName:{font:"sans",wrap:"balance"},itemMeta:{font:"sans",wrap:"pretty"},itemMetaDue:{font:"sans",wrap:"pretty"},more:{font:"sans",ring:{width:1.5,color:"#f3f3f3"}},moreIcon:{font:"sans"},moreLabel:{font:"sans"},stepper:{font:"sans"},stepperButton:{font:"sans"},stepperIcon:{font:"sans"},stepperPlusOut:{font:"sans"},past:{font:"sans"},order:{font:"sans"},orderTop:{font:"sans"},orderMeta:{font:"sans",wrap:"pretty"},orderDay:{font:"sans",wrap:"pretty"},orderTotal:{font:"sans"},shots:{font:"sans"},shot:{font:"sans"},shotPhoto:{font:"sans"},orderActs:{font:"sans"},orderBtn:{font:"sans"},help:{font:"sans"},helpIcon:{font:"sans"},helpChevron:{font:"sans"},helpLabel:{font:"sans"},legal:{font:"sans"},legalText:{font:"sans",wrap:"balance"},backdrop:{font:"sans"},sheet:{font:"sans"},sheetGrab:{font:"sans"},sheetGrabBar:{font:"sans"},sheetHead:{font:"sans"},sheetTitle:{font:"sans",wrap:"pretty"},sheetClose:{font:"sans"},sheetCloseIcon:{font:"sans"},sheetBody:{font:"sans"},sheetItem:{font:"sans"},sheetItemText:{font:"sans",wrap:"pretty"},sheetItemName:{font:"sans",wrap:"pretty"},sheetSayWarn:{font:"sans",wrap:"pretty"},sheetSayIcon:{font:"sans",wrap:"pretty"},sheetActs:{font:"sans"},sheetGo:{font:"sans"},sheetKeep:{font:"sans"},sheetSay:{font:"sans",wrap:"pretty"},choices:{font:"sans"},choice:{font:"sans"},choiceOn:{font:"sans"},radioOff:{font:"sans"},radioOn:{font:"sans"},choiceTitle:{font:"sans"},choiceEnd:{font:"sans"},stepperIn:{font:"sans"},stepperCount:{font:"sans"},bar:{font:"sans",drop:{x:0,y:10,blur:30,spread:0,color:"rgba(0, 0, 0, 0.16)"}},thumbs:{font:"sans"},thumb:{font:"sans"},thumbCount:{font:"sans"},barSum:{font:"sans",wrap:"pretty"},barTotal:{font:"sans",wrap:"pretty"},barSub:{font:"sans",wrap:"pretty"},barGo:{font:"sans"}},Le={chevron:{size:20,uri:"data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAADwAAAA8CAQAAACQ9RH5AAABfklEQVR4Ae3BPWoWQQAA0LeZz9gMeA1rywFzBsVSELzDbpEUgj9osVuJN8gF7Af1ChIsxRsIgm1iJMWw7cxsCsF9z2632+3+eUG9p14bfHMrglrPnLvviYMvbkFQ59hH99w4EWWbHal1rRjNNgvqXPnlkSK547NNglpfRUlxIso2COplUVIkUdYtaJFFSZFEWaegTRYlRRJlXYJWWZQUSZR1CNplUVIkUdYs6JFFSZFEWaOgTxYlRRJlTYJeWZQUSZQ1CPplUVIkUVYt2CKLkiKJskrBNtldDxXJDxeqBFt9EiXFAx/8UeHIdr9dKq5VOtjqrVOrFy5VOdhmNlotzlUabDEbrRaTaoN+s9FqMWkw6DUbrRaTJoM+s9FqMWk06DEbrRaTZoN2s9FqMekwaDUbrRaTLoM2s9FqMek0aDEbrRaTboN6s9FqMdngoNZzo9U7ZzY5UufYS6vFmY2O1LpWLCabBXWu/PTYjTdO3YKg1oXvDl55b7fb7Xb/ib+2W04he97hEgAAAABJRU5ErkJggg=="},minus:{size:18,uri:"data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAADYAAAA2CAQAAAAmTKJWAAAAVklEQVR4Ae3BsRFAQBBA0X+bXjlXlJhCiHWlFgUYuRWYY0T/PSRJkqQHCncqjaDfwcZOUshGZt6bWLgIsoEvDCTBj4Js5QsrSeFOpRH0O9jYkSRJkrqcfrkKCu2Ez5QAAAAASUVORK5CYII="},plus:{size:18,uri:"data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAADYAAAA2CAQAAAAmTKJWAAAA20lEQVR4Ae3BMU4CURiF0W8uhE7Yg2xg2IKtC5kaE2obOxOmomA1BheAsww7k2kMFIQQQ+N7CfkDuYW+cyiK4m+piFvQACtagkTUHS9MmfLMiCAR9ciIkwkPBImoT86+CRJGwkgYCSNhJIyEkTASRsJIGA3JGVMj8mrOZlTkHejoSVSk5iy53hMtv4hUwy00JISRSK25hTWJipwxNSKvpuXHnI68Ax09iSE5Pe9c9sGGEGEkjISRMBJGwkgYCSNhJIyEkTASUVv2nOzZEjQgaseOe7545Y2iKP63I9OgHat5t8MpAAAAAElFTkSuQmCC"},bag:{size:24,uri:"data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAEgAAABICAQAAAD/5HvMAAADGElEQVR4Ae3BT2jVdQAA8M/7vtceSR5sMV5FMSFIsmmJoHWqFkIpTbxsNewSHRQLoVrgoUseZKTYzLrULgoeOmSKohOkS8RE/Jca0kWSYGniSDDQNsPD8/vbn/f2e9t781f4+bjvvyZnKp/r1qw+rtpto6ryqtvhPXPUyxzLPeyQKvKq6bBNvS1zygUVBZW12qURdmlVUVDZXnM1wlx7VZRXyZdWaZSSFgdNqmByHdaJrlvkoplpdcZcZesN+N4k8ibT6oiiqNOgmRp2XpdopT2GTZA30QOOelL0lW3q4YKSpcqKXvaNUePkTfSFVaLT1hhVHwPeUFJW0uygcYLxOqwTXbfaLfVyy2rXRet1GCdvrFZHFEWdBtXTsPO6RCvtMSwhJ+kJp80zu65Z7JK7gqQB88y2eQ5LCJIWuBcWSAjuvZyEIGOCjCmoJKexbptUkDFBxgQZE2RMkDEF6ZX0WoEBPYZMraTXCgzoMSSlgvS263THWk26TG27T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I3XPWXJ9DZKhqduepUklWbdLaJRr3HBUlWbdDZIhr1mnuqU7MgyarVOutFo14zueUzSTALkqxaqbNWNOo1k0FRZUkwC5KsWqWzTjTqNZNBcanKkmAWJFm1QmeNaNRrJoOiqbIkmAVJVh3UOSwa9ZrJoLiqypJgFiRZdUDnkGjUayaD4nFVlgSzIMmqvTr7RaNeMxkU16myJJgFSVbt0dknGvWayaBYUmVJMAuSrFrUWRaNes1kUOxTZUkwC5KsWtBZ9q2o+c0bfnFIlSXBLEiy6lo7S971smbymrvWKM4VTXTbgp3DJoNireJccdDOkk/87NKvXldsUZwrLv3gcwtOLHvORx54zx+2e8EHeN/vjo6Ojo7+t/4BB1bK7cyUDzAAAAAASUVORK5CYII="},check:{size:16,uri:"data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAADAAAAAwCAQAAAD9CzEMAAABVUlEQVR4Ae3Bu20UQQAA0Lde13AF0AQSLZglQISklphxAUAdyDOSJXIyMlIaOG0CLTAShBTgI1jGd+fznu+XgPY9k8nkP9A4pdfeWXjrizut0wk+mpl55oOFv86cSpAMGivOnUZ0rXrv1p0zpxBcq6JPVjSOFyRVlK1pHCtIqii7p3GcIKmibEPjGEFSRdkDGocLkirKHtQ4VJBUUTaicZggqaJsVGvVhc+C377ZLkqqKNuitXTuqydmXip644KkirKtzqxaGNy4NCZIqih7RGvpVvHKoPPT3KYoqa5kj2qt+q7oDJ4reuuCpIqyHbTW9YrOoFP0loKkirKdtO7rFZ1Bp+gNgqSKsh21NvWKzqBT9AiSKsp21npIr+gMOsVTSRVle2iMeSPbFGV7aY2Z++XCuivZnlrj5orOUpTtrbVNr+gMouwAre16P7zApRuTyWTyz/oDUB1ZN9kNGUEAAAAASUVORK5CYII="},pill:{size:18,uri:"data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAADYAAAA2CAQAAAAmTKJWAAAEFUlEQVR4Ae3BXaibZwEA4Cffdzp2oVSs23Elk3oSD9vAriUXxqYH8Wf+MMSKFv9uBMGL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S9XJJ8ug0JBzyqv+acFgY1S6HJI+yLmGTpao2C0UDckiaW61PeN2kWvbbJwwqaippboeVMhUPq2eLqkyHEU21aabXsDDkXWHQHg/pcEDmN11KMtfY62cNJY0VjAvTnhNuNaxbt+1uF8qOCeOaSBrbqEd41F/CWqEkzNgmlKzXUNJIpyHhkFc1M+GwMKpdA0kjZV3CJs1VbRaKBjSQ1Ldan7DbpDz22ycMKqorqW+HlTIV/fLaoirTYURdST291gnPmZbXEWPCBmvUkdRWMC5MG9KKsmPCuDqS2jbqEQZUtGLGNqFkvZqSWjoNCYe8plUTDguj2tWQ1FLWJWzSuqrNQtGAGpKlVusTdpt0KvbbJwwqWiJZaoeVMhX9ajsofKu2LaoyHUYs0ea/eg0Lz3pPbd+72EX+8IZRx9Xymy4lmWvs9bNFChYr+FaPzLRLVZy6TlO6ZL50vUWSxTbqER5RcTpmbBNK1lskWajTkDBpl9M14bAwqt0CyUJlXcImp69qs1A0YIHkpNX6hF0OORP22ycMKvpXm5Ne0SNTcYc/NTZoj4ec64DGvvKAZM5KF3rLCUnotU4YNq2xWw3r1u1pd2nsiDFhgzVOSMKY8KOnNLNWKGmm7Fdh3AlJ5l5XCQOaOygc1MyMslByt3lJpl+Y9LrmPvCSo4562duaG/edUDZvhTk3u0Lok8ff7tOKrT6SudKNPiOZc4Pwoa8th499JlxtVjLnEuFzy+VrodusZM5Pwk2Wy1phyqxkzjfCzZ50gTOtaNS1wudmrTBnrymrZMrKltNXvjMrmXPcY/4v281LMnu87f/wivfMaxPe0eE6Bcunali/4+YVLHS5rW60ynnOrN/94FMvmnLWWcvvH7Y60heQz4TcAAAAAElFTkSuQmCC"}};function Be(){return W()}function Ne(){return Be().useKit()}function qe(){return Be().useShopNativeNav()}function Pe(){return Be().useShopV3Host()}function CareTabs(t){return e(Be().CareTabs,t)}function LoadFailed(t){return e(Be().LoadFailed,t)}function Me(){let{options:e}=Ne(),t=e.fonts;return i(()=>{let e=/* @__PURE__ */new Map,n=/* @__PURE__ */new Map,o=n=>{let o=e.get(n);if(!o){let{fontWeight:r,...i}=Ue[n];o={...i,...He(Oe[n].font==="mono"?t?.mono:t?.sans,r)},e.set(n,o)}return o};return{v:e=>Ve[e],t(e){let t=n.get(e);return t||(t={...Ve[e],...o(e)},n.set(e,t)),t},tx:o}},[t])}function Ke(e){return Ue[e].color??"#000000"}function De(e,t){let n=Ve[e][t];return typeof n=="number"?n:0}function Fe(e){let t=Oe[e].wrap;return t?y.OS==="web"?{style:{textWrap:t},props:{}}:{style:null,props:y.OS==="ios"?{lineBreakStrategyIOS:"standard"}:{textBreakStrategy:"balanced"}}:{style:null,props:{}}}function CoT({k:t,bare:n,style:o,lines:r,role:i,children:l}){let a=Me(),s=Fe(t);return e(c,{style:[n?a.tx(t):a.t(t),s.style,o],...s.props,...r?{numberOfLines:r}:{},...i?{accessibilityRole:i}:{}},l)}function CoIcon({name:t,k:n,ink:o,style:r}){let i=Ve[n],l=i.width??Le[t].size;return e(g,{source:{uri:Le[t].uri},style:[{width:l,height:l,tintColor:Ke(o??n)},i.marginTop?{marginTop:i.marginTop}:null,r],accessible:false,importantForAccessibility:"no",resizeMode:"contain"})}function CoRing({k:t}){let n=Oe[t].ring;if(!n)return null;let o=Ve[t].borderRadius??0,r=y.OS==="web"?{boxShadow:`inset 0 0 0 ${n.width}px ${n.color}`}:{borderWidth:n.width,borderColor:n.color};return e(s,{pointerEvents:"none",style:[{position:"absolute",top:0,right:0,bottom:0,left:0,borderRadius:o},r]})}function Je(e){let t=Oe[e].drop;return t?y.OS==="web"?{boxShadow:`${t.x}px ${t.y}px ${t.blur}px ${t.spread}px ${t.color}`}:{shadowColor:t.color,shadowOpacity:1,shadowRadius:t.blur/2,shadowOffset:{width:t.x,height:t.y},elevation:Math.round(t.blur/3)}:null}function CoTile({uri:e,count:t,k:n="tile",bg:o}){let r=Me();/* @__PURE__ */
4
- return v(s,{style:[r.v(n),o?{backgroundColor:Ve[o].backgroundColor}:null],children:[e?/* @__PURE__ */k(Photo,{uri:e}):null,t&&t>1?/* @__PURE__ */k(s,{style:[r.v("tileCount"),Ze],children:/* @__PURE__ */k(CoT,{k:"tileCount",bare:true,children:t})}):null]})}function Photo({uri:t,style:n}){return e(g,{source:{uri:t},resizeMode:"contain",accessible:false,accessibilityElementsHidden:true,importantForAccessibility:"no-hide-descendants",style:[{width:"100%",height:"100%"},n]})}function Ee(e,t,n,o){let r=null;return i=>(r??=m.bezier(e,t,n,o))(i)}var Ze={alignItems:"center",justifyContent:"center"},Ye={flexDirection:"row",alignItems:"center"};var Qe=Ee(.23,1,.32,1),Xe=De("acts","rowGap"),je=De("body","paddingLeft");function CartBar({bar:e,copy:t,onHeight:r,onShown:i}){let l=Me(),a=qe(),d=Pe(),u=xe(void 0),f=o(new p.Value(0)).current,c=o(new p.Value(1)).current,h=o(null),g=e!==null;if(n(()=>{i?.(g),g||r(0)},[g]),n(()=>()=>i?.(false),[]),n(()=>{let t=h.current;h.current=e,!(!e||u())&&(t?e.count>t.count&&(c.setValue(1),p.sequence([p.timing(c,{toValue:1.12,duration:120,easing:m.out(m.ease),useNativeDriver:true}),p.timing(c,{toValue:1,duration:120,easing:m.out(m.ease),useNativeDriver:true})]).start()):(f.setValue(1),p.timing(f,{toValue:0,duration:240,easing:Qe,useNativeDriver:true}).start()))},[e]),!e)return null;let y=e=>r(e.nativeEvent.layout.height+Xe),b=e.thumbs.filter(e=>e!==null),S=f.interpolate({inputRange:[0,1],outputRange:[0,l.v("bar").minHeight+_e]});/* @__PURE__ */
5
- return v(p.View,{onLayout:y,style:[l.v("bar"),Ye,Je("bar"),{position:"absolute",left:je,right:je,bottom:d.bottomInset+Xe,transform:[{translateY:S}]}],testID:"shop-orders-cartbar",children:[
6
- /* @__PURE__ */v(p.View,{style:[l.v("thumbs"),Ye,$e,{transform:[{scale:c}]}],accessibilityElementsHidden:true,importantForAccessibility:"no-hide-descendants",children:[b.map((e,t)=>/* @__PURE__ */k(s,{style:[l.v("thumb"),t>0?{marginLeft:-18}:null],children:/* @__PURE__ */k(Photo,{uri:e})},`${t}:${e}`)),b.length===0?/* @__PURE__ */k(s,{style:[l.v("thumb"),{opacity:0}]}):null,
7
- /* @__PURE__ */k(s,{style:[l.v("thumbCount"),Ze],children:/* @__PURE__ */k(CoT,{k:"thumbCount",bare:true,children:e.count})})]}),
8
- /* @__PURE__ */v(s,{style:[l.v("barSum"),{flex:1,minWidth:0}],children:[e.total?/* @__PURE__ */k(CoT,{k:"barTotal",children:e.total}):null,
9
- /* @__PURE__ */k(CoT,{k:"barSub",children:e.sub})]}),
10
- /* @__PURE__ */k(Press,{role:"link",onPress:()=>a.go({name:"cart"}),style:[l.v("barGo"),Ze],children:/* @__PURE__ */k(CoT,{k:"barGo",bare:true,children:t.checkout})})]})}var $e={height:44},_e=24;var et=Ee(.32,.72,0,1),tt={top:4,bottom:4,left:4,right:4},nt=Ke("dateOutBig"),ot=De("acts","marginTop")-De("sheetActs","rowGap"),rt={flex:1,minWidth:0,lineHeight:Ue.choice.lineHeight};function ManageSheet({copy:e,open:r,busy:i,failed:l,onGo:a,onClose:d}){let u=Me(),f=Pe(),c=xe(void 0),[g,y]=t(r),[m,w]=t(r!==null);r&&r!==g&&y(r),r&&!m&&w(true);let[A,T]=t(r?.sheet.picked??null);n(()=>T(r?.sheet.picked??null),[r?.card.planId,r?.sheet.mode,r?.sheet.picked]);let W=o(600),C=o(new p.Value(0)).current,I=o(i);I.current=i;let R=o(d);R.current=d,n(()=>{if(r){if(c()){C.setValue(0);return}C.setValue(W.current),p.timing(C,{toValue:0,duration:240,easing:et,useNativeDriver:true}).start();return}if(!m)return;let e=()=>{w(false),y(null)};if(c())return e();p.timing(C,{toValue:W.current,duration:240,easing:et,useNativeDriver:true}).start(e)},[r]);let z=()=>{I.current||R.current()},x=o(b.create({onMoveShouldSetPanResponder:(e,t)=>t.dy>4&&Math.abs(t.dy)>Math.abs(t.dx),onPanResponderMove:(e,t)=>C.setValue(Math.max(0,t.dy)),onPanResponderRelease:(e,t)=>{if(!I.current&&(t.dy>W.current*.3||t.vy>.11)){R.current();return}c()?C.setValue(0):p.timing(C,{toValue:0,duration:240,easing:et,useNativeDriver:true}).start()},onPanResponderTerminate:()=>C.setValue(0)})).current,H=r??g,G=H?.card,V=H?.sheet,U=e=>{W.current=e.nativeEvent.layout.height};/* @__PURE__ */
11
- return k(S,{visible:m,transparent:true,animationType:"none",onRequestClose:z,statusBarTranslucent:true,children:/* @__PURE__ */v(s,{style:{flex:1,justifyContent:"flex-end"},children:[
12
- /* @__PURE__ */k(h,{style:[{position:"absolute",top:0,right:0,bottom:0,left:0},u.v("backdrop")],onPress:z,accessibilityRole:"button",accessibilityLabel:e.close}),
13
- /* @__PURE__ */v(p.View,{style:[u.v("sheet"),{paddingBottom:Math.max(u.v("sheet").paddingBottom,f.screenBottomInset),transform:[{translateY:C}]}],accessibilityViewIsModal:true,onLayout:U,testID:"shop-orders-sheet",children:[
14
- /* @__PURE__ */v(s,{...x.panHandlers,children:[
15
- /* @__PURE__ */k(s,{style:[u.v("sheetGrab"),Ze],accessibilityElementsHidden:true,importantForAccessibility:"no-hide-descendants",children:/* @__PURE__ */k(s,{style:u.v("sheetGrabBar")})}),
16
- /* @__PURE__ */v(s,{style:[u.v("sheetHead"),Ye,{justifyContent:"space-between"}],children:[
17
- /* @__PURE__ */k(CoT,{k:"sheetTitle",role:"header",style:{flex:1,minWidth:0},children:V?.title??e.sheetTitle}),
18
- /* @__PURE__ */k(Press,{label:e.close,onPress:z,hitSlop:tt,style:[u.v("sheetClose"),Ze],children:/* @__PURE__ */k(CoIcon,{name:"x",k:"sheetCloseIcon"})})]})]}),G&&V?/* @__PURE__ */v(s,{style:u.v("sheetBody"),children:[
19
- /* @__PURE__ */v(s,{style:[u.v("sheetItem"),Ye],children:[
20
- /* @__PURE__ */k(CoTile,{uri:G.imageUrl,bg:"pkg"}),
21
- /* @__PURE__ */v(s,{style:{flex:1,minWidth:0},children:[
22
- /* @__PURE__ */k(CoT,{k:"sheetItemName",children:G.name}),
23
- /* @__PURE__ */k(CoT,{k:"sheetItemText",children:V.itemMeta})]})]}),V.mode==="change"?/* @__PURE__ */k(s,{style:u.v("choices"),accessibilityRole:"radiogroup",accessibilityLabel:e.changeTitle,children:V.choices.map(e=>{let t=A===e.key;/* @__PURE__ */
24
- return v(Press,{role:"radio",selected:t,label:e.price?`${e.label}, ${e.price}`:e.label,onPress:()=>T(e.key),style:[u.v(t?"choiceOn":"choice"),Ye],children:[
25
- /* @__PURE__ */k(s,{style:u.v(t?"radioOn":"radioOff")}),
26
- /* @__PURE__ */k(CoT,{k:"choiceTitle",bare:true,style:rt,children:e.label}),e.price?/* @__PURE__ */k(CoT,{k:"choiceEnd",bare:true,children:e.price}):null]},e.key)})}):null,V.say?V.say.warn?/* @__PURE__ */v(s,{style:[u.v("sheetSayWarn"),{flexDirection:"row",alignItems:"flex-start"}],children:[
27
- /* @__PURE__ */k(CoIcon,{name:"alert",k:"sheetSayIcon"}),
28
- /* @__PURE__ */k(CoT,{k:"sheetSayWarn",bare:true,style:{flex:1,minWidth:0},children:V.say.text})]}):/* @__PURE__ */k(CoT,{k:"sheetSay",children:V.say.text}):null,
29
- /* @__PURE__ */v(s,{style:u.v("sheetActs"),children:[l?/* @__PURE__ */k(s,{accessibilityRole:"alert",accessibilityLiveRegion:"polite",style:{marginBottom:ot},children:/* @__PURE__ */k(CoT,{k:"pkgNow",bare:true,style:{color:nt},children:e.saveFailed})}):null,V.go?/* @__PURE__ */k(Press,{disabled:i,onPress:()=>a(V.mode==="change"?V.choices.find(e=>e.key===A)??null:null),style:[u.v("sheetGo"),Ze],children:/* @__PURE__ */k(CoT,{k:"sheetGo",bare:true,children:V.go})}):null,
30
- /* @__PURE__ */k(Press,{onPress:z,style:[u.v("sheetKeep"),Ze],children:/* @__PURE__ */k(CoT,{k:"sheetKeep",bare:true,children:e.keep})})]})]}):null]})]})})}var it=Ee(.23,1,.32,1),lt=Ke("dateOutBig"),at=Ke("itemMetaDue"),st={top:2,bottom:2,left:0,right:0},dt={top:4,bottom:4,left:4,right:4},ut={top:12,bottom:12,left:4,right:4};function OrdersV2Screen({tabs:e,copy:i,onHelp:l,onCartBar:f}){let c=C(),{client:p}=c,h=Me(),g=qe(),y=Re(i),m=R(p),b=V(),S=Ne(),A=ze(),[T,W]=t(null),[I,z]=t(null),[x,H]=t(null),[G,U]=t(false),[O,L]=t(0),[B,N]=t(false);n(()=>{y.phase==="ready"&&N(true)},[y.phase]);let q=o(y.reread);q.current=y.reread,n(()=>Ge(()=>{q.current()}),[]);let P=r(async(e,t)=>{let n=await A.run(e);return!n||!n.ok?false:(y.saved(n.value),A.reset(),z(t=>({planId:e.planId,n:(t?.n??0)+1})),(e.mode==="skip"||e.mode==="change"||e.mode==="pause")&&a.announceForAccessibility?.(me(e.mode,t,n.value,i)),true)},[A,y,i]),M=r(e=>{for(let t of e)b.add(p,t)},[p,b]),K=y.view,D=T&&K?K.refills.find(e=>e.planId===T.planId)??null:null,F=D&&T?{card:D,sheet:ye(T.mode,D,i)}:null,J;return y.phase==="failed"?J=/* @__PURE__ */k(LoadFailed,{copy:c.copy,thing:c.copy.thingOrders,retry:y.retry}):y.phase==="loading"||!K?J=/* @__PURE__ */k(Loading,{copy:i,title:c.pets.length===1?i.title(c.pets[0].name):c.copy.ordersTitle}):J=/* @__PURE__ */v(w,{children:[
31
- /* @__PURE__ */v(s,{style:h.v("head"),children:[
32
- /* @__PURE__ */k(CoT,{k:"headTitle",role:"header",children:K.title}),
33
- /* @__PURE__ */k(CoT,{k:"headLine",children:K.autoLine})]}),
34
- /* @__PURE__ */v(s,{style:h.v("way"),children:[
35
- /* @__PURE__ */k(CoT,{k:"wayTitle",role:"header",children:K.hero.headline}),K.hero.rows.length>0?/* @__PURE__ */k(s,{style:h.v("tl"),children:K.hero.rows.map((e,t)=>/* @__PURE__ */k(Mark,{index:t,play:!B,children:/* @__PURE__ */k(HeroRow,{row:e,copy:i,cart:m,onRefill:e=>M([e])})},e.key))}):null]}),K.refills.length>0?/* @__PURE__ */v(s,{style:h.v("sec"),children:[
36
- /* @__PURE__ */k(SecHead,{title:i.autoTitle,sub:i.autoSub}),
37
- /* @__PURE__ */k(s,{style:h.v("refs"),children:K.refills.map(e=>/* @__PURE__ */k(RefillCard,{card:e,copy:i,busy:A.busy,failed:x===e.planId,bump:I?.planId===e.planId?I.n:0,onSheet:t=>{A.reset(),H(null),W({mode:t,planId:e.planId})},onNow:async t=>{H(null),await P({mode:t,planId:e.planId},e)||H(e.planId)}},e.planId))})]}):null,K.again?/* @__PURE__ */v(s,{style:h.v("sec"),children:[
38
- /* @__PURE__ */k(SecHead,{title:i.buyAgainTitle,sub:i.buyAgainSub}),
39
- /* @__PURE__ */v(d,{horizontal:true,showsHorizontalScrollIndicator:false,style:{marginLeft:h.v("shelf").marginLeft,marginRight:h.v("shelf").marginRight},contentContainerStyle:[Ye,{alignItems:"flex-start",paddingLeft:h.v("shelf").paddingLeft,paddingRight:h.v("shelf").paddingRight,paddingBottom:h.v("shelf").paddingBottom,columnGap:h.v("shelf").columnGap}],snapToInterval:De("item","width")+De("shelf","columnGap"),decelerationRate:"fast",testID:"shop-orders-shelf",children:[K.again.map(e=>/* @__PURE__ */k(ShelfItem,{item:e,copy:i,cart:m,onAdd:e=>M([e])},e.offerId)),
40
- /* @__PURE__ */v(Press,{role:"link",onPress:()=>g.go({name:"shop"}),style:[h.v("more"),{justifyContent:"space-between"}],children:[
41
- /* @__PURE__ */k(CoIcon,{name:"bag",k:"moreIcon"}),
42
- /* @__PURE__ */k(CoT,{k:"moreLabel",bare:true,children:K.moreLabel}),
43
- /* @__PURE__ */k(CoRing,{k:"more"})]})]})]}):null,K.past.length>0?/* @__PURE__ */v(s,{style:h.v("sec"),children:[
44
- /* @__PURE__ */k(SecHead,{title:i.pastTitle,sub:i.pastSub}),
45
- /* @__PURE__ */k(s,{style:h.v("past"),children:K.past.map(e=>/* @__PURE__ */k(PastOrder,{order:e,copy:i,cart:m,onAdd:M},e.orderId))})]}):null]}),/* @__PURE__ */v(s,{style:{flex:1,backgroundColor:S.v("subtabs").backgroundColor},testID:"shop-orders-v2",children:[e.length>1?/* @__PURE__ */k(CareTabs,{copy:c.copy,current:"orders",tabs:e}):null,
46
- /* @__PURE__ */v(d,{style:{flex:1},contentContainerStyle:[h.v("body"),{paddingBottom:S.v("breaks").columnGap+O}],refreshControl:/* @__PURE__ */k(u,{refreshing:G,tintColor:Ke("headLine"),colors:[Ke("headLine")],onRefresh:()=>{U(true),y.reread().finally(()=>U(false))}}),children:[
47
- /* @__PURE__ */k(s,{accessibilityState:{busy:y.phase==="loading"},children:J}),l?/* @__PURE__ */v(Press,{role:"link",onPress:l,style:[h.v("help"),Ye],children:[
48
- /* @__PURE__ */k(CoIcon,{name:"help",k:"helpIcon"}),
49
- /* @__PURE__ */k(CoT,{k:"helpLabel",bare:true,style:{flex:1,minWidth:0},children:i.help}),
50
- /* @__PURE__ */k(CoIcon,{name:"chevron",k:"helpChevron"})]}):null,
51
- /* @__PURE__ */k(s,{style:h.v("legal"),children:/* @__PURE__ */k(CoT,{k:"legalText",children:i.legal})})]}),
52
- /* @__PURE__ */k(CartBar,{bar:y.bar,copy:i,onHeight:L,onShown:f}),
53
- /* @__PURE__ */k(ManageSheet,{copy:i,open:F,busy:A.busy,failed:A.error!==null,onClose:()=>W(null),onGo:async e=>{if(!T||!D)return;await P({mode:T.mode,planId:T.planId,...e?ge(D,e):{}},D)&&W(null)}})]})}function Mark({index:e,play:t,children:r}){let i=xe(void 0),l=o(new p.Value(t?0:1)).current;n(()=>{if(t){if(i()){l.setValue(1);return}p.timing(l,{toValue:1,duration:240,delay:60+e*60,easing:it,useNativeDriver:true}).start()}},[]);let a=l.interpolate({inputRange:[0,1],outputRange:[8,0]});/* @__PURE__ */
54
- return k(p.View,{style:{opacity:l,transform:[{translateY:a}]},children:r})}function SecHead({title:e,sub:t}){let n=Me();/* @__PURE__ */
55
- return v(s,{style:[n.v("secHead"),{flexDirection:"row",alignItems:"baseline",justifyContent:"space-between"}],children:[
56
- /* @__PURE__ */k(CoT,{k:"secTitle",role:"header",style:{flexShrink:1},children:e}),
57
- /* @__PURE__ */k(CoT,{k:"secSub",children:t})]})}function Pill({label:e,kind:t="btn",icon:n,disabled:o,role:r="button",onPress:i,style:l}){let a=Me();/* @__PURE__ */
58
- return k(s,{style:l,children:/* @__PURE__ */v(Press,{role:r,label:e,disabled:o===true,onPress:i,hitSlop:st,style:[a.v(t),Ye,{justifyContent:"center"}],children:[n?/* @__PURE__ */k(CoIcon,{name:n,k:"btnIcon",ink:t}):null,
59
- /* @__PURE__ */k(CoT,{k:t,bare:true,children:e})]})})}function DateBlock({day:e,today:t,out:n}){let o=Me(),r=t?"dateToday":"date",i=t?"dateTodaySmall":n?"dateOutSmall":"dateSmall",l=t?"dateTodayBig":n?"dateOutBig":"dateBig";return e?/* @__PURE__ */v(s,{style:[o.v(r),{alignItems:"center"}],children:[
60
- /* @__PURE__ */k(CoT,{k:i,bare:true,children:t??e.weekday}),
61
- /* @__PURE__ */k(CoT,{k:l,bare:true,children:e.date}),
62
- /* @__PURE__ */k(CoT,{k:i,bare:true,children:e.month})]}):/* @__PURE__ */k(s,{style:o.v(r)})}function HeroRow({row:e,copy:t,cart:n,onRefill:o}){let r=Me();return e.kind==="today"?/* @__PURE__ */v(s,{style:[r.v("tlRow"),Ye],children:[
63
- /* @__PURE__ */k(DateBlock,{day:e.day,today:t.today}),
64
- /* @__PURE__ */k(Say,{title:e.title,line:e.line,out:false})]}):e.kind==="package"?/* @__PURE__ */k(PackageRow,{row:e}):/* @__PURE__ */k(RunOutRow,{row:e,copy:t,cart:n,onRefill:o})}function Say({title:e,line:t,out:n}){let o=Me();/* @__PURE__ */
65
- return v(s,{style:[o.v("say"),{flex:1,minWidth:0}],children:[
66
- /* @__PURE__ */k(CoT,{k:n?"sayOutTitle":"sayTitle",bare:true,children:e}),t?/* @__PURE__ */k(CoT,{k:"sayLine",children:t}):null]})}function PackageRow({row:e}){let t=Me(),n=qe();/* @__PURE__ */
67
- return v(s,{style:[t.v("tlRow"),Ye],children:[
68
- /* @__PURE__ */k(DateBlock,{day:e.day}),
69
- /* @__PURE__ */v(Press,{role:"link",label:e.label,onPress:()=>n.go({name:"order",orderId:e.orderId}),style:[t.v("pkg"),Ye,{flex:1,minWidth:0}],children:[
70
- /* @__PURE__ */v(s,{style:{flex:1,minWidth:0},children:[
71
- /* @__PURE__ */k(CoT,{k:"pkgWhen",children:e.title}),e.what?/* @__PURE__ */k(CoT,{k:"pkgWhat",children:e.what}):null,e.steps?/* @__PURE__ */k(s,{style:[t.v("steps"),{flexDirection:"row"}],children:e.steps.map((e,n)=>/* @__PURE__ */k(s,{style:[t.v(e.done?"stepDone":"step"),{flex:1,overflow:"hidden"}],children:e.now?/* @__PURE__ */k(s,{style:[t.v("stepDone"),{width:"50%"}]}):null},n))}):null,e.status?/* @__PURE__ */v(s,{style:[t.v("pkgNow"),Ye],children:[
72
- /* @__PURE__ */k(s,{style:[t.v("pkgDot"),e.status.tone==="wait"?{backgroundColor:at}:null]}),
73
- /* @__PURE__ */k(CoT,{k:"pkgNow",bare:true,style:{flexShrink:1},children:e.status.text})]}):null]}),
74
- /* @__PURE__ */k(CoTile,{uri:e.imageUrl,count:e.count})]})]})}function RunOutRow({row:e,copy:n,cart:o,onRefill:r}){let i=Me(),{client:l}=C(),a=qe(),[d,u]=t(false);if(!e.out)/* @__PURE__ */
75
- return v(s,{style:[i.v("tlRow"),Ye],children:[
76
- /* @__PURE__ */k(DateBlock,{day:e.day}),
77
- /* @__PURE__ */k(Say,{title:e.title,line:e.line,out:false})]});let f=e.refill,c=f?o.some(e=>e.rxId===f.rxId):false,p=async()=>{if(!f||d)return;u(true);let e=await Te(l,f);u(false),e&&r(e)};/* @__PURE__ */
78
- return v(s,{style:[i.v("tlRow"),Ye],children:[
79
- /* @__PURE__ */k(DateBlock,{day:e.day,out:true}),
80
- /* @__PURE__ */v(s,{style:[i.v("run"),Ye,{flex:1,minWidth:0}],children:[
81
- /* @__PURE__ */k(Say,{title:e.title,line:e.line,out:true}),f&&c?/* @__PURE__ */k(Pill,{kind:"btnInk",icon:"check",role:"link",label:n.inCart,onPress:()=>a.go({name:"cart"})}):f?/* @__PURE__ */k(Pill,{kind:"btnGo",label:n.refill,disabled:d,onPress:()=>{p()}}):null]})]})}function RefillCard({card:e,copy:t,busy:r,failed:i,bump:l,onSheet:a,onNow:d}){let u=Me(),f=qe(),c=xe(void 0),h=o(new p.Value(1)).current;n(()=>{l===0||c()||(h.setValue(0),p.timing(h,{toValue:1,duration:220,easing:it,useNativeDriver:true}).start())},[l]);let g=e.next,y=u.v("ref").columnGap;/* @__PURE__ */
82
- return v(s,{style:u.v("ref"),testID:`shop-orders-refill-${e.planId}`,children:[
83
- /* @__PURE__ */v(s,{style:[Ye,{columnGap:y}],children:[
84
- /* @__PURE__ */k(CoTile,{uri:e.imageUrl}),
85
- /* @__PURE__ */v(s,{style:{flex:1,minWidth:0},children:[
86
- /* @__PURE__ */v(s,{style:[u.v("refName"),Ye,{flexWrap:"wrap"}],children:[e.offerId?/* @__PURE__ */k(Press,{role:"link",hitSlop:ut,onPress:()=>f.go({name:"product",offerId:e.offerId}),children:/* @__PURE__ */k(CoT,{k:"refNameLink",bare:true,children:e.name})}):/* @__PURE__ */k(CoT,{k:"refName",bare:true,children:e.name}),e.rx?/* @__PURE__ */k(s,{style:[u.v("rx"),Ze],children:/* @__PURE__ */k(CoT,{k:"rx",bare:true,children:t.rxTag})}):null]}),
87
- /* @__PURE__ */k(CoT,{k:"refMeta",children:e.meta})]}),e.paused?/* @__PURE__ */v(s,{style:{alignItems:"flex-end"},children:[
88
- /* @__PURE__ */k(CoT,{k:"whenSmall",bare:true,children:t.autoRefill}),
89
- /* @__PURE__ */k(CoT,{k:"whenPausedBig",children:t.paused})]}):g?/* @__PURE__ */v(p.View,{style:{alignItems:"flex-end",opacity:h,transform:[{translateY:h.interpolate({inputRange:[0,1],outputRange:[6,0]})}]},children:[
90
- /* @__PURE__ */k(CoT,{k:"whenSmall",bare:true,children:t.ships}),
91
- /* @__PURE__ */v(CoT,{k:"whenBig",children:[g.month," ",g.date]}),
92
- /* @__PURE__ */k(CoT,{k:"whenSmall",bare:true,children:g.weekday})]}):null]}),e.vet?/* @__PURE__ */v(s,{style:[u.v("vet"),Ye],children:[
93
- /* @__PURE__ */k(CoIcon,{name:"pill",k:"vetIcon"}),
94
- /* @__PURE__ */v(s,{style:{flex:1,minWidth:0},children:[
95
- /* @__PURE__ */k(CoT,{k:"vet",bare:true,children:e.vet.line}),e.vet.small?/* @__PURE__ */k(CoT,{k:"vetSmall",children:e.vet.small}):null]}),e.vet.pips>0?/* @__PURE__ */k(s,{style:[u.v("pips"),{flexDirection:"row"}],accessibilityElementsHidden:true,importantForAccessibility:"no-hide-descendants",children:Array.from({length:e.vet.pips},(e,t)=>/* @__PURE__ */k(s,{style:u.v("pip")},t))}):null]}):null,e.discount?/* @__PURE__ */v(s,{style:[u.v("vet"),Ye],children:[
96
- /* @__PURE__ */k(CoIcon,{name:"leaf",k:"vetLeaf"}),
97
- /* @__PURE__ */k(CoT,{k:"vet",bare:true,style:{flex:1,minWidth:0},children:e.discount})]}):null,e.skipped?/* @__PURE__ */v(s,{style:[u.v("note"),Ye,{flexWrap:"wrap"}],children:[
98
- /* @__PURE__ */v(CoT,{k:"note",bare:true,children:[e.skipped," "]}),
99
- /* @__PURE__ */k(Press,{disabled:r,hitSlop:ut,onPress:()=>d("unskip"),children:/* @__PURE__ */k(CoT,{k:"noteButton",bare:true,children:t.undo})})]}):null,i?/* @__PURE__ */k(s,{style:u.v("note"),accessibilityRole:"alert",accessibilityLiveRegion:"polite",children:/* @__PURE__ */k(CoT,{k:"note",bare:true,style:{color:lt},children:t.saveFailed})}):null,e.paused?/* @__PURE__ */k(s,{style:u.v("acts"),children:/* @__PURE__ */k(Pill,{kind:"btnGo",label:e.resumeLabel,disabled:r,onPress:()=>d("resume")})}):/* @__PURE__ */v(s,{style:[u.v("acts"),{flexDirection:"row"}],children:[
100
- /* @__PURE__ */k(Pill,{label:t.skip,onPress:()=>a("skip"),style:{flex:1}}),
101
- /* @__PURE__ */k(Pill,{label:t.change,onPress:()=>a("change"),style:{flex:1}}),
102
- /* @__PURE__ */k(Pill,{label:t.pause,onPress:()=>a("pause"),style:{flex:1}})]})]})}function ShelfItem({item:e,copy:t,cart:n,onAdd:o}){let r=Me(),i=qe(),{client:l}=C(),a=V(),d=e.cartKey?n.find(t=>t.key===e.cartKey):void 0,u=d?.quantity??0,f=()=>{!e.add||u>=a.max||o(e.add)},c=()=>{d&&(u>1?a.setQuantity(l,d.key,u-1):a.remove(l,d.key))};/* @__PURE__ */
103
- return v(s,{style:r.v("item"),children:[
104
- /* @__PURE__ */v(Press,{role:"link",label:e.title,onPress:()=>i.go({name:"product",offerId:e.offerId}),style:{rowGap:De("item","rowGap")},children:[
105
- /* @__PURE__ */k(s,{style:[r.v("itemImg"),r.v("itemPhoto")],children:e.imageUrl?/* @__PURE__ */k(Photo,{uri:e.imageUrl}):null}),e.price?/* @__PURE__ */k(CoT,{k:"itemPrice",children:e.price}):null,
106
- /* @__PURE__ */k(CoT,{k:"itemName",children:e.title}),e.meta?/* @__PURE__ */k(CoT,{k:e.due?"itemMetaDue":"itemMeta",children:e.meta}):null]}),e.add?/* @__PURE__ */k(s,{style:[{position:"absolute",top:0,left:0,width:De("item","width"),aspectRatio:1}],pointerEvents:"box-none",children:/* @__PURE__ */k(Stepper,{q:u,title:e.title,copy:t,onPlus:f,onMinus:c})}):null]})}function Stepper({q:e,title:t,copy:r,onPlus:i,onMinus:l}){let a=Me(),d=xe(void 0),u=e>0,f=De("stepperButton","width"),c=De("stepperIn","width"),h=o(new p.Value(u?c:f)).current;n(()=>{let e=u?c:f;d()?h.setValue(e):p.timing(h,{toValue:e,duration:200,easing:it,useNativeDriver:false}).start()},[u]);let g=a.v(u?"stepperIn":"stepper"),y=u?"stepperIn":"stepperPlusOut";/* @__PURE__ */
107
- return k(p.View,{style:[g,{width:h,overflow:"hidden"}],children:/* @__PURE__ */v(s,{style:[Ye,{position:"absolute",top:0,right:0,width:c,height:De("stepperIn","height")}],children:[
108
- /* @__PURE__ */k(Press,{label:r.oneLess(t),disabled:!u,hitSlop:dt,onPress:l,style:[a.v("stepperButton"),Ze],children:/* @__PURE__ */k(CoIcon,{name:"minus",k:"stepperIcon",ink:y})}),
109
- /* @__PURE__ */k(s,{style:[{flex:1},Ze],accessibilityLiveRegion:"polite",children:/* @__PURE__ */k(CoT,{k:"stepperCount",bare:true,children:e})}),
110
- /* @__PURE__ */k(Press,{label:r.addOne(t),hitSlop:dt,onPress:i,style:[a.v("stepperButton"),Ze],children:/* @__PURE__ */k(CoIcon,{name:"plus",k:"stepperIcon",ink:y})})]})})}function PastOrder({order:e,copy:n,cart:o,onAdd:r}){let i=Me(),l=qe(),{client:a,copy:shopCopy}=C(),[d,u]=t(false),[f,c]=t(false),p=we(e.offerIds,o),h=async()=>{if(d)return;u(true),c(false);let t=await We(a,e,o);if(u(false),!t){c(true);return}r(t)};/* @__PURE__ */
111
- return v(s,{style:i.v("order"),children:[
112
- /* @__PURE__ */v(s,{style:[i.v("orderTop"),{flexDirection:"row",alignItems:"baseline",justifyContent:"space-between"}],children:[
113
- /* @__PURE__ */v(s,{style:{flexShrink:1},children:[e.day?/* @__PURE__ */k(CoT,{k:"orderDay",children:e.day}):null,
114
- /* @__PURE__ */k(CoT,{k:"orderMeta",children:e.meta})]}),
115
- /* @__PURE__ */k(CoT,{k:"orderTotal",children:e.total})]}),e.shots.length>0?/* @__PURE__ */k(s,{style:[i.v("shots"),{flexDirection:"row"}],children:e.shots.map(e=>/* @__PURE__ */k(Press,{role:"link",label:e.title,onPress:()=>l.go({name:"product",offerId:e.offerId}),style:i.v("shot"),children:e.imageUrl?/* @__PURE__ */k(Photo,{uri:e.imageUrl}):null},e.offerId))}):null,f?/* @__PURE__ */k(s,{style:i.v("note"),accessibilityRole:"alert",accessibilityLiveRegion:"polite",children:/* @__PURE__ */k(CoT,{k:"note",bare:true,style:{color:lt},children:shopCopy.loadFailed(shopCopy.thingOrders)})}):null,
116
- /* @__PURE__ */v(s,{style:[i.v("orderActs"),{flexDirection:"row"}],children:[e.addCount>0?p?/* @__PURE__ */k(Pill,{kind:"orderBtn",icon:"check",role:"link",label:n.inTheCart,onPress:()=>l.go({name:"cart"}),style:{flex:1}}):/* @__PURE__ */k(Pill,{kind:"btnGo",label:n.addAll(e.addCount),disabled:d,onPress:()=>{h()},style:{flex:1}}):null,
117
- /* @__PURE__ */k(Pill,{kind:"orderBtn",role:"link",label:n.receipt,onPress:()=>l.go({name:"order",orderId:e.orderId}),style:{flex:1}})]})]})}function Loading({copy:e,title:t}){let n=Me(),o=F(M()),r=/* @__PURE__ */v(s,{style:[n.v("pkg"),Ye,{flex:1}],children:[
118
- /* @__PURE__ */k(s,{style:{flex:1}}),
119
- /* @__PURE__ */k(s,{style:[n.v("tile"),{opacity:0}]})]});/* @__PURE__ */
120
- return v(s,{accessibilityElementsHidden:true,importantForAccessibility:"no-hide-descendants",testID:"shop-orders-loading",children:[
121
- /* @__PURE__ */k(s,{style:n.v("head"),children:/* @__PURE__ */k(CoT,{k:"headTitle",children:t})}),
122
- /* @__PURE__ */k(s,{style:n.v("way"),children:/* @__PURE__ */v(s,{style:n.v("tl"),children:[
123
- /* @__PURE__ */v(s,{style:[n.v("tlRow"),Ye],children:[
124
- /* @__PURE__ */k(DateBlock,{day:o,today:e.today}),r]}),
125
- /* @__PURE__ */v(s,{style:[n.v("tlRow"),Ye],children:[
126
- /* @__PURE__ */k(DateBlock,{day:null}),r]})]})}),
127
- /* @__PURE__ */k(s,{style:[n.v("sec"),n.v("refs")],children:[0,1].map(e=>/* @__PURE__ */k(s,{style:n.v("ref"),children:/* @__PURE__ */k(s,{style:[n.v("tile"),{opacity:0}]})},e))})]})}function Screen({seam:t,...n}){return e(OrdersV2SeamProvider,{seam:t},e(OrdersV2Screen,n))}var ft={kind:"everfur-shop-orders-v2",Screen:Screen},ct=ft;export{ct as EverfurShopOrdersV2};
2
+ import{createContext,createElement as e,useState as t,useEffect as n,useRef as o,useCallback as r,useMemo as i,useContext as l}from"react";import*as a from"react-native";import{AccessibilityInfo as s,View as d,ScrollView as u,RefreshControl as f,AppState as c,Text as h,Animated as p,Pressable as g,Image as y,Platform as m,Easing as b,PanResponder as S,Modal as k}from"react-native";import{jsx as v,jsxs as w,Fragment as A}from"react/jsx-runtime";var T=class _EverfurConfigError extends Error{constructor(e,t){super(t),this.name="EverfurConfigError",this.kind=e,Object.setPrototypeOf(this,_EverfurConfigError.prototype)}};var W=createContext(null);function OrdersV2SeamProvider({seam:t,children:n}){return e(W.Provider,{value:t},n)}function C(){let e=l(W);if(!e)throw new T("not-initialized","Orders v2 renders inside EverfurShop");return e}function I(){return C().useShop()}function R(){return C().useShopShared()}function z(e){return C().useCart(e)}function x(){return C().usePrescriptions()}function H(){return C().usePlans()}function G(e,t){return C().useShopRead(e,t)}function V(e){return C().useShopAction(e)}function U(){let e=C();return{add:e.addToCart,remove:e.removeFromCart,setQuantity:e.setCartQuantity,max:e.cartMaxQuantity}}function O(e){return`${e.offerId}|${e.petId??""}|${e.rxId??""}`}function L(e){let t=e<0?"-":"",n=Math.abs(Math.round(e));return`${t}$${Math.floor(n/100).toLocaleString("en-US")}.${String(n%100).padStart(2,"0")}`}var B=["Sun","Mon","Tue","Wed","Thu","Fri","Sat"],N=["Jan","Feb","Mar","Apr","May","Jun","Jul","Aug","Sep","Oct","Nov","Dec"],q=864e5;function M(e){if(!e)return null;let t=/^(\d{4})-(\d{2})-(\d{2})/.exec(e);if(!t)return null;let n=Date.UTC(Number(t[1]),Number(t[2])-1,Number(t[3]));return Number.isNaN(n)?null:Math.round(n/q)}function P(e){return new Date(e*q).toISOString().slice(0,10)}function K(e=/* @__PURE__ */new Date){let t=e=>String(e).padStart(2,"0");return`${e.getFullYear()}-${t(e.getMonth()+1)}-${t(e.getDate())}`}function D(e,t){return P((M(e)??0)+t)}function F(e){let t=/^(\d{4})-(\d{2})-(\d{2})/.exec(e);if(!t)return e;let n=new Date(Date.UTC(Number(t[1]),Number(t[2])-1-3,1)),o=new Date(Date.UTC(n.getUTCFullYear(),n.getUTCMonth()+1,0)).getUTCDate();return n.setUTCDate(Math.min(Number(t[3]),o)),n.toISOString().slice(0,10)}function J(e){let t=M(e);if(t===null)return null;let n=new Date(t*q);return{iso:P(t),weekday:B[n.getUTCDay()],date:n.getUTCDate(),month:N[n.getUTCMonth()]}}function E(e){let t=J(e);return t?`${t.weekday}, ${t.month} ${t.date}`:null}function Z(e){let t=J(e);return t?`${t.month} ${t.date}`:null}function Y(e){if(!e)return null;let t=/^(\d{4}-\d{2}-\d{2})/.exec(e);return t?t[1]:null}function Q(e){return e%100===0?`$${(e/100).toLocaleString("en-US")}`:L(e)}var X=/* @__PURE__ */new Set(["delivered","cancelled","rejected"]);function j(e){return!X.has(e.status)&&e.placedAt!==null}function $(e){return e.fulfiller==="pharmacy"}function _(e){let t=null;for(let n of e)n.supply&&(!t||(M(n.supply.runsOutOn)??1/0)<(M(t.supply.runsOutOn)??1/0))&&(t=n);return t}var ee=14;function te(e,t){let n=new Set((e.items??[]).map(e=>e.offerId));return t.find(e=>e.offerId!==null&&n.has(e.offerId))??null}function ne(e,t,n){let o=e.items??[],r=$(e)?te(e,t):null,i=o[0]??null,l=e.itemCount??o.reduce((e,t)=>e+t.quantity,0),a=o.length,s,d;if($(e)){let e=r?.drug||i?.title||null;s=e?n.rxArrives(e):n.boxArrives,d=r?.packCount&&r.supply?n.units(r.packCount,r.supply.unitLabel):i?.title??null}else s=n.boxArrives,d=a>1?n.items(l||a):i?.title??null;let u=null;return e.steps&&e.steps.length>0&&(u=e.steps.map(t=>({done:t.doneAt!==null&&t.key!==e.currentStep,now:t.key===e.currentStep}))),{kind:"package",key:`pkg:${e.orderId}`,orderId:e.orderId,day:J(e.arrivesBy),title:s,what:d,steps:u,status:oe(e,n),imageUrl:i?.imageUrl??null,count:a>1?a:null,label:[s,d].filter(Boolean).join(", ")}}function oe(e,t){switch(e.statusLineKey){case"ships_tomorrow":return{text:t.shipsTomorrow,tone:"go"};case"needs_vet_ok":return e.prescriberName?{text:t.needsVetOk(e.prescriberName),tone:"wait"}:null;default:return null}}function re({today:e,prescriptions:t,orders:n,petName:o,copy:r}){let i=n.filter(j),l=[],a=_(t),s=a?o(a.petId):null,d=J(e);a&&a.supply&&s&&a.drug&&a.supply.unitsLeft>0&&l.push({kind:"today",key:"today",day:d,title:r.hasLeft(s,a.supply.unitsLeft,a.drug),line:r.enoughUntil(E(a.supply.runsOutOn))});let u=[...i.map(e=>ne(e,t,r)).sort((e,t)=>(M(e.day?.iso)??1/0)-(M(t.day?.iso)??1/0))];if(a&&a.supply&&a.drug){let t=M(e),n=M(a.supply.runsOutOn)<t?e:a.supply.runsOutOn,o=M(n);if(o<=t+ee){let e=i.filter(e=>te(e,[a])!==null),t=e.find(e=>{let t=M(e.arrivesBy);return t!==null&&t<=o}),l=J(n);if(t)u.push({kind:"runout",key:"runout",day:l,out:false,title:r.wontRunOut,line:r.oldBottleEnds(E(t.arrivesBy)),refill:null});else{let t=e.length===0&&a.status==="ready"&&a.offerId!==null,n=e.length===0?E(a.supply.refillArrivesOn??null):null;u.push({kind:"runout",key:"runout",day:l,out:true,title:r.runsOut(a.drug),line:n?r.orderToday(n):null,refill:t?a:null})}u.sort((e,t)=>(M(e.day?.iso)??1/0)-(M(t.day?.iso)??1/0))}}return l.push(...u),{headline:r.onTheWay(i.length),rows:l}}var ie=12;function le(e){return e.filter(e=>e.state==="active"||e.state==="paused")}function ae(e,t,n,o){let r=t&&e%30===0?e/30:null;return n?o.amountEvery(n,r?o.everyMonthsAfter(r):o.everyDays(e)):r?o.everyMonths(r):o.everyDaysAlone(e)}function se(e,t){return!e||(t?.supply?t.supply.dailyUnits<1:false)}function de(e,t){let n=e.lines[0];if(!n)return null;let o=t.get(n.offerId);if(o)return o;let r=e.changeOptions?.find(e=>e.offerId===n.offerId);return r?{offerId:r.offerId,sku:"",title:r.title,fulfillmentType:"physical",requiresRx:r.unitLabel!==null,compounded:false,packQuantity:r.packQuantity,packUnit:r.packUnit,price:null,imageUrl:null}:null}function ue(e,{offers:t,prescriptions:n,copy:o}){let r=e.lines[0],i=de(e,t);if(!i)return null;let l=e.chargedWhenFilled??i.requiresRx,a=new Set((e.changeOptions??[]).map(e=>e.offerId)),s=n.find(e=>e.offerId===i.offerId)??(l?n.find(e=>e.offerId!==null&&a.has(e.offerId))??null:null),d=i.packQuantity?Number(i.packQuantity):null,u=l&&s?.supply&&d&&r?o.units(d*r.quantity,s.supply.unitLabel):null,f=se(l,s),c=ae(e.cadenceDays,f,u,o),h=e.priceCentsPerCycle!=null?L(e.priceCentsPerCycle):null,p=e.state==="paused",g=e.prescriberName??null,y=e.refillsLeft??null,m=l&&g?{line:o.vetOks(g),small:y!==null?o.leftOnRx(y):null,pips:y!==null?Math.min(y,ie):0}:null,b=!l&&e.autoDiscountPct?o.offOnAuto(e.autoDiscountPct):null,S=E(e.skippedCycleOn);return{planId:e.planId,offerId:i.offerId,name:i.title,imageUrl:i.imageUrl??null,rx:l,say:c,meta:o.planMeta(c,h,l),paused:p,next:J(e.nextShipOn??null),cadenceDays:e.cadenceDays,byMonth:f,vet:m,discount:b,skipped:!p&&S?o.skipped(S):null,resumeLabel:o.resume(E(e.nextShipOn??null)),prescriber:g,refillsLeft:y,options:e.changeOptions&&e.changeOptions.length>0?e.changeOptions:null}}function fe(e){return le(e.plans).map(t=>ue(t,e)).filter(e=>e!==null).sort((e,t)=>(M(e.next?.iso)??1/0)-(M(t.next?.iso)??1/0))}function ce(e,t){let n=e.filter(e=>!e.paused).length;return n>0?t.onAuto(n):t.nothingOnAuto}var he=[14,21,30,45,60,90];function pe(e,t,n){let o=e.packQuantity?Number(e.packQuantity):null;return e.unitLabel&&o?n.units(o*e.quantity,e.unitLabel):t&&e.size?e.size:null}function ge(e,t){let n=e.options;if(!n){let n=he.map(n=>({key:String(n),days:n,offerId:null,label:ae(n,e.byMonth,null,t),price:null}));return{choices:n,picked:n.some(t=>t.days===e.cadenceDays)?String(e.cadenceDays):null}}let o=n.length>1,r=n.flatMap(n=>n.cadenceDays.map(r=>({key:`${n.offerId}:${r}`,days:r,offerId:n.offerId,label:ae(r,e.byMonth,pe(n,o,t),t),price:L(n.priceCentsPerCycle)}))),i=n.find(e=>e.current),l=i?`${i.offerId}:${e.cadenceDays}`:null;return{choices:r,picked:r.some(e=>e.key===l)?l:null}}function ye(e,t){return t.offerId&&t.offerId!==e.offerId?{cadenceDays:t.days,offerId:t.offerId}:{cadenceDays:t.days}}function me(e,t,n){let o=t.next?E(t.next.iso):null,r=n.sheetMeta(t.say,o);if(e==="skip"){let i=t.next?D(t.next.iso,t.cadenceDays):null;return{mode:e,title:o?n.skipTitle(o):n.sheetTitle,itemMeta:r,say:i?{text:n.skipSay(E(i)),warn:false}:null,choices:[],picked:null,go:i?n.skipGo(Z(i)):null}}if(e==="change")return{mode:e,title:n.changeTitle,itemMeta:r,say:t.rx&&t.prescriber?{text:n.changeRxSay(t.prescriber),warn:false}:null,...ge(t,n),go:n.save};let i=t.rx&&t.prescriber&&t.refillsLeft!==null;return{mode:e,title:n.pauseTitle,itemMeta:r,say:i?{text:n.pauseRxSay(t.prescriber,t.refillsLeft),warn:true}:{text:n.pauseSay,warn:false},choices:[],picked:null,go:n.pauseGo}}function be(e,t,n,o){if(e==="pause")return o.saidPaused;let r=E(n?.nextShipOn??null)??(t.next?E(t.next.iso):null)??"";return e==="skip"?o.saidSkipped(t.name,r):o.saidSaved(t.name,r)}function Se(e,t){return t.find(t=>t.offerId===e&&t.status==="ready")??null}function ke(e,t){return e.map(e=>{let n=e.isRx?null:{offerId:e.offerId,title:e.title,unitPrice:e.priceCents,requiresRx:false,quantity:1,...e.imageUrl?{imageUrl:e.imageUrl}:{}},o=Z(e.lastOrderedOn);return{offerId:e.offerId,title:e.title,price:e.priceCents!=null?L(e.priceCents):null,imageUrl:e.imageUrl,meta:e.likelyOut?t.likelyOut:o?t.ordered(o):null,due:e.likelyOut,add:n,cartKey:n?O(n):null}})}function ve(e,t){let n=M(t)??-1/0;return e.filter(e=>X.has(e.status)&&(M(Y(e.placedAt))??-1/0)>=n).sort((e,t)=>(t.placedAt??"").localeCompare(e.placedAt??""))}function we(e,t,n,o){let r=e.items??[],i=e.status==="delivered",l=i?Y(e.steps?.find(e=>e.key==="delivered")?.doneAt):null,a=e.itemCount??r.reduce((e,t)=>e+t.quantity,0),s=[i?o.delivered:t(e.status),e.fulfiller==="everfur_box"?o.everfurBox:null,a>0?o.itemCount(a):null].filter(Boolean).join(" · "),d=r.filter(e=>!n.some(t=>t.offerId===e.offerId)||Se(e.offerId,n)!==null);return{orderId:e.orderId,day:E(l??Y(e.placedAt)),meta:s,total:L(e.total),shots:r.map(e=>({offerId:e.offerId,title:e.title,imageUrl:e.imageUrl??null})),addCount:d.length,offerIds:d.map(e=>e.offerId)}}function Ae(e,t){return e.length>0&&e.every(e=>t.some(t=>t.offerId===e))}function Te(e,t,n,o=null){let r=e.reduce((e,t)=>e+(t.rxId?1:t.quantity),0);if(r===0)return null;let i=0,l=0,a=false,s=false;for(let t of e){let e=t.unitPrice===null?null:t.unitPrice*t.quantity;t.requiresRx?(a=true,l=l===null||e===null?null:l+e):(s=true,i=i===null||e===null?null:i+e)}let d=e.slice(-3).map(e=>e.imageUrl??null),u=n.itemCount(r);if(!a){let e=t===null||i===null?u:i>=t?n.shipsFree(u):n.freeOver(u,Q(t));return{count:r,thumbs:d,total:i===null?null:L(i),sub:e}}let f=o&&l!==null?Math.min(o,l):0,c=l===null?null:l-f;return s?{count:r,thumbs:d,total:i===null?null:L(i),sub:c===null?u:n.todayPlusRx(L(c))}:{count:r,thumbs:d,total:c===null?null:L(c),sub:n.whenFilled(f>0?Q(f):null)}}async function We(e,t){if(!t.offerId)return null;let n=await e.offer(t.offerId);return n.ok?{offerId:t.offerId,title:n.value.title,unitPrice:n.value.price,requiresRx:true,quantity:t.packCount??1,petId:t.petId,rxId:t.rxId,...n.value.imageUrl?{imageUrl:n.value.imageUrl}:{}}:null}async function Ce(e,t,n){let[o,r]=await Promise.all([e.order(t.orderId),e.prescriptions()]);if(!o.ok)return null;let i=r.ok?r.value:[],l=[];for(let e of o.value.lines){if(!t.offerIds.includes(e.offerId))continue;let o=e.requiresRx?Se(e.offerId,i):null;if(e.requiresRx&&!o)continue;let r=t.shots.find(t=>t.offerId===e.offerId),a={offerId:e.offerId,title:e.title,unitPrice:e.unitPrice,requiresRx:e.requiresRx,quantity:o?o.packCount??1:1,...r?.imageUrl?{imageUrl:r.imageUrl}:{},...o?{petId:o.petId,rxId:o.rxId}:e.petId?{petId:e.petId}:{}};n.some(e=>e.key===O(a))||l.push(a)}return l}function Ie(e){/* @__PURE__ */
3
+ return Object.freeze({ok:true,value:e})}function Re(e,t){return e.phase==="unavailable"?{...e,phase:"ready",value:t}:e}function ze(e){let{client:n,pets:l,petName:a,copy:shopCopy,v3:s}=I(),{config:d}=R(),[u]=t(()=>K()),f=F(u),c=Re(x(),[]),h=G(`orders-v2:${f}`,()=>n.orders({since:f,limit:50})),p=Re(H(),{plans:[],nextCursor:null}),g=G("buy-again",()=>n.buyAgain()),[y,m]=t(/* @__PURE__ */new Map),b=z(n),S=i(()=>(p.value?.plans??[]).map(e=>y.get(e.planId)??e),[p.value,y]),k=i(()=>[...new Set(le(S).flatMap(e=>e.lines.map(e=>e.offerId)))].sort(),[S]),v=G(`orders-v2-offers:${k.join(",")}`,async()=>{let e=await Promise.all(k.map(e=>n.offer(e))),t=/* @__PURE__ */new Map;return e.forEach(e=>{e.ok&&t.set(e.value.offerId,e.value)}),Ie(t)}),w=o(null);v.phase==="ready"&&v.value&&(w.current=v.value);let A=v.value??w.current,T=[c,h,p],W=T.some(e=>e.phase==="failed"||e.phase==="unavailable"),C=!W&&(T.some(e=>e.phase==="loading")||k.length>0&&v.phase==="loading"&&w.current===null),V=W?"failed":C?"loading":"ready",U=i(()=>{if(V!=="ready")return null;let t=c.value??[],n=h.value?.orders??[],o=l.length===1?l[0].name:null,r=fe({plans:S,offers:A??/* @__PURE__ */new Map,prescriptions:t,copy:e}),i=g.phase==="ready"&&g.value&&g.value.length>0?ke(g.value,e):null,d=ve(n,f).map(n=>we(n,e=>shopCopy.orderStatus[e]??s.orderSteps[0]??e,t,e));return{title:o?e.title(o):shopCopy.ordersTitle,autoLine:ce(r,e),hero:re({today:u,prescriptions:t,orders:n,petName:a,copy:e}),refills:r,again:i,past:d,moreLabel:o?e.everythingElse(o):shopCopy.tabShop}},[V,c.value,h.value,S,A,g.phase,g.value,l,a,e,shopCopy,s,u,f]),O=i(()=>Te(b,d.freeShippingThresholdCents??null,e,d.firstRxDiscountCents??null),[b,d.freeShippingThresholdCents,d.firstRxDiscountCents,e]),L=r(()=>{for(let e of[c,h,p,g])e.phase!=="ready"&&e.refresh()},[c,h,p,g]),B=r(async()=>{await Promise.all([c.reread(),h.reread(),p.reread(),g.reread()])},[c,h,p,g]),N=r(e=>{m(t=>new Map(t).set(e.planId,e)),p.reread().then(()=>m(/* @__PURE__ */new Map))},[p]),q=r(e=>S.find(t=>t.planId===e)??null,[S]);return{phase:V,view:U,bar:O,plan:q,retry:L,reread:B,saved:N}}function xe(){let{client:e}=I();return V((t,n)=>{let o=t.key(`plan-${n.mode}`);if(n.mode==="change"){let t=n.cadenceDays??30;return e.updatePlan(n.planId,n.offerId?{idempotencyKey:o,cadenceDays:t,offerId:n.offerId}:{idempotencyKey:o,cadenceDays:t})}return e.planAction(n.planId,{idempotencyKey:o,operation:n.mode})})}function He(e){let t=o(true);return n(()=>{let e=true,n=s.isReduceMotionEnabled?.();n&&typeof n.then=="function"&&n.then(n=>{e&&(t.current=n)});let o=s.addEventListener?.("reduceMotionChanged",e=>{t.current=e});return()=>{e=false,o?.remove?.()}},[e]),i(()=>()=>t.current,[e])}function Ge(e,t){return e?typeof e=="string"?{fontFamily:e,fontWeight:t}:{fontFamily:t==="700"?e.bold??e.regular:t==="500"?e.medium??e.regular:e.regular}:{fontWeight:t}}function Press({onPress:t,disabled:n,label:o,style:r,children:i,role:l="button",selected:a,hitSlop:s}){return e(g,{...s?{hitSlop:s}:{},onPress:n?void 0:t,disabled:n===true,accessibilityRole:l,...o?{accessibilityLabel:o}:{},accessibilityState:{disabled:n===true,...a!==void 0?{selected:a,checked:a}:{}},style:r},i)}var Ve=e=>{let t=c.currentState==="background",n=c.addEventListener("change",n=>{n==="background"?t=true:n==="active"&&t&&(t=false,e())});return()=>n.remove()};var Ue={body:{paddingTop:12,paddingRight:16,paddingLeft:16},subtabs:{backgroundColor:"#ffffff"},subtab:{minHeight:44,rowGap:6,columnGap:6},subtabCurrent:{minHeight:44,rowGap:6,columnGap:6},head:{rowGap:2,columnGap:2},headTitle:{},headLine:{marginTop:2},way:{marginTop:24},wayTitle:{},tl:{marginTop:16,rowGap:12,columnGap:12},tlRow:{rowGap:12,columnGap:12},date:{paddingTop:8,paddingBottom:8,borderRadius:14,rowGap:3,columnGap:3,width:48,height:68},dateSmall:{},dateBig:{},dateToday:{paddingTop:8,paddingBottom:8,borderRadius:14,backgroundColor:"#000000",rowGap:3,columnGap:3,width:48,height:68},dateTodaySmall:{},dateTodayBig:{},dateOutSmall:{},dateOutBig:{},say:{paddingTop:4,paddingBottom:4},sayTitle:{rowGap:6,columnGap:6},sayLine:{marginTop:2},sayOutTitle:{rowGap:6,columnGap:6},run:{rowGap:12,columnGap:12},pkg:{paddingTop:12,paddingRight:12,paddingBottom:12,paddingLeft:16,borderRadius:20,backgroundColor:"#f3f3f3",rowGap:12,columnGap:12},pkgWhen:{},pkgWhat:{marginTop:2},pkgNow:{marginTop:8,rowGap:6,columnGap:6},pkgDot:{borderRadius:4,backgroundColor:"#07c168",width:8,height:8},steps:{marginTop:8,rowGap:3,columnGap:3},step:{borderRadius:2,backgroundColor:"#e4e4e4",height:4},stepDone:{borderRadius:2,backgroundColor:"#000000",height:4},tile:{paddingTop:6,paddingRight:6,paddingBottom:6,paddingLeft:6,borderRadius:14,backgroundColor:"#ffffff",width:56,height:56},tileCount:{paddingRight:5,paddingLeft:5,borderRadius:10,backgroundColor:"#000000",position:"absolute",width:20,height:20,top:-5,right:-5},sec:{marginTop:32},secHead:{marginBottom:12,rowGap:12,columnGap:12},secTitle:{},secSub:{},refs:{rowGap:12,columnGap:12},ref:{paddingTop:16,paddingRight:16,paddingBottom:16,paddingLeft:16,borderRadius:20,backgroundColor:"#f3f3f3",columnGap:12},refName:{rowGap:4,columnGap:6},refNameLink:{},rx:{paddingRight:7,paddingLeft:7,borderRadius:999,backgroundColor:"#ffc3bc",height:20},refMeta:{marginTop:2},when:{},whenSmall:{},whenBig:{marginTop:4,marginBottom:2},whenPausedBig:{marginTop:4,marginBottom:2},vet:{marginTop:12,rowGap:8,columnGap:8},vetIcon:{width:18,height:18},vetLeaf:{width:18,height:18},vetSmall:{},pips:{rowGap:3,columnGap:3},pip:{borderRadius:3,backgroundColor:"#ca4463",width:6,height:6},note:{marginTop:8},noteButton:{},acts:{marginTop:12,rowGap:8,columnGap:8},btn:{paddingRight:12,paddingLeft:12,borderRadius:999,backgroundColor:"#ffffff",minHeight:40,rowGap:6,columnGap:6},btnIcon:{width:16,height:16},btnGo:{paddingRight:12,paddingLeft:12,borderRadius:999,backgroundColor:"#07c168",minHeight:40,rowGap:6,columnGap:6},btnInk:{paddingRight:12,paddingLeft:12,borderRadius:999,backgroundColor:"#000000",minHeight:40,rowGap:6,columnGap:6},shelf:{paddingRight:16,marginRight:-16,paddingBottom:4,paddingLeft:16,marginLeft:-16,rowGap:12,columnGap:12},item:{rowGap:2,columnGap:2,width:128},itemImg:{marginBottom:8,borderRadius:20,backgroundColor:"#f3f3f3",aspectRatio:1},itemPhoto:{paddingTop:12,paddingRight:12,paddingBottom:16,paddingLeft:12},itemPrice:{},itemName:{},itemMeta:{},itemMetaDue:{},more:{paddingTop:14,paddingRight:14,paddingBottom:14,paddingLeft:14,borderRadius:20,backgroundColor:"#ffffff",aspectRatio:1,width:128},moreIcon:{width:24,height:24},moreLabel:{},stepper:{borderRadius:18,backgroundColor:"#ffffff",position:"absolute",width:104,height:36,right:8,bottom:8},stepperButton:{borderRadius:18,width:36,height:36},stepperIcon:{width:18,height:18},stepperPlusOut:{borderRadius:18,width:36,height:36},past:{rowGap:24,columnGap:24},order:{},orderTop:{rowGap:12,columnGap:12},orderMeta:{},orderDay:{},orderTotal:{},shots:{marginTop:8,rowGap:8,columnGap:8},shot:{paddingTop:8,paddingRight:8,paddingBottom:8,paddingLeft:8,borderRadius:14,backgroundColor:"#f3f3f3",width:64,height:64},shotPhoto:{width:48,height:48},orderActs:{marginTop:12,rowGap:8,columnGap:8},orderBtn:{paddingRight:12,paddingLeft:12,borderRadius:999,backgroundColor:"#f3f3f3",minHeight:40,rowGap:6,columnGap:6},help:{paddingTop:16,marginTop:32,paddingRight:24,paddingBottom:16,paddingLeft:24,borderWidth:1,borderColor:"#e4e4e4",borderRadius:20,backgroundColor:"#ffffff",rowGap:12,columnGap:12},helpIcon:{width:22,height:22},helpChevron:{width:20,height:20},helpLabel:{},legal:{marginTop:32},legalText:{},backdrop:{backgroundColor:"rgba(0, 0, 0, 0.32)"},sheet:{paddingBottom:34,borderTopLeftRadius:28,borderTopRightRadius:28,backgroundColor:"#ffffff"},sheetGrab:{height:20},sheetGrabBar:{borderRadius:3,backgroundColor:"#c9c9c9",width:36,height:5},sheetHead:{paddingTop:4,paddingRight:16,paddingBottom:12,paddingLeft:16,rowGap:12,columnGap:12},sheetTitle:{},sheetClose:{paddingTop:1,paddingRight:6,paddingBottom:1,paddingLeft:6,borderRadius:18,backgroundColor:"#e6ece8",width:36,height:36},sheetCloseIcon:{width:20,height:20},sheetBody:{paddingRight:16,paddingBottom:24,paddingLeft:16,rowGap:12,columnGap:12},sheetItem:{rowGap:12,columnGap:12},sheetItemText:{},sheetItemName:{},sheetSayWarn:{marginTop:16,rowGap:12,columnGap:12},sheetSayIcon:{marginTop:2,width:20,height:20},sheetActs:{marginTop:24,paddingBottom:16,rowGap:8,columnGap:8},sheetGo:{paddingRight:12,paddingLeft:12,borderRadius:999,backgroundColor:"#000000",minHeight:50,rowGap:6,columnGap:6},sheetKeep:{paddingRight:12,paddingLeft:12,borderRadius:999,backgroundColor:"#f3f3f3",minHeight:50,rowGap:6,columnGap:6},sheetSay:{marginTop:16},choices:{marginTop:16,rowGap:8,columnGap:8},choice:{paddingTop:14,paddingRight:16,paddingBottom:14,paddingLeft:16,borderWidth:1,borderColor:"#e4e4e4",borderRadius:10,backgroundColor:"#ffffff",rowGap:12,columnGap:12},choiceOn:{paddingTop:14,paddingRight:16,paddingBottom:14,paddingLeft:16,borderWidth:1,borderColor:"#10462e",borderRadius:10,backgroundColor:"#ffffff",rowGap:12,columnGap:12},radioOff:{borderWidth:1,borderColor:"#819d90",borderRadius:10,backgroundColor:"#ffffff",width:20,height:20,marginRight:2},radioOn:{borderWidth:6,borderColor:"#10462e",borderRadius:10,backgroundColor:"#ffffff",width:20,height:20,marginRight:2},choiceTitle:{},choiceEnd:{},stepperIn:{borderRadius:18,backgroundColor:"#000000",position:"absolute",width:104,height:36,right:8,bottom:8},stepperCount:{},bar:{paddingTop:8,paddingRight:8,paddingBottom:8,paddingLeft:10,borderRadius:22,backgroundColor:"#ffffff",minHeight:60,rowGap:10,columnGap:10},thumbs:{paddingRight:4},thumb:{paddingTop:3,paddingRight:3,paddingBottom:3,paddingLeft:3,borderRadius:12,backgroundColor:"#f3f3f3",width:40,height:40},thumbCount:{paddingRight:5,paddingLeft:5,borderRadius:10,backgroundColor:"#000000",position:"absolute",width:20,height:20,top:-4,right:-4},barSum:{rowGap:2,columnGap:2},barTotal:{},barSub:{},barGo:{paddingRight:18,paddingLeft:18,borderRadius:999,backgroundColor:"#07c168",minHeight:44,rowGap:6,columnGap:6}},Oe={body:{color:"#000000",fontSize:17,fontWeight:"400",lineHeight:26.34375},subtabs:{color:"#000000",fontSize:17,fontWeight:"400",lineHeight:26.34375},subtab:{color:"#6b6b6b",fontSize:15,fontWeight:"500",lineHeight:23.25},subtabCurrent:{color:"#10462e",fontSize:15,fontWeight:"700",lineHeight:23.25},head:{color:"#000000",fontSize:17,fontWeight:"400",lineHeight:26.34375},headTitle:{color:"#000000",fontSize:26,fontWeight:"700",lineHeight:27.296875,letterSpacing:-.78},headLine:{color:"#6b6b6b",fontSize:14,fontWeight:"400",lineHeight:18.890625},way:{color:"#000000",fontSize:17,fontWeight:"400",lineHeight:26.34375},wayTitle:{color:"#000000",fontSize:24,fontWeight:"700",lineHeight:26.390625,letterSpacing:-.6},tl:{color:"#000000",fontSize:17,fontWeight:"400",lineHeight:26.34375},tlRow:{color:"#000000",fontSize:17,fontWeight:"400",lineHeight:26.34375},date:{color:"#000000",fontSize:17,fontWeight:"400",lineHeight:17,fontVariant:["tabular-nums"]},dateSmall:{color:"#6b6b6b",fontSize:12,fontWeight:"700",lineHeight:12,letterSpacing:.48,textTransform:"uppercase",fontVariant:["tabular-nums"]},dateBig:{color:"#000000",fontSize:22,fontWeight:"700",lineHeight:22,letterSpacing:-.66,fontVariant:["tabular-nums"]},dateToday:{color:"#000000",fontSize:17,fontWeight:"400",lineHeight:17,fontVariant:["tabular-nums"]},dateTodaySmall:{color:"#ffffff",fontSize:12,fontWeight:"700",lineHeight:12,letterSpacing:.48,textTransform:"uppercase",fontVariant:["tabular-nums"]},dateTodayBig:{color:"#ffffff",fontSize:22,fontWeight:"700",lineHeight:22,letterSpacing:-.66,fontVariant:["tabular-nums"]},dateOutSmall:{color:"#c03410",fontSize:12,fontWeight:"700",lineHeight:12,letterSpacing:.48,textTransform:"uppercase",fontVariant:["tabular-nums"]},dateOutBig:{color:"#c03410",fontSize:22,fontWeight:"700",lineHeight:22,letterSpacing:-.66,fontVariant:["tabular-nums"]},say:{color:"#000000",fontSize:17,fontWeight:"400",lineHeight:26.34375},sayTitle:{color:"#000000",fontSize:16,fontWeight:"700",lineHeight:20,letterSpacing:-.16},sayLine:{color:"#6b6b6b",fontSize:15,fontWeight:"400",lineHeight:20.25},sayOutTitle:{color:"#c03410",fontSize:16,fontWeight:"700",lineHeight:20,letterSpacing:-.16},run:{color:"#000000",fontSize:17,fontWeight:"400",lineHeight:26.34375},pkg:{color:"#000000",fontSize:17,fontWeight:"400",lineHeight:26.34375},pkgWhen:{color:"#000000",fontSize:16,fontWeight:"700",lineHeight:20,letterSpacing:-.16},pkgWhat:{color:"#6b6b6b",fontSize:14,fontWeight:"400",lineHeight:18.890625},pkgNow:{color:"#000000",fontSize:14,fontWeight:"500",lineHeight:18.1875},pkgDot:{color:"#000000",fontSize:14,fontWeight:"500",lineHeight:18.1875},steps:{color:"#000000",fontSize:17,fontWeight:"400",lineHeight:26.34375},step:{color:"#000000",fontSize:17,fontWeight:"400",lineHeight:26.34375},stepDone:{color:"#000000",fontSize:17,fontWeight:"400",lineHeight:26.34375},tile:{color:"#000000",fontSize:17,fontWeight:"400",lineHeight:26.34375},tileCount:{color:"#ffffff",fontSize:12,fontWeight:"700",lineHeight:12},sec:{color:"#000000",fontSize:17,fontWeight:"400",lineHeight:26.34375},secHead:{color:"#000000",fontSize:17,fontWeight:"400",lineHeight:26.34375},secTitle:{color:"#000000",fontSize:20,fontWeight:"700",lineHeight:23,letterSpacing:-.4},secSub:{color:"#6b6b6b",fontSize:13,fontWeight:"400",lineHeight:20.140625},refs:{color:"#000000",fontSize:17,fontWeight:"400",lineHeight:26.34375},ref:{color:"#000000",fontSize:17,fontWeight:"400",lineHeight:26.34375},refName:{color:"#000000",fontSize:16,fontWeight:"700",lineHeight:20,letterSpacing:-.16},refNameLink:{color:"#000000",fontSize:16,fontWeight:"700",lineHeight:20,letterSpacing:-.16},rx:{color:"#000000",fontSize:12,fontWeight:"700",lineHeight:12,letterSpacing:-.16},refMeta:{color:"#6b6b6b",fontSize:13,fontWeight:"400",lineHeight:17.546875},when:{color:"#000000",fontSize:17,fontWeight:"400",lineHeight:17,textAlign:"right"},whenSmall:{color:"#6b6b6b",fontSize:12,fontWeight:"700",lineHeight:12,letterSpacing:.48,textTransform:"uppercase",textAlign:"right"},whenBig:{color:"#000000",fontSize:24,fontWeight:"700",lineHeight:24,letterSpacing:-.84,textAlign:"right",fontVariant:["tabular-nums"]},whenPausedBig:{color:"#6b6b6b",fontSize:17,fontWeight:"700",lineHeight:17,letterSpacing:-.17,textAlign:"right",fontVariant:["tabular-nums"]},vet:{color:"#000000",fontSize:13,fontWeight:"400",lineHeight:17.546875},vetIcon:{color:"#ca4463",fontSize:13,fontWeight:"400",lineHeight:17.546875},vetLeaf:{color:"#16864a",fontSize:13,fontWeight:"400",lineHeight:17.546875},vetSmall:{color:"#6b6b6b",fontSize:12,fontWeight:"400",lineHeight:16.1875},pips:{color:"#000000",fontSize:13,fontWeight:"400",lineHeight:17.546875},pip:{color:"#000000",fontSize:13,fontWeight:"400",lineHeight:17.546875},note:{color:"#000000",fontSize:13,fontWeight:"500",lineHeight:17.546875},noteButton:{color:"#000000",fontSize:13,fontWeight:"700",lineHeight:17.546875,textDecorationLine:"underline",textAlign:"center"},acts:{color:"#000000",fontSize:17,fontWeight:"400",lineHeight:26.34375},btn:{color:"#000000",fontSize:14,fontWeight:"700",lineHeight:21.6875,textAlign:"center"},btnIcon:{color:"#ffffff",fontSize:14,fontWeight:"700",lineHeight:21.6875},btnGo:{color:"#000000",fontSize:14,fontWeight:"700",lineHeight:21.6875,textAlign:"center"},btnInk:{color:"#ffffff",fontSize:14,fontWeight:"700",lineHeight:21.6875},shelf:{color:"#000000",fontSize:17,fontWeight:"400",lineHeight:26.34375},item:{color:"#000000",fontSize:17,fontWeight:"400",lineHeight:26.34375},itemImg:{color:"#000000",fontSize:17,fontWeight:"400",lineHeight:26.34375},itemPhoto:{color:"#000000",fontSize:17,fontWeight:"400",lineHeight:26.34375},itemPrice:{color:"#000000",fontSize:16,fontWeight:"700",lineHeight:24.796875,letterSpacing:-.16,fontVariant:["tabular-nums"]},itemName:{color:"#000000",fontSize:14,fontWeight:"500",lineHeight:18.1875},itemMeta:{color:"#6b6b6b",fontSize:12,fontWeight:"400",lineHeight:16.1875},itemMetaDue:{color:"#b25e05",fontSize:12,fontWeight:"500",lineHeight:16.1875},more:{color:"#000000",fontSize:15,fontWeight:"700",lineHeight:18.75},moreIcon:{color:"#b6407f",fontSize:15,fontWeight:"700",lineHeight:18.75},moreLabel:{color:"#000000",fontSize:15,fontWeight:"700",lineHeight:18.75},stepper:{color:"#000000",fontSize:17,fontWeight:"400",lineHeight:26.34375},stepperButton:{color:"#000000",fontSize:13.333,fontWeight:"400",textAlign:"center"},stepperIcon:{color:"#000000",fontSize:13.333,fontWeight:"400",textAlign:"center"},stepperPlusOut:{color:"#000000",fontSize:13.333,fontWeight:"400",textAlign:"center"},past:{color:"#000000",fontSize:17,fontWeight:"400",lineHeight:26.34375},order:{color:"#000000",fontSize:17,fontWeight:"400",lineHeight:26.34375},orderTop:{color:"#000000",fontSize:17,fontWeight:"400",lineHeight:26.34375},orderMeta:{color:"#6b6b6b",fontSize:13,fontWeight:"400",lineHeight:17.546875},orderDay:{color:"#000000",fontSize:16,fontWeight:"700",lineHeight:20,letterSpacing:-.16},orderTotal:{color:"#000000",fontSize:16,fontWeight:"700",lineHeight:24.796875,fontVariant:["tabular-nums"]},shots:{color:"#000000",fontSize:17,fontWeight:"400",lineHeight:26.34375},shot:{color:"#000000",fontSize:17,fontWeight:"400",lineHeight:26.34375,textDecorationLine:"underline"},shotPhoto:{color:"#000000",fontSize:17,fontWeight:"400",lineHeight:26.34375},orderActs:{color:"#000000",fontSize:17,fontWeight:"400",lineHeight:26.34375},orderBtn:{color:"#000000",fontSize:14,fontWeight:"700",lineHeight:21.6875},help:{color:"#10462e",fontSize:15,fontWeight:"700",lineHeight:20.25},helpIcon:{color:"#10462e",fontSize:15,fontWeight:"700",lineHeight:20.25},helpChevron:{color:"#819d90",fontSize:15,fontWeight:"700",lineHeight:20.25},helpLabel:{color:"#10462e",fontSize:15,fontWeight:"700",lineHeight:20.25},legal:{color:"#6b6b6b",fontSize:13,fontWeight:"400",lineHeight:20.796875,textAlign:"center"},legalText:{color:"#6b6b6b",fontSize:13,fontWeight:"400",lineHeight:20.796875,textAlign:"center"},backdrop:{color:"#000000",fontSize:17,fontWeight:"400",lineHeight:26.34375},sheet:{color:"#000000",fontSize:17,fontWeight:"400",lineHeight:26.34375},sheetGrab:{color:"#000000",fontSize:17,fontWeight:"400",lineHeight:26.34375},sheetGrabBar:{color:"#000000",fontSize:17,fontWeight:"400",lineHeight:26.34375},sheetHead:{color:"#000000",fontSize:17,fontWeight:"400",lineHeight:26.34375},sheetTitle:{color:"#10462e",fontSize:18,fontWeight:"700",lineHeight:22.5,letterSpacing:-.36},sheetClose:{color:"#10462e",fontSize:13.333,fontWeight:"400",textAlign:"center"},sheetCloseIcon:{color:"#10462e",fontSize:13.333,fontWeight:"400",textAlign:"center"},sheetBody:{color:"#000000",fontSize:17,fontWeight:"400",lineHeight:26.34375},sheetItem:{color:"#000000",fontSize:17,fontWeight:"400",lineHeight:26.34375},sheetItemText:{color:"#6b6b6b",fontSize:13,fontWeight:"400",lineHeight:17.546875},sheetItemName:{color:"#000000",fontSize:16,fontWeight:"700",lineHeight:21.59375},sheetSayWarn:{color:"#000000",fontSize:15,fontWeight:"400",lineHeight:21.75},sheetSayIcon:{color:"#b25e05",fontSize:15,fontWeight:"400",lineHeight:21.75},sheetActs:{color:"#000000",fontSize:17,fontWeight:"400",lineHeight:26.34375},sheetGo:{color:"#ffffff",fontSize:16,fontWeight:"700",lineHeight:24.796875,textAlign:"center"},sheetKeep:{color:"#000000",fontSize:16,fontWeight:"700",lineHeight:24.796875,textAlign:"center"},sheetSay:{color:"#000000",fontSize:15,fontWeight:"400",lineHeight:21.75},choices:{color:"#000000",fontSize:17,fontWeight:"400",lineHeight:26.34375},choice:{color:"#000000",fontSize:17,fontWeight:"400",lineHeight:26.34375},choiceOn:{color:"#000000",fontSize:17,fontWeight:"400",lineHeight:26.34375},radioOff:{color:"#000000",fontSize:13.333,fontWeight:"400"},radioOn:{color:"#000000",fontSize:13.333,fontWeight:"400"},choiceTitle:{color:"#10462e",fontSize:17,fontWeight:"700",lineHeight:22.09375},choiceEnd:{color:"#6b6b6b",fontSize:13,fontWeight:"400",lineHeight:20.140625},stepperIn:{color:"#ffffff",fontSize:17,fontWeight:"400",lineHeight:26.34375},stepperCount:{color:"#ffffff",fontSize:15,fontWeight:"700",lineHeight:23.25,textAlign:"center",fontVariant:["tabular-nums"]},bar:{color:"#000000",fontSize:17,fontWeight:"400",lineHeight:26.34375},thumbs:{color:"#000000",fontSize:17,fontWeight:"400",lineHeight:26.34375},thumb:{color:"#000000",fontSize:17,fontWeight:"400",lineHeight:26.34375},thumbCount:{color:"#ffffff",fontSize:12,fontWeight:"700",lineHeight:12,fontVariant:["tabular-nums"]},barSum:{color:"#000000",fontSize:17,fontWeight:"400",lineHeight:26.34375},barTotal:{color:"#000000",fontSize:17,fontWeight:"700",lineHeight:18.6875,letterSpacing:-.17,fontVariant:["tabular-nums"]},barSub:{color:"#6b6b6b",fontSize:12,fontWeight:"400",lineHeight:15},barGo:{color:"#000000",fontSize:15,fontWeight:"700",lineHeight:23.25}},Le={body:{font:"sans"},subtabs:{font:"sans",lineBottom:{width:1,color:"#e4e4e4"}},subtab:{font:"sans"},subtabCurrent:{font:"sans",insetBottom:{width:3,color:"#07c168"}},head:{font:"sans"},headTitle:{font:"sans"},headLine:{font:"sans",wrap:"pretty"},way:{font:"sans"},wayTitle:{font:"sans",wrap:"pretty"},tl:{font:"sans"},tlRow:{font:"sans"},date:{font:"sans",wrap:"pretty"},dateSmall:{font:"mono",wrap:"pretty"},dateBig:{font:"sans",wrap:"pretty"},dateToday:{font:"sans",wrap:"pretty"},dateTodaySmall:{font:"mono",wrap:"pretty"},dateTodayBig:{font:"sans",wrap:"pretty"},dateOutSmall:{font:"mono",wrap:"pretty"},dateOutBig:{font:"sans",wrap:"pretty"},say:{font:"sans",wrap:"pretty"},sayTitle:{font:"sans",wrap:"pretty"},sayLine:{font:"sans",wrap:"pretty"},sayOutTitle:{font:"sans",wrap:"pretty"},run:{font:"sans"},pkg:{font:"sans"},pkgWhen:{font:"sans",wrap:"pretty"},pkgWhat:{font:"sans",wrap:"pretty"},pkgNow:{font:"sans",wrap:"pretty"},pkgDot:{font:"sans",wrap:"pretty"},steps:{font:"sans"},step:{font:"sans"},stepDone:{font:"sans"},tile:{font:"sans"},tileCount:{font:"sans"},sec:{font:"sans"},secHead:{font:"sans"},secTitle:{font:"sans",wrap:"pretty"},secSub:{font:"sans"},refs:{font:"sans"},ref:{font:"sans"},refName:{font:"sans",wrap:"pretty"},refNameLink:{font:"sans",wrap:"pretty"},rx:{font:"mono",wrap:"pretty"},refMeta:{font:"sans",wrap:"pretty"},when:{font:"sans",wrap:"pretty"},whenSmall:{font:"mono",wrap:"pretty"},whenBig:{font:"sans",wrap:"pretty"},whenPausedBig:{font:"sans",wrap:"pretty"},vet:{font:"sans",wrap:"pretty"},vetIcon:{font:"sans",wrap:"pretty"},vetLeaf:{font:"sans",wrap:"pretty"},vetSmall:{font:"sans",wrap:"pretty"},pips:{font:"sans",wrap:"pretty"},pip:{font:"sans",wrap:"pretty"},note:{font:"sans",wrap:"pretty"},noteButton:{font:"sans",underlineOffset:3,wrap:"pretty"},acts:{font:"sans"},btn:{font:"sans"},btnIcon:{font:"sans"},btnGo:{font:"sans"},btnInk:{font:"sans"},shelf:{font:"sans"},item:{font:"sans"},itemImg:{font:"sans"},itemPhoto:{font:"sans"},itemPrice:{font:"sans",wrap:"pretty"},itemName:{font:"sans",wrap:"balance"},itemMeta:{font:"sans",wrap:"pretty"},itemMetaDue:{font:"sans",wrap:"pretty"},more:{font:"sans",ring:{width:1.5,color:"#f3f3f3"}},moreIcon:{font:"sans"},moreLabel:{font:"sans"},stepper:{font:"sans"},stepperButton:{font:"sans"},stepperIcon:{font:"sans"},stepperPlusOut:{font:"sans"},past:{font:"sans"},order:{font:"sans"},orderTop:{font:"sans"},orderMeta:{font:"sans",wrap:"pretty"},orderDay:{font:"sans",wrap:"pretty"},orderTotal:{font:"sans"},shots:{font:"sans"},shot:{font:"sans"},shotPhoto:{font:"sans"},orderActs:{font:"sans"},orderBtn:{font:"sans"},help:{font:"sans"},helpIcon:{font:"sans"},helpChevron:{font:"sans"},helpLabel:{font:"sans"},legal:{font:"sans"},legalText:{font:"sans",wrap:"balance"},backdrop:{font:"sans"},sheet:{font:"sans"},sheetGrab:{font:"sans"},sheetGrabBar:{font:"sans"},sheetHead:{font:"sans"},sheetTitle:{font:"sans",wrap:"pretty"},sheetClose:{font:"sans"},sheetCloseIcon:{font:"sans"},sheetBody:{font:"sans"},sheetItem:{font:"sans"},sheetItemText:{font:"sans",wrap:"pretty"},sheetItemName:{font:"sans",wrap:"pretty"},sheetSayWarn:{font:"sans",wrap:"pretty"},sheetSayIcon:{font:"sans",wrap:"pretty"},sheetActs:{font:"sans"},sheetGo:{font:"sans"},sheetKeep:{font:"sans"},sheetSay:{font:"sans",wrap:"pretty"},choices:{font:"sans"},choice:{font:"sans"},choiceOn:{font:"sans"},radioOff:{font:"sans"},radioOn:{font:"sans"},choiceTitle:{font:"sans"},choiceEnd:{font:"sans"},stepperIn:{font:"sans"},stepperCount:{font:"sans"},bar:{font:"sans",drop:{x:0,y:10,blur:30,spread:0,color:"rgba(0, 0, 0, 0.16)"}},thumbs:{font:"sans"},thumb:{font:"sans"},thumbCount:{font:"sans"},barSum:{font:"sans",wrap:"pretty"},barTotal:{font:"sans",wrap:"pretty"},barSub:{font:"sans",wrap:"pretty"},barGo:{font:"sans"}},Be={chevron:{size:20,uri:"data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAADwAAAA8CAQAAACQ9RH5AAABfklEQVR4Ae3BPWoWQQAA0LeZz9gMeA1rywFzBsVSELzDbpEUgj9osVuJN8gF7Af1ChIsxRsIgm1iJMWw7cxsCsF9z2632+3+eUG9p14bfHMrglrPnLvviYMvbkFQ59hH99w4EWWbHal1rRjNNgvqXPnlkSK547NNglpfRUlxIso2COplUVIkUdYtaJFFSZFEWaegTRYlRRJlXYJWWZQUSZR1CNplUVIkUdYs6JFFSZFEWaOgTxYlRRJlTYJeWZQUSZQ1CPplUVIkUVYt2CKLkiKJskrBNtldDxXJDxeqBFt9EiXFAx/8UeHIdr9dKq5VOtjqrVOrFy5VOdhmNlotzlUabDEbrRaTaoN+s9FqMWkw6DUbrRaTJoM+s9FqMWk06DEbrRaTZoN2s9FqMekwaDUbrRaTLoM2s9FqMek0aDEbrRaTboN6s9FqMdngoNZzo9U7ZzY5UufYS6vFmY2O1LpWLCabBXWu/PTYjTdO3YKg1oXvDl55b7fb7Xb/ib+2W04he97hEgAAAABJRU5ErkJggg=="},minus:{size:18,uri:"data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAADYAAAA2CAQAAAAmTKJWAAAAVklEQVR4Ae3BsRFAQBBA0X+bXjlXlJhCiHWlFgUYuRWYY0T/PSRJkqQHCncqjaDfwcZOUshGZt6bWLgIsoEvDCTBj4Js5QsrSeFOpRH0O9jYkSRJkrqcfrkKCu2Ez5QAAAAASUVORK5CYII="},plus:{size:18,uri:"data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAADYAAAA2CAQAAAAmTKJWAAAA20lEQVR4Ae3BMU4CURiF0W8uhE7Yg2xg2IKtC5kaE2obOxOmomA1BheAsww7k2kMFIQQQ+N7CfkDuYW+cyiK4m+piFvQACtagkTUHS9MmfLMiCAR9ciIkwkPBImoT86+CRJGwkgYCSNhJIyEkTASRsJIGA3JGVMj8mrOZlTkHejoSVSk5iy53hMtv4hUwy00JISRSK25hTWJipwxNSKvpuXHnI68Ax09iSE5Pe9c9sGGEGEkjISRMBJGwkgYCSNhJIyEkTASUVv2nOzZEjQgaseOe7545Y2iKP63I9OgHat5t8MpAAAAAElFTkSuQmCC"},bag:{size:24,uri:"data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAEgAAABICAQAAAD/5HvMAAADGElEQVR4Ae3BT2jVdQAA8M/7vtceSR5sMV5FMSFIsmmJoHWqFkIpTbxsNewSHRQLoVrgoUseZKTYzL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Byt3lJpl+Y9LrmPvCSo4562duaG/edUDZvhTk3u0Lok8ff7tOKrT6SudKNPiOZc4Pwoa8th499JlxtVjLnEuFzy+VrodusZM5Pwk2Wy1phyqxkzjfCzZ50gTOtaNS1wudmrTBnrymrZMrKltNXvjMrmXPcY/4v281LMnu87f/wivfMaxPe0eE6Bcunali/4+YVLHS5rW60ynnOrN/94FMvmnLWWcvvH7Y60heQz4TcAAAAAElFTkSuQmCC"}};function Ne(){return C()}function qe(){return Ne().useKit()}function Me(){return Ne().useShopNativeNav()}function Pe(){return Ne().useShopV3Host()}function CareTabs(t){return e(Ne().CareTabs,t)}function LoadFailed(t){return e(Ne().LoadFailed,t)}function Ke(){let{options:e}=qe(),t=e.fonts;return i(()=>{let e=/* @__PURE__ */new Map,n=/* @__PURE__ */new Map,o=n=>{let o=e.get(n);if(!o){let{fontWeight:r,...i}=Oe[n];o={...i,...Ge(Le[n].font==="mono"?t?.mono:t?.sans,r)},e.set(n,o)}return o};return{v:e=>Ue[e],t(e){let t=n.get(e);return t||(t={...Ue[e],...o(e)},n.set(e,t)),t},tx:o}},[t])}function De(e){return Oe[e].color??"#000000"}function Fe(e,t){let n=Ue[e][t];return typeof n=="number"?n:0}function Je(e){let t=Le[e].wrap;return t?m.OS==="web"?{style:{textWrap:t},props:{}}:{style:null,props:m.OS==="ios"?{lineBreakStrategyIOS:"standard"}:{textBreakStrategy:"balanced"}}:{style:null,props:{}}}function CoT({k:t,bare:n,style:o,lines:r,role:i,children:l}){let a=Ke(),s=Je(t);return e(h,{style:[n?a.tx(t):a.t(t),s.style,o],...s.props,...r?{numberOfLines:r}:{},...i?{accessibilityRole:i}:{}},l)}function CoIcon({name:t,k:n,ink:o,style:r}){let i=Ue[n],l=i.width??Be[t].size;return e(y,{source:{uri:Be[t].uri},style:[{width:l,height:l,tintColor:De(o??n)},i.marginTop?{marginTop:i.marginTop}:null,r],accessible:false,importantForAccessibility:"no",resizeMode:"contain"})}function CoRing({k:t}){let n=Le[t].ring;if(!n)return null;let o=Ue[t].borderRadius??0,r=m.OS==="web"?{boxShadow:`inset 0 0 0 ${n.width}px ${n.color}`}:{borderWidth:n.width,borderColor:n.color};return e(d,{pointerEvents:"none",style:[{position:"absolute",top:0,right:0,bottom:0,left:0,borderRadius:o},r]})}function Ee(e){let t=Le[e].drop;return t?m.OS==="web"?{boxShadow:`${t.x}px ${t.y}px ${t.blur}px ${t.spread}px ${t.color}`}:{shadowColor:t.color,shadowOpacity:1,shadowRadius:t.blur/2,shadowOffset:{width:t.x,height:t.y},elevation:Math.round(t.blur/3)}:null}function CoTile({uri:e,count:t,k:n="tile",bg:o}){let r=Ke();/* @__PURE__ */
4
+ return w(d,{style:[r.v(n),o?{backgroundColor:Ue[o].backgroundColor}:null],children:[e?/* @__PURE__ */v(Photo,{uri:e}):null,t&&t>1?/* @__PURE__ */v(d,{style:[r.v("tileCount"),Ye],children:/* @__PURE__ */v(CoT,{k:"tileCount",bare:true,children:t})}):null]})}function Photo({uri:t,style:n}){return e(y,{source:{uri:t},resizeMode:"contain",accessible:false,accessibilityElementsHidden:true,importantForAccessibility:"no-hide-descendants",style:[{width:"100%",height:"100%"},n]})}function Ze(e,t,n,o){let r=null;return i=>(r??=b.bezier(e,t,n,o))(i)}var Ye={alignItems:"center",justifyContent:"center"},Qe={flexDirection:"row",alignItems:"center"};var Xe=Ze(.23,1,.32,1),je=Fe("acts","rowGap"),$e=Fe("body","paddingLeft");function CartBar({bar:e,copy:t,onHeight:r,onShown:i}){let l=Ke(),a=Me(),s=Pe(),u=He(void 0),f=o(new p.Value(0)).current,c=o(new p.Value(1)).current,h=o(null),g=e!==null;if(n(()=>{i?.(g),g||r(0)},[g]),n(()=>()=>i?.(false),[]),n(()=>{let t=h.current;h.current=e,!(!e||u())&&(t?e.count>t.count&&(c.setValue(1),p.sequence([p.timing(c,{toValue:1.12,duration:120,easing:b.out(b.ease),useNativeDriver:true}),p.timing(c,{toValue:1,duration:120,easing:b.out(b.ease),useNativeDriver:true})]).start()):(f.setValue(1),p.timing(f,{toValue:0,duration:240,easing:Xe,useNativeDriver:true}).start()))},[e]),!e)return null;let y=e=>r(e.nativeEvent.layout.height+je),m=e.thumbs.filter(e=>e!==null),S=f.interpolate({inputRange:[0,1],outputRange:[0,l.v("bar").minHeight+et]});/* @__PURE__ */
5
+ return w(p.View,{onLayout:y,style:[l.v("bar"),Qe,Ee("bar"),{position:"absolute",left:$e,right:$e,bottom:s.bottomInset+je,transform:[{translateY:S}]}],testID:"shop-orders-cartbar",children:[
6
+ /* @__PURE__ */w(p.View,{style:[l.v("thumbs"),Qe,_e,{transform:[{scale:c}]}],accessibilityElementsHidden:true,importantForAccessibility:"no-hide-descendants",children:[m.map((e,t)=>/* @__PURE__ */v(d,{style:[l.v("thumb"),t>0?{marginLeft:-18}:null],children:/* @__PURE__ */v(Photo,{uri:e})},`${t}:${e}`)),m.length===0?/* @__PURE__ */v(d,{style:[l.v("thumb"),{opacity:0}]}):null,
7
+ /* @__PURE__ */v(d,{style:[l.v("thumbCount"),Ye],children:/* @__PURE__ */v(CoT,{k:"thumbCount",bare:true,children:e.count})})]}),
8
+ /* @__PURE__ */w(d,{style:[l.v("barSum"),{flex:1,minWidth:0}],children:[e.total?/* @__PURE__ */v(CoT,{k:"barTotal",children:e.total}):null,
9
+ /* @__PURE__ */v(CoT,{k:"barSub",children:e.sub})]}),
10
+ /* @__PURE__ */v(Press,{role:"link",onPress:()=>a.go({name:"cart"}),style:[l.v("barGo"),Ye],children:/* @__PURE__ */v(CoT,{k:"barGo",bare:true,children:t.checkout})})]})}var _e={height:44},et=24;var tt=640,nt=600,ot=/* @__PURE__ */Object.freeze({width:0,height:0}),rt="useWindowDimensions"in a&&typeof a.useWindowDimensions=="function"?a.useWindowDimensions:()=>ot,it=/* @__PURE__ */Object.freeze({width:"100%",maxWidth:tt,alignSelf:"center"});/* @__PURE__ */Object.freeze({...it,flex:1});var lt=/* @__PURE__ */Object.freeze({...it,flexGrow:1,flexShrink:1});function at(){return rt().width>=nt}function st(e="flow"){let{width:t}=rt();if(t<nt)return null;if(e==="flow")return it;let n=Math.max(0,Math.round((t-tt)/2));return{left:n,right:n}}function dt(e,t){return t===null?e:[e,t]}function ut(){return at()?lt:null}var ft=Ze(.32,.72,0,1),ct={top:4,bottom:4,left:4,right:4},ht=De("dateOutBig"),pt=Fe("acts","marginTop")-Fe("sheetActs","rowGap"),gt={flex:1,minWidth:0,lineHeight:Oe.choice.lineHeight};function ManageSheet({copy:e,open:r,busy:i,failed:l,onGo:a,onClose:s}){let u=Ke(),f=Pe(),c=He(void 0),[h,y]=t(r),[m,b]=t(r!==null);r&&r!==h&&y(r),r&&!m&&b(true);let[A,T]=t(r?.sheet.picked??null);n(()=>T(r?.sheet.picked??null),[r?.card.planId,r?.sheet.mode,r?.sheet.picked]);let W=o(600),C=o(new p.Value(0)).current,I=o(i);I.current=i;let R=o(s);R.current=s,n(()=>{if(r){if(c()){C.setValue(0);return}C.setValue(W.current),p.timing(C,{toValue:0,duration:240,easing:ft,useNativeDriver:true}).start();return}if(!m)return;let e=()=>{b(false),y(null)};if(c())return e();p.timing(C,{toValue:W.current,duration:240,easing:ft,useNativeDriver:true}).start(e)},[r]);let z=()=>{I.current||R.current()},x=o(S.create({onMoveShouldSetPanResponder:(e,t)=>t.dy>4&&Math.abs(t.dy)>Math.abs(t.dx),onPanResponderMove:(e,t)=>C.setValue(Math.max(0,t.dy)),onPanResponderRelease:(e,t)=>{if(!I.current&&(t.dy>W.current*.3||t.vy>.11)){R.current();return}c()?C.setValue(0):p.timing(C,{toValue:0,duration:240,easing:ft,useNativeDriver:true}).start()},onPanResponderTerminate:()=>C.setValue(0)})).current,H=st(),G=r??h,V=G?.card,U=G?.sheet,O=e=>{W.current=e.nativeEvent.layout.height};/* @__PURE__ */
11
+ return v(k,{visible:m,transparent:true,animationType:"none",onRequestClose:z,statusBarTranslucent:true,children:/* @__PURE__ */w(d,{style:{flex:1,justifyContent:"flex-end"},children:[
12
+ /* @__PURE__ */v(g,{style:[{position:"absolute",top:0,right:0,bottom:0,left:0},u.v("backdrop")],onPress:z,accessibilityRole:"button",accessibilityLabel:e.close}),
13
+ /* @__PURE__ */w(p.View,{style:[dt(u.v("sheet"),H),{paddingBottom:Math.max(u.v("sheet").paddingBottom,f.screenBottomInset),transform:[{translateY:C}]}],accessibilityViewIsModal:true,onLayout:O,testID:"shop-orders-sheet",children:[
14
+ /* @__PURE__ */w(d,{...x.panHandlers,children:[
15
+ /* @__PURE__ */v(d,{style:[u.v("sheetGrab"),Ye],accessibilityElementsHidden:true,importantForAccessibility:"no-hide-descendants",children:/* @__PURE__ */v(d,{style:u.v("sheetGrabBar")})}),
16
+ /* @__PURE__ */w(d,{style:[u.v("sheetHead"),Qe,{justifyContent:"space-between"}],children:[
17
+ /* @__PURE__ */v(CoT,{k:"sheetTitle",role:"header",style:{flex:1,minWidth:0},children:U?.title??e.sheetTitle}),
18
+ /* @__PURE__ */v(Press,{label:e.close,onPress:z,hitSlop:ct,style:[u.v("sheetClose"),Ye],children:/* @__PURE__ */v(CoIcon,{name:"x",k:"sheetCloseIcon"})})]})]}),V&&U?/* @__PURE__ */w(d,{style:u.v("sheetBody"),children:[
19
+ /* @__PURE__ */w(d,{style:[u.v("sheetItem"),Qe],children:[
20
+ /* @__PURE__ */v(CoTile,{uri:V.imageUrl,bg:"pkg"}),
21
+ /* @__PURE__ */w(d,{style:{flex:1,minWidth:0},children:[
22
+ /* @__PURE__ */v(CoT,{k:"sheetItemName",children:V.name}),
23
+ /* @__PURE__ */v(CoT,{k:"sheetItemText",children:U.itemMeta})]})]}),U.mode==="change"?/* @__PURE__ */v(d,{style:u.v("choices"),accessibilityRole:"radiogroup",accessibilityLabel:e.changeTitle,children:U.choices.map(e=>{let t=A===e.key;/* @__PURE__ */
24
+ return w(Press,{role:"radio",selected:t,label:e.price?`${e.label}, ${e.price}`:e.label,onPress:()=>T(e.key),style:[u.v(t?"choiceOn":"choice"),Qe],children:[
25
+ /* @__PURE__ */v(d,{style:u.v(t?"radioOn":"radioOff")}),
26
+ /* @__PURE__ */v(CoT,{k:"choiceTitle",bare:true,style:gt,children:e.label}),e.price?/* @__PURE__ */v(CoT,{k:"choiceEnd",bare:true,children:e.price}):null]},e.key)})}):null,U.say?U.say.warn?/* @__PURE__ */w(d,{style:[u.v("sheetSayWarn"),{flexDirection:"row",alignItems:"flex-start"}],children:[
27
+ /* @__PURE__ */v(CoIcon,{name:"alert",k:"sheetSayIcon"}),
28
+ /* @__PURE__ */v(CoT,{k:"sheetSayWarn",bare:true,style:{flex:1,minWidth:0},children:U.say.text})]}):/* @__PURE__ */v(CoT,{k:"sheetSay",children:U.say.text}):null,
29
+ /* @__PURE__ */w(d,{style:u.v("sheetActs"),children:[l?/* @__PURE__ */v(d,{accessibilityRole:"alert",accessibilityLiveRegion:"polite",style:{marginBottom:pt},children:/* @__PURE__ */v(CoT,{k:"pkgNow",bare:true,style:{color:ht},children:e.saveFailed})}):null,U.go?/* @__PURE__ */v(Press,{disabled:i,onPress:()=>a(U.mode==="change"?U.choices.find(e=>e.key===A)??null:null),style:[u.v("sheetGo"),Ye],children:/* @__PURE__ */v(CoT,{k:"sheetGo",bare:true,children:U.go})}):null,
30
+ /* @__PURE__ */v(Press,{onPress:z,style:[u.v("sheetKeep"),Ye],children:/* @__PURE__ */v(CoT,{k:"sheetKeep",bare:true,children:e.keep})})]})]}):null]})]})})}var yt=Ze(.23,1,.32,1),mt=De("dateOutBig"),bt=De("itemMetaDue"),St={top:2,bottom:2,left:0,right:0},kt={top:4,bottom:4,left:4,right:4},vt={top:12,bottom:12,left:4,right:4};function OrdersV2Screen({tabs:e,copy:i,onHelp:l,onCartBar:a}){let c=I(),{client:h}=c,p=Ke(),g=Me(),y=ze(i),m=z(h),b=U(),S=qe(),k=xe(),[T,W]=t(null),[C,R]=t(null),[x,H]=t(null),[G,V]=t(false),[O,L]=t(0),[B,N]=t(false);n(()=>{y.phase==="ready"&&N(true)},[y.phase]);let q=o(y.reread);q.current=y.reread,n(()=>Ve(()=>{q.current()}),[]);let M=r(async(e,t)=>{let n=await k.run(e);return!n||!n.ok?false:(y.saved(n.value),k.reset(),R(t=>({planId:e.planId,n:(t?.n??0)+1})),(e.mode==="skip"||e.mode==="change"||e.mode==="pause")&&s.announceForAccessibility?.(be(e.mode,t,n.value,i)),true)},[k,y,i]),P=r(e=>{for(let t of e)b.add(h,t)},[h,b]),K=y.view,D=T&&K?K.refills.find(e=>e.planId===T.planId)??null:null,F=D&&T?{card:D,sheet:me(T.mode,D,i)}:null,J;return y.phase==="failed"?J=/* @__PURE__ */v(LoadFailed,{copy:c.copy,thing:c.copy.thingOrders,retry:y.retry}):y.phase==="loading"||!K?J=/* @__PURE__ */v(Loading,{copy:i,title:c.pets.length===1?i.title(c.pets[0].name):c.copy.ordersTitle}):J=/* @__PURE__ */w(A,{children:[
31
+ /* @__PURE__ */w(d,{style:p.v("head"),children:[
32
+ /* @__PURE__ */v(CoT,{k:"headTitle",role:"header",children:K.title}),
33
+ /* @__PURE__ */v(CoT,{k:"headLine",children:K.autoLine})]}),
34
+ /* @__PURE__ */w(d,{style:p.v("way"),children:[
35
+ /* @__PURE__ */v(CoT,{k:"wayTitle",role:"header",children:K.hero.headline}),K.hero.rows.length>0?/* @__PURE__ */v(d,{style:p.v("tl"),children:K.hero.rows.map((e,t)=>/* @__PURE__ */v(Mark,{index:t,play:!B,children:/* @__PURE__ */v(HeroRow,{row:e,copy:i,cart:m,onRefill:e=>P([e])})},e.key))}):null]}),K.refills.length>0?/* @__PURE__ */w(d,{style:p.v("sec"),children:[
36
+ /* @__PURE__ */v(SecHead,{title:i.autoTitle,sub:i.autoSub}),
37
+ /* @__PURE__ */v(d,{style:p.v("refs"),children:K.refills.map(e=>/* @__PURE__ */v(RefillCard,{card:e,copy:i,busy:k.busy,failed:x===e.planId,bump:C?.planId===e.planId?C.n:0,onSheet:t=>{k.reset(),H(null),W({mode:t,planId:e.planId})},onNow:async t=>{H(null),await M({mode:t,planId:e.planId},e)||H(e.planId)}},e.planId))})]}):null,K.again?/* @__PURE__ */w(d,{style:p.v("sec"),children:[
38
+ /* @__PURE__ */v(SecHead,{title:i.buyAgainTitle,sub:i.buyAgainSub}),
39
+ /* @__PURE__ */w(u,{horizontal:true,showsHorizontalScrollIndicator:false,style:{marginLeft:p.v("shelf").marginLeft,marginRight:p.v("shelf").marginRight},contentContainerStyle:[Qe,{alignItems:"flex-start",paddingLeft:p.v("shelf").paddingLeft,paddingRight:p.v("shelf").paddingRight,paddingBottom:p.v("shelf").paddingBottom,columnGap:p.v("shelf").columnGap}],snapToInterval:Fe("item","width")+Fe("shelf","columnGap"),decelerationRate:"fast",testID:"shop-orders-shelf",children:[K.again.map(e=>/* @__PURE__ */v(ShelfItem,{item:e,copy:i,cart:m,onAdd:e=>P([e])},e.offerId)),
40
+ /* @__PURE__ */w(Press,{role:"link",onPress:()=>g.go({name:"shop"}),style:[p.v("more"),{justifyContent:"space-between"}],children:[
41
+ /* @__PURE__ */v(CoIcon,{name:"bag",k:"moreIcon"}),
42
+ /* @__PURE__ */v(CoT,{k:"moreLabel",bare:true,children:K.moreLabel}),
43
+ /* @__PURE__ */v(CoRing,{k:"more"})]})]})]}):null,K.past.length>0?/* @__PURE__ */w(d,{style:p.v("sec"),children:[
44
+ /* @__PURE__ */v(SecHead,{title:i.pastTitle,sub:i.pastSub}),
45
+ /* @__PURE__ */v(d,{style:p.v("past"),children:K.past.map(e=>/* @__PURE__ */v(PastOrder,{order:e,copy:i,cart:m,onAdd:P},e.orderId))})]}):null]}),/* @__PURE__ */v(d,{style:{flex:1,backgroundColor:S.v("subtabs").backgroundColor},testID:"shop-orders-v2",children:/* @__PURE__ */w(OrdersColumn,{children:[e.length>1?/* @__PURE__ */v(CareTabs,{copy:c.copy,current:"orders",tabs:e}):null,
46
+ /* @__PURE__ */w(u,{style:{flex:1},contentContainerStyle:[p.v("body"),{paddingBottom:S.v("breaks").columnGap+O}],refreshControl:/* @__PURE__ */v(f,{refreshing:G,tintColor:De("headLine"),colors:[De("headLine")],onRefresh:()=>{V(true),y.reread().finally(()=>V(false))}}),children:[
47
+ /* @__PURE__ */v(d,{accessibilityState:{busy:y.phase==="loading"},children:J}),l?/* @__PURE__ */w(Press,{role:"link",onPress:l,style:[p.v("help"),Qe],children:[
48
+ /* @__PURE__ */v(CoIcon,{name:"help",k:"helpIcon"}),
49
+ /* @__PURE__ */v(CoT,{k:"helpLabel",bare:true,style:{flex:1,minWidth:0},children:i.help}),
50
+ /* @__PURE__ */v(CoIcon,{name:"chevron",k:"helpChevron"})]}):null,
51
+ /* @__PURE__ */v(d,{style:p.v("legal"),children:/* @__PURE__ */v(CoT,{k:"legalText",children:i.legal})})]}),
52
+ /* @__PURE__ */v(CartBar,{bar:y.bar,copy:i,onHeight:L,onShown:a}),
53
+ /* @__PURE__ */v(ManageSheet,{copy:i,open:F,busy:k.busy,failed:k.error!==null,onClose:()=>W(null),onGo:async e=>{if(!T||!D)return;await M({mode:T.mode,planId:T.planId,...e?ye(D,e):{}},D)&&W(null)}})]})})}function Mark({index:e,play:t,children:r}){let i=He(void 0),l=o(new p.Value(t?0:1)).current;n(()=>{if(t){if(i()){l.setValue(1);return}p.timing(l,{toValue:1,duration:240,delay:60+e*60,easing:yt,useNativeDriver:true}).start()}},[]);let a=l.interpolate({inputRange:[0,1],outputRange:[8,0]});/* @__PURE__ */
54
+ return v(p.View,{style:{opacity:l,transform:[{translateY:a}]},children:r})}function SecHead({title:e,sub:t}){let n=Ke();/* @__PURE__ */
55
+ return w(d,{style:[n.v("secHead"),{flexDirection:"row",alignItems:"baseline",justifyContent:"space-between"}],children:[
56
+ /* @__PURE__ */v(CoT,{k:"secTitle",role:"header",style:{flexShrink:1},children:e}),
57
+ /* @__PURE__ */v(CoT,{k:"secSub",children:t})]})}function Pill({label:e,kind:t="btn",icon:n,disabled:o,role:r="button",onPress:i,style:l}){let a=Ke();/* @__PURE__ */
58
+ return v(d,{style:l,children:/* @__PURE__ */w(Press,{role:r,label:e,disabled:o===true,onPress:i,hitSlop:St,style:[a.v(t),Qe,{justifyContent:"center"}],children:[n?/* @__PURE__ */v(CoIcon,{name:n,k:"btnIcon",ink:t}):null,
59
+ /* @__PURE__ */v(CoT,{k:t,bare:true,children:e})]})})}function DateBlock({day:e,today:t,out:n}){let o=Ke(),r=t?"dateToday":"date",i=t?"dateTodaySmall":n?"dateOutSmall":"dateSmall",l=t?"dateTodayBig":n?"dateOutBig":"dateBig";return e?/* @__PURE__ */w(d,{style:[o.v(r),{alignItems:"center"}],children:[
60
+ /* @__PURE__ */v(CoT,{k:i,bare:true,children:t??e.weekday}),
61
+ /* @__PURE__ */v(CoT,{k:l,bare:true,children:e.date}),
62
+ /* @__PURE__ */v(CoT,{k:i,bare:true,children:e.month})]}):/* @__PURE__ */v(d,{style:o.v(r)})}function HeroRow({row:e,copy:t,cart:n,onRefill:o}){let r=Ke();return e.kind==="today"?/* @__PURE__ */w(d,{style:[r.v("tlRow"),Qe],children:[
63
+ /* @__PURE__ */v(DateBlock,{day:e.day,today:t.today}),
64
+ /* @__PURE__ */v(Say,{title:e.title,line:e.line,out:false})]}):e.kind==="package"?/* @__PURE__ */v(PackageRow,{row:e}):/* @__PURE__ */v(RunOutRow,{row:e,copy:t,cart:n,onRefill:o})}function Say({title:e,line:t,out:n}){let o=Ke();/* @__PURE__ */
65
+ return w(d,{style:[o.v("say"),{flex:1,minWidth:0}],children:[
66
+ /* @__PURE__ */v(CoT,{k:n?"sayOutTitle":"sayTitle",bare:true,children:e}),t?/* @__PURE__ */v(CoT,{k:"sayLine",children:t}):null]})}function PackageRow({row:e}){let t=Ke(),n=Me();/* @__PURE__ */
67
+ return w(d,{style:[t.v("tlRow"),Qe],children:[
68
+ /* @__PURE__ */v(DateBlock,{day:e.day}),
69
+ /* @__PURE__ */w(Press,{role:"link",label:e.label,onPress:()=>n.go({name:"order",orderId:e.orderId}),style:[t.v("pkg"),Qe,{flex:1,minWidth:0}],children:[
70
+ /* @__PURE__ */w(d,{style:{flex:1,minWidth:0},children:[
71
+ /* @__PURE__ */v(CoT,{k:"pkgWhen",children:e.title}),e.what?/* @__PURE__ */v(CoT,{k:"pkgWhat",children:e.what}):null,e.steps?/* @__PURE__ */v(d,{style:[t.v("steps"),{flexDirection:"row"}],children:e.steps.map((e,n)=>/* @__PURE__ */v(d,{style:[t.v(e.done?"stepDone":"step"),{flex:1,overflow:"hidden"}],children:e.now?/* @__PURE__ */v(d,{style:[t.v("stepDone"),{width:"50%"}]}):null},n))}):null,e.status?/* @__PURE__ */w(d,{style:[t.v("pkgNow"),Qe],children:[
72
+ /* @__PURE__ */v(d,{style:[t.v("pkgDot"),e.status.tone==="wait"?{backgroundColor:bt}:null]}),
73
+ /* @__PURE__ */v(CoT,{k:"pkgNow",bare:true,style:{flexShrink:1},children:e.status.text})]}):null]}),
74
+ /* @__PURE__ */v(CoTile,{uri:e.imageUrl,count:e.count})]})]})}function RunOutRow({row:e,copy:n,cart:o,onRefill:r}){let i=Ke(),{client:l}=I(),a=Me(),[s,u]=t(false);if(!e.out)/* @__PURE__ */
75
+ return w(d,{style:[i.v("tlRow"),Qe],children:[
76
+ /* @__PURE__ */v(DateBlock,{day:e.day}),
77
+ /* @__PURE__ */v(Say,{title:e.title,line:e.line,out:false})]});let f=e.refill,c=f?o.some(e=>e.rxId===f.rxId):false,h=async()=>{if(!f||s)return;u(true);let e=await We(l,f);u(false),e&&r(e)};/* @__PURE__ */
78
+ return w(d,{style:[i.v("tlRow"),Qe],children:[
79
+ /* @__PURE__ */v(DateBlock,{day:e.day,out:true}),
80
+ /* @__PURE__ */w(d,{style:[i.v("run"),Qe,{flex:1,minWidth:0}],children:[
81
+ /* @__PURE__ */v(Say,{title:e.title,line:e.line,out:true}),f&&c?/* @__PURE__ */v(Pill,{kind:"btnInk",icon:"check",role:"link",label:n.inCart,onPress:()=>a.go({name:"cart"})}):f?/* @__PURE__ */v(Pill,{kind:"btnGo",label:n.refill,disabled:s,onPress:()=>{h()}}):null]})]})}function RefillCard({card:e,copy:t,busy:r,failed:i,bump:l,onSheet:a,onNow:s}){let u=Ke(),f=Me(),c=He(void 0),h=o(new p.Value(1)).current;n(()=>{l===0||c()||(h.setValue(0),p.timing(h,{toValue:1,duration:220,easing:yt,useNativeDriver:true}).start())},[l]);let g=e.next,y=u.v("ref").columnGap;/* @__PURE__ */
82
+ return w(d,{style:u.v("ref"),testID:`shop-orders-refill-${e.planId}`,children:[
83
+ /* @__PURE__ */w(d,{style:[Qe,{columnGap:y}],children:[
84
+ /* @__PURE__ */v(CoTile,{uri:e.imageUrl}),
85
+ /* @__PURE__ */w(d,{style:{flex:1,minWidth:0},children:[
86
+ /* @__PURE__ */w(d,{style:[u.v("refName"),Qe,{flexWrap:"wrap"}],children:[e.offerId?/* @__PURE__ */v(Press,{role:"link",hitSlop:vt,onPress:()=>f.go({name:"product",offerId:e.offerId}),children:/* @__PURE__ */v(CoT,{k:"refNameLink",bare:true,children:e.name})}):/* @__PURE__ */v(CoT,{k:"refName",bare:true,children:e.name}),e.rx?/* @__PURE__ */v(d,{style:[u.v("rx"),Ye],children:/* @__PURE__ */v(CoT,{k:"rx",bare:true,children:t.rxTag})}):null]}),
87
+ /* @__PURE__ */v(CoT,{k:"refMeta",children:e.meta})]}),e.paused?/* @__PURE__ */w(d,{style:{alignItems:"flex-end"},children:[
88
+ /* @__PURE__ */v(CoT,{k:"whenSmall",bare:true,children:t.autoRefill}),
89
+ /* @__PURE__ */v(CoT,{k:"whenPausedBig",children:t.paused})]}):g?/* @__PURE__ */w(p.View,{style:{alignItems:"flex-end",opacity:h,transform:[{translateY:h.interpolate({inputRange:[0,1],outputRange:[6,0]})}]},children:[
90
+ /* @__PURE__ */v(CoT,{k:"whenSmall",bare:true,children:t.ships}),
91
+ /* @__PURE__ */w(CoT,{k:"whenBig",children:[g.month," ",g.date]}),
92
+ /* @__PURE__ */v(CoT,{k:"whenSmall",bare:true,children:g.weekday})]}):null]}),e.vet?/* @__PURE__ */w(d,{style:[u.v("vet"),Qe],children:[
93
+ /* @__PURE__ */v(CoIcon,{name:"pill",k:"vetIcon"}),
94
+ /* @__PURE__ */w(d,{style:{flex:1,minWidth:0},children:[
95
+ /* @__PURE__ */v(CoT,{k:"vet",bare:true,children:e.vet.line}),e.vet.small?/* @__PURE__ */v(CoT,{k:"vetSmall",children:e.vet.small}):null]}),e.vet.pips>0?/* @__PURE__ */v(d,{style:[u.v("pips"),{flexDirection:"row"}],accessibilityElementsHidden:true,importantForAccessibility:"no-hide-descendants",children:Array.from({length:e.vet.pips},(e,t)=>/* @__PURE__ */v(d,{style:u.v("pip")},t))}):null]}):null,e.discount?/* @__PURE__ */w(d,{style:[u.v("vet"),Qe],children:[
96
+ /* @__PURE__ */v(CoIcon,{name:"leaf",k:"vetLeaf"}),
97
+ /* @__PURE__ */v(CoT,{k:"vet",bare:true,style:{flex:1,minWidth:0},children:e.discount})]}):null,e.skipped?/* @__PURE__ */w(d,{style:[u.v("note"),Qe,{flexWrap:"wrap"}],children:[
98
+ /* @__PURE__ */w(CoT,{k:"note",bare:true,children:[e.skipped," "]}),
99
+ /* @__PURE__ */v(Press,{disabled:r,hitSlop:vt,onPress:()=>s("unskip"),children:/* @__PURE__ */v(CoT,{k:"noteButton",bare:true,children:t.undo})})]}):null,i?/* @__PURE__ */v(d,{style:u.v("note"),accessibilityRole:"alert",accessibilityLiveRegion:"polite",children:/* @__PURE__ */v(CoT,{k:"note",bare:true,style:{color:mt},children:t.saveFailed})}):null,e.paused?/* @__PURE__ */v(d,{style:u.v("acts"),children:/* @__PURE__ */v(Pill,{kind:"btnGo",label:e.resumeLabel,disabled:r,onPress:()=>s("resume")})}):/* @__PURE__ */w(d,{style:[u.v("acts"),{flexDirection:"row"}],children:[
100
+ /* @__PURE__ */v(Pill,{label:t.skip,onPress:()=>a("skip"),style:{flex:1}}),
101
+ /* @__PURE__ */v(Pill,{label:t.change,onPress:()=>a("change"),style:{flex:1}}),
102
+ /* @__PURE__ */v(Pill,{label:t.pause,onPress:()=>a("pause"),style:{flex:1}})]})]})}function ShelfItem({item:e,copy:t,cart:n,onAdd:o}){let r=Ke(),i=Me(),{client:l}=I(),a=U(),s=e.cartKey?n.find(t=>t.key===e.cartKey):void 0,u=s?.quantity??0,f=()=>{!e.add||u>=a.max||o(e.add)},c=()=>{s&&(u>1?a.setQuantity(l,s.key,u-1):a.remove(l,s.key))};/* @__PURE__ */
103
+ return w(d,{style:r.v("item"),children:[
104
+ /* @__PURE__ */w(Press,{role:"link",label:e.title,onPress:()=>i.go({name:"product",offerId:e.offerId}),style:{rowGap:Fe("item","rowGap")},children:[
105
+ /* @__PURE__ */v(d,{style:[r.v("itemImg"),r.v("itemPhoto")],children:e.imageUrl?/* @__PURE__ */v(Photo,{uri:e.imageUrl}):null}),e.price?/* @__PURE__ */v(CoT,{k:"itemPrice",children:e.price}):null,
106
+ /* @__PURE__ */v(CoT,{k:"itemName",children:e.title}),e.meta?/* @__PURE__ */v(CoT,{k:e.due?"itemMetaDue":"itemMeta",children:e.meta}):null]}),e.add?/* @__PURE__ */v(d,{style:[{position:"absolute",top:0,left:0,width:Fe("item","width"),aspectRatio:1}],pointerEvents:"box-none",children:/* @__PURE__ */v(Stepper,{q:u,title:e.title,copy:t,onPlus:f,onMinus:c})}):null]})}function Stepper({q:e,title:t,copy:r,onPlus:i,onMinus:l}){let a=Ke(),s=He(void 0),u=e>0,f=Fe("stepperButton","width"),c=Fe("stepperIn","width"),h=o(new p.Value(u?c:f)).current;n(()=>{let e=u?c:f;s()?h.setValue(e):p.timing(h,{toValue:e,duration:200,easing:yt,useNativeDriver:false}).start()},[u]);let g=a.v(u?"stepperIn":"stepper"),y=u?"stepperIn":"stepperPlusOut";/* @__PURE__ */
107
+ return v(p.View,{style:[g,{width:h,overflow:"hidden"}],children:/* @__PURE__ */w(d,{style:[Qe,{position:"absolute",top:0,right:0,width:c,height:Fe("stepperIn","height")}],children:[
108
+ /* @__PURE__ */v(Press,{label:r.oneLess(t),disabled:!u,hitSlop:kt,onPress:l,style:[a.v("stepperButton"),Ye],children:/* @__PURE__ */v(CoIcon,{name:"minus",k:"stepperIcon",ink:y})}),
109
+ /* @__PURE__ */v(d,{style:[{flex:1},Ye],accessibilityLiveRegion:"polite",children:/* @__PURE__ */v(CoT,{k:"stepperCount",bare:true,children:e})}),
110
+ /* @__PURE__ */v(Press,{label:r.addOne(t),hitSlop:kt,onPress:i,style:[a.v("stepperButton"),Ye],children:/* @__PURE__ */v(CoIcon,{name:"plus",k:"stepperIcon",ink:y})})]})})}function PastOrder({order:e,copy:n,cart:o,onAdd:r}){let i=Ke(),l=Me(),{client:a,copy:shopCopy}=I(),[s,u]=t(false),[f,c]=t(false),h=Ae(e.offerIds,o),p=async()=>{if(s)return;u(true),c(false);let t=await Ce(a,e,o);if(u(false),!t){c(true);return}r(t)};/* @__PURE__ */
111
+ return w(d,{style:i.v("order"),children:[
112
+ /* @__PURE__ */w(d,{style:[i.v("orderTop"),{flexDirection:"row",alignItems:"baseline",justifyContent:"space-between"}],children:[
113
+ /* @__PURE__ */w(d,{style:{flexShrink:1},children:[e.day?/* @__PURE__ */v(CoT,{k:"orderDay",children:e.day}):null,
114
+ /* @__PURE__ */v(CoT,{k:"orderMeta",children:e.meta})]}),
115
+ /* @__PURE__ */v(CoT,{k:"orderTotal",children:e.total})]}),e.shots.length>0?/* @__PURE__ */v(d,{style:[i.v("shots"),{flexDirection:"row"}],children:e.shots.map(e=>/* @__PURE__ */v(Press,{role:"link",label:e.title,onPress:()=>l.go({name:"product",offerId:e.offerId}),style:i.v("shot"),children:e.imageUrl?/* @__PURE__ */v(Photo,{uri:e.imageUrl}):null},e.offerId))}):null,f?/* @__PURE__ */v(d,{style:i.v("note"),accessibilityRole:"alert",accessibilityLiveRegion:"polite",children:/* @__PURE__ */v(CoT,{k:"note",bare:true,style:{color:mt},children:shopCopy.loadFailed(shopCopy.thingOrders)})}):null,
116
+ /* @__PURE__ */w(d,{style:[i.v("orderActs"),{flexDirection:"row"}],children:[e.addCount>0?h?/* @__PURE__ */v(Pill,{kind:"orderBtn",icon:"check",role:"link",label:n.inTheCart,onPress:()=>l.go({name:"cart"}),style:{flex:1}}):/* @__PURE__ */v(Pill,{kind:"btnGo",label:n.addAll(e.addCount),disabled:s,onPress:()=>{p()},style:{flex:1}}):null,
117
+ /* @__PURE__ */v(Pill,{kind:"orderBtn",role:"link",label:n.receipt,onPress:()=>l.go({name:"order",orderId:e.orderId}),style:{flex:1}})]})]})}function Loading({copy:e,title:t}){let n=Ke(),o=J(K()),r=/* @__PURE__ */w(d,{style:[n.v("pkg"),Qe,{flex:1}],children:[
118
+ /* @__PURE__ */v(d,{style:{flex:1}}),
119
+ /* @__PURE__ */v(d,{style:[n.v("tile"),{opacity:0}]})]});/* @__PURE__ */
120
+ return w(d,{accessibilityElementsHidden:true,importantForAccessibility:"no-hide-descendants",testID:"shop-orders-loading",children:[
121
+ /* @__PURE__ */v(d,{style:n.v("head"),children:/* @__PURE__ */v(CoT,{k:"headTitle",children:t})}),
122
+ /* @__PURE__ */v(d,{style:n.v("way"),children:/* @__PURE__ */w(d,{style:n.v("tl"),children:[
123
+ /* @__PURE__ */w(d,{style:[n.v("tlRow"),Qe],children:[
124
+ /* @__PURE__ */v(DateBlock,{day:o,today:e.today}),r]}),
125
+ /* @__PURE__ */w(d,{style:[n.v("tlRow"),Qe],children:[
126
+ /* @__PURE__ */v(DateBlock,{day:null}),r]})]})}),
127
+ /* @__PURE__ */v(d,{style:[n.v("sec"),n.v("refs")],children:[0,1].map(e=>/* @__PURE__ */v(d,{style:n.v("ref"),children:/* @__PURE__ */v(d,{style:[n.v("tile"),{opacity:0}]})},e))})]})}function OrdersColumn({children:e}){let t=ut();return t===null?e:/* @__PURE__ */v(d,{style:t,children:e})}function Screen({seam:t,...n}){return e(OrdersV2SeamProvider,{seam:t},e(OrdersV2Screen,n))}var wt={kind:"everfur-shop-orders-v2",Screen:Screen},At=wt;export{At as EverfurShopOrdersV2};