@everfur/sdk 1.5.1 → 1.5.3
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-BL2-URcv.d.ts → bookingCopy.d-Bn8bdo89.d.ts} +4 -4
- package/dist/{bookingCopy.d-Dfew1pjY.d.cts → bookingCopy.d-Dg7bPM-U.d.cts} +4 -4
- 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-ZYHPCQVM.js → chunk-CFEHTNKX.js} +1 -1
- package/dist/{chunk-NBAOR5TJ.js → chunk-OU5RMGKD.js} +21 -21
- package/dist/{chunk-RD6ZGYEJ.js → chunk-XGF2HYNN.js} +16 -16
- package/dist/{chunk-IO4CGYHT.js → chunk-ZGL2GEEI.js} +1 -1
- package/dist/client/index.cjs +1 -1
- package/dist/client/index.d.cts +1 -1
- package/dist/client/index.d.ts +1 -1
- 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/{idempotency.d-dOFfV91-.d.ts → idempotency.d-CbB07p64.d.ts} +10 -8
- package/dist/{idempotency.d-CFVMhWcv.d.cts → idempotency.d-DrxKLPPe.d.cts} +10 -8
- 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/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/{optInView.d-ByDJMrMv.d.cts → optInView.d-ChJyJMBA.d.cts} +4 -1
- package/dist/{optInView.d-DVshLxbD.d.ts → optInView.d-Cps7aLQN.d.ts} +4 -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.d.cts +2 -2
- package/dist/shop/index.d.ts +2 -2
- 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 +18 -5
- package/dist/tabs/index.d.ts +18 -5
- package/dist/tabs/index.js +191 -188
- package/dist/televet/booking/index.cjs +214 -211
- 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 -341
- package/dist/televet/call/index.cjs +53 -53
- package/dist/televet/call/index.js +67 -67
- package/dist/texting/index.cjs +8 -8
- package/dist/texting/index.d.cts +2 -2
- package/dist/texting/index.d.ts +2 -2
- package/dist/texting/index.js +8 -8
- 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 +2 -2
- package/dist/web/shop/index.d.cts +2 -2
- package/dist/web/shop/index.d.ts +2 -2
- package/dist/web/shop/index.js +3 -3
- package/dist/web/televet/booking/index.cjs +185 -185
- 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 +185 -185
- package/dist/web/televet/call/index.cjs +1 -1
- package/dist/web/televet/call/index.js +1 -1
- package/dist/web/texting/index.cjs +3 -4
- package/dist/web/texting/index.d.cts +2 -2
- package/dist/web/texting/index.d.ts +2 -2
- package/dist/web/texting/index.js +3 -4
- package/dist/web/ui/index.cjs +1 -1
- package/dist/web/ui/index.js +33 -33
- package/package.json +1 -1
package/dist/shop/index.cjs
CHANGED
|
@@ -1,120 +1,120 @@
|
|
|
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"),r=require("react/jsx-runtime");var n=class _EverfurConfigError extends Error{constructor(e,t){super(t),this.name="EverfurConfigError",this.kind=e,Object.setPrototypeOf(this,_EverfurConfigError.prototype)}};var
|
|
3
|
-
return Object.freeze({ok:true,value:e})}function
|
|
4
|
-
return Object.freeze({ok:false,error:/* @__PURE__ */Object.freeze(e)})}function isOmsRefusal(e,t){return e.kind==="refused"&&(t===void 0||e.reasonCode===t)}function isOmsUnavailable(e){return e.kind==="unavailable"}function isOmsRetryable(e){return e.kind==="network"||e.kind==="timeout"||e.kind==="serviceUnavailable"||e.kind==="refused"&&e.reasonCode==="order_state_conflict"}var F=/^[a-z][a-z0-9_]{0,63}$/,V=300;function H(e){if(typeof e!="string")return null;let t=e.replace(/[\u0000-\u001f\u007f]+/g," ").trim();return t.length===0||t.length>V?null:t}function P(e){if(!e)return null;let t=Number(e);return Number.isFinite(t)&&t>=0?Math.min(Math.round(t),3600):null}function O(e,t,r){let n=r.requestId,i=n?{requestId:n}:{};if(e===404)return{kind:"unavailable",...i};if(e===401)return{kind:"signedOut"};if(e===402||e===409||e===422){let r=t&&typeof t=="object"?t:{},n=typeof r.reason_code=="string"&&F.test(r.reason_code)?r.reason_code:null;return{kind:"refused",status:e,reasonCode:n,message:H(r.message),...i}}return e===400?{kind:"invalidRequest",...i}:e===429?{kind:"rateLimited",retryAfterSeconds:P(r.retryAfter??null),...i}:e===503?{kind:"serviceUnavailable",...i}:e===403?{kind:"unavailable",...i}:{kind:"serverError",status:e,...i}}function newIdempotencyKey(){let e=globalThis.crypto;if(e&&typeof e.randomUUID=="function")return e.randomUUID();if(e&&typeof e.getRandomValues=="function"){let t=e.getRandomValues(new Uint8Array(16));t[6]=t[6]&15|64,t[8]=t[8]&63|128;let r=Array.from(t,e=>e.toString(16).padStart(2,"0")).join("");return`${r.slice(0,8)}-${r.slice(8,12)}-${r.slice(12,16)}-${r.slice(16,20)}-${r.slice(20)}`}throw new n("missing-peer-dependency","No secure random source: cannot make an idempotency key")}var B=3,E=["client_name_missing"];function D(e){return!!e&&e.kind==="refused"&&!!e.reasonCode&&E.includes(e.reasonCode)}var N=class{constructor(e=newIdempotencyKey){this.make=e;this.keys=/* @__PURE__ */new Map}key(e){let t=this.keys.get(e);return t||(t=this.make(),this.keys.set(e,t)),t}next(e){let t=this.make();return this.keys.set(e,t),t}};async function q(e,t,r,n={reconfirm:true}){let i=t.key("confirm"),o=[];for(let l=0;l<B;l+=1){let a=await e(i);if(!a.ok)return{kind:"failed",error:a.error};o=a.value.resale.map(e=>e.orderId);let s=a.value.resale.filter(e=>e.outcome==="action_required"&&e.payerAction);if(s.length===0)return{kind:"confirmed",orderIds:o};if(!r)return{kind:"needsPayerAction",orderIds:o};if(l===0&&n.beforePayerAction)try{n.beforePayerAction(o)}catch{}for(let e of s){let t=await r.handleNextAction(e.payerAction,{orderId:e.orderId});if(!t.ok)return t.closed?{kind:"payerActionClosed",orderIds:o}:{kind:"payerActionFailed",orderIds:o,message:t.message}}if(!n.reconfirm)return{kind:"confirmed",orderIds:o};i=t.next("confirm")}return{kind:"needsPayerAction",orderIds:o}}var U=/* @__PURE__ */Object.freeze({load:()=>Promise.resolve(W({kind:"unavailable"})),removeLine:()=>Promise.resolve(W({kind:"unavailable"})),skip:()=>Promise.resolve(W({kind:"unavailable"})),approve:()=>Promise.resolve({kind:"failed",error:{kind:"unavailable"}})});async function G(e,t){let r=[...new Set(t)],n=await Promise.all(r.map(t=>e.offer(t)));return new Map(r.map((e,t)=>[e,n[t].ok?n[t].value:null]))}function createOmsPackageSource(e){async function t(t,r){let n=await G(e,r.lines.map(e=>e.offerId)),i=r.lines.map(e=>({...e,offer:n.get(e.offerId)??null})),o=null;if(r.state==="open"&&i.length>0){let n=await e.draftCycle(t.planId,r.cycle);if(n.ok)o=n.value;else if(n.error.kind!=="refused")return W(n.error)}return R({plan:t,review:r,lines:i,draft:o})}return{async load(){let r=await e.plans();if(!r.ok)return W(r.error);let n=r.value.plans.find(e=>e.state==="active")??r.value.plans.find(e=>e.state!=="cancelled");if(!n)return R(null);let i=await e.cycleReview(n.planId);return i.ok?t(n,i.value):W(i.error)},async removeLine(r,n,i){let o=r.lines.filter((e,t)=>t!==n).map(e=>({offerId:e.offerId,quantity:e.quantity,...e.petId?{petId:e.petId}:{}})),l=await e.editCycle(r.plan.planId,r.review.cycle,{idempotencyKey:i.key(`remove:${n}`),lines:o});return l.ok?t(r.plan,l.value):W(l.error)},async skip(t,r){let n=await e.skipCycle(t.plan.planId,t.review.cycle,{idempotencyKey:r.key("skip")});return n.ok?R(void 0):W(n.error)},approve(t,r,n){let i=t.draft;return i?q(r=>e.approveCycle(t.plan.planId,t.review.cycle,{idempotencyKey:r,checkoutId:i.checkoutId,expectedTotal:i.total}),r,n,{reconfirm:false}):Promise.resolve({kind:"failed",error:{kind:"invalidRequest"}})}}}function M(e){let t=e<0?"-":"",r=Math.abs(Math.round(e));return`${t}$${Math.floor(r/100).toLocaleString("en-US")}.${String(r%100).padStart(2,"0")}`}function Z(e){return`[copy:shop.${e}]`}var Y=["January","February","March","April","May","June","July","August","September","October","November","December"];function J(e){return`${e}’s`}function X(e){return e.length<=1?e[0]??"":`${e.slice(0,-1).join(", ")} and ${e[e.length-1]}`}function Q(e){if(!e)return null;let t=new Date(/^\d{4}-\d{2}-\d{2}$/.test(e)?`${e}T00:00:00Z`:e);return Number.isNaN(t.getTime())?null:t}function _(e,t={}){let r=Q(e);if(!r)return null;if(t.when&&r.getUTCFullYear()!==(t.now??/* @__PURE__ */new Date).getUTCFullYear())return r.toLocaleDateString("en-US",{timeZone:"UTC",month:"short",day:"numeric",year:"numeric"});let n=t.weekday===true||t.when===true;return r.toLocaleDateString("en-US",{timeZone:"UTC",...n?{weekday:"short"}:{},month:"short",day:"numeric"})}function formatWhen(e){let t=Q(e);if(!t)return null;let r=t.toLocaleDateString("en-US",{weekday:"short",month:"short",day:"numeric"}),n=t.toLocaleTimeString("en-US",{hour:"numeric",minute:"2-digit"});return`${r} · ${n}`}function $(e){let t=Q(e);return t?Y[t.getUTCMonth()]:null}function ee(e,t){return`${e?e.charAt(0).toUpperCase()+e.slice(1):""} ending ${t}`}var te="We can’t send this prescription to the pharmacy yet. Contact us.",re=["prescription_missing","prescription_reference_missing","prescription_unreadable","prescriptions_disagree","first_fill_mixed_with_refill","duplicate_prescription_line","prescription_in_flight","client_email_missing","client_phone_missing","client_phone_not_us","practice_email_missing","practice_phone_missing","practice_phone_not_us","patient_birth_date_missing","patient_weight_missing","weight_below_partner_unit","species_not_supported","sex_not_supported","refills_over_partner_limit","indications_missing","indication_not_mapped","compounding_missing","compounding_reason_not_mapped","compounding_unexplained","delivery_speed_unavailable","address_missing","address_not_deliverable"],ne={tabsLabel:"Care",tabPackage:"Package",tabShop:"Shop",tabOrders:"Orders",tabPlan:"Plan",legal:"Prescription items need a valid prescription from a licensed vet, and are filled by a licensed partner pharmacy.",legalTracking:"Prescription items are filled by a licensed partner pharmacy.",loadFailed:e=>`We couldn’t load ${e}. Check your connection and try again.`,tryAgain:"Try again",actionFailed:"That didn’t go through. Try again.",saving:"Saving…",keepIt:"Keep it",close:"Close",thingPackage:Z("thing.package"),thingShop:Z("thing.shop"),thingProduct:Z("thing.product"),thingPlan:Z("thing.plan"),thingOrders:"your orders",thingOrder:"this order",packageTitle:e=>`${e} package`,packageSub:(e,t,r)=>{let n=[];return e.length>0&&n.push(`For ${X(e)}.`),t&&r&&n.push(`Approve by ${t} and it arrives ${r}.`),n.length?n.join(" "):null},inThisPackage:"In this package",reviewBy:e=>`Review by ${e}`,forPet:e=>`For ${e}`,details:"Details",remove:"Remove",removed:"Removed.",total:"Total",items:"Items",shipping:"Shipping",tax:"Tax",free:"Free",approveAndShip:"Approve and ship",itemCount:e=>e===1?Z("package.item_count_one"):`${e} items`,withTotal:(e,t)=>`${e} · ${t}`,approveRegion:"Approve",packageDetailsRegion:"Package details",deliveryPaymentRegion:"Delivery and payment",questionsRegion:"Questions",approving:"Approving…",skipThisMonth:"Skip this month",chargedWhenShips:e=>`Charged to ${e} when it ships.`,rxCheckedFirst:"Prescriptions are checked with the vet who wrote them first.",delivery:"Delivery",arrives:e=>`Arrives ${e}`,change:"Change",outOfStock:"Out of stock",packageOutOfStock:"Out of stock right now, so it won’t ship this month.",packageEmpty:e=>`Nothing in ${J(e)} package yet. Add something from the shop, or skip this month.`,itemNoLongerSold:Z("package.item_no_longer_sold"),reviewClosed:Z("package.review_closed"),approvalInProgress:Z("package.approval_in_progress"),priceChanged:Z("package.price_changed"),cardStepFailed:Z("package.card_step_failed"),cardStepClosed:Z("package.card_step_closed"),noCardOnFile:Z("package.no_card_on_file"),shopTitle:"Shop",searchLabel:"Search the shop",searchPlaceholder:"Search the shop…",filtersLabel:"Filter",filterAll:"All",refillSoon:"Refill soon",prescribedFor:e=>`Prescribed for ${X(e)}`,inMonthsPackage:e=>`In ${J(e)} package →`,forPets:e=>`For ${X(e)}`,allProducts:Z("shop.all_products_title"),rx:"Rx",hasPrescription:e=>`${e} has a prescription`,needsPrescription:"Needs a prescription",noMatches:e=>`Nothing in the shop matches ‘${e}’.`,nothingHereYet:"Nothing here yet.",photoToCome:"Photo to come",backToShop:"Shop",howOften:"How often",everyMonthIn:e=>`Every month, in ${J(e)} package`,skipOrStop:"Skip or stop any month",justOnce:"Just once",shipsWith:e=>`Ships with ${J(e)} package`,justOnceShipsNow:Z("product.just_once_meta"),oneFewer:"One fewer",oneMore:"One more",quantity:"Quantity",addToPackage:e=>`Add to ${J(e)} package`,refillInPackage:e=>`Refill in ${J(e)} package`,buyNow:Z("product.buy_now"),startPlan:Z("product.start_plan"),adding:"Adding…",outOfStockNow:"Out of stock right now.",prescription:"Prescription",noPrescriptionFor:e=>`No prescription for ${e} on file.`,bookVideoVisit:"Book a video visit",refillsLeft:e=>`${e} ${e===1?"refill":"refills"} left`,rxBeingPrepared:"This prescription is being prepared. You can order it soon.",rxTooSoon:Z("rx.too_soon"),rxRenew:Z("rx.needs_renewal"),rxPick:Z("rx.pick_pet"),educational:"Educational, not a diagnosis.",planTitle:"Your plan",whatRepeats:"What repeats",repeatsLabel:e=>`${e} repeats`,cadenceMonths:e=>e===1?"Every month":`Every ${e} months`,cadenceDays:Z("plan.cadence_days"),repeatsEmpty:"Nothing repeats yet. Pick Every month when you add something, and it shows up here.",nextPackage:"Next package",reviewByLabel:"Review by",ships:"Ships",reviewMonthsPackage:e=>`Review ${J(e)} package →`,deliveryAndPayment:"Delivery and payment",shipTo:"Ship to",payWith:"Pay with",needABreak:"Need a break?",skipMonth:e=>`Skip ${e}`,skipMonthAsk:e=>`Skip ${e}?`,skipMonthBody:"Nothing ships this month.",pausePlan:"Pause the plan",pausePlanAsk:"Pause the plan?",pausePlanBody:"Nothing ships until you turn it back on.",declined:e=>e?`Declined. Update your card so ${J(e)} package can ship.`:"Declined.",resumePlan:Z("plan.resume"),stopReason:e=>Z(`plan.stop_reason.${e}`),consentTitle:Z("plan.consent_title"),consentBody:Z("plan.consent_body"),consentTermsLink:Z("plan.consent_terms_link"),consentAgree:Z("plan.consent_agree"),ordersTitle:"Orders",ordersSub:e=>`Packages and one-off orders for ${X(e)}.`,allOrders:"All orders",placed:e=>`Placed ${e}`,ordersEmpty:"No orders yet. Your first package shows up here once you approve it.",paymentFailed:"Payment failed",backToCare:"Care",onItsWay:e=>`${e}, on its way`,shouldArrive:e=>`It should arrive ${e}.`,whereItStands:"Where it stands",stepApproved:"Approved",stepChecking:"Checking prescriptions…",stepFilled:"Filled by the pharmacy",stepShipped:"Shipped",stepDelivered:"Delivered",now:"Now",expected:e=>`Expected ${e}.`,inTheBox:"In the box",payment:"Payment",cancelOrder:Z("order.cancel"),payOrder:Z("order.pay"),trackPackage:Z("order.track"),orderStatus:{pending_placement:"Confirmed, sending to the pharmacy",placement_unknown:"Confirmed",placed:"With the pharmacy, in review",accepted:"Approved by the pharmacist",release_sent:"Approved, being prepared",release_unknown:"Approved, being prepared",released:"Being prepared",shipped:"Shipped",delivered:"Delivered",needs_support:"We’re looking into this order",rejected:Z("order.status.rejected"),cancelled:"Cancelled",pending_handoff:Z("order.status.pending_handoff")},addressTitle:Z("address.title"),addressLabel:Z("address.label"),addressRecipient:Z("address.recipient_name"),addressLine1:Z("address.line1"),addressLine2:Z("address.line2"),addressCity:Z("address.city"),addressRegion:Z("address.region"),addressPostal:Z("address.postal_code"),addressSave:Z("address.save"),addressNeeded:Z("address.needed"),cardTitle:Z("card.title"),cardBody:Z("card.body"),cardStart:Z("card.start"),cardUnavailable:Z("card.unavailable"),confirmTitle:Z("buy.confirm_title"),confirmPay:Z("buy.confirm_pay"),nameMissing:Z("checkout.name_missing"),addName:Z("checkout.add_name"),firstName:Z("checkout.first_name"),lastName:Z("checkout.last_name"),saveName:Z("checkout.save_name"),refusal:{operation_not_supported:"This action isn’t available for this order.",order_not_sellable:"We can’t ship this order as it is. Add items or contact us.",rx_being_prepared:"This prescription is being prepared. You can order it soon.",rx_not_dispensable:te,...Object.fromEntries(re.map(e=>[e,te])),order_state_conflict:"This order changed. Refresh and try again.",payment_method_in_use:"A subscription or an order uses this card."},rateLimited:Z("error.rate_limited")},ie=(()=>{let e=/* @__PURE__ */new Set,t=r=>{if(typeof r=="string"){let t=/^\[copy:(shop\.[a-z0-9_.]+)\]$/.exec(r);t&&e.add(t[1])}else if(typeof r=="function")try{t(r("x","x","x"))}catch{}else if(r&&typeof r=="object")for(let e of Object.values(r))t(e)};return t(ne),[...e].sort()})();function shopCopy(e){return e?{...ne,...e}:ne}function oe(e,t){if(t.kind==="rateLimited")return e.rateLimited;if(t.kind==="refused"){if(D(t))return e.nameMissing;let r=t.reasonCode?e.refusal[t.reasonCode]:void 0;if(r)return r;if(t.message)return t.message}return e.actionFailed}var le={cartTitle:"Cart",cartLabel:e=>e>0?`Cart, ${e} item${e>1?"s":""}`:"Cart, empty",cartEmptyTitle:"Your cart is empty",cartEmptyBody:null,addToCart:"Add to cart",viewCart:"View cart",addedToCart:e=>`${e} is in your cart.`,removedFromCart:e=>`${e} is out of your cart.`,quantityLabel:e=>`How many: ${e}`,fewer:"One fewer",more:"One more",remove:"Remove",subtotal:"Subtotal",shipping:"Shipping",tax:"Tax",free:"Free",total:"Total",checkoutCart:e=>`Checkout · ${e}`,checkoutKicker:"Checkout",itemQuantity:e=>`Qty ${e}`,shipsTo:"Ships to",payWith:"Pay with",placeOrder:e=>`Place order · ${e}`,chooseAddress:Z("checkout.choose_address"),chooseCard:Z("checkout.choose_card"),addAddress:Z("checkout.add_address"),addCard:Z("card.start"),makeDefault:Z("address.make_default"),editAddress:Z("address.edit"),noAddressYet:Z("address.needed"),noCardYet:Z("package.no_card_on_file"),placedHeader:"Order placed",placedTitle:"Order placed.",placedSteps:"What's coming",placedShips:"It ships.",placedArrives:"It arrives at home.",viewOrder:"View order",ordersTitle:"Orders",ordersEmptyTitle:"No orders yet",ordersEmptyBody:null,moreOrders:Z("orders.more"),subscriptionBox:"Subscription box",orderTitle:e=>e===null?"Order":`Order ${e}`,arrivesBy:e=>`Arrives by ${e}`,deliveredOn:e=>`Delivered ${e}`,expected:e=>`Expected ${e}`,orderSteps:["Ordered","Shipped","Out for delivery","Delivered"],tracking:"Tracking",trackOn:e=>`Track on ${e}`,inThisOrder:"In this order",orderItemLine:e=>`Qty ${e}`,buyAgain:"Buy again",orderHelp:"Get help with this order",paidWith:"Paid with",refund:Z("order.refund"),discount:Z("order.discount"),cancelAsk:Z("order.cancel_ask"),cancelBody:null,cancelRequested:Z("order.cancel_requested"),close:"Close",manageKicker:"Your subscription",manageTitle:e=>`Manage ${e}`,manage:"Manage",shipsEvery:"Ships every",daysChip:e=>`${e} days`,skipNext:"Skip the next box",cancelSubscription:"Cancel subscription",nextBox:e=>`Next box ${e}`,everyDays:e=>`Every ${e} days`,subscribedLine:(e,t)=>t===null?`Every ${e} days`:`Every ${e} days · next box ${t}`,skipped:"Skipped.",cancelSubscriptionAsk:Z("plan.cancel_ask"),cancelSubscriptionBody:Z("plan.cancel_body")},ae=Object.values(le).filter(e=>typeof e=="string"&&e.startsWith("[copy:"));function shopV3Copy(e){if(!e)return le;let t={};for(let[r,n]of Object.entries(e))r in le&&n!==void 0&&(t[r]=n);return{...le,...t}}var se=e.createContext(null);function ShopProvider(t){let{client:r,pets:n,payments:i,packageSource:o,copy:l,v3Copy:a,saveProfileName:s,onProfileNameRequired:d,children:c}=t,u=e.useRef(s);u.current=s;let p=e.useRef(d);p.current=d;let h=!!s,g=!!d,f=e.useMemo(()=>{let e=n??[],t=new Map(e.map(e=>[e.petId,e.name]));return{client:r,pets:e,petName:e=>e?t.get(e)??null:null,payments:i??null,packageSource:o??createOmsPackageSource(r),copy:shopCopy(l),v3:shopV3Copy(a),saveProfileName:h?e=>u.current?u.current(e):Promise.resolve(false):null,onProfileNameRequired:g?()=>p.current?.():null}},[r,n,i,o,l,a,h,g]);return e.createElement(se.Provider,{value:f},c)}function de(){let t=e.useContext(se);if(!t)throw new n("not-initialized","useShop: wrap the shop in <ShopProvider>");return t}function ce(t,r){let[n,i]=e.useState({key:null,phase:"loading",value:null,error:null}),o=e.useRef(0),l=e.useRef(null),a=e.useRef(r);a.current=r;let s=e.useCallback(e=>{let r=++o.current;if(t===null)return Promise.resolve();e||i({key:t,phase:"loading",value:null,error:null});let n=a.current().then(n=>{if(r!==o.current)return;if(n.ok){i({key:t,phase:"ready",value:n.value,error:null});return}let l={key:t,phase:n.error.kind==="unavailable"?"unavailable":"failed",value:null,error:n.error};e&&l.phase==="failed"?i(e=>e.key===t&&e.phase==="ready"?e:l):i(l)},()=>{});return l.current={epoch:r,done:n},n.then(()=>{l.current?.epoch===r&&(l.current=null)}),n},[t]);e.useEffect(()=>(s(false),()=>{o.current+=1}),[s]);let d=e.useCallback(()=>{s(false)},[s]),c=e.useCallback(()=>{let e=l.current;return e&&e.epoch===o.current?e.done:s(true)},[s]);return n.key!==t?{phase:"loading",value:null,error:null,refresh:d,reread:c}:{phase:n.phase,value:n.value,error:n.error,refresh:d,reread:c}}function ue(){let{client:e}=de();return ce("shop-config",()=>e.shopConfig())}function pe(e={}){let{client:t}=de(),r=e.text?.trim()??"",n=`offers:${r}:${e.requiresRx??""}`;return ce(n,()=>t.offers({...r?{text:r}:{},...e.requiresRx!==void 0?{requiresRx:e.requiresRx}:{},limit:100}))}function he(e){let{client:t}=de();return ce(e?`offer:${e}`:null,()=>t.offer(e))}function ge(){let{client:e}=de();return ce("prescriptions",()=>e.prescriptions())}function fe(){let{client:e}=de();return ce("addresses",()=>e.addresses())}function me(e){let{client:t}=de();return ce(e?`address:${e}`:null,()=>t.address(e))}function be(){let{client:e}=de();return ce("payment-methods",()=>e.paymentMethods())}function ye(e){let{client:t}=de();return ce(e?`order:${e}`:null,()=>t.order(e))}function xe(){let{client:e}=de();return ce("plans",()=>e.plans({limit:100}))}function ke(){let{packageSource:e}=de();return ce("package",()=>e.load())}function we(t){let[r,n]=e.useState(false),[i,o]=e.useState(null),l=e.useRef(null),a=e.useRef(false),s=e.useRef(t);s.current=t;let d=e.useRef(true);e.useEffect(()=>(d.current=true,()=>{d.current=false}),[]);let c=e.useCallback(async(...e)=>{if(a.current)return null;a.current=true,l.current??=new N,n(true),o(null);try{let t=await s.current(l.current,...e);return t.ok?l.current=null:ve(t.error)||(l.current=null),d.current&&o(t.ok?null:t.error),t}finally{a.current=false,d.current&&n(false)}},[]),u=e.useCallback(()=>{l.current=null,o(null)},[]);return{busy:r,error:i,run:c,reset:u}}function ve(e){return e.kind==="network"||e.kind==="timeout"||e.kind==="serviceUnavailable"||e.kind==="serverError"}function Te(e){let t=[];for(let r of e)r!==null&&!t.includes(r)&&t.push(r);return t}var Se=[[/\b(inject(ion|able)?|vial|syringe|pen)s?\b/i,"syringe"],[/\b(chew(able)?|soft ?chew|treat)s?\b/i,"bowl"],[/\b(shampoo|spray|ointment|cream|gel|lotion|topical|spot[- ]on|otic|ophthalmic|wipe|foam|mousse|collar)s?\b/i,"shield"],[/\b(solution|suspension|liquid|syrup|elixir|drops?|oral ?paste|paste)s?\b/i,"flask"],[/\b(tablet|caplet|capsule|tab|cap|pill)s?\b/i,"pill"]];function je(e,t){for(let r of[e,t]){if(!r)continue;let e=Se.find(([e])=>e.test(r));if(e)return e[1]}return"pill"}function Ce(e,t,r){return e?{tone:"pink",icon:je(t,r)}:{tone:"yellow",icon:"leaf"}}var Ie=[[Se[0][0],"injection"],[Se[1][0],"chew"],[Se[2][0],"topical"],[Se[3][0],"liquid"],[/\b(capsule|cap)s?\b/i,"capsule"],[/\b(tablet|caplet|tab|pill)s?\b/i,"tablet"]];function Le(e,t,r){if(!e)return null;for(let e of[t,r]){if(!e)continue;let t=Ie.find(([t])=>t.test(e));if(t)return t[1]}return"unknown"}var ze={tablet:{tone:"pink",icon:"pill"},capsule:{tone:"sage",icon:"pill"},liquid:{tone:"base",icon:"flask"},injection:{tone:"base",icon:"syringe"},chew:{tone:"yellow",icon:"bowl"},topical:{tone:"sage",icon:"shield"},unknown:{tone:"pink",icon:"pill"}};function Ae(e){return e?ze[e]:{tone:"yellow",icon:"leaf"}}function Re(e){return`${e.line2?`${e.line1}, ${e.line2}`:e.line1}, ${e.city}, ${e.region?`${e.region} `:""}${e.postalCode}`}function We(e){return{label:e.rx,tone:"rx"}}function Fe(e){return e.fillsTotal!==null&&e.fillsUsed!==null?Math.max(0,e.fillsTotal-Math.max(e.fillsUsed,1)):null}function Ve(e){let{pkg:t,copy:r,petName:n}=e,i=t.review,o=$(i.shipsOn),l=Te(t.lines.map(e=>n(e.petId))),a=i.state==="open",s=new Map(i.quoteLines.map(e=>[`${e.offerId}:${e.petId??""}`,e])),d=t.lines.map((t,n)=>{let i=t.offer,o=s.get(`${t.offerId}:${t.petId??""}`),l=i?.requiresRx??false,d=[];return i||d.push({label:r.outOfStock,tone:"later"}),{petId:t.petId,view:{key:`${t.offerId}:${t.petId??""}:${n}`,name:i?.title??r.itemNoLongerSold,rx:l,meta:null,alert:i?null:r.packageOutOfStock,pills:d,price:o&&i?M(o.unitPrice*o.quantity-o.discount):null,...Ce(l,i?.title),details:i?{label:r.details,to:{name:"product",offerId:i.offerId,...t.petId?{petId:t.petId}:{}}}:null,remove:a?{label:r.remove,busy:e.removing===n,disabled:e.removing!==null,onPress:()=>e.onRemove(n)}:null}}}),c=[];for(let e of d){let t=n(e.petId),i=t?r.forPet(t):null,o=c.find(e=>e.label===i);o?o.items.push(e.view):c.push({label:i,items:[e.view]})}let u=[],p=t.draft;p?(u.push({k:r.items,v:M(p.total-p.shipping-p.tax)}),u.push({k:r.shipping,v:p.shipping===0?r.free:M(p.shipping)}),u.push({k:r.tax,v:M(p.tax)}),u.push({k:r.total,v:M(p.total)})):i.quoteLines.length>0&&u.push({k:r.items,v:M(i.quoteLines.reduce((e,t)=>e+t.unitPrice*t.quantity-t.discount,0))});let h=e.card?ee(e.card.brand,e.card.last4):null,g=t.lines.some(e=>e.offer?.requiresRx),f=h?[r.chargedWhenShips(h),g?r.rxCheckedFirst:null].filter(Boolean).join(" "):null,m=e.error;!m&&i.state==="approving"?m=r.approvalInProgress:!m&&i.state!=="open"&&i.state!==null?m=r.reviewClosed:!m&&a&&!e.card&&(m=r.noCardOnFile);let b=a&&p&&e.card?{label:r.approveAndShip,busyLabel:r.approving,busy:e.approving,disabled:e.approving||e.placed===true||e.removing!==null,onPress:e.onApprove}:null;return{title:o?r.packageTitle(o):r.tabPackage,sub:r.packageSub(l,_(i.approveBy,{weekday:true}),null),reviewPill:i.approveBy&&a?r.reviewBy(_(i.approveBy)):null,countPill:t.lines.length>0?r.itemCount(t.lines.length):null,fine:null,groups:t.lines.length>0?c:[],empty:t.lines.length===0?{line:o?r.packageEmpty(o):r.nothingHereYet,shop:{label:r.tabShop,to:{name:"shop"}},skip:null}:null,add:null,sum:u,approve:b,skip:a?{label:r.skipThisMonth,to:{name:"plan"}}:null,note:f,error:m,delivery:e.address?[{k:r.shipTo,v:Re(e.address),change:{label:r.change,to:{name:"address",then:{name:"package"}}}}]:[],legal:r.legal}}function He(e,t){return t.filter(t=>t.status==="ready"&&t.offerId===e)}function Pe(e,t,r,n,i=null){let o=[],l=null,a=i,s;return e.requiresRx&&(o.push(We(r)),s=He(e.offerId,t).find(e=>n(e.petId)),a=s?.petId??i,l=s?r.hasPrescription(n(s.petId)):r.needsPrescription),{key:e.offerId,to:{name:"product",offerId:e.offerId,...a?{petId:a}:{}},name:e.title,meta:l,price:e.price!==null?M(e.price):null,pills:o,...Ce(e.requiresRx,e.title,s?.form),form:Le(e.requiresRx,e.title,s?.form),imageUrl:e.imageUrl??null}}function Oe(e){return e.fillsUsed===null||e.fillsUsed===0}function Be(e){let{copy:t}=e,r=r=>Pe(r,e.prescriptions,t,e.petName,e.petId??null),n=[],i=/* @__PURE__ */new Map;for(let t of[...e.offers,...e.prescribed??[]])i.set(t.offerId,t);let o=[],l=[],a=[];if(!e.searching){let t=e.prescriptions.filter(t=>t.status==="ready"&&t.offerId!==null&&e.petName(t.petId));for(let r of Te(t.map(e=>e.offerId))){let n=i.get(r);if(!n||!n.requiresRx)continue;let s=t.filter(e=>e.offerId===r);if(s.every(Oe)){o.push(n);for(let t of s)a.includes(e.petName(t.petId))||a.push(e.petName(t.petId))}else l.push(n)}}o.length>0&&n.push({key:"prescribed",title:t.prescribedFor(a),link:null,tiles:o.map(r)}),l.length>0&&n.push({key:"refill",title:t.refillSoon,link:e.packageMonth?{label:t.inMonthsPackage(e.packageMonth),to:{name:"package"}}:null,tiles:l.map(r)});let s=new Set([...o,...l].map(e=>e.offerId));return n.push({key:"all",title:e.petNames.length>0?t.forPets(e.petNames):t.allProducts,link:null,tiles:e.offers.filter(e=>!s.has(e.offerId)).map(r)}),n}function Ee(e){let{copy:t,offer:r}=e,n=e.plansOn&&e.petName!==null,i=n?e.choice:"once",o=i==="monthly"?e.packageMonth?t.addToPackage(e.packageMonth):t.startPlan:t.buyNow,l=r.price!==null;return{back:{label:t.backToShop,to:{name:"shop"}},title:r.title,sub:null,price:l?M(r.price):null,priceUnit:null,...Ce(false),form:null,imageUrl:r.imageUrl??null,source:null,stockLine:l?null:t.outOfStockNow,choices:n?[{value:"monthly",title:t.everyMonthIn(e.petName),meta:t.skipOrStop},{value:"once",title:t.justOnce,meta:t.justOnceShipsNow}]:null,choice:n?i:null,onChoice:t=>e.onChoice(t==="once"?"once":"monthly"),quantity:e.quantity,onQuantity:t=>e.onQuantity(Math.min(99,Math.max(1,t))),submit:l?{label:o,busyLabel:t.adding,busy:e.busy,disabled:e.busy,onPress:e.onSubmit}:{label:t.outOfStock,disabled:true,onPress:()=>{}},error:e.error,facts:null,cards:[],aside:null,legal:t.legal}}function De(e){let{copy:t,offer:r}=e,n=He(r.offerId,e.prescriptions).filter(t=>e.petName(t.petId)),i=(e.petId?n.find(t=>t.petId===e.petId):void 0)??n[0]??null,o=r.price!==null,l=null,a=null,s=i?.form??null;if(i){let r=Fe(i);l={name:t.hasPrescription(e.petName(i.petId)),meta:r!==null&&r>0?t.refillsLeft(r):null,directions:null},a=o?{label:e.packageMonth?t.refillInPackage(e.packageMonth):t.buyNow,busyLabel:t.adding,busy:e.busy,disabled:e.busy,onPress:()=>e.onSubmit(i)}:{label:t.outOfStock,disabled:true,onPress:()=>{}}}else{let n=e.prescriptions.filter(t=>t.offerId===r.offerId&&(t.status==="being_prepared"||t.status==="too_soon")&&e.petName(t.petId)),i=(e.petId?n.find(t=>t.petId===e.petId):void 0)??n[0]??null;if(i)l={name:t.hasPrescription(e.petName(i.petId)),meta:i.status==="being_prepared"?t.rxBeingPrepared:t.rxTooSoon,directions:null},a=null,s=i.form;else{let r=(e.petId?e.petName(e.petId):null)??e.firstPetName;l=r?{name:t.noPrescriptionFor(r),meta:null,directions:null}:null,a=e.bookVisitHref?{label:t.bookVideoVisit,href:e.bookVisitHref}:null}}return{back:{label:t.backToShop,to:{name:"shop"}},stepLabel:t.prescription,title:r.title,sub:null,price:o?M(r.price):null,priceUnit:null,...Ce(true,r.title,s),form:Le(true,r.title,s),imageUrl:r.imageUrl??null,script:l,stockLine:o?null:t.outOfStockNow,submit:a,note:null,error:e.error,cards:[],aside:null,legal:t.legal}}function Ne(e,t){let r=Math.round(e/30.4);return r>=1&&Math.abs(e-r*30.4)<=2?t.cadenceMonths(r):t.cadenceDays}function qe(e){let{copy:t}=e,r=e.plans.filter(e=>e.state!=="cancelled"),n=[];for(let i of r)i.lines.forEach((r,o)=>{let l=e.offers.get(r.offerId)??null,a=e.petName(r.petId),s=[l?.title??t.itemNoLongerSold,a].filter(Boolean).join(" · "),d=i.stopReason,c=d==="payment_declined"?t.declined(e.packageMonth):d&&d!=="customer"?t.stopReason(d):Ne(i.cadenceDays,t);n.push({key:`${i.planId}:${o}`,title:s,meta:c,alert:!!(d&&d!=="customer"),on:i.state==="active",busy:e.busyPlan===i.planId,onToggle:t=>e.onToggle(i,t),error:e.rowError&&e.rowError.planId===i.planId&&o===0?e.rowError.line:null})});let i=r.find(e=>e.state==="active")??null,o=[],l=_(e.reviewBy,{weekday:true});l&&o.push({k:t.reviewByLabel,v:l});let a=_(i?.nextRun??null,{weekday:true});a&&o.push({k:t.ships,v:a});let s=r.some(e=>e.stopReason==="payment_declined"),d=[];e.address&&d.push({k:t.shipTo,v:Re(e.address),change:{label:t.change,to:{name:"address",then:{name:"plan"}}}}),e.card&&d.push({k:t.payWith,v:ee(e.card.brand,e.card.last4),alert:s?t.declined(e.packageMonth):null,change:{label:t.change,to:{name:"card",then:{name:"plan"}}}});let c=e.packageMonth??$(i?.nextRun??null);return{sub:null,rows:n,emptyLine:n.length===0?t.repeatsEmpty:null,next:i&&o.length>0?{sum:o,link:e.packageMonth?{label:t.reviewMonthsPackage(e.packageMonth),to:{name:"package"}}:null}:null,delivery:d,breakCard:i?{skip:c?{label:t.skipMonth(c),ask:t.skipMonthAsk(c),body:t.skipMonthBody}:null,pause:{label:t.pausePlan,ask:t.pausePlanAsk,body:t.pausePlanBody},busy:e.breakBusy,error:e.breakError,onConfirm:e.onBreak}:null,legal:t.legal}}var Ue={pending_placement:1,placement_unknown:1,placed:1,accepted:2,release_sent:2,release_unknown:2,released:2,shipped:3,delivered:5};var Ge=e.createContext(null),Me=Ge.Provider;function Ke(){let t=e.useContext(Ge);if(!t)throw new n("not-initialized","shop screens render inside EverfurShop");return t}function Ze(e){return e.phase==="ready"&&e.value?$(e.value.review.shipsOn):null}function Ye(e,t){return e.phase==="ready"&&e.value!==null?{phase:"ready",value:t(e.value)}:e.phase==="loading"?{phase:"loading"}:{phase:"failed",retry:e.refresh}}function Je(e,t){return!e||e.length===0?null:(t?e.find(e=>e.paymentMethodId===t):void 0)??e[0]??null}function Xe(e){let{client:t}=de(),r=[...new Set(e)].sort();return ce(`offers-by-id:${r.join(",")}`,async()=>{let e=await Promise.all(r.map(e=>t.offer(e)));return R(new Map(r.map((t,r)=>[t,e[r].ok?e[r].value:null])))})}function Qe(e,t){return t.kind==="confirmed"?null:t.kind==="needsPayerAction"?e.cardStepFailed:t.kind==="payerActionFailed"?t.message??e.cardStepFailed:t.kind==="payerActionClosed"?e.cardStepClosed:t.error.kind==="refused"&&t.error.reasonCode==="price_changed"?e.priceChanged:oe(e,t.error)}var _e=/* @__PURE__ */new WeakMap;function $e(e,t,r){let n=_e.get(e);n||(n=/* @__PURE__ */new Map,_e.set(e,n)),r?n.set(t,r):n.delete(t)}function et(e,t){return _e.get(e)?.get(t)??null}function tt(e,t){_e.get(e)?.delete(t)}var rt="\0card";function nt(t){let{copy:r,petName:n,packageSource:i,payments:o,client:l}=de(),{tabs:a,pkg:s}=Ke(),d=s.phase==="ready"?s.value?.plan??null:null,c=be(),u=me(d?.destination??null),[p,h]=e.useState(null),[g,f]=e.useState(null),[m,b]=e.useState(false),[y,x]=e.useState(false),k=we((e,t,r)=>i.removeLine(t,r,e));if(s.phase==="ready"&&s.value===null)return{tabs:a,view:{phase:"failed",retry:s.refresh}};let w=Ye(s,e=>Ve({pkg:e,card:Je(c.value,e.plan.paymentMethodId),address:u.value?.address??null,copy:r,petName:n,removing:p,approving:m,placed:y,error:g,onRemove:t=>{h(t),f(null),k.run(e,t).then(e=>{h(null),e&&e.ok?s.refresh():e&&f(oe(r,e.error))})},onApprove:()=>{m||y||(b(true),f(null),(async()=>{let n=await ot(i,e,o);b(false);let a=Qe(r,n),d=n.kind!=="failed"?n.orderIds[0]:void 0;d?(x(true),$e(l,d,a),t({name:"order",orderId:d})):(f(a),n.kind==="failed"&&n.error.kind==="refused"&&s.refresh())})())}}));return{tabs:a,view:w}}var it=/* @__PURE__ */new WeakMap;async function ot(e,t,r){let n=it.get(t);n||(n=new N,it.set(t,n));let i=await e.approve(t,n,r);return(i.kind!=="failed"||i.error.kind==="refused")&&it.delete(t),i}function lt(t,r){let[n,i]=e.useState(t);return e.useEffect(()=>{let e=setTimeout(()=>i(t),r);return()=>clearTimeout(e)},[t,r]),n}function at(t){let{client:r,copy:n,petName:i,pets:o}=de(),{tabs:l,pkg:a}=Ke(),[s,d]=e.useState(t??""),c=lt(s,250),u=pe({text:c}),p=ge(),h=p.value??[],g=o.map(e=>e.name),f=Ze(a),m=h.filter(e=>e.status==="ready"&&e.offerId!==null&&i(e.petId)).map(e=>e.offerId),b=Xe(m),y=u.phase==="ready"?u.value??null:null,[x,k]=e.useState(null),w=x&&y&&x.first===y?x:null,v=w?w.cursor:y?.nextCursor??null,S=e.useRef(false),j=e.useCallback(()=>{if(!y||!v||S.current)return;S.current=true,k(e=>({first:y,offers:e&&e.first===y?e.offers:[],cursor:v,loading:true,failed:false}));let e=c.trim();r.offers({...e?{text:e}:{},cursor:v,limit:100}).then(e=>{S.current=false,k(t=>!t||t.first!==y?t:e.ok?{first:y,offers:[...t.offers,...e.value.offers],cursor:e.value.nextCursor,loading:false,failed:false}:{...t,loading:false,failed:true})})},[r,y,v,c]),C,I=p.phase==="loading"||m.length>0&&b.phase==="loading";if(y&&!I){let e=/* @__PURE__ */new Set,t=[];for(let r of[...y.offers,...w?.offers??[]])e.has(r.offerId)||(e.add(r.offerId),t.push(r));C={phase:"ready",value:Be({offers:t,prescribed:[...b.value?.values()??[]].filter(e=>e!==null),prescriptions:h,copy:n,petName:i,petNames:g,packageMonth:f,searching:c.trim()!=="",petId:o.length===1?o[0].petId:null})}}else u.phase==="loading"||I?C={phase:"loading"}:u.phase==="unavailable"?C={phase:"ready",value:[]}:C={phase:"failed",retry:u.refresh};let L=C.phase==="ready"?C.value.reduce((e,t)=>e+t.tiles.length,0):1,z=C.phase==="ready"&&L===0?c.trim()?n.noMatches(c.trim()):n.nothingHereYet:null,A=y&&v?{onMore:j,loading:w?.loading??false,failed:w?.failed??false}:null;return{tabs:l,view:{sub:null,query:s,onQuery:d,filters:[],shelves:C,empty:z,legal:n.legal,more:A}}}function st(e,t,r,n){return{offerId:e.offerId,quantity:n?.packCount??t,...n?.petId??r?{petId:n?.petId??r}:{},...n?{rxId:n.rxId}:{}}}function dt(e,t){return{name:e,offerId:t.offerId,quantity:t.quantity,...t.petId?{petId:t.petId}:{},...t.rxId?{rxId:t.rxId}:{}}}function ct(t,r,n){let{copy:i,petName:o,pets:l,client:a}=de(),{config:s,pkg:d,bookVisitHref:c}=Ke(),u=he(t),p=ge(),[h,g]=e.useState("monthly"),[f,m]=e.useState(1),[b,y]=e.useState(null),x=Ze(d),k=xe(),w=(d.phase==="ready"?d.value?.plan??null:null)??k.value?.plans.find(e=>e.state==="active")??null,v=we((e,t,r)=>a.updatePlan(t.planId,{idempotencyKey:e.key("add"),lines:[...t.lines.map(e=>({offerId:e.offerId,quantity:e.quantity,...e.petId?{petId:e.petId}:{}})),r]})),S=(e,t)=>{if(y(null),!t)return n(dt("buy",e));if(!w)return n(dt("consent",e));v.run(w,e).then(e=>{e&&e.ok?(d.refresh(),n({name:"package"})):e&&y(oe(i,e.error))})};if(u.phase==="ready"&&u.value?.requiresRx){let e=u.value,t={offer:e,copy:i,petId:r??null,petName:o,firstPetName:l[0]?.name??null,packageMonth:x,error:b,bookVisitHref:c};return p.phase==="unavailable"?{kind:"rx",view:{phase:"ready",value:De({...t,prescriptions:[],busy:false,onSubmit:()=>{}})}}:{kind:"rx",view:Ye(p,r=>De({...t,prescriptions:r,busy:v.busy,onSubmit:t=>S(st(e,1,null,t),w!==null)}))}}let j=(r?o(r):null)??l[0]?.name??null;return{kind:"product",view:Ye(u,e=>Ee({offer:e,copy:i,petName:j,packageMonth:x,plansOn:s.recurringTermsVersion!==null,choice:h,onChoice:g,quantity:f,onQuantity:m,busy:v.busy,error:b,onSubmit:()=>S(st(e,f,r??l[0]?.petId??null,null),h==="monthly"&&s.recurringTermsVersion!==null&&j!==null)}))}}function ut(){let{copy:t,petName:r,client:n}=de(),{tabs:i,pkg:o}=Ke(),l=xe(),a=be(),s=(l.value?.plans??[]).filter(e=>e.state!=="cancelled"),d=s.find(e=>e.state==="active")??s[0]??null,c=me(d?.destination??null),u=Xe(s.flatMap(e=>e.lines.map(e=>e.offerId))),[p,h]=e.useState(null),[g,f]=e.useState(null),[m,b]=e.useState(null),y=we((e,t,r)=>n.planAction(t.planId,{idempotencyKey:e.key(r?"resume":"pause"),operation:r?"resume":"pause"})),x=we((e,t,r)=>n.planAction(t.planId,{idempotencyKey:e.key(r),operation:r})),k=Ze(o);if(l.phase==="unavailable")return{tabs:i,view:{phase:"failed",retry:l.refresh}};let w=Ye(l,()=>qe({plans:s,offers:u.value??/* @__PURE__ */new Map,copy:t,petName:r,card:Je(a.value,d?.paymentMethodId??null),address:c.value?.address??null,reviewBy:o.phase==="ready"?o.value?.review.approveBy??null:null,packageMonth:k,busyPlan:p,rowError:g,onToggle:(e,r)=>{h(e.planId),f(null),y.run(e,r).then(r=>{h(null),y.reset(),r&&r.ok?l.refresh():r&&f({planId:e.planId,line:oe(t,r.error)})})},breakBusy:x.busy,breakError:m,onBreak:async e=>{if(!d)return false;b(null);let r=await x.run(d,e);return r&&r.ok?(x.reset(),l.refresh(),o.refresh(),true):(r&&b(oe(t,r.error)),false)}}));return{tabs:i,view:w}}var pt=/* @__PURE__ */new WeakMap;function ht(e){return pt.get(e)??null}function gt(e){pt.delete(e)}function ft(t,r){let{copy:n,client:i}=de(),{pkg:o}=Ke(),l=t??{name:"package"},a=e.useRef(null),s=we(async(e,r)=>{let n=JSON.stringify(r),l=a.current?.sent===n?a.current.ref:null;if(l===null){let e=await i.addAddress(r);if(!e.ok)return W(e.error);l=e.value.ref,a.current={sent:n,ref:l}}if(t?.name==="package"||t?.name==="plan"){let r=await i.plans({limit:100});if(!r.ok)return W(r.error);let n=r.value.plans.filter(e=>e.state!=="cancelled"),a=t.name==="package"?n.find(e=>e.planId===(o.value?.plan.planId??null))??null:n.find(e=>e.state==="active")??n[0]??null,s=a?n.filter(e=>e.planId===a.planId||a.destination!==null&&e.destination===a.destination):[];for(let t of s){if(t.destination===l)continue;let r=await i.updatePlan(t.planId,{idempotencyKey:e.key(`destination:${t.planId}`),destination:l});if(!r.ok)return W(r.error)}}return R(l)});return{back:{label:n.backToCare,to:l},busy:s.busy,error:s.error?oe(n,s.error):null,onSave:e=>{s.run(e).then(e=>{!e||!e.ok||(t?.name==="package"||t?.name==="plan"?o.refresh():pt.set(i,e.value),r(l))})}}}function mt(t,r,n){let{copy:i,client:o,payments:l}=de(),{config:a}=Ke(),s=t??{name:"plan"},[d,c]=e.useState(()=>et(o,rt));e.useEffect(()=>tt(o,rt),[o]);let u=we(async()=>{if(n){let e=await n();return e.ok?R(true):(c(e.closed?i.cardStepClosed:e.message??i.cardStepFailed),R(false))}let e=await o.setupPaymentMethod();if(!e.ok||!l)return e.ok?W({kind:"invalidRequest"}):W(e.error);let t=await l.confirmCardSetup(e.value.payerAction);return t.ok?R(true):(c(t.closed?i.cardStepClosed:t.message??i.cardStepFailed),R(false))}),p=n?true:l!==null&&a.stripePublishableKey!==null;return{back:{label:i.backToCare,to:s},error:d??(u.error?oe(i,u.error):null),start:p?{label:i.cardStart,busyLabel:i.saving,busy:u.busy,disabled:u.busy,onPress:()=>{c(null),u.run().then(e=>{e&&e.ok&&e.value&&r(s)})}}:null}}function bt(t){let{copy:r,saveProfileName:n,onProfileNameRequired:i}=de(),[o,l]=e.useState(false),[a,s]=e.useState(false),[d,c]=e.useState(null),u=e.useRef(t);u.current=t;let p=e.useRef(false),h=e.useRef(true);return e.useEffect(()=>(h.current=true,()=>{h.current=false}),[]),{view:o?{line:r.nameMissing,form:n?{firstLabel:r.firstName,lastLabel:r.lastName,saveLabel:r.saveName,busy:a,error:d,onSave:e=>{let t=e.firstName.trim(),i=e.lastName.trim();p.current||!t||!i||(p.current=true,s(true),c(null),n({firstName:t,lastName:i}).then(e=>e,()=>false).then(e=>{if(p.current=false,!!h.current){if(s(false),!e){c(r.actionFailed);return}l(false),u.current()}}))}}:null,handoff:!n&&i?{label:r.addName,onPress:i}:null}:null,raise:e=>D(e)?(c(null),l(true),true):false,clear:()=>l(false)}}function yt(){let e=fe(),t=be(),r=e.value?.find(e=>e.isDefault&&e.isComplete)??e.value?.find(e=>e.isComplete)??null,n=Je(t.value,null);return{addresses:e,cards:t,address:r,card:n}}function xt(e,t){return t.phase==="unavailable"?e.actionFailed:t.phase==="failed"&&t.error?oe(e,t.error):null}function kt(t,r){let{copy:n,client:i,payments:o,petName:l}=de(),a=he(t.offerId),{address:s,card:d}=yt(),c=e.useMemo(()=>({offerId:t.offerId,quantity:t.quantity,...t.petId?{petId:t.petId}:{},...t.rxId?{rxId:t.rxId}:{}}),[t.offerId,t.quantity,t.petId,t.rxId]),u=ce(s?`quote:${s.ref}:${JSON.stringify(c)}`:null,()=>i.quote({lines:[c],shipTo:s.ref})),[p,h]=e.useState(null),[g,f]=e.useState(null),[m,b]=e.useState(false),y=we(async e=>{let t=await i.createCheckout({idempotencyKey:e.key("draft"),lines:[c],shipTo:s.ref});if(!t.ok)return W(t.error);if((p??u.value?.total??null)!==t.value.total)return h(t.value.total),W({kind:"refused",status:409,reasonCode:"price_changed",message:null});let r=await q(e=>i.confirmCheckout(t.value.checkoutId,{idempotencyKey:e,expectedTotal:t.value.total,paymentMethodId:d.paymentMethodId}),e,o);return r.kind==="failed"?W(r.error):R(r)}),x=[...s?[]:[{label:n.addressNeeded,to:{name:"address",then:t}}],...d?[]:[{label:n.cardTitle,to:{name:"card",then:t}}]],k=u.value,w=p??k?.total??null,v=e.useRef(()=>{}),S=bt(()=>v.current()),j=()=>{m||(f(null),S.clear(),y.run().then(e=>{if(!e)return;let t=e.ok?e.value:{kind:"failed",error:e.error},o=t.kind!=="failed"?t.orderIds[0]:void 0;o?(b(true),$e(i,o,Qe(n,t)),r({name:"order",orderId:o})):t.kind==="failed"&&S.raise(t.error)||f(Qe(n,t))}))};return v.current=j,{back:{label:n.backToShop,to:{name:"product",offerId:t.offerId}},title:n.confirmTitle,lines:a.value?[{key:c.offerId,name:a.value.title,meta:l(c.petId),price:a.value.price!==null?M(a.value.price*c.quantity):null,form:Le(a.value.requiresRx,a.value.title)}]:[],sum:k&&w!==null?[{k:n.shipping,v:k.shipping===0?n.free:M(k.shipping)},{k:n.tax,v:M(k.tax)},{k:n.total,v:M(w)}]:null,needs:x,pay:s&&d&&k?{label:n.confirmPay,busyLabel:n.saving,busy:y.busy,disabled:y.busy||m,onPress:j}:null,note:d?n.chargedWhenShips(ee(d.brand,d.last4)):null,error:g??xt(n,u),nameStep:S.view}}function wt(e,t){let{copy:r,client:n}=de(),{config:i,pkg:o}=Ke(),{address:l,card:a}=yt(),s=we(t=>n.createPlan({idempotencyKey:t.key("create"),cadenceDays:30,destination:l.ref,paymentMethodId:a.paymentMethodId,consentTermsVersion:i.recurringTermsVersion,lines:[{offerId:e.offerId,quantity:e.quantity,...e.petId?{petId:e.petId}:{},...e.rxId?{rxId:e.rxId}:{}}]})),d=[...l?[]:[{label:r.addressNeeded,to:{name:"address",then:e}}],...a?[]:[{label:r.cardTitle,to:{name:"card",then:e}}]];return{back:{label:r.backToShop,to:{name:"product",offerId:e.offerId}},terms:i.recurringTermsUrl?{label:r.consentTermsLink,href:i.recurringTermsUrl}:null,needs:d,error:s.error?oe(r,s.error):null,agree:l&&a&&i.recurringTermsVersion?{label:r.consentAgree,busyLabel:r.saving,busy:s.busy,disabled:s.busy,onPress:()=>{s.run().then(e=>{e&&e.ok&&(o.refresh(),t({name:"plan"}))})}}:null}}var vt=["ordered","shipped","out_for_delivery","delivered"];function Tt(e){return e.paymentStatus==="failed"||e.canPay&&e.paymentStatus==="requires_action"}function St(e){return!e.canPay&&(e.paymentStatus==="authorized"||e.paymentStatus==="captured")}function jt(e){return e.paymentStatus==="authorized"||e.paymentStatus==="captured"}function Ct(e,t,r,n=false){if(n)return{label:t.paymentFailed,tone:"risk"};let i=t.orderStatus[e]??r.orderSteps[0];return e==="delivered"?{label:i,tone:"done"}:e==="cancelled"||e==="rejected"?{label:i,tone:"quiet"}:e==="needs_support"?{label:i,tone:"risk"}:{label:i,tone:"wait"}}function It(e){if(e.tracking)return e.tracking;let t=null;for(let r of e.shipments)for(let e of r.tracking)(!t||(e.occurredAt??"")>(t.occurredAt??""))&&(t=e);return t}function Lt(e){return e.arrivesBy??It(e)?.deliveryBy??null}function zt(e){let t=e.steps?.find(e=>e.key==="delivered");if(t?.at)return t.at;for(let t of e.shipments){let e=t.tracking.find(e=>e.status==="delivered");if(e?.occurredAt)return e.occurredAt}return null}function At(e){return e==="cancelled"||e==="rejected"||e==="needs_support"}function Rt(e,t,r){let n=e.summary.status;return Tt(e)?t.paymentFailed:n==="delivered"?r.orderSteps[3]:At(n)?t.orderStatus[n]??r.orderSteps[0]:n==="shipped"?r.orderSteps[1]:r.orderSteps[0]}function Wt(e,t,r){let n=e.summary.status;if(At(n)||Tt(e))return null;if(n==="delivered"){let t=_(zt(e),{when:true});return t?r.deliveredOn(t):null}let i=_(Lt(e),{weekday:true});if(i)return r.arrivesBy(i);let o=t.orderStatus[n]??null;return o===Rt(e,t,r)?null:o}function Ft(e){return e==="delivered"||At(e)}function Vt(e,t){let r=e.summary.status;if(r==="cancelled"||r==="rejected")return null;let n=e.steps&&e.steps.length>0?e.steps:null,i=It(e),o=e.shipments.flatMap(e=>e.tracking).map(e=>e.occurredAt).filter(e=>!!e).sort()[0]??null,l={ordered:{done:true,at:e.summary.placedAt},shipped:{done:r==="shipped"||r==="delivered"||!!i,at:o},out_for_delivery:{done:r==="delivered",at:null},delivered:{done:r==="delivered",at:zt(e)}},a=_(Lt(e),{weekday:true}),s=vt.map((e,r)=>{let i=n?.find(t=>t.key===e),o=i?i.done:l[e].done,s=i?i.at:l[e].at,d=o?_(s,{when:true}):e==="delivered"&&a?t.expected(a):null;return{key:e,title:t.orderSteps[r],line:d,done:o}}),d=s.reduce((e,t,r)=>t.done?r:e,-1);return s.map(({done:e,...t},r)=>({...t,state:e?r===d&&r<s.length-1?"now":"done":"next"}))}function Ht(e){return e.map(e=>e.title).join(", ")}function Pt(e,t,r=M(e.total)){let n=_(e.placedAt);return n?`${t.placed(n)} · ${r}`:r}var Ot={body:{paddingTop:8,paddingRight:16,paddingLeft:16},pushBody:{paddingRight:16,paddingLeft:16},subtabs:{backgroundColor:"#ffffff"},subtab:{minHeight:44,rowGap:6,columnGap:6},subtabCurrent:{minHeight:44,rowGap:6,columnGap:6},titleBlock:{paddingTop:4,rowGap:2,columnGap:2},screenTitle:{},screenMeta:{},stack:{marginTop:12,rowGap:12,columnGap:12},card:{paddingTop:16,paddingRight:16,paddingBottom:16,paddingLeft:16,borderWidth:1,borderColor:"#e4e4e4",borderRadius:20,backgroundColor:"#ffffff"},cardHead:{marginBottom:12,rowGap:8,columnGap:16},cardTitle:{marginBottom:12},cardTitleInHead:{},cardLink:{},cardLinkAfterNote:{marginTop:12,marginBottom:2.34},forLabel:{marginTop:4,marginBottom:8},forLabelNext:{marginTop:16,marginBottom:8},itemsLiFirst:{paddingBottom:16,rowGap:12,columnGap:12},itemsLiMid:{paddingTop:16,paddingBottom:16,borderTopWidth:1,borderTopColor:"#e4e4e4",rowGap:12,columnGap:12},itemsLiLast:{paddingTop:16,borderTopWidth:1,borderTopColor:"#e4e4e4",rowGap:12,columnGap:12},thumb:{borderRadius:10,backgroundColor:"#eaeef6",width:48,height:48},thumbIcon:{width:22,height:22},thumbPink:{borderRadius:10,backgroundColor:"#ffeae8"},thumbYellow:{borderRadius:10,backgroundColor:"#fcf0d6"},thumbSage:{borderRadius:10,backgroundColor:"#e6ece8"},itemsName:{rowGap:4,columnGap:8},itemsMeta:{marginTop:2},itemsActs:{marginTop:6,rowGap:16,columnGap:16},itemsActLink:{},itemsActButton:{},itemsEnd:{rowGap:4,columnGap:4},itemsPrice:{},pill:{paddingRight:10,paddingLeft:10,borderRadius:999,backgroundColor:"#eaeef6",minHeight:24},pillSoon:{paddingRight:10,paddingLeft:10,borderRadius:999,backgroundColor:"#ffffff",minHeight:24},btnRow:{paddingRight:14,paddingLeft:14,borderWidth:1,borderColor:"#10462e",borderRadius:999,minHeight:36,rowGap:8,columnGap:8},btnRowIcon:{width:17,height:17},btnRowLabel:{},sumTotal:{paddingRight:24,paddingLeft:24,borderWidth:1,borderColor:"#e4e4e4",borderRadius:20,backgroundColor:"#ffffff"},sumRowFirst:{paddingTop:14,paddingBottom:14,rowGap:2,columnGap:16},sumRowLast:{paddingTop:14,paddingBottom:14,rowGap:2,columnGap:16},sumDt:{},sumDd:{},sumDdTotal:{},noteAfterSum:{marginTop:12},rowsLiFirst:{paddingBottom:16,rowGap:8,columnGap:16},rowsLiNext:{paddingTop:16,borderTopWidth:1,borderTopColor:"#e4e4e4",rowGap:8,columnGap:16},rowsK:{},rowsV:{marginTop:2},rowsMeta:{marginTop:2},legal:{marginTop:32},legalText:{},traybar:{paddingTop:12,paddingRight:16,paddingBottom:8,paddingLeft:16,backgroundColor:"#ffffff",rowGap:6,columnGap:6},btnInk:{paddingRight:24,paddingLeft:24,borderWidth:1,borderColor:"#10462e",borderRadius:999,backgroundColor:"#10462e",minHeight:50,rowGap:8,columnGap:8},traybarFine:{},input:{paddingRight:16,paddingLeft:16,borderWidth:1,borderColor:"#e4e4e4",borderRadius:10,backgroundColor:"#ffffff",minHeight:52,rowGap:10,columnGap:10},inputIcon:{width:20,height:20},inputText:{paddingTop:1,paddingRight:2,paddingBottom:1,paddingLeft:2},inputPlaceholder:{},filters:{paddingBottom:2,rowGap:8,columnGap:8},filter:{paddingRight:14,paddingLeft:14,borderWidth:1,borderColor:"#e4e4e4",borderRadius:999,minHeight:36},filterCurrent:{paddingRight:14,paddingLeft:14,borderWidth:1,borderColor:"#10462e",borderRadius:999,backgroundColor:"#ffeae8",minHeight:36},sectionHead:{marginTop:8,rowGap:8,columnGap:12},prods:{rowGap:16,columnGap:12},prod:{rowGap:12,columnGap:12},prodImg:{borderRadius:10,backgroundColor:"#ffeae8",aspectRatio:1},prodIcon:{width:36,height:36},prodTags:{rowGap:6,columnGap:6,position:"absolute",top:8,left:8},prodBody:{rowGap:4,columnGap:4},prodName:{},prodMeta:{},prodPrice:{marginTop:4,rowGap:8,columnGap:8},pillClear:{paddingRight:10,paddingLeft:10,borderRadius:999,backgroundColor:"#ffffff",minHeight:24},pillPlain:{paddingRight:10,paddingLeft:10,borderRadius:999,backgroundColor:"#ffffff",minHeight:24},pillOverdue:{paddingRight:10,paddingLeft:10,borderRadius:999,backgroundColor:"#ffffff",minHeight:24},hero:{borderRadius:20,backgroundColor:"#fcf0d6",aspectRatio:1.6},heroIcon:{width:56,height:56},source:{rowGap:8,columnGap:8},sourceIcon:{marginTop:2,width:16,height:16},sourceBold:{},sourceLink:{},choices:{rowGap:8,columnGap:8},choiceCurrent:{paddingTop:14,paddingRight:16,paddingBottom:14,paddingLeft:16,borderWidth:1,borderColor:"#10462e",borderRadius:10,backgroundColor:"#ffeae8",rowGap:12,columnGap:12},choice:{paddingTop:14,paddingRight:16,paddingBottom:14,paddingLeft:16,borderWidth:1,borderColor:"#e4e4e4",borderRadius:10,backgroundColor:"#ffffff",rowGap:12,columnGap:12},radioOn:{borderWidth:6,borderColor:"#10462e",borderRadius:10,backgroundColor:"#ffffff",width:20,height:20},radioOff:{borderWidth:1,borderColor:"#819d90",borderRadius:10,backgroundColor:"#ffffff",width:20,height:20},choiceText:{},choiceTitle:{},choiceMeta:{marginTop:2},facts:{marginTop:12,rowGap:8,columnGap:8},factsLi:{paddingTop:12,paddingRight:12,paddingBottom:12,paddingLeft:12,borderRadius:10,backgroundColor:"#e6ece8",rowGap:4,columnGap:4},factsLiHer:{paddingTop:12,paddingRight:12,paddingBottom:12,paddingLeft:12,borderRadius:10,backgroundColor:"#fcf0d6",rowGap:4,columnGap:4},factsK:{},factsN:{},factsUnit:{},noteAfterFacts:{marginTop:12},cardLead:{marginBottom:12},person:{rowGap:12,columnGap:16},avatar:{borderRadius:18,backgroundColor:"#ffffff",width:36,height:36},personName:{},personMeta:{},sourceInCard:{marginTop:12,rowGap:8,columnGap:8},sourceInCardIcon:{marginTop:2,width:16,height:16},noteAfterSource:{marginTop:8},rxLead:{marginBottom:12},btnOutlineSm:{marginTop:12,paddingRight:16,paddingLeft:16,borderWidth:1,borderColor:"#10462e",borderRadius:999,minHeight:46,rowGap:8,columnGap:8},btnOutlineSmIcon:{width:20,height:20},noteStandalone:{},noteLink:{},sumPlain:{paddingRight:24,paddingLeft:24,borderWidth:1,borderColor:"#e4e4e4",borderRadius:20,backgroundColor:"#ffffff"},sumPlainRowFirst:{paddingTop:14,paddingBottom:14,rowGap:2,columnGap:16},sumPlainRowLast:{paddingTop:14,paddingBottom:14,rowGap:2,columnGap:16},sumPlainDd:{},planRowsLiFirst:{paddingTop:12,paddingBottom:12,rowGap:8,columnGap:16},planRowsLiNext:{paddingTop:12,paddingBottom:12,borderTopWidth:1,borderTopColor:"#e4e4e4",rowGap:8,columnGap:16},switch:{width:48,height:28},switchTrack:{borderRadius:999,backgroundColor:"#10462e",width:48,height:28},switchKnob:{borderRadius:11,backgroundColor:"#ffffff",position:"absolute",top:3,left:3,transform:[{translateX:20}],width:22,height:22},switchTrackOff:{borderRadius:999,backgroundColor:"#d0d6d3",width:48,height:28},switchKnobOff:{borderRadius:11,backgroundColor:"#ffffff",position:"absolute",top:3,left:3,width:22,height:22},breaks:{marginTop:12,rowGap:12,columnGap:24},btnSm:{paddingRight:16,paddingLeft:16,borderWidth:1,borderColor:"#10462e",borderRadius:999,minHeight:46,rowGap:8,columnGap:8},linkDanger:{},sheet:{borderTopLeftRadius:28,borderTopRightRadius:28,backgroundColor:"#ffffff"},sheetBackdrop:{backgroundColor:"rgba(0, 0, 0, 0.32)",position:"absolute"},sheetGrab:{height:20},sheetGrabBar:{borderRadius:3,backgroundColor:"#c9c9c9",width:36,height:5},sheetHead:{paddingTop:4,paddingRight:16,paddingBottom:12,paddingLeft:16,rowGap:12,columnGap:12},sheetClose:{paddingTop:1,paddingRight:6,paddingBottom:1,paddingLeft:6,borderRadius:18,backgroundColor:"#e6ece8",width:36,height:36},sheetCloseIcon:{width:20,height:20},sheetBody:{paddingRight:16,paddingBottom:24,paddingLeft:16,rowGap:12,columnGap:12},sheetText:{},sheetActions:{marginTop:16,rowGap:8,columnGap:8},btnDanger:{paddingRight:16,paddingLeft:16,borderWidth:1,borderColor:"#c03410",borderRadius:999,backgroundColor:"#ffffff",minHeight:46,rowGap:8,columnGap:8},btnOutline:{paddingRight:24,paddingLeft:24,borderWidth:1,borderColor:"#10462e",borderRadius:999,minHeight:52,rowGap:8,columnGap:8},rec:{marginRight:-8,marginLeft:-8,rowGap:4,columnGap:4},recRow:{paddingTop:10,paddingRight:8,paddingBottom:10,paddingLeft:8,borderRadius:10,rowGap:12,columnGap:12},recIcon:{width:20,height:20},recText:{rowGap:2,columnGap:2},recTitle:{},recMeta:{},recEnd:{rowGap:8,columnGap:8},trackerLi:{paddingBottom:24,rowGap:16,columnGap:16},trackerLiLast:{rowGap:16,columnGap:16},trackerLineDone:{borderRadius:1,backgroundColor:"#10462e",position:"absolute",top:30,left:13,bottom:2,width:2},trackerLine:{borderRadius:1,backgroundColor:"#e4e4e4",position:"absolute",top:30,left:13,bottom:2,width:2},dotDone:{borderWidth:2,borderColor:"#10462e",borderRadius:14,backgroundColor:"#10462e",width:28,height:28},dotDoneIcon:{width:16,height:16},dotNow:{borderWidth:2,borderColor:"#10462e",borderRadius:14,backgroundColor:"#ffffff",width:28,height:28},dotNowCore:{borderRadius:5,backgroundColor:"#07c168",width:10,height:10},dotNext:{borderWidth:2,borderColor:"#e4e4e4",borderRadius:14,backgroundColor:"#ffffff",width:28,height:28},trackerTitle:{paddingTop:3,rowGap:4,columnGap:8},trackerTitleNext:{paddingTop:3,rowGap:4,columnGap:8},trackerWhen:{marginTop:2},trackerText:{marginTop:2},pillStable:{paddingRight:10,paddingLeft:10,borderRadius:999,backgroundColor:"#dcf6ea",minHeight:24},trackItemsEnd:{rowGap:4,columnGap:4},trackItemsLiFirst:{paddingBottom:16,rowGap:12,columnGap:12},trackItemsLiLast:{paddingTop:16,borderTopWidth:1,borderTopColor:"#e4e4e4",rowGap:12,columnGap:12},noteAfterTotal:{marginTop:8},rowLink:{paddingTop:16,paddingRight:24,paddingBottom:16,paddingLeft:24,borderWidth:1,borderColor:"#e4e4e4",borderRadius:20,backgroundColor:"#ffffff",rowGap:12,columnGap:12},rowLinkIcon:{width:22,height:22},rowLinkChevron:{width:20,height:20},ghost:{marginTop:16,rowGap:10,columnGap:10},ghostBar:{borderRadius:999,backgroundColor:"#e6ece8",height:12},field:{rowGap:6,columnGap:6},fieldLabel:{},fieldInput:{paddingRight:16,paddingLeft:16,borderWidth:1,borderColor:"#e4e4e4",borderRadius:10,backgroundColor:"#ffffff",minHeight:52,rowGap:10,columnGap:10},fieldInputText:{paddingTop:1,paddingRight:2,paddingBottom:1,paddingLeft:2}},Bt={body:{color:"#000000",fontSize:17,fontWeight:"400",lineHeight:26.34375},pushBody:{color:"#000000",fontSize:17,fontWeight:"400",lineHeight:26.34375},subtabs:{color:"#000000",fontSize:17,fontWeight:"400",lineHeight:26.34375},subtab:{color:"#6b6b6b",fontSize:15,fontWeight:"500",lineHeight:23.25},subtabCurrent:{color:"#10462e",fontSize:15,fontWeight:"700",lineHeight:23.25},titleBlock:{color:"#000000",fontSize:17,fontWeight:"400",lineHeight:26.34375},screenTitle:{color:"#10462e",fontSize:22,fontWeight:"500",lineHeight:26.390625,letterSpacing:-.33},screenMeta:{color:"#6b6b6b",fontSize:13,fontWeight:"400",lineHeight:18.84375},stack:{color:"#000000",fontSize:17,fontWeight:"400",lineHeight:26.34375},card:{color:"#000000",fontSize:17,fontWeight:"400",lineHeight:26.34375},cardHead:{color:"#000000",fontSize:17,fontWeight:"400",lineHeight:26.34375},cardTitle:{color:"#10462e",fontSize:18,fontWeight:"700",lineHeight:22.5,letterSpacing:-.36},cardTitleInHead:{color:"#10462e",fontSize:18,fontWeight:"700",lineHeight:22.5,letterSpacing:-.36},cardLink:{color:"#10462e",fontSize:15,fontWeight:"700",lineHeight:21},cardLinkAfterNote:{color:"#10462e",fontSize:15,fontWeight:"700",lineHeight:21},forLabel:{color:"#6b6b6b",fontSize:12,fontWeight:"700",lineHeight:16.796875,letterSpacing:.72,textTransform:"uppercase"},forLabelNext:{color:"#6b6b6b",fontSize:12,fontWeight:"700",lineHeight:16.796875,letterSpacing:.72,textTransform:"uppercase"},itemsLiFirst:{color:"#000000",fontSize:17,fontWeight:"400",lineHeight:26.34375},itemsLiMid:{color:"#000000",fontSize:17,fontWeight:"400",lineHeight:26.34375},itemsLiLast:{color:"#000000",fontSize:17,fontWeight:"400",lineHeight:26.34375},thumb:{color:"#10462e",fontSize:17,fontWeight:"400",lineHeight:26.34375},thumbIcon:{color:"#10462e",fontSize:17,fontWeight:"400",lineHeight:26.34375},thumbPink:{color:"#10462e",fontSize:17,fontWeight:"400",lineHeight:26.34375},thumbYellow:{color:"#10462e",fontSize:17,fontWeight:"400",lineHeight:26.34375},thumbSage:{color:"#10462e",fontSize:17,fontWeight:"400",lineHeight:26.34375},itemsName:{color:"#10462e",fontSize:17,fontWeight:"700",lineHeight:22.09375},itemsMeta:{color:"#6b6b6b",fontSize:13,fontWeight:"400",lineHeight:18.84375},itemsActs:{color:"#000000",fontSize:17,fontWeight:"400",lineHeight:26.34375},itemsActLink:{color:"#10462e",fontSize:13,fontWeight:"700",lineHeight:20.140625,textDecorationLine:"underline"},itemsActButton:{color:"#10462e",fontSize:13,fontWeight:"700",lineHeight:20.140625,textDecorationLine:"underline",textAlign:"center"},itemsEnd:{color:"#000000",fontSize:17,fontWeight:"400",lineHeight:26.34375,fontVariant:["tabular-nums"]},itemsPrice:{color:"#10462e",fontSize:17,fontWeight:"700",lineHeight:26.34375,fontVariant:["tabular-nums"]},pill:{color:"#10462e",fontSize:12,fontWeight:"700",lineHeight:12,letterSpacing:.72,textTransform:"uppercase"},pillSoon:{color:"#10462e",fontSize:12,fontWeight:"700",lineHeight:12,letterSpacing:.72,textTransform:"uppercase"},btnRow:{color:"#10462e",fontSize:14,fontWeight:"400",lineHeight:14,textAlign:"center",fontVariant:["tabular-nums"]},btnRowIcon:{color:"#10462e",fontSize:14,fontWeight:"400",lineHeight:14,textAlign:"center",fontVariant:["tabular-nums"]},btnRowLabel:{color:"#10462e",fontSize:14,fontWeight:"400",lineHeight:14,textAlign:"center",fontVariant:["tabular-nums"]},sumTotal:{color:"#000000",fontSize:17,fontWeight:"400",lineHeight:26.34375},sumRowFirst:{color:"#000000",fontSize:17,fontWeight:"400",lineHeight:26.34375},sumRowLast:{color:"#000000",fontSize:17,fontWeight:"400",lineHeight:26.34375},sumDt:{color:"#6b6b6b",fontSize:15,fontWeight:"400",lineHeight:23.25},sumDd:{color:"#10462e",fontSize:15,fontWeight:"700",lineHeight:21,textAlign:"right"},sumDdTotal:{color:"#10462e",fontSize:20,fontWeight:"700",lineHeight:28,textAlign:"right"},noteAfterSum:{color:"#6b6b6b",fontSize:13,fontWeight:"400",lineHeight:19.5},rowsLiFirst:{color:"#000000",fontSize:17,fontWeight:"400",lineHeight:26.34375},rowsLiNext:{color:"#000000",fontSize:17,fontWeight:"400",lineHeight:26.34375},rowsK:{color:"#10462e",fontSize:17,fontWeight:"700",lineHeight:22.09375},rowsV:{color:"#000000",fontSize:15,fontWeight:"400",lineHeight:21.75},rowsMeta:{color:"#6b6b6b",fontSize:13,fontWeight:"400",lineHeight:18.84375},legal:{color:"#6b6b6b",fontSize:13,fontWeight:"400",lineHeight:20.796875,textAlign:"center"},legalText:{color:"#6b6b6b",fontSize:13,fontWeight:"400",lineHeight:20.796875,textAlign:"center"},traybar:{color:"#000000",fontSize:17,fontWeight:"400",lineHeight:26.34375},btnInk:{color:"#ffffff",fontSize:17,fontWeight:"700",lineHeight:17,textAlign:"center"},traybarFine:{color:"#6b6b6b",fontSize:12,fontWeight:"400",lineHeight:15.59375,textAlign:"center"},input:{color:"#000000",fontSize:17,fontWeight:"400",lineHeight:26.34375},inputIcon:{color:"#6b6b6b",fontSize:17,fontWeight:"400",lineHeight:26.34375},inputText:{color:"#000000",fontSize:17,fontWeight:"400",lineHeight:26.34375},inputPlaceholder:{color:"#757575",fontSize:17,fontWeight:"400"},filters:{color:"#000000",fontSize:17,fontWeight:"400",lineHeight:26.34375},filter:{color:"#10462e",fontSize:15,fontWeight:"400",lineHeight:18},filterCurrent:{color:"#10462e",fontSize:15,fontWeight:"700",lineHeight:18},sectionHead:{color:"#000000",fontSize:17,fontWeight:"400",lineHeight:26.34375},prods:{color:"#000000",fontSize:17,fontWeight:"400",lineHeight:26.34375},prod:{color:"#000000",fontSize:17,fontWeight:"400",lineHeight:26.34375},prodImg:{color:"#10462e",fontSize:17,fontWeight:"400",lineHeight:26.34375},prodIcon:{color:"#10462e",fontSize:17,fontWeight:"400",lineHeight:26.34375},prodTags:{color:"#000000",fontSize:17,fontWeight:"400",lineHeight:26.34375},prodBody:{color:"#000000",fontSize:17,fontWeight:"400",lineHeight:26.34375},prodName:{color:"#10462e",fontSize:15,fontWeight:"700",lineHeight:19.5},prodMeta:{color:"#6b6b6b",fontSize:13,fontWeight:"400",lineHeight:18.84375},prodPrice:{color:"#10462e",fontSize:15,fontWeight:"700",lineHeight:23.25,fontVariant:["tabular-nums"]},pillClear:{color:"#07c168",fontSize:12,fontWeight:"700",lineHeight:12,letterSpacing:.72,textTransform:"uppercase"},pillPlain:{color:"#10462e",fontSize:12,fontWeight:"700",lineHeight:12,letterSpacing:.72,textTransform:"uppercase"},pillOverdue:{color:"#c03410",fontSize:12,fontWeight:"700",lineHeight:12,letterSpacing:.72,textTransform:"uppercase"},hero:{color:"#10462e",fontSize:17,fontWeight:"400",lineHeight:26.34375},heroIcon:{color:"#10462e",fontSize:17,fontWeight:"400",lineHeight:26.34375},source:{color:"#6b6b6b",fontSize:13,fontWeight:"400",lineHeight:19.5},sourceIcon:{color:"#819d90",fontSize:13,fontWeight:"400",lineHeight:19.5},sourceBold:{color:"#6b6b6b",fontSize:13,fontWeight:"700",lineHeight:19.5},sourceLink:{color:"#10462e",fontSize:13,fontWeight:"700",lineHeight:19.5,textDecorationLine:"underline"},choices:{color:"#000000",fontSize:17,fontWeight:"400",lineHeight:26.34375},choiceCurrent:{color:"#000000",fontSize:17,fontWeight:"400",lineHeight:26.34375},choice:{color:"#000000",fontSize:17,fontWeight:"400",lineHeight:26.34375},radioOn:{color:"#000000",fontSize:13.333,fontWeight:"400"},radioOff:{color:"#000000",fontSize:13.333,fontWeight:"400"},choiceText:{color:"#000000",fontSize:17,fontWeight:"400",lineHeight:26.34375},choiceTitle:{color:"#10462e",fontSize:17,fontWeight:"700",lineHeight:22.09375},choiceMeta:{color:"#6b6b6b",fontSize:13,fontWeight:"400",lineHeight:18.1875},facts:{color:"#000000",fontSize:17,fontWeight:"400",lineHeight:26.34375},factsLi:{color:"#000000",fontSize:17,fontWeight:"400",lineHeight:26.34375},factsLiHer:{color:"#000000",fontSize:17,fontWeight:"400",lineHeight:26.34375},factsK:{color:"#6b6b6b",fontSize:13,fontWeight:"400",lineHeight:18.1875},factsN:{color:"#10462e",fontSize:20,fontWeight:"700",lineHeight:22,letterSpacing:-.4,fontVariant:["tabular-nums"]},factsUnit:{color:"#6b6b6b",fontSize:13,fontWeight:"500",lineHeight:14.296875,letterSpacing:-.4,fontVariant:["tabular-nums"]},noteAfterFacts:{color:"#6b6b6b",fontSize:13,fontWeight:"400",lineHeight:19.5},cardLead:{color:"#000000",fontSize:15,fontWeight:"400",lineHeight:22.5},person:{color:"#000000",fontSize:17,fontWeight:"400",lineHeight:26.34375},avatar:{color:"#000000",fontSize:17,fontWeight:"400",lineHeight:26.34375},personName:{color:"#10462e",fontSize:17,fontWeight:"700",lineHeight:22.09375},personMeta:{color:"#6b6b6b",fontSize:13,fontWeight:"400",lineHeight:18.84375},sourceInCard:{color:"#6b6b6b",fontSize:13,fontWeight:"400",lineHeight:19.5},sourceInCardIcon:{color:"#819d90",fontSize:13,fontWeight:"400",lineHeight:19.5},noteAfterSource:{color:"#6b6b6b",fontSize:13,fontWeight:"400",lineHeight:19.5},rxLead:{color:"#000000",fontSize:15,fontWeight:"400",lineHeight:22.5},btnOutlineSm:{color:"#10462e",fontSize:15,fontWeight:"400",lineHeight:15,textAlign:"center"},btnOutlineSmIcon:{color:"#10462e",fontSize:15,fontWeight:"400",lineHeight:15,textAlign:"center"},noteStandalone:{color:"#6b6b6b",fontSize:13,fontWeight:"400",lineHeight:19.5},noteLink:{color:"#10462e",fontSize:15,fontWeight:"700",lineHeight:21},sumPlain:{color:"#000000",fontSize:17,fontWeight:"400",lineHeight:26.34375},sumPlainRowFirst:{color:"#000000",fontSize:17,fontWeight:"400",lineHeight:26.34375},sumPlainRowLast:{color:"#000000",fontSize:17,fontWeight:"400",lineHeight:26.34375},sumPlainDd:{color:"#10462e",fontSize:15,fontWeight:"700",lineHeight:21,textAlign:"right"},planRowsLiFirst:{color:"#000000",fontSize:17,fontWeight:"400",lineHeight:26.34375},planRowsLiNext:{color:"#000000",fontSize:17,fontWeight:"400",lineHeight:26.34375},switch:{color:"#000000",fontSize:17,fontWeight:"400",lineHeight:26.34375},switchTrack:{color:"#000000",fontSize:13.333,fontWeight:"400"},switchKnob:{color:"#000000",fontSize:17,fontWeight:"400",lineHeight:26.34375},switchTrackOff:{color:"#000000",fontSize:13.333,fontWeight:"400"},switchKnobOff:{color:"#000000",fontSize:17,fontWeight:"400",lineHeight:26.34375},breaks:{color:"#000000",fontSize:17,fontWeight:"400",lineHeight:26.34375},btnSm:{color:"#10462e",fontSize:15,fontWeight:"400",lineHeight:15,textAlign:"center"},linkDanger:{color:"#c03410",fontSize:15,fontWeight:"700",lineHeight:23.25,textDecorationLine:"underline",textAlign:"center"},sheet:{color:"#000000",fontSize:17,fontWeight:"400",lineHeight:26.34375},sheetBackdrop:{color:"#000000",fontSize:17,fontWeight:"400",lineHeight:26.34375},sheetGrab:{color:"#000000",fontSize:17,fontWeight:"400",lineHeight:26.34375},sheetGrabBar:{color:"#000000",fontSize:17,fontWeight:"400",lineHeight:26.34375},sheetHead:{color:"#000000",fontSize:17,fontWeight:"400",lineHeight:26.34375},sheetClose:{color:"#10462e",fontSize:13.333,fontWeight:"400",textAlign:"center"},sheetCloseIcon:{color:"#10462e",fontSize:13.333,fontWeight:"400",textAlign:"center"},sheetBody:{color:"#000000",fontSize:17,fontWeight:"400",lineHeight:26.34375},sheetText:{color:"#000000",fontSize:17,fontWeight:"400",lineHeight:25.5},sheetActions:{color:"#000000",fontSize:17,fontWeight:"400",lineHeight:26.34375},btnDanger:{color:"#c03410",fontSize:15,fontWeight:"700",lineHeight:23.25,textAlign:"center"},btnOutline:{color:"#10462e",fontSize:17,fontWeight:"700",lineHeight:17,textAlign:"center"},rec:{color:"#000000",fontSize:17,fontWeight:"400",lineHeight:26.34375},recRow:{color:"#000000",fontSize:17,fontWeight:"400",lineHeight:26.34375},recIcon:{color:"#6b6b6b",fontSize:17,fontWeight:"400",lineHeight:26.34375},recText:{color:"#000000",fontSize:17,fontWeight:"400",lineHeight:26.34375},recTitle:{color:"#10462e",fontSize:17,fontWeight:"700",lineHeight:22.09375},recMeta:{color:"#6b6b6b",fontSize:13,fontWeight:"400",lineHeight:18.1875},recEnd:{color:"#6b6b6b",fontSize:15,fontWeight:"400",lineHeight:23.25},trackerLi:{color:"#000000",fontSize:17,fontWeight:"400",lineHeight:26.34375},trackerLiLast:{color:"#000000",fontSize:17,fontWeight:"400",lineHeight:26.34375},trackerLineDone:{color:"#000000",fontSize:17,fontWeight:"400",lineHeight:26.34375},trackerLine:{color:"#000000",fontSize:17,fontWeight:"400",lineHeight:26.34375},dotDone:{color:"#ffffff",fontSize:17,fontWeight:"400",lineHeight:26.34375},dotDoneIcon:{color:"#ffffff",fontSize:17,fontWeight:"400",lineHeight:26.34375},dotNow:{color:"#000000",fontSize:17,fontWeight:"400",lineHeight:26.34375},dotNowCore:{color:"#000000",fontSize:17,fontWeight:"400",lineHeight:26.34375},dotNext:{color:"#000000",fontSize:17,fontWeight:"400",lineHeight:26.34375},trackerTitle:{color:"#10462e",fontSize:17,fontWeight:"700",lineHeight:22.09375},trackerTitleNext:{color:"#6b6b6b",fontSize:17,fontWeight:"700",lineHeight:22.09375},trackerWhen:{color:"#6b6b6b",fontSize:13,fontWeight:"400",lineHeight:18.1875},trackerText:{color:"#000000",fontSize:15,fontWeight:"400",lineHeight:22.5},pillStable:{color:"#10462e",fontSize:12,fontWeight:"700",lineHeight:12,letterSpacing:.72,textTransform:"uppercase"},trackItemsEnd:{color:"#000000",fontSize:17,fontWeight:"400",lineHeight:26.34375,fontVariant:["tabular-nums"]},trackItemsLiFirst:{color:"#000000",fontSize:17,fontWeight:"400",lineHeight:26.34375},trackItemsLiLast:{color:"#000000",fontSize:17,fontWeight:"400",lineHeight:26.34375},noteAfterTotal:{color:"#6b6b6b",fontSize:13,fontWeight:"400",lineHeight:19.5},rowLink:{color:"#10462e",fontSize:15,fontWeight:"700",lineHeight:20.25},rowLinkIcon:{color:"#10462e",fontSize:15,fontWeight:"700",lineHeight:20.25},rowLinkChevron:{color:"#819d90",fontSize:15,fontWeight:"700",lineHeight:20.25},ghost:{color:"#000000",fontSize:17,fontWeight:"400",lineHeight:26.34375},ghostBar:{color:"#000000",fontSize:17,fontWeight:"400",lineHeight:26.34375},field:{color:"#000000",fontSize:17,fontWeight:"400",lineHeight:26.34375},fieldLabel:{color:"#10462e",fontSize:15,fontWeight:"700",lineHeight:21},fieldInput:{color:"#000000",fontSize:17,fontWeight:"400",lineHeight:26.34375},fieldInputText:{color:"#000000",fontSize:17,fontWeight:"400",lineHeight:26.34375}},Et={body:{font:"sans"},pushBody:{font:"sans"},subtabs:{font:"sans",lineBottom:{width:1,color:"#e4e4e4"}},subtab:{font:"sans"},subtabCurrent:{font:"sans",insetBottom:{width:3,color:"#07c168"}},titleBlock:{font:"sans"},screenTitle:{font:"sans",wrap:"balance"},screenMeta:{font:"mono",wrap:"pretty"},stack:{font:"sans"},card:{font:"sans"},cardHead:{font:"sans"},cardTitle:{font:"sans"},cardTitleInHead:{font:"sans"},cardLink:{font:"sans"},cardLinkAfterNote:{font:"sans"},forLabel:{font:"mono"},forLabelNext:{font:"mono"},itemsLiFirst:{font:"sans"},itemsLiMid:{font:"sans"},itemsLiLast:{font:"sans"},thumb:{font:"sans"},thumbIcon:{font:"sans"},thumbPink:{font:"sans"},thumbYellow:{font:"sans"},thumbSage:{font:"sans"},itemsName:{font:"sans"},itemsMeta:{font:"sans"},itemsActs:{font:"sans"},itemsActLink:{font:"sans",underlineOffset:3},itemsActButton:{font:"sans",underlineOffset:3},itemsEnd:{font:"sans"},itemsPrice:{font:"sans"},pill:{font:"mono"},pillSoon:{font:"mono",ring:{width:1.25,color:"#f6d892"}},btnRow:{font:"sans"},btnRowIcon:{font:"sans"},btnRowLabel:{font:"sans"},sumTotal:{font:"sans"},sumRowFirst:{font:"sans"},sumRowLast:{font:"sans"},sumDt:{font:"sans"},sumDd:{font:"sans"},sumDdTotal:{font:"sans"},noteAfterSum:{font:"sans"},rowsLiFirst:{font:"sans"},rowsLiNext:{font:"sans"},rowsK:{font:"sans"},rowsV:{font:"sans"},rowsMeta:{font:"sans"},legal:{font:"sans"},legalText:{font:"sans"},traybar:{font:"sans",lineTop:{width:1,color:"#e4e4e4"}},btnInk:{font:"sans"},traybarFine:{font:"sans"},input:{font:"sans"},inputIcon:{font:"sans"},inputText:{font:"sans"},inputPlaceholder:{font:"sans"},filters:{font:"sans"},filter:{font:"sans"},filterCurrent:{font:"sans"},sectionHead:{font:"sans"},prods:{font:"sans"},prod:{font:"sans"},prodImg:{font:"sans"},prodIcon:{font:"sans"},prodTags:{font:"sans"},prodBody:{font:"sans"},prodName:{font:"sans"},prodMeta:{font:"sans"},prodPrice:{font:"sans"},pillClear:{font:"mono",ring:{width:1.5,color:"#07c168"}},pillPlain:{font:"mono",ring:{width:1.5,color:"rgba(16, 70, 46, 0.2)"}},pillOverdue:{font:"mono",ring:{width:1.25,color:"#c03410"}},hero:{font:"sans"},heroIcon:{font:"sans"},source:{font:"sans"},sourceIcon:{font:"sans"},sourceBold:{font:"sans"},sourceLink:{font:"sans",underlineOffset:3},choices:{font:"sans"},choiceCurrent:{font:"sans"},choice:{font:"sans"},radioOn:{font:"sans"},radioOff:{font:"sans"},choiceText:{font:"sans"},choiceTitle:{font:"sans"},choiceMeta:{font:"sans"},facts:{font:"sans"},factsLi:{font:"sans"},factsLiHer:{font:"sans"},factsK:{font:"sans"},factsN:{font:"sans"},factsUnit:{font:"sans"},noteAfterFacts:{font:"sans"},cardLead:{font:"sans"},person:{font:"sans"},avatar:{font:"sans",ring:{width:1,color:"#e4e4e4"}},personName:{font:"sans"},personMeta:{font:"sans"},sourceInCard:{font:"sans"},sourceInCardIcon:{font:"sans"},noteAfterSource:{font:"sans"},rxLead:{font:"sans"},btnOutlineSm:{font:"sans"},btnOutlineSmIcon:{font:"sans"},noteStandalone:{font:"sans"},noteLink:{font:"sans"},sumPlain:{font:"sans"},sumPlainRowFirst:{font:"sans"},sumPlainRowLast:{font:"sans"},sumPlainDd:{font:"sans"},planRowsLiFirst:{font:"sans"},planRowsLiNext:{font:"sans"},switch:{font:"sans"},switchTrack:{font:"sans"},switchKnob:{font:"sans",drop:{x:0,y:1,blur:2,spread:0,color:"rgba(16, 70, 46, 0.06)"}},switchTrackOff:{font:"sans"},switchKnobOff:{font:"sans",drop:{x:0,y:1,blur:2,spread:0,color:"rgba(16, 70, 46, 0.06)"}},breaks:{font:"sans"},btnSm:{font:"sans"},linkDanger:{font:"sans",underlineOffset:3},sheet:{font:"sans"},sheetBackdrop:{font:"sans"},sheetGrab:{font:"sans"},sheetGrabBar:{font:"sans"},sheetHead:{font:"sans"},sheetClose:{font:"sans"},sheetCloseIcon:{font:"sans"},sheetBody:{font:"sans"},sheetText:{font:"sans"},sheetActions:{font:"sans"},btnDanger:{font:"sans"},btnOutline:{font:"sans"},rec:{font:"sans"},recRow:{font:"sans"},recIcon:{font:"sans"},recText:{font:"sans"},recTitle:{font:"sans"},recMeta:{font:"sans"},recEnd:{font:"sans"},trackerLi:{font:"sans"},trackerLiLast:{font:"sans"},trackerLineDone:{font:"sans"},trackerLine:{font:"sans"},dotDone:{font:"sans"},dotDoneIcon:{font:"sans"},dotNow:{font:"sans"},dotNowCore:{font:"sans"},dotNext:{font:"sans"},trackerTitle:{font:"sans"},trackerTitleNext:{font:"sans"},trackerWhen:{font:"sans"},trackerText:{font:"sans"},pillStable:{font:"mono"},trackItemsEnd:{font:"sans"},trackItemsLiFirst:{font:"sans"},trackItemsLiLast:{font:"sans"},noteAfterTotal:{font:"sans"},rowLink:{font:"sans"},rowLinkIcon:{font:"sans"},rowLinkChevron:{font:"sans"},ghost:{font:"sans"},ghostBar:{font:"sans"},field:{font:"sans"},fieldLabel:{font:"sans"},fieldInput:{font:"sans"},fieldInputText:{font:"sans"}},Dt={shield:{size:56,uri:"data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAKgAAACoCAQAAADeQm0/AAAK6klEQVR4Ae3BCbBVhWEA0HPveyDyBSGWzR2GuOMSo6VVo3XBoo5RxAJGDG6ALT/5T2syMdFGo0mclP4X/49bVBStSxBS9QOJURGraINRsxRRcWNxQVwG+YAs0uk4nZjKff/e9+7bnHeOhoaGhoaGhoaGOAK17XAjHWEnA/GW5R4z1wI1LFCrBppkoh191jLXu9EqNSlQm85wk21F63SWWWpQRi36mR/rppDuxtjWQ2pORq3p52GniuNwX3G/9WpKRm05wOP2Ftdg48z1rhqSUUvGmK2PJPo42x+8qGZk1IrtXOcqWUl1N04f82xWEwK14RAz7KZ4zxvjj2pARvVlXe5WfZWin3N0+i9VF6i2L7rHQdLxmDHeUlWBaurpEhfpIT2rXeEaG1VNoFoC4/3IjtL3kpzZqiRQHQe7wcHK52FTLFYFgco73jeNlMR/O9NGtztIEjNd4zEVFqik7s6Us59kOozViR6mO10yz/ipu21QMYFK2c0FztZfUt9zl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SUhEUgAAAEIAAABCCAQAAABJXchjAAAC/UlEQVR4Ae3BXWiVZQAA4Od792m0UJhSQy+GdZHrSBDLrF0kDbuwELstUgmDfjToIgw0MRW7kSAQEiJJbwJBjcDALgx/yDCK/F8QFKbEmmKazZuQFqLf+c62c7b3bGeH78LncdcdidFN86ipJuZfpw0YRWI0r9qhMVbaqaYWtfXYK9EYSx11Xg1BLbPslWiUxF6z1BBUF+wxQyPNsEdQVYvqNlqu0TokDqsiVc0iG+QO22T8Nlkos8FR3xghMVK7c2bKXDFPv/Frd85MmSvm6TdMi+GCr82VGbTEWRNxww9WSNzWqtsug4ZoMdxmy+Q+8JmJOm+KhTIdgkOGCIbq8Z7cMe9rhA2Oya3XY4hEpXY/a5O57hVXNUabXabLXPWIfmWJSpfcrzkue0BZi9yHntUs92l10B1BrkszzVcW5P7STFeVBbmzmumsslR1PSbHIVWkqjusiYICCAogKIAgXqdOsTp1ipaK0+GAEnotdtHoOhxQQq/FLooQxFmr5JaSdcayVsktJetECeI8KFMylpLMHFGCONdk5hvLEzLXRAni9Mu0mmM0D7lXpk+UIM4puceMpkvupChBnK/k1kvVMsVauQOiBHEuOSfzuI/Usk2XzCmXRQlibZN7y1ZTDXePrd6Q2yZSEOtTvXJrnPakSvP1WiN30k6RUrEGvei4Vpm5jut1xLemesrTSird8LJBkVLxzlhun0olJW+qZple0YJ6fGG1QWP5zypfqkOqPtv9Yp/partuqSPqkqrXQQ/bbKXUSDftsFG/OqXq1+91W71kiQUStw363n67/WYcUuPzqy22SM3Wjj/1uWncUhNx0wUXTFhQAEEBBAUQFEBQAEEBBAUQFEBQAEEBBAUQFECQ65NrMxna5PqUBbkTcs+ZDM/L/aQslTsj97kFDhrQONMs8rbcGWWJSp94TXNst1pZUOkdf2iG372rQlBpwHLNsMINFVoMdd5u3WabPD96xglDJKpZ5QXdpmmsf3xnv4+NkKity3SN87cT7hrD/w1CmKiWHePxAAAAAElFTkSuQmCC"},plus:{size:17,uri:"data:image/png;base64,iVB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Bp+gNgqSKsh21NvWKzqBT9AiSKsp21npIr+gMOsVTSRVle2iMeSPbFGV7aY2Z++XCuivZnlrj5orOUpTtrbVNr+gMouwAre16P7zApRuTyWTyz/oDUB1ZN9kNGUEAAAAASUVORK5CYII="},file:{size:16,uri:"data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAADAAAAAwCAQAAAD9CzEMAAABtElEQVR4Ad3Bv2rUcAAA4K+/ZndUXARBIp3cxEkQHYq4aOmiHQTvQH0GIw30DYTK3WhdgqBu/sHdQe2mzQNY6wM4V0oI5rze7+5yZNDv889bMm7DTZecNN03W56LWjLqlOeumMcD2yKWjXrjsvlct++LiZY13fPQ/G746ZMJEk23VF54ZM9kh0Zt46ljBU2XVB7bM4u+2raeYwVNJ1S+ms1QX22g5xjBYob6agM9Y4JFDfXVBnr+EixuqK820DMiaONAZUVl6IHawG0NQRu7KpvOqWy7r7alIdHGwKoja9aMO6MhaOOVD2aUiFmXS1VKmULtjmeumkEQk0vVUrk/Dlyz4aV9UyTa27Fj1KExQUymVCtlWkjEFAoLCjoWdCzoWCJmXS4VV8oUJgpicqlpUrmIoGNBTKY0TSkTkYgpFBYUdCzoWNCxRMy6XCqulClMFMTkUtOkchFBx4KYTGmaUiYiEVMoLCjoWNCxoGNB04HKijZWVH5oCJp2VTadM6/zNlU+a0g0Da06smZNe080BE0vfbCo195qWDbqnQvOau+9u35pWDLujpsuOm0+3330yo7/zm9pA1VwIYzMRQAAAABJRU5ErkJggg=="},message:{size:20,uri:"data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAADwAAAA8CAQAAACQ9RH5AAAD+UlEQVR4Ae3Bf4iW9QEA8M/7vVfIS67uamWlcZW1cE7SrD8qNK2z2hzbXJ60QtoUrP5IiiiSKJIiCIoo65/KiDIz1jbJ+WtalDXH8kedyVwL71REa8w8Uy/jrDievu/zvK/v/X76z8/HCSf8WAr65wzXmORnGtSpU2efXfbZY7s1tuuHgr76rWtdbbTutVltueX6pKAvrrHQxfpm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LFoMUFGXP3tAl6+t8IZlvtYXLQahIHGa63xjpcNO+JF8D+9X6jVU+QFxAAAAAElFTkSuQmCC"},chevron:{size:20,uri:"data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAADwAAAA8CAQAAACQ9RH5AAABfklEQVR4Ae3BPWoWQQAA0LeZz9gMeA1rywFzBsVSELzDbpEUgj9osVuJN8gF7Af1ChIsxRsIgm1iJMWw7cxsCsF9z2632+3+eUG9p14bfHMrglrPnLvviYMvbkFQ59hH99w4EWWbHal1rRjNNgvqXPnlkSK547NNglpfRUlxIso2COplUVIkUdYtaJFFSZFEWaegTRYlRRJlXYJWWZQUSZR1CNplUVIkUdYs6JFFSZFEWaOgTxYlRRJlTYJeWZQUSZQ1CPplUVIkUVYt2CKLkiKJskrBNtldDxXJDxeqBFt9EiXFAx/8UeHIdr9dKq5VOtjqrVOrFy5VOdhmNlotzlUabDEbrRaTaoN+s9FqMWkw6DUbrRaTJoM+s9FqMWk06DEbrRaTZoN2s9FqMekwaDUbrRaTLoM2s9FqMek0aDEbrRaTboN6s9FqMdngoNZzo9U7ZzY5UufYS6vFmY2O1LpWLCabBXWu/PTYjTdO3YKg1oXvDl55b7fb7Xb/ib+2W04he97hEgAAAABJRU5ErkJggg=="},close:{size:24,uri:"data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAEgAAABICAQAAAD/5HvMAAAC6UlEQVR4Ae3BQYoVRwAA0DdV4saF4jplEOYAVsClV8ghijYgQiArB/fJDcRFz7QHcJPYvfcIuYvgwo0VBhm6Ysb+3T3u8t9zdHR0dHR0dOTUqe/h1KmDTiw78cozvPZctd+JV57hteeqBdGyP/zm0mPJaK/g3C8uPRa9tyBYcs+ZK8W5E3sEveLKmTsWBEtuOzErzp3YKugVs1uiBdGSjx56ZJb94J1tLhStC28tiJa9k2SznzwwWis4V7QGTy2KllWTJJtlyWiNoFe0Bp1qUXRINUmyWZaMDgl6RWvQqQ6IDqsmSTbLktGSoFe0Bp3qoGiNapJksywZf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ba+Q03ze/tr1jnmaFsMsrpDesdpjh9HexKA73tC+WzpWs97iB9FOtKtymjSLlNdqdI8f7nCXdq01uRw012kr6K1+1805VVpPxO9pA+kvnQXab7TGmaTDLZLpJZ51RPKrNIJbSYZYCkNnhHu3navadbYZE9NBur2Z4yklrpeC8qu0hl7O95w5RqjYUWWmihT6y00krL0KRRo0Yj7WF3u9ldf6X6r+/oUAGRStneow5Um+Y73r9UREaldLnXQM1qTbcbnW6FCsmonI2e85Zj9FM7upzodhtVTKTStvdH+6kN833XEhUVqbwGl7raQNXV5adutkGFRdIxwi+dLVId3e5zpWVSEEnPWPfYU/reNsl8KYmkKXaSqcZIT7vrPalbaiLpO8xUR6i8512vVcoi1THKec62rcpY4gHTLVIFkeqJtZjoZAOUzypPuN8c3aokUm39NGsxwVibKd1a87RpNc9aVRWpFf2NM8Eh9jVE8ZZZ4BWt5vpSTYjUnhF2t6c97GawzQ2wuc01YoXVVltttc+97z3vesdngiAIgiAIgiAIgiAIgiAIgiAIgiAIgiAIgiAIgoL+D/kco6VOaO7DAAAAAElFTkSuQmCC"}};function Nt(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 qt(e){let t=/* @__PURE__ */new Map,r=/* @__PURE__ */new Map,n=/* @__PURE__ */new Map,i=t=>{let r=n.get(t);if(!r){let{fontWeight:i,...o}=Bt[t];r={...o,...Nt(Et[t].font==="mono"?e.fonts?.mono:e.fonts?.sans,i)},n.set(t,r)}return r};return{options:e,v(e){let r=t.get(e);return r||(r={...Ot[e]},t.set(e,r)),r},t(e){let t=r.get(e);return t||(t={...Ot[e],...i(e)},r.set(e,t)),t},tx:i}}var Ut=/* @__PURE__ */qt({}),Gt=/* @__PURE__ */e.createContext(Ut);function ShopKitProvider({fonts:t,renderIcon:r,children:n}){let i=e.useMemo(()=>qt({...t?{fonts:t}:{},...r?{renderIcon:r}:{}}),[t,r]);return e.createElement(Gt.Provider,{value:i},n)}function Mt(){return e.useContext(Gt)}function Kt(e){return Bt[e].color??"#000000"}function Decor({k:r}){let n=Et[r],i=Ot[r].borderRadius??0,o=[];if(n.ring){let r=t.Platform.OS==="web"?{boxShadow:`inset 0 0 0 ${n.ring.width}px ${n.ring.color}`}:{borderWidth:n.ring.width,borderColor:n.ring.color};o.push(e.createElement(t.View,{key:"ring",pointerEvents:"none",style:[{position:"absolute",top:0,right:0,bottom:0,left:0,borderRadius:i},r]}))}return n.insetBottom&&o.push(e.createElement(t.View,{key:"bar",pointerEvents:"none",style:{position:"absolute",right:0,bottom:0,left:0,height:n.insetBottom.width,backgroundColor:n.insetBottom.color}})),n.lineTop&&o.push(e.createElement(t.View,{key:"top",pointerEvents:"none",style:{position:"absolute",right:0,top:-n.lineTop.width,left:0,height:n.lineTop.width,backgroundColor:n.lineTop.color}})),n.lineBottom&&o.push(e.createElement(t.View,{key:"bottom",pointerEvents:"none",style:{position:"absolute",right:0,bottom:-n.lineBottom.width,left:0,height:n.lineBottom.width,backgroundColor:n.lineBottom.color}})),o.length?o:null}function Zt(e){let r=Et[e].drop;return r?t.Platform.OS==="web"?{boxShadow:`${r.x}px ${r.y}px ${r.blur}px ${r.spread}px ${r.color}`}:{shadowColor:r.color,shadowOpacity:1,shadowRadius:r.blur/2,shadowOffset:{width:r.x,height:r.y}}:null}function Icon({name:r,size:n,color:i,style:o}){let l=Mt().options.renderIcon?.({name:r,size:n,color:i});if(l!=null)return e.createElement(t.View,{style:[{width:n,height:n},o],pointerEvents:"none"},l);let a=[{width:n,height:n,tintColor:i},o];return e.createElement(t.Image,{source:{uri:Dt[r].uri},style:a,accessible:false,importantForAccessibility:"no",resizeMode:"contain"})}function PartIcon({name:t,k:r,inkKey:n,style:i}){let o=Ot[r];return e.createElement(Icon,{name:t,size:o.width??24,color:Kt(n??r),style:[o.marginTop?{marginTop:o.marginTop}:null,i]})}function T({k:r,style:n,children:i,lines:o,role:l,bare:a}){let s=Mt();return e.createElement(t.Text,{style:[a?s.tx(r):s.t(r),Jt(r),n],...Yt(r),...o?{numberOfLines:o}:{},...l?{accessibilityRole:l}:{}},i)}function Yt(e){return Et[e].wrap?t.Platform.OS==="web"?{}:t.Platform.OS==="ios"?{lineBreakStrategyIOS:"standard"}:{textBreakStrategy:"balanced"}:{}}function Jt(e){let r=Et[e].wrap;return r&&t.Platform.OS==="web"?{textWrap:r}:null}function Xt(e){let t=Et[e].underlineOffset;return t?{textUnderlineOffset:t}:{}}function Press({onPress:r,disabled:n,label:i,style:o,children:l,role:a="button",selected:s,hitSlop:d}){return e.createElement(t.Pressable,{...d?{hitSlop:d}:{},onPress:n?void 0:r,disabled:n===true,accessibilityRole:a,...i?{accessibilityLabel:i}:{},accessibilityState:{disabled:n===true,...s!==void 0?{selected:s,checked:s}:{}},style:o},l)}function Qt(e){return e.replace(/\s*→$/,"")}var _t=e.createContext({go:()=>{},openExternal:()=>{}});function ShopNativeNavProvider({value:t,children:r}){return e.createElement(_t.Provider,{value:t},r)}function $t(){return e.useContext(_t)}var er=/* @__PURE__ */Object.freeze({color:/* @__PURE__ */Object.freeze({efDarkGreen:"#10462E",efWhite:"#FFFFFF",efBlack:"#000000",efDustyPink:"#FFC3BC",efBrightGreen:"#07C168",efYellow:"#F2C763",efDustyBlue:"#A8B9DA",efSkyBlue:"#4E98C9",efCharcoal:"#3D3D3D",efIconHoney:"#926F06",efIconLeaf:"#16864A",efIconSky:"#1E7AB7",efIconTeal:"#05827E",efIconCocoa:"#865B3F",efIconNavy:"#223E80",efIconBerry:"#B6407F",efIconAmber:"#B25E05",efIconMoss:"#5E7E1E",efIconSlate:"#5A6087",efIconRose:"#CA4463",efRedDeep:"#6D1D14",efRedBright:"#C03410",bg:"#FFFFFF",bgBrand:"#10462E",bgAccent:"#FFC3BC",bgAccentB2b:"#A8B9DA",bgWarm:"#F2C763",text:"#000000",textBrand:"#10462E",textOnBrand:"#FFFFFF",textCta:"#07C168",textMuted:"#6B6B6B",bgMist:"#F1F5F2",border:"#E4E4E4",borderStrong:"#3D3D3D",hi:"#DAF6E8",hiStrong:"#ABEACC",hiEdge:"#0B8A4E",now:"#0C844B",alert:"#C03410",alertDeep:"#6D1D14",btnPrimaryBg:"#10462E",btnPrimaryText:"#FFFFFF",btnSecondaryBg:"rgba(0, 0, 0, 0)",btnSecondaryText:"#10462E",btnSecondaryBorder:"#10462E",mixMint:"#7FE8AE",mixLegal:"#A9C4B5",mixPromptGreen:"#BFEFD8",mixPromptYellow:"#F7DC9E",mixRx:"#E0E6F2",mixShelf:"#F3F3F3",mixEar:"#F09FA3",efBone:"#FAF9F6",efTennisBall:"#DCEF5A",efFawn:"#E8CAA4",efPine:"#12301F",efPine70:"rgba(18, 48, 31, 0.72)",efLiver:"#7A4330",efMerle:"#AEB8C1",efNose:"#E9B6A6"}),font:/* @__PURE__ */Object.freeze({family:/* @__PURE__ */Object.freeze({base:'Azeret, "Helvetica Neue", Arial, sans-serif',mono:'"Azeret Mono", ui-monospace, "SF Mono", Menlo, monospace'}),size:/* @__PURE__ */Object.freeze({xs:13,sm:15,md:17,lg:20,xl:24,"2xl":32,"3xl":40,"4xl":56}),lineHeight:/* @__PURE__ */Object.freeze({body:1.55,display:1.15}),weight:/* @__PURE__ */Object.freeze({regular:400,medium:500,bold:700})}),space:/* @__PURE__ */Object.freeze({1:4,2:8,3:12,4:16,5:24,6:32,7:48,8:64,9:96}),radius:/* @__PURE__ */Object.freeze({sm:6,md:10,lg:20,xl:28,pill:999}),shadow:/* @__PURE__ */Object.freeze({sm:/* @__PURE__ */Object.freeze({x:0,y:1,blur:2,spread:0,color:"rgba(16, 70, 46, 0.06)"}),md:/* @__PURE__ */Object.freeze({x:0,y:4,blur:16,spread:0,color:"rgba(16, 70, 46, 0.08)"})}),layout:/* @__PURE__ */Object.freeze({container:1200,containerNarrow:720}),motion:/* @__PURE__ */Object.freeze({easing:/* @__PURE__ */Object.freeze({out:/* @__PURE__ */Object.freeze([.23,1,.32,1]),inOut:/* @__PURE__ */Object.freeze([.77,0,.175,1]),drawer:/* @__PURE__ */Object.freeze([.32,.72,0,1]),expo:/* @__PURE__ */Object.freeze([.16,1,.3,1]),bark:/* @__PURE__ */Object.freeze([.34,1.56,.64,1])}),duration:/* @__PURE__ */Object.freeze({press:160,fade:200,enter:300,sheet:420,sheetOut:240,draw:900})}),web:/* @__PURE__ */Object.freeze({serif:'Azeret, "Helvetica Neue", Arial, sans-serif',sans:'Azeret, "Helvetica Neue", Arial, sans-serif',tSmall:14,max:1312}),role:/* @__PURE__ */Object.freeze({color:/* @__PURE__ */Object.freeze({ink:"#10462E",go:"#07C168",muted:"#6B6B6B",line:"#E4E4E4",pink50:"#FFE1DE",tintSage:"#E6ECE8",tintPink:"#FFEAE8",tintPinkSoft:"#FFF6F5",tintBlue:"#EAEEF6",tintYellow:"#FCF0D6",tintYellowEdge:"#F6D892",tintRed:"#FBF1EE",tintGo:"#DCF6EA",icoGrey:"#6B6B6B",icoSage:"#819E90",icoBlue:"#4E98C9",icoWarm:"#D6D0C2",icoAmber:"#B67B3F",amberText:"#A05E32",wxSun:"#F2C763",wxSunEdge:"#D5AD47",wxCloud:"#FFFFFF",wxCloudEdge:"#DEDEDE",wxCloudDark:"#EAEAEA",wxCloudDarkEdge:"#C5C5C5",wxRain:"#75AFD5",wxSnow:"#AFD1E7",wxMist:"#D4D4D4",cwShelf:"#FFFFFF",cwShelfDeep:"#F1F4F2",cwRx:"#E0E6F2",cwRxInk:"#5A6087",cwEdgeC:"#C6D3CD",nItch:"#CA4463",nJoints:"#5E7E1E",nItchC:"#FFC3BC",nJointsC:"#D8E0C9",lvlGood:"#77DDAC",lvlOk:"#F4CF7A",lvlHot:"#DC8F7C",lvlStorm:"#8DA4BB",mapLand:"#F5F5F5",mapEdge:"#EAEAEA",mapPark:"#D7F5E7",mapWater:"#D8E0EE",mapSand:"#FCF3DD"}),size:/* @__PURE__ */Object.freeze({max:1440,gutter:16,sideW:220,cardPad:16,barH:48,tabH:58,dock:64,side:16,stackGap:12})})});var tr={shown:true,padding:[0,0,0,0],marginTop:0,marginBottom:0,gap:[0,0],minHeight:0,radius:[0,0],bg:"none",edge:{width:0,color:"line",ring:false},shadow:{color:"",x:0,y:0,blur:0,spread:0},center:false,color:"text",fit:"cover",x:0,y:0,dy:0},rr={shown:true,color:"text",tracking:0,face:"sans",upper:false,wrap:"pretty",tabular:false,deco:"none",decoOffset:0,decoThickness:0,marginTop:0,paddingTop:0},nr=e=>({...tr,...e}),ir=e=>({...rr,...e}),or={button:{ink:{fill:false,minHeight:52,paddingX:24,gap:8,borderWidth:1.5,ring:false,fontSize:17,fontWeight:700,lineHeight:1,iconSize:24},go:{fill:false,minHeight:52,paddingX:24,gap:8,borderWidth:1.5,ring:false,fontSize:17,fontWeight:700,lineHeight:1,iconSize:24},outline:{fill:false,minHeight:52,paddingX:24,gap:8,borderWidth:1.5,ring:false,fontSize:17,fontWeight:400,lineHeight:1,iconSize:24},pink:{fill:true,minHeight:60,paddingX:16,gap:8,borderWidth:1,ring:false,fontSize:18,fontWeight:700,lineHeight:1,iconSize:24},danger:{fill:false,minHeight:46,paddingX:16,gap:8,borderWidth:1.5,ring:false,fontSize:15,fontWeight:700,lineHeight:1.55,iconSize:20},inkSm:{fill:false,minHeight:46,paddingX:16,gap:8,borderWidth:1.5,ring:false,fontSize:15,fontWeight:700,lineHeight:1,iconSize:20},goSm:{fill:false,minHeight:46,paddingX:16,gap:8,borderWidth:1.5,ring:false,fontSize:15,fontWeight:700,lineHeight:1,iconSize:20},outlineSm:{fill:false,minHeight:46,paddingX:16,gap:8,borderWidth:1.5,ring:false,fontSize:15,fontWeight:400,lineHeight:1,iconSize:20},pinkSm:{fill:true,minHeight:46,paddingX:16,gap:8,borderWidth:1,ring:false,fontSize:15,fontWeight:700,lineHeight:1,iconSize:20},row:{fill:false,minHeight:36,paddingX:14,gap:8,borderWidth:1.5,ring:false,fontSize:14,fontWeight:400,lineHeight:1,iconSize:17},outlineInSheetWeight:700,money:{fill:false,minHeight:52,paddingX:24,gap:8,borderWidth:1,ring:false,fontSize:17,fontWeight:700,lineHeight:1,iconSize:24,bg:"pink",fg:"ink",edgeColor:"ink"},moneySm:{fill:false,minHeight:46,paddingX:16,gap:8,borderWidth:1,ring:false,fontSize:15,fontWeight:700,lineHeight:1,iconSize:20,bg:"pink",fg:"ink",edgeColor:"ink"},warn:{fill:false,minHeight:52,paddingX:24,gap:8,borderWidth:1.5,ring:false,fontSize:17,fontWeight:700,lineHeight:1,iconSize:24,bg:"none",fg:"alertDeep",edgeColor:"alert"},warnSm:{fill:false,minHeight:46,paddingX:16,gap:8,borderWidth:1.5,ring:false,fontSize:15,fontWeight:700,lineHeight:1,iconSize:20,bg:"none",fg:"alertDeep",edgeColor:"alert"},text:{fontSize:15,fontWeight:700,lineHeight:1.4,color:"ink",pressOpacity:.6}},pill:{minHeight:24,paddingX:10,fontSize:12,fontWeight:700,lineHeight:1,letterSpacing:.72,ring:{soon:1.25,overdue:1.25,clear:1.5,later:1.25,plain:1.5,new:1.5},plainRingAlpha:.2,dot:6,dotGap:6,allergyDot:{size:6,gap:6,color:"alert"},mono:true,upper:true,tones:{rx:{bg:"#E0E6F2",fg:"ink",ring:0,ringColor:"ink"},soon:{bg:"surface",fg:"ink",ring:1.25,ringColor:"tintYellowEdge"},overdue:{bg:"surface",fg:"alert",ring:1.25,ringColor:"alert"},clear:{bg:"surface",fg:"go",ring:1.5,ringColor:"go"},stable:{bg:"tintGo",fg:"ink",ring:0,ringColor:"ink"},later:{bg:"surface",fg:"muted",ring:1.25,ringColor:"line"},plain:{bg:"surface",fg:"ink",ring:1.5,ringColor:"ink/0.2"},new:{bg:"surface",fg:"ink",ring:1.5,ringColor:"go"},pink:{bg:"tintPink",fg:"ink",ring:0,ringColor:"ink"},watch:{bg:"#F9E6B9",fg:"ink",ring:0,ringColor:"ink"},high:{bg:"surface",fg:"alert",ring:1.25,ringColor:"alert"},allergy:{bg:"surface",fg:"alertDeep",ring:1.25,ringColor:"alert"}}},chip:{minHeight:42,paddingX:16,gap:8,borderWidth:1,fontSize:15,fontWeight:500,lineHeight:1.3},card:{padding:16,radius:20,borderWidth:1,titleSize:18,titleWeight:700,titleLineHeight:1.25,titleTracking:-.36,titleGap:12,leadSize:15,leadLineHeight:1.5,leadGap:12,headGapX:16,headGapY:8,headGap:12,bodySize:17,bodyLineHeight:1.55,ghost:{borderStyle:"dashed",borderColor:"#B9C9C2"}},sectionHeader:{gapX:12,gapY:8,marginTop:8},kicker:{fontSize:12,fontWeight:700,lineHeight:1.55,letterSpacing:.96,gap:8},quantityStepper:{borderWidth:1,borderColor:"line",ring:false,button:40,icon:18,valueMinWidth:28,offColor:"line",offOpacity:1,valueSize:17,valueWeight:700,valueLineHeight:1.55},tabs:{minHeight:44,gap:6,fontSize:15,fontWeight:500,currentWeight:700,lineHeight:1.55,indicator:3,hairline:1,dot:7},sheet:{radius:28,grabHeight:20,grabBarWidth:36,grabBarHeight:5,grabBarRadius:3,headPaddingTop:4,headPaddingX:16,headPaddingBottom:12,headGap:12,titlesGap:2,titleSize:18,close:36,closeIcon:20,bodyGap:12,bodyPaddingX:16,bodyPaddingBottom:24,actsGap:12,actsMarginTop:4},empty:{gap:8,titleSize:22,titleWeight:500,titleLineHeight:1.2,titleTracking:-.33,leadSize:15,leadLineHeight:1.5,actsGap:12,actsMarginTop:12,buttonMinWidth:200,linkMinHeight:44,linkPaddingX:4,linkSize:15,linkWeight:700,linkUnderlineOffset:3},skeleton:{gap:10,lineHeight:12,widths:[100,82,64]},summary:{paddingX:24,paddingY:0,radius:20,borderWidth:1,background:"surface",shadow:{color:"",x:0,y:0,blur:0,spread:0},rowDivider:1,rowMinHeight:0,rowCenter:false,rowPaddingY:14,termColor:"muted",valueColor:"ink",tabular:false,totalRowMinHeight:0,totalTermSize:15,totalTermWeight:400,totalTermColor:"muted",totalWeight:700,rowGapX:16,rowGapY:2,termSize:15,termLineHeight:1.55,valueSize:15,valueWeight:700,valueLineHeight:1.4,totalSize:20,totalLineHeight:1.4,off:{shown:true,size:15,weight:700,lineHeight:21,color:"go",tracking:0,face:"sans",upper:false,wrap:"pretty",tabular:false,deco:"none",decoOffset:0,decoThickness:0,marginTop:0,paddingTop:0}},icon:{size:24},timeline:{row:{shown:true,w:361,h:69.281,padding:[0,0,24,0],marginTop:0,marginBottom:0,gap:[16,16],minHeight:0,radius:[0,0],bg:"none",edge:{width:0,color:"line",ring:false},shadow:{color:"",x:0,y:0,blur:0,spread:0},center:false,color:"text",fit:"cover",x:0,y:0,dy:0},done:{shown:true,w:28,h:28,padding:[0,0,0,0],marginTop:0,marginBottom:0,gap:[0,0],minHeight:0,radius:[14,14],bg:"ink",edge:{width:2,color:"ink",ring:false},shadow:{color:"",x:0,y:0,blur:0,spread:0},center:true,color:"surface",fit:"cover",x:0,y:0,dy:0},now:{shown:true,w:28,h:28,padding:[0,0,0,0],marginTop:0,marginBottom:0,gap:[0,0],minHeight:0,radius:[14,14],bg:"surface",edge:{width:2,color:"ink",ring:false},shadow:{color:"",x:0,y:0,blur:0,spread:0},center:true,color:"text",fit:"cover",x:0,y:0,dy:0},next:{shown:true,w:28,h:28,padding:[0,0,0,0],marginTop:0,marginBottom:0,gap:[0,0],minHeight:0,radius:[14,14],bg:"surface",edge:{width:2,color:"line",ring:false},shadow:{color:"",x:0,y:0,blur:0,spread:0},center:true,color:"text",fit:"cover",x:0,y:0,dy:0},nowInner:{size:10,color:"go"},check:{shown:true,w:16,h:16,padding:[0,0,0,0],marginTop:0,marginBottom:0,gap:[0,0],minHeight:0,radius:[0,0],bg:"none",edge:{width:0,color:"line",ring:false},shadow:{color:"",x:0,y:0,blur:0,spread:0},center:false,color:"surface",fit:"cover",x:0,y:0,dy:0},lineDoneDone:{x:13,top:30,bottom:2,width:2,color:"ink"},lineDoneNow:{x:13,top:30,bottom:2,width:2,color:"ink"},lineNowNext:{x:13,top:30,bottom:2,width:2,color:"line"},title:{shown:true,size:17,weight:700,lineHeight:22.1,color:"ink",tracking:0,face:"sans",upper:false,wrap:"pretty",tabular:false,deco:"none",decoOffset:0,decoThickness:0,marginTop:0,paddingTop:3},head:{shown:true,w:317,h:27,padding:[3,0,0,0],marginTop:0,marginBottom:0,gap:[8,4],minHeight:0,radius:[0,0],bg:"none",edge:{width:0,color:"line",ring:false},shadow:{color:"",x:0,y:0,blur:0,spread:0},center:true,color:"ink",fit:"cover",x:0,y:0,dy:0},nextTitle:{shown:true,size:17,weight:700,lineHeight:22.1,color:"muted",tracking:0,face:"sans",upper:false,wrap:"pretty",tabular:false,deco:"none",decoOffset:0,decoThickness:0,marginTop:0,paddingTop:3},when:{shown:true,size:13,weight:400,lineHeight:18.2,color:"muted",tracking:0,face:"sans",upper:false,wrap:"pretty",tabular:false,deco:"none",decoOffset:0,decoThickness:0,marginTop:2,paddingTop:0},text:{shown:true,size:15,weight:400,lineHeight:22.5,color:"text",tracking:0,face:"sans",upper:false,wrap:"pretty",tabular:false,deco:"none",decoOffset:0,decoThickness:0,marginTop:2,paddingTop:0}},thumbnail:{xs:{frame:{shown:true,w:48,h:48,padding:[0,0,0,0],marginTop:0,marginBottom:0,gap:[0,0],minHeight:0,radius:[6,6],bg:"surface",edge:{width:1,color:"line",ring:true},shadow:{color:"",x:0,y:0,blur:0,spread:0},center:false,color:"text",fit:"contain",x:0,y:0,dy:0},img:{shown:false,w:48,h:48,padding:[0,0,0,0],marginTop:0,marginBottom:0,gap:[0,0],minHeight:0,radius:[6,6],bg:"surface",edge:{width:1,color:"line",ring:true},shadow:{color:"",x:0,y:0,blur:0,spread:0},center:false,color:"text",fit:"contain",x:0,y:0,dy:0},empty:{shown:true,w:48,h:48,padding:[0,0,0,0],marginTop:0,marginBottom:0,gap:[0,0],minHeight:0,radius:[10,10],bg:"none",edge:{width:0,color:"line",ring:false},shadow:{color:"",x:0,y:0,blur:0,spread:0},center:true,color:"#1E7AB7",fit:"cover",x:0,y:0,dy:0},icon:{shown:true,w:22,h:22,padding:[0,0,0,0],marginTop:0,marginBottom:0,gap:[0,0],minHeight:0,radius:[0,0],bg:"none",edge:{width:0,color:"line",ring:false},shadow:{color:"",x:0,y:0,blur:0,spread:0},center:false,color:"#1E7AB7",fit:"cover",x:0,y:0,dy:0},top:false},sm:{frame:{shown:true,w:64,h:64,padding:[8,8,8,8],marginTop:0,marginBottom:0,gap:[0,0],minHeight:0,radius:[14,14],bg:"#F3F3F3",edge:{width:0,color:"line",ring:false},shadow:{color:"",x:0,y:0,blur:0,spread:0},center:false,color:"text",fit:"cover",x:0,y:0,dy:0},img:{shown:true,w:48,h:48,padding:[0,0,0,0],marginTop:0,marginBottom:0,gap:[0,0],minHeight:0,radius:[0,0],bg:"none",edge:{width:0,color:"line",ring:false},shadow:{color:"",x:0,y:0,blur:0,spread:0},center:false,color:"text",fit:"contain",x:0,y:0,dy:0},empty:{shown:true,w:64,h:64,padding:[8,8,8,8],marginTop:0,marginBottom:0,gap:[0,0],minHeight:0,radius:[14,14],bg:"#F3F3F3",edge:{width:0,color:"line",ring:false},shadow:{color:"",x:0,y:0,blur:0,spread:0},center:false,color:"text",fit:"cover",x:0,y:0,dy:0},icon:{shown:true,w:22,h:22,padding:[0,0,0,0],marginTop:0,marginBottom:0,gap:[0,0],minHeight:0,radius:[0,0],bg:"none",edge:{width:0,color:"line",ring:false},shadow:{color:"",x:0,y:0,blur:0,spread:0},center:false,color:"#1E7AB7",fit:"cover",x:0,y:0,dy:0},top:false},md:{frame:{shown:true,w:156,h:156,padding:[0,0,0,0],marginTop:0,marginBottom:6,gap:[0,0],minHeight:0,radius:[20,20],bg:"#F5F5F5",edge:{width:0,color:"line",ring:false},shadow:{color:"",x:0,y:0,blur:0,spread:0},center:false,color:"text",fit:"cover",x:0,y:0,dy:0},img:{shown:true,w:156,h:156,padding:[10,10,10,10],marginTop:0,marginBottom:0,gap:[0,0],minHeight:0,radius:[0,0],bg:"none",edge:{width:0,color:"line",ring:false},shadow:{color:"",x:0,y:0,blur:0,spread:0},center:false,color:"text",fit:"contain",x:0,y:0,dy:0},empty:{shown:true,w:156,h:156,padding:[0,0,0,0],marginTop:0,marginBottom:6,gap:[0,0],minHeight:0,radius:[20,20],bg:"#F5F5F5",edge:{width:0,color:"line",ring:false},shadow:{color:"",x:0,y:0,blur:0,spread:0},center:false,color:"text",fit:"cover",x:0,y:0,dy:0},icon:{shown:true,w:22,h:22,padding:[0,0,0,0],marginTop:0,marginBottom:0,gap:[0,0],minHeight:0,radius:[0,0],bg:"none",edge:{width:0,color:"line",ring:false},shadow:{color:"",x:0,y:0,blur:0,spread:0},center:false,color:"#1E7AB7",fit:"cover",x:0,y:0,dy:0},top:false},lg:{frame:{shown:true,w:174.5,h:174.5,padding:[0,0,0,0],marginTop:0,marginBottom:8,gap:[0,0],minHeight:0,radius:[20,20],bg:"#F3F3F3",edge:{width:0,color:"line",ring:false},shadow:{color:"",x:0,y:0,blur:0,spread:0},center:false,color:"text",fit:"cover",x:0,y:0,dy:0},img:{shown:true,w:174.5,h:174.5,padding:[14,14,18,14],marginTop:0,marginBottom:0,gap:[0,0],minHeight:0,radius:[0,0],bg:"none",edge:{width:0,color:"line",ring:false},shadow:{color:"",x:0,y:0,blur:0,spread:0},center:false,color:"text",fit:"contain",x:0,y:0,dy:0},empty:{shown:true,w:174.5,h:174.5,padding:[0,0,0,0],marginTop:0,marginBottom:8,gap:[0,0],minHeight:0,radius:[20,20],bg:"#F3F3F3",edge:{width:0,color:"line",ring:false},shadow:{color:"",x:0,y:0,blur:0,spread:0},center:false,color:"text",fit:"cover",x:0,y:0,dy:0},icon:{shown:true,w:22,h:22,padding:[0,0,0,0],marginTop:0,marginBottom:0,gap:[0,0],minHeight:0,radius:[0,0],bg:"none",edge:{width:0,color:"line",ring:false},shadow:{color:"",x:0,y:0,blur:0,spread:0},center:false,color:"#1E7AB7",fit:"cover",x:0,y:0,dy:0},top:false}},text:{display:{shown:true,size:40,weight:500,lineHeight:39.2,color:"ink",tracking:-1.2,face:"sans",upper:false,wrap:"pretty",tabular:false,deco:"none",decoOffset:0,decoThickness:0,marginTop:0,paddingTop:0},headline:{shown:true,size:30,weight:500,lineHeight:33,color:"ink",tracking:-.45,face:"sans",upper:false,wrap:"pretty",tabular:false,deco:"none",decoOffset:0,decoThickness:0,marginTop:0,paddingTop:0},title:{shown:true,size:22,weight:500,lineHeight:26.4,color:"ink",tracking:-.33,face:"sans",upper:false,wrap:"pretty",tabular:false,deco:"none",decoOffset:0,decoThickness:0,marginTop:0,paddingTop:0},heading:{shown:true,size:18,weight:700,lineHeight:22.5,color:"ink",tracking:-.36,face:"sans",upper:false,wrap:"pretty",tabular:false,deco:"none",decoOffset:0,decoThickness:0,marginTop:0,paddingTop:0},body:{shown:true,size:17,weight:400,lineHeight:26.35,color:"text",tracking:0,face:"sans",upper:false,wrap:"pretty",tabular:false,deco:"none",decoOffset:0,decoThickness:0,marginTop:0,paddingTop:0},lead:{shown:true,size:15,weight:400,lineHeight:21.75,color:"text",tracking:0,face:"sans",upper:false,wrap:"pretty",tabular:false,deco:"none",decoOffset:0,decoThickness:0,marginTop:0,paddingTop:0},label:{shown:true,size:15,weight:700,lineHeight:21,color:"ink",tracking:0,face:"sans",upper:false,wrap:"pretty",tabular:false,deco:"none",decoOffset:0,decoThickness:0,marginTop:0,paddingTop:0},meta:{shown:true,size:13,weight:400,lineHeight:18.85,color:"muted",tracking:0,face:"mono",upper:false,wrap:"pretty",tabular:false,deco:"none",decoOffset:0,decoThickness:0,marginTop:0,paddingTop:0},caption:{shown:true,size:13,weight:400,lineHeight:19.5,color:"muted",tracking:0,face:"sans",upper:false,wrap:"pretty",tabular:false,deco:"none",decoOffset:0,decoThickness:0,marginTop:0,paddingTop:0},overline:{shown:true,size:12,weight:700,lineHeight:16.8,color:"muted",tracking:.72,face:"mono",upper:true,wrap:"pretty",tabular:false,deco:"none",decoOffset:0,decoThickness:0,marginTop:0,paddingTop:0},kicker:{shown:true,size:12,weight:700,lineHeight:18.6,color:"muted",tracking:.96,face:"mono",upper:true,wrap:"pretty",tabular:false,deco:"none",decoOffset:0,decoThickness:0,marginTop:0,paddingTop:0}},field:{gap:6,label:{shown:true,size:15,weight:700,lineHeight:21,color:"ink",tracking:0,face:"sans",upper:false,wrap:"pretty",tabular:false,deco:"none",decoOffset:0,decoThickness:0,marginTop:0,paddingTop:0},input:{shown:true,w:361,h:52,padding:[0,16,0,16],marginTop:0,marginBottom:0,gap:[10,10],minHeight:52,radius:[10,10],bg:"surface",edge:{width:1.5,color:"line",ring:false},shadow:{color:"",x:0,y:0,blur:0,spread:0},center:true,color:"text",fit:"cover",x:0,y:0,dy:0},focusEdge:"ink",errorEdge:"alert",value:{shown:true,size:17,weight:400,lineHeight:26.35,color:"text",tracking:0,face:"sans",upper:false,wrap:"pretty",tabular:false,deco:"none",decoOffset:0,decoThickness:0,marginTop:0,paddingTop:1},valueInset:[2,1],icon:{shown:true,w:20,h:20,padding:[0,0,0,0],marginTop:0,marginBottom:0,gap:[0,0],minHeight:0,radius:[0,0],bg:"none",edge:{width:0,color:"line",ring:false},shadow:{color:"",x:0,y:0,blur:0,spread:0},center:false,color:"muted",fit:"cover",x:0,y:0,dy:0},area:{shown:true,w:361,h:158,padding:[12,16,12,16],marginTop:0,marginBottom:0,gap:[10,10],minHeight:52,radius:[10,10],bg:"surface",edge:{width:1.5,color:"line",ring:false},shadow:{color:"",x:0,y:0,blur:0,spread:0},center:false,color:"text",fit:"cover",x:0,y:0,dy:0},areaValue:{shown:true,size:17,weight:400,lineHeight:25.5,color:"text",tracking:0,face:"sans",upper:false,wrap:"pretty",tabular:false,deco:"none",decoOffset:0,decoThickness:0,marginTop:0,paddingTop:2},areaValueMinHeight:132,areaInset:[2,2],hint:{shown:true,size:13,weight:400,lineHeight:19.5,color:"muted",tracking:0,face:"sans",upper:false,wrap:"pretty",tabular:false,deco:"none",decoOffset:0,decoThickness:0,marginTop:0,paddingTop:0},error:{shown:true,size:15,weight:400,lineHeight:21.75,color:"alertDeep",tracking:0,face:"sans",upper:false,wrap:"pretty",tabular:false,deco:"none",decoOffset:0,decoThickness:0,marginTop:0,paddingTop:0},placeholder:"muted"},checkbox:{row:{shown:true,w:361,h:45,padding:[0,0,0,0],marginTop:0,marginBottom:0,gap:[12,12],minHeight:0,radius:[0,0],bg:"none",edge:{width:0,color:"line",ring:false},shadow:{color:"",x:0,y:0,blur:0,spread:0},center:false,color:"text",fit:"cover",x:0,y:0,dy:0},labelX:34,box:{shown:true,w:20,h:20,padding:[0,0,0,0],marginTop:1,marginBottom:0,gap:[0,0],minHeight:0,radius:[6,6],bg:"surface",edge:{width:1.5,color:"icoSage",ring:false},shadow:{color:"",x:0,y:0,blur:0,spread:0},center:false,color:"text",fit:"cover",x:0,y:0,dy:0},on:{shown:true,w:20,h:20,padding:[0,0,0,0],marginTop:1,marginBottom:0,gap:[0,0],minHeight:0,radius:[6,6],bg:"ink",edge:{width:1.5,color:"ink",ring:false},shadow:{color:"",x:0,y:0,blur:0,spread:0},center:false,color:"text",fit:"cover",x:0,y:0,dy:0},tick:{w:5,h:10,stroke:2,color:"surface",rotate:45,dy:-1},label:{shown:true,size:15,weight:400,lineHeight:22.5,color:"text",tracking:0,face:"sans",upper:false,wrap:"pretty",tabular:false,deco:"none",decoOffset:0,decoThickness:0,marginTop:0,paddingTop:0},boxed:{shown:true,w:361,h:50.5,padding:[14,16,14,16],marginTop:0,marginBottom:0,gap:[12,12],minHeight:0,radius:[10,10],bg:"bgMist",edge:{width:0,color:"line",ring:false},shadow:{color:"",x:0,y:0,blur:0,spread:0},center:false,color:"text",fit:"cover",x:0,y:0,dy:0}},choice:{row:{shown:true,w:361,h:56.344,padding:[14,16,14,16],marginTop:0,marginBottom:0,gap:[12,12],minHeight:0,radius:[10,10],bg:"surface",edge:{width:1.5,color:"line",ring:false},shadow:{color:"",x:0,y:0,blur:0,spread:0},center:true,color:"text",fit:"cover",x:0,y:0,dy:0},selected:{shown:true,w:361,h:56.344,padding:[14,16,14,16],marginTop:0,marginBottom:0,gap:[12,12],minHeight:0,radius:[10,10],bg:"pink",edge:{width:1.5,color:"ink",ring:false},shadow:{color:"",x:0,y:0,blur:0,spread:0},center:true,color:"text",fit:"cover",x:0,y:0,dy:0},radio:{shown:true,w:20,h:20,padding:[0,0,0,0],marginTop:0,marginBottom:0,gap:[0,0],minHeight:0,radius:[10,10],bg:"surface",edge:{width:1.5,color:"icoSage",ring:false},shadow:{color:"",x:0,y:0,blur:0,spread:0},center:false,color:"text",fit:"cover",x:0,y:0,dy:0},radioOn:{shown:true,w:20,h:20,padding:[0,0,0,0],marginTop:0,marginBottom:0,gap:[0,0],minHeight:0,radius:[10,10],bg:"surface",edge:{width:6,color:"ink",ring:false},shadow:{color:"",x:0,y:0,blur:0,spread:0},center:false,color:"text",fit:"cover",x:0,y:0,dy:0},textX:34,title:{shown:true,size:17,weight:700,lineHeight:22.1,color:"ink",tracking:0,face:"sans",upper:false,wrap:"pretty",tabular:false,deco:"none",decoOffset:0,decoThickness:0,marginTop:0,paddingTop:0},strut:26.35,meta:{shown:true,size:13,weight:400,lineHeight:18.2,color:"muted",tracking:0,face:"sans",upper:false,wrap:"pretty",tabular:false,deco:"none",decoOffset:0,decoThickness:0,marginTop:2,paddingTop:0},end:{shown:true,size:13,weight:400,lineHeight:20.15,color:"muted",tracking:0,face:"sans",upper:false,wrap:"pretty",tabular:false,deco:"none",decoOffset:0,decoThickness:0,marginTop:0,paddingTop:0},group:{gap:8,legend:{shown:true,size:15,weight:700,lineHeight:21,color:"ink",tracking:0,face:"sans",upper:false,wrap:"pretty",tabular:false,deco:"none",decoOffset:0,decoThickness:0,marginTop:0,paddingTop:0},legendPaddingX:2,legendGap:0}},switch:{track:{shown:true,w:48,h:28,padding:[0,0,0,0],marginTop:0,marginBottom:0,gap:[0,0],minHeight:0,radius:[999,999],bg:"#D0D6D3",edge:{width:0,color:"line",ring:false},shadow:{color:"",x:0,y:0,blur:0,spread:0},center:false,color:"text",fit:"cover",x:0,y:0,dy:0},on:"ink",thumb:{size:22,inset:3,travel:20,color:"surface",shadow:{color:"rgba(16, 70, 46, 0.06)",x:0,y:1,blur:2,spread:0}}},iconButton:{bare:{shown:true,w:44,h:44,padding:[0,0,0,0],marginTop:0,marginBottom:0,gap:[0,0],minHeight:0,radius:[22,22],bg:"none",edge:{width:0,color:"line",ring:false},shadow:{color:"",x:0,y:0,blur:0,spread:0},center:true,color:"ink",fit:"cover",x:0,y:0,dy:0},bareIcon:22,offColor:"line",ring:{shown:true,w:36,h:36,padding:[0,0,0,0],marginTop:0,marginBottom:0,gap:[0,0],minHeight:0,radius:[18,18],bg:"surface",edge:{width:1.5,color:"ink",ring:false},shadow:{color:"",x:0,y:0,blur:0,spread:0},center:true,color:"ink",fit:"cover",x:0,y:0,dy:0},ringIcon:18,ringPressed:"tintSage",ringPressScale:.94},link:{text:{shown:true,size:17,weight:400,lineHeight:22.1,color:"ink",tracking:0,face:"sans",upper:false,wrap:"pretty",tabular:false,deco:"underline",decoOffset:3,decoThickness:0,marginTop:0,paddingTop:0},danger:{shown:true,size:15,weight:700,lineHeight:23.25,color:"alert",tracking:0,face:"sans",upper:false,wrap:"pretty",tabular:false,deco:"underline",decoOffset:3,decoThickness:0,marginTop:0,paddingTop:0},inline:{shown:true,size:17,weight:400,lineHeight:26.35,color:"text",tracking:0,face:"sans",upper:false,wrap:"pretty",tabular:false,deco:"underline",decoOffset:0,decoThickness:0,marginTop:0,paddingTop:0}},lists:{rows:{row:{shown:true,w:327,h:94.781,padding:[16,0,16,0],marginTop:0,marginBottom:0,gap:[16,8],minHeight:0,radius:[0,0],bg:"none",edge:{width:1,color:"line",ring:false},shadow:{color:"",x:0,y:0,blur:0,spread:0},center:true,color:"text",fit:"cover",x:0,y:0,dy:0},title:{shown:true,size:17,weight:700,lineHeight:22.1,color:"ink",tracking:0,face:"sans",upper:false,wrap:"pretty",tabular:false,deco:"none",decoOffset:0,decoThickness:0,marginTop:0,paddingTop:0},subtitle:{shown:true,size:13,weight:400,lineHeight:18.85,color:"muted",tracking:0,face:"sans",upper:false,wrap:"pretty",tabular:false,deco:"none",decoOffset:0,decoThickness:0,marginTop:2,paddingTop:0}},tiles:{list:{shown:true,w:343,h:175.813,padding:[0,0,0,0],marginTop:0,marginBottom:0,gap:[4,4],minHeight:0,radius:[0,0],bg:"none",edge:{width:0,color:"line",ring:false},shadow:{color:"",x:0,y:0,blur:0,spread:0},center:false,color:"text",fit:"cover",x:0,y:0,dy:0},outdent:8,row:{shown:true,w:343,h:62.281,padding:[10,8,10,8],marginTop:0,marginBottom:0,gap:[12,12],minHeight:0,radius:[10,10],bg:"none",edge:{width:0,color:"line",ring:false},shadow:{color:"",x:0,y:0,blur:0,spread:0},center:true,color:"text",fit:"cover",x:0,y:0,dy:0},leading:22,leadingFace:40,icon:{shown:true,w:20,h:20,padding:[0,0,0,0],marginTop:0,marginBottom:0,gap:[0,0],minHeight:0,radius:[0,0],bg:"none",edge:{width:0,color:"line",ring:false},shadow:{color:"",x:0,y:0,blur:0,spread:0},center:false,color:"muted",fit:"cover",x:0,y:0,dy:0},text:{shown:true,w:261,h:42.281,padding:[0,0,0,0],marginTop:0,marginBottom:0,gap:[2,2],minHeight:0,radius:[0,0],bg:"none",edge:{width:0,color:"line",ring:false},shadow:{color:"",x:0,y:0,blur:0,spread:0},center:false,color:"text",fit:"cover",x:0,y:0,dy:0},title:{shown:true,size:17,weight:700,lineHeight:22.1,color:"ink",tracking:0,face:"sans",upper:false,wrap:"pretty",tabular:false,deco:"none",decoOffset:0,decoThickness:0,marginTop:0,paddingTop:0},subtitle:{shown:true,size:13,weight:400,lineHeight:18.2,color:"muted",tracking:0,face:"sans",upper:false,wrap:"pretty",tabular:false,deco:"none",decoOffset:0,decoThickness:0,marginTop:0,paddingTop:0},pressed:"#EDF2EF",alert:{bg:"tintRed",icon:"alert",title:"alertDeep",subtitle:"alert"}},end:{text:{shown:true,size:15,weight:400,lineHeight:23.25,color:"muted",tracking:0,face:"sans",upper:false,wrap:"pretty",tabular:false,deco:"none",decoOffset:0,decoThickness:0,marginTop:0,paddingTop:0},gap:8,chevron:{shown:true,w:20,h:20,padding:[0,0,0,0],marginTop:0,marginBottom:0,gap:[0,0],minHeight:0,radius:[0,0],bg:"none",edge:{width:0,color:"line",ring:false},shadow:{color:"",x:0,y:0,blur:0,spread:0},center:false,color:"#819D90",fit:"cover",x:0,y:0,dy:0}},section:{title:{shown:true,size:18,weight:700,lineHeight:22.5,color:"ink",tracking:-.36,face:"sans",upper:false,wrap:"pretty",tabular:false,deco:"none",decoOffset:0,decoThickness:0,marginTop:0,paddingTop:0},titleGap:12,head:{shown:true,w:361,h:22.5,padding:[0,0,0,0],marginTop:8,marginBottom:0,gap:[12,8],minHeight:0,radius:[0,0],bg:"none",edge:{width:0,color:"line",ring:false},shadow:{color:"",x:0,y:0,blur:0,spread:0},center:true,color:"text",fit:"cover",x:0,y:0,dy:0},note:{shown:true,size:13,weight:400,lineHeight:19.5,color:"muted",tracking:0,face:"sans",upper:false,wrap:"pretty",tabular:false,deco:"none",decoOffset:0,decoThickness:0,marginTop:12,paddingTop:0}},avatar:{sizes:{xs:20,sm:36,md:48,lg:64,xl:128},face:40,bg:"surface",edge:{width:1,color:"line",ring:true},initials:{shown:true,size:15,weight:700,lineHeight:23.25,color:"ink",tracking:0,face:"sans",upper:false,wrap:"pretty",tabular:false,deco:"none",decoOffset:0,decoThickness:0,marginTop:0,paddingTop:0},initialsXs:{shown:true,size:9,weight:700,lineHeight:13.95,color:"ink",tracking:0,face:"sans",upper:false,wrap:"pretty",tabular:false,deco:"none",decoOffset:0,decoThickness:0,marginTop:0,paddingTop:0},tints:{default:"tintPink",pink:"#FFCFC9",blue:"#C2CEE5",yellow:"#F6D78F",sage:"#C6D3CD"},ring:{width:2,offset:2,color:"go"},ringXl:{width:3,offset:4,color:"go"},dot:{size:12,edge:2,edgeColor:"surface"}},stack:{size:28,overlap:-8,initialsSize:12,halo:{width:2,color:"surface"}},banner:{box:{shown:true,w:361,h:155.391,padding:[16,16,16,16],marginTop:0,marginBottom:0,gap:[12,4],minHeight:0,radius:[20,20],bg:"#F1F5F2",edge:{width:0,color:"line",ring:false},shadow:{color:"",x:0,y:0,blur:0,spread:0},center:false,color:"text",fit:"cover",x:0,y:0,dy:0},icon:{shown:true,w:22,h:22,padding:[0,0,0,0],marginTop:1,marginBottom:0,gap:[0,0],minHeight:0,radius:[0,0],bg:"none",edge:{width:0,color:"line",ring:false},shadow:{color:"",x:0,y:0,blur:0,spread:0},center:false,color:"ink",fit:"cover",x:0,y:0,dy:0},iconRows:3,kicker:{shown:true,size:12,weight:700,lineHeight:16.8,color:"#5B5B5B",tracking:.72,face:"mono",upper:true,wrap:"pretty",tabular:false,deco:"none",decoOffset:0,decoThickness:0,marginTop:0,paddingTop:0},title:{shown:true,size:17,weight:700,lineHeight:22.1,color:"ink",tracking:0,face:"sans",upper:false,wrap:"pretty",tabular:false,deco:"none",decoOffset:0,decoThickness:0,marginTop:0,paddingTop:0},text:{shown:true,size:15,weight:400,lineHeight:21.75,color:"text",tracking:0,face:"sans",upper:false,wrap:"pretty",tabular:false,deco:"none",decoOffset:0,decoThickness:0,marginTop:0,paddingTop:0},acts:{shown:true,w:295,h:21,padding:[0,0,0,0],marginTop:8,marginBottom:0,gap:[16,8],minHeight:0,radius:[0,0],bg:"none",edge:{width:0,color:"line",ring:false},shadow:{color:"",x:0,y:0,blur:0,spread:0},center:true,color:"text",fit:"cover",x:0,y:0,dy:0},link:{shown:true,size:15,weight:700,lineHeight:21,color:"ink",tracking:0,face:"sans",upper:false,wrap:"pretty",tabular:false,deco:"none",decoOffset:0,decoThickness:0,marginTop:0,paddingTop:0},tones:{info:{bg:"#F1F5F2",icon:"ink"},success:{bg:"tintGo",icon:"ink"},warn:{bg:"#FCF0D6",icon:"#926F06"},danger:{bg:"tintRed",icon:"alert"}}},toast:{box:{shown:true,w:200.281,h:40.25,padding:[10,16,10,16],marginTop:0,marginBottom:0,gap:[0,0],minHeight:0,radius:[999,999],bg:"ink",edge:{width:0,color:"line",ring:false},shadow:{color:"",x:0,y:0,blur:0,spread:0},center:false,color:"surface",fit:"cover",x:0,y:0,dy:0},text:{shown:true,size:15,weight:400,lineHeight:20.25,color:"onInk",tracking:0,face:"sans",upper:false,wrap:"pretty",tabular:false,deco:"none",decoOffset:0,decoThickness:0,marginTop:0,paddingTop:10},inset:16,rise:8,fade:200,hold:2600},spinner:{size:16,border:2,turn:700,openSide:true,reducedOpacity:.5},offbar:{box:{shown:true,w:361,h:56,padding:[6,16,6,16],marginTop:0,marginBottom:0,gap:[10,10],minHeight:44,radius:[0,0],bg:"#FCF0D6",edge:{width:0,color:"line",ring:false},shadow:{color:"",x:0,y:0,blur:0,spread:0},center:true,color:"ink",fit:"cover",x:0,y:48,dy:0},text:{shown:true,size:15,weight:500,lineHeight:19.5,color:"ink",tracking:0,face:"sans",upper:false,wrap:"pretty",tabular:false,deco:"none",decoOffset:0,decoThickness:0,marginTop:0,paddingTop:0},icon:{shown:true,w:20,h:20,padding:[0,0,0,0],marginTop:0,marginBottom:0,gap:[0,0],minHeight:0,radius:[0,0],bg:"none",edge:{width:0,color:"line",ring:false},shadow:{color:"",x:0,y:0,blur:0,spread:0},center:false,color:"ink",fit:"cover",x:0,y:0,dy:0},action:{shown:true,w:69.859,h:44,padding:[0,2,0,2],marginTop:0,marginBottom:0,gap:[6,6],minHeight:44,radius:[0,0],bg:"none",edge:{width:0,color:"line",ring:false},shadow:{color:"",x:0,y:0,blur:0,spread:0},center:true,color:"ink",fit:"cover",x:0,y:0,dy:0},actionText:{shown:true,size:15,weight:700,lineHeight:19.5,color:"ink",tracking:0,face:"sans",upper:false,wrap:"pretty",tabular:false,deco:"underline",decoOffset:3,decoThickness:0,marginTop:0,paddingTop:0},online:{bg:"ink",color:"onInk"},fade:200},progress:{track:{shown:true,w:361,h:4,padding:[0,0,0,0],marginTop:0,marginBottom:0,gap:[0,0],minHeight:0,radius:[999,999],bg:"line",edge:{width:0,color:"line",ring:false},shadow:{color:"",x:0,y:0,blur:0,spread:0},center:false,color:"text",fit:"cover",x:0,y:0,dy:0},fill:"go",move:300},divider:{width:1,color:"line",label:{shown:true,size:12,weight:400,lineHeight:18.6,color:"muted",tracking:.72,face:"mono",upper:true,wrap:"pretty",tabular:false,deco:"none",decoOffset:0,decoThickness:0,marginTop:0,paddingTop:0},labelGap:12,labelLine:{width:1,color:"line"}},errorInline:{text:{shown:true,size:15,weight:400,lineHeight:21,color:"alertDeep",tracking:0,face:"sans",upper:false,wrap:"pretty",tabular:false,deco:"none",decoOffset:0,decoThickness:0,marginTop:0,paddingTop:0},acts:{shown:true,w:361,h:21,padding:[0,0,0,0],marginTop:8,marginBottom:0,gap:[16,8],minHeight:0,radius:[0,0],bg:"none",edge:{width:0,color:"line",ring:false},shadow:{color:"",x:0,y:0,blur:0,spread:0},center:true,color:"text",fit:"cover",x:0,y:0,dy:0},link:{shown:true,size:15,weight:700,lineHeight:21,color:"ink",tracking:0,face:"sans",upper:false,wrap:"pretty",tabular:false,deco:"none",decoOffset:0,decoThickness:0,marginTop:0,paddingTop:0}},linkPressedOpacity:.6},variants:{drawer:{frame:{shown:true,w:393,h:226.594,padding:[10,20,40,20],marginTop:0,marginBottom:0,gap:[0,0],minHeight:0,radius:[28,0],bg:"surface",edge:{width:0,color:"line",ring:false},shadow:{color:"",x:0,y:0,blur:0,spread:0},center:false,color:"ink",fit:"cover",x:0,y:293.406,dy:0},maxHeight:.8,grab:{shown:true,w:40,h:5,padding:[0,0,0,0],marginTop:0,marginBottom:10,gap:[0,0],minHeight:0,radius:[2.5,2.5],bg:"#DAD7D1",edge:{width:0,color:"line",ring:false},shadow:{color:"",x:0,y:0,blur:0,spread:0},center:false,color:"ink",fit:"cover",x:0,y:0,dy:0},top:{shown:true,w:353,h:40,padding:[0,0,0,0],marginTop:0,marginBottom:0,gap:[0,0],minHeight:0,radius:[0,0],bg:"none",edge:{width:0,color:"line",ring:false},shadow:{color:"",x:0,y:0,blur:0,spread:0},center:true,color:"ink",fit:"cover",x:0,y:0,dy:0},kicker:{shown:true,size:11,weight:400,lineHeight:16.5,color:"muted",tracking:.88,face:"mono",upper:true,wrap:"auto",tabular:false,deco:"none",decoOffset:0,decoThickness:0,marginTop:0,paddingTop:0},close:{shown:true,w:40,h:40,padding:[0,0,0,0],marginTop:0,marginBottom:0,gap:[0,0],minHeight:0,radius:[20,20],bg:"none",edge:{width:0,color:"line",ring:false},shadow:{color:"",x:0,y:0,blur:0,spread:0},center:true,color:"ink",fit:"cover",x:0,y:0,dy:0},closeEnd:-8,closeIcon:22,title:{shown:true,size:24,weight:800,lineHeight:27.6,color:"ink",tracking:-.24,face:"serif",upper:false,wrap:"balance",tabular:false,deco:"none",decoOffset:0,decoThickness:0,marginTop:0,paddingTop:0},body:{shown:true,w:353,h:82,padding:[0,0,0,0],marginTop:12,marginBottom:0,gap:[10,10],minHeight:0,radius:[0,0],bg:"none",edge:{width:0,color:"line",ring:false},shadow:{color:"",x:0,y:0,blur:0,spread:0},center:false,color:"text",fit:"cover",x:0,y:0,dy:0},text:{shown:true,size:16,weight:400,lineHeight:24,color:"text",tracking:0,face:"sans",upper:false,wrap:"auto",tabular:false,deco:"none",decoOffset:0,decoThickness:0,marginTop:0,paddingTop:0},scrim:"ink/0.38",motion:{enterMs:320,enterEasing:[.32,.72,0,1],exitMs:220,exitEasing:[.23,1,.32,1],scrimEnterMs:240,scrimExitMs:200,scrimEasing:[.25,.1,.25,1]}},button:{ink:{fill:false,minHeight:48,paddingX:22,gap:8,borderWidth:0,ring:false,fontSize:16,fontWeight:700,lineHeight:1.5,iconSize:20},outline:{fill:false,minHeight:48,paddingX:22,gap:8,borderWidth:1.5,ring:true,fontSize:16,fontWeight:700,lineHeight:1.5,iconSize:20},sm:{fill:false,minHeight:40,paddingX:16,gap:8,borderWidth:1.5,ring:true,fontSize:15,fontWeight:700,lineHeight:1.5,iconSize:20},lg:{fill:false,minHeight:56,paddingX:28,gap:8,borderWidth:0,ring:false,fontSize:17,fontWeight:700,lineHeight:1.5,iconSize:20},disabledOpacity:.32,press:.97,transition:"transform 160ms cubic-bezier(0.23, 1, 0.32, 1), opacity 160ms ease"},segmented:{track:{shown:true,w:361,h:44,padding:[4,4,4,4],marginTop:0,marginBottom:0,gap:[4,4],minHeight:0,radius:[22,22],bg:"surface",edge:{width:1.5,color:"#DAD7D1",ring:true},shadow:{color:"",x:0,y:0,blur:0,spread:0},center:false,color:"ink",fit:"cover",x:0,y:0,dy:0},option:{shown:true,w:115,h:36,padding:[0,6,0,6],marginTop:0,marginBottom:0,gap:[0,0],minHeight:36,radius:[18,18],bg:"none",edge:{width:0,color:"line",ring:false},shadow:{color:"",x:0,y:0,blur:0,spread:0},center:false,color:"ink",fit:"cover",x:0,y:0,dy:0},label:{shown:true,size:14,weight:700,lineHeight:21,color:"ink",tracking:0,face:"sans",upper:false,wrap:"auto",tabular:false,deco:"none",decoOffset:0,decoThickness:0,marginTop:0,paddingTop:0},chosen:{shown:true,w:115,h:36,padding:[0,6,0,6],marginTop:0,marginBottom:0,gap:[0,0],minHeight:36,radius:[18,18],bg:"ink",edge:{width:0,color:"line",ring:false},shadow:{color:"",x:0,y:0,blur:0,spread:0},center:false,color:"onInk",fit:"cover",x:0,y:0,dy:0},chosenLabel:{shown:true,size:14,weight:700,lineHeight:21,color:"onInk",tracking:0,face:"sans",upper:false,wrap:"auto",tabular:false,deco:"none",decoOffset:0,decoThickness:0,marginTop:0,paddingTop:0},press:.96,transition:"background-color 160ms ease, transform 160ms cubic-bezier(0.23, 1, 0.32, 1)"},stepper:{track:{shown:true,w:110,h:40,padding:[0,0,0,0],marginTop:0,marginBottom:0,gap:[0,0],minHeight:0,radius:[20,20],bg:"surface",edge:{width:1.5,color:"#DAD7D1",ring:true},shadow:{color:"",x:0,y:0,blur:0,spread:0},center:true,color:"ink",fit:"cover",x:0,y:0,dy:0},button:{shown:true,w:40,h:40,padding:[0,0,0,0],marginTop:0,marginBottom:0,gap:[0,0],minHeight:0,radius:[20,20],bg:"none",edge:{width:0,color:"line",ring:false},shadow:{color:"",x:0,y:0,blur:0,spread:0},center:true,color:"ink",fit:"cover",x:0,y:0,dy:0},icon:16,value:{shown:true,size:15.5,weight:800,lineHeight:23.25,color:"ink",tracking:0,face:"sans",upper:false,wrap:"auto",tabular:true,deco:"none",decoOffset:0,decoThickness:0,marginTop:0,paddingTop:0},valueWidth:30,disabledOpacity:.3,press:.9,transition:"transform 160ms cubic-bezier(0.23, 1, 0.32, 1)"},summary:{box:{shown:true,w:361,h:144,padding:[6,16,6,16],marginTop:0,marginBottom:0,gap:[0,0],minHeight:0,radius:[16,16],bg:"surface",edge:{width:0,color:"line",ring:false},shadow:{color:"rgba(38, 37, 35, 0.06)",x:0,y:1,blur:3,spread:0},center:false,color:"ink",fit:"cover",x:0,y:0,dy:0},row:{shown:true,w:329,h:34,padding:[0,0,0,0],marginTop:0,marginBottom:0,gap:[12,12],minHeight:34,radius:[0,0],bg:"none",edge:{width:0,color:"line",ring:false},shadow:{color:"",x:0,y:0,blur:0,spread:0},center:true,color:"ink",fit:"cover",x:0,y:0,dy:0},term:{shown:true,size:15,weight:400,lineHeight:22.5,color:"#4A4845",tracking:0,face:"sans",upper:false,wrap:"auto",tabular:true,deco:"none",decoOffset:0,decoThickness:0,marginTop:0,paddingTop:0},value:{shown:true,size:15,weight:400,lineHeight:22.5,color:"ink",tracking:0,face:"sans",upper:false,wrap:"auto",tabular:true,deco:"none",decoOffset:0,decoThickness:0,marginTop:0,paddingTop:0},totalRow:{shown:true,w:329,h:42,padding:[0,0,0,0],marginTop:0,marginBottom:0,gap:[12,12],minHeight:42,radius:[0,0],bg:"none",edge:{width:0,color:"line",ring:false},shadow:{color:"",x:0,y:0,blur:0,spread:0},center:true,color:"ink",fit:"cover",x:0,y:0,dy:0},totalTerm:{shown:true,size:17,weight:800,lineHeight:25.5,color:"ink",tracking:0,face:"sans",upper:false,wrap:"auto",tabular:true,deco:"none",decoOffset:0,decoThickness:0,marginTop:0,paddingTop:0},total:{shown:true,size:17,weight:800,lineHeight:25.5,color:"ink",tracking:0,face:"sans",upper:false,wrap:"auto",tabular:true,deco:"none",decoOffset:0,decoThickness:0,marginTop:0,paddingTop:0},renewRow:{shown:true,w:329,h:28,padding:[0,0,0,0],marginTop:-6,marginBottom:0,gap:[12,12],minHeight:28,radius:[0,0],bg:"none",edge:{width:0,color:"line",ring:false},shadow:{color:"",x:0,y:0,blur:0,spread:0},center:true,color:"ink",fit:"cover",x:0,y:0,dy:0},renewTerm:{shown:true,size:14,weight:400,lineHeight:21,color:"#4A4845",tracking:0,face:"sans",upper:false,wrap:"auto",tabular:true,deco:"none",decoOffset:0,decoThickness:0,marginTop:0,paddingTop:0},renew:{shown:true,size:14,weight:400,lineHeight:21,color:"ink",tracking:0,face:"sans",upper:false,wrap:"auto",tabular:true,deco:"none",decoOffset:0,decoThickness:0,marginTop:0,paddingTop:0},inset:{shown:true,w:361,h:88,padding:[6,16,6,16],marginTop:0,marginBottom:0,gap:[0,0],minHeight:0,radius:[16,16],bg:"bg",edge:{width:0,color:"line",ring:false},shadow:{color:"",x:0,y:0,blur:0,spread:0},center:false,color:"ink",fit:"cover",x:0,y:0,dy:0}},toast:{box:{shown:true,w:361,h:64.594,padding:[12,15,12,15],marginTop:0,marginBottom:0,gap:[0,0],minHeight:0,radius:[16,16],bg:"ink",edge:{width:0,color:"line",ring:false},shadow:{color:"",x:0,y:0,blur:0,spread:0},center:false,color:"onInk",fit:"cover",x:16,y:62,dy:0},text:{shown:true,size:14.5,weight:400,lineHeight:20.3,color:"onInk",tracking:0,face:"sans",upper:false,wrap:"auto",tabular:false,deco:"none",decoOffset:0,decoThickness:0,marginTop:0,paddingTop:12},motion:{enterMs:220,exitMs:160,easing:[.23,1,.32,1],rise:-8}},focus:{width:2,offset:2,color:"ink"}},press:{button:.97,iconButton:.94,card:.98},colors:{grab:"#C9C9C9",scrim:"rgba(0, 0, 0, 0.32)",watch:"#F9E6B9",planInk:"#262523",planOnInk:"#FFFFFF",planAccent:"#FFCE34",planLink:"#00707C",planAccentWash:"#FFF7DC",planAccentChip:"#FFE7A1",planLinkWash:"#E0FDFF",planLinkChip:"#C8F4F8"}};var lr={line:/* @__PURE__ */nr({w:361,h:109.328,gap:[12,12],center:true}),name:/* @__PURE__ */nr({w:289,h:24,gap:[8,4],center:true,color:"ink"}),nameText:/* @__PURE__ */ir({size:17,weight:700,lineHeight:22.1,color:"ink"}),meta:/* @__PURE__ */ir({size:13,weight:400,lineHeight:18.85,color:"muted",marginTop:2}),price:/* @__PURE__ */ir({size:17,weight:700,lineHeight:26.35,color:"ink",tabular:true}),was:/* @__PURE__ */ir({shown:false,size:13,weight:400,lineHeight:18.85,color:"muted",marginTop:2}),acts:/* @__PURE__ */nr({w:289,h:20.141,marginTop:6,gap:[16,16]}),remove:/* @__PURE__ */ir({size:13,weight:700,lineHeight:20.15,color:"ink",deco:"underline",decoOffset:3}),removeBox:/* @__PURE__ */nr({w:53.016,h:20.141,color:"ink"}),end:/* @__PURE__ */nr({w:289,h:26.344,gap:[4,4]})},ar={line:/* @__PURE__ */nr({w:361,h:95.094,gap:[12,12]}),sm:/* @__PURE__ */nr({w:48,h:48,radius:[12,12],bg:"#F3F3F3"}),md:/* @__PURE__ */nr({w:52,h:52,radius:[12,12],bg:"#F3F3F3"}),lg:/* @__PURE__ */nr({w:56,h:56,radius:[12,12],bg:"#F3F3F3"}),imgInset:.1,imgFit:"contain",imgBlend:"multiply",name:/* @__PURE__ */nr({w:239.109,h:20,gap:[6,4],center:true}),nameText:/* @__PURE__ */ir({size:15,weight:700,lineHeight:19.5}),link:/* @__PURE__ */ir({size:15,weight:700,lineHeight:19.5}),linkReach:4,badge:/* @__PURE__ */nr({w:29.344,h:20,padding:[0,7,0,7],radius:[999,999],bg:"#E0E6F2",edge:{width:1.5,color:"rgba(90, 96, 135, 0.45)",ring:true},center:true}),badgeText:/* @__PURE__ */ir({size:12,weight:700,lineHeight:12}),meta:/* @__PURE__ */ir({size:13,weight:400,lineHeight:17.55,color:"muted",marginTop:2}),acts:/* @__PURE__ */nr({w:239.109,h:32,marginTop:6,gap:[16,16]}),act:/* @__PURE__ */ir({size:13,weight:700,lineHeight:20.15,color:"ink",deco:"underline",decoOffset:3}),actBox:/* @__PURE__ */nr({w:84.531,h:32,minHeight:32,color:"ink"}),price:/* @__PURE__ */ir({size:15,weight:700,lineHeight:23.25,tabular:true}),was:/* @__PURE__ */ir({size:13,weight:400,lineHeight:20.15,color:"muted",tabular:true,deco:"strike"})},sr={line:/* @__PURE__ */nr({w:404,h:88,gap:[16,0],center:true}),sq:/* @__PURE__ */nr({w:88,h:88,radius:[14,14],bg:"#F3F3F3"}),imgInset:.1,imgFit:"contain",imgBlend:"multiply",name:/* @__PURE__ */nr({w:225.875,h:24.688,gap:[8,4],center:true}),nameText:/* @__PURE__ */ir({size:19,weight:700,lineHeight:24.7}),link:/* @__PURE__ */ir({size:19,weight:700,lineHeight:24.7}),linkReach:4,badge:/* @__PURE__ */nr({w:32.625,h:22,padding:[0,8,0,8],radius:[999,999],bg:"#DEE4F1",center:true}),badgeText:/* @__PURE__ */ir({size:13,weight:700,lineHeight:13}),meta:/* @__PURE__ */ir({size:15,weight:400,lineHeight:21,marginTop:2}),price:/* @__PURE__ */ir({size:19,weight:700,lineHeight:29.45,tabular:true}),was:/* @__PURE__ */ir({size:15,weight:400,lineHeight:23.25,tabular:true,deco:"strike"}),narrow:{upTo:599,sq:/* @__PURE__ */nr({w:64,h:64,radius:[14,14],bg:"#F3F3F3"}),cost:/* @__PURE__ */nr({w:432,h:29.438,marginTop:4,gap:[8,8]}),nameText:/* @__PURE__ */ir({size:17,weight:700,lineHeight:22.1}),link:/* @__PURE__ */ir({size:17,weight:700,lineHeight:22.1})},narrower:{upTo:330,sq:/* @__PURE__ */nr({w:56,h:56,radius:[14,14],bg:"#F3F3F3"}),cost:/* @__PURE__ */nr({w:216,h:29.438,marginTop:4,gap:[8,8]}),nameText:/* @__PURE__ */ir({size:17,weight:700,lineHeight:22.1}),link:/* @__PURE__ */ir({size:17,weight:700,lineHeight:22.1})},phone:{upTo:639,line:/* @__PURE__ */nr({w:303,h:81.25,gap:[12,0],center:true}),sq:/* @__PURE__ */nr({w:56,h:56,radius:[12,12],bg:"#F3F3F3"}),cost:/* @__PURE__ */nr({w:235,h:23.25,marginTop:2,gap:[8,8]}),nameText:/* @__PURE__ */ir({size:15,weight:700,lineHeight:19.5}),link:/* @__PURE__ */ir({size:15,weight:700,lineHeight:19.5}),meta:/* @__PURE__ */ir({size:13,weight:400,lineHeight:17.55,marginTop:2}),price:/* @__PURE__ */ir({size:15,weight:700,lineHeight:23.25,tabular:true}),was:/* @__PURE__ */ir({size:13,weight:400,lineHeight:20.15,tabular:true,deco:"strike"}),smallUpTo:359,smallSq:48}},dr={line:/* @__PURE__ */nr({w:360,h:147.094,gap:[14,0]}),img:/* @__PURE__ */nr({w:64,h:64,radius:[14,14],bg:"surface",edge:{width:1.5,color:"#C6D3CD",ring:true}}),imgInset:6,imgFit:"contain",name:/* @__PURE__ */nr({w:216,h:22.094,gap:[8,4],center:true}),nameText:/* @__PURE__ */ir({size:17,weight:700,lineHeight:22.1,wrap:"auto"}),badge:/* @__PURE__ */nr({w:32.625,h:22,padding:[0,8,0,8],radius:[999,999],bg:"#DEE4F1",edge:{width:1.5,color:"rgba(90, 96, 135, 0.45)",ring:true},center:true}),badgeText:/* @__PURE__ */ir({size:13,weight:700,lineHeight:13,wrap:"auto"}),meta:/* @__PURE__ */ir({size:15,weight:400,lineHeight:21,marginTop:2}),note:/* @__PURE__ */ir({size:15,weight:700,lineHeight:21,color:"ink",marginTop:2}),acts:/* @__PURE__ */nr({w:282,h:92,marginTop:10,gap:[12,8],center:true}),plan:/* @__PURE__ */nr({w:193.703,h:44,padding:[3,3,3,3],radius:[999,999],bg:"surface",edge:{width:1.5,color:"#C6D3CD",ring:true}}),planBtn:/* @__PURE__ */nr({w:63.859,h:38,padding:[0,14,0,14],minHeight:38,radius:[999,999]}),planText:/* @__PURE__ */ir({size:15,weight:500,lineHeight:23.25,wrap:"auto"}),planOn:/* @__PURE__ */nr({w:123.844,h:38,padding:[0,14,0,14],minHeight:38,radius:[999,999],bg:"ink",color:"surface"}),planOnText:/* @__PURE__ */ir({size:15,weight:700,lineHeight:23.25,color:"surface",wrap:"auto"}),qty:/* @__PURE__ */nr({w:104,h:40,radius:[999,999],bg:"surface",edge:{width:1.5,color:"#C6D3CD",ring:true},center:true}),countMin:24,qtyBtn:/* @__PURE__ */nr({w:40,h:40,radius:[20,20],center:true}),qtyIcon:/* @__PURE__ */nr({w:16,h:16}),count:/* @__PURE__ */ir({size:15,weight:700,lineHeight:23.25,wrap:"auto",tabular:true}),remove:/* @__PURE__ */nr({w:58.359,h:40,minHeight:40,color:"ink"}),removeText:/* @__PURE__ */ir({size:15,weight:700,lineHeight:23.25,color:"ink",wrap:"auto",deco:"underline",decoOffset:3}),price:/* @__PURE__ */ir({size:17,weight:700,lineHeight:22.1,wrap:"auto",tabular:true}),was:/* @__PURE__ */ir({size:15,weight:400,lineHeight:19.5,wrap:"auto",tabular:true,deco:"strike"}),pressScale:.9,hover:{color:"ink",share:.06,over:"surface"},motion:{press:140,fill:150,planFill:150}};var cr={line:/* @__PURE__ */nr({w:297,h:95.625,gap:[12,12],color:"#262523"}),img:/* @__PURE__ */nr({w:64,h:64,radius:[14,14],bg:"planLinkWash",center:true,color:"planLink"}),icon:/* @__PURE__ */nr({w:28,h:28,color:"planLink"}),name:/* @__PURE__ */ir({size:16.5,weight:800,lineHeight:20.625,color:"#262523",wrap:"balance"}),prices:/* @__PURE__ */nr({w:221,h:24,marginTop:3,gap:[8,2],center:true,color:"#262523"}),price:/* @__PURE__ */ir({size:16,weight:800,lineHeight:24,color:"#262523",tabular:true}),was:/* @__PURE__ */ir({size:14,weight:600,lineHeight:21,color:"#6B6863",deco:"strike"}),small:/* @__PURE__ */ir({size:14,weight:400,lineHeight:21,color:"#6B6863"}),acts:/* @__PURE__ */nr({w:221,h:40,marginTop:8,gap:[16,16],center:true,color:"#262523"}),step:/* @__PURE__ */nr({w:110,h:40,radius:[999,999],bg:"surface",edge:{width:1.5,color:"#DAD7D1",ring:true},center:true,color:"#262523"}),remove:/* @__PURE__ */nr({w:56.422,h:40,minHeight:40,color:"#4A4845"}),removeText:/* @__PURE__ */ir({size:14.5,weight:700,lineHeight:21.75,color:"#4A4845",deco:"underline",decoOffset:3,decoThickness:1.5})};function deepFreeze(e){if(e!==null&&typeof e=="object"&&!Object.isFrozen(e))for(let t of Object.values(e))deepFreeze(t);return e}var ur=er,pr=/* @__PURE__ */Symbol.for("@everfur-health/ui-core#preset@v1");function hr(e){return Object.defineProperty(e,pr,{value:e,enumerable:true}),deepFreeze(e)}var gr={content:0,heading:2,control:1.8,compact:1.5,badge:1.3},fr=hr({name:"everfur",colors:{bg:ur.color.bg,surface:ur.color.efWhite,text:ur.color.text,ink:ur.role.color.ink,onInk:ur.color.efWhite,muted:ur.role.color.muted,line:ur.role.color.line,go:ur.role.color.go,onGo:ur.role.color.ink,pink:ur.color.efDustyPink,onPink:ur.role.color.ink,alert:ur.color.alert,alertDeep:ur.color.alertDeep,icoSage:ur.role.color.icoSage,bgMist:ur.color.bgMist,tintSage:ur.role.color.tintSage,tintBlue:ur.role.color.tintBlue,tintGo:ur.role.color.tintGo,tintPink:ur.role.color.tintPink,tintYellowEdge:ur.role.color.tintYellowEdge,tintWatch:or.colors.watch,tintRed:ur.role.color.tintRed,scrim:or.colors.scrim,grab:or.colors.grab,focus:ur.role.color.ink,planInk:or.colors.planInk,planOnInk:or.colors.planOnInk,planAccent:or.colors.planAccent,planLink:or.colors.planLink,planAccentWash:or.colors.planAccentWash,planAccentChip:or.colors.planAccentChip,planLinkWash:or.colors.planLinkWash,planLinkChip:or.colors.planLinkChip},radius:{...ur.radius},space:{...ur.space},type:{family:ur.font.family.base,mono:ur.font.family.mono,faces:{regular:"Azeret-Regular",medium:"Azeret-Medium",bold:"Azeret-Bold",mono:"AzeretMono-Regular",monoBold:"AzeretMono-Bold"},namedFaces:true,size:{xs:ur.font.size.xs,sm:ur.font.size.sm,md:ur.font.size.md,lg:ur.font.size.lg,xl:ur.font.size.xl},weight:{...ur.font.weight},lineHeight:{...ur.font.lineHeight},scaleCaps:gr},motion:{duration:{press:ur.motion.duration.press,fade:ur.motion.duration.fade,enter:ur.motion.duration.enter,sheet:ur.motion.duration.sheet,sheetOut:ur.motion.duration.sheetOut},easing:{out:ur.motion.easing.out,drawer:ur.motion.easing.drawer},pop:{duration:ur.motion.duration.enter,from:.95,peakAt:.55,amplitude:.035,switchAmplitude:.06},reduced:false},metrics:or});function mr(e){return e[pr]??fr}function br(e){return e!==null&&typeof e=="object"&&!Array.isArray(e)}function yr(e,t){if(!br(e)||!br(t))return t===void 0?e:t;let r={...e};for(let[n,i]of Object.entries(t))i!==void 0&&(r[n]=yr(e[n],i));return r}function resolveTheme(e,t=fr){if(!e)return t;let r=yr(t,e),n=e.colors;if(n){let e=r.colors;for(let[t,r,i]of xr){let o=n[r];o!==void 0&&n[t]===void 0&&(e[t]=kr(o,i,e.surface)??e[t]??o)}}return deepFreeze(r)}var xr=[["planAccentWash","planAccent",.17],["planAccentChip","planAccent",.47],["planLinkWash","planLink",.12],["planLinkChip","planLink",.2]];function kr(e,t,r){let n=e=>{let t=/^#([0-9a-f]{2})([0-9a-f]{2})([0-9a-f]{2})$/i.exec(e??"");return t?[t[1],t[2],t[3]].map(e=>parseInt(e,16)):void 0},[i,o]=[n(e),n(r)];if(!(!i||!o))return`#${i.map((e,r)=>Math.round(e*t+(o[r]??0)*(1-t)).toString(16).padStart(2,"0")).join("").toUpperCase()}`}var wr=/* @__PURE__ */(()=>{let t=/* @__PURE__ */Symbol.for("@everfur-health/ui-core#ThemeContext@v1"),r=globalThis,n=r[t]??(r[t]=e.createContext(null));return n.displayName??(n.displayName="EverfurThemeContext"),n})();function ThemeProvider({theme:t,children:r}){let n=Lr(),i=t===void 0||Tr(t)?t:vr(t),o=e.useMemo(()=>Tr(t)?Ir(t):resolveTheme(t,n),[i,n]);return e.createElement(wr.Provider,{value:o},r)}function vr(e){return JSON.stringify(e,(e,t)=>br(t)&&!Array.isArray(t)?Object.fromEntries(Object.keys(t).sort().map(e=>[e,t[e]])):t)}function Tr(e){return e!==void 0&&Object.isFrozen(e)&&Sr.every(t=>t in e)}var Sr=["name","colors","radius","space","type","motion","metrics"];function jr(e,t){if(e===void 0)return true;if(!br(e))return t!==void 0;if(!br(t))return false;for(let r of Object.keys(e))if(!jr(e[r],t[r]))return false;return true}var Cr=/* @__PURE__ */new WeakMap;function Ir(e){let t=Cr.get(e);if(t)return t;if(jr(fr,e))return Cr.set(e,e),e;let r=mr(e),n=yr(fr,r===fr?e:yr(r,e));n[pr]=r;let i=deepFreeze(n);return Cr.set(e,i),i}function Lr(){let t=e.useContext(wr);return t?Ir(t):fr}var zr=e=>Math.round(e*1e3)/1e3;function Ar(e,t=false){return t?e>450?"monoBold":"mono":e>500?"bold":e>450?"medium":"regular"}function Rr(e,t){let r=/^#([0-9a-f]{2})([0-9a-f]{2})([0-9a-f]{2})$/i.exec(e);if(!r)return e;let[n,i,o]=[r[1],r[2],r[3]].map(e=>parseInt(e,16));return`rgba(${n}, ${i}, ${o}, ${t})`}function Wr(e){let t=/^#([0-9a-f]{2})([0-9a-f]{2})([0-9a-f]{2})$/i.exec(e);if(t)return[t[1],t[2],t[3]].map(e=>parseInt(e,16));let r=/^rgba?\(\s*([\d.]+)[\s,]+([\d.]+)[\s,]+([\d.]+)/i.exec(e);return r?[r[1],r[2],r[3]].map(Number):void 0}function Fr(e,t,r,n){let[i,o]=[Wr(e),Wr(r)];return!i||!o?n:`rgb(${i.map((e,r)=>Math.round(e*t+(o[r]??0)*(1-t))).join(", ")})`}function Vr(e,t){let r=/^([a-zA-Z]+)(?:\/([\d.]+))?$/.exec(t),n=r?.[1];if(!r||n===void 0||!(n in e.colors))return t;let i=e.colors[n];return r[2]===void 0?i:Rr(i,Number(r[2]))}function Hr(e,t){return t==="none"?"transparent":Vr(e,t)}var Pr=.45;function Or(e,t){let r=e.metrics.pill,n=r.tones[t],i=t==="clear"?e.colors.ink:Vr(e,n.fg);return{minHeight:r.minHeight,paddingX:r.paddingX,radius:e.radius.pill,background:Vr(e,n.bg),ring:n.ring>0?{width:n.ring,color:Vr(e,n.ringColor)}:null,dot:t==="new"?{size:r.dot,gap:r.dotGap,color:e.colors.go}:t==="allergy"?{size:r.allergyDot.size,gap:r.allergyDot.gap,color:Vr(e,r.allergyDot.color)}:null,text:{size:r.fontSize,weight:r.fontWeight,lineHeight:zr(r.fontSize*r.lineHeight),color:i,mono:r.mono,tracking:r.letterSpacing,upper:r.upper}}}function Br(e,t){let r=e.metrics.sheet,n=r.titleSize,i=r.titleLineHeight??e.metrics.card.titleLineHeight;return{size:n,weight:r.titleWeight??e.metrics.card.titleWeight,lineHeight:zr(n*i),color:Vr(e,r.titleColor??"ink"),tracking:r.titleTracking??e.metrics.card.titleTracking}}function Er(e){let t=e.metrics,r=e.colors;return{cardTitle:{size:t.card.titleSize,weight:t.card.titleWeight,lineHeight:zr(t.card.titleSize*t.card.titleLineHeight),color:r.ink,tracking:t.card.titleTracking},cardLead:{size:t.card.leadSize,weight:e.type.weight.regular,lineHeight:zr(t.card.leadSize*t.card.leadLineHeight),color:r.text},body:{size:t.card.bodySize,weight:e.type.weight.regular,lineHeight:zr(t.card.bodySize*t.card.bodyLineHeight),color:r.text},kicker:{size:t.kicker.fontSize,weight:t.kicker.fontWeight,lineHeight:zr(t.kicker.fontSize*t.kicker.lineHeight),color:r.muted,mono:true,tracking:t.kicker.letterSpacing,upper:true},sheetTitle:Br(e),stepperValue:{size:t.quantityStepper.valueSize,weight:t.quantityStepper.valueWeight,lineHeight:zr(t.quantityStepper.valueSize*t.quantityStepper.valueLineHeight),color:Vr(e,t.quantityStepper.valueColor??"text")},tab:{size:t.tabs.fontSize,weight:t.tabs.fontWeight,lineHeight:zr(t.tabs.fontSize*t.tabs.lineHeight),color:r.muted},tabCurrent:{size:t.tabs.fontSize,weight:t.tabs.currentWeight,lineHeight:zr(t.tabs.fontSize*t.tabs.lineHeight),color:r.ink},emptyTitle:{size:t.empty.titleSize,weight:t.empty.titleWeight,lineHeight:zr(t.empty.titleSize*t.empty.titleLineHeight),color:r.ink,tracking:t.empty.titleTracking},emptyLead:{size:t.empty.leadSize,weight:e.type.weight.regular,lineHeight:zr(t.empty.leadSize*t.empty.leadLineHeight),color:r.text},emptyLink:{size:t.empty.linkSize,weight:t.empty.linkWeight,lineHeight:zr(t.empty.linkSize*t.card.bodyLineHeight),color:r.ink},sumTerm:{size:t.summary.termSize,weight:e.type.weight.regular,lineHeight:zr(t.summary.termSize*t.summary.termLineHeight),color:r.muted},sumValue:{size:t.summary.valueSize,weight:t.summary.valueWeight,lineHeight:zr(t.summary.valueSize*t.summary.valueLineHeight),color:r.ink},sumTotal:{size:t.summary.totalSize,weight:t.summary.valueWeight,lineHeight:zr(t.summary.totalSize*t.summary.totalLineHeight),color:r.ink}}}function Dr(e){let t=e.metrics.quantityStepper;return{edge:{width:t.borderWidth,color:Vr(e,t.borderColor),inset:t.ring},button:t.button,icon:t.icon,valueMinWidth:t.valueMinWidth,fill:Hr(e,t.fill??"none"),glyph:Vr(e,t.glyph??"ink"),off:{color:Vr(e,t.offColor),opacity:t.offOpacity}}}function Nr(e,t){return{size:t.size,weight:t.weight,lineHeight:t.lineHeight,color:Vr(e,t.color),...t.face==="mono"?{mono:true}:{},...t.face==="serif"?{serif:true}:{},...t.tracking?{tracking:t.tracking}:{},...t.upper?{upper:true}:{},...t.deco==="none"?{}:{deco:t.deco==="strike"?"strike":"underline",decoOffset:t.decoOffset,decoThickness:t.decoThickness},...t.tabular?{tabular:true}:{},...t.wrap==="auto"?{}:{wrap:t.wrap==="balance"?"balance":"pretty"}}}function qr(e,t){return t==="none"?void 0:Vr(e,t)}function Ur(e){let t=e.metrics.summary,r=(e,t)=>zr(e*t);return{paddingX:t.paddingX,paddingY:t.paddingY,radius:t.radius,borderWidth:t.borderWidth,borderColor:e.colors.line,background:Vr(e,t.background),shadow:t.shadow,row:{paddingY:t.rowPaddingY,minHeight:t.rowMinHeight,gapX:t.rowGapX,gapY:t.rowGapY,divider:t.rowDivider,center:t.rowCenter},totalRowMinHeight:t.totalRowMinHeight,gap:t.gap??0,totalMarginTop:t.totalMarginTop??0,tabular:t.tabular,term:{size:t.termSize,weight:e.type.weight.regular,lineHeight:r(t.termSize,t.termLineHeight),color:Vr(e,t.termColor)},value:{size:t.valueSize,weight:t.valueWeight,lineHeight:r(t.valueSize,t.valueLineHeight),color:Vr(e,t.valueColor)},totalTerm:{size:t.totalTermSize,weight:t.totalTermWeight,lineHeight:r(t.totalTermSize,t.termLineHeight),color:Vr(e,t.totalTermColor)},total:{size:t.totalSize,weight:t.totalWeight,lineHeight:r(t.totalSize,t.totalLineHeight),color:Vr(e,t.valueColor)},off:Nr(e,e.metrics.summary.off)}}function Gr(e,t){let r=e.metrics.skeleton.widths;return`${r[t%r.length]}%`}function Mr(e,t,r){return Math.max(t,r===void 0?e:Math.min(r,e))}function Kr(e,t,r){return r!==void 0?r:e===void 0?void 0:`${e}-${t}`}function Zr(e){return e.trim().split(/\s+/).filter(Boolean).slice(0,2).map(e=>Yr(e).toLocaleUpperCase()).join("")}function Yr(e){let t=Intl.Segmenter;if(t)for(let r of new t(void 0,{granularity:"grapheme"}).segment(e))return r.segment;return Array.from(e)[0]??""}function Jr(e,t,r="default"){let n=e.metrics.lists.avatar,i=typeof t=="number"?t:n.sizes[t],o=Nr(e,i<=n.sizes.xs?n.initialsXs:n.initials),l=t==="xl"?n.ringXl:n.ring;return{side:i,initials:o,tint:Vr(e,n.tints[r]),photoBg:Vr(e,n.bg),edge:{width:n.edge.width,color:Vr(e,n.edge.color)},ring:{width:l.width,offset:l.offset,color:Vr(e,l.color)},dot:{size:n.dot.size,edge:n.dot.edge,edgeColor:Vr(e,n.dot.edgeColor),color:e.colors.go}}}function Xr(e,t,r=false){let n=e.metrics.lists,i=t==="tiles",o=Nr(e,i?n.tiles.title:n.rows.title),l=Nr(e,i?n.tiles.subtitle:n.rows.subtitle),a=n.tiles.alert;return{row:i?n.tiles.row:n.rows.row,title:r?{...o,color:Vr(e,a.title)}:o,subtitle:r?{...l,color:Vr(e,a.subtitle)}:l,value:Nr(e,n.end.text),icon:{size:n.tiles.icon.w,column:n.tiles.leading,color:Vr(e,r?a.icon:n.tiles.icon.color)},chevron:{size:n.end.chevron.w,color:Vr(e,n.end.chevron.color)},fill:r&&i?Vr(e,a.bg):qr(e,i?n.tiles.row.bg:"none"),pressedFill:Vr(e,n.tiles.pressed),gap:n.tiles.row.gap[0]??0,endGap:n.end.gap,disabledOpacity:Pr}}var Qr=e=>e,_r=e=>"edge"in e&&"shadow"in e&&"fit"in e,$r=e=>"deco"in e&&"face"in e&&"tabular"in e;function en(e){let t=/* @__PURE__ */new Map;for(let[r,n]of Object.entries(e))t.has(n)||t.set(n,r);return t}var tn,rn=/* @__PURE__ */new WeakMap;function nn(e,t,r){let n=e.get(r),i=n===void 0?void 0:t[n];return typeof i=="number"?i:r}function on(e){let t=fr;return e.space===t.space&&e.radius===t.radius&&e.type.size===t.type.size&&e.type.weight===t.type.weight}function ln(e,t){let r=fr;tn??(tn={space:en(Qr(r.space)),radius:en(Qr(r.radius)),size:en(Qr(r.type.size)),weight:en(Qr(r.type.weight))});let n=tn,i=t=>nn(n.space,Qr(e.space),t),o=t=>nn(n.radius,Qr(e.radius),t),l=t=>Array.isArray(t)?t.map(l):t===null||typeof t!="object"?t:_r(t)?{...t,padding:t.padding.map(i),gap:t.gap.map(i),marginTop:i(t.marginTop),marginBottom:i(t.marginBottom),radius:t.radius.map(o)}:$r(t)?{...t,size:nn(n.size,Qr(e.type.size),t.size),weight:nn(n.weight,Qr(e.type.weight),t.weight),marginTop:i(t.marginTop),paddingTop:i(t.paddingTop)}:Object.fromEntries(Object.entries(t).map(([e,t])=>[e,l(t)]));return l(t)}function an(e,t){if(on(e))return t;let r=rn.get(t);r||rn.set(t,r=/* @__PURE__ */new WeakMap);let n=r.get(e);if(n)return n;let i=ln(e,t);return r.set(e,i),i}var sn={display:"heading",headline:"heading",title:"heading",heading:"heading",body:"content",lead:"content",label:"control",meta:"compact",caption:"content",overline:"compact",kicker:"compact"};function dn(e,t){let r=e.colors;switch(t){case"ink":return r.ink;case"text":return r.text;case"muted":return r.muted;case"danger":return r.alertDeep;case"inverse":return r.onInk;default:return}}function cn(e,t,r,n){let i=Nr(e,e.metrics.text[t]),o=dn(e,r);return{...i,...o?{color:o}:{},...n?{weight:e.type.weight[n]}:{}}}var un=/* @__PURE__ */(()=>{let t=/* @__PURE__ */Symbol.for("@everfur-health/ui-core#PressFeedbackContext@v1"),r=globalThis,n=r[t]??(r[t]=e.createContext(null));return n.displayName??(n.displayName="EverfurPressFeedbackContext"),n})();function pn(){return e.useContext(un)}function hn(e,t,r,n={}){if(!e||n.disabled)return{onPress:r,onPressIn:void 0};let{onPressIn:i,onPress:o,haptic:l}=e,a=n.haptics!==false&&t.haptic&&l?l:void 0;return{onPress:r&&(o||a)?()=>{a?.(t),o?.(t),r()}:r,onPressIn:i?()=>i(t):void 0}}function gn(e,t,r=1){return e?.pressScale?.[t]??r}var fn={display:"balance",headline:"balance",title:"balance",heading:"balance",body:"pretty",lead:"pretty",meta:"pretty",caption:"pretty",label:"auto",overline:"auto",kicker:"auto"};function mn(e,t){return e.type.variantTiers?.[t]??sn[t]}var bn=/* @__PURE__ */(()=>{let t=/* @__PURE__ */Symbol.for("@everfur-health/ui-native#ReducedMotionContext@v1"),r=globalThis,n=r[t]??(r[t]=e.createContext(null));return n.displayName??(n.displayName="EverfurReducedMotionContext"),n})();function yn(){return e.useContext(bn)}function xn(e,r){let n=Ar(r.weight,r.mono===true);return{fontFamily:r.serif?e.type.faces.serif??e.type.faces.bold:e.type.faces[n],...e.type.namedFaces?{}:{fontWeight:String(r.weight)},fontSize:r.size,lineHeight:r.lineHeight,color:r.color,...r.tracking?{letterSpacing:r.tracking}:{},...r.upper?{textTransform:"uppercase"}:{},...r.deco?kn(r):{},...r.tabular?{fontVariant:["tabular-nums"]}:{},...r.wrap&&t.Platform.OS==="web"?{textWrap:r.wrap}:{}}}function kn(e){let r={textDecorationLine:e.deco==="strike"?"line-through":"underline"};return t.Platform.OS!=="web"?r:{...r,...e.decoOffset?{textUnderlineOffset:e.decoOffset}:{},...e.decoThickness?{textDecorationThickness:e.decoThickness}:{}}}function wn(e,t){let[r=0,n=0,i=0,o=0]=t.padding,[l=0,a=0]=t.radius,s=qr(e,t.bg);return{paddingTop:r,paddingRight:n,paddingBottom:i,paddingLeft:o,...t.marginTop?{marginTop:t.marginTop}:{},...t.gap[0]?{columnGap:t.gap[0]}:{},...t.gap[1]?{rowGap:t.gap[1]}:{},...l===a?l?{borderRadius:l}:{}:{borderTopLeftRadius:l,borderTopRightRadius:l,borderBottomLeftRadius:a,borderBottomRightRadius:a},...s?{backgroundColor:s}:{},...t.edge.width>0&&!t.edge.ring?{borderWidth:t.edge.width,borderColor:Vr(e,t.edge.color)}:{},...t.minHeight?{minHeight:t.minHeight}:{},...In(t.shadow)}}function vn(e,t){return t.edge.width>0&&t.edge.ring?Ln(t.edge.width,Vr(e,t.edge.color),t.radius[0]??0):null}function Tn(){if(t.Platform.OS!=="web")return false;let e=globalThis;return typeof e.matchMedia=="function"&&e.matchMedia("(prefers-reduced-motion: reduce)").matches}function Sn(r){let[n,i]=e.useState(()=>r===null&&Tn());return e.useEffect(()=>{if(r!==null)return;let e=true,n=t.AccessibilityInfo?.isReduceMotionEnabled;if(typeof n=="function"){let r=n.call(t.AccessibilityInfo);r!=null&&typeof r.then=="function"&&r.then(t=>{e&&i(t===true)},()=>{})}let o=t.AccessibilityInfo?.addEventListener?.("reduceMotionChanged",e=>i(e===true));return()=>{e=false,o?.remove?.()}},[r]),r??n}function jn(e){let t=Sn(yn());return e.motion.reduced||t}function Cn(e){let t=Math.max(0,Math.ceil((44-e)/2));return t===0?void 0:{top:t,bottom:t,left:t,right:t}}function In(e){return e.blur===0&&e.y===0&&e.x===0?null:{shadowColor:e.color,shadowOffset:{width:e.x,height:e.y},shadowOpacity:1,shadowRadius:e.blur,elevation:1}}function Ln(e,r,n){let i={position:"absolute",top:0,right:0,bottom:0,left:0,borderRadius:n};return t.Platform.OS==="web"?{...i,boxShadow:`inset 0 0 0 ${e}px ${r}`}:{...i,borderWidth:e,borderColor:r}}function zn(e){return Math.round(e*100)/100}function An(e,t){let r=Number(t.weight),n=t.letterSpacing??0;return{...xn(e,{size:t.size,weight:r,lineHeight:zn(t.size*t.lineHeight),color:e.colors.text,tracking:n?zn(t.size*n):0,mono:t.face==="mono",upper:t.uppercase===true}),flexShrink:1}}function Rn(e){return e==="auto"?null:t.Platform.OS==="ios"?{lineBreakStrategyIOS:"push-out"}:t.Platform.OS==="android"&&e==="balance"?{textBreakStrategy:"balanced"}:null}function Wn(e,t){let r=e.type.weight[t];return e.type.namedFaces?{fontFamily:e.type.faces[Ar(r)]}:{fontWeight:String(r)}}function Text2({tier:r,variant:n,tone:i,weight:o,level:l,lineBreak:a,typeRole:s,...d}){let c=Lr();if(s){let n=c.type.scaleCaps[r??s.tier??"content"],i=a?Rn(a):null;return e.createElement(t.Text,{...n>0?{maxFontSizeMultiplier:n}:{},...i,...d,style:[An(c,s),d.style]})}let u=c.type.scaleCaps[r??(n?mn(c,n):"content")],p=Rn(a??(n?fn[n]:"auto"));if(n===void 0&&i===void 0&&o===void 0&&l===void 0)return p?e.createElement(t.Text,{...u>0?{maxFontSizeMultiplier:u}:{},...p,...d}):e.createElement(t.Text,u>0?{maxFontSizeMultiplier:u,...d}:d);let h=dn(c,i),g=n?xn(c,cn(c,n,i,o)):{...h?{color:h}:{},...o?Wn(c,o):{}},f=l===void 0?{}:{accessibilityRole:"header",...t.Platform.OS==="web"?{"aria-level":l}:{}};return e.createElement(t.Text,{...u>0?{maxFontSizeMultiplier:u}:{},...p,...f,...d,style:[g,d.style]})}var Fn=24,Vn=16,Hn=.8,Pn=e=>Math.round(e*Vn);function On(e,t,r,n,i,o){let l=e-r/2,a=t-n/2,s=Math.round(l),d=Math.round(a);return{position:"absolute",left:s,top:d,width:r,height:n,transform:[{translateX:l-s},{translateY:a-d},{rotate:`${Math.atan2(o,i)*180/Math.PI}deg`},{scale:1/Vn}]}}function Bn(e,t,r){for(let n of e.strokes){let e=n.width*t,i=n.points,o=i.length/2,l=n.closed?o:o-1;for(let a=0;a<l;a+=1){let l=(a+1)%o,s=(i[a*2]??0)*t,d=(i[a*2+1]??0)*t,c=(i[l*2]??0)*t-s,u=(i[l*2+1]??0)*t-d,p=Math.hypot(c,u);if(p===0&&!(o===2&&n.cap))continue;let h=p===0?1:c/p,g=p===0?0:u/p,f=n.closed||a>0||n.cap?e/2:0,m=n.closed||l!==o-1||n.cap?e/2:0,b=(p+m-f)/2;r.push({paint:"backgroundColor",style:{...On(s+h*b,d+g*b,Pn(p+f+m),Pn(e),h,g),borderTopLeftRadius:f>0?Pn(e)/2:0,borderBottomLeftRadius:f>0?Pn(e)/2:0,borderTopRightRadius:m>0?Pn(e)/2:0,borderBottomRightRadius:m>0?Pn(e)/2:0,...n.opacity===void 0?{}:{opacity:n.opacity}}})}}}function En(e,t,r){for(let n of e.boxes){let e=(n.w+n.width)*t,i=(n.h+n.width)*t;r.push({paint:"borderColor",style:{...On((n.x-n.width/2)*t+e/2,(n.y-n.width/2)*t+i/2,Pn(e),Pn(i),1,0),borderWidth:Pn(n.width*t),borderRadius:(n.radius+n.width/2)*t*Vn,...n.opacity===void 0?{}:{opacity:n.opacity}}})}}function Dn(e,t,r){for(let n of e.triangles){let e=[0,1,2].map(e=>[(n[e*2]??0)*t,(n[e*2+1]??0)*t]),i=0,o=-1;for(let t=0;t<3;t+=1){let r=e[t]??[0,0],n=e[(t+1)%3]??[0,0],l=Math.hypot(n[0]-r[0],n[1]-r[1]);l>o&&(o=l,i=t)}if(o<=0)continue;let l=e[i]??[0,0],a=e[(i+1)%3]??[0,0],s=e[(i+2)%3]??[0,0],d=(a[0]-l[0])/o,c=(a[1]-l[1])/o,u=(s[0]-l[0])*d+(s[1]-l[1])*c,p=(s[0]-l[0])*-c+(s[1]-l[1])*d,h=Math.abs(p),g=p<0,f=g?-h/2:h/2,m=Pn(u),b=Pn(o)-m,y=Pn(h);r.push({paint:g?"borderBottomColor":"borderTopColor",style:{...On(l[0]+d*(o/2)-c*f,l[1]+c*(o/2)+d*f,m+b,y,d,c),width:0,height:0,borderLeftWidth:m,borderRightWidth:b,borderLeftColor:"transparent",borderRightColor:"transparent",...g?{borderBottomWidth:y}:{borderTopWidth:y}}})}for(let n of e.seams){let e=(n[0]??0)*t,i=(n[1]??0)*t,o=(n[2]??0)*t-e,l=(n[3]??0)*t-i,a=Math.hypot(o,l),s=Hn*(n[4]??0),d=Hn*(n[5]??0),c=a-s-d;if(a===0||c<=0)continue;let u=s+c/2;r.push({paint:"backgroundColor",style:On(e+o/a*u,i+l/a*u,Pn(c),Pn(Hn),o/a,l/a)})}}var Nn=/* @__PURE__ */new WeakMap;function qn(e,t){let r=Nn.get(e);r===void 0&&(r=/* @__PURE__ */new Map,Nn.set(e,r));let n=r.get(t);if(n!==void 0)return n;let i=[],o=t/Fn;return En(e,o,i),Bn(e,o,i),Dn(e,o,i),r.set(t,i),i}function Glyph({icon:e,size:n,color:i,label:o,testID:l,style:a}){let s=Lr(),d=n??s.metrics.icon.size,c=i??s.colors.ink;/* @__PURE__ */
|
|
5
|
-
return r.jsx(t.View,{testID:l,pointerEvents:"none",style:[{width:d,height:d},a],...o?{accessible:true,accessibilityRole:"image",accessibilityLabel:o}:{accessible:false,accessibilityElementsHidden:true,importantForAccessibility:"no-hide-descendants"},children:
|
|
6
|
-
return r.jsxs(t.View,{testID:i,...a?{accessible:true,accessibilityLabel:e}:null,style:[
|
|
7
|
-
/* @__PURE__ */r.jsx(Text2,{tier:"control",numberOfLines:1,...l===void 0?{}:{maxFontSizeMultiplier:l},style:[
|
|
8
|
-
return r.jsxs(t.View,{testID:g,style:[
|
|
9
|
-
/* @__PURE__ */r.jsx(Text2,{tier:"control",accessible:true,accessibilityRole:"adjustable",accessibilityLabel:l,accessibilityValue:{now:n,min:i,...o!==void 0?{max:o}:{},text:String(n)},"aria-valuenow":n,"aria-valuemin":i,"aria-valuemax":o,accessibilityState:{disabled:d},"aria-disabled":d||void 0,accessibilityActions:[{name:"increment"},{name:"decrement"}],onAccessibilityAction:e=>{e.nativeEvent.actionName==="increment"&&!S&&u(
|
|
10
|
-
/* @__PURE__ */r.jsx(Glyph,{icon:
|
|
11
|
-
/* @__PURE__ */r.jsx(Text2,{tier:"compact",style:
|
|
12
|
-
return r.jsxs(t.View,{testID:s,style:[
|
|
13
|
-
/* @__PURE__ */r.jsxs(t.View,{style:
|
|
14
|
-
/* @__PURE__ */r.jsx(Text2,{accessibilityRole:"header",tier:"heading",style:
|
|
15
|
-
return r.jsxs(t.View,{testID:s,style:[
|
|
16
|
-
/* @__PURE__ */r.jsxs(t.View,{style:
|
|
17
|
-
/* @__PURE__ */r.jsx(Text2,{accessibilityRole:"header",style:
|
|
18
|
-
return r.jsx(t.View,{testID:o,onLayout:p?e=>g(Math.round(e.nativeEvent.layout.width)):void 0,style:[{width:n.width??"100%",height:n.height??c.block.height,borderRadius:n.radius??c.block.radius,borderCurve:"continuous",backgroundColor:i,overflow:"hidden"},l],...a,children:p&&h>0?/* @__PURE__ */r.jsx(t.Animated.View,{pointerEvents:"none",style:{position:"absolute",top:-6,bottom:-6,left:0,width:m,backgroundColor:u.band,transform:[{translateX:f.interpolate({inputRange:[0,1],outputRange:[-m,h+m]})},{skewX:`${u.skew}deg`}]}}):null})}function
|
|
2
|
+
"use strict";var e=require("react"),t=require("react-native"),r=require("react/jsx-runtime");function n(e){if(e&&e.__esModule)return e;var t=Object.create(null);if(e){Object.keys(e).forEach(function(r){if(r!=="default"){var n=Object.getOwnPropertyDescriptor(e,r);Object.defineProperty(t,r,n.get?n:{enumerable:true,get:function(){return e[r]}})}})}t.default=e;return Object.freeze(t)}var i=/*#__PURE__*/n(t);var o=class _EverfurConfigError extends Error{constructor(e,t){super(t),this.name="EverfurConfigError",this.kind=e,Object.setPrototypeOf(this,_EverfurConfigError.prototype)}};var l=/* @__PURE__ */Symbol.for("@everfur/sdk#EverfurContext@v1"),a=globalThis,s=a[l]??(a[l]=e.createContext(null));s.displayName??="EverfurContext";var d=/* @__PURE__ */new WeakMap,c=[];function u(e){let t=d.get(e);return t||(t={items:c,flash:null,storage:null,binding:null,lastKey:null,listeners:/* @__PURE__ */new Set},d.set(e,t)),t}function p(e,t){let r=u(e);if(r.items=t,r.storage)try{r.storage.write(JSON.stringify(t))}catch{}for(let e of[...r.listeners])e()}function h(e){return Math.max(1,Math.min(5,Math.round(e)))}function g(e){return`${e.offerId}|${e.petId??""}|${e.rxId??""}`}var f=e=>typeof e=="string"&&e!=="";function m(e){return typeof e=="string"&&/^https:\/\/[^\s]+$/i.test(e)?e:null}function b(e){if(!e)return c;let t;try{t=JSON.parse(e)}catch{return c}if(!Array.isArray(t))return c;let r=[];for(let e of t){if(!e||typeof e!="object")continue;let t=e;if(!f(t.offerId)||typeof t.title!="string"||typeof t.quantity!="number"||!Number.isFinite(t.quantity))continue;let n=typeof t.unitPrice=="number"&&Number.isFinite(t.unitPrice)?t.unitPrice:null,i=f(t.petId)?t.petId:void 0,o=f(t.rxId)?t.rxId:void 0,l=m(t.imageUrl),a={offerId:t.offerId,...i?{petId:i}:{},...o?{rxId:o}:{}},s=g(a);r.some(e=>e.key===s)||r.push({...a,key:s,title:t.title,unitPrice:n,requiresRx:t.requiresRx===true,quantity:o?Math.max(1,Math.round(t.quantity)):h(t.quantity),...l?{imageUrl:l}:{}})}return r.length>0?r:c}function y(e,t){let r=new Map(t.map(e=>[e.key,e])),n=e.map(e=>r.get(e.key)??e);for(let r of t)e.some(e=>e.key===r.key)||n.push(r);return n.length>0?n:c}var NOOP=()=>{};function x(e,t,r){let n=u(e);if(!t||n.binding!==null)return NOOP;if(n.lastKey!==null&&n.lastKey!==r&&n.items.length>0){n.items=c;for(let e of[...n.listeners])e()}n.lastKey=r;let i={};n.binding={key:r,token:i};let o={read:()=>null,write:e=>{t.setItem(r,e).catch(()=>{})}},l=(t,r)=>{if(n.binding?.token!==i)return;n.storage=o;let l=b(t);l.length>0?p(e,y(l,n.items)):r&&n.items.length>0&&p(e,n.items)};try{t.getItem(r).then(e=>l(e,!0),()=>l(null,!1))}catch{l(null,false)}return()=>{n.binding?.token===i&&(n.binding=null,n.storage=null)}}function k(e){return u(e).items}function w(e,t){let r=g(t),n=k(e),i=n.find(e=>e.key===r),o=t.rxId?Math.max(1,Math.round(t.quantity)):h((i?.quantity??0)+t.quantity),l={...t,key:r,quantity:o};return p(e,i?n.map(e=>e.key===r?l:e):[...n,l]),l}function v(e,t,r){let n=k(e);p(e,n.map(e=>e.key===t&&!e.rxId?{...e,quantity:h(r)}:e))}function S(e,t){let r=k(e),n=r.find(e=>e.key===t)??null;return n&&p(e,r.filter(e=>e.key!==t)),n}function j(e,t){let r=new Set(t),n=k(e);n.some(e=>r.has(e.key))&&p(e,n.filter(e=>!r.has(e.key)))}function C(e,t){u(e).flash=t}function I(e){let t=u(e),r=t.flash;return t.flash=null,r}function L(e){return e.map(e=>({offerId:e.offerId,quantity:e.quantity,...e.petId?{petId:e.petId}:{},...e.rxId?{rxId:e.rxId}:{}}))}function z(e){let t=0;for(let r of e){if(r.unitPrice===null)return null;t+=r.unitPrice*r.quantity}return t}function A(e){return e.reduce((e,t)=>e+t.quantity,0)}function R(t){let r=u(t);return e.useSyncExternalStore(e=>(r.listeners.add(e),()=>{r.listeners.delete(e)}),()=>r.items,()=>r.items)}var W={title:e=>`${e}’s orders`,onAuto:e=>`${e} on auto-refill`,nothingOnAuto:"Nothing on auto-refill",onTheWay:e=>e===0?"Nothing on the way":e===1?"1 package on the way":`${e} packages on the way`,today:"Today",hasLeft:(e,t,r)=>`${e} has ${t} ${r} left`,enoughUntil:e=>`Enough until ${e}`,boxArrives:"Her box arrives",rxArrives:e=>`Her ${e} arrives`,items:e=>e===1?"1 item":`${e} items`,units:(e,t)=>`${e} ${e===1?t:`${t}s`}`,shipsTomorrow:"Ships tomorrow",needsVetOk:e=>`Needs ${e}’s OK`,trackingDown:"Tracking isn’t loading. Pull down to try again.",wontRunOut:"She won’t run out",oldBottleEnds:e=>`Her old bottle ends today. The new one is due ${e}.`,runsOut:e=>`Her ${e} runs out`,orderToday:e=>`Order today, it arrives ${e}.`,refill:"Refill",inCart:"In cart",autoTitle:"On auto-refill",autoSub:"Timed to her supply",rxTag:"Rx",ships:"Ships",autoRefill:"Auto-refill",paused:"Paused",planMeta:(e,t,r)=>t===null?e:`${e} · ${t}${r?" when filled":""}`,everyDays:e=>e===1?"every day":`every ${e} days`,everyDaysAlone:e=>e===1?"Every day":`Every ${e} days`,everyMonthsAfter:e=>e===1?"every month":`every ${e} months`,everyMonths:e=>e===1?"Every month":`Every ${e} months`,amountEvery:(e,t)=>`${e}, ${t}`,vetOks:e=>`${e} OKs each refill`,leftOnRx:e=>`${e} left on her prescription`,offOnAuto:e=>`${e}% off on auto`,skipped:e=>`Skipped ${e}.`,undo:"Undo",skip:"Skip",change:"Change",pause:"Pause",resume:e=>e?`Resume · next ships ${e}`:"Resume",sheetTitle:"Manage auto-refill",skipTitle:e=>`Skip ${e}?`,changeTitle:"How often",pauseTitle:"Pause auto-refill?",sheetMeta:(e,t)=>t?`${e} · next ships ${t}`:e,skipSay:e=>`The next one ships a cycle later, ${e}.`,skipGo:e=>`Skip, next ships ${e}`,changeRxSay:e=>`${e} OKs a new amount before the next one ships.`,save:"Save",pauseRxSay:(e,t)=>`Nothing ships until you resume. ${e}’s prescription stays on file, with its ${t===1?"1 refill":`${t} refills`}.`,pauseSay:"Nothing ships until you resume. Resume any time, here.",pauseGo:"Pause it",keep:"Keep it as it is",close:"Close",saveFailed:"That didn’t save. Try again.",saidSkipped:(e,t)=>`Skipped. ${e} next ships ${t}.`,saidSaved:(e,t)=>`Saved. ${e} from ${t}.`,saidPaused:"Paused. Nothing ships until you resume.",buyAgainTitle:"Buy again",buyAgainSub:"From her past orders",likelyOut:"Likely out by now",ordered:e=>`Ordered ${e}`,addOne:e=>`Add ${e}`,oneLess:e=>`One less ${e}`,everythingElse:e=>`Everything else for ${e}`,pastTitle:"Past orders",pastSub:"Last 3 months",delivered:"Delivered",everfurBox:"Everfur box",addAll:e=>e===2?"Add both to cart":`Add all ${e} to cart`,inTheCart:"In the cart",receipt:"Receipt",help:"Help with an order",legal:"Prescription refills need the prescribing vet’s OK each time, and are charged once filled.",itemCount:e=>e===1?"1 item":`${e} items`,shipsFree:e=>`${e} · ships free`,freeOver:(e,t)=>`${e} · free shipping over ${t}`,todayPlusRx:e=>`today, + ${e} Rx when filled`,whenFilled:e=>e?`when it’s filled, ${e} off`:"when it’s filled",checkout:"Checkout"};function shopOrdersV2Copy(e){return e?{...W,...e}:W}function F(e){/* @__PURE__ */
|
|
3
|
+
return Object.freeze({ok:true,value:e})}function V(e){/* @__PURE__ */
|
|
4
|
+
return Object.freeze({ok:false,error:/* @__PURE__ */Object.freeze(e)})}function isOmsRefusal(e,t){return e.kind==="refused"&&(t===void 0||e.reasonCode===t)}function isOmsUnavailable(e){return e.kind==="unavailable"}function isOmsRetryable(e){return e.kind==="network"||e.kind==="timeout"||e.kind==="serviceUnavailable"||e.kind==="refused"&&e.reasonCode==="order_state_conflict"}var H=/^[a-z][a-z0-9_]{0,63}$/,P=300;function O(e){if(typeof e!="string")return null;let t=e.replace(/[\u0000-\u001f\u007f]+/g," ").trim();return t.length===0||t.length>P?null:t}function B(e){if(!e)return null;let t=Number(e);return Number.isFinite(t)&&t>=0?Math.min(Math.round(t),3600):null}function D(e,t,r){let n=r.requestId,i=n?{requestId:n}:{};if(e===404)return{kind:"unavailable",...i};if(e===401)return{kind:"signedOut"};if(e===402||e===409||e===422){let r=t&&typeof t=="object"?t:{},n=typeof r.reason_code=="string"&&H.test(r.reason_code)?r.reason_code:null;return{kind:"refused",status:e,reasonCode:n,message:O(r.message),...i}}return e===400?{kind:"invalidRequest",...i}:e===429?{kind:"rateLimited",retryAfterSeconds:B(r.retryAfter??null),...i}:e===503?{kind:"serviceUnavailable",...i}:e===403?{kind:"unavailable",...i}:{kind:"serverError",status:e,...i}}function newIdempotencyKey(){let e=globalThis.crypto;if(e&&typeof e.randomUUID=="function")return e.randomUUID();if(e&&typeof e.getRandomValues=="function"){let t=e.getRandomValues(new Uint8Array(16));t[6]=t[6]&15|64,t[8]=t[8]&63|128;let r=Array.from(t,e=>e.toString(16).padStart(2,"0")).join("");return`${r.slice(0,8)}-${r.slice(8,12)}-${r.slice(12,16)}-${r.slice(16,20)}-${r.slice(20)}`}throw new o("missing-peer-dependency","No secure random source: cannot make an idempotency key")}var E=3,N=["client_name_missing"];function q(e){return!!e&&e.kind==="refused"&&!!e.reasonCode&&N.includes(e.reasonCode)}var U=class{constructor(e=newIdempotencyKey){this.make=e;this.keys=/* @__PURE__ */new Map}key(e){let t=this.keys.get(e);return t||(t=this.make(),this.keys.set(e,t)),t}next(e){let t=this.make();return this.keys.set(e,t),t}};async function G(e,t,r,n={reconfirm:true}){let i=t.key("confirm"),o=[];for(let l=0;l<E;l+=1){let a=await e(i);if(!a.ok)return{kind:"failed",error:a.error};o=a.value.resale.map(e=>e.orderId);let s=a.value.resale.filter(e=>e.outcome==="action_required"&&e.payerAction);if(s.length===0)return{kind:"confirmed",orderIds:o};if(!r)return{kind:"needsPayerAction",orderIds:o};if(l===0&&n.beforePayerAction)try{n.beforePayerAction(o)}catch{}for(let e of s){let t=await r.handleNextAction(e.payerAction,{orderId:e.orderId});if(!t.ok)return t.closed?{kind:"payerActionClosed",orderIds:o}:{kind:"payerActionFailed",orderIds:o,message:t.message}}if(!n.reconfirm)return{kind:"confirmed",orderIds:o};i=t.next("confirm")}return{kind:"needsPayerAction",orderIds:o}}var M=/* @__PURE__ */Object.freeze({load:()=>Promise.resolve(V({kind:"unavailable"})),removeLine:()=>Promise.resolve(V({kind:"unavailable"})),skip:()=>Promise.resolve(V({kind:"unavailable"})),approve:()=>Promise.resolve({kind:"failed",error:{kind:"unavailable"}})});async function Z(e,t){let r=[...new Set(t)],n=await Promise.all(r.map(t=>e.offer(t)));return new Map(r.map((e,t)=>[e,n[t].ok?n[t].value:null]))}function createOmsPackageSource(e){async function t(t,r){let n=await Z(e,r.lines.map(e=>e.offerId)),i=r.lines.map(e=>({...e,offer:n.get(e.offerId)??null})),o=null;if(r.state==="open"&&i.length>0){let n=await e.draftCycle(t.planId,r.cycle);if(n.ok)o=n.value;else if(n.error.kind!=="refused")return V(n.error)}return F({plan:t,review:r,lines:i,draft:o})}return{async load(){let r=await e.plans();if(!r.ok)return V(r.error);let n=r.value.plans.find(e=>e.state==="active")??r.value.plans.find(e=>e.state!=="cancelled");if(!n)return F(null);let i=await e.cycleReview(n.planId);return i.ok?t(n,i.value):V(i.error)},async removeLine(r,n,i){let o=r.lines.filter((e,t)=>t!==n).map(e=>({offerId:e.offerId,quantity:e.quantity,...e.petId?{petId:e.petId}:{}})),l=await e.editCycle(r.plan.planId,r.review.cycle,{idempotencyKey:i.key(`remove:${n}`),lines:o});return l.ok?t(r.plan,l.value):V(l.error)},async skip(t,r){let n=await e.skipCycle(t.plan.planId,t.review.cycle,{idempotencyKey:r.key("skip")});return n.ok?F(void 0):V(n.error)},approve(t,r,n){let i=t.draft;return i?G(r=>e.approveCycle(t.plan.planId,t.review.cycle,{idempotencyKey:r,checkoutId:i.checkoutId,expectedTotal:i.total}),r,n,{reconfirm:false}):Promise.resolve({kind:"failed",error:{kind:"invalidRequest"}})}}}function Y(e){let t=e<0?"-":"",r=Math.abs(Math.round(e));return`${t}$${Math.floor(r/100).toLocaleString("en-US")}.${String(r%100).padStart(2,"0")}`}function J(e){return`[copy:shop.${e}]`}var X=["January","February","March","April","May","June","July","August","September","October","November","December"];function Q(e){return`${e}’s`}function _(e){return e.length<=1?e[0]??"":`${e.slice(0,-1).join(", ")} and ${e[e.length-1]}`}function $(e){if(!e)return null;let t=new Date(/^\d{4}-\d{2}-\d{2}$/.test(e)?`${e}T00:00:00Z`:e);return Number.isNaN(t.getTime())?null:t}function ee(e,t={}){let r=$(e);if(!r)return null;if(t.when&&r.getUTCFullYear()!==(t.now??/* @__PURE__ */new Date).getUTCFullYear())return r.toLocaleDateString("en-US",{timeZone:"UTC",month:"short",day:"numeric",year:"numeric"});let n=t.weekday===true||t.when===true;return r.toLocaleDateString("en-US",{timeZone:"UTC",...n?{weekday:"short"}:{},month:"short",day:"numeric"})}function formatWhen(e){let t=$(e);if(!t)return null;let r=t.toLocaleDateString("en-US",{weekday:"short",month:"short",day:"numeric"}),n=t.toLocaleTimeString("en-US",{hour:"numeric",minute:"2-digit"});return`${r} · ${n}`}function te(e){let t=$(e);return t?X[t.getUTCMonth()]:null}function re(e,t){return`${e?e.charAt(0).toUpperCase()+e.slice(1):""} ending ${t}`}var ne="We can’t send this prescription to the pharmacy yet. Contact us.",ie=["prescription_missing","prescription_reference_missing","prescription_unreadable","prescriptions_disagree","first_fill_mixed_with_refill","duplicate_prescription_line","prescription_in_flight","client_email_missing","client_phone_missing","client_phone_not_us","practice_email_missing","practice_phone_missing","practice_phone_not_us","patient_birth_date_missing","patient_weight_missing","weight_below_partner_unit","species_not_supported","sex_not_supported","refills_over_partner_limit","indications_missing","indication_not_mapped","compounding_missing","compounding_reason_not_mapped","compounding_unexplained","delivery_speed_unavailable","address_missing","address_not_deliverable"],oe={tabsLabel:"Care",tabPackage:"Package",tabShop:"Shop",tabOrders:"Orders",tabPlan:"Plan",legal:"Prescription items need a valid prescription from a licensed vet, and are filled by a licensed partner pharmacy.",legalTracking:"Prescription items are filled by a licensed partner pharmacy.",loadFailed:e=>`We couldn’t load ${e}. Check your connection and try again.`,tryAgain:"Try again",actionFailed:"That didn’t go through. Try again.",saving:"Saving…",keepIt:"Keep it",close:"Close",thingPackage:J("thing.package"),thingShop:J("thing.shop"),thingProduct:J("thing.product"),thingPlan:J("thing.plan"),thingOrders:"your orders",thingOrder:"this order",packageTitle:e=>`${e} package`,packageSub:(e,t,r)=>{let n=[];return e.length>0&&n.push(`For ${_(e)}.`),t&&r&&n.push(`Approve by ${t} and it arrives ${r}.`),n.length?n.join(" "):null},inThisPackage:"In this package",reviewBy:e=>`Review by ${e}`,forPet:e=>`For ${e}`,details:"Details",remove:"Remove",removed:"Removed.",total:"Total",items:"Items",shipping:"Shipping",tax:"Tax",free:"Free",approveAndShip:"Approve and ship",itemCount:e=>e===1?J("package.item_count_one"):`${e} items`,withTotal:(e,t)=>`${e} · ${t}`,approveRegion:"Approve",packageDetailsRegion:"Package details",deliveryPaymentRegion:"Delivery and payment",questionsRegion:"Questions",approving:"Approving…",skipThisMonth:"Skip this month",chargedWhenShips:e=>`Charged to ${e} when it ships.`,rxCheckedFirst:"Prescriptions are checked with the vet who wrote them first.",delivery:"Delivery",arrives:e=>`Arrives ${e}`,change:"Change",outOfStock:"Out of stock",packageOutOfStock:"Out of stock right now, so it won’t ship this month.",packageEmpty:e=>`Nothing in ${Q(e)} package yet. Add something from the shop, or skip this month.`,itemNoLongerSold:J("package.item_no_longer_sold"),reviewClosed:J("package.review_closed"),approvalInProgress:J("package.approval_in_progress"),priceChanged:J("package.price_changed"),cardStepFailed:J("package.card_step_failed"),cardStepClosed:J("package.card_step_closed"),noCardOnFile:J("package.no_card_on_file"),shopTitle:"Shop",searchLabel:"Search the shop",searchPlaceholder:"Search the shop…",filtersLabel:"Filter",filterAll:"All",refillSoon:"Refill soon",prescribedFor:e=>`Prescribed for ${_(e)}`,inMonthsPackage:e=>`In ${Q(e)} package →`,forPets:e=>`For ${_(e)}`,allProducts:J("shop.all_products_title"),rx:"Rx",hasPrescription:e=>`${e} has a prescription`,needsPrescription:"Needs a prescription",noMatches:e=>`Nothing in the shop matches ‘${e}’.`,nothingHereYet:"Nothing here yet.",photoToCome:"Photo to come",backToShop:"Shop",howOften:"How often",everyMonthIn:e=>`Every month, in ${Q(e)} package`,skipOrStop:"Skip or stop any month",justOnce:"Just once",shipsWith:e=>`Ships with ${Q(e)} package`,justOnceShipsNow:J("product.just_once_meta"),oneFewer:"One fewer",oneMore:"One more",quantity:"Quantity",addToPackage:e=>`Add to ${Q(e)} package`,refillInPackage:e=>`Refill in ${Q(e)} package`,buyNow:J("product.buy_now"),startPlan:J("product.start_plan"),adding:"Adding…",outOfStockNow:"Out of stock right now.",prescription:"Prescription",noPrescriptionFor:e=>`No prescription for ${e} on file.`,bookVideoVisit:"Book a video visit",refillsLeft:e=>`${e} ${e===1?"refill":"refills"} left`,rxBeingPrepared:"This prescription is being prepared. You can order it soon.",rxTooSoon:J("rx.too_soon"),rxRenew:J("rx.needs_renewal"),rxPick:J("rx.pick_pet"),educational:"Educational, not a diagnosis.",planTitle:"Your plan",whatRepeats:"What repeats",repeatsLabel:e=>`${e} repeats`,cadenceMonths:e=>e===1?"Every month":`Every ${e} months`,cadenceDays:J("plan.cadence_days"),repeatsEmpty:"Nothing repeats yet. Pick Every month when you add something, and it shows up here.",nextPackage:"Next package",reviewByLabel:"Review by",ships:"Ships",reviewMonthsPackage:e=>`Review ${Q(e)} package →`,deliveryAndPayment:"Delivery and payment",shipTo:"Ship to",payWith:"Pay with",needABreak:"Need a break?",skipMonth:e=>`Skip ${e}`,skipMonthAsk:e=>`Skip ${e}?`,skipMonthBody:"Nothing ships this month.",pausePlan:"Pause the plan",pausePlanAsk:"Pause the plan?",pausePlanBody:"Nothing ships until you turn it back on.",declined:e=>e?`Declined. Update your card so ${Q(e)} package can ship.`:"Declined.",resumePlan:J("plan.resume"),stopReason:e=>J(`plan.stop_reason.${e}`),consentTitle:J("plan.consent_title"),consentBody:J("plan.consent_body"),consentTermsLink:J("plan.consent_terms_link"),consentAgree:J("plan.consent_agree"),ordersTitle:"Orders",ordersSub:e=>`Packages and one-off orders for ${_(e)}.`,allOrders:"All orders",placed:e=>`Placed ${e}`,ordersEmpty:"No orders yet. Your first package shows up here once you approve it.",paymentFailed:"Payment failed",backToCare:"Care",onItsWay:e=>`${e}, on its way`,shouldArrive:e=>`It should arrive ${e}.`,whereItStands:"Where it stands",stepApproved:"Approved",stepChecking:"Checking prescriptions…",stepFilled:"Filled by the pharmacy",stepShipped:"Shipped",stepDelivered:"Delivered",now:"Now",expected:e=>`Expected ${e}.`,inTheBox:"In the box",payment:"Payment",cancelOrder:J("order.cancel"),payOrder:J("order.pay"),trackPackage:J("order.track"),orderStatus:{pending_placement:"Confirmed, sending to the pharmacy",placement_unknown:"Confirmed",placed:"With the pharmacy, in review",accepted:"Approved by the pharmacist",release_sent:"Approved, being prepared",release_unknown:"Approved, being prepared",released:"Being prepared",shipped:"Shipped",delivered:"Delivered",needs_support:"We’re looking into this order",rejected:J("order.status.rejected"),cancelled:"Cancelled",pending_handoff:J("order.status.pending_handoff")},addressTitle:J("address.title"),addressLabel:J("address.label"),addressRecipient:J("address.recipient_name"),addressLine1:J("address.line1"),addressLine2:J("address.line2"),addressCity:J("address.city"),addressRegion:J("address.region"),addressPostal:J("address.postal_code"),addressSave:J("address.save"),addressNeeded:J("address.needed"),cardTitle:J("card.title"),cardBody:J("card.body"),cardStart:J("card.start"),cardUnavailable:J("card.unavailable"),confirmTitle:J("buy.confirm_title"),confirmPay:J("buy.confirm_pay"),nameMissing:J("checkout.name_missing"),addName:J("checkout.add_name"),firstName:J("checkout.first_name"),lastName:J("checkout.last_name"),saveName:J("checkout.save_name"),refusal:{operation_not_supported:"This action isn’t available for this order.",order_not_sellable:"We can’t ship this order as it is. Add items or contact us.",rx_being_prepared:"This prescription is being prepared. You can order it soon.",rx_not_dispensable:ne,...Object.fromEntries(ie.map(e=>[e,ne])),order_state_conflict:"This order changed. Refresh and try again.",payment_method_in_use:"A subscription or an order uses this card."},rateLimited:J("error.rate_limited")},le=(()=>{let e=/* @__PURE__ */new Set,t=r=>{if(typeof r=="string"){let t=/^\[copy:(shop\.[a-z0-9_.]+)\]$/.exec(r);t&&e.add(t[1])}else if(typeof r=="function")try{t(r("x","x","x"))}catch{}else if(r&&typeof r=="object")for(let e of Object.values(r))t(e)};return t(oe),[...e].sort()})();function shopCopy(e){return e?{...oe,...e}:oe}function ae(e,t){if(t.kind==="rateLimited")return e.rateLimited;if(t.kind==="refused"){if(q(t))return e.nameMissing;let r=t.reasonCode?e.refusal[t.reasonCode]:void 0;if(r)return r}return e.actionFailed}var se={cartTitle:"Cart",cartLabel:e=>e>0?`Cart, ${e} item${e>1?"s":""}`:"Cart, empty",cartEmptyTitle:"Your cart is empty",cartEmptyBody:null,addToCart:"Add to cart",viewCart:"View cart",addedToCart:e=>`${e} is in your cart.`,removedFromCart:e=>`${e} is out of your cart.`,quantityLabel:e=>`How many: ${e}`,fewer:"One fewer",more:"One more",remove:"Remove",subtotal:"Subtotal",shipping:"Shipping",tax:"Tax",free:"Free",total:"Total",checkoutCart:e=>`Checkout · ${e}`,checkoutKicker:"Checkout",itemQuantity:e=>`Qty ${e}`,shipsTo:"Ships to",payWith:"Pay with",placeOrder:e=>`Place order · ${e}`,chooseAddress:J("checkout.choose_address"),chooseCard:J("checkout.choose_card"),addAddress:J("checkout.add_address"),addCard:J("card.start"),makeDefault:J("address.make_default"),editAddress:J("address.edit"),noAddressYet:J("address.needed"),noCardYet:J("package.no_card_on_file"),placedHeader:"Order placed",placedTitle:"Order placed.",placedSteps:"What's coming",placedShips:"It ships.",placedArrives:"It arrives at home.",viewOrder:"View order",ordersTitle:"Orders",ordersEmptyTitle:"No orders yet",ordersEmptyBody:null,moreOrders:J("orders.more"),subscriptionBox:"Subscription box",orderTitle:e=>e===null?"Order":`Order ${e}`,arrivesBy:e=>`Arrives by ${e}`,deliveredOn:e=>`Delivered ${e}`,expected:e=>`Expected ${e}`,orderSteps:["Ordered","Shipped","Out for delivery","Delivered"],tracking:"Tracking",trackOn:e=>`Track on ${e}`,inThisOrder:"In this order",orderItemLine:e=>`Qty ${e}`,buyAgain:"Buy again",orderHelp:"Get help with this order",paidWith:"Paid with",refund:J("order.refund"),discount:J("order.discount"),cancelAsk:J("order.cancel_ask"),cancelBody:null,cancelRequested:J("order.cancel_requested"),close:"Close",manageKicker:"Your subscription",manageTitle:e=>`Manage ${e}`,manage:"Manage",shipsEvery:"Ships every",daysChip:e=>`${e} days`,skipNext:"Skip the next box",cancelSubscription:"Cancel subscription",nextBox:e=>`Next box ${e}`,everyDays:e=>`Every ${e} days`,subscribedLine:(e,t)=>t===null?`Every ${e} days`:`Every ${e} days · next box ${t}`,skipped:"Skipped.",cancelSubscriptionAsk:J("plan.cancel_ask"),cancelSubscriptionBody:J("plan.cancel_body")},de=Object.values(se).filter(e=>typeof e=="string"&&e.startsWith("[copy:"));function shopV3Copy(e){if(!e)return se;let t={};for(let[r,n]of Object.entries(e))r in se&&n!==void 0&&(t[r]=n);return{...se,...t}}var ce=e.createContext(null);function ShopProvider(t){let{client:r,pets:n,payments:i,packageSource:o,copy:l,v3Copy:a,saveProfileName:s,onProfileNameRequired:d,children:c}=t,u=e.useRef(s);u.current=s;let p=e.useRef(d);p.current=d;let h=!!s,g=!!d,f=e.useMemo(()=>{let e=n??[],t=new Map(e.map(e=>[e.petId,e.name]));return{client:r,pets:e,petName:e=>e?t.get(e)??null:null,payments:i??null,packageSource:o??createOmsPackageSource(r),copy:shopCopy(l),v3:shopV3Copy(a),saveProfileName:h?e=>u.current?u.current(e):Promise.resolve(false):null,onProfileNameRequired:g?()=>p.current?.():null}},[r,n,i,o,l,a,h,g]);return e.createElement(ce.Provider,{value:f},c)}function ue(){let t=e.useContext(ce);if(!t)throw new o("not-initialized","useShop: wrap the shop in <ShopProvider>");return t}function pe(t,r){let[n,i]=e.useState({key:null,phase:"loading",value:null,error:null}),o=e.useRef(0),l=e.useRef(null),a=e.useRef(r);a.current=r;let s=e.useCallback(e=>{let r=++o.current;if(t===null)return Promise.resolve();e||i({key:t,phase:"loading",value:null,error:null});let n=a.current().then(n=>{if(r!==o.current)return;if(n.ok){i({key:t,phase:"ready",value:n.value,error:null});return}let l={key:t,phase:n.error.kind==="unavailable"?"unavailable":"failed",value:null,error:n.error};e&&l.phase==="failed"?i(e=>e.key===t&&e.phase==="ready"?e:l):i(l)},()=>{});return l.current={epoch:r,done:n},n.then(()=>{l.current?.epoch===r&&(l.current=null)}),n},[t]);e.useEffect(()=>(s(false),()=>{o.current+=1}),[s]);let d=e.useCallback(()=>{s(false)},[s]),c=e.useCallback(()=>{let e=l.current;return e&&e.epoch===o.current?e.done:s(true)},[s]);return n.key!==t?{phase:"loading",value:null,error:null,refresh:d,reread:c}:{phase:n.phase,value:n.value,error:n.error,refresh:d,reread:c}}function he(){let{client:e}=ue();return pe("shop-config",()=>e.shopConfig())}function ge(e={}){let{client:t}=ue(),r=e.text?.trim()??"",n=`offers:${r}:${e.requiresRx??""}`;return pe(n,()=>t.offers({...r?{text:r}:{},...e.requiresRx!==void 0?{requiresRx:e.requiresRx}:{},limit:100}))}function fe(e){let{client:t}=ue();return pe(e?`offer:${e}`:null,()=>t.offer(e))}function me(){let{client:e}=ue();return pe("prescriptions",()=>e.prescriptions())}function be(){let{client:e}=ue();return pe("addresses",()=>e.addresses())}function ye(e){let{client:t}=ue();return pe(e?`address:${e}`:null,()=>t.address(e))}function xe(){let{client:e}=ue();return pe("payment-methods",()=>e.paymentMethods())}function ke(e){let{client:t}=ue();return pe(e?`order:${e}`:null,()=>t.order(e))}function we(){let{client:e}=ue();return pe("plans",()=>e.plans({limit:100}))}function ve(){let{packageSource:e}=ue();return pe("package",()=>e.load())}function Te(t){let[r,n]=e.useState(false),[i,o]=e.useState(null),l=e.useRef(null),a=e.useRef(false),s=e.useRef(t);s.current=t;let d=e.useRef(true);e.useEffect(()=>(d.current=true,()=>{d.current=false}),[]);let c=e.useCallback(async(...e)=>{if(a.current)return null;a.current=true,l.current??=new U,n(true),o(null);try{let t=await s.current(l.current,...e);return t.ok?l.current=null:Se(t.error)||(l.current=null),d.current&&o(t.ok?null:t.error),t}finally{a.current=false,d.current&&n(false)}},[]),u=e.useCallback(()=>{l.current=null,o(null)},[]);return{busy:r,error:i,run:c,reset:u}}function Se(e){return e.kind==="network"||e.kind==="timeout"||e.kind==="serviceUnavailable"||e.kind==="serverError"}function je(e){let t=[];for(let r of e)r!==null&&!t.includes(r)&&t.push(r);return t}var Ce=[[/\b(inject(ion|able)?|vial|syringe|pen)s?\b/i,"syringe"],[/\b(chew(able)?|soft ?chew|treat)s?\b/i,"bowl"],[/\b(shampoo|spray|ointment|cream|gel|lotion|topical|spot[- ]on|otic|ophthalmic|wipe|foam|mousse|collar)s?\b/i,"shield"],[/\b(solution|suspension|liquid|syrup|elixir|drops?|oral ?paste|paste)s?\b/i,"flask"],[/\b(tablet|caplet|capsule|tab|cap|pill)s?\b/i,"pill"]];function Ie(e,t){for(let r of[e,t]){if(!r)continue;let e=Ce.find(([e])=>e.test(r));if(e)return e[1]}return"pill"}function Le(e,t,r){return e?{tone:"pink",icon:Ie(t,r)}:{tone:"yellow",icon:"leaf"}}var ze=[[Ce[0][0],"injection"],[Ce[1][0],"chew"],[Ce[2][0],"topical"],[Ce[3][0],"liquid"],[/\b(capsule|cap)s?\b/i,"capsule"],[/\b(tablet|caplet|tab|pill)s?\b/i,"tablet"]];function Ae(e,t,r){if(!e)return null;for(let e of[t,r]){if(!e)continue;let t=ze.find(([t])=>t.test(e));if(t)return t[1]}return"unknown"}var Re={tablet:{tone:"pink",icon:"pill"},capsule:{tone:"sage",icon:"pill"},liquid:{tone:"base",icon:"flask"},injection:{tone:"base",icon:"syringe"},chew:{tone:"yellow",icon:"bowl"},topical:{tone:"sage",icon:"shield"},unknown:{tone:"pink",icon:"pill"}};function We(e){return e?Re[e]:{tone:"yellow",icon:"leaf"}}function Fe(e){return`${e.line2?`${e.line1}, ${e.line2}`:e.line1}, ${e.city}, ${e.region?`${e.region} `:""}${e.postalCode}`}function Ve(e){return{label:e.rx,tone:"rx"}}function He(e){return e.fillsTotal!==null&&e.fillsUsed!==null?Math.max(0,e.fillsTotal-Math.max(e.fillsUsed,1)):null}function Pe(e){let{pkg:t,copy:r,petName:n}=e,i=t.review,o=te(i.shipsOn),l=je(t.lines.map(e=>n(e.petId))),a=i.state==="open",s=new Map(i.quoteLines.map(e=>[`${e.offerId}:${e.petId??""}`,e])),d=t.lines.map((t,n)=>{let i=t.offer,o=s.get(`${t.offerId}:${t.petId??""}`),l=i?.requiresRx??false,d=[];return i||d.push({label:r.outOfStock,tone:"later"}),{petId:t.petId,view:{key:`${t.offerId}:${t.petId??""}:${n}`,name:i?.title??r.itemNoLongerSold,rx:l,meta:null,alert:i?null:r.packageOutOfStock,pills:d,price:o&&i?Y(o.unitPrice*o.quantity-o.discount):null,...Le(l,i?.title),details:i?{label:r.details,to:{name:"product",offerId:i.offerId,...t.petId?{petId:t.petId}:{}}}:null,remove:a?{label:r.remove,busy:e.removing===n,disabled:e.removing!==null,onPress:()=>e.onRemove(n)}:null}}}),c=[];for(let e of d){let t=n(e.petId),i=t?r.forPet(t):null,o=c.find(e=>e.label===i);o?o.items.push(e.view):c.push({label:i,items:[e.view]})}let u=[],p=t.draft;p?(u.push({k:r.items,v:Y(p.total-p.shipping-p.tax)}),u.push({k:r.shipping,v:p.shipping===0?r.free:Y(p.shipping)}),u.push({k:r.tax,v:Y(p.tax)}),u.push({k:r.total,v:Y(p.total)})):i.quoteLines.length>0&&u.push({k:r.items,v:Y(i.quoteLines.reduce((e,t)=>e+t.unitPrice*t.quantity-t.discount,0))});let h=e.card?re(e.card.brand,e.card.last4):null,g=t.lines.some(e=>e.offer?.requiresRx),f=h?[r.chargedWhenShips(h),g?r.rxCheckedFirst:null].filter(Boolean).join(" "):null,m=e.error;!m&&i.state==="approving"?m=r.approvalInProgress:!m&&i.state!=="open"&&i.state!==null?m=r.reviewClosed:!m&&a&&!e.card&&(m=r.noCardOnFile);let b=a&&p&&e.card?{label:r.approveAndShip,busyLabel:r.approving,busy:e.approving,disabled:e.approving||e.placed===true||e.removing!==null,onPress:e.onApprove}:null;return{title:o?r.packageTitle(o):r.tabPackage,sub:r.packageSub(l,ee(i.approveBy,{weekday:true}),null),reviewPill:i.approveBy&&a?r.reviewBy(ee(i.approveBy)):null,countPill:t.lines.length>0?r.itemCount(t.lines.length):null,fine:null,groups:t.lines.length>0?c:[],empty:t.lines.length===0?{line:o?r.packageEmpty(o):r.nothingHereYet,shop:{label:r.tabShop,to:{name:"shop"}},skip:null}:null,add:null,sum:u,approve:b,skip:a?{label:r.skipThisMonth,to:{name:"plan"}}:null,note:f,error:m,delivery:e.address?[{k:r.shipTo,v:Fe(e.address),change:{label:r.change,to:{name:"address",then:{name:"package"}}}}]:[],legal:r.legal}}function Oe(e,t){return t.filter(t=>t.status==="ready"&&t.offerId===e)}function Be(e,t,r,n,i=null){let o=[],l=null,a=i,s;return e.requiresRx&&(o.push(Ve(r)),s=Oe(e.offerId,t).find(e=>n(e.petId)),a=s?.petId??i,l=s?r.hasPrescription(n(s.petId)):r.needsPrescription),{key:e.offerId,to:{name:"product",offerId:e.offerId,...a?{petId:a}:{}},name:e.title,meta:l,price:e.price!==null?Y(e.price):null,pills:o,...Le(e.requiresRx,e.title,s?.form),form:Ae(e.requiresRx,e.title,s?.form),imageUrl:e.imageUrl??null}}function De(e){return e.fillsUsed===null||e.fillsUsed===0}function Ee(e){let{copy:t}=e,r=r=>Be(r,e.prescriptions,t,e.petName,e.petId??null),n=[],i=/* @__PURE__ */new Map;for(let t of[...e.offers,...e.prescribed??[]])i.set(t.offerId,t);let o=[],l=[],a=[];if(!e.searching){let t=e.prescriptions.filter(t=>t.status==="ready"&&t.offerId!==null&&e.petName(t.petId));for(let r of je(t.map(e=>e.offerId))){let n=i.get(r);if(!n||!n.requiresRx)continue;let s=t.filter(e=>e.offerId===r);if(s.every(De)){o.push(n);for(let t of s)a.includes(e.petName(t.petId))||a.push(e.petName(t.petId))}else l.push(n)}}o.length>0&&n.push({key:"prescribed",title:t.prescribedFor(a),link:null,tiles:o.map(r)}),l.length>0&&n.push({key:"refill",title:t.refillSoon,link:e.packageMonth?{label:t.inMonthsPackage(e.packageMonth),to:{name:"package"}}:null,tiles:l.map(r)});let s=new Set([...o,...l].map(e=>e.offerId));return n.push({key:"all",title:e.petNames.length>0?t.forPets(e.petNames):t.allProducts,link:null,tiles:e.offers.filter(e=>!s.has(e.offerId)).map(r)}),n}function Ne(e){let{copy:t,offer:r}=e,n=e.plansOn&&e.petName!==null,i=n?e.choice:"once",o=i==="monthly"?e.packageMonth?t.addToPackage(e.packageMonth):t.startPlan:t.buyNow,l=r.price!==null;return{back:{label:t.backToShop,to:{name:"shop"}},title:r.title,sub:null,price:l?Y(r.price):null,priceUnit:null,...Le(false),form:null,imageUrl:r.imageUrl??null,source:null,stockLine:l?null:t.outOfStockNow,choices:n?[{value:"monthly",title:t.everyMonthIn(e.petName),meta:t.skipOrStop},{value:"once",title:t.justOnce,meta:t.justOnceShipsNow}]:null,choice:n?i:null,onChoice:t=>e.onChoice(t==="once"?"once":"monthly"),quantity:e.quantity,onQuantity:t=>e.onQuantity(Math.min(99,Math.max(1,t))),submit:l?{label:o,busyLabel:t.adding,busy:e.busy,disabled:e.busy,onPress:e.onSubmit}:{label:t.outOfStock,disabled:true,onPress:()=>{}},error:e.error,facts:null,cards:[],aside:null,legal:t.legal}}function qe(e){let{copy:t,offer:r}=e,n=Oe(r.offerId,e.prescriptions).filter(t=>e.petName(t.petId)),i=(e.petId?n.find(t=>t.petId===e.petId):void 0)??n[0]??null,o=r.price!==null,l=null,a=null,s=i?.form??null;if(i){let r=He(i);l={name:t.hasPrescription(e.petName(i.petId)),meta:r!==null&&r>0?t.refillsLeft(r):null,directions:null},a=o?{label:e.packageMonth?t.refillInPackage(e.packageMonth):t.buyNow,busyLabel:t.adding,busy:e.busy,disabled:e.busy,onPress:()=>e.onSubmit(i)}:{label:t.outOfStock,disabled:true,onPress:()=>{}}}else{let n=e.prescriptions.filter(t=>t.offerId===r.offerId&&(t.status==="being_prepared"||t.status==="too_soon")&&e.petName(t.petId)),i=(e.petId?n.find(t=>t.petId===e.petId):void 0)??n[0]??null;if(i)l={name:t.hasPrescription(e.petName(i.petId)),meta:i.status==="being_prepared"?t.rxBeingPrepared:t.rxTooSoon,directions:null},a=null,s=i.form;else{let r=(e.petId?e.petName(e.petId):null)??e.firstPetName;l=r?{name:t.noPrescriptionFor(r),meta:null,directions:null}:null,a=e.bookVisitHref?{label:t.bookVideoVisit,href:e.bookVisitHref}:null}}return{back:{label:t.backToShop,to:{name:"shop"}},stepLabel:t.prescription,title:r.title,sub:null,price:o?Y(r.price):null,priceUnit:null,...Le(true,r.title,s),form:Ae(true,r.title,s),imageUrl:r.imageUrl??null,script:l,stockLine:o?null:t.outOfStockNow,submit:a,note:null,error:e.error,cards:[],aside:null,legal:t.legal}}function Ue(e,t){let r=Math.round(e/30.4);return r>=1&&Math.abs(e-r*30.4)<=2?t.cadenceMonths(r):t.cadenceDays}function Ge(e){let{copy:t}=e,r=e.plans.filter(e=>e.state!=="cancelled"),n=[];for(let i of r)i.lines.forEach((r,o)=>{let l=e.offers.get(r.offerId)??null,a=e.petName(r.petId),s=[l?.title??t.itemNoLongerSold,a].filter(Boolean).join(" · "),d=i.stopReason,c=d==="payment_declined"?t.declined(e.packageMonth):d&&d!=="customer"?t.stopReason(d):Ue(i.cadenceDays,t);n.push({key:`${i.planId}:${o}`,title:s,meta:c,alert:!!(d&&d!=="customer"),on:i.state==="active",busy:e.busyPlan===i.planId,onToggle:t=>e.onToggle(i,t),error:e.rowError&&e.rowError.planId===i.planId&&o===0?e.rowError.line:null})});let i=r.find(e=>e.state==="active")??null,o=[],l=ee(e.reviewBy,{weekday:true});l&&o.push({k:t.reviewByLabel,v:l});let a=ee(i?.nextRun??null,{weekday:true});a&&o.push({k:t.ships,v:a});let s=r.some(e=>e.stopReason==="payment_declined"),d=[];e.address&&d.push({k:t.shipTo,v:Fe(e.address),change:{label:t.change,to:{name:"address",then:{name:"plan"}}}}),e.card&&d.push({k:t.payWith,v:re(e.card.brand,e.card.last4),alert:s?t.declined(e.packageMonth):null,change:{label:t.change,to:{name:"card",then:{name:"plan"}}}});let c=e.packageMonth??te(i?.nextRun??null);return{sub:null,rows:n,emptyLine:n.length===0?t.repeatsEmpty:null,next:i&&o.length>0?{sum:o,link:e.packageMonth?{label:t.reviewMonthsPackage(e.packageMonth),to:{name:"package"}}:null}:null,delivery:d,breakCard:i?{skip:c?{label:t.skipMonth(c),ask:t.skipMonthAsk(c),body:t.skipMonthBody}:null,pause:{label:t.pausePlan,ask:t.pausePlanAsk,body:t.pausePlanBody},busy:e.breakBusy,error:e.breakError,onConfirm:e.onBreak}:null,legal:t.legal}}var Me={pending_placement:1,placement_unknown:1,placed:1,accepted:2,release_sent:2,release_unknown:2,released:2,shipped:3,delivered:5};var Ke=e.createContext(null),Ze=Ke.Provider;function Ye(){let t=e.useContext(Ke);if(!t)throw new o("not-initialized","shop screens render inside EverfurShop");return t}function Je(e){return e.phase==="ready"&&e.value?te(e.value.review.shipsOn):null}function Xe(e,t){return e.phase==="ready"&&e.value!==null?{phase:"ready",value:t(e.value)}:e.phase==="loading"?{phase:"loading"}:{phase:"failed",retry:e.refresh}}function Qe(e,t){return!e||e.length===0?null:(t?e.find(e=>e.paymentMethodId===t):void 0)??e[0]??null}function _e(e){let{client:t}=ue(),r=[...new Set(e)].sort();return pe(`offers-by-id:${r.join(",")}`,async()=>{let e=await Promise.all(r.map(e=>t.offer(e)));return F(new Map(r.map((t,r)=>[t,e[r].ok?e[r].value:null])))})}function $e(e,t){return t.kind==="confirmed"?null:t.kind==="needsPayerAction"?e.cardStepFailed:t.kind==="payerActionFailed"?t.message??e.cardStepFailed:t.kind==="payerActionClosed"?e.cardStepClosed:t.error.kind==="refused"&&t.error.reasonCode==="price_changed"?e.priceChanged:ae(e,t.error)}var et=/* @__PURE__ */new WeakMap;function tt(e,t,r){let n=et.get(e);n||(n=/* @__PURE__ */new Map,et.set(e,n)),r?n.set(t,r):n.delete(t)}function rt(e,t){return et.get(e)?.get(t)??null}function nt(e,t){et.get(e)?.delete(t)}var it="\0card";function ot(t){let{copy:r,petName:n,packageSource:i,payments:o,client:l}=ue(),{tabs:a,pkg:s}=Ye(),d=s.phase==="ready"?s.value?.plan??null:null,c=xe(),u=ye(d?.destination??null),[p,h]=e.useState(null),[g,f]=e.useState(null),[m,b]=e.useState(false),[y,x]=e.useState(false),k=Te((e,t,r)=>i.removeLine(t,r,e));if(s.phase==="ready"&&s.value===null)return{tabs:a,view:{phase:"failed",retry:s.refresh}};let w=Xe(s,e=>Pe({pkg:e,card:Qe(c.value,e.plan.paymentMethodId),address:u.value?.address??null,copy:r,petName:n,removing:p,approving:m,placed:y,error:g,onRemove:t=>{h(t),f(null),k.run(e,t).then(e=>{h(null),e&&e.ok?s.refresh():e&&f(ae(r,e.error))})},onApprove:()=>{m||y||(b(true),f(null),(async()=>{let n=await at(i,e,o);b(false);let a=$e(r,n),d=n.kind!=="failed"?n.orderIds[0]:void 0;d?(x(true),tt(l,d,a),t({name:"order",orderId:d})):(f(a),n.kind==="failed"&&n.error.kind==="refused"&&s.refresh())})())}}));return{tabs:a,view:w}}var lt=/* @__PURE__ */new WeakMap;async function at(e,t,r){let n=lt.get(t);n||(n=new U,lt.set(t,n));let i=await e.approve(t,n,r);return(i.kind!=="failed"||i.error.kind==="refused")&<.delete(t),i}function st(t,r){let[n,i]=e.useState(t);return e.useEffect(()=>{let e=setTimeout(()=>i(t),r);return()=>clearTimeout(e)},[t,r]),n}function dt(t){let{client:r,copy:n,petName:i,pets:o}=ue(),{tabs:l,pkg:a}=Ye(),[s,d]=e.useState(t??""),c=st(s,250),u=ge({text:c}),p=me(),h=p.value??[],g=o.map(e=>e.name),f=Je(a),m=h.filter(e=>e.status==="ready"&&e.offerId!==null&&i(e.petId)).map(e=>e.offerId),b=_e(m),y=u.phase==="ready"?u.value??null:null,[x,k]=e.useState(null),w=x&&y&&x.first===y?x:null,v=w?w.cursor:y?.nextCursor??null,S=e.useRef(false),j=e.useCallback(()=>{if(!y||!v||S.current)return;S.current=true,k(e=>({first:y,offers:e&&e.first===y?e.offers:[],cursor:v,loading:true,failed:false}));let e=c.trim();r.offers({...e?{text:e}:{},cursor:v,limit:100}).then(e=>{S.current=false,k(t=>!t||t.first!==y?t:e.ok?{first:y,offers:[...t.offers,...e.value.offers],cursor:e.value.nextCursor,loading:false,failed:false}:{...t,loading:false,failed:true})})},[r,y,v,c]),C,I=p.phase==="loading"||m.length>0&&b.phase==="loading";if(y&&!I){let e=/* @__PURE__ */new Set,t=[];for(let r of[...y.offers,...w?.offers??[]])e.has(r.offerId)||(e.add(r.offerId),t.push(r));C={phase:"ready",value:Ee({offers:t,prescribed:[...b.value?.values()??[]].filter(e=>e!==null),prescriptions:h,copy:n,petName:i,petNames:g,packageMonth:f,searching:c.trim()!=="",petId:o.length===1?o[0].petId:null})}}else u.phase==="loading"||I?C={phase:"loading"}:u.phase==="unavailable"?C={phase:"ready",value:[]}:C={phase:"failed",retry:u.refresh};let L=C.phase==="ready"?C.value.reduce((e,t)=>e+t.tiles.length,0):1,z=C.phase==="ready"&&L===0?c.trim()?n.noMatches(c.trim()):n.nothingHereYet:null,A=y&&v?{onMore:j,loading:w?.loading??false,failed:w?.failed??false}:null;return{tabs:l,view:{sub:null,query:s,onQuery:d,filters:[],shelves:C,empty:z,legal:n.legal,more:A}}}function ct(e,t,r,n){return{offerId:e.offerId,quantity:n?.packCount??t,...n?.petId??r?{petId:n?.petId??r}:{},...n?{rxId:n.rxId}:{}}}function ut(e,t){return{name:e,offerId:t.offerId,quantity:t.quantity,...t.petId?{petId:t.petId}:{},...t.rxId?{rxId:t.rxId}:{}}}function pt(t,r,n){let{copy:i,petName:o,pets:l,client:a}=ue(),{config:s,pkg:d,bookVisitHref:c}=Ye(),u=fe(t),p=me(),[h,g]=e.useState("monthly"),[f,m]=e.useState(1),[b,y]=e.useState(null),x=Je(d),k=we(),w=(d.phase==="ready"?d.value?.plan??null:null)??k.value?.plans.find(e=>e.state==="active")??null,v=Te((e,t,r)=>a.updatePlan(t.planId,{idempotencyKey:e.key("add"),lines:[...t.lines.map(e=>({offerId:e.offerId,quantity:e.quantity,...e.petId?{petId:e.petId}:{}})),r]})),S=(e,t)=>{if(y(null),!t)return n(ut("buy",e));if(!w)return n(ut("consent",e));v.run(w,e).then(e=>{e&&e.ok?(d.refresh(),n({name:"package"})):e&&y(ae(i,e.error))})};if(u.phase==="ready"&&u.value?.requiresRx){let e=u.value,t={offer:e,copy:i,petId:r??null,petName:o,firstPetName:l[0]?.name??null,packageMonth:x,error:b,bookVisitHref:c};return p.phase==="unavailable"?{kind:"rx",view:{phase:"ready",value:qe({...t,prescriptions:[],busy:false,onSubmit:()=>{}})}}:{kind:"rx",view:Xe(p,r=>qe({...t,prescriptions:r,busy:v.busy,onSubmit:t=>S(ct(e,1,null,t),w!==null)}))}}let j=(r?o(r):null)??l[0]?.name??null;return{kind:"product",view:Xe(u,e=>Ne({offer:e,copy:i,petName:j,packageMonth:x,plansOn:s.recurringTermsVersion!==null,choice:h,onChoice:g,quantity:f,onQuantity:m,busy:v.busy,error:b,onSubmit:()=>S(ct(e,f,r??l[0]?.petId??null,null),h==="monthly"&&s.recurringTermsVersion!==null&&j!==null)}))}}function ht(){let{copy:t,petName:r,client:n}=ue(),{tabs:i,pkg:o}=Ye(),l=we(),a=xe(),s=(l.value?.plans??[]).filter(e=>e.state!=="cancelled"),d=s.find(e=>e.state==="active")??s[0]??null,c=ye(d?.destination??null),u=_e(s.flatMap(e=>e.lines.map(e=>e.offerId))),[p,h]=e.useState(null),[g,f]=e.useState(null),[m,b]=e.useState(null),y=Te((e,t,r)=>n.planAction(t.planId,{idempotencyKey:e.key(r?"resume":"pause"),operation:r?"resume":"pause"})),x=Te((e,t,r)=>n.planAction(t.planId,{idempotencyKey:e.key(r),operation:r})),k=Je(o);if(l.phase==="unavailable")return{tabs:i,view:{phase:"failed",retry:l.refresh}};let w=Xe(l,()=>Ge({plans:s,offers:u.value??/* @__PURE__ */new Map,copy:t,petName:r,card:Qe(a.value,d?.paymentMethodId??null),address:c.value?.address??null,reviewBy:o.phase==="ready"?o.value?.review.approveBy??null:null,packageMonth:k,busyPlan:p,rowError:g,onToggle:(e,r)=>{h(e.planId),f(null),y.run(e,r).then(r=>{h(null),y.reset(),r&&r.ok?l.refresh():r&&f({planId:e.planId,line:ae(t,r.error)})})},breakBusy:x.busy,breakError:m,onBreak:async e=>{if(!d)return false;b(null);let r=await x.run(d,e);return r&&r.ok?(x.reset(),l.refresh(),o.refresh(),true):(r&&b(ae(t,r.error)),false)}}));return{tabs:i,view:w}}var gt=/* @__PURE__ */new WeakMap;function ft(e){return gt.get(e)??null}function mt(e){gt.delete(e)}function bt(t,r){let{copy:n,client:i}=ue(),{pkg:o}=Ye(),l=t??{name:"package"},a=e.useRef(null),s=Te(async(e,r)=>{let n=JSON.stringify(r),l=a.current?.sent===n?a.current.ref:null;if(l===null){let e=await i.addAddress(r);if(!e.ok)return V(e.error);l=e.value.ref,a.current={sent:n,ref:l}}if(t?.name==="package"||t?.name==="plan"){let r=await i.plans({limit:100});if(!r.ok)return V(r.error);let n=r.value.plans.filter(e=>e.state!=="cancelled"),a=t.name==="package"?n.find(e=>e.planId===(o.value?.plan.planId??null))??null:n.find(e=>e.state==="active")??n[0]??null,s=a?n.filter(e=>e.planId===a.planId||a.destination!==null&&e.destination===a.destination):[];for(let t of s){if(t.destination===l)continue;let r=await i.updatePlan(t.planId,{idempotencyKey:e.key(`destination:${t.planId}`),destination:l});if(!r.ok)return V(r.error)}}return F(l)});return{back:{label:n.backToCare,to:l},busy:s.busy,error:s.error?ae(n,s.error):null,onSave:e=>{s.run(e).then(e=>{!e||!e.ok||(t?.name==="package"||t?.name==="plan"?o.refresh():gt.set(i,e.value),r(l))})}}}function yt(t,r,n){let{copy:i,client:o,payments:l}=ue(),{config:a}=Ye(),s=t??{name:"plan"},[d,c]=e.useState(()=>rt(o,it));e.useEffect(()=>nt(o,it),[o]);let u=Te(async()=>{if(n){let e=await n();return e.ok?F(true):(c(e.closed?i.cardStepClosed:e.message??i.cardStepFailed),F(false))}let e=await o.setupPaymentMethod();if(!e.ok||!l)return e.ok?V({kind:"invalidRequest"}):V(e.error);let t=await l.confirmCardSetup(e.value.payerAction);return t.ok?F(true):(c(t.closed?i.cardStepClosed:t.message??i.cardStepFailed),F(false))}),p=n?true:l!==null&&a.stripePublishableKey!==null;return{back:{label:i.backToCare,to:s},error:d??(u.error?ae(i,u.error):null),start:p?{label:i.cardStart,busyLabel:i.saving,busy:u.busy,disabled:u.busy,onPress:()=>{c(null),u.run().then(e=>{e&&e.ok&&e.value&&r(s)})}}:null}}function xt(t){let{copy:r,saveProfileName:n,onProfileNameRequired:i}=ue(),[o,l]=e.useState(false),[a,s]=e.useState(false),[d,c]=e.useState(null),u=e.useRef(t);u.current=t;let p=e.useRef(false),h=e.useRef(true);return e.useEffect(()=>(h.current=true,()=>{h.current=false}),[]),{view:o?{line:r.nameMissing,form:n?{firstLabel:r.firstName,lastLabel:r.lastName,saveLabel:r.saveName,busy:a,error:d,onSave:e=>{let t=e.firstName.trim(),i=e.lastName.trim();p.current||!t||!i||(p.current=true,s(true),c(null),n({firstName:t,lastName:i}).then(e=>e,()=>false).then(e=>{if(p.current=false,!!h.current){if(s(false),!e){c(r.actionFailed);return}l(false),u.current()}}))}}:null,handoff:!n&&i?{label:r.addName,onPress:i}:null}:null,raise:e=>q(e)?(c(null),l(true),true):false,clear:()=>l(false)}}function kt(){let e=be(),t=xe(),r=e.value?.find(e=>e.isDefault&&e.isComplete)??e.value?.find(e=>e.isComplete)??null,n=Qe(t.value,null);return{addresses:e,cards:t,address:r,card:n}}function wt(e,t){return t.phase==="unavailable"?e.actionFailed:t.phase==="failed"&&t.error?ae(e,t.error):null}function vt(t,r){let{copy:n,client:i,payments:o,petName:l}=ue(),a=fe(t.offerId),{address:s,card:d}=kt(),c=e.useMemo(()=>({offerId:t.offerId,quantity:t.quantity,...t.petId?{petId:t.petId}:{},...t.rxId?{rxId:t.rxId}:{}}),[t.offerId,t.quantity,t.petId,t.rxId]),u=pe(s?`quote:${s.ref}:${JSON.stringify(c)}`:null,()=>i.quote({lines:[c],shipTo:s.ref})),[p,h]=e.useState(null),[g,f]=e.useState(null),[m,b]=e.useState(false),y=Te(async e=>{let t=await i.createCheckout({idempotencyKey:e.key("draft"),lines:[c],shipTo:s.ref});if(!t.ok)return V(t.error);if((p??u.value?.total??null)!==t.value.total)return h(t.value.total),V({kind:"refused",status:409,reasonCode:"price_changed",message:null});let r=await G(e=>i.confirmCheckout(t.value.checkoutId,{idempotencyKey:e,expectedTotal:t.value.total,paymentMethodId:d.paymentMethodId}),e,o);return r.kind==="failed"?V(r.error):F(r)}),x=[...s?[]:[{label:n.addressNeeded,to:{name:"address",then:t}}],...d?[]:[{label:n.cardTitle,to:{name:"card",then:t}}]],k=u.value,w=p??k?.total??null,v=e.useRef(()=>{}),S=xt(()=>v.current()),j=()=>{m||(f(null),S.clear(),y.run().then(e=>{if(!e)return;let t=e.ok?e.value:{kind:"failed",error:e.error},o=t.kind!=="failed"?t.orderIds[0]:void 0;o?(b(true),tt(i,o,$e(n,t)),r({name:"order",orderId:o})):t.kind==="failed"&&S.raise(t.error)||f($e(n,t))}))};return v.current=j,{back:{label:n.backToShop,to:{name:"product",offerId:t.offerId}},title:n.confirmTitle,lines:a.value?[{key:c.offerId,name:a.value.title,meta:l(c.petId),price:a.value.price!==null?Y(a.value.price*c.quantity):null,form:Ae(a.value.requiresRx,a.value.title)}]:[],sum:k&&w!==null?[{k:n.shipping,v:k.shipping===0?n.free:Y(k.shipping)},{k:n.tax,v:Y(k.tax)},{k:n.total,v:Y(w)}]:null,needs:x,pay:s&&d&&k?{label:n.confirmPay,busyLabel:n.saving,busy:y.busy,disabled:y.busy||m,onPress:j}:null,note:d?n.chargedWhenShips(re(d.brand,d.last4)):null,error:g??wt(n,u),nameStep:S.view}}function Tt(e,t){let{copy:r,client:n}=ue(),{config:i,pkg:o}=Ye(),{address:l,card:a}=kt(),s=Te(t=>n.createPlan({idempotencyKey:t.key("create"),cadenceDays:30,destination:l.ref,paymentMethodId:a.paymentMethodId,consentTermsVersion:i.recurringTermsVersion,lines:[{offerId:e.offerId,quantity:e.quantity,...e.petId?{petId:e.petId}:{},...e.rxId?{rxId:e.rxId}:{}}]})),d=[...l?[]:[{label:r.addressNeeded,to:{name:"address",then:e}}],...a?[]:[{label:r.cardTitle,to:{name:"card",then:e}}]];return{back:{label:r.backToShop,to:{name:"product",offerId:e.offerId}},terms:i.recurringTermsUrl?{label:r.consentTermsLink,href:i.recurringTermsUrl}:null,needs:d,error:s.error?ae(r,s.error):null,agree:l&&a&&i.recurringTermsVersion?{label:r.consentAgree,busyLabel:r.saving,busy:s.busy,disabled:s.busy,onPress:()=>{s.run().then(e=>{e&&e.ok&&(o.refresh(),t({name:"plan"}))})}}:null}}var St=["ordered","shipped","out_for_delivery","delivered"];function jt(e){return e.paymentStatus==="failed"||e.canPay&&e.paymentStatus==="requires_action"}function Ct(e){return!e.canPay&&(e.paymentStatus==="authorized"||e.paymentStatus==="captured")}function It(e){return e.paymentStatus==="authorized"||e.paymentStatus==="captured"}function Lt(e,t,r,n=false){if(n)return{label:t.paymentFailed,tone:"risk"};let i=t.orderStatus[e]??r.orderSteps[0];return e==="delivered"?{label:i,tone:"done"}:e==="cancelled"||e==="rejected"?{label:i,tone:"quiet"}:e==="needs_support"?{label:i,tone:"risk"}:{label:i,tone:"wait"}}function zt(e){if(e.tracking)return e.tracking;let t=null;for(let r of e.shipments)for(let e of r.tracking)(!t||(e.occurredAt??"")>(t.occurredAt??""))&&(t=e);return t}function At(e){return e.arrivesBy??zt(e)?.deliveryBy??null}function Rt(e){let t=e.steps?.find(e=>e.key==="delivered");if(t?.at)return t.at;for(let t of e.shipments){let e=t.tracking.find(e=>e.status==="delivered");if(e?.occurredAt)return e.occurredAt}return null}function Wt(e){return e==="cancelled"||e==="rejected"||e==="needs_support"}function Ft(e,t,r){let n=e.summary.status;return jt(e)?t.paymentFailed:n==="delivered"?r.orderSteps[3]:Wt(n)?t.orderStatus[n]??r.orderSteps[0]:n==="shipped"?r.orderSteps[1]:r.orderSteps[0]}function Vt(e,t,r){let n=e.summary.status;if(Wt(n)||jt(e))return null;if(n==="delivered"){let t=ee(Rt(e),{when:true});return t?r.deliveredOn(t):null}let i=ee(At(e),{weekday:true});if(i)return r.arrivesBy(i);let o=t.orderStatus[n]??null;return o===Ft(e,t,r)?null:o}function Ht(e){return e==="delivered"||Wt(e)}function Pt(e,t){let r=e.summary.status;if(r==="cancelled"||r==="rejected")return null;let n=e.steps&&e.steps.length>0?e.steps:null,i=zt(e),o=e.shipments.flatMap(e=>e.tracking).map(e=>e.occurredAt).filter(e=>!!e).sort()[0]??null,l={ordered:{done:true,at:e.summary.placedAt},shipped:{done:r==="shipped"||r==="delivered"||!!i,at:o},out_for_delivery:{done:r==="delivered",at:null},delivered:{done:r==="delivered",at:Rt(e)}},a=ee(At(e),{weekday:true}),s=St.map((e,r)=>{let i=n?.find(t=>t.key===e),o=i?i.done:l[e].done,s=i?i.at:l[e].at,d=o?ee(s,{when:true}):e==="delivered"&&a?t.expected(a):null;return{key:e,title:t.orderSteps[r],line:d,done:o}}),d=s.reduce((e,t,r)=>t.done?r:e,-1);return s.map(({done:e,...t},r)=>({...t,state:e?r===d&&r<s.length-1?"now":"done":"next"}))}function Ot(e){return e.map(e=>e.title).join(", ")}function Bt(e,t,r=Y(e.total)){let n=ee(e.placedAt);return n?`${t.placed(n)} · ${r}`:r}var Dt={body:{paddingTop:8,paddingRight:16,paddingLeft:16},pushBody:{paddingRight:16,paddingLeft:16},subtabs:{backgroundColor:"#ffffff"},subtab:{minHeight:44,rowGap:6,columnGap:6},subtabCurrent:{minHeight:44,rowGap:6,columnGap:6},titleBlock:{paddingTop:4,rowGap:2,columnGap:2},screenTitle:{},screenMeta:{},stack:{marginTop:12,rowGap:12,columnGap:12},card:{paddingTop:16,paddingRight:16,paddingBottom:16,paddingLeft:16,borderWidth:1,borderColor:"#e4e4e4",borderRadius:20,backgroundColor:"#ffffff"},cardHead:{marginBottom:12,rowGap:8,columnGap:16},cardTitle:{marginBottom:12},cardTitleInHead:{},cardLink:{},cardLinkAfterNote:{marginTop:12,marginBottom:2.34},forLabel:{marginTop:4,marginBottom:8},forLabelNext:{marginTop:16,marginBottom:8},itemsLiFirst:{paddingBottom:16,rowGap:12,columnGap:12},itemsLiMid:{paddingTop:16,paddingBottom:16,borderTopWidth:1,borderTopColor:"#e4e4e4",rowGap:12,columnGap:12},itemsLiLast:{paddingTop:16,borderTopWidth:1,borderTopColor:"#e4e4e4",rowGap:12,columnGap:12},thumb:{borderRadius:10,backgroundColor:"#eaeef6",width:48,height:48},thumbIcon:{width:22,height:22},thumbPink:{borderRadius:10,backgroundColor:"#ffeae8"},thumbYellow:{borderRadius:10,backgroundColor:"#fcf0d6"},thumbSage:{borderRadius:10,backgroundColor:"#e6ece8"},itemsName:{rowGap:4,columnGap:8},itemsMeta:{marginTop:2},itemsActs:{marginTop:6,rowGap:16,columnGap:16},itemsActLink:{},itemsActButton:{},itemsEnd:{rowGap:4,columnGap:4},itemsPrice:{},pill:{paddingRight:10,paddingLeft:10,borderRadius:999,backgroundColor:"#eaeef6",minHeight:24},pillSoon:{paddingRight:10,paddingLeft:10,borderRadius:999,backgroundColor:"#ffffff",minHeight:24},btnRow:{paddingRight:14,paddingLeft:14,borderWidth:1,borderColor:"#10462e",borderRadius:999,minHeight:36,rowGap:8,columnGap:8},btnRowIcon:{width:17,height:17},btnRowLabel:{},sumTotal:{paddingRight:24,paddingLeft:24,borderWidth:1,borderColor:"#e4e4e4",borderRadius:20,backgroundColor:"#ffffff"},sumRowFirst:{paddingTop:14,paddingBottom:14,rowGap:2,columnGap:16},sumRowLast:{paddingTop:14,paddingBottom:14,rowGap:2,columnGap:16},sumDt:{},sumDd:{},sumDdTotal:{},noteAfterSum:{marginTop:12},rowsLiFirst:{paddingBottom:16,rowGap:8,columnGap:16},rowsLiNext:{paddingTop:16,borderTopWidth:1,borderTopColor:"#e4e4e4",rowGap:8,columnGap:16},rowsK:{},rowsV:{marginTop:2},rowsMeta:{marginTop:2},legal:{marginTop:32},legalText:{},traybar:{paddingTop:12,paddingRight:16,paddingBottom:8,paddingLeft:16,backgroundColor:"#ffffff",rowGap:6,columnGap:6},btnInk:{paddingRight:24,paddingLeft:24,borderWidth:1,borderColor:"#10462e",borderRadius:999,backgroundColor:"#10462e",minHeight:50,rowGap:8,columnGap:8},traybarFine:{},input:{paddingRight:16,paddingLeft:16,borderWidth:1,borderColor:"#e4e4e4",borderRadius:10,backgroundColor:"#ffffff",minHeight:52,rowGap:10,columnGap:10},inputIcon:{width:20,height:20},inputText:{paddingTop:1,paddingRight:2,paddingBottom:1,paddingLeft:2},inputPlaceholder:{},filters:{paddingBottom:2,rowGap:8,columnGap:8},filter:{paddingRight:14,paddingLeft:14,borderWidth:1,borderColor:"#e4e4e4",borderRadius:999,minHeight:36},filterCurrent:{paddingRight:14,paddingLeft:14,borderWidth:1,borderColor:"#10462e",borderRadius:999,backgroundColor:"#ffeae8",minHeight:36},sectionHead:{marginTop:8,rowGap:8,columnGap:12},prods:{rowGap:16,columnGap:12},prod:{rowGap:12,columnGap:12},prodImg:{borderRadius:10,backgroundColor:"#ffeae8",aspectRatio:1},prodIcon:{width:36,height:36},prodTags:{rowGap:6,columnGap:6,position:"absolute",top:8,left:8},prodBody:{rowGap:4,columnGap:4},prodName:{},prodMeta:{},prodPrice:{marginTop:4,rowGap:8,columnGap:8},pillClear:{paddingRight:10,paddingLeft:10,borderRadius:999,backgroundColor:"#ffffff",minHeight:24},pillPlain:{paddingRight:10,paddingLeft:10,borderRadius:999,backgroundColor:"#ffffff",minHeight:24},pillOverdue:{paddingRight:10,paddingLeft:10,borderRadius:999,backgroundColor:"#ffffff",minHeight:24},hero:{borderRadius:20,backgroundColor:"#fcf0d6",aspectRatio:1.6},heroIcon:{width:56,height:56},source:{rowGap:8,columnGap:8},sourceIcon:{marginTop:2,width:16,height:16},sourceBold:{},sourceLink:{},choices:{rowGap:8,columnGap:8},choiceCurrent:{paddingTop:14,paddingRight:16,paddingBottom:14,paddingLeft:16,borderWidth:1,borderColor:"#10462e",borderRadius:10,backgroundColor:"#ffeae8",rowGap:12,columnGap:12},choice:{paddingTop:14,paddingRight:16,paddingBottom:14,paddingLeft:16,borderWidth:1,borderColor:"#e4e4e4",borderRadius:10,backgroundColor:"#ffffff",rowGap:12,columnGap:12},radioOn:{borderWidth:6,borderColor:"#10462e",borderRadius:10,backgroundColor:"#ffffff",width:20,height:20},radioOff:{borderWidth:1,borderColor:"#819d90",borderRadius:10,backgroundColor:"#ffffff",width:20,height:20},choiceText:{},choiceTitle:{},choiceMeta:{marginTop:2},facts:{marginTop:12,rowGap:8,columnGap:8},factsLi:{paddingTop:12,paddingRight:12,paddingBottom:12,paddingLeft:12,borderRadius:10,backgroundColor:"#e6ece8",rowGap:4,columnGap:4},factsLiHer:{paddingTop:12,paddingRight:12,paddingBottom:12,paddingLeft:12,borderRadius:10,backgroundColor:"#fcf0d6",rowGap:4,columnGap:4},factsK:{},factsN:{},factsUnit:{},noteAfterFacts:{marginTop:12},cardLead:{marginBottom:12},person:{rowGap:12,columnGap:16},avatar:{borderRadius:18,backgroundColor:"#ffffff",width:36,height:36},personName:{},personMeta:{},sourceInCard:{marginTop:12,rowGap:8,columnGap:8},sourceInCardIcon:{marginTop:2,width:16,height:16},noteAfterSource:{marginTop:8},rxLead:{marginBottom:12},btnOutlineSm:{marginTop:12,paddingRight:16,paddingLeft:16,borderWidth:1,borderColor:"#10462e",borderRadius:999,minHeight:46,rowGap:8,columnGap:8},btnOutlineSmIcon:{width:20,height:20},noteStandalone:{},noteLink:{},sumPlain:{paddingRight:24,paddingLeft:24,borderWidth:1,borderColor:"#e4e4e4",borderRadius:20,backgroundColor:"#ffffff"},sumPlainRowFirst:{paddingTop:14,paddingBottom:14,rowGap:2,columnGap:16},sumPlainRowLast:{paddingTop:14,paddingBottom:14,rowGap:2,columnGap:16},sumPlainDd:{},planRowsLiFirst:{paddingTop:12,paddingBottom:12,rowGap:8,columnGap:16},planRowsLiNext:{paddingTop:12,paddingBottom:12,borderTopWidth:1,borderTopColor:"#e4e4e4",rowGap:8,columnGap:16},switch:{width:48,height:28},switchTrack:{borderRadius:999,backgroundColor:"#10462e",width:48,height:28},switchKnob:{borderRadius:11,backgroundColor:"#ffffff",position:"absolute",top:3,left:3,transform:[{translateX:20}],width:22,height:22},switchTrackOff:{borderRadius:999,backgroundColor:"#d0d6d3",width:48,height:28},switchKnobOff:{borderRadius:11,backgroundColor:"#ffffff",position:"absolute",top:3,left:3,width:22,height:22},breaks:{marginTop:12,rowGap:12,columnGap:24},btnSm:{paddingRight:16,paddingLeft:16,borderWidth:1,borderColor:"#10462e",borderRadius:999,minHeight:46,rowGap:8,columnGap:8},linkDanger:{},sheet:{borderTopLeftRadius:28,borderTopRightRadius:28,backgroundColor:"#ffffff"},sheetBackdrop:{backgroundColor:"rgba(0, 0, 0, 0.32)",position:"absolute"},sheetGrab:{height:20},sheetGrabBar:{borderRadius:3,backgroundColor:"#c9c9c9",width:36,height:5},sheetHead:{paddingTop:4,paddingRight:16,paddingBottom:12,paddingLeft:16,rowGap:12,columnGap:12},sheetClose:{paddingTop:1,paddingRight:6,paddingBottom:1,paddingLeft:6,borderRadius:18,backgroundColor:"#e6ece8",width:36,height:36},sheetCloseIcon:{width:20,height:20},sheetBody:{paddingRight:16,paddingBottom:24,paddingLeft:16,rowGap:12,columnGap:12},sheetText:{},sheetActions:{marginTop:16,rowGap:8,columnGap:8},btnDanger:{paddingRight:16,paddingLeft:16,borderWidth:1,borderColor:"#c03410",borderRadius:999,backgroundColor:"#ffffff",minHeight:46,rowGap:8,columnGap:8},btnOutline:{paddingRight:24,paddingLeft:24,borderWidth:1,borderColor:"#10462e",borderRadius:999,minHeight:52,rowGap:8,columnGap:8},rec:{marginRight:-8,marginLeft:-8,rowGap:4,columnGap:4},recRow:{paddingTop:10,paddingRight:8,paddingBottom:10,paddingLeft:8,borderRadius:10,rowGap:12,columnGap:12},recIcon:{width:20,height:20},recText:{rowGap:2,columnGap:2},recTitle:{},recMeta:{},recEnd:{rowGap:8,columnGap:8},trackerLi:{paddingBottom:24,rowGap:16,columnGap:16},trackerLiLast:{rowGap:16,columnGap:16},trackerLineDone:{borderRadius:1,backgroundColor:"#10462e",position:"absolute",top:30,left:13,bottom:2,width:2},trackerLine:{borderRadius:1,backgroundColor:"#e4e4e4",position:"absolute",top:30,left:13,bottom:2,width:2},dotDone:{borderWidth:2,borderColor:"#10462e",borderRadius:14,backgroundColor:"#10462e",width:28,height:28},dotDoneIcon:{width:16,height:16},dotNow:{borderWidth:2,borderColor:"#10462e",borderRadius:14,backgroundColor:"#ffffff",width:28,height:28},dotNowCore:{borderRadius:5,backgroundColor:"#07c168",width:10,height:10},dotNext:{borderWidth:2,borderColor:"#e4e4e4",borderRadius:14,backgroundColor:"#ffffff",width:28,height:28},trackerTitle:{paddingTop:3,rowGap:4,columnGap:8},trackerTitleNext:{paddingTop:3,rowGap:4,columnGap:8},trackerWhen:{marginTop:2},trackerText:{marginTop:2},pillStable:{paddingRight:10,paddingLeft:10,borderRadius:999,backgroundColor:"#dcf6ea",minHeight:24},trackItemsEnd:{rowGap:4,columnGap:4},trackItemsLiFirst:{paddingBottom:16,rowGap:12,columnGap:12},trackItemsLiLast:{paddingTop:16,borderTopWidth:1,borderTopColor:"#e4e4e4",rowGap:12,columnGap:12},noteAfterTotal:{marginTop:8},rowLink:{paddingTop:16,paddingRight:24,paddingBottom:16,paddingLeft:24,borderWidth:1,borderColor:"#e4e4e4",borderRadius:20,backgroundColor:"#ffffff",rowGap:12,columnGap:12},rowLinkIcon:{width:22,height:22},rowLinkChevron:{width:20,height:20},ghost:{marginTop:16,rowGap:10,columnGap:10},ghostBar:{borderRadius:999,backgroundColor:"#e6ece8",height:12},field:{rowGap:6,columnGap:6},fieldLabel:{},fieldInput:{paddingRight:16,paddingLeft:16,borderWidth:1,borderColor:"#e4e4e4",borderRadius:10,backgroundColor:"#ffffff",minHeight:52,rowGap:10,columnGap:10},fieldInputText:{paddingTop:1,paddingRight:2,paddingBottom:1,paddingLeft:2}},Et={body:{color:"#000000",fontSize:17,fontWeight:"400",lineHeight:26.34375},pushBody:{color:"#000000",fontSize:17,fontWeight:"400",lineHeight:26.34375},subtabs:{color:"#000000",fontSize:17,fontWeight:"400",lineHeight:26.34375},subtab:{color:"#6b6b6b",fontSize:15,fontWeight:"500",lineHeight:23.25},subtabCurrent:{color:"#10462e",fontSize:15,fontWeight:"700",lineHeight:23.25},titleBlock:{color:"#000000",fontSize:17,fontWeight:"400",lineHeight:26.34375},screenTitle:{color:"#10462e",fontSize:22,fontWeight:"500",lineHeight:26.390625,letterSpacing:-.33},screenMeta:{color:"#6b6b6b",fontSize:13,fontWeight:"400",lineHeight:18.84375},stack:{color:"#000000",fontSize:17,fontWeight:"400",lineHeight:26.34375},card:{color:"#000000",fontSize:17,fontWeight:"400",lineHeight:26.34375},cardHead:{color:"#000000",fontSize:17,fontWeight:"400",lineHeight:26.34375},cardTitle:{color:"#10462e",fontSize:18,fontWeight:"700",lineHeight:22.5,letterSpacing:-.36},cardTitleInHead:{color:"#10462e",fontSize:18,fontWeight:"700",lineHeight:22.5,letterSpacing:-.36},cardLink:{color:"#10462e",fontSize:15,fontWeight:"700",lineHeight:21},cardLinkAfterNote:{color:"#10462e",fontSize:15,fontWeight:"700",lineHeight:21},forLabel:{color:"#6b6b6b",fontSize:12,fontWeight:"700",lineHeight:16.796875,letterSpacing:.72,textTransform:"uppercase"},forLabelNext:{color:"#6b6b6b",fontSize:12,fontWeight:"700",lineHeight:16.796875,letterSpacing:.72,textTransform:"uppercase"},itemsLiFirst:{color:"#000000",fontSize:17,fontWeight:"400",lineHeight:26.34375},itemsLiMid:{color:"#000000",fontSize:17,fontWeight:"400",lineHeight:26.34375},itemsLiLast:{color:"#000000",fontSize:17,fontWeight:"400",lineHeight:26.34375},thumb:{color:"#10462e",fontSize:17,fontWeight:"400",lineHeight:26.34375},thumbIcon:{color:"#10462e",fontSize:17,fontWeight:"400",lineHeight:26.34375},thumbPink:{color:"#10462e",fontSize:17,fontWeight:"400",lineHeight:26.34375},thumbYellow:{color:"#10462e",fontSize:17,fontWeight:"400",lineHeight:26.34375},thumbSage:{color:"#10462e",fontSize:17,fontWeight:"400",lineHeight:26.34375},itemsName:{color:"#10462e",fontSize:17,fontWeight:"700",lineHeight:22.09375},itemsMeta:{color:"#6b6b6b",fontSize:13,fontWeight:"400",lineHeight:18.84375},itemsActs:{color:"#000000",fontSize:17,fontWeight:"400",lineHeight:26.34375},itemsActLink:{color:"#10462e",fontSize:13,fontWeight:"700",lineHeight:20.140625,textDecorationLine:"underline"},itemsActButton:{color:"#10462e",fontSize:13,fontWeight:"700",lineHeight:20.140625,textDecorationLine:"underline",textAlign:"center"},itemsEnd:{color:"#000000",fontSize:17,fontWeight:"400",lineHeight:26.34375,fontVariant:["tabular-nums"]},itemsPrice:{color:"#10462e",fontSize:17,fontWeight:"700",lineHeight:26.34375,fontVariant:["tabular-nums"]},pill:{color:"#10462e",fontSize:12,fontWeight:"700",lineHeight:12,letterSpacing:.72,textTransform:"uppercase"},pillSoon:{color:"#10462e",fontSize:12,fontWeight:"700",lineHeight:12,letterSpacing:.72,textTransform:"uppercase"},btnRow:{color:"#10462e",fontSize:14,fontWeight:"400",lineHeight:14,textAlign:"center",fontVariant:["tabular-nums"]},btnRowIcon:{color:"#10462e",fontSize:14,fontWeight:"400",lineHeight:14,textAlign:"center",fontVariant:["tabular-nums"]},btnRowLabel:{color:"#10462e",fontSize:14,fontWeight:"400",lineHeight:14,textAlign:"center",fontVariant:["tabular-nums"]},sumTotal:{color:"#000000",fontSize:17,fontWeight:"400",lineHeight:26.34375},sumRowFirst:{color:"#000000",fontSize:17,fontWeight:"400",lineHeight:26.34375},sumRowLast:{color:"#000000",fontSize:17,fontWeight:"400",lineHeight:26.34375},sumDt:{color:"#6b6b6b",fontSize:15,fontWeight:"400",lineHeight:23.25},sumDd:{color:"#10462e",fontSize:15,fontWeight:"700",lineHeight:21,textAlign:"right"},sumDdTotal:{color:"#10462e",fontSize:20,fontWeight:"700",lineHeight:28,textAlign:"right"},noteAfterSum:{color:"#6b6b6b",fontSize:13,fontWeight:"400",lineHeight:19.5},rowsLiFirst:{color:"#000000",fontSize:17,fontWeight:"400",lineHeight:26.34375},rowsLiNext:{color:"#000000",fontSize:17,fontWeight:"400",lineHeight:26.34375},rowsK:{color:"#10462e",fontSize:17,fontWeight:"700",lineHeight:22.09375},rowsV:{color:"#000000",fontSize:15,fontWeight:"400",lineHeight:21.75},rowsMeta:{color:"#6b6b6b",fontSize:13,fontWeight:"400",lineHeight:18.84375},legal:{color:"#6b6b6b",fontSize:13,fontWeight:"400",lineHeight:20.796875,textAlign:"center"},legalText:{color:"#6b6b6b",fontSize:13,fontWeight:"400",lineHeight:20.796875,textAlign:"center"},traybar:{color:"#000000",fontSize:17,fontWeight:"400",lineHeight:26.34375},btnInk:{color:"#ffffff",fontSize:17,fontWeight:"700",lineHeight:17,textAlign:"center"},traybarFine:{color:"#6b6b6b",fontSize:12,fontWeight:"400",lineHeight:15.59375,textAlign:"center"},input:{color:"#000000",fontSize:17,fontWeight:"400",lineHeight:26.34375},inputIcon:{color:"#6b6b6b",fontSize:17,fontWeight:"400",lineHeight:26.34375},inputText:{color:"#000000",fontSize:17,fontWeight:"400",lineHeight:26.34375},inputPlaceholder:{color:"#757575",fontSize:17,fontWeight:"400"},filters:{color:"#000000",fontSize:17,fontWeight:"400",lineHeight:26.34375},filter:{color:"#10462e",fontSize:15,fontWeight:"400",lineHeight:18},filterCurrent:{color:"#10462e",fontSize:15,fontWeight:"700",lineHeight:18},sectionHead:{color:"#000000",fontSize:17,fontWeight:"400",lineHeight:26.34375},prods:{color:"#000000",fontSize:17,fontWeight:"400",lineHeight:26.34375},prod:{color:"#000000",fontSize:17,fontWeight:"400",lineHeight:26.34375},prodImg:{color:"#10462e",fontSize:17,fontWeight:"400",lineHeight:26.34375},prodIcon:{color:"#10462e",fontSize:17,fontWeight:"400",lineHeight:26.34375},prodTags:{color:"#000000",fontSize:17,fontWeight:"400",lineHeight:26.34375},prodBody:{color:"#000000",fontSize:17,fontWeight:"400",lineHeight:26.34375},prodName:{color:"#10462e",fontSize:15,fontWeight:"700",lineHeight:19.5},prodMeta:{color:"#6b6b6b",fontSize:13,fontWeight:"400",lineHeight:18.84375},prodPrice:{color:"#10462e",fontSize:15,fontWeight:"700",lineHeight:23.25,fontVariant:["tabular-nums"]},pillClear:{color:"#07c168",fontSize:12,fontWeight:"700",lineHeight:12,letterSpacing:.72,textTransform:"uppercase"},pillPlain:{color:"#10462e",fontSize:12,fontWeight:"700",lineHeight:12,letterSpacing:.72,textTransform:"uppercase"},pillOverdue:{color:"#c03410",fontSize:12,fontWeight:"700",lineHeight:12,letterSpacing:.72,textTransform:"uppercase"},hero:{color:"#10462e",fontSize:17,fontWeight:"400",lineHeight:26.34375},heroIcon:{color:"#10462e",fontSize:17,fontWeight:"400",lineHeight:26.34375},source:{color:"#6b6b6b",fontSize:13,fontWeight:"400",lineHeight:19.5},sourceIcon:{color:"#819d90",fontSize:13,fontWeight:"400",lineHeight:19.5},sourceBold:{color:"#6b6b6b",fontSize:13,fontWeight:"700",lineHeight:19.5},sourceLink:{color:"#10462e",fontSize:13,fontWeight:"700",lineHeight:19.5,textDecorationLine:"underline"},choices:{color:"#000000",fontSize:17,fontWeight:"400",lineHeight:26.34375},choiceCurrent:{color:"#000000",fontSize:17,fontWeight:"400",lineHeight:26.34375},choice:{color:"#000000",fontSize:17,fontWeight:"400",lineHeight:26.34375},radioOn:{color:"#000000",fontSize:13.333,fontWeight:"400"},radioOff:{color:"#000000",fontSize:13.333,fontWeight:"400"},choiceText:{color:"#000000",fontSize:17,fontWeight:"400",lineHeight:26.34375},choiceTitle:{color:"#10462e",fontSize:17,fontWeight:"700",lineHeight:22.09375},choiceMeta:{color:"#6b6b6b",fontSize:13,fontWeight:"400",lineHeight:18.1875},facts:{color:"#000000",fontSize:17,fontWeight:"400",lineHeight:26.34375},factsLi:{color:"#000000",fontSize:17,fontWeight:"400",lineHeight:26.34375},factsLiHer:{color:"#000000",fontSize:17,fontWeight:"400",lineHeight:26.34375},factsK:{color:"#6b6b6b",fontSize:13,fontWeight:"400",lineHeight:18.1875},factsN:{color:"#10462e",fontSize:20,fontWeight:"700",lineHeight:22,letterSpacing:-.4,fontVariant:["tabular-nums"]},factsUnit:{color:"#6b6b6b",fontSize:13,fontWeight:"500",lineHeight:14.296875,letterSpacing:-.4,fontVariant:["tabular-nums"]},noteAfterFacts:{color:"#6b6b6b",fontSize:13,fontWeight:"400",lineHeight:19.5},cardLead:{color:"#000000",fontSize:15,fontWeight:"400",lineHeight:22.5},person:{color:"#000000",fontSize:17,fontWeight:"400",lineHeight:26.34375},avatar:{color:"#000000",fontSize:17,fontWeight:"400",lineHeight:26.34375},personName:{color:"#10462e",fontSize:17,fontWeight:"700",lineHeight:22.09375},personMeta:{color:"#6b6b6b",fontSize:13,fontWeight:"400",lineHeight:18.84375},sourceInCard:{color:"#6b6b6b",fontSize:13,fontWeight:"400",lineHeight:19.5},sourceInCardIcon:{color:"#819d90",fontSize:13,fontWeight:"400",lineHeight:19.5},noteAfterSource:{color:"#6b6b6b",fontSize:13,fontWeight:"400",lineHeight:19.5},rxLead:{color:"#000000",fontSize:15,fontWeight:"400",lineHeight:22.5},btnOutlineSm:{color:"#10462e",fontSize:15,fontWeight:"400",lineHeight:15,textAlign:"center"},btnOutlineSmIcon:{color:"#10462e",fontSize:15,fontWeight:"400",lineHeight:15,textAlign:"center"},noteStandalone:{color:"#6b6b6b",fontSize:13,fontWeight:"400",lineHeight:19.5},noteLink:{color:"#10462e",fontSize:15,fontWeight:"700",lineHeight:21},sumPlain:{color:"#000000",fontSize:17,fontWeight:"400",lineHeight:26.34375},sumPlainRowFirst:{color:"#000000",fontSize:17,fontWeight:"400",lineHeight:26.34375},sumPlainRowLast:{color:"#000000",fontSize:17,fontWeight:"400",lineHeight:26.34375},sumPlainDd:{color:"#10462e",fontSize:15,fontWeight:"700",lineHeight:21,textAlign:"right"},planRowsLiFirst:{color:"#000000",fontSize:17,fontWeight:"400",lineHeight:26.34375},planRowsLiNext:{color:"#000000",fontSize:17,fontWeight:"400",lineHeight:26.34375},switch:{color:"#000000",fontSize:17,fontWeight:"400",lineHeight:26.34375},switchTrack:{color:"#000000",fontSize:13.333,fontWeight:"400"},switchKnob:{color:"#000000",fontSize:17,fontWeight:"400",lineHeight:26.34375},switchTrackOff:{color:"#000000",fontSize:13.333,fontWeight:"400"},switchKnobOff:{color:"#000000",fontSize:17,fontWeight:"400",lineHeight:26.34375},breaks:{color:"#000000",fontSize:17,fontWeight:"400",lineHeight:26.34375},btnSm:{color:"#10462e",fontSize:15,fontWeight:"400",lineHeight:15,textAlign:"center"},linkDanger:{color:"#c03410",fontSize:15,fontWeight:"700",lineHeight:23.25,textDecorationLine:"underline",textAlign:"center"},sheet:{color:"#000000",fontSize:17,fontWeight:"400",lineHeight:26.34375},sheetBackdrop:{color:"#000000",fontSize:17,fontWeight:"400",lineHeight:26.34375},sheetGrab:{color:"#000000",fontSize:17,fontWeight:"400",lineHeight:26.34375},sheetGrabBar:{color:"#000000",fontSize:17,fontWeight:"400",lineHeight:26.34375},sheetHead:{color:"#000000",fontSize:17,fontWeight:"400",lineHeight:26.34375},sheetClose:{color:"#10462e",fontSize:13.333,fontWeight:"400",textAlign:"center"},sheetCloseIcon:{color:"#10462e",fontSize:13.333,fontWeight:"400",textAlign:"center"},sheetBody:{color:"#000000",fontSize:17,fontWeight:"400",lineHeight:26.34375},sheetText:{color:"#000000",fontSize:17,fontWeight:"400",lineHeight:25.5},sheetActions:{color:"#000000",fontSize:17,fontWeight:"400",lineHeight:26.34375},btnDanger:{color:"#c03410",fontSize:15,fontWeight:"700",lineHeight:23.25,textAlign:"center"},btnOutline:{color:"#10462e",fontSize:17,fontWeight:"700",lineHeight:17,textAlign:"center"},rec:{color:"#000000",fontSize:17,fontWeight:"400",lineHeight:26.34375},recRow:{color:"#000000",fontSize:17,fontWeight:"400",lineHeight:26.34375},recIcon:{color:"#6b6b6b",fontSize:17,fontWeight:"400",lineHeight:26.34375},recText:{color:"#000000",fontSize:17,fontWeight:"400",lineHeight:26.34375},recTitle:{color:"#10462e",fontSize:17,fontWeight:"700",lineHeight:22.09375},recMeta:{color:"#6b6b6b",fontSize:13,fontWeight:"400",lineHeight:18.1875},recEnd:{color:"#6b6b6b",fontSize:15,fontWeight:"400",lineHeight:23.25},trackerLi:{color:"#000000",fontSize:17,fontWeight:"400",lineHeight:26.34375},trackerLiLast:{color:"#000000",fontSize:17,fontWeight:"400",lineHeight:26.34375},trackerLineDone:{color:"#000000",fontSize:17,fontWeight:"400",lineHeight:26.34375},trackerLine:{color:"#000000",fontSize:17,fontWeight:"400",lineHeight:26.34375},dotDone:{color:"#ffffff",fontSize:17,fontWeight:"400",lineHeight:26.34375},dotDoneIcon:{color:"#ffffff",fontSize:17,fontWeight:"400",lineHeight:26.34375},dotNow:{color:"#000000",fontSize:17,fontWeight:"400",lineHeight:26.34375},dotNowCore:{color:"#000000",fontSize:17,fontWeight:"400",lineHeight:26.34375},dotNext:{color:"#000000",fontSize:17,fontWeight:"400",lineHeight:26.34375},trackerTitle:{color:"#10462e",fontSize:17,fontWeight:"700",lineHeight:22.09375},trackerTitleNext:{color:"#6b6b6b",fontSize:17,fontWeight:"700",lineHeight:22.09375},trackerWhen:{color:"#6b6b6b",fontSize:13,fontWeight:"400",lineHeight:18.1875},trackerText:{color:"#000000",fontSize:15,fontWeight:"400",lineHeight:22.5},pillStable:{color:"#10462e",fontSize:12,fontWeight:"700",lineHeight:12,letterSpacing:.72,textTransform:"uppercase"},trackItemsEnd:{color:"#000000",fontSize:17,fontWeight:"400",lineHeight:26.34375,fontVariant:["tabular-nums"]},trackItemsLiFirst:{color:"#000000",fontSize:17,fontWeight:"400",lineHeight:26.34375},trackItemsLiLast:{color:"#000000",fontSize:17,fontWeight:"400",lineHeight:26.34375},noteAfterTotal:{color:"#6b6b6b",fontSize:13,fontWeight:"400",lineHeight:19.5},rowLink:{color:"#10462e",fontSize:15,fontWeight:"700",lineHeight:20.25},rowLinkIcon:{color:"#10462e",fontSize:15,fontWeight:"700",lineHeight:20.25},rowLinkChevron:{color:"#819d90",fontSize:15,fontWeight:"700",lineHeight:20.25},ghost:{color:"#000000",fontSize:17,fontWeight:"400",lineHeight:26.34375},ghostBar:{color:"#000000",fontSize:17,fontWeight:"400",lineHeight:26.34375},field:{color:"#000000",fontSize:17,fontWeight:"400",lineHeight:26.34375},fieldLabel:{color:"#10462e",fontSize:15,fontWeight:"700",lineHeight:21},fieldInput:{color:"#000000",fontSize:17,fontWeight:"400",lineHeight:26.34375},fieldInputText:{color:"#000000",fontSize:17,fontWeight:"400",lineHeight:26.34375}},Nt={body:{font:"sans"},pushBody:{font:"sans"},subtabs:{font:"sans",lineBottom:{width:1,color:"#e4e4e4"}},subtab:{font:"sans"},subtabCurrent:{font:"sans",insetBottom:{width:3,color:"#07c168"}},titleBlock:{font:"sans"},screenTitle:{font:"sans",wrap:"balance"},screenMeta:{font:"mono",wrap:"pretty"},stack:{font:"sans"},card:{font:"sans"},cardHead:{font:"sans"},cardTitle:{font:"sans"},cardTitleInHead:{font:"sans"},cardLink:{font:"sans"},cardLinkAfterNote:{font:"sans"},forLabel:{font:"mono"},forLabelNext:{font:"mono"},itemsLiFirst:{font:"sans"},itemsLiMid:{font:"sans"},itemsLiLast:{font:"sans"},thumb:{font:"sans"},thumbIcon:{font:"sans"},thumbPink:{font:"sans"},thumbYellow:{font:"sans"},thumbSage:{font:"sans"},itemsName:{font:"sans"},itemsMeta:{font:"sans"},itemsActs:{font:"sans"},itemsActLink:{font:"sans",underlineOffset:3},itemsActButton:{font:"sans",underlineOffset:3},itemsEnd:{font:"sans"},itemsPrice:{font:"sans"},pill:{font:"mono"},pillSoon:{font:"mono",ring:{width:1.25,color:"#f6d892"}},btnRow:{font:"sans"},btnRowIcon:{font:"sans"},btnRowLabel:{font:"sans"},sumTotal:{font:"sans"},sumRowFirst:{font:"sans"},sumRowLast:{font:"sans"},sumDt:{font:"sans"},sumDd:{font:"sans"},sumDdTotal:{font:"sans"},noteAfterSum:{font:"sans"},rowsLiFirst:{font:"sans"},rowsLiNext:{font:"sans"},rowsK:{font:"sans"},rowsV:{font:"sans"},rowsMeta:{font:"sans"},legal:{font:"sans"},legalText:{font:"sans"},traybar:{font:"sans",lineTop:{width:1,color:"#e4e4e4"}},btnInk:{font:"sans"},traybarFine:{font:"sans"},input:{font:"sans"},inputIcon:{font:"sans"},inputText:{font:"sans"},inputPlaceholder:{font:"sans"},filters:{font:"sans"},filter:{font:"sans"},filterCurrent:{font:"sans"},sectionHead:{font:"sans"},prods:{font:"sans"},prod:{font:"sans"},prodImg:{font:"sans"},prodIcon:{font:"sans"},prodTags:{font:"sans"},prodBody:{font:"sans"},prodName:{font:"sans"},prodMeta:{font:"sans"},prodPrice:{font:"sans"},pillClear:{font:"mono",ring:{width:1.5,color:"#07c168"}},pillPlain:{font:"mono",ring:{width:1.5,color:"rgba(16, 70, 46, 0.2)"}},pillOverdue:{font:"mono",ring:{width:1.25,color:"#c03410"}},hero:{font:"sans"},heroIcon:{font:"sans"},source:{font:"sans"},sourceIcon:{font:"sans"},sourceBold:{font:"sans"},sourceLink:{font:"sans",underlineOffset:3},choices:{font:"sans"},choiceCurrent:{font:"sans"},choice:{font:"sans"},radioOn:{font:"sans"},radioOff:{font:"sans"},choiceText:{font:"sans"},choiceTitle:{font:"sans"},choiceMeta:{font:"sans"},facts:{font:"sans"},factsLi:{font:"sans"},factsLiHer:{font:"sans"},factsK:{font:"sans"},factsN:{font:"sans"},factsUnit:{font:"sans"},noteAfterFacts:{font:"sans"},cardLead:{font:"sans"},person:{font:"sans"},avatar:{font:"sans",ring:{width:1,color:"#e4e4e4"}},personName:{font:"sans"},personMeta:{font:"sans"},sourceInCard:{font:"sans"},sourceInCardIcon:{font:"sans"},noteAfterSource:{font:"sans"},rxLead:{font:"sans"},btnOutlineSm:{font:"sans"},btnOutlineSmIcon:{font:"sans"},noteStandalone:{font:"sans"},noteLink:{font:"sans"},sumPlain:{font:"sans"},sumPlainRowFirst:{font:"sans"},sumPlainRowLast:{font:"sans"},sumPlainDd:{font:"sans"},planRowsLiFirst:{font:"sans"},planRowsLiNext:{font:"sans"},switch:{font:"sans"},switchTrack:{font:"sans"},switchKnob:{font:"sans",drop:{x:0,y:1,blur:2,spread:0,color:"rgba(16, 70, 46, 0.06)"}},switchTrackOff:{font:"sans"},switchKnobOff:{font:"sans",drop:{x:0,y:1,blur:2,spread:0,color:"rgba(16, 70, 46, 0.06)"}},breaks:{font:"sans"},btnSm:{font:"sans"},linkDanger:{font:"sans",underlineOffset:3},sheet:{font:"sans"},sheetBackdrop:{font:"sans"},sheetGrab:{font:"sans"},sheetGrabBar:{font:"sans"},sheetHead:{font:"sans"},sheetClose:{font:"sans"},sheetCloseIcon:{font:"sans"},sheetBody:{font:"sans"},sheetText:{font:"sans"},sheetActions:{font:"sans"},btnDanger:{font:"sans"},btnOutline:{font:"sans"},rec:{font:"sans"},recRow:{font:"sans"},recIcon:{font:"sans"},recText:{font:"sans"},recTitle:{font:"sans"},recMeta:{font:"sans"},recEnd:{font:"sans"},trackerLi:{font:"sans"},trackerLiLast:{font:"sans"},trackerLineDone:{font:"sans"},trackerLine:{font:"sans"},dotDone:{font:"sans"},dotDoneIcon:{font:"sans"},dotNow:{font:"sans"},dotNowCore:{font:"sans"},dotNext:{font:"sans"},trackerTitle:{font:"sans"},trackerTitleNext:{font:"sans"},trackerWhen:{font:"sans"},trackerText:{font:"sans"},pillStable:{font:"mono"},trackItemsEnd:{font:"sans"},trackItemsLiFirst:{font:"sans"},trackItemsLiLast:{font:"sans"},noteAfterTotal:{font:"sans"},rowLink:{font:"sans"},rowLinkIcon:{font:"sans"},rowLinkChevron:{font:"sans"},ghost:{font:"sans"},ghostBar:{font:"sans"},field:{font:"sans"},fieldLabel:{font:"sans"},fieldInput:{font:"sans"},fieldInputText:{font:"sans"}},qt={shield:{size:56,uri:"data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAKgAAACoCAQAAADeQm0/AAAK6klEQVR4Ae3BCbBVhWEA0HPveyDyBSGWzR2GuOMSo6VVo3XBoo5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zpcW1uM4vxKQl7bVWqayoEpeZ6bDfi5suq12jWnHzveAyKXGvmmqLhLRc73naThc7Q9QnTDbN2xqEpstq16hWaIJfull/cQ1mut8BOTLye8HLbveAgaLKrFdvrt26NsLjrpPUbKElWuWV1pUPbLbKGcYKRGXNMcJWLZguq12jWpyqyk+MEddmhal+rU0X0rpz2M+9ZLTzRKWMM1fadl+X1a5RrWnWukaJuHpTrNaiG4FCXKvGSEl/8R8XabddqwmSGlSq06NAob7pQQMUrtkjFitIoHBnWmSGlJ61WanKAQUKFGeM5SboXr15dilCoHjXqjFSfg0q1SlSoDf6uUOVgeKaLbREq6IFeutM95mnn3bvW+5RTXolcDKGKnMe3vGGAz520v4HN6Zvz27hkx4AAAAASUVORK5CYII="},bag:{size:22,uri:"data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAEIAAABCCAQAAABJXchjAAAC/UlEQVR4Ae3BXWiVZQAA4Od792m0UJhSQy+GdZHrSBDLrF0kDbuwELstUgmDfjToIgw0MRW7kSAQEiJJbwJBjcDALgx/yDCK/F8QFKbEmmKazZuQFqLf+c62c7b3bGeH78LncdcdidFN86ipJuZfpw0YRWI0r9qhMVbaqaYWtfXYK9EYSx11Xg1BLbPslWiUxF6z1BBUF+wxQyPNsEdQVYvqNlqu0TokDqsiVc0iG+QO22T8Nlkos8FR3xghMVK7c2bKXDFPv/Frd85MmSvm6TdMi+GCr82VGbTEWRNxww9WSNzWqtsug4ZoMdxmy+Q+8JmJOm+KhTIdgkOGCIbq8Z7cMe9rhA2Oya3XY4hEpXY/a5O57hVXNUabXabLXPWIfmWJSpfcrzkue0BZi9yHntUs92l10B1BrkszzVcW5P7STFeVBbmzmumsslR1PSbHIVWkqjusiYICCAogKIAgXqdOsTp1ipaK0+GAEnotdtHoOhxQQq/FLooQxFmr5JaSdcayVsktJetECeI8KFMylpLMHFGCONdk5hvLEzLXRAni9Mu0mmM0D7lXpk+UIM4puceMpkvupChBnK/k1kvVMsVauQOiBHEuOSfzuI/Usk2XzCmXRQlibZN7y1ZTDXePrd6Q2yZSEOtTvXJrnPakSvP1WiN30k6RUrEGvei4Vpm5jut1xLemesrTSird8LJBkVLxzlhun0olJW+qZple0YJ6fGG1QWP5zypfqkOqPtv9Yp/partuqSPqkqrXQQ/bbKXUSDftsFG/OqXq1+91W71kiQUStw363n67/WYcUuPzqy22SM3Wjj/1uWncUhNx0wUXTFhQAEEBBAUQFEBQAEEBBAUQFEBQAEEBBAUQFECQ65NrMxna5PqUBbkTcs+ZDM/L/aQslTsj97kFDhrQONMs8rbcGWWJSp94TXNst1pZUOkdf2iG372rQlBpwHLNsMINFVoMdd5u3WabPD96xglDJKpZ5QXdpmmsf3xnv4+NkKity3SN87cT7hrD/w1CmKiWHePxAAAAAElFTkSuQmCC"},plus:{size:17,uri:"data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAADMAAAAzCAQAAACQqPihAAAAz0lEQVR4Ae3BIVLDUBiF0S+XDrZLqE3dYwcgqzAVkSyARXQtVSBRlbADcLwtICur2slE8ZKKfzK96p1DVVVhd0Qltpz4I6Qh5pFPek98ESBiXhh0hIiYM4N7QoSFsBAWwkJYCAthISyEhbAQFgvGWjYsmZYYPLBj2pEDmUJDqeWXudZk/hGljvk6CqL0xlxn9hQaxlo2LJn2TKL3wwfTjhzIFBaMZTLXrEj0vtkRICyEhbAQFsJCWAgLYSEshIWwEBYi5p3BnhtLvJKoqurmLoEZGakNbs0TAAAAAElFTkSuQmCC"},search:{size:20,uri:"data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAADwAAAA8CAQAAACQ9RH5AAAD2UlEQVR4Ae3Ba2hVdQAA8N85N4uVbbdNp1ExI3siZBaVICwqTPOxJkX0dFAQRkEfioqooIIeBNH7TU8xorqFKT0QsQ/21KQoKkt3Mc3RXG5mq0zrw/HfvXeeM+92WV/y97PPPiMlUr16c03W4giHO8xGG/yo0ypL9RmySDXGu9gsZ8qyzNsW6TIEkb0Z42YL1Nmbfo+4T7cqRQbT6AbXO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qL97PO/8g+Ihe5zzyrCeQAAAABJRU5ErkJggg=="},check:{size:16,uri:"data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAADAAAAAwCAQAAAD9CzEMAAABVUlEQVR4Ae3Bu20UQQAA0Lde13AF0AQSLZglQISklphxAUAdyDOSJXIyMlIaOG0CLTAShBTgI1jGd+fznu+XgPY9k8nkP9A4pdfeWXjrizut0wk+mpl55oOFv86cSpAMGivOnUZ0rXrv1p0zpxBcq6JPVjSOFyRVlK1pHCtIqii7p3GcIKmibEPjGEFSRdkDGocLkirKHtQ4VJBUUTaicZggqaJsVGvVhc+C377ZLkqqKNuitXTuqydmXip644KkirKtzqxaGNy4NCZIqih7RGvpVvHKoPPT3KYoqa5kj2qt+q7oDJ4reuuCpIqyHbTW9YrOoFP0loKkirKdtO7rFZ1Bp+gNgqSKsh21NvWKzqBT9AiSKsp21npIr+gMOsVTSRVle2iMeSPbFGV7aY2Z++XCuivZnlrj5orOUpTtrbVNr+gMouwAre16P7zApRuTyWTyz/oDUB1ZN9kNGUEAAAAASUVORK5CYII="},file:{size:16,uri:"data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAADAAAAAwCAQAAAD9CzEMAAABtElEQVR4Ad3Bv2rUcAAA4K+/ZndUXARBIp3cxEkQHYq4aOmiHQTvQH0GIw30DYTK3WhdgqBu/sHdQe2mzQNY6wM4V0oI5rze7+5yZNDv889bMm7DTZecNN03W56LWjLqlOeumMcD2yKWjXrjsvlct++LiZY13fPQ/G746ZMJEk23VF54ZM9kh0Zt46ljBU2XVB7bM4u+2raeYwVNJ1S+ms1QX22g5xjBYob6agM9Y4JFDfXVBnr+EixuqK820DMiaONAZUVl6IHawG0NQRu7KpvOqWy7r7alIdHGwKoja9aMO6MhaOOVD2aUiFmXS1VKmULtjmeumkEQk0vVUrk/Dlyz4aV9UyTa27Fj1KExQUymVCtlWkjEFAoLCjoWdCzoWCJmXS4VV8oUJgpicqlpUrmIoGNBTKY0TSkTkYgpFBYUdCzoWNCxRMy6XCqulClMFMTkUtOkchFBx4KYTGmaUiYiEVMoLCjoWNCxoGNB04HKijZWVH5oCJp2VTadM6/zNlU+a0g0Da06smZNe080BE0vfbCo195qWDbqnQvOau+9u35pWDLujpsuOm0+3330yo7/zm9pA1VwIYzMRQAAAABJRU5ErkJggg=="},message:{size:20,uri:"data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAADwAAAA8CAQAAACQ9RH5AAAD+UlEQVR4Ae3Bf4iW9QEA8M/7vVfIS67uamWlcZW1cE7SrD8qNK2z2hzbXJ60QtoUrP5IiiiSKJIiCIoo65/KiDIz1jbJ+WtalDXH8kedyVwL71REa8w8Uy/jrDievu/zvK/v/X76z8/HCSf8WAr65wzXmORnGtSpU2efXfbZY7s1tuuHgr76rWtdbbTutVltueX6pKAvrrHQxfpmk7k26VVBby72pBv0x3dedZ+9elTQkwYLzFXUfwc1W60HBd1rtN4IlfZYYa1W++33pQb16l3kJtNUesgC3SrozgjrNcra4Qlrfaq6er93j0ZZy9zssKoKqhvufRdI7fegZ/XuNgv8RGqrKxxSRY1qhnvPKKnHzPC+vthooVNdLjrTWEtUUaOa1S4RtbvSq47qq04r7PJLQeIiRe84To3jNbtb9JUmG/XXR9aZbqjERC22q1Cj0lCrDJM4pMm/DMRuG8wSJH7lLV8oU6PSI64XzbHCQO10wA0SQ1zmeWWCcue5T/S2VwzG014WTXClMkG5eaKj5hisuTaL5isTZA1xq+hRrQbrqDmiXxgjI8j6tVMkDntcHrb4h+h+GUHWH0VLHJWPp0UzBCVB6izXiRbJy5s+lxhitJIgNUWQ+NQGeem0XDReSZC6UPSiPG0TjVMSpC4UrZenbaLxSoLUKNE+edommqAkSI0W7ZanA6JawQ+C6DTDJNp1ylOtqMO3fhBEQTREvk4WtSsJov/pkKh1ujydLDqoJEjtEDXKU62oXUmQahM1ytNwUbuSINUqapSnJtG/lQSpNtFUeZoqWqMkSK0RNblAXkb4qcQx7ygJUlttEt0lL9eLPnBYSZD1gugP6uTjDtEa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5JYaZ7xjnwazDRYrRpmplg+b5qjJLFSTZHfSDPUpshjtpTfJUqUUaq/GWUf+YwyxLNqz12+J7/pblWijNK95AL95NMs1qa2XOsy+S13nC+VKKN0ayxzgvwO1ald7fiRaQq5SLuSZfTGW46wvfyO8h9/URsu9huFtPmhXsjonTkm2Ux+x9ngJdV3jRsU0unbVuqFjN7p9K7TFXKYkZ5WTZF7XKawE3XolYzeel+jcQo5wN5m2qg6+njcGQq7wZ16KaP35jjaSIXs4UizrZS+7fxJi8LmOku3XsrovY2eMdHmChnpXAsskq5j/dlOCltuvFV6LaMcVmpztgaF9HemAVptlI4Gv3aTfgpb7QgfKIOM8vjEfKeLFRI52Ck6LFF54z3teMVY7yivKYuMcllkoVNEChtukl3MtUrlbOUuvzJcMTY6zWxlklE+71rmGMXZ10UG67Ba+Q03ze/tr1jnmaFsMsrpDesdpjh9HexKA73tC+WzpWs97iB9FOtKtymjSLlNdqdI8f7nCXdq01uRw012kr6K1+1805VVpPxO9pA+kvnQXab7TGmaTDLZLpJZ51RPKrNIJbSYZYCkNnhHu3navadbYZE9NBur2Z4yklrpeC8qu0hl7O95w5RqjYUWWmihT6y00krL0KRRo0Yj7WF3u9ldf6X6r+/oUAGRStneow5Um+Y73r9UREaldLnXQM1qTbcbnW6FCsmonI2e85Zj9FM7upzodhtVTKTStvdH+6kN833XEhUVqbwGl7raQNXV5adutkGFRdIxwi+dLVId3e5zpWVSEEnPWPfYU/reNsl8KYmkKXaSqcZIT7vrPalbaiLpO8xUR6i8512vVcoi1THKec62rcpY4gHTLVIFkeqJtZjoZAOUzypPuN8c3aokUm39NGsxwVibKd1a87RpNc9aVRWpFf2NM8Eh9jVE8ZZZ4BWt5vpSTYjUnhF2t6c97GawzQ2wuc01YoXVVltttc+97z3vesdngiAIgiAIgiAIgiAIgiAIgiAIgiAIgiAIgiAIgoL+D/kco6VOaO7DAAAAAElFTkSuQmCC"}};function Ut(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 Gt(e){let t=/* @__PURE__ */new Map,r=/* @__PURE__ */new Map,n=/* @__PURE__ */new Map,i=t=>{let r=n.get(t);if(!r){let{fontWeight:i,...o}=Et[t];r={...o,...Ut(Nt[t].font==="mono"?e.fonts?.mono:e.fonts?.sans,i)},n.set(t,r)}return r};return{options:e,v(e){let r=t.get(e);return r||(r={...Dt[e]},t.set(e,r)),r},t(e){let t=r.get(e);return t||(t={...Dt[e],...i(e)},r.set(e,t)),t},tx:i}}var Mt=/* @__PURE__ */Gt({}),Kt=/* @__PURE__ */e.createContext(Mt);function ShopKitProvider({fonts:t,renderIcon:r,children:n}){let i=e.useMemo(()=>Gt({...t?{fonts:t}:{},...r?{renderIcon:r}:{}}),[t,r]);return e.createElement(Kt.Provider,{value:i},n)}function Zt(){return e.useContext(Kt)}function Yt(e){return Et[e].color??"#000000"}function Decor({k:r}){let n=Nt[r],i=Dt[r].borderRadius??0,o=[];if(n.ring){let r=t.Platform.OS==="web"?{boxShadow:`inset 0 0 0 ${n.ring.width}px ${n.ring.color}`}:{borderWidth:n.ring.width,borderColor:n.ring.color};o.push(e.createElement(t.View,{key:"ring",pointerEvents:"none",style:[{position:"absolute",top:0,right:0,bottom:0,left:0,borderRadius:i},r]}))}return n.insetBottom&&o.push(e.createElement(t.View,{key:"bar",pointerEvents:"none",style:{position:"absolute",right:0,bottom:0,left:0,height:n.insetBottom.width,backgroundColor:n.insetBottom.color}})),n.lineTop&&o.push(e.createElement(t.View,{key:"top",pointerEvents:"none",style:{position:"absolute",right:0,top:-n.lineTop.width,left:0,height:n.lineTop.width,backgroundColor:n.lineTop.color}})),n.lineBottom&&o.push(e.createElement(t.View,{key:"bottom",pointerEvents:"none",style:{position:"absolute",right:0,bottom:-n.lineBottom.width,left:0,height:n.lineBottom.width,backgroundColor:n.lineBottom.color}})),o.length?o:null}function Jt(e){let r=Nt[e].drop;return r?t.Platform.OS==="web"?{boxShadow:`${r.x}px ${r.y}px ${r.blur}px ${r.spread}px ${r.color}`}:{shadowColor:r.color,shadowOpacity:1,shadowRadius:r.blur/2,shadowOffset:{width:r.x,height:r.y}}:null}function Icon({name:r,size:n,color:i,style:o}){let l=Zt().options.renderIcon?.({name:r,size:n,color:i});if(l!=null)return e.createElement(t.View,{style:[{width:n,height:n},o],pointerEvents:"none"},l);let a=[{width:n,height:n,tintColor:i},o];return e.createElement(t.Image,{source:{uri:qt[r].uri},style:a,accessible:false,importantForAccessibility:"no",resizeMode:"contain"})}function PartIcon({name:t,k:r,inkKey:n,style:i}){let o=Dt[r];return e.createElement(Icon,{name:t,size:o.width??24,color:Yt(n??r),style:[o.marginTop?{marginTop:o.marginTop}:null,i]})}function T({k:r,style:n,children:i,lines:o,role:l,bare:a}){let s=Zt();return e.createElement(t.Text,{style:[a?s.tx(r):s.t(r),Qt(r),n],...Xt(r),...o?{numberOfLines:o}:{},...l?{accessibilityRole:l}:{}},i)}function Xt(e){return Nt[e].wrap?t.Platform.OS==="web"?{}:t.Platform.OS==="ios"?{lineBreakStrategyIOS:"standard"}:{textBreakStrategy:"balanced"}:{}}function Qt(e){let r=Nt[e].wrap;return r&&t.Platform.OS==="web"?{textWrap:r}:null}function _t(e){let t=Nt[e].underlineOffset;return t?{textUnderlineOffset:t}:{}}function Press({onPress:r,disabled:n,label:i,style:o,children:l,role:a="button",selected:s,hitSlop:d}){return e.createElement(t.Pressable,{...d?{hitSlop:d}:{},onPress:n?void 0:r,disabled:n===true,accessibilityRole:a,...i?{accessibilityLabel:i}:{},accessibilityState:{disabled:n===true,...s!==void 0?{selected:s,checked:s}:{}},style:o},l)}function $t(e){return e.replace(/\s*→$/,"")}var er=e.createContext({go:()=>{},openExternal:()=>{}});function ShopNativeNavProvider({value:t,children:r}){return e.createElement(er.Provider,{value:t},r)}function tr(){return e.useContext(er)}var rr=/* @__PURE__ */Object.freeze({color:/* @__PURE__ */Object.freeze({efDarkGreen:"#10462E",efWhite:"#FFFFFF",efBlack:"#000000",efDustyPink:"#FFC3BC",efBrightGreen:"#07C168",efYellow:"#F2C763",efDustyBlue:"#A8B9DA",efSkyBlue:"#4E98C9",efCharcoal:"#3D3D3D",efIconHoney:"#926F06",efIconLeaf:"#16864A",efIconSky:"#1E7AB7",efIconTeal:"#05827E",efIconCocoa:"#865B3F",efIconNavy:"#223E80",efIconBerry:"#B6407F",efIconAmber:"#B25E05",efIconMoss:"#5E7E1E",efIconSlate:"#5A6087",efIconRose:"#CA4463",efRedDeep:"#6D1D14",efRedBright:"#C03410",bg:"#FFFFFF",bgBrand:"#10462E",bgAccent:"#FFC3BC",bgAccentB2b:"#A8B9DA",bgWarm:"#F2C763",text:"#000000",textBrand:"#10462E",textOnBrand:"#FFFFFF",textCta:"#07C168",textMuted:"#6B6B6B",bgMist:"#F1F5F2",border:"#E4E4E4",borderStrong:"#3D3D3D",hi:"#DAF6E8",hiStrong:"#ABEACC",hiEdge:"#0B8A4E",now:"#0C844B",alert:"#C03410",alertDeep:"#6D1D14",btnPrimaryBg:"#10462E",btnPrimaryText:"#FFFFFF",btnSecondaryBg:"rgba(0, 0, 0, 0)",btnSecondaryText:"#10462E",btnSecondaryBorder:"#10462E",mixMint:"#7FE8AE",mixLegal:"#A9C4B5",mixPromptGreen:"#BFEFD8",mixPromptYellow:"#F7DC9E",mixRx:"#E0E6F2",mixShelf:"#F3F3F3",mixEar:"#F09FA3",efBone:"#FAF9F6",efTennisBall:"#DCEF5A",efFawn:"#E8CAA4",efPine:"#12301F",efPine70:"rgba(18, 48, 31, 0.72)",efLiver:"#7A4330",efMerle:"#AEB8C1",efNose:"#E9B6A6"}),font:/* @__PURE__ */Object.freeze({family:/* @__PURE__ */Object.freeze({base:'Azeret, "Helvetica Neue", Arial, sans-serif',mono:'"Azeret Mono", ui-monospace, "SF Mono", Menlo, monospace'}),size:/* @__PURE__ */Object.freeze({xs:13,sm:15,md:17,lg:20,xl:24,"2xl":32,"3xl":40,"4xl":56}),lineHeight:/* @__PURE__ */Object.freeze({body:1.55,display:1.15}),weight:/* @__PURE__ */Object.freeze({regular:400,medium:500,bold:700})}),space:/* @__PURE__ */Object.freeze({1:4,2:8,3:12,4:16,5:24,6:32,7:48,8:64,9:96}),radius:/* @__PURE__ */Object.freeze({sm:6,md:10,lg:20,xl:28,pill:999}),shadow:/* @__PURE__ */Object.freeze({sm:/* @__PURE__ */Object.freeze({x:0,y:1,blur:2,spread:0,color:"rgba(16, 70, 46, 0.06)"}),md:/* @__PURE__ */Object.freeze({x:0,y:4,blur:16,spread:0,color:"rgba(16, 70, 46, 0.08)"})}),layout:/* @__PURE__ */Object.freeze({container:1200,containerNarrow:720}),motion:/* @__PURE__ */Object.freeze({easing:/* @__PURE__ */Object.freeze({out:/* @__PURE__ */Object.freeze([.23,1,.32,1]),inOut:/* @__PURE__ */Object.freeze([.77,0,.175,1]),drawer:/* @__PURE__ */Object.freeze([.32,.72,0,1]),expo:/* @__PURE__ */Object.freeze([.16,1,.3,1]),bark:/* @__PURE__ */Object.freeze([.34,1.56,.64,1])}),duration:/* @__PURE__ */Object.freeze({press:160,fade:200,enter:300,sheet:420,sheetOut:240,draw:900})}),web:/* @__PURE__ */Object.freeze({serif:'Azeret, "Helvetica Neue", Arial, sans-serif',sans:'Azeret, "Helvetica Neue", Arial, sans-serif',tSmall:14,max:1312}),role:/* @__PURE__ */Object.freeze({color:/* @__PURE__ */Object.freeze({ink:"#10462E",go:"#07C168",muted:"#6B6B6B",line:"#E4E4E4",pink50:"#FFE1DE",tintSage:"#E6ECE8",tintPink:"#FFEAE8",tintPinkSoft:"#FFF6F5",tintBlue:"#EAEEF6",tintYellow:"#FCF0D6",tintYellowEdge:"#F6D892",tintRed:"#FBF1EE",tintGo:"#DCF6EA",icoGrey:"#6B6B6B",icoSage:"#819E90",icoBlue:"#4E98C9",icoWarm:"#D6D0C2",icoAmber:"#B67B3F",amberText:"#A05E32",wxSun:"#F2C763",wxSunEdge:"#D5AD47",wxCloud:"#FFFFFF",wxCloudEdge:"#DEDEDE",wxCloudDark:"#EAEAEA",wxCloudDarkEdge:"#C5C5C5",wxRain:"#75AFD5",wxSnow:"#AFD1E7",wxMist:"#D4D4D4",cwShelf:"#FFFFFF",cwShelfDeep:"#F1F4F2",cwRx:"#E0E6F2",cwRxInk:"#5A6087",cwEdgeC:"#C6D3CD",nItch:"#CA4463",nJoints:"#5E7E1E",nItchC:"#FFC3BC",nJointsC:"#D8E0C9",lvlGood:"#77DDAC",lvlOk:"#F4CF7A",lvlHot:"#DC8F7C",lvlStorm:"#8DA4BB",mapLand:"#F5F5F5",mapEdge:"#EAEAEA",mapPark:"#D7F5E7",mapWater:"#D8E0EE",mapSand:"#FCF3DD"}),size:/* @__PURE__ */Object.freeze({max:1440,gutter:16,sideW:220,cardPad:16,barH:48,tabH:58,dock:64,side:16,stackGap:12})})});var nr={shown:true,padding:[0,0,0,0],marginTop:0,marginBottom:0,gap:[0,0],minHeight:0,radius:[0,0],bg:"none",edge:{width:0,color:"line",ring:false},shadow:{color:"",x:0,y:0,blur:0,spread:0},center:false,color:"text",fit:"cover",x:0,y:0,dy:0},ir={shown:true,color:"text",tracking:0,face:"sans",upper:false,wrap:"pretty",tabular:false,deco:"none",decoOffset:0,decoThickness:0,marginTop:0,paddingTop:0},or=e=>({...nr,...e}),lr=e=>({...ir,...e}),ar={button:{ink:{fill:false,minHeight:52,paddingX:24,gap:8,borderWidth:1.5,ring:false,fontSize:17,fontWeight:700,lineHeight:1,iconSize:24},go:{fill:false,minHeight:52,paddingX:24,gap:8,borderWidth:1.5,ring:false,fontSize:17,fontWeight:700,lineHeight:1,iconSize:24},outline:{fill:false,minHeight:52,paddingX:24,gap:8,borderWidth:1.5,ring:false,fontSize:17,fontWeight:400,lineHeight:1,iconSize:24},pink:{fill:true,minHeight:60,paddingX:16,gap:8,borderWidth:1,ring:false,fontSize:18,fontWeight:700,lineHeight:1,iconSize:24},danger:{fill:false,minHeight:46,paddingX:16,gap:8,borderWidth:1.5,ring:false,fontSize:15,fontWeight:700,lineHeight:1.55,iconSize:20},inkSm:{fill:false,minHeight:46,paddingX:16,gap:8,borderWidth:1.5,ring:false,fontSize:15,fontWeight:700,lineHeight:1,iconSize:20},goSm:{fill:false,minHeight:46,paddingX:16,gap:8,borderWidth:1.5,ring:false,fontSize:15,fontWeight:700,lineHeight:1,iconSize:20},outlineSm:{fill:false,minHeight:46,paddingX:16,gap:8,borderWidth:1.5,ring:false,fontSize:15,fontWeight:400,lineHeight:1,iconSize:20},pinkSm:{fill:true,minHeight:46,paddingX:16,gap:8,borderWidth:1,ring:false,fontSize:15,fontWeight:700,lineHeight:1,iconSize:20},row:{fill:false,minHeight:36,paddingX:14,gap:8,borderWidth:1.5,ring:false,fontSize:14,fontWeight:400,lineHeight:1,iconSize:17},outlineInSheetWeight:700,money:{fill:false,minHeight:52,paddingX:24,gap:8,borderWidth:1,ring:false,fontSize:17,fontWeight:700,lineHeight:1,iconSize:24,bg:"pink",fg:"ink",edgeColor:"ink"},moneySm:{fill:false,minHeight:46,paddingX:16,gap:8,borderWidth:1,ring:false,fontSize:15,fontWeight:700,lineHeight:1,iconSize:20,bg:"pink",fg:"ink",edgeColor:"ink"},warn:{fill:false,minHeight:52,paddingX:24,gap:8,borderWidth:1.5,ring:false,fontSize:17,fontWeight:700,lineHeight:1,iconSize:24,bg:"none",fg:"alertDeep",edgeColor:"alert"},warnSm:{fill:false,minHeight:46,paddingX:16,gap:8,borderWidth:1.5,ring:false,fontSize:15,fontWeight:700,lineHeight:1,iconSize:20,bg:"none",fg:"alertDeep",edgeColor:"alert"},text:{fontSize:15,fontWeight:700,lineHeight:1.4,color:"ink",pressOpacity:.6}},pill:{minHeight:24,paddingX:10,fontSize:12,fontWeight:700,lineHeight:1,letterSpacing:.72,ring:{soon:1.25,overdue:1.25,clear:1.5,later:1.25,plain:1.5,new:1.5},plainRingAlpha:.2,dot:6,dotGap:6,allergyDot:{size:6,gap:6,color:"alert"},mono:true,upper:true,tones:{rx:{bg:"#E0E6F2",fg:"ink",ring:0,ringColor:"ink"},soon:{bg:"surface",fg:"ink",ring:1.25,ringColor:"tintYellowEdge"},overdue:{bg:"surface",fg:"alert",ring:1.25,ringColor:"alert"},clear:{bg:"surface",fg:"go",ring:1.5,ringColor:"go"},stable:{bg:"tintGo",fg:"ink",ring:0,ringColor:"ink"},later:{bg:"surface",fg:"muted",ring:1.25,ringColor:"line"},plain:{bg:"surface",fg:"ink",ring:1.5,ringColor:"ink/0.2"},new:{bg:"surface",fg:"ink",ring:1.5,ringColor:"go"},pink:{bg:"tintPink",fg:"ink",ring:0,ringColor:"ink"},watch:{bg:"#F9E6B9",fg:"ink",ring:0,ringColor:"ink"},high:{bg:"surface",fg:"alert",ring:1.25,ringColor:"alert"},allergy:{bg:"surface",fg:"alertDeep",ring:1.25,ringColor:"alert"}}},chip:{minHeight:42,paddingX:16,gap:8,borderWidth:1,fontSize:15,fontWeight:500,lineHeight:1.3},card:{padding:16,radius:20,borderWidth:1,titleSize:18,titleWeight:700,titleLineHeight:1.25,titleTracking:-.36,titleGap:12,leadSize:15,leadLineHeight:1.5,leadGap:12,headGapX:16,headGapY:8,headGap:12,bodySize:17,bodyLineHeight:1.55,ghost:{borderStyle:"dashed",borderColor:"#B9C9C2"}},sectionHeader:{gapX:12,gapY:8,marginTop:8},kicker:{fontSize:12,fontWeight:700,lineHeight:1.55,letterSpacing:.96,gap:8},quantityStepper:{borderWidth:1,borderColor:"line",ring:false,button:40,icon:18,valueMinWidth:28,offColor:"line",offOpacity:1,valueSize:17,valueWeight:700,valueLineHeight:1.55},tabs:{minHeight:44,gap:6,fontSize:15,fontWeight:500,currentWeight:700,lineHeight:1.55,indicator:3,hairline:1,dot:7},sheet:{radius:28,grabHeight:20,grabBarWidth:36,grabBarHeight:5,grabBarRadius:3,headPaddingTop:4,headPaddingX:16,headPaddingBottom:12,headGap:12,titlesGap:2,titleSize:18,close:36,closeIcon:20,bodyGap:12,bodyPaddingX:16,bodyPaddingBottom:24,actsGap:12,actsMarginTop:4},empty:{gap:8,titleSize:22,titleWeight:500,titleLineHeight:1.2,titleTracking:-.33,leadSize:15,leadLineHeight:1.5,actsGap:12,actsMarginTop:12,buttonMinWidth:200,linkMinHeight:44,linkPaddingX:4,linkSize:15,linkWeight:700,linkUnderlineOffset:3},skeleton:{gap:10,lineHeight:12,widths:[100,82,64]},summary:{paddingX:24,paddingY:0,radius:20,borderWidth:1,background:"surface",shadow:{color:"",x:0,y:0,blur:0,spread:0},rowDivider:1,rowMinHeight:0,rowCenter:false,rowPaddingY:14,termColor:"muted",valueColor:"ink",tabular:false,totalRowMinHeight:0,totalTermSize:15,totalTermWeight:400,totalTermColor:"muted",totalWeight:700,rowGapX:16,rowGapY:2,termSize:15,termLineHeight:1.55,valueSize:15,valueWeight:700,valueLineHeight:1.4,totalSize:20,totalLineHeight:1.4,off:{shown:true,size:15,weight:700,lineHeight:21,color:"go",tracking:0,face:"sans",upper:false,wrap:"pretty",tabular:false,deco:"none",decoOffset:0,decoThickness:0,marginTop:0,paddingTop:0}},icon:{size:24},timeline:{row:{shown:true,w:361,h:69.281,padding:[0,0,24,0],marginTop:0,marginBottom:0,gap:[16,16],minHeight:0,radius:[0,0],bg:"none",edge:{width:0,color:"line",ring:false},shadow:{color:"",x:0,y:0,blur:0,spread:0},center:false,color:"text",fit:"cover",x:0,y:0,dy:0},done:{shown:true,w:28,h:28,padding:[0,0,0,0],marginTop:0,marginBottom:0,gap:[0,0],minHeight:0,radius:[14,14],bg:"ink",edge:{width:2,color:"ink",ring:false},shadow:{color:"",x:0,y:0,blur:0,spread:0},center:true,color:"surface",fit:"cover",x:0,y:0,dy:0},now:{shown:true,w:28,h:28,padding:[0,0,0,0],marginTop:0,marginBottom:0,gap:[0,0],minHeight:0,radius:[14,14],bg:"surface",edge:{width:2,color:"ink",ring:false},shadow:{color:"",x:0,y:0,blur:0,spread:0},center:true,color:"text",fit:"cover",x:0,y:0,dy:0},next:{shown:true,w:28,h:28,padding:[0,0,0,0],marginTop:0,marginBottom:0,gap:[0,0],minHeight:0,radius:[14,14],bg:"surface",edge:{width:2,color:"line",ring:false},shadow:{color:"",x:0,y:0,blur:0,spread:0},center:true,color:"text",fit:"cover",x:0,y:0,dy:0},nowInner:{size:10,color:"go"},check:{shown:true,w:16,h:16,padding:[0,0,0,0],marginTop:0,marginBottom:0,gap:[0,0],minHeight:0,radius:[0,0],bg:"none",edge:{width:0,color:"line",ring:false},shadow:{color:"",x:0,y:0,blur:0,spread:0},center:false,color:"surface",fit:"cover",x:0,y:0,dy:0},lineDoneDone:{x:13,top:30,bottom:2,width:2,color:"ink"},lineDoneNow:{x:13,top:30,bottom:2,width:2,color:"ink"},lineNowNext:{x:13,top:30,bottom:2,width:2,color:"line"},title:{shown:true,size:17,weight:700,lineHeight:22.1,color:"ink",tracking:0,face:"sans",upper:false,wrap:"pretty",tabular:false,deco:"none",decoOffset:0,decoThickness:0,marginTop:0,paddingTop:3},head:{shown:true,w:317,h:27,padding:[3,0,0,0],marginTop:0,marginBottom:0,gap:[8,4],minHeight:0,radius:[0,0],bg:"none",edge:{width:0,color:"line",ring:false},shadow:{color:"",x:0,y:0,blur:0,spread:0},center:true,color:"ink",fit:"cover",x:0,y:0,dy:0},nextTitle:{shown:true,size:17,weight:700,lineHeight:22.1,color:"muted",tracking:0,face:"sans",upper:false,wrap:"pretty",tabular:false,deco:"none",decoOffset:0,decoThickness:0,marginTop:0,paddingTop:3},when:{shown:true,size:13,weight:400,lineHeight:18.2,color:"muted",tracking:0,face:"sans",upper:false,wrap:"pretty",tabular:false,deco:"none",decoOffset:0,decoThickness:0,marginTop:2,paddingTop:0},text:{shown:true,size:15,weight:400,lineHeight:22.5,color:"text",tracking:0,face:"sans",upper:false,wrap:"pretty",tabular:false,deco:"none",decoOffset:0,decoThickness:0,marginTop:2,paddingTop:0}},thumbnail:{xs:{frame:{shown:true,w:48,h:48,padding:[0,0,0,0],marginTop:0,marginBottom:0,gap:[0,0],minHeight:0,radius:[6,6],bg:"surface",edge:{width:1,color:"line",ring:true},shadow:{color:"",x:0,y:0,blur:0,spread:0},center:false,color:"text",fit:"contain",x:0,y:0,dy:0},img:{shown:false,w:48,h:48,padding:[0,0,0,0],marginTop:0,marginBottom:0,gap:[0,0],minHeight:0,radius:[6,6],bg:"surface",edge:{width:1,color:"line",ring:true},shadow:{color:"",x:0,y:0,blur:0,spread:0},center:false,color:"text",fit:"contain",x:0,y:0,dy:0},empty:{shown:true,w:48,h:48,padding:[0,0,0,0],marginTop:0,marginBottom:0,gap:[0,0],minHeight:0,radius:[10,10],bg:"none",edge:{width:0,color:"line",ring:false},shadow:{color:"",x:0,y:0,blur:0,spread:0},center:true,color:"#1E7AB7",fit:"cover",x:0,y:0,dy:0},icon:{shown:true,w:22,h:22,padding:[0,0,0,0],marginTop:0,marginBottom:0,gap:[0,0],minHeight:0,radius:[0,0],bg:"none",edge:{width:0,color:"line",ring:false},shadow:{color:"",x:0,y:0,blur:0,spread:0},center:false,color:"#1E7AB7",fit:"cover",x:0,y:0,dy:0},top:false},sm:{frame:{shown:true,w:64,h:64,padding:[8,8,8,8],marginTop:0,marginBottom:0,gap:[0,0],minHeight:0,radius:[14,14],bg:"#F3F3F3",edge:{width:0,color:"line",ring:false},shadow:{color:"",x:0,y:0,blur:0,spread:0},center:false,color:"text",fit:"cover",x:0,y:0,dy:0},img:{shown:true,w:48,h:48,padding:[0,0,0,0],marginTop:0,marginBottom:0,gap:[0,0],minHeight:0,radius:[0,0],bg:"none",edge:{width:0,color:"line",ring:false},shadow:{color:"",x:0,y:0,blur:0,spread:0},center:false,color:"text",fit:"contain",x:0,y:0,dy:0},empty:{shown:true,w:64,h:64,padding:[8,8,8,8],marginTop:0,marginBottom:0,gap:[0,0],minHeight:0,radius:[14,14],bg:"#F3F3F3",edge:{width:0,color:"line",ring:false},shadow:{color:"",x:0,y:0,blur:0,spread:0},center:false,color:"text",fit:"cover",x:0,y:0,dy:0},icon:{shown:true,w:22,h:22,padding:[0,0,0,0],marginTop:0,marginBottom:0,gap:[0,0],minHeight:0,radius:[0,0],bg:"none",edge:{width:0,color:"line",ring:false},shadow:{color:"",x:0,y:0,blur:0,spread:0},center:false,color:"#1E7AB7",fit:"cover",x:0,y:0,dy:0},top:false},md:{frame:{shown:true,w:156,h:156,padding:[0,0,0,0],marginTop:0,marginBottom:6,gap:[0,0],minHeight:0,radius:[20,20],bg:"#F5F5F5",edge:{width:0,color:"line",ring:false},shadow:{color:"",x:0,y:0,blur:0,spread:0},center:false,color:"text",fit:"cover",x:0,y:0,dy:0},img:{shown:true,w:156,h:156,padding:[10,10,10,10],marginTop:0,marginBottom:0,gap:[0,0],minHeight:0,radius:[0,0],bg:"none",edge:{width:0,color:"line",ring:false},shadow:{color:"",x:0,y:0,blur:0,spread:0},center:false,color:"text",fit:"contain",x:0,y:0,dy:0},empty:{shown:true,w:156,h:156,padding:[0,0,0,0],marginTop:0,marginBottom:6,gap:[0,0],minHeight:0,radius:[20,20],bg:"#F5F5F5",edge:{width:0,color:"line",ring:false},shadow:{color:"",x:0,y:0,blur:0,spread:0},center:false,color:"text",fit:"cover",x:0,y:0,dy:0},icon:{shown:true,w:22,h:22,padding:[0,0,0,0],marginTop:0,marginBottom:0,gap:[0,0],minHeight:0,radius:[0,0],bg:"none",edge:{width:0,color:"line",ring:false},shadow:{color:"",x:0,y:0,blur:0,spread:0},center:false,color:"#1E7AB7",fit:"cover",x:0,y:0,dy:0},top:false},lg:{frame:{shown:true,w:174.5,h:174.5,padding:[0,0,0,0],marginTop:0,marginBottom:8,gap:[0,0],minHeight:0,radius:[20,20],bg:"#F3F3F3",edge:{width:0,color:"line",ring:false},shadow:{color:"",x:0,y:0,blur:0,spread:0},center:false,color:"text",fit:"cover",x:0,y:0,dy:0},img:{shown:true,w:174.5,h:174.5,padding:[14,14,18,14],marginTop:0,marginBottom:0,gap:[0,0],minHeight:0,radius:[0,0],bg:"none",edge:{width:0,color:"line",ring:false},shadow:{color:"",x:0,y:0,blur:0,spread:0},center:false,color:"text",fit:"contain",x:0,y:0,dy:0},empty:{shown:true,w:174.5,h:174.5,padding:[0,0,0,0],marginTop:0,marginBottom:8,gap:[0,0],minHeight:0,radius:[20,20],bg:"#F3F3F3",edge:{width:0,color:"line",ring:false},shadow:{color:"",x:0,y:0,blur:0,spread:0},center:false,color:"text",fit:"cover",x:0,y:0,dy:0},icon:{shown:true,w:22,h:22,padding:[0,0,0,0],marginTop:0,marginBottom:0,gap:[0,0],minHeight:0,radius:[0,0],bg:"none",edge:{width:0,color:"line",ring:false},shadow:{color:"",x:0,y:0,blur:0,spread:0},center:false,color:"#1E7AB7",fit:"cover",x:0,y:0,dy:0},top:false}},text:{display:{shown:true,size:40,weight:500,lineHeight:39.2,color:"ink",tracking:-1.2,face:"sans",upper:false,wrap:"pretty",tabular:false,deco:"none",decoOffset:0,decoThickness:0,marginTop:0,paddingTop:0},headline:{shown:true,size:30,weight:500,lineHeight:33,color:"ink",tracking:-.45,face:"sans",upper:false,wrap:"pretty",tabular:false,deco:"none",decoOffset:0,decoThickness:0,marginTop:0,paddingTop:0},title:{shown:true,size:22,weight:500,lineHeight:26.4,color:"ink",tracking:-.33,face:"sans",upper:false,wrap:"pretty",tabular:false,deco:"none",decoOffset:0,decoThickness:0,marginTop:0,paddingTop:0},heading:{shown:true,size:18,weight:700,lineHeight:22.5,color:"ink",tracking:-.36,face:"sans",upper:false,wrap:"pretty",tabular:false,deco:"none",decoOffset:0,decoThickness:0,marginTop:0,paddingTop:0},body:{shown:true,size:17,weight:400,lineHeight:26.35,color:"text",tracking:0,face:"sans",upper:false,wrap:"pretty",tabular:false,deco:"none",decoOffset:0,decoThickness:0,marginTop:0,paddingTop:0},lead:{shown:true,size:15,weight:400,lineHeight:21.75,color:"text",tracking:0,face:"sans",upper:false,wrap:"pretty",tabular:false,deco:"none",decoOffset:0,decoThickness:0,marginTop:0,paddingTop:0},label:{shown:true,size:15,weight:700,lineHeight:21,color:"ink",tracking:0,face:"sans",upper:false,wrap:"pretty",tabular:false,deco:"none",decoOffset:0,decoThickness:0,marginTop:0,paddingTop:0},meta:{shown:true,size:13,weight:400,lineHeight:18.85,color:"muted",tracking:0,face:"mono",upper:false,wrap:"pretty",tabular:false,deco:"none",decoOffset:0,decoThickness:0,marginTop:0,paddingTop:0},caption:{shown:true,size:13,weight:400,lineHeight:19.5,color:"muted",tracking:0,face:"sans",upper:false,wrap:"pretty",tabular:false,deco:"none",decoOffset:0,decoThickness:0,marginTop:0,paddingTop:0},overline:{shown:true,size:12,weight:700,lineHeight:16.8,color:"muted",tracking:.72,face:"mono",upper:true,wrap:"pretty",tabular:false,deco:"none",decoOffset:0,decoThickness:0,marginTop:0,paddingTop:0},kicker:{shown:true,size:12,weight:700,lineHeight:18.6,color:"muted",tracking:.96,face:"mono",upper:true,wrap:"pretty",tabular:false,deco:"none",decoOffset:0,decoThickness:0,marginTop:0,paddingTop:0}},field:{gap:6,label:{shown:true,size:15,weight:700,lineHeight:21,color:"ink",tracking:0,face:"sans",upper:false,wrap:"pretty",tabular:false,deco:"none",decoOffset:0,decoThickness:0,marginTop:0,paddingTop:0},input:{shown:true,w:361,h:52,padding:[0,16,0,16],marginTop:0,marginBottom:0,gap:[10,10],minHeight:52,radius:[10,10],bg:"surface",edge:{width:1.5,color:"line",ring:false},shadow:{color:"",x:0,y:0,blur:0,spread:0},center:true,color:"text",fit:"cover",x:0,y:0,dy:0},focusEdge:"ink",errorEdge:"alert",value:{shown:true,size:17,weight:400,lineHeight:26.35,color:"text",tracking:0,face:"sans",upper:false,wrap:"pretty",tabular:false,deco:"none",decoOffset:0,decoThickness:0,marginTop:0,paddingTop:1},valueInset:[2,1],icon:{shown:true,w:20,h:20,padding:[0,0,0,0],marginTop:0,marginBottom:0,gap:[0,0],minHeight:0,radius:[0,0],bg:"none",edge:{width:0,color:"line",ring:false},shadow:{color:"",x:0,y:0,blur:0,spread:0},center:false,color:"muted",fit:"cover",x:0,y:0,dy:0},area:{shown:true,w:361,h:158,padding:[12,16,12,16],marginTop:0,marginBottom:0,gap:[10,10],minHeight:52,radius:[10,10],bg:"surface",edge:{width:1.5,color:"line",ring:false},shadow:{color:"",x:0,y:0,blur:0,spread:0},center:false,color:"text",fit:"cover",x:0,y:0,dy:0},areaValue:{shown:true,size:17,weight:400,lineHeight:25.5,color:"text",tracking:0,face:"sans",upper:false,wrap:"pretty",tabular:false,deco:"none",decoOffset:0,decoThickness:0,marginTop:0,paddingTop:2},areaValueMinHeight:132,areaInset:[2,2],hint:{shown:true,size:13,weight:400,lineHeight:19.5,color:"muted",tracking:0,face:"sans",upper:false,wrap:"pretty",tabular:false,deco:"none",decoOffset:0,decoThickness:0,marginTop:0,paddingTop:0},error:{shown:true,size:15,weight:400,lineHeight:21.75,color:"alertDeep",tracking:0,face:"sans",upper:false,wrap:"pretty",tabular:false,deco:"none",decoOffset:0,decoThickness:0,marginTop:0,paddingTop:0},placeholder:"muted"},checkbox:{row:{shown:true,w:361,h:45,padding:[0,0,0,0],marginTop:0,marginBottom:0,gap:[12,12],minHeight:0,radius:[0,0],bg:"none",edge:{width:0,color:"line",ring:false},shadow:{color:"",x:0,y:0,blur:0,spread:0},center:false,color:"text",fit:"cover",x:0,y:0,dy:0},labelX:34,box:{shown:true,w:20,h:20,padding:[0,0,0,0],marginTop:1,marginBottom:0,gap:[0,0],minHeight:0,radius:[6,6],bg:"surface",edge:{width:1.5,color:"icoSage",ring:false},shadow:{color:"",x:0,y:0,blur:0,spread:0},center:false,color:"text",fit:"cover",x:0,y:0,dy:0},on:{shown:true,w:20,h:20,padding:[0,0,0,0],marginTop:1,marginBottom:0,gap:[0,0],minHeight:0,radius:[6,6],bg:"ink",edge:{width:1.5,color:"ink",ring:false},shadow:{color:"",x:0,y:0,blur:0,spread:0},center:false,color:"text",fit:"cover",x:0,y:0,dy:0},tick:{w:5,h:10,stroke:2,color:"surface",rotate:45,dy:-1},label:{shown:true,size:15,weight:400,lineHeight:22.5,color:"text",tracking:0,face:"sans",upper:false,wrap:"pretty",tabular:false,deco:"none",decoOffset:0,decoThickness:0,marginTop:0,paddingTop:0},boxed:{shown:true,w:361,h:50.5,padding:[14,16,14,16],marginTop:0,marginBottom:0,gap:[12,12],minHeight:0,radius:[10,10],bg:"bgMist",edge:{width:0,color:"line",ring:false},shadow:{color:"",x:0,y:0,blur:0,spread:0},center:false,color:"text",fit:"cover",x:0,y:0,dy:0}},choice:{row:{shown:true,w:361,h:56.344,padding:[14,16,14,16],marginTop:0,marginBottom:0,gap:[12,12],minHeight:0,radius:[10,10],bg:"surface",edge:{width:1.5,color:"line",ring:false},shadow:{color:"",x:0,y:0,blur:0,spread:0},center:true,color:"text",fit:"cover",x:0,y:0,dy:0},selected:{shown:true,w:361,h:56.344,padding:[14,16,14,16],marginTop:0,marginBottom:0,gap:[12,12],minHeight:0,radius:[10,10],bg:"pink",edge:{width:1.5,color:"ink",ring:false},shadow:{color:"",x:0,y:0,blur:0,spread:0},center:true,color:"text",fit:"cover",x:0,y:0,dy:0},radio:{shown:true,w:20,h:20,padding:[0,0,0,0],marginTop:0,marginBottom:0,gap:[0,0],minHeight:0,radius:[10,10],bg:"surface",edge:{width:1.5,color:"icoSage",ring:false},shadow:{color:"",x:0,y:0,blur:0,spread:0},center:false,color:"text",fit:"cover",x:0,y:0,dy:0},radioOn:{shown:true,w:20,h:20,padding:[0,0,0,0],marginTop:0,marginBottom:0,gap:[0,0],minHeight:0,radius:[10,10],bg:"surface",edge:{width:6,color:"ink",ring:false},shadow:{color:"",x:0,y:0,blur:0,spread:0},center:false,color:"text",fit:"cover",x:0,y:0,dy:0},textX:34,title:{shown:true,size:17,weight:700,lineHeight:22.1,color:"ink",tracking:0,face:"sans",upper:false,wrap:"pretty",tabular:false,deco:"none",decoOffset:0,decoThickness:0,marginTop:0,paddingTop:0},strut:26.35,meta:{shown:true,size:13,weight:400,lineHeight:18.2,color:"muted",tracking:0,face:"sans",upper:false,wrap:"pretty",tabular:false,deco:"none",decoOffset:0,decoThickness:0,marginTop:2,paddingTop:0},end:{shown:true,size:13,weight:400,lineHeight:20.15,color:"muted",tracking:0,face:"sans",upper:false,wrap:"pretty",tabular:false,deco:"none",decoOffset:0,decoThickness:0,marginTop:0,paddingTop:0},group:{gap:8,legend:{shown:true,size:15,weight:700,lineHeight:21,color:"ink",tracking:0,face:"sans",upper:false,wrap:"pretty",tabular:false,deco:"none",decoOffset:0,decoThickness:0,marginTop:0,paddingTop:0},legendPaddingX:2,legendGap:0}},switch:{track:{shown:true,w:48,h:28,padding:[0,0,0,0],marginTop:0,marginBottom:0,gap:[0,0],minHeight:0,radius:[999,999],bg:"#D0D6D3",edge:{width:0,color:"line",ring:false},shadow:{color:"",x:0,y:0,blur:0,spread:0},center:false,color:"text",fit:"cover",x:0,y:0,dy:0},on:"ink",thumb:{size:22,inset:3,travel:20,color:"surface",shadow:{color:"rgba(16, 70, 46, 0.06)",x:0,y:1,blur:2,spread:0}}},iconButton:{bare:{shown:true,w:44,h:44,padding:[0,0,0,0],marginTop:0,marginBottom:0,gap:[0,0],minHeight:0,radius:[22,22],bg:"none",edge:{width:0,color:"line",ring:false},shadow:{color:"",x:0,y:0,blur:0,spread:0},center:true,color:"ink",fit:"cover",x:0,y:0,dy:0},bareIcon:22,offColor:"line",ring:{shown:true,w:36,h:36,padding:[0,0,0,0],marginTop:0,marginBottom:0,gap:[0,0],minHeight:0,radius:[18,18],bg:"surface",edge:{width:1.5,color:"ink",ring:false},shadow:{color:"",x:0,y:0,blur:0,spread:0},center:true,color:"ink",fit:"cover",x:0,y:0,dy:0},ringIcon:18,ringPressed:"tintSage",ringPressScale:.94},link:{text:{shown:true,size:17,weight:400,lineHeight:22.1,color:"ink",tracking:0,face:"sans",upper:false,wrap:"pretty",tabular:false,deco:"underline",decoOffset:3,decoThickness:0,marginTop:0,paddingTop:0},danger:{shown:true,size:15,weight:700,lineHeight:23.25,color:"alert",tracking:0,face:"sans",upper:false,wrap:"pretty",tabular:false,deco:"underline",decoOffset:3,decoThickness:0,marginTop:0,paddingTop:0},inline:{shown:true,size:17,weight:400,lineHeight:26.35,color:"text",tracking:0,face:"sans",upper:false,wrap:"pretty",tabular:false,deco:"underline",decoOffset:0,decoThickness:0,marginTop:0,paddingTop:0}},lists:{rows:{row:{shown:true,w:327,h:94.781,padding:[16,0,16,0],marginTop:0,marginBottom:0,gap:[16,8],minHeight:0,radius:[0,0],bg:"none",edge:{width:1,color:"line",ring:false},shadow:{color:"",x:0,y:0,blur:0,spread:0},center:true,color:"text",fit:"cover",x:0,y:0,dy:0},title:{shown:true,size:17,weight:700,lineHeight:22.1,color:"ink",tracking:0,face:"sans",upper:false,wrap:"pretty",tabular:false,deco:"none",decoOffset:0,decoThickness:0,marginTop:0,paddingTop:0},subtitle:{shown:true,size:13,weight:400,lineHeight:18.85,color:"muted",tracking:0,face:"sans",upper:false,wrap:"pretty",tabular:false,deco:"none",decoOffset:0,decoThickness:0,marginTop:2,paddingTop:0}},tiles:{list:{shown:true,w:343,h:175.813,padding:[0,0,0,0],marginTop:0,marginBottom:0,gap:[4,4],minHeight:0,radius:[0,0],bg:"none",edge:{width:0,color:"line",ring:false},shadow:{color:"",x:0,y:0,blur:0,spread:0},center:false,color:"text",fit:"cover",x:0,y:0,dy:0},outdent:8,row:{shown:true,w:343,h:62.281,padding:[10,8,10,8],marginTop:0,marginBottom:0,gap:[12,12],minHeight:0,radius:[10,10],bg:"none",edge:{width:0,color:"line",ring:false},shadow:{color:"",x:0,y:0,blur:0,spread:0},center:true,color:"text",fit:"cover",x:0,y:0,dy:0},leading:22,leadingFace:40,icon:{shown:true,w:20,h:20,padding:[0,0,0,0],marginTop:0,marginBottom:0,gap:[0,0],minHeight:0,radius:[0,0],bg:"none",edge:{width:0,color:"line",ring:false},shadow:{color:"",x:0,y:0,blur:0,spread:0},center:false,color:"muted",fit:"cover",x:0,y:0,dy:0},text:{shown:true,w:261,h:42.281,padding:[0,0,0,0],marginTop:0,marginBottom:0,gap:[2,2],minHeight:0,radius:[0,0],bg:"none",edge:{width:0,color:"line",ring:false},shadow:{color:"",x:0,y:0,blur:0,spread:0},center:false,color:"text",fit:"cover",x:0,y:0,dy:0},title:{shown:true,size:17,weight:700,lineHeight:22.1,color:"ink",tracking:0,face:"sans",upper:false,wrap:"pretty",tabular:false,deco:"none",decoOffset:0,decoThickness:0,marginTop:0,paddingTop:0},subtitle:{shown:true,size:13,weight:400,lineHeight:18.2,color:"muted",tracking:0,face:"sans",upper:false,wrap:"pretty",tabular:false,deco:"none",decoOffset:0,decoThickness:0,marginTop:0,paddingTop:0},pressed:"#EDF2EF",alert:{bg:"tintRed",icon:"alert",title:"alertDeep",subtitle:"alert"}},end:{text:{shown:true,size:15,weight:400,lineHeight:23.25,color:"muted",tracking:0,face:"sans",upper:false,wrap:"pretty",tabular:false,deco:"none",decoOffset:0,decoThickness:0,marginTop:0,paddingTop:0},gap:8,chevron:{shown:true,w:20,h:20,padding:[0,0,0,0],marginTop:0,marginBottom:0,gap:[0,0],minHeight:0,radius:[0,0],bg:"none",edge:{width:0,color:"line",ring:false},shadow:{color:"",x:0,y:0,blur:0,spread:0},center:false,color:"#819D90",fit:"cover",x:0,y:0,dy:0}},section:{title:{shown:true,size:18,weight:700,lineHeight:22.5,color:"ink",tracking:-.36,face:"sans",upper:false,wrap:"pretty",tabular:false,deco:"none",decoOffset:0,decoThickness:0,marginTop:0,paddingTop:0},titleGap:12,head:{shown:true,w:361,h:22.5,padding:[0,0,0,0],marginTop:8,marginBottom:0,gap:[12,8],minHeight:0,radius:[0,0],bg:"none",edge:{width:0,color:"line",ring:false},shadow:{color:"",x:0,y:0,blur:0,spread:0},center:true,color:"text",fit:"cover",x:0,y:0,dy:0},note:{shown:true,size:13,weight:400,lineHeight:19.5,color:"muted",tracking:0,face:"sans",upper:false,wrap:"pretty",tabular:false,deco:"none",decoOffset:0,decoThickness:0,marginTop:12,paddingTop:0}},avatar:{sizes:{xs:20,sm:36,md:48,lg:64,xl:128},face:40,bg:"surface",edge:{width:1,color:"line",ring:true},initials:{shown:true,size:15,weight:700,lineHeight:23.25,color:"ink",tracking:0,face:"sans",upper:false,wrap:"pretty",tabular:false,deco:"none",decoOffset:0,decoThickness:0,marginTop:0,paddingTop:0},initialsXs:{shown:true,size:9,weight:700,lineHeight:13.95,color:"ink",tracking:0,face:"sans",upper:false,wrap:"pretty",tabular:false,deco:"none",decoOffset:0,decoThickness:0,marginTop:0,paddingTop:0},tints:{default:"tintPink",pink:"#FFCFC9",blue:"#C2CEE5",yellow:"#F6D78F",sage:"#C6D3CD"},ring:{width:2,offset:2,color:"go"},ringXl:{width:3,offset:4,color:"go"},dot:{size:12,edge:2,edgeColor:"surface"}},stack:{size:28,overlap:-8,initialsSize:12,halo:{width:2,color:"surface"}},banner:{box:{shown:true,w:361,h:155.391,padding:[16,16,16,16],marginTop:0,marginBottom:0,gap:[12,4],minHeight:0,radius:[20,20],bg:"#F1F5F2",edge:{width:0,color:"line",ring:false},shadow:{color:"",x:0,y:0,blur:0,spread:0},center:false,color:"text",fit:"cover",x:0,y:0,dy:0},icon:{shown:true,w:22,h:22,padding:[0,0,0,0],marginTop:1,marginBottom:0,gap:[0,0],minHeight:0,radius:[0,0],bg:"none",edge:{width:0,color:"line",ring:false},shadow:{color:"",x:0,y:0,blur:0,spread:0},center:false,color:"ink",fit:"cover",x:0,y:0,dy:0},iconRows:3,kicker:{shown:true,size:12,weight:700,lineHeight:16.8,color:"#5B5B5B",tracking:.72,face:"mono",upper:true,wrap:"pretty",tabular:false,deco:"none",decoOffset:0,decoThickness:0,marginTop:0,paddingTop:0},title:{shown:true,size:17,weight:700,lineHeight:22.1,color:"ink",tracking:0,face:"sans",upper:false,wrap:"pretty",tabular:false,deco:"none",decoOffset:0,decoThickness:0,marginTop:0,paddingTop:0},text:{shown:true,size:15,weight:400,lineHeight:21.75,color:"text",tracking:0,face:"sans",upper:false,wrap:"pretty",tabular:false,deco:"none",decoOffset:0,decoThickness:0,marginTop:0,paddingTop:0},acts:{shown:true,w:295,h:21,padding:[0,0,0,0],marginTop:8,marginBottom:0,gap:[16,8],minHeight:0,radius:[0,0],bg:"none",edge:{width:0,color:"line",ring:false},shadow:{color:"",x:0,y:0,blur:0,spread:0},center:true,color:"text",fit:"cover",x:0,y:0,dy:0},link:{shown:true,size:15,weight:700,lineHeight:21,color:"ink",tracking:0,face:"sans",upper:false,wrap:"pretty",tabular:false,deco:"none",decoOffset:0,decoThickness:0,marginTop:0,paddingTop:0},tones:{info:{bg:"#F1F5F2",icon:"ink"},success:{bg:"tintGo",icon:"ink"},warn:{bg:"#FCF0D6",icon:"#926F06"},danger:{bg:"tintRed",icon:"alert"}}},toast:{box:{shown:true,w:200.281,h:40.25,padding:[10,16,10,16],marginTop:0,marginBottom:0,gap:[0,0],minHeight:0,radius:[999,999],bg:"ink",edge:{width:0,color:"line",ring:false},shadow:{color:"",x:0,y:0,blur:0,spread:0},center:false,color:"surface",fit:"cover",x:0,y:0,dy:0},text:{shown:true,size:15,weight:400,lineHeight:20.25,color:"onInk",tracking:0,face:"sans",upper:false,wrap:"pretty",tabular:false,deco:"none",decoOffset:0,decoThickness:0,marginTop:0,paddingTop:10},inset:16,rise:8,fade:200,hold:2600},spinner:{size:16,border:2,turn:700,openSide:true,reducedOpacity:.5},offbar:{box:{shown:true,w:361,h:56,padding:[6,16,6,16],marginTop:0,marginBottom:0,gap:[10,10],minHeight:44,radius:[0,0],bg:"#FCF0D6",edge:{width:0,color:"line",ring:false},shadow:{color:"",x:0,y:0,blur:0,spread:0},center:true,color:"ink",fit:"cover",x:0,y:48,dy:0},text:{shown:true,size:15,weight:500,lineHeight:19.5,color:"ink",tracking:0,face:"sans",upper:false,wrap:"pretty",tabular:false,deco:"none",decoOffset:0,decoThickness:0,marginTop:0,paddingTop:0},icon:{shown:true,w:20,h:20,padding:[0,0,0,0],marginTop:0,marginBottom:0,gap:[0,0],minHeight:0,radius:[0,0],bg:"none",edge:{width:0,color:"line",ring:false},shadow:{color:"",x:0,y:0,blur:0,spread:0},center:false,color:"ink",fit:"cover",x:0,y:0,dy:0},action:{shown:true,w:69.859,h:44,padding:[0,2,0,2],marginTop:0,marginBottom:0,gap:[6,6],minHeight:44,radius:[0,0],bg:"none",edge:{width:0,color:"line",ring:false},shadow:{color:"",x:0,y:0,blur:0,spread:0},center:true,color:"ink",fit:"cover",x:0,y:0,dy:0},actionText:{shown:true,size:15,weight:700,lineHeight:19.5,color:"ink",tracking:0,face:"sans",upper:false,wrap:"pretty",tabular:false,deco:"underline",decoOffset:3,decoThickness:0,marginTop:0,paddingTop:0},online:{bg:"ink",color:"onInk"},fade:200},progress:{track:{shown:true,w:361,h:4,padding:[0,0,0,0],marginTop:0,marginBottom:0,gap:[0,0],minHeight:0,radius:[999,999],bg:"line",edge:{width:0,color:"line",ring:false},shadow:{color:"",x:0,y:0,blur:0,spread:0},center:false,color:"text",fit:"cover",x:0,y:0,dy:0},fill:"go",move:300},divider:{width:1,color:"line",label:{shown:true,size:12,weight:400,lineHeight:18.6,color:"muted",tracking:.72,face:"mono",upper:true,wrap:"pretty",tabular:false,deco:"none",decoOffset:0,decoThickness:0,marginTop:0,paddingTop:0},labelGap:12,labelLine:{width:1,color:"line"}},errorInline:{text:{shown:true,size:15,weight:400,lineHeight:21,color:"alertDeep",tracking:0,face:"sans",upper:false,wrap:"pretty",tabular:false,deco:"none",decoOffset:0,decoThickness:0,marginTop:0,paddingTop:0},acts:{shown:true,w:361,h:21,padding:[0,0,0,0],marginTop:8,marginBottom:0,gap:[16,8],minHeight:0,radius:[0,0],bg:"none",edge:{width:0,color:"line",ring:false},shadow:{color:"",x:0,y:0,blur:0,spread:0},center:true,color:"text",fit:"cover",x:0,y:0,dy:0},link:{shown:true,size:15,weight:700,lineHeight:21,color:"ink",tracking:0,face:"sans",upper:false,wrap:"pretty",tabular:false,deco:"none",decoOffset:0,decoThickness:0,marginTop:0,paddingTop:0}},linkPressedOpacity:.6},variants:{drawer:{frame:{shown:true,w:393,h:226.594,padding:[10,20,40,20],marginTop:0,marginBottom:0,gap:[0,0],minHeight:0,radius:[28,0],bg:"surface",edge:{width:0,color:"line",ring:false},shadow:{color:"",x:0,y:0,blur:0,spread:0},center:false,color:"ink",fit:"cover",x:0,y:293.406,dy:0},maxHeight:.8,grab:{shown:true,w:40,h:5,padding:[0,0,0,0],marginTop:0,marginBottom:10,gap:[0,0],minHeight:0,radius:[2.5,2.5],bg:"#DAD7D1",edge:{width:0,color:"line",ring:false},shadow:{color:"",x:0,y:0,blur:0,spread:0},center:false,color:"ink",fit:"cover",x:0,y:0,dy:0},top:{shown:true,w:353,h:40,padding:[0,0,0,0],marginTop:0,marginBottom:0,gap:[0,0],minHeight:0,radius:[0,0],bg:"none",edge:{width:0,color:"line",ring:false},shadow:{color:"",x:0,y:0,blur:0,spread:0},center:true,color:"ink",fit:"cover",x:0,y:0,dy:0},kicker:{shown:true,size:11,weight:400,lineHeight:16.5,color:"muted",tracking:.88,face:"mono",upper:true,wrap:"auto",tabular:false,deco:"none",decoOffset:0,decoThickness:0,marginTop:0,paddingTop:0},close:{shown:true,w:40,h:40,padding:[0,0,0,0],marginTop:0,marginBottom:0,gap:[0,0],minHeight:0,radius:[20,20],bg:"none",edge:{width:0,color:"line",ring:false},shadow:{color:"",x:0,y:0,blur:0,spread:0},center:true,color:"ink",fit:"cover",x:0,y:0,dy:0},closeEnd:-8,closeIcon:22,title:{shown:true,size:24,weight:800,lineHeight:27.6,color:"ink",tracking:-.24,face:"serif",upper:false,wrap:"balance",tabular:false,deco:"none",decoOffset:0,decoThickness:0,marginTop:0,paddingTop:0},body:{shown:true,w:353,h:82,padding:[0,0,0,0],marginTop:12,marginBottom:0,gap:[10,10],minHeight:0,radius:[0,0],bg:"none",edge:{width:0,color:"line",ring:false},shadow:{color:"",x:0,y:0,blur:0,spread:0},center:false,color:"text",fit:"cover",x:0,y:0,dy:0},text:{shown:true,size:16,weight:400,lineHeight:24,color:"text",tracking:0,face:"sans",upper:false,wrap:"auto",tabular:false,deco:"none",decoOffset:0,decoThickness:0,marginTop:0,paddingTop:0},scrim:"ink/0.38",motion:{enterMs:320,enterEasing:[.32,.72,0,1],exitMs:220,exitEasing:[.23,1,.32,1],scrimEnterMs:240,scrimExitMs:200,scrimEasing:[.25,.1,.25,1]}},button:{ink:{fill:false,minHeight:48,paddingX:22,gap:8,borderWidth:0,ring:false,fontSize:16,fontWeight:700,lineHeight:1.5,iconSize:20},outline:{fill:false,minHeight:48,paddingX:22,gap:8,borderWidth:1.5,ring:true,fontSize:16,fontWeight:700,lineHeight:1.5,iconSize:20},sm:{fill:false,minHeight:40,paddingX:16,gap:8,borderWidth:1.5,ring:true,fontSize:15,fontWeight:700,lineHeight:1.5,iconSize:20},lg:{fill:false,minHeight:56,paddingX:28,gap:8,borderWidth:0,ring:false,fontSize:17,fontWeight:700,lineHeight:1.5,iconSize:20},disabledOpacity:.32,press:.97,transition:"transform 160ms cubic-bezier(0.23, 1, 0.32, 1), opacity 160ms ease"},segmented:{track:{shown:true,w:361,h:44,padding:[4,4,4,4],marginTop:0,marginBottom:0,gap:[4,4],minHeight:0,radius:[22,22],bg:"surface",edge:{width:1.5,color:"#DAD7D1",ring:true},shadow:{color:"",x:0,y:0,blur:0,spread:0},center:false,color:"ink",fit:"cover",x:0,y:0,dy:0},option:{shown:true,w:115,h:36,padding:[0,6,0,6],marginTop:0,marginBottom:0,gap:[0,0],minHeight:36,radius:[18,18],bg:"none",edge:{width:0,color:"line",ring:false},shadow:{color:"",x:0,y:0,blur:0,spread:0},center:false,color:"ink",fit:"cover",x:0,y:0,dy:0},label:{shown:true,size:14,weight:700,lineHeight:21,color:"ink",tracking:0,face:"sans",upper:false,wrap:"auto",tabular:false,deco:"none",decoOffset:0,decoThickness:0,marginTop:0,paddingTop:0},chosen:{shown:true,w:115,h:36,padding:[0,6,0,6],marginTop:0,marginBottom:0,gap:[0,0],minHeight:36,radius:[18,18],bg:"ink",edge:{width:0,color:"line",ring:false},shadow:{color:"",x:0,y:0,blur:0,spread:0},center:false,color:"onInk",fit:"cover",x:0,y:0,dy:0},chosenLabel:{shown:true,size:14,weight:700,lineHeight:21,color:"onInk",tracking:0,face:"sans",upper:false,wrap:"auto",tabular:false,deco:"none",decoOffset:0,decoThickness:0,marginTop:0,paddingTop:0},press:.96,transition:"background-color 160ms ease, transform 160ms cubic-bezier(0.23, 1, 0.32, 1)"},stepper:{track:{shown:true,w:110,h:40,padding:[0,0,0,0],marginTop:0,marginBottom:0,gap:[0,0],minHeight:0,radius:[20,20],bg:"surface",edge:{width:1.5,color:"#DAD7D1",ring:true},shadow:{color:"",x:0,y:0,blur:0,spread:0},center:true,color:"ink",fit:"cover",x:0,y:0,dy:0},button:{shown:true,w:40,h:40,padding:[0,0,0,0],marginTop:0,marginBottom:0,gap:[0,0],minHeight:0,radius:[20,20],bg:"none",edge:{width:0,color:"line",ring:false},shadow:{color:"",x:0,y:0,blur:0,spread:0},center:true,color:"ink",fit:"cover",x:0,y:0,dy:0},icon:16,value:{shown:true,size:15.5,weight:800,lineHeight:23.25,color:"ink",tracking:0,face:"sans",upper:false,wrap:"auto",tabular:true,deco:"none",decoOffset:0,decoThickness:0,marginTop:0,paddingTop:0},valueWidth:30,disabledOpacity:.3,press:.9,transition:"transform 160ms cubic-bezier(0.23, 1, 0.32, 1)"},summary:{box:{shown:true,w:361,h:144,padding:[6,16,6,16],marginTop:0,marginBottom:0,gap:[0,0],minHeight:0,radius:[16,16],bg:"surface",edge:{width:0,color:"line",ring:false},shadow:{color:"rgba(38, 37, 35, 0.06)",x:0,y:1,blur:3,spread:0},center:false,color:"ink",fit:"cover",x:0,y:0,dy:0},row:{shown:true,w:329,h:34,padding:[0,0,0,0],marginTop:0,marginBottom:0,gap:[12,12],minHeight:34,radius:[0,0],bg:"none",edge:{width:0,color:"line",ring:false},shadow:{color:"",x:0,y:0,blur:0,spread:0},center:true,color:"ink",fit:"cover",x:0,y:0,dy:0},term:{shown:true,size:15,weight:400,lineHeight:22.5,color:"#4A4845",tracking:0,face:"sans",upper:false,wrap:"auto",tabular:true,deco:"none",decoOffset:0,decoThickness:0,marginTop:0,paddingTop:0},value:{shown:true,size:15,weight:400,lineHeight:22.5,color:"ink",tracking:0,face:"sans",upper:false,wrap:"auto",tabular:true,deco:"none",decoOffset:0,decoThickness:0,marginTop:0,paddingTop:0},totalRow:{shown:true,w:329,h:42,padding:[0,0,0,0],marginTop:0,marginBottom:0,gap:[12,12],minHeight:42,radius:[0,0],bg:"none",edge:{width:0,color:"line",ring:false},shadow:{color:"",x:0,y:0,blur:0,spread:0},center:true,color:"ink",fit:"cover",x:0,y:0,dy:0},totalTerm:{shown:true,size:17,weight:800,lineHeight:25.5,color:"ink",tracking:0,face:"sans",upper:false,wrap:"auto",tabular:true,deco:"none",decoOffset:0,decoThickness:0,marginTop:0,paddingTop:0},total:{shown:true,size:17,weight:800,lineHeight:25.5,color:"ink",tracking:0,face:"sans",upper:false,wrap:"auto",tabular:true,deco:"none",decoOffset:0,decoThickness:0,marginTop:0,paddingTop:0},renewRow:{shown:true,w:329,h:28,padding:[0,0,0,0],marginTop:-6,marginBottom:0,gap:[12,12],minHeight:28,radius:[0,0],bg:"none",edge:{width:0,color:"line",ring:false},shadow:{color:"",x:0,y:0,blur:0,spread:0},center:true,color:"ink",fit:"cover",x:0,y:0,dy:0},renewTerm:{shown:true,size:14,weight:400,lineHeight:21,color:"#4A4845",tracking:0,face:"sans",upper:false,wrap:"auto",tabular:true,deco:"none",decoOffset:0,decoThickness:0,marginTop:0,paddingTop:0},renew:{shown:true,size:14,weight:400,lineHeight:21,color:"ink",tracking:0,face:"sans",upper:false,wrap:"auto",tabular:true,deco:"none",decoOffset:0,decoThickness:0,marginTop:0,paddingTop:0},inset:{shown:true,w:361,h:88,padding:[6,16,6,16],marginTop:0,marginBottom:0,gap:[0,0],minHeight:0,radius:[16,16],bg:"bg",edge:{width:0,color:"line",ring:false},shadow:{color:"",x:0,y:0,blur:0,spread:0},center:false,color:"ink",fit:"cover",x:0,y:0,dy:0}},toast:{box:{shown:true,w:361,h:64.594,padding:[12,15,12,15],marginTop:0,marginBottom:0,gap:[0,0],minHeight:0,radius:[16,16],bg:"ink",edge:{width:0,color:"line",ring:false},shadow:{color:"",x:0,y:0,blur:0,spread:0},center:false,color:"onInk",fit:"cover",x:16,y:62,dy:0},text:{shown:true,size:14.5,weight:400,lineHeight:20.3,color:"onInk",tracking:0,face:"sans",upper:false,wrap:"auto",tabular:false,deco:"none",decoOffset:0,decoThickness:0,marginTop:0,paddingTop:12},motion:{enterMs:220,exitMs:160,easing:[.23,1,.32,1],rise:-8}},focus:{width:2,offset:2,color:"ink"}},press:{button:.97,iconButton:.94,card:.98},colors:{grab:"#C9C9C9",scrim:"rgba(0, 0, 0, 0.32)",watch:"#F9E6B9",planInk:"#262523",planOnInk:"#FFFFFF",planAccent:"#FFCE34",planLink:"#00707C",planAccentWash:"#FFF7DC",planAccentChip:"#FFE7A1",planLinkWash:"#E0FDFF",planLinkChip:"#C8F4F8"}};var sr={line:/* @__PURE__ */or({w:361,h:109.328,gap:[12,12],center:true}),name:/* @__PURE__ */or({w:289,h:24,gap:[8,4],center:true,color:"ink"}),nameText:/* @__PURE__ */lr({size:17,weight:700,lineHeight:22.1,color:"ink"}),meta:/* @__PURE__ */lr({size:13,weight:400,lineHeight:18.85,color:"muted",marginTop:2}),price:/* @__PURE__ */lr({size:17,weight:700,lineHeight:26.35,color:"ink",tabular:true}),was:/* @__PURE__ */lr({shown:false,size:13,weight:400,lineHeight:18.85,color:"muted",marginTop:2}),acts:/* @__PURE__ */or({w:289,h:20.141,marginTop:6,gap:[16,16]}),remove:/* @__PURE__ */lr({size:13,weight:700,lineHeight:20.15,color:"ink",deco:"underline",decoOffset:3}),removeBox:/* @__PURE__ */or({w:53.016,h:20.141,color:"ink"}),end:/* @__PURE__ */or({w:289,h:26.344,gap:[4,4]})},dr={line:/* @__PURE__ */or({w:361,h:95.094,gap:[12,12]}),sm:/* @__PURE__ */or({w:48,h:48,radius:[12,12],bg:"#F3F3F3"}),md:/* @__PURE__ */or({w:52,h:52,radius:[12,12],bg:"#F3F3F3"}),lg:/* @__PURE__ */or({w:56,h:56,radius:[12,12],bg:"#F3F3F3"}),imgInset:.1,imgFit:"contain",imgBlend:"multiply",name:/* @__PURE__ */or({w:239.109,h:20,gap:[6,4],center:true}),nameText:/* @__PURE__ */lr({size:15,weight:700,lineHeight:19.5}),link:/* @__PURE__ */lr({size:15,weight:700,lineHeight:19.5}),linkReach:4,badge:/* @__PURE__ */or({w:29.344,h:20,padding:[0,7,0,7],radius:[999,999],bg:"#E0E6F2",edge:{width:1.5,color:"rgba(90, 96, 135, 0.45)",ring:true},center:true}),badgeText:/* @__PURE__ */lr({size:12,weight:700,lineHeight:12}),meta:/* @__PURE__ */lr({size:13,weight:400,lineHeight:17.55,color:"muted",marginTop:2}),acts:/* @__PURE__ */or({w:239.109,h:32,marginTop:6,gap:[16,16]}),act:/* @__PURE__ */lr({size:13,weight:700,lineHeight:20.15,color:"ink",deco:"underline",decoOffset:3}),actBox:/* @__PURE__ */or({w:84.531,h:32,minHeight:32,color:"ink"}),price:/* @__PURE__ */lr({size:15,weight:700,lineHeight:23.25,tabular:true}),was:/* @__PURE__ */lr({size:13,weight:400,lineHeight:20.15,color:"muted",tabular:true,deco:"strike"})},cr={line:/* @__PURE__ */or({w:404,h:88,gap:[16,0],center:true}),sq:/* @__PURE__ */or({w:88,h:88,radius:[14,14],bg:"#F3F3F3"}),imgInset:.1,imgFit:"contain",imgBlend:"multiply",name:/* @__PURE__ */or({w:225.875,h:24.688,gap:[8,4],center:true}),nameText:/* @__PURE__ */lr({size:19,weight:700,lineHeight:24.7}),link:/* @__PURE__ */lr({size:19,weight:700,lineHeight:24.7}),linkReach:4,badge:/* @__PURE__ */or({w:32.625,h:22,padding:[0,8,0,8],radius:[999,999],bg:"#DEE4F1",center:true}),badgeText:/* @__PURE__ */lr({size:13,weight:700,lineHeight:13}),meta:/* @__PURE__ */lr({size:15,weight:400,lineHeight:21,marginTop:2}),price:/* @__PURE__ */lr({size:19,weight:700,lineHeight:29.45,tabular:true}),was:/* @__PURE__ */lr({size:15,weight:400,lineHeight:23.25,tabular:true,deco:"strike"}),narrow:{upTo:599,sq:/* @__PURE__ */or({w:64,h:64,radius:[14,14],bg:"#F3F3F3"}),cost:/* @__PURE__ */or({w:432,h:29.438,marginTop:4,gap:[8,8]}),nameText:/* @__PURE__ */lr({size:17,weight:700,lineHeight:22.1}),link:/* @__PURE__ */lr({size:17,weight:700,lineHeight:22.1})},narrower:{upTo:330,sq:/* @__PURE__ */or({w:56,h:56,radius:[14,14],bg:"#F3F3F3"}),cost:/* @__PURE__ */or({w:216,h:29.438,marginTop:4,gap:[8,8]}),nameText:/* @__PURE__ */lr({size:17,weight:700,lineHeight:22.1}),link:/* @__PURE__ */lr({size:17,weight:700,lineHeight:22.1})},phone:{upTo:639,line:/* @__PURE__ */or({w:303,h:81.25,gap:[12,0],center:true}),sq:/* @__PURE__ */or({w:56,h:56,radius:[12,12],bg:"#F3F3F3"}),cost:/* @__PURE__ */or({w:235,h:23.25,marginTop:2,gap:[8,8]}),nameText:/* @__PURE__ */lr({size:15,weight:700,lineHeight:19.5}),link:/* @__PURE__ */lr({size:15,weight:700,lineHeight:19.5}),meta:/* @__PURE__ */lr({size:13,weight:400,lineHeight:17.55,marginTop:2}),price:/* @__PURE__ */lr({size:15,weight:700,lineHeight:23.25,tabular:true}),was:/* @__PURE__ */lr({size:13,weight:400,lineHeight:20.15,tabular:true,deco:"strike"}),smallUpTo:359,smallSq:48}},ur={line:/* @__PURE__ */or({w:360,h:147.094,gap:[14,0]}),img:/* @__PURE__ */or({w:64,h:64,radius:[14,14],bg:"surface",edge:{width:1.5,color:"#C6D3CD",ring:true}}),imgInset:6,imgFit:"contain",name:/* @__PURE__ */or({w:216,h:22.094,gap:[8,4],center:true}),nameText:/* @__PURE__ */lr({size:17,weight:700,lineHeight:22.1,wrap:"auto"}),badge:/* @__PURE__ */or({w:32.625,h:22,padding:[0,8,0,8],radius:[999,999],bg:"#DEE4F1",edge:{width:1.5,color:"rgba(90, 96, 135, 0.45)",ring:true},center:true}),badgeText:/* @__PURE__ */lr({size:13,weight:700,lineHeight:13,wrap:"auto"}),meta:/* @__PURE__ */lr({size:15,weight:400,lineHeight:21,marginTop:2}),note:/* @__PURE__ */lr({size:15,weight:700,lineHeight:21,color:"ink",marginTop:2}),acts:/* @__PURE__ */or({w:282,h:92,marginTop:10,gap:[12,8],center:true}),plan:/* @__PURE__ */or({w:193.703,h:44,padding:[3,3,3,3],radius:[999,999],bg:"surface",edge:{width:1.5,color:"#C6D3CD",ring:true}}),planBtn:/* @__PURE__ */or({w:63.859,h:38,padding:[0,14,0,14],minHeight:38,radius:[999,999]}),planText:/* @__PURE__ */lr({size:15,weight:500,lineHeight:23.25,wrap:"auto"}),planOn:/* @__PURE__ */or({w:123.844,h:38,padding:[0,14,0,14],minHeight:38,radius:[999,999],bg:"ink",color:"surface"}),planOnText:/* @__PURE__ */lr({size:15,weight:700,lineHeight:23.25,color:"surface",wrap:"auto"}),qty:/* @__PURE__ */or({w:104,h:40,radius:[999,999],bg:"surface",edge:{width:1.5,color:"#C6D3CD",ring:true},center:true}),countMin:24,qtyBtn:/* @__PURE__ */or({w:40,h:40,radius:[20,20],center:true}),qtyIcon:/* @__PURE__ */or({w:16,h:16}),count:/* @__PURE__ */lr({size:15,weight:700,lineHeight:23.25,wrap:"auto",tabular:true}),remove:/* @__PURE__ */or({w:58.359,h:40,minHeight:40,color:"ink"}),removeText:/* @__PURE__ */lr({size:15,weight:700,lineHeight:23.25,color:"ink",wrap:"auto",deco:"underline",decoOffset:3}),price:/* @__PURE__ */lr({size:17,weight:700,lineHeight:22.1,wrap:"auto",tabular:true}),was:/* @__PURE__ */lr({size:15,weight:400,lineHeight:19.5,wrap:"auto",tabular:true,deco:"strike"}),pressScale:.9,hover:{color:"ink",share:.06,over:"surface"},motion:{press:140,fill:150,planFill:150}};var pr={line:/* @__PURE__ */or({w:297,h:95.625,gap:[12,12],color:"#262523"}),img:/* @__PURE__ */or({w:64,h:64,radius:[14,14],bg:"planLinkWash",center:true,color:"planLink"}),icon:/* @__PURE__ */or({w:28,h:28,color:"planLink"}),name:/* @__PURE__ */lr({size:16.5,weight:800,lineHeight:20.625,color:"#262523",wrap:"balance"}),prices:/* @__PURE__ */or({w:221,h:24,marginTop:3,gap:[8,2],center:true,color:"#262523"}),price:/* @__PURE__ */lr({size:16,weight:800,lineHeight:24,color:"#262523",tabular:true}),was:/* @__PURE__ */lr({size:14,weight:600,lineHeight:21,color:"#6B6863",deco:"strike"}),small:/* @__PURE__ */lr({size:14,weight:400,lineHeight:21,color:"#6B6863"}),acts:/* @__PURE__ */or({w:221,h:40,marginTop:8,gap:[16,16],center:true,color:"#262523"}),step:/* @__PURE__ */or({w:110,h:40,radius:[999,999],bg:"surface",edge:{width:1.5,color:"#DAD7D1",ring:true},center:true,color:"#262523"}),remove:/* @__PURE__ */or({w:56.422,h:40,minHeight:40,color:"#4A4845"}),removeText:/* @__PURE__ */lr({size:14.5,weight:700,lineHeight:21.75,color:"#4A4845",deco:"underline",decoOffset:3,decoThickness:1.5})};function deepFreeze(e){if(e!==null&&typeof e=="object"&&!Object.isFrozen(e))for(let t of Object.values(e))deepFreeze(t);return e}var hr=rr,gr=/* @__PURE__ */Symbol.for("@everfur-health/ui-core#preset@v1");function fr(e){return Object.defineProperty(e,gr,{value:e,enumerable:true}),deepFreeze(e)}var mr={content:0,heading:2,control:1.8,compact:1.5,badge:1.3},br=fr({name:"everfur",colors:{bg:hr.color.bg,surface:hr.color.efWhite,text:hr.color.text,ink:hr.role.color.ink,onInk:hr.color.efWhite,muted:hr.role.color.muted,line:hr.role.color.line,go:hr.role.color.go,onGo:hr.role.color.ink,pink:hr.color.efDustyPink,onPink:hr.role.color.ink,alert:hr.color.alert,alertDeep:hr.color.alertDeep,icoSage:hr.role.color.icoSage,bgMist:hr.color.bgMist,tintSage:hr.role.color.tintSage,tintBlue:hr.role.color.tintBlue,tintGo:hr.role.color.tintGo,tintPink:hr.role.color.tintPink,tintYellowEdge:hr.role.color.tintYellowEdge,tintWatch:ar.colors.watch,tintRed:hr.role.color.tintRed,scrim:ar.colors.scrim,grab:ar.colors.grab,focus:hr.role.color.ink,planInk:ar.colors.planInk,planOnInk:ar.colors.planOnInk,planAccent:ar.colors.planAccent,planLink:ar.colors.planLink,planAccentWash:ar.colors.planAccentWash,planAccentChip:ar.colors.planAccentChip,planLinkWash:ar.colors.planLinkWash,planLinkChip:ar.colors.planLinkChip},radius:{...hr.radius},space:{...hr.space},type:{family:hr.font.family.base,mono:hr.font.family.mono,faces:{regular:"Azeret-Regular",medium:"Azeret-Medium",bold:"Azeret-Bold",mono:"AzeretMono-Regular",monoBold:"AzeretMono-Bold"},namedFaces:true,size:{xs:hr.font.size.xs,sm:hr.font.size.sm,md:hr.font.size.md,lg:hr.font.size.lg,xl:hr.font.size.xl},weight:{...hr.font.weight},lineHeight:{...hr.font.lineHeight},scaleCaps:mr},motion:{duration:{press:hr.motion.duration.press,fade:hr.motion.duration.fade,enter:hr.motion.duration.enter,sheet:hr.motion.duration.sheet,sheetOut:hr.motion.duration.sheetOut},easing:{out:hr.motion.easing.out,drawer:hr.motion.easing.drawer},pop:{duration:hr.motion.duration.enter,from:.95,peakAt:.55,amplitude:.035,switchAmplitude:.06},reduced:false},metrics:ar});function yr(e){return e[gr]??br}function xr(e){return e!==null&&typeof e=="object"&&!Array.isArray(e)}function kr(e,t){if(!xr(e)||!xr(t))return t===void 0?e:t;let r={...e};for(let[n,i]of Object.entries(t))i!==void 0&&(r[n]=kr(e[n],i));return r}function resolveTheme(e,t=br){if(!e)return t;let r=kr(t,e),n=e.colors;if(n){let e=r.colors;for(let[t,r,i]of wr){let o=n[r];o!==void 0&&n[t]===void 0&&(e[t]=vr(o,i,e.surface)??e[t]??o)}}return deepFreeze(r)}var wr=[["planAccentWash","planAccent",.17],["planAccentChip","planAccent",.47],["planLinkWash","planLink",.12],["planLinkChip","planLink",.2]];function vr(e,t,r){let n=e=>{let t=/^#([0-9a-f]{2})([0-9a-f]{2})([0-9a-f]{2})$/i.exec(e??"");return t?[t[1],t[2],t[3]].map(e=>parseInt(e,16)):void 0},[i,o]=[n(e),n(r)];if(!(!i||!o))return`#${i.map((e,r)=>Math.round(e*t+(o[r]??0)*(1-t)).toString(16).padStart(2,"0")).join("").toUpperCase()}`}var Tr=/* @__PURE__ */(()=>{let t=/* @__PURE__ */Symbol.for("@everfur-health/ui-core#ThemeContext@v1"),r=globalThis,n=r[t]??(r[t]=e.createContext(null));return n.displayName??(n.displayName="EverfurThemeContext"),n})();function ThemeProvider({theme:t,children:r}){let n=Ar(),i=t===void 0||jr(t)?t:Sr(t),o=e.useMemo(()=>jr(t)?zr(t):resolveTheme(t,n),[i,n]);return e.createElement(Tr.Provider,{value:o},r)}function Sr(e){return JSON.stringify(e,(e,t)=>xr(t)&&!Array.isArray(t)?Object.fromEntries(Object.keys(t).sort().map(e=>[e,t[e]])):t)}function jr(e){return e!==void 0&&Object.isFrozen(e)&&Cr.every(t=>t in e)}var Cr=["name","colors","radius","space","type","motion","metrics"];function Ir(e,t){if(e===void 0)return true;if(!xr(e))return t!==void 0;if(!xr(t))return false;for(let r of Object.keys(e))if(!Ir(e[r],t[r]))return false;return true}var Lr=/* @__PURE__ */new WeakMap;function zr(e){let t=Lr.get(e);if(t)return t;if(Ir(br,e))return Lr.set(e,e),e;let r=yr(e),n=kr(br,r===br?e:kr(r,e));n[gr]=r;let i=deepFreeze(n);return Lr.set(e,i),i}function Ar(){let t=e.useContext(Tr);return t?zr(t):br}var Rr=e=>Math.round(e*1e3)/1e3;function Wr(e,t=false){return t?e>450?"monoBold":"mono":e>500?"bold":e>450?"medium":"regular"}function Fr(e,t){let r=/^#([0-9a-f]{2})([0-9a-f]{2})([0-9a-f]{2})$/i.exec(e);if(!r)return e;let[n,i,o]=[r[1],r[2],r[3]].map(e=>parseInt(e,16));return`rgba(${n}, ${i}, ${o}, ${t})`}function Vr(e){let t=/^#([0-9a-f]{2})([0-9a-f]{2})([0-9a-f]{2})$/i.exec(e);if(t)return[t[1],t[2],t[3]].map(e=>parseInt(e,16));let r=/^rgba?\(\s*([\d.]+)[\s,]+([\d.]+)[\s,]+([\d.]+)/i.exec(e);return r?[r[1],r[2],r[3]].map(Number):void 0}function Hr(e,t,r,n){let[i,o]=[Vr(e),Vr(r)];return!i||!o?n:`rgb(${i.map((e,r)=>Math.round(e*t+(o[r]??0)*(1-t))).join(", ")})`}function Pr(e,t){let r=/^([a-zA-Z]+)(?:\/([\d.]+))?$/.exec(t),n=r?.[1];if(!r||n===void 0||!(n in e.colors))return t;let i=e.colors[n];return r[2]===void 0?i:Fr(i,Number(r[2]))}function Or(e,t){return t==="none"?"transparent":Pr(e,t)}var Br=.45;function Dr(e,t){let r=e.metrics.pill,n=r.tones[t],i=t==="clear"?e.colors.ink:Pr(e,n.fg);return{minHeight:r.minHeight,paddingX:r.paddingX,radius:e.radius.pill,background:Pr(e,n.bg),ring:n.ring>0?{width:n.ring,color:Pr(e,n.ringColor)}:null,dot:t==="new"?{size:r.dot,gap:r.dotGap,color:e.colors.go}:t==="allergy"?{size:r.allergyDot.size,gap:r.allergyDot.gap,color:Pr(e,r.allergyDot.color)}:null,text:{size:r.fontSize,weight:r.fontWeight,lineHeight:Rr(r.fontSize*r.lineHeight),color:i,mono:r.mono,tracking:r.letterSpacing,upper:r.upper}}}function Er(e,t){let r=e.metrics.sheet,n=r.titleSize,i=r.titleLineHeight??e.metrics.card.titleLineHeight;return{size:n,weight:r.titleWeight??e.metrics.card.titleWeight,lineHeight:Rr(n*i),color:Pr(e,r.titleColor??"ink"),tracking:r.titleTracking??e.metrics.card.titleTracking}}function Nr(e){let t=e.metrics,r=e.colors;return{cardTitle:{size:t.card.titleSize,weight:t.card.titleWeight,lineHeight:Rr(t.card.titleSize*t.card.titleLineHeight),color:r.ink,tracking:t.card.titleTracking},cardLead:{size:t.card.leadSize,weight:e.type.weight.regular,lineHeight:Rr(t.card.leadSize*t.card.leadLineHeight),color:r.text},body:{size:t.card.bodySize,weight:e.type.weight.regular,lineHeight:Rr(t.card.bodySize*t.card.bodyLineHeight),color:r.text},kicker:{size:t.kicker.fontSize,weight:t.kicker.fontWeight,lineHeight:Rr(t.kicker.fontSize*t.kicker.lineHeight),color:r.muted,mono:true,tracking:t.kicker.letterSpacing,upper:true},sheetTitle:Er(e),stepperValue:{size:t.quantityStepper.valueSize,weight:t.quantityStepper.valueWeight,lineHeight:Rr(t.quantityStepper.valueSize*t.quantityStepper.valueLineHeight),color:Pr(e,t.quantityStepper.valueColor??"text")},tab:{size:t.tabs.fontSize,weight:t.tabs.fontWeight,lineHeight:Rr(t.tabs.fontSize*t.tabs.lineHeight),color:r.muted},tabCurrent:{size:t.tabs.fontSize,weight:t.tabs.currentWeight,lineHeight:Rr(t.tabs.fontSize*t.tabs.lineHeight),color:r.ink},emptyTitle:{size:t.empty.titleSize,weight:t.empty.titleWeight,lineHeight:Rr(t.empty.titleSize*t.empty.titleLineHeight),color:r.ink,tracking:t.empty.titleTracking},emptyLead:{size:t.empty.leadSize,weight:e.type.weight.regular,lineHeight:Rr(t.empty.leadSize*t.empty.leadLineHeight),color:r.text},emptyLink:{size:t.empty.linkSize,weight:t.empty.linkWeight,lineHeight:Rr(t.empty.linkSize*t.card.bodyLineHeight),color:r.ink},sumTerm:{size:t.summary.termSize,weight:e.type.weight.regular,lineHeight:Rr(t.summary.termSize*t.summary.termLineHeight),color:r.muted},sumValue:{size:t.summary.valueSize,weight:t.summary.valueWeight,lineHeight:Rr(t.summary.valueSize*t.summary.valueLineHeight),color:r.ink},sumTotal:{size:t.summary.totalSize,weight:t.summary.valueWeight,lineHeight:Rr(t.summary.totalSize*t.summary.totalLineHeight),color:r.ink}}}function qr(e){let t=e.metrics.quantityStepper;return{edge:{width:t.borderWidth,color:Pr(e,t.borderColor),inset:t.ring},button:t.button,icon:t.icon,valueMinWidth:t.valueMinWidth,fill:Or(e,t.fill??"none"),glyph:Pr(e,t.glyph??"ink"),off:{color:Pr(e,t.offColor),opacity:t.offOpacity}}}function Ur(e,t){return{size:t.size,weight:t.weight,lineHeight:t.lineHeight,color:Pr(e,t.color),...t.face==="mono"?{mono:true}:{},...t.face==="serif"?{serif:true}:{},...t.tracking?{tracking:t.tracking}:{},...t.upper?{upper:true}:{},...t.deco==="none"?{}:{deco:t.deco==="strike"?"strike":"underline",decoOffset:t.decoOffset,decoThickness:t.decoThickness},...t.tabular?{tabular:true}:{},...t.wrap==="auto"?{}:{wrap:t.wrap==="balance"?"balance":"pretty"}}}function Gr(e,t){return t==="none"?void 0:Pr(e,t)}function Mr(e){let t=e.metrics.summary,r=(e,t)=>Rr(e*t);return{paddingX:t.paddingX,paddingY:t.paddingY,radius:t.radius,borderWidth:t.borderWidth,borderColor:e.colors.line,background:Pr(e,t.background),shadow:t.shadow,row:{paddingY:t.rowPaddingY,minHeight:t.rowMinHeight,gapX:t.rowGapX,gapY:t.rowGapY,divider:t.rowDivider,center:t.rowCenter},totalRowMinHeight:t.totalRowMinHeight,gap:t.gap??0,totalMarginTop:t.totalMarginTop??0,tabular:t.tabular,term:{size:t.termSize,weight:e.type.weight.regular,lineHeight:r(t.termSize,t.termLineHeight),color:Pr(e,t.termColor)},value:{size:t.valueSize,weight:t.valueWeight,lineHeight:r(t.valueSize,t.valueLineHeight),color:Pr(e,t.valueColor)},totalTerm:{size:t.totalTermSize,weight:t.totalTermWeight,lineHeight:r(t.totalTermSize,t.termLineHeight),color:Pr(e,t.totalTermColor)},total:{size:t.totalSize,weight:t.totalWeight,lineHeight:r(t.totalSize,t.totalLineHeight),color:Pr(e,t.valueColor)},off:Ur(e,e.metrics.summary.off)}}function Kr(e,t){let r=e.metrics.skeleton.widths;return`${r[t%r.length]}%`}function Zr(e,t,r){return Math.max(t,r===void 0?e:Math.min(r,e))}function Yr(e,t,r){return r!==void 0?r:e===void 0?void 0:`${e}-${t}`}function Jr(e){return e.trim().split(/\s+/).filter(Boolean).slice(0,2).map(e=>Xr(e).toLocaleUpperCase()).join("")}function Xr(e){let t=Intl.Segmenter;if(t)for(let r of new t(void 0,{granularity:"grapheme"}).segment(e))return r.segment;return Array.from(e)[0]??""}function Qr(e,t,r="default"){let n=e.metrics.lists.avatar,i=typeof t=="number"?t:n.sizes[t],o=Ur(e,i<=n.sizes.xs?n.initialsXs:n.initials),l=t==="xl"?n.ringXl:n.ring;return{side:i,initials:o,tint:Pr(e,n.tints[r]),photoBg:Pr(e,n.bg),edge:{width:n.edge.width,color:Pr(e,n.edge.color)},ring:{width:l.width,offset:l.offset,color:Pr(e,l.color)},dot:{size:n.dot.size,edge:n.dot.edge,edgeColor:Pr(e,n.dot.edgeColor),color:e.colors.go}}}function _r(e,t,r=false){let n=e.metrics.lists,i=t==="tiles",o=Ur(e,i?n.tiles.title:n.rows.title),l=Ur(e,i?n.tiles.subtitle:n.rows.subtitle),a=n.tiles.alert;return{row:i?n.tiles.row:n.rows.row,title:r?{...o,color:Pr(e,a.title)}:o,subtitle:r?{...l,color:Pr(e,a.subtitle)}:l,value:Ur(e,n.end.text),icon:{size:n.tiles.icon.w,column:n.tiles.leading,color:Pr(e,r?a.icon:n.tiles.icon.color)},chevron:{size:n.end.chevron.w,color:Pr(e,n.end.chevron.color)},fill:r&&i?Pr(e,a.bg):Gr(e,i?n.tiles.row.bg:"none"),pressedFill:Pr(e,n.tiles.pressed),gap:n.tiles.row.gap[0]??0,endGap:n.end.gap,disabledOpacity:Br}}var $r=e=>e,en=e=>"edge"in e&&"shadow"in e&&"fit"in e,tn=e=>"deco"in e&&"face"in e&&"tabular"in e;function rn(e){let t=/* @__PURE__ */new Map;for(let[r,n]of Object.entries(e))t.has(n)||t.set(n,r);return t}var nn,on=/* @__PURE__ */new WeakMap;function ln(e,t,r){let n=e.get(r),i=n===void 0?void 0:t[n];return typeof i=="number"?i:r}function an(e){let t=br;return e.space===t.space&&e.radius===t.radius&&e.type.size===t.type.size&&e.type.weight===t.type.weight}function sn(e,t){let r=br;nn??(nn={space:rn($r(r.space)),radius:rn($r(r.radius)),size:rn($r(r.type.size)),weight:rn($r(r.type.weight))});let n=nn,i=t=>ln(n.space,$r(e.space),t),o=t=>ln(n.radius,$r(e.radius),t),l=t=>Array.isArray(t)?t.map(l):t===null||typeof t!="object"?t:en(t)?{...t,padding:t.padding.map(i),gap:t.gap.map(i),marginTop:i(t.marginTop),marginBottom:i(t.marginBottom),radius:t.radius.map(o)}:tn(t)?{...t,size:ln(n.size,$r(e.type.size),t.size),weight:ln(n.weight,$r(e.type.weight),t.weight),marginTop:i(t.marginTop),paddingTop:i(t.paddingTop)}:Object.fromEntries(Object.entries(t).map(([e,t])=>[e,l(t)]));return l(t)}function dn(e,t){if(an(e))return t;let r=on.get(t);r||on.set(t,r=/* @__PURE__ */new WeakMap);let n=r.get(e);if(n)return n;let i=sn(e,t);return r.set(e,i),i}var cn={display:"heading",headline:"heading",title:"heading",heading:"heading",body:"content",lead:"content",label:"control",meta:"compact",caption:"content",overline:"compact",kicker:"compact"};function un(e,t){let r=e.colors;switch(t){case"ink":return r.ink;case"text":return r.text;case"muted":return r.muted;case"danger":return r.alertDeep;case"inverse":return r.onInk;default:return}}function pn(e,t,r,n){let i=Ur(e,e.metrics.text[t]),o=un(e,r);return{...i,...o?{color:o}:{},...n?{weight:e.type.weight[n]}:{}}}var hn=/* @__PURE__ */(()=>{let t=/* @__PURE__ */Symbol.for("@everfur-health/ui-core#PressFeedbackContext@v1"),r=globalThis,n=r[t]??(r[t]=e.createContext(null));return n.displayName??(n.displayName="EverfurPressFeedbackContext"),n})();function gn(){return e.useContext(hn)}function fn(e,t,r,n={}){if(!e||n.disabled)return{onPress:r,onPressIn:void 0};let{onPressIn:i,onPress:o,haptic:l}=e,a=n.haptics!==false&&t.haptic&&l?l:void 0;return{onPress:r&&(o||a)?()=>{a?.(t),o?.(t),r()}:r,onPressIn:i?()=>i(t):void 0}}function mn(e,t,r=1){return e?.pressScale?.[t]??r}var bn={display:"balance",headline:"balance",title:"balance",heading:"balance",body:"pretty",lead:"pretty",meta:"pretty",caption:"pretty",label:"auto",overline:"auto",kicker:"auto"};function yn(e,t){return e.type.variantTiers?.[t]??cn[t]}var xn=/* @__PURE__ */(()=>{let t=/* @__PURE__ */Symbol.for("@everfur-health/ui-native#ReducedMotionContext@v1"),r=globalThis,n=r[t]??(r[t]=e.createContext(null));return n.displayName??(n.displayName="EverfurReducedMotionContext"),n})();function kn(){return e.useContext(xn)}function wn(e,r){let n=Wr(r.weight,r.mono===true);return{fontFamily:r.serif?e.type.faces.serif??e.type.faces.bold:e.type.faces[n],...e.type.namedFaces?{}:{fontWeight:String(r.weight)},fontSize:r.size,lineHeight:r.lineHeight,color:r.color,...r.tracking?{letterSpacing:r.tracking}:{},...r.upper?{textTransform:"uppercase"}:{},...r.deco?vn(r):{},...r.tabular?{fontVariant:["tabular-nums"]}:{},...r.wrap&&t.Platform.OS==="web"?{textWrap:r.wrap}:{}}}function vn(e){let r={textDecorationLine:e.deco==="strike"?"line-through":"underline"};return t.Platform.OS!=="web"?r:{...r,...e.decoOffset?{textUnderlineOffset:e.decoOffset}:{},...e.decoThickness?{textDecorationThickness:e.decoThickness}:{}}}function Tn(e,t){let[r=0,n=0,i=0,o=0]=t.padding,[l=0,a=0]=t.radius,s=Gr(e,t.bg);return{paddingTop:r,paddingRight:n,paddingBottom:i,paddingLeft:o,...t.marginTop?{marginTop:t.marginTop}:{},...t.gap[0]?{columnGap:t.gap[0]}:{},...t.gap[1]?{rowGap:t.gap[1]}:{},...l===a?l?{borderRadius:l}:{}:{borderTopLeftRadius:l,borderTopRightRadius:l,borderBottomLeftRadius:a,borderBottomRightRadius:a},...s?{backgroundColor:s}:{},...t.edge.width>0&&!t.edge.ring?{borderWidth:t.edge.width,borderColor:Pr(e,t.edge.color)}:{},...t.minHeight?{minHeight:t.minHeight}:{},...zn(t.shadow)}}function Sn(e,t){return t.edge.width>0&&t.edge.ring?An(t.edge.width,Pr(e,t.edge.color),t.radius[0]??0):null}function jn(){if(t.Platform.OS!=="web")return false;let e=globalThis;return typeof e.matchMedia=="function"&&e.matchMedia("(prefers-reduced-motion: reduce)").matches}function Cn(r){let[n,i]=e.useState(()=>r===null&&jn());return e.useEffect(()=>{if(r!==null)return;let e=true,n=t.AccessibilityInfo?.isReduceMotionEnabled;if(typeof n=="function"){let r=n.call(t.AccessibilityInfo);r!=null&&typeof r.then=="function"&&r.then(t=>{e&&i(t===true)},()=>{})}let o=t.AccessibilityInfo?.addEventListener?.("reduceMotionChanged",e=>i(e===true));return()=>{e=false,o?.remove?.()}},[r]),r??n}function In(e){let t=Cn(kn());return e.motion.reduced||t}function Ln(e){let t=Math.max(0,Math.ceil((44-e)/2));return t===0?void 0:{top:t,bottom:t,left:t,right:t}}function zn(e){return e.blur===0&&e.y===0&&e.x===0?null:{shadowColor:e.color,shadowOffset:{width:e.x,height:e.y},shadowOpacity:1,shadowRadius:e.blur,elevation:1}}function An(e,r,n){let i={position:"absolute",top:0,right:0,bottom:0,left:0,borderRadius:n};return t.Platform.OS==="web"?{...i,boxShadow:`inset 0 0 0 ${e}px ${r}`}:{...i,borderWidth:e,borderColor:r}}function Rn(e){return Math.round(e*100)/100}function Wn(e,t){let r=Number(t.weight),n=t.letterSpacing??0;return{...wn(e,{size:t.size,weight:r,lineHeight:Rn(t.size*t.lineHeight),color:e.colors.text,tracking:n?Rn(t.size*n):0,mono:t.face==="mono",upper:t.uppercase===true}),flexShrink:1}}function Fn(e){return e==="auto"?null:t.Platform.OS==="ios"?{lineBreakStrategyIOS:"push-out"}:t.Platform.OS==="android"&&e==="balance"?{textBreakStrategy:"balanced"}:null}function Vn(e,t){let r=e.type.weight[t];return e.type.namedFaces?{fontFamily:e.type.faces[Wr(r)]}:{fontWeight:String(r)}}function Text2({tier:r,variant:n,tone:i,weight:o,level:l,lineBreak:a,typeRole:s,...d}){let c=Ar();if(s){let n=c.type.scaleCaps[r??s.tier??"content"],i=a?Fn(a):null;return e.createElement(t.Text,{...n>0?{maxFontSizeMultiplier:n}:{},...i,...d,style:[Wn(c,s),d.style]})}let u=c.type.scaleCaps[r??(n?yn(c,n):"content")],p=Fn(a??(n?bn[n]:"auto"));if(n===void 0&&i===void 0&&o===void 0&&l===void 0)return p?e.createElement(t.Text,{...u>0?{maxFontSizeMultiplier:u}:{},...p,...d}):e.createElement(t.Text,u>0?{maxFontSizeMultiplier:u,...d}:d);let h=un(c,i),g=n?wn(c,pn(c,n,i,o)):{...h?{color:h}:{},...o?Vn(c,o):{}},f=l===void 0?{}:{accessibilityRole:"header",...t.Platform.OS==="web"?{"aria-level":l}:{}};return e.createElement(t.Text,{...u>0?{maxFontSizeMultiplier:u}:{},...p,...f,...d,style:[g,d.style]})}var Hn=24,Pn=16,On=.8,Bn=e=>Math.round(e*Pn);function Dn(e,t,r,n,i,o){let l=e-r/2,a=t-n/2,s=Math.round(l),d=Math.round(a);return{position:"absolute",left:s,top:d,width:r,height:n,transform:[{translateX:l-s},{translateY:a-d},{rotate:`${Math.atan2(o,i)*180/Math.PI}deg`},{scale:1/Pn}]}}function En(e,t,r){for(let n of e.strokes){let e=n.width*t,i=n.points,o=i.length/2,l=n.closed?o:o-1;for(let a=0;a<l;a+=1){let l=(a+1)%o,s=(i[a*2]??0)*t,d=(i[a*2+1]??0)*t,c=(i[l*2]??0)*t-s,u=(i[l*2+1]??0)*t-d,p=Math.hypot(c,u);if(p===0&&!(o===2&&n.cap))continue;let h=p===0?1:c/p,g=p===0?0:u/p,f=n.closed||a>0||n.cap?e/2:0,m=n.closed||l!==o-1||n.cap?e/2:0,b=(p+m-f)/2;r.push({paint:"backgroundColor",style:{...Dn(s+h*b,d+g*b,Bn(p+f+m),Bn(e),h,g),borderTopLeftRadius:f>0?Bn(e)/2:0,borderBottomLeftRadius:f>0?Bn(e)/2:0,borderTopRightRadius:m>0?Bn(e)/2:0,borderBottomRightRadius:m>0?Bn(e)/2:0,...n.opacity===void 0?{}:{opacity:n.opacity}}})}}}function Nn(e,t,r){for(let n of e.boxes){let e=(n.w+n.width)*t,i=(n.h+n.width)*t;r.push({paint:"borderColor",style:{...Dn((n.x-n.width/2)*t+e/2,(n.y-n.width/2)*t+i/2,Bn(e),Bn(i),1,0),borderWidth:Bn(n.width*t),borderRadius:(n.radius+n.width/2)*t*Pn,...n.opacity===void 0?{}:{opacity:n.opacity}}})}}function qn(e,t,r){for(let n of e.triangles){let e=[0,1,2].map(e=>[(n[e*2]??0)*t,(n[e*2+1]??0)*t]),i=0,o=-1;for(let t=0;t<3;t+=1){let r=e[t]??[0,0],n=e[(t+1)%3]??[0,0],l=Math.hypot(n[0]-r[0],n[1]-r[1]);l>o&&(o=l,i=t)}if(o<=0)continue;let l=e[i]??[0,0],a=e[(i+1)%3]??[0,0],s=e[(i+2)%3]??[0,0],d=(a[0]-l[0])/o,c=(a[1]-l[1])/o,u=(s[0]-l[0])*d+(s[1]-l[1])*c,p=(s[0]-l[0])*-c+(s[1]-l[1])*d,h=Math.abs(p),g=p<0,f=g?-h/2:h/2,m=Bn(u),b=Bn(o)-m,y=Bn(h);r.push({paint:g?"borderBottomColor":"borderTopColor",style:{...Dn(l[0]+d*(o/2)-c*f,l[1]+c*(o/2)+d*f,m+b,y,d,c),width:0,height:0,borderLeftWidth:m,borderRightWidth:b,borderLeftColor:"transparent",borderRightColor:"transparent",...g?{borderBottomWidth:y}:{borderTopWidth:y}}})}for(let n of e.seams){let e=(n[0]??0)*t,i=(n[1]??0)*t,o=(n[2]??0)*t-e,l=(n[3]??0)*t-i,a=Math.hypot(o,l),s=On*(n[4]??0),d=On*(n[5]??0),c=a-s-d;if(a===0||c<=0)continue;let u=s+c/2;r.push({paint:"backgroundColor",style:Dn(e+o/a*u,i+l/a*u,Bn(c),Bn(On),o/a,l/a)})}}var Un=/* @__PURE__ */new WeakMap;function Gn(e,t){let r=Un.get(e);r===void 0&&(r=/* @__PURE__ */new Map,Un.set(e,r));let n=r.get(t);if(n!==void 0)return n;let i=[],o=t/Hn;return Nn(e,o,i),En(e,o,i),qn(e,o,i),r.set(t,i),i}function Glyph({icon:e,size:n,color:i,label:o,testID:l,style:a}){let s=Ar(),d=n??s.metrics.icon.size,c=i??s.colors.ink;/* @__PURE__ */
|
|
5
|
+
return r.jsx(t.View,{testID:l,pointerEvents:"none",style:[{width:d,height:d},a],...o?{accessible:true,accessibilityRole:"image",accessibilityLabel:o}:{accessible:false,accessibilityElementsHidden:true,importantForAccessibility:"no-hide-descendants"},children:Gn(e,d).map((e,n)=>/* @__PURE__ */r.jsx(t.View,{style:[e.style,{[e.paint]:c}]},n))})}var Mn=/* @__PURE__ */(()=>{let e=/* @__PURE__ */Symbol.for("@everfur-health/ui-native#icons@v1"),t=globalThis;return t[e]??(t[e]={icons:{},warned:/* @__PURE__ */new Set})})();function Kn(e){let t=Mn.icons[e];return t===void 0&&(typeof __DEV__<"u"?__DEV__:typeof process<"u"&&process.env.NODE_ENV!=="production")&&!Mn.warned.has(e)&&(Mn.warned.add(e),console.warn(`@everfur-health/ui-native: no icon "${e}" is registered. The lean entry draws only the icons an app registers: registerIcons({ ... }) with the UI_RN_ICON_* exports, or pass a drawing.`)),t}function Icon2({name:e,...t}){let n=Kn(e);return n?/* @__PURE__ */r.jsx(Glyph,{icon:n,...t}):null}function Zn(e,t,r,n=1){return Yn(gn(),e,t,r,n)}function Yn(e,t,r,n,i=1){let o=fn(e,{component:t,testID:r.testID,...r.item===void 0?{}:{item:r.item},label:r.label,trackId:r.trackId,haptic:r.haptic===true},n,{disabled:r.disabled});return{props:o.onPressIn?{onPress:o.onPress,onPressIn:o.onPressIn}:{onPress:o.onPress},scale:mn(e,t,i)}}var Jn=e=>`cubic-bezier(${e.join(", ")})`,Xn=(e,t)=>typeof e=="function"?e({pressed:t}):e,Qn;function _n(){return Qn??(Qn=t.Animated.createAnimatedComponent(t.Pressable))}function $n(e,r,n){let[i,o,l,a]=e.motion.easing.out;return t.Animated.timing(r,{toValue:n,duration:e.motion.duration.press,easing:t.Easing.bezier(i,o,l,a),useNativeDriver:true})}function PressBox({style:r,scale:n,still:i,pop:o,onPressIn:l,onPressOut:a,...s}){let d=Ar(),c=e.useRef(null),[u,p]=e.useState(false),h=!i&&n!==1,g=!i&&o?.scale!=null;if(t.Platform.OS==="web"){let i=h?{transitionProperty:"transform",transitionDuration:`${d.motion.duration.press}ms`,transitionTimingFunction:Jn(d.motion.easing.out)}:null;return e.createElement(t.Pressable,{...s,...o?{ref:o.ref}:null,onPressIn:l,onPressOut:a,style:({pressed:e})=>[Xn(r,e),i,h&&e?{transform:[{scale:n}]}:null]})}if(!h&&!g)return e.createElement(t.Pressable,{...s,onPressIn:l,onPressOut:a,style:r});let f=c.current??(c.current=new t.Animated.Value(0)),m=h?f.interpolate({inputRange:[0,1],outputRange:[1,n]}):null,b=m&&g?t.Animated.multiply(m,o?.scale):m??o?.scale;return e.createElement(_n(),{...s,onPressIn:e=>{s.disabled||(p(true),h&&$n(d,f,1).start(),l?.(e))},onPressOut:e=>{p(false),h&&$n(d,f,0).start(),a?.(e)},style:[Xn(r,u),{transform:[{scale:b}]}]})}t.StyleSheet.create({base:{flexDirection:"row",alignItems:"center",justifyContent:"center"},block:{alignSelf:"stretch"},auto:{alignSelf:"flex-start"},labelBox:{flexShrink:1},label:{textAlign:"center"}});var ei={bg:"#FDFBF8",radius:10,padding:15,borderWidth:1,borderColor:"rgba(0, 0, 0, 0.15)"},ti={gap:10,title:{size:14,weight:700,lineHeight:18,tracking:-.42,color:"ink"},bigTitle:{size:18,weight:700,lineHeight:22,tracking:-.54,color:"ink"},edit:{icon:12,iconColor:"#3D3D3D",gap:4,text:{size:8,weight:400,lineHeight:10,tracking:-.24,color:"#3D3D3D",mono:true,upper:true},minHeight:44,hitSlop:12}},ri={block:{height:16,radius:8},shimmer:{duration:1150,bandShare:.6,bandMin:28,band:"rgba(255, 255, 255, 0.42)",skew:-14}};function Card({title:e,action:n,lead:i,children:o,tone:l="default",headGap:a,onPress:s,accessibilityLabel:d,trackId:c,haptic:u,variant:p="standard",tint:h,borderColor:g,testID:f,style:m}){let b=Ar(),y=In(b),x=b.metrics.card,k=Nr(b),w=d??e,v=Zn("Card",{testID:f,label:w,trackId:c,haptic:u},s,b.metrics.press.card),S=e?/* @__PURE__ */r.jsx(Text2,{accessibilityRole:"header",tier:"heading",lineBreak:"balance",style:[wn(b,k.cardTitle),ni.shrink],children:e}):null,j=l==="ghost",C=p==="plain"?ei:null,I=C?{padding:C.padding,borderWidth:C.borderWidth,borderColor:g??(j?Pr(b,x.ghost.borderColor):C.borderColor),...j?{borderStyle:x.ghost.borderStyle}:null,borderRadius:C.radius,borderCurve:"continuous",backgroundColor:h??C.bg}:{padding:x.padding,borderWidth:x.borderWidth,borderColor:g??(j?Pr(b,x.ghost.borderColor):b.colors.line),...j?{borderStyle:x.ghost.borderStyle}:null,borderRadius:x.radius,backgroundColor:h??b.colors.surface},L=/* @__PURE__ */r.jsxs(r.Fragment,{children:[n?/* @__PURE__ */r.jsxs(t.View,{style:[ni.head,S?null:ni.end,{columnGap:x.headGapX,rowGap:x.headGapY,marginBottom:a??x.headGap}],children:[S,n]}):S?/* @__PURE__ */r.jsx(t.View,{style:{marginBottom:i||o?a??x.titleGap:0},children:S}):null,i?/* @__PURE__ */r.jsx(Text2,{style:[wn(b,k.cardLead),{marginBottom:o?x.leadGap:0}],children:i}):null,o]});return s?/* @__PURE__ */r.jsx(PressBox,{testID:f,...v.props,scale:v.scale,still:y,accessibilityRole:"button",accessibilityLabel:w,style:[I,m],children:L}):/* @__PURE__ */r.jsx(t.View,{testID:f,style:[I,m],children:L})}var ni=t.StyleSheet.create({head:{flexDirection:"row",flexWrap:"wrap",alignItems:"center",justifyContent:"space-between"},shrink:{flexShrink:1},end:{justifyContent:"flex-end"}});t.StyleSheet.create({chip:{flexDirection:"row",alignItems:"center",alignSelf:"flex-start"}});function ii(e,t){return wn(e,{size:t.size,weight:t.weight,lineHeight:t.lineHeight,color:Pr(e,t.color),tracking:t.tracking,mono:t.mono===true,upper:t.upper===true})}t.StyleSheet.create({st:{alignItems:"center",alignSelf:"stretch"},center:{textAlign:"center"},acts:{alignItems:"center",alignSelf:"stretch"},link:{alignItems:"center",justifyContent:"center"},underline:{textDecorationLine:"underline"},compact:{alignItems:"center"},iconBox:{alignItems:"center",justifyContent:"center"},pill:{alignItems:"center",justifyContent:"center"}});t.StyleSheet.create({acts:{flexDirection:"row",flexWrap:"wrap",alignItems:"center"},st:{alignItems:"center",alignSelf:"stretch"},center:{textAlign:"center"},stActs:{alignItems:"center",alignSelf:"stretch"},link:{alignItems:"center",justifyContent:"center"},underline:{textDecorationLine:"underline"}});function Pill({label:e,tone:n="plain",testID:i,style:o,maxFontSizeMultiplier:l,grouped:a=true}){let s=Ar(),d=Dr(s,n);/* @__PURE__ */
|
|
6
|
+
return r.jsxs(t.View,{testID:i,...a?{accessible:true,accessibilityLabel:e}:null,style:[oi.pill,{minHeight:d.minHeight,paddingHorizontal:d.paddingX,borderRadius:d.radius,backgroundColor:d.background,...d.dot?{columnGap:d.dot.gap}:{}},o],children:[d.ring?/* @__PURE__ */r.jsx(t.View,{pointerEvents:"none",style:An(d.ring.width,d.ring.color,d.radius)}):null,d.dot?/* @__PURE__ */r.jsx(t.View,{style:{width:d.dot.size,height:d.dot.size,borderRadius:d.dot.size/2,backgroundColor:d.dot.color}}):null,
|
|
7
|
+
/* @__PURE__ */r.jsx(Text2,{tier:"control",numberOfLines:1,...l===void 0?{}:{maxFontSizeMultiplier:l},style:[wn(s,d.text),oi.label],children:e})]})}var oi=t.StyleSheet.create({pill:{flexDirection:"row",alignItems:"center",alignSelf:"flex-start",maxWidth:"100%"},label:{flexShrink:1}});var li={strokes:[{width:2,cap:true,closed:true,points:[11,21.73,12,21.998,13,21.73,20,17.73,20.732,16.999,21,16,21,8,20.732,7.001,20,6.27,13,2.27,12,2.002,11,2.27,4,6.27,3.268,7.001,3,8,3,16,3.268,16.999,4,17.73]},{width:2,cap:true,closed:false,points:[12,22,12,12]},{width:2,cap:true,closed:false,points:[3.29,7,12,12,20.71,7]},{width:2,cap:true,closed:false,points:[7.5,4.27,16.5,9.42]}],boxes:[],triangles:[],seams:[]};var ai={strokes:[{width:2,cap:true,closed:false,points:[9,18.001,15,12.001,9,6.001]}],boxes:[],triangles:[],seams:[]};var si={strokes:[{width:2,cap:true,closed:false,points:[12,3,5,3,4,3.268,3.268,4,3,5,3,19,3.268,20,4,20.732,5,21,19,21,20,20.732,20.732,20,21,19,21,12]},{width:2,cap:true,closed:true,points:[18.375,2.625,19.326,2.076,20.424,2.076,21.375,2.625,21.924,3.576,21.924,4.674,21.375,5.625,12.362,14.639,11.509,15.144,8.636,15.984,8.142,15.858,8.016,15.364,8.856,12.491,9.362,11.639]}],boxes:[],triangles:[],seams:[]};var di={strokes:[{width:2,cap:true,closed:false,points:[5,12,19,12]}],boxes:[],triangles:[],seams:[]};var ci={strokes:[{width:2,cap:true,closed:false,points:[5,12,19.001,12]},{width:2,cap:true,closed:false,points:[12,5,12,19.001]}],boxes:[],triangles:[],seams:[]};function QuantityStepper(e){return ui(e,void 0)}function InkedQuantityStepper({ink:e,...t}){return ui(t,e)}function ui({value:n,min:i=1,max:o,label:l,fewerLabel:a,moreLabel:s,disabled:d=false,variant:c="standard",onChange:u,trackId:p,haptic:h,testID:g,style:f},m){let b=Ar(),y=In(b),x=qr(b),k=b.metrics.variants.stepper,w=c==="compact",v=d||n<=i,S=d||o!==void 0&&n>=o,j=w?k.press:b.metrics.press.iconButton,C=Zn("QuantityStepper",{testID:g?`${g}-fewer`:void 0,item:"fewer",label:a,trackId:p,haptic:h,disabled:v},()=>u(Zr(n-1,i,o)),j),I=Zn("QuantityStepper",{testID:g?`${g}-more`:void 0,item:"more",label:s,trackId:p,haptic:h,disabled:S},()=>u(Zr(n+1,i,o)),j),L=e.useRef(n);e.useEffect(()=>{L.current!==n&&(L.current=n,t.Platform.OS==="ios"&&t.AccessibilityInfo.announceForAccessibility(`${l}, ${n}`))},[l,n]);let z=(e,t,n,i,o)=>/* @__PURE__ */r.jsx(PressBox,{...i.props,scale:i.scale,still:y,disabled:e,hitSlop:Ln(k.button.h),accessibilityRole:"button",accessibilityLabel:n,accessibilityState:{disabled:e},testID:g?`${g}-${o}`:void 0,style:[pi.button,{width:k.button.w,height:k.button.h,borderRadius:k.button.radius[0]??0},e?{opacity:k.disabledOpacity}:null],children:/* @__PURE__ */r.jsx(Glyph,{icon:t==="plus"?ci:di,size:k.icon,color:m??Pr(b,k.button.color)})}),A=(e,t,n,i,o)=>w?z(e,t,n,i,o):/* @__PURE__ */r.jsx(PressBox,{...i.props,scale:i.scale,still:y,disabled:e,hitSlop:Ln(x.button),accessibilityRole:"button",accessibilityLabel:n,accessibilityState:{disabled:e},testID:g?`${g}-${o}`:void 0,style:[pi.button,{width:x.button,height:x.button,borderRadius:x.button/2},e&&x.off.opacity!==1?{opacity:x.off.opacity}:null],children:/* @__PURE__ */r.jsx(Glyph,{icon:t==="plus"?ci:di,size:x.icon,color:e?x.off.color:b.colors.ink})}),R=w?Sn(b,k.track):null;/* @__PURE__ */
|
|
8
|
+
return r.jsxs(t.View,{testID:g,style:[pi.qty,w?[Tn(b,k.track),{height:k.track.h}]:{borderWidth:x.edge.inset?0:x.edge.width,borderColor:x.edge.color,borderRadius:b.radius.pill},f],children:[w?R?/* @__PURE__ */r.jsx(t.View,{pointerEvents:"none",style:R}):null:x.edge.inset?/* @__PURE__ */r.jsx(t.View,{pointerEvents:"none",style:An(x.edge.width,x.edge.color,b.radius.pill)}):null,A(v,"minus",a,C,"fewer"),
|
|
9
|
+
/* @__PURE__ */r.jsx(Text2,{tier:"control",accessible:true,accessibilityRole:"adjustable",accessibilityLabel:l,accessibilityValue:{now:n,min:i,...o!==void 0?{max:o}:{},text:String(n)},"aria-valuenow":n,"aria-valuemin":i,"aria-valuemax":o,accessibilityState:{disabled:d},"aria-disabled":d||void 0,accessibilityActions:[{name:"increment"},{name:"decrement"}],onAccessibilityAction:e=>{e.nativeEvent.actionName==="increment"&&!S&&u(Zr(n+1,i,o)),e.nativeEvent.actionName==="decrement"&&!v&&u(Zr(n-1,i,o))},accessibilityLiveRegion:"polite",style:w?[wn(b,Ur(b,k.value)),{width:k.valueWidth,textAlign:"center"},m?{color:m}:null]:[wn(b,Nr(b).stepperValue),{minWidth:x.valueMinWidth,textAlign:"center",fontVariant:["tabular-nums"]}],children:String(n)}),A(S,"plus",s,I,"more")]})}var pi=t.StyleSheet.create({qty:{flexDirection:"row",alignItems:"center",alignSelf:"flex-start"},button:{alignItems:"center",justifyContent:"center"}});function SectionHeader({title:e,kicker:n,action:i,variant:o="standard",titleSize:l="regular",edit:a,testID:s,style:d}){let c=Ar(),u=Nr(c);if(o==="compact"){let o=ti,p=o.edit,h=i??(a?/* @__PURE__ */r.jsxs(t.Pressable,{testID:s?`${s}-accessory`:void 0,onPress:a.onPress,accessibilityRole:"button",accessibilityLabel:a.accessibilityLabel??a.text,hitSlop:p.hitSlop,style:({pressed:e})=>[hi.edit,{minHeight:p.minHeight,columnGap:p.gap},e?hi.pressed:null],children:[
|
|
10
|
+
/* @__PURE__ */r.jsx(Glyph,{icon:si,size:p.icon,color:Pr(c,p.iconColor)}),
|
|
11
|
+
/* @__PURE__ */r.jsx(Text2,{tier:"compact",style:ii(c,p.text),children:a.text})]}):null);/* @__PURE__ */
|
|
12
|
+
return r.jsxs(t.View,{testID:s,style:[hi.compact,{columnGap:o.gap},d],children:[
|
|
13
|
+
/* @__PURE__ */r.jsxs(t.View,{style:hi.titles,children:[n?/* @__PURE__ */r.jsx(Text2,{tier:"compact",style:wn(c,u.kicker),children:n}):null,
|
|
14
|
+
/* @__PURE__ */r.jsx(Text2,{accessibilityRole:"header",tier:"heading",style:ii(c,l==="big"?o.bigTitle:o.title),children:e})]}),h]})}let p=c.metrics.sectionHeader;/* @__PURE__ */
|
|
15
|
+
return r.jsxs(t.View,{testID:s,style:[hi.row,{columnGap:p.gapX,rowGap:p.gapY,marginTop:p.marginTop},d],children:[
|
|
16
|
+
/* @__PURE__ */r.jsxs(t.View,{style:hi.titles,children:[n?/* @__PURE__ */r.jsx(Text2,{tier:"compact",style:wn(c,u.kicker),children:n}):null,
|
|
17
|
+
/* @__PURE__ */r.jsx(Text2,{accessibilityRole:"header",style:wn(c,u.cardTitle),children:e})]}),i]})}var hi=t.StyleSheet.create({row:{flexDirection:"row",flexWrap:"wrap",alignItems:"center",justifyContent:"space-between"},compact:{flexDirection:"row",alignItems:"center",justifyContent:"space-between"},titles:{flexShrink:1},edit:{flexDirection:"row",alignItems:"center",justifyContent:"center"},pressed:{opacity:.6}});t.StyleSheet.create({row:{flexDirection:"row",alignSelf:"stretch"},hairline:{position:"absolute",left:0,right:0},tab:{flex:1,flexBasis:0,flexDirection:"row",alignItems:"center",justifyContent:"center"},center:{flexShrink:1,textAlign:"center"}});var gi=/* @__PURE__ */Object.freeze({position:"absolute",top:0,right:0,bottom:0,left:0});t.StyleSheet.create({scrim:{flex:1,justifyContent:"flex-end"},sheet:{maxHeight:"100%"},grab:{alignItems:"center",justifyContent:"center"},head:{flexDirection:"row",alignItems:"center",justifyContent:"space-between"},titles:{flexShrink:1,flexGrow:1},close:{alignItems:"center",justifyContent:"center"},closeEnd:{marginLeft:"auto"},scroll:{flexGrow:0},top:{flexDirection:"row",alignItems:"center"}});function Skeleton({lines:e=3,shape:n,label:i,testID:o,style:l,block:a,color:s}){let d=Ar(),c=d.metrics.skeleton,u=s??c.color??d.colors.tintSage,p=i?{accessible:true,accessibilityRole:"progressbar",accessibilityLabel:i,accessibilityState:{busy:true}}:{accessibilityElementsHidden:true,importantForAccessibility:"no-hide-descendants"};return a?/* @__PURE__ */r.jsx(SkeletonBox,{block:a,fill:u,testID:o,style:l,named:p}):n?/* @__PURE__ */r.jsx(t.View,{testID:o,style:[fi(d,n,u),l],...p}):/* @__PURE__ */r.jsx(t.View,{testID:o,style:[{rowGap:c.gap,alignSelf:"stretch"},l],...p,children:Array.from({length:Math.max(1,e)},(e,n)=>/* @__PURE__ */r.jsx(t.View,{style:{height:c.lineHeight,width:Kr(d,n),borderRadius:d.radius.pill,backgroundColor:u}},n))})}function SkeletonBox({block:n,fill:i,testID:o,style:l,named:a}){let s=Ar(),d=In(s),c=ri,u=c.shimmer,p=n.shimmer===true&&!d,[h,g]=e.useState(0),f=e.useRef(new t.Animated.Value(0)).current;e.useEffect(()=>{if(!p||h<=0)return;f.setValue(0);let e=t.Animated.loop(t.Animated.timing(f,{toValue:1,duration:u.duration,easing:t.Easing.inOut(t.Easing.ease),useNativeDriver:t.Platform.OS!=="web"}));return e.start(),()=>e.stop()},[p,h,f,u.duration]);let m=Math.max(u.bandMin,h*u.bandShare);/* @__PURE__ */
|
|
18
|
+
return r.jsx(t.View,{testID:o,onLayout:p?e=>g(Math.round(e.nativeEvent.layout.width)):void 0,style:[{width:n.width??"100%",height:n.height??c.block.height,borderRadius:n.radius??c.block.radius,borderCurve:"continuous",backgroundColor:i,overflow:"hidden"},l],...a,children:p&&h>0?/* @__PURE__ */r.jsx(t.Animated.View,{pointerEvents:"none",style:{position:"absolute",top:-6,bottom:-6,left:0,width:m,backgroundColor:u.band,transform:[{translateX:f.interpolate({inputRange:[0,1],outputRange:[-m,h+m]})},{skewX:`${u.skew}deg`}]}}):null})}function fi(e,t,r){let n=t.radius==="circle",i=t.width??(n?t.height:void 0),o=mi(e,t,i);return{height:t.height,...i===void 0?{alignSelf:"stretch"}:{width:i},borderRadius:o,backgroundColor:r}}function mi(e,t,r){let n=t.radius??"pill";return n==="none"?0:n==="circle"?(typeof r=="number"?Math.min(r,t.height):t.height)/2:e.radius[n]}function SummaryList({rows:e,total:n=false,trailingRows:i=[],loading:o=false,loadingLabel:l,variant:a="standard",note:s,grouped:d=true,lineBreak:c,testID:u,style:p}){let h=Ar(),g=Mr(h);if(o)/* @__PURE__ */
|
|
19
19
|
return r.jsx(t.View,{testID:u,style:[{padding:g.paddingX,borderRadius:g.radius,backgroundColor:h.colors.surface},p],children:/* @__PURE__ */r.jsx(Skeleton,{lines:4,label:l})});let f=typeof n=="object"?[...e,{...n,key:n.key??"total"}]:e,m=n!==false;if(f.length===0)return null;let b=e=>d?{accessible:true,accessibilityLabel:`${e.term}, ${e.value}`}:null,y=c===void 0?null:{lineBreak:c},x=s?{...s,key:s.key??"note"}:void 0,k=[...f,...i,...x?[x]:[]];if(a!=="standard"&&a!=="flush"){let e=h.metrics.variants.summary;/* @__PURE__ */
|
|
20
|
-
return r.jsx(t.View,{testID:u,style:[
|
|
21
|
-
return r.jsxs(t.View,{testID:
|
|
22
|
-
/* @__PURE__ */r.jsx(Text2,{...y,style:
|
|
23
|
-
/* @__PURE__ */r.jsx(Text2,{...y,style:
|
|
24
|
-
return r.jsx(t.View,{testID:u,style:[{paddingHorizontal:w?0:g.paddingX,paddingVertical:w?0:g.paddingY,borderWidth:w?0:g.borderWidth,borderColor:g.borderColor,borderRadius:g.radius,backgroundColor:g.background},
|
|
25
|
-
return r.jsxs(t.View,{testID:
|
|
26
|
-
/* @__PURE__ */r.jsx(Text2,{...y,style:
|
|
27
|
-
/* @__PURE__ */r.jsx(Text2,{...y,style:[
|
|
20
|
+
return r.jsx(t.View,{testID:u,style:[Tn(h,a==="inset"?e.inset:e.box),p],children:k.map((n,i)=>{let o=n===x?"note":m&&i===f.length-1?"total":"row",l=o==="note"?e.renewRow:o==="total"?e.totalRow:e.row,a=o==="note"?e.renewTerm:o==="total"?e.totalTerm:e.term,s=o==="note"?e.renew:o==="total"?e.total:e.value;/* @__PURE__ */
|
|
21
|
+
return r.jsxs(t.View,{testID:Yr(u,n.key??i,n.testID),...b(n),style:[bi.cardRow,{columnGap:l.gap[0]??0,minHeight:l.minHeight||void 0,marginTop:l.marginTop||void 0}],children:[
|
|
22
|
+
/* @__PURE__ */r.jsx(Text2,{...y,style:wn(h,Ur(h,a)),children:n.term}),
|
|
23
|
+
/* @__PURE__ */r.jsx(Text2,{...y,style:wn(h,Ur(h,s)),children:n.value})]},n.key??`${i}`)})})}let w=a==="flush";/* @__PURE__ */
|
|
24
|
+
return r.jsx(t.View,{testID:u,style:[{paddingHorizontal:w?0:g.paddingX,paddingVertical:w?0:g.paddingY,borderWidth:w?0:g.borderWidth,borderColor:g.borderColor,borderRadius:g.radius,backgroundColor:g.background},zn(g.shadow),p],children:k.map((e,n)=>{let i=n===k.length-1,o=m&&n===f.length-1,l=o?g.totalRowMinHeight:g.row.minHeight;/* @__PURE__ */
|
|
25
|
+
return r.jsxs(t.View,{testID:Yr(u,e.key??n,e.testID),...b(e),style:[bi.row,{alignItems:g.row.center?"center":"baseline",paddingVertical:g.row.paddingY,columnGap:g.row.gapX,rowGap:g.row.gapY},l?{minHeight:l}:null,i||g.row.divider===0?null:{borderBottomWidth:g.row.divider,borderBottomColor:g.borderColor}],children:[
|
|
26
|
+
/* @__PURE__ */r.jsx(Text2,{...y,style:wn(h,o?g.totalTerm:g.term),children:e.term}),
|
|
27
|
+
/* @__PURE__ */r.jsx(Text2,{...y,style:[wn(h,o?g.total:e.tone==="off"?g.off:g.value),bi.value,g.tabular?bi.tabular:null],children:e.value})]},e.key??`${n}`)})})}var bi=t.StyleSheet.create({row:{flexDirection:"row",flexWrap:"wrap",justifyContent:"space-between"},cardRow:{flexDirection:"row",justifyContent:"space-between",alignItems:"center"},value:{marginLeft:"auto",textAlign:"right"},tabular:{fontVariant:["tabular-nums"]}});function BlockIcon({icon:e,size:t,color:n,style:i}){let o=Ar();return typeof e=="function"?e({size:t,color:n??o.colors.ink}):typeof e!="string"?/* @__PURE__ */r.jsx(Glyph,{icon:e,size:t,color:n,style:i}):/* @__PURE__ */r.jsx(Icon2,{name:e,size:t,color:n,style:i})}function yi(e,t){t>e.value&&e.onMore?e.onMore():t<e.value&&e.onFewer?e.onFewer():e.onChange?.(t)}function xi(t){let[r,n]=e.useState(null);return{shown:t!==null&&r===t,onShown:()=>n(t)}}function FadeImage({onShown:n,onLoad:i,style:o,...l}){let a=Ar(),s=In(a),d=e.useRef(new t.Animated.Value(0)).current;/* @__PURE__ */
|
|
28
28
|
return r.jsx(t.Animated.Image,{...l,fadeDuration:0,onLoad:e=>{i?.(e);let r=a.motion.duration.fade;if(s||r<=0){d.setValue(1),n?.();return}t.Animated.timing(d,{toValue:1,duration:r,easing:t.Easing.out(t.Easing.cubic),useNativeDriver:t.Platform.OS!=="web"}).start(()=>n?.())},style:[o,{opacity:d}]})}function Thumbnail(e){/* @__PURE__ */
|
|
29
|
-
return r.jsx(BlockThumbnail,{...e})}function BlockThumbnail({src:n,alt:i,size:o="xs",icon:l=
|
|
30
|
-
return r.jsxs(t.View,{testID:u,style:[
|
|
31
|
-
return r.jsxs(t.View,{style:[f,
|
|
32
|
-
/* @__PURE__ */r.jsx(t.Image,{source:
|
|
33
|
-
return r.jsx(t.View,{style:[f,
|
|
29
|
+
return r.jsx(BlockThumbnail,{...e})}function BlockThumbnail({src:n,alt:i,size:o="xs",icon:l=li,iconSize:a,tint:s,iconColor:d,onError:c,testID:u,style:p}){let h=Ar(),g=h.metrics.thumbnail[o],[f,m]=e.useState(null),[b,y]=e.useState(null),x=n&&f!==n?n:null,k=g.top;e.useEffect(()=>{if(!k||!x)return;let e=true;return t.Image.getSize(x,(t,r)=>{e&&t>0&&r>0&&y(t/r)},()=>{}),()=>{e=false}},[k,x]);let w=x?g.frame:g.empty,[v=0,S=0,j=0,C=0]=w.padding,[I=0,L=0,z=0,A=0]=g.img.padding,R=Sn(h,w),W=g.top&&b!==null;/* @__PURE__ */
|
|
30
|
+
return r.jsxs(t.View,{testID:u,style:[Tn(h,w),o==="md"||o==="lg"?{width:"100%",aspectRatio:1}:{width:w.w,height:w.h},{alignItems:"center",justifyContent:"center",overflow:"hidden"},!x&&s!==void 0?{backgroundColor:s}:null,p],...x?{}:i?{accessible:true,accessibilityRole:"image",accessibilityLabel:i}:{accessibilityElementsHidden:true,importantForAccessibility:"no-hide-descendants"},children:[x?/* @__PURE__ */r.jsx(FadeImage,{source:{uri:x},accessibilityLabel:i,accessible:!!i,onError:()=>{m(x),c?.(x)},resizeMode:W?"stretch":g.img.fit==="contain"?"contain":"cover",style:W?{position:"absolute",top:v,left:C,width:w.w-C-S,height:(w.w-C-S)/b}:{position:"absolute",top:v+I,right:S+L,bottom:j+z,left:C+A}},x):/* @__PURE__ */r.jsx(BlockIcon,{icon:l,size:a??g.icon.w,color:d??Pr(h,g.icon.color)}),R?/* @__PURE__ */r.jsx(t.View,{pointerEvents:"none",style:R}):null]})}t.StyleSheet.create({row:{flexDirection:"row",alignItems:"flex-start"},noGap:{columnGap:0},box:{alignItems:"center",justifyContent:"center"},grow:{flex:1,minWidth:0}});t.StyleSheet.create({row:{flexDirection:"row",alignItems:"center"},words:{flex:1,minWidth:0},center:{alignItems:"center",justifyContent:"center"}});t.StyleSheet.create({hintRow:{flexDirection:"row",alignItems:"flex-start"},grow:{flex:1}});t.StyleSheet.create({base:{alignItems:"center",justifyContent:"center",alignSelf:"flex-start"}});t.StyleSheet.create({base:{alignSelf:"flex-start"}});t.StyleSheet.create({track:{alignSelf:"flex-start"},thumb:{position:"absolute"}});t.StyleSheet.create({box:{flexDirection:"row"},line:{alignItems:"center"},area:{alignItems:"stretch"},input:{flex:1,minWidth:0,margin:0,borderWidth:0,backgroundColor:"transparent"},hidden:{position:"absolute",width:1,height:1,overflow:"hidden",opacity:0}});function ki(e){return typeof e=="string"?{uri:e}:e}function wi(e){return e==null?null:typeof e=="object"?e.uri:String(e)}function Face({name:n,src:i,side:o,tint:l,initials:a,initialsSize:s}){let d=Ar(),c=Qr(d,o,l),[u,p]=e.useState(null),h=wi(i),g=i!=null&&u!==h?i:null,f={width:o,height:o,borderRadius:o/2};if(g!==null)/* @__PURE__ */
|
|
31
|
+
return r.jsxs(t.View,{style:[f,vi.clip,{backgroundColor:c.photoBg}],children:[c.edge.width>0?/* @__PURE__ */r.jsx(t.View,{style:An(c.edge.width,c.edge.color,o/2)}):null,
|
|
32
|
+
/* @__PURE__ */r.jsx(t.Image,{source:ki(g),resizeMode:"cover",onError:()=>p(h),style:gi})]});let m=s?{...c.initials,size:s,lineHeight:Math.round(s*(c.initials.lineHeight/c.initials.size)*1e3)/1e3}:c.initials;/* @__PURE__ */
|
|
33
|
+
return r.jsx(t.View,{style:[f,vi.center,{backgroundColor:c.tint}],children:/* @__PURE__ */r.jsx(Text2,{tier:"badge",style:wn(d,m),numberOfLines:1,children:a??Jr(n)})})}function Avatar({name:e,src:n,size:i="md",tint:o="default",initials:l,ring:a=false,dot:s=false,dotLabel:d,decorative:c=false,testID:u,style:p}){let h=Ar(),g=Qr(h,i,o),f=g.ring.offset+g.ring.width,m=s&&d?`${e}, ${d}`:e;/* @__PURE__ */
|
|
34
34
|
return r.jsxs(t.View,{testID:u,style:[{width:g.side,height:g.side},p],...c?{accessible:false,accessibilityElementsHidden:true,importantForAccessibility:"no-hide-descendants"}:{accessible:true,accessibilityRole:"image",accessibilityLabel:m},children:[
|
|
35
|
-
/* @__PURE__ */r.jsx(Face,{name:e,src:n,side:g.side,tint:o,initials:l}),a?/* @__PURE__ */r.jsx(t.View,{pointerEvents:"none",style:{position:"absolute",top:-f,left:-f,width:g.side+2*f,height:g.side+2*f,borderRadius:g.side/2+f,borderWidth:g.ring.width,borderColor:g.ring.color}}):null,s?/* @__PURE__ */r.jsx(t.View,{pointerEvents:"none",testID:u?`${u}-dot`:void 0,style:{position:"absolute",right:0,bottom:0,width:g.dot.size,height:g.dot.size,borderRadius:g.dot.size/2,borderWidth:g.dot.edge,borderColor:g.dot.edgeColor,backgroundColor:g.dot.color}}):null]})}var
|
|
36
|
-
/* @__PURE__ */r.jsx(Text2,{style:
|
|
37
|
-
/* @__PURE__ */r.jsx(t.View,{role:"listitem",children:/* @__PURE__ */r.jsx(
|
|
38
|
-
return r.jsxs(t.View,{testID:d,accessible:!m&&!!l,accessibilityRole:!m&&l?"image":void 0,accessibilityLabel:m?void 0:l,style:[
|
|
35
|
+
/* @__PURE__ */r.jsx(Face,{name:e,src:n,side:g.side,tint:o,initials:l}),a?/* @__PURE__ */r.jsx(t.View,{pointerEvents:"none",style:{position:"absolute",top:-f,left:-f,width:g.side+2*f,height:g.side+2*f,borderRadius:g.side/2+f,borderWidth:g.ring.width,borderColor:g.ring.color}}):null,s?/* @__PURE__ */r.jsx(t.View,{pointerEvents:"none",testID:u?`${u}-dot`:void 0,style:{position:"absolute",right:0,bottom:0,width:g.dot.size,height:g.dot.size,borderRadius:g.dot.size/2,borderWidth:g.dot.edge,borderColor:g.dot.edgeColor,backgroundColor:g.dot.color}}):null]})}var vi=t.StyleSheet.create({clip:{overflow:"hidden"},center:{alignItems:"center",justifyContent:"center"},stack:{flexDirection:"row",alignItems:"center",alignSelf:"flex-start"}}),Ti=/* @__PURE__ */e.createContext(null);function Si(e){return e.replace(/\//g,"/")}var ji=12;function Ci(e){return e.split(/[\s/]+/).some(e=>e.length>ji)}function ListRow({title:n,subtitle:i,titleLines:o,subtitleLines:l,value:a,icon:s,avatar:d,thumbnail:c,leading:u,trailing:p,chevron:h,onPress:g,destructive:f=false,disabled:m=false,selected:b,variant:y,accessibilityLabel:x,accessibilityHint:k,accessibilityRole:w="button",trackId:v,haptic:S,testID:j,style:C}){let I=Ar(),L=In(I),z=e.useContext(Ti),A=y??z?.variant??"rows",R=z?.first??true,W=z?.last??true,F=_r(I,A,f),V=I.metrics.lists,H=A==="tiles",[P=0,O=0,B=0,D=0]=F.row.padding,E=h??!!g,N=p!=null&&Ci(n),q=u?/* @__PURE__ */r.jsx(t.View,{style:Ii.leadAuto,children:u}):d?/* @__PURE__ */r.jsx(t.View,{style:{width:V.tiles.leadingFace},children:/* @__PURE__ */r.jsx(Avatar,{...d,size:V.avatar.face,decorative:true})}):c?/* @__PURE__ */r.jsx(Thumbnail,{...c,size:"xs"}):s?/* @__PURE__ */r.jsx(t.View,{style:{width:F.icon.column},children:/* @__PURE__ */r.jsx(BlockIcon,{icon:s,size:F.icon.size,color:F.icon.color})}):null,U=/* @__PURE__ */r.jsxs(t.View,{style:[Ii.words,H?{rowGap:V.tiles.text.gap[1]}:null],children:[
|
|
36
|
+
/* @__PURE__ */r.jsx(Text2,{style:wn(I,F.title),numberOfLines:o,children:Si(n)}),i?/* @__PURE__ */r.jsx(Text2,{style:[wn(I,F.subtitle),H?null:{marginTop:V.rows.subtitle.marginTop}],numberOfLines:l,children:i}):null,p!=null&&N?/* @__PURE__ */r.jsx(t.View,{style:[Ii.below,{marginTop:V.tiles.text.gap[1]}],children:p}):null]}),G=!!a||p!=null&&!N||E?/* @__PURE__ */r.jsxs(t.View,{style:[Ii.end,{columnGap:F.endGap}],children:[a?/* @__PURE__ */r.jsx(Text2,{style:wn(I,F.value),numberOfLines:1,children:a}):null,p!=null&&!N?p:null,E?/* @__PURE__ */r.jsx(Glyph,{icon:ai,size:F.chevron.size,color:F.chevron.color}):null]}):null,M={flexDirection:"row",alignItems:F.row.center?"center":"flex-start",columnGap:F.row.gap[0]??0,paddingTop:H||!R?P:0,paddingBottom:H||!W?B:0,paddingLeft:D,paddingRight:O,...H?{borderRadius:F.row.radius[0]??0}:{},...!H&&!R?{borderTopWidth:F.row.edge.width,borderTopColor:I.colors.line}:{},...m?{opacity:F.disabledOpacity}:{}},Z=x??[n,i,a].filter(Boolean).join(", "),Y=Zn("ListRow",{testID:j,label:Z,trackId:v,haptic:S,disabled:m},g),J=/* @__PURE__ */r.jsxs(r.Fragment,{children:[q,U,G]});return g?/* @__PURE__ */r.jsx(PressBox,{testID:j,...Y.props,scale:Y.scale,still:L,disabled:m,accessibilityRole:w,accessibilityLabel:Z,accessibilityHint:k,accessibilityState:{disabled:m,...b===void 0?{}:{selected:b}},style:({pressed:e})=>[M,e&&!m?{backgroundColor:F.pressedFill}:F.fill?{backgroundColor:F.fill}:null,C],children:J}):/* @__PURE__ */r.jsx(t.View,{testID:j,style:[M,F.fill?{backgroundColor:F.fill}:null,C],...p==null?{accessible:true,accessibilityLabel:Z}:{},children:J})}function ListSection({title:n,footer:i,inset:o=true,variant:l="rows",label:a,children:s,testID:d,style:c}){let u=Ar(),p=u.metrics.lists,h=e.Children.toArray(s).filter(e.isValidElement),g=/* @__PURE__ */r.jsx(t.View,{accessibilityRole:"list",accessibilityLabel:a??n,style:l==="tiles"?{rowGap:p.tiles.list.gap[1],marginHorizontal:-p.tiles.outdent}:null,children:h.map((e,n)=>
|
|
37
|
+
/* @__PURE__ */r.jsx(t.View,{role:"listitem",children:/* @__PURE__ */r.jsx(Ti.Provider,{value:{variant:l,first:n===0,last:n===h.length-1},children:e})},e.key??n))}),f=i?/* @__PURE__ */r.jsx(Text2,{style:[wn(u,Ur(u,p.section.note)),{marginTop:p.section.note.marginTop}],children:i}):null;return o?/* @__PURE__ */r.jsxs(Card,{testID:d,title:n,style:c,children:[g,f]}):/* @__PURE__ */r.jsxs(t.View,{testID:d,style:[n?{marginTop:p.section.head.marginTop}:null,c],children:[n?/* @__PURE__ */r.jsx(SectionHeader,{title:n,style:Ii.flush}):null,g,f]})}var Ii=t.StyleSheet.create({leadAuto:{flexShrink:0},words:{flex:1,minWidth:0},below:{alignSelf:"flex-start"},end:{flexDirection:"row",alignItems:"center",flexShrink:1,maxWidth:"45%",justifyContent:"flex-end"},flush:{marginTop:0}});t.StyleSheet.create({offRow:{flexDirection:"row",alignItems:"center",alignSelf:"stretch"},offText:{flexShrink:1,minWidth:0},offAction:{flexDirection:"row",alignItems:"center",marginLeft:"auto",flexShrink:0},row:{flexDirection:"row",alignItems:"flex-start"},copy:{flex:1,minWidth:0},acts:{flexDirection:"row",flexWrap:"wrap",alignItems:"center"}});t.StyleSheet.create({fill:{flex:1},host:{position:"absolute",left:0,right:0,alignItems:"center"},cardHost:{position:"absolute"},card:{alignSelf:"stretch"},start:{textAlign:"left"},pill:{flexDirection:"row",flexWrap:"wrap",alignItems:"center",justifyContent:"center",alignSelf:"center",maxWidth:"100%"},center:{textAlign:"center"},shrink:{flexShrink:1},topHost:{position:"absolute",alignItems:"center",zIndex:1e3},top:{flexDirection:"row",alignItems:"center"},copy:{flex:1}});t.StyleSheet.create({row:{flexDirection:"row",alignItems:"center"}});function Square({size:n,web:i,src:o,alt:l,fallback:a,onError:s,testID:d}){let c=Ar(),u=i?dn(c,cr):dn(c,dr),p=i?dn(c,cr).sq:dn(c,dr)[n],h=c.metrics.thumbnail.xs.icon,[g,f]=e.useState(null),m=o&&g!==o?o:null,{shown:b,onShown:y}=xi(m),x=p.w*u.imgInset,k=u.imgBlend==="multiply"?{mixBlendMode:"multiply"}:null;/* @__PURE__ */
|
|
38
|
+
return r.jsxs(t.View,{testID:d,accessible:!m&&!!l,accessibilityRole:!m&&l?"image":void 0,accessibilityLabel:m?void 0:l,style:[Tn(c,p),{width:p.w,height:p.h,overflow:"hidden",alignItems:"center",justifyContent:"center"},!b&&a?.tint!==void 0?{backgroundColor:a.tint}:null],children:[b?null:/* @__PURE__ */r.jsx(BlockIcon,{icon:a?.icon??li,size:a?.iconSize??h.w,color:a?.iconColor??Pr(c,h.color)}),m?/* @__PURE__ */r.jsx(FadeImage,{source:{uri:m},accessibilityLabel:l,accessible:!!l,onShown:y,onError:()=>{f(m),s?.(m)},resizeMode:u.imgFit,style:[{position:"absolute",top:x,right:x,bottom:x,left:x},k]},m):null]})}function PlanLine({name:n,image:i,imageAlt:o,price:l,wasPrice:a,smalls:s,quantity:d,removeLabel:c,onRemove:u,actions:p,fallback:h,onImageError:g,error:f,testID:m,style:b}){let y=Ar(),x=dn(y,pr),k=e=>wn(y,Ur(y,e)),[w,v]=e.useState(null),S=i&&w!==i?i:null,{shown:j,onShown:C}=xi(S),I=e=>m===void 0?void 0:`${m}-${e}`,[L=0]=x.line.gap,z=p!==void 0?p.map(e=>({...e,testID:Yr(m,e.key,e.testID)})):c&&u?[{key:"remove",label:c,onPress:u,testID:I("remove"),disabled:void 0,accessibilityLabel:void 0}]:[];/* @__PURE__ */
|
|
39
39
|
return r.jsxs(t.View,{testID:m,style:[{flexDirection:"row",alignItems:"flex-start",columnGap:L},b],children:[
|
|
40
|
-
/* @__PURE__ */r.jsxs(t.View,{testID:I("image"),accessible:!S&&!!o,accessibilityRole:!S&&o?"image":void 0,accessibilityLabel:S?void 0:o,style:[
|
|
40
|
+
/* @__PURE__ */r.jsxs(t.View,{testID:I("image"),accessible:!S&&!!o,accessibilityRole:!S&&o?"image":void 0,accessibilityLabel:S?void 0:o,style:[Tn(y,x.img),{width:x.img.w,height:x.img.h,overflow:"hidden",alignItems:"center",justifyContent:"center"},!j&&h?.tint!==void 0?{backgroundColor:h.tint}:null],children:[j?null:/* @__PURE__ */r.jsx(BlockIcon,{icon:h?.icon??li,size:h?.iconSize??x.icon.w,color:h?.iconColor??Pr(y,x.icon.color)}),S?/* @__PURE__ */r.jsx(FadeImage,{source:{uri:S},accessibilityLabel:o,accessible:!!o,onShown:C,onError:()=>{v(S),g?.(S)},resizeMode:"cover",style:{position:"absolute",top:0,right:0,bottom:0,left:0}},S):null]}),
|
|
41
41
|
/* @__PURE__ */r.jsxs(t.View,{style:{flex:1,minWidth:0},children:[
|
|
42
|
-
/* @__PURE__ */r.jsx(Text2,{testID:I("name"),style:k(x.name),children:n}),l||a||s&&s.length>0?/* @__PURE__ */r.jsxs(t.View,{style:{flexDirection:"row",flexWrap:"wrap",alignItems:"center",columnGap:x.prices.gap[0],rowGap:x.prices.gap[1],marginTop:x.prices.marginTop},children:[l?/* @__PURE__ */r.jsx(Text2,{testID:I("price"),style:k(x.price),children:l}):null,a?/* @__PURE__ */r.jsx(Text2,{style:k(x.was),children:a}):null,s?.map((e,t)=>/* @__PURE__ */r.jsx(Text2,{style:k(x.small),children:e},`${t}-${e}`))]}):null,d||z.length>0?/* @__PURE__ */r.jsxs(t.View,{style:{flexDirection:"row",alignItems:"center",columnGap:x.acts.gap[0],marginTop:x.acts.marginTop},children:[d?/* @__PURE__ */r.jsx(InkedQuantityStepper,{ink:
|
|
43
|
-
return r.jsxs(t.View,{testID:l,role:"group",accessibilityLabel:e.label,style:[
|
|
44
|
-
return r.jsx(t.Pressable,{testID:l===void 0?void 0:`${l}-${n.value}`,onPress:a?void 0:()=>e.onChange?.(n.value),accessibilityRole:"button",accessibilityLabel:n.label,accessibilityState:{checked:a},"aria-pressed":a,hitSlop:
|
|
45
|
-
return r.jsxs(t.View,{testID:n,role:"group",accessibilityLabel:e.label,style:[
|
|
46
|
-
/* @__PURE__ */r.jsx(Text2,{testID:d("count"),accessibilityLiveRegion:"polite",style:[
|
|
42
|
+
/* @__PURE__ */r.jsx(Text2,{testID:I("name"),style:k(x.name),children:n}),l||a||s&&s.length>0?/* @__PURE__ */r.jsxs(t.View,{style:{flexDirection:"row",flexWrap:"wrap",alignItems:"center",columnGap:x.prices.gap[0],rowGap:x.prices.gap[1],marginTop:x.prices.marginTop},children:[l?/* @__PURE__ */r.jsx(Text2,{testID:I("price"),style:k(x.price),children:l}):null,a?/* @__PURE__ */r.jsx(Text2,{style:k(x.was),children:a}):null,s?.map((e,t)=>/* @__PURE__ */r.jsx(Text2,{style:k(x.small),children:e},`${t}-${e}`))]}):null,d||z.length>0?/* @__PURE__ */r.jsxs(t.View,{style:{flexDirection:"row",alignItems:"center",columnGap:x.acts.gap[0],marginTop:x.acts.marginTop},children:[d?/* @__PURE__ */r.jsx(InkedQuantityStepper,{ink:Pr(y,x.step.color),variant:"compact",value:d.value,min:d.min,max:d.max,label:d.label,fewerLabel:d.fewerLabel,moreLabel:d.moreLabel,onChange:e=>yi(d,e)}):null,z.map(e=>/* @__PURE__ */r.jsx(t.Pressable,{testID:e.testID,onPress:e.disabled?void 0:e.onPress,disabled:e.disabled,accessibilityRole:"button",accessibilityLabel:e.accessibilityLabel??e.label,accessibilityState:e.disabled?{disabled:true}:void 0,hitSlop:Ln(x.remove.h),style:[{minHeight:x.remove.minHeight||void 0,justifyContent:"center"},e.disabled?{opacity:Br}:null],children:/* @__PURE__ */r.jsx(Text2,{tier:"control",style:k(x.removeText),children:e.label})},e.key))]}):null,f?/* @__PURE__ */r.jsx(Text2,{accessibilityRole:"alert",accessibilityLiveRegion:"polite",style:[k(x.small),{marginTop:x.acts.marginTop,color:y.colors.alert}],children:f}):null]})]})}function DrawerPlan({plan:e,testID:n}){let i=Ar(),o=dn(i,ur),l=e.testID??n,a=Sn(i,o.plan);/* @__PURE__ */
|
|
43
|
+
return r.jsxs(t.View,{testID:l,role:"group",accessibilityLabel:e.label,style:[Tn(i,o.plan),{flexDirection:"row",alignSelf:"flex-start"}],children:[e.options.map(n=>{let a=n.value===e.value,s=a?o.planOn:o.planBtn;/* @__PURE__ */
|
|
44
|
+
return r.jsx(t.Pressable,{testID:l===void 0?void 0:`${l}-${n.value}`,onPress:a?void 0:()=>e.onChange?.(n.value),accessibilityRole:"button",accessibilityLabel:n.label,accessibilityState:{checked:a},"aria-pressed":a,hitSlop:Ln(s.minHeight||s.h),style:[Tn(i,s),{minHeight:s.minHeight||void 0,justifyContent:"center"}],children:/* @__PURE__ */r.jsx(Text2,{tier:"control",style:wn(i,Ur(i,a?o.planOnText:o.planText)),children:n.label})},n.value)}),a?/* @__PURE__ */r.jsx(t.View,{pointerEvents:"none",style:a}):null]})}function DrawerStepper({q:e,testID:n}){let i=Ar(),o=dn(i,ur),l=In(i),a=e.min??1,s=e.max??Number.POSITIVE_INFINITY,d=e=>n===void 0?void 0:`${n}-${e}`,c=Sn(i,o.qty),u=(n,a,s,c,u)=>/* @__PURE__ */r.jsx(t.Pressable,{testID:d(u),onPress:s?void 0:()=>yi(e,c),accessibilityRole:"button",accessibilityLabel:n,disabled:s,accessibilityState:s?{disabled:true}:void 0,hitSlop:Ln(o.qtyBtn.w),style:({pressed:e})=>[Tn(i,o.qtyBtn),{width:o.qtyBtn.w,height:o.qtyBtn.h,alignItems:"center",justifyContent:"center"},e&&!l&&!s?{transform:[{scale:o.pressScale}]}:null],children:/* @__PURE__ */r.jsx(Glyph,{icon:a==="minus"?di:ci,size:o.qtyIcon.w,color:i.colors.text})});/* @__PURE__ */
|
|
45
|
+
return r.jsxs(t.View,{testID:n,role:"group",accessibilityLabel:e.label,style:[Tn(i,o.qty),{flexDirection:"row",alignItems:"center",height:o.qty.h}],children:[u(e.fewerLabel,"minus",e.value<=a,Math.max(a,e.value-1),"fewer"),
|
|
46
|
+
/* @__PURE__ */r.jsx(Text2,{testID:d("count"),accessibilityLiveRegion:"polite",style:[wn(i,Ur(i,o.count)),{minWidth:o.countMin,textAlign:"center"}],children:e.value}),u(e.moreLabel,"plus",e.value>=s,Math.min(s,e.value+1),"more"),c?/* @__PURE__ */r.jsx(t.View,{pointerEvents:"none",style:c}):null]})}function DrawerLine({name:n,image:i,imageAlt:o,badge:l,meta:a,note:s,plan:d,price:c,wasPrice:u,quantity:p,removeLabel:h,onRemove:g,actions:f,fallback:m,onImageError:b,error:y,loading:x=false,loadingLabel:k,testID:w,style:v}){let S=Ar(),j=dn(S,ur),C=e=>wn(S,Ur(S,e)),[I,L]=e.useState(null),z=i&&I!==i?i:null,{shown:A,onShown:R}=xi(z),W=e=>w===void 0?void 0:`${w}-${e}`,[F=0]=j.line.gap,V=Sn(S,j.img),H=Sn(S,j.badge),P=S.metrics.thumbnail.xs.icon;if(x)/* @__PURE__ */
|
|
47
47
|
return r.jsxs(t.View,{testID:w,style:[{flexDirection:"row",alignItems:"flex-start",columnGap:F},v],children:[
|
|
48
|
-
/* @__PURE__ */r.jsx(t.View,{style:[
|
|
49
|
-
/* @__PURE__ */r.jsx(t.View,{style:{flex:1,minWidth:0},children:/* @__PURE__ */r.jsx(Skeleton,{lines:2,label:k})})]});let O=f!==void 0?f.map(e=>({...e,testID:
|
|
48
|
+
/* @__PURE__ */r.jsx(t.View,{style:[Tn(S,j.img),{width:j.img.w,height:j.img.h}],children:V?/* @__PURE__ */r.jsx(t.View,{pointerEvents:"none",style:V}):null}),
|
|
49
|
+
/* @__PURE__ */r.jsx(t.View,{style:{flex:1,minWidth:0},children:/* @__PURE__ */r.jsx(Skeleton,{lines:2,label:k})})]});let O=f!==void 0?f.map(e=>({...e,testID:Yr(w,e.key,e.testID)})):h&&g?[{key:"remove",label:h,onPress:g,testID:W("remove"),disabled:void 0,accessibilityLabel:`${h} ${n}`}]:[];/* @__PURE__ */
|
|
50
50
|
return r.jsxs(t.View,{testID:w,style:[{flexDirection:"row",alignItems:"flex-start",columnGap:F},v],children:[
|
|
51
|
-
/* @__PURE__ */r.jsxs(t.View,{testID:W("image"),accessible:!z&&!!o,accessibilityRole:!z&&o?"image":void 0,accessibilityLabel:z?void 0:o,style:[
|
|
51
|
+
/* @__PURE__ */r.jsxs(t.View,{testID:W("image"),accessible:!z&&!!o,accessibilityRole:!z&&o?"image":void 0,accessibilityLabel:z?void 0:o,style:[Tn(S,j.img),{width:j.img.w,height:j.img.h,alignItems:"center",justifyContent:"center"},!A&&m?.tint!==void 0?{backgroundColor:m.tint}:null],children:[A?null:/* @__PURE__ */r.jsx(BlockIcon,{icon:m?.icon??li,size:m?.iconSize??P.w,color:m?.iconColor??Pr(S,P.color)}),z?/* @__PURE__ */r.jsx(FadeImage,{source:{uri:z},accessibilityLabel:o,accessible:!!o,onShown:R,onError:()=>{L(z),b?.(z)},resizeMode:j.imgFit,style:{position:"absolute",top:j.imgInset,right:j.imgInset,bottom:j.imgInset,left:j.imgInset}},z):null,V?/* @__PURE__ */r.jsx(t.View,{pointerEvents:"none",style:V}):null]}),
|
|
52
52
|
/* @__PURE__ */r.jsxs(t.View,{style:{flex:1,minWidth:0},children:[
|
|
53
53
|
/* @__PURE__ */r.jsxs(t.View,{style:{flexDirection:"row",alignItems:"flex-start",columnGap:F},children:[
|
|
54
54
|
/* @__PURE__ */r.jsxs(t.View,{testID:W("name"),style:{flex:1,minWidth:0,flexDirection:"row",flexWrap:"wrap",alignItems:j.name.center?"center":"baseline",columnGap:j.name.gap[0],rowGap:j.name.gap[1]},children:[
|
|
55
|
-
/* @__PURE__ */r.jsx(Text2,{style:C(j.nameText),children:n}),l?/* @__PURE__ */r.jsxs(t.View,{style:[
|
|
56
|
-
/* @__PURE__ */r.jsx(Text2,{style:C(j.badgeText),children:l.label}),H?/* @__PURE__ */r.jsx(t.View,{pointerEvents:"none",style:H}):null]}):null]}),c||u?/* @__PURE__ */r.jsxs(t.View,{children:[c?/* @__PURE__ */r.jsx(Text2,{testID:W("price"),style:[C(j.price),{alignSelf:"flex-start"}],children:c}):null,u?/* @__PURE__ */r.jsx(Text2,{style:[C(j.was),{alignSelf:"flex-end",textAlign:"right"}],children:u}):null]}):null]}),a?/* @__PURE__ */r.jsx(Text2,{style:[C(j.meta),{marginTop:j.meta.marginTop}],children:a}):null,s?/* @__PURE__ */r.jsx(Text2,{style:[C(j.note),{marginTop:j.note.marginTop}],children:s}):null,d||p||O.length>0?/* @__PURE__ */r.jsxs(t.View,{style:{flexDirection:"row",flexWrap:"wrap",alignItems:"center",columnGap:j.acts.gap[0],rowGap:j.acts.gap[1],marginTop:j.acts.marginTop},children:[d?/* @__PURE__ */r.jsx(DrawerPlan,{plan:d,testID:W("plan")}):null,p?/* @__PURE__ */r.jsx(DrawerStepper,{q:p,testID:W("stepper")}):null,O.map(e=>/* @__PURE__ */r.jsx(t.Pressable,{testID:e.testID,onPress:e.disabled?void 0:e.onPress,disabled:e.disabled,accessibilityRole:"button",accessibilityLabel:e.accessibilityLabel??e.label,accessibilityState:e.disabled?{disabled:true}:void 0,hitSlop:
|
|
57
|
-
return r.jsxs(t.View,{testID:j,style:[
|
|
55
|
+
/* @__PURE__ */r.jsx(Text2,{style:C(j.nameText),children:n}),l?/* @__PURE__ */r.jsxs(t.View,{style:[Tn(S,j.badge),{height:j.badge.h,justifyContent:"center"}],children:[
|
|
56
|
+
/* @__PURE__ */r.jsx(Text2,{style:C(j.badgeText),children:l.label}),H?/* @__PURE__ */r.jsx(t.View,{pointerEvents:"none",style:H}):null]}):null]}),c||u?/* @__PURE__ */r.jsxs(t.View,{children:[c?/* @__PURE__ */r.jsx(Text2,{testID:W("price"),style:[C(j.price),{alignSelf:"flex-start"}],children:c}):null,u?/* @__PURE__ */r.jsx(Text2,{style:[C(j.was),{alignSelf:"flex-end",textAlign:"right"}],children:u}):null]}):null]}),a?/* @__PURE__ */r.jsx(Text2,{style:[C(j.meta),{marginTop:j.meta.marginTop}],children:a}):null,s?/* @__PURE__ */r.jsx(Text2,{style:[C(j.note),{marginTop:j.note.marginTop}],children:s}):null,d||p||O.length>0?/* @__PURE__ */r.jsxs(t.View,{style:{flexDirection:"row",flexWrap:"wrap",alignItems:"center",columnGap:j.acts.gap[0],rowGap:j.acts.gap[1],marginTop:j.acts.marginTop},children:[d?/* @__PURE__ */r.jsx(DrawerPlan,{plan:d,testID:W("plan")}):null,p?/* @__PURE__ */r.jsx(DrawerStepper,{q:p,testID:W("stepper")}):null,O.map(e=>/* @__PURE__ */r.jsx(t.Pressable,{testID:e.testID,onPress:e.disabled?void 0:e.onPress,disabled:e.disabled,accessibilityRole:"button",accessibilityLabel:e.accessibilityLabel??e.label,accessibilityState:e.disabled?{disabled:true}:void 0,hitSlop:Ln(j.remove.minHeight||j.remove.h),style:[{minHeight:j.remove.minHeight||void 0,justifyContent:"center"},e.disabled?{opacity:Br}:null],children:/* @__PURE__ */r.jsx(Text2,{tier:"control",style:C(j.removeText),children:e.label})},e.key))]}):null,y?/* @__PURE__ */r.jsx(Text2,{accessibilityRole:"alert",accessibilityLiveRegion:"polite",style:[C(j.meta),{marginTop:j.acts.marginTop,color:S.colors.alert}],children:y}):null]})]})}function CartLine(e){let{name:n,image:i,imageAlt:o,badge:l,meta:a,metas:s,price:d,wasPrice:c,quantity:u,removeLabel:p,onRemove:h,actions:g,fallback:f,onImageError:m,variant:b="standard",thumbSize:y="md",align:x="top",namePress:k,error:w,loading:v=false,loadingLabel:S,testID:j,style:C}=e,I=Ar(),L=dn(I,sr),z=I.metrics.thumbnail.xs,A=e=>wn(I,Ur(I,e)),R=i?z.frame.w:z.empty.w,[W=0,F=0]=L.line.gap,V={flexDirection:"row",alignItems:L.line.center?"center":"flex-start",columnGap:W};if(b==="drawer")/* @__PURE__ */return r.jsx(DrawerLine,{...e});if(v)/* @__PURE__ */
|
|
57
|
+
return r.jsxs(t.View,{testID:j,style:[Tn(I,L.line),V,C],children:[
|
|
58
58
|
/* @__PURE__ */r.jsx(t.View,{style:{width:R,height:R,borderRadius:z.frame.radius[0],backgroundColor:I.colors.tintSage}}),
|
|
59
|
-
/* @__PURE__ */r.jsx(t.View,{style:{flex:1},children:/* @__PURE__ */r.jsx(Skeleton,{lines:2,label:S})})]});let H=s&&s.length>0?s.map((e,t)=>/* @__PURE__ */r.jsx(Text2,{style:[A(L.meta),{marginTop:L.meta.marginTop}],children:e},`${t}-${e}`)):a?/* @__PURE__ */r.jsx(Text2,{style:[A(L.meta),{marginTop:L.meta.marginTop}],children:a}):null,P=e=>j===void 0?void 0:`${j}-${e}`,O=(e,n,i,o)=>/* @__PURE__ */r.jsx(t.Pressable,{testID:o?.testID,onPress:o?.disabled?void 0:i,disabled:o?.disabled,accessibilityRole:"button",accessibilityLabel:o?.accessibilityLabel??n,accessibilityState:o?.disabled?{disabled:true}:void 0,hitSlop:
|
|
59
|
+
/* @__PURE__ */r.jsx(t.View,{style:{flex:1},children:/* @__PURE__ */r.jsx(Skeleton,{lines:2,label:S})})]});let H=s&&s.length>0?s.map((e,t)=>/* @__PURE__ */r.jsx(Text2,{style:[A(L.meta),{marginTop:L.meta.marginTop}],children:e},`${t}-${e}`)):a?/* @__PURE__ */r.jsx(Text2,{style:[A(L.meta),{marginTop:L.meta.marginTop}],children:a}):null,P=e=>j===void 0?void 0:`${j}-${e}`,O=(e,n,i,o)=>/* @__PURE__ */r.jsx(t.Pressable,{testID:o?.testID,onPress:o?.disabled?void 0:i,disabled:o?.disabled,accessibilityRole:"button",accessibilityLabel:o?.accessibilityLabel??n,accessibilityState:o?.disabled?{disabled:true}:void 0,hitSlop:Ln(L.removeBox.minHeight||L.remove.lineHeight),style:[{minHeight:L.removeBox.minHeight||void 0,justifyContent:"center"},o?.disabled?{opacity:Br}:null],children:/* @__PURE__ */r.jsx(Text2,{tier:"control",style:A(L.remove),children:n})},e),B=g!==void 0?g.length>0?g.map(e=>O(e.key,e.label,e.onPress,{disabled:e.disabled,accessibilityLabel:e.accessibilityLabel,testID:Yr(j,e.key,e.testID)})):null:p&&h?O("remove",p,h):null;if(b==="square"||b==="web"){let e=b==="web",s=e?{...dn(I,dr),...dn(I,cr)}:dn(I,dr),u=Sn(I,s.badge),v=(e,n,i,o)=>/* @__PURE__ */r.jsx(t.Pressable,{testID:o?.testID,onPress:o?.disabled?void 0:i,disabled:o?.disabled,accessibilityRole:"button",accessibilityLabel:o?.accessibilityLabel??n,accessibilityState:o?.disabled?{disabled:true}:void 0,hitSlop:Ln(s.actBox.minHeight||s.act.lineHeight),style:[{minHeight:s.actBox.minHeight||void 0,justifyContent:"center"},o?.disabled?{opacity:Br}:null],children:/* @__PURE__ */r.jsx(Text2,{tier:"control",style:A(s.act),children:n})},e),S=e?[]:g!==void 0?g.map(e=>v(e.key,e.label,e.onPress,{disabled:e.disabled,accessibilityLabel:e.accessibilityLabel,testID:Yr(j,e.key,e.testID)})):p&&h?[v("remove",p,h)]:[],L=k!==void 0&&S.length>0;/* @__PURE__ */
|
|
60
60
|
return r.jsxs(t.View,{testID:j,style:[{flexDirection:"row",alignItems:x==="center"||s.line.center?"center":"flex-start",columnGap:s.line.gap[0]},C],children:[
|
|
61
61
|
/* @__PURE__ */r.jsx(Square,{size:y,web:e,src:i,alt:o,fallback:f,onError:m,testID:P("image")}),
|
|
62
62
|
/* @__PURE__ */r.jsxs(t.View,{style:[{flex:1,minWidth:0},L?{zIndex:1}:null],children:[
|
|
63
63
|
/* @__PURE__ */r.jsxs(t.View,{style:{flexDirection:"row",flexWrap:"wrap",alignItems:s.name.center?"center":"baseline",columnGap:s.name.gap[0],rowGap:s.name.gap[1]},children:[
|
|
64
|
-
/* @__PURE__ */r.jsx(Text2,{style:A(k?s.link:s.nameText),onPress:L?k.onPress:void 0,children:n}),l?/* @__PURE__ */r.jsxs(t.View,{style:[
|
|
65
|
-
/* @__PURE__ */r.jsx(Text2,{style:A(s.badgeText),children:l.label}),u?/* @__PURE__ */r.jsx(t.View,{pointerEvents:"none",style:u}):null]}):null]}),a?/* @__PURE__ */r.jsx(Text2,{style:[A(s.meta),{marginTop:s.meta.marginTop}],children:a}):null,S.length>0?/* @__PURE__ */r.jsx(t.View,{style:{flexDirection:"row",flexWrap:"wrap",alignItems:"center",columnGap:s.acts.gap[0],rowGap:s.acts.gap[1],marginTop:s.acts.marginTop},children:S}):null,w?/* @__PURE__ */r.jsx(Text2,{accessibilityRole:"alert",accessibilityLiveRegion:"polite",style:[A(s.meta),{marginTop:s.acts.marginTop,color:I.colors.alert}],children:w}):null]}),d||c?/* @__PURE__ */r.jsxs(t.View,{style:{alignItems:"flex-end"},children:[d?/* @__PURE__ */r.jsx(Text2,{testID:P("price"),style:A(s.price),children:d}):null,c?/* @__PURE__ */r.jsx(Text2,{style:A(s.was),children:c}):null]}):null,k?/* @__PURE__ */r.jsx(t.Pressable,{testID:k.testID??P("name"),onPress:k.onPress,accessibilityRole:"button",accessibilityLabel:k.accessibilityLabel??n,style:{position:"absolute",top:-s.linkReach,right:0,bottom:-s.linkReach,left:0}}):null]})}if(b==="plan")/* @__PURE__ */return r.jsx(PlanLine,{...e});let
|
|
66
|
-
return r.jsxs(t.View,{testID:j,style:[
|
|
64
|
+
/* @__PURE__ */r.jsx(Text2,{style:A(k?s.link:s.nameText),onPress:L?k.onPress:void 0,children:n}),l?/* @__PURE__ */r.jsxs(t.View,{style:[Tn(I,s.badge),{height:s.badge.h,justifyContent:"center"}],children:[
|
|
65
|
+
/* @__PURE__ */r.jsx(Text2,{style:A(s.badgeText),children:l.label}),u?/* @__PURE__ */r.jsx(t.View,{pointerEvents:"none",style:u}):null]}):null]}),a?/* @__PURE__ */r.jsx(Text2,{style:[A(s.meta),{marginTop:s.meta.marginTop}],children:a}):null,S.length>0?/* @__PURE__ */r.jsx(t.View,{style:{flexDirection:"row",flexWrap:"wrap",alignItems:"center",columnGap:s.acts.gap[0],rowGap:s.acts.gap[1],marginTop:s.acts.marginTop},children:S}):null,w?/* @__PURE__ */r.jsx(Text2,{accessibilityRole:"alert",accessibilityLiveRegion:"polite",style:[A(s.meta),{marginTop:s.acts.marginTop,color:I.colors.alert}],children:w}):null]}),d||c?/* @__PURE__ */r.jsxs(t.View,{style:{alignItems:"flex-end"},children:[d?/* @__PURE__ */r.jsx(Text2,{testID:P("price"),style:A(s.price),children:d}):null,c?/* @__PURE__ */r.jsx(Text2,{style:A(s.was),children:c}):null]}):null,k?/* @__PURE__ */r.jsx(t.Pressable,{testID:k.testID??P("name"),onPress:k.onPress,accessibilityRole:"button",accessibilityLabel:k.accessibilityLabel??n,style:{position:"absolute",top:-s.linkReach,right:0,bottom:-s.linkReach,left:0}}):null]})}if(b==="plan")/* @__PURE__ */return r.jsx(PlanLine,{...e});let D=u?/* @__PURE__ */r.jsx(QuantityStepper,{value:u.value,min:u.min,max:u.max,label:u.label,fewerLabel:u.fewerLabel,moreLabel:u.moreLabel,onChange:e=>yi(u,e)}):null;/* @__PURE__ */
|
|
66
|
+
return r.jsxs(t.View,{testID:j,style:[Tn(I,L.line),{rowGap:F,columnGap:0},C],children:[
|
|
67
67
|
/* @__PURE__ */r.jsxs(t.View,{style:V,children:[
|
|
68
68
|
/* @__PURE__ */r.jsx(BlockThumbnail,{size:"xs",src:i,alt:o,icon:f?.icon,iconSize:f?.iconSize,tint:f?.tint,iconColor:f?.iconColor,onError:m,testID:P("image")}),
|
|
69
69
|
/* @__PURE__ */r.jsxs(t.View,{style:{flex:1,minWidth:0},children:[
|
|
70
70
|
/* @__PURE__ */r.jsxs(t.View,{style:{flexDirection:"row",flexWrap:"wrap",alignItems:"center",columnGap:L.name.gap[0],rowGap:L.name.gap[1]},children:[
|
|
71
|
-
/* @__PURE__ */r.jsx(Text2,{style:A(L.nameText),children:n}),l?/* @__PURE__ */r.jsx(Pill,{label:l.label,tone:l.tone??"rx"}):null]}),H,E||B?/* @__PURE__ */r.jsxs(t.View,{style:{flexDirection:"row",alignItems:"center",...g&&g.length>1?{flexWrap:"wrap",rowGap:L.acts.gap[1]}:{},columnGap:L.acts.gap[0],marginTop:L.acts.marginTop},children:[E,B]}):null,w?/* @__PURE__ */r.jsx(Text2,{accessibilityRole:"alert",accessibilityLiveRegion:"polite",style:[A(L.meta),{marginTop:L.acts.marginTop,color:I.colors.alert}],children:w}):null]})]}),d||c?/* @__PURE__ */r.jsxs(t.View,{style:{marginLeft:R+W,flexDirection:"row",flexWrap:"wrap",alignItems:"baseline",columnGap:L.end.gap[0],rowGap:L.end.gap[1]},children:[d?/* @__PURE__ */r.jsx(Text2,{testID:P("price"),style:A(L.price),children:d}):null,c?/* @__PURE__ */r.jsx(Text2,{style:A(L.was),children:c}):null]}):null]})}var Ci="partner",Ii=e.createContext(Ci),Li=Ii.Provider;function zi(){return e.useContext(Ii)}function Ai(){return zi()==="everfur-app"}var Ri=/* @__PURE__ */Object.freeze({display:/* @__PURE__ */Object.freeze({size:29,lineHeight:1.06,weight:"800",face:"heading",letterSpacing:-.01,uppercase:false,tier:"heading"}),title:/* @__PURE__ */Object.freeze({size:23,lineHeight:1.12,weight:"800",face:"heading",letterSpacing:-.01,uppercase:false,tier:"heading"}),cardTitle:/* @__PURE__ */Object.freeze({size:19,lineHeight:1.22,weight:"800",face:"sans",letterSpacing:0,uppercase:false,tier:"heading"}),rowTitle:/* @__PURE__ */Object.freeze({size:15.5,lineHeight:1.4,weight:"700",face:"sans",letterSpacing:0,uppercase:false,tier:"content"}),body:/* @__PURE__ */Object.freeze({size:15,lineHeight:1.5,weight:"400",face:"sans",letterSpacing:0,uppercase:false,tier:"content"}),message:/* @__PURE__ */Object.freeze({size:15.5,lineHeight:1.5,weight:"400",face:"sans",letterSpacing:0,uppercase:false,tier:"content"}),bodySmall:/* @__PURE__ */Object.freeze({size:14.5,lineHeight:1.4,weight:"400",face:"sans",letterSpacing:0,uppercase:false,tier:"content"}),caption:/* @__PURE__ */Object.freeze({size:13,lineHeight:1.4,weight:"400",face:"sans",letterSpacing:0,uppercase:false,tier:"content"}),label:/* @__PURE__ */Object.freeze({size:10.5,lineHeight:1.4,weight:"400",face:"mono",letterSpacing:.05,uppercase:true,tier:"compact"}),eyebrow:/* @__PURE__ */Object.freeze({size:15,lineHeight:1.5,weight:"400",face:"mono",letterSpacing:.07,uppercase:true,tier:"compact"}),chip:/* @__PURE__ */Object.freeze({size:15,lineHeight:1.3,weight:"600",face:"sans",letterSpacing:0,uppercase:false,tier:"compact"}),tab:/* @__PURE__ */Object.freeze({size:16,lineHeight:1.5,weight:"600",face:"sans",letterSpacing:0,uppercase:false,tier:"compact"}),button:/* @__PURE__ */Object.freeze({size:15,lineHeight:1.5,weight:"700",face:"sans",letterSpacing:0,uppercase:false,tier:"control"}),badge:/* @__PURE__ */Object.freeze({size:12,lineHeight:1.5,weight:"700",face:"sans",letterSpacing:0,uppercase:false,tier:"badge"})});var Wi=Object.freeze;function Fi(e){if(e!==null&&typeof e=="object"&&!Object.isFrozen(e)){Wi(e);for(let t of Object.keys(e))Fi(e[t])}return e}var Vi=/* @__PURE__ */Object.freeze({content:0,heading:2,control:1.8,compact:1.5,badge:1.3});var Hi={xs:4,sm:8,md:12,lg:16,xl:24,xxl:32},Pi={tile:5,xs:6,sm:10,md:14,lg:20,xl:28,pill:500},Oi={nano:8,small:9,micro:10,tiny:11,caption:13,bodyTight:15,body:17,subtitle:20,heading:22,verdict:24},Bi={tight:1.15,snug:1.3,normal:1.4,relaxed:1.55},Ei={regular:"400",medium:"500",bold:"700"},Di={eyebrow:1,monoWide:.9,headerBrand:-.42,tight:-.35},Ni=0,qi="System",Ui="monospace",Gi=["content","heading","control","compact","badge"];function Mi(e){let t={};for(let r of Gi)t[r]=e;return t}var Ki=[];function Zi(){return{family:qi,mono:Ui,fontUrl:null,families:{regular:qi,medium:qi,bold:qi,mono:Ui,monoMedium:Ui,monoBold:Ui},namedFaces:{regular:false,medium:false,bold:false,mono:false,monoMedium:false,monoBold:false},fontUrls:{},size:Oi,tierSizes:Mi(Oi),lineHeight:Bi,weight:Ei,letterSpacing:Di,scale:1,maxScale:Ni,scaleCaps:Vi,headingFamily:null,headingWeight:null,fontSources:Ki,roles:Ri,typeScale:1}}var Yi={},Ji=/* @__PURE__ */Object.freeze({standard:/* @__PURE__ */Object.freeze([.2,0,0,1]),emphasized:/* @__PURE__ */Object.freeze([.2,.8,.2,1]),exit:/* @__PURE__ */Object.freeze([.4,0,1,1])});function cssCubicBezier(e){return`cubic-bezier(${e.join(", ")})`}var Xi={duration:{instant:80,fast:140,normal:220,slow:320},spring:{gentle:{damping:18,stiffness:200}},easing:{standard:cssCubicBezier(Ji.standard),emphasized:cssCubicBezier(Ji.emphasized),exit:cssCubicBezier(Ji.exit)},reducedMotion:false},Qi={brand:"#10462E",brandSoft:"rgba(16,70,46,0.10)",brandSofter:"rgba(16,70,46,0.15)",brandBorder:"rgba(16,70,46,0.18)",borderHairlineGreen:"rgba(16,70,46,0.25)",brandBorderStrong:"rgba(16,70,46,0.55)",brandInk:"#10462E",linkInk:"#10462E",surface:"#FFFFFF",surfaceCream:"#FFFFFF",surfaceSubtle:"#F1F5F2",background:"#FFFFFF",borderRingCream:"#E4E4E4",chatGround:"#FFFFFF",composerFill:"#FFFFFF",composerBorder:"rgba(16,70,46,0.75)",shadow:"#0B3421",text:{primary:"#000000",secondary:"#0E462E",muted:"#6B6B6B",placeholder:"rgba(61,61,61,0.75)",onBrand:"#FFFFFF",metaCool:"#3D3D3D",timestamp:"rgba(61,61,61,0.75)"},primary:"#10462E",onPrimary:"#FFFFFF",accent:"#10462E",onAccent:"#FFFFFF",accentEdge:"#07C168",success:"#07C168",danger:"#C03410",onDanger:"#FFFFFF",errorRed:"#C03410",warningStrong:"#A45610",cautionAccent:"#D9821D",riskConcern:"#EFA700",sentiment:{up:"#07C168",neutral:"#FBC558",down:"#FF1B00"},badgeBgPositive:"rgba(7,193,104,0.12)",badgeBgCaution:"rgba(217,130,29,0.14)",badgeBgCritical:"rgba(192,52,16,0.06)",badgeBgNeutral:"rgba(107,107,107,0.12)",bubbleUser:"#10462E",bubbleAssistant:"#FFFFFF",bubbleVet:"#FFC3BC",onBubbleVet:"#000000",skeleton:"#E9F1E9",scanButtonPink:"#FFC3BC",highlight:"#FFC3BC",onHighlight:"#000000",mark:"#07C168",controlEdge:"rgba(16,70,46,0.18)",structureEdge:"rgba(16,70,46,0.25)",primaryEdge:"#10462E",checkupCardLowRiskBg:"rgba(7,193,104,0.10)",checkupCardConcernBg:"rgba(239,167,0,0.10)",info:"#10462E",badgeBgInfo:"rgba(16,70,46,0.10)",infoEdge:"rgba(16,70,46,0.25)"},_i=Fi({brightness:"light",highContrast:false,meta:{displayName:"Everfur",logoUrl:null,placeholder:null,hidePoweredBy:false,assistantAvatarUrl:null},color:Qi,space:Hi,radius:Pi,type:Zi(),motion:Xi,slots:Yi}),$i={brand:"#6BD39A",brandSoft:"rgba(107,211,154,0.12)",brandSofter:"rgba(107,211,154,0.18)",brandBorder:"rgba(107,211,154,0.22)",borderHairlineGreen:"rgba(107,211,154,0.28)",brandBorderStrong:"rgba(107,211,154,0.55)",brandInk:"#6BD39A",linkInk:"#6BD39A",surface:"#1C1F23",surfaceCream:"#23272C",surfaceSubtle:"#23272C",background:"#15171A",borderRingCream:"#3A3F45",chatGround:"#1C1F23",composerFill:"#23272C",composerBorder:"rgba(107,211,154,0.75)",shadow:"#000000",text:{primary:"#F5F3F0",secondary:"#A9E4C4",muted:"#9A9A9A",placeholder:"rgba(255,255,255,0.55)",onBrand:"#0E1F17",metaCool:"#C9C9C9",timestamp:"rgba(245,243,240,0.7)"},primary:"#6BD39A",onPrimary:"#0E1F17",accent:"#6BD39A",onAccent:"#0E1F17",accentEdge:"#34D888",success:"#07C168",danger:"#F87171",onDanger:"#0E1F17",errorRed:"#FF6B5B",warningStrong:"#F0A35E",cautionAccent:"#D9821D",riskConcern:"#EFA700",sentiment:{up:"#07C168",neutral:"#FBC558",down:"#FF1B00"},badgeBgPositive:"rgba(7,193,104,0.18)",badgeBgCaution:"rgba(217,130,29,0.20)",badgeBgCritical:"rgba(185,28,28,0.22)",badgeBgNeutral:"rgba(255,255,255,0.10)",bubbleUser:"#6BD39A",bubbleAssistant:"#1C1F23",bubbleVet:"#FFC3BC",onBubbleVet:"#000000",skeleton:"#23272C",scanButtonPink:"#FFC3BC",highlight:"#605051",onHighlight:"#F5F3F0",mark:"#07C168",controlEdge:"rgba(107,211,154,0.22)",structureEdge:"rgba(107,211,154,0.28)",primaryEdge:"#6BD39A",checkupCardLowRiskBg:"rgba(7,193,104,0.16)",checkupCardConcernBg:"rgba(239,167,0,0.16)",info:"#6BD39A",badgeBgInfo:"rgba(107,211,154,0.12)",infoEdge:"rgba(107,211,154,0.28)"},eo=Fi({brightness:"dark",highContrast:false,meta:{displayName:"Everfur",logoUrl:null,placeholder:null,hidePoweredBy:false,assistantAvatarUrl:null},color:$i,space:Hi,radius:Pi,type:Zi(),motion:Xi,slots:Yi});var to=/* @__PURE__ */Object.freeze({regular:"regular",medium:"medium",bold:"bold",mono:"regular",monoMedium:"medium",monoBold:"bold"});function face(e,t){let r=e.type,n=r.families[t];return t==="mono"||r.namedFaces[t]?{fontFamily:n}:{fontFamily:n,fontWeight:r.weight[to[t]]}}function headingFace(e,t="bold"){let{headingFamily:r,headingWeight:n}=e.type;if(r===null&&n===null)return face(e,t);if(r!==null)return{fontFamily:r,fontWeight:n??e.type.weight[to[t]]};let i=face(e,t);return i.fontWeight===void 0||n===null?i:{fontFamily:i.fontFamily,fontWeight:n}}function ro(e){return e<=450?"regular":e<=650?"medium":"bold"}var no={regular:"mono",medium:"monoMedium",bold:"monoBold"};function textRole(e,t){let r=io.get(e);r===void 0&&(r=/* @__PURE__ */new Map,io.set(e,r));let n=r.get(t);if(n!==void 0)return n;let i=oo(e,t);return r.set(t,i),i}var io=/* @__PURE__ */new WeakMap;function oo(e,t){let r=e.type.roles[t],n=r.weight==="400"&&r.face!=="mono"?e.type.weight.regular:r.weight,i=ro(Number(n)),o=r.face==="mono"?face(e,no[i]):r.face==="heading"?headingFace(e,i):face(e,i),l=r.face==="heading"?e.type.headingWeight??n:n,a=o.fontWeight===void 0?o:{fontFamily:o.fontFamily,fontWeight:l},s=r.size,d={...a,fontSize:s,lineHeight:Math.round(s*r.lineHeight*100)/100};return r.letterSpacing!==0&&(d.letterSpacing=Math.round(s*r.letterSpacing*100)/100),r.uppercase&&(d.textTransform="uppercase"),/* @__PURE__ */Object.freeze(d)}function lo(e){if(typeof e=="number")return co(e);if(typeof e!="string")return null;let t=e.trim();if(t.length===0)return null;if(t.startsWith("#"))return ao(t.slice(1));if(t.toLowerCase().startsWith("0x"))return ao(t.slice(2));if(t.toLowerCase().startsWith("rgb"))return so(t);if(/^[0-9a-fA-F]+$/.test(t)){let e=ao(t);if(e!==null)return e}return/^\d+$/.test(t)?co(Number.parseInt(t,10)):null}function ao(e){let t=e.trim();if(!/^[0-9a-fA-F]+$/.test(t))return null;if(t.length===3)return{r:po(t[0]),g:po(t[1]),b:po(t[2]),a:1};if(t.length===6)return{r:uo(t,0),g:uo(t,2),b:uo(t,4),a:1};if(t.length===8){let e=uo(t,0);return{r:uo(t,2),g:uo(t,4),b:uo(t,6),a:e/255}}return null}function so(e){let t=e.indexOf("("),r=e.indexOf(")");if(t<0||r<0||r<t)return null;let n=e.slice(t+1,r).split(",").map(e=>e.trim());if(n.length<3)return null;let i=ho(Number(n[0])),o=ho(Number(n[1])),l=ho(Number(n[2]));if(i===null||o===null||l===null)return null;let a=1;if(n.length>=4){let e=Number(n[3]);if(!Number.isFinite(e))return null;a=Math.min(1,Math.max(0,e))}return{r:i,g:o,b:l,a:a}}function co(e){if(!Number.isFinite(e))return null;let t=Math.trunc(e)>>>0,r=t>>>24&255;return{r:t>>>16&255,g:t>>>8&255,b:t&255,a:r===0?1:r/255}}function uo(e,t){return Number.parseInt(e.slice(t,t+2),16)}function po(e){return Number.parseInt(`${e??"0"}${e??"0"}`,16)}function ho(e){return Number.isFinite(e)?Math.min(255,Math.max(0,Math.round(e))):null}function go(e,t,r){return`#${fo(e)}${fo(t)}${fo(r)}`.toUpperCase()}function fo(e){return e.toString(16).padStart(2,"0")}var mo="#111111",bo="#FFFFFF",yo="#000000";function readableOn(e){let t=lo(e);if(t===null)return bo;let r=wo(t),n=wo({r:17,g:17,b:17}),i=wo({r:255,g:255,b:255});return To(r,i)>=To(r,n)?bo:mo}function xo(e,t){let r=readableOn(e);return contrastRatio(r,e)>=t?r:contrastRatio(bo,e)>=contrastRatio(yo,e)?bo:yo}function ko(e){let t=t=>e.reduce((e,r)=>Math.min(e,contrastRatio(t,r)),Number.POSITIVE_INFINITY);return t(bo)>=t(yo)?bo:yo}function wo(e){let t=vo(e.r/255),r=vo(e.g/255),n=vo(e.b/255);return.2126*t+.7152*r+.0722*n}function vo(e){return e<=.03928?e/12.92:Math.pow((e+.055)/1.055,2.4)}function To(e,t){let r=Math.max(e,t),n=Math.min(e,t);return(r+.05)/(n+.05)}function contrastRatio(e,t){let r=lo(e),n=lo(t);if(r===null||n===null)return 1;let i=n.a>=1?n:{...n},o=r.a>=1?r:So(r,i);return To(wo(o),wo(i))}function So(e,t){let r=e.a,n=(e,t)=>Math.round(e*r+t*(1-r));return{r:n(e.r,t.r),g:n(e.g,t.g),b:n(e.b,t.b),a:1}}function jo(e,t){let r=lo(e),n=lo(t);if(r===null||n===null)return null;let i=r.a>=1?r:So(r,{...n});return go(i.r,i.g,i.b)}var Co=.05;function Io(e,t,r,n){let i=t[0];if(i===void 0)return r;let o=e=>t.every(t=>contrastRatio(e,t)>=n);if(lo(e)===null)return r;if(o(e))return e;let l=jo(e,i),a=l===null?null:lo(l),s=lo(r);if(a===null||s===null)return r;for(let e=1;e<1/Co;e+=1){let t=e*Co,r=(e,r)=>Math.round(e+(r-e)*t),n=go(r(a.r,s.r),r(a.g,s.g),r(a.b,s.b));if(o(n))return n}return r}var Lo=/* @__PURE__ */Object.freeze({ink:"#262523",ink2:"#4A4845",ink3:"#6B6863",paper:"#F8F7F4",card:"#FFFFFF",line:"#E7E6E2",tile:"#F2F1EE",shadow:"rgba(38, 37, 35, .07)",riskBg:"#FFE3E1",riskInk:"#B0231B",riskDot:"#E5372B",clearBg:"#E6F4D3",clearInk:"#2F6A12",clearDot:"#5FA82B",watchDot:"#E5A000"}),zo=/* @__PURE__ */new WeakMap;function Ao(e){let t=zo.get(e);if(t!==void 0)return t;let r=e.color,n=e.brightness==="dark",i=n?{dark:n,ink:r.text.primary,ink2:r.text.secondary,ink3:r.text.muted,paper:r.background,card:r.surface,line:r.borderRingCream,tile:r.surfaceSubtle,shadow:r.shadow,riskBg:r.badgeBgCritical,riskInk:r.danger,riskDot:r.danger,clearBg:r.badgeBgPositive,clearInk:r.success,clearDot:r.success,watchDot:r.warningStrong}:{dark:n,...Lo},o=(e,t)=>Io(e,t,ko(t),Ro),l=(e,t)=>contrastRatio(e,t)>=Ro?e:xo(t,Ro),a=[i.card,i.paper].map(e=>jo(r.brandSoft,e)??e),s={primary:r.primary,onPrimary:l(r.onPrimary,r.primary),accent:r.accent,onAccent:l(r.onAccent,r.accent),link:o(r.linkInk,[i.card,i.paper,i.tile]),badge:r.brandSoft,onBadge:o(r.brandInk,a)},d=/* @__PURE__ */Object.freeze({...i,...s});return zo.set(e,d),d}var Ro=4.5;var Wo=/* @__PURE__ */Symbol.for("@everfur/sdk#EverfurThemeContext@v1"),Fo=globalThis,Vo=Fo[Wo]??(Fo[Wo]=e.createContext(_i));Vo.displayName??="EverfurThemeContext";function useEverfurTheme(){return e.useContext(Vo)}var Ho=e=>{let t=e.type.namedFaces,r=t=>face(e,t).fontFamily;return{family:r("regular"),mono:r("mono"),faces:{regular:r("regular"),medium:r("medium"),bold:r("bold"),mono:r("mono"),monoBold:r("monoBold"),serif:headingFace(e,"bold").fontFamily},namedFaces:t.regular&&t.medium&&t.bold}},Po=/* @__PURE__ */new WeakMap;function Oo(e,t,r=fr){if(r!==fr)return Bo(e,t,r);let n=Po.get(t);n===void 0&&Po.set(t,n=/* @__PURE__ */new WeakMap);let i=n.get(e);return i===void 0&&n.set(e,i=Bo(e,t,r)),i}function Bo(e,t,r){let n=e.color,i=_i.color,o=e.brightness==="dark",l=o?eo:_i,a=e=>n[e]!==i[e],s={};if(a("primary")?(Object.assign(s,{ink:n.primary,onInk:n.onPrimary,focus:n.primary}),a("accent")||Object.assign(s,{go:n.primary,onGo:n.onPrimary})):a("onPrimary")&&(s.onInk=n.onPrimary),a("accent")&&Object.assign(s,{go:n.accent,onGo:n.onAccent}),a("brandSoft")&&(s.tintSage=n.brandSoft),a("danger")&&Object.assign(s,{alert:n.danger,alertDeep:n.danger}),o)Object.assign(s,{bg:n.background,surface:n.surface,text:n.text.primary,muted:n.text.muted,line:n.borderRingCream});else{let e=l.color;n.background!==e.background&&(s.bg=n.background),n.surface!==e.surface&&(s.surface=n.surface),n.text.primary!==e.text.primary&&(s.text=n.text.primary),n.text.muted!==e.text.muted&&(s.muted=n.text.muted)}let d={};Object.keys(s).length>0&&(d.colors={...s});let c=e.radius,u=l.radius;if(c.xs!==u.xs||c.sm!==u.sm||c.lg!==u.lg||c.xl!==u.xl||c.pill!==u.pill){let e={};c.xs!==u.xs&&(e.sm=c.xs),c.sm!==u.sm&&(e.md=c.sm),c.lg!==u.lg&&(e.lg=c.lg),c.xl!==u.xl&&(e.xl=c.xl),c.pill!==u.pill&&(e.pill=c.pill),d.radius=e,(c.lg!==u.lg||c.xl!==u.xl)&&(d.metrics={...c.lg!==u.lg?{card:{radius:c.lg},summary:{radius:c.lg}}:{},...c.xl!==u.xl?{sheet:{radius:c.xl}}:{}})}if(e.space.xs!==l.space.xs){let t=e.space.xs/l.space.xs,n=r.space,i=e=>Math.round(e*t);d.space={1:i(n[1]),2:i(n[2]),3:i(n[3]),4:i(n[4]),5:i(n[5]),6:i(n[6]),7:i(n[7]),8:i(n[8]),9:i(n[9])}}let p=e.type.size,h=l.type.size,g=p.caption!==h.caption||p.bodyTight!==h.bodyTight||p.body!==h.body||p.subtitle!==h.subtitle||p.verdict!==h.verdict,f=e.type.lineHeight,m=l.type.lineHeight,b=f.relaxed!==m.relaxed||f.tight!==m.tight,y=e.type.scaleCaps,x=l.type.scaleCaps,k=y.content!==x.content||y.heading!==x.heading||y.control!==x.control||y.compact!==x.compact||y.badge!==x.badge,w=g||b||k;d.type={...g?{size:{xs:p.caption,sm:p.bodyTight,md:p.body,lg:p.subtitle,xl:p.verdict}}:{},...b?{lineHeight:{body:f.relaxed,display:f.tight}}:{},...k?{scaleCaps:{content:y.content,heading:y.heading,control:y.control,compact:y.compact,badge:y.badge}}:{},...t(e)},e.motion.reducedMotion&&!r.motion.reduced&&(d.motion={reduced:true});let v=w||Object.keys(s).length>0||Object.keys(d).some(e=>e!=="type"&&e!=="colors")||e.type.families.regular!==_i.type.families.regular,S=No(e,l,s.surface??r.colors.surface),j=Object.entries(S).filter(([e,t])=>t!==r.colors[e]);return j.length>0&&(d.colors={...s,...Object.fromEntries(j)}),v?{name:"partner",...d}:d}var Eo={planAccent:fr.colors.planAccent,planLink:fr.colors.planLink},Do={planAccentWash:["accent",.17],planAccentChip:["accent",.47],planLinkWash:["link",.12],planLinkChip:["link",.2]};function No(e,t,r){let n=Ao(e),i=Ao(t),o=e.color,l={};(o.primary!==t.color.primary||o.onPrimary!==t.color.onPrimary)&&Object.assign(l,{planInk:o.primary,planOnInk:n.onPrimary}),o.accent!==t.color.accent&&(l.planAccent=o.accent),n.link!==i.link&&(l.planLink=n.link);let a={accent:l.planAccent??Eo.planAccent,link:l.planLink??Eo.planLink},s={planLinkWash:n.dark?void 0:e.slots.planWash?.backgroundColor,planLinkChip:n.dark?void 0:e.slots.planChip?.backgroundColor},d=r.toLowerCase()!==n.card.toLowerCase();for(let[e,[t,r]]of Object.entries(Do)){let i=s[e];i!==void 0?l[e]=i:d&&(l[e]=Fr(a[t],r,n.card,n.card))}return l}function qo(t){let r=useEverfurTheme();return e.useMemo(()=>Oo(r,t),[r,t])}function BlockScope({children:t}){let r=qo(Ho);return e.createElement(ThemeProvider,{theme:r},t)}var Uo={package:{name:"package"},shop:{name:"shop"},orders:{name:"orders"},plan:{name:"plan"}};function Go(e,t){return t==="package"?e.tabPackage:t==="shop"?e.tabShop:t==="orders"?e.tabOrders:e.tabPlan}function CareTabs({copy:e,current:n,tabs:i}){let o=Mt(),l=$t();/* @__PURE__ */
|
|
71
|
+
/* @__PURE__ */r.jsx(Text2,{style:A(L.nameText),children:n}),l?/* @__PURE__ */r.jsx(Pill,{label:l.label,tone:l.tone??"rx"}):null]}),H,D||B?/* @__PURE__ */r.jsxs(t.View,{style:{flexDirection:"row",alignItems:"center",...g&&g.length>1?{flexWrap:"wrap",rowGap:L.acts.gap[1]}:{},columnGap:L.acts.gap[0],marginTop:L.acts.marginTop},children:[D,B]}):null,w?/* @__PURE__ */r.jsx(Text2,{accessibilityRole:"alert",accessibilityLiveRegion:"polite",style:[A(L.meta),{marginTop:L.acts.marginTop,color:I.colors.alert}],children:w}):null]})]}),d||c?/* @__PURE__ */r.jsxs(t.View,{style:{marginLeft:R+W,flexDirection:"row",flexWrap:"wrap",alignItems:"baseline",columnGap:L.end.gap[0],rowGap:L.end.gap[1]},children:[d?/* @__PURE__ */r.jsx(Text2,{testID:P("price"),style:A(L.price),children:d}):null,c?/* @__PURE__ */r.jsx(Text2,{style:A(L.was),children:c}):null]}):null]})}var Li="partner",zi=e.createContext(Li),Ai=zi.Provider;function Ri(){return e.useContext(zi)}function Wi(){return Ri()==="everfur-app"}var Fi=/* @__PURE__ */Object.freeze({display:/* @__PURE__ */Object.freeze({size:29,lineHeight:1.06,weight:"800",face:"heading",letterSpacing:-.01,uppercase:false,tier:"heading"}),title:/* @__PURE__ */Object.freeze({size:23,lineHeight:1.12,weight:"800",face:"heading",letterSpacing:-.01,uppercase:false,tier:"heading"}),cardTitle:/* @__PURE__ */Object.freeze({size:19,lineHeight:1.22,weight:"800",face:"sans",letterSpacing:0,uppercase:false,tier:"heading"}),rowTitle:/* @__PURE__ */Object.freeze({size:15.5,lineHeight:1.4,weight:"700",face:"sans",letterSpacing:0,uppercase:false,tier:"content"}),body:/* @__PURE__ */Object.freeze({size:15,lineHeight:1.5,weight:"400",face:"sans",letterSpacing:0,uppercase:false,tier:"content"}),message:/* @__PURE__ */Object.freeze({size:15.5,lineHeight:1.5,weight:"400",face:"sans",letterSpacing:0,uppercase:false,tier:"content"}),bodySmall:/* @__PURE__ */Object.freeze({size:14.5,lineHeight:1.4,weight:"400",face:"sans",letterSpacing:0,uppercase:false,tier:"content"}),caption:/* @__PURE__ */Object.freeze({size:13,lineHeight:1.4,weight:"400",face:"sans",letterSpacing:0,uppercase:false,tier:"content"}),label:/* @__PURE__ */Object.freeze({size:10.5,lineHeight:1.4,weight:"400",face:"mono",letterSpacing:.05,uppercase:true,tier:"compact"}),eyebrow:/* @__PURE__ */Object.freeze({size:15,lineHeight:1.5,weight:"400",face:"mono",letterSpacing:.07,uppercase:true,tier:"compact"}),chip:/* @__PURE__ */Object.freeze({size:15,lineHeight:1.3,weight:"600",face:"sans",letterSpacing:0,uppercase:false,tier:"compact"}),tab:/* @__PURE__ */Object.freeze({size:16,lineHeight:1.5,weight:"600",face:"sans",letterSpacing:0,uppercase:false,tier:"compact"}),button:/* @__PURE__ */Object.freeze({size:15,lineHeight:1.5,weight:"700",face:"sans",letterSpacing:0,uppercase:false,tier:"control"}),badge:/* @__PURE__ */Object.freeze({size:12,lineHeight:1.5,weight:"700",face:"sans",letterSpacing:0,uppercase:false,tier:"badge"})});var Vi=Object.freeze;function Hi(e){if(e!==null&&typeof e=="object"&&!Object.isFrozen(e)){Vi(e);for(let t of Object.keys(e))Hi(e[t])}return e}var Pi=/* @__PURE__ */Object.freeze({content:0,heading:2,control:1.8,compact:1.5,badge:1.3});var Oi={xs:4,sm:8,md:12,lg:16,xl:24,xxl:32},Bi={tile:5,xs:6,sm:10,md:14,lg:20,xl:28,pill:500},Di={nano:8,small:9,micro:10,tiny:11,caption:13,bodyTight:15,body:17,subtitle:20,heading:22,verdict:24},Ei={tight:1.15,snug:1.3,normal:1.4,relaxed:1.55},Ni={regular:"400",medium:"500",bold:"700"},qi={eyebrow:1,monoWide:.9,headerBrand:-.42,tight:-.35},Ui=0,Gi="System",Mi="monospace",Ki=["content","heading","control","compact","badge"];function Zi(e){let t={};for(let r of Ki)t[r]=e;return t}var Yi=[];function Ji(){return{family:Gi,mono:Mi,fontUrl:null,families:{regular:Gi,medium:Gi,bold:Gi,mono:Mi,monoMedium:Mi,monoBold:Mi},namedFaces:{regular:false,medium:false,bold:false,mono:false,monoMedium:false,monoBold:false},fontUrls:{},size:Di,tierSizes:Zi(Di),lineHeight:Ei,weight:Ni,letterSpacing:qi,scale:1,maxScale:Ui,scaleCaps:Pi,headingFamily:null,headingWeight:null,fontSources:Yi,roles:Fi,typeScale:1}}var Xi={},Qi=/* @__PURE__ */Object.freeze({standard:/* @__PURE__ */Object.freeze([.2,0,0,1]),emphasized:/* @__PURE__ */Object.freeze([.2,.8,.2,1]),exit:/* @__PURE__ */Object.freeze([.4,0,1,1])});function cssCubicBezier(e){return`cubic-bezier(${e.join(", ")})`}var _i={duration:{instant:80,fast:140,normal:220,slow:320},spring:{gentle:{damping:18,stiffness:200}},easing:{standard:cssCubicBezier(Qi.standard),emphasized:cssCubicBezier(Qi.emphasized),exit:cssCubicBezier(Qi.exit)},reducedMotion:false},$i={brand:"#10462E",brandSoft:"rgba(16,70,46,0.10)",brandSofter:"rgba(16,70,46,0.15)",brandBorder:"rgba(16,70,46,0.18)",borderHairlineGreen:"rgba(16,70,46,0.25)",brandBorderStrong:"rgba(16,70,46,0.55)",brandInk:"#10462E",linkInk:"#10462E",surface:"#FFFFFF",surfaceCream:"#FFFFFF",surfaceSubtle:"#F1F5F2",background:"#FFFFFF",borderRingCream:"#E4E4E4",chatGround:"#FFFFFF",composerFill:"#FFFFFF",composerBorder:"rgba(16,70,46,0.75)",shadow:"#0B3421",text:{primary:"#000000",secondary:"#0E462E",muted:"#6B6B6B",placeholder:"rgba(61,61,61,0.75)",onBrand:"#FFFFFF",metaCool:"#3D3D3D",timestamp:"rgba(61,61,61,0.75)"},primary:"#10462E",onPrimary:"#FFFFFF",accent:"#10462E",onAccent:"#FFFFFF",accentEdge:"#07C168",success:"#07C168",danger:"#C03410",onDanger:"#FFFFFF",errorRed:"#C03410",warningStrong:"#A45610",cautionAccent:"#D9821D",riskConcern:"#EFA700",sentiment:{up:"#07C168",neutral:"#FBC558",down:"#FF1B00"},badgeBgPositive:"rgba(7,193,104,0.12)",badgeBgCaution:"rgba(217,130,29,0.14)",badgeBgCritical:"rgba(192,52,16,0.06)",badgeBgNeutral:"rgba(107,107,107,0.12)",bubbleUser:"#10462E",bubbleAssistant:"#FFFFFF",bubbleVet:"#FFC3BC",onBubbleVet:"#000000",skeleton:"#E9F1E9",scanButtonPink:"#FFC3BC",highlight:"#FFC3BC",onHighlight:"#000000",mark:"#07C168",controlEdge:"rgba(16,70,46,0.18)",structureEdge:"rgba(16,70,46,0.25)",primaryEdge:"#10462E",checkupCardLowRiskBg:"rgba(7,193,104,0.10)",checkupCardConcernBg:"rgba(239,167,0,0.10)",info:"#10462E",badgeBgInfo:"rgba(16,70,46,0.10)",infoEdge:"rgba(16,70,46,0.25)"},eo=Hi({brightness:"light",highContrast:false,meta:{displayName:"Everfur",logoUrl:null,placeholder:null,hidePoweredBy:false,assistantAvatarUrl:null},color:$i,space:Oi,radius:Bi,type:Ji(),motion:_i,slots:Xi}),to={brand:"#6BD39A",brandSoft:"rgba(107,211,154,0.12)",brandSofter:"rgba(107,211,154,0.18)",brandBorder:"rgba(107,211,154,0.22)",borderHairlineGreen:"rgba(107,211,154,0.28)",brandBorderStrong:"rgba(107,211,154,0.55)",brandInk:"#6BD39A",linkInk:"#6BD39A",surface:"#1C1F23",surfaceCream:"#23272C",surfaceSubtle:"#23272C",background:"#15171A",borderRingCream:"#3A3F45",chatGround:"#1C1F23",composerFill:"#23272C",composerBorder:"rgba(107,211,154,0.75)",shadow:"#000000",text:{primary:"#F5F3F0",secondary:"#A9E4C4",muted:"#9A9A9A",placeholder:"rgba(255,255,255,0.55)",onBrand:"#0E1F17",metaCool:"#C9C9C9",timestamp:"rgba(245,243,240,0.7)"},primary:"#6BD39A",onPrimary:"#0E1F17",accent:"#6BD39A",onAccent:"#0E1F17",accentEdge:"#34D888",success:"#07C168",danger:"#F87171",onDanger:"#0E1F17",errorRed:"#FF6B5B",warningStrong:"#F0A35E",cautionAccent:"#D9821D",riskConcern:"#EFA700",sentiment:{up:"#07C168",neutral:"#FBC558",down:"#FF1B00"},badgeBgPositive:"rgba(7,193,104,0.18)",badgeBgCaution:"rgba(217,130,29,0.20)",badgeBgCritical:"rgba(185,28,28,0.22)",badgeBgNeutral:"rgba(255,255,255,0.10)",bubbleUser:"#6BD39A",bubbleAssistant:"#1C1F23",bubbleVet:"#FFC3BC",onBubbleVet:"#000000",skeleton:"#23272C",scanButtonPink:"#FFC3BC",highlight:"#605051",onHighlight:"#F5F3F0",mark:"#07C168",controlEdge:"rgba(107,211,154,0.22)",structureEdge:"rgba(107,211,154,0.28)",primaryEdge:"#6BD39A",checkupCardLowRiskBg:"rgba(7,193,104,0.16)",checkupCardConcernBg:"rgba(239,167,0,0.16)",info:"#6BD39A",badgeBgInfo:"rgba(107,211,154,0.12)",infoEdge:"rgba(107,211,154,0.28)"},ro=Hi({brightness:"dark",highContrast:false,meta:{displayName:"Everfur",logoUrl:null,placeholder:null,hidePoweredBy:false,assistantAvatarUrl:null},color:to,space:Oi,radius:Bi,type:Ji(),motion:_i,slots:Xi});var no=/* @__PURE__ */Object.freeze({regular:"regular",medium:"medium",bold:"bold",mono:"regular",monoMedium:"medium",monoBold:"bold"});function face(e,t){let r=e.type,n=r.families[t];return t==="mono"||r.namedFaces[t]?{fontFamily:n}:{fontFamily:n,fontWeight:r.weight[no[t]]}}function headingFace(e,t="bold"){let{headingFamily:r,headingWeight:n}=e.type;if(r===null&&n===null)return face(e,t);if(r!==null)return{fontFamily:r,fontWeight:n??e.type.weight[no[t]]};let i=face(e,t);return i.fontWeight===void 0||n===null?i:{fontFamily:i.fontFamily,fontWeight:n}}function io(e){return e<=450?"regular":e<=650?"medium":"bold"}var oo={regular:"mono",medium:"monoMedium",bold:"monoBold"};function textRole(e,t){let r=lo.get(e);r===void 0&&(r=/* @__PURE__ */new Map,lo.set(e,r));let n=r.get(t);if(n!==void 0)return n;let i=ao(e,t);return r.set(t,i),i}var lo=/* @__PURE__ */new WeakMap;function ao(e,t){let r=e.type.roles[t],n=r.weight==="400"&&r.face!=="mono"?e.type.weight.regular:r.weight,i=io(Number(n)),o=r.face==="mono"?face(e,oo[i]):r.face==="heading"?headingFace(e,i):face(e,i),l=r.face==="heading"?e.type.headingWeight??n:n,a=o.fontWeight===void 0?o:{fontFamily:o.fontFamily,fontWeight:l},s=r.size,d={...a,fontSize:s,lineHeight:Math.round(s*r.lineHeight*100)/100};return r.letterSpacing!==0&&(d.letterSpacing=Math.round(s*r.letterSpacing*100)/100),r.uppercase&&(d.textTransform="uppercase"),/* @__PURE__ */Object.freeze(d)}function so(e){if(typeof e=="number")return po(e);if(typeof e!="string")return null;let t=e.trim();if(t.length===0)return null;if(t.startsWith("#"))return co(t.slice(1));if(t.toLowerCase().startsWith("0x"))return co(t.slice(2));if(t.toLowerCase().startsWith("rgb"))return uo(t);if(/^[0-9a-fA-F]+$/.test(t)){let e=co(t);if(e!==null)return e}return/^\d+$/.test(t)?po(Number.parseInt(t,10)):null}function co(e){let t=e.trim();if(!/^[0-9a-fA-F]+$/.test(t))return null;if(t.length===3)return{r:go(t[0]),g:go(t[1]),b:go(t[2]),a:1};if(t.length===6)return{r:ho(t,0),g:ho(t,2),b:ho(t,4),a:1};if(t.length===8){let e=ho(t,0);return{r:ho(t,2),g:ho(t,4),b:ho(t,6),a:e/255}}return null}function uo(e){let t=e.indexOf("("),r=e.indexOf(")");if(t<0||r<0||r<t)return null;let n=e.slice(t+1,r).split(",").map(e=>e.trim());if(n.length<3)return null;let i=fo(Number(n[0])),o=fo(Number(n[1])),l=fo(Number(n[2]));if(i===null||o===null||l===null)return null;let a=1;if(n.length>=4){let e=Number(n[3]);if(!Number.isFinite(e))return null;a=Math.min(1,Math.max(0,e))}return{r:i,g:o,b:l,a:a}}function po(e){if(!Number.isFinite(e))return null;let t=Math.trunc(e)>>>0,r=t>>>24&255;return{r:t>>>16&255,g:t>>>8&255,b:t&255,a:r===0?1:r/255}}function ho(e,t){return Number.parseInt(e.slice(t,t+2),16)}function go(e){return Number.parseInt(`${e??"0"}${e??"0"}`,16)}function fo(e){return Number.isFinite(e)?Math.min(255,Math.max(0,Math.round(e))):null}function mo(e,t,r){return`#${bo(e)}${bo(t)}${bo(r)}`.toUpperCase()}function bo(e){return e.toString(16).padStart(2,"0")}var yo="#111111",xo="#FFFFFF",ko="#000000";function readableOn(e){let t=so(e);if(t===null)return xo;let r=To(t),n=To({r:17,g:17,b:17}),i=To({r:255,g:255,b:255});return jo(r,i)>=jo(r,n)?xo:yo}function wo(e,t){let r=readableOn(e);return contrastRatio(r,e)>=t?r:contrastRatio(xo,e)>=contrastRatio(ko,e)?xo:ko}function vo(e){let t=t=>e.reduce((e,r)=>Math.min(e,contrastRatio(t,r)),Number.POSITIVE_INFINITY);return t(xo)>=t(ko)?xo:ko}function To(e){let t=So(e.r/255),r=So(e.g/255),n=So(e.b/255);return.2126*t+.7152*r+.0722*n}function So(e){return e<=.03928?e/12.92:Math.pow((e+.055)/1.055,2.4)}function jo(e,t){let r=Math.max(e,t),n=Math.min(e,t);return(r+.05)/(n+.05)}function contrastRatio(e,t){let r=so(e),n=so(t);if(r===null||n===null)return 1;let i=n.a>=1?n:{...n},o=r.a>=1?r:Co(r,i);return jo(To(o),To(i))}function Co(e,t){let r=e.a,n=(e,t)=>Math.round(e*r+t*(1-r));return{r:n(e.r,t.r),g:n(e.g,t.g),b:n(e.b,t.b),a:1}}function Io(e,t){let r=so(e),n=so(t);if(r===null||n===null)return null;let i=r.a>=1?r:Co(r,{...n});return mo(i.r,i.g,i.b)}var Lo=.05;function zo(e,t,r,n){let i=t[0];if(i===void 0)return r;let o=e=>t.every(t=>contrastRatio(e,t)>=n);if(so(e)===null)return r;if(o(e))return e;let l=Io(e,i),a=l===null?null:so(l),s=so(r);if(a===null||s===null)return r;for(let e=1;e<1/Lo;e+=1){let t=e*Lo,r=(e,r)=>Math.round(e+(r-e)*t),n=mo(r(a.r,s.r),r(a.g,s.g),r(a.b,s.b));if(o(n))return n}return r}var Ao=/* @__PURE__ */Object.freeze({ink:"#262523",ink2:"#4A4845",ink3:"#6B6863",paper:"#F8F7F4",card:"#FFFFFF",line:"#E7E6E2",tile:"#F2F1EE",shadow:"rgba(38, 37, 35, .07)",riskBg:"#FFE3E1",riskInk:"#B0231B",riskDot:"#E5372B",clearBg:"#E6F4D3",clearInk:"#2F6A12",clearDot:"#5FA82B",watchDot:"#E5A000"}),Ro=/* @__PURE__ */new WeakMap;function Wo(e){let t=Ro.get(e);if(t!==void 0)return t;let r=e.color,n=e.brightness==="dark",i=n?{dark:n,ink:r.text.primary,ink2:r.text.secondary,ink3:r.text.muted,paper:r.background,card:r.surface,line:r.borderRingCream,tile:r.surfaceSubtle,shadow:r.shadow,riskBg:r.badgeBgCritical,riskInk:r.danger,riskDot:r.danger,clearBg:r.badgeBgPositive,clearInk:r.success,clearDot:r.success,watchDot:r.warningStrong}:{dark:n,...Ao},o=(e,t)=>zo(e,t,vo(t),Fo),l=(e,t)=>contrastRatio(e,t)>=Fo?e:wo(t,Fo),a=[i.card,i.paper].map(e=>Io(r.brandSoft,e)??e),s={primary:r.primary,onPrimary:l(r.onPrimary,r.primary),accent:r.accent,onAccent:l(r.onAccent,r.accent),link:o(r.linkInk,[i.card,i.paper,i.tile]),badge:r.brandSoft,onBadge:o(r.brandInk,a)},d=/* @__PURE__ */Object.freeze({...i,...s});return Ro.set(e,d),d}var Fo=4.5;var Vo=/* @__PURE__ */Symbol.for("@everfur/sdk#EverfurThemeContext@v1"),Ho=globalThis,Po=Ho[Vo]??(Ho[Vo]=e.createContext(eo));Po.displayName??="EverfurThemeContext";function useEverfurTheme(){return e.useContext(Po)}var Oo=e=>{let t=e.type.namedFaces,r=t=>face(e,t).fontFamily;return{family:r("regular"),mono:r("mono"),faces:{regular:r("regular"),medium:r("medium"),bold:r("bold"),mono:r("mono"),monoBold:r("monoBold"),serif:headingFace(e,"bold").fontFamily},namedFaces:t.regular&&t.medium&&t.bold}},Bo=/* @__PURE__ */new WeakMap;function Do(e,t,r=br){if(r!==br)return Eo(e,t,r);let n=Bo.get(t);n===void 0&&Bo.set(t,n=/* @__PURE__ */new WeakMap);let i=n.get(e);return i===void 0&&n.set(e,i=Eo(e,t,r)),i}function Eo(e,t,r){let n=e.color,i=eo.color,o=e.brightness==="dark",l=o?ro:eo,a=e=>n[e]!==i[e],s={};if(a("primary")?(Object.assign(s,{ink:n.primary,onInk:n.onPrimary,focus:n.primary}),a("accent")||Object.assign(s,{go:n.primary,onGo:n.onPrimary})):a("onPrimary")&&(s.onInk=n.onPrimary),a("accent")&&Object.assign(s,{go:n.accent,onGo:n.onAccent}),a("brandSoft")&&(s.tintSage=n.brandSoft),a("danger")&&Object.assign(s,{alert:n.danger,alertDeep:n.danger}),o)Object.assign(s,{bg:n.background,surface:n.surface,text:n.text.primary,muted:n.text.muted,line:n.borderRingCream});else{let e=l.color;n.background!==e.background&&(s.bg=n.background),n.surface!==e.surface&&(s.surface=n.surface),n.text.primary!==e.text.primary&&(s.text=n.text.primary),n.text.muted!==e.text.muted&&(s.muted=n.text.muted)}let d={};Object.keys(s).length>0&&(d.colors={...s});let c=e.radius,u=l.radius;if(c.xs!==u.xs||c.sm!==u.sm||c.lg!==u.lg||c.xl!==u.xl||c.pill!==u.pill){let e={};c.xs!==u.xs&&(e.sm=c.xs),c.sm!==u.sm&&(e.md=c.sm),c.lg!==u.lg&&(e.lg=c.lg),c.xl!==u.xl&&(e.xl=c.xl),c.pill!==u.pill&&(e.pill=c.pill),d.radius=e,(c.lg!==u.lg||c.xl!==u.xl)&&(d.metrics={...c.lg!==u.lg?{card:{radius:c.lg},summary:{radius:c.lg}}:{},...c.xl!==u.xl?{sheet:{radius:c.xl}}:{}})}if(e.space.xs!==l.space.xs){let t=e.space.xs/l.space.xs,n=r.space,i=e=>Math.round(e*t);d.space={1:i(n[1]),2:i(n[2]),3:i(n[3]),4:i(n[4]),5:i(n[5]),6:i(n[6]),7:i(n[7]),8:i(n[8]),9:i(n[9])}}let p=e.type.size,h=l.type.size,g=p.caption!==h.caption||p.bodyTight!==h.bodyTight||p.body!==h.body||p.subtitle!==h.subtitle||p.verdict!==h.verdict,f=e.type.lineHeight,m=l.type.lineHeight,b=f.relaxed!==m.relaxed||f.tight!==m.tight,y=e.type.scaleCaps,x=l.type.scaleCaps,k=y.content!==x.content||y.heading!==x.heading||y.control!==x.control||y.compact!==x.compact||y.badge!==x.badge,w=g||b||k;d.type={...g?{size:{xs:p.caption,sm:p.bodyTight,md:p.body,lg:p.subtitle,xl:p.verdict}}:{},...b?{lineHeight:{body:f.relaxed,display:f.tight}}:{},...k?{scaleCaps:{content:y.content,heading:y.heading,control:y.control,compact:y.compact,badge:y.badge}}:{},...t(e)},e.motion.reducedMotion&&!r.motion.reduced&&(d.motion={reduced:true});let v=w||Object.keys(s).length>0||Object.keys(d).some(e=>e!=="type"&&e!=="colors")||e.type.families.regular!==eo.type.families.regular,S=Uo(e,l,s.surface??r.colors.surface),j=Object.entries(S).filter(([e,t])=>t!==r.colors[e]);return j.length>0&&(d.colors={...s,...Object.fromEntries(j)}),v?{name:"partner",...d}:d}var No={planAccent:br.colors.planAccent,planLink:br.colors.planLink},qo={planAccentWash:["accent",.17],planAccentChip:["accent",.47],planLinkWash:["link",.12],planLinkChip:["link",.2]};function Uo(e,t,r){let n=Wo(e),i=Wo(t),o=e.color,l={};(o.primary!==t.color.primary||o.onPrimary!==t.color.onPrimary)&&Object.assign(l,{planInk:o.primary,planOnInk:n.onPrimary}),o.accent!==t.color.accent&&(l.planAccent=o.accent),n.link!==i.link&&(l.planLink=n.link);let a={accent:l.planAccent??No.planAccent,link:l.planLink??No.planLink},s={planLinkWash:n.dark?void 0:e.slots.planWash?.backgroundColor,planLinkChip:n.dark?void 0:e.slots.planChip?.backgroundColor},d=r.toLowerCase()!==n.card.toLowerCase();for(let[e,[t,r]]of Object.entries(qo)){let i=s[e];i!==void 0?l[e]=i:d&&(l[e]=Hr(a[t],r,n.card,n.card))}return l}function Go(t){let r=useEverfurTheme();return e.useMemo(()=>Do(r,t),[r,t])}function BlockScope({children:t}){let r=Go(Oo);return e.createElement(ThemeProvider,{theme:r},t)}var Mo=640,Ko=600,Zo=/* @__PURE__ */Object.freeze({width:0,height:0}),Yo="useWindowDimensions"in i&&typeof i.useWindowDimensions=="function"?i.useWindowDimensions:()=>Zo,Jo=/* @__PURE__ */Object.freeze({width:"100%",maxWidth:Mo,alignSelf:"center"});/* @__PURE__ */Object.freeze({...Jo,flex:1});var Xo=/* @__PURE__ */Object.freeze({...Jo,flexGrow:1,flexShrink:1});function Qo(){return Yo().width>=Ko}function _o(e="flow"){let{width:t}=Yo();if(t<Ko)return null;if(e==="flow")return Jo;let r=Math.max(0,Math.round((t-Mo)/2));return{left:r,right:r}}function $o(e,t){return t===null?e:[e,t]}var el=/* @__PURE__ */Symbol.for("@everfur/sdk#InSdkColumn@v1"),tl=globalThis,rl=tl[el]??(tl[el]=e.createContext(false));rl.displayName??="EverfurInSdkColumn";function SdkTabletColumn({children:n,style:i,testID:o}){let l=Qo(),a=e.useContext(rl);return!l||a?n:/* @__PURE__ */r.jsx(t.View,{style:i===void 0?Xo:[Xo,i],testID:o??"everfur-tablet-column",children:/* @__PURE__ */r.jsx(rl.Provider,{value:true,children:n})})}var nl={package:{name:"package"},shop:{name:"shop"},orders:{name:"orders"},plan:{name:"plan"}};function il(e,t){return t==="package"?e.tabPackage:t==="shop"?e.tabShop:t==="orders"?e.tabOrders:e.tabPlan}function CareTabs({copy:e,current:n,tabs:i}){let o=Zt(),l=tr();/* @__PURE__ */
|
|
72
72
|
return r.jsxs(t.View,{style:[o.v("subtabs"),{flexDirection:"row",zIndex:1}],accessibilityRole:"tablist",accessibilityLabel:e.tabsLabel,testID:"shop-subtabs",children:[i.map(t=>{let i=t===n,a=i?"subtabCurrent":"subtab";/* @__PURE__ */
|
|
73
|
-
return r.jsxs(Press,{role:"tab",selected:i,onPress:()=>l.go(
|
|
74
|
-
/* @__PURE__ */r.jsx(T,{k:a,bare:true,children:
|
|
73
|
+
return r.jsxs(Press,{role:"tab",selected:i,onPress:()=>l.go(nl[t]),style:[o.v(a),{flex:1,alignItems:"center",justifyContent:"center"}],children:[
|
|
74
|
+
/* @__PURE__ */r.jsx(T,{k:a,bare:true,children:il(e,t)}),
|
|
75
75
|
/* @__PURE__ */r.jsx(Decor,{k:a})]},t)}),
|
|
76
|
-
/* @__PURE__ */r.jsx(Decor,{k:"subtabs"})]})}function Frame({tabs:n,tray:i,onNearEnd:o,onRefresh:l,children:a}){let s=
|
|
77
|
-
return r.
|
|
78
|
-
/* @__PURE__ */r.jsx(t.ScrollView,{style:{flex:1},contentContainerStyle:[s.v(n?"body":"pushBody"),
|
|
76
|
+
/* @__PURE__ */r.jsx(Decor,{k:"subtabs"})]})}function Frame({tabs:n,tray:i,onNearEnd:o,onRefresh:l,children:a}){let s=Zt(),[d,c]=e.useState(false),u=e.useRef(o);u.current=o;let p=e.useRef({offset:0,view:0,content:0}),h=()=>{let e=p.current;u.current&&e.view>0&&e.content>0&&e.offset+e.view*2>=e.content&&u.current()},g=o===void 0?{}:{scrollEventThrottle:100,onLayout:e=>{p.current.view=e.nativeEvent.layout.height,h()},onContentSizeChange:(e,t)=>{p.current.content=t,h()},onScroll:e=>{let t=e.nativeEvent;p.current={offset:t.contentOffset.y,view:t.layoutMeasurement.height,content:t.contentSize.height},h()}};/* @__PURE__ */
|
|
77
|
+
return r.jsx(t.View,{style:{flex:1,backgroundColor:Dt.subtabs.backgroundColor},children:/* @__PURE__ */r.jsxs(SdkTabletColumn,{children:[n?/* @__PURE__ */r.jsx(CareTabs,{copy:n.copy,current:n.current,tabs:n.tabs}):null,
|
|
78
|
+
/* @__PURE__ */r.jsx(t.ScrollView,{style:{flex:1},contentContainerStyle:[s.v(n?"body":"pushBody"),ol],keyboardShouldPersistTaps:"handled",...g,...l?{refreshControl:/* @__PURE__ */r.jsx(t.RefreshControl,{refreshing:d,tintColor:Yt("screenMeta"),colors:[Yt("screenMeta")],onRefresh:()=>{c(true),l().finally(()=>c(false))}})}:{},children:/* @__PURE__ */r.jsx(t.View,{testID:"shop-body",children:a})}),i??null]})})}var ol={paddingBottom:Dt.breaks.columnGap};function TitleBlock({title:e,meta:n}){let i=Zt();/* @__PURE__ */
|
|
79
79
|
return r.jsxs(t.View,{style:i.v("titleBlock"),children:[
|
|
80
|
-
/* @__PURE__ */r.jsx(T,{k:"screenTitle",role:"header",children:e}),n?/* @__PURE__ */r.jsx(T,{k:"screenMeta",children:n}):null]})}function Stack({children:e}){let n=
|
|
81
|
-
return r.jsx(t.View,{style:n.v("stack"),children:e})}function Card2({children:e,label:n,style:i}){let o=
|
|
80
|
+
/* @__PURE__ */r.jsx(T,{k:"screenTitle",role:"header",children:e}),n?/* @__PURE__ */r.jsx(T,{k:"screenMeta",children:n}):null]})}function Stack({children:e}){let n=Zt();/* @__PURE__ */
|
|
81
|
+
return r.jsx(t.View,{style:n.v("stack"),children:e})}function Card2({children:e,label:n,style:i}){let o=Zt();/* @__PURE__ */
|
|
82
82
|
return r.jsx(t.View,{style:[o.v("card"),i],...n?{accessibilityLabel:n}:{},children:e})}function CardTitle({children:e}){/* @__PURE__ */
|
|
83
|
-
return r.jsx(T,{k:"cardTitle",role:"header",children:e})}function CardHead({title:e,end:n}){let i=
|
|
83
|
+
return r.jsx(T,{k:"cardTitle",role:"header",children:e})}function CardHead({title:e,end:n}){let i=Zt();/* @__PURE__ */
|
|
84
84
|
return r.jsxs(t.View,{style:[i.v("cardHead"),{flexDirection:"row",flexWrap:"wrap",alignItems:"center",justifyContent:"space-between"}],children:[
|
|
85
|
-
/* @__PURE__ */r.jsx(T,{k:"cardTitleInHead",role:"header",children:e}),n??null]})}function ShopLinkText({link:e,k:t="cardLink",style:n}){let i=
|
|
86
|
-
return r.jsx(Press,{role:"link",onPress:()=>o.go(e.to),style:[i.v(t),n],children:/* @__PURE__ */r.jsx(T,{k:t,bare:true,children
|
|
85
|
+
/* @__PURE__ */r.jsx(T,{k:"cardTitleInHead",role:"header",children:e}),n??null]})}function ShopLinkText({link:e,k:t="cardLink",style:n}){let i=Zt(),o=tr();/* @__PURE__ */
|
|
86
|
+
return r.jsx(Press,{role:"link",onPress:()=>o.go(e.to),style:[i.v(t),n],children:/* @__PURE__ */r.jsx(T,{k:t,bare:true,children:$t(e.label)})})}var ll={rx:"pill",soon:"pillSoon",clear:"pillClear",plain:"pillPlain",overdue:"pillOverdue",later:"pillPlain",stable:"pillStable"};function Pill2({pill:e}){let n=Zt(),i=ll[e.tone];/* @__PURE__ */
|
|
87
87
|
return r.jsxs(t.View,{style:[n.v(i),{flexDirection:"row",alignItems:"center",alignSelf:"flex-start",flexShrink:1}],children:[
|
|
88
88
|
/* @__PURE__ */r.jsx(T,{k:i,bare:true,style:{flexShrink:1},children:e.label}),
|
|
89
|
-
/* @__PURE__ */r.jsx(Decor,{k:i})]})}var
|
|
90
|
-
return r.jsxs(t.View,{style:[o.v("thumb"),{backgroundColor:
|
|
91
|
-
/* @__PURE__ */r.jsx(PartIcon,{name:n,k:"thumbIcon",inkKey:"thumb"}),i?/* @__PURE__ */r.jsx(TilePhoto,{uri:i},i):null]})}function ItemRow({index:e,count:n,thumb:i,children:o,end:l,first:a="itemsLiFirst",mid:s="itemsLiMid",last:d="itemsLiLast"}){let c=
|
|
89
|
+
/* @__PURE__ */r.jsx(Decor,{k:i})]})}var al={base:null,pink:"thumbPink",yellow:"thumbYellow",sage:"thumbSage"};function sl(e){let t=al[e];return(t?Dt[t]:Dt.thumb).backgroundColor}function dl(e){return Wi()&&e.form!==void 0?We(e.form):{tone:e.tone,icon:e.icon}}function TilePhoto({uri:n,onFailed:i}){let[o,l]=e.useState("loading");return o==="failed"?null:/* @__PURE__ */r.jsx(t.Image,{source:{uri:n},resizeMode:"cover",accessible:false,accessibilityElementsHidden:true,importantForAccessibility:"no-hide-descendants",onLoad:()=>l("loaded"),onError:()=>{l("failed"),i?.()},style:{position:"absolute",top:0,left:0,right:0,bottom:0,opacity:o==="loaded"?1:0}})}function Thumb({tone:e,icon:n,imageUrl:i}){let o=Zt();/* @__PURE__ */
|
|
90
|
+
return r.jsxs(t.View,{style:[o.v("thumb"),{backgroundColor:sl(e),alignItems:"center",justifyContent:"center"},i?{overflow:"hidden"}:null],children:[
|
|
91
|
+
/* @__PURE__ */r.jsx(PartIcon,{name:n,k:"thumbIcon",inkKey:"thumb"}),i?/* @__PURE__ */r.jsx(TilePhoto,{uri:i},i):null]})}function ItemRow({index:e,count:n,thumb:i,children:o,end:l,first:a="itemsLiFirst",mid:s="itemsLiMid",last:d="itemsLiLast"}){let c=Zt(),u=[];n===1?u.push({paddingTop:0,paddingBottom:0}):e===0?u.push(c.v(a)):e===n-1?u.push(c.v(d)):u.push(c.v(s));let p=Dt.itemsLiFirst.columnGap;return u.push({rowGap:0,columnGap:0}),/* @__PURE__ */r.jsxs(t.View,{style:u,children:[
|
|
92
92
|
/* @__PURE__ */r.jsxs(t.View,{style:{flexDirection:"row",alignItems:"center",columnGap:p},children:[i,
|
|
93
|
-
/* @__PURE__ */r.jsx(t.View,{style:{flex:1,minWidth:0,marginRight:p},children:o})]}),l?/* @__PURE__ */r.jsx(t.View,{style:{marginTop:
|
|
93
|
+
/* @__PURE__ */r.jsx(t.View,{style:{flex:1,minWidth:0,marginRight:p},children:o})]}),l?/* @__PURE__ */r.jsx(t.View,{style:{marginTop:Dt.itemsLiFirst.rowGap,marginLeft:Dt.thumb.width+p,marginRight:p,alignItems:"flex-start"},children:l}):null]})}function ItemName({name:e,rx:n,copy:i,pills:o}){let l=Zt();/* @__PURE__ */
|
|
94
94
|
return r.jsxs(t.View,{style:[l.v("itemsName"),{flexDirection:"row",flexWrap:"wrap",alignItems:"center"}],children:[
|
|
95
|
-
/* @__PURE__ */r.jsx(T,{k:"itemsName",bare:true,children:e}),n?/* @__PURE__ */r.jsx(Pill2,{pill:{label:i.rx,tone:"rx"}}):null,(o??[]).map(e=>/* @__PURE__ */r.jsx(Pill2,{pill:e},e.label))]})}var
|
|
96
|
-
return r.jsx(BlockScope,{children:/* @__PURE__ */r.jsx(ThemeProvider,{theme:
|
|
97
|
-
return r.jsx(BlockScope,{children:/* @__PURE__ */r.jsx(ThemeProvider,{theme:
|
|
98
|
-
return r.jsx(t.View,{children:e.map((o,l)=>{let a;return n?a=i.v(l===0?"planRowsLiFirst":"planRowsLiNext"):e.length===1?a={}:l===0?a=i.v("rowsLiFirst"):l===e.length-1?a=i.v("rowsLiNext"):a={...i.v("rowsLiNext"),paddingBottom:
|
|
95
|
+
/* @__PURE__ */r.jsx(T,{k:"itemsName",bare:true,children:e}),n?/* @__PURE__ */r.jsx(Pill2,{pill:{label:i.rx,tone:"rx"}}):null,(o??[]).map(e=>/* @__PURE__ */r.jsx(Pill2,{pill:e},e.label))]})}var cl={colors:{ink:br.colors.ink}};function Sum({rows:e,total:t}){let n=e.map((e,t)=>({key:`${e.k}-${t}`,term:e.k,value:e.v})),i=t?n[n.length-1]:void 0;/* @__PURE__ */
|
|
96
|
+
return r.jsx(BlockScope,{children:/* @__PURE__ */r.jsx(ThemeProvider,{theme:cl,children:/* @__PURE__ */r.jsx(SummaryList,{rows:i?n.slice(0,-1):n,total:i})})})}function RecRows({label:e,rows:t,testID:n}){/* @__PURE__ */
|
|
97
|
+
return r.jsx(BlockScope,{children:/* @__PURE__ */r.jsx(ThemeProvider,{theme:cl,children:/* @__PURE__ */r.jsx(ListSection,{variant:"tiles",inset:false,label:e,testID:n,children:t.map(e=>/* @__PURE__ */r.jsx(ListRow,{icon:({size:t})=>/* @__PURE__ */r.jsx(Icon,{name:e.icon,size:t,color:Yt("recIcon")}),title:e.title,subtitle:e.meta,trailing:e.pill?/* @__PURE__ */r.jsx(Pill2,{pill:e.pill}):void 0,chevron:false,accessibilityRole:"link",accessibilityLabel:[e.title,e.meta,e.pill?.label].filter(Boolean).join(", "),onPress:e.onPress},e.key))})})})}function Rows({rows:e,plan:n}){let i=Zt();/* @__PURE__ */
|
|
98
|
+
return r.jsx(t.View,{children:e.map((o,l)=>{let a;return n?a=i.v(l===0?"planRowsLiFirst":"planRowsLiNext"):e.length===1?a={}:l===0?a=i.v("rowsLiFirst"):l===e.length-1?a=i.v("rowsLiNext"):a={...i.v("rowsLiNext"),paddingBottom:Dt.rowsLiFirst.paddingBottom},/* @__PURE__ */r.jsxs(t.View,{style:[a,{flexDirection:"row",alignItems:"center",rowGap:0,columnGap:0}],children:[
|
|
99
99
|
/* @__PURE__ */r.jsxs(t.View,{style:{flex:1,minWidth:0},children:[
|
|
100
|
-
/* @__PURE__ */r.jsx(T,{k:"rowsK",children:o.k}),o.v?/* @__PURE__ */r.jsx(T,{k:"rowsV",children:o.v}):null,o.meta?/* @__PURE__ */r.jsx(T,{k:"rowsMeta",style:o.metaAlert?{color:
|
|
101
|
-
return r.jsx(t.View,{testID:"shop-legal",children:/* @__PURE__ */r.jsx(T,{k:"legal",children:e})})}function
|
|
102
|
-
return r.jsx(Press,{onPress:e.onPress,disabled:e.disabled===true,style:[t.v("btnInk"),{flexDirection:"row",alignItems:"center",justifyContent:"center"}],children:/* @__PURE__ */r.jsx(T,{k:"btnInk",bare:true,children:
|
|
100
|
+
/* @__PURE__ */r.jsx(T,{k:"rowsK",children:o.k}),o.v?/* @__PURE__ */r.jsx(T,{k:"rowsV",children:o.v}):null,o.meta?/* @__PURE__ */r.jsx(T,{k:"rowsMeta",style:o.metaAlert?{color:Yt("pillOverdue")}:null,children:o.meta}):null,o.alert?/* @__PURE__ */r.jsx(InlineError,{line:o.alert}):null]}),o.end?/* @__PURE__ */r.jsx(t.View,{style:{marginLeft:Dt.rowsLiFirst.columnGap},children:o.end}):null]},o.key)})})}function Legal({line:e}){/* @__PURE__ */
|
|
101
|
+
return r.jsx(t.View,{testID:"shop-legal",children:/* @__PURE__ */r.jsx(T,{k:"legal",children:e})})}function ul(e){return e.busy&&e.busyLabel?e.busyLabel:e.label}function InkButton({action:e}){let t=Zt();/* @__PURE__ */
|
|
102
|
+
return r.jsx(Press,{onPress:e.onPress,disabled:e.disabled===true,style:[t.v("btnInk"),{flexDirection:"row",alignItems:"center",justifyContent:"center"}],children:/* @__PURE__ */r.jsx(T,{k:"btnInk",bare:true,children:ul(e)})})}function OutlineButton({action:e,k:t,icon:n,iconKey:i}){let o=Zt();/* @__PURE__ */
|
|
103
103
|
return r.jsxs(Press,{onPress:e.onPress,disabled:e.disabled===true,style:[o.v(t),{flexDirection:"row",alignItems:"center",justifyContent:"center",alignSelf:t==="btnOutline"||t==="btnDanger"?"stretch":"flex-start"}],children:[n&&i?/* @__PURE__ */r.jsx(PartIcon,{name:n,k:i,inkKey:t}):null,
|
|
104
|
-
/* @__PURE__ */r.jsx(T,{k:t==="btnRow"?"btnRowLabel":t,bare:true,children:
|
|
105
|
-
return r.jsx(Press,{onPress:t,disabled:n===true,children:/* @__PURE__ */r.jsx(T,{k:"itemsActButton",bare:true,style:[
|
|
104
|
+
/* @__PURE__ */r.jsx(T,{k:t==="btnRow"?"btnRowLabel":t,bare:true,children:ul(e)})]})}function ActText({label:e,onPress:t,disabled:n}){/* @__PURE__ */
|
|
105
|
+
return r.jsx(Press,{onPress:t,disabled:n===true,children:/* @__PURE__ */r.jsx(T,{k:"itemsActButton",bare:true,style:[_t("itemsActButton"),{textAlign:"left"}],children:e})})}function TrayBar({action:e,fine:n,error:i}){let o=Zt();return!e&&!n&&!i?null:/* @__PURE__ */r.jsxs(t.View,{style:o.v("traybar"),testID:"shop-traybar",children:[
|
|
106
106
|
/* @__PURE__ */r.jsx(InlineError,{line:i??null}),e?/* @__PURE__ */r.jsx(InkButton,{action:e}):null,n?/* @__PURE__ */r.jsx(T,{k:"traybarFine",children:n}):null,
|
|
107
|
-
/* @__PURE__ */r.jsx(Decor,{k:"traybar"})]})}function Ghost({rows:e=3}){let n=
|
|
107
|
+
/* @__PURE__ */r.jsx(Decor,{k:"traybar"})]})}function Ghost({rows:e=3}){let n=Zt(),i=["100%","82%","64%"];/* @__PURE__ */
|
|
108
108
|
return r.jsx(t.View,{style:n.v("ghost"),accessibilityElementsHidden:true,importantForAccessibility:"no-hide-descendants",children:Array.from({length:e},(e,o)=>/* @__PURE__ */r.jsx(t.View,{style:[n.v("ghostBar"),{width:i[o%3]}]},o))})}function LoadFailed({copy:e,thing:t,retry:n}){/* @__PURE__ */
|
|
109
109
|
return r.jsxs(Card2,{children:[
|
|
110
110
|
/* @__PURE__ */r.jsx(T,{k:"cardLead",children:e.loadFailed(t)}),
|
|
111
|
-
/* @__PURE__ */r.jsx(OutlineButton,{k:"btnSm",action:{label:e.tryAgain,onPress:n}})]})}function InlineError({line:e}){return e?/* @__PURE__ */r.jsx(t.View,{accessibilityLiveRegion:"polite",accessibilityRole:"alert",children:/* @__PURE__ */r.jsx(T,{k:"noteAfterSum",style:{color:
|
|
111
|
+
/* @__PURE__ */r.jsx(OutlineButton,{k:"btnSm",action:{label:e.tryAgain,onPress:n}})]})}function InlineError({line:e}){return e?/* @__PURE__ */r.jsx(t.View,{accessibilityLiveRegion:"polite",accessibilityRole:"alert",children:/* @__PURE__ */r.jsx(T,{k:"noteAfterSum",style:{color:Yt("pillOverdue")},children:e})}):null}function ShopSwitch({on:e,label:n,disabled:i,onChange:o}){let l=Zt();/* @__PURE__ */
|
|
112
112
|
return r.jsxs(Press,{role:"switch",label:n,selected:e,disabled:i===true,onPress:()=>o(!e),style:l.v("switch"),children:[
|
|
113
113
|
/* @__PURE__ */r.jsx(t.View,{style:l.v(e?"switchTrack":"switchTrackOff")}),
|
|
114
|
-
/* @__PURE__ */r.jsx(t.View,{pointerEvents:"none",style:[l.v(e?"switchKnob":"switchKnobOff"),
|
|
114
|
+
/* @__PURE__ */r.jsx(t.View,{pointerEvents:"none",style:[l.v(e?"switchKnob":"switchKnobOff"),Jt(e?"switchKnob":"switchKnobOff")]})]})}function ConfirmSheet({open:e,title:n,body:i,confirm:o,keep:l,closeLabel:a,busyLabel:s,busy:d,error:c,onConfirm:u,onClose:p}){let h=Zt(),g=_o();/* @__PURE__ */
|
|
115
115
|
return r.jsx(t.Modal,{visible:e,transparent:true,animationType:"slide",onRequestClose:p,statusBarTranslucent:true,children:/* @__PURE__ */r.jsxs(t.View,{style:{flex:1,justifyContent:"flex-end"},children:[
|
|
116
|
-
/* @__PURE__ */r.jsx(t.Pressable,{style:[{position:"absolute",top:0,right:0,bottom:0,left:0},{backgroundColor:
|
|
117
|
-
/* @__PURE__ */r.jsxs(t.View,{style
|
|
116
|
+
/* @__PURE__ */r.jsx(t.Pressable,{style:[{position:"absolute",top:0,right:0,bottom:0,left:0},{backgroundColor:Dt.sheetBackdrop.backgroundColor}],onPress:p,accessibilityRole:"button",accessibilityLabel:a}),
|
|
117
|
+
/* @__PURE__ */r.jsxs(t.View,{style:$o(h.v("sheet"),g),accessibilityViewIsModal:true,testID:"shop-sheet",children:[
|
|
118
118
|
/* @__PURE__ */r.jsx(t.View,{style:[h.v("sheetGrab"),{alignItems:"center",justifyContent:"center"}],accessibilityElementsHidden:true,importantForAccessibility:"no-hide-descendants",children:/* @__PURE__ */r.jsx(t.View,{style:h.v("sheetGrabBar")})}),
|
|
119
119
|
/* @__PURE__ */r.jsxs(t.View,{style:[h.v("sheetHead"),{flexDirection:"row",alignItems:"center",justifyContent:"space-between"}],children:[
|
|
120
120
|
/* @__PURE__ */r.jsx(T,{k:"cardTitleInHead",role:"header",style:{flex:1,minWidth:0},children:n}),
|
|
@@ -123,124 +123,124 @@ return r.jsx(t.Modal,{visible:e,transparent:true,animationType:"slide",onRequest
|
|
|
123
123
|
/* @__PURE__ */r.jsx(InlineError,{line:c}),
|
|
124
124
|
/* @__PURE__ */r.jsxs(t.View,{style:h.v("sheetActions"),children:[
|
|
125
125
|
/* @__PURE__ */r.jsx(OutlineButton,{k:"btnDanger",action:{label:o,busyLabel:s,busy:d,disabled:d,onPress:u}}),
|
|
126
|
-
/* @__PURE__ */r.jsx(OutlineButton,{k:"btnOutline",action:{label:l,onPress:p}})]})]})]})]})})}var
|
|
126
|
+
/* @__PURE__ */r.jsx(OutlineButton,{k:"btnOutline",action:{label:l,onPress:p}})]})]})]})]})})}var pl=28;function Dot({state:e}){let n=Zt();return e==="done"?/* @__PURE__ */r.jsx(t.View,{style:[n.v("dotDone"),{alignItems:"center",justifyContent:"center"}],children:/* @__PURE__ */r.jsx(PartIcon,{name:"check",k:"dotDoneIcon",inkKey:"dotDone"})}):e==="now"?/* @__PURE__ */r.jsx(t.View,{style:[n.v("dotNow"),{alignItems:"center",justifyContent:"center"}],children:/* @__PURE__ */r.jsx(t.View,{style:n.v("dotNowCore")})}):/* @__PURE__ */r.jsx(t.View,{style:n.v("dotNext")})}function Tracker({copy:e,steps:n}){let i=Zt();/* @__PURE__ */
|
|
127
127
|
return r.jsx(t.View,{children:n.map((o,l)=>{let a=l===n.length-1,s=i.v(a?"trackerLiLast":"trackerLi"),d=o.state==="next"?"trackerTitleNext":"trackerTitle";/* @__PURE__ */
|
|
128
128
|
return r.jsxs(t.View,{style:[s,{flexDirection:"row",alignItems:"flex-start",rowGap:0,columnGap:0}],accessible:true,accessibilityLabel:[o.title,o.state==="now"?e.now:null,o.when,o.text].filter(Boolean).join(", "),children:[a?null:/* @__PURE__ */r.jsx(t.View,{style:i.v(o.state==="done"?"trackerLineDone":"trackerLine")}),
|
|
129
|
-
/* @__PURE__ */r.jsx(t.View,{style:{width:
|
|
129
|
+
/* @__PURE__ */r.jsx(t.View,{style:{width:pl,marginRight:s.columnGap},children:/* @__PURE__ */r.jsx(Dot,{state:o.state})}),
|
|
130
130
|
/* @__PURE__ */r.jsxs(t.View,{style:{flex:1,minWidth:0},children:[
|
|
131
131
|
/* @__PURE__ */r.jsxs(t.View,{style:[i.v(d),{flexDirection:"row",flexWrap:"wrap",alignItems:"center"}],children:[
|
|
132
|
-
/* @__PURE__ */r.jsx(T,{k:d,bare:true,children:o.title}),o.state==="now"?/* @__PURE__ */r.jsx(Pill2,{pill:{label:e.now,tone:"stable"}}):null]}),o.when?/* @__PURE__ */r.jsx(T,{k:"trackerWhen",children:o.when}):null,o.text?/* @__PURE__ */r.jsx(T,{k:"trackerText",children:o.text}):null]})]},o.key)})})}var $o=2e3;function el(t,r,n=true){let i=e.useRef({reread:r,enabled:n});i.current={reread:r,enabled:n},e.useEffect(()=>{let e=Number.NEGATIVE_INFINITY;return t(()=>{if(!i.current.enabled)return;let t=Date.now();t-e<$o||(e=t,i.current.reread())})},[t])}var tl=e=>{let r=t.AppState.currentState==="background",n=t.AppState.addEventListener("change",t=>{t==="background"?r=true:t==="active"&&r&&(r=false,e())});return()=>n.remove()};var rl=20;function nl(){let{client:t,copy:r}=de(),n=ce("v3-orders",()=>t.orders({limit:rl})),[i,o]=e.useState(null),[l,a]=e.useState(false),[s,d]=e.useState(null),c=n.value;e.useEffect(()=>o(null),[c]),el(tl,n.reread,i===null);let u=[...c?.orders??[],...i?.orders??[]],p=i?i.cursor:c?.nextCursor??null,h=u.filter(e=>!e.items).map(e=>e.orderId),g=ce(h.length>0?`v3-order-items:${h.join(",")}`:null,async()=>{let e=await Promise.all(h.map(e=>t.order(e)));return R(new Map(h.map((t,r)=>[t,e[r].ok?e[r].value.lines.map(e=>({title:e.title,quantity:e.quantity,rx:e.requiresRx,imageUrl:e.imageUrl??null})):[]])))}),f=e=>e.items?e.items.map(e=>({title:e.title,quantity:e.quantity,rx:false,imageUrl:e.imageUrl??null})):g.value?.get(e.orderId)??null,m=e.useRef(false),b=e.useCallback(()=>{!p||m.current||(m.current=true,a(true),d(null),t.orders({limit:rl,cursor:p}).then(e=>{m.current=false,a(false),e.ok?o(t=>({orders:[...t?.orders??[],...e.value.orders],cursor:e.value.nextCursor})):d(oe(r,e.error))}))},[t,r,p]);return{first:n,orders:u,named:f,hasMore:p!==null,loadMore:b,moreBusy:l,moreError:s}}function il(t,r){let{client:n,copy:i,v3:o,payments:l}=de(),a=ye(t);el(tl,a.reread);let s=be(),[d,c]=e.useState(()=>et(n,t));e.useEffect(()=>tt(n,t),[n,t]);let[u,p]=e.useState(false),h=we(e=>n.cancelOrder(t,{idempotencyKey:e.key("cancel"),reasonCode:"customer_request"})),g=we(async e=>{let r=e.key("pay");for(let i=0;i<3;i+=1){let i=await n.payOrder(t,{idempotencyKey:r});if(!i.ok)return W(i.error);if(i.value.outcome==="authorized")return R({kind:"confirmed",orderIds:[t]});if(!l||!i.value.payerAction)return R({kind:"needsPayerAction",orderIds:[t]});let o=await l.handleNextAction(i.value.payerAction,{orderId:t});if(!o.ok)return R(o.closed?{kind:"payerActionClosed",orderIds:[t]}:{kind:"payerActionFailed",orderIds:[t],message:o.message});r=e.next("pay")}return R({kind:"needsPayerAction",orderIds:[t]})}),f=a.phase==="ready"&&a.value?a.value:null,m=g.busy||h.busy,b=()=>{c(null),g.run().then(e=>{e&&(c(e.ok?Qe(i,e.value):oe(i,e.error)),a.refresh())})},y=()=>{h.run().then(e=>{if(!e)return;if(!e.ok){c(oe(i,e.error)),p(false),a.reread();return}p(false),h.reset();let t=e.value.outcome;c(t==="requested"?o.cancelRequested:t==="not_cancellable"?i.refusal.operation_not_supported??i.actionFailed:null),a.refresh()})},k=[],w=null,v,S=null,j=d;if(f){let e=f.subtotal??f.lines.reduce((e,t)=>e+t.unitPrice*t.quantity,0),t=f.discount??f.lines.reduce((e,t)=>e+t.discount,0),l=f.tax??f.lines.reduce((e,t)=>e+t.tax,0)+f.shippingTax,a=f.refunds.reduce((e,t)=>t.state==="succeeded"?e+t.amount:e,0);k=[{k:o.subtotal,v:M(e)},...t>0?[{k:o.discount,v:M(-t)}]:[],{k:i.shipping,v:f.shipping===0?i.free:M(f.shipping)},{k:i.tax,v:M(l)},{k:i.total,v:M(f.summary.total),total:true}],w=a>0?{k:o.refund,v:M(a)}:null,v=f.paymentMethodId&&jt(f)?(s.value??[]).find(e=>e.paymentMethodId===f.paymentMethodId):void 0;let c=f.lines.filter(e=>!e.requiresRx),u=f.lines.find(e=>e.requiresRx)??null;S=Ft(f.summary.status)?c.length>0?()=>{for(let e of c)x(n,{offerId:e.offerId,title:e.title,unitPrice:e.unitPrice,requiresRx:false,quantity:e.quantity,...e.petId?{petId:e.petId}:{},...e.imageUrl?{imageUrl:e.imageUrl}:{}});r({name:"cart"})}:u?()=>r({name:"product",offerId:u.offerId,...u.petId?{petId:u.petId}:{}}):null:null,(d===i.cardStepClosed||d===i.cardStepFailed)&&St(f)&&(j=null)}return{order:a,o:f,ref:f?.summary.referenceNumber??null,line:j,asking:u,setAsking:p,pay:g,cancel:h,busy:m,onPay:b,onCancel:y,sum:k,refundRow:w,paidCard:v,buyAgain:S}}function ol(e,t){let r=e.scaleCaps[t];return r>0?r:void 0}function Text3({tier:r,variant:n,...i}){let o=useEverfurTheme(),l=n===void 0?void 0:o.type.roles[n],a=ol(o.type,r??l?.tier??"content"),s=n===void 0?i:{...i,style:[{...textRole(o,n),color:o.color.text.primary,flexShrink:1},i.style]};return e.createElement(t.Text,a===void 0?s:{maxFontSizeMultiplier:a,...s})}var ll=e.forwardRef(function(r,n){return e.createElement(t.TextInput,{...r,...n===null?{}:{ref:n}})});var al=/* @__PURE__ */Object.freeze({shield:{strokes:[{width:1.8,cap:true,closed:true,points:[12,3,19,6,19,12,18.759,14.125,18.074,16,17,17.625,15.593,19,13.907,20.125,12,21,10.093,20.125,8.407,19,7,17.625,5.926,16,5.241,14.125,5,12,5,6]},{width:1.8,cap:true,closed:false,points:[9,12,11,14,15,10]}],boxes:[],triangles:[],seams:[]},arrow:{strokes:[{width:2,cap:true,closed:false,points:[4.5,12,19,12]},{width:2,cap:true,closed:false,points:[13.5,6.5,19,12,13.5,17.5]}],boxes:[],triangles:[],seams:[]},check:{strokes:[{width:2.4,cap:true,closed:false,points:[5,12.6,9.4,17,19,7.4]}],boxes:[],triangles:[],seams:[]},star:{strokes:[],boxes:[],triangles:[[12,16.9,6.8,19.6,7.8,13.8],[16.2,13.8,17.2,19.6,12,16.9],[7.8,13.8,3.5,9.7,9.4,8.8],[14.6,8.8,20.5,9.7,16.2,13.8],[9.4,8.8,12,3.5,14.6,8.8],[16.2,13.8,12,16.9,7.8,13.8],[14.6,8.8,16.2,13.8,7.8,13.8],[14.6,8.8,7.8,13.8,9.4,8.8]],seams:[[12,16.9,7.8,13.8,.245,.677],[12,16.9,16.2,13.8,.245,.677],[7.8,13.8,9.4,8.8,.69,.248],[14.6,8.8,16.2,13.8,.248,.243],[14.6,8.8,9.4,8.8,.68,.245],[16.2,13.8,7.8,13.8,.677,.68],[14.6,8.8,7.8,13.8,.68,.69]]},truck:{strokes:[{width:1.7,cap:false,closed:true,points:[2.8,6.5,14.2,6.5,14.2,16,2.8,16]},{width:1.7,cap:false,closed:false,points:[14.2,9.5,17.8,9.5,21.2,12.9,21.2,16,14.2,16]}],boxes:[{x:5,y:15.8,w:3.6,h:3.6,radius:1.8,width:1.7},{x:15.4,y:15.8,w:3.6,h:3.6,radius:1.8,width:1.7}],triangles:[],seams:[]},refresh:{strokes:[{width:1.7,cap:true,closed:false,points:[4,12,4.343,14.363,5.368,16.52,6.985,18.278,9.048,19.48,11.374,20.021,13.756,19.85,15.981,18.984,17.852,17.5,19.201,15.53,19.909,13.249,19.912,10.861,19.21,8.578,17.865,6.605,15.998,5.116,13.775,4.245,11.393,4.068,9.066,4.602,7,5.8]},{width:1.7,cap:true,closed:false,points:[4,4,4,8,8,8]}],boxes:[],triangles:[],seams:[]},card:{strokes:[{width:1.7,cap:true,closed:false,points:[3,9.5,21,9.5]},{width:1.7,cap:true,closed:false,points:[6.5,15,10.5,15]}],boxes:[{x:3,y:5.5,w:18,h:13,radius:2.2,width:1.7}],triangles:[],seams:[]},alert:{strokes:[{width:1.9,cap:true,closed:true,points:[12,3.5,21.5,20,2.5,20]},{width:1.9,cap:true,closed:false,points:[12,10,12,14.5]},{width:1.9,cap:true,closed:false,points:[12,17.2,12.01,17.2]}],boxes:[],triangles:[],seams:[]},x:{strokes:[{width:2,cap:true,closed:false,points:[6.5,6.5,17.5,17.5]},{width:2,cap:true,closed:false,points:[17.5,6.5,6.5,17.5]}],boxes:[],triangles:[],seams:[]},chat:{strokes:[{width:1.7,cap:false,closed:true,points:[5,5.2,19,5.2,19.8,5.414,20.386,6,20.6,6.8,20.6,15.4,20.386,16.2,19.8,16.786,19,17,10.3,17,5.5,20.6,5.5,17,5,17,4.2,16.786,3.614,16.2,3.4,15.4,3.4,6.8,3.614,6,4.2,5.414,5,5.2]}],boxes:[],triangles:[],seams:[]},repeat:{strokes:[{width:1.8,cap:true,closed:false,points:[4.5,11,4.824,8.824,5.766,6.837,7.244,5.208,9.131,4.077,11.264,3.543,13.461,3.65,15.533,4.391,17.3,5.7,19.5,8]},{width:1.8,cap:true,closed:false,points:[19.5,3.5,19.5,8,15,8]},{width:1.8,cap:true,closed:false,points:[19.5,13,19.176,15.176,18.234,17.163,16.756,18.792,14.869,19.923,12.736,20.457,10.539,20.35,8.467,19.609,6.7,18.3,4.5,16]},{width:1.8,cap:true,closed:false,points:[4.5,20.5,4.5,16,9,16]}],boxes:[],triangles:[],seams:[]},calendar:{strokes:[{width:1.8,cap:true,closed:false,points:[4,10,20,10]},{width:1.8,cap:true,closed:false,points:[8.5,3.5,8.5,7.5]},{width:1.8,cap:true,closed:false,points:[15.5,3.5,15.5,7.5]}],boxes:[{x:4,y:5.5,w:16,h:15,radius:2.5,width:1.8}],triangles:[],seams:[]},flame:{strokes:[],boxes:[],triangles:[[12.15,14.513,13.1,15.2,13.1,13.7],[11.5,13.3,12.15,14.513,13.1,13.7],[16.874,10.907,15.7,9.3,15.381,10.659],[14.7,16.7,16.838,18.516,17.693,16.84],[14.7,16.7,14.489,17.681,16.838,18.516],[18,14.9,14.507,15.633,17.693,16.84],[16.874,10.907,15.381,10.659,14.685,11.707],[17.693,12.759,16.874,10.907,14.685,11.707],[15.538,19.832,16.838,18.516,14.489,17.681],[14.685,11.707,13.959,14.633,17.693,12.759],[17.693,12.759,13.959,14.633,18,14.9],[13.891,20.692,13.055,19.006,12,21],[12,21,12,19.2,10.109,20.692],[8.462,19.832,10.109,20.692,10.659,18.863],[10.659,18.863,9.741,17.97,8.462,19.832],[6.307,16.84,9.602,15.677,6,14.9],[6.273,13.033,6,14.9,9.602,15.677],[9.602,15.677,10.113,14.812,6.273,13.033],[6.988,11.438,6.273,13.033,10.113,14.812],[13.525,7.088,12.856,5.017,12,3.5],[13.856,9.589,13.525,7.088,12,3.5],[13.7,12.4,13.856,9.589,12,3.5],[10.113,14.812,10.792,14.042,6.988,11.438],[14.7,16.7,17.693,16.84,14.507,15.633],[13.7,12.4,13.959,14.633,14.685,11.707],[14.507,15.633,18,14.9,13.959,14.633],[13.1,13.7,13.959,14.633,13.7,12.4],[11.5,13.3,13.1,13.7,13.7,12.4],[7.983,10.048,6.988,11.438,10.792,14.042],[10.792,14.042,11.5,13.3,7.983,10.048],[14.489,17.681,13.913,18.475,15.538,19.832],[13.891,20.692,15.538,19.832,13.913,18.475],[13.891,20.692,13.913,18.475,13.055,19.006],[12,19.2,12,21,13.055,19.006],[10.659,18.863,10.109,20.692,12,19.2],[7.162,18.516,8.462,19.832,9.741,17.97],[9.741,17.97,9.4,16.7,7.162,18.516],[6.307,16.84,7.162,18.516,9.4,16.7],[6.307,16.84,9.4,16.7,9.602,15.677],[9.1,8.8,7.983,10.048,11.5,13.3],[11.5,13.3,13.7,12.4,9.1,8.8],[10.054,7.77,9.1,8.8,13.7,12.4],[10.927,6.683,10.054,7.77,13.7,12.4],[11.613,5.481,10.927,6.683,13.7,12.4],[12.006,4.106,11.613,5.481,13.7,12.4],[12,2.5,12.006,4.106,13.7,12.4],[12,2.5,13.7,12.4,12,3.5]],seams:[[12.15,14.513,13.1,13.7,.121,.428],[11.5,13.3,13.1,13.7,.681,.356],[15.381,10.659,16.874,10.907,.033,.883],[14.7,16.7,16.838,18.516,.648,1.318],[14.7,16.7,17.693,16.84,.648,1.533],[14.489,17.681,16.838,18.516,.51,1.318],[14.507,15.633,18,14.9,.782,1.787],[14.507,15.633,17.693,16.84,.782,1.533],[14.685,11.707,16.874,10.907,.68,.883],[14.685,11.707,17.693,12.759,.61,.484],[14.489,17.681,15.538,19.832,.51,1.115],[13.959,14.633,14.685,11.707,1.333,.576],[13.959,14.633,17.693,12.759,.851,.484],[13.959,14.633,18,14.9,.851,1.787],[13.055,19.006,13.891,20.692,.36,.984],[12,21,13.055,19.006,.945,.395],[12,19.2,12,21,.394,.945],[10.109,20.692,12,19.2,.715,.394],[10.109,20.692,10.659,18.863,.715,.428],[10.659,18.863,8.462,19.832,.428,.809],[8.462,19.832,9.741,17.97,.809,.525],[6.307,16.84,9.602,15.677,1.65,.812],[6,14.9,9.602,15.677,.194,1.012],[6.273,13.033,9.602,15.677,2.068,1.012],[10.113,14.812,6.273,13.033,1.217,2.068],[10.113,14.812,6.988,11.438,1.217,2.2],[12,3.5,13.525,7.088,4.697,5.571],[12,3.5,13.856,9.589,4.697,3.017],[12,3.5,13.7,12.4,4.648,26.765],[10.792,14.042,6.988,11.438,1.339,2.2],[13.7,12.4,13.959,14.633,.819,1.333],[13.1,13.7,13.7,12.4,0,.819],[11.5,13.3,13.7,12.4,.681,.537],[10.792,14.042,7.983,10.048,1.339,2.328],[11.5,13.3,7.983,10.048,1.438,2.328],[13.913,18.475,15.538,19.832,.409,1.115],[13.891,20.692,13.913,18.475,.984,.409],[7.162,18.516,9.741,17.97,.977,.525],[7.162,18.516,9.4,16.7,.977,.677],[6.307,16.84,9.4,16.7,1.65,.677],[11.5,13.3,9.1,8.8,1.438,1.129],[13.7,12.4,9.1,8.8,2.046,1.129],[10.054,7.77,13.7,12.4,.079,2.285],[10.927,6.683,13.7,12.4,.237,3.126],[11.613,5.481,13.7,12.4,.475,5.451],[12.006,4.106,13.7,12.4,.961,15.892],[12,2.5,13.7,12.4,2.974,26.765]]},box:{strokes:[{width:1.7,cap:false,closed:true,points:[3.8,7.8,12,4,20.2,7.8,20.2,16.4,12,20,3.8,16.4]},{width:1.7,cap:false,closed:false,points:[3.8,7.8,12,11.6,20.2,7.8]},{width:1.7,cap:false,closed:false,points:[12,11.6,12,20]}],boxes:[],triangles:[],seams:[]},cart:{strokes:[{width:1.8,cap:true,closed:false,points:[2.8,4,5.4,4,7.7,14.6,8.203,15.401,9.1,15.7,17.3,15.7,18.197,15.401,18.7,14.6,20.4,7.6,6.3,7.6]}],boxes:[{x:8.3,y:18.3,w:2.6,h:2.6,radius:1.3,width:1.8},{x:15.8,y:18.3,w:2.6,h:2.6,radius:1.3,width:1.8}],triangles:[],seams:[]},minus:{strokes:[{width:2.2,cap:true,closed:false,points:[6,12,18,12]}],boxes:[],triangles:[],seams:[]},plus:{strokes:[{width:2.2,cap:true,closed:false,points:[12,6,12,18]},{width:2.2,cap:true,closed:false,points:[6,12,18,12]}],boxes:[],triangles:[],seams:[]},chev:{strokes:[{width:2,cap:true,closed:false,points:[9,5.5,15.5,12,9,18.5]}],boxes:[],triangles:[],seams:[]},pulse:{strokes:[{width:1.8,cap:true,closed:false,points:[3,12.5,6.8,12.5,9.2,6.9,13.4,17.5,15.8,12.5,21,12.5]}],boxes:[],triangles:[],seams:[]},file:{strokes:[{width:1.7,cap:true,closed:true,points:[7,3.5,14.2,3.5,18.5,7.8,18.5,20,18.324,20.424,17.9,20.6,7,20.6,6.576,20.424,6.4,20,6.4,4.1,6.576,3.676,7,3.5]},{width:1.7,cap:true,closed:false,points:[14,3.6,14,8,18.4,8]},{width:1.7,cap:true,closed:false,points:[9.4,12.4,14.6,12.4]},{width:1.7,cap:true,closed:false,points:[9.4,15.8,14.6,15.8]}],boxes:[],triangles:[],seams:[]},kit:{strokes:[{width:1.7,cap:false,closed:true,points:[4,7.6,12,3.6,20,7.6,20,16.4,12,20.4,4,16.4]},{width:1.7,cap:false,closed:false,points:[4,7.6,12,11.6,20,7.6]},{width:1.7,cap:false,closed:false,points:[12,11.6,12,20.4]}],boxes:[],triangles:[],seams:[]},dna:{strokes:[{width:1.7,cap:true,closed:false,points:[7,3.5,7.28,4.645,8.04,5.594,9.16,6.394,10.52,7.097,12,7.75,13.48,8.403,14.84,9.106,15.96,9.906,16.72,10.855,17,12,16.72,13.145,15.96,14.094,14.84,14.894,13.48,15.597,12,16.25,10.52,16.903,9.16,17.606,8.04,18.406,7.28,19.355,7,20.5]},{width:1.7,cap:true,closed:false,points:[17,3.5,16.72,4.645,15.96,5.594,14.84,6.394,13.48,7.097,12,7.75,10.52,8.403,9.16,9.106,8.04,9.906,7.28,10.855,7,12,7.28,13.145,8.04,14.094,9.16,14.894,10.52,15.597,12,16.25,13.48,16.903,14.84,17.606,15.96,18.406,16.72,19.355,17,20.5]},{width:1.7,cap:true,closed:false,points:[8.6,6.3,15.4,6.3]},{width:1.7,cap:true,closed:false,points:[8.6,17.7,15.4,17.7]},{width:1.7,cap:true,closed:false,points:[10.4,9.6,13.6,9.6]},{width:1.7,cap:true,closed:false,points:[10.4,14.4,13.6,14.4]}],boxes:[],triangles:[],seams:[]},heart:{strokes:[{width:1.8,cap:false,closed:true,points:[12,20.2,11.739,20.035,11.041,19.559,10.03,18.804,8.831,17.799,7.569,16.575,6.37,15.163,5.359,13.593,4.661,11.895,4.4,10.1,4.833,8.454,5.87,7.105,7.349,6.264,9.039,6.062,10.675,6.532,12,7.6,13.325,6.532,14.961,6.062,16.651,6.264,18.13,7.105,19.167,8.454,19.6,10.1,19.339,11.895,18.641,13.593,17.63,15.163,16.431,16.575,15.169,17.799,13.97,18.804,12.959,19.559,12.261,20.035,12,20.2]}],boxes:[],triangles:[],seams:[]},bottle:{strokes:[{width:1.7,cap:false,closed:true,points:[7.2,6.2,16.8,6.2,17.507,6.493,17.8,7.2,17.8,19.5,17.572,20.35,16.95,20.972,16.1,21.2,7.9,21.2,7.05,20.972,6.428,20.35,6.2,19.5,6.2,7.2,6.493,6.493,7.2,6.2]},{width:1.7,cap:false,closed:true,points:[9,11,15,11,15,16,9,16]}],boxes:[{x:8,y:2.8,w:8,h:3.4,radius:1,width:1.7}],triangles:[],seams:[]},harness:{strokes:[{width:1.5,cap:true,closed:false,points:[7.5,4.5,7.728,6.82,8.364,8.708,9.336,10.116,10.572,10.996,12,11.3,13.428,10.996,14.664,10.116,15.636,8.708,16.272,6.82,16.5,4.5]},{width:1.5,cap:true,closed:true,points:[5,12.6,19,12.6,19,17.2,18.692,18.35,17.85,19.192,16.7,19.5,7.3,19.5,6.15,19.192,5.308,18.35,5,17.2]},{width:1.5,cap:true,closed:false,points:[8.2,15.3,15.8,15.3]}],boxes:[{x:10.7,y:8.9,w:2.6,h:2.6,radius:1.3,width:1.5}],triangles:[],seams:[]},ramp:{strokes:[{width:1.5,cap:true,closed:false,points:[2.5,19.5,21.5,19.5]},{width:1.5,cap:true,closed:false,points:[3.5,19.5,3.5,16.5,8,16.5,8,13.5,12.5,13.5,12.5,10.5,17,10.5,17,7.5,20.5,7.5,20.5,19.5]},{width:1.5,cap:true,closed:false,points:[3.5,16.5,20.5,7.5],opacity:.35}],boxes:[],triangles:[],seams:[]}});var sl=24,dl=16,cl=.8,ul=e=>Math.round(e*dl);function pl(e,t,r,n,i,o){let l=e-r/2,a=t-n/2,s=Math.round(l),d=Math.round(a);return{position:"absolute",left:s,top:d,width:r,height:n,transform:[{translateX:l-s},{translateY:a-d},{rotate:`${Math.atan2(o,i)*180/Math.PI}deg`},{scale:1/dl}]}}function hl(e,t,r){for(let n of e.strokes){let e=n.width*t,i=n.points,o=i.length/2,l=n.closed?o:o-1;for(let a=0;a<l;a+=1){let l=(a+1)%o,s=(i[a*2]??0)*t,d=(i[a*2+1]??0)*t,c=(i[l*2]??0)*t-s,u=(i[l*2+1]??0)*t-d,p=Math.hypot(c,u);if(p===0&&!(o===2&&n.cap))continue;let h=p===0?1:c/p,g=p===0?0:u/p,f=n.closed||a>0||n.cap?e/2:0,m=n.closed||l!==o-1||n.cap?e/2:0,b=(p+m-f)/2;r.push({paint:"backgroundColor",style:{...pl(s+h*b,d+g*b,ul(p+f+m),ul(e),h,g),borderTopLeftRadius:f>0?ul(e)/2:0,borderBottomLeftRadius:f>0?ul(e)/2:0,borderTopRightRadius:m>0?ul(e)/2:0,borderBottomRightRadius:m>0?ul(e)/2:0,...n.opacity===void 0?{}:{opacity:n.opacity}}})}}}function gl(e,t,r){for(let n of e.boxes){let e=(n.w+n.width)*t,i=(n.h+n.width)*t;r.push({paint:"borderColor",style:{...pl((n.x-n.width/2)*t+e/2,(n.y-n.width/2)*t+i/2,ul(e),ul(i),1,0),borderWidth:ul(n.width*t),borderRadius:(n.radius+n.width/2)*t*dl,...n.opacity===void 0?{}:{opacity:n.opacity}}})}}function fl(e,t,r){for(let n of e.triangles){let e=[0,1,2].map(e=>[(n[e*2]??0)*t,(n[e*2+1]??0)*t]),i=0,o=-1;for(let t=0;t<3;t+=1){let r=e[t]??[0,0],n=e[(t+1)%3]??[0,0],l=Math.hypot(n[0]-r[0],n[1]-r[1]);l>o&&(o=l,i=t)}if(o<=0)continue;let l=e[i]??[0,0],a=e[(i+1)%3]??[0,0],s=e[(i+2)%3]??[0,0],d=(a[0]-l[0])/o,c=(a[1]-l[1])/o,u=(s[0]-l[0])*d+(s[1]-l[1])*c,p=(s[0]-l[0])*-c+(s[1]-l[1])*d,h=Math.abs(p),g=p<0,f=g?-h/2:h/2,m=ul(u),b=ul(o)-m,y=ul(h);r.push({paint:g?"borderBottomColor":"borderTopColor",style:{...pl(l[0]+d*(o/2)-c*f,l[1]+c*(o/2)+d*f,m+b,y,d,c),width:0,height:0,borderLeftWidth:m,borderRightWidth:b,borderLeftColor:"transparent",borderRightColor:"transparent",...g?{borderBottomWidth:y}:{borderTopWidth:y}}})}for(let n of e.seams){let e=(n[0]??0)*t,i=(n[1]??0)*t,o=(n[2]??0)*t-e,l=(n[3]??0)*t-i,a=Math.hypot(o,l),s=cl*(n[4]??0),d=cl*(n[5]??0),c=a-s-d;if(a===0||c<=0)continue;let u=s+c/2;r.push({paint:"backgroundColor",style:pl(e+o/a*u,i+l/a*u,ul(c),ul(cl),o/a,l/a)})}}var ml=/* @__PURE__ */new Map;function bl(e,t){let r=`${e}:${t}`,n=ml.get(r);if(n!==void 0)return n;let i=al[e],o=[],l=t/sl;return gl(i,l,o),hl(i,l,o),fl(i,l,o),ml.set(r,o),o}function FocusIcon({name:e,size:n=18,color:i}){let o=al[e]===void 0?[]:bl(e,n);/* @__PURE__ */
|
|
133
|
-
return r.jsx(t.View,{accessibilityElementsHidden:true,importantForAccessibility:"no-hide-descendants",testID:`health-plan-icon-${e}`,children:/* @__PURE__ */r.jsx(t.View,{style:{width:n,height:n},children:o.map((e,n)=>/* @__PURE__ */r.jsx(t.View,{style:[e.style,{[e.paint]:i}]},n))})})}var
|
|
132
|
+
/* @__PURE__ */r.jsx(T,{k:d,bare:true,children:o.title}),o.state==="now"?/* @__PURE__ */r.jsx(Pill2,{pill:{label:e.now,tone:"stable"}}):null]}),o.when?/* @__PURE__ */r.jsx(T,{k:"trackerWhen",children:o.when}):null,o.text?/* @__PURE__ */r.jsx(T,{k:"trackerText",children:o.text}):null]})]},o.key)})})}var hl=2e3;function gl(t,r,n=true){let i=e.useRef({reread:r,enabled:n});i.current={reread:r,enabled:n},e.useEffect(()=>{let e=Number.NEGATIVE_INFINITY;return t(()=>{if(!i.current.enabled)return;let t=Date.now();t-e<hl||(e=t,i.current.reread())})},[t])}var fl=e=>{let r=t.AppState.currentState==="background",n=t.AppState.addEventListener("change",t=>{t==="background"?r=true:t==="active"&&r&&(r=false,e())});return()=>n.remove()};var ml=20;function bl(){let{client:t,copy:r}=ue(),n=pe("v3-orders",()=>t.orders({limit:ml})),[i,o]=e.useState(null),[l,a]=e.useState(false),[s,d]=e.useState(null),c=n.value;e.useEffect(()=>o(null),[c]),gl(fl,n.reread,i===null);let u=[...c?.orders??[],...i?.orders??[]],p=i?i.cursor:c?.nextCursor??null,h=u.filter(e=>!e.items).map(e=>e.orderId),g=pe(h.length>0?`v3-order-items:${h.join(",")}`:null,async()=>{let e=await Promise.all(h.map(e=>t.order(e)));return F(new Map(h.map((t,r)=>[t,e[r].ok?e[r].value.lines.map(e=>({title:e.title,quantity:e.quantity,rx:e.requiresRx,imageUrl:e.imageUrl??null})):[]])))}),f=e=>e.items?e.items.map(e=>({title:e.title,quantity:e.quantity,rx:false,imageUrl:e.imageUrl??null})):g.value?.get(e.orderId)??null,m=e.useRef(false),b=e.useCallback(()=>{!p||m.current||(m.current=true,a(true),d(null),t.orders({limit:ml,cursor:p}).then(e=>{m.current=false,a(false),e.ok?o(t=>({orders:[...t?.orders??[],...e.value.orders],cursor:e.value.nextCursor})):d(ae(r,e.error))}))},[t,r,p]);return{first:n,orders:u,named:f,hasMore:p!==null,loadMore:b,moreBusy:l,moreError:s}}function yl(t,r){let{client:n,copy:i,v3:o,payments:l}=ue(),a=ke(t);gl(fl,a.reread);let s=xe(),[d,c]=e.useState(()=>rt(n,t));e.useEffect(()=>nt(n,t),[n,t]);let[u,p]=e.useState(false),h=Te(e=>n.cancelOrder(t,{idempotencyKey:e.key("cancel"),reasonCode:"customer_request"})),g=Te(async e=>{let r=e.key("pay");for(let i=0;i<3;i+=1){let i=await n.payOrder(t,{idempotencyKey:r});if(!i.ok)return V(i.error);if(i.value.outcome==="authorized")return F({kind:"confirmed",orderIds:[t]});if(!l||!i.value.payerAction)return F({kind:"needsPayerAction",orderIds:[t]});let o=await l.handleNextAction(i.value.payerAction,{orderId:t});if(!o.ok)return F(o.closed?{kind:"payerActionClosed",orderIds:[t]}:{kind:"payerActionFailed",orderIds:[t],message:o.message});r=e.next("pay")}return F({kind:"needsPayerAction",orderIds:[t]})}),f=a.phase==="ready"&&a.value?a.value:null,m=g.busy||h.busy,b=()=>{c(null),g.run().then(e=>{e&&(c(e.ok?$e(i,e.value):ae(i,e.error)),a.refresh())})},y=()=>{h.run().then(e=>{if(!e)return;if(!e.ok){c(ae(i,e.error)),p(false),a.reread();return}p(false),h.reset();let t=e.value.outcome;c(t==="requested"?o.cancelRequested:t==="not_cancellable"?i.refusal.operation_not_supported??i.actionFailed:null),a.refresh()})},x=[],k=null,v,S=null,j=d;if(f){let e=f.subtotal??f.lines.reduce((e,t)=>e+t.unitPrice*t.quantity,0),t=f.discount??f.lines.reduce((e,t)=>e+t.discount,0),l=f.tax??f.lines.reduce((e,t)=>e+t.tax,0)+f.shippingTax,a=f.refunds.reduce((e,t)=>t.state==="succeeded"?e+t.amount:e,0);x=[{k:o.subtotal,v:Y(e)},...t>0?[{k:o.discount,v:Y(-t)}]:[],{k:i.shipping,v:f.shipping===0?i.free:Y(f.shipping)},{k:i.tax,v:Y(l)},{k:i.total,v:Y(f.summary.total),total:true}],k=a>0?{k:o.refund,v:Y(a)}:null,v=f.paymentMethodId&&It(f)?(s.value??[]).find(e=>e.paymentMethodId===f.paymentMethodId):void 0;let c=f.lines.filter(e=>!e.requiresRx),u=f.lines.find(e=>e.requiresRx)??null;S=Ht(f.summary.status)?c.length>0?()=>{for(let e of c)w(n,{offerId:e.offerId,title:e.title,unitPrice:e.unitPrice,requiresRx:false,quantity:e.quantity,...e.petId?{petId:e.petId}:{},...e.imageUrl?{imageUrl:e.imageUrl}:{}});r({name:"cart"})}:u?()=>r({name:"product",offerId:u.offerId,...u.petId?{petId:u.petId}:{}}):null:null,(d===i.cardStepClosed||d===i.cardStepFailed)&&Ct(f)&&(j=null)}return{order:a,o:f,ref:f?.summary.referenceNumber??null,line:j,asking:u,setAsking:p,pay:g,cancel:h,busy:m,onPay:b,onCancel:y,sum:x,refundRow:k,paidCard:v,buyAgain:S}}function xl(e,t){let r=e.scaleCaps[t];return r>0?r:void 0}function Text3({tier:r,variant:n,...i}){let o=useEverfurTheme(),l=n===void 0?void 0:o.type.roles[n],a=xl(o.type,r??l?.tier??"content"),s=n===void 0?i:{...i,style:[{...textRole(o,n),color:o.color.text.primary,flexShrink:1},i.style]};return e.createElement(t.Text,a===void 0?s:{maxFontSizeMultiplier:a,...s})}var kl=e.forwardRef(function(r,n){return e.createElement(t.TextInput,{...r,...n===null?{}:{ref:n}})});var wl=/* @__PURE__ */Object.freeze({shield:{strokes:[{width:1.8,cap:true,closed:true,points:[12,3,19,6,19,12,18.759,14.125,18.074,16,17,17.625,15.593,19,13.907,20.125,12,21,10.093,20.125,8.407,19,7,17.625,5.926,16,5.241,14.125,5,12,5,6]},{width:1.8,cap:true,closed:false,points:[9,12,11,14,15,10]}],boxes:[],triangles:[],seams:[]},arrow:{strokes:[{width:2,cap:true,closed:false,points:[4.5,12,19,12]},{width:2,cap:true,closed:false,points:[13.5,6.5,19,12,13.5,17.5]}],boxes:[],triangles:[],seams:[]},check:{strokes:[{width:2.4,cap:true,closed:false,points:[5,12.6,9.4,17,19,7.4]}],boxes:[],triangles:[],seams:[]},star:{strokes:[],boxes:[],triangles:[[12,16.9,6.8,19.6,7.8,13.8],[16.2,13.8,17.2,19.6,12,16.9],[7.8,13.8,3.5,9.7,9.4,8.8],[14.6,8.8,20.5,9.7,16.2,13.8],[9.4,8.8,12,3.5,14.6,8.8],[16.2,13.8,12,16.9,7.8,13.8],[14.6,8.8,16.2,13.8,7.8,13.8],[14.6,8.8,7.8,13.8,9.4,8.8]],seams:[[12,16.9,7.8,13.8,.245,.677],[12,16.9,16.2,13.8,.245,.677],[7.8,13.8,9.4,8.8,.69,.248],[14.6,8.8,16.2,13.8,.248,.243],[14.6,8.8,9.4,8.8,.68,.245],[16.2,13.8,7.8,13.8,.677,.68],[14.6,8.8,7.8,13.8,.68,.69]]},truck:{strokes:[{width:1.7,cap:false,closed:true,points:[2.8,6.5,14.2,6.5,14.2,16,2.8,16]},{width:1.7,cap:false,closed:false,points:[14.2,9.5,17.8,9.5,21.2,12.9,21.2,16,14.2,16]}],boxes:[{x:5,y:15.8,w:3.6,h:3.6,radius:1.8,width:1.7},{x:15.4,y:15.8,w:3.6,h:3.6,radius:1.8,width:1.7}],triangles:[],seams:[]},refresh:{strokes:[{width:1.7,cap:true,closed:false,points:[4,12,4.343,14.363,5.368,16.52,6.985,18.278,9.048,19.48,11.374,20.021,13.756,19.85,15.981,18.984,17.852,17.5,19.201,15.53,19.909,13.249,19.912,10.861,19.21,8.578,17.865,6.605,15.998,5.116,13.775,4.245,11.393,4.068,9.066,4.602,7,5.8]},{width:1.7,cap:true,closed:false,points:[4,4,4,8,8,8]}],boxes:[],triangles:[],seams:[]},card:{strokes:[{width:1.7,cap:true,closed:false,points:[3,9.5,21,9.5]},{width:1.7,cap:true,closed:false,points:[6.5,15,10.5,15]}],boxes:[{x:3,y:5.5,w:18,h:13,radius:2.2,width:1.7}],triangles:[],seams:[]},alert:{strokes:[{width:1.9,cap:true,closed:true,points:[12,3.5,21.5,20,2.5,20]},{width:1.9,cap:true,closed:false,points:[12,10,12,14.5]},{width:1.9,cap:true,closed:false,points:[12,17.2,12.01,17.2]}],boxes:[],triangles:[],seams:[]},x:{strokes:[{width:2,cap:true,closed:false,points:[6.5,6.5,17.5,17.5]},{width:2,cap:true,closed:false,points:[17.5,6.5,6.5,17.5]}],boxes:[],triangles:[],seams:[]},chat:{strokes:[{width:1.7,cap:false,closed:true,points:[5,5.2,19,5.2,19.8,5.414,20.386,6,20.6,6.8,20.6,15.4,20.386,16.2,19.8,16.786,19,17,10.3,17,5.5,20.6,5.5,17,5,17,4.2,16.786,3.614,16.2,3.4,15.4,3.4,6.8,3.614,6,4.2,5.414,5,5.2]}],boxes:[],triangles:[],seams:[]},repeat:{strokes:[{width:1.8,cap:true,closed:false,points:[4.5,11,4.824,8.824,5.766,6.837,7.244,5.208,9.131,4.077,11.264,3.543,13.461,3.65,15.533,4.391,17.3,5.7,19.5,8]},{width:1.8,cap:true,closed:false,points:[19.5,3.5,19.5,8,15,8]},{width:1.8,cap:true,closed:false,points:[19.5,13,19.176,15.176,18.234,17.163,16.756,18.792,14.869,19.923,12.736,20.457,10.539,20.35,8.467,19.609,6.7,18.3,4.5,16]},{width:1.8,cap:true,closed:false,points:[4.5,20.5,4.5,16,9,16]}],boxes:[],triangles:[],seams:[]},calendar:{strokes:[{width:1.8,cap:true,closed:false,points:[4,10,20,10]},{width:1.8,cap:true,closed:false,points:[8.5,3.5,8.5,7.5]},{width:1.8,cap:true,closed:false,points:[15.5,3.5,15.5,7.5]}],boxes:[{x:4,y:5.5,w:16,h:15,radius:2.5,width:1.8}],triangles:[],seams:[]},flame:{strokes:[],boxes:[],triangles:[[12.15,14.513,13.1,15.2,13.1,13.7],[11.5,13.3,12.15,14.513,13.1,13.7],[16.874,10.907,15.7,9.3,15.381,10.659],[14.7,16.7,16.838,18.516,17.693,16.84],[14.7,16.7,14.489,17.681,16.838,18.516],[18,14.9,14.507,15.633,17.693,16.84],[16.874,10.907,15.381,10.659,14.685,11.707],[17.693,12.759,16.874,10.907,14.685,11.707],[15.538,19.832,16.838,18.516,14.489,17.681],[14.685,11.707,13.959,14.633,17.693,12.759],[17.693,12.759,13.959,14.633,18,14.9],[13.891,20.692,13.055,19.006,12,21],[12,21,12,19.2,10.109,20.692],[8.462,19.832,10.109,20.692,10.659,18.863],[10.659,18.863,9.741,17.97,8.462,19.832],[6.307,16.84,9.602,15.677,6,14.9],[6.273,13.033,6,14.9,9.602,15.677],[9.602,15.677,10.113,14.812,6.273,13.033],[6.988,11.438,6.273,13.033,10.113,14.812],[13.525,7.088,12.856,5.017,12,3.5],[13.856,9.589,13.525,7.088,12,3.5],[13.7,12.4,13.856,9.589,12,3.5],[10.113,14.812,10.792,14.042,6.988,11.438],[14.7,16.7,17.693,16.84,14.507,15.633],[13.7,12.4,13.959,14.633,14.685,11.707],[14.507,15.633,18,14.9,13.959,14.633],[13.1,13.7,13.959,14.633,13.7,12.4],[11.5,13.3,13.1,13.7,13.7,12.4],[7.983,10.048,6.988,11.438,10.792,14.042],[10.792,14.042,11.5,13.3,7.983,10.048],[14.489,17.681,13.913,18.475,15.538,19.832],[13.891,20.692,15.538,19.832,13.913,18.475],[13.891,20.692,13.913,18.475,13.055,19.006],[12,19.2,12,21,13.055,19.006],[10.659,18.863,10.109,20.692,12,19.2],[7.162,18.516,8.462,19.832,9.741,17.97],[9.741,17.97,9.4,16.7,7.162,18.516],[6.307,16.84,7.162,18.516,9.4,16.7],[6.307,16.84,9.4,16.7,9.602,15.677],[9.1,8.8,7.983,10.048,11.5,13.3],[11.5,13.3,13.7,12.4,9.1,8.8],[10.054,7.77,9.1,8.8,13.7,12.4],[10.927,6.683,10.054,7.77,13.7,12.4],[11.613,5.481,10.927,6.683,13.7,12.4],[12.006,4.106,11.613,5.481,13.7,12.4],[12,2.5,12.006,4.106,13.7,12.4],[12,2.5,13.7,12.4,12,3.5]],seams:[[12.15,14.513,13.1,13.7,.121,.428],[11.5,13.3,13.1,13.7,.681,.356],[15.381,10.659,16.874,10.907,.033,.883],[14.7,16.7,16.838,18.516,.648,1.318],[14.7,16.7,17.693,16.84,.648,1.533],[14.489,17.681,16.838,18.516,.51,1.318],[14.507,15.633,18,14.9,.782,1.787],[14.507,15.633,17.693,16.84,.782,1.533],[14.685,11.707,16.874,10.907,.68,.883],[14.685,11.707,17.693,12.759,.61,.484],[14.489,17.681,15.538,19.832,.51,1.115],[13.959,14.633,14.685,11.707,1.333,.576],[13.959,14.633,17.693,12.759,.851,.484],[13.959,14.633,18,14.9,.851,1.787],[13.055,19.006,13.891,20.692,.36,.984],[12,21,13.055,19.006,.945,.395],[12,19.2,12,21,.394,.945],[10.109,20.692,12,19.2,.715,.394],[10.109,20.692,10.659,18.863,.715,.428],[10.659,18.863,8.462,19.832,.428,.809],[8.462,19.832,9.741,17.97,.809,.525],[6.307,16.84,9.602,15.677,1.65,.812],[6,14.9,9.602,15.677,.194,1.012],[6.273,13.033,9.602,15.677,2.068,1.012],[10.113,14.812,6.273,13.033,1.217,2.068],[10.113,14.812,6.988,11.438,1.217,2.2],[12,3.5,13.525,7.088,4.697,5.571],[12,3.5,13.856,9.589,4.697,3.017],[12,3.5,13.7,12.4,4.648,26.765],[10.792,14.042,6.988,11.438,1.339,2.2],[13.7,12.4,13.959,14.633,.819,1.333],[13.1,13.7,13.7,12.4,0,.819],[11.5,13.3,13.7,12.4,.681,.537],[10.792,14.042,7.983,10.048,1.339,2.328],[11.5,13.3,7.983,10.048,1.438,2.328],[13.913,18.475,15.538,19.832,.409,1.115],[13.891,20.692,13.913,18.475,.984,.409],[7.162,18.516,9.741,17.97,.977,.525],[7.162,18.516,9.4,16.7,.977,.677],[6.307,16.84,9.4,16.7,1.65,.677],[11.5,13.3,9.1,8.8,1.438,1.129],[13.7,12.4,9.1,8.8,2.046,1.129],[10.054,7.77,13.7,12.4,.079,2.285],[10.927,6.683,13.7,12.4,.237,3.126],[11.613,5.481,13.7,12.4,.475,5.451],[12.006,4.106,13.7,12.4,.961,15.892],[12,2.5,13.7,12.4,2.974,26.765]]},box:{strokes:[{width:1.7,cap:false,closed:true,points:[3.8,7.8,12,4,20.2,7.8,20.2,16.4,12,20,3.8,16.4]},{width:1.7,cap:false,closed:false,points:[3.8,7.8,12,11.6,20.2,7.8]},{width:1.7,cap:false,closed:false,points:[12,11.6,12,20]}],boxes:[],triangles:[],seams:[]},cart:{strokes:[{width:1.8,cap:true,closed:false,points:[2.8,4,5.4,4,7.7,14.6,8.203,15.401,9.1,15.7,17.3,15.7,18.197,15.401,18.7,14.6,20.4,7.6,6.3,7.6]}],boxes:[{x:8.3,y:18.3,w:2.6,h:2.6,radius:1.3,width:1.8},{x:15.8,y:18.3,w:2.6,h:2.6,radius:1.3,width:1.8}],triangles:[],seams:[]},minus:{strokes:[{width:2.2,cap:true,closed:false,points:[6,12,18,12]}],boxes:[],triangles:[],seams:[]},plus:{strokes:[{width:2.2,cap:true,closed:false,points:[12,6,12,18]},{width:2.2,cap:true,closed:false,points:[6,12,18,12]}],boxes:[],triangles:[],seams:[]},chev:{strokes:[{width:2,cap:true,closed:false,points:[9,5.5,15.5,12,9,18.5]}],boxes:[],triangles:[],seams:[]},pulse:{strokes:[{width:1.8,cap:true,closed:false,points:[3,12.5,6.8,12.5,9.2,6.9,13.4,17.5,15.8,12.5,21,12.5]}],boxes:[],triangles:[],seams:[]},file:{strokes:[{width:1.7,cap:true,closed:true,points:[7,3.5,14.2,3.5,18.5,7.8,18.5,20,18.324,20.424,17.9,20.6,7,20.6,6.576,20.424,6.4,20,6.4,4.1,6.576,3.676,7,3.5]},{width:1.7,cap:true,closed:false,points:[14,3.6,14,8,18.4,8]},{width:1.7,cap:true,closed:false,points:[9.4,12.4,14.6,12.4]},{width:1.7,cap:true,closed:false,points:[9.4,15.8,14.6,15.8]}],boxes:[],triangles:[],seams:[]},kit:{strokes:[{width:1.7,cap:false,closed:true,points:[4,7.6,12,3.6,20,7.6,20,16.4,12,20.4,4,16.4]},{width:1.7,cap:false,closed:false,points:[4,7.6,12,11.6,20,7.6]},{width:1.7,cap:false,closed:false,points:[12,11.6,12,20.4]}],boxes:[],triangles:[],seams:[]},dna:{strokes:[{width:1.7,cap:true,closed:false,points:[7,3.5,7.28,4.645,8.04,5.594,9.16,6.394,10.52,7.097,12,7.75,13.48,8.403,14.84,9.106,15.96,9.906,16.72,10.855,17,12,16.72,13.145,15.96,14.094,14.84,14.894,13.48,15.597,12,16.25,10.52,16.903,9.16,17.606,8.04,18.406,7.28,19.355,7,20.5]},{width:1.7,cap:true,closed:false,points:[17,3.5,16.72,4.645,15.96,5.594,14.84,6.394,13.48,7.097,12,7.75,10.52,8.403,9.16,9.106,8.04,9.906,7.28,10.855,7,12,7.28,13.145,8.04,14.094,9.16,14.894,10.52,15.597,12,16.25,13.48,16.903,14.84,17.606,15.96,18.406,16.72,19.355,17,20.5]},{width:1.7,cap:true,closed:false,points:[8.6,6.3,15.4,6.3]},{width:1.7,cap:true,closed:false,points:[8.6,17.7,15.4,17.7]},{width:1.7,cap:true,closed:false,points:[10.4,9.6,13.6,9.6]},{width:1.7,cap:true,closed:false,points:[10.4,14.4,13.6,14.4]}],boxes:[],triangles:[],seams:[]},heart:{strokes:[{width:1.8,cap:false,closed:true,points:[12,20.2,11.739,20.035,11.041,19.559,10.03,18.804,8.831,17.799,7.569,16.575,6.37,15.163,5.359,13.593,4.661,11.895,4.4,10.1,4.833,8.454,5.87,7.105,7.349,6.264,9.039,6.062,10.675,6.532,12,7.6,13.325,6.532,14.961,6.062,16.651,6.264,18.13,7.105,19.167,8.454,19.6,10.1,19.339,11.895,18.641,13.593,17.63,15.163,16.431,16.575,15.169,17.799,13.97,18.804,12.959,19.559,12.261,20.035,12,20.2]}],boxes:[],triangles:[],seams:[]},bottle:{strokes:[{width:1.7,cap:false,closed:true,points:[7.2,6.2,16.8,6.2,17.507,6.493,17.8,7.2,17.8,19.5,17.572,20.35,16.95,20.972,16.1,21.2,7.9,21.2,7.05,20.972,6.428,20.35,6.2,19.5,6.2,7.2,6.493,6.493,7.2,6.2]},{width:1.7,cap:false,closed:true,points:[9,11,15,11,15,16,9,16]}],boxes:[{x:8,y:2.8,w:8,h:3.4,radius:1,width:1.7}],triangles:[],seams:[]},harness:{strokes:[{width:1.5,cap:true,closed:false,points:[7.5,4.5,7.728,6.82,8.364,8.708,9.336,10.116,10.572,10.996,12,11.3,13.428,10.996,14.664,10.116,15.636,8.708,16.272,6.82,16.5,4.5]},{width:1.5,cap:true,closed:true,points:[5,12.6,19,12.6,19,17.2,18.692,18.35,17.85,19.192,16.7,19.5,7.3,19.5,6.15,19.192,5.308,18.35,5,17.2]},{width:1.5,cap:true,closed:false,points:[8.2,15.3,15.8,15.3]}],boxes:[{x:10.7,y:8.9,w:2.6,h:2.6,radius:1.3,width:1.5}],triangles:[],seams:[]},ramp:{strokes:[{width:1.5,cap:true,closed:false,points:[2.5,19.5,21.5,19.5]},{width:1.5,cap:true,closed:false,points:[3.5,19.5,3.5,16.5,8,16.5,8,13.5,12.5,13.5,12.5,10.5,17,10.5,17,7.5,20.5,7.5,20.5,19.5]},{width:1.5,cap:true,closed:false,points:[3.5,16.5,20.5,7.5],opacity:.35}],boxes:[],triangles:[],seams:[]}});var vl=24,Tl=16,Sl=.8,jl=e=>Math.round(e*Tl);function Cl(e,t,r,n,i,o){let l=e-r/2,a=t-n/2,s=Math.round(l),d=Math.round(a);return{position:"absolute",left:s,top:d,width:r,height:n,transform:[{translateX:l-s},{translateY:a-d},{rotate:`${Math.atan2(o,i)*180/Math.PI}deg`},{scale:1/Tl}]}}function Il(e,t,r){for(let n of e.strokes){let e=n.width*t,i=n.points,o=i.length/2,l=n.closed?o:o-1;for(let a=0;a<l;a+=1){let l=(a+1)%o,s=(i[a*2]??0)*t,d=(i[a*2+1]??0)*t,c=(i[l*2]??0)*t-s,u=(i[l*2+1]??0)*t-d,p=Math.hypot(c,u);if(p===0&&!(o===2&&n.cap))continue;let h=p===0?1:c/p,g=p===0?0:u/p,f=n.closed||a>0||n.cap?e/2:0,m=n.closed||l!==o-1||n.cap?e/2:0,b=(p+m-f)/2;r.push({paint:"backgroundColor",style:{...Cl(s+h*b,d+g*b,jl(p+f+m),jl(e),h,g),borderTopLeftRadius:f>0?jl(e)/2:0,borderBottomLeftRadius:f>0?jl(e)/2:0,borderTopRightRadius:m>0?jl(e)/2:0,borderBottomRightRadius:m>0?jl(e)/2:0,...n.opacity===void 0?{}:{opacity:n.opacity}}})}}}function Ll(e,t,r){for(let n of e.boxes){let e=(n.w+n.width)*t,i=(n.h+n.width)*t;r.push({paint:"borderColor",style:{...Cl((n.x-n.width/2)*t+e/2,(n.y-n.width/2)*t+i/2,jl(e),jl(i),1,0),borderWidth:jl(n.width*t),borderRadius:(n.radius+n.width/2)*t*Tl,...n.opacity===void 0?{}:{opacity:n.opacity}}})}}function zl(e,t,r){for(let n of e.triangles){let e=[0,1,2].map(e=>[(n[e*2]??0)*t,(n[e*2+1]??0)*t]),i=0,o=-1;for(let t=0;t<3;t+=1){let r=e[t]??[0,0],n=e[(t+1)%3]??[0,0],l=Math.hypot(n[0]-r[0],n[1]-r[1]);l>o&&(o=l,i=t)}if(o<=0)continue;let l=e[i]??[0,0],a=e[(i+1)%3]??[0,0],s=e[(i+2)%3]??[0,0],d=(a[0]-l[0])/o,c=(a[1]-l[1])/o,u=(s[0]-l[0])*d+(s[1]-l[1])*c,p=(s[0]-l[0])*-c+(s[1]-l[1])*d,h=Math.abs(p),g=p<0,f=g?-h/2:h/2,m=jl(u),b=jl(o)-m,y=jl(h);r.push({paint:g?"borderBottomColor":"borderTopColor",style:{...Cl(l[0]+d*(o/2)-c*f,l[1]+c*(o/2)+d*f,m+b,y,d,c),width:0,height:0,borderLeftWidth:m,borderRightWidth:b,borderLeftColor:"transparent",borderRightColor:"transparent",...g?{borderBottomWidth:y}:{borderTopWidth:y}}})}for(let n of e.seams){let e=(n[0]??0)*t,i=(n[1]??0)*t,o=(n[2]??0)*t-e,l=(n[3]??0)*t-i,a=Math.hypot(o,l),s=Sl*(n[4]??0),d=Sl*(n[5]??0),c=a-s-d;if(a===0||c<=0)continue;let u=s+c/2;r.push({paint:"backgroundColor",style:Cl(e+o/a*u,i+l/a*u,jl(c),jl(Sl),o/a,l/a)})}}var Al=/* @__PURE__ */new Map;function Rl(e,t){let r=`${e}:${t}`,n=Al.get(r);if(n!==void 0)return n;let i=wl[e],o=[],l=t/vl;return Ll(i,l,o),Il(i,l,o),zl(i,l,o),Al.set(r,o),o}function FocusIcon({name:e,size:n=18,color:i}){let o=wl[e]===void 0?[]:Rl(e,n);/* @__PURE__ */
|
|
133
|
+
return r.jsx(t.View,{accessibilityElementsHidden:true,importantForAccessibility:"no-hide-descendants",testID:`health-plan-icon-${e}`,children:/* @__PURE__ */r.jsx(t.View,{style:{width:n,height:n},children:o.map((e,n)=>/* @__PURE__ */r.jsx(t.View,{style:[e.style,{[e.paint]:i}]},n))})})}var Wl={pointerEvents:"none",accessibilityElementsHidden:true,importantForAccessibility:"no-hide-descendants"};function ShopV3Icon({name:e,size:n,color:i}){let o=Math.max(1.5,Math.round(n*1.8/24*2)/2),l=e=>Math.round(n*e);switch(e){case"check":case"plus":case"minus":case"cart":case"box":/* @__PURE__ */
|
|
134
134
|
return r.jsx(FocusIcon,{name:e,size:n,color:i});case"close":/* @__PURE__ */
|
|
135
135
|
return r.jsx(FocusIcon,{name:"x",size:n,color:i});case"chev":/* @__PURE__ */
|
|
136
136
|
return r.jsx(FocusIcon,{name:"chev",size:n,color:i});case"rx":/* @__PURE__ */
|
|
137
137
|
return r.jsx(Icon,{name:"pill",size:n,color:i});case"supplement":/* @__PURE__ */
|
|
138
138
|
return r.jsx(Icon,{name:"leaf",size:n,color:i});case"truck":/* @__PURE__ */
|
|
139
|
-
return r.jsxs(t.View,{style:{width:n,height:n},...
|
|
139
|
+
return r.jsxs(t.View,{style:{width:n,height:n},...Wl,children:[
|
|
140
140
|
/* @__PURE__ */r.jsx(t.View,{style:{position:"absolute",left:l(.06),top:l(.26),width:l(.56),height:l(.42),borderWidth:o,borderColor:i,borderRadius:l(.04)}}),
|
|
141
141
|
/* @__PURE__ */r.jsx(t.View,{style:{position:"absolute",left:l(.6),top:l(.4),width:l(.32),height:l(.28),borderWidth:o,borderColor:i,borderTopRightRadius:l(.12),borderRadius:l(.04)}}),
|
|
142
142
|
/* @__PURE__ */r.jsx(t.View,{style:{position:"absolute",left:l(.16),top:l(.66),width:l(.18),height:l(.18),borderWidth:o,borderColor:i,borderRadius:n,backgroundColor:"transparent"}}),
|
|
143
143
|
/* @__PURE__ */r.jsx(t.View,{style:{position:"absolute",left:l(.64),top:l(.66),width:l(.18),height:l(.18),borderWidth:o,borderColor:i,borderRadius:n}})]});case"card":/* @__PURE__ */
|
|
144
|
-
return r.jsxs(t.View,{style:{width:n,height:n},...
|
|
144
|
+
return r.jsxs(t.View,{style:{width:n,height:n},...Wl,children:[
|
|
145
145
|
/* @__PURE__ */r.jsx(t.View,{style:{position:"absolute",left:l(.1),top:l(.22),width:l(.8),height:l(.56),borderWidth:o,borderColor:i,borderRadius:l(.08)}}),
|
|
146
146
|
/* @__PURE__ */r.jsx(t.View,{style:{position:"absolute",left:l(.1),top:l(.4),width:l(.8),height:o,backgroundColor:i}})]});case"calendar":/* @__PURE__ */
|
|
147
|
-
return r.jsxs(t.View,{style:{width:n,height:n},...
|
|
147
|
+
return r.jsxs(t.View,{style:{width:n,height:n},...Wl,children:[
|
|
148
148
|
/* @__PURE__ */r.jsx(t.View,{style:{position:"absolute",left:l(.14),top:l(.2),width:l(.72),height:l(.66),borderWidth:o,borderColor:i,borderRadius:l(.08)}}),
|
|
149
149
|
/* @__PURE__ */r.jsx(t.View,{style:{position:"absolute",left:l(.14),top:l(.4),width:l(.72),height:o,backgroundColor:i}}),
|
|
150
150
|
/* @__PURE__ */r.jsx(t.View,{style:{position:"absolute",left:l(.32),top:l(.1),width:o,height:l(.18),borderRadius:o,backgroundColor:i}}),
|
|
151
151
|
/* @__PURE__ */r.jsx(t.View,{style:{position:"absolute",left:l(.66),top:l(.1),width:o,height:l(.18),borderRadius:o,backgroundColor:i}})]});case"pin":/* @__PURE__ */
|
|
152
|
-
return r.jsxs(t.View,{style:{width:n,height:n},...
|
|
152
|
+
return r.jsxs(t.View,{style:{width:n,height:n},...Wl,children:[
|
|
153
153
|
/* @__PURE__ */r.jsx(t.View,{style:{position:"absolute",left:l(.24),top:l(.1),width:l(.52),height:l(.52),borderWidth:o,borderColor:i,borderRadius:n}}),
|
|
154
|
-
/* @__PURE__ */r.jsx(t.View,{style:{position:"absolute",left:l(.5)-o/2,top:l(.6),width:o,height:l(.28),borderRadius:o,backgroundColor:i}})]})}}function xl(e){return Ot[e]}var kl=Bt.screenTitle.color,wl=Bt.cardLead.color,vl=Bt.screenMeta.color,Tl=xl("card").borderColor,Sl=xl("card").backgroundColor,jl=Bt.pillOverdue.color;function Cl(){return{ink:kl,ink2:wl,ink3:vl,paper:Sl,tile:xl("ghostBar").backgroundColor,line:Tl,card:Sl,link:kl,soft:xl("thumb").backgroundColor,onSoft:Bt.thumb.color,accent:kl,onAccent:Bt.dotDone.color,wait:xl("pillSoon").backgroundColor,chosen:xl("choiceCurrent").backgroundColor,button:xl("btnInk").backgroundColor,onButton:Bt.btnInk.color,riskBg:Sl,riskInk:jl,clearBg:Sl,clearInk:Bt.pillClear.color,edge:Tl,rail:xl("trackerLine").backgroundColor,ring:Tl,scrim:xl("sheetBackdrop").backgroundColor,toastInk:Bt.btnInk.color}}function Il(e,t,r){let n=t?e?.mono:e?.sans;return n?typeof n=="string"?{fontFamily:n,fontWeight:r}:{fontFamily:r==="700"?n.bold??n.regular:r==="500"?n.medium??n.regular:n.regular}:{fontWeight:r}}function Ll(e,t){let{fontWeight:r,...n}=Bt[t];return{...n,...Il(e,Et[t].font==="mono",r)}}var zl=e=>{let t=xl(e);return{paddingTop:t.paddingTop,paddingRight:t.paddingRight,paddingBottom:t.paddingBottom,paddingLeft:t.paddingLeft}},Al=e=>{let t=xl(e);return{borderWidth:t.borderWidth,borderColor:t.borderColor,borderRadius:t.borderRadius}},Rl=e=>({width:e,height:e,borderRadius:xl("thumb").borderRadius,overflow:"hidden",alignItems:"center",justifyContent:"center",backgroundColor:xl("thumb").backgroundColor});function Wl(e){let r=t=>Ll(e,t),n={...zl("card"),...Al("card"),backgroundColor:Sl},i=xl("thumb").width,o=xl("stack").rowGap;return t.StyleSheet.create({page:{flex:1,backgroundColor:Sl},body:{...zl("body"),paddingBottom:xl("breaks").columnGap,gap:o},foot:{...zl("traybar"),gap:xl("traybar").rowGap,backgroundColor:Sl,borderTopWidth:Et.traybar.lineTop?.width??1,borderTopColor:Et.traybar.lineTop?.color??Tl},title:r("screenTitle"),sub2:{...r("screenMeta"),marginTop:xl("titleBlock").rowGap-o},k:{...r("forLabel"),marginTop:xl("forLabel").marginTop,marginBottom:0},card:n,items:{gap:xl("itemsLiMid").paddingTop},item:{flexDirection:"row",alignItems:"flex-start",gap:xl("itemsLiFirst").columnGap},itemImg:Rl(i),itemName:r("itemsName"),itemP:{flexDirection:"row",flexWrap:"wrap",alignItems:"center",columnGap:8,rowGap:2,marginTop:xl("itemsMeta").marginTop},itemPrice:r("itemsPrice"),itemSmall:r("itemsMeta"),itemActs:{flexDirection:"row",alignItems:"center",gap:xl("itemsActs").columnGap,marginTop:xl("itemsActs").marginTop},step:{flexDirection:"row",alignItems:"center",height:40,...Al("btnRow"),backgroundColor:Sl},stepValue:{...r("btnRowLabel"),width:30,textAlign:"center"},rm:{minHeight:40,justifyContent:"center"},rmText:r("itemsActLink"),fine:r("noteStandalone"),fineC:{...r("legal"),marginTop:14},coFine:r("traybarFine"),empty:{alignItems:"center",gap:8,paddingTop:48,paddingHorizontal:12,paddingBottom:8},emptyTile:{...Rl(72),borderRadius:xl("card").borderRadius,marginBottom:8},emptyTitle:{...r("screenTitle"),textAlign:"center"},emptyBody:{...r("cardLead"),textAlign:"center",maxWidth:270},linkText:{...r("cardLink"),textDecorationLine:"underline"},cancelText:r("linkDanger"),doneCheck:{width:76,height:76,borderRadius:38,alignItems:"center",justifyContent:"center",backgroundColor:xl("dotDone").backgroundColor},doneTitle:{...r("screenTitle"),marginTop:20,textAlign:"center"},doneWhen:{...r("cardLink"),marginTop:10,textAlign:"center"},doneWho:{...r("screenMeta"),marginTop:2,textAlign:"center"},next:{alignSelf:"stretch",marginTop:22,...n,paddingVertical:4},nextLi:{flexDirection:"row",alignItems:"center",gap:xl("recRow").columnGap,paddingVertical:xl("recRow").paddingTop},nextIc:Rl(36),nextK:r("forLabel"),nextV:{...r("rowsV"),color:kl,marginTop:1},btn:{minHeight:xl("btnInk").minHeight,paddingHorizontal:xl("btnInk").paddingLeft,...Al("btnInk"),alignItems:"center",justifyContent:"center",flexDirection:"row",gap:8,backgroundColor:xl("btnInk").backgroundColor},btnLg:{minHeight:xl("btnInk").minHeight,paddingHorizontal:xl("btnInk").paddingLeft},btnSm:{minHeight:xl("btnSm").minHeight,paddingHorizontal:xl("btnSm").paddingLeft},btnGhost:{backgroundColor:"transparent",...Al("btnOutline")},btnText:r("btnInk"),btnTextLg:{fontSize:Bt.btnInk.fontSize,lineHeight:Bt.btnInk.lineHeight},btnTextSm:{fontSize:Bt.btnSm.fontSize,lineHeight:Bt.btnSm.lineHeight},btnTextGhost:{color:Bt.btnOutline.color},scrim:{flex:1,justifyContent:"flex-end",backgroundColor:xl("sheetBackdrop").backgroundColor},sheet:{maxHeight:"88%",paddingTop:0,paddingHorizontal:xl("sheetBody").paddingLeft,borderTopLeftRadius:xl("sheet").borderTopLeftRadius,borderTopRightRadius:xl("sheet").borderTopRightRadius,backgroundColor:xl("sheet").backgroundColor},grab:{alignSelf:"center",width:xl("sheetGrabBar").width,height:xl("sheetGrabBar").height,borderRadius:xl("sheetGrabBar").borderRadius,backgroundColor:xl("sheetGrabBar").backgroundColor,marginTop:8,marginBottom:8},sheetTop:{flexDirection:"row",alignItems:"center",justifyContent:"space-between",paddingTop:xl("sheetHead").paddingTop,paddingBottom:4},kicker:{...r("forLabel"),flexShrink:1},x:{width:xl("sheetClose").width,height:xl("sheetClose").height,borderRadius:xl("sheetClose").borderRadius,alignItems:"center",justifyContent:"center",backgroundColor:xl("sheetClose").backgroundColor},sheetTitle:{...r("cardTitleInHead"),marginTop:4},co:{gap:o,marginTop:2},coItems:{gap:xl("itemsLiFirst").columnGap},coItem:{flexDirection:"row",alignItems:"center",gap:xl("itemsLiFirst").columnGap},coPic:Rl(44),coName:r("itemsName"),coSmall:r("itemsMeta"),coPrice:r("itemsPrice"),coRows:{paddingVertical:2,paddingHorizontal:xl("card").paddingLeft,...Al("card"),backgroundColor:Sl},coRowsOnPage:{backgroundColor:Sl},coKey:{...r("sumDt"),width:74},coValue:{...r("sumDd"),textAlign:"left",flex:1,minWidth:0},opts:{gap:xl("choices").rowGap},opt:{flexDirection:"row",alignItems:"center",gap:xl("choice").columnGap,minHeight:48,...zl("choice"),...Al("choice"),backgroundColor:xl("choice").backgroundColor},optOn:{...Al("choiceCurrent"),backgroundColor:xl("choiceCurrent").backgroundColor},optRadio:{width:xl("radioOff").width,height:xl("radioOff").height,...Al("radioOff"),backgroundColor:xl("radioOff").backgroundColor},optRadioOn:{...Al("radioOn")},optName:r("choiceTitle"),optSmall:{...r("choiceMeta"),marginTop:xl("choiceMeta").marginTop},every:{flexDirection:"row",gap:4,padding:4,borderRadius:999,borderWidth:1,borderColor:Tl,backgroundColor:Sl},everyOn:{backgroundColor:kl},everyText:{...r("btnSm"),textAlign:"center"},everyTextOn:{color:Sl},coK:{...r("forLabel"),marginBottom:xl("forLabel").marginBottom},subc:{flexDirection:"row",alignItems:"center",gap:xl("itemsLiFirst").columnGap,...n},subcImg:Rl(i),subcName:r("itemsName"),subcSmall:{...r("itemsMeta"),marginTop:2},subcAlert:{...r("itemsMeta"),color:jl,marginTop:2},subcBtn:{minHeight:40,paddingHorizontal:xl("btnSm").paddingLeft,...Al("btnSm"),alignItems:"center",justifyContent:"center",backgroundColor:Sl},subcBtnText:r("btnSm"),coProd:{flexDirection:"row",alignItems:"center",gap:xl("itemsLiFirst").columnGap},coProdImg:Rl(i),coProdT:r("itemsName"),coProdP:{...r("itemsMeta"),marginTop:2},error:{paddingVertical:0,paddingHorizontal:0,borderRadius:0,backgroundColor:"transparent"},errorText:{...r("noteAfterSum"),color:jl},toast:{paddingVertical:12,paddingHorizontal:16,borderRadius:xl("choice").borderRadius,backgroundColor:kl},toastText:{...r("cardLead"),color:Sl},ghostLine:{height:xl("ghostBar").height,borderRadius:xl("ghostBar").borderRadius,backgroundColor:xl("ghostBar").backgroundColor},fieldLabel:{...r("fieldLabel"),marginBottom:xl("field").rowGap},field:{...r("fieldInputText"),minHeight:xl("fieldInput").minHeight,paddingHorizontal:xl("fieldInput").paddingLeft,...Al("fieldInput"),backgroundColor:xl("fieldInput").backgroundColor},fieldErr:{...r("noteAfterSum"),color:jl,marginTop:6}})}function Fl(e){let t=Ao(e),r=e.color,n=e.brightness==="dark";return{ink:t.ink,ink2:t.ink2,ink3:t.ink3,paper:t.paper,tile:t.tile,line:t.line,card:t.card,link:t.link,soft:r.brandSofter,onSoft:r.brandInk,accent:t.accent,onAccent:t.onAccent,wait:n?r.badgeBgCaution:"#FFF3C9",chosen:n?r.surfaceSubtle:"#FFF7DC",button:t.primary,onButton:t.onPrimary,riskBg:t.riskBg,riskInk:t.riskInk,clearBg:t.clearBg,clearInk:t.clearInk,edge:n?t.line:"#DAD7D1",rail:n?t.line:"#E2DFD9",ring:n?t.line:"#CFCBC4",scrim:n?"rgba(0,0,0,0.6)":"rgba(38,37,35,0.45)",toastInk:n?r.text.primary:"#FFFFFF"}}function Vl(e,t){return typeof e=="string"?{fontFamily:e,fontWeight:t==="bold"?"700":t==="medium"?"500":"400"}:{fontFamily:t==="bold"?e.bold??e.regular:t==="medium"?e.medium??e.regular:e.regular}}function Hl(e,t,r){let n=r==="mono"||r==="monoBold"?t?.mono:t?.sans;return n?Vl(n,r==="mono"?"regular":r==="monoBold"?"bold":r):face(e,r)}function Pl(e,r,n="partner"){let i=Fl(e),o=e.brightness==="dark",l=(t,n,i="regular",o=1.35)=>({...Hl(e,r,i),fontSize:t,lineHeight:Math.round(t*o),color:n}),a=(t,n)=>({...r?.sans?Vl(r.sans,"bold"):headingFace(e,"bold"),fontSize:t,lineHeight:Math.round(t*n),color:i.ink}),s={shadowColor:"#262523",shadowOpacity:o?0:.06,shadowRadius:3,shadowOffset:{width:0,height:1},elevation:o?0:1},d=t.StyleSheet.create({page:{flex:1,backgroundColor:i.paper},body:{paddingHorizontal:18,paddingTop:8,paddingBottom:28,gap:12},foot:{paddingTop:12,paddingHorizontal:18,gap:10,backgroundColor:i.paper,borderTopWidth:1,borderTopColor:i.line},grow:{flex:1,minWidth:0},row:{flexDirection:"row",alignItems:"center"},title:a(29,1.08),sub2:{...l(15,i.ink2,"regular",1.45),marginTop:-6},k:{...l(16,i.ink,"bold",1.3),marginTop:6,marginHorizontal:2,marginBottom:-4},card:{paddingVertical:14,paddingHorizontal:16,borderRadius:22,backgroundColor:i.card,...s},items:{gap:18},item:{flexDirection:"row",alignItems:"flex-start",gap:12},itemImg:{width:64,height:64,borderRadius:14,overflow:"hidden",alignItems:"center",justifyContent:"center",backgroundColor:i.soft},itemName:l(16.5,i.ink,"bold",1.25),itemP:{flexDirection:"row",flexWrap:"wrap",alignItems:"center",columnGap:8,rowGap:2,marginTop:3},itemPrice:{...l(16,i.ink,"bold",1.3),fontVariant:["tabular-nums"]},itemWas:{...l(14,i.ink3,"medium",1.3),textDecorationLine:"line-through"},itemSmall:l(14,i.ink3,"regular",1.35),itemActs:{flexDirection:"row",alignItems:"center",gap:16,marginTop:8},step:{flexDirection:"row",alignItems:"center",height:40,borderRadius:999,borderWidth:1.5,borderColor:i.edge,backgroundColor:i.card},stepButton:{width:40,height:40,borderRadius:999,alignItems:"center",justifyContent:"center"},stepOff:{opacity:.3},stepValue:{...l(15.5,i.ink,"bold",1.2),width:30,textAlign:"center",fontVariant:["tabular-nums"]},rm:{minHeight:40,justifyContent:"center"},rmText:{...l(14.5,i.ink2,"bold",1.3),textDecorationLine:"underline"},fine:l(13,i.ink3,"regular",1.45),fineC:{...l(13,i.ink3,"regular",1.45),marginTop:14,textAlign:"center"},coFine:{...l(12.5,i.ink3,"regular",1.45),textAlign:"center"},empty:{alignItems:"center",gap:8,paddingTop:48,paddingHorizontal:12,paddingBottom:8},emptyTile:{width:72,height:72,borderRadius:20,marginBottom:8,alignItems:"center",justifyContent:"center",backgroundColor:i.soft},emptyTitle:{...a(28,1.1),textAlign:"center"},emptyBody:{...l(15.5,i.ink2,"regular",1.45),textAlign:"center",maxWidth:270},emptyAct:{marginTop:12},link:{minHeight:40,justifyContent:"center",alignSelf:"center"},linkText:{...l(15,i.link,"bold",1.3),textDecorationLine:"underline"},acts:{gap:4,alignItems:"stretch",marginTop:4},cancel:{minHeight:40,justifyContent:"center",alignSelf:"center"},cancelText:l(14.5,i.riskInk,"bold",1.3),orders:{gap:10},order:{flexDirection:"row",alignItems:"center",gap:10,paddingVertical:14,paddingLeft:16,paddingRight:14,borderRadius:22,backgroundColor:i.card,...s},orderTop:{flexDirection:"row",flexWrap:"wrap",alignItems:"center",columnGap:10,rowGap:4},orderNo:{...l(12,i.ink3,"mono",1.3),letterSpacing:.48},orderWhat:{...l(16,i.ink,"bold",1.3),marginTop:8},orderMeta:{...l(14,i.ink3,"regular",1.4),marginTop:2},pics:{flexDirection:"row",gap:6,marginTop:10},pic:{width:40,height:40,borderRadius:10,overflow:"hidden",alignItems:"center",justifyContent:"center",backgroundColor:i.soft},pill:{flexDirection:"row",alignItems:"center",gap:6,minHeight:26,paddingHorizontal:10,borderRadius:999,backgroundColor:i.wait},pillText:l(13,i.ink,"bold",1.2),pillDone:{backgroundColor:i.clearBg},pillDoneText:{color:i.clearInk},pillSub:{backgroundColor:i.soft},pillSubText:{color:i.onSoft},pillRisk:{backgroundColor:i.riskBg},pillRiskText:{color:i.riskInk},pillQuiet:{backgroundColor:i.tile},pillQuietText:{color:i.ink2},carrier:{flexDirection:"row",alignItems:"center",gap:12},carrierIc:{width:40,height:40,borderRadius:11,alignItems:"center",justifyContent:"center",backgroundColor:i.soft},carrierName:l(16,i.ink,"bold",1.3),carrierNo:{...l(13,i.ink2,"mono",1.35),letterSpacing:.26,marginTop:1},carrierWait:l(14.5,i.ink2,"regular",1.4),carrierGo:{marginTop:10},trackLi:{flexDirection:"row",gap:12,paddingBottom:16},trackLast:{paddingBottom:0},trackRail:{position:"absolute",left:10,top:20,bottom:-2,width:2,borderRadius:1,backgroundColor:i.rail},trackRailDone:{backgroundColor:i.ink},trackDot:{width:22,height:22,borderRadius:11,alignItems:"center",justifyContent:"center",backgroundColor:i.card,borderWidth:2,borderColor:i.ring},trackDotDone:{backgroundColor:i.ink,borderWidth:0},trackDotNow:{backgroundColor:i.accent,borderColor:i.ink},trackT:l(15.5,i.ink,"bold",1.3),trackTNext:{color:i.ink3},trackD:{...l(14,i.ink3,"regular",1.35),marginTop:1},done:{paddingTop:40,paddingHorizontal:22,paddingBottom:20,alignItems:"center"},doneCheck:{width:76,height:76,borderRadius:38,alignItems:"center",justifyContent:"center",backgroundColor:i.accent},doneTitle:{...a(34,1.1),marginTop:20,textAlign:"center"},doneWhen:{...l(16,i.ink,"bold",1.35),marginTop:10,textAlign:"center"},doneWho:{...l(15,i.ink2,"regular",1.35),marginTop:2,textAlign:"center"},next:{alignSelf:"stretch",marginTop:22,paddingVertical:4,paddingHorizontal:16,borderRadius:18,backgroundColor:i.card,...s},nextLi:{flexDirection:"row",alignItems:"center",gap:12,paddingVertical:10},nextIc:{width:36,height:36,borderRadius:11,overflow:"hidden",alignItems:"center",justifyContent:"center",backgroundColor:i.soft},nextK:{...l(10.5,i.ink3,"mono",1.3),letterSpacing:.53,textTransform:"uppercase"},nextV:{...l(15,i.ink,"medium",1.35),marginTop:1},btn:{minHeight:48,paddingHorizontal:22,borderRadius:999,alignItems:"center",justifyContent:"center",flexDirection:"row",gap:8,backgroundColor:i.button},btnLg:{minHeight:56,paddingHorizontal:28},btnSm:{minHeight:40,paddingHorizontal:16},btnGhost:{backgroundColor:"transparent",borderWidth:1.5,borderColor:i.ink},btnOff:{opacity:.32},btnText:{...l(16,i.onButton,"bold",1.25),textAlign:"center"},btnTextLg:{fontSize:17,lineHeight:21},btnTextSm:{fontSize:15,lineHeight:19},btnTextGhost:{color:i.ink},scrim:{flex:1,justifyContent:"flex-end",backgroundColor:i.scrim},sheet:{maxHeight:"88%",paddingTop:10,paddingHorizontal:20,borderTopLeftRadius:28,borderTopRightRadius:28,backgroundColor:i.card},grab:{alignSelf:"center",width:40,height:5,borderRadius:3,backgroundColor:i.edge,marginBottom:10},sheetTop:{flexDirection:"row",alignItems:"center",justifyContent:"space-between"},kicker:{...l(11,i.ink3,"mono",1.3),letterSpacing:.88,textTransform:"uppercase",flexShrink:1},x:{width:40,height:40,marginRight:-8,alignItems:"center",justifyContent:"center",borderRadius:20},sheetTitle:{...a(26,1.1),marginTop:4},co:{gap:10,marginTop:2},coItems:{gap:10},coItem:{flexDirection:"row",alignItems:"center",gap:12},coPic:{width:44,height:44,borderRadius:10,overflow:"hidden",alignItems:"center",justifyContent:"center",backgroundColor:i.soft},coName:l(15.5,i.ink,"bold",1.25),coSmall:l(13.5,i.ink3,"regular",1.35),coPrice:{...l(15,i.ink,"bold",1.3),fontVariant:["tabular-nums"]},coRows:{paddingVertical:2,paddingHorizontal:14,borderRadius:16,backgroundColor:i.paper},coRowsOnPage:{backgroundColor:i.card,...s},coRow:{flexDirection:"row",alignItems:"center",gap:10,minHeight:44},coKey:{...l(14.5,i.ink3,"regular",1.3),width:74},coValue:{...l(14.5,i.ink,"bold",1.3),flex:1,minWidth:0},opts:{gap:8},opt:{flexDirection:"row",alignItems:"center",gap:12,minHeight:48,paddingVertical:12,paddingHorizontal:14,borderRadius:16,borderWidth:1.5,borderColor:i.edge},optOn:{backgroundColor:i.chosen,borderWidth:2,borderColor:i.ink},optRadio:{width:22,height:22,borderRadius:11,borderWidth:2,borderColor:i.edge,backgroundColor:i.card},optRadioOn:{borderWidth:7,borderColor:i.ink},optName:l(16,i.ink,"bold",1.35),optSmall:l(13,i.ink2,"regular",1.4),every:{flexDirection:"row",gap:4,padding:4,borderRadius:999,borderWidth:1.5,borderColor:i.edge,backgroundColor:i.card},everyBtn:{flex:1,minHeight:36,paddingHorizontal:6,borderRadius:999,alignItems:"center",justifyContent:"center"},everyOn:{backgroundColor:i.ink},everyText:{...l(14,i.ink,"bold",1.2),textAlign:"center"},everyTextOn:{color:i.card},coK:{...l(10.5,i.ink3,"mono",1.3),letterSpacing:.63,textTransform:"uppercase",marginBottom:6},subc:{flexDirection:"row",alignItems:"center",gap:12,paddingVertical:12,paddingLeft:12,paddingRight:14,borderRadius:22,backgroundColor:i.clearBg},subcImg:{width:56,height:56,borderRadius:14,overflow:"hidden",alignItems:"center",justifyContent:"center",backgroundColor:i.card},subcName:l(16,i.ink,"bold",1.25),subcSmall:{...l(14,i.ink2,"regular",1.35),marginTop:2},subcAlert:{...l(14,i.riskInk,"bold",1.35),marginTop:2},subcBtn:{minHeight:40,paddingHorizontal:14,borderRadius:999,alignItems:"center",justifyContent:"center",borderWidth:1.5,borderColor:i.ink,backgroundColor:i.card},subcBtnText:l(14,i.ink,"bold",1.2),coProd:{flexDirection:"row",alignItems:"center",gap:12},coProdImg:{width:56,height:56,borderRadius:14,overflow:"hidden",alignItems:"center",justifyContent:"center",backgroundColor:i.soft},coProdT:l(14,i.ink2,"bold",1.35),coProdP:{...l(14,i.ink2,"regular",1.35),marginTop:2},error:{paddingVertical:12,paddingHorizontal:14,borderRadius:14,backgroundColor:i.riskBg},errorText:l(14.5,i.riskInk,"medium",1.4),toast:{paddingVertical:12,paddingHorizontal:15,borderRadius:16,backgroundColor:i.ink},toastText:l(14.5,i.toastInk,"regular",1.4),ghostLine:{height:14,borderRadius:7,backgroundColor:i.tile},fieldLabel:{...l(15,i.ink,"bold",1.3),marginBottom:8},field:{...l(17,i.ink,"regular",1.25),minHeight:52,paddingHorizontal:16,borderRadius:16,borderWidth:1.5,borderColor:i.edge,backgroundColor:i.card},fieldErr:{...l(14,i.riskInk,"bold",1.35),marginTop:6}});return n==="everfur-app"?{...d,...Wl(r),palette:Cl()}:{...d,palette:i}}var Ol=e.createContext({bottomInset:0,screenBottomInset:0,cardHandoff:null,onOrderHelp:null}),Bl=Ol.Provider;function El(){return e.useContext(Ol)}function Dl(){let t=useEverfurTheme(),r=Mt().options.fonts,n=zi();return e.useMemo(()=>Pl(t,r,n),[t,r,n])}function Page({head:n,foot:i,children:o,testID:l,onRefresh:a}){let s=Dl(),{bottomInset:d}=El(),[c,u]=e.useState(false),p=a?/* @__PURE__ */r.jsx(t.RefreshControl,{refreshing:c,tintColor:s.palette.ink3,colors:[s.palette.ink3],onRefresh:()=>{u(true),a().finally(()=>u(false))}}):void 0;/* @__PURE__ */
|
|
155
|
-
return r.
|
|
156
|
-
/* @__PURE__ */r.jsx(t.ScrollView,{style:{flex:1},contentContainerStyle:s.body,keyboardShouldPersistTaps:"handled",refreshControl:p,children:o}),i?/* @__PURE__ */r.jsx(t.View,{style:[s.foot,{paddingBottom:Math.max(12,d)}],children:i}):null]})}function Title({children:e,sub:t}){let n=
|
|
154
|
+
/* @__PURE__ */r.jsx(t.View,{style:{position:"absolute",left:l(.5)-o/2,top:l(.6),width:o,height:l(.28),borderRadius:o,backgroundColor:i}})]})}}function Fl(e){return Dt[e]}var Vl=Et.screenTitle.color,Hl=Et.cardLead.color,Pl=Et.screenMeta.color,Ol=Fl("card").borderColor,Bl=Fl("card").backgroundColor,Dl=Et.pillOverdue.color;function El(){return{ink:Vl,ink2:Hl,ink3:Pl,paper:Bl,tile:Fl("ghostBar").backgroundColor,line:Ol,card:Bl,link:Vl,soft:Fl("thumb").backgroundColor,onSoft:Et.thumb.color,accent:Vl,onAccent:Et.dotDone.color,wait:Fl("pillSoon").backgroundColor,chosen:Fl("choiceCurrent").backgroundColor,button:Fl("btnInk").backgroundColor,onButton:Et.btnInk.color,riskBg:Bl,riskInk:Dl,clearBg:Bl,clearInk:Et.pillClear.color,edge:Ol,rail:Fl("trackerLine").backgroundColor,ring:Ol,scrim:Fl("sheetBackdrop").backgroundColor,toastInk:Et.btnInk.color}}function Nl(e,t,r){let n=t?e?.mono:e?.sans;return n?typeof n=="string"?{fontFamily:n,fontWeight:r}:{fontFamily:r==="700"?n.bold??n.regular:r==="500"?n.medium??n.regular:n.regular}:{fontWeight:r}}function ql(e,t){let{fontWeight:r,...n}=Et[t];return{...n,...Nl(e,Nt[t].font==="mono",r)}}var Ul=e=>{let t=Fl(e);return{paddingTop:t.paddingTop,paddingRight:t.paddingRight,paddingBottom:t.paddingBottom,paddingLeft:t.paddingLeft}},Gl=e=>{let t=Fl(e);return{borderWidth:t.borderWidth,borderColor:t.borderColor,borderRadius:t.borderRadius}},Ml=e=>({width:e,height:e,borderRadius:Fl("thumb").borderRadius,overflow:"hidden",alignItems:"center",justifyContent:"center",backgroundColor:Fl("thumb").backgroundColor});function Kl(e){let r=t=>ql(e,t),n={...Ul("card"),...Gl("card"),backgroundColor:Bl},i=Fl("thumb").width,o=Fl("stack").rowGap;return t.StyleSheet.create({page:{flex:1,backgroundColor:Bl},body:{...Ul("body"),paddingBottom:Fl("breaks").columnGap,gap:o},foot:{...Ul("traybar"),gap:Fl("traybar").rowGap,backgroundColor:Bl,borderTopWidth:Nt.traybar.lineTop?.width??1,borderTopColor:Nt.traybar.lineTop?.color??Ol},title:r("screenTitle"),sub2:{...r("screenMeta"),marginTop:Fl("titleBlock").rowGap-o},k:{...r("forLabel"),marginTop:Fl("forLabel").marginTop,marginBottom:0},card:n,items:{gap:Fl("itemsLiMid").paddingTop},item:{flexDirection:"row",alignItems:"flex-start",gap:Fl("itemsLiFirst").columnGap},itemImg:Ml(i),itemName:r("itemsName"),itemP:{flexDirection:"row",flexWrap:"wrap",alignItems:"center",columnGap:8,rowGap:2,marginTop:Fl("itemsMeta").marginTop},itemPrice:r("itemsPrice"),itemSmall:r("itemsMeta"),itemActs:{flexDirection:"row",alignItems:"center",gap:Fl("itemsActs").columnGap,marginTop:Fl("itemsActs").marginTop},step:{flexDirection:"row",alignItems:"center",height:40,...Gl("btnRow"),backgroundColor:Bl},stepValue:{...r("btnRowLabel"),width:30,textAlign:"center"},rm:{minHeight:40,justifyContent:"center"},rmText:r("itemsActLink"),fine:r("noteStandalone"),fineC:{...r("legal"),marginTop:14},coFine:r("traybarFine"),empty:{alignItems:"center",gap:8,paddingTop:48,paddingHorizontal:12,paddingBottom:8},emptyTile:{...Ml(72),borderRadius:Fl("card").borderRadius,marginBottom:8},emptyTitle:{...r("screenTitle"),textAlign:"center"},emptyBody:{...r("cardLead"),textAlign:"center",maxWidth:270},linkText:{...r("cardLink"),textDecorationLine:"underline"},cancelText:r("linkDanger"),doneCheck:{width:76,height:76,borderRadius:38,alignItems:"center",justifyContent:"center",backgroundColor:Fl("dotDone").backgroundColor},doneTitle:{...r("screenTitle"),marginTop:20,textAlign:"center"},doneWhen:{...r("cardLink"),marginTop:10,textAlign:"center"},doneWho:{...r("screenMeta"),marginTop:2,textAlign:"center"},next:{alignSelf:"stretch",marginTop:22,...n,paddingVertical:4},nextLi:{flexDirection:"row",alignItems:"center",gap:Fl("recRow").columnGap,paddingVertical:Fl("recRow").paddingTop},nextIc:Ml(36),nextK:r("forLabel"),nextV:{...r("rowsV"),color:Vl,marginTop:1},btn:{minHeight:Fl("btnInk").minHeight,paddingHorizontal:Fl("btnInk").paddingLeft,...Gl("btnInk"),alignItems:"center",justifyContent:"center",flexDirection:"row",gap:8,backgroundColor:Fl("btnInk").backgroundColor},btnLg:{minHeight:Fl("btnInk").minHeight,paddingHorizontal:Fl("btnInk").paddingLeft},btnSm:{minHeight:Fl("btnSm").minHeight,paddingHorizontal:Fl("btnSm").paddingLeft},btnGhost:{backgroundColor:"transparent",...Gl("btnOutline")},btnText:r("btnInk"),btnTextLg:{fontSize:Et.btnInk.fontSize,lineHeight:Et.btnInk.lineHeight},btnTextSm:{fontSize:Et.btnSm.fontSize,lineHeight:Et.btnSm.lineHeight},btnTextGhost:{color:Et.btnOutline.color},scrim:{flex:1,justifyContent:"flex-end",backgroundColor:Fl("sheetBackdrop").backgroundColor},sheet:{maxHeight:"88%",paddingTop:0,paddingHorizontal:Fl("sheetBody").paddingLeft,borderTopLeftRadius:Fl("sheet").borderTopLeftRadius,borderTopRightRadius:Fl("sheet").borderTopRightRadius,backgroundColor:Fl("sheet").backgroundColor},grab:{alignSelf:"center",width:Fl("sheetGrabBar").width,height:Fl("sheetGrabBar").height,borderRadius:Fl("sheetGrabBar").borderRadius,backgroundColor:Fl("sheetGrabBar").backgroundColor,marginTop:8,marginBottom:8},sheetTop:{flexDirection:"row",alignItems:"center",justifyContent:"space-between",paddingTop:Fl("sheetHead").paddingTop,paddingBottom:4},kicker:{...r("forLabel"),flexShrink:1},x:{width:Fl("sheetClose").width,height:Fl("sheetClose").height,borderRadius:Fl("sheetClose").borderRadius,alignItems:"center",justifyContent:"center",backgroundColor:Fl("sheetClose").backgroundColor},sheetTitle:{...r("cardTitleInHead"),marginTop:4},co:{gap:o,marginTop:2},coItems:{gap:Fl("itemsLiFirst").columnGap},coItem:{flexDirection:"row",alignItems:"center",gap:Fl("itemsLiFirst").columnGap},coPic:Ml(44),coName:r("itemsName"),coSmall:r("itemsMeta"),coPrice:r("itemsPrice"),coRows:{paddingVertical:2,paddingHorizontal:Fl("card").paddingLeft,...Gl("card"),backgroundColor:Bl},coRowsOnPage:{backgroundColor:Bl},coKey:{...r("sumDt"),width:74},coValue:{...r("sumDd"),textAlign:"left",flex:1,minWidth:0},opts:{gap:Fl("choices").rowGap},opt:{flexDirection:"row",alignItems:"center",gap:Fl("choice").columnGap,minHeight:48,...Ul("choice"),...Gl("choice"),backgroundColor:Fl("choice").backgroundColor},optOn:{...Gl("choiceCurrent"),backgroundColor:Fl("choiceCurrent").backgroundColor},optRadio:{width:Fl("radioOff").width,height:Fl("radioOff").height,...Gl("radioOff"),backgroundColor:Fl("radioOff").backgroundColor},optRadioOn:{...Gl("radioOn")},optName:r("choiceTitle"),optSmall:{...r("choiceMeta"),marginTop:Fl("choiceMeta").marginTop},every:{flexDirection:"row",gap:4,padding:4,borderRadius:999,borderWidth:1,borderColor:Ol,backgroundColor:Bl},everyOn:{backgroundColor:Vl},everyText:{...r("btnSm"),textAlign:"center"},everyTextOn:{color:Bl},coK:{...r("forLabel"),marginBottom:Fl("forLabel").marginBottom},subc:{flexDirection:"row",alignItems:"center",gap:Fl("itemsLiFirst").columnGap,...n},subcImg:Ml(i),subcName:r("itemsName"),subcSmall:{...r("itemsMeta"),marginTop:2},subcAlert:{...r("itemsMeta"),color:Dl,marginTop:2},subcBtn:{minHeight:40,paddingHorizontal:Fl("btnSm").paddingLeft,...Gl("btnSm"),alignItems:"center",justifyContent:"center",backgroundColor:Bl},subcBtnText:r("btnSm"),coProd:{flexDirection:"row",alignItems:"center",gap:Fl("itemsLiFirst").columnGap},coProdImg:Ml(i),coProdT:r("itemsName"),coProdP:{...r("itemsMeta"),marginTop:2},error:{paddingVertical:0,paddingHorizontal:0,borderRadius:0,backgroundColor:"transparent"},errorText:{...r("noteAfterSum"),color:Dl},toast:{paddingVertical:12,paddingHorizontal:16,borderRadius:Fl("choice").borderRadius,backgroundColor:Vl},toastText:{...r("cardLead"),color:Bl},ghostLine:{height:Fl("ghostBar").height,borderRadius:Fl("ghostBar").borderRadius,backgroundColor:Fl("ghostBar").backgroundColor},fieldLabel:{...r("fieldLabel"),marginBottom:Fl("field").rowGap},field:{...r("fieldInputText"),minHeight:Fl("fieldInput").minHeight,paddingHorizontal:Fl("fieldInput").paddingLeft,...Gl("fieldInput"),backgroundColor:Fl("fieldInput").backgroundColor},fieldErr:{...r("noteAfterSum"),color:Dl,marginTop:6}})}function Zl(e){let t=Wo(e),r=e.color,n=e.brightness==="dark";return{ink:t.ink,ink2:t.ink2,ink3:t.ink3,paper:t.paper,tile:t.tile,line:t.line,card:t.card,link:t.link,soft:r.brandSofter,onSoft:r.brandInk,accent:t.accent,onAccent:t.onAccent,wait:n?r.badgeBgCaution:"#FFF3C9",chosen:n?r.surfaceSubtle:"#FFF7DC",button:t.primary,onButton:t.onPrimary,riskBg:t.riskBg,riskInk:t.riskInk,clearBg:t.clearBg,clearInk:t.clearInk,edge:n?t.line:"#DAD7D1",rail:n?t.line:"#E2DFD9",ring:n?t.line:"#CFCBC4",scrim:n?"rgba(0,0,0,0.6)":"rgba(38,37,35,0.45)",toastInk:n?r.text.primary:"#FFFFFF"}}function Yl(e,t){return typeof e=="string"?{fontFamily:e,fontWeight:t==="bold"?"700":t==="medium"?"500":"400"}:{fontFamily:t==="bold"?e.bold??e.regular:t==="medium"?e.medium??e.regular:e.regular}}function Jl(e,t,r){let n=r==="mono"||r==="monoBold"?t?.mono:t?.sans;return n?Yl(n,r==="mono"?"regular":r==="monoBold"?"bold":r):face(e,r)}function Xl(e,r,n="partner"){let i=Zl(e),o=e.brightness==="dark",l=(t,n,i="regular",o=1.35)=>({...Jl(e,r,i),fontSize:t,lineHeight:Math.round(t*o),color:n}),a=(t,n)=>({...r?.sans?Yl(r.sans,"bold"):headingFace(e,"bold"),fontSize:t,lineHeight:Math.round(t*n),color:i.ink}),s={shadowColor:"#262523",shadowOpacity:o?0:.06,shadowRadius:3,shadowOffset:{width:0,height:1},elevation:o?0:1},d=t.StyleSheet.create({page:{flex:1,backgroundColor:i.paper},body:{paddingHorizontal:18,paddingTop:8,paddingBottom:28,gap:12},foot:{paddingTop:12,paddingHorizontal:18,gap:10,backgroundColor:i.paper,borderTopWidth:1,borderTopColor:i.line},grow:{flex:1,minWidth:0},row:{flexDirection:"row",alignItems:"center"},title:a(29,1.08),sub2:{...l(15,i.ink2,"regular",1.45),marginTop:-6},k:{...l(16,i.ink,"bold",1.3),marginTop:6,marginHorizontal:2,marginBottom:-4},card:{paddingVertical:14,paddingHorizontal:16,borderRadius:22,backgroundColor:i.card,...s},items:{gap:18},item:{flexDirection:"row",alignItems:"flex-start",gap:12},itemImg:{width:64,height:64,borderRadius:14,overflow:"hidden",alignItems:"center",justifyContent:"center",backgroundColor:i.soft},itemName:l(16.5,i.ink,"bold",1.25),itemP:{flexDirection:"row",flexWrap:"wrap",alignItems:"center",columnGap:8,rowGap:2,marginTop:3},itemPrice:{...l(16,i.ink,"bold",1.3),fontVariant:["tabular-nums"]},itemWas:{...l(14,i.ink3,"medium",1.3),textDecorationLine:"line-through"},itemSmall:l(14,i.ink3,"regular",1.35),itemActs:{flexDirection:"row",alignItems:"center",gap:16,marginTop:8},step:{flexDirection:"row",alignItems:"center",height:40,borderRadius:999,borderWidth:1.5,borderColor:i.edge,backgroundColor:i.card},stepButton:{width:40,height:40,borderRadius:999,alignItems:"center",justifyContent:"center"},stepOff:{opacity:.3},stepValue:{...l(15.5,i.ink,"bold",1.2),width:30,textAlign:"center",fontVariant:["tabular-nums"]},rm:{minHeight:40,justifyContent:"center"},rmText:{...l(14.5,i.ink2,"bold",1.3),textDecorationLine:"underline"},fine:l(13,i.ink3,"regular",1.45),fineC:{...l(13,i.ink3,"regular",1.45),marginTop:14,textAlign:"center"},coFine:{...l(12.5,i.ink3,"regular",1.45),textAlign:"center"},empty:{alignItems:"center",gap:8,paddingTop:48,paddingHorizontal:12,paddingBottom:8},emptyTile:{width:72,height:72,borderRadius:20,marginBottom:8,alignItems:"center",justifyContent:"center",backgroundColor:i.soft},emptyTitle:{...a(28,1.1),textAlign:"center"},emptyBody:{...l(15.5,i.ink2,"regular",1.45),textAlign:"center",maxWidth:270},emptyAct:{marginTop:12},link:{minHeight:40,justifyContent:"center",alignSelf:"center"},linkText:{...l(15,i.link,"bold",1.3),textDecorationLine:"underline"},acts:{gap:4,alignItems:"stretch",marginTop:4},cancel:{minHeight:40,justifyContent:"center",alignSelf:"center"},cancelText:l(14.5,i.riskInk,"bold",1.3),orders:{gap:10},order:{flexDirection:"row",alignItems:"center",gap:10,paddingVertical:14,paddingLeft:16,paddingRight:14,borderRadius:22,backgroundColor:i.card,...s},orderTop:{flexDirection:"row",flexWrap:"wrap",alignItems:"center",columnGap:10,rowGap:4},orderNo:{...l(12,i.ink3,"mono",1.3),letterSpacing:.48},orderWhat:{...l(16,i.ink,"bold",1.3),marginTop:8},orderMeta:{...l(14,i.ink3,"regular",1.4),marginTop:2},pics:{flexDirection:"row",gap:6,marginTop:10},pic:{width:40,height:40,borderRadius:10,overflow:"hidden",alignItems:"center",justifyContent:"center",backgroundColor:i.soft},pill:{flexDirection:"row",alignItems:"center",gap:6,minHeight:26,paddingHorizontal:10,borderRadius:999,backgroundColor:i.wait},pillText:l(13,i.ink,"bold",1.2),pillDone:{backgroundColor:i.clearBg},pillDoneText:{color:i.clearInk},pillSub:{backgroundColor:i.soft},pillSubText:{color:i.onSoft},pillRisk:{backgroundColor:i.riskBg},pillRiskText:{color:i.riskInk},pillQuiet:{backgroundColor:i.tile},pillQuietText:{color:i.ink2},carrier:{flexDirection:"row",alignItems:"center",gap:12},carrierIc:{width:40,height:40,borderRadius:11,alignItems:"center",justifyContent:"center",backgroundColor:i.soft},carrierName:l(16,i.ink,"bold",1.3),carrierNo:{...l(13,i.ink2,"mono",1.35),letterSpacing:.26,marginTop:1},carrierWait:l(14.5,i.ink2,"regular",1.4),carrierGo:{marginTop:10},trackLi:{flexDirection:"row",gap:12,paddingBottom:16},trackLast:{paddingBottom:0},trackRail:{position:"absolute",left:10,top:20,bottom:-2,width:2,borderRadius:1,backgroundColor:i.rail},trackRailDone:{backgroundColor:i.ink},trackDot:{width:22,height:22,borderRadius:11,alignItems:"center",justifyContent:"center",backgroundColor:i.card,borderWidth:2,borderColor:i.ring},trackDotDone:{backgroundColor:i.ink,borderWidth:0},trackDotNow:{backgroundColor:i.accent,borderColor:i.ink},trackT:l(15.5,i.ink,"bold",1.3),trackTNext:{color:i.ink3},trackD:{...l(14,i.ink3,"regular",1.35),marginTop:1},done:{paddingTop:40,paddingHorizontal:22,paddingBottom:20,alignItems:"center"},doneCheck:{width:76,height:76,borderRadius:38,alignItems:"center",justifyContent:"center",backgroundColor:i.accent},doneTitle:{...a(34,1.1),marginTop:20,textAlign:"center"},doneWhen:{...l(16,i.ink,"bold",1.35),marginTop:10,textAlign:"center"},doneWho:{...l(15,i.ink2,"regular",1.35),marginTop:2,textAlign:"center"},next:{alignSelf:"stretch",marginTop:22,paddingVertical:4,paddingHorizontal:16,borderRadius:18,backgroundColor:i.card,...s},nextLi:{flexDirection:"row",alignItems:"center",gap:12,paddingVertical:10},nextIc:{width:36,height:36,borderRadius:11,overflow:"hidden",alignItems:"center",justifyContent:"center",backgroundColor:i.soft},nextK:{...l(10.5,i.ink3,"mono",1.3),letterSpacing:.53,textTransform:"uppercase"},nextV:{...l(15,i.ink,"medium",1.35),marginTop:1},btn:{minHeight:48,paddingHorizontal:22,borderRadius:999,alignItems:"center",justifyContent:"center",flexDirection:"row",gap:8,backgroundColor:i.button},btnLg:{minHeight:56,paddingHorizontal:28},btnSm:{minHeight:40,paddingHorizontal:16},btnGhost:{backgroundColor:"transparent",borderWidth:1.5,borderColor:i.ink},btnOff:{opacity:.32},btnText:{...l(16,i.onButton,"bold",1.25),textAlign:"center"},btnTextLg:{fontSize:17,lineHeight:21},btnTextSm:{fontSize:15,lineHeight:19},btnTextGhost:{color:i.ink},scrim:{flex:1,justifyContent:"flex-end",backgroundColor:i.scrim},sheet:{maxHeight:"88%",paddingTop:10,paddingHorizontal:20,borderTopLeftRadius:28,borderTopRightRadius:28,backgroundColor:i.card},grab:{alignSelf:"center",width:40,height:5,borderRadius:3,backgroundColor:i.edge,marginBottom:10},sheetTop:{flexDirection:"row",alignItems:"center",justifyContent:"space-between"},kicker:{...l(11,i.ink3,"mono",1.3),letterSpacing:.88,textTransform:"uppercase",flexShrink:1},x:{width:40,height:40,marginRight:-8,alignItems:"center",justifyContent:"center",borderRadius:20},sheetTitle:{...a(26,1.1),marginTop:4},co:{gap:10,marginTop:2},coItems:{gap:10},coItem:{flexDirection:"row",alignItems:"center",gap:12},coPic:{width:44,height:44,borderRadius:10,overflow:"hidden",alignItems:"center",justifyContent:"center",backgroundColor:i.soft},coName:l(15.5,i.ink,"bold",1.25),coSmall:l(13.5,i.ink3,"regular",1.35),coPrice:{...l(15,i.ink,"bold",1.3),fontVariant:["tabular-nums"]},coRows:{paddingVertical:2,paddingHorizontal:14,borderRadius:16,backgroundColor:i.paper},coRowsOnPage:{backgroundColor:i.card,...s},coRow:{flexDirection:"row",alignItems:"center",gap:10,minHeight:44},coKey:{...l(14.5,i.ink3,"regular",1.3),width:74},coValue:{...l(14.5,i.ink,"bold",1.3),flex:1,minWidth:0},opts:{gap:8},opt:{flexDirection:"row",alignItems:"center",gap:12,minHeight:48,paddingVertical:12,paddingHorizontal:14,borderRadius:16,borderWidth:1.5,borderColor:i.edge},optOn:{backgroundColor:i.chosen,borderWidth:2,borderColor:i.ink},optRadio:{width:22,height:22,borderRadius:11,borderWidth:2,borderColor:i.edge,backgroundColor:i.card},optRadioOn:{borderWidth:7,borderColor:i.ink},optName:l(16,i.ink,"bold",1.35),optSmall:l(13,i.ink2,"regular",1.4),every:{flexDirection:"row",gap:4,padding:4,borderRadius:999,borderWidth:1.5,borderColor:i.edge,backgroundColor:i.card},everyBtn:{flex:1,minHeight:36,paddingHorizontal:6,borderRadius:999,alignItems:"center",justifyContent:"center"},everyOn:{backgroundColor:i.ink},everyText:{...l(14,i.ink,"bold",1.2),textAlign:"center"},everyTextOn:{color:i.card},coK:{...l(10.5,i.ink3,"mono",1.3),letterSpacing:.63,textTransform:"uppercase",marginBottom:6},subc:{flexDirection:"row",alignItems:"center",gap:12,paddingVertical:12,paddingLeft:12,paddingRight:14,borderRadius:22,backgroundColor:i.clearBg},subcImg:{width:56,height:56,borderRadius:14,overflow:"hidden",alignItems:"center",justifyContent:"center",backgroundColor:i.card},subcName:l(16,i.ink,"bold",1.25),subcSmall:{...l(14,i.ink2,"regular",1.35),marginTop:2},subcAlert:{...l(14,i.riskInk,"bold",1.35),marginTop:2},subcBtn:{minHeight:40,paddingHorizontal:14,borderRadius:999,alignItems:"center",justifyContent:"center",borderWidth:1.5,borderColor:i.ink,backgroundColor:i.card},subcBtnText:l(14,i.ink,"bold",1.2),coProd:{flexDirection:"row",alignItems:"center",gap:12},coProdImg:{width:56,height:56,borderRadius:14,overflow:"hidden",alignItems:"center",justifyContent:"center",backgroundColor:i.soft},coProdT:l(14,i.ink2,"bold",1.35),coProdP:{...l(14,i.ink2,"regular",1.35),marginTop:2},error:{paddingVertical:12,paddingHorizontal:14,borderRadius:14,backgroundColor:i.riskBg},errorText:l(14.5,i.riskInk,"medium",1.4),toast:{paddingVertical:12,paddingHorizontal:15,borderRadius:16,backgroundColor:i.ink},toastText:l(14.5,i.toastInk,"regular",1.4),ghostLine:{height:14,borderRadius:7,backgroundColor:i.tile},fieldLabel:{...l(15,i.ink,"bold",1.3),marginBottom:8},field:{...l(17,i.ink,"regular",1.25),minHeight:52,paddingHorizontal:16,borderRadius:16,borderWidth:1.5,borderColor:i.edge,backgroundColor:i.card},fieldErr:{...l(14,i.riskInk,"bold",1.35),marginTop:6}});return n==="everfur-app"?{...d,...Kl(r),palette:El()}:{...d,palette:i}}var Ql=e.createContext({bottomInset:0,screenBottomInset:0,cardHandoff:null,onOrderHelp:null}),_l=Ql.Provider;function $l(){return e.useContext(Ql)}function ea(){let t=useEverfurTheme(),r=Zt().options.fonts,n=Ri();return e.useMemo(()=>Xl(t,r,n),[t,r,n])}function Page({head:n,foot:i,children:o,testID:l,onRefresh:a}){let s=ea(),{bottomInset:d}=$l(),[c,u]=e.useState(false),p=a?/* @__PURE__ */r.jsx(t.RefreshControl,{refreshing:c,tintColor:s.palette.ink3,colors:[s.palette.ink3],onRefresh:()=>{u(true),a().finally(()=>u(false))}}):void 0;/* @__PURE__ */
|
|
155
|
+
return r.jsx(t.View,{style:s.page,testID:l,children:/* @__PURE__ */r.jsxs(SdkTabletColumn,{children:[n??null,
|
|
156
|
+
/* @__PURE__ */r.jsx(t.ScrollView,{style:{flex:1},contentContainerStyle:s.body,keyboardShouldPersistTaps:"handled",refreshControl:p,children:o}),i?/* @__PURE__ */r.jsx(t.View,{style:[s.foot,{paddingBottom:Math.max(12,d)}],children:i}):null]})})}function Title({children:e,sub:t}){let n=ea();/* @__PURE__ */
|
|
157
157
|
return r.jsxs(r.Fragment,{children:[
|
|
158
|
-
/* @__PURE__ */r.jsx(Text3,{tier:"heading",style:n.title,accessibilityRole:"header",children:e}),t?/* @__PURE__ */r.jsx(Text3,{style:n.sub2,children:t}):null]})}function K({children:e}){let t=
|
|
159
|
-
return r.jsx(Text3,{tier:"heading",style:t.k,accessibilityRole:"header",children:e})}function Card3({children:e,style:n}){let i=
|
|
160
|
-
return r.jsx(t.View,{style:[i.card,n],children:e})}function Thumb2({rx:e,size:n=64,onCard:i,title:o,imageUrl:l}){let a=
|
|
161
|
-
return r.jsxs(t.View,{style:[d,{backgroundColor:
|
|
162
|
-
/* @__PURE__ */r.jsx(Icon,{name:n.icon,size:Math.round(i*.46),color:
|
|
158
|
+
/* @__PURE__ */r.jsx(Text3,{tier:"heading",style:n.title,accessibilityRole:"header",children:e}),t?/* @__PURE__ */r.jsx(Text3,{style:n.sub2,children:t}):null]})}function K({children:e}){let t=ea();/* @__PURE__ */
|
|
159
|
+
return r.jsx(Text3,{tier:"heading",style:t.k,accessibilityRole:"header",children:e})}function Card3({children:e,style:n}){let i=ea();/* @__PURE__ */
|
|
160
|
+
return r.jsx(t.View,{style:[i.card,n],children:e})}function Thumb2({rx:e,size:n=64,onCard:i,title:o,imageUrl:l}){let a=ea(),s=Wi(),d=n===64?a.itemImg:n===56?i?a.subcImg:a.coProdImg:n===44?a.coPic:n===40?a.pic:a.nextIc,c=l?/* @__PURE__ */r.jsx(TilePhoto,{uri:l},l):null,u=l?{overflow:"hidden"}:null;if(s){let n=We(Ae(e,o)),i=typeof d.width=="number"?d.width:48;/* @__PURE__ */
|
|
161
|
+
return r.jsxs(t.View,{style:[d,{backgroundColor:sl(n.tone)},u],accessibilityElementsHidden:true,importantForAccessibility:"no-hide-descendants",children:[
|
|
162
|
+
/* @__PURE__ */r.jsx(Icon,{name:n.icon,size:Math.round(i*.46),color:Yt("thumb")}),c]})}/* @__PURE__ */
|
|
163
163
|
return r.jsxs(t.View,{style:[d,u],accessibilityElementsHidden:true,importantForAccessibility:"no-hide-descendants",children:[
|
|
164
|
-
/* @__PURE__ */r.jsx(ShopV3Icon,{name:e?"rx":"supplement",size:Math.round(n*.46),color:a.palette.onSoft}),c]})}function
|
|
165
|
-
return r.jsx(BlockScope,{children:/* @__PURE__ */r.jsx(CartLine,{variant:"plan",testID:d,name:t,image:n??null,fallback:c,price:i,smalls:o,quantity:l,actions:[{key:"remove",label:a,accessibilityLabel:`${a}: ${t}`,onPress:s}]})})}function IconTile({name:e,size:n=36}){let i=
|
|
166
|
-
return r.jsx(t.View,{style:o,accessibilityElementsHidden:true,importantForAccessibility:"no-hide-descendants",children:/* @__PURE__ */r.jsx(ShopV3Icon,{name:e,size:n===72?30:n===40?21:18,color:i.palette.onSoft})})}var
|
|
164
|
+
/* @__PURE__ */r.jsx(ShopV3Icon,{name:e?"rx":"supplement",size:Math.round(n*.46),color:a.palette.onSoft}),c]})}function ta(t){let n=ea();return e.useMemo(()=>({tint:n.palette.soft,iconSize:Math.round(64*.46),icon:({size:e})=>/* @__PURE__ */r.jsx(ShopV3Icon,{name:t?"rx":"supplement",size:e,color:n.palette.onSoft})}),[t,n.palette.soft,n.palette.onSoft])}function ItemLine({rx:e,title:t,imageUrl:n,price:i,smalls:o,quantity:l,removeLabel:a,onRemove:s,testID:d}){let c=ta(e);/* @__PURE__ */
|
|
165
|
+
return r.jsx(BlockScope,{children:/* @__PURE__ */r.jsx(CartLine,{variant:"plan",testID:d,name:t,image:n??null,fallback:c,price:i,smalls:o,quantity:l,actions:[{key:"remove",label:a,accessibilityLabel:`${a}: ${t}`,onPress:s}]})})}function IconTile({name:e,size:n=36}){let i=ea(),o=n===72?i.emptyTile:n===40?i.carrierIc:i.nextIc;/* @__PURE__ */
|
|
166
|
+
return r.jsx(t.View,{style:o,accessibilityElementsHidden:true,importantForAccessibility:"no-hide-descendants",children:/* @__PURE__ */r.jsx(ShopV3Icon,{name:e,size:n===72?30:n===40?21:18,color:i.palette.onSoft})})}var ra={top:2,bottom:2,left:2,right:2};function Stepper({value:e,max:n,label:i,fewerLabel:o,moreLabel:l,disabled:a,onChange:s}){let d=ea(),c=a||e<=1,u=a||e>=n;/* @__PURE__ */
|
|
167
167
|
return r.jsxs(t.View,{style:d.step,accessibilityLabel:i,accessible:false,children:[
|
|
168
|
-
/* @__PURE__ */r.jsx(t.Pressable,{style:[d.stepButton,c?d.stepOff:null],accessibilityRole:"button",accessibilityLabel:o,accessibilityState:{disabled:c},disabled:c,hitSlop:
|
|
168
|
+
/* @__PURE__ */r.jsx(t.Pressable,{style:[d.stepButton,c?d.stepOff:null],accessibilityRole:"button",accessibilityLabel:o,accessibilityState:{disabled:c},disabled:c,hitSlop:ra,onPress:()=>s(e-1),children:/* @__PURE__ */r.jsx(ShopV3Icon,{name:"minus",size:16,color:d.palette.ink})}),
|
|
169
169
|
/* @__PURE__ */r.jsx(Text3,{tier:"control",style:d.stepValue,accessibilityLabel:`${i}, ${e}`,children:String(e)}),
|
|
170
|
-
/* @__PURE__ */r.jsx(t.Pressable,{style:[d.stepButton,u?d.stepOff:null],accessibilityRole:"button",accessibilityLabel:l,accessibilityState:{disabled:u},disabled:u,hitSlop:
|
|
171
|
-
return r.jsx(t.Pressable,{style:[c.btn,o==="lg"?c.btnLg:o==="sm"?c.btnSm:null,i?c.btnGhost:null,u?c.btnOff:null],accessibilityRole:"button",accessibilityLabel:p,accessibilityState:{disabled:u,busy:!!l},disabled:u,hitSlop:o==="sm"?
|
|
172
|
-
return r.jsx(t.Pressable,{style:[d,l?s.btnOff:null],accessibilityRole:o,accessibilityLabel:a??e,accessibilityState:{disabled:!!l},disabled:l,hitSlop:
|
|
173
|
-
return r.jsx(BlockScope,{children:/* @__PURE__ */r.jsx(ThemeProvider,{theme:l,children:/* @__PURE__ */r.jsx(SummaryList,{variant:n?"inset":"card",rows:d,total:c,trailingRows:u})})})}function Track({steps:e,label:n}){let i=
|
|
170
|
+
/* @__PURE__ */r.jsx(t.Pressable,{style:[d.stepButton,u?d.stepOff:null],accessibilityRole:"button",accessibilityLabel:l,accessibilityState:{disabled:u},disabled:u,hitSlop:ra,onPress:()=>s(e+1),children:/* @__PURE__ */r.jsx(ShopV3Icon,{name:"plus",size:16,color:d.palette.ink})})]})}function Btn({label:e,onPress:n,ghost:i,size:o="md",busy:l,busyLabel:a,disabled:s,testID:d}){let c=ea(),u=!!s||!!l,p=l&&a?a:e;/* @__PURE__ */
|
|
171
|
+
return r.jsx(t.Pressable,{style:[c.btn,o==="lg"?c.btnLg:o==="sm"?c.btnSm:null,i?c.btnGhost:null,u?c.btnOff:null],accessibilityRole:"button",accessibilityLabel:p,accessibilityState:{disabled:u,busy:!!l},disabled:u,hitSlop:o==="sm"?ra:void 0,onPress:n,testID:d,children:/* @__PURE__ */r.jsx(Text3,{tier:"control",style:[c.btnText,o==="lg"?c.btnTextLg:o==="sm"?c.btnTextSm:null,i?c.btnTextGhost:null],numberOfLines:2,children:p})})}function LinkBtn({label:e,onPress:n,tone:i="link",role:o="button",disabled:l,a11yLabel:a}){let s=ea(),d=i==="remove"?s.rm:i==="risk"?s.cancel:s.link,c=i==="remove"?s.rmText:i==="risk"?s.cancelText:s.linkText;/* @__PURE__ */
|
|
172
|
+
return r.jsx(t.Pressable,{style:[d,l?s.btnOff:null],accessibilityRole:o,accessibilityLabel:a??e,accessibilityState:{disabled:!!l},disabled:l,hitSlop:ra,onPress:n,children:/* @__PURE__ */r.jsx(Text3,{tier:"control",style:c,children:e})})}function Sum2({rows:t,flat:n}){let i=ea(),o=Ri(),l=e.useMemo(()=>({colors:n?{ink:i.palette.ink,bg:i.palette.paper}:{ink:i.palette.ink}}),[n,i.palette.ink,i.palette.paper]);if(t.length===0)return null;if(o==="everfur-app")/* @__PURE__ */return r.jsx(Sum,{rows:t,total:t[t.length-1]?.total===true});let a=t.findIndex(e=>e.total===true),s=t.map((e,t)=>({key:`${e.k}-${t}`,term:e.k,value:e.v})),d=a>=0?s.slice(0,a):s,c=a>=0?s[a]:void 0,u=a>=0&&a<s.length-1?s.slice(a+1):void 0;/* @__PURE__ */
|
|
173
|
+
return r.jsx(BlockScope,{children:/* @__PURE__ */r.jsx(ThemeProvider,{theme:l,children:/* @__PURE__ */r.jsx(SummaryList,{variant:n?"inset":"card",rows:d,total:c,trailingRows:u})})})}function Track({steps:e,label:n}){let i=ea();/* @__PURE__ */
|
|
174
174
|
return r.jsx(t.View,{accessibilityLabel:n,children:e.map((n,o)=>{let l=o===e.length-1,a=n.state==="done"&&e[o+1]?.state==="done";/* @__PURE__ */
|
|
175
175
|
return r.jsxs(t.View,{style:[i.trackLi,l?i.trackLast:null],accessible:true,accessibilityLabel:[n.title,n.line].filter(Boolean).join(", "),children:[l?null:/* @__PURE__ */r.jsx(t.View,{style:[i.trackRail,a?i.trackRailDone:null]}),
|
|
176
176
|
/* @__PURE__ */r.jsx(t.View,{style:[i.trackDot,n.state==="done"?i.trackDotDone:n.state==="now"?i.trackDotNow:null],children:n.state==="done"?/* @__PURE__ */r.jsx(ShopV3Icon,{name:"check",size:13,color:i.palette.card}):null}),
|
|
177
177
|
/* @__PURE__ */r.jsxs(t.View,{style:i.grow,children:[
|
|
178
|
-
/* @__PURE__ */r.jsx(Text3,{style:[i.trackT,n.state==="next"?i.trackTNext:null],children:n.title}),n.line?/* @__PURE__ */r.jsx(Text3,{style:i.trackD,children:n.line}):null]})]},n.key)})})}var
|
|
179
|
-
return r.jsx(t.View,{style:[i.pill,o],children:/* @__PURE__ */r.jsx(Text3,{tier:"badge",style:[i.pillText,l],children:e})})}function Empty({icon:e,title:n,body:i,action:o}){let l=
|
|
178
|
+
/* @__PURE__ */r.jsx(Text3,{style:[i.trackT,n.state==="next"?i.trackTNext:null],children:n.title}),n.line?/* @__PURE__ */r.jsx(Text3,{style:i.trackD,children:n.line}):null]})]},n.key)})})}var na={wait:"soon",done:"clear",risk:"overdue",quiet:"later",sub:"plain"};function ia(e){return{label:e.label,tone:na[e.tone]}}function StatusPill({label:e,tone:n}){let i=ea();if(Ri()==="everfur-app")/* @__PURE__ */return r.jsx(Pill2,{pill:ia({label:e,tone:n})});let o=n==="done"?i.pillDone:n==="sub"?i.pillSub:n==="risk"?i.pillRisk:n==="quiet"?i.pillQuiet:null,l=n==="done"?i.pillDoneText:n==="sub"?i.pillSubText:n==="risk"?i.pillRiskText:n==="quiet"?i.pillQuietText:null;/* @__PURE__ */
|
|
179
|
+
return r.jsx(t.View,{style:[i.pill,o],children:/* @__PURE__ */r.jsx(Text3,{tier:"badge",style:[i.pillText,l],children:e})})}function Empty({icon:e,title:n,body:i,action:o}){let l=ea();/* @__PURE__ */
|
|
180
180
|
return r.jsxs(t.View,{style:l.empty,children:[
|
|
181
181
|
/* @__PURE__ */r.jsx(IconTile,{name:e,size:72}),
|
|
182
|
-
/* @__PURE__ */r.jsx(Text3,{tier:"heading",style:l.emptyTitle,accessibilityRole:"header",children:n}),i?/* @__PURE__ */r.jsx(Text3,{style:l.emptyBody,children:i}):null,o?/* @__PURE__ */r.jsx(t.View,{style:l.emptyAct,children:o}):null]})}function Ghosts({rows:e=3}){let n=
|
|
183
|
-
return r.jsx(t.View,{style:[n.card,{gap:12}],accessibilityElementsHidden:true,importantForAccessibility:"no-hide-descendants",testID:"shop-ghost",children:Array.from({length:e},(e,o)=>/* @__PURE__ */r.jsx(t.View,{style:[n.ghostLine,{width:i[o%3]}]},o))})}function ErrorLine({line:e,children:n}){let i=
|
|
184
|
-
/* @__PURE__ */r.jsx(Text3,{style:i.errorText,accessibilityRole:"alert",children:e}),n??null]}):null}function Toast2({line:e}){let n=
|
|
182
|
+
/* @__PURE__ */r.jsx(Text3,{tier:"heading",style:l.emptyTitle,accessibilityRole:"header",children:n}),i?/* @__PURE__ */r.jsx(Text3,{style:l.emptyBody,children:i}):null,o?/* @__PURE__ */r.jsx(t.View,{style:l.emptyAct,children:o}):null]})}function Ghosts({rows:e=3}){let n=ea(),i=["100%","82%","64%"];/* @__PURE__ */
|
|
183
|
+
return r.jsx(t.View,{style:[n.card,{gap:12}],accessibilityElementsHidden:true,importantForAccessibility:"no-hide-descendants",testID:"shop-ghost",children:Array.from({length:e},(e,o)=>/* @__PURE__ */r.jsx(t.View,{style:[n.ghostLine,{width:i[o%3]}]},o))})}function ErrorLine({line:e,children:n}){let i=ea();return e?/* @__PURE__ */r.jsxs(t.View,{style:[i.error,{gap:10}],accessibilityLiveRegion:"polite",testID:"shop-error",children:[
|
|
184
|
+
/* @__PURE__ */r.jsx(Text3,{style:i.errorText,accessibilityRole:"alert",children:e}),n??null]}):null}function Toast2({line:e}){let n=ea();return e?/* @__PURE__ */r.jsx(t.View,{style:n.toast,accessibilityLiveRegion:"polite",testID:"shop-toast",children:/* @__PURE__ */r.jsx(Text3,{style:n.toastText,children:e})}):null}function Sheet2({open:e,kicker:n,closeLabel:i,onClose:o,children:l,foot:a,testID:s}){let d=ea(),{screenBottomInset:c}=$l(),u=_o();/* @__PURE__ */
|
|
185
185
|
return r.jsx(t.Modal,{visible:e,transparent:true,animationType:"slide",onRequestClose:o,statusBarTranslucent:true,children:/* @__PURE__ */r.jsxs(t.KeyboardAvoidingView,{style:d.scrim,behavior:t.Platform.OS==="ios"?"padding":void 0,children:[
|
|
186
186
|
/* @__PURE__ */r.jsx(t.Pressable,{style:{position:"absolute",top:0,right:0,bottom:0,left:0},onPress:o,accessibilityRole:"button",accessibilityLabel:i}),
|
|
187
|
-
/* @__PURE__ */r.jsxs(t.View,{style
|
|
187
|
+
/* @__PURE__ */r.jsxs(t.View,{style:$o([d.sheet,{paddingBottom:Math.max(24,c+6)}],u),accessibilityViewIsModal:true,testID:s??"shop-sheet",children:[
|
|
188
188
|
/* @__PURE__ */r.jsx(t.View,{style:d.grab,accessibilityElementsHidden:true,importantForAccessibility:"no-hide-descendants"}),
|
|
189
189
|
/* @__PURE__ */r.jsxs(t.View,{style:d.sheetTop,children:[
|
|
190
190
|
/* @__PURE__ */r.jsx(Text3,{tier:"compact",style:d.kicker,accessibilityRole:"header",children:n}),
|
|
191
|
-
/* @__PURE__ */r.jsx(t.Pressable,{style:d.x,onPress:o,accessibilityRole:"button",accessibilityLabel:i,hitSlop:
|
|
192
|
-
/* @__PURE__ */r.jsx(t.ScrollView,{style:{flexGrow:0},contentContainerStyle:d.co,keyboardShouldPersistTaps:"handled",children:l}),a?/* @__PURE__ */r.jsx(t.View,{style:{marginTop:12,gap:10},children:a}):null]})]})})}function CoRow({icon:e,k:n,value:i,onPress:o,disabled:l}){let a=
|
|
191
|
+
/* @__PURE__ */r.jsx(t.Pressable,{style:d.x,onPress:o,accessibilityRole:"button",accessibilityLabel:i,hitSlop:ra,children:/* @__PURE__ */r.jsx(ShopV3Icon,{name:"close",size:18,color:d.palette.ink})})]}),
|
|
192
|
+
/* @__PURE__ */r.jsx(t.ScrollView,{style:{flexGrow:0},contentContainerStyle:d.co,keyboardShouldPersistTaps:"handled",children:l}),a?/* @__PURE__ */r.jsx(t.View,{style:{marginTop:12,gap:10},children:a}):null]})]})})}function CoRow({icon:e,k:n,value:i,onPress:o,disabled:l}){let a=ea(),s=/* @__PURE__ */r.jsxs(r.Fragment,{children:[e?/* @__PURE__ */r.jsx(ShopV3Icon,{name:e,size:20,color:a.palette.ink2}):null,
|
|
193
193
|
/* @__PURE__ */r.jsx(Text3,{style:a.coKey,children:n}),
|
|
194
|
-
/* @__PURE__ */r.jsx(Text3,{style:a.coValue,numberOfLines:2,children:i}),o?/* @__PURE__ */r.jsx(ShopV3Icon,{name:"chev",size:16,color:a.palette.ink3}):null]});return o?/* @__PURE__ */r.jsx(t.Pressable,{style:[a.coRow,l?a.btnOff:null],onPress:o,disabled:l,accessibilityRole:"button",accessibilityLabel:`${n}, ${i}`,children:s}):/* @__PURE__ */r.jsx(t.View,{style:a.coRow,accessible:true,accessibilityLabel:`${n}, ${i}`,children:s})}function Opt({on:e,name:n,small:i,onPress:o}){let l=
|
|
194
|
+
/* @__PURE__ */r.jsx(Text3,{style:a.coValue,numberOfLines:2,children:i}),o?/* @__PURE__ */r.jsx(ShopV3Icon,{name:"chev",size:16,color:a.palette.ink3}):null]});return o?/* @__PURE__ */r.jsx(t.Pressable,{style:[a.coRow,l?a.btnOff:null],onPress:o,disabled:l,accessibilityRole:"button",accessibilityLabel:`${n}, ${i}`,children:s}):/* @__PURE__ */r.jsx(t.View,{style:a.coRow,accessible:true,accessibilityLabel:`${n}, ${i}`,children:s})}function Opt({on:e,name:n,small:i,onPress:o}){let l=ea();/* @__PURE__ */
|
|
195
195
|
return r.jsxs(t.Pressable,{style:[l.opt,e?l.optOn:null],onPress:o,accessibilityRole:"radio",accessibilityState:{checked:e,selected:e},accessibilityLabel:[n,i].filter(Boolean).join(", "),children:[
|
|
196
196
|
/* @__PURE__ */r.jsx(t.View,{style:[l.optRadio,e?l.optRadioOn:null]}),
|
|
197
197
|
/* @__PURE__ */r.jsxs(t.View,{style:l.grow,children:[
|
|
198
|
-
/* @__PURE__ */r.jsx(Text3,{style:l.optName,children:n}),i?/* @__PURE__ */r.jsx(Text3,{style:l.optSmall,children:i}):null]})]})}function Field2({label:e,value:n,onChange:i,autoComplete:o,error:l,kind:a}){let s=
|
|
198
|
+
/* @__PURE__ */r.jsx(Text3,{style:l.optName,children:n}),i?/* @__PURE__ */r.jsx(Text3,{style:l.optSmall,children:i}):null]})]})}function Field2({label:e,value:n,onChange:i,autoComplete:o,error:l,kind:a}){let s=ea();/* @__PURE__ */
|
|
199
199
|
return r.jsxs(t.View,{children:[
|
|
200
200
|
/* @__PURE__ */r.jsx(Text3,{tier:"control",style:s.fieldLabel,children:e}),
|
|
201
|
-
/* @__PURE__ */r.jsx(
|
|
201
|
+
/* @__PURE__ */r.jsx(kl,{style:s.field,value:n,onChangeText:i,accessibilityLabel:e,autoComplete:o,placeholderTextColor:s.palette.ink3,...a==="state"?{autoCapitalize:"characters",autoCorrect:false,maxLength:2}:null,...a==="zip"?{keyboardType:"number-pad",maxLength:10}:null}),l?/* @__PURE__ */r.jsx(Text3,{style:s.fieldErr,children:l}):null]})}function oa(e,t){return e.steps?.find(e=>e.key===t)?.at??null}function la(e,t){let r=Me[e.summary.status];if(r===void 0)return null;let n=e.shipments.flatMap(e=>e.tracking),i=e=>n.filter(t=>e(t.status)).map(e=>e.occurredAt).filter(e=>!!e).sort()[0]??null,o=zt(e),l=o?.trackingNumber?[o.carrier,o.trackingNumber].filter(Boolean).join(" "):null,a=ee(At(e),{weekday:true}),s=r===5;return[{key:"approved",title:t.stepApproved,when:formatWhen(e.summary.placedAt),text:null},{key:"checking",title:t.stepChecking,when:null,text:null},{key:"filled",title:t.stepFilled,when:null,text:null},{key:"shipped",title:t.stepShipped,when:formatWhen(oa(e,"shipped")??i(()=>true)),text:l},{key:"delivered",title:t.stepDelivered,when:formatWhen(oa(e,"delivered")??i(e=>e==="delivered")),text:!s&&a?t.expected(a):null}].map((e,t)=>{let n=t<r||s?"done":t===r?"now":"next";return{...e,when:n==="next"?null:e.when,state:n}})}function AppOrderScreen({orderId:e,go:n}){let{copy:i,v3:o,petName:l}=ue(),a=$l(),s=Zt(),d=tr(),{order:c,o:u,ref:p,line:h,asking:g,setAsking:f,pay:m,cancel:b,busy:y,onPay:x,onCancel:k,sum:w,refundRow:v,paidCard:S,buyAgain:j}=yl(e,n);if(!u)/* @__PURE__ */
|
|
202
202
|
return r.jsx(Frame,{onRefresh:c.reread,children:/* @__PURE__ */r.jsxs(t.View,{testID:"shop-order",children:[c.phase==="loading"?/* @__PURE__ */r.jsx(Ghost,{rows:2}):null,
|
|
203
203
|
/* @__PURE__ */r.jsx(Stack,{children:c.phase==="loading"?/* @__PURE__ */r.jsxs(Card2,{children:[
|
|
204
204
|
/* @__PURE__ */r.jsx(CardTitle,{children:i.whereItStands}),
|
|
205
205
|
/* @__PURE__ */r.jsx(Ghost,{})]}):/* @__PURE__ */r.jsx(LoadFailed,{copy:i,thing:i.thingOrder,retry:c.refresh})}),
|
|
206
|
-
/* @__PURE__ */r.jsx(Legal,{line:i.legalTracking})]})});let C=[p?o.orderTitle(p):null,
|
|
206
|
+
/* @__PURE__ */r.jsx(Legal,{line:i.legalTracking})]})});let C=[p?o.orderTitle(p):null,Vt(u,i,o)].filter(Boolean).join(" · "),I=la(u,i),L=zt(u),z=L?.carrier??null,A=s.v("rowLink"),R=Dt.noteAfterTotal.marginTop;/* @__PURE__ */
|
|
207
207
|
return r.jsxs(Frame,{onRefresh:c.reread,children:[
|
|
208
208
|
/* @__PURE__ */r.jsxs(t.View,{testID:"shop-order",children:[
|
|
209
|
-
/* @__PURE__ */r.jsx(TitleBlock,{title:
|
|
209
|
+
/* @__PURE__ */r.jsx(TitleBlock,{title:Ft(u,i,o),meta:C||null}),
|
|
210
210
|
/* @__PURE__ */r.jsx(InlineError,{line:h}),
|
|
211
211
|
/* @__PURE__ */r.jsxs(Stack,{children:[I?/* @__PURE__ */r.jsxs(Card2,{children:[
|
|
212
212
|
/* @__PURE__ */r.jsx(CardTitle,{children:i.whereItStands}),
|
|
213
|
-
/* @__PURE__ */r.jsx(t.View,{accessibilityLabel:o.tracking,children:/* @__PURE__ */r.jsx(Tracker,{copy:i,steps:I})}),L?.trackingUrl?/* @__PURE__ */r.jsx(t.View,{style:{marginTop:R},children:/* @__PURE__ */r.jsx(Press,{role:"link",label:z?o.trackOn(z):i.trackPackage,onPress:()=>d.openExternal(L.trackingUrl),style:[s.v("cardLink"),{alignSelf:"flex-start"}],children:/* @__PURE__ */r.jsx(T,{k:"cardLink",bare:true,style:
|
|
213
|
+
/* @__PURE__ */r.jsx(t.View,{accessibilityLabel:o.tracking,children:/* @__PURE__ */r.jsx(Tracker,{copy:i,steps:I})}),L?.trackingUrl?/* @__PURE__ */r.jsx(t.View,{style:{marginTop:R},children:/* @__PURE__ */r.jsx(Press,{role:"link",label:z?o.trackOn(z):i.trackPackage,onPress:()=>d.openExternal(L.trackingUrl),style:[s.v("cardLink"),{alignSelf:"flex-start"}],children:/* @__PURE__ */r.jsx(T,{k:"cardLink",bare:true,style:_t("cardLink"),children:z?o.trackOn(z):i.trackPackage})})}):null]}):null,
|
|
214
214
|
/* @__PURE__ */r.jsxs(Card2,{children:[
|
|
215
215
|
/* @__PURE__ */r.jsx(CardTitle,{children:i.inTheBox}),
|
|
216
|
-
/* @__PURE__ */r.jsx(t.View,{children:u.lines.map((e,t)=>{let n=Ae(
|
|
216
|
+
/* @__PURE__ */r.jsx(t.View,{children:u.lines.map((e,t)=>{let n=We(Ae(e.requiresRx,e.title)),a=[l(e.petId),o.orderItemLine(e.quantity)].filter(Boolean).join(" · ");/* @__PURE__ */
|
|
217
217
|
return r.jsxs(ItemRow,{index:t,count:u.lines.length,first:"trackItemsLiFirst",last:"trackItemsLiLast",thumb:/* @__PURE__ */r.jsx(Thumb,{tone:n.tone,icon:n.icon,imageUrl:e.imageUrl??null}),children:[
|
|
218
218
|
/* @__PURE__ */r.jsx(ItemName,{name:e.title,rx:e.requiresRx,copy:i}),a?/* @__PURE__ */r.jsx(T,{k:"itemsMeta",children:a}):null]},e.lineId)})})]}),
|
|
219
219
|
/* @__PURE__ */r.jsxs(Card2,{children:[
|
|
220
220
|
/* @__PURE__ */r.jsx(CardTitle,{children:i.payment}),
|
|
221
|
-
/* @__PURE__ */r.jsx(Sum,{rows:w,total:true}),v?/* @__PURE__ */r.jsx(t.View,{style:{marginTop:R},children:/* @__PURE__ */r.jsx(Sum,{rows:[v],total:false})}):null,S?/* @__PURE__ */r.jsx(T,{k:"noteAfterTotal",children:`${o.paidWith} ${
|
|
221
|
+
/* @__PURE__ */r.jsx(Sum,{rows:w,total:true}),v?/* @__PURE__ */r.jsx(t.View,{style:{marginTop:R},children:/* @__PURE__ */r.jsx(Sum,{rows:[v],total:false})}):null,S?/* @__PURE__ */r.jsx(T,{k:"noteAfterTotal",children:`${o.paidWith} ${re(S.brand,S.last4)}`}):null,u.canPay?/* @__PURE__ */r.jsx(t.View,{style:{marginTop:s.v("breaks").marginTop},testID:"shop-order-pay",children:/* @__PURE__ */r.jsx(InkButton,{action:{label:i.payOrder,busy:m.busy,busyLabel:i.saving,disabled:y,onPress:x}})}):null]}),j||a.onOrderHelp||u.canCancel?/* @__PURE__ */r.jsxs(t.View,{style:{rowGap:s.v("sheetActions").rowGap},children:[j?/* @__PURE__ */r.jsx(OutlineButton,{k:"btnOutline",action:{label:o.buyAgain,onPress:j}}):null,a.onOrderHelp?/* @__PURE__ */r.jsx(CardLinkButton,{label:o.orderHelp,onPress:()=>a.onOrderHelp?.(e)}):null,u.canCancel?/* @__PURE__ */r.jsx(CardLinkButton,{label:i.cancelOrder,danger:true,disabled:y,onPress:()=>f(true)}):null]}):null,
|
|
222
222
|
/* @__PURE__ */r.jsxs(Press,{role:"link",label:i.allOrders,onPress:()=>n({name:"orders"}),style:[A,{flexDirection:"row",alignItems:"center",rowGap:0,columnGap:0}],children:[
|
|
223
223
|
/* @__PURE__ */r.jsx(PartIcon,{name:"box",k:"rowLinkIcon",inkKey:"rowLink",style:{marginRight:A.columnGap}}),
|
|
224
224
|
/* @__PURE__ */r.jsx(T,{k:"rowLink",bare:true,style:{flex:1,minWidth:0},children:i.allOrders}),
|
|
225
225
|
/* @__PURE__ */r.jsx(PartIcon,{name:"chevron",k:"rowLinkChevron",style:{marginLeft:A.columnGap}})]})]}),
|
|
226
226
|
/* @__PURE__ */r.jsx(Legal,{line:i.legalTracking})]}),
|
|
227
227
|
/* @__PURE__ */r.jsx(ConfirmSheet,{open:g,title:o.cancelAsk,body:o.cancelBody,confirm:i.cancelOrder,keep:i.keepIt,closeLabel:i.close,busyLabel:i.saving,busy:b.busy,error:null,onConfirm:k,onClose:()=>!b.busy&&f(false)})]})}function CardLinkButton({label:e,onPress:t,danger:n,disabled:i}){let o=n?"linkDanger":"cardLink";/* @__PURE__ */
|
|
228
|
-
return r.jsx(Press,{label:e,onPress:t,disabled:i===true,style:{minHeight:44,justifyContent:"center",alignSelf:"center",opacity:i?.4:1},children:/* @__PURE__ */r.jsx(T,{k:o,bare:true,style:[
|
|
229
|
-
return r.jsx(ErrorLine,{line:l.loadFailed(l.thingPlan),children:/* @__PURE__ */r.jsx(Btn,{ghost:true,size:"sm",label:l.tryAgain,onPress:n.refresh})});let S=c?n.plans.find(e=>e.planId===c)??null:null,j=e=>{u(e.planId),h("main"),f(null),b(null)},C=()=>{w||(u(null),h("main"),f(null),b(null))},I=(e,t,r)=>e?e.ok?(b(null),f(t),n.put(e.value),s.refresh(),true):(b(
|
|
228
|
+
return r.jsx(Press,{label:e,onPress:t,disabled:i===true,style:{minHeight:44,justifyContent:"center",alignSelf:"center",opacity:i?.4:1},children:/* @__PURE__ */r.jsx(T,{k:o,bare:true,style:[_t(o),{textDecorationLine:"underline",textAlign:"center"}],children:e})})}var aa=[30,60,90];function sa(e){return aa.includes(e)?aa:[...aa,e].sort((e,t)=>e-t)}function da(){let{client:t}=ue(),r=we(),[n,i]=e.useState(/* @__PURE__ */new Map),o=r.value;e.useEffect(()=>i(/* @__PURE__ */new Map),[o]);let l=e.useMemo(()=>(o?.plans??[]).map(e=>n.get(e.planId)??e).filter(e=>e.state!=="cancelled"),[o,n]),a=[...new Set(l.flatMap(e=>e.lines.map(e=>e.offerId)))].sort(),s=pe(a.length>0?`v3-plan-offers:${a.join(",")}`:null,async()=>{let e=await Promise.all(a.map(e=>t.offer(e)));return F(new Map(a.map((t,r)=>[t,e[r].ok?e[r].value:null])))});return{phase:r.phase==="unavailable"?"none":r.phase==="failed"?"failed":r.phase==="loading"||a.length>0&&s.phase==="loading"?"loading":"ready",plans:l,offers:s.value??/* @__PURE__ */new Map,refresh:r.refresh,put:e=>i(t=>new Map(t).set(e.planId,e))}}function ca(e,t,r){return Ot(e.lines.map(e=>({title:t.get(e.offerId)?.title??r})))}var ua=(e,t)=>e.lines.some(e=>t.get(e.offerId)?.requiresRx===true);function Subscriptions({subs:n,onOrders:i}){let{client:o,copy:l,v3:a}=ue(),{pkg:s}=Ye(),d=ea(),[c,u]=e.useState(null),[p,h]=e.useState("main"),[g,f]=e.useState(null),[m,b]=e.useState(null),y=Te((e,t,r)=>o.updatePlan(t.planId,{idempotencyKey:e.key(`cadence:${t.planId}:${r}`),cadenceDays:r})),x=Te((e,t,r)=>o.planAction(t.planId,{idempotencyKey:e.key(`${r}:${t.planId}`),operation:r})),k=Te((e,t)=>o.cancelPlan(t.planId)),w=y.busy||x.busy||k.busy,v=Je(s);if(n.phase==="none"||n.phase==="ready"&&n.plans.length===0)return null;if(n.phase==="loading")/* @__PURE__ */return r.jsx(Ghosts,{rows:2});if(n.phase==="failed")/* @__PURE__ */
|
|
229
|
+
return r.jsx(ErrorLine,{line:l.loadFailed(l.thingPlan),children:/* @__PURE__ */r.jsx(Btn,{ghost:true,size:"sm",label:l.tryAgain,onPress:n.refresh})});let S=c?n.plans.find(e=>e.planId===c)??null:null,j=e=>{u(e.planId),h("main"),f(null),b(null)},C=()=>{w||(u(null),h("main"),f(null),b(null))},I=(e,t,r)=>e?e.ok?(b(null),f(t),n.put(e.value),s.refresh(),true):(b(ae(l,e.error)),false):false,L=(e,t)=>{w||t===e.cadenceDays||(f(null),y.run(e,t).then(e=>I(e,null)))},z=(e,t)=>{f(null),x.run(e,t).then(e=>{I(e,t==="skip"?a.skipped:null)&&h("main")})},A=e=>{k.run(e).then(e=>{I(e,null)&&(u(null),h("main"))})};/* @__PURE__ */
|
|
230
230
|
return r.jsxs(r.Fragment,{children:[
|
|
231
|
-
/* @__PURE__ */r.jsx(K,{children:a.manageKicker}),n.plans.map(e=>/* @__PURE__ */r.jsx(PlanCard,{plan:e,name:
|
|
232
|
-
/* @__PURE__ */r.jsx(Sheet2,{open:S!==null,kicker:a.manageKicker,closeLabel:l.close,onClose:C,testID:"shop-manage",children:S?p==="main"?/* @__PURE__ */r.jsx(ManageMain,{plan:S,name:
|
|
231
|
+
/* @__PURE__ */r.jsx(K,{children:a.manageKicker}),n.plans.map(e=>/* @__PURE__ */r.jsx(PlanCard,{plan:e,name:ca(e,n.offers,l.itemNoLongerSold),rx:ua(e,n.offers),month:v,onManage:()=>j(e)},e.planId)),
|
|
232
|
+
/* @__PURE__ */r.jsx(Sheet2,{open:S!==null,kicker:a.manageKicker,closeLabel:l.close,onClose:C,testID:"shop-manage",children:S?p==="main"?/* @__PURE__ */r.jsx(ManageMain,{plan:S,name:ca(S,n.offers,l.itemNoLongerSold),rx:ua(S,n.offers),busy:w,line:g,error:m,onEvery:e=>L(S,e),onSkip:()=>z(S,"skip"),onPause:()=>{f(null),b(null),h("pause")},onResume:()=>z(S,"resume"),onCancel:()=>{f(null),b(null),h("cancel")},onOrders:()=>{C(),i()}}):/* @__PURE__ */r.jsxs(t.View,{style:{gap:10},children:[
|
|
233
233
|
/* @__PURE__ */r.jsx(Text3,{tier:"heading",style:d.sheetTitle,accessibilityRole:"header",children:p==="pause"?l.pausePlanAsk:a.cancelSubscriptionAsk}),
|
|
234
234
|
/* @__PURE__ */r.jsx(Text3,{style:d.sub2,children:p==="pause"?l.pausePlanBody:a.cancelSubscriptionBody}),
|
|
235
235
|
/* @__PURE__ */r.jsx(ErrorLine,{line:m}),
|
|
236
236
|
/* @__PURE__ */r.jsxs(t.View,{style:{gap:10,marginTop:8},children:[
|
|
237
237
|
/* @__PURE__ */r.jsx(Btn,{label:p==="pause"?l.pausePlan:a.cancelSubscription,busy:w,busyLabel:l.saving,onPress:()=>p==="pause"?z(S,"pause"):A(S),testID:p==="pause"?"shop-plan-pause-confirm":"shop-plan-cancel-confirm"}),
|
|
238
|
-
/* @__PURE__ */r.jsx(Btn,{ghost:true,label:l.keepIt,disabled:w,onPress:()=>{b(null),h("main")}})]})]}):null})]})}function PlanCard({plan:e,name:n,rx:i,month:o,onManage:l}){let{copy:a,v3:s}=
|
|
238
|
+
/* @__PURE__ */r.jsx(Btn,{ghost:true,label:l.keepIt,disabled:w,onPress:()=>{b(null),h("main")}})]})]}):null})]})}function PlanCard({plan:e,name:n,rx:i,month:o,onManage:l}){let{copy:a,v3:s}=ue(),d=ea(),c=e.state==="active"?ee(e.nextRun):null,u=pa(e,a,o);/* @__PURE__ */
|
|
239
239
|
return r.jsxs(t.View,{style:d.subc,testID:"shop-plan-card",children:[
|
|
240
240
|
/* @__PURE__ */r.jsx(Thumb2,{rx:i,size:56,onCard:true,title:n}),
|
|
241
241
|
/* @__PURE__ */r.jsxs(t.View,{style:d.grow,accessible:true,accessibilityLabel:[n,c?s.nextBox(c):null,u??s.everyDays(e.cadenceDays)].filter(Boolean).join(", "),children:[
|
|
242
242
|
/* @__PURE__ */r.jsx(Text3,{style:d.subcName,children:n}),c?/* @__PURE__ */r.jsx(Text3,{style:d.subcSmall,children:s.nextBox(c)}):null,u?/* @__PURE__ */r.jsx(Text3,{style:e.state==="paused"&&(e.stopReason??"customer")==="customer"?d.subcSmall:d.subcAlert,children:u}):/* @__PURE__ */r.jsx(Text3,{style:d.subcSmall,children:s.everyDays(e.cadenceDays)})]}),
|
|
243
|
-
/* @__PURE__ */r.jsx(t.Pressable,{style:d.subcBtn,onPress:l,accessibilityRole:"button",accessibilityLabel:s.manageTitle(n),hitSlop:{top:2,bottom:2,left:2,right:2},children:/* @__PURE__ */r.jsx(Text3,{tier:"control",style:d.subcBtnText,children:s.manage})})]})}function
|
|
243
|
+
/* @__PURE__ */r.jsx(t.Pressable,{style:d.subcBtn,onPress:l,accessibilityRole:"button",accessibilityLabel:s.manageTitle(n),hitSlop:{top:2,bottom:2,left:2,right:2},children:/* @__PURE__ */r.jsx(Text3,{tier:"control",style:d.subcBtnText,children:s.manage})})]})}function pa(e,t,r){let n=e.stopReason;return n==="payment_declined"?t.declined(r):n&&n!=="customer"?t.stopReason(n):e.state==="paused"?t.pausePlanBody:null}function ManageMain({plan:e,name:n,rx:i,busy:o,line:l,error:a,onEvery:s,onSkip:d,onPause:c,onResume:u,onCancel:p,onOrders:h}){let{copy:g,v3:f}=ue(),m=ea(),b=e.state==="active",y=e.state==="paused",x=b?ee(e.nextRun):null;/* @__PURE__ */
|
|
244
244
|
return r.jsxs(t.View,{style:m.co,children:[
|
|
245
245
|
/* @__PURE__ */r.jsxs(t.View,{style:m.coProd,accessible:true,accessibilityRole:"header",accessibilityLabel:`${f.manageTitle(n)}, ${f.subscribedLine(e.cadenceDays,x)}`,children:[
|
|
246
246
|
/* @__PURE__ */r.jsx(Thumb2,{rx:i,size:56,title:n}),
|
|
@@ -249,24 +249,24 @@ return r.jsxs(t.View,{style:m.co,children:[
|
|
|
249
249
|
/* @__PURE__ */r.jsx(Text3,{style:m.coProdP,children:f.subscribedLine(e.cadenceDays,x)})]})]}),
|
|
250
250
|
/* @__PURE__ */r.jsxs(t.View,{children:[
|
|
251
251
|
/* @__PURE__ */r.jsx(Text3,{tier:"compact",style:m.coK,children:f.shipsEvery}),
|
|
252
|
-
/* @__PURE__ */r.jsx(t.View,{style:m.every,accessibilityRole:"radiogroup",accessibilityLabel:f.shipsEvery,children:
|
|
252
|
+
/* @__PURE__ */r.jsx(t.View,{style:m.every,accessibilityRole:"radiogroup",accessibilityLabel:f.shipsEvery,children:sa(e.cadenceDays).map(n=>{let i=n===e.cadenceDays;/* @__PURE__ */
|
|
253
253
|
return r.jsx(t.Pressable,{style:[m.everyBtn,i?m.everyOn:null],onPress:()=>s(n),disabled:o,accessibilityRole:"radio",accessibilityLabel:f.daysChip(n),accessibilityState:{checked:i,disabled:o},testID:`shop-plan-every-${n}`,children:/* @__PURE__ */r.jsx(Text3,{tier:"control",style:[m.everyText,i?m.everyTextOn:null],numberOfLines:1,children:f.daysChip(n)})},n)})})]}),
|
|
254
254
|
/* @__PURE__ */r.jsx(Toast2,{line:l}),
|
|
255
255
|
/* @__PURE__ */r.jsx(ErrorLine,{line:a}),b?/* @__PURE__ */r.jsx(Btn,{ghost:true,label:f.skipNext,disabled:o,onPress:d,testID:"shop-plan-skip"}):null,y?/* @__PURE__ */r.jsx(Btn,{label:g.resumePlan,busy:o,busyLabel:g.saving,onPress:u,testID:"shop-plan-resume"}):null,b?/* @__PURE__ */r.jsx(LinkBtn,{label:g.pausePlan,disabled:o,onPress:c}):null,
|
|
256
256
|
/* @__PURE__ */r.jsx(LinkBtn,{label:f.cancelSubscription,tone:"risk",disabled:o,onPress:p}),
|
|
257
|
-
/* @__PURE__ */r.jsx(LinkBtn,{label:g.allOrders,onPress:h})]})}function AppOrdersScreen({tabs:e}){let{copy:n,v3:i,pets:o}=
|
|
257
|
+
/* @__PURE__ */r.jsx(LinkBtn,{label:g.allOrders,onPress:h})]})}function AppOrdersScreen({tabs:e}){let{copy:n,v3:i,pets:o}=ue(),l=Zt(),{first:a,orders:s,named:d,hasMore:c,loadMore:u,moreBusy:p,moreError:h}=bl(),g=da(),f=o.map(e=>e.name),m=a.phase==="loading"||g.phase==="loading",b=g.phase==="failed"||g.phase==="ready"&&g.plans.length>0,y;return a.phase==="failed"?y=/* @__PURE__ */r.jsx(LoadFailed,{copy:n,thing:n.thingOrders,retry:a.refresh}):m?y=/* @__PURE__ */r.jsx(Card2,{label:n.allOrders,children:/* @__PURE__ */r.jsx(Ghost,{})}):s.length===0&&b?y=/* @__PURE__ */r.jsx(Subscriptions,{subs:g,onOrders:()=>{}}):y=/* @__PURE__ */r.jsxs(r.Fragment,{children:[b?/* @__PURE__ */r.jsxs(r.Fragment,{children:[
|
|
258
258
|
/* @__PURE__ */r.jsx(Subscriptions,{subs:g,onOrders:()=>{}}),
|
|
259
259
|
/* @__PURE__ */r.jsx(K,{children:i.ordersTitle})]}):null,
|
|
260
260
|
/* @__PURE__ */r.jsxs(Card2,{label:n.allOrders,children:[s.length===0?/* @__PURE__ */r.jsx(T,{k:"cardLead",children:n.ordersEmpty}):null,s.length>0?/* @__PURE__ */r.jsx(OrderList,{orders:s,named:d}):null,
|
|
261
261
|
/* @__PURE__ */r.jsx(InlineError,{line:h}),c?/* @__PURE__ */r.jsx(t.View,{style:{marginTop:l.v("breaks").marginTop},children:/* @__PURE__ */r.jsx(OutlineButton,{k:"btnSm",action:{label:i.moreOrders,busy:p,busyLabel:n.saving,disabled:p,onPress:u}})}):null]})]}),/* @__PURE__ */r.jsx(Frame,{tabs:{copy:n,current:"orders",tabs:e},onRefresh:a.reread,children:/* @__PURE__ */r.jsxs(t.View,{testID:"shop-orders",children:[
|
|
262
262
|
/* @__PURE__ */r.jsx(TitleBlock,{title:n.ordersTitle,meta:f.length>0?n.ordersSub(f):null}),
|
|
263
263
|
/* @__PURE__ */r.jsx(Stack,{children:y}),
|
|
264
|
-
/* @__PURE__ */r.jsx(Legal,{line:n.legal})]})})}function OrderList({orders:e,named:t}){let{copy:n,v3:i}=
|
|
265
|
-
return r.jsx(RecRows,{label:n.allOrders,rows:l,testID:"shop-orders-list"})}var
|
|
266
|
-
return r.jsx(t.View,{style:{rowGap:n.v("stack").rowGap,marginTop:n.v("stack").rowGap},children:e})}var
|
|
264
|
+
/* @__PURE__ */r.jsx(Legal,{line:n.legal})]})})}function OrderList({orders:e,named:t}){let{copy:n,v3:i}=ue(),o=tr(),l=e.map(e=>{let r=t(e),l=r&&r.length>0?Ot(r):e.referenceNumber??n.tabOrders,a=ee(e.placedAt),s=e.itemCount??(r?r.reduce((e,t)=>e+t.quantity,0):null),d=[a?n.placed(a):null,s!==null&&s>1?n.itemCount(s):null,Y(e.total)].filter(Boolean).join(" · ");return{key:e.orderId,icon:"box",title:l,meta:d,pill:ia(Lt(e.status,n,i)),onPress:()=>o.go({name:"order",orderId:e.orderId})}});/* @__PURE__ */
|
|
265
|
+
return r.jsx(RecRows,{label:n.allOrders,rows:l,testID:"shop-orders-list"})}var ha=e.createContext({on:false,screen:null,copy:W,onHelp:null,onCartBar:null}),ga=ha.Provider;function fa(){return e.useContext(ha)}var ma={useShop:ue,useShopShared:Ye,useCart:R,addToCart:w,removeFromCart:S,setCartQuantity:v,cartMaxQuantity:5,usePrescriptions:me,usePlans:we,useShopRead:pe,useShopAction:Te};var ba={...ma,useKit:Zt,useShopNativeNav:tr,useShopV3Host:$l,CareTabs:CareTabs,LoadFailed:LoadFailed};var ya=["AL","AK","AZ","AR","CA","CO","CT","DE","DC","FL","GA","HI","ID","IL","IN","IA","KS","KY","LA","ME","MD","MA","MI","MN","MS","MO","MT","NE","NV","NH","NJ","NM","NY","NC","ND","OH","OK","OR","PA","RI","SC","SD","TN","TX","UT","VT","VA","WA","WV","WI","WY","AS","GU","MP","PR","VI","AA","AE","AP"],xa=/^\d{5}(-\d{4})?$/;function ka(e){return ya.includes(e.trim().toUpperCase())}function Gap({children:e}){let n=Zt();/* @__PURE__ */
|
|
266
|
+
return r.jsx(t.View,{style:{rowGap:n.v("stack").rowGap,marginTop:n.v("stack").rowGap},children:e})}var wa={label:60,recipientName:100,line1:100,line2:100,city:60,region:60,postalCode:16},va={label:{autoComplete:"off"},recipientName:{autoComplete:"name",textContentType:"name"},line1:{autoComplete:"address-line1",textContentType:"streetAddressLine1"},line2:{autoComplete:"address-line2",textContentType:"streetAddressLine2"},city:{autoComplete:"off",textContentType:"addressCity"},region:{autoComplete:"off",textContentType:"addressState"},postalCode:{autoComplete:"postal-code",textContentType:"postalCode"}};function Field3({label:e,value:n,name:i,onChange:o}){let l=Zt(),a=va[i];/* @__PURE__ */
|
|
267
267
|
return r.jsxs(t.View,{style:l.v("field"),children:[
|
|
268
268
|
/* @__PURE__ */r.jsx(T,{k:"fieldLabel",children:e}),
|
|
269
|
-
/* @__PURE__ */r.jsx(t.View,{style:[l.v("fieldInput"),{flexDirection:"row",alignItems:"center"}],children:/* @__PURE__ */r.jsx(t.TextInput,{style:[l.t("fieldInputText"),{flex:1,minWidth:0}],value:n,onChangeText:o,accessibilityLabel:e,autoComplete:a.autoComplete,...a.textContentType?{textContentType:a.textContentType}:{},autoCapitalize:i==="region"?"characters":"words",autoCorrect:false,maxLength:
|
|
269
|
+
/* @__PURE__ */r.jsx(t.View,{style:[l.v("fieldInput"),{flexDirection:"row",alignItems:"center"}],children:/* @__PURE__ */r.jsx(t.TextInput,{style:[l.t("fieldInputText"),{flex:1,minWidth:0}],value:n,onChangeText:o,accessibilityLabel:e,autoComplete:a.autoComplete,...a.textContentType?{textContentType:a.textContentType}:{},autoCapitalize:i==="region"?"characters":"words",autoCorrect:false,maxLength:wa[i],...i==="postalCode"?{keyboardType:"number-pad"}:{}})})]})}function AddressFormScreen({copy:t,busy:n,error:i,onSave:o}){let[l,a]=e.useState({label:"",recipientName:"",line1:"",line2:"",city:"",region:"",postalCode:""}),s=e=>t=>a(r=>({...r,[e]:t.slice(0,wa[e])})),d=!!(l.label.trim()&&l.recipientName.trim()&&l.line1.trim()&&l.city.trim()&&ka(l.region)&&xa.test(l.postalCode.trim())),c=()=>{!d||n||o({label:l.label.trim(),makeDefault:false,address:{recipientName:l.recipientName.trim(),line1:l.line1.trim(),line2:l.line2.trim()||null,city:l.city.trim(),region:l.region.trim().toUpperCase(),postalCode:l.postalCode.trim(),country:"US"}})},u=[["label",t.addressLabel],["recipientName",t.addressRecipient],["line1",t.addressLine1],["line2",t.addressLine2],["city",t.addressCity],["region",t.addressRegion],["postalCode",t.addressPostal]];/* @__PURE__ */
|
|
270
270
|
return r.jsxs(Frame,{children:[
|
|
271
271
|
/* @__PURE__ */r.jsx(Stack,{children:/* @__PURE__ */r.jsxs(Card2,{children:[
|
|
272
272
|
/* @__PURE__ */r.jsx(CardTitle,{children:t.addressTitle}),
|
|
@@ -290,14 +290,14 @@ return r.jsxs(Frame,{children:[
|
|
|
290
290
|
/* @__PURE__ */r.jsx(CardTitle,{children:e.total}),o?/* @__PURE__ */r.jsx(Sum,{rows:o,total:true}):null,
|
|
291
291
|
/* @__PURE__ */r.jsxs(Gap,{children:[l.map(e=>/* @__PURE__ */r.jsx(ShopLinkText,{link:e,style:{alignSelf:"flex-start"}},e.label)),a?/* @__PURE__ */r.jsx(InkButton,{action:a}):null]}),
|
|
292
292
|
/* @__PURE__ */r.jsx(InlineError,{line:d}),s?/* @__PURE__ */r.jsx(T,{k:"noteAfterTotal",children:s}):null]})]}),
|
|
293
|
-
/* @__PURE__ */r.jsx(Legal,{line:e.legal})]})}function PlanConsentScreen({copy:e,terms:t,needs:n,agree:i,error:o}){let l
|
|
293
|
+
/* @__PURE__ */r.jsx(Legal,{line:e.legal})]})}function PlanConsentScreen({copy:e,terms:t,needs:n,agree:i,error:o}){let l=tr(),a=Zt();/* @__PURE__ */
|
|
294
294
|
return r.jsxs(Frame,{children:[
|
|
295
295
|
/* @__PURE__ */r.jsx(Stack,{children:/* @__PURE__ */r.jsxs(Card2,{children:[
|
|
296
296
|
/* @__PURE__ */r.jsx(CardTitle,{children:e.consentTitle}),
|
|
297
297
|
/* @__PURE__ */r.jsx(T,{k:"cardLead",children:e.consentBody}),
|
|
298
|
-
/* @__PURE__ */r.jsxs(Gap,{children:[t?/* @__PURE__ */r.jsx(Press,{role:"link",label:t.label,onPress:()=>l.openExternal(t.href),style:[a.v("cardLink"),{alignSelf:"flex-start"}],children:/* @__PURE__ */r.jsx(T,{k:"cardLink",bare:true,style:
|
|
298
|
+
/* @__PURE__ */r.jsxs(Gap,{children:[t?/* @__PURE__ */r.jsx(Press,{role:"link",label:t.label,onPress:()=>l.openExternal(t.href),style:[a.v("cardLink"),{alignSelf:"flex-start"}],children:/* @__PURE__ */r.jsx(T,{k:"cardLink",bare:true,style:_t("cardLink"),children:t.label})}):null,n.map(e=>/* @__PURE__ */r.jsx(ShopLinkText,{link:e,style:{alignSelf:"flex-start"}},e.label)),
|
|
299
299
|
/* @__PURE__ */r.jsx(InlineError,{line:o}),i?/* @__PURE__ */r.jsx(InkButton,{action:i}):null]})]})}),
|
|
300
|
-
/* @__PURE__ */r.jsx(Legal,{line:e.legal})]})}var
|
|
300
|
+
/* @__PURE__ */r.jsx(Legal,{line:e.legal})]})}var Ta={marginTop:Math.max(0,Dt.forLabel.marginTop-Dt.cardHead.marginBottom)};function PackageScreen({copy:n,tabs:i,view:o}){let l=Zt(),a=tr(),s={copy:n,current:"package",tabs:i};if(o.phase!=="ready")/* @__PURE__ */
|
|
301
301
|
return r.jsxs(Frame,{tabs:s,children:[
|
|
302
302
|
/* @__PURE__ */r.jsx(TitleBlock,{title:n.tabPackage}),
|
|
303
303
|
/* @__PURE__ */r.jsx(Stack,{children:o.phase==="failed"?/* @__PURE__ */r.jsx(LoadFailed,{copy:n,thing:n.thingPackage,retry:o.retry}):/* @__PURE__ */r.jsxs(Card2,{children:[
|
|
@@ -310,7 +310,7 @@ return r.jsxs(Frame,{tabs:s,tray:/* @__PURE__ */r.jsx(TrayBar,{action:u,fine:d.f
|
|
|
310
310
|
/* @__PURE__ */r.jsxs(Card2,{children:[
|
|
311
311
|
/* @__PURE__ */r.jsx(CardHead,{title:n.inThisPackage,end:p?/* @__PURE__ */r.jsx(Pill2,{pill:{label:p,tone:"soon"}}):null}),d.empty?/* @__PURE__ */r.jsxs(r.Fragment,{children:[
|
|
312
312
|
/* @__PURE__ */r.jsx(T,{k:"cardLead",children:d.empty.line}),
|
|
313
|
-
/* @__PURE__ */r.jsx(OutlineButton,{k:"btnSm",action:{label:d.empty.shop.label,onPress:()=>a.go(d.empty.shop.to)}})]}):null,d.groups.map((i,o)=>{let s=i.label?/* @__PURE__ */r.jsx(T,{k:h?"forLabel":"forLabelNext",style:h?
|
|
313
|
+
/* @__PURE__ */r.jsx(OutlineButton,{k:"btnSm",action:{label:d.empty.shop.label,onPress:()=>a.go(d.empty.shop.to)}})]}):null,d.groups.map((i,o)=>{let s=i.label?/* @__PURE__ */r.jsx(T,{k:h?"forLabel":"forLabelNext",style:h?Ta:null,children:i.label}):null;return i.label&&(h=false),/* @__PURE__ */r.jsxs(e.Fragment,{children:[s,
|
|
314
314
|
/* @__PURE__ */r.jsx(t.View,{children:i.items.map((e,o)=>/* @__PURE__ */r.jsxs(ItemRow,{index:o,count:i.items.length,thumb:/* @__PURE__ */r.jsx(Thumb,{tone:e.tone,icon:e.icon}),end:e.price?/* @__PURE__ */r.jsx(T,{k:"itemsPrice",children:e.price}):null,children:[
|
|
315
315
|
/* @__PURE__ */r.jsx(ItemName,{name:e.name,rx:e.rx,copy:n,pills:e.pills}),e.meta?/* @__PURE__ */r.jsx(T,{k:"itemsMeta",children:e.meta}):null,e.alert?/* @__PURE__ */r.jsx(t.View,{accessibilityLiveRegion:"polite",children:/* @__PURE__ */r.jsx(T,{k:"itemsMeta",children:e.alert})}):null,e.details||e.remove?/* @__PURE__ */r.jsxs(t.View,{style:[l.v("itemsActs"),{flexDirection:"row"}],children:[e.details?/* @__PURE__ */r.jsx(ActText,{label:e.details.label,onPress:()=>a.go(e.details.to)}):null,e.remove?/* @__PURE__ */r.jsx(ActText,{label:e.remove.busy&&e.remove.busyLabel?e.remove.busyLabel:e.remove.label,onPress:e.remove.onPress,disabled:e.remove.disabled===true}):null]}):null]},e.key))})]},i.label??o)})]}),d.add?/* @__PURE__ */r.jsxs(Card2,{children:[
|
|
316
316
|
/* @__PURE__ */r.jsx(CardHead,{title:d.add.title,end:d.add.link?/* @__PURE__ */r.jsx(ShopLinkText,{link:d.add.link}):null}),
|
|
@@ -323,10 +323,10 @@ return r.jsxs(Frame,{tabs:s,tray:/* @__PURE__ */r.jsx(TrayBar,{action:u,fine:d.f
|
|
|
323
323
|
/* @__PURE__ */r.jsx(Legal,{line:d.legal})]})}function ShopSwitchCard({title:e,rows:t}){/* @__PURE__ */
|
|
324
324
|
return r.jsxs(Card2,{children:[
|
|
325
325
|
/* @__PURE__ */r.jsx(CardTitle,{children:e}),
|
|
326
|
-
/* @__PURE__ */r.jsx(Rows,{plan:true,rows:t.map(e=>({key:e.key,k:e.title,meta:e.meta??null,end:/* @__PURE__ */r.jsx(ShopSwitch,{on:e.on,disabled:e.disabled===true,label:e.label,onChange:e.onChange})}))})]})}function BreakCard({copy:n,card:i}){let o=
|
|
326
|
+
/* @__PURE__ */r.jsx(Rows,{plan:true,rows:t.map(e=>({key:e.key,k:e.title,meta:e.meta??null,end:/* @__PURE__ */r.jsx(ShopSwitch,{on:e.on,disabled:e.disabled===true,label:e.label,onChange:e.onChange})}))})]})}function BreakCard({copy:n,card:i}){let o=Zt(),[l,a]=e.useState(null),s=l?i[l]:null;/* @__PURE__ */
|
|
327
327
|
return r.jsxs(Card2,{children:[
|
|
328
328
|
/* @__PURE__ */r.jsx(CardTitle,{children:n.needABreak}),
|
|
329
|
-
/* @__PURE__ */r.jsxs(t.View,{style:[o.v("breaks"),{flexDirection:"row",flexWrap:"wrap",alignItems:"center",marginTop:Math.max(0,
|
|
329
|
+
/* @__PURE__ */r.jsxs(t.View,{style:[o.v("breaks"),{flexDirection:"row",flexWrap:"wrap",alignItems:"center",marginTop:Math.max(0,Dt.breaks.marginTop-Dt.cardTitle.marginBottom)}],children:[i.skip?/* @__PURE__ */r.jsx(OutlineButton,{k:"btnSm",action:{label:i.skip.label,onPress:()=>a("skip")}}):null,i.pause?/* @__PURE__ */r.jsx(Press,{onPress:()=>a("pause"),children:/* @__PURE__ */r.jsx(T,{k:"linkDanger",bare:true,style:_t("linkDanger"),children:i.pause.label})}):null]}),s?null:/* @__PURE__ */r.jsx(InlineError,{line:i.error}),
|
|
330
330
|
/* @__PURE__ */r.jsx(ConfirmSheet,{open:s!==null,title:s?.ask??"",body:s?.body??"",confirm:s?.label??"",keep:n.keepIt,closeLabel:n.close,busyLabel:n.saving,busy:i.busy,error:s?i.error:null,onConfirm:()=>{l&&i.onConfirm(l).then(e=>{e&&a(null)})},onClose:()=>a(null)})]})}function PlanScreen({copy:e,tabs:t,view:n,reminders:i}){let o={copy:e,current:"plan",tabs:t};if(n.phase!=="ready")/* @__PURE__ */
|
|
331
331
|
return r.jsxs(Frame,{tabs:o,children:[
|
|
332
332
|
/* @__PURE__ */r.jsx(TitleBlock,{title:e.planTitle}),
|
|
@@ -343,12 +343,12 @@ return r.jsxs(Frame,{tabs:o,children:[
|
|
|
343
343
|
/* @__PURE__ */r.jsx(CardTitle,{children:e.whatRepeats}),l.emptyLine?/* @__PURE__ */r.jsx(T,{k:"cardLead",children:l.emptyLine}):null,l.rows.length>0?/* @__PURE__ */r.jsx(Rows,{plan:true,rows:l.rows.map(t=>({key:t.key,k:t.title,meta:t.meta,metaAlert:t.alert,alert:t.error,end:/* @__PURE__ */r.jsx(ShopSwitch,{on:t.on,disabled:t.busy,label:e.repeatsLabel(t.title),onChange:t.onToggle})}))}):null]}),i??null,l.delivery.length>0?/* @__PURE__ */r.jsxs(Card2,{children:[
|
|
344
344
|
/* @__PURE__ */r.jsx(CardTitle,{children:e.deliveryAndPayment}),
|
|
345
345
|
/* @__PURE__ */r.jsx(Rows,{plan:true,rows:l.delivery.map(e=>({key:e.k,k:e.k,v:e.v,alert:e.alert??null,end:e.change?/* @__PURE__ */r.jsx(ShopLinkText,{link:e.change}):null}))})]}):null,l.breakCard?/* @__PURE__ */r.jsx(BreakCard,{copy:e,card:l.breakCard}):null]}),
|
|
346
|
-
/* @__PURE__ */r.jsx(Legal,{line:l.legal})]})}function Hero({copy:n,tone:i,icon:o,imageUrl:l}){let a=
|
|
347
|
-
return r.jsxs(t.View,{style:[a.v("hero"),{backgroundColor:
|
|
348
|
-
return r.jsx(Hero,{copy:e,tone:n.tone,icon:n.icon,imageUrl:t.imageUrl??null})}function Source({icon:e,bold:n,rest:i,link:o,inCard:l}){let a=
|
|
346
|
+
/* @__PURE__ */r.jsx(Legal,{line:l.legal})]})}function Hero({copy:n,tone:i,icon:o,imageUrl:l}){let a=Zt(),[s,d]=e.useState(null),c=l&&s!==l?l:null;/* @__PURE__ */
|
|
347
|
+
return r.jsxs(t.View,{style:[a.v("hero"),{backgroundColor:sl(i),alignItems:"center",justifyContent:"center"},l?{overflow:"hidden"}:null],...c?{accessibilityElementsHidden:true,importantForAccessibility:"no-hide-descendants"}:{accessible:true,accessibilityRole:"image",accessibilityLabel:n.photoToCome},children:[o?/* @__PURE__ */r.jsx(PartIcon,{name:o,k:"heroIcon",inkKey:"prodIcon"}):null,c?/* @__PURE__ */r.jsx(TilePhoto,{uri:c,onFailed:()=>d(c)},c):null]})}function ProductHero({copy:e,v:t}){let n=dl(t);/* @__PURE__ */
|
|
348
|
+
return r.jsx(Hero,{copy:e,tone:n.tone,icon:n.icon,imageUrl:t.imageUrl??null})}function Source({icon:e,bold:n,rest:i,link:o,inCard:l}){let a=Zt(),s=tr(),d=l?"sourceInCard":"source";/* @__PURE__ */
|
|
349
349
|
return r.jsxs(t.View,{style:[a.v(d),{flexDirection:"row",alignItems:"flex-start"}],children:[
|
|
350
350
|
/* @__PURE__ */r.jsx(PartIcon,{name:e,k:l?"sourceInCardIcon":"sourceIcon"}),
|
|
351
|
-
/* @__PURE__ */r.jsxs(t.Text,{style:[a.tx(d),{flex:1,minWidth:0}],children:[n?/* @__PURE__ */r.jsx(t.Text,{style:a.tx("sourceBold"),children:n}):null,n?` ${i}`:i,o?" ":null,o?/* @__PURE__ */r.jsx(t.Text,{style:[a.tx("sourceLink"),
|
|
351
|
+
/* @__PURE__ */r.jsxs(t.Text,{style:[a.tx(d),{flex:1,minWidth:0}],children:[n?/* @__PURE__ */r.jsx(t.Text,{style:a.tx("sourceBold"),children:n}):null,n?` ${i}`:i,o?" ":null,o?/* @__PURE__ */r.jsx(t.Text,{style:[a.tx("sourceLink"),_t("sourceLink")],accessibilityRole:"link",onPress:()=>s.openExternal(o.href),children:o.label}):null]})]})}function ProductScreen({copy:e,view:n}){let i=Zt();if(n.phase!=="ready")/* @__PURE__ */
|
|
352
352
|
return r.jsxs(Frame,{children:[
|
|
353
353
|
/* @__PURE__ */r.jsxs(Stack,{children:[
|
|
354
354
|
/* @__PURE__ */r.jsx(Hero,{copy:e,tone:"base",icon:null}),n.phase==="failed"?/* @__PURE__ */r.jsx(LoadFailed,{copy:e,thing:e.thingProduct,retry:n.retry}):/* @__PURE__ */r.jsx(Card2,{children:/* @__PURE__ */r.jsx(Ghost,{})})]}),
|
|
@@ -358,19 +358,19 @@ return r.jsxs(Frame,{tray:/* @__PURE__ */r.jsx(TrayBar,{action:o.submit,fine:o.f
|
|
|
358
358
|
/* @__PURE__ */r.jsxs(Stack,{children:[
|
|
359
359
|
/* @__PURE__ */r.jsx(ProductHero,{copy:e,v:o}),o.source?/* @__PURE__ */r.jsx(Source,{icon:"check",bold:o.source.bold,rest:o.source.rest,link:o.source.link}):null,o.stockLine?/* @__PURE__ */r.jsx(T,{k:"noteStandalone",children:o.stockLine}):null,o.choices?/* @__PURE__ */r.jsx(Card2,{label:e.howOften,children:/* @__PURE__ */r.jsx(t.View,{style:i.v("choices"),accessibilityRole:"radiogroup",accessibilityLabel:e.howOften,children:o.choices.map(e=>{let n=o.choice===e.value,l=n?"choiceCurrent":"choice";/* @__PURE__ */
|
|
360
360
|
return r.jsxs(Press,{role:"radio",selected:n,label:[e.title,e.meta].filter(Boolean).join(", "),onPress:()=>o.onChoice(e.value),style:[i.v(l),{flexDirection:"row",alignItems:"center",rowGap:0,columnGap:0}],children:[
|
|
361
|
-
/* @__PURE__ */r.jsx(t.View,{style:{width:
|
|
361
|
+
/* @__PURE__ */r.jsx(t.View,{style:{width:Sa,marginRight:i.v(l).columnGap},children:/* @__PURE__ */r.jsx(t.View,{style:i.v(n?"radioOn":"radioOff")})}),
|
|
362
362
|
/* @__PURE__ */r.jsxs(t.View,{style:{flex:1,minWidth:0,marginRight:i.v(l).columnGap},children:[
|
|
363
363
|
/* @__PURE__ */r.jsx(T,{k:"choiceTitle",style:{lineHeight:i.tx("choiceText").lineHeight},children:e.title}),e.meta?/* @__PURE__ */r.jsx(T,{k:"choiceMeta",children:e.meta}):null]})]},e.value)})})}):null,o.facts?/* @__PURE__ */r.jsxs(Card2,{children:[
|
|
364
364
|
/* @__PURE__ */r.jsx(CardTitle,{children:o.facts.title}),
|
|
365
365
|
/* @__PURE__ */r.jsx(Facts,{rows:o.facts.rows}),o.facts.note?/* @__PURE__ */r.jsx(T,{k:"noteAfterFacts",children:o.facts.note}):null]}):null,o.cards.map(e=>/* @__PURE__ */r.jsxs(Card2,{children:[
|
|
366
366
|
/* @__PURE__ */r.jsx(CardTitle,{children:e.title}),
|
|
367
367
|
/* @__PURE__ */r.jsx(T,{k:"cardLead",children:e.lead})]},e.key))]}),
|
|
368
|
-
/* @__PURE__ */r.jsx(Legal,{line:o.legal})]})}var
|
|
368
|
+
/* @__PURE__ */r.jsx(Legal,{line:o.legal})]})}var Sa=22;function Facts({rows:e}){let n=Zt(),i=[];e.forEach((e,t)=>{t%2===0&&i.push([]),i[i.length-1].push(e)});let o=n.v("facts").columnGap;
|
|
369
369
|
/* @__PURE__ */
|
|
370
|
-
return r.jsx(t.View,{style:[n.v("facts"),{columnGap:0,marginTop:Math.max(0,
|
|
370
|
+
return r.jsx(t.View,{style:[n.v("facts"),{columnGap:0,marginTop:Math.max(0,Dt.facts.marginTop-Dt.cardTitle.marginBottom)}],children:i.map((e,i)=>/* @__PURE__ */r.jsxs(t.View,{style:{flexDirection:"row",columnGap:o,alignItems:"stretch"},children:[e.map(e=>/* @__PURE__ */r.jsxs(t.View,{style:[n.v(e.her?"factsLiHer":"factsLi"),{flex:1,minWidth:0}],children:[
|
|
371
371
|
/* @__PURE__ */r.jsx(T,{k:"factsK",children:e.k}),
|
|
372
372
|
/* @__PURE__ */r.jsxs(T,{k:"factsN",lines:1,children:[`${e.n} `
|
|
373
|
-
/* @__PURE__ */,r.jsx(t.Text,{style:n.tx("factsUnit"),children:e.unit})]})]},e.k)),e.length===1?/* @__PURE__ */r.jsx(t.View,{style:{flex:1}}):null]},i))})}function RxProductScreen({copy:e,view:n,avatar:i}){let o=
|
|
373
|
+
/* @__PURE__ */,r.jsx(t.Text,{style:n.tx("factsUnit"),children:e.unit})]})]},e.k)),e.length===1?/* @__PURE__ */r.jsx(t.View,{style:{flex:1}}):null]},i))})}function RxProductScreen({copy:e,view:n,avatar:i}){let o=Zt(),l=tr();if(n.phase!=="ready")/* @__PURE__ */
|
|
374
374
|
return r.jsxs(Frame,{children:[
|
|
375
375
|
/* @__PURE__ */r.jsxs(Stack,{children:[
|
|
376
376
|
/* @__PURE__ */r.jsx(Hero,{copy:e,tone:"pink",icon:null}),n.phase==="failed"?/* @__PURE__ */r.jsx(LoadFailed,{copy:e,thing:e.thingProduct,retry:n.retry}):/* @__PURE__ */r.jsx(Card2,{children:/* @__PURE__ */r.jsx(Ghost,{})})]}),
|
|
@@ -389,58 +389,58 @@ return r.jsxs(Frame,{tray:/* @__PURE__ */r.jsx(TrayBar,{action:d,fine:a.fine??nu
|
|
|
389
389
|
/* @__PURE__ */r.jsx(CardTitle,{children:a.aside.title}),
|
|
390
390
|
/* @__PURE__ */r.jsx(T,{k:"rxLead",children:a.aside.lead}),c]}):null,typeof a.note=="string"?/* @__PURE__ */r.jsx(T,{k:"noteStandalone",children:a.note}):null,a.note&&typeof a.note!="string"?/* @__PURE__ */r.jsxs(T,{k:"noteStandalone",children:[`${a.note.before} `
|
|
391
391
|
/* @__PURE__ */,r.jsx(t.Text,{style:o.tx("noteLink"),accessibilityRole:"link",onPress:()=>l.openExternal(a.note.link.href),children:a.note.link.label}),a.note.after]}):null]}),
|
|
392
|
-
/* @__PURE__ */r.jsx(Legal,{line:a.legal})]})}function Prods({children:e}){let n=
|
|
392
|
+
/* @__PURE__ */r.jsx(Legal,{line:a.legal})]})}function Prods({children:e}){let n=Zt(),i=[];return e.forEach((e,t)=>{t%2===0&&i.push([]),i[i.length-1].push(e)}),/* @__PURE__ */r.jsx(t.View,{style:[n.v("prods"),{columnGap:0}],children:i.map((e,n)=>/* @__PURE__ */r.jsxs(t.View,{style:{flexDirection:"row",columnGap:Dt.prods.columnGap,alignItems:"stretch"},children:[e,e.length===1?/* @__PURE__ */r.jsx(t.View,{style:{flex:1}}):null]},n))})}function Tile({tile:e}){let n=Zt(),i=tr(),o=dl(e),l=[e.name,...e.pills.map(e=>e.label),e.meta,e.price].filter(Boolean).join(", ");/* @__PURE__ */
|
|
393
393
|
return r.jsxs(Press,{role:"link",label:l,onPress:()=>i.go(e.to),style:[n.v("prod"),{flex:1,minWidth:0}],children:[
|
|
394
|
-
/* @__PURE__ */r.jsxs(t.View,{style:[n.v("prodImg"),{backgroundColor:
|
|
394
|
+
/* @__PURE__ */r.jsxs(t.View,{style:[n.v("prodImg"),{backgroundColor:sl(o.tone),alignItems:"center",justifyContent:"center"},e.imageUrl?{overflow:"hidden"}:null],children:[
|
|
395
395
|
/* @__PURE__ */r.jsx(PartIcon,{name:o.icon,k:"prodIcon"}),e.imageUrl?/* @__PURE__ */r.jsx(TilePhoto,{uri:e.imageUrl},e.imageUrl):null]}),e.pills.length>0?/* @__PURE__ */r.jsx(t.View,{style:[n.v("prodTags"),{flexDirection:"row",flexWrap:"wrap"}],children:e.pills.map(e=>/* @__PURE__ */r.jsx(Pill2,{pill:e},e.label))}):null,
|
|
396
396
|
/* @__PURE__ */r.jsxs(t.View,{style:n.v("prodBody"),children:[
|
|
397
|
-
/* @__PURE__ */r.jsx(T,{k:"prodName",children:e.name}),e.meta?/* @__PURE__ */r.jsx(T,{k:"prodMeta",children:e.meta}):null,e.price?/* @__PURE__ */r.jsx(T,{k:"prodPrice",children:e.price}):null]})]})}function GhostTiles({n:e}){let n=
|
|
397
|
+
/* @__PURE__ */r.jsx(T,{k:"prodName",children:e.name}),e.meta?/* @__PURE__ */r.jsx(T,{k:"prodMeta",children:e.meta}):null,e.price?/* @__PURE__ */r.jsx(T,{k:"prodPrice",children:e.price}):null]})]})}function GhostTiles({n:e}){let n=Zt();/* @__PURE__ */
|
|
398
398
|
return r.jsx(t.View,{accessibilityElementsHidden:true,importantForAccessibility:"no-hide-descendants",children:/* @__PURE__ */r.jsx(Prods,{children:Array.from({length:e},(e,i)=>/* @__PURE__ */r.jsxs(t.View,{style:[n.v("prod"),{flex:1,minWidth:0}],children:[
|
|
399
|
-
/* @__PURE__ */r.jsx(t.View,{style:[n.v("prodImg"),{backgroundColor:
|
|
400
|
-
/* @__PURE__ */r.jsx(t.View,{style:n.v("prodBody"),children:/* @__PURE__ */r.jsx(Ghost,{rows:2})})]},i))})})}function ShopScreen({copy:e,tabs:n,view:i}){let o=
|
|
399
|
+
/* @__PURE__ */r.jsx(t.View,{style:[n.v("prodImg"),{backgroundColor:sl("base")}]}),
|
|
400
|
+
/* @__PURE__ */r.jsx(t.View,{style:n.v("prodBody"),children:/* @__PURE__ */r.jsx(Ghost,{rows:2})})]},i))})})}function ShopScreen({copy:e,tabs:n,view:i}){let o=Zt(),l=tr(),a=i.shelves,s=a.phase==="ready"?i.more??null:null;/* @__PURE__ */
|
|
401
401
|
return r.jsxs(Frame,{tabs:{copy:e,current:"shop",tabs:n},onNearEnd:s&&!s.loading&&!s.failed?s.onMore:null,children:[
|
|
402
402
|
/* @__PURE__ */r.jsx(TitleBlock,{title:e.shopTitle,meta:i.sub}),
|
|
403
403
|
/* @__PURE__ */r.jsxs(Stack,{children:[
|
|
404
404
|
/* @__PURE__ */r.jsxs(t.View,{style:[o.v("input"),{flexDirection:"row",alignItems:"center"}],children:[
|
|
405
405
|
/* @__PURE__ */r.jsx(PartIcon,{name:"search",k:"inputIcon"}),
|
|
406
|
-
/* @__PURE__ */r.jsx(t.TextInput,{style:[o.t("inputText"),{flex:1,minWidth:0}],value:i.query,onChangeText:i.onQuery,placeholder:e.searchPlaceholder,placeholderTextColor:
|
|
406
|
+
/* @__PURE__ */r.jsx(t.TextInput,{style:[o.t("inputText"),{flex:1,minWidth:0}],value:i.query,onChangeText:i.onQuery,placeholder:e.searchPlaceholder,placeholderTextColor:Yt("inputPlaceholder"),accessibilityLabel:e.searchLabel,autoCapitalize:"none",autoCorrect:false,returnKeyType:"search"})]}),i.filters.length>0?/* @__PURE__ */r.jsx(t.ScrollView,{horizontal:true,showsHorizontalScrollIndicator:false,accessibilityLabel:e.filtersLabel,contentContainerStyle:[o.v("filters"),{flexDirection:"row"}],children:i.filters.map(e=>{let t=e.current?"filterCurrent":"filter";/* @__PURE__ */
|
|
407
407
|
return r.jsx(Press,{role:"tab",selected:e.current,...e.to?{onPress:()=>l.go(e.to)}:{},style:[o.v(t),{flexDirection:"row",alignItems:"center"}],children:/* @__PURE__ */r.jsx(T,{k:t,bare:true,children:e.label})},e.label)})}):null,a.phase==="failed"?/* @__PURE__ */r.jsx(LoadFailed,{copy:e,thing:e.thingShop,retry:a.retry}):null,a.phase==="loading"?/* @__PURE__ */r.jsx(GhostTiles,{n:6}):null,a.phase==="ready"?a.value.filter(e=>e.tiles.length>0).map(e=>/* @__PURE__ */r.jsxs(t.View,{children:[
|
|
408
408
|
/* @__PURE__ */r.jsxs(t.View,{style:[o.v("sectionHead"),{flexDirection:"row",flexWrap:"wrap",alignItems:"center",justifyContent:"space-between"}],children:[
|
|
409
409
|
/* @__PURE__ */r.jsx(T,{k:"cardTitleInHead",role:"header",children:e.title}),e.link?/* @__PURE__ */r.jsx(ShopLinkText,{link:e.link}):null]}),
|
|
410
410
|
/* @__PURE__ */r.jsx(Prods,{children:e.tiles.map(e=>/* @__PURE__ */r.jsx(Tile,{tile:e},e.key))})]},e.key)):null,s?.loading?/* @__PURE__ */r.jsx(GhostTiles,{n:2}):null,s?.failed?/* @__PURE__ */r.jsx(LoadFailed,{copy:e,thing:e.thingShop,retry:s.onMore}):null,a.phase==="ready"&&i.empty?/* @__PURE__ */r.jsx(t.View,{accessibilityLiveRegion:"polite",children:/* @__PURE__ */r.jsx(T,{k:"cardLead",children:i.empty})}):null]}),
|
|
411
|
-
/* @__PURE__ */r.jsx(Legal,{line:i.legal})]})}function
|
|
411
|
+
/* @__PURE__ */r.jsx(Legal,{line:i.legal})]})}function ja(t,r,n=null){let{client:i,copy:o,v3:l,payments:a}=ue(),s=be(),d=xe(),[c,u]=e.useState(false),[p,h]=e.useState("main"),[g,f]=e.useState(()=>ft(i));e.useEffect(()=>mt(i),[i]);let[m,b]=e.useState(null),[y,x]=e.useState(null),k=(s.value??[]).filter(e=>e.isComplete),w=k.find(e=>e.ref===g)??k.find(e=>e.isDefault)??k[0]??null,v=d.value??[],S=v.find(e=>e.paymentMethodId===m)??v[0]??null,C=e.useMemo(()=>L(t),[t]),I=JSON.stringify(C),A=pe(w&&C.length>0?`cart-quote:${w.ref}:${I}`:null,()=>i.quote({lines:C,shipTo:w.ref})),[R,W]=e.useState(null),H=`${w?.ref??""}:${I}`,P=R&&R.key===H?R.total:null,O=e.useRef(()=>{}),B=xt(()=>O.current()),D=t.map(e=>e.key),E=Te(async e=>{let t=await i.createCheckout({idempotencyKey:e.key("draft"),lines:C,shipTo:w.ref});if(!t.ok)return V(t.error);if((P??A.value?.total??null)!==t.value.total)return W({key:H,total:t.value.total}),V({kind:"refused",status:409,reasonCode:"price_changed",message:null});let r=await G(e=>i.confirmCheckout(t.value.checkoutId,{idempotencyKey:e,expectedTotal:t.value.total,paymentMethodId:S.paymentMethodId}),e,a,{reconfirm:true,beforePayerAction:()=>j(i,D)});return r.kind==="failed"?V(r.error):F(r)}),N=()=>{!w||!S||!A.value||E.busy||(x(null),B.clear(),E.run().then(e=>{if(!e)return;let t=e.ok?e.value:{kind:"failed",error:e.error};if(t.kind==="failed"){if(B.raise(t.error))return;x($e(o,t));return}if(t.orderIds.length===0){x(o.actionFailed);return}if(j(i,D),u(false),h("main"),t.kind==="confirmed"){r({name:"placed",orderIds:t.orderIds});return}tt(i,t.orderIds[0],$e(o,t)),r({name:"order",orderId:t.orderIds[0]})}))};O.current=N;let[q,U]=e.useState(false),M=e.useRef(null);e.useEffect(()=>{if(!M.current||d.phase!=="ready"||!d.value)return;let e=d.value.find(e=>!M.current.has(e.paymentMethodId));M.current=null,e&&b(e.paymentMethodId)},[d.phase,d.value]);let Z=n?{busy:q,run:()=>{if(q)return;U(true),x(null);let e=new Set(v.map(e=>e.paymentMethodId));n().then(t=>{U(false),t.ok?(M.current=e,h("main"),d.refresh()):x(t.closed?o.cardStepClosed:t.message??o.cardStepFailed)},()=>{U(false),x(o.cardStepFailed)})}}:null,J=Te((e,t)=>i.addAddress(t)),X={busy:J.busy,error:J.error?ae(o,J.error):null,run:e=>{J.run(e).then(e=>{e&&e.ok&&(f(e.value.ref),h("main"),s.refresh())})}},Q=z(t),_=A.value,$=P??_?.total??null,ee=[];Q!==null&&ee.push({k:l.subtotal,v:Y(Q)}),_&&$!==null&&(ee.push({k:l.shipping,v:_.shipping===0?l.free:Y(_.shipping)}),ee.push({k:l.tax,v:Y(_.tax)}),ee.push({k:l.total,v:Y($),total:true}));let te=t.some(e=>e.requiresRx),ne=[S?o.chargedWhenShips(re(S.brand,S.last4)):null,te?o.rxCheckedFirst:null].filter(e=>!!e);return{open:c,pane:p,setPane:h,openSheet:()=>{x(null),h("main"),u(true)},closeSheet:()=>{E.busy||(u(false),h("main"))},addresses:[...k].sort((e,t)=>Number(t.isDefault)-Number(e.isDefault)),addressesLoading:s.phase==="loading",address:w,chooseAddress:e=>{f(e),h("main")},cards:v,cardsLoading:d.phase==="loading",card:S,chooseCard:e=>{b(e),h("main")},addCard:Z,saveAddress:X,sum:ee,subtotal:Q!==null?Y(Q):null,total:$!==null?Y($):null,canPlace:!!w&&!!S&&!!_&&t.length>0&&!E.busy,placing:E.busy,place:N,error:B.view!==null?null:y??wt(o,A),nameStep:B.view,fine:ne.length>0?ne.join(" "):null}}var Ca=3200;function Ia(t){let[r,n]=e.useState(t);return e.useEffect(()=>{if(!r)return;let e=setTimeout(()=>n(null),Ca);return()=>clearTimeout(e)},[r]),[r,n]}function CartScreen({go:e}){let{client:n,copy:i,v3:o}=ue(),{cardHandoff:l}=$l(),a=R(n),s=ja(a,e,l),[d,c]=Ia(()=>I(n));if(a.length===0)/* @__PURE__ */
|
|
412
412
|
return r.jsxs(Page,{testID:"shop-cart",children:[
|
|
413
413
|
/* @__PURE__ */r.jsx(Toast2,{line:d}),
|
|
414
414
|
/* @__PURE__ */r.jsx(Empty,{icon:"cart",title:o.cartEmptyTitle,body:o.cartEmptyBody,action:/* @__PURE__ */r.jsx(Btn,{label:i.tabShop,onPress:()=>e({name:"shop"})})})]});let u=s.subtotal??s.total;/* @__PURE__ */
|
|
415
415
|
return r.jsxs(Page,{testID:"shop-cart",foot:/* @__PURE__ */r.jsx(Btn,{size:"lg",label:u?o.checkoutCart(u):o.checkoutKicker,onPress:s.openSheet,testID:"shop-cart-checkout"}),children:[
|
|
416
416
|
/* @__PURE__ */r.jsx(Title,{children:o.cartTitle}),
|
|
417
417
|
/* @__PURE__ */r.jsx(Toast2,{line:d}),
|
|
418
|
-
/* @__PURE__ */r.jsx(Card3,{children:/* @__PURE__ */r.jsx(t.View,{style:{gap:18},children:a.map(e=>/* @__PURE__ */r.jsx(CartItem,{item:e,onQuantity:t=>
|
|
418
|
+
/* @__PURE__ */r.jsx(Card3,{children:/* @__PURE__ */r.jsx(t.View,{style:{gap:18},children:a.map(e=>/* @__PURE__ */r.jsx(CartItem,{item:e,onQuantity:t=>v(n,e.key,t),onRemove:()=>{let t=S(n,e.key);t&&c(o.removedFromCart(t.title))}},e.key))})}),
|
|
419
419
|
/* @__PURE__ */r.jsx(Sum2,{rows:s.sum}),
|
|
420
|
-
/* @__PURE__ */r.jsx(CheckoutSheet,{co:s,items:a})]})}function CartItem({item:e,onQuantity:t,onRemove:n}){return
|
|
421
|
-
return r.jsx(ItemLine,{testID:"shop-cart-line",rx:e.requiresRx,title:e.title,imageUrl:e.imageUrl,price:e.unitPrice!==null?
|
|
420
|
+
/* @__PURE__ */r.jsx(CheckoutSheet,{co:s,items:a})]})}function CartItem({item:e,onQuantity:t,onRemove:n}){return Wi()?/* @__PURE__ */r.jsx(KitLine,{item:e,onQuantity:t,onRemove:n}):/* @__PURE__ */r.jsx(PlanLine2,{item:e,onQuantity:t,onRemove:n})}function PlanLine2({item:e,onQuantity:t,onRemove:n}){let{copy:i,v3:o,petName:l}=ue(),a=l(e.petId),s=[...a?[i.forPet(a)]:[],...e.rxId?[o.itemQuantity(e.quantity)]:[]];/* @__PURE__ */
|
|
421
|
+
return r.jsx(ItemLine,{testID:"shop-cart-line",rx:e.requiresRx,title:e.title,imageUrl:e.imageUrl,price:e.unitPrice!==null?Y(e.unitPrice*e.quantity):void 0,smalls:s,quantity:e.rxId?void 0:{value:e.quantity,min:1,max:5,label:o.quantityLabel(e.title),fewerLabel:o.fewer,moreLabel:o.more,onChange:t},removeLabel:o.remove,onRemove:n})}function KitLine({item:e,onQuantity:n,onRemove:i}){let{copy:o,v3:l,petName:a}=ue(),s=ea(),d=a(e.petId);/* @__PURE__ */
|
|
422
422
|
return r.jsxs(t.View,{style:s.item,testID:"shop-cart-line",children:[
|
|
423
423
|
/* @__PURE__ */r.jsx(Thumb2,{rx:e.requiresRx,title:e.title,imageUrl:e.imageUrl}),
|
|
424
424
|
/* @__PURE__ */r.jsxs(t.View,{style:s.grow,children:[
|
|
425
425
|
/* @__PURE__ */r.jsx(Text3,{style:s.itemName,children:e.title}),
|
|
426
|
-
/* @__PURE__ */r.jsxs(t.View,{style:s.itemP,children:[e.unitPrice!==null?/* @__PURE__ */r.jsx(Text3,{style:s.itemPrice,children:
|
|
426
|
+
/* @__PURE__ */r.jsxs(t.View,{style:s.itemP,children:[e.unitPrice!==null?/* @__PURE__ */r.jsx(Text3,{style:s.itemPrice,children:Y(e.unitPrice*e.quantity)}):null,d?/* @__PURE__ */r.jsx(Text3,{style:s.itemSmall,children:o.forPet(d)}):null,e.rxId?/* @__PURE__ */r.jsx(Text3,{style:s.itemSmall,children:l.itemQuantity(e.quantity)}):null]}),
|
|
427
427
|
/* @__PURE__ */r.jsxs(t.View,{style:s.itemActs,children:[e.rxId?null:/* @__PURE__ */r.jsx(LineStepper,{item:e,onQuantity:n}),
|
|
428
|
-
/* @__PURE__ */r.jsx(LinkBtn,{label:l.remove,tone:"remove",onPress:i,a11yLabel:`${l.remove}: ${e.title}`})]})]})]})}function LineStepper({item:e,onQuantity:t}){let{v3:n}=
|
|
429
|
-
return r.jsx(Stepper,{value:e.quantity,max:5,label:n.quantityLabel(e.title),fewerLabel:n.fewer,moreLabel:n.more,onChange:t})}function CheckoutSheet({co:e,items:t}){let{copy:n,v3:i}=
|
|
430
|
-
return r.jsxs(Sheet2,{open:e.open,kicker:o,closeLabel:n.close,onClose:e.closeSheet,foot:l,testID:"shop-checkout",children:[e.pane==="main"?/* @__PURE__ */r.jsx(MainPane,{co:e,items:t}):null,e.pane==="address"?/* @__PURE__ */r.jsx(AddressPane,{co:e}):null,e.pane==="addAddress"?/* @__PURE__ */r.jsx(AddAddressPane,{co:e}):null,e.pane==="card"?/* @__PURE__ */r.jsx(CardPane,{co:e}):null]})}function MainPane({co:e,items:n}){let{v3:i}=
|
|
428
|
+
/* @__PURE__ */r.jsx(LinkBtn,{label:l.remove,tone:"remove",onPress:i,a11yLabel:`${l.remove}: ${e.title}`})]})]})]})}function LineStepper({item:e,onQuantity:t}){let{v3:n}=ue();/* @__PURE__ */
|
|
429
|
+
return r.jsx(Stepper,{value:e.quantity,max:5,label:n.quantityLabel(e.title),fewerLabel:n.fewer,moreLabel:n.more,onChange:t})}function CheckoutSheet({co:e,items:t}){let{copy:n,v3:i}=ue(),o=e.pane==="address"||e.pane==="addAddress"?i.shipsTo:e.pane==="card"?i.payWith:i.checkoutKicker,l=e.pane==="main"?/* @__PURE__ */r.jsx(Btn,{size:"lg",label:e.total?i.placeOrder(e.total):i.checkoutKicker,busy:e.placing,busyLabel:n.saving,disabled:!e.canPlace,onPress:e.place,testID:"shop-place-order"}):null;/* @__PURE__ */
|
|
430
|
+
return r.jsxs(Sheet2,{open:e.open,kicker:o,closeLabel:n.close,onClose:e.closeSheet,foot:l,testID:"shop-checkout",children:[e.pane==="main"?/* @__PURE__ */r.jsx(MainPane,{co:e,items:t}):null,e.pane==="address"?/* @__PURE__ */r.jsx(AddressPane,{co:e}):null,e.pane==="addAddress"?/* @__PURE__ */r.jsx(AddAddressPane,{co:e}):null,e.pane==="card"?/* @__PURE__ */r.jsx(CardPane,{co:e}):null]})}function MainPane({co:e,items:n}){let{v3:i}=ue(),o=ea();/* @__PURE__ */
|
|
431
431
|
return r.jsxs(r.Fragment,{children:[
|
|
432
|
-
/* @__PURE__ */r.jsx(t.View,{style:o.coItems,children:n.map(e=>/* @__PURE__ */r.jsxs(t.View,{style:o.coItem,accessible:true,accessibilityLabel:[e.title,i.itemQuantity(e.quantity),e.unitPrice!==null?
|
|
432
|
+
/* @__PURE__ */r.jsx(t.View,{style:o.coItems,children:n.map(e=>/* @__PURE__ */r.jsxs(t.View,{style:o.coItem,accessible:true,accessibilityLabel:[e.title,i.itemQuantity(e.quantity),e.unitPrice!==null?Y(e.unitPrice*e.quantity):null].filter(Boolean).join(", "),children:[
|
|
433
433
|
/* @__PURE__ */r.jsx(Thumb2,{rx:e.requiresRx,size:44,title:e.title,imageUrl:e.imageUrl}),
|
|
434
434
|
/* @__PURE__ */r.jsxs(t.View,{style:o.grow,children:[
|
|
435
435
|
/* @__PURE__ */r.jsx(Text3,{style:o.coName,children:e.title}),
|
|
436
|
-
/* @__PURE__ */r.jsx(Text3,{style:o.coSmall,children:i.itemQuantity(e.quantity)})]}),e.unitPrice!==null?/* @__PURE__ */r.jsx(Text3,{style:o.coPrice,children:
|
|
436
|
+
/* @__PURE__ */r.jsx(Text3,{style:o.coSmall,children:i.itemQuantity(e.quantity)})]}),e.unitPrice!==null?/* @__PURE__ */r.jsx(Text3,{style:o.coPrice,children:Y(e.unitPrice*e.quantity)}):null]},e.key))}),
|
|
437
437
|
/* @__PURE__ */r.jsxs(t.View,{style:o.coRows,children:[
|
|
438
438
|
/* @__PURE__ */r.jsx(CoRow,{icon:"truck",k:i.shipsTo,value:e.address?e.address.label:e.addressesLoading?" ":i.noAddressYet,onPress:()=>e.setPane(e.addresses.some(e=>e.isComplete)?"address":"addAddress")}),
|
|
439
|
-
/* @__PURE__ */r.jsx(CoRow,{icon:"card",k:i.payWith,value:e.card?
|
|
439
|
+
/* @__PURE__ */r.jsx(CoRow,{icon:"card",k:i.payWith,value:e.card?re(e.card.brand,e.card.last4):e.cardsLoading?" ":i.noCardYet,onPress:()=>e.setPane("card")})]}),
|
|
440
440
|
/* @__PURE__ */r.jsx(Sum2,{rows:e.sum,flat:true}),e.nameStep?/* @__PURE__ */r.jsx(NameStep,{step:e.nameStep}):null,
|
|
441
|
-
/* @__PURE__ */r.jsx(ErrorLine,{line:e.error}),e.fine?/* @__PURE__ */r.jsx(Text3,{style:o.coFine,children:e.fine}):null]})}function AddressPane({co:e}){let{v3:n}=
|
|
441
|
+
/* @__PURE__ */r.jsx(ErrorLine,{line:e.error}),e.fine?/* @__PURE__ */r.jsx(Text3,{style:o.coFine,children:e.fine}):null]})}function AddressPane({co:e}){let{v3:n}=ue(),i=ea();/* @__PURE__ */
|
|
442
442
|
return r.jsxs(t.View,{style:i.opts,children:[e.addresses.filter(e=>e.isComplete).map(t=>/* @__PURE__ */r.jsx(Opt,{on:e.address?.ref===t.ref,name:t.label,onPress:()=>e.chooseAddress(t.ref)},t.ref)),
|
|
443
|
-
/* @__PURE__ */r.jsx(Btn,{ghost:true,label:n.addAddress,onPress:()=>e.setPane("addAddress")})]})}function AddAddressPane({co:n}){let{copy:i}=
|
|
443
|
+
/* @__PURE__ */r.jsx(Btn,{ghost:true,label:n.addAddress,onPress:()=>e.setPane("addAddress")})]})}function AddAddressPane({co:n}){let{copy:i}=ue(),[o,l]=e.useState({label:"",recipient:"",line1:"",line2:"",city:"",region:"",postal:""}),a=e=>t=>l(r=>({...r,[e]:t})),s=o.label.trim()&&o.recipient.trim()&&o.line1.trim()&&o.city.trim()&&ka(o.region)&&xa.test(o.postal.trim()),d=()=>({label:o.label.trim().slice(0,60),makeDefault:n.addresses.length===0,address:{recipientName:o.recipient.trim(),line1:o.line1.trim(),line2:o.line2.trim()||null,city:o.city.trim(),region:o.region.trim().toUpperCase(),postalCode:o.postal.trim(),country:"US"}});/* @__PURE__ */
|
|
444
444
|
return r.jsxs(t.View,{style:{gap:14},children:[
|
|
445
445
|
/* @__PURE__ */r.jsx(Field2,{label:i.addressLabel,value:o.label,onChange:a("label"),autoComplete:"off"}),
|
|
446
446
|
/* @__PURE__ */r.jsx(Field2,{label:i.addressRecipient,value:o.recipient,onChange:a("recipient"),autoComplete:"name"}),
|
|
@@ -450,19 +450,19 @@ return r.jsxs(t.View,{style:{gap:14},children:[
|
|
|
450
450
|
/* @__PURE__ */r.jsx(Field2,{label:i.addressRegion,value:o.region,onChange:a("region"),autoComplete:"off",kind:"state"}),
|
|
451
451
|
/* @__PURE__ */r.jsx(Field2,{label:i.addressPostal,value:o.postal,onChange:a("postal"),autoComplete:"postal-code",kind:"zip"}),
|
|
452
452
|
/* @__PURE__ */r.jsx(ErrorLine,{line:n.saveAddress.error}),
|
|
453
|
-
/* @__PURE__ */r.jsx(Btn,{label:i.addressSave,busy:n.saveAddress.busy,busyLabel:i.saving,disabled:!s,onPress:()=>n.saveAddress.run(d())})]})}function CardPane({co:e}){let{copy:n,v3:i}=
|
|
454
|
-
return r.jsxs(t.View,{style:o.opts,children:[e.cards.map(t=>/* @__PURE__ */r.jsx(Opt,{on:e.card?.paymentMethodId===t.paymentMethodId,name:
|
|
453
|
+
/* @__PURE__ */r.jsx(Btn,{label:i.addressSave,busy:n.saveAddress.busy,busyLabel:i.saving,disabled:!s,onPress:()=>n.saveAddress.run(d())})]})}function CardPane({co:e}){let{copy:n,v3:i}=ue(),o=ea();/* @__PURE__ */
|
|
454
|
+
return r.jsxs(t.View,{style:o.opts,children:[e.cards.map(t=>/* @__PURE__ */r.jsx(Opt,{on:e.card?.paymentMethodId===t.paymentMethodId,name:re(t.brand,t.last4),onPress:()=>e.chooseCard(t.paymentMethodId)},t.paymentMethodId)),e.addCard?/* @__PURE__ */r.jsx(Btn,{ghost:true,label:i.addCard,busy:e.addCard.busy,busyLabel:n.saving,onPress:e.addCard.run}):null,
|
|
455
455
|
/* @__PURE__ */r.jsx(ErrorLine,{line:e.error})]})}function NameStep({step:n}){let[i,o]=e.useState(""),[l,a]=e.useState("");/* @__PURE__ */
|
|
456
456
|
return r.jsxs(ErrorLine,{line:n.line,children:[n.form?/* @__PURE__ */r.jsxs(t.View,{style:{gap:12},children:[
|
|
457
457
|
/* @__PURE__ */r.jsx(Field2,{label:n.form.firstLabel,value:i,onChange:o,autoComplete:"given-name"}),
|
|
458
458
|
/* @__PURE__ */r.jsx(Field2,{label:n.form.lastLabel,value:l,onChange:a,autoComplete:"family-name"}),n.form.error?/* @__PURE__ */r.jsx(Text3,{children:n.form.error}):null,
|
|
459
|
-
/* @__PURE__ */r.jsx(Btn,{label:n.form.saveLabel,busy:n.form.busy,disabled:!i.trim()||!l.trim(),onPress:()=>n.form.onSave({firstName:i,lastName:l}),testID:"shop-save-name"})]}):null,n.handoff?/* @__PURE__ */r.jsx(Btn,{ghost:true,size:"sm",label:n.handoff.label,onPress:n.handoff.onPress,testID:"shop-add-name"}):null]})}function OrderScreen({orderId:e,go:n}){let{copy:i,v3:o,petName:l}=
|
|
459
|
+
/* @__PURE__ */r.jsx(Btn,{label:n.form.saveLabel,busy:n.form.busy,disabled:!i.trim()||!l.trim(),onPress:()=>n.form.onSave({firstName:i,lastName:l}),testID:"shop-save-name"})]}):null,n.handoff?/* @__PURE__ */r.jsx(Btn,{ghost:true,size:"sm",label:n.handoff.label,onPress:n.handoff.onPress,testID:"shop-add-name"}):null]})}function OrderScreen({orderId:e,go:n}){let{copy:i,v3:o,petName:l}=ue(),a=$l(),s=tr(),d=ea(),{order:c,o:u,ref:p,line:h,asking:g,setAsking:f,pay:m,cancel:b,busy:y,onPay:x,onCancel:k,sum:w,refundRow:v,paidCard:S,buyAgain:j}=yl(e,n);if(c.phase==="loading")/* @__PURE__ */
|
|
460
460
|
return r.jsxs(Page,{testID:"shop-order",children:[
|
|
461
461
|
/* @__PURE__ */r.jsx(Ghosts,{}),
|
|
462
462
|
/* @__PURE__ */r.jsx(Ghosts,{rows:2})]});if(!u)/* @__PURE__ */
|
|
463
|
-
return r.jsx(Page,{testID:"shop-order",onRefresh:c.reread,children:/* @__PURE__ */r.jsx(ErrorLine,{line:i.loadFailed(i.thingOrder),children:/* @__PURE__ */r.jsx(Btn,{ghost:true,size:"sm",label:i.tryAgain,onPress:c.refresh})})});let C=
|
|
463
|
+
return r.jsx(Page,{testID:"shop-order",onRefresh:c.reread,children:/* @__PURE__ */r.jsx(ErrorLine,{line:i.loadFailed(i.thingOrder),children:/* @__PURE__ */r.jsx(Btn,{ghost:true,size:"sm",label:i.tryAgain,onPress:c.refresh})})});let C=Pt(u,o),I=zt(u),L=I?.carrier??null,z=v?[...w,v]:w;/* @__PURE__ */
|
|
464
464
|
return r.jsxs(Page,{testID:"shop-order",onRefresh:c.reread,children:[p?/* @__PURE__ */r.jsx(Text3,{style:d.orderNo,children:o.orderTitle(p)}):null,
|
|
465
|
-
/* @__PURE__ */r.jsx(Title,{sub:
|
|
465
|
+
/* @__PURE__ */r.jsx(Title,{sub:Vt(u,i,o),children:Ft(u,i,o)}),
|
|
466
466
|
/* @__PURE__ */r.jsx(ErrorLine,{line:h}),u.canPay?/* @__PURE__ */r.jsx(Btn,{label:i.payOrder,busy:m.busy,busyLabel:i.saving,disabled:y,onPress:x,testID:"shop-order-pay"}):null,C?/* @__PURE__ */r.jsx(Card3,{children:/* @__PURE__ */r.jsx(Track,{steps:C,label:o.tracking})}):null,I&&(L||I.trackingNumber)?/* @__PURE__ */r.jsxs(Card3,{children:[
|
|
467
467
|
/* @__PURE__ */r.jsxs(t.View,{style:d.carrier,children:[
|
|
468
468
|
/* @__PURE__ */r.jsx(IconTile,{name:"truck",size:40}),
|
|
@@ -475,15 +475,15 @@ return r.jsxs(t.View,{style:d.item,children:[
|
|
|
475
475
|
/* @__PURE__ */r.jsxs(t.View,{style:d.grow,children:[
|
|
476
476
|
/* @__PURE__ */r.jsx(Text3,{style:d.itemName,children:e.title}),
|
|
477
477
|
/* @__PURE__ */r.jsxs(t.View,{style:d.itemP,children:[
|
|
478
|
-
/* @__PURE__ */r.jsx(Text3,{style:d.itemPrice,children:
|
|
478
|
+
/* @__PURE__ */r.jsx(Text3,{style:d.itemPrice,children:Y(e.unitPrice*e.quantity)}),
|
|
479
479
|
/* @__PURE__ */r.jsx(Text3,{style:d.itemSmall,children:o.orderItemLine(e.quantity)}),n?/* @__PURE__ */r.jsx(Text3,{style:d.itemSmall,children:i.forPet(n)}):null]})]})]},e.lineId)})})}),
|
|
480
|
-
/* @__PURE__ */r.jsx(Sum2,{rows:z}),S?/* @__PURE__ */r.jsx(t.View,{style:[d.coRows,d.coRowsOnPage],children:/* @__PURE__ */r.jsx(CoRow,{icon:"card",k:o.paidWith,value:
|
|
480
|
+
/* @__PURE__ */r.jsx(Sum2,{rows:z}),S?/* @__PURE__ */r.jsx(t.View,{style:[d.coRows,d.coRowsOnPage],children:/* @__PURE__ */r.jsx(CoRow,{icon:"card",k:o.paidWith,value:re(S.brand,S.last4)})}):null,
|
|
481
481
|
/* @__PURE__ */r.jsxs(t.View,{style:d.acts,children:[j?/* @__PURE__ */r.jsx(Btn,{ghost:true,label:o.buyAgain,onPress:j}):null,a.onOrderHelp?/* @__PURE__ */r.jsx(LinkBtn,{label:o.orderHelp,onPress:()=>a.onOrderHelp?.(e)}):null,u.canCancel?/* @__PURE__ */r.jsx(LinkBtn,{label:i.cancelOrder,tone:"risk",disabled:y,onPress:()=>f(true)}):null]}),
|
|
482
482
|
/* @__PURE__ */r.jsxs(Sheet2,{open:g,kicker:o.orderTitle(p),closeLabel:i.close,onClose:()=>!b.busy&&f(false),children:[
|
|
483
483
|
/* @__PURE__ */r.jsx(Text3,{tier:"heading",style:d.sheetTitle,accessibilityRole:"header",children:o.cancelAsk}),o.cancelBody?/* @__PURE__ */r.jsx(Text3,{style:d.sub2,children:o.cancelBody}):null,
|
|
484
484
|
/* @__PURE__ */r.jsxs(t.View,{style:{gap:10,marginTop:8},children:[
|
|
485
485
|
/* @__PURE__ */r.jsx(Btn,{label:i.cancelOrder,busy:b.busy,busyLabel:i.saving,onPress:k,testID:"shop-order-cancel-confirm"}),
|
|
486
|
-
/* @__PURE__ */r.jsx(Btn,{ghost:true,label:i.keepIt,disabled:b.busy,onPress:()=>f(false)})]})]})]})}function OrdersScreen({tabs:e,go:n}){let{copy:i,v3:o}=
|
|
486
|
+
/* @__PURE__ */r.jsx(Btn,{ghost:true,label:i.keepIt,disabled:b.busy,onPress:()=>f(false)})]})]})]})}function OrdersScreen({tabs:e,go:n}){let{copy:i,v3:o}=ue(),l=ea(),{first:a,orders:s,named:d,hasMore:c,loadMore:u,moreBusy:p,moreError:h}=bl(),g=da(),f=/* @__PURE__ */r.jsx(CareTabs,{copy:i,current:"orders",tabs:e});if(a.phase==="loading"||g.phase==="loading")/* @__PURE__ */
|
|
487
487
|
return r.jsxs(Page,{head:f,testID:"shop-orders",children:[
|
|
488
488
|
/* @__PURE__ */r.jsx(Title,{children:o.ordersTitle}),
|
|
489
489
|
/* @__PURE__ */r.jsx(Ghosts,{})]});if(a.phase==="failed")/* @__PURE__ */
|
|
@@ -494,13 +494,13 @@ return r.jsxs(Page,{head:f,testID:"shop-orders",onRefresh:a.reread,children:[
|
|
|
494
494
|
/* @__PURE__ */r.jsx(Title,{children:o.ordersTitle}),m?/* @__PURE__ */r.jsxs(r.Fragment,{children:[b,
|
|
495
495
|
/* @__PURE__ */r.jsx(K,{children:o.ordersTitle})]}):null,
|
|
496
496
|
/* @__PURE__ */r.jsx(t.View,{style:l.orders,children:s.map(e=>/* @__PURE__ */r.jsx(OrderCard,{order:e,items:d(e),onPress:()=>n({name:"order",orderId:e.orderId})},e.orderId))}),
|
|
497
|
-
/* @__PURE__ */r.jsx(ErrorLine,{line:h}),c?/* @__PURE__ */r.jsx(Btn,{ghost:true,label:o.moreOrders,busy:p,busyLabel:i.saving,onPress:u}):null]})}function OrderCard({order:e,items:n,onPress:i}){let{copy:o,v3:l}=
|
|
497
|
+
/* @__PURE__ */r.jsx(ErrorLine,{line:h}),c?/* @__PURE__ */r.jsx(Btn,{ghost:true,label:o.moreOrders,busy:p,busyLabel:i.saving,onPress:u}):null]})}function OrderCard({order:e,items:n,onPress:i}){let{copy:o,v3:l}=ue(),a=ea(),s=Lt(e.status,o,l),d=n&&n.length>0?Ot(n):null,c=Bt(e,o,Y(e.total));/* @__PURE__ */
|
|
498
498
|
return r.jsxs(t.Pressable,{style:a.order,onPress:i,accessibilityRole:"button",accessibilityLabel:[s.label,e.referenceNumber,d,c].filter(Boolean).join(", "),testID:"shop-order-card",children:[
|
|
499
499
|
/* @__PURE__ */r.jsxs(t.View,{style:a.grow,children:[
|
|
500
500
|
/* @__PURE__ */r.jsxs(t.View,{style:a.orderTop,children:[
|
|
501
501
|
/* @__PURE__ */r.jsx(StatusPill,{label:s.label,tone:s.tone}),e.referenceNumber?/* @__PURE__ */r.jsx(Text3,{style:a.orderNo,children:e.referenceNumber}):null]}),d?/* @__PURE__ */r.jsx(Text3,{style:a.orderWhat,children:d}):null,
|
|
502
502
|
/* @__PURE__ */r.jsx(Text3,{style:d?a.orderMeta:[a.orderMeta,{marginTop:8}],children:c}),n&&n.length>0?/* @__PURE__ */r.jsx(t.View,{style:a.pics,children:n.slice(0,6).map((e,t)=>/* @__PURE__ */r.jsx(Thumb2,{rx:e.rx,size:40,imageUrl:e.imageUrl},`${e.title}-${t}`))}):null]}),
|
|
503
|
-
/* @__PURE__ */r.jsx(ShopV3Icon,{name:"chev",size:18,color:a.palette.ink3})]})}function PlacedScreen({orderIds:e,go:n}){let{client:i,copy:o,v3:l}=
|
|
503
|
+
/* @__PURE__ */r.jsx(ShopV3Icon,{name:"chev",size:18,color:a.palette.ink3})]})}function PlacedScreen({orderIds:e,go:n}){let{client:i,copy:o,v3:l}=ue(),a=ea(),s=(pe(`placed:${e.join(",")}`,async()=>F(await Promise.all(e.map(e=>i.order(e))))).value??[]).flatMap(e=>e.ok?[e.value]:[]),d=s.map(e=>e.arrivesBy??e.tracking?.deliveryBy??null).filter(e=>!!e).sort().pop(),c=ee(d??null,{weekday:true}),u=s.flatMap(e=>e.lines),p=e.length===1;/* @__PURE__ */
|
|
504
504
|
return r.jsx(Page,{testID:"shop-placed",foot:/* @__PURE__ */r.jsx(Btn,{label:p?l.viewOrder:o.allOrders,onPress:()=>n(p?{name:"order",orderId:e[0]}:{name:"orders"}),testID:"shop-placed-view"}),children:/* @__PURE__ */r.jsxs(t.View,{style:a.done,children:[
|
|
505
505
|
/* @__PURE__ */r.jsx(t.View,{style:a.doneCheck,accessibilityElementsHidden:true,importantForAccessibility:"no-hide-descendants",children:/* @__PURE__ */r.jsx(ShopV3Icon,{name:"check",size:34,color:a.palette.onAccent})}),
|
|
506
506
|
/* @__PURE__ */r.jsx(Text3,{tier:"heading",style:a.doneTitle,accessibilityRole:"header",children:l.placedTitle}),c?/* @__PURE__ */r.jsx(Text3,{style:a.doneWhen,children:l.arrivesBy(c)}):null,s.map(e=>e.summary.referenceNumber?/* @__PURE__ */r.jsx(Text3,{style:a.doneWho,children:l.orderTitle(e.summary.referenceNumber)},e.summary.orderId):null),u.length>0?/* @__PURE__ */r.jsxs(t.View,{style:a.next,accessibilityLabel:l.placedSteps,children:[u.map(e=>/* @__PURE__ */r.jsxs(t.View,{style:a.nextLi,accessible:true,accessibilityLabel:`${e.title}, ${l.itemQuantity(e.quantity)}`,children:[
|
|
@@ -511,21 +511,21 @@ return r.jsx(Page,{testID:"shop-placed",foot:/* @__PURE__ */r.jsx(Btn,{label:p?l
|
|
|
511
511
|
/* @__PURE__ */r.jsx(IconTile,{name:"calendar"}),
|
|
512
512
|
/* @__PURE__ */r.jsxs(t.View,{style:a.grow,children:[
|
|
513
513
|
/* @__PURE__ */r.jsx(Text3,{tier:"compact",style:a.nextK,children:c}),
|
|
514
|
-
/* @__PURE__ */r.jsx(Text3,{style:a.nextV,children:l.placedArrives})]})]}):null]}):null]})})}function LivePackage(){let{copy:e}=
|
|
515
|
-
return r.jsx(PackageScreen,{copy:e,tabs:n,view:i})}function LiveShop({initialQuery:e}){let{copy:n}=
|
|
514
|
+
/* @__PURE__ */r.jsx(Text3,{style:a.nextV,children:l.placedArrives})]})]}):null]}):null]})})}function LivePackage(){let{copy:e}=ue(),t=tr(),{tabs:n,view:i}=ot(t.go);/* @__PURE__ */
|
|
515
|
+
return r.jsx(PackageScreen,{copy:e,tabs:n,view:i})}function LiveShop({initialQuery:e}){let{copy:n}=ue(),{tabs:i,view:o}=dt(e);/* @__PURE__ */
|
|
516
516
|
return r.jsxs(t.View,{style:{flex:1},children:[
|
|
517
517
|
/* @__PURE__ */r.jsx(ShopScreen,{copy:n,tabs:i,view:o}),
|
|
518
|
-
/* @__PURE__ */r.jsx(CartBar2,{})]})}function CartBar2(){let{client:e,v3:n}=
|
|
519
|
-
return r.jsx(PlanScreen,{copy:t,tabs:n,view:i,reminders:e})}function LiveOrders({tabs:e}){let t
|
|
520
|
-
return r.jsx(t,{seam:
|
|
521
|
-
return r.jsx(CartScreen,{go:e.go})}function LivePlaced({orderIds:e}){let t
|
|
522
|
-
return r.jsx(PlacedScreen,{orderIds:e,go:t.go})}function LiveAddress({then:e}){let{copy:t}=
|
|
523
|
-
return r.jsx(AddressFormScreen,{copy:t,...
|
|
524
|
-
return r.jsx(CardSetupScreen,{copy:n,...
|
|
525
|
-
return r.jsx(BuyConfirmScreen,{copy:t,...
|
|
526
|
-
return r.jsx(PlanConsentScreen,{copy:t,...
|
|
527
|
-
return r.jsx(ShopProvider,{client:n,payments:u??null,copy:z,...
|
|
528
|
-
return r.jsx(
|
|
518
|
+
/* @__PURE__ */r.jsx(CartBar2,{})]})}function CartBar2(){let{client:e,v3:n}=ue(),i=$l(),o=tr(),l=ea(),a=R(e);return a.length===0?null:/* @__PURE__ */r.jsx(t.View,{style:[l.foot,{paddingBottom:Math.max(12,i.bottomInset)}],accessibilityLabel:n.cartLabel(A(a)),children:/* @__PURE__ */r.jsx(Btn,{label:n.viewCart,onPress:()=>o.go({name:"cart"}),testID:"shop-view-cart"})})}function LiveProduct({offerId:t,petId:n,avatar:i}){let{copy:o,v3:l,client:a}=ue(),s=tr(),d=fe(t).value,c=e.useCallback(e=>{if(e.name!=="buy")return s.go(e);let t=t=>{w(a,{offerId:t.offerId,title:t.title,unitPrice:t.price,requiresRx:t.requiresRx,quantity:e.quantity,...t.imageUrl?{imageUrl:t.imageUrl}:{},...e.petId?{petId:e.petId}:{},...e.rxId?{rxId:e.rxId}:{}}),C(a,l.addedToCart(t.title)),s.go({name:"cart"})};if(d&&d.offerId===e.offerId)return t(d);a.offer(e.offerId).then(r=>r.ok?t(r.value):s.go(e))},[a,d,s,l]),u=pt(t,n,c);return u.kind==="rx"?/* @__PURE__ */r.jsx(RxProductScreen,{copy:o,view:u.view,...i?{avatar:i}:{}}):/* @__PURE__ */r.jsx(ProductScreen,{copy:o,view:u.view})}function LivePlan({reminders:e}){let{copy:t}=ue(),{tabs:n,view:i}=ht();/* @__PURE__ */
|
|
519
|
+
return r.jsx(PlanScreen,{copy:t,tabs:n,view:i,reminders:e})}function LiveOrders({tabs:e}){let t=tr(),n=Wi(),i=fa();if(n&&i.on&&i.screen){let{Screen:t}=i.screen;/* @__PURE__ */
|
|
520
|
+
return r.jsx(t,{seam:ba,tabs:e,copy:i.copy,onHelp:i.onHelp,onCartBar:i.onCartBar})}return n?/* @__PURE__ */r.jsx(AppOrdersScreen,{tabs:e}):/* @__PURE__ */r.jsx(OrdersScreen,{tabs:e,go:t.go})}function LiveTracking({orderId:e}){let t=tr();return Wi()?/* @__PURE__ */r.jsx(AppOrderScreen,{orderId:e,go:t.go}):/* @__PURE__ */r.jsx(OrderScreen,{orderId:e,go:t.go})}function LiveCart(){let e=tr();/* @__PURE__ */
|
|
521
|
+
return r.jsx(CartScreen,{go:e.go})}function LivePlaced({orderIds:e}){let t=tr();/* @__PURE__ */
|
|
522
|
+
return r.jsx(PlacedScreen,{orderIds:e,go:t.go})}function LiveAddress({then:e}){let{copy:t}=ue(),n=tr();/* @__PURE__ */
|
|
523
|
+
return r.jsx(AddressFormScreen,{copy:t,...bt(e,n.go)})}function LiveCard({then:e,handoff:t}){let{copy:n}=ue(),i=tr();/* @__PURE__ */
|
|
524
|
+
return r.jsx(CardSetupScreen,{copy:n,...yt(e,i.go,t)})}function LiveBuy({route:e}){let{copy:t}=ue(),n=tr();/* @__PURE__ */
|
|
525
|
+
return r.jsx(BuyConfirmScreen,{copy:t,...vt(e,n.go)})}function LiveConsent({route:e}){let{copy:t}=ue(),n=tr();/* @__PURE__ */
|
|
526
|
+
return r.jsx(PlanConsentScreen,{copy:t,...Tt(e,n.go)})}function La(e){return e&&e.kind==="everfur-shop-orders-v2"&&typeof e.Screen=="function"?e:null}function shopBackRoute(e){switch(e.name){case"package":case"shop":case"plan":case"orders":return null;case"product":return{name:"shop"};case"order":return{name:"orders"};case"cart":case"placed":return{name:"shop"};case"address":case"card":return e.then??{name:"plan"};case"buy":case"consent":return{name:"product",offerId:e.offerId,...e.petId?{petId:e.petId}:{}}}}function EverfurShop(t){let{client:n,pets:i,packageSource:o,copy:l,v3Copy:a,fonts:d,renderIcon:c,payments:u,bottomInset:p,screenBottomInset:h,onOrderHelp:g,saveProfileName:f,onProfileNameRequired:m,cartStorageKey:b,look:y,ordersDesign:k,ordersV2Screen:w,ordersCopy:v,onOrdersHelp:S,onOrdersCartBar:j,...C}=t,I=e.useContext(s)?.runtime.registry.services.kv;e.useEffect(()=>{if(b)return x(n,I,`everfur.shop.cart.${b}`)},[n,I,b]);let L=a?.addToCart??se.addToCart,z=e.useMemo(()=>({buyNow:L,...l??{}}),[L,l]),A=e.useMemo(()=>({bottomInset:p??0,screenBottomInset:h??p??0,cardHandoff:C.cardHandoff??null,onOrderHelp:g??null}),[p,h,C.cardHandoff,g]),R=e.useMemo(()=>({on:(y??Li)==="everfur-app"&&k==="v2",screen:La(w),copy:shopOrdersV2Copy(v),onHelp:S??null,onCartBar:j??null}),[y,k,w,v,S,j]);/* @__PURE__ */
|
|
527
|
+
return r.jsx(ShopProvider,{client:n,payments:u??null,copy:z,...a?{v3Copy:a}:{},...i?{pets:i}:{},...o?{packageSource:o}:{},...f?{saveProfileName:f}:{},...m?{onProfileNameRequired:m}:{},children:/* @__PURE__ */r.jsx(ShopKitProvider,{...d?{fonts:d}:{},...c?{renderIcon:c}:{},children:/* @__PURE__ */r.jsx(Ai,{value:y??Li,children:/* @__PURE__ */r.jsx(_l,{value:A,children:/* @__PURE__ */r.jsx(ga,{value:R,children:/* @__PURE__ */r.jsx(ShopGate,{...C})})})})})})}function ShopGate({route:t,onRouteChange:n,openExternal:i,bookVisitHref:o,cardHandoff:l,avatar:a,reminders:s,onUnavailable:d}){let{copy:c}=ue(),u=he(),p=e.useMemo(()=>({go:n,openExternal:i}),[n,i]),h=u.phase==="unavailable"||u.error?.kind==="signedOut";return e.useEffect(()=>{h&&d?.()},[h,d]),u.phase==="loading"||h?null:u.phase==="failed"||!u.value?/* @__PURE__ */r.jsx(ShopNativeNavProvider,{value:p,children:/* @__PURE__ */r.jsx(Frame,{children:/* @__PURE__ */r.jsx(Stack,{children:/* @__PURE__ */r.jsx(LoadFailed,{copy:c,thing:c.thingShop,retry:u.refresh})})})}):/* @__PURE__ */r.jsx(ShopNativeNavProvider,{value:p,children:/* @__PURE__ */r.jsx(ShopPages,{route:t,config:u.value,bookVisitHref:o??null,cardHandoff:l??null,avatar:a,reminders:s})})}function ShopPages({route:t,config:n,bookVisitHref:i,cardHandoff:o,avatar:l,reminders:a}){let s=ve(),d=s.phase==="loading"||s.phase==="failed"||s.phase==="ready"&&s.value!==null,c=e.useMemo(()=>d?["package","shop","orders","plan"]:["shop","orders","plan"],[d]),u=t.name==="package"&&!d?{name:"shop"}:t,p=e.useMemo(()=>({config:n,tabs:c,pkg:s,bookVisitHref:i}),[n,c,s,i]);/* @__PURE__ */
|
|
528
|
+
return r.jsx(Ze,{value:p,children:za(u,c,o,l,a)})}function za(e,t,n,i,o){switch(e.name){case"package":/* @__PURE__ */
|
|
529
529
|
return r.jsx(LivePackage,{});case"shop":/* @__PURE__ */
|
|
530
530
|
return r.jsx(LiveShop,{...e.query?{initialQuery:e.query}:{}});case"product":/* @__PURE__ */
|
|
531
531
|
return r.jsx(LiveProduct,{offerId:e.offerId,...e.petId?{petId:e.petId}:{},...i?{avatar:i}:{}},e.offerId);case"plan":/* @__PURE__ */
|
|
@@ -537,4 +537,4 @@ return r.jsx(LiveCard,{handoff:n,...e.then?{then:e.then}:{}});case"buy":/* @__PU
|
|
|
537
537
|
return r.jsx(LiveBuy,{route:e});case"consent":/* @__PURE__ */
|
|
538
538
|
return r.jsx(LiveConsent,{route:e});case"cart":/* @__PURE__ */
|
|
539
539
|
return r.jsx(LiveCart,{});case"placed":/* @__PURE__ */
|
|
540
|
-
return r.jsx(LivePlaced,{orderIds:e.orderIds},e.orderIds.join(","))}}function ma(e,t){let r=globalThis.URL;if(typeof r=="function"){let n;try{n=t===void 0?new r(e):new r(e,t)}catch{return null}try{if(n.protocol)return n}catch{}}return ka(e)}var ba=/^([a-z][a-z0-9+.-]*):\/\/(?:([^:@/?#]*)(?::([^@/?#]*))?@)?(\[[0-9a-f:.]+\]|[\w.~-]+)(?::(\d*))?(\/[^?#]*)?(\?[^#]*)?(#.*)?$/i,ya=/[\s\u0000-\u001f\u007f\\]/,xa={"http:":"80","https:":"443"};function ka(e,t){let r=e.trim();let n=ya.test(r)?null:ba.exec(r);if(n===null)return null;let[,i="",o="",l="",a="",s="",d="",c="",u=""]=n,p=`${i.toLowerCase()}:`,h=Number(s);if(h>65535)return null;let g=s===""||String(h)===xa[p]?"":String(h),f=xa[p]!==void 0,m=a.toLowerCase()+(g&&`:${g}`),b=d||(f?"/":""),y=o||l?`${o}${l&&`:${l}`}@`:"";return{href:`${p}//${y}${m}${b}${c}${u}`,protocol:p,username:o,password:l,hostname:a.toLowerCase(),port:g,origin:f?`${p}//${m}`:"null",pathname:b,search:c==="?"?"":c,hash:u==="#"?"":u}}var wa=/(client_secret|_secret_|[?&#](sk|rk)_(live|test)_)/i,va={ok:false,message:null},Ta={ok:false,message:null,closed:true};function Sa(e){if(!e)return null;let t=ma(e);return t===null||t.protocol!=="https:"||t.username||t.password||wa.test(e)?null:t.href}function ja(e,t,r){if(e.type!=="success"||typeof e.url!="string"||!e.url.startsWith(t))return;let n=e.url.indexOf("?");if(n===-1)return null;let i=e.url.slice(n+1).split("#")[0]??"";for(let e of i.split("&")){let[t,n=""]=e.split("=");if(t===r)try{return decodeURIComponent(n)}catch{return null}}return null}async function Ca(e,t,r,n){let i;try{i=await e(t,r)}catch{return va}return i.type!=="success"?Ta:n(i)}function createInAppBrowserCardSetup(e){let{openAuthSession:t,pageUrl:r,client:n,returnUrl:i}=e,o=async()=>{if(r)return r();if(!n)return null;let e=await n.startCardSetupSession({idempotencyKey:newIdempotencyKey(),returnUrl:i});return e.ok?e.value.url:null};return async()=>{let e;try{e=Sa(await o())}catch{e=null}return e?Ca(t,e,i,e=>{let t=ja(e,i,"oms_card");return t===void 0?va:t==="canceled"?Ta:t===null||t==="done"?{ok:true}:va}):va}}function createInAppBrowserPayments(e){let{openAuthSession:t,client:r,returnUrl:n}=e;return{confirmCardSetup:()=>Promise.resolve(va),async handleNextAction(e,i){if(!i?.orderId)return va;let o;try{let e=await r.cardActionLink(i.orderId,{returnUrl:n});o=e.ok?Sa(e.value.url):null}catch{o=null}return o?Ca(t,o,n,e=>{let t=ja(e,n,"oms_card_action");return t==="succeeded"?{ok:true}:t==="canceled"?Ta:va}):va}}}function createInAppBrowserCard(e){return{cardHandoff:createInAppBrowserCardSetup({openAuthSession:e.openAuthSession,client:e.client,returnUrl:e.returnUrl}),payments:createInAppBrowserPayments(e)}}var Ia=class _OmsWireError extends Error{constructor(e){super(`OMS answer could not be read: ${e}`);this.field=e;this.name="OmsWireError",Object.setPrototypeOf(this,_OmsWireError.prototype)}};function La(e,t){if(e===null||typeof e!="object"||Array.isArray(e))throw new Ia(t);return e}function za(e,t){if(e==null)return[];if(!Array.isArray(e))throw new Ia(t);return e}function Aa(e,t,r=t){let n=e[t];if(typeof n!="string"||n.length===0)throw new Ia(r);return n}function Ra(e,t){let r=e[t];return typeof r=="string"&&r.length>0?r:null}function Wa(e,t,r=t){let n=e[t];if(typeof n!="number"||!Number.isFinite(n))throw new Ia(r);return Math.trunc(n)}function Fa(e,t){let r=e[t];return typeof r=="number"&&Number.isFinite(r)?Math.trunc(r):null}function Va(e,t){return e[t]===true}function Ha(e){if(!e||typeof e!="object")return null;let t=e.pet_id;return typeof t=="string"&&t.length>0?t:null}var Pa=["each","gram","milliliter"],Oa=["ground","two_day","next_day"];function Ba(e){let t=e.pack_unit;return typeof t=="string"&&Pa.includes(t)?t:null}function Ea(e){return typeof e=="string"&&Oa.includes(e)?e:null}function Da(e,t){let r=Ra(e,t);return r&&ma(r)?.protocol==="https:"?r:null}function Na(e,t){let r=e[t];return typeof r=="number"&&Number.isFinite(r)?r:null}function qa(e,t){let r=Ra(e,t);return r&&/^\d{4}-\d{2}-\d{2}$/.test(r)?r:null}function Ua(e,t){let r=e[t];return typeof r=="boolean"?r:null}var Ga=["pharmacy","everfur_box"];function Ma(e){if(e===null||typeof e!="object"||Array.isArray(e))return null;let t=e,r=Fa(t,"units_left"),n=Ra(t,"unit_label"),i=Na(t,"daily_units"),o=qa(t,"runs_out_on");return r===null||r<0||!n||i===null||i<=0||!o?null:{unitsLeft:r,unitLabel:n,dailyUnits:i,runsOutOn:o,refillArrivesOn:qa(t,"refill_arrives_on")}}function Ka(e){if(e===null||typeof e!="object"||Array.isArray(e))return[];let t=e,r=Ra(t,"key");return r?[{key:r,doneAt:Ra(t,"done_at")}]:[]}function Za(e){let t=La(e,"shop-config"),r=t.delivery&&typeof t.delivery=="object"?t.delivery:null,n=Ra(t,"stripe_publishable_key");return{recurringTermsVersion:Ra(t,"recurring_terms_version"),recurringTermsUrl:Da(t,"recurring_terms_url"),stripePublishableKey:n&&/^pk_(test|live)_[A-Za-z0-9]+$/.test(n)?n:null,delivery:r?{firstFill:Ea(r.first_fill),refill:Ea(r.refill)}:null,rxContactMissing:Array.isArray(t.rx_contact_missing)?t.rx_contact_missing.filter(e=>typeof e=="string"):null,freeShippingThresholdCents:Fa(t,"free_shipping_threshold_cents"),firstRxDiscountCents:Fa(t,"first_rx_discount_cents")}}function Ya(e){let t=La(e,"offer"),r=t.pack_quantity;return{offerId:Aa(t,"offer_id"),sku:Ra(t,"sku")??"",title:Aa(t,"title"),fulfillmentType:Ra(t,"fulfillment_type")??"physical",requiresRx:Va(t,"requires_rx"),compounded:Va(t,"compounded"),packQuantity:typeof r=="string"&&/^\d+(\.\d+)?$/.test(r)?r:null,packUnit:Ba(t),price:Fa(t,"price"),imageUrl:Da(t,"image_url")}}function Ja(e){let t=La(e,"offers");return{offers:za(t.offers,"offers").map(Ya),nextCursor:Ra(t,"next_cursor")}}function Xa(e){let t=La(e,"quote");return{lines:za(t.lines,"lines").map(e=>{let t=La(e,"line");return{offerId:Aa(t,"offer_id"),quantity:Wa(t,"quantity"),petId:Ha(t.pet),unitPrice:Wa(t,"unit_price"),discount:Fa(t,"discount")??0,tax:Fa(t,"tax")??0,whenFilledDiscountCents:Fa(t,"when_filled_discount_cents"),isRx:Ua(t,"is_rx"),chargedWhenFilled:Ua(t,"charged_when_filled")}}),shipping:Wa(t,"shipping"),tax:Fa(t,"tax")??0,total:Wa(t,"total"),expiresAt:Aa(t,"expires_at"),whenFilledDiscountCents:Fa(t,"when_filled_discount_cents"),dueTodayCents:Fa(t,"due_today_cents"),dueWhenFilledCents:Fa(t,"due_when_filled_cents"),shipsOn:qa(t,"ships_on"),arrivesOn:qa(t,"arrives_on")}}function Qa(e){let t=La(e,"checkout");return{checkoutId:Aa(t,"checkout_id"),state:Ra(t,"state")??"draft",orderIds:za(t.order_ids,"order_ids").filter(e=>typeof e=="string"),createdAt:Ra(t,"created_at")??"",total:Wa(t,"total"),shipping:Fa(t,"shipping")??0,tax:Fa(t,"tax")??0}}function _a(e){let t=La(e,"confirmation");return{checkoutId:Aa(t,"checkout_id"),resale:za(t.resale,"resale").map(e=>{let t=La(e,"resale"),r=Aa(t,"outcome");if(r!=="confirmed"&&r!=="action_required")throw new Ia("resale.outcome");let n=Ra(t,"payer_action");if(r==="action_required"&&!n)throw new Ia("resale.payer_action");return{outcome:r,orderId:Aa(t,"order_id"),payerAction:r==="confirmed"?null:n}})}}function $a(e){let t=La(e,"order"),r=t.reference&&typeof t.reference=="object"?t.reference:null;return{orderId:Aa(t,"order_id"),referenceNumber:r?Ra(r,"number"):null,status:Aa(t,"status"),total:Wa(t,"total"),placedAt:Ra(t,"placed_at"),itemCount:Fa(t,"item_count"),items:Array.isArray(t.items)?t.items.flatMap(es):null,fulfiller:Ga.includes(Ra(t,"fulfiller")??"")?t.fulfiller:null,arrivesBy:qa(t,"arrives_by"),steps:Array.isArray(t.steps)?t.steps.flatMap(Ka):null,currentStep:Ra(t,"current_step"),statusLineKey:Ra(t,"status_line_key"),prescriberName:Ra(t,"prescriber_name")}}function es(e){if(e===null||typeof e!="object"||Array.isArray(e))return[];let t=e,r=Ra(t,"offer_id"),n=Ra(t,"title"),i=Fa(t,"quantity");return r&&n&&i!==null?[{offerId:r,title:n,quantity:i,imageUrl:Da(t,"image_url")}]:[]}function ts(e){if(e===null||typeof e!="object"||Array.isArray(e))return[];let t=e,r=Ra(t,"key");return r?[{key:r,done:t.done===true,at:Ra(t,"at")}]:[]}function rs(e){if(e===null||typeof e!="object"||Array.isArray(e))return null;try{return os(e)}catch{return null}}function ns(e){let t=La(e,"orders");return{orders:za(t.orders,"orders").map($a),nextCursor:Ra(t,"next_cursor")}}function is(e){let t=La(e,"line"),r=t.pack_quantity;return{lineId:Aa(t,"line_id"),offerId:Aa(t,"offer_id"),sku:Ra(t,"sku")??"",title:Aa(t,"title"),requiresRx:Va(t,"requires_rx"),compounded:Va(t,"compounded"),packQuantity:typeof r=="string"&&/^\d+(\.\d+)?$/.test(r)?r:null,packUnit:Ba(t),quantity:Wa(t,"quantity"),unitPrice:Wa(t,"unit_price"),discount:Fa(t,"discount")??0,tax:Fa(t,"tax")??0,fulfillmentType:Ra(t,"fulfillment_type")??"physical",petId:Ha(t.pet),imageUrl:Da(t,"image_url")}}function os(e){let t=La(e,"tracking");return{carrier:Ra(t,"carrier"),trackingNumber:Ra(t,"tracking_number"),status:Aa(t,"status"),occurredAt:Ra(t,"occurred_at"),trackingUrl:Da(t,"tracking_url"),deliveryBy:Ra(t,"delivery_by")}}function ls(e){let t=La(e,"shipment");return{shipmentId:Aa(t,"shipment_id"),state:Aa(t,"state"),lines:za(t.lines,"shipment.lines").map(e=>{let t=La(e,"shipment.line");return{lineId:Aa(t,"line_id"),quantity:Wa(t,"quantity")}}),tracking:za(t.tracking,"tracking").map(os)}}function as(e){let t=La(e,"order");return{summary:$a(t.summary),lines:za(t.lines,"lines").map(is),shipping:Fa(t,"shipping")??0,shippingTax:Fa(t,"shipping_tax")??0,shipments:za(t.shipments,"shipments").map(ls),canCancel:Va(t,"can_cancel"),canReturn:Va(t,"can_return"),canPay:Va(t,"can_pay"),paymentStatus:Ra(t,"payment_status"),refunds:za(t.refunds,"refunds").map(e=>{let t=La(e,"refund");return{refundId:Aa(t,"refund_id"),amount:Wa(t,"amount"),state:Aa(t,"state")}}),returnIds:za(t.return_ids,"return_ids").filter(e=>typeof e=="string"),subtotal:Fa(t,"subtotal"),discount:Fa(t,"discount"),tax:Fa(t,"tax"),arrivesBy:Ra(t,"arrives_by"),tracking:rs(t.tracking),steps:Array.isArray(t.steps)?t.steps.flatMap(ts):null,paymentMethodId:Ra(t,"payment_method_id")}}function ss(e){let t=La(e,"cancel");return{outcome:Aa(t,"outcome"),refunded:Fa(t,"refunded"),reasonCode:Ra(t,"reason_code")}}function ds(e){let t=La(e,"pay"),r=Aa(t,"outcome");if(r!=="authorized"&&r!=="action_required")throw new Ia("pay.outcome");let n=Ra(t,"payer_action");if(r==="action_required"&&!n)throw new Ia("pay.payer_action");return{outcome:r,orderId:Aa(t,"order_id"),payerAction:r==="authorized"?null:n}}function cs(e){let t=La(e,"return");return{returnId:Aa(t,"return_id"),orderId:Aa(t,"order_id"),lines:za(t.lines,"return.lines").map(e=>{let t=La(e,"return.line");return{lineId:Aa(t,"line_id"),quantity:Wa(t,"quantity"),reasonCode:Aa(t,"reason_code")}}),state:Aa(t,"state"),rma:Ra(t,"rma"),labelUrl:Da(t,"label_url")}}function us(e){let t=La(e,"case");return{caseId:Aa(t,"case_id"),orderId:Aa(t,"order_id"),reasonCode:Aa(t,"reason_code"),message:typeof t.message=="string"?t.message:"",openedAt:Aa(t,"opened_at"),closedAt:Ra(t,"closed_at")}}function ps(e){return za(La(e,"cases").cases,"cases").map(us)}function hs(e){return za(La(e,"prescriptions").prescriptions,"prescriptions").map(e=>{let t=La(e,"prescription");return{rxId:Aa(t,"rx_id"),petId:Aa(t,"pet_id"),drug:Ra(t,"drug")??"",strength:Ra(t,"strength"),form:Ra(t,"form"),status:Aa(t,"status"),offerId:Ra(t,"offer_id"),packCount:Fa(t,"pack_count"),fillsUsed:Fa(t,"fills_used"),fillsTotal:Fa(t,"fills_total"),expiresOn:Ra(t,"expires_on"),nextFillOn:Ra(t,"next_fill_on"),supply:Ma(t.supply),prescriberName:Ra(t,"prescriber_name"),refillsTotal:Fa(t,"refills_total"),refillsLeft:Fa(t,"refills_left")}})}function gs(e){if(e===null||typeof e!="object"||Array.isArray(e))return null;let t=e,r=Ra(t,"line1"),n=Ra(t,"city"),i=Ra(t,"postal_code"),o=Ra(t,"country");return!r||!n||!i||!o?null:{recipientName:Ra(t,"recipient_name"),line1:r,line2:Ra(t,"line2"),city:n,region:Ra(t,"region")??"",postalCode:i,country:o}}function fs(e){if(e===null||typeof e!="object"||Array.isArray(e))return null;let t=e,r=Ra(t,"brand"),n=Ra(t,"last4");return r&&n?{brand:r,last4:n}:null}function ms(e){let t=La(e,"receipt"),r=t.reference&&typeof t.reference=="object"?t.reference:null;return{orderId:Aa(t,"order_id"),referenceNumber:r?Ra(r,"number"):null,placedAt:Aa(t,"placed_at"),lines:za(t.lines,"receipt.lines").map(e=>{let t=La(e,"receipt.line");return{title:Aa(t,"title","receipt.line.title"),quantity:Wa(t,"quantity","receipt.line.quantity"),unitPrice:Wa(t,"unit_price","receipt.line.unit_price"),discount:Wa(t,"discount","receipt.line.discount"),tax:Wa(t,"tax","receipt.line.tax"),total:Wa(t,"total","receipt.line.total")}}),subtotal:Wa(t,"subtotal"),shipping:Wa(t,"shipping"),tax:Wa(t,"tax"),discounts:Wa(t,"discounts"),total:Wa(t,"total"),paidAt:Ra(t,"paid_at"),card:fs(t.card),shipTo:gs(t.ship_to)}}function bs(e){let t=La(e,"address");return{ref:Aa(t,"ref"),label:Ra(t,"label")??"",isDefault:Va(t,"is_default"),isComplete:Va(t,"is_complete")}}function ys(e){return za(La(e,"addresses").addresses,"addresses").map(bs)}function xs(e){let t=La(e,"address"),r=La(t.address,"address.address"),n={recipientName:Ra(r,"recipient_name"),line1:Aa(r,"line1","address.line1"),line2:Ra(r,"line2"),city:Aa(r,"city","address.city"),region:Ra(r,"region")??"",postalCode:Aa(r,"postal_code","address.postal_code"),country:Aa(r,"country","address.country")};return{...bs(t),address:n}}function ks(e){return za(La(e,"payment_methods").payment_methods,"payment_methods").map(e=>{let t=La(e,"payment_method");return{paymentMethodId:Aa(t,"payment_method_id"),brand:Ra(t,"brand")??"",last4:Ra(t,"last4")??"",wallet:Ra(t,"wallet")}})}function ws(e){let t=La(e,"setup");return{setupId:Aa(t,"setup_id"),payerAction:Aa(t,"payer_action")}}function vs(e){let t=La(e,"card_setup");return{url:Aa(t,"url")}}function Ts(e){let t=La(e,"card_action");return{url:Aa(t,"url"),expiresAt:Aa(t,"expires_at")}}function Ss(e){let t=La(e,"plan");return{planId:Aa(t,"plan_id"),lines:za(t.lines,"plan.lines").map(e=>{let t=La(e,"plan.line");return{offerId:Aa(t,"offer_id"),quantity:Wa(t,"quantity"),petId:Ha(t.pet)}}),cadenceDays:Wa(t,"cadence_days"),destination:Ra(t,"destination"),paymentMethodId:Ra(t,"payment_method_id"),discountBps:Fa(t,"discount_bps")??0,nextRun:Ra(t,"next_run"),state:Aa(t,"state"),stopReason:Ra(t,"stop_reason"),priceCentsPerCycle:Fa(t,"price_cents_per_cycle"),chargedWhenFilled:Ua(t,"charged_when_filled"),nextShipOn:qa(t,"next_ship_on"),skippedCycleOn:qa(t,"skipped_cycle_on"),prescriberName:Ra(t,"prescriber_name"),refillsLeft:Fa(t,"refills_left"),refillsTotal:Fa(t,"refills_total"),autoDiscountPct:Fa(t,"auto_discount_pct"),changeOptions:Cs(t.change_options),skipWarning:js(t.skip_warning)}}function js(e){if(e===null||typeof e!="object"||Array.isArray(e))return null;let t=e,r=Ra(t,"key");if(r!=="last_dose"&&r!=="bottle_gap")return null;let n=t.values!==null&&typeof t.values=="object"&&!Array.isArray(t.values)?t.values:{},i=Ra(n,"unit_label")?.trim();return{key:r,values:{unitLabel:i||null,doseOn:qa(n,"dose_on"),noneFor:qa(n,"none_for"),lastsTo:qa(n,"lasts_to"),weeks:Fa(n,"weeks")}}}function Cs(e){if(!Array.isArray(e))return null;let t=e.flatMap(e=>{if(e===null||typeof e!="object"||Array.isArray(e))return[];let t=e,r=Ra(t,"offer_id"),n=Ra(t,"title"),i=Fa(t,"quantity"),o=Fa(t,"price_cents_per_cycle"),l=Array.isArray(t.cadence_days)?t.cadence_days.filter(e=>Number.isInteger(e)&&e>0):[];if(!r||!n||i===null||i<1||o===null||l.length===0)return[];let a=t.pack_quantity;return[{offerId:r,title:n,size:Ra(t,"size"),packQuantity:typeof a=="string"&&/^\d+(\.\d+)?$/.test(a)?a:null,packUnit:Ba(t),unitLabel:Ra(t,"unit_label"),quantity:i,priceCentsPerCycle:o,cadenceDays:l,current:t.current===true}]});return t.length>0?t:null}function Is(e){return za(La(e,"buy_again").items,"items").flatMap(e=>{if(e===null||typeof e!="object"||Array.isArray(e))return[];let t=e,r=Ra(t,"offer_id"),n=Ra(t,"title");return!r||!n?[]:[{offerId:r,title:n,imageUrl:Da(t,"image_url"),priceCents:Fa(t,"price_cents"),lastOrderedOn:qa(t,"last_ordered_on"),isRx:Ua(t,"is_rx")??false,likelyOut:Ua(t,"likely_out")??false}]})}function Ls(e){let t=La(e,"plans");return{plans:za(t.plans,"plans").map(Ss),nextCursor:Ra(t,"next_cursor")}}function zs(e){let t={offer_id:e.offerId,quantity:e.quantity};return e.petId&&(t.pet={namespace:"consumer",pet_id:e.petId}),e.rxId&&(t.rx_id=e.rxId),e.plan&&(t.plan=e.plan),t}function As(e){let t=e.address;return{label:e.label,make_default:e.makeDefault===true,address:{recipient_name:t.recipientName,line1:t.line1,line2:t.line2,city:t.city,region:t.region,postal_code:t.postalCode,country:t.country}}}function Rs(e){let t=La(e,"cycle"),r=t.review&&typeof t.review=="object"&&!Array.isArray(t.review)?t.review:null,n=e=>r&&r[e]!==void 0&&r[e]!==null?r[e]:t[e];return{planId:Aa(t,"plan_id"),reviewId:Ra(t,"review_id")??(r?Ra(r,"review_id"):null),cycle:Wa(t,"cycle"),state:r?Ra(r,"state")??Ra(t,"state"):Ra(t,"state"),lines:za(n("lines"),"cycle.lines").map(e=>{let t=La(e,"cycle.line");return{offerId:Aa(t,"offer_id"),quantity:Wa(t,"quantity"),petId:Ha(t.pet)}}),shipsOn:r?Ra(r,"ships_on")??Ra(t,"ships_on"):Ra(t,"ships_on"),approveBy:r?Ra(r,"approve_by")??Ra(t,"approve_by"):Ra(t,"approve_by"),quoteLines:za(t.quote&&typeof t.quote=="object"?t.quote.lines:null,"cycle.quote.lines").map(e=>{let t=La(e,"cycle.quote.line");return{offerId:Aa(t,"offer_id"),quantity:Wa(t,"quantity"),petId:Ha(t.pet),unitPrice:Wa(t,"unit_price"),discount:Fa(t,"discount")??0,tax:Fa(t,"tax")??0}})}}function Ws(e){let t=La(e,"cycle-draft");return{checkoutId:Aa(t,"checkout_id"),shipping:Fa(t,"shipping")??0,tax:Fa(t,"tax")??0,total:Wa(t,"total"),expiresAt:Ra(t,"expires_at")}}var Fs="/api/v1/oms",Vs=3e4,Hs=/^[A-Za-z0-9_]+$/,Ps=/^[a-z][a-z0-9_]{0,63}$/;function Os(e){let t=ma(e);if(t===null)throw new n("invalid-argument","createOmsClient: baseUrl is not a URL");let r=t.hostname==="localhost"||t.hostname==="127.0.0.1"||t.hostname==="[::1]";if(t.protocol!=="https:"&&!(r&&t.protocol==="http:"))throw new n("invalid-argument","createOmsClient: baseUrl must be https");if(t.username||t.password||t.search||t.hash)throw new n("invalid-argument","createOmsClient: baseUrl must be a bare origin or path");return t.origin+t.pathname.replace(/\/+$/,"")}function Bs(e){return encodeURIComponent(e)}function Es(e){return typeof e=="string"&&e.length>0&&e.length<=256}function createOmsClient(e){let t=Os(e.baseUrl)+(e.path??Fs).replace(/\/+$/,""),r=e.fetch??(typeof globalThis.fetch=="function"?globalThis.fetch.bind(globalThis):void 0);if(!r)throw new n("missing-peer-dependency","createOmsClient: no fetch available; pass config.fetch");if(!e.auth||e.auth.kind!=="everfur_consumer"||typeof e.auth.getToken!="function")throw new n("invalid-argument",'createOmsClient: auth must be { kind: "everfur_consumer", getToken }');let i=e.auth.getToken,o=e.channel??"web",l=e.timeoutMs??Vs;async function a(){try{let e=await i();return typeof e=="string"&&e.length>0?e:null}catch{return null}}async function s(e){let n=await a();if(!n)return W({kind:"signedOut"});let i=t+e.path;if(e.query){let t=new URLSearchParams;for(let[r,n]of Object.entries(e.query))n!==void 0&&t.set(r,String(n));let r=t.toString();r&&(i+=`?${r}`)}let o={accept:"application/json",authorization:`Bearer ${n}`},s={method:e.method,headers:o};e.body!==void 0&&(o["content-type"]="application/json",s.body=JSON.stringify(e.body));let d=typeof AbortController=="function"?new AbortController:null;d&&(s.signal=d.signal);let c=false,u=setTimeout(()=>{c=true,d?.abort()},l),p;try{p=await r(i,s)}catch{return clearTimeout(u),W({kind:c?"timeout":"network"})}try{let t=p.headers.get("x-request-id")??void 0,r=t?{requestId:t}:{};if(p.status<200||p.status>=300){let e=p.status===402||p.status===409||p.status===422?await p.json().catch(()=>null):null;return W(O(p.status,e,{...r,retryAfter:p.headers.get("retry-after")}))}if(e.read===null||p.status===204)return R(void 0);let n;try{n=await p.json()}catch{return W({kind:"badResponse",...r})}try{return R(e.read(n))}catch{return W({kind:"badResponse",...r})}}catch{return W({kind:c?"timeout":"network"})}finally{clearTimeout(u)}}let d=()=>Promise.resolve(W({kind:"invalidRequest"}));function c(e,t){return Es(e)?t(Bs(e)):d()}let u=e=>e.map(zs);return{shopConfig:()=>s({method:"GET",path:"/shop-config",read:Za}),offers:(e={})=>s({method:"GET",path:"/catalog/offers",query:{text:e.text,requires_rx:e.requiresRx,cursor:e.cursor,limit:e.limit},read:Ja}),offer:e=>c(e,e=>s({method:"GET",path:`/catalog/offers/${e}`,read:Ya})),prescriptions:()=>s({method:"GET",path:"/prescriptions",read:hs}),addresses:()=>s({method:"GET",path:"/addresses",read:ys}),address:e=>c(e,e=>s({method:"GET",path:`/addresses/${e}`,read:xs})),addAddress:e=>s({method:"POST",path:"/addresses",body:As(e),read:bs}),updateAddress:(e,t)=>c(e,e=>s({method:"PUT",path:`/addresses/${e}`,body:As(t),read:bs})),removeAddress:e=>c(e,e=>s({method:"DELETE",path:`/addresses/${e}`,read:null})),makeDefaultAddress:e=>c(e,e=>s({method:"POST",path:`/addresses/${e}/default`,read:bs})),paymentMethods:()=>s({method:"GET",path:"/payment-methods",read:ks}),setupPaymentMethod:()=>s({method:"POST",path:"/payment-methods/setup",read:ws}),startCardSetupSession:e=>s({method:"POST",path:"/payment-methods/setup-session",body:{idempotency_key:e.idempotencyKey,return_url:e.returnUrl},read:vs}),removePaymentMethod:e=>Hs.test(e)?s({method:"DELETE",path:`/payment-methods/${e}`,read:null}):d(),quote:e=>s({method:"POST",path:"/cart/quote",body:{lines:u(e.lines),ship_to:e.shipTo,promo_code:e.promoCode??null},read:Xa}),createCheckout:e=>s({method:"POST",path:"/checkouts",body:{idempotency_key:e.idempotencyKey,channel:o,lines:u(e.lines),ship_to:e.shipTo,receipt_email:e.receiptEmail??null,promo_code:e.promoCode??null},read:Qa}),confirmCheckout:(e,t)=>Hs.test(t.paymentMethodId)&&Number.isInteger(t.expectedTotal)?c(e,e=>s({method:"POST",path:`/checkouts/${e}/confirm`,body:{idempotency_key:t.idempotencyKey,expected_total:t.expectedTotal,payment_method_id:t.paymentMethodId},read:_a})):d(),orders:(e={})=>e.since!==void 0&&!/^\d{4}-\d{2}-\d{2}$/.test(e.since)?d():s({method:"GET",path:"/orders",query:{cursor:e.cursor,limit:e.limit,reference:e.reference,since:e.since},read:ns}),order:e=>c(e,e=>s({method:"GET",path:`/orders/${e}`,read:as})),cancelOrder:(e,t)=>Ps.test(t.reasonCode)?c(e,e=>s({method:"POST",path:`/orders/${e}/cancel`,body:{idempotency_key:t.idempotencyKey,reason_code:t.reasonCode},read:ss})):d(),payOrder:(e,t)=>{if(t.paymentMethodId!==void 0&&!Hs.test(t.paymentMethodId))return d();let r={idempotency_key:t.idempotencyKey};return t.paymentMethodId&&(r.payment_method_id=t.paymentMethodId),c(e,e=>s({method:"POST",path:`/orders/${e}/pay`,body:r,read:ds}))},cardActionLink:(e,t)=>c(e,e=>s({method:"POST",path:`/orders/${e}/card-action-link`,body:{return_url:t.returnUrl},read:Ts})),receipt:e=>c(e,e=>s({method:"GET",path:`/orders/${e}/receipt`,read:ms})),requestReturn:(e,t)=>t.lines.every(e=>Ps.test(e.reasonCode))?c(e,e=>s({method:"POST",path:`/orders/${e}/returns`,body:{idempotency_key:t.idempotencyKey,lines:t.lines.map(e=>({line_id:e.lineId,quantity:e.quantity,reason_code:e.reasonCode}))},read:cs})):d(),getReturn:e=>c(e,e=>s({method:"GET",path:`/returns/${e}`,read:cs})),cancelReturn:e=>c(e,e=>s({method:"POST",path:`/returns/${e}/cancel`,read:cs})),openCase:(e,t)=>Ps.test(t.reasonCode)&&t.message.length<=4e3?c(e,e=>s({method:"POST",path:`/orders/${e}/cases`,body:{idempotency_key:t.idempotencyKey,reason_code:t.reasonCode,message:t.message},read:us})):d(),orderCases:e=>c(e,e=>s({method:"GET",path:`/orders/${e}/cases`,read:ps})),plans:(e={})=>s({method:"GET",path:"/subscriptions",query:{cursor:e.cursor,limit:e.limit},read:Ls}),buyAgain:()=>s({method:"GET",path:"/buy-again",read:Is}),createPlan:e=>Hs.test(e.paymentMethodId)?s({method:"POST",path:"/subscriptions",body:{idempotency_key:e.idempotencyKey,cadence_days:e.cadenceDays,destination:e.destination,payment_method_id:e.paymentMethodId,consent_terms_version:e.consentTermsVersion,lines:u(e.lines)},read:Ss}):d(),updatePlan:(e,t)=>{if(t.paymentMethodId!==void 0&&!Hs.test(t.paymentMethodId))return d();let r={idempotency_key:t.idempotencyKey};if(t.lines&&(r.lines=u(t.lines)),t.cadenceDays!==void 0&&(r.cadence_days=t.cadenceDays),t.offerId!==void 0){if(!Es(t.offerId)||t.cadenceDays===void 0||t.lines)return d();r.offer_id=t.offerId}return t.destination!==void 0&&(r.destination=t.destination),t.paymentMethodId!==void 0&&(r.payment_method_id=t.paymentMethodId),c(e,e=>s({method:"PATCH",path:`/subscriptions/${e}`,body:r,read:Ss}))},planAction:(e,t)=>c(e,e=>s({method:"POST",path:`/subscriptions/${e}/actions`,body:{idempotency_key:t.idempotencyKey,operation:t.operation},read:Ss})),cancelPlan:e=>c(e,e=>s({method:"POST",path:`/subscriptions/${e}/cancel`,read:Ss})),cycleReview:e=>c(e,e=>s({method:"GET",path:`/subscriptions/${e}/cycle`,read:Rs})),editCycle:(e,t,r)=>Number.isInteger(t)&&t>0?c(e,e=>s({method:"PUT",path:`/subscriptions/${e}/cycles/${t}/lines`,body:{idempotency_key:r.idempotencyKey,lines:u(r.lines)},read:Rs})):d(),draftCycle:(e,t)=>Number.isInteger(t)&&t>0?c(e,e=>s({method:"POST",path:`/subscriptions/${e}/cycles/${t}/draft`,read:Ws})):d(),approveCycle:(e,t,r)=>Number.isInteger(t)&&t>0&&Number.isInteger(r.expectedTotal)?c(e,e=>s({method:"POST",path:`/subscriptions/${e}/cycles/${t}/approve`,body:{idempotency_key:r.idempotencyKey,checkout_id:r.checkoutId,expected_total:r.expectedTotal},read:_a})):d(),skipCycle:(e,t,r)=>Number.isInteger(t)&&t>0?c(e,e=>s({method:"POST",path:`/subscriptions/${e}/cycles/${t}/skip`,body:{idempotency_key:r.idempotencyKey},read:Ss})):d()}}exports.EverfurShop=EverfurShop;exports.SHOP_COPY=ne;exports.SHOP_COPY_PLACEHOLDERS=ie;exports.SHOP_ORDERS_V2_COPY=A;exports.SHOP_V3_COPY=le;exports.SHOP_V3_COPY_PLACEHOLDERS=ae;exports.ShopSwitchCard=ShopSwitchCard;exports.UNAVAILABLE_PACKAGE_SOURCE=U;exports.createInAppBrowserCard=createInAppBrowserCard;exports.createInAppBrowserCardSetup=createInAppBrowserCardSetup;exports.createInAppBrowserPayments=createInAppBrowserPayments;exports.createOmsClient=createOmsClient;exports.createOmsPackageSource=createOmsPackageSource;exports.isOmsRefusal=isOmsRefusal;exports.isOmsRetryable=isOmsRetryable;exports.isOmsUnavailable=isOmsUnavailable;exports.newIdempotencyKey=newIdempotencyKey;exports.shopBackRoute=shopBackRoute;exports.shopCopy=shopCopy;exports.shopOrdersV2Copy=shopOrdersV2Copy;exports.shopV3Copy=shopV3Copy;
|
|
540
|
+
return r.jsx(LivePlaced,{orderIds:e.orderIds},e.orderIds.join(","))}}function Aa(e,t){let r=globalThis.URL;if(typeof r=="function"){let n;try{n=t===void 0?new r(e):new r(e,t)}catch{return null}try{if(n.protocol)return n}catch{}}return Va(e)}var Ra=/^([a-z][a-z0-9+.-]*):\/\/(?:([^:@/?#]*)(?::([^@/?#]*))?@)?(\[[0-9a-f:.]+\]|[\w.~-]+)(?::(\d*))?(\/[^?#]*)?(\?[^#]*)?(#.*)?$/i,Wa=/[\s\u0000-\u001f\u007f\\]/,Fa={"http:":"80","https:":"443"};function Va(e,t){let r=e.trim();let n=Wa.test(r)?null:Ra.exec(r);if(n===null)return null;let[,i="",o="",l="",a="",s="",d="",c="",u=""]=n,p=`${i.toLowerCase()}:`,h=Number(s);if(h>65535)return null;let g=s===""||String(h)===Fa[p]?"":String(h),f=Fa[p]!==void 0,m=a.toLowerCase()+(g&&`:${g}`),b=d||(f?"/":""),y=o||l?`${o}${l&&`:${l}`}@`:"";return{href:`${p}//${y}${m}${b}${c}${u}`,protocol:p,username:o,password:l,hostname:a.toLowerCase(),port:g,origin:f?`${p}//${m}`:"null",pathname:b,search:c==="?"?"":c,hash:u==="#"?"":u}}var Ha=/(client_secret|_secret_|[?&#](sk|rk)_(live|test)_)/i,Pa={ok:false,message:null},Oa={ok:false,message:null,closed:true};function Ba(e){if(!e)return null;let t=Aa(e);return t===null||t.protocol!=="https:"||t.username||t.password||Ha.test(e)?null:t.href}function Da(e,t,r){if(e.type!=="success"||typeof e.url!="string"||!e.url.startsWith(t))return;let n=e.url.indexOf("?");if(n===-1)return null;let i=e.url.slice(n+1).split("#")[0]??"";for(let e of i.split("&")){let[t,n=""]=e.split("=");if(t===r)try{return decodeURIComponent(n)}catch{return null}}return null}async function Ea(e,t,r,n){let i;try{i=await e(t,r)}catch{return Pa}return i.type!=="success"?Oa:n(i)}function createInAppBrowserCardSetup(e){let{openAuthSession:t,pageUrl:r,client:n,returnUrl:i}=e,o=async()=>{if(r)return r();if(!n)return null;let e=await n.startCardSetupSession({idempotencyKey:newIdempotencyKey(),returnUrl:i});return e.ok?e.value.url:null};return async()=>{let e;try{e=Ba(await o())}catch{e=null}return e?Ea(t,e,i,e=>{let t=Da(e,i,"oms_card");return t===void 0?Pa:t==="canceled"?Oa:t===null||t==="done"?{ok:true}:Pa}):Pa}}function createInAppBrowserPayments(e){let{openAuthSession:t,client:r,returnUrl:n}=e;return{confirmCardSetup:()=>Promise.resolve(Pa),async handleNextAction(e,i){if(!i?.orderId)return Pa;let o;try{let e=await r.cardActionLink(i.orderId,{returnUrl:n});o=e.ok?Ba(e.value.url):null}catch{o=null}return o?Ea(t,o,n,e=>{let t=Da(e,n,"oms_card_action");return t==="succeeded"?{ok:true}:t==="canceled"?Oa:Pa}):Pa}}}function createInAppBrowserCard(e){return{cardHandoff:createInAppBrowserCardSetup({openAuthSession:e.openAuthSession,client:e.client,returnUrl:e.returnUrl}),payments:createInAppBrowserPayments(e)}}var Na=class _OmsWireError extends Error{constructor(e){super(`OMS answer could not be read: ${e}`);this.field=e;this.name="OmsWireError",Object.setPrototypeOf(this,_OmsWireError.prototype)}};function qa(e,t){if(e===null||typeof e!="object"||Array.isArray(e))throw new Na(t);return e}function Ua(e,t){if(e==null)return[];if(!Array.isArray(e))throw new Na(t);return e}function Ga(e,t,r=t){let n=e[t];if(typeof n!="string"||n.length===0)throw new Na(r);return n}function Ma(e,t){let r=e[t];return typeof r=="string"&&r.length>0?r:null}function Ka(e,t,r=t){let n=e[t];if(typeof n!="number"||!Number.isFinite(n))throw new Na(r);return Math.trunc(n)}function Za(e,t){let r=e[t];return typeof r=="number"&&Number.isFinite(r)?Math.trunc(r):null}function Ya(e,t){return e[t]===true}function Ja(e){if(!e||typeof e!="object")return null;let t=e.pet_id;return typeof t=="string"&&t.length>0?t:null}var Xa=["each","gram","milliliter"],Qa=["ground","two_day","next_day"];function _a(e){let t=e.pack_unit;return typeof t=="string"&&Xa.includes(t)?t:null}function $a(e){return typeof e=="string"&&Qa.includes(e)?e:null}function es(e,t){let r=Ma(e,t);return r&&Aa(r)?.protocol==="https:"?r:null}function ts(e,t){let r=e[t];return typeof r=="number"&&Number.isFinite(r)?r:null}function rs(e,t){let r=Ma(e,t);return r&&/^\d{4}-\d{2}-\d{2}$/.test(r)?r:null}function ns(e,t){let r=e[t];return typeof r=="boolean"?r:null}var is=["pharmacy","everfur_box"];function os(e){if(e===null||typeof e!="object"||Array.isArray(e))return null;let t=e,r=Za(t,"units_left"),n=Ma(t,"unit_label"),i=ts(t,"daily_units"),o=rs(t,"runs_out_on");return r===null||r<0||!n||i===null||i<=0||!o?null:{unitsLeft:r,unitLabel:n,dailyUnits:i,runsOutOn:o,refillArrivesOn:rs(t,"refill_arrives_on")}}function ls(e){if(e===null||typeof e!="object"||Array.isArray(e))return[];let t=e,r=Ma(t,"key");return r?[{key:r,doneAt:Ma(t,"done_at")}]:[]}function as(e){let t=qa(e,"shop-config"),r=t.delivery&&typeof t.delivery=="object"?t.delivery:null,n=Ma(t,"stripe_publishable_key");return{recurringTermsVersion:Ma(t,"recurring_terms_version"),recurringTermsUrl:es(t,"recurring_terms_url"),stripePublishableKey:n&&/^pk_(test|live)_[A-Za-z0-9]+$/.test(n)?n:null,delivery:r?{firstFill:$a(r.first_fill),refill:$a(r.refill)}:null,rxContactMissing:Array.isArray(t.rx_contact_missing)?t.rx_contact_missing.filter(e=>typeof e=="string"):null,freeShippingThresholdCents:Za(t,"free_shipping_threshold_cents"),firstRxDiscountCents:Za(t,"first_rx_discount_cents")}}function ss(e){let t=qa(e,"offer"),r=t.pack_quantity;return{offerId:Ga(t,"offer_id"),sku:Ma(t,"sku")??"",title:Ga(t,"title"),fulfillmentType:Ma(t,"fulfillment_type")??"physical",requiresRx:Ya(t,"requires_rx"),compounded:Ya(t,"compounded"),packQuantity:typeof r=="string"&&/^\d+(\.\d+)?$/.test(r)?r:null,packUnit:_a(t),price:Za(t,"price"),imageUrl:es(t,"image_url")}}function ds(e){let t=qa(e,"offers");return{offers:Ua(t.offers,"offers").map(ss),nextCursor:Ma(t,"next_cursor")}}function cs(e){let t=qa(e,"quote");return{lines:Ua(t.lines,"lines").map(e=>{let t=qa(e,"line");return{offerId:Ga(t,"offer_id"),quantity:Ka(t,"quantity"),petId:Ja(t.pet),unitPrice:Ka(t,"unit_price"),discount:Za(t,"discount")??0,tax:Za(t,"tax")??0,whenFilledDiscountCents:Za(t,"when_filled_discount_cents"),isRx:ns(t,"is_rx"),chargedWhenFilled:ns(t,"charged_when_filled")}}),shipping:Ka(t,"shipping"),tax:Za(t,"tax")??0,total:Ka(t,"total"),expiresAt:Ga(t,"expires_at"),whenFilledDiscountCents:Za(t,"when_filled_discount_cents"),dueTodayCents:Za(t,"due_today_cents"),dueWhenFilledCents:Za(t,"due_when_filled_cents"),shipsOn:rs(t,"ships_on"),arrivesOn:rs(t,"arrives_on")}}function us(e){let t=qa(e,"checkout");return{checkoutId:Ga(t,"checkout_id"),state:Ma(t,"state")??"draft",orderIds:Ua(t.order_ids,"order_ids").filter(e=>typeof e=="string"),createdAt:Ma(t,"created_at")??"",total:Ka(t,"total"),shipping:Za(t,"shipping")??0,tax:Za(t,"tax")??0}}function ps(e){let t=qa(e,"confirmation");return{checkoutId:Ga(t,"checkout_id"),resale:Ua(t.resale,"resale").map(e=>{let t=qa(e,"resale"),r=Ga(t,"outcome");if(r!=="confirmed"&&r!=="action_required")throw new Na("resale.outcome");let n=Ma(t,"payer_action");if(r==="action_required"&&!n)throw new Na("resale.payer_action");return{outcome:r,orderId:Ga(t,"order_id"),payerAction:r==="confirmed"?null:n}})}}function hs(e){let t=qa(e,"order"),r=t.reference&&typeof t.reference=="object"?t.reference:null;return{orderId:Ga(t,"order_id"),referenceNumber:r?Ma(r,"number"):null,status:Ga(t,"status"),total:Ka(t,"total"),placedAt:Ma(t,"placed_at"),itemCount:Za(t,"item_count"),items:Array.isArray(t.items)?t.items.flatMap(gs):null,fulfiller:is.includes(Ma(t,"fulfiller")??"")?t.fulfiller:null,arrivesBy:rs(t,"arrives_by"),steps:Array.isArray(t.steps)?t.steps.flatMap(ls):null,currentStep:Ma(t,"current_step"),statusLineKey:Ma(t,"status_line_key"),prescriberName:Ma(t,"prescriber_name")}}function gs(e){if(e===null||typeof e!="object"||Array.isArray(e))return[];let t=e,r=Ma(t,"offer_id"),n=Ma(t,"title"),i=Za(t,"quantity");return r&&n&&i!==null?[{offerId:r,title:n,quantity:i,imageUrl:es(t,"image_url")}]:[]}function fs(e){if(e===null||typeof e!="object"||Array.isArray(e))return[];let t=e,r=Ma(t,"key");return r?[{key:r,done:t.done===true,at:Ma(t,"at")}]:[]}function ms(e){if(e===null||typeof e!="object"||Array.isArray(e))return null;try{return xs(e)}catch{return null}}function bs(e){let t=qa(e,"orders");return{orders:Ua(t.orders,"orders").map(hs),nextCursor:Ma(t,"next_cursor")}}function ys(e){let t=qa(e,"line"),r=t.pack_quantity;return{lineId:Ga(t,"line_id"),offerId:Ga(t,"offer_id"),sku:Ma(t,"sku")??"",title:Ga(t,"title"),requiresRx:Ya(t,"requires_rx"),compounded:Ya(t,"compounded"),packQuantity:typeof r=="string"&&/^\d+(\.\d+)?$/.test(r)?r:null,packUnit:_a(t),quantity:Ka(t,"quantity"),unitPrice:Ka(t,"unit_price"),discount:Za(t,"discount")??0,tax:Za(t,"tax")??0,fulfillmentType:Ma(t,"fulfillment_type")??"physical",petId:Ja(t.pet),imageUrl:es(t,"image_url")}}function xs(e){let t=qa(e,"tracking");return{carrier:Ma(t,"carrier"),trackingNumber:Ma(t,"tracking_number"),status:Ga(t,"status"),occurredAt:Ma(t,"occurred_at"),trackingUrl:es(t,"tracking_url"),deliveryBy:Ma(t,"delivery_by")}}function ks(e){let t=qa(e,"shipment");return{shipmentId:Ga(t,"shipment_id"),state:Ga(t,"state"),lines:Ua(t.lines,"shipment.lines").map(e=>{let t=qa(e,"shipment.line");return{lineId:Ga(t,"line_id"),quantity:Ka(t,"quantity")}}),tracking:Ua(t.tracking,"tracking").map(xs)}}function ws(e){let t=qa(e,"order");return{summary:hs(t.summary),lines:Ua(t.lines,"lines").map(ys),shipping:Za(t,"shipping")??0,shippingTax:Za(t,"shipping_tax")??0,shipments:Ua(t.shipments,"shipments").map(ks),canCancel:Ya(t,"can_cancel"),canReturn:Ya(t,"can_return"),canPay:Ya(t,"can_pay"),paymentStatus:Ma(t,"payment_status"),refunds:Ua(t.refunds,"refunds").map(e=>{let t=qa(e,"refund");return{refundId:Ga(t,"refund_id"),amount:Ka(t,"amount"),state:Ga(t,"state")}}),returnIds:Ua(t.return_ids,"return_ids").filter(e=>typeof e=="string"),subtotal:Za(t,"subtotal"),discount:Za(t,"discount"),tax:Za(t,"tax"),arrivesBy:Ma(t,"arrives_by"),tracking:ms(t.tracking),steps:Array.isArray(t.steps)?t.steps.flatMap(fs):null,paymentMethodId:Ma(t,"payment_method_id")}}function vs(e){let t=qa(e,"cancel");return{outcome:Ga(t,"outcome"),refunded:Za(t,"refunded"),reasonCode:Ma(t,"reason_code")}}function Ts(e){let t=qa(e,"pay"),r=Ga(t,"outcome");if(r!=="authorized"&&r!=="action_required")throw new Na("pay.outcome");let n=Ma(t,"payer_action");if(r==="action_required"&&!n)throw new Na("pay.payer_action");return{outcome:r,orderId:Ga(t,"order_id"),payerAction:r==="authorized"?null:n}}function Ss(e){let t=qa(e,"return");return{returnId:Ga(t,"return_id"),orderId:Ga(t,"order_id"),lines:Ua(t.lines,"return.lines").map(e=>{let t=qa(e,"return.line");return{lineId:Ga(t,"line_id"),quantity:Ka(t,"quantity"),reasonCode:Ga(t,"reason_code")}}),state:Ga(t,"state"),rma:Ma(t,"rma"),labelUrl:es(t,"label_url")}}function js(e){let t=qa(e,"case");return{caseId:Ga(t,"case_id"),orderId:Ga(t,"order_id"),reasonCode:Ga(t,"reason_code"),message:typeof t.message=="string"?t.message:"",openedAt:Ga(t,"opened_at"),closedAt:Ma(t,"closed_at")}}function Cs(e){return Ua(qa(e,"cases").cases,"cases").map(js)}function Is(e){return Ua(qa(e,"prescriptions").prescriptions,"prescriptions").map(e=>{let t=qa(e,"prescription");return{rxId:Ga(t,"rx_id"),petId:Ga(t,"pet_id"),drug:Ma(t,"drug")??"",strength:Ma(t,"strength"),form:Ma(t,"form"),status:Ga(t,"status"),offerId:Ma(t,"offer_id"),packCount:Za(t,"pack_count"),fillsUsed:Za(t,"fills_used"),fillsTotal:Za(t,"fills_total"),expiresOn:Ma(t,"expires_on"),nextFillOn:Ma(t,"next_fill_on"),supply:os(t.supply),prescriberName:Ma(t,"prescriber_name"),refillsTotal:Za(t,"refills_total"),refillsLeft:Za(t,"refills_left")}})}function Ls(e){if(e===null||typeof e!="object"||Array.isArray(e))return null;let t=e,r=Ma(t,"line1"),n=Ma(t,"city"),i=Ma(t,"postal_code"),o=Ma(t,"country");return!r||!n||!i||!o?null:{recipientName:Ma(t,"recipient_name"),line1:r,line2:Ma(t,"line2"),city:n,region:Ma(t,"region")??"",postalCode:i,country:o}}function zs(e){if(e===null||typeof e!="object"||Array.isArray(e))return null;let t=e,r=Ma(t,"brand"),n=Ma(t,"last4");return r&&n?{brand:r,last4:n}:null}function As(e){let t=qa(e,"receipt"),r=t.reference&&typeof t.reference=="object"?t.reference:null;return{orderId:Ga(t,"order_id"),referenceNumber:r?Ma(r,"number"):null,placedAt:Ga(t,"placed_at"),lines:Ua(t.lines,"receipt.lines").map(e=>{let t=qa(e,"receipt.line");return{title:Ga(t,"title","receipt.line.title"),quantity:Ka(t,"quantity","receipt.line.quantity"),unitPrice:Ka(t,"unit_price","receipt.line.unit_price"),discount:Ka(t,"discount","receipt.line.discount"),tax:Ka(t,"tax","receipt.line.tax"),total:Ka(t,"total","receipt.line.total")}}),subtotal:Ka(t,"subtotal"),shipping:Ka(t,"shipping"),tax:Ka(t,"tax"),discounts:Ka(t,"discounts"),total:Ka(t,"total"),paidAt:Ma(t,"paid_at"),card:zs(t.card),shipTo:Ls(t.ship_to)}}function Rs(e){let t=qa(e,"address");return{ref:Ga(t,"ref"),label:Ma(t,"label")??"",isDefault:Ya(t,"is_default"),isComplete:Ya(t,"is_complete")}}function Ws(e){return Ua(qa(e,"addresses").addresses,"addresses").map(Rs)}function Fs(e){let t=qa(e,"address"),r=qa(t.address,"address.address"),n={recipientName:Ma(r,"recipient_name"),line1:Ga(r,"line1","address.line1"),line2:Ma(r,"line2"),city:Ga(r,"city","address.city"),region:Ma(r,"region")??"",postalCode:Ga(r,"postal_code","address.postal_code"),country:Ga(r,"country","address.country")};return{...Rs(t),address:n}}function Vs(e){return Ua(qa(e,"payment_methods").payment_methods,"payment_methods").map(e=>{let t=qa(e,"payment_method");return{paymentMethodId:Ga(t,"payment_method_id"),brand:Ma(t,"brand")??"",last4:Ma(t,"last4")??"",wallet:Ma(t,"wallet")}})}function Hs(e){let t=qa(e,"setup");return{setupId:Ga(t,"setup_id"),payerAction:Ga(t,"payer_action")}}function Ps(e){let t=qa(e,"card_setup");return{url:Ga(t,"url")}}function Os(e){let t=qa(e,"card_action");return{url:Ga(t,"url"),expiresAt:Ga(t,"expires_at")}}function Bs(e){let t=qa(e,"plan");return{planId:Ga(t,"plan_id"),lines:Ua(t.lines,"plan.lines").map(e=>{let t=qa(e,"plan.line");return{offerId:Ga(t,"offer_id"),quantity:Ka(t,"quantity"),petId:Ja(t.pet)}}),cadenceDays:Ka(t,"cadence_days"),destination:Ma(t,"destination"),paymentMethodId:Ma(t,"payment_method_id"),discountBps:Za(t,"discount_bps")??0,nextRun:Ma(t,"next_run"),state:Ga(t,"state"),stopReason:Ma(t,"stop_reason"),priceCentsPerCycle:Za(t,"price_cents_per_cycle"),chargedWhenFilled:ns(t,"charged_when_filled"),nextShipOn:rs(t,"next_ship_on"),skippedCycleOn:rs(t,"skipped_cycle_on"),prescriberName:Ma(t,"prescriber_name"),refillsLeft:Za(t,"refills_left"),refillsTotal:Za(t,"refills_total"),autoDiscountPct:Za(t,"auto_discount_pct"),changeOptions:Es(t.change_options),skipWarning:Ds(t.skip_warning)}}function Ds(e){if(e===null||typeof e!="object"||Array.isArray(e))return null;let t=e,r=Ma(t,"key");if(r!=="last_dose"&&r!=="bottle_gap")return null;let n=t.values!==null&&typeof t.values=="object"&&!Array.isArray(t.values)?t.values:{},i=Ma(n,"unit_label")?.trim();return{key:r,values:{unitLabel:i||null,doseOn:rs(n,"dose_on"),noneFor:rs(n,"none_for"),lastsTo:rs(n,"lasts_to"),weeks:Za(n,"weeks")}}}function Es(e){if(!Array.isArray(e))return null;let t=e.flatMap(e=>{if(e===null||typeof e!="object"||Array.isArray(e))return[];let t=e,r=Ma(t,"offer_id"),n=Ma(t,"title"),i=Za(t,"quantity"),o=Za(t,"price_cents_per_cycle"),l=Array.isArray(t.cadence_days)?t.cadence_days.filter(e=>Number.isInteger(e)&&e>0):[];if(!r||!n||i===null||i<1||o===null||l.length===0)return[];let a=t.pack_quantity;return[{offerId:r,title:n,size:Ma(t,"size"),packQuantity:typeof a=="string"&&/^\d+(\.\d+)?$/.test(a)?a:null,packUnit:_a(t),unitLabel:Ma(t,"unit_label"),quantity:i,priceCentsPerCycle:o,cadenceDays:l,current:t.current===true}]});return t.length>0?t:null}function Ns(e){return Ua(qa(e,"buy_again").items,"items").flatMap(e=>{if(e===null||typeof e!="object"||Array.isArray(e))return[];let t=e,r=Ma(t,"offer_id"),n=Ma(t,"title");return!r||!n?[]:[{offerId:r,title:n,imageUrl:es(t,"image_url"),priceCents:Za(t,"price_cents"),lastOrderedOn:rs(t,"last_ordered_on"),isRx:ns(t,"is_rx")??false,likelyOut:ns(t,"likely_out")??false}]})}function qs(e){let t=qa(e,"plans");return{plans:Ua(t.plans,"plans").map(Bs),nextCursor:Ma(t,"next_cursor")}}function Us(e){let t={offer_id:e.offerId,quantity:e.quantity};return e.petId&&(t.pet={namespace:"consumer",pet_id:e.petId}),e.rxId&&(t.rx_id=e.rxId),e.plan&&(t.plan=e.plan),t}function Gs(e){let t=e.address;return{label:e.label,make_default:e.makeDefault===true,address:{recipient_name:t.recipientName,line1:t.line1,line2:t.line2,city:t.city,region:t.region,postal_code:t.postalCode,country:t.country}}}function Ms(e){let t=qa(e,"cycle"),r=t.review&&typeof t.review=="object"&&!Array.isArray(t.review)?t.review:null,n=e=>r&&r[e]!==void 0&&r[e]!==null?r[e]:t[e];return{planId:Ga(t,"plan_id"),reviewId:Ma(t,"review_id")??(r?Ma(r,"review_id"):null),cycle:Ka(t,"cycle"),state:r?Ma(r,"state")??Ma(t,"state"):Ma(t,"state"),lines:Ua(n("lines"),"cycle.lines").map(e=>{let t=qa(e,"cycle.line");return{offerId:Ga(t,"offer_id"),quantity:Ka(t,"quantity"),petId:Ja(t.pet)}}),shipsOn:r?Ma(r,"ships_on")??Ma(t,"ships_on"):Ma(t,"ships_on"),approveBy:r?Ma(r,"approve_by")??Ma(t,"approve_by"):Ma(t,"approve_by"),quoteLines:Ua(t.quote&&typeof t.quote=="object"?t.quote.lines:null,"cycle.quote.lines").map(e=>{let t=qa(e,"cycle.quote.line");return{offerId:Ga(t,"offer_id"),quantity:Ka(t,"quantity"),petId:Ja(t.pet),unitPrice:Ka(t,"unit_price"),discount:Za(t,"discount")??0,tax:Za(t,"tax")??0}})}}function Ks(e){let t=qa(e,"cycle-draft");return{checkoutId:Ga(t,"checkout_id"),shipping:Za(t,"shipping")??0,tax:Za(t,"tax")??0,total:Ka(t,"total"),expiresAt:Ma(t,"expires_at")}}var Zs="/api/v1/oms",Ys=3e4,Js=/^[A-Za-z0-9_]+$/,Xs=/^[a-z][a-z0-9_]{0,63}$/;function Qs(e){let t=Aa(e);if(t===null)throw new o("invalid-argument","createOmsClient: baseUrl is not a URL");let r=t.hostname==="localhost"||t.hostname==="127.0.0.1"||t.hostname==="[::1]";if(t.protocol!=="https:"&&!(r&&t.protocol==="http:"))throw new o("invalid-argument","createOmsClient: baseUrl must be https");if(t.username||t.password||t.search||t.hash)throw new o("invalid-argument","createOmsClient: baseUrl must be a bare origin or path");return t.origin+t.pathname.replace(/\/+$/,"")}function _s(e){return encodeURIComponent(e)}function $s(e){return typeof e=="string"&&e.length>0&&e.length<=256}function createOmsClient(e){let t=Qs(e.baseUrl)+(e.path??Zs).replace(/\/+$/,""),r=e.fetch??(typeof globalThis.fetch=="function"?globalThis.fetch.bind(globalThis):void 0);if(!r)throw new o("missing-peer-dependency","createOmsClient: no fetch available; pass config.fetch");if(!e.auth||e.auth.kind!=="everfur_consumer"||typeof e.auth.getToken!="function")throw new o("invalid-argument",'createOmsClient: auth must be { kind: "everfur_consumer", getToken }');let n=e.auth.getToken,i=e.channel??"web",l=e.timeoutMs??Ys;async function a(){try{let e=await n();return typeof e=="string"&&e.length>0?e:null}catch{return null}}async function s(e){let n=await a();if(!n)return V({kind:"signedOut"});let i=t+e.path;if(e.query){let t=Object.entries(e.query).filter(([,e])=>e!==void 0).map(([e,t])=>`${encodeURIComponent(e)}=${encodeURIComponent(String(t))}`).join("&");t&&(i+=`?${t}`)}let o={accept:"application/json",authorization:`Bearer ${n}`},s={method:e.method,headers:o};e.body!==void 0&&(o["content-type"]="application/json",s.body=JSON.stringify(e.body));let d=typeof AbortController=="function"?new AbortController:null;d&&(s.signal=d.signal);let c=false,u=setTimeout(()=>{c=true,d?.abort()},l),p;try{p=await r(i,s)}catch{return clearTimeout(u),V({kind:c?"timeout":"network"})}try{let t=p.headers.get("x-request-id")??void 0,r=t?{requestId:t}:{};if(p.status<200||p.status>=300){let e=p.status===402||p.status===409||p.status===422?await p.json().catch(()=>null):null;return V(D(p.status,e,{...r,retryAfter:p.headers.get("retry-after")}))}if(e.read===null||p.status===204)return F(void 0);let n;try{n=await p.json()}catch{return V({kind:"badResponse",...r})}try{return F(e.read(n))}catch{return V({kind:"badResponse",...r})}}catch{return V({kind:c?"timeout":"network"})}finally{clearTimeout(u)}}let d=()=>Promise.resolve(V({kind:"invalidRequest"}));function c(e,t){return $s(e)?t(_s(e)):d()}let u=e=>e.map(Us);return{shopConfig:()=>s({method:"GET",path:"/shop-config",read:as}),offers:(e={})=>s({method:"GET",path:"/catalog/offers",query:{text:e.text,requires_rx:e.requiresRx,cursor:e.cursor,limit:e.limit},read:ds}),offer:e=>c(e,e=>s({method:"GET",path:`/catalog/offers/${e}`,read:ss})),prescriptions:()=>s({method:"GET",path:"/prescriptions",read:Is}),addresses:()=>s({method:"GET",path:"/addresses",read:Ws}),address:e=>c(e,e=>s({method:"GET",path:`/addresses/${e}`,read:Fs})),addAddress:e=>s({method:"POST",path:"/addresses",body:Gs(e),read:Rs}),updateAddress:(e,t)=>c(e,e=>s({method:"PUT",path:`/addresses/${e}`,body:Gs(t),read:Rs})),removeAddress:e=>c(e,e=>s({method:"DELETE",path:`/addresses/${e}`,read:null})),makeDefaultAddress:e=>c(e,e=>s({method:"POST",path:`/addresses/${e}/default`,read:Rs})),paymentMethods:()=>s({method:"GET",path:"/payment-methods",read:Vs}),setupPaymentMethod:()=>s({method:"POST",path:"/payment-methods/setup",read:Hs}),startCardSetupSession:e=>s({method:"POST",path:"/payment-methods/setup-session",body:{idempotency_key:e.idempotencyKey,return_url:e.returnUrl},read:Ps}),removePaymentMethod:e=>Js.test(e)?s({method:"DELETE",path:`/payment-methods/${e}`,read:null}):d(),quote:e=>s({method:"POST",path:"/cart/quote",body:{lines:u(e.lines),ship_to:e.shipTo,promo_code:e.promoCode??null},read:cs}),createCheckout:e=>s({method:"POST",path:"/checkouts",body:{idempotency_key:e.idempotencyKey,channel:i,lines:u(e.lines),ship_to:e.shipTo,receipt_email:e.receiptEmail??null,promo_code:e.promoCode??null},read:us}),confirmCheckout:(e,t)=>Js.test(t.paymentMethodId)&&Number.isInteger(t.expectedTotal)?c(e,e=>s({method:"POST",path:`/checkouts/${e}/confirm`,body:{idempotency_key:t.idempotencyKey,expected_total:t.expectedTotal,payment_method_id:t.paymentMethodId},read:ps})):d(),orders:(e={})=>e.since!==void 0&&!/^\d{4}-\d{2}-\d{2}$/.test(e.since)?d():s({method:"GET",path:"/orders",query:{cursor:e.cursor,limit:e.limit,reference:e.reference,since:e.since},read:bs}),order:e=>c(e,e=>s({method:"GET",path:`/orders/${e}`,read:ws})),cancelOrder:(e,t)=>Xs.test(t.reasonCode)?c(e,e=>s({method:"POST",path:`/orders/${e}/cancel`,body:{idempotency_key:t.idempotencyKey,reason_code:t.reasonCode},read:vs})):d(),payOrder:(e,t)=>{if(t.paymentMethodId!==void 0&&!Js.test(t.paymentMethodId))return d();let r={idempotency_key:t.idempotencyKey};return t.paymentMethodId&&(r.payment_method_id=t.paymentMethodId),c(e,e=>s({method:"POST",path:`/orders/${e}/pay`,body:r,read:Ts}))},cardActionLink:(e,t)=>c(e,e=>s({method:"POST",path:`/orders/${e}/card-action-link`,body:{return_url:t.returnUrl},read:Os})),receipt:e=>c(e,e=>s({method:"GET",path:`/orders/${e}/receipt`,read:As})),requestReturn:(e,t)=>t.lines.every(e=>Xs.test(e.reasonCode))?c(e,e=>s({method:"POST",path:`/orders/${e}/returns`,body:{idempotency_key:t.idempotencyKey,lines:t.lines.map(e=>({line_id:e.lineId,quantity:e.quantity,reason_code:e.reasonCode}))},read:Ss})):d(),getReturn:e=>c(e,e=>s({method:"GET",path:`/returns/${e}`,read:Ss})),cancelReturn:e=>c(e,e=>s({method:"POST",path:`/returns/${e}/cancel`,read:Ss})),openCase:(e,t)=>Xs.test(t.reasonCode)&&t.message.length<=4e3?c(e,e=>s({method:"POST",path:`/orders/${e}/cases`,body:{idempotency_key:t.idempotencyKey,reason_code:t.reasonCode,message:t.message},read:js})):d(),orderCases:e=>c(e,e=>s({method:"GET",path:`/orders/${e}/cases`,read:Cs})),plans:(e={})=>s({method:"GET",path:"/subscriptions",query:{cursor:e.cursor,limit:e.limit},read:qs}),buyAgain:()=>s({method:"GET",path:"/buy-again",read:Ns}),createPlan:e=>Js.test(e.paymentMethodId)?s({method:"POST",path:"/subscriptions",body:{idempotency_key:e.idempotencyKey,cadence_days:e.cadenceDays,destination:e.destination,payment_method_id:e.paymentMethodId,consent_terms_version:e.consentTermsVersion,lines:u(e.lines)},read:Bs}):d(),updatePlan:(e,t)=>{if(t.paymentMethodId!==void 0&&!Js.test(t.paymentMethodId))return d();let r={idempotency_key:t.idempotencyKey};if(t.lines&&(r.lines=u(t.lines)),t.cadenceDays!==void 0&&(r.cadence_days=t.cadenceDays),t.offerId!==void 0){if(!$s(t.offerId)||t.cadenceDays===void 0||t.lines)return d();r.offer_id=t.offerId}return t.destination!==void 0&&(r.destination=t.destination),t.paymentMethodId!==void 0&&(r.payment_method_id=t.paymentMethodId),c(e,e=>s({method:"PATCH",path:`/subscriptions/${e}`,body:r,read:Bs}))},planAction:(e,t)=>c(e,e=>s({method:"POST",path:`/subscriptions/${e}/actions`,body:{idempotency_key:t.idempotencyKey,operation:t.operation},read:Bs})),cancelPlan:e=>c(e,e=>s({method:"POST",path:`/subscriptions/${e}/cancel`,read:Bs})),cycleReview:e=>c(e,e=>s({method:"GET",path:`/subscriptions/${e}/cycle`,read:Ms})),editCycle:(e,t,r)=>Number.isInteger(t)&&t>0?c(e,e=>s({method:"PUT",path:`/subscriptions/${e}/cycles/${t}/lines`,body:{idempotency_key:r.idempotencyKey,lines:u(r.lines)},read:Ms})):d(),draftCycle:(e,t)=>Number.isInteger(t)&&t>0?c(e,e=>s({method:"POST",path:`/subscriptions/${e}/cycles/${t}/draft`,read:Ks})):d(),approveCycle:(e,t,r)=>Number.isInteger(t)&&t>0&&Number.isInteger(r.expectedTotal)?c(e,e=>s({method:"POST",path:`/subscriptions/${e}/cycles/${t}/approve`,body:{idempotency_key:r.idempotencyKey,checkout_id:r.checkoutId,expected_total:r.expectedTotal},read:ps})):d(),skipCycle:(e,t,r)=>Number.isInteger(t)&&t>0?c(e,e=>s({method:"POST",path:`/subscriptions/${e}/cycles/${t}/skip`,body:{idempotency_key:r.idempotencyKey},read:Bs})):d()}}exports.EverfurShop=EverfurShop;exports.SHOP_COPY=oe;exports.SHOP_COPY_PLACEHOLDERS=le;exports.SHOP_ORDERS_V2_COPY=W;exports.SHOP_V3_COPY=se;exports.SHOP_V3_COPY_PLACEHOLDERS=de;exports.ShopSwitchCard=ShopSwitchCard;exports.UNAVAILABLE_PACKAGE_SOURCE=M;exports.createInAppBrowserCard=createInAppBrowserCard;exports.createInAppBrowserCardSetup=createInAppBrowserCardSetup;exports.createInAppBrowserPayments=createInAppBrowserPayments;exports.createOmsClient=createOmsClient;exports.createOmsPackageSource=createOmsPackageSource;exports.isOmsRefusal=isOmsRefusal;exports.isOmsRetryable=isOmsRetryable;exports.isOmsUnavailable=isOmsUnavailable;exports.newIdempotencyKey=newIdempotencyKey;exports.shopBackRoute=shopBackRoute;exports.shopCopy=shopCopy;exports.shopOrdersV2Copy=shopOrdersV2Copy;exports.shopV3Copy=shopV3Copy;
|