@lockerverse/react 0.2.246 → 0.2.248-dev.1

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 CHANGED
@@ -436,7 +436,7 @@ No host prop change is required.
436
436
  - **Check:** inspect a wide and a tall photo on desktop and mobile. Confirm all
437
437
  edges remain visible in the item gallery, thumbnails, and full-screen viewer.
438
438
 
439
- ## 0.2.191 — auction item additional charges
439
+ ## 0.2.192-dev.1 — auction item additional charges
440
440
 
441
441
  - **Affected:** Core auction item data, purchase quotes, and React auction checkout.
442
442
  - **Automatic:** optional `additionalCharge` charges the first-item amount plus the
@@ -454,7 +454,7 @@ No host prop change is required.
454
454
  - **Check:** compare one, two, and maximum quantity totals with the server quote,
455
455
  verify the per-order limit, and inspect the named charge row before payment.
456
456
 
457
- ## 0.2.189 — widget load recovery and Sentry releases
457
+ ## 0.2.190-dev.1 — widget load recovery and Sentry releases
458
458
 
459
459
  - **Affected:** Core widget loading and SDK failure reporting.
460
460
  - **Automatic:** a widget GET retries once after a network failure or request
@@ -481,6 +481,7 @@ No host prop change is required.
481
481
  - **Check:** select one, two, and the maximum allowed trigger quantity. Confirm the
482
482
  local summary and server quote agree; removing all trigger items removes shipping.
483
483
 
484
+
484
485
  ## 0.2.184 — single focus boundary for form fields
485
486
 
486
487
  - **Affected:** React form controls and the shared phone field in payment and signup.
@@ -500,7 +501,7 @@ Widgets can now use a private contact list for email eligibility, a fixed amount
500
501
  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.
501
502
 
502
503
 
503
- ## 0.2.177 — Secure checkout loading recovery
504
+ ## 0.2.176-dev.1 — Secure checkout loading recovery
504
505
 
505
506
  - **Affected:** React payment widget Stripe fields.
506
507
  - **Automatic:** failed field or script loads show a reload action. Fields that
@@ -512,9 +513,23 @@ Required shipping appears in `catalog.widget.requiredShipping`. Do not offer thi
512
513
  - Reload is an explicit customer action and can clear unsaved form entries.
513
514
  Saved payment recovery remains in session storage.
514
515
 
515
-
516
516
  ## 0.2.175 — Match Stripe Elements payment method configuration
517
517
 
518
+ - **Affected:** Core checkout submission and React payment widgets.
519
+ - **Automatic:** React configures explicit card, Link, and community-enabled bank
520
+ methods in Stripe Elements and marks the confirmation request with
521
+ `paymentMethodConfiguration: "explicit"`. This matches the backend's Stripe
522
+ PaymentIntent configuration.
523
+ - **Required:** deploy the backend that supports this optional marker before
524
+ upgrading React. Keep Core and React matched. Existing Core-only callers omit
525
+ the marker and retain automatic payment methods. Custom Elements integrations
526
+ must send the marker only when they use the explicit method list.
527
+ - **Check:** submit card and bank payments through Stripe Elements in test mode,
528
+ including recurring checkout. Confirm pending recovery and settlement.
529
+
530
+
531
+ ## 0.2.174-dev.1 — Match Stripe Elements payment method configuration
532
+
518
533
  - **Affected:** Core checkout submission and React payment widgets.
519
534
  - **Automatic:** React configures explicit card, Link, and community-enabled bank
520
535
  methods in Stripe Elements and marks the confirmation request with
@@ -588,7 +603,39 @@ Required shipping appears in `catalog.widget.requiredShipping`. Do not offer thi
588
603
  verify a changed selection cannot discard it. Check both paid and free order
589
604
  confirmation panels. Do not submit a live transaction for this check.
590
605
 
591
- ## 0.2.170 — six-month payment widgets
606
+ ## 0.2.172-dev.1 — Check pending payment status
607
+
608
+ - **Affected:** React payment widgets with unresolved payments.
609
+ - **Automatic behavior:** the existing pending-payment screen now offers Check
610
+ payment status. It checks the saved payment reference and cannot submit a new
611
+ payment. The control is disabled while the check runs.
612
+ - **Required host changes:** none. Update Core and React together.
613
+ - **Verification:** complete a test bank payment, return to its pending checkout,
614
+ and check its status. Confirm completion clears recovery storage.
615
+
616
+ ## 0.2.171-dev.1 — SDK payment recovery and completion UI
617
+
618
+ - **Affected:** React payment widgets and custom hosts that persist payment recovery.
619
+ - **Optional adoption:** pass `recoveryStorageKey` to `LockerversePayment` to let
620
+ the SDK save and restore the pending payment in session storage. Use a stable
621
+ key scoped to the API environment, community, and widget. Remove the host's
622
+ storage code and recovery-driven component key. Do not combine automatic
623
+ persistence with a second host persistence writer.
624
+ - **Compatibility:** the SDK reads the hosted Next app's existing version 1
625
+ records when the same key is used. It writes version 2 records with widget
626
+ identity. It checks widget and selection identity before recovery and keeps
627
+ an unresolved record if those details differ. Recovery uses the saved connected
628
+ account even if current payment routing has changed. Storage is read after hydration,
629
+ before the payable form mounts. No contact details or payment tokens are saved.
630
+ - **Optional UI adoption:** use `completionView="summary"` for the SDK confirmation
631
+ panel and remove the host's duplicate success panel. Completion callbacks still
632
+ run. The default inline message and explicit `resumePayment` integrations remain
633
+ supported. Auctions and legacy custom checkout forms are unchanged.
634
+ - **Check:** reload a pending checkout and confirm the existing payment is checked;
635
+ verify a changed selection cannot discard it. Check both paid and free order
636
+ confirmation panels. Do not submit a live transaction for this check.
637
+
638
+ ## 0.2.169-dev.1 — six-month payment widgets
592
639
 
593
640
  Affected: @lockerverse/sdk checkout and @lockerverse/react payment widgets.
594
641
 
@@ -604,6 +651,31 @@ Affected: @lockerverse/sdk checkout and @lockerverse/react payment widgets.
604
651
  submission. Do not submit a live payment for an integration check.
605
652
 
606
653
 
654
+ ## 0.2.168-dev.1 — bank authorization terms
655
+
656
+ - **Affected:** React payment widgets with ACH enabled.
657
+ - **Automatic:** Stripe displays its bank authorization terms before payment confirmation.
658
+ - **Adoption:** update the matching SDK/React development pair. No prop changes are required.
659
+ - **Check:** confirm that the bank authorization text is visible when a bank account is selected.
660
+
661
+ ## 0.2.167-dev.1 — widget ACH and subscription payment recovery
662
+
663
+ - **Affected:** Core checkout data and React payment widgets.
664
+ - **Automatic:** bank payment availability follows the organization default and
665
+ community override returned by the backend. Missing policy remains disabled.
666
+ Pending payments keep their existing payment reference. A failed subscription
667
+ invoice can return `action_required` with `requiresAction: false` and `retryUrl`;
668
+ React shows a link to pay the same invoice instead of creating a second subscription.
669
+ - **Required for custom payment UI:** preserve the reference for pending and
670
+ action-required results. Handle `retryUrl` by opening that invoice, and recover
671
+ status before permitting a new checkout. Do not treat submission as settlement.
672
+ - **Adoption:** deploy the matching backend policy and recovery contract before
673
+ enabling ACH. Existing React hosts need no component prop changes. Keep Core and
674
+ React versions matched when upgrading. Auction payment methods are unchanged.
675
+ - **Check:** verify disabled/inherited/enabled bank visibility and pending, bank
676
+ verification, invoice retry, success, and terminal failure in Stripe test mode.
677
+ Do not create a live transaction for this check.
678
+
607
679
  ## 0.2.166 — single dropdown arrow
608
680
 
609
681
  - **Affected:** native single-select custom fields in React signup and payment forms.
@@ -1,4 +1,4 @@
1
- import{a as oe,b as _e,c as We,d as $e,e as Ye,f as ze,g as Re,h as Ve,i as Te,j as He,k as me,l as Je,m as Ge,n as Y}from"./chunk-NZ4TPUU2.js";import{E as Ae,H as Be,I as Le,a as de,r as pe}from"./chunk-4K5K5SO6.js";import{a as re,c as q}from"./chunk-DCANE7XH.js";var Xe=re((Tn,Ke)=>{"use strict";var zt="SECRET_DO_NOT_PASS_THIS_OR_YOU_WILL_BE_FIRED";Ke.exports=zt});var tt=re((In,et)=>{"use strict";var Vt=Xe();function Qe(){}function Ze(){}Ze.resetWarningCache=Qe;et.exports=function(){function t(r,o,a,s,c,u){if(u!==Vt){var l=new Error("Calling PropTypes validators directly is not supported by the `prop-types` package. Use PropTypes.checkPropTypes() to call them. Read more at http://fb.me/use-check-prop-types");throw l.name="Invariant Violation",l}}t.isRequired=t;function e(){return t}var n={array:t,bigint:t,bool:t,func:t,number:t,object:t,string:t,symbol:t,any:t,arrayOf:e,element:t,elementType:t,instanceOf:e,node:t,objectOf:e,oneOf:e,oneOfType:e,shape:e,exact:e,checkPropTypes:Ze,resetWarningCache:Qe};return n.PropTypes=n,n}});var rt=re((jn,nt)=>{nt.exports=tt()();var xn,On});var Tt=re(De=>{"use strict";Object.defineProperty(De,"__esModule",{value:!0});function se(t){"@babel/helpers - typeof";return typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?se=function(e){return typeof e}:se=function(e){return e&&typeof Symbol=="function"&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},se(t)}var At="dahlia",yn=function(e){return e===3?"v3":e},Lt="https://js.stripe.com",gn="".concat(Lt,"/").concat(At,"/stripe.js"),Cn=/^https:\/\/js\.stripe\.com\/v3\/?(\?.*)?$/,bn=/^https:\/\/js\.stripe\.com\/(v3|[a-z]+)\/stripe\.js(\?.*)?$/,kt="loadStripe.setLoadParameters was called but an existing Stripe.js script already exists in the document; existing script parameters will be used",Sn=function(e){return Cn.test(e)||bn.test(e)},En=function(){for(var e=document.querySelectorAll('script[src^="'.concat(Lt,'"]')),n=0;n<e.length;n++){var r=e[n];if(Sn(r.src))return r}return null},Pt=function(e){var n=e&&!e.advancedFraudSignals?"?advancedFraudSignals=false":"",r=document.createElement("script");r.src="".concat(gn).concat(n);var o=document.head||document.body;if(!o)throw new Error("Expected document.body not to be null. Stripe.js requires a <body> element.");return o.appendChild(r),r},kn=function(e,n){!e||!e._registerWrapper||e._registerWrapper({name:"stripe-js",version:"9.12.1",startTime:n})},ae=null,he=null,ve=null,Pn=function(e){return function(n){e(new Error("Failed to load Stripe.js",{cause:n}))}},wn=function(e,n){return function(){window.Stripe?e(window.Stripe):n(new Error("Stripe.js not available"))}},An=function(e){return ae!==null?ae:(ae=new Promise(function(n,r){if(typeof window>"u"||typeof document>"u"){n(null);return}if(window.Stripe&&e&&console.warn(kt),window.Stripe){n(window.Stripe);return}try{var o=En();if(o&&e)console.warn(kt);else if(!o)o=Pt(e);else if(o&&ve!==null&&he!==null){var a;o.removeEventListener("load",ve),o.removeEventListener("error",he),(a=o.parentNode)===null||a===void 0||a.removeChild(o),o=Pt(e)}ve=wn(n,r),he=Pn(r),o.addEventListener("load",ve),o.addEventListener("error",he)}catch(s){r(s);return}}),ae.catch(function(n){return ae=null,Promise.reject(n)}))},Ln=function(e,n,r){if(e===null)return null;var o=n[0];if(typeof o!="string")throw new Error("Expected publishable key to be of type string, got type ".concat(se(o)," instead."));var a=o.match(/^pk_test/),s=yn(e.version),c=At;a&&s!==c&&console.warn("Stripe.js@".concat(s," was loaded on the page, but @stripe/stripe-js@").concat("9.12.1"," expected Stripe.js@").concat(c,". This may result in unexpected behavior. For more information, see https://docs.stripe.com/sdks/stripejs-versioning"));var u=e.apply(void 0,n);return kn(u,r),u},wt=function(e){var n=`invalid load parameters; expected object of shape
1
+ import{a as oe,b as _e,c as We,d as $e,e as Ye,f as ze,g as Re,h as Ve,i as Te,j as He,k as me,l as Je,m as Ge,n as Y}from"./chunk-VZEAKJ7T.js";import{E as Ae,H as Be,I as Le,a as de,r as pe}from"./chunk-HSTDDFWD.js";import{a as re,c as q}from"./chunk-DCANE7XH.js";var Xe=re((Tn,Ke)=>{"use strict";var zt="SECRET_DO_NOT_PASS_THIS_OR_YOU_WILL_BE_FIRED";Ke.exports=zt});var tt=re((In,et)=>{"use strict";var Vt=Xe();function Qe(){}function Ze(){}Ze.resetWarningCache=Qe;et.exports=function(){function t(r,o,a,s,c,u){if(u!==Vt){var l=new Error("Calling PropTypes validators directly is not supported by the `prop-types` package. Use PropTypes.checkPropTypes() to call them. Read more at http://fb.me/use-check-prop-types");throw l.name="Invariant Violation",l}}t.isRequired=t;function e(){return t}var n={array:t,bigint:t,bool:t,func:t,number:t,object:t,string:t,symbol:t,any:t,arrayOf:e,element:t,elementType:t,instanceOf:e,node:t,objectOf:e,oneOf:e,oneOfType:e,shape:e,exact:e,checkPropTypes:Ze,resetWarningCache:Qe};return n.PropTypes=n,n}});var rt=re((jn,nt)=>{nt.exports=tt()();var xn,On});var Tt=re(De=>{"use strict";Object.defineProperty(De,"__esModule",{value:!0});function se(t){"@babel/helpers - typeof";return typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?se=function(e){return typeof e}:se=function(e){return e&&typeof Symbol=="function"&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},se(t)}var At="dahlia",yn=function(e){return e===3?"v3":e},Lt="https://js.stripe.com",gn="".concat(Lt,"/").concat(At,"/stripe.js"),Cn=/^https:\/\/js\.stripe\.com\/v3\/?(\?.*)?$/,bn=/^https:\/\/js\.stripe\.com\/(v3|[a-z]+)\/stripe\.js(\?.*)?$/,kt="loadStripe.setLoadParameters was called but an existing Stripe.js script already exists in the document; existing script parameters will be used",Sn=function(e){return Cn.test(e)||bn.test(e)},En=function(){for(var e=document.querySelectorAll('script[src^="'.concat(Lt,'"]')),n=0;n<e.length;n++){var r=e[n];if(Sn(r.src))return r}return null},Pt=function(e){var n=e&&!e.advancedFraudSignals?"?advancedFraudSignals=false":"",r=document.createElement("script");r.src="".concat(gn).concat(n);var o=document.head||document.body;if(!o)throw new Error("Expected document.body not to be null. Stripe.js requires a <body> element.");return o.appendChild(r),r},kn=function(e,n){!e||!e._registerWrapper||e._registerWrapper({name:"stripe-js",version:"9.12.1",startTime:n})},ae=null,he=null,ve=null,Pn=function(e){return function(n){e(new Error("Failed to load Stripe.js",{cause:n}))}},wn=function(e,n){return function(){window.Stripe?e(window.Stripe):n(new Error("Stripe.js not available"))}},An=function(e){return ae!==null?ae:(ae=new Promise(function(n,r){if(typeof window>"u"||typeof document>"u"){n(null);return}if(window.Stripe&&e&&console.warn(kt),window.Stripe){n(window.Stripe);return}try{var o=En();if(o&&e)console.warn(kt);else if(!o)o=Pt(e);else if(o&&ve!==null&&he!==null){var a;o.removeEventListener("load",ve),o.removeEventListener("error",he),(a=o.parentNode)===null||a===void 0||a.removeChild(o),o=Pt(e)}ve=wn(n,r),he=Pn(r),o.addEventListener("load",ve),o.addEventListener("error",he)}catch(s){r(s);return}}),ae.catch(function(n){return ae=null,Promise.reject(n)}))},Ln=function(e,n,r){if(e===null)return null;var o=n[0];if(typeof o!="string")throw new Error("Expected publishable key to be of type string, got type ".concat(se(o)," instead."));var a=o.match(/^pk_test/),s=yn(e.version),c=At;a&&s!==c&&console.warn("Stripe.js@".concat(s," was loaded on the page, but @stripe/stripe-js@").concat("9.12.1"," expected Stripe.js@").concat(c,". This may result in unexpected behavior. For more information, see https://docs.stripe.com/sdks/stripejs-versioning"));var u=e.apply(void 0,n);return kn(u,r),u},wt=function(e){var n=`invalid load parameters; expected object of shape
2
2
 
3
3
  {advancedFraudSignals: boolean}
4
4
 
@@ -0,0 +1,2 @@
1
+ import{a as ee,c as Qe}from"./chunk-DCANE7XH.js";var na=ee(i=>{"use strict";var he=Symbol.for("react.transitional.element"),Ua=Symbol.for("react.portal"),_a=Symbol.for("react.fragment"),Ha=Symbol.for("react.strict_mode"),Ga=Symbol.for("react.profiler"),Va=Symbol.for("react.consumer"),za=Symbol.for("react.context"),Wa=Symbol.for("react.forward_ref"),Na=Symbol.for("react.suspense"),Xa=Symbol.for("react.memo"),ua=Symbol.for("react.lazy"),ja=Symbol.for("react.activity"),Ye=Symbol.iterator;function $a(e){return e===null||typeof e!="object"?null:(e=Ye&&e[Ye]||e["@@iterator"],typeof e=="function"?e:null)}var ra={isMounted:function(){return!1},enqueueForceUpdate:function(){},enqueueReplaceState:function(){},enqueueSetState:function(){}},sa=Object.assign,oa={};function N(e,a,t){this.props=e,this.context=a,this.refs=oa,this.updater=t||ra}N.prototype.isReactComponent={};N.prototype.setState=function(e,a){if(typeof e!="object"&&typeof e!="function"&&e!=null)throw Error("takes an object of state variables to update or a function which returns an object of state variables.");this.updater.enqueueSetState(this,e,a,"setState")};N.prototype.forceUpdate=function(e){this.updater.enqueueForceUpdate(this,e,"forceUpdate")};function la(){}la.prototype=N.prototype;function Le(e,a,t){this.props=e,this.context=a,this.refs=oa,this.updater=t||ra}var Ie=Le.prototype=new la;Ie.constructor=Le;sa(Ie,N.prototype);Ie.isPureReactComponent=!0;var ea=Array.isArray;function me(){}var x={H:null,A:null,T:null,S:null},fa=Object.prototype.hasOwnProperty;function xe(e,a,t){var u=t.ref;return{$$typeof:he,type:e,key:a,ref:u!==void 0?u:null,props:t}}function Ka(e,a){return xe(e.type,a,e.props)}function ye(e){return typeof e=="object"&&e!==null&&e.$$typeof===he}function Za(e){var a={"=":"=0",":":"=2"};return"$"+e.replace(/[=:]/g,function(t){return a[t]})}var aa=/\/+/g;function pe(e,a){return typeof e=="object"&&e!==null&&e.key!=null?Za(""+e.key):a.toString(36)}function Ja(e){switch(e.status){case"fulfilled":return e.value;case"rejected":throw e.reason;default:switch(typeof e.status=="string"?e.then(me,me):(e.status="pending",e.then(function(a){e.status==="pending"&&(e.status="fulfilled",e.value=a)},function(a){e.status==="pending"&&(e.status="rejected",e.reason=a)})),e.status){case"fulfilled":return e.value;case"rejected":throw e.reason}}throw e}function W(e,a,t,u,r){var s=typeof e;(s==="undefined"||s==="boolean")&&(e=null);var o=!1;if(e===null)o=!0;else switch(s){case"bigint":case"string":case"number":o=!0;break;case"object":switch(e.$$typeof){case he:case Ua:o=!0;break;case ua:return o=e._init,W(o(e._payload),a,t,u,r)}}if(o)return r=r(e),o=u===""?"."+pe(e,0):u,ea(r)?(t="",o!=null&&(t=o.replace(aa,"$&/")+"/"),W(r,a,t,"",function(n){return n})):r!=null&&(ye(r)&&(r=Ka(r,t+(r.key==null||e&&e.key===r.key?"":(""+r.key).replace(aa,"$&/")+"/")+o)),a.push(r)),1;o=0;var f=u===""?".":u+":";if(ea(e))for(var l=0;l<e.length;l++)u=e[l],s=f+pe(u,l),o+=W(u,a,t,s,r);else if(l=$a(e),typeof l=="function")for(e=l.call(e),l=0;!(u=e.next()).done;)u=u.value,s=f+pe(u,l++),o+=W(u,a,t,s,r);else if(s==="object"){if(typeof e.then=="function")return W(Ja(e),a,t,u,r);throw a=String(e),Error("Objects are not valid as a React child (found: "+(a==="[object Object]"?"object with keys {"+Object.keys(e).join(", ")+"}":a)+"). If you meant to render a collection of children, use an array instead.")}return o}function ae(e,a,t){if(e==null)return e;var u=[],r=0;return W(e,u,"","",function(s){return a.call(t,s,r++)}),u}function Qa(e){if(e._status===-1){var a=e._result;a=a(),a.then(function(t){(e._status===0||e._status===-1)&&(e._status=1,e._result=t)},function(t){(e._status===0||e._status===-1)&&(e._status=2,e._result=t)}),e._status===-1&&(e._status=0,e._result=a)}if(e._status===1)return e._result.default;throw e._result}var ta=typeof reportError=="function"?reportError:function(e){if(typeof window=="object"&&typeof window.ErrorEvent=="function"){var a=new window.ErrorEvent("error",{bubbles:!0,cancelable:!0,message:typeof e=="object"&&e!==null&&typeof e.message=="string"?String(e.message):String(e),error:e});if(!window.dispatchEvent(a))return}else if(typeof process=="object"&&typeof process.emit=="function"){process.emit("uncaughtException",e);return}console.error(e)},Ya={map:ae,forEach:function(e,a,t){ae(e,function(){a.apply(this,arguments)},t)},count:function(e){var a=0;return ae(e,function(){a++}),a},toArray:function(e){return ae(e,function(a){return a})||[]},only:function(e){if(!ye(e))throw Error("React.Children.only expected to receive a single React element child.");return e}};i.Activity=ja;i.Children=Ya;i.Component=N;i.Fragment=_a;i.Profiler=Ga;i.PureComponent=Le;i.StrictMode=Ha;i.Suspense=Na;i.__CLIENT_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE=x;i.__COMPILER_RUNTIME={__proto__:null,c:function(e){return x.H.useMemoCache(e)}};i.cache=function(e){return function(){return e.apply(null,arguments)}};i.cacheSignal=function(){return null};i.cloneElement=function(e,a,t){if(e==null)throw Error("The argument must be a React element, but you passed "+e+".");var u=sa({},e.props),r=e.key;if(a!=null)for(s in a.key!==void 0&&(r=""+a.key),a)!fa.call(a,s)||s==="key"||s==="__self"||s==="__source"||s==="ref"&&a.ref===void 0||(u[s]=a[s]);var s=arguments.length-2;if(s===1)u.children=t;else if(1<s){for(var o=Array(s),f=0;f<s;f++)o[f]=arguments[f+2];u.children=o}return xe(e.type,r,u)};i.createContext=function(e){return e={$$typeof:za,_currentValue:e,_currentValue2:e,_threadCount:0,Provider:null,Consumer:null},e.Provider=e,e.Consumer={$$typeof:Va,_context:e},e};i.createElement=function(e,a,t){var u,r={},s=null;if(a!=null)for(u in a.key!==void 0&&(s=""+a.key),a)fa.call(a,u)&&u!=="key"&&u!=="__self"&&u!=="__source"&&(r[u]=a[u]);var o=arguments.length-2;if(o===1)r.children=t;else if(1<o){for(var f=Array(o),l=0;l<o;l++)f[l]=arguments[l+2];r.children=f}if(e&&e.defaultProps)for(u in o=e.defaultProps,o)r[u]===void 0&&(r[u]=o[u]);return xe(e,s,r)};i.createRef=function(){return{current:null}};i.forwardRef=function(e){return{$$typeof:Wa,render:e}};i.isValidElement=ye;i.lazy=function(e){return{$$typeof:ua,_payload:{_status:-1,_result:e},_init:Qa}};i.memo=function(e,a){return{$$typeof:Xa,type:e,compare:a===void 0?null:a}};i.startTransition=function(e){var a=x.T,t={};x.T=t;try{var u=e(),r=x.S;r!==null&&r(t,u),typeof u=="object"&&u!==null&&typeof u.then=="function"&&u.then(me,ta)}catch(s){ta(s)}finally{a!==null&&t.types!==null&&(a.types=t.types),x.T=a}};i.unstable_useCacheRefresh=function(){return x.H.useCacheRefresh()};i.use=function(e){return x.H.use(e)};i.useActionState=function(e,a,t){return x.H.useActionState(e,a,t)};i.useCallback=function(e,a){return x.H.useCallback(e,a)};i.useContext=function(e){return x.H.useContext(e)};i.useDebugValue=function(){};i.useDeferredValue=function(e,a){return x.H.useDeferredValue(e,a)};i.useEffect=function(e,a){return x.H.useEffect(e,a)};i.useEffectEvent=function(e){return x.H.useEffectEvent(e)};i.useId=function(){return x.H.useId()};i.useImperativeHandle=function(e,a,t){return x.H.useImperativeHandle(e,a,t)};i.useInsertionEffect=function(e,a){return x.H.useInsertionEffect(e,a)};i.useLayoutEffect=function(e,a){return x.H.useLayoutEffect(e,a)};i.useMemo=function(e,a){return x.H.useMemo(e,a)};i.useOptimistic=function(e,a){return x.H.useOptimistic(e,a)};i.useReducer=function(e,a,t){return x.H.useReducer(e,a,t)};i.useRef=function(e){return x.H.useRef(e)};i.useState=function(e){return x.H.useState(e)};i.useSyncExternalStore=function(e,a,t){return x.H.useSyncExternalStore(e,a,t)};i.useTransition=function(){return x.H.useTransition()};i.version="19.2.8"});var ge=ee((uu,ia)=>{"use strict";ia.exports=na()});var La=ee(re=>{"use strict";var It=Symbol.for("react.transitional.element"),xt=Symbol.for("react.fragment");function ha(e,a,t){var u=null;if(t!==void 0&&(u=""+t),a.key!==void 0&&(u=""+a.key),"key"in a){t={};for(var r in a)r!=="key"&&(t[r]=a[r])}else t=a;return a=t.ref,{$$typeof:It,type:e,key:u,ref:a!==void 0?a:null,props:t}}re.Fragment=xt;re.jsx=ha;re.jsxs=ha});var yt=ee((fr,Ia)=>{"use strict";Ia.exports=La()});var ue=Qe(ge());var da=e=>e.replace(/([a-z0-9])([A-Z])/g,"$1-$2").toLowerCase(),et=e=>e.replace(/^([A-Z])|[\s-_]+(\w)/g,(a,t,u)=>u?u.toUpperCase():t.toLowerCase()),Ce=e=>{let a=et(e);return a.charAt(0).toUpperCase()+a.slice(1)},te=(...e)=>e.filter((a,t,u)=>!!a&&a.trim()!==""&&u.indexOf(a)===t).join(" ").trim(),ca=e=>{for(let a in e)if(a.startsWith("aria-")||a==="role"||a==="title")return!0};var j=Qe(ge());var pa={xmlns:"http://www.w3.org/2000/svg",width:24,height:24,viewBox:"0 0 24 24",fill:"none",stroke:"currentColor",strokeWidth:2,strokeLinecap:"round",strokeLinejoin:"round"};var ma=(0,j.forwardRef)(({color:e="currentColor",size:a=24,strokeWidth:t=2,absoluteStrokeWidth:u,className:r="",children:s,iconNode:o,...f},l)=>(0,j.createElement)("svg",{ref:l,...pa,width:a,height:a,stroke:e,strokeWidth:u?Number(t)*24/Number(a):t,className:te("lucide",r),...!s&&!ca(f)&&{"aria-hidden":"true"},...f},[...o.map(([n,d])=>(0,j.createElement)(n,d)),...Array.isArray(s)?s:[s]]));var m=(e,a)=>{let t=(0,ue.forwardRef)(({className:u,...r},s)=>(0,ue.createElement)(ma,{ref:s,iconNode:a,className:te(`lucide-${da(Ce(e))}`,`lucide-${e}`,u),...r}));return t.displayName=Ce(e),t};var at=[["path",{d:"M5 12h14",key:"1ays0h"}],["path",{d:"m12 5 7 7-7 7",key:"xquz4c"}]],Se=m("arrow-right",at);var tt=[["path",{d:"m15 18-6-6 6-6",key:"1wnfg3"}]],ve=m("chevron-left",tt);var ut=[["path",{d:"M3.85 8.62a4 4 0 0 1 4.78-4.77 4 4 0 0 1 6.74 0 4 4 0 0 1 4.78 4.78 4 4 0 0 1 0 6.74 4 4 0 0 1-4.77 4.78 4 4 0 0 1-6.75 0 4 4 0 0 1-4.78-4.77 4 4 0 0 1 0-6.76Z",key:"3c2336"}],["path",{d:"m9 12 2 2 4-4",key:"dzmm74"}]],X=m("badge-check",ut);var rt=[["path",{d:"m6 9 6 6 6-6",key:"qrunsl"}]],ke=m("chevron-down",rt);var st=[["path",{d:"m9 18 6-6-6-6",key:"mthhwq"}]],we=m("chevron-right",st);var ot=[["path",{d:"M12 6v6h4",key:"135r8i"}],["circle",{cx:"12",cy:"12",r:"10",key:"1mglay"}]],Ae=m("clock-3",ot);var lt=[["path",{d:"M15 2H6a2 2 0 0 0-2 2v16a2 2 0 0 0 2 2h12a2 2 0 0 0 2-2V7Z",key:"1rqfz7"}],["path",{d:"M14 2v4a2 2 0 0 0 2 2h4",key:"tnqrlb"}],["path",{d:"M10 9H8",key:"b1mrlr"}],["path",{d:"M16 13H8",key:"t4e002"}],["path",{d:"M16 17H8",key:"z1uh3a"}]],Pe=m("file-text",lt);var ft=[["path",{d:"m14 13-8.381 8.38a1 1 0 0 1-3.001-3l8.384-8.381",key:"pgg06f"}],["path",{d:"m16 16 6-6",key:"vzrcl6"}],["path",{d:"m21.5 10.5-8-8",key:"a17d9x"}],["path",{d:"m8 8 6-6",key:"18bi4p"}],["path",{d:"m8.5 7.5 8 8",key:"1oyaui"}]],be=m("gavel",ft);var nt=[["circle",{cx:"12",cy:"12",r:"10",key:"1mglay"}],["path",{d:"M12 16v-4",key:"1dtifu"}],["path",{d:"M12 8h.01",key:"e9boi3"}]],De=m("info",nt);var it=[["path",{d:"m3 17 2 2 4-4",key:"1jhpwq"}],["path",{d:"m3 7 2 2 4-4",key:"1obspn"}],["path",{d:"M13 6h8",key:"15sg57"}],["path",{d:"M13 12h8",key:"h98zly"}],["path",{d:"M13 18h8",key:"oe0vm4"}]],Me=m("list-checks",it);var dt=[["rect",{x:"14",y:"3",width:"5",height:"18",rx:"1",key:"kaeet6"}],["rect",{x:"5",y:"3",width:"5",height:"18",rx:"1",key:"1wsw3u"}]],Be=m("pause",dt);var ct=[["path",{d:"M5 5a2 2 0 0 1 3.008-1.728l11.997 6.998a2 2 0 0 1 .003 3.458l-12 7A2 2 0 0 1 5 19z",key:"10ikf1"}]],Fe=m("play",ct);var pt=[["path",{d:"M20 13c0 5-3.5 7.5-7.66 8.95a1 1 0 0 1-.67-.01C7.5 20.5 4 18 4 13V6a1 1 0 0 1 1-1c2 0 4.5-1.2 6.24-2.72a1.17 1.17 0 0 1 1.52 0C14.51 3.81 17 5 19 5a1 1 0 0 1 1 1z",key:"oel41y"}],["path",{d:"m9 12 2 2 4-4",key:"dzmm74"}]],Re=m("shield-check",pt);var mt=[["path",{d:"M16 10a4 4 0 0 1-8 0",key:"1ltviw"}],["path",{d:"M3.103 6.034h17.794",key:"awc11p"}],["path",{d:"M3.4 5.467a2 2 0 0 0-.4 1.2V20a2 2 0 0 0 2 2h14a2 2 0 0 0 2-2V6.667a2 2 0 0 0-.4-1.2l-2-2.667A2 2 0 0 0 17 2H7a2 2 0 0 0-1.6.8z",key:"o988cm"}]],Te=m("shopping-bag",mt);var ht=[["path",{d:"M10 2h4",key:"n1abiw"}],["path",{d:"M12 14v-4",key:"1evpnu"}],["path",{d:"M4 13a8 8 0 0 1 8-7 8 8 0 1 1-5.3 14L4 17.6",key:"1ts96g"}],["path",{d:"M9 17H4v5",key:"8t5av"}]],qe=m("timer-reset",ht);var Lt=[["path",{d:"M18 6 6 18",key:"1bl5f8"}],["path",{d:"m6 6 12 12",key:"d8bk6v"}]],Ee=m("x",Lt);var xa=new Map;function ya(e,a=2){let t=xa.get(a);return t||(t=new Intl.NumberFormat("en-US",{currency:"USD",maximumFractionDigits:2,minimumFractionDigits:a,style:"currency"}),xa.set(a,t)),t.format(e/100)}function dr(e,a=e.status,t){let u=a==="draft",r=t??Ct(e),s=u?r?.startAt??e.startAt:(a==="finished"?t?.finishedAt:void 0)??t?.endAt??e.endAt,o=new Date(s);if(!Number.isFinite(o.getTime()))return"";let l=(u?r?.startAt:t?.endAt)?!0:(u?e.configuration.startTimeEnabled:e.configuration.endTimeEnabled)??!0,n=new Intl.DateTimeFormat("en-US",{day:"numeric",month:"short",timeZone:"America/New_York",year:"numeric"}).format(o);if(!l)return n;let d=new Intl.DateTimeFormat("en-US",{hour:"numeric",minute:"2-digit",timeZone:"America/New_York",timeZoneName:"short"}).format(o);return`${n} at ${d}`}function cr(e){return ya(e,0)}function gt(e,a){if(e.status==="finished"||a?.status==="finished")return"finished";if(a&&!(a.startAt&&a.endAt)&&(a.status==="draft"||e.status==="draft"))return"draft";let t=Date.now();if(Date.parse(a?.endAt??e.endAt)<=t)return"finished";if(Date.parse(a?.startAt??e.startAt)>t)return"draft";if(a)return"active";if(e.items.length){let u=e.items.map(r=>gt(e,r));return u.includes("active")?"active":u.includes("draft")?"draft":"finished"}return e.status}function Ct(e){let a=Date.now();return e.items.filter(t=>t.status!=="finished"&&Date.parse(t.startAt??e.startAt)>a).sort((t,u)=>Date.parse(t.startAt??e.startAt)-Date.parse(u.startAt??e.startAt))[0]}function pr(e){return e.isSoldOut||e.saleMode==="buy_now"&&e.availableQuantity===0}var St="0.2.248-dev.1",_=class extends Error{failureKind;code;operation;reportable;recoveryRecommended;sdkVersion;serverCode;status;constructor({failureKind:e,code:a,message:t,operation:u,reportable:r,recoveryRecommended:s=!1,serverCode:o,status:f}){super(t),this.name="LockerverseSdkError",this.failureKind=e,this.code=a,this.operation=u,this.reportable=r,this.recoveryRecommended=s,this.sdkVersion=St,this.serverCode=o,this.status=f}};var se,vt={lang:void 0,message:void 0,abortEarly:void 0,abortPipeEarly:void 0};function Oe(e){return!e&&!se?vt:{lang:e?.lang??se?.lang,message:e?.message,abortEarly:e?.abortEarly??se?.abortEarly,abortPipeEarly:e?.abortPipeEarly??se?.abortPipeEarly}}var kt;function wt(e){return kt?.get(e)}var At;function Pt(e){return At?.get(e)}var bt;function Dt(e,a){return bt?.get(e)?.get(a)}function G(e){let a=typeof e;return a==="string"?`"${e}"`:a==="number"||a==="bigint"||a==="boolean"?`${e}`:a==="object"||a==="function"?(e&&Object.getPrototypeOf(e)?.constructor?.name)??"null":a}function L(e,a,t,u,r){let s=r&&"input"in r?r.input:t.value,o=r?.expected??e.expects??null,f=r?.received??G(s),l={kind:e.kind,type:e.type,input:s,expected:o,received:f,message:`Invalid ${a}: ${o?`Expected ${o} but r`:"R"}eceived ${f}`,requirement:e.requirement,path:r?.path,issues:r?.issues,lang:u.lang,abortEarly:u.abortEarly,abortPipeEarly:u.abortPipeEarly},n=e.kind==="schema",d=r?.message??e.message??Dt(e.reference,l.lang)??(n?Pt(l.lang):null)??u.message??wt(l.lang);d!==void 0&&(l.message=typeof d=="function"?d(l):d),n&&(t.typed=!1),t.issues?t.issues.push(l):t.issues=[l]}var ga=new WeakMap;function P(e){let a=ga.get(e);return a||(a={version:1,vendor:"valibot",validate(t){return e["~run"]({value:t},Oe())}},ga.set(e,a)),a}function Mt(e,a){return Object.prototype.hasOwnProperty.call(e,a)&&a!=="__proto__"&&a!=="prototype"&&a!=="constructor"}function Ue(e,a){let t=[...new Set(e)];return t.length>1?`(${t.join(` ${a} `)})`:t[0]??"never"}var _e=class extends Error{constructor(e){super(e[0].message),this.name="ValiError",this.issues=e}};var Bt=/^[\w+-]+(?:\.[\w+-]+)*@[\da-z]+(?:[.-][\da-z]+)*\.[a-z]{2,}$/iu;var Ft=/^\d{4}-(?:0[1-9]|1[0-2])-(?:[12]\d|0[1-9]|3[01])[T ](?:0\d|1\d|2[0-3])(?::[0-5]\d){2}(?:\.\d{1,9})?(?:Z| ?[+-](?:0\d|1\d|2[0-3])(?::?[0-5]\d)?)$/u;function b(e,a){return{kind:"validation",type:"check",reference:b,async:!1,expects:null,requirement:e,message:a,"~run"(t,u){return t.typed&&!this.requirement(t.value)&&L(this,"input",t,u),t}}}function He(e){return{kind:"validation",type:"email",reference:He,expects:null,async:!1,requirement:Bt,message:e,"~run"(a,t){return a.typed&&!this.requirement.test(a.value)&&L(this,"email",a,t),a}}}function Ge(e){return{kind:"validation",type:"iso_timestamp",reference:Ge,async:!1,expects:null,requirement:Ft,message:e,"~run"(a,t){return a.typed&&!this.requirement.test(a.value)&&L(this,"timestamp",a,t),a}}}function Ve(e,a){return{kind:"validation",type:"max_value",reference:Ve,async:!1,expects:`<=${e instanceof Date?e.toJSON():G(e)}`,requirement:e,message:a,"~run"(t,u){return t.typed&&!(t.value<=this.requirement)&&L(this,"value",t,u,{received:t.value instanceof Date?t.value.toJSON():G(t.value)}),t}}}function $(e,a){return{kind:"validation",type:"min_length",reference:$,async:!1,expects:`>=${e}`,requirement:e,message:a,"~run"(t,u){return t.typed&&t.value.length<this.requirement&&L(this,"length",t,u,{received:`${t.value.length}`}),t}}}function R(e,a){return{kind:"validation",type:"min_value",reference:R,async:!1,expects:`>=${e instanceof Date?e.toJSON():G(e)}`,requirement:e,message:a,"~run"(t,u){return t.typed&&!(t.value>=this.requirement)&&L(this,"value",t,u,{received:t.value instanceof Date?t.value.toJSON():G(t.value)}),t}}}function ze(e){return{kind:"validation",type:"non_empty",reference:ze,async:!1,expects:"!0",message:e,"~run"(a,t){return a.typed&&a.value.length===0&&L(this,"length",a,t,{received:"0"}),a}}}function We(e,a){return{kind:"validation",type:"regex",reference:We,async:!1,expects:`${e}`,requirement:e,message:a,"~run"(t,u){return t.typed&&!this.requirement.test(t.value)&&L(this,"format",t,u),t}}}function K(e){return{kind:"validation",type:"safe_integer",reference:K,async:!1,expects:null,requirement:Number.isSafeInteger,message:e,"~run"(a,t){return a.typed&&!this.requirement(a.value)&&L(this,"safe integer",a,t),a}}}function Ne(e){return{kind:"transformation",type:"transform",reference:Ne,async:!1,operation:e,"~run"(a){return a.value=this.operation(a.value),a}}}function Rt(){return{kind:"transformation",type:"trim",reference:Rt,async:!1,"~run"(e){return e.value=e.value.trim(),e}}}var Sa={abortEarly:!0};function va(e,a,t){return typeof e.fallback=="function"?e.fallback(a,t):e.fallback}function oe(e,a,t){return typeof e.default=="function"?e.default(a,t):e.default}function le(e,a){return!e["~run"]({value:a},Sa).issues}function q(e,a){return{kind:"schema",type:"array",reference:q,expects:"Array",async:!1,item:e,message:a,get"~standard"(){return P(this)},"~run"(t,u){let r=t.value;if(Array.isArray(r)){t.typed=!0,t.value=[];for(let s=0;s<r.length;s++){let o=r[s],f=this.item["~run"]({value:o},u);if(f.issues){let l={type:"array",origin:"value",input:r,key:s,value:o};for(let n of f.issues)n.path?n.path.unshift(l):n.path=[l],t.issues?.push(n);if(t.issues||(t.issues=f.issues),u.abortEarly){t.typed=!1;break}}f.typed||(t.typed=!1),t.value.push(f.value)}}else L(this,"type",t,u);return t}}}function S(e){return{kind:"schema",type:"boolean",reference:S,expects:"boolean",async:!1,message:e,get"~standard"(){return P(this)},"~run"(a,t){return typeof a.value=="boolean"?a.typed=!0:L(this,"type",a,t),a}}}function fe(e,a){return{kind:"schema",type:"custom",reference:fe,expects:"unknown",async:!1,check:e,message:a,get"~standard"(){return P(this)},"~run"(t,u){return this.check(t.value)?t.typed=!0:L(this,"type",t,u),t}}}function ne(e){return{kind:"schema",type:"function",reference:ne,expects:"Function",async:!1,message:e,get"~standard"(){return P(this)},"~run"(a,t){return typeof a.value=="function"?a.typed=!0:L(this,"type",a,t),a}}}function Z(e,a){return{kind:"schema",type:"literal",reference:Z,expects:G(e),async:!1,literal:e,message:a,get"~standard"(){return P(this)},"~run"(t,u){return t.value===this.literal?t.typed=!0:L(this,"type",t,u),t}}}function J(e,a){return{kind:"schema",type:"loose_object",reference:J,expects:"Object",async:!1,entries:e,message:a,get"~standard"(){return P(this)},"~run"(t,u){let r=t.value;if(r&&typeof r=="object"){t.typed=!0,t.value={};for(let s in this.entries){let o=this.entries[s];if(s in r||(o.type==="exact_optional"||o.type==="optional"||o.type==="nullish")&&o.default!==void 0){let f=s in r?r[s]:oe(o),l=o["~run"]({value:f},u);if(l.issues){let n={type:"object",origin:"value",input:r,key:s,value:f};for(let d of l.issues)d.path?d.path.unshift(n):d.path=[n],t.issues?.push(d);if(t.issues||(t.issues=l.issues),u.abortEarly){t.typed=!1;break}}l.typed||(t.typed=!1),t.value[s]=l.value}else if(o.fallback!==void 0)t.value[s]=va(o);else if(o.type!=="exact_optional"&&o.type!=="optional"&&o.type!=="nullish"&&(L(this,"key",t,u,{input:void 0,expected:`"${s}"`,path:[{type:"object",origin:"key",input:r,key:s,value:r[s]}]}),u.abortEarly))break}if(!t.issues||!u.abortEarly)for(let s in r)Mt(r,s)&&!(s in this.entries)&&(t.value[s]=r[s])}else L(this,"type",t,u);return t}}}function h(e,a){return{kind:"schema",type:"nullable",reference:h,expects:`(${e.expects} | null)`,async:!1,wrapped:e,default:a,get"~standard"(){return P(this)},"~run"(t,u){return t.value===null&&(this.default!==void 0&&(t.value=oe(this,t,u)),t.value===null)?(t.typed=!0,t):this.wrapped["~run"](t,u)}}}function Q(e){return{kind:"schema",type:"number",reference:Q,expects:"number",async:!1,message:e,get"~standard"(){return P(this)},"~run"(a,t){return typeof a.value=="number"&&!isNaN(a.value)?a.typed=!0:L(this,"type",a,t),a}}}function g(e,a){return{kind:"schema",type:"object",reference:g,expects:"Object",async:!1,entries:e,message:a,get"~standard"(){return P(this)},"~run"(t,u){let r=t.value;if(r&&typeof r=="object"){t.typed=!0,t.value={};for(let s in this.entries){let o=this.entries[s];if(s in r||(o.type==="exact_optional"||o.type==="optional"||o.type==="nullish")&&o.default!==void 0){let f=s in r?r[s]:oe(o),l=o["~run"]({value:f},u);if(l.issues){let n={type:"object",origin:"value",input:r,key:s,value:f};for(let d of l.issues)d.path?d.path.unshift(n):d.path=[n],t.issues?.push(d);if(t.issues||(t.issues=l.issues),u.abortEarly){t.typed=!1;break}}l.typed||(t.typed=!1),t.value[s]=l.value}else if(o.fallback!==void 0)t.value[s]=va(o);else if(o.type!=="exact_optional"&&o.type!=="optional"&&o.type!=="nullish"&&(L(this,"key",t,u,{input:void 0,expected:`"${s}"`,path:[{type:"object",origin:"key",input:r,key:s,value:r[s]}]}),u.abortEarly))break}}else L(this,"type",t,u);return t}}}function c(e,a){return{kind:"schema",type:"optional",reference:c,expects:`(${e.expects} | undefined)`,async:!1,wrapped:e,default:a,get"~standard"(){return P(this)},"~run"(t,u){return t.value===void 0&&(this.default!==void 0&&(t.value=oe(this,t,u)),t.value===void 0)?(t.typed=!0,t):this.wrapped["~run"](t,u)}}}function D(e,a){return{kind:"schema",type:"picklist",reference:D,expects:Ue(e.map(G),"|"),async:!1,options:e,message:a,get"~standard"(){return P(this)},"~run"(t,u){return this.options.includes(t.value)?t.typed=!0:L(this,"type",t,u),t}}}function Xe(e,a){return{kind:"schema",type:"strict_tuple",reference:Xe,expects:"Array",async:!1,items:e,message:a,get"~standard"(){return P(this)},"~run"(t,u){let r=t.value;if(Array.isArray(r)){t.typed=!0,t.value=[];for(let s=0;s<this.items.length;s++){let o=r[s],f=this.items[s]["~run"]({value:o},u);if(f.issues){let l={type:"array",origin:"value",input:r,key:s,value:o};for(let n of f.issues)n.path?n.path.unshift(l):n.path=[l],t.issues?.push(n);if(t.issues||(t.issues=f.issues),u.abortEarly){t.typed=!1;break}}f.typed||(t.typed=!1),t.value.push(f.value)}!(t.issues&&u.abortEarly)&&this.items.length<r.length&&L(this,"type",t,u,{input:r[this.items.length],expected:"never",path:[{type:"array",origin:"value",input:r,key:this.items.length,value:r[this.items.length]}]})}else L(this,"type",t,u);return t}}}function I(e){return{kind:"schema",type:"string",reference:I,expects:"string",async:!1,message:e,get"~standard"(){return P(this)},"~run"(a,t){return typeof a.value=="string"?a.typed=!0:L(this,"type",a,t),a}}}function Ca(e){let a;if(e)for(let t of e)if(a)for(let u of t.issues)a.push(u);else a=t.issues;return a}function je(e,a){return{kind:"schema",type:"union",reference:je,expects:Ue(e.map(t=>t.expects),"|"),async:!1,options:e,message:a,get"~standard"(){return P(this)},"~run"(t,u){let r,s,o;for(let f of this.options){let l=f["~run"]({value:t.value},u);if(l.typed)if(l.issues)s?s.push(l):s=[l];else{r=l;break}else o?o.push(l):o=[l]}if(r)return r;if(s){if(s.length===1)return s[0];L(this,"type",t,u,{issues:Ca(s)}),t.typed=!0}else{if(o?.length===1)return o[0];L(this,"type",t,u,{issues:Ca(o)})}return t}}}function $e(){return{kind:"schema",type:"unknown",reference:$e,expects:"unknown",async:!1,get"~standard"(){return P(this)},"~run"(e){return e.typed=!0,e}}}function Ke(e,a,t){return{kind:"schema",type:"variant",reference:Ke,expects:"Object",async:!1,key:e,options:a,message:t,get"~standard"(){return P(this)},"~run"(u,r){let s=u.value;if(s&&typeof s=="object"){let o,f=0,l=this.key,n=[],d=(C,M)=>{for(let B of C.options){if(B.type==="variant")d(B,new Set(M).add(B.key));else{let F=!0,T=0;for(let A of M){let k=B.entries[A];if(A in s?k["~run"]({typed:!1,value:s[A]},Sa).issues:k.type!=="exact_optional"&&k.type!=="optional"&&k.type!=="nullish"){F=!1,l!==A&&(f<T||f===T&&A in s&&!(l in s))&&(f=T,l=A,n=[]),l===A&&n.push(B.entries[A].expects);break}T++}if(F){let A=B["~run"]({value:s},r);(!o||!o.typed&&A.typed)&&(o=A)}}if(o&&!o.issues)break}};if(d(this,new Set([this.key])),o)return o;L(this,"type",u,r,{input:s[l],expected:Ue(n,"|"),path:[{type:"object",origin:"value",input:s,key:l,value:s[l]}]})}else L(this,"type",u,r);return u}}}function w(e,a,t){let u=e["~run"]({value:a},Oe(t));if(u.issues)throw new _e(u.issues);return u.value}function y(...e){return{...e[0],pipe:e,get"~standard"(){return P(this)},"~run"(a,t){for(let u of e)if(u.kind!=="metadata"){if(a.issues&&(u.kind==="schema"||u.kind==="transformation")){a.typed=!1;break}(!a.issues||!t.abortEarly&&!t.abortPipeEarly)&&(a=u["~run"](a,t))}return a}}}function Ir(e,a,t){let u=e["~run"]({value:a},Oe(t));return{typed:u.typed,success:!u.issues,output:u.value,issues:u.issues}}var V=y(I(),ze(),b(e=>e.trim().length>0)),Cr=c(h(I()),null);function wa(e){return y(Q(),K(),R(e))}var Aa=y(q($e()),Ne(e=>e.filter(a=>{let{archivedAt:t}=w(J({archivedAt:c(h(V))}),a);return!t}))),Tt=g({id:V,label:V}),ka=y(Aa,q(Tt),$(2),b(e=>new Set(e.map(({id:a})=>a)).size===e.length,"Expected unique custom field option IDs.")),ie={id:V,label:V,paymentOptionIds:c(q(V)),required:S()},qt=Ke("type",[g({...ie,type:D(["text","textarea"])}),g({...ie,type:D(["checkbox"])}),g({...ie,options:ka,type:D(["radio","select"])}),g({...ie,options:ka,type:D(["checkboxes","multi_select"])})]),Sr=y(c(Aa,[]),q(qt),b(e=>new Set(e.map(({id:a})=>a)).size===e.length,"Expected unique custom field IDs.")),vr=g({fieldId:V,value:je([S(),I(),q(I())])});function de(e){let a=new Object(e);if(a!==e||Object.isFrozen(a))return e;for(let t of Object.values(a))de(t);return Object.freeze(e)}var Pa=/\/+$/,Et=new Set(["localhost","127.0.0.1","[::1]"]),Ot={development:{sentryDsn:"https://1977371f7bc44480935a7bc9726ca296@o1338376.ingest.sentry.io/6631829"},production:{sentryDsn:"https://43d2d853c129415cf77531c914511174@o1338376.ingest.us.sentry.io/4511911476133888"}};function Ze(e,a,t="apiBaseUrl"){if(!le(I(),e))throw TypeError(`${t} must be a valid HTTP or HTTPS URL.`);let u;try{u=new URL(e)}catch{throw TypeError(`${t} must be a valid HTTP or HTTPS URL.`)}if(u.protocol!=="http:"&&u.protocol!=="https:")throw TypeError(`${t} must be a valid HTTP or HTTPS URL.`);if(u.username||u.password)throw TypeError(`${t} must not include credentials.`);if(u.search||u.hash)throw TypeError(`${t} must not include a query or fragment.`);if(u.protocol!=="https:"&&!(a==="development"&&(Et.has(u.hostname)||u.hostname.endsWith(".localhost"))))throw TypeError(`${t} must use HTTPS except for development loopback endpoints.`);return u.pathname=u.pathname.replace(Pa,""),u.toString().replace(Pa,"")}function Ut(e,a){let t="requestTimeoutMs must be a positive integer no greater than 2147483647.",u=r=>y(I(`${r} must be a non-empty string.`),b(s=>s.trim().length>0,`${r} must be a non-empty string.`));try{let r=w(J({apiBaseUrl:c(I("apiBaseUrl must be a valid HTTP or HTTPS URL.")),communitySlug:u("communitySlug"),environment:c(D(["development","production"],"environment must be either development or production.")),fetch:c(fe(s=>le(ne(),s),"fetch must be a function when provided.")),onError:c(fe(s=>le(ne(),s),"onError must be a function when provided.")),requestTimeoutMs:c(y(Q(t),K(t),R(1,t),Ve(2147483647,t))),sentryDsn:c(h(I("sentryDsn must be a string or null when provided.")))},"Expected an object."),e);return{apiBaseUrl:r.apiBaseUrl,communitySlug:r.communitySlug,environment:r.environment,fetch:r.fetch,onError:r.onError,requestTimeoutMs:r.requestTimeoutMs,resourceSlugValue:w(u(a),r[a]),sentryDsn:r.sentryDsn}}catch(r){let s=r instanceof _e?r.issues[0]?.message??"Invalid SDK options.":"Invalid SDK options.";throw TypeError(s)}}function ba(e,a){let t=Ut(e,a),u=t.environment;if(t.apiBaseUrl!==void 0&&u===void 0)throw TypeError("environment is required when apiBaseUrl is provided.");if(t.apiBaseUrl===void 0&&u==="development")throw TypeError("apiBaseUrl is required when environment is development.");let r=u===void 0?"production":u,{communitySlug:s,resourceSlugValue:o}=t,f=t.fetch??globalThis.fetch,l=t.apiBaseUrl===void 0?"https://portal.lockerverse.com/api":Ze(t.apiBaseUrl,r),n=Ot[r],d=t.sentryDsn,C=d===null?null:d??n.sentryDsn;return{apiBaseUrl:l,communitySlug:encodeURIComponent(s),communitySlugValue:s,environment:r,fetchImplementation:f,onError:t.onError,requestTimeoutMs:t.requestTimeoutMs??2e4,resourceSlug:encodeURIComponent(o),resourceSlugValue:o,sentryDsn:C}}function _t(){return globalThis.window}function Da({communitySlug:e,environment:a,getContext:t,onError:u,resourceContextName:r,sentryDsn:s}){let o=null;return function(f){try{Promise.resolve(u?.(f)).catch(()=>{})}catch{}let l=_t();if(f.reportable&&s&&l!==void 0){let n=o??import("./telemetry-6KTBIZ2M.js");o=n;let d={communitySlug:e,...t()},C=f.status===void 0?d:{...d,status:f.status};n.then(({captureSdkError:M})=>M({context:C,contextName:r,dsn:s,environment:a,error:f})).catch(()=>{o===n&&(o=null)})}return f}}function Ma(e,a,t){function u(s,o){let f=new _({code:s.code,failureKind:o,message:s.message,operation:s.operation,reportable:!0});return s.report===!1?f:a(f)}async function r(s,o,f,l,n,d){let C=new AbortController,M=o?.signal??void 0,B=()=>C.abort(M?.reason);M?.aborted?B():M?.addEventListener("abort",B,{once:!0});let F,T=new Promise((E,H)=>{F=()=>H(C.signal.reason??new DOMException("The request was aborted.","AbortError")),C.signal.aborted?F():C.signal.addEventListener("abort",F,{once:!0})}),A=!1;function k(E,H){return M?.aborted?"aborted":A?"timeout":C.signal.aborted||H instanceof Error&&H.name==="AbortError"?"aborted":E}let z=setTimeout(()=>{A=!0,C.abort(new DOMException("The request timed out.","TimeoutError"))},t);try{let E;try{E=await Promise.race([e(s,{...o,signal:C.signal}),T])}catch(Y){throw u(l,k("network",Y))}if(!E.ok)try{return{errorValue:d?await Promise.race([d(E),T]):void 0,ok:!1,response:E}}catch{throw u(l,"invalid_response")}let H;try{H=await Promise.race([E.json(),T])}catch(Y){throw u(n,k(Y instanceof TypeError?"network":"invalid_response",Y))}try{return{ok:!0,response:E,value:f(H)}}catch{throw u(n,"invalid_response")}}finally{clearTimeout(z),M?.removeEventListener("abort",B),F&&C.signal.removeEventListener("abort",F)}}return{requestJson:r}}function Ba(e,a){if(a===void 0)return e;e.mediaBaseUrl=a;let t=u=>u?.startsWith("https://media.lockerverse.com/")?`${a}/${u.slice(30)}`:u;e.configuration.image=t(e.configuration.image),e.community&&(e.community.banner=t(e.community.banner),e.community.thumbnail=t(e.community.thumbnail));for(let u of e.items)u.image=t(u.image),u.images=u.images.map(t);return e}var v=y(I(),$(1)),p=wa(0),O=y(I(),Ge()),Fa=D(["draft","active","finished"]),Ra=g({additionalUnitAmountCents:p,category:D(["shipping","handling","other"]),firstUnitAmountCents:p,name:v}),Ht=g({additionalCharge:c(h(Ra)),auctionId:v,availableQuantity:h(p),bidCount:p,bidIncrementAmount:h(p),buyNowPriceAmount:h(p),collectShippingAddress:S(),communityId:v,createdAt:O,description:h(I()),endAt:c(h(O)),finalizedBidCount:p,finishedAt:c(h(O)),id:v,image:h(I()),images:q(I()),inventoryQuantity:h(p),isSoldOut:S(),maxBidAmount:h(p),maxQuantityPerOrder:c(h(y(p,R(1)))),minBidAmount:h(p),name:I(),paidQuantity:p,path:v,position:p,reservedQuantity:p,saleMode:D(["auction","buy_now","hybrid"]),slug:v,startAt:c(h(O)),status:Fa,supportsMaximumBids:c(S()),updatedAt:O}),Ta=g({collectShippingAddress:S(),community:c(g({banner:c(h(I())),color:c(h(I())),name:c(I()),thumbnail:c(h(I()))})),communityId:v,configuration:g({collectShippingAddress:S(),endTimeEnabled:c(h(S())),image:h(I()),serviceFeeDefaultChecked:S(),serviceFeeEnabled:S(),startTimeEnabled:c(h(S()))}),createdAt:O,description:h(I()),endAt:O,id:v,items:q(Ht),name:I(),path:v,payment:c(g({connectedAccountId:h(v),currency:Z("usd"),publishableKey:v})),position:p,pricingPolicy:g({currency:Z("usd"),serviceFeeRateBasisPoints:p}),serviceFeeDefaultChecked:S(),serviceFeeEnabled:S(),slug:v,startAt:O,status:Fa,updatedAt:O}),Je={additionalCharge:c(h(Ra)),additionalChargeCents:c(p,0),serviceFeeCents:p,serviceFeeRateBasisPoints:p,subtotalCents:p,totalCents:p},ce=e=>e.totalCents===e.subtotalCents+e.serviceFeeCents+(e.additionalChargeCents??0),qa={...Je,clientSecret:h(v),requiresAction:S()},Gt=y(g(qa),b(e=>ce(e)),b(e=>!e.requiresAction||e.clientSecret!==null)),Ea=y(g({...qa,id:v,purchaseId:v,quantity:y(p,R(1)),status:D(["pending_payment","paid","payment_failed","expired","canceled","refunded"]),totalAmount:p}),b(e=>ce(e)),b(e=>e.id===e.purchaseId&&(!e.requiresAction||e.clientSecret!==null))),Vt=y(g({...Je,quantity:y(p,R(1)),totalAmount:p,unitAmount:p}),b(e=>ce(e))),Oa={confirmationToken:v,email:y(I(),He()),expectedAdditionalChargeCents:c(p),expectedServiceFeeCents:c(p),expectedSubtotalCents:c(p),expectedTotalCents:c(p),includeServiceFee:c(S()),phone:y(I(),We(/^\+[1-9]\d{1,14}$/))},zt=g({...Oa,amount:y(p,R(100)),bidType:c(D(["fixed","maximum"]))}),Wt=g({...Oa,clientRequestId:v,paymentMethodTypes:c(Xe([Z("card")])),quantity:y(p,R(1))}),Nt=e=>w(Ta,e),Xt=e=>w(q(Ta),e),jt=e=>w(Gt,e),$t=e=>w(Ea,e),Kt=e=>w(Vt,e),Zt=e=>w(zt,e),Jt=e=>w(Wt,e),Qt=e=>w(h(Ea),e),Yt=e=>w(y(g(Je),b(a=>ce(a))),e),eu=e=>w(g({includeServiceFee:c(S()),quantity:y(p,R(1))}),e);function au(e,a,t){let u=e+a.map(r=>`/${encodeURIComponent(w(v,r))}`).join("");return t===void 0?u:`${u}?${new URLSearchParams({previewItem:w(v,t)})}`}function Fr(e){let a=ba(e,"communitySlug"),t=e.mediaBaseUrl===void 0?void 0:Ze(e.mediaBaseUrl,a.environment,"mediaBaseUrl"),u=l=>Ba(Nt(l),t),r=Da({communitySlug:a.communitySlugValue,environment:a.environment,getContext:()=>({}),onError:a.onError,resourceContextName:"lockerverse_auction",sentryDsn:a.sentryDsn}),{requestJson:s}=Ma(a.fetchImplementation,r,a.requestTimeoutMs),o=`${a.apiBaseUrl}/auctions/communities/slug/${a.communitySlug}`;async function f(l,n,d,C,M,B=!1){let F=!!C&&!B,T,A;try{T=au(o,n,M),C&&(A={body:JSON.stringify(C.parse(C.value)),headers:{"content-type":"application/json"},method:"POST"})}catch{throw r(new _({...l,message:"Lockerverse auction input is invalid.",reportable:!1}))}try{let k=await s(T,A,d,{...l,report:!1},{...l,report:!1});if(!k.ok){let{status:z}=k.response;throw new _({...l,recoveryRecommended:F&&(z>=500||z===408),reportable:z>=500,status:z})}return de(k.value)}catch(k){throw k instanceof _?r(new _({...l,recoveryRecommended:k.recoveryRecommended||F&&k.status===void 0,reportable:k.reportable,...k.status===void 0?void 0:{status:k.status}})):r(new _({...l,recoveryRecommended:F,reportable:!0}))}}return{createBid:(l,n,d)=>f({code:"auction_bid_failed",message:"Unable to submit Lockerverse auction bid.",operation:"create_auction_bid"},["path",l,"items",n,"bids"],jt,{parse:Zt,value:d}),createPurchase:(l,n,d)=>f({code:"auction_purchase_failed",message:"Unable to submit Lockerverse auction purchase.",operation:"create_auction_purchase"},["path",l,"items",n,"purchases"],$t,{parse:Jt,value:d}),getPurchaseQuote:(l,n,d)=>f({code:"auction_load_failed",message:"Unable to load Lockerverse auction purchase quote.",operation:"load_auction"},["path",l,"items",n,"purchase-quote"],Yt,{parse:eu,value:d},void 0,!0),getPurchaseReceipt:(l,n,d)=>f({code:"auction_receipt_failed",message:"Unable to load Lockerverse auction purchase receipt.",operation:"get_auction_purchase_receipt"},["path",l,"items",n,"purchases",d],Kt),getPurchaseStatus:(l,n,d)=>f({code:"auction_purchase_status_failed",message:"Unable to load Lockerverse auction purchase status.",operation:"get_auction_purchase_status"},["path",l,"items",n,"purchase-status",d],Qt),list:()=>f({code:"auction_load_failed",message:"Unable to load Lockerverse auctions.",operation:"list_auctions"},[],l=>Xt(l).map(n=>Ba(n,t))),load:(l,n)=>f({code:"auction_load_failed",message:"Unable to load Lockerverse auction.",operation:"load_auction"},["path",l],u,void 0,n?.previewItemSlug)}}function U(e){if(!Number.isSafeInteger(e)||e<0)throw TypeError("Auction amounts must be non-negative safe integers.")}function Rr(e,a,t=!1,u=0){if(U(a),U(u),t&&!e.serviceFeeEnabled)throw TypeError("The service fee is not available for this auction.");let r=t?e.pricingPolicy.serviceFeeRateBasisPoints:0;U(r);let s=Math.round(a*r/1e4),o=a+s+u;U(s),U(o);let f={serviceFeeCents:s,serviceFeeRateBasisPoints:r,subtotalCents:a,totalCents:o};return u>0&&(f.additionalChargeCents=u),de(f)}function Tr(e){let a=e.minBidAmount??100,t=e.bidIncrementAmount??100;if(U(a),U(t),e.maxBidAmount===null)return a;U(e.maxBidAmount);let u=Math.max(a,e.maxBidAmount+t);return U(u),u}export{ge as a,Se as b,X as c,ke as d,ve as e,we as f,Ae as g,Pe as h,be as i,De as j,Me as k,Be as l,Fe as m,Re as n,Te as o,qe as p,Ee as q,yt as r,ya as s,dr as t,cr as u,gt as v,Ct as w,pr as x,b as y,He as z,ze as A,We as B,Ne as C,Rt as D,g as E,I as F,y as G,Ir as H,_ as I,Fr as J,Rr as K,Tr as L};
2
+ /*! For license information please see chunk-HSTDDFWD.js.LEGAL.txt */
@@ -1,2 +1,2 @@
1
- import{a as O,r as _}from"./chunk-4K5K5SO6.js";import{a as z,c as b}from"./chunk-DCANE7XH.js";var le=z(d=>{"use strict";var $e=O();function de(t){var e="https://react.dev/errors/"+t;if(1<arguments.length){e+="?args[]="+encodeURIComponent(arguments[1]);for(var r=2;r<arguments.length;r++)e+="&args[]="+encodeURIComponent(arguments[r])}return"Minified React error #"+t+"; visit "+e+" for the full message or use the non-minified dev environment for full errors and additional helpful warnings."}function v(){}var f={d:{f:v,r:function(){throw Error(de(522))},D:v,C:v,L:v,m:v,X:v,S:v,M:v},p:0,findDOMNode:null},qe=Symbol.for("react.portal");function Fe(t,e,r){var n=3<arguments.length&&arguments[3]!==void 0?arguments[3]:null;return{$$typeof:qe,key:n==null?null:""+n,children:t,containerInfo:e,implementation:r}}var L=$e.__CLIENT_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE;function x(t,e){if(t==="font")return"";if(typeof e=="string")return e==="use-credentials"?e:""}d.__DOM_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE=f;d.createPortal=function(t,e){var r=2<arguments.length&&arguments[2]!==void 0?arguments[2]:null;if(!e||e.nodeType!==1&&e.nodeType!==9&&e.nodeType!==11)throw Error(de(299));return Fe(t,e,null,r)};d.flushSync=function(t){var e=L.T,r=f.p;try{if(L.T=null,f.p=2,t)return t()}finally{L.T=e,f.p=r,f.d.f()}};d.preconnect=function(t,e){typeof t=="string"&&(e?(e=e.crossOrigin,e=typeof e=="string"?e==="use-credentials"?e:"":void 0):e=null,f.d.C(t,e))};d.prefetchDNS=function(t){typeof t=="string"&&f.d.D(t)};d.preinit=function(t,e){if(typeof t=="string"&&e&&typeof e.as=="string"){var r=e.as,n=x(r,e.crossOrigin),i=typeof e.integrity=="string"?e.integrity:void 0,a=typeof e.fetchPriority=="string"?e.fetchPriority:void 0;r==="style"?f.d.S(t,typeof e.precedence=="string"?e.precedence:void 0,{crossOrigin:n,integrity:i,fetchPriority:a}):r==="script"&&f.d.X(t,{crossOrigin:n,integrity:i,fetchPriority:a,nonce:typeof e.nonce=="string"?e.nonce:void 0})}};d.preinitModule=function(t,e){if(typeof t=="string")if(typeof e=="object"&&e!==null){if(e.as==null||e.as==="script"){var r=x(e.as,e.crossOrigin);f.d.M(t,{crossOrigin:r,integrity:typeof e.integrity=="string"?e.integrity:void 0,nonce:typeof e.nonce=="string"?e.nonce:void 0})}}else e==null&&f.d.M(t)};d.preload=function(t,e){if(typeof t=="string"&&typeof e=="object"&&e!==null&&typeof e.as=="string"){var r=e.as,n=x(r,e.crossOrigin);f.d.L(t,r,{crossOrigin:n,integrity:typeof e.integrity=="string"?e.integrity:void 0,nonce:typeof e.nonce=="string"?e.nonce:void 0,type:typeof e.type=="string"?e.type:void 0,fetchPriority:typeof e.fetchPriority=="string"?e.fetchPriority:void 0,referrerPolicy:typeof e.referrerPolicy=="string"?e.referrerPolicy:void 0,imageSrcSet:typeof e.imageSrcSet=="string"?e.imageSrcSet:void 0,imageSizes:typeof e.imageSizes=="string"?e.imageSizes:void 0,media:typeof e.media=="string"?e.media:void 0})}};d.preloadModule=function(t,e){if(typeof t=="string")if(e){var r=x(e.as,e.crossOrigin);f.d.m(t,{as:typeof e.as=="string"&&e.as!=="script"?e.as:void 0,crossOrigin:r,integrity:typeof e.integrity=="string"?e.integrity:void 0})}else f.d.m(t)};d.requestFormReset=function(t){f.d.r(t)};d.unstable_batchedUpdates=function(t,e){return t(e)};d.useFormState=function(t,e,r){return L.H.useFormState(t,e,r)};d.useFormStatus=function(){return L.H.useHostTransitionStatus()};d.version="19.2.8"});var Ve=z((ct,me)=>{"use strict";function ge(){if(!(typeof __REACT_DEVTOOLS_GLOBAL_HOOK__>"u"||typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE!="function"))try{__REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE(ge)}catch(t){console.error(t)}}ge(),me.exports=le()});var he={grad:.9,turn:360,rad:360/(2*Math.PI)},p=function(t){return typeof t=="string"?t.length>0:typeof t=="number"},u=function(t,e,r){return e===void 0&&(e=0),r===void 0&&(r=Math.pow(10,e)),Math.round(r*t)/r+0},l=function(t,e,r){return e===void 0&&(e=0),r===void 0&&(r=1),t>r?r:t>e?t:e},Q=function(t){return(t=isFinite(t)?t%360:0)>0?t:t+360},B=function(t){return{r:l(t.r,0,255),g:l(t.g,0,255),b:l(t.b,0,255),a:l(t.a)}},I=function(t){return{r:u(t.r),g:u(t.g),b:u(t.b),a:u(t.a,3)}},be=/^#([0-9a-f]{3,8})$/i,R=function(t){var e=t.toString(16);return e.length<2?"0"+e:e},Z=function(t){var e=t.r,r=t.g,n=t.b,i=t.a,a=Math.max(e,r,n),o=a-Math.min(e,r,n),s=o?a===e?(r-n)/o:a===r?2+(n-e)/o:4+(e-r)/o:0;return{h:60*(s<0?s+6:s),s:a?o/a*100:0,v:a/255*100,a:i}},ee=function(t){var e=t.h,r=t.s,n=t.v,i=t.a;e=e/360*6,r/=100,n/=100;var a=Math.floor(e),o=n*(1-r),s=n*(1-(e-a)*r),c=n*(1-(1-e+a)*r),m=a%6;return{r:255*[n,s,o,o,c,n][m],g:255*[c,n,n,s,o,o][m],b:255*[o,o,c,n,n,s][m],a:i}},K=function(t){return{h:Q(t.h),s:l(t.s,0,100),l:l(t.l,0,100),a:l(t.a)}},G=function(t){return{h:u(t.h),s:u(t.s),l:u(t.l),a:u(t.a,3)}},W=function(t){return ee((r=(e=t).s,{h:e.h,s:(r*=((n=e.l)<50?n:100-n)/100)>0?2*r/(n+r)*100:0,v:n+r,a:e.a}));var e,r,n},A=function(t){return{h:(e=Z(t)).h,s:(i=(200-(r=e.s))*(n=e.v)/100)>0&&i<200?r*n/100/(i<=100?i:200-i)*100:0,l:i/2,a:e.a};var e,r,n,i},pe=/^hsla?\(\s*([+-]?\d*\.?\d+)(deg|rad|grad|turn)?\s*,\s*([+-]?\d*\.?\d+)%\s*,\s*([+-]?\d*\.?\d+)%\s*(?:,\s*([+-]?\d*\.?\d+)(%)?\s*)?\)$/i,ye=/^hsla?\(\s*([+-]?\d*\.?\d+)(deg|rad|grad|turn)?\s+([+-]?\d*\.?\d+)%\s+([+-]?\d*\.?\d+)%\s*(?:\/\s*([+-]?\d*\.?\d+)(%)?\s*)?\)$/i,ve=/^rgba?\(\s*([+-]?\d*\.?\d+)(%)?\s*,\s*([+-]?\d*\.?\d+)(%)?\s*,\s*([+-]?\d*\.?\d+)(%)?\s*(?:,\s*([+-]?\d*\.?\d+)(%)?\s*)?\)$/i,ke=/^rgba?\(\s*([+-]?\d*\.?\d+)(%)?\s+([+-]?\d*\.?\d+)(%)?\s+([+-]?\d*\.?\d+)(%)?\s*(?:\/\s*([+-]?\d*\.?\d+)(%)?\s*)?\)$/i,D={string:[[function(t){var e=be.exec(t);return e?(t=e[1]).length<=4?{r:parseInt(t[0]+t[0],16),g:parseInt(t[1]+t[1],16),b:parseInt(t[2]+t[2],16),a:t.length===4?u(parseInt(t[3]+t[3],16)/255,2):1}:t.length===6||t.length===8?{r:parseInt(t.substr(0,2),16),g:parseInt(t.substr(2,2),16),b:parseInt(t.substr(4,2),16),a:t.length===8?u(parseInt(t.substr(6,2),16)/255,2):1}:null:null},"hex"],[function(t){var e=ve.exec(t)||ke.exec(t);return e?e[2]!==e[4]||e[4]!==e[6]?null:B({r:Number(e[1])/(e[2]?100/255:1),g:Number(e[3])/(e[4]?100/255:1),b:Number(e[5])/(e[6]?100/255:1),a:e[7]===void 0?1:Number(e[7])/(e[8]?100:1)}):null},"rgb"],[function(t){var e=pe.exec(t)||ye.exec(t);if(!e)return null;var r,n,i=K({h:(r=e[1],n=e[2],n===void 0&&(n="deg"),Number(r)*(he[n]||1)),s:Number(e[3]),l:Number(e[4]),a:e[5]===void 0?1:Number(e[5])/(e[6]?100:1)});return W(i)},"hsl"]],object:[[function(t){var e=t.r,r=t.g,n=t.b,i=t.a,a=i===void 0?1:i;return p(e)&&p(r)&&p(n)?B({r:Number(e),g:Number(r),b:Number(n),a:Number(a)}):null},"rgb"],[function(t){var e=t.h,r=t.s,n=t.l,i=t.a,a=i===void 0?1:i;if(!p(e)||!p(r)||!p(n))return null;var o=K({h:Number(e),s:Number(r),l:Number(n),a:Number(a)});return W(o)},"hsl"],[function(t){var e=t.h,r=t.s,n=t.v,i=t.a,a=i===void 0?1:i;if(!p(e)||!p(r)||!p(n))return null;var o=(function(s){return{h:Q(s.h),s:l(s.s,0,100),v:l(s.v,0,100),a:l(s.a)}})({h:Number(e),s:Number(r),v:Number(n),a:Number(a)});return ee(o)},"hsv"]]},X=function(t,e){for(var r=0;r<e.length;r++){var n=e[r][0](t);if(n)return[n,e[r][1]]}return[null,void 0]},_e=function(t){return typeof t=="string"?X(t.trim(),D.string):typeof t=="object"&&t!==null?X(t,D.object):[null,void 0]};var M=function(t,e){var r=A(t);return{h:r.h,s:l(r.s+100*e,0,100),l:r.l,a:r.a}},H=function(t){return(299*t.r+587*t.g+114*t.b)/1e3/255},Y=function(t,e){var r=A(t);return{h:r.h,s:r.s,l:l(r.l+100*e,0,100),a:r.a}},P=(function(){function t(e){this.parsed=_e(e)[0],this.rgba=this.parsed||{r:0,g:0,b:0,a:1}}return t.prototype.isValid=function(){return this.parsed!==null},t.prototype.brightness=function(){return u(H(this.rgba),2)},t.prototype.isDark=function(){return H(this.rgba)<.5},t.prototype.isLight=function(){return H(this.rgba)>=.5},t.prototype.toHex=function(){return e=I(this.rgba),r=e.r,n=e.g,i=e.b,o=(a=e.a)<1?R(u(255*a)):"","#"+R(r)+R(n)+R(i)+o;var e,r,n,i,a,o},t.prototype.toRgb=function(){return I(this.rgba)},t.prototype.toRgbString=function(){return e=I(this.rgba),r=e.r,n=e.g,i=e.b,(a=e.a)<1?"rgba("+r+", "+n+", "+i+", "+a+")":"rgb("+r+", "+n+", "+i+")";var e,r,n,i,a},t.prototype.toHsl=function(){return G(A(this.rgba))},t.prototype.toHslString=function(){return e=G(A(this.rgba)),r=e.h,n=e.s,i=e.l,(a=e.a)<1?"hsla("+r+", "+n+"%, "+i+"%, "+a+")":"hsl("+r+", "+n+"%, "+i+"%)";var e,r,n,i,a},t.prototype.toHsv=function(){return e=Z(this.rgba),{h:u(e.h),s:u(e.s),v:u(e.v),a:u(e.a,3)};var e},t.prototype.invert=function(){return g({r:255-(e=this.rgba).r,g:255-e.g,b:255-e.b,a:e.a});var e},t.prototype.saturate=function(e){return e===void 0&&(e=.1),g(M(this.rgba,e))},t.prototype.desaturate=function(e){return e===void 0&&(e=.1),g(M(this.rgba,-e))},t.prototype.grayscale=function(){return g(M(this.rgba,-1))},t.prototype.lighten=function(e){return e===void 0&&(e=.1),g(Y(this.rgba,e))},t.prototype.darken=function(e){return e===void 0&&(e=.1),g(Y(this.rgba,-e))},t.prototype.rotate=function(e){return e===void 0&&(e=15),this.hue(this.hue()+e)},t.prototype.alpha=function(e){return typeof e=="number"?g({r:(r=this.rgba).r,g:r.g,b:r.b,a:e}):u(this.rgba.a,3);var r},t.prototype.hue=function(e){var r=A(this.rgba);return typeof e=="number"?g({h:e,s:r.s,l:r.l,a:r.a}):u(r.h)},t.prototype.isEqual=function(e){return this.toHex()===g(e).toHex()},t})(),g=function(t){return t instanceof P?t:new P(t)},J=[],te=function(t){t.forEach(function(e){J.indexOf(e)<0&&(e(P,D),J.push(e))})};function re(t,e){var r={white:"#ffffff",bisque:"#ffe4c4",blue:"#0000ff",cadetblue:"#5f9ea0",chartreuse:"#7fff00",chocolate:"#d2691e",coral:"#ff7f50",antiquewhite:"#faebd7",aqua:"#00ffff",azure:"#f0ffff",whitesmoke:"#f5f5f5",papayawhip:"#ffefd5",plum:"#dda0dd",blanchedalmond:"#ffebcd",black:"#000000",gold:"#ffd700",goldenrod:"#daa520",gainsboro:"#dcdcdc",cornsilk:"#fff8dc",cornflowerblue:"#6495ed",burlywood:"#deb887",aquamarine:"#7fffd4",beige:"#f5f5dc",crimson:"#dc143c",cyan:"#00ffff",darkblue:"#00008b",darkcyan:"#008b8b",darkgoldenrod:"#b8860b",darkkhaki:"#bdb76b",darkgray:"#a9a9a9",darkgreen:"#006400",darkgrey:"#a9a9a9",peachpuff:"#ffdab9",darkmagenta:"#8b008b",darkred:"#8b0000",darkorchid:"#9932cc",darkorange:"#ff8c00",darkslateblue:"#483d8b",gray:"#808080",darkslategray:"#2f4f4f",darkslategrey:"#2f4f4f",deeppink:"#ff1493",deepskyblue:"#00bfff",wheat:"#f5deb3",firebrick:"#b22222",floralwhite:"#fffaf0",ghostwhite:"#f8f8ff",darkviolet:"#9400d3",magenta:"#ff00ff",green:"#008000",dodgerblue:"#1e90ff",grey:"#808080",honeydew:"#f0fff0",hotpink:"#ff69b4",blueviolet:"#8a2be2",forestgreen:"#228b22",lawngreen:"#7cfc00",indianred:"#cd5c5c",indigo:"#4b0082",fuchsia:"#ff00ff",brown:"#a52a2a",maroon:"#800000",mediumblue:"#0000cd",lightcoral:"#f08080",darkturquoise:"#00ced1",lightcyan:"#e0ffff",ivory:"#fffff0",lightyellow:"#ffffe0",lightsalmon:"#ffa07a",lightseagreen:"#20b2aa",linen:"#faf0e6",mediumaquamarine:"#66cdaa",lemonchiffon:"#fffacd",lime:"#00ff00",khaki:"#f0e68c",mediumseagreen:"#3cb371",limegreen:"#32cd32",mediumspringgreen:"#00fa9a",lightskyblue:"#87cefa",lightblue:"#add8e6",midnightblue:"#191970",lightpink:"#ffb6c1",mistyrose:"#ffe4e1",moccasin:"#ffe4b5",mintcream:"#f5fffa",lightslategray:"#778899",lightslategrey:"#778899",navajowhite:"#ffdead",navy:"#000080",mediumvioletred:"#c71585",powderblue:"#b0e0e6",palegoldenrod:"#eee8aa",oldlace:"#fdf5e6",paleturquoise:"#afeeee",mediumturquoise:"#48d1cc",mediumorchid:"#ba55d3",rebeccapurple:"#663399",lightsteelblue:"#b0c4de",mediumslateblue:"#7b68ee",thistle:"#d8bfd8",tan:"#d2b48c",orchid:"#da70d6",mediumpurple:"#9370db",purple:"#800080",pink:"#ffc0cb",skyblue:"#87ceeb",springgreen:"#00ff7f",palegreen:"#98fb98",red:"#ff0000",yellow:"#ffff00",slateblue:"#6a5acd",lavenderblush:"#fff0f5",peru:"#cd853f",palevioletred:"#db7093",violet:"#ee82ee",teal:"#008080",slategray:"#708090",slategrey:"#708090",aliceblue:"#f0f8ff",darkseagreen:"#8fbc8f",darkolivegreen:"#556b2f",greenyellow:"#adff2f",seagreen:"#2e8b57",seashell:"#fff5ee",tomato:"#ff6347",silver:"#c0c0c0",sienna:"#a0522d",lavender:"#e6e6fa",lightgreen:"#90ee90",orange:"#ffa500",orangered:"#ff4500",steelblue:"#4682b4",royalblue:"#4169e1",turquoise:"#40e0d0",yellowgreen:"#9acd32",salmon:"#fa8072",saddlebrown:"#8b4513",sandybrown:"#f4a460",rosybrown:"#bc8f8f",darksalmon:"#e9967a",lightgoldenrodyellow:"#fafad2",snow:"#fffafa",lightgrey:"#d3d3d3",lightgray:"#d3d3d3",dimgray:"#696969",dimgrey:"#696969",olivedrab:"#6b8e23",olive:"#808000"},n={};for(var i in r)n[r[i]]=i;var a={};t.prototype.toName=function(o){if(!(this.rgba.a||this.rgba.r||this.rgba.g||this.rgba.b))return"transparent";var s,c,m=n[this.toHex()];if(m)return m;if(o?.closest){var k=this.toRgb(),y=1/0,E="black";if(!a.length)for(var T in r)a[T]=new t(r[T]).toRgb();for(var h in r){var j=(s=k,c=a[h],Math.pow(s.r-c.r,2)+Math.pow(s.g-c.g,2)+Math.pow(s.b-c.b,2));j<y&&(y=j,E=h)}return E}},e.string.push([function(o){var s=o.toLowerCase(),c=s==="transparent"?"#0000":r[s];return c?new t(c).toRgb():null},"name"])}var we=/^#([\da-f]{3}|[\da-f]{6})$/i,Se=/^([\da-f]{3}|[\da-f]{6})$/i;function U(t){let e=t.trim();return Se.test(e)?`#${e}`:e}function Ne(t){let e=we.exec(U(t));if(!e)return;let[,r]=e;if(!r)return;let n=r.length===3?Array.from(r,i=>`${i}${i}`).join(""):r;return[0,2,4].map(i=>Number.parseInt(n.slice(i,i+2),16))}function $([t,e,r]){let[n=0,i=0,a=0]=[t,e,r].map((m=0)=>{let k=m/255;return k<=.04045?k/12.92:((k+.055)/1.055)**2.4}),o=.2126*n+.7152*i+.0722*a,s=(o+.05)/.05,c=1.05/(o+.05);return s>=c?"#000":"#fff"}function Be(t){let e=Ne(t);if(e)return $(e)}te([re]);var ne="c062f2a0-f356-4fa1-bde8-3f08d42c2858",Ee="#6f8f6d";function Ae(t,e){let r=g(t);if(!r.isValid())return;let{r:n,g:i,b:a,a:o}=r.toRgb(),s=e==="dark"?5:255;return $([n,i,a].map(c=>c*o+s*(1-o)))}function Le(t,e={},r="light"){let n=t.community?.color?.trim(),i=e["--lockerverse-accent"]??(n?U(n):Ee),a={"--lockerverse-font-family":"inherit",...e,"--lockerverse-accent":i,"--lockerverse-accent-contrast":e["--lockerverse-accent-contrast"]??Ae(i,r)??"#000"};return t.id===ne&&!a["--lockerverse-auction-catalog-columns"]&&(a["--lockerverse-auction-catalog-columns"]="2"),a}function Ye(t,e={},r="light"){let n=Le(t,e,r),i={className:"lockerverse-auctions--embed",style:n},a=t.id===ne?"light":void 0;return{catalog:{className:i.className,showFilters:!1,showHeader:!1,showLineup:!1,style:n},defaultTheme:a,item:i}}var q=b(_(),1);function Qe({href:t,onBack:e,className:r,children:n,elementRef:i}){return t?(0,q.jsx)("a",{className:r,href:t,onClick:a=>{e&&a.button===0&&!a.metaKey&&!a.ctrlKey&&!a.shiftKey&&!a.altKey&&(a.preventDefault(),e())},ref:i,children:n}):e?(0,q.jsx)("button",{className:r,onClick:e,ref:i,type:"button",children:n}):null}var w=b(O(),1),ae=b(_(),1),Te=(0,w.createContext)(void 0),Oe=[96,192,320,480,640,960,1280,1920],Re=/\.(jpe?g|png|webp|avif)$/i,Ce=/\/+$/,xe=new Set(["media.lockerverse.com","dev-media.lockerverse.com"]);function Ie(t,e){if(xe.has(t.hostname)&&!t.port)return t.pathname;if(!e)return;let r=new URL(e),n=`${r.pathname.replace(Ce,"")}/`;if(!(r.username||r.password||r.search||r.hash||t.origin!==r.origin||!t.pathname.startsWith(n)))return`/${t.pathname.slice(n.length)}`}function Me(t,e){if(t)try{let r=new URL(t),n=Ie(r,e);return r.protocol!=="https:"||!n||r.username||r.password||r.search||r.hash||n.startsWith("/__image/")||n.includes("/chat-media/")||!Re.test(n)?void 0:r}catch{}}function ie(t,e){return t.searchParams.set("w",String(e)),t.searchParams.set("f","webp"),t.href}function et({alt:t,width:e,height:r,src:n,maxWidth:i,onError:a,decoding:o="async",...s}){let[c,m]=(0,w.useState)(),k=(0,w.useContext)(Te),y=c===n?void 0:Me(n,k),E=Oe.filter(h=>h<=i),T=E.at(-1)??96;return(0,ae.jsx)("img",{...s,alt:t,decoding:o,height:r,onError:h=>{y?m(n):a?.(h)},src:y?ie(y,T):n,srcSet:y?E.map(h=>`${ie(y,h)} ${h}w`).join(", "):void 0,width:e})}var C=b(O(),1),S=new Map,F,se=0,He=2147483647;function V(){clearTimeout(F),F=void 0;let t=Date.now(),e=Number.POSITIVE_INFINITY;for(let r of S.values())for(let n of r)n>t&&(e=Math.min(e,n));Number.isFinite(e)&&(F=setTimeout(ue,Math.min(e-t+1,He)))}function ue(){se+=1;for(let t of S.keys())t();V()}function oe(){document.hidden||ue()}var De=()=>se,Pe=()=>0;function rt(t,e,r=[]){let n=[t,e,...r.flatMap(a=>[a.startAt??t,a.endAt??e])].join(","),i=(0,C.useCallback)(a=>(S.size||document.addEventListener("visibilitychange",oe),S.set(a,n.split(",").map(Date.parse)),V(),()=>{S.delete(a),V(),S.size||document.removeEventListener("visibilitychange",oe)}),[n]);(0,C.useSyncExternalStore)(i,De,Pe)}var Ue=/<\/?(?:p|br|strong|em|u|s|ul|ol|li|blockquote|pre|code|hr|h[1-6]|a)(?:\s|\/?>)/i;function ce(t){return Ue.test(t)?t:t.replace(/&/g,"&amp;").replace(/</g,"&lt;").replace(/>/g,"&gt;").replace(/\r\n|\r|\n/g,"<br>")}var fe=b(_(),1);function ot({description:t,className:e,id:r}){return(0,fe.jsx)("div",{className:["lockerverse-auctions__description",e].filter(Boolean).join(" "),dangerouslySetInnerHTML:{__html:ce(t)},id:r})}var N=b(O(),1);function ft(){let t=(0,N.useRef)(null),[e,r]=(0,N.useState)(!1);return(0,N.useEffect)(()=>{let n=t.current;if(!(n&&"IntersectionObserver"in window))return;let i=!1,a=()=>r(i&&!document.hidden),o=new IntersectionObserver(([s])=>{i=!!(s?.isIntersecting&&s.intersectionRatio>0),a()});return o.observe(n),document.addEventListener("visibilitychange",a),()=>{o.disconnect(),document.removeEventListener("visibilitychange",a)}},[]),{ref:t,visible:e}}export{Ve as a,Be as b,Le as c,Ye as d,Qe as e,ot as f,Te as g,et as h,ft as i,rt as j};
2
- /*! For license information please see chunk-HYTQC4SN.js.LEGAL.txt */
1
+ import{a as O,r as _}from"./chunk-HSTDDFWD.js";import{a as z,c as b}from"./chunk-DCANE7XH.js";var le=z(d=>{"use strict";var $e=O();function de(t){var e="https://react.dev/errors/"+t;if(1<arguments.length){e+="?args[]="+encodeURIComponent(arguments[1]);for(var r=2;r<arguments.length;r++)e+="&args[]="+encodeURIComponent(arguments[r])}return"Minified React error #"+t+"; visit "+e+" for the full message or use the non-minified dev environment for full errors and additional helpful warnings."}function v(){}var f={d:{f:v,r:function(){throw Error(de(522))},D:v,C:v,L:v,m:v,X:v,S:v,M:v},p:0,findDOMNode:null},qe=Symbol.for("react.portal");function Fe(t,e,r){var n=3<arguments.length&&arguments[3]!==void 0?arguments[3]:null;return{$$typeof:qe,key:n==null?null:""+n,children:t,containerInfo:e,implementation:r}}var L=$e.__CLIENT_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE;function x(t,e){if(t==="font")return"";if(typeof e=="string")return e==="use-credentials"?e:""}d.__DOM_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE=f;d.createPortal=function(t,e){var r=2<arguments.length&&arguments[2]!==void 0?arguments[2]:null;if(!e||e.nodeType!==1&&e.nodeType!==9&&e.nodeType!==11)throw Error(de(299));return Fe(t,e,null,r)};d.flushSync=function(t){var e=L.T,r=f.p;try{if(L.T=null,f.p=2,t)return t()}finally{L.T=e,f.p=r,f.d.f()}};d.preconnect=function(t,e){typeof t=="string"&&(e?(e=e.crossOrigin,e=typeof e=="string"?e==="use-credentials"?e:"":void 0):e=null,f.d.C(t,e))};d.prefetchDNS=function(t){typeof t=="string"&&f.d.D(t)};d.preinit=function(t,e){if(typeof t=="string"&&e&&typeof e.as=="string"){var r=e.as,n=x(r,e.crossOrigin),i=typeof e.integrity=="string"?e.integrity:void 0,a=typeof e.fetchPriority=="string"?e.fetchPriority:void 0;r==="style"?f.d.S(t,typeof e.precedence=="string"?e.precedence:void 0,{crossOrigin:n,integrity:i,fetchPriority:a}):r==="script"&&f.d.X(t,{crossOrigin:n,integrity:i,fetchPriority:a,nonce:typeof e.nonce=="string"?e.nonce:void 0})}};d.preinitModule=function(t,e){if(typeof t=="string")if(typeof e=="object"&&e!==null){if(e.as==null||e.as==="script"){var r=x(e.as,e.crossOrigin);f.d.M(t,{crossOrigin:r,integrity:typeof e.integrity=="string"?e.integrity:void 0,nonce:typeof e.nonce=="string"?e.nonce:void 0})}}else e==null&&f.d.M(t)};d.preload=function(t,e){if(typeof t=="string"&&typeof e=="object"&&e!==null&&typeof e.as=="string"){var r=e.as,n=x(r,e.crossOrigin);f.d.L(t,r,{crossOrigin:n,integrity:typeof e.integrity=="string"?e.integrity:void 0,nonce:typeof e.nonce=="string"?e.nonce:void 0,type:typeof e.type=="string"?e.type:void 0,fetchPriority:typeof e.fetchPriority=="string"?e.fetchPriority:void 0,referrerPolicy:typeof e.referrerPolicy=="string"?e.referrerPolicy:void 0,imageSrcSet:typeof e.imageSrcSet=="string"?e.imageSrcSet:void 0,imageSizes:typeof e.imageSizes=="string"?e.imageSizes:void 0,media:typeof e.media=="string"?e.media:void 0})}};d.preloadModule=function(t,e){if(typeof t=="string")if(e){var r=x(e.as,e.crossOrigin);f.d.m(t,{as:typeof e.as=="string"&&e.as!=="script"?e.as:void 0,crossOrigin:r,integrity:typeof e.integrity=="string"?e.integrity:void 0})}else f.d.m(t)};d.requestFormReset=function(t){f.d.r(t)};d.unstable_batchedUpdates=function(t,e){return t(e)};d.useFormState=function(t,e,r){return L.H.useFormState(t,e,r)};d.useFormStatus=function(){return L.H.useHostTransitionStatus()};d.version="19.2.8"});var Ve=z((ct,me)=>{"use strict";function ge(){if(!(typeof __REACT_DEVTOOLS_GLOBAL_HOOK__>"u"||typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE!="function"))try{__REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE(ge)}catch(t){console.error(t)}}ge(),me.exports=le()});var he={grad:.9,turn:360,rad:360/(2*Math.PI)},p=function(t){return typeof t=="string"?t.length>0:typeof t=="number"},u=function(t,e,r){return e===void 0&&(e=0),r===void 0&&(r=Math.pow(10,e)),Math.round(r*t)/r+0},l=function(t,e,r){return e===void 0&&(e=0),r===void 0&&(r=1),t>r?r:t>e?t:e},Q=function(t){return(t=isFinite(t)?t%360:0)>0?t:t+360},B=function(t){return{r:l(t.r,0,255),g:l(t.g,0,255),b:l(t.b,0,255),a:l(t.a)}},I=function(t){return{r:u(t.r),g:u(t.g),b:u(t.b),a:u(t.a,3)}},be=/^#([0-9a-f]{3,8})$/i,R=function(t){var e=t.toString(16);return e.length<2?"0"+e:e},Z=function(t){var e=t.r,r=t.g,n=t.b,i=t.a,a=Math.max(e,r,n),o=a-Math.min(e,r,n),s=o?a===e?(r-n)/o:a===r?2+(n-e)/o:4+(e-r)/o:0;return{h:60*(s<0?s+6:s),s:a?o/a*100:0,v:a/255*100,a:i}},ee=function(t){var e=t.h,r=t.s,n=t.v,i=t.a;e=e/360*6,r/=100,n/=100;var a=Math.floor(e),o=n*(1-r),s=n*(1-(e-a)*r),c=n*(1-(1-e+a)*r),m=a%6;return{r:255*[n,s,o,o,c,n][m],g:255*[c,n,n,s,o,o][m],b:255*[o,o,c,n,n,s][m],a:i}},K=function(t){return{h:Q(t.h),s:l(t.s,0,100),l:l(t.l,0,100),a:l(t.a)}},G=function(t){return{h:u(t.h),s:u(t.s),l:u(t.l),a:u(t.a,3)}},W=function(t){return ee((r=(e=t).s,{h:e.h,s:(r*=((n=e.l)<50?n:100-n)/100)>0?2*r/(n+r)*100:0,v:n+r,a:e.a}));var e,r,n},A=function(t){return{h:(e=Z(t)).h,s:(i=(200-(r=e.s))*(n=e.v)/100)>0&&i<200?r*n/100/(i<=100?i:200-i)*100:0,l:i/2,a:e.a};var e,r,n,i},pe=/^hsla?\(\s*([+-]?\d*\.?\d+)(deg|rad|grad|turn)?\s*,\s*([+-]?\d*\.?\d+)%\s*,\s*([+-]?\d*\.?\d+)%\s*(?:,\s*([+-]?\d*\.?\d+)(%)?\s*)?\)$/i,ye=/^hsla?\(\s*([+-]?\d*\.?\d+)(deg|rad|grad|turn)?\s+([+-]?\d*\.?\d+)%\s+([+-]?\d*\.?\d+)%\s*(?:\/\s*([+-]?\d*\.?\d+)(%)?\s*)?\)$/i,ve=/^rgba?\(\s*([+-]?\d*\.?\d+)(%)?\s*,\s*([+-]?\d*\.?\d+)(%)?\s*,\s*([+-]?\d*\.?\d+)(%)?\s*(?:,\s*([+-]?\d*\.?\d+)(%)?\s*)?\)$/i,ke=/^rgba?\(\s*([+-]?\d*\.?\d+)(%)?\s+([+-]?\d*\.?\d+)(%)?\s+([+-]?\d*\.?\d+)(%)?\s*(?:\/\s*([+-]?\d*\.?\d+)(%)?\s*)?\)$/i,D={string:[[function(t){var e=be.exec(t);return e?(t=e[1]).length<=4?{r:parseInt(t[0]+t[0],16),g:parseInt(t[1]+t[1],16),b:parseInt(t[2]+t[2],16),a:t.length===4?u(parseInt(t[3]+t[3],16)/255,2):1}:t.length===6||t.length===8?{r:parseInt(t.substr(0,2),16),g:parseInt(t.substr(2,2),16),b:parseInt(t.substr(4,2),16),a:t.length===8?u(parseInt(t.substr(6,2),16)/255,2):1}:null:null},"hex"],[function(t){var e=ve.exec(t)||ke.exec(t);return e?e[2]!==e[4]||e[4]!==e[6]?null:B({r:Number(e[1])/(e[2]?100/255:1),g:Number(e[3])/(e[4]?100/255:1),b:Number(e[5])/(e[6]?100/255:1),a:e[7]===void 0?1:Number(e[7])/(e[8]?100:1)}):null},"rgb"],[function(t){var e=pe.exec(t)||ye.exec(t);if(!e)return null;var r,n,i=K({h:(r=e[1],n=e[2],n===void 0&&(n="deg"),Number(r)*(he[n]||1)),s:Number(e[3]),l:Number(e[4]),a:e[5]===void 0?1:Number(e[5])/(e[6]?100:1)});return W(i)},"hsl"]],object:[[function(t){var e=t.r,r=t.g,n=t.b,i=t.a,a=i===void 0?1:i;return p(e)&&p(r)&&p(n)?B({r:Number(e),g:Number(r),b:Number(n),a:Number(a)}):null},"rgb"],[function(t){var e=t.h,r=t.s,n=t.l,i=t.a,a=i===void 0?1:i;if(!p(e)||!p(r)||!p(n))return null;var o=K({h:Number(e),s:Number(r),l:Number(n),a:Number(a)});return W(o)},"hsl"],[function(t){var e=t.h,r=t.s,n=t.v,i=t.a,a=i===void 0?1:i;if(!p(e)||!p(r)||!p(n))return null;var o=(function(s){return{h:Q(s.h),s:l(s.s,0,100),v:l(s.v,0,100),a:l(s.a)}})({h:Number(e),s:Number(r),v:Number(n),a:Number(a)});return ee(o)},"hsv"]]},X=function(t,e){for(var r=0;r<e.length;r++){var n=e[r][0](t);if(n)return[n,e[r][1]]}return[null,void 0]},_e=function(t){return typeof t=="string"?X(t.trim(),D.string):typeof t=="object"&&t!==null?X(t,D.object):[null,void 0]};var M=function(t,e){var r=A(t);return{h:r.h,s:l(r.s+100*e,0,100),l:r.l,a:r.a}},H=function(t){return(299*t.r+587*t.g+114*t.b)/1e3/255},Y=function(t,e){var r=A(t);return{h:r.h,s:r.s,l:l(r.l+100*e,0,100),a:r.a}},P=(function(){function t(e){this.parsed=_e(e)[0],this.rgba=this.parsed||{r:0,g:0,b:0,a:1}}return t.prototype.isValid=function(){return this.parsed!==null},t.prototype.brightness=function(){return u(H(this.rgba),2)},t.prototype.isDark=function(){return H(this.rgba)<.5},t.prototype.isLight=function(){return H(this.rgba)>=.5},t.prototype.toHex=function(){return e=I(this.rgba),r=e.r,n=e.g,i=e.b,o=(a=e.a)<1?R(u(255*a)):"","#"+R(r)+R(n)+R(i)+o;var e,r,n,i,a,o},t.prototype.toRgb=function(){return I(this.rgba)},t.prototype.toRgbString=function(){return e=I(this.rgba),r=e.r,n=e.g,i=e.b,(a=e.a)<1?"rgba("+r+", "+n+", "+i+", "+a+")":"rgb("+r+", "+n+", "+i+")";var e,r,n,i,a},t.prototype.toHsl=function(){return G(A(this.rgba))},t.prototype.toHslString=function(){return e=G(A(this.rgba)),r=e.h,n=e.s,i=e.l,(a=e.a)<1?"hsla("+r+", "+n+"%, "+i+"%, "+a+")":"hsl("+r+", "+n+"%, "+i+"%)";var e,r,n,i,a},t.prototype.toHsv=function(){return e=Z(this.rgba),{h:u(e.h),s:u(e.s),v:u(e.v),a:u(e.a,3)};var e},t.prototype.invert=function(){return g({r:255-(e=this.rgba).r,g:255-e.g,b:255-e.b,a:e.a});var e},t.prototype.saturate=function(e){return e===void 0&&(e=.1),g(M(this.rgba,e))},t.prototype.desaturate=function(e){return e===void 0&&(e=.1),g(M(this.rgba,-e))},t.prototype.grayscale=function(){return g(M(this.rgba,-1))},t.prototype.lighten=function(e){return e===void 0&&(e=.1),g(Y(this.rgba,e))},t.prototype.darken=function(e){return e===void 0&&(e=.1),g(Y(this.rgba,-e))},t.prototype.rotate=function(e){return e===void 0&&(e=15),this.hue(this.hue()+e)},t.prototype.alpha=function(e){return typeof e=="number"?g({r:(r=this.rgba).r,g:r.g,b:r.b,a:e}):u(this.rgba.a,3);var r},t.prototype.hue=function(e){var r=A(this.rgba);return typeof e=="number"?g({h:e,s:r.s,l:r.l,a:r.a}):u(r.h)},t.prototype.isEqual=function(e){return this.toHex()===g(e).toHex()},t})(),g=function(t){return t instanceof P?t:new P(t)},J=[],te=function(t){t.forEach(function(e){J.indexOf(e)<0&&(e(P,D),J.push(e))})};function re(t,e){var r={white:"#ffffff",bisque:"#ffe4c4",blue:"#0000ff",cadetblue:"#5f9ea0",chartreuse:"#7fff00",chocolate:"#d2691e",coral:"#ff7f50",antiquewhite:"#faebd7",aqua:"#00ffff",azure:"#f0ffff",whitesmoke:"#f5f5f5",papayawhip:"#ffefd5",plum:"#dda0dd",blanchedalmond:"#ffebcd",black:"#000000",gold:"#ffd700",goldenrod:"#daa520",gainsboro:"#dcdcdc",cornsilk:"#fff8dc",cornflowerblue:"#6495ed",burlywood:"#deb887",aquamarine:"#7fffd4",beige:"#f5f5dc",crimson:"#dc143c",cyan:"#00ffff",darkblue:"#00008b",darkcyan:"#008b8b",darkgoldenrod:"#b8860b",darkkhaki:"#bdb76b",darkgray:"#a9a9a9",darkgreen:"#006400",darkgrey:"#a9a9a9",peachpuff:"#ffdab9",darkmagenta:"#8b008b",darkred:"#8b0000",darkorchid:"#9932cc",darkorange:"#ff8c00",darkslateblue:"#483d8b",gray:"#808080",darkslategray:"#2f4f4f",darkslategrey:"#2f4f4f",deeppink:"#ff1493",deepskyblue:"#00bfff",wheat:"#f5deb3",firebrick:"#b22222",floralwhite:"#fffaf0",ghostwhite:"#f8f8ff",darkviolet:"#9400d3",magenta:"#ff00ff",green:"#008000",dodgerblue:"#1e90ff",grey:"#808080",honeydew:"#f0fff0",hotpink:"#ff69b4",blueviolet:"#8a2be2",forestgreen:"#228b22",lawngreen:"#7cfc00",indianred:"#cd5c5c",indigo:"#4b0082",fuchsia:"#ff00ff",brown:"#a52a2a",maroon:"#800000",mediumblue:"#0000cd",lightcoral:"#f08080",darkturquoise:"#00ced1",lightcyan:"#e0ffff",ivory:"#fffff0",lightyellow:"#ffffe0",lightsalmon:"#ffa07a",lightseagreen:"#20b2aa",linen:"#faf0e6",mediumaquamarine:"#66cdaa",lemonchiffon:"#fffacd",lime:"#00ff00",khaki:"#f0e68c",mediumseagreen:"#3cb371",limegreen:"#32cd32",mediumspringgreen:"#00fa9a",lightskyblue:"#87cefa",lightblue:"#add8e6",midnightblue:"#191970",lightpink:"#ffb6c1",mistyrose:"#ffe4e1",moccasin:"#ffe4b5",mintcream:"#f5fffa",lightslategray:"#778899",lightslategrey:"#778899",navajowhite:"#ffdead",navy:"#000080",mediumvioletred:"#c71585",powderblue:"#b0e0e6",palegoldenrod:"#eee8aa",oldlace:"#fdf5e6",paleturquoise:"#afeeee",mediumturquoise:"#48d1cc",mediumorchid:"#ba55d3",rebeccapurple:"#663399",lightsteelblue:"#b0c4de",mediumslateblue:"#7b68ee",thistle:"#d8bfd8",tan:"#d2b48c",orchid:"#da70d6",mediumpurple:"#9370db",purple:"#800080",pink:"#ffc0cb",skyblue:"#87ceeb",springgreen:"#00ff7f",palegreen:"#98fb98",red:"#ff0000",yellow:"#ffff00",slateblue:"#6a5acd",lavenderblush:"#fff0f5",peru:"#cd853f",palevioletred:"#db7093",violet:"#ee82ee",teal:"#008080",slategray:"#708090",slategrey:"#708090",aliceblue:"#f0f8ff",darkseagreen:"#8fbc8f",darkolivegreen:"#556b2f",greenyellow:"#adff2f",seagreen:"#2e8b57",seashell:"#fff5ee",tomato:"#ff6347",silver:"#c0c0c0",sienna:"#a0522d",lavender:"#e6e6fa",lightgreen:"#90ee90",orange:"#ffa500",orangered:"#ff4500",steelblue:"#4682b4",royalblue:"#4169e1",turquoise:"#40e0d0",yellowgreen:"#9acd32",salmon:"#fa8072",saddlebrown:"#8b4513",sandybrown:"#f4a460",rosybrown:"#bc8f8f",darksalmon:"#e9967a",lightgoldenrodyellow:"#fafad2",snow:"#fffafa",lightgrey:"#d3d3d3",lightgray:"#d3d3d3",dimgray:"#696969",dimgrey:"#696969",olivedrab:"#6b8e23",olive:"#808000"},n={};for(var i in r)n[r[i]]=i;var a={};t.prototype.toName=function(o){if(!(this.rgba.a||this.rgba.r||this.rgba.g||this.rgba.b))return"transparent";var s,c,m=n[this.toHex()];if(m)return m;if(o?.closest){var k=this.toRgb(),y=1/0,E="black";if(!a.length)for(var T in r)a[T]=new t(r[T]).toRgb();for(var h in r){var j=(s=k,c=a[h],Math.pow(s.r-c.r,2)+Math.pow(s.g-c.g,2)+Math.pow(s.b-c.b,2));j<y&&(y=j,E=h)}return E}},e.string.push([function(o){var s=o.toLowerCase(),c=s==="transparent"?"#0000":r[s];return c?new t(c).toRgb():null},"name"])}var we=/^#([\da-f]{3}|[\da-f]{6})$/i,Se=/^([\da-f]{3}|[\da-f]{6})$/i;function U(t){let e=t.trim();return Se.test(e)?`#${e}`:e}function Ne(t){let e=we.exec(U(t));if(!e)return;let[,r]=e;if(!r)return;let n=r.length===3?Array.from(r,i=>`${i}${i}`).join(""):r;return[0,2,4].map(i=>Number.parseInt(n.slice(i,i+2),16))}function $([t,e,r]){let[n=0,i=0,a=0]=[t,e,r].map((m=0)=>{let k=m/255;return k<=.04045?k/12.92:((k+.055)/1.055)**2.4}),o=.2126*n+.7152*i+.0722*a,s=(o+.05)/.05,c=1.05/(o+.05);return s>=c?"#000":"#fff"}function Be(t){let e=Ne(t);if(e)return $(e)}te([re]);var ne="c062f2a0-f356-4fa1-bde8-3f08d42c2858",Ee="#6f8f6d";function Ae(t,e){let r=g(t);if(!r.isValid())return;let{r:n,g:i,b:a,a:o}=r.toRgb(),s=e==="dark"?5:255;return $([n,i,a].map(c=>c*o+s*(1-o)))}function Le(t,e={},r="light"){let n=t.community?.color?.trim(),i=e["--lockerverse-accent"]??(n?U(n):Ee),a={"--lockerverse-font-family":"inherit",...e,"--lockerverse-accent":i,"--lockerverse-accent-contrast":e["--lockerverse-accent-contrast"]??Ae(i,r)??"#000"};return t.id===ne&&!a["--lockerverse-auction-catalog-columns"]&&(a["--lockerverse-auction-catalog-columns"]="2"),a}function Ye(t,e={},r="light"){let n=Le(t,e,r),i={className:"lockerverse-auctions--embed",style:n},a=t.id===ne?"light":void 0;return{catalog:{className:i.className,showFilters:!1,showHeader:!1,showLineup:!1,style:n},defaultTheme:a,item:i}}var q=b(_(),1);function Qe({href:t,onBack:e,className:r,children:n,elementRef:i}){return t?(0,q.jsx)("a",{className:r,href:t,onClick:a=>{e&&a.button===0&&!a.metaKey&&!a.ctrlKey&&!a.shiftKey&&!a.altKey&&(a.preventDefault(),e())},ref:i,children:n}):e?(0,q.jsx)("button",{className:r,onClick:e,ref:i,type:"button",children:n}):null}var w=b(O(),1),ae=b(_(),1),Te=(0,w.createContext)(void 0),Oe=[96,192,320,480,640,960,1280,1920],Re=/\.(jpe?g|png|webp|avif)$/i,Ce=/\/+$/,xe=new Set(["media.lockerverse.com","dev-media.lockerverse.com"]);function Ie(t,e){if(xe.has(t.hostname)&&!t.port)return t.pathname;if(!e)return;let r=new URL(e),n=`${r.pathname.replace(Ce,"")}/`;if(!(r.username||r.password||r.search||r.hash||t.origin!==r.origin||!t.pathname.startsWith(n)))return`/${t.pathname.slice(n.length)}`}function Me(t,e){if(t)try{let r=new URL(t),n=Ie(r,e);return r.protocol!=="https:"||!n||r.username||r.password||r.search||r.hash||n.startsWith("/__image/")||n.includes("/chat-media/")||!Re.test(n)?void 0:r}catch{}}function ie(t,e){return t.searchParams.set("w",String(e)),t.searchParams.set("f","webp"),t.href}function et({alt:t,width:e,height:r,src:n,maxWidth:i,onError:a,decoding:o="async",...s}){let[c,m]=(0,w.useState)(),k=(0,w.useContext)(Te),y=c===n?void 0:Me(n,k),E=Oe.filter(h=>h<=i),T=E.at(-1)??96;return(0,ae.jsx)("img",{...s,alt:t,decoding:o,height:r,onError:h=>{y?m(n):a?.(h)},src:y?ie(y,T):n,srcSet:y?E.map(h=>`${ie(y,h)} ${h}w`).join(", "):void 0,width:e})}var C=b(O(),1),S=new Map,F,se=0,He=2147483647;function V(){clearTimeout(F),F=void 0;let t=Date.now(),e=Number.POSITIVE_INFINITY;for(let r of S.values())for(let n of r)n>t&&(e=Math.min(e,n));Number.isFinite(e)&&(F=setTimeout(ue,Math.min(e-t+1,He)))}function ue(){se+=1;for(let t of S.keys())t();V()}function oe(){document.hidden||ue()}var De=()=>se,Pe=()=>0;function rt(t,e,r=[]){let n=[t,e,...r.flatMap(a=>[a.startAt??t,a.endAt??e])].join(","),i=(0,C.useCallback)(a=>(S.size||document.addEventListener("visibilitychange",oe),S.set(a,n.split(",").map(Date.parse)),V(),()=>{S.delete(a),V(),S.size||document.removeEventListener("visibilitychange",oe)}),[n]);(0,C.useSyncExternalStore)(i,De,Pe)}var Ue=/<\/?(?:p|br|strong|em|u|s|ul|ol|li|blockquote|pre|code|hr|h[1-6]|a)(?:\s|\/?>)/i;function ce(t){return Ue.test(t)?t:t.replace(/&/g,"&amp;").replace(/</g,"&lt;").replace(/>/g,"&gt;").replace(/\r\n|\r|\n/g,"<br>")}var fe=b(_(),1);function ot({description:t,className:e,id:r}){return(0,fe.jsx)("div",{className:["lockerverse-auctions__description",e].filter(Boolean).join(" "),dangerouslySetInnerHTML:{__html:ce(t)},id:r})}var N=b(O(),1);function ft(){let t=(0,N.useRef)(null),[e,r]=(0,N.useState)(!1);return(0,N.useEffect)(()=>{let n=t.current;if(!(n&&"IntersectionObserver"in window))return;let i=!1,a=()=>r(i&&!document.hidden),o=new IntersectionObserver(([s])=>{i=!!(s?.isIntersecting&&s.intersectionRatio>0),a()});return o.observe(n),document.addEventListener("visibilitychange",a),()=>{o.disconnect(),document.removeEventListener("visibilitychange",a)}},[]),{ref:t,visible:e}}export{Ve as a,Be as b,Le as c,Ye as d,Qe as e,ot as f,Te as g,et as h,ft as i,rt as j};
2
+ /*! For license information please see chunk-P2EIZSCD.js.LEGAL.txt */
@@ -1 +1 @@
1
- import{A as P,B as O,C as I,D as f,F as b,G as y,K as B,L as $,a as Y,b as w,d as T,e as L,r as h,u as g,v as R,y as _,z as M}from"./chunk-4K5K5SO6.js";import{c as m}from"./chunk-DCANE7XH.js";function D(e,n,o){let i=B(e,n.saleMode==="buy_now"?(n.buyNowPriceAmount??0)*o.quantity:o.amount,o.includeServiceFee,n.additionalCharge?n.additionalCharge.firstUnitAmountCents+n.additionalCharge.additionalUnitAmountCents*(n.saleMode==="buy_now"?o.quantity-1:0):0);return n.additionalCharge?{...i,additionalCharge:n.additionalCharge}:i}function le(e,n,o){if(R(e,n)!=="active")return"This item is not accepting bids or purchases.";if(o.bidType==="maximum"&&!n.supportsMaximumBids)return"Maximum bidding is not available for this item. Choose a fixed bid.";if(n.saleMode==="hybrid")return"This item type is not supported for checkout.";if(n.saleMode==="buy_now"){if(n.isSoldOut||n.availableQuantity===0)return"This item is sold out.";if(o.quantity>(n.maxQuantityPerOrder??Number.POSITIVE_INFINITY))return`You can buy up to ${n.maxQuantityPerOrder} items per order.`;if(!(n.buyNowPriceAmount&&Number.isSafeInteger(o.quantity))||o.quantity<1||n.availableQuantity!==null&&o.quantity>n.availableQuantity)return"Select an available quantity."}else if(!Number.isSafeInteger(o.amount)||o.amount%100!==0||o.amount<$(n))return"Enter a whole-dollar bid at or above the minimum bid.";return null}function J(e,n){return e?.name===n?.name&&e?.category===n?.category&&e?.firstUnitAmountCents===n?.firstUnitAmountCents&&e?.additionalUnitAmountCents===n?.additionalUnitAmountCents}function se(e,n,o,i,r){return e.payment?.publishableKey!==n.payment?.publishableKey||e.payment?.connectedAccountId!==n.payment?.connectedAccountId||e.serviceFeeEnabled!==n.serviceFeeEnabled||o.saleMode!==i.saleMode||!J(o.additionalCharge,i.additionalCharge)||o.collectShippingAddress!==i.collectShippingAddress||JSON.stringify(D(e,o,r))!==JSON.stringify(D(n,i,r))}function ce(e){return{expectedAdditionalChargeCents:e.additionalChargeCents??0,expectedServiceFeeCents:e.serviceFeeCents,expectedSubtotalCents:e.subtotalCents,expectedTotalCents:e.totalCents}}async function ue({stripe:e,elements:n,email:o,phone:i,billing:r,shipping:a,collectShippingAddress:u}){if(!(r?.complete&&r.value.name.trim()))throw new Error("Complete your billing name and address.");if(u&&!(a?.complete&&a.value.name.trim()))throw new Error("Complete your shipping name and address.");let v=await n.submit();if(v.error)throw new Error(v.error.message??"Check your payment details.");let d=await e.createConfirmationToken({elements:n,params:{payment_method_data:{allow_redisplay:"always",billing_details:{address:r.value.address,email:o,name:r.value.name,phone:i}},return_url:window.location.href,...u&&a?{shipping:{address:a.value.address,name:a.value.name,phone:i}}:void 0}});if(d.error||!d.confirmationToken)throw new Error(d.error?.message??"Unable to prepare payment details.");return d.confirmationToken.id}async function de(e,n){if(!n.requiresAction)return;if(!n.clientSecret)throw new Error("Payment confirmation is incomplete. Check its status before trying again.");let o=await e.handleNextAction({clientSecret:n.clientSecret});if(o.error)throw new Error(o.error.message??"Payment confirmation is incomplete.")}function he(e,n){if(e)try{Promise.resolve(e(n)).catch(()=>{})}catch{}}var K="Email is required.",U="Enter a valid email address.",j="Phone is required.",N="Enter a valid phone number.",X=/^(?:$|[^\s@]+@[^\s@]+\.[^\s@]+)$/,Z=/^\+[1-9]\d{6,14}$/;function q(e){return Z.test(e)}function p(e){return e.trim().replace(/[().\s-]/g,"")}var ge=y(b(),f(),O(X,U)),fe=y(b(),f(),P(K),M(U)),be=y(b(),f(),_(e=>e===""||p(e)!=="",N),I(p),_(e=>e===""||q(e),N)),ye=y(b(),f(),P(j),I(p),_(q,N));var C=[{callingCode:"+1",label:"\u{1F1FA}\u{1F1F8} +1",value:"US"},{callingCode:"+52",label:"\u{1F1F2}\u{1F1FD} +52",value:"MX"},{callingCode:"+380",label:"\u{1F1FA}\u{1F1E6} +380",value:"UA"},{callingCode:"+48",label:"\u{1F1F5}\u{1F1F1} +48",value:"PL"},{callingCode:"+1",label:"\u{1F1E8}\u{1F1E6} +1",value:"CA"},{callingCode:"+49",label:"\u{1F1E9}\u{1F1EA} +49",value:"DE"},{callingCode:"+44",label:"\u{1F1EC}\u{1F1E7} +44",value:"GB"},{callingCode:"+46",label:"\u{1F1F8}\u{1F1EA} +46",value:"SE"},{callingCode:"+358",label:"\u{1F1EB}\u{1F1EE} +358",value:"FI"},{callingCode:"+1",label:"\u{1F1F5}\u{1F1F7} +1",value:"PR"}];function k(e){return C.find(n=>n.value===e)??C[0]}function ee(e,n){let o=`${n}${n}`,i=e;for(;i.startsWith(o);)i=`${n}${i.slice(o.length)}`;return i}function Ae(e,n){let o=p(e);if(!o)return"";let i=k(n),r=ee(o,i.callingCode);return r.startsWith("+")?r:`${i.callingCode}${r}`}function V(e,n="US"){let o=p(e),i=k(n);return o.startsWith("+")&&!o.startsWith(i.callingCode)?C.find(r=>o.startsWith(r.callingCode))?.value??i.value:i.value}var s=m(h(),1);function ne({className:e,error:n,id:o}){return n?(0,s.jsx)("span",{className:`lockerverse-form__error ${e??""}`,id:o,role:"alert",children:n}):null}function S({children:e,error:n,errorId:o,id:i,label:r}){return(0,s.jsxs)("div",{className:"lockerverse-form__field",children:[(0,s.jsx)("label",{htmlFor:i,children:r}),e,(0,s.jsx)(ne,{error:n,id:o??`${i}-error`})]})}function te({className:e,error:n,errorId:o,id:i,label:r,...a}){let u=o??`${i}-error`;return(0,s.jsx)(S,{error:n,errorId:u,id:i,label:r,children:(0,s.jsx)("input",{...a,"aria-describedby":n?u:a["aria-describedby"],"aria-invalid":n?"true":a["aria-invalid"],className:`lockerverse-form__control ${e??""}`,id:i})})}function H(e){return(0,s.jsx)(te,{autoComplete:"email",placeholder:"name@example.com",...e,type:"email"})}function x({className:e,...n}){return(0,s.jsx)("input",{...n,className:["lockerverse-form__checkbox",e].filter(Boolean).join(" "),type:"checkbox"})}var G=m(Y(),1);var c=m(h(),1);function W({id:e,name:n,value:o,onChange:i,country:r,required:a,disabled:u,inputRef:v,error:d,errorId:z,placeholder:Q="(201) 555-0123"}){let F=(0,G.useRef)(null),E=k(r);return(0,c.jsxs)("div",{className:"lockerverse-form__phone",dir:"ltr",children:[(0,c.jsxs)("div",{className:"lockerverse-form__phone-country",children:[(0,c.jsxs)("span",{"aria-hidden":"true",children:[(0,c.jsx)("span",{className:"lockerverse-form__phone-flag",children:E.label.split(" ")[0]}),E.callingCode,(0,c.jsx)(T,{"aria-hidden":"true",size:14})]}),(0,c.jsx)("select",{"aria-label":"Phone number country",disabled:u,name:"phoneCountry",onChange:l=>{let A=k(l.target.value);i({country:A.value,value:o}),F.current?.focus()},value:E.value,children:C.map(l=>(0,c.jsx)("option",{value:l.value,children:l.label},l.value))})]}),(0,c.jsx)("input",{"aria-describedby":d?z:void 0,"aria-invalid":d?!0:void 0,autoComplete:"tel-national",disabled:u,id:e,name:n,onChange:l=>{let A=l.target.value;i({country:V(A,r),value:A})},placeholder:Q,ref:l=>{F.current=l,v&&(v.current=l)},required:a,type:"tel",value:o})]})}var t=m(h(),1);function Te(e){let{isPurchase:n,item:o,id:i}=e;return(0,t.jsxs)("form",{className:"lockerverse-auctions__checkout",noValidate:!0,onSubmit:e.onSubmit,children:[(0,t.jsx)("div",{className:"lockerverse-auctions__checkout-header",children:(0,t.jsxs)("div",{className:"lockerverse-auctions__checkout-navigation",children:[(0,t.jsx)("button",{"aria-label":"Back",className:"lockerverse-auctions__checkout-back",disabled:!e.onBack,onClick:e.onBack,type:"button",children:(0,t.jsx)(L,{"aria-hidden":"true",size:20})}),(0,t.jsx)("h2",{children:n?"Review your purchase":"Confirm your bid"}),(0,t.jsx)("p",{className:"lockerverse-auctions__checkout-eyebrow",children:"Step 2 of 2"})]})}),(0,t.jsxs)("div",{className:"lockerverse-auctions__checkout-body",children:[e.showFields&&(0,t.jsxs)("fieldset",{disabled:e.locked,children:[(0,t.jsxs)("div",{className:"lockerverse-auctions__checkout-contact",children:[(0,t.jsx)(H,{error:e.contactErrors.email,id:`${i}-email`,label:"Email",name:"email",onChange:r=>e.onEmailChange(r.target.value),required:!0,value:e.email}),(0,t.jsx)(S,{error:e.contactErrors.phone,id:`${i}-phone`,label:"Phone",children:(0,t.jsx)(W,{country:e.phoneCountry,error:e.contactErrors.phone,errorId:`${i}-phone-error`,id:`${i}-phone`,name:"phone",onChange:e.onPhoneChange,required:!0,value:e.phone})})]}),(0,t.jsxs)("section",{"aria-label":"Payment Information",className:"lockerverse-auctions__checkout-section",children:[(0,t.jsx)("h3",{children:"Payment method"}),e.paymentFields]}),(0,t.jsxs)("section",{"aria-label":"Billing Details",className:"lockerverse-auctions__checkout-section",children:[(0,t.jsx)("h3",{children:"Billing Details"}),e.billingFields]}),o.collectShippingAddress&&(0,t.jsxs)("section",{"aria-label":"Delivery Details",className:"lockerverse-auctions__checkout-section",children:[(0,t.jsxs)("label",{className:"lockerverse-auctions__checkout-checkbox lockerverse-auctions__checkout-delivery",htmlFor:`${i}-delivery-same-as-billing`,children:[(0,t.jsx)(x,{checked:e.sameAsBilling,id:`${i}-delivery-same-as-billing`,onChange:r=>e.onSameAsBillingChange(r.target.checked)}),(0,t.jsx)("span",{children:(0,t.jsx)("strong",{children:"Use billing address for delivery"})})]}),!e.sameAsBilling&&(0,t.jsxs)(t.Fragment,{children:[(0,t.jsx)("h3",{children:"Delivery Address"}),e.shippingFields]})]}),(0,t.jsx)(oe,{...e})]}),e.message&&(0,t.jsx)("p",{"aria-live":"polite",className:"lockerverse-auctions__notice",role:"status",children:e.message}),!e.isTerminal&&(0,t.jsxs)("div",{className:"lockerverse-auctions__checkout-footer",children:[(0,t.jsx)("p",{children:n?"By placing this order, you authorize this payment.":"By placing your bid, you agree to save this payment method and charge it if you win."}),(0,t.jsxs)("button",{className:"lockerverse-auctions__button lockerverse-auctions__checkout-submit",disabled:e.submitDisabled,type:"submit",children:[e.buttonText,(0,t.jsx)(w,{"aria-hidden":"true",size:16})]})]})]})]})}function oe(e){let{pricing:n,isPurchase:o,isMaximumBid:i}=e,r=ie(o,i);return(0,t.jsxs)("section",{"aria-label":"Order amounts",className:"lockerverse-auctions__checkout-section lockerverse-auctions__amounts",children:[(0,t.jsxs)("p",{children:[(0,t.jsxs)("span",{children:[r.amount,o?` (\xD7${e.quantity})`:""]}),(0,t.jsx)("span",{children:g(n.subtotalCents)})]}),n.additionalCharge&&(0,t.jsxs)("p",{children:[(0,t.jsx)("span",{children:n.additionalCharge.name}),(0,t.jsx)("span",{children:g(n.additionalChargeCents??0)})]}),e.serviceFeeEnabled&&e.onIncludeServiceFeeChange&&(0,t.jsxs)("label",{className:"lockerverse-auctions__checkout-checkbox",htmlFor:`${e.id}-service-fee`,children:[(0,t.jsx)(x,{checked:e.includeServiceFee,id:`${e.id}-service-fee`,onChange:a=>e.onIncludeServiceFeeChange?.(a.target.checked)}),(0,t.jsx)("span",{children:"Cover processing fees"}),(0,t.jsx)("span",{children:g(e.serviceFeeCents)})]}),(0,t.jsxs)("p",{"aria-live":"polite",className:"lockerverse-auctions__total",children:[(0,t.jsx)("strong",{children:r.total}),(0,t.jsx)("strong",{children:g(n.totalCents)})]}),i&&(0,t.jsx)("small",{children:"Your maximum stays private. If you win, you pay the final price plus applicable fees and charges."})]})}function ie(e,n){return e?{amount:"Subtotal",fee:"Add",total:"Total"}:n?{amount:"Maximum bid",fee:"If I win, add up to",total:"Maximum total if I win"}:{amount:"Bid amount",fee:"If I win, add",total:"Total if I win"}}export{D as a,le as b,J as c,se as d,ce as e,ue as f,de as g,p as h,fe as i,ye as j,Ae as k,V as l,Te as m,he as n};
1
+ import{A as P,B as O,C as I,D as f,F as b,G as y,K as B,L as $,a as Y,b as w,d as T,e as L,r as h,u as g,v as R,y as _,z as M}from"./chunk-HSTDDFWD.js";import{c as m}from"./chunk-DCANE7XH.js";function D(e,n,o){let i=B(e,n.saleMode==="buy_now"?(n.buyNowPriceAmount??0)*o.quantity:o.amount,o.includeServiceFee,n.additionalCharge?n.additionalCharge.firstUnitAmountCents+n.additionalCharge.additionalUnitAmountCents*(n.saleMode==="buy_now"?o.quantity-1:0):0);return n.additionalCharge?{...i,additionalCharge:n.additionalCharge}:i}function le(e,n,o){if(R(e,n)!=="active")return"This item is not accepting bids or purchases.";if(o.bidType==="maximum"&&!n.supportsMaximumBids)return"Maximum bidding is not available for this item. Choose a fixed bid.";if(n.saleMode==="hybrid")return"This item type is not supported for checkout.";if(n.saleMode==="buy_now"){if(n.isSoldOut||n.availableQuantity===0)return"This item is sold out.";if(o.quantity>(n.maxQuantityPerOrder??Number.POSITIVE_INFINITY))return`You can buy up to ${n.maxQuantityPerOrder} items per order.`;if(!(n.buyNowPriceAmount&&Number.isSafeInteger(o.quantity))||o.quantity<1||n.availableQuantity!==null&&o.quantity>n.availableQuantity)return"Select an available quantity."}else if(!Number.isSafeInteger(o.amount)||o.amount%100!==0||o.amount<$(n))return"Enter a whole-dollar bid at or above the minimum bid.";return null}function J(e,n){return e?.name===n?.name&&e?.category===n?.category&&e?.firstUnitAmountCents===n?.firstUnitAmountCents&&e?.additionalUnitAmountCents===n?.additionalUnitAmountCents}function se(e,n,o,i,r){return e.payment?.publishableKey!==n.payment?.publishableKey||e.payment?.connectedAccountId!==n.payment?.connectedAccountId||e.serviceFeeEnabled!==n.serviceFeeEnabled||o.saleMode!==i.saleMode||!J(o.additionalCharge,i.additionalCharge)||o.collectShippingAddress!==i.collectShippingAddress||JSON.stringify(D(e,o,r))!==JSON.stringify(D(n,i,r))}function ce(e){return{expectedAdditionalChargeCents:e.additionalChargeCents??0,expectedServiceFeeCents:e.serviceFeeCents,expectedSubtotalCents:e.subtotalCents,expectedTotalCents:e.totalCents}}async function ue({stripe:e,elements:n,email:o,phone:i,billing:r,shipping:a,collectShippingAddress:u}){if(!(r?.complete&&r.value.name.trim()))throw new Error("Complete your billing name and address.");if(u&&!(a?.complete&&a.value.name.trim()))throw new Error("Complete your shipping name and address.");let v=await n.submit();if(v.error)throw new Error(v.error.message??"Check your payment details.");let d=await e.createConfirmationToken({elements:n,params:{payment_method_data:{allow_redisplay:"always",billing_details:{address:r.value.address,email:o,name:r.value.name,phone:i}},return_url:window.location.href,...u&&a?{shipping:{address:a.value.address,name:a.value.name,phone:i}}:void 0}});if(d.error||!d.confirmationToken)throw new Error(d.error?.message??"Unable to prepare payment details.");return d.confirmationToken.id}async function de(e,n){if(!n.requiresAction)return;if(!n.clientSecret)throw new Error("Payment confirmation is incomplete. Check its status before trying again.");let o=await e.handleNextAction({clientSecret:n.clientSecret});if(o.error)throw new Error(o.error.message??"Payment confirmation is incomplete.")}function he(e,n){if(e)try{Promise.resolve(e(n)).catch(()=>{})}catch{}}var K="Email is required.",U="Enter a valid email address.",j="Phone is required.",N="Enter a valid phone number.",X=/^(?:$|[^\s@]+@[^\s@]+\.[^\s@]+)$/,Z=/^\+[1-9]\d{6,14}$/;function q(e){return Z.test(e)}function p(e){return e.trim().replace(/[().\s-]/g,"")}var ge=y(b(),f(),O(X,U)),fe=y(b(),f(),P(K),M(U)),be=y(b(),f(),_(e=>e===""||p(e)!=="",N),I(p),_(e=>e===""||q(e),N)),ye=y(b(),f(),P(j),I(p),_(q,N));var C=[{callingCode:"+1",label:"\u{1F1FA}\u{1F1F8} +1",value:"US"},{callingCode:"+52",label:"\u{1F1F2}\u{1F1FD} +52",value:"MX"},{callingCode:"+380",label:"\u{1F1FA}\u{1F1E6} +380",value:"UA"},{callingCode:"+48",label:"\u{1F1F5}\u{1F1F1} +48",value:"PL"},{callingCode:"+1",label:"\u{1F1E8}\u{1F1E6} +1",value:"CA"},{callingCode:"+49",label:"\u{1F1E9}\u{1F1EA} +49",value:"DE"},{callingCode:"+44",label:"\u{1F1EC}\u{1F1E7} +44",value:"GB"},{callingCode:"+46",label:"\u{1F1F8}\u{1F1EA} +46",value:"SE"},{callingCode:"+358",label:"\u{1F1EB}\u{1F1EE} +358",value:"FI"},{callingCode:"+1",label:"\u{1F1F5}\u{1F1F7} +1",value:"PR"}];function k(e){return C.find(n=>n.value===e)??C[0]}function ee(e,n){let o=`${n}${n}`,i=e;for(;i.startsWith(o);)i=`${n}${i.slice(o.length)}`;return i}function Ae(e,n){let o=p(e);if(!o)return"";let i=k(n),r=ee(o,i.callingCode);return r.startsWith("+")?r:`${i.callingCode}${r}`}function V(e,n="US"){let o=p(e),i=k(n);return o.startsWith("+")&&!o.startsWith(i.callingCode)?C.find(r=>o.startsWith(r.callingCode))?.value??i.value:i.value}var s=m(h(),1);function ne({className:e,error:n,id:o}){return n?(0,s.jsx)("span",{className:`lockerverse-form__error ${e??""}`,id:o,role:"alert",children:n}):null}function S({children:e,error:n,errorId:o,id:i,label:r}){return(0,s.jsxs)("div",{className:"lockerverse-form__field",children:[(0,s.jsx)("label",{htmlFor:i,children:r}),e,(0,s.jsx)(ne,{error:n,id:o??`${i}-error`})]})}function te({className:e,error:n,errorId:o,id:i,label:r,...a}){let u=o??`${i}-error`;return(0,s.jsx)(S,{error:n,errorId:u,id:i,label:r,children:(0,s.jsx)("input",{...a,"aria-describedby":n?u:a["aria-describedby"],"aria-invalid":n?"true":a["aria-invalid"],className:`lockerverse-form__control ${e??""}`,id:i})})}function H(e){return(0,s.jsx)(te,{autoComplete:"email",placeholder:"name@example.com",...e,type:"email"})}function x({className:e,...n}){return(0,s.jsx)("input",{...n,className:["lockerverse-form__checkbox",e].filter(Boolean).join(" "),type:"checkbox"})}var G=m(Y(),1);var c=m(h(),1);function W({id:e,name:n,value:o,onChange:i,country:r,required:a,disabled:u,inputRef:v,error:d,errorId:z,placeholder:Q="(201) 555-0123"}){let F=(0,G.useRef)(null),E=k(r);return(0,c.jsxs)("div",{className:"lockerverse-form__phone",dir:"ltr",children:[(0,c.jsxs)("div",{className:"lockerverse-form__phone-country",children:[(0,c.jsxs)("span",{"aria-hidden":"true",children:[(0,c.jsx)("span",{className:"lockerverse-form__phone-flag",children:E.label.split(" ")[0]}),E.callingCode,(0,c.jsx)(T,{"aria-hidden":"true",size:14})]}),(0,c.jsx)("select",{"aria-label":"Phone number country",disabled:u,name:"phoneCountry",onChange:l=>{let A=k(l.target.value);i({country:A.value,value:o}),F.current?.focus()},value:E.value,children:C.map(l=>(0,c.jsx)("option",{value:l.value,children:l.label},l.value))})]}),(0,c.jsx)("input",{"aria-describedby":d?z:void 0,"aria-invalid":d?!0:void 0,autoComplete:"tel-national",disabled:u,id:e,name:n,onChange:l=>{let A=l.target.value;i({country:V(A,r),value:A})},placeholder:Q,ref:l=>{F.current=l,v&&(v.current=l)},required:a,type:"tel",value:o})]})}var t=m(h(),1);function Te(e){let{isPurchase:n,item:o,id:i}=e;return(0,t.jsxs)("form",{className:"lockerverse-auctions__checkout",noValidate:!0,onSubmit:e.onSubmit,children:[(0,t.jsx)("div",{className:"lockerverse-auctions__checkout-header",children:(0,t.jsxs)("div",{className:"lockerverse-auctions__checkout-navigation",children:[(0,t.jsx)("button",{"aria-label":"Back",className:"lockerverse-auctions__checkout-back",disabled:!e.onBack,onClick:e.onBack,type:"button",children:(0,t.jsx)(L,{"aria-hidden":"true",size:20})}),(0,t.jsx)("h2",{children:n?"Review your purchase":"Confirm your bid"}),(0,t.jsx)("p",{className:"lockerverse-auctions__checkout-eyebrow",children:"Step 2 of 2"})]})}),(0,t.jsxs)("div",{className:"lockerverse-auctions__checkout-body",children:[e.showFields&&(0,t.jsxs)("fieldset",{disabled:e.locked,children:[(0,t.jsxs)("div",{className:"lockerverse-auctions__checkout-contact",children:[(0,t.jsx)(H,{error:e.contactErrors.email,id:`${i}-email`,label:"Email",name:"email",onChange:r=>e.onEmailChange(r.target.value),required:!0,value:e.email}),(0,t.jsx)(S,{error:e.contactErrors.phone,id:`${i}-phone`,label:"Phone",children:(0,t.jsx)(W,{country:e.phoneCountry,error:e.contactErrors.phone,errorId:`${i}-phone-error`,id:`${i}-phone`,name:"phone",onChange:e.onPhoneChange,required:!0,value:e.phone})})]}),(0,t.jsxs)("section",{"aria-label":"Payment Information",className:"lockerverse-auctions__checkout-section",children:[(0,t.jsx)("h3",{children:"Payment method"}),e.paymentFields]}),(0,t.jsxs)("section",{"aria-label":"Billing Details",className:"lockerverse-auctions__checkout-section",children:[(0,t.jsx)("h3",{children:"Billing Details"}),e.billingFields]}),o.collectShippingAddress&&(0,t.jsxs)("section",{"aria-label":"Delivery Details",className:"lockerverse-auctions__checkout-section",children:[(0,t.jsxs)("label",{className:"lockerverse-auctions__checkout-checkbox lockerverse-auctions__checkout-delivery",htmlFor:`${i}-delivery-same-as-billing`,children:[(0,t.jsx)(x,{checked:e.sameAsBilling,id:`${i}-delivery-same-as-billing`,onChange:r=>e.onSameAsBillingChange(r.target.checked)}),(0,t.jsx)("span",{children:(0,t.jsx)("strong",{children:"Use billing address for delivery"})})]}),!e.sameAsBilling&&(0,t.jsxs)(t.Fragment,{children:[(0,t.jsx)("h3",{children:"Delivery Address"}),e.shippingFields]})]}),(0,t.jsx)(oe,{...e})]}),e.message&&(0,t.jsx)("p",{"aria-live":"polite",className:"lockerverse-auctions__notice",role:"status",children:e.message}),!e.isTerminal&&(0,t.jsxs)("div",{className:"lockerverse-auctions__checkout-footer",children:[(0,t.jsx)("p",{children:n?"By placing this order, you authorize this payment.":"By placing your bid, you agree to save this payment method and charge it if you win."}),(0,t.jsxs)("button",{className:"lockerverse-auctions__button lockerverse-auctions__checkout-submit",disabled:e.submitDisabled,type:"submit",children:[e.buttonText,(0,t.jsx)(w,{"aria-hidden":"true",size:16})]})]})]})]})}function oe(e){let{pricing:n,isPurchase:o,isMaximumBid:i}=e,r=ie(o,i);return(0,t.jsxs)("section",{"aria-label":"Order amounts",className:"lockerverse-auctions__checkout-section lockerverse-auctions__amounts",children:[(0,t.jsxs)("p",{children:[(0,t.jsxs)("span",{children:[r.amount,o?` (\xD7${e.quantity})`:""]}),(0,t.jsx)("span",{children:g(n.subtotalCents)})]}),n.additionalCharge&&(0,t.jsxs)("p",{children:[(0,t.jsx)("span",{children:n.additionalCharge.name}),(0,t.jsx)("span",{children:g(n.additionalChargeCents??0)})]}),e.serviceFeeEnabled&&e.onIncludeServiceFeeChange&&(0,t.jsxs)("label",{className:"lockerverse-auctions__checkout-checkbox",htmlFor:`${e.id}-service-fee`,children:[(0,t.jsx)(x,{checked:e.includeServiceFee,id:`${e.id}-service-fee`,onChange:a=>e.onIncludeServiceFeeChange?.(a.target.checked)}),(0,t.jsx)("span",{children:"Cover processing fees"}),(0,t.jsx)("span",{children:g(e.serviceFeeCents)})]}),(0,t.jsxs)("p",{"aria-live":"polite",className:"lockerverse-auctions__total",children:[(0,t.jsx)("strong",{children:r.total}),(0,t.jsx)("strong",{children:g(n.totalCents)})]}),i&&(0,t.jsx)("small",{children:"Your maximum stays private. If you win, you pay the final price plus applicable fees and charges."})]})}function ie(e,n){return e?{amount:"Subtotal",fee:"Add",total:"Total"}:n?{amount:"Maximum bid",fee:"If I win, add up to",total:"Maximum total if I win"}:{amount:"Bid amount",fee:"If I win, add",total:"Total if I win"}}export{D as a,le as b,J as c,se as d,ce as e,ue as f,de as g,p as h,fe as i,ye as j,Ae as k,V as l,Te as m,he as n};