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