@lockerverse/react 0.2.227-dev.1 → 0.2.229
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/MIGRATIONS.md +26 -77
- package/README.md +7 -0
- package/dist/auction-item.js +1 -1
- package/dist/auction-item.js.map +1 -1
- package/dist/embed/chunks/auction-payment-view-P4532RKB.js +9 -0
- package/dist/embed/chunks/chunk-DCANE7XH.js +1 -0
- package/dist/embed/chunks/chunk-FJ2J6F4G.js +2 -0
- package/dist/embed/chunks/chunk-FJ2J6F4G.js.LEGAL.txt +51 -0
- package/dist/embed/chunks/chunk-K5JAV66R.js +1 -0
- package/dist/embed/chunks/chunk-NI47XP5W.js +2 -0
- package/dist/embed/chunks/chunk-NI47XP5W.js.LEGAL.txt +12 -0
- package/dist/embed/chunks/lockerverse-auction-item-6SOREYVA.js +2 -0
- package/dist/embed/chunks/lockerverse-auction-item-6SOREYVA.js.LEGAL.txt +23 -0
- package/dist/embed/chunks/telemetry-6KTBIZ2M.js +6 -0
- package/dist/embed/chunks/telemetry-6KTBIZ2M.js.LEGAL.txt +1 -0
- package/dist/embed/lockerverse.js +11 -0
- package/dist/embed/lockerverse.js.LEGAL.txt +23 -0
- package/guides/auctions.md +1 -1
- package/guides/bookings.md +1 -1
- package/guides/browser-embed.md +120 -0
- package/guides/events.md +1 -1
- package/guides/integration.md +1 -1
- package/guides/payment-widgets.md +1 -1
- package/guides/signup.md +1 -1
- package/package.json +4 -3
package/MIGRATIONS.md
CHANGED
|
@@ -4,6 +4,27 @@ This file ships in both @lockerverse/sdk and @lockerverse/react. Use the copy in
|
|
|
4
4
|
the target installed release. This is an agent-run procedure, not an install
|
|
5
5
|
script. Installing a package does not edit host code or guarantee these steps ran.
|
|
6
6
|
|
|
7
|
+
## 0.2.229 — optional browser auction embed
|
|
8
|
+
|
|
9
|
+
- **Affected:** the separate browser artifact in `@lockerverse/react`, at
|
|
10
|
+
`dist/embed/lockerverse.js`. Existing React and Core imports are unchanged.
|
|
11
|
+
- **Optional adoption:** non-React hosts can load one version-pinned module script
|
|
12
|
+
and add `<lockerverse-auctions community="…"></lockerverse-auctions>`. The
|
|
13
|
+
artifact bundles React and styles; it requires no host React installation.
|
|
14
|
+
- **Required for embed hosts:** read the browser embed guide, set public resource
|
|
15
|
+
identity, allow the required script/API/media/payment resources, and preserve
|
|
16
|
+
the `lv-<instance>-auction` and `lv-<instance>-item` query parameters. Use unique,
|
|
17
|
+
stable instance names when a page has more than one embed.
|
|
18
|
+
- **Identity:** community, auction, environment, and instance remain fixed while
|
|
19
|
+
mounted. Replace it with a new element to change them. Theme and accent can
|
|
20
|
+
update in place. Do not remount during an unresolved payment or bid.
|
|
21
|
+
- **Limits:** this optional fallback renders in the browser and has no template
|
|
22
|
+
slots or custom React renderers. Keep existing server-rendered integrations.
|
|
23
|
+
Host security policies and payment-domain requirements still apply.
|
|
24
|
+
- **Check:** verify the published script, catalog, direct item links, Back/Forward,
|
|
25
|
+
mobile layout, gallery, and checkout loading on the host without submitting a
|
|
26
|
+
live transaction. Existing React consumers need no host edits for this option.
|
|
27
|
+
|
|
7
28
|
## Unreleased — business booking setup and payment verification
|
|
8
29
|
|
|
9
30
|
- **Affected:** optional SDK bookings, React booking state and booking payment.
|
|
@@ -363,7 +384,7 @@ No host prop change is required.
|
|
|
363
384
|
- **Check:** inspect a wide and a tall photo on desktop and mobile. Confirm all
|
|
364
385
|
edges remain visible in the item gallery, thumbnails, and full-screen viewer.
|
|
365
386
|
|
|
366
|
-
## 0.2.
|
|
387
|
+
## 0.2.191 — auction item additional charges
|
|
367
388
|
|
|
368
389
|
- **Affected:** Core auction item data, purchase quotes, and React auction checkout.
|
|
369
390
|
- **Automatic:** optional `additionalCharge` charges the first-item amount plus the
|
|
@@ -381,7 +402,7 @@ No host prop change is required.
|
|
|
381
402
|
- **Check:** compare one, two, and maximum quantity totals with the server quote,
|
|
382
403
|
verify the per-order limit, and inspect the named charge row before payment.
|
|
383
404
|
|
|
384
|
-
## 0.2.
|
|
405
|
+
## 0.2.189 — widget load recovery and Sentry releases
|
|
385
406
|
|
|
386
407
|
- **Affected:** Core widget loading and SDK failure reporting.
|
|
387
408
|
- **Automatic:** a widget GET retries once after a network failure or request
|
|
@@ -408,7 +429,6 @@ No host prop change is required.
|
|
|
408
429
|
- **Check:** select one, two, and the maximum allowed trigger quantity. Confirm the
|
|
409
430
|
local summary and server quote agree; removing all trigger items removes shipping.
|
|
410
431
|
|
|
411
|
-
|
|
412
432
|
## 0.2.184 — single focus boundary for form fields
|
|
413
433
|
|
|
414
434
|
- **Affected:** React form controls and the shared phone field in payment and signup.
|
|
@@ -428,7 +448,7 @@ Widgets can now use a private contact list for email eligibility, a fixed amount
|
|
|
428
448
|
Required shipping appears in `catalog.widget.requiredShipping`. Do not offer this product as a separate shopper choice. The SDK adds its quantity once when a trigger product is selected; the server also enforces this rule. Render authoritative quote line items and totals, including shipping. The built-in launcher and payment summary handle this automatically.
|
|
429
449
|
|
|
430
450
|
|
|
431
|
-
## 0.2.
|
|
451
|
+
## 0.2.177 — Secure checkout loading recovery
|
|
432
452
|
|
|
433
453
|
- **Affected:** React payment widget Stripe fields.
|
|
434
454
|
- **Automatic:** failed field or script loads show a reload action. Fields that
|
|
@@ -440,22 +460,8 @@ Required shipping appears in `catalog.widget.requiredShipping`. Do not offer thi
|
|
|
440
460
|
- Reload is an explicit customer action and can clear unsaved form entries.
|
|
441
461
|
Saved payment recovery remains in session storage.
|
|
442
462
|
|
|
443
|
-
## 0.2.175 — Match Stripe Elements payment method configuration
|
|
444
463
|
|
|
445
|
-
|
|
446
|
-
- **Automatic:** React configures explicit card, Link, and community-enabled bank
|
|
447
|
-
methods in Stripe Elements and marks the confirmation request with
|
|
448
|
-
`paymentMethodConfiguration: "explicit"`. This matches the backend's Stripe
|
|
449
|
-
PaymentIntent configuration.
|
|
450
|
-
- **Required:** deploy the backend that supports this optional marker before
|
|
451
|
-
upgrading React. Keep Core and React matched. Existing Core-only callers omit
|
|
452
|
-
the marker and retain automatic payment methods. Custom Elements integrations
|
|
453
|
-
must send the marker only when they use the explicit method list.
|
|
454
|
-
- **Check:** submit card and bank payments through Stripe Elements in test mode,
|
|
455
|
-
including recurring checkout. Confirm pending recovery and settlement.
|
|
456
|
-
|
|
457
|
-
|
|
458
|
-
## 0.2.174-dev.1 — Match Stripe Elements payment method configuration
|
|
464
|
+
## 0.2.175 — Match Stripe Elements payment method configuration
|
|
459
465
|
|
|
460
466
|
- **Affected:** Core checkout submission and React payment widgets.
|
|
461
467
|
- **Automatic:** React configures explicit card, Link, and community-enabled bank
|
|
@@ -530,39 +536,7 @@ Required shipping appears in `catalog.widget.requiredShipping`. Do not offer thi
|
|
|
530
536
|
verify a changed selection cannot discard it. Check both paid and free order
|
|
531
537
|
confirmation panels. Do not submit a live transaction for this check.
|
|
532
538
|
|
|
533
|
-
## 0.2.
|
|
534
|
-
|
|
535
|
-
- **Affected:** React payment widgets with unresolved payments.
|
|
536
|
-
- **Automatic behavior:** the existing pending-payment screen now offers Check
|
|
537
|
-
payment status. It checks the saved payment reference and cannot submit a new
|
|
538
|
-
payment. The control is disabled while the check runs.
|
|
539
|
-
- **Required host changes:** none. Update Core and React together.
|
|
540
|
-
- **Verification:** complete a test bank payment, return to its pending checkout,
|
|
541
|
-
and check its status. Confirm completion clears recovery storage.
|
|
542
|
-
|
|
543
|
-
## 0.2.171-dev.1 — SDK payment recovery and completion UI
|
|
544
|
-
|
|
545
|
-
- **Affected:** React payment widgets and custom hosts that persist payment recovery.
|
|
546
|
-
- **Optional adoption:** pass `recoveryStorageKey` to `LockerversePayment` to let
|
|
547
|
-
the SDK save and restore the pending payment in session storage. Use a stable
|
|
548
|
-
key scoped to the API environment, community, and widget. Remove the host's
|
|
549
|
-
storage code and recovery-driven component key. Do not combine automatic
|
|
550
|
-
persistence with a second host persistence writer.
|
|
551
|
-
- **Compatibility:** the SDK reads the hosted Next app's existing version 1
|
|
552
|
-
records when the same key is used. It writes version 2 records with widget
|
|
553
|
-
identity. It checks widget and selection identity before recovery and keeps
|
|
554
|
-
an unresolved record if those details differ. Recovery uses the saved connected
|
|
555
|
-
account even if current payment routing has changed. Storage is read after hydration,
|
|
556
|
-
before the payable form mounts. No contact details or payment tokens are saved.
|
|
557
|
-
- **Optional UI adoption:** use `completionView="summary"` for the SDK confirmation
|
|
558
|
-
panel and remove the host's duplicate success panel. Completion callbacks still
|
|
559
|
-
run. The default inline message and explicit `resumePayment` integrations remain
|
|
560
|
-
supported. Auctions and legacy custom checkout forms are unchanged.
|
|
561
|
-
- **Check:** reload a pending checkout and confirm the existing payment is checked;
|
|
562
|
-
verify a changed selection cannot discard it. Check both paid and free order
|
|
563
|
-
confirmation panels. Do not submit a live transaction for this check.
|
|
564
|
-
|
|
565
|
-
## 0.2.169-dev.1 — six-month payment widgets
|
|
539
|
+
## 0.2.170 — six-month payment widgets
|
|
566
540
|
|
|
567
541
|
Affected: @lockerverse/sdk checkout and @lockerverse/react payment widgets.
|
|
568
542
|
|
|
@@ -578,31 +552,6 @@ Affected: @lockerverse/sdk checkout and @lockerverse/react payment widgets.
|
|
|
578
552
|
submission. Do not submit a live payment for an integration check.
|
|
579
553
|
|
|
580
554
|
|
|
581
|
-
## 0.2.168-dev.1 — bank authorization terms
|
|
582
|
-
|
|
583
|
-
- **Affected:** React payment widgets with ACH enabled.
|
|
584
|
-
- **Automatic:** Stripe displays its bank authorization terms before payment confirmation.
|
|
585
|
-
- **Adoption:** update the matching SDK/React development pair. No prop changes are required.
|
|
586
|
-
- **Check:** confirm that the bank authorization text is visible when a bank account is selected.
|
|
587
|
-
|
|
588
|
-
## 0.2.167-dev.1 — widget ACH and subscription payment recovery
|
|
589
|
-
|
|
590
|
-
- **Affected:** Core checkout data and React payment widgets.
|
|
591
|
-
- **Automatic:** bank payment availability follows the organization default and
|
|
592
|
-
community override returned by the backend. Missing policy remains disabled.
|
|
593
|
-
Pending payments keep their existing payment reference. A failed subscription
|
|
594
|
-
invoice can return `action_required` with `requiresAction: false` and `retryUrl`;
|
|
595
|
-
React shows a link to pay the same invoice instead of creating a second subscription.
|
|
596
|
-
- **Required for custom payment UI:** preserve the reference for pending and
|
|
597
|
-
action-required results. Handle `retryUrl` by opening that invoice, and recover
|
|
598
|
-
status before permitting a new checkout. Do not treat submission as settlement.
|
|
599
|
-
- **Adoption:** deploy the matching backend policy and recovery contract before
|
|
600
|
-
enabling ACH. Existing React hosts need no component prop changes. Keep Core and
|
|
601
|
-
React versions matched when upgrading. Auction payment methods are unchanged.
|
|
602
|
-
- **Check:** verify disabled/inherited/enabled bank visibility and pending, bank
|
|
603
|
-
verification, invoice retry, success, and terminal failure in Stripe test mode.
|
|
604
|
-
Do not create a live transaction for this check.
|
|
605
|
-
|
|
606
555
|
## 0.2.166 — single dropdown arrow
|
|
607
556
|
|
|
608
557
|
- **Affected:** native single-select custom fields in React signup and payment forms.
|
package/README.md
CHANGED
|
@@ -825,3 +825,10 @@ own design. Use `<PaymentSummary quote={checkout} />` for a current quote.
|
|
|
825
825
|
Optional `displayedBaseCents`, `displayedTipCents`, and `displayedTotalCents`
|
|
826
826
|
overrides support pending price changes. They default to the quoted total minus
|
|
827
827
|
tip, tip, and total. These display properties never change the payable amount.
|
|
828
|
+
|
|
829
|
+
## Optional browser embed
|
|
830
|
+
|
|
831
|
+
For sites without a supported framework integration, use the separate script
|
|
832
|
+
and custom element described in [guides/browser-embed.md](guides/browser-embed.md).
|
|
833
|
+
It includes React and auction styles; normal React imports do not include it.
|
|
834
|
+
React hosts should continue to use the component API.
|
package/dist/auction-item.js
CHANGED
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
import{a as e,c as t,i as n,l as r,n as i,r as a,s as o,t as s}from"./use-auction-boundary.js";import{n as c,t as l}from"./auction-image.js";import{a as u,o as d,t as f}from"./auction-checkout-view.js";import{r as p}from"./phone-field.js";import{t as m}from"./auction-result2.js";import{t as h}from"./host-callback.js";import{ArrowRight as g,ChevronDown as _,ChevronLeft as v,ChevronRight as y,Clock3 as b,Gavel as x,Info as S,Pause as C,Play as w,ShieldCheck as T,TimerReset as E,X as D}from"lucide-react";import{useCallback as O,useEffect as k,useId as A,useMemo as j,useRef as M,useState as N}from"react";import{Fragment as P,jsx as F,jsxs as I}from"react/jsx-runtime";import{getLockerverseAuctionMinimumBid as L}from"@lockerverse/sdk/auctions";import{Dialog as R}from"@base-ui/react/dialog";import z from"embla-carousel-autoplay";import B from"embla-carousel-react";const V=6e3;function H(e,t){let n=M(V),r=M(null),[i,a]=N(V),o=j(()=>z({delay:i,playOnInit:!1,stopOnFocusIn:!1,stopOnInteraction:!0,stopOnMouseEnter:!1}),[i]),[s,c]=B({duration:t?0:25,loop:!0},[o]),l=O(()=>{r.current&&(r.current.style.transform=`scaleX(${1-n.current/V})`)},[]),u=O(()=>{let e=o.timeUntilNext();e!==null&&(n.current=Math.max(1,Math.min(V,e))),o.stop(),l()},[o,l]),d=O(()=>{n.current=V,a(V),o.reset(),l()},[o,l]);return k(()=>{c&&(e?i===n.current?o.play():a(n.current):u())},[c,e,o,i,a,n,u]),k(()=>{if(!c)return;let t=0,r=()=>{let i=o.timeUntilNext();!e||i===null||(n.current=Math.max(0,Math.min(V,i)),l(),t=requestAnimationFrame(r))},i=()=>{cancelAnimationFrame(t),e&&(t=requestAnimationFrame(r))},a=()=>cancelAnimationFrame(t),s=()=>{e&&o.play()};return c.on(`select`,d).on(`reInit`,s).on(`autoplay:timerset`,i).on(`autoplay:timerstopped`,a),l(),i(),()=>{a(),c.off(`select`,d).off(`reInit`,s).off(`autoplay:timerset`,i).off(`autoplay:timerstopped`,a)}},[c,o,e,n,d,l]),{embla:c,freeze:u,progressRef:r,reset:d,viewportRef:s}}function U({photos:e,name:t,imageSizes:n=`(max-width: 1279px) 100vw, 45vw`,selected:r,paused:a=!1,photoButtonRef:o,onSelect:s,onExpand:c}){let u=M(null),d=M(null),f=M([]),[p,m]=N(!0),[h,g]=N(!1),[_,b]=N(!1),[x,S]=N(!1),[T,E]=N(!1),{ref:D,visible:O}=i(),[A,j]=N(!1),[L,R]=N(!0),z=M(null),B=`lockerverse-auction-gallery__control ${L||A||_?`is-visible`:``}`,V=()=>{z.current&&clearTimeout(z.current),z.current=setTimeout(()=>j(!1),2e3)},U=e=>{if(e.pointerType!==`mouse`){R(!0);return}j(!0),z.current&&clearTimeout(z.current),e.target instanceof Element&&e.target.closest(`[data-gallery-control]`)||V()};k(()=>{let e=window.matchMedia(`(hover: none), (pointer: coarse)`),t=()=>R(e.matches);return t(),e.addEventListener(`change`,t),()=>{e.removeEventListener(`change`,t),clearTimeout(z.current??void 0)}},[]);let W=!(a||p||h||_||x||T)&&O,G=e.length,K=G?(r%G+G)%G:0,{viewportRef:ee,embla:q,progressRef:J,freeze:Y,reset:X}=H(W&&G>1,p);k(()=>{let e=window.matchMedia(`(prefers-reduced-motion: reduce)`),t=()=>m(e.matches);return t(),e.addEventListener(`change`,t),()=>e.removeEventListener(`change`,t)},[]),k(()=>{if(!q)return;let e=()=>s(q.selectedScrollSnap());return q.on(`select`,e).on(`reInit`,e),()=>{q.off(`select`,e).off(`reInit`,e)}},[q,s]),k(()=>{q&&q.selectedScrollSnap()!==K&&q.scrollTo(K,!0)},[q,K]),k(()=>{let e=()=>{document.hidden&&Y()},t=()=>E(!1);return e(),document.addEventListener(`visibilitychange`,e,!0),window.addEventListener(`pointerup`,t),window.addEventListener(`pointercancel`,t),()=>{document.removeEventListener(`visibilitychange`,e,!0),window.removeEventListener(`pointerup`,t),window.removeEventListener(`pointercancel`,t)}},[Y]);let Z=e=>{q?.scrollTo((e+G)%G,p),X()};return k(()=>{let e=d.current;d.current=null,e&&document.activeElement===e&&D.current?.querySelector(`.lockerverse-auction-gallery__photo[tabindex="0"]`)?.focus({preventScroll:!0})},[K,D]),k(()=>{let e=u.current,t=f.current[K];if(!(e&&t))return;let n=e.getBoundingClientRect(),r=t.getBoundingClientRect();r.left<n.left?e.scrollLeft-=n.left-r.left:r.right>n.right&&(e.scrollLeft+=r.right-n.right)},[K,G]),I(`section`,{"aria-label":`${t} photos`,className:`lockerverse-auction-gallery`,onBlurCapture:e=>{e.currentTarget.contains(e.relatedTarget)||b(!1)},onFocusCapture:e=>b(e.target.matches(`:focus-visible`)),onKeyDown:e=>{G<2||e.altKey||e.ctrlKey||e.metaKey||e.shiftKey||(e.key===`ArrowLeft`||e.key===`ArrowRight`)&&(e.preventDefault(),e.target instanceof HTMLButtonElement&&e.target.classList.contains(`lockerverse-auction-gallery__photo`)&&(d.current=e.target),Z(K+(e.key===`ArrowRight`?1:-1)))},onPointerEnter:e=>{e.pointerType===`mouse`&&g(!0)},onPointerLeave:e=>{e.pointerType===`mouse`&&g(!1)},ref:D,children:[G?I(`div`,{className:`lockerverse-auction-gallery__stage`,onPointerEnter:U,onPointerLeave:V,onPointerMove:U,children:[F(`div`,{className:`lockerverse-auction-gallery__viewport`,onPointerDownCapture:()=>{Y(),E(!0)},ref:ee,children:F(`div`,{className:`lockerverse-auction-gallery__track`,children:e.map((e,r)=>F(`div`,{"aria-hidden":r!==K,className:`lockerverse-auction-gallery__slide`,children:F(`button`,{"aria-label":`View photo ${r+1} of ${t} at full size`,className:`lockerverse-auction-gallery__photo`,onClick:()=>{c(r)},ref:r===K?o:void 0,tabIndex:r===K?0:-1,type:`button`,children:F(l,{alt:`${t}, ${r+1} of ${G}`,className:`lockerverse-auction-gallery__image`,draggable:!1,fetchPriority:r===0?`high`:`auto`,height:900,loading:r===K?`eager`:`lazy`,maxWidth:1920,sizes:r===K?n:`auto, ${n}`,src:e,width:1200})})},`${e}-${r}`))})}),G>1&&!p&&I(`div`,{className:`lockerverse-auction-gallery__rotation`,children:[F(`div`,{"aria-hidden":`true`,className:`lockerverse-auction-gallery__progress-track`,children:F(`div`,{className:`lockerverse-auction-gallery__progress`,ref:J,style:{transform:`scaleX(0)`}})}),F(`button`,{"aria-label":x?`Play photo rotation`:`Pause photo rotation`,className:`lockerverse-auction-gallery__play ${B}`,"data-gallery-control":!0,onClick:()=>S(e=>!e),title:x?`Play photo rotation`:`Pause photo rotation`,type:`button`,children:F(x?w:C,{"aria-hidden":`true`,size:13})})]}),G>1&&I(P,{children:[F(`button`,{"aria-label":`Previous photo`,className:`lockerverse-auction-gallery__previous ${B}`,"data-gallery-control":!0,onClick:()=>Z(K-1),type:`button`,children:F(v,{"aria-hidden":`true`,className:`lockerverse-auction-gallery__chevron`})}),F(`button`,{"aria-label":`Next photo`,className:`lockerverse-auction-gallery__next ${B}`,"data-gallery-control":!0,onClick:()=>Z(K+1),type:`button`,children:F(y,{"aria-hidden":`true`,className:`lockerverse-auction-gallery__chevron`})})]})]}):F(`div`,{className:`lockerverse-auction-gallery__empty`,children:`No photo available`}),G>1&&F(`section`,{"aria-label":`Choose a photo`,className:`lockerverse-auction-gallery__strip`,ref:u,children:F(`div`,{className:`lockerverse-auction-gallery__thumbnails`,children:e.map((e,t)=>F(`button`,{"aria-label":`Show photo ${t+1} of ${G}`,"aria-pressed":K===t,className:`lockerverse-auction-gallery__thumbnail ${K===t?`is-selected`:``}`,onClick:()=>Z(t),ref:e=>{f.current[t]=e},type:`button`,children:F(l,{alt:``,className:`lockerverse-auction-gallery__thumbnail-image`,height:66,loading:`lazy`,maxWidth:192,sizes:`88px`,src:e,width:88})},`${e}-${t}`))})})]})}function W({images:e,fallbackImage:t,name:n,imageSizes:r}){let i=[...new Set(e.filter(Boolean))];!i.length&&t&&i.push(t);let[a,o]=N(0),[s,c]=N(!1),u=M(null),d=M(null),f=i.length,p=f?(a%f+f)%f:0;return I(P,{children:[F(U,{imageSizes:r,name:n,onExpand:e=>{o(e),c(!0)},onSelect:o,paused:s,photoButtonRef:u,photos:i,selected:p}),f>0&&F(R.Root,{onOpenChange:c,open:s,children:I(R.Portal,{children:[F(R.Backdrop,{className:`lockerverse-auction-gallery__backdrop`}),I(R.Popup,{"aria-describedby":void 0,className:`lockerverse-auction-gallery__viewer`,finalFocus:u,onKeyDown:e=>{f<2||e.altKey||e.ctrlKey||e.metaKey||e.shiftKey||(e.key===`ArrowLeft`||e.key===`ArrowRight`)&&(e.preventDefault(),o((p+(e.key===`ArrowRight`?1:-1)+f)%f))},children:[I(R.Title,{className:`lockerverse-auction-gallery__sr-only`,children:[n,` · Photo `,p+1,` of `,f]}),I(`div`,{className:`lockerverse-auction-gallery__full-image`,onTouchCancel:()=>{d.current=null},onTouchEnd:e=>{let t=d.current;d.current=null;let n=e.changedTouches.item(0);if(!(t&&n)||f<2)return;let r=n.clientX-t.x,i=n.clientY-t.y;Math.abs(r)>=45&&Math.abs(r)>Math.abs(i)*1.3&&o((p+(r<0?1:-1)+f)%f)},onTouchMove:e=>{e.touches.length!==1&&(d.current=null)},onTouchStart:e=>{let t=e.touches.item(0);d.current=e.touches.length===1&&t?{x:t.clientX,y:t.clientY}:null},children:[F(l,{alt:`${n}, ${p+1} of ${f}`,height:900,maxWidth:1920,sizes:`100vw`,src:i[p],width:1200}),s&&f>1&&F(l,{alt:``,"aria-hidden":`true`,className:`lockerverse-auction-gallery__preload`,height:900,loading:`eager`,maxWidth:1920,sizes:`100vw`,src:i[(p+1)%f],width:1200})]}),F(R.Close,{"aria-label":`Close photo viewer`,className:`lockerverse-auction-gallery__viewer-close`,children:F(D,{"aria-hidden":`true`,size:22})}),f>1&&I(P,{children:[F(`button`,{"aria-label":`Previous photo`,className:`lockerverse-auction-gallery__viewer-previous`,onClick:()=>o((p-1+f)%f),type:`button`,children:F(v,{"aria-hidden":`true`,size:28})}),F(`button`,{"aria-label":`Next photo`,className:`lockerverse-auction-gallery__viewer-next`,onClick:()=>o((p+1)%f),type:`button`,children:F(y,{"aria-hidden":`true`,size:28})})]})]})]})})]})}const G={1:`h1`,2:`h2`};function K(e){return F(e===`Buy Now`?T:e===`Available`||e===`Increment`?E:x,{"aria-hidden":`true`,size:16})}function ee(e,t){return e.saleMode===`buy_now`?[[`Buy Now`,n(e.buyNowPriceAmount??0)],[`Available`,e.availableQuantity===null?`Available`:String(e.availableQuantity)]]:t===`finished`?[[`Final bid`,e.maxBidAmount?n(e.maxBidAmount):`No bids`]]:[[`Current bid`,n(e.maxBidAmount??0)],[`Floor`,n(e.minBidAmount??0)],[`Increment`,n(e.bidIncrementAmount??100)]]}function q({auction:r,item:i,itemHeadingLevel:o=2,galleryImageSizes:c}){s(i.startAt??r.startAt,i.endAt??r.endAt);let[l,u]=N(!1),d=A(),f=e(r,i),p={active:`Closes`,draft:`Opens`,finished:`Closed`}[f],m=a(r,f,i),h=i.saleMode===`buy_now`,g=(i.description??``).trim().length>240,v=ee(i,f),y=G[o];return I(`section`,{className:`lockerverse-auctions__item-summary`,children:[F(W,{fallbackImage:i.image??r.configuration.image??r.community?.banner??r.community?.thumbnail??null,imageSizes:c,images:i.images,name:i.name}),I(`div`,{className:`lockerverse-auctions__item-copy`,children:[F(y,{children:i.name}),i.description?I(`div`,{className:`lockerverse-auctions__item-description`,children:[F(t,{className:!l&&g?`lockerverse-auctions__description-clamped`:void 0,description:i.description,id:d}),g?I(`button`,{"aria-controls":d,"aria-expanded":l,className:`lockerverse-auctions__description-toggle`,onClick:()=>u(!l),type:`button`,children:[l?`Hide description`:`Read full description`,` `,F(_,{"aria-hidden":`true`,size:16,style:{transform:l?`rotate(180deg)`:void 0}})]}):null]}):null,I(`dl`,{className:`lockerverse-auctions__stat-panel`,children:[v.map(([e,t])=>I(`div`,{className:`lockerverse-auctions__stat-row`,children:[I(`dt`,{children:[K(e),e]}),F(`dd`,{children:t})]},e)),I(`div`,{className:`lockerverse-auctions__stat-row`,children:[I(`dt`,{children:[F(b,{"aria-hidden":`true`,size:16}),p]}),F(`dd`,{className:`lockerverse-auctions__stat-date`,children:m})]}),!h&&f===`finished`?I(`div`,{className:`lockerverse-auctions__stat-footer`,children:[I(`div`,{children:[F(`dt`,{children:`Floor`}),F(`dd`,{children:n(i.minBidAmount??0)})]}),I(`div`,{children:[F(`dt`,{children:`Bid increment`}),F(`dd`,{children:n(i.bidIncrementAmount??100)})]})]}):null]})]})]})}const J={1:`h2`,2:`h3`},Y=/^\d+$/;function X(e,t){let r=Number(e),i=r*(t.buyNowPriceAmount??0);if(!(Y.test(e)&&Number.isSafeInteger(i))||r<1)return`Enter a whole-number quantity.`;if(!t.additionalCharge)return`Total: ${n(i)}`;let a=t.additionalCharge.firstUnitAmountCents+t.additionalCharge.additionalUnitAmountCents*(r-1),o=i+a;return Number.isSafeInteger(o)?`Subtotal: ${n(i)} · ${t.additionalCharge.name}: ${n(a)} · Total: ${n(o)}`:`Enter a valid quantity.`}function Z(e,t,n){return String(e?t?t.quantity:1:t?t.amount/100:n)}function te(e,t){return o(e)?`This item is sold out.`:t===`draft`?`This item is not open yet.`:t===`finished`?e.saleMode===`buy_now`?`Purchases are closed for this item.`:`Bidding is closed for this item.`:`This item is not available.`}function ne(e,t,n){return o(t)?`All available quantities have been purchased.`:n===`draft`?`This item opens ${a(e,`draft`,t)}.`:t.saleMode===`buy_now`?`This item is no longer available to purchase.`:`Bidding has closed for this item.`}function re(e,t,n,r,i){let a={amount:t?0:Number(r)*100,includeServiceFee:n?n.includeServiceFee:e.serviceFeeEnabled&&e.serviceFeeDefaultChecked,quantity:t?Number(r):1};return t||(a.bidType=i),a}function ie({auction:t,item:i,initialSelection:a,onContinue:c,onError:l,onBack:f,backHref:p,itemHeadingLevel:m=2}){let h=J[m],_=i.saleMode===`buy_now`,v=Math.ceil(L(i)/100),[y,b]=N(Z(_,a,v)),[x,S]=N(a?.bidType??`fixed`),[C,w]=N(null),T=A();s(i.startAt??t.startAt,i.endAt??t.endAt);let E=e(t,i),D=E===`active`&&!o(i)&&i.saleMode!==`hybrid`;function O(e){if(e.preventDefault(),!Y.test(y)){w(_?`Enter a whole-number quantity.`:`Enter a whole-dollar bid amount.`);return}let n=re(t,_,a,y,x),r=u(t,i,n);if(r){w(r),l(r);return}try{d(t,i,n)}catch{w(`Enter a valid amount or quantity.`);return}c(n)}return D?I(`form`,{className:`lockerverse-auctions__selection`,onSubmit:O,children:[F(ae,{buyNow:_,headingTag:h,item:i,minimum:v}),I(`div`,{className:`lockerverse-auctions__selection-body`,children:[F(ce,{bidType:x,enabled:!_&&!!i.supportsMaximumBids,id:T,onChange:e=>{S(e),w(null)}}),I(`label`,{className:`lockerverse-auctions__field`,htmlFor:T,children:[se(_,x),I(`span`,{className:`lockerverse-auctions__amount-control`,children:[_?null:F(`span`,{"aria-hidden":`true`,children:`$`}),F(`input`,{"aria-describedby":`${T}-help`,"aria-invalid":!!C,autoComplete:`off`,id:T,inputMode:`numeric`,onChange:e=>{b(e.target.value),w(null)},placeholder:_?`1`:String(v),required:!0,value:y})]})]}),C?F(`p`,{role:`alert`,children:C}):null,F(`p`,{id:`${T}-help`,children:_?X(y,i):`Enter a whole-dollar bid of at least ${n(v*100)}. Bid increment: ${n(i.bidIncrementAmount??100)}.`}),F(oe,{item:i}),I(`div`,{className:`lockerverse-auctions__selection-footer`,children:[F(`p`,{children:_?`Continuing moves you into secure checkout where your payment is processed immediately.`:`Continuing moves you into the secure payment step where your card is stored for settlement only if your bid wins.`}),I(`button`,{className:`lockerverse-auctions__button`,disabled:!t.payment,type:`submit`,children:[_?`Continue to Checkout`:`Continue to Payment`,` `,F(g,{"aria-hidden":`true`,size:16})]})]}),t.payment?null:F(`p`,{role:`alert`,children:`Payments are not configured for this auction.`})]})]}):I(`div`,{className:`lockerverse-auctions__selection lockerverse-auctions__read-only`,children:[F(`p`,{className:`lockerverse-auctions__eyebrow`,children:`Item status`}),F(h,{children:te(i,E)}),F(`p`,{children:ne(t,i,E)}),I(r,{className:`lockerverse-auctions__button`,href:p,onBack:f,children:[`Browse auction items `,F(g,{"aria-hidden":`true`,size:16})]})]})}function ae({headingTag:e,item:t,buyNow:r,minimum:i}){return I(`div`,{className:`lockerverse-auctions__selection-header`,children:[F(`p`,{className:`lockerverse-auctions__eyebrow`,children:`Step 1 of 2`}),F(e,{children:r?`Buy this item now.`:`Place your bid.`}),F(`p`,{children:r?`Choose how many you want, then complete the secure checkout.`:`Choose your bid amount. You are only charged if this bid wins after bidding closes.`}),I(`p`,{children:[r?`Price: `:`Minimum qualifying bid: `,F(`strong`,{children:n(r?t.buyNowPriceAmount??0:i*100)})]}),r&&t.availableQuantity!==null?I(`p`,{children:[t.availableQuantity,` available`]}):null,t.collectShippingAddress?F(`p`,{children:`The next step will also collect a delivery address for seller fulfillment.`}):null]})}function oe({item:e}){return e.saleMode===`buy_now`||!e.additionalCharge?null:I(`p`,{children:[e.additionalCharge.name,`:`,` `,n(e.additionalCharge.firstUnitAmountCents),` will be added to your winning bid.`]})}function se(e,t){return e?`Quantity`:t===`maximum`?`Your maximum bid`:`Your bid amount`}function ce({bidType:e,enabled:t,id:n,onChange:r}){return t?I(`fieldset`,{className:`lockerverse-auctions__bid-types`,children:[F(`legend`,{children:`Bid type`}),[`fixed`,`maximum`].map(t=>I(`div`,{className:`lockerverse-auctions__bid-type`,children:[I(`label`,{children:[F(`input`,{checked:e===t,name:`${n}-bid-type`,onChange:()=>r(t),type:`radio`,value:t}),F(`span`,{children:t===`fixed`?`Fixed bid`:`Maximum bid`})]}),F(le,{id:`${n}-${t}-help`,type:t})]},t))]}):null}function le({id:e,type:t}){let[n,r]=N(!1);return I(`button`,{"aria-describedby":n?e:void 0,"aria-label":`About ${t===`fixed`?`fixed`:`maximum`} bids`,className:`lockerverse-auctions__bid-help-button`,onBlur:()=>r(!1),onClick:()=>r(!0),onFocus:()=>r(!0),onKeyDown:e=>{e.key===`Escape`&&r(!1)},onMouseEnter:()=>r(!0),onMouseLeave:()=>r(!1),type:`button`,children:[F(S,{"aria-hidden":`true`,size:16}),n&&F(`span`,{className:`lockerverse-auctions__bid-tip`,id:e,role:`tooltip`,children:t===`fixed`?`Bid this exact amount. It will not increase automatically.`:`We bid only what is needed to lead, up to your private limit. Accepted bids cannot be changed or canceled. A new bid is separate.`})]})}const Q=()=>void 0;function ue(e){let t=A(),{auction:n,item:r,selection:i,resumePurchase:a}=e,o=a?a.pricing:d(n,r,i),s=!!a||r.saleMode===`buy_now`;return F(f,{billingFields:null,buttonText:s?`Buy Now`:`Authorize Bid`,communityName:e.communityName??n.name,contactErrors:{},email:e.contact.email,id:t,includeServiceFee:i.includeServiceFee,isMaximumBid:!s&&i.bidType===`maximum`,isPurchase:s,isTerminal:!1,item:r,locked:!0,message:null,onBack:a||e.interactionLocked?void 0:e.onBack,onEmailChange:Q,onIncludeServiceFeeChange:e.onIncludeServiceFeeChange,onPhoneChange:Q,onSameAsBillingChange:Q,onSubmit:e=>e.preventDefault(),paymentFields:null,phone:e.contact.phone,phoneCountry:p(e.contact.phone),pricing:o,quantity:i.quantity,sameAsBilling:!0,serviceFeeCents:a?o.serviceFeeCents:d(n,r,{...i,includeServiceFee:n.serviceFeeEnabled}).serviceFeeCents,serviceFeeEnabled:n.serviceFeeEnabled,shippingFields:null,showFields:!a,submitDisabled:!0})}let de,fe=null;function $(){return de??=import(`./auction-payment-view.js`).then(e=>(fe=e.AuctionPayment,e)),de}function pe(e,t,n){let r=e?.publishableKey,i=e?.connectedAccountId,[a,o]=N(null);return k(()=>{if(!(n&&r))return;let e=$().then(e=>e.loadAuctionStripe(r,i,t)).catch(()=>null);o({connectedAccountId:i,publishableKey:r,stripe:e,stripeLoader:t})},[n,r,i,t]),a?.publishableKey===r&&a?.connectedAccountId===i&&a?.stripeLoader===t?a?.stripe:void 0}function me(e){let[t,n]=N(()=>fe),[r,i]=N(!1),a=!!(e.resumePurchase||e.interactionLocked);return k(()=>{let e=!0;return $().then(({AuctionPayment:t})=>{e&&n(()=>t)},()=>{e&&i(!0)}),()=>{e=!1}},[]),t?F(t,{...e}):r?I(`div`,{children:[F(`p`,{role:`alert`,children:`Payment details could not load.`}),a&&F(`p`,{children:`Your purchase status is not confirmed. Keep this page open and contact the auction organizer before you try another purchase.`}),a?null:F(`button`,{onClick:e.onBack,type:`button`,children:`Back to item`}),!a&&F(`button`,{onClick:()=>window.location.reload(),type:`button`,children:`Reload page to try again`})]}):F(ue,{...e})}function he({buyNow:e}){return I(`div`,{className:`lockerverse-auctions__progress`,children:[I(`span`,{children:[F(e?T:x,{"aria-hidden":`true`,size:16}),e?`Choose quantity`:`Place bid`]}),I(`span`,{children:[F(T,{"aria-hidden":`true`,size:16}),e?`Pay securely`:`Secure card`]}),I(`span`,{children:[F(E,{"aria-hidden":`true`,size:16}),e?`Get confirmation`:`Wait for close`]})]})}function ge(e){let{auction:t,item:n,outcome:r}=e,i;return e.backHref?i={href:e.backHref,label:`View auction items`}:e.onBack&&(i={label:`View auction items`,onClick:e.onBack}),F(m,{auctionName:t.name,className:e.className,closesAtLabel:a(t,`active`,n),communityName:e.communityName??t.community?.name,focusHeading:!0,imageUrl:n.image??n.images[0]??t.configuration.image??void 0,itemName:n.name,outcome:r,primaryAction:e.returnToItemHref?{href:e.returnToItemHref,label:`Return to item`}:i,secondaryAction:e.returnToItemHref?i:void 0,style:{"--lockerverse-accent":t.community?.color??`#6f8f6d`,...e.style},theme:e.theme})}function _e(t){let{auction:n,itemId:i,resumePurchase:a,className:c,theme:l=`dark`,style:u}=t,d=M(null),[f,p]=N(n),m=M(n),_=f.items.find(e=>e.id===i)??a?.item;s(_?.startAt??f.startAt,_?.endAt??f.endAt);let[y,b]=N(()=>a?{amount:0,includeServiceFee:a.submission.includeServiceFee??!1,quantity:a.submission.quantity}:null),[x,S]=N(!!a),C=M(!0),w=M(t);w.current=t;let T=M(null),E=O(e=>{C.current&&S(e),T.current!==e&&(T.current=e,h(w.current.onInteractionLockChange,e))},[]),D=!!a;k(()=>(C.current=!0,E(D),()=>{C.current=!1}),[D,E]);let[A,j]=N({email:``,phone:``}),[P,L]=N(!!a),[R,z]=N(null),[B,V]=N(null);k(()=>{!(P||x||a)&&m.current!==n&&(m.current=n,p(n))},[n,P,x,a]);let H=pe(a?.payment??f.payment,t.stripeLoader,!!a||!!(_&&e(f,_)===`active`&&!o(_)&&_.saleMode!==`hybrid`));function U(e,t){E(!1),m.current=w.current.auction,p(e),b(null),L(!1),z(t)}function W(e){z(null),b(e),L(!0)}return _?B?F(ge,{...t,auction:f,item:_,outcome:B}):I(`section`,{className:[`lockerverse-auctions`,c].filter(Boolean).join(` `),"data-lockerverse-theme":l,ref:d,style:{"--lockerverse-accent":f.community?.color??`#6f8f6d`,...u},children:[x?null:I(r,{className:`lockerverse-auctions__back`,href:t.backHref,onBack:t.onBack,children:[F(v,{"aria-hidden":`true`,size:16}),` All items`]}),I(`div`,{className:`lockerverse-auctions__detail`,children:[F(q,{auction:f,galleryImageSizes:t.galleryImageSizes,item:_,itemHeadingLevel:t.itemHeadingLevel}),I(`div`,{className:`lockerverse-auctions__transaction`,children:[e(f,_)===`active`?F(he,{buyNow:_.saleMode===`buy_now`}):null,R?F(`p`,{className:`lockerverse-auctions__notice`,role:`alert`,children:R}):null,P&&y?F(me,{...t,appearanceRoot:d,auction:f,communityName:t.communityName??f.community?.name,contact:A,interactionLocked:x,item:_,onBack:()=>L(!1),onContactChange:j,onIncludeServiceFeeChange:e=>b(t=>t&&{...t,includeServiceFee:f.serviceFeeEnabled&&e}),onInteractionLockChange:E,onResult:V,onReview:U,selection:y,stripePromise:H}):F(ie,{auction:f,backHref:t.backHref,initialSelection:y,item:_,itemHeadingLevel:t.itemHeadingLevel,onBack:t.onBack,onContinue:W,onError:z}),x?null:I(r,{className:`lockerverse-auctions__footer-back`,href:t.backHref,onBack:t.onBack,children:[`Back to auction items `,F(g,{"aria-hidden":`true`,size:16})]})]})]})]}):I(`div`,{children:[F(`p`,{role:`alert`,children:`This auction item is no longer available.`}),F(r,{href:t.backHref,onBack:t.onBack,children:`Back to auction items`})]})}function ve(e){let t=M({auctionId:e.auction.id,client:e.client,itemId:e.itemId});if(t.current.client!==e.client||t.current.auctionId!==e.auction.id||t.current.itemId!==e.itemId)throw TypeError(`Auction item identity cannot change. Remount with a new React key.`);if(e.resumePurchase&&(e.resumePurchase.auctionId!==e.auction.id||e.resumePurchase.itemId!==e.itemId||e.resumePurchase.item.id!==e.itemId||e.resumePurchase.item.auctionId!==e.auction.id))throw TypeError(`The purchase recovery record belongs to a different auction item.`);return F(c.Provider,{value:e.auction.mediaBaseUrl,children:F(_e,{...e})})}export{ve as LockerverseAuctionItem};
|
|
1
|
+
import{a as e,c as t,i as n,l as r,n as i,r as a,s as o,t as s}from"./use-auction-boundary.js";import{n as c,t as l}from"./auction-image.js";import{a as u,o as d,t as f}from"./auction-checkout-view.js";import{r as p}from"./phone-field.js";import{t as m}from"./auction-result2.js";import{t as h}from"./host-callback.js";import{ArrowRight as g,ChevronDown as _,ChevronLeft as v,ChevronRight as y,Clock3 as b,Gavel as x,Info as S,Pause as C,Play as w,ShieldCheck as T,TimerReset as E,X as D}from"lucide-react";import{useCallback as O,useEffect as k,useId as A,useMemo as j,useRef as M,useState as N}from"react";import{Fragment as P,jsx as F,jsxs as I}from"react/jsx-runtime";import{getLockerverseAuctionMinimumBid as L}from"@lockerverse/sdk/auctions";import{Dialog as R}from"@base-ui/react/dialog";import z from"embla-carousel-autoplay";import B from"embla-carousel-react";const V=6e3;function H(e,t){let n=M(V),r=M(null),[i,a]=N(V),o=j(()=>z({delay:i,playOnInit:!1,stopOnFocusIn:!1,stopOnInteraction:!0,stopOnMouseEnter:!1}),[i]),[s,c]=B({duration:t?0:25,loop:!0},[o]),l=O(()=>{r.current&&(r.current.style.transform=`scaleX(${1-n.current/V})`)},[]),u=O(()=>{let e=o.timeUntilNext();e!==null&&(n.current=Math.max(1,Math.min(V,e))),o.stop(),l()},[o,l]),d=O(()=>{n.current=V,a(V),o.reset(),l()},[o,l]);return k(()=>{c&&(e?i===n.current?o.play():a(n.current):u())},[c,e,o,i,a,n,u]),k(()=>{if(!c)return;let t=0,r=()=>{let i=o.timeUntilNext();!e||i===null||(n.current=Math.max(0,Math.min(V,i)),l(),t=requestAnimationFrame(r))},i=()=>{cancelAnimationFrame(t),e&&(t=requestAnimationFrame(r))},a=()=>cancelAnimationFrame(t),s=()=>{e&&o.play()};return c.on(`select`,d).on(`reInit`,s).on(`autoplay:timerset`,i).on(`autoplay:timerstopped`,a),l(),i(),()=>{a(),c.off(`select`,d).off(`reInit`,s).off(`autoplay:timerset`,i).off(`autoplay:timerstopped`,a)}},[c,o,e,n,d,l]),{embla:c,freeze:u,progressRef:r,reset:d,viewportRef:s}}function U({photos:e,name:t,imageSizes:n=`(max-width: 1279px) 100vw, 45vw`,selected:r,paused:a=!1,photoButtonRef:o,onSelect:s,onExpand:c}){let u=M(null),d=M(null),f=M([]),[p,m]=N(!0),[h,g]=N(!1),[_,b]=N(!1),[x,S]=N(!1),[T,E]=N(!1),{ref:D,visible:O}=i(),[A,j]=N(!1),[L,R]=N(!0),z=M(null),B=`lockerverse-auction-gallery__control ${L||A||_?`is-visible`:``}`,V=()=>{z.current&&clearTimeout(z.current),z.current=setTimeout(()=>j(!1),2e3)},U=e=>{if(e.pointerType!==`mouse`){R(!0);return}j(!0),z.current&&clearTimeout(z.current),e.target instanceof Element&&e.target.closest(`[data-gallery-control]`)||V()};k(()=>{let e=window.matchMedia(`(hover: none), (pointer: coarse)`),t=()=>R(e.matches);return t(),e.addEventListener(`change`,t),()=>{e.removeEventListener(`change`,t),clearTimeout(z.current??void 0)}},[]);let W=!(a||p||h||_||x||T)&&O,G=e.length,K=G?(r%G+G)%G:0,{viewportRef:q,embla:J,progressRef:Y,freeze:X,reset:Z}=H(W&&G>1,p);k(()=>{let e=window.matchMedia(`(prefers-reduced-motion: reduce)`),t=()=>m(e.matches);return t(),e.addEventListener(`change`,t),()=>e.removeEventListener(`change`,t)},[]),k(()=>{if(!J)return;let e=()=>s(J.selectedScrollSnap());return J.on(`select`,e).on(`reInit`,e),()=>{J.off(`select`,e).off(`reInit`,e)}},[J,s]),k(()=>{J&&J.selectedScrollSnap()!==K&&J.scrollTo(K,!0)},[J,K]),k(()=>{let e=()=>{document.hidden&&X()},t=()=>E(!1);return e(),document.addEventListener(`visibilitychange`,e,!0),window.addEventListener(`pointerup`,t),window.addEventListener(`pointercancel`,t),()=>{document.removeEventListener(`visibilitychange`,e,!0),window.removeEventListener(`pointerup`,t),window.removeEventListener(`pointercancel`,t)}},[X]);let Q=e=>{J?.scrollTo((e+G)%G,p),Z()};return k(()=>{let e=d.current;d.current=null,e&&document.activeElement===e&&D.current?.querySelector(`.lockerverse-auction-gallery__photo[tabindex="0"]`)?.focus({preventScroll:!0})},[K,D]),k(()=>{let e=u.current,t=f.current[K];if(!(e&&t))return;let n=e.getBoundingClientRect(),r=t.getBoundingClientRect();r.left<n.left?e.scrollLeft-=n.left-r.left:r.right>n.right&&(e.scrollLeft+=r.right-n.right)},[K,G]),I(`section`,{"aria-label":`${t} photos`,className:`lockerverse-auction-gallery`,onBlurCapture:e=>{e.currentTarget.contains(e.relatedTarget)||b(!1)},onFocusCapture:e=>b(e.target.matches(`:focus-visible`)),onKeyDown:e=>{G<2||e.altKey||e.ctrlKey||e.metaKey||e.shiftKey||(e.key===`ArrowLeft`||e.key===`ArrowRight`)&&(e.preventDefault(),e.target instanceof HTMLButtonElement&&e.target.classList.contains(`lockerverse-auction-gallery__photo`)&&(d.current=e.target),Q(K+(e.key===`ArrowRight`?1:-1)))},onPointerEnter:e=>{e.pointerType===`mouse`&&g(!0)},onPointerLeave:e=>{e.pointerType===`mouse`&&g(!1)},ref:D,children:[G?I(`div`,{className:`lockerverse-auction-gallery__stage`,onPointerEnter:U,onPointerLeave:V,onPointerMove:U,children:[F(`div`,{className:`lockerverse-auction-gallery__viewport`,onPointerDownCapture:()=>{X(),E(!0)},ref:q,children:F(`div`,{className:`lockerverse-auction-gallery__track`,children:e.map((e,r)=>F(`div`,{"aria-hidden":r!==K,className:`lockerverse-auction-gallery__slide`,children:F(`button`,{"aria-label":`View photo ${r+1} of ${t} at full size`,className:`lockerverse-auction-gallery__photo`,onClick:()=>{c(r)},ref:r===K?o:void 0,tabIndex:r===K?0:-1,type:`button`,children:F(l,{alt:`${t}, ${r+1} of ${G}`,className:`lockerverse-auction-gallery__image`,draggable:!1,fetchPriority:r===0?`high`:`auto`,height:900,loading:r===K?`eager`:`lazy`,maxWidth:1920,sizes:r===K?n:`auto, ${n}`,src:e,width:1200})})},`${e}-${r}`))})}),G>1&&!p&&I(`div`,{className:`lockerverse-auction-gallery__rotation`,children:[F(`div`,{"aria-hidden":`true`,className:`lockerverse-auction-gallery__progress-track`,children:F(`div`,{className:`lockerverse-auction-gallery__progress`,ref:Y,style:{transform:`scaleX(0)`}})}),F(`button`,{"aria-label":x?`Play photo rotation`:`Pause photo rotation`,className:`lockerverse-auction-gallery__play ${B}`,"data-gallery-control":!0,onClick:()=>S(e=>!e),title:x?`Play photo rotation`:`Pause photo rotation`,type:`button`,children:F(x?w:C,{"aria-hidden":`true`,size:13})})]}),G>1&&I(P,{children:[F(`button`,{"aria-label":`Previous photo`,className:`lockerverse-auction-gallery__previous ${B}`,"data-gallery-control":!0,onClick:()=>Q(K-1),type:`button`,children:F(v,{"aria-hidden":`true`,className:`lockerverse-auction-gallery__chevron`})}),F(`button`,{"aria-label":`Next photo`,className:`lockerverse-auction-gallery__next ${B}`,"data-gallery-control":!0,onClick:()=>Q(K+1),type:`button`,children:F(y,{"aria-hidden":`true`,className:`lockerverse-auction-gallery__chevron`})})]})]}):F(`div`,{className:`lockerverse-auction-gallery__empty`,children:`No photo available`}),G>1&&F(`section`,{"aria-label":`Choose a photo`,className:`lockerverse-auction-gallery__strip`,ref:u,children:F(`div`,{className:`lockerverse-auction-gallery__thumbnails`,children:e.map((e,t)=>F(`button`,{"aria-label":`Show photo ${t+1} of ${G}`,"aria-pressed":K===t,className:`lockerverse-auction-gallery__thumbnail ${K===t?`is-selected`:``}`,onClick:()=>Q(t),ref:e=>{f.current[t]=e},type:`button`,children:F(l,{alt:``,className:`lockerverse-auction-gallery__thumbnail-image`,height:66,loading:`lazy`,maxWidth:192,sizes:`88px`,src:e,width:88})},`${e}-${t}`))})})]})}function W({images:e,fallbackImage:t,name:n,imageSizes:r}){let i=[...new Set(e.filter(Boolean))];!i.length&&t&&i.push(t);let[a,o]=N(0),[s,c]=N(!1),u=M(null),d=M(null),f=u.current?.getRootNode(),p=f&&f instanceof ShadowRoot?f:void 0,m=i.length,h=m?(a%m+m)%m:0;return I(P,{children:[F(U,{imageSizes:r,name:n,onExpand:e=>{o(e),c(!0)},onSelect:o,paused:s,photoButtonRef:u,photos:i,selected:h}),m>0&&F(R.Root,{onOpenChange:c,open:s,children:I(R.Portal,{container:p,children:[F(R.Backdrop,{className:`lockerverse-auction-gallery__backdrop`}),I(R.Popup,{"aria-describedby":void 0,className:`lockerverse-auction-gallery__viewer`,finalFocus:u,onKeyDown:e=>{m<2||e.altKey||e.ctrlKey||e.metaKey||e.shiftKey||(e.key===`ArrowLeft`||e.key===`ArrowRight`)&&(e.preventDefault(),o((h+(e.key===`ArrowRight`?1:-1)+m)%m))},children:[I(R.Title,{className:`lockerverse-auction-gallery__sr-only`,children:[n,` · Photo `,h+1,` of `,m]}),I(`div`,{className:`lockerverse-auction-gallery__full-image`,onTouchCancel:()=>{d.current=null},onTouchEnd:e=>{let t=d.current;d.current=null;let n=e.changedTouches.item(0);if(!(t&&n)||m<2)return;let r=n.clientX-t.x,i=n.clientY-t.y;Math.abs(r)>=45&&Math.abs(r)>Math.abs(i)*1.3&&o((h+(r<0?1:-1)+m)%m)},onTouchMove:e=>{e.touches.length!==1&&(d.current=null)},onTouchStart:e=>{let t=e.touches.item(0);d.current=e.touches.length===1&&t?{x:t.clientX,y:t.clientY}:null},children:[F(l,{alt:`${n}, ${h+1} of ${m}`,height:900,maxWidth:1920,sizes:`100vw`,src:i[h],width:1200}),s&&m>1&&F(l,{alt:``,"aria-hidden":`true`,className:`lockerverse-auction-gallery__preload`,height:900,loading:`eager`,maxWidth:1920,sizes:`100vw`,src:i[(h+1)%m],width:1200})]}),F(R.Close,{"aria-label":`Close photo viewer`,className:`lockerverse-auction-gallery__viewer-close`,children:F(D,{"aria-hidden":`true`,size:22})}),m>1&&I(P,{children:[F(`button`,{"aria-label":`Previous photo`,className:`lockerverse-auction-gallery__viewer-previous`,onClick:()=>o((h-1+m)%m),type:`button`,children:F(v,{"aria-hidden":`true`,size:28})}),F(`button`,{"aria-label":`Next photo`,className:`lockerverse-auction-gallery__viewer-next`,onClick:()=>o((h+1)%m),type:`button`,children:F(y,{"aria-hidden":`true`,size:28})})]})]})]})})]})}const G={1:`h1`,2:`h2`};function K(e){return F(e===`Buy Now`?T:e===`Available`||e===`Increment`?E:x,{"aria-hidden":`true`,size:16})}function q(e,t){return e.saleMode===`buy_now`?[[`Buy Now`,n(e.buyNowPriceAmount??0)],[`Available`,e.availableQuantity===null?`Available`:String(e.availableQuantity)]]:t===`finished`?[[`Final bid`,e.maxBidAmount?n(e.maxBidAmount):`No bids`]]:[[`Current bid`,n(e.maxBidAmount??0)],[`Floor`,n(e.minBidAmount??0)],[`Increment`,n(e.bidIncrementAmount??100)]]}function J({auction:r,item:i,itemHeadingLevel:o=2,galleryImageSizes:c}){s(i.startAt??r.startAt,i.endAt??r.endAt);let[l,u]=N(!1),d=A(),f=e(r,i),p={active:`Closes`,draft:`Opens`,finished:`Closed`}[f],m=a(r,f,i),h=i.saleMode===`buy_now`,g=(i.description??``).trim().length>240,v=q(i,f),y=G[o];return I(`section`,{className:`lockerverse-auctions__item-summary`,children:[F(W,{fallbackImage:i.image??r.configuration.image??r.community?.banner??r.community?.thumbnail??null,imageSizes:c,images:i.images,name:i.name}),I(`div`,{className:`lockerverse-auctions__item-copy`,children:[F(y,{children:i.name}),i.description?I(`div`,{className:`lockerverse-auctions__item-description`,children:[F(t,{className:!l&&g?`lockerverse-auctions__description-clamped`:void 0,description:i.description,id:d}),g?I(`button`,{"aria-controls":d,"aria-expanded":l,className:`lockerverse-auctions__description-toggle`,onClick:()=>u(!l),type:`button`,children:[l?`Hide description`:`Read full description`,` `,F(_,{"aria-hidden":`true`,size:16,style:{transform:l?`rotate(180deg)`:void 0}})]}):null]}):null,I(`dl`,{className:`lockerverse-auctions__stat-panel`,children:[v.map(([e,t])=>I(`div`,{className:`lockerverse-auctions__stat-row`,children:[I(`dt`,{children:[K(e),e]}),F(`dd`,{children:t})]},e)),I(`div`,{className:`lockerverse-auctions__stat-row`,children:[I(`dt`,{children:[F(b,{"aria-hidden":`true`,size:16}),p]}),F(`dd`,{className:`lockerverse-auctions__stat-date`,children:m})]}),!h&&f===`finished`?I(`div`,{className:`lockerverse-auctions__stat-footer`,children:[I(`div`,{children:[F(`dt`,{children:`Floor`}),F(`dd`,{children:n(i.minBidAmount??0)})]}),I(`div`,{children:[F(`dt`,{children:`Bid increment`}),F(`dd`,{children:n(i.bidIncrementAmount??100)})]})]}):null]})]})]})}const Y={1:`h2`,2:`h3`},X=/^\d+$/;function Z(e,t){let r=Number(e),i=r*(t.buyNowPriceAmount??0);if(!(X.test(e)&&Number.isSafeInteger(i))||r<1)return`Enter a whole-number quantity.`;if(!t.additionalCharge)return`Total: ${n(i)}`;let a=t.additionalCharge.firstUnitAmountCents+t.additionalCharge.additionalUnitAmountCents*(r-1),o=i+a;return Number.isSafeInteger(o)?`Subtotal: ${n(i)} · ${t.additionalCharge.name}: ${n(a)} · Total: ${n(o)}`:`Enter a valid quantity.`}function Q(e,t,n){return String(e?t?t.quantity:1:t?t.amount/100:n)}function ee(e,t){return o(e)?`This item is sold out.`:t===`draft`?`This item is not open yet.`:t===`finished`?e.saleMode===`buy_now`?`Purchases are closed for this item.`:`Bidding is closed for this item.`:`This item is not available.`}function te(e,t,n){return o(t)?`All available quantities have been purchased.`:n===`draft`?`This item opens ${a(e,`draft`,t)}.`:t.saleMode===`buy_now`?`This item is no longer available to purchase.`:`Bidding has closed for this item.`}function ne(e,t,n,r,i){let a={amount:t?0:Number(r)*100,includeServiceFee:n?n.includeServiceFee:e.serviceFeeEnabled&&e.serviceFeeDefaultChecked,quantity:t?Number(r):1};return t||(a.bidType=i),a}function re({auction:t,item:i,initialSelection:a,onContinue:c,onError:l,onBack:f,backHref:p,itemHeadingLevel:m=2}){let h=Y[m],_=i.saleMode===`buy_now`,v=Math.ceil(L(i)/100),[y,b]=N(Q(_,a,v)),[x,S]=N(a?.bidType??`fixed`),[C,w]=N(null),T=A();s(i.startAt??t.startAt,i.endAt??t.endAt);let E=e(t,i),D=E===`active`&&!o(i)&&i.saleMode!==`hybrid`;function O(e){if(e.preventDefault(),!X.test(y)){w(_?`Enter a whole-number quantity.`:`Enter a whole-dollar bid amount.`);return}let n=ne(t,_,a,y,x),r=u(t,i,n);if(r){w(r),l(r);return}try{d(t,i,n)}catch{w(`Enter a valid amount or quantity.`);return}c(n)}return D?I(`form`,{className:`lockerverse-auctions__selection`,onSubmit:O,children:[F(ie,{buyNow:_,headingTag:h,item:i,minimum:v}),I(`div`,{className:`lockerverse-auctions__selection-body`,children:[F(se,{bidType:x,enabled:!_&&!!i.supportsMaximumBids,id:T,onChange:e=>{S(e),w(null)}}),I(`label`,{className:`lockerverse-auctions__field`,htmlFor:T,children:[oe(_,x),I(`span`,{className:`lockerverse-auctions__amount-control`,children:[_?null:F(`span`,{"aria-hidden":`true`,children:`$`}),F(`input`,{"aria-describedby":`${T}-help`,"aria-invalid":!!C,autoComplete:`off`,id:T,inputMode:`numeric`,onChange:e=>{b(e.target.value),w(null)},placeholder:_?`1`:String(v),required:!0,value:y})]})]}),C?F(`p`,{role:`alert`,children:C}):null,F(`p`,{id:`${T}-help`,children:_?Z(y,i):`Enter a whole-dollar bid of at least ${n(v*100)}. Bid increment: ${n(i.bidIncrementAmount??100)}.`}),F(ae,{item:i}),I(`div`,{className:`lockerverse-auctions__selection-footer`,children:[F(`p`,{children:_?`Continuing moves you into secure checkout where your payment is processed immediately.`:`Continuing moves you into the secure payment step where your card is stored for settlement only if your bid wins.`}),I(`button`,{className:`lockerverse-auctions__button`,disabled:!t.payment,type:`submit`,children:[_?`Continue to Checkout`:`Continue to Payment`,` `,F(g,{"aria-hidden":`true`,size:16})]})]}),t.payment?null:F(`p`,{role:`alert`,children:`Payments are not configured for this auction.`})]})]}):I(`div`,{className:`lockerverse-auctions__selection lockerverse-auctions__read-only`,children:[F(`p`,{className:`lockerverse-auctions__eyebrow`,children:`Item status`}),F(h,{children:ee(i,E)}),F(`p`,{children:te(t,i,E)}),I(r,{className:`lockerverse-auctions__button`,href:p,onBack:f,children:[`Browse auction items `,F(g,{"aria-hidden":`true`,size:16})]})]})}function ie({headingTag:e,item:t,buyNow:r,minimum:i}){return I(`div`,{className:`lockerverse-auctions__selection-header`,children:[F(`p`,{className:`lockerverse-auctions__eyebrow`,children:`Step 1 of 2`}),F(e,{children:r?`Buy this item now.`:`Place your bid.`}),F(`p`,{children:r?`Choose how many you want, then complete the secure checkout.`:`Choose your bid amount. You are only charged if this bid wins after bidding closes.`}),I(`p`,{children:[r?`Price: `:`Minimum qualifying bid: `,F(`strong`,{children:n(r?t.buyNowPriceAmount??0:i*100)})]}),r&&t.availableQuantity!==null?I(`p`,{children:[t.availableQuantity,` available`]}):null,t.collectShippingAddress?F(`p`,{children:`The next step will also collect a delivery address for seller fulfillment.`}):null]})}function ae({item:e}){return e.saleMode===`buy_now`||!e.additionalCharge?null:I(`p`,{children:[e.additionalCharge.name,`:`,` `,n(e.additionalCharge.firstUnitAmountCents),` will be added to your winning bid.`]})}function oe(e,t){return e?`Quantity`:t===`maximum`?`Your maximum bid`:`Your bid amount`}function se({bidType:e,enabled:t,id:n,onChange:r}){return t?I(`fieldset`,{className:`lockerverse-auctions__bid-types`,children:[F(`legend`,{children:`Bid type`}),[`fixed`,`maximum`].map(t=>I(`div`,{className:`lockerverse-auctions__bid-type`,children:[I(`label`,{children:[F(`input`,{checked:e===t,name:`${n}-bid-type`,onChange:()=>r(t),type:`radio`,value:t}),F(`span`,{children:t===`fixed`?`Fixed bid`:`Maximum bid`})]}),F(ce,{id:`${n}-${t}-help`,type:t})]},t))]}):null}function ce({id:e,type:t}){let[n,r]=N(!1);return I(`button`,{"aria-describedby":n?e:void 0,"aria-label":`About ${t===`fixed`?`fixed`:`maximum`} bids`,className:`lockerverse-auctions__bid-help-button`,onBlur:()=>r(!1),onClick:()=>r(!0),onFocus:()=>r(!0),onKeyDown:e=>{e.key===`Escape`&&r(!1)},onMouseEnter:()=>r(!0),onMouseLeave:()=>r(!1),type:`button`,children:[F(S,{"aria-hidden":`true`,size:16}),n&&F(`span`,{className:`lockerverse-auctions__bid-tip`,id:e,role:`tooltip`,children:t===`fixed`?`Bid this exact amount. It will not increase automatically.`:`We bid only what is needed to lead, up to your private limit. Accepted bids cannot be changed or canceled. A new bid is separate.`})]})}const $=()=>void 0;function le(e){let t=A(),{auction:n,item:r,selection:i,resumePurchase:a}=e,o=a?a.pricing:d(n,r,i),s=!!a||r.saleMode===`buy_now`;return F(f,{billingFields:null,buttonText:s?`Buy Now`:`Authorize Bid`,communityName:e.communityName??n.name,contactErrors:{},email:e.contact.email,id:t,includeServiceFee:i.includeServiceFee,isMaximumBid:!s&&i.bidType===`maximum`,isPurchase:s,isTerminal:!1,item:r,locked:!0,message:null,onBack:a||e.interactionLocked?void 0:e.onBack,onEmailChange:$,onIncludeServiceFeeChange:e.onIncludeServiceFeeChange,onPhoneChange:$,onSameAsBillingChange:$,onSubmit:e=>e.preventDefault(),paymentFields:null,phone:e.contact.phone,phoneCountry:p(e.contact.phone),pricing:o,quantity:i.quantity,sameAsBilling:!0,serviceFeeCents:a?o.serviceFeeCents:d(n,r,{...i,includeServiceFee:n.serviceFeeEnabled}).serviceFeeCents,serviceFeeEnabled:n.serviceFeeEnabled,shippingFields:null,showFields:!a,submitDisabled:!0})}let ue,de=null;function fe(){return ue??=import(`./auction-payment-view.js`).then(e=>(de=e.AuctionPayment,e)),ue}function pe(e,t,n){let r=e?.publishableKey,i=e?.connectedAccountId,[a,o]=N(null);return k(()=>{if(!(n&&r))return;let e=fe().then(e=>e.loadAuctionStripe(r,i,t)).catch(()=>null);o({connectedAccountId:i,publishableKey:r,stripe:e,stripeLoader:t})},[n,r,i,t]),a?.publishableKey===r&&a?.connectedAccountId===i&&a?.stripeLoader===t?a?.stripe:void 0}function me(e){let[t,n]=N(()=>de),[r,i]=N(!1),a=!!(e.resumePurchase||e.interactionLocked);return k(()=>{let e=!0;return fe().then(({AuctionPayment:t})=>{e&&n(()=>t)},()=>{e&&i(!0)}),()=>{e=!1}},[]),t?F(t,{...e}):r?I(`div`,{children:[F(`p`,{role:`alert`,children:`Payment details could not load.`}),a&&F(`p`,{children:`Your purchase status is not confirmed. Keep this page open and contact the auction organizer before you try another purchase.`}),a?null:F(`button`,{onClick:e.onBack,type:`button`,children:`Back to item`}),!a&&F(`button`,{onClick:()=>window.location.reload(),type:`button`,children:`Reload page to try again`})]}):F(le,{...e})}function he({buyNow:e}){return I(`div`,{className:`lockerverse-auctions__progress`,children:[I(`span`,{children:[F(e?T:x,{"aria-hidden":`true`,size:16}),e?`Choose quantity`:`Place bid`]}),I(`span`,{children:[F(T,{"aria-hidden":`true`,size:16}),e?`Pay securely`:`Secure card`]}),I(`span`,{children:[F(E,{"aria-hidden":`true`,size:16}),e?`Get confirmation`:`Wait for close`]})]})}function ge(e){let{auction:t,item:n,outcome:r}=e,i;return e.backHref?i={href:e.backHref,label:`View auction items`}:e.onBack&&(i={label:`View auction items`,onClick:e.onBack}),F(m,{auctionName:t.name,className:e.className,closesAtLabel:a(t,`active`,n),communityName:e.communityName??t.community?.name,focusHeading:!0,imageUrl:n.image??n.images[0]??t.configuration.image??void 0,itemName:n.name,outcome:r,primaryAction:e.returnToItemHref?{href:e.returnToItemHref,label:`Return to item`}:i,secondaryAction:e.returnToItemHref?i:void 0,style:{"--lockerverse-accent":t.community?.color??`#6f8f6d`,...e.style},theme:e.theme})}function _e(t){let{auction:n,itemId:i,resumePurchase:a,className:c,theme:l=`dark`,style:u}=t,d=M(null),[f,p]=N(n),m=M(n),_=f.items.find(e=>e.id===i)??a?.item;s(_?.startAt??f.startAt,_?.endAt??f.endAt);let[y,b]=N(()=>a?{amount:0,includeServiceFee:a.submission.includeServiceFee??!1,quantity:a.submission.quantity}:null),[x,S]=N(!!a),C=M(!0),w=M(t);w.current=t;let T=M(null),E=O(e=>{C.current&&S(e),T.current!==e&&(T.current=e,h(w.current.onInteractionLockChange,e))},[]),D=!!a;k(()=>(C.current=!0,E(D),()=>{C.current=!1}),[D,E]);let[A,j]=N({email:``,phone:``}),[P,L]=N(!!a),[R,z]=N(null),[B,V]=N(null);k(()=>{!(P||x||a)&&m.current!==n&&(m.current=n,p(n))},[n,P,x,a]);let H=pe(a?.payment??f.payment,t.stripeLoader,!!a||!!(_&&e(f,_)===`active`&&!o(_)&&_.saleMode!==`hybrid`));function U(e,t){E(!1),m.current=w.current.auction,p(e),b(null),L(!1),z(t)}function W(e){z(null),b(e),L(!0)}return _?B?F(ge,{...t,auction:f,item:_,outcome:B}):I(`section`,{className:[`lockerverse-auctions`,c].filter(Boolean).join(` `),"data-lockerverse-theme":l,ref:d,style:{"--lockerverse-accent":f.community?.color??`#6f8f6d`,...u},children:[x?null:I(r,{className:`lockerverse-auctions__back`,href:t.backHref,onBack:t.onBack,children:[F(v,{"aria-hidden":`true`,size:16}),` All items`]}),I(`div`,{className:`lockerverse-auctions__detail`,children:[F(J,{auction:f,galleryImageSizes:t.galleryImageSizes,item:_,itemHeadingLevel:t.itemHeadingLevel}),I(`div`,{className:`lockerverse-auctions__transaction`,children:[e(f,_)===`active`?F(he,{buyNow:_.saleMode===`buy_now`}):null,R?F(`p`,{className:`lockerverse-auctions__notice`,role:`alert`,children:R}):null,P&&y?F(me,{...t,appearanceRoot:d,auction:f,communityName:t.communityName??f.community?.name,contact:A,interactionLocked:x,item:_,onBack:()=>L(!1),onContactChange:j,onIncludeServiceFeeChange:e=>b(t=>t&&{...t,includeServiceFee:f.serviceFeeEnabled&&e}),onInteractionLockChange:E,onResult:V,onReview:U,selection:y,stripePromise:H}):F(re,{auction:f,backHref:t.backHref,initialSelection:y,item:_,itemHeadingLevel:t.itemHeadingLevel,onBack:t.onBack,onContinue:W,onError:z}),x?null:I(r,{className:`lockerverse-auctions__footer-back`,href:t.backHref,onBack:t.onBack,children:[`Back to auction items `,F(g,{"aria-hidden":`true`,size:16})]})]})]})]}):I(`div`,{children:[F(`p`,{role:`alert`,children:`This auction item is no longer available.`}),F(r,{href:t.backHref,onBack:t.onBack,children:`Back to auction items`})]})}function ve(e){let t=M({auctionId:e.auction.id,client:e.client,itemId:e.itemId});if(t.current.client!==e.client||t.current.auctionId!==e.auction.id||t.current.itemId!==e.itemId)throw TypeError(`Auction item identity cannot change. Remount with a new React key.`);if(e.resumePurchase&&(e.resumePurchase.auctionId!==e.auction.id||e.resumePurchase.itemId!==e.itemId||e.resumePurchase.item.id!==e.itemId||e.resumePurchase.item.auctionId!==e.auction.id))throw TypeError(`The purchase recovery record belongs to a different auction item.`);return F(c.Provider,{value:e.auction.mediaBaseUrl,children:F(_e,{...e})})}export{ve as LockerverseAuctionItem};
|
|
2
2
|
//# sourceMappingURL=auction-item.js.map
|