@haus-storefront-react/vendure-plugin-configs 1.0.4-next.16 → 1.0.4-next.3

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (59) hide show
  1. package/CHANGELOG.md +0 -156
  2. package/badge.js +1 -1
  3. package/badge.mjs +424 -439
  4. package/campaign.js +1 -1
  5. package/campaign.mjs +106 -50
  6. package/compiler-runtime-oPPev21o.js +10 -0
  7. package/compiler-runtime-qHgugrLy.mjs +296 -0
  8. package/elastic.js +1 -1
  9. package/elastic.mjs +26 -10
  10. package/index-BRlTlK6a.mjs +3768 -0
  11. package/index-BgBC_k8M.js +1 -0
  12. package/index-C0E-40z0.mjs +19 -0
  13. package/index-CgxqXyHf.js +20 -0
  14. package/index.js +1 -1
  15. package/index.mjs +4 -2
  16. package/lib/configs/vendure-badge-plugin.d.ts +2 -10
  17. package/lib/configs/vendure-badge-plugin.types.d.ts +1 -0
  18. package/lib/configs/vendure-campaign-plugin.d.ts +1 -1
  19. package/lib/configs/vendure-elastic-search-plugin.d.ts +1 -1
  20. package/lib/configs/vendure-packagesize-plugin.d.ts +1 -1
  21. package/lib/configs/vendure-product-popularity-plugin.d.ts +1 -1
  22. package/lib/configs/vendure-purchase-order-payment-plugin.d.ts +2 -2
  23. package/lib/plugin-config.d.ts +1 -2
  24. package/lib/types.d.ts +0 -1
  25. package/package.json +5 -25
  26. package/packagesize.js +1 -1
  27. package/packagesize.mjs +59 -15
  28. package/product-popularity.js +1 -1
  29. package/product-popularity.mjs +22 -12
  30. package/purchase-order-payment.js +5 -5
  31. package/purchase-order-payment.mjs +631 -207
  32. package/useSdk-DOrZRSHz.mjs +2634 -0
  33. package/useSdk-YXpk8Wsi.js +21 -0
  34. package/lib/configs/vendure-product-variant-specifications-plugin.d.ts +0 -55
  35. package/lib/configs/vendure-product-variant-specifications-plugin.types.d.ts +0 -8
  36. package/lib/configs/vendure-products-by-sku-plugin.d.ts +0 -11
  37. package/lib/configs/vendure-products-by-sku-plugin.types.d.ts +0 -13
  38. package/lib/configs/vendure-related-products-plugin.d.ts +0 -39
  39. package/lib/configs/vendure-related-products-plugin.types.d.ts +0 -16
  40. package/lib/exports/product-variant-specifications.d.ts +0 -2
  41. package/lib/exports/products-by-sku.d.ts +0 -3
  42. package/lib/exports/related-products.d.ts +0 -3
  43. package/lib/hooks/use-related-products.d.ts +0 -2
  44. package/lib/strategies/quick-order-variant-sku-validation-strategy.d.ts +0 -6
  45. package/plugin-config-DrQQb9Ry.js +0 -1
  46. package/plugin-config-DywohMgp.mjs +0 -903
  47. package/product-variant-specifications.d.ts +0 -2
  48. package/product-variant-specifications.js +0 -1
  49. package/product-variant-specifications.mjs +0 -9
  50. package/products-by-sku.d.ts +0 -2
  51. package/products-by-sku.js +0 -1
  52. package/products-by-sku.mjs +0 -54
  53. package/related-products.d.ts +0 -2
  54. package/related-products.js +0 -1
  55. package/related-products.mjs +0 -35
  56. package/src-ChzQhPCd.js +0 -6
  57. package/src-CsM7SeIh.mjs +0 -455
  58. package/src-Dq29mogl.js +0 -21
  59. package/src-Dud_XHV6.mjs +0 -2718
@@ -1,2 +0,0 @@
1
- export * from './lib/exports/product-variant-specifications'
2
- export {}
@@ -1 +0,0 @@
1
- Object.defineProperty(exports,Symbol.toStringTag,{value:`Module`});var e=new(require(`./plugin-config-DrQQb9Ry.js`)).t({name:`productVariantSpecifications`,queryUpdates:{}});e.setQueryUpdates({product:{fields:[{variants:[{customFields:[{specifications:[`key`,`value`]}]}]}]}}),exports.VendureProductVariantSpecificationsPlugin=e;
@@ -1,9 +0,0 @@
1
- import { t as e } from "./plugin-config-DywohMgp.mjs";
2
- //#region src/lib/configs/vendure-product-variant-specifications-plugin.ts
3
- var t = new e({
4
- name: "productVariantSpecifications",
5
- queryUpdates: {}
6
- });
7
- t.setQueryUpdates({ product: { fields: [{ variants: [{ customFields: [{ specifications: ["key", "value"] }] }] }] } });
8
- //#endregion
9
- export { t as VendureProductVariantSpecificationsPlugin };
@@ -1,2 +0,0 @@
1
- export * from './lib/exports/products-by-sku'
2
- export {}
@@ -1 +0,0 @@
1
- Object.defineProperty(exports,Symbol.toStringTag,{value:`Module`});var e=new(require(`./plugin-config-DrQQb9Ry.js`)).t({name:`products-by-sku`,queryUpdates:{}});e.setRequests({productVariantsBySkus:async t=>e.getSdk().createRequest({operation:`productVariantsBySkus`,variables:{skus:{type:`[String!]!`}},fields:[{variantIdsBySku:[`sku`,`variantId`],errorResults:[`message`,`errorCode`]}]},{skus:t},!1).then(e=>e.data).catch(e=>({message:e.message,errorCode:e.code||`unknown`}))});var t=e=>typeof e==`object`&&!!e&&`productVariantsBySkus`in e&&typeof e.productVariantsBySkus==`function`,n=e=>e&&`errorCode`in e;function r(){return{validate:async r=>{let i=e.getSdk();if(!t(i))throw Error(`quickOrderVariantSkuValidationStrategy requires VendureProductsBySkuPlugin to be enabled.`);let a=[...new Set(r.map(e=>e.identifier))],o=await i.productVariantsBySkus(a);if(n(o))return{items:[],invalidIdentifiers:a,errorResults:[{message:o.message,errorCode:o.errorCode}]};let s=o.variantIdsBySku.filter(e=>e.variantId==null).map(e=>e.sku);if(s.length>0)return{items:[],invalidIdentifiers:s,errorResults:o.errorResults.map(e=>({message:e.message,errorCode:e.errorCode}))};let c=new Map(o.variantIdsBySku.map(e=>[e.sku,e.variantId]));return{items:r.map(e=>({productVariantId:c.get(e.identifier)??e.identifier,quantity:e.quantity})),errorResults:[]}}}}exports.VendureProductsBySkuPlugin=e,exports.quickOrderVariantSkuValidationStrategy=r;
@@ -1,54 +0,0 @@
1
- import { t as e } from "./plugin-config-DywohMgp.mjs";
2
- //#region src/lib/configs/vendure-products-by-sku-plugin.ts
3
- var t = new e({
4
- name: "products-by-sku",
5
- queryUpdates: {}
6
- });
7
- t.setRequests({ productVariantsBySkus: async (e) => t.getSdk().createRequest({
8
- operation: "productVariantsBySkus",
9
- variables: { skus: { type: "[String!]!" } },
10
- fields: [{
11
- variantIdsBySku: ["sku", "variantId"],
12
- errorResults: ["message", "errorCode"]
13
- }]
14
- }, { skus: e }, !1).then((e) => e.data).catch((e) => ({
15
- message: e.message,
16
- errorCode: e.code || "unknown"
17
- })) });
18
- //#endregion
19
- //#region src/lib/strategies/quick-order-variant-sku-validation-strategy.ts
20
- var n = (e) => typeof e == "object" && !!e && "productVariantsBySkus" in e && typeof e.productVariantsBySkus == "function", r = (e) => e && "errorCode" in e;
21
- function i() {
22
- return { validate: async (e) => {
23
- let i = t.getSdk();
24
- if (!n(i)) throw Error("quickOrderVariantSkuValidationStrategy requires VendureProductsBySkuPlugin to be enabled.");
25
- let a = [...new Set(e.map((e) => e.identifier))], o = await i.productVariantsBySkus(a);
26
- if (r(o)) return {
27
- items: [],
28
- invalidIdentifiers: a,
29
- errorResults: [{
30
- message: o.message,
31
- errorCode: o.errorCode
32
- }]
33
- };
34
- let s = o.variantIdsBySku.filter((e) => e.variantId == null).map((e) => e.sku);
35
- if (s.length > 0) return {
36
- items: [],
37
- invalidIdentifiers: s,
38
- errorResults: o.errorResults.map((e) => ({
39
- message: e.message,
40
- errorCode: e.errorCode
41
- }))
42
- };
43
- let c = new Map(o.variantIdsBySku.map((e) => [e.sku, e.variantId]));
44
- return {
45
- items: e.map((e) => ({
46
- productVariantId: c.get(e.identifier) ?? e.identifier,
47
- quantity: e.quantity
48
- })),
49
- errorResults: []
50
- };
51
- } };
52
- }
53
- //#endregion
54
- export { t as VendureProductsBySkuPlugin, i as quickOrderVariantSkuValidationStrategy };
@@ -1,2 +0,0 @@
1
- export * from './lib/exports/related-products'
2
- export {}
@@ -1 +0,0 @@
1
- Object.defineProperty(exports,Symbol.toStringTag,{value:`Module`}),require(`./src-ChzQhPCd.js`);const e=require(`./plugin-config-DrQQb9Ry.js`),t=require(`./src-Dq29mogl.js`);let n=require(`@tanstack/react-query`);var r=new e.t({name:`relatedProducts`,enableFeatures:{},queryUpdates:{product:{fields:[`relatedProductIds`]},briefProducts:{fields:[`relatedProductIds`]}}});r.setRequests({relatedProducts:async e=>(await r.getSdk().createRequest({operation:`relatedProducts`,inheritFieldsFrom:`product`,variables:{input:{type:`RelatedProductsInput!`}}},{input:e},!1)).data});var i=e=>{let r=t.i();if(!r.relatedProducts)throw Error(`relatedProducts method not found in SDK. Need to register VendureRelatedProductsPlugin.`);return(0,n.useQuery)({queryKey:[`relatedProducts`,e.id,e.take,e.facetValueIds],queryFn:()=>r.relatedProducts(e),enabled:!!e.id})};exports.VendureRelatedProductsPlugin=r,exports.useRelatedProducts=i;
@@ -1,35 +0,0 @@
1
- import { t as e } from "./plugin-config-DywohMgp.mjs";
2
- import { a as t } from "./src-Dud_XHV6.mjs";
3
- import { useQuery as n } from "@tanstack/react-query";
4
- //#region src/lib/configs/vendure-related-products-plugin.ts
5
- var r = new e({
6
- name: "relatedProducts",
7
- enableFeatures: {},
8
- queryUpdates: {
9
- product: { fields: ["relatedProductIds"] },
10
- briefProducts: { fields: ["relatedProductIds"] }
11
- }
12
- });
13
- r.setRequests({ relatedProducts: async (e) => (await r.getSdk().createRequest({
14
- operation: "relatedProducts",
15
- inheritFieldsFrom: "product",
16
- variables: { input: { type: "RelatedProductsInput!" } }
17
- }, { input: e }, !1)).data });
18
- //#endregion
19
- //#region src/lib/hooks/use-related-products.ts
20
- var i = (e) => {
21
- let r = t();
22
- if (!r.relatedProducts) throw Error("relatedProducts method not found in SDK. Need to register VendureRelatedProductsPlugin.");
23
- return n({
24
- queryKey: [
25
- "relatedProducts",
26
- e.id,
27
- e.take,
28
- e.facetValueIds
29
- ],
30
- queryFn: () => r.relatedProducts(e),
31
- enabled: !!e.id
32
- });
33
- };
34
- //#endregion
35
- export { r as VendureRelatedProductsPlugin, i as useRelatedProducts };
package/src-ChzQhPCd.js DELETED
@@ -1,6 +0,0 @@
1
- var e=Object.create,t=Object.defineProperty,n=Object.getOwnPropertyDescriptor,r=Object.getOwnPropertyNames,i=Object.getPrototypeOf,a=Object.prototype.hasOwnProperty,o=(e,t)=>()=>(t||e((t={exports:{}}).exports,t),t.exports),s=(e,n)=>{let r={};for(var i in e)t(r,i,{get:e[i],enumerable:!0});return n||t(r,Symbol.toStringTag,{value:`Module`}),r},c=(e,i,o,s)=>{if(i&&typeof i==`object`||typeof i==`function`)for(var c=r(i),l=0,u=c.length,d;l<u;l++)d=c[l],!a.call(e,d)&&d!==o&&t(e,d,{get:(e=>i[e]).bind(null,d),enumerable:!(s=n(i,d))||s.enumerable});return e},l=(n,r,a)=>(a=n==null?{}:e(i(n)),c(r||!n||!n.__esModule?t(a,`default`,{value:n,enumerable:!0}):a,n));let u=require(`react`);u=l(u);var d=function(e){return e.ACTIVE_ORDER=`activeOrder`,e.ACTIVE_CHANNEL=`activeChannel`,e.ACTIVE_CUSTOMER=`activeCustomer`,e.ACTIVE_CUSTOMER_ORDERS=`activeCustomerOrders`,e.AVAILABLE_COUNTRIES=`availableCountries`,e.FACETS=`facets`,e.ORDER_BY_CODE=`orderByCode`,e.ORDER_STATES=`orderStates`,e.PRODUCT=`product`,e.PAYMENT_METHODS=`paymentMethods`,e.SEARCH=`search`,e.SEARCH_FIELD=`searchField`,e.SHIPPING_METHODS=`shippingMethods`,e}({}),f=function(e){return e.AlreadyLoggedInError=`ALREADY_LOGGED_IN_ERROR`,e.CouponCodeExpiredError=`COUPON_CODE_EXPIRED_ERROR`,e.CouponCodeInvalidError=`COUPON_CODE_INVALID_ERROR`,e.CouponCodeLimitError=`COUPON_CODE_LIMIT_ERROR`,e.EmailAddressConflictError=`EMAIL_ADDRESS_CONFLICT_ERROR`,e.GuestCheckoutError=`GUEST_CHECKOUT_ERROR`,e.IdentifierChangeTokenExpiredError=`IDENTIFIER_CHANGE_TOKEN_EXPIRED_ERROR`,e.IdentifierChangeTokenInvalidError=`IDENTIFIER_CHANGE_TOKEN_INVALID_ERROR`,e.IneligiblePaymentMethodError=`INELIGIBLE_PAYMENT_METHOD_ERROR`,e.IneligibleShippingMethodError=`INELIGIBLE_SHIPPING_METHOD_ERROR`,e.InsufficientStockError=`INSUFFICIENT_STOCK_ERROR`,e.InvalidCredentialsError=`INVALID_CREDENTIALS_ERROR`,e.MissingPasswordError=`MISSING_PASSWORD_ERROR`,e.NativeAuthStrategyError=`NATIVE_AUTH_STRATEGY_ERROR`,e.NegativeQuantityError=`NEGATIVE_QUANTITY_ERROR`,e.NotVerifiedError=`NOT_VERIFIED_ERROR`,e.NoActiveOrderError=`NO_ACTIVE_ORDER_ERROR`,e.OrderLimitError=`ORDER_LIMIT_ERROR`,e.OrderModificationError=`ORDER_MODIFICATION_ERROR`,e.OrderPaymentStateError=`ORDER_PAYMENT_STATE_ERROR`,e.OrderStateTransitionError=`ORDER_STATE_TRANSITION_ERROR`,e.PasswordAlreadySetError=`PASSWORD_ALREADY_SET_ERROR`,e.PasswordResetTokenExpiredError=`PASSWORD_RESET_TOKEN_EXPIRED_ERROR`,e.PasswordResetTokenInvalidError=`PASSWORD_RESET_TOKEN_INVALID_ERROR`,e.PasswordValidationError=`PASSWORD_VALIDATION_ERROR`,e.PaymentDeclinedError=`PAYMENT_DECLINED_ERROR`,e.PaymentFailedError=`PAYMENT_FAILED_ERROR`,e.UnknownError=`UNKNOWN_ERROR`,e.VerificationTokenExpiredError=`VERIFICATION_TOKEN_EXPIRED_ERROR`,e.VerificationTokenInvalidError=`VERIFICATION_TOKEN_INVALID_ERROR`,e}({}),p=o((e=>{var t=Symbol.for(`react.transitional.element`),n=Symbol.for(`react.fragment`);function r(e,n,r){var i=null;if(r!==void 0&&(i=``+r),n.key!==void 0&&(i=``+n.key),`key`in n)for(var a in r={},n)a!==`key`&&(r[a]=n[a]);else r=n;return n=r.ref,{$$typeof:t,type:e,key:i,ref:n===void 0?null:n,props:r}}e.Fragment=n,e.jsx=r,e.jsxs=r})),m=o((e=>{process.env.NODE_ENV!==`production`&&(function(){function t(e){if(e==null)return null;if(typeof e==`function`)return e.$$typeof===O?null:e.displayName||e.name||null;if(typeof e==`string`)return e;switch(e){case _:return`Fragment`;case y:return`Profiler`;case v:return`StrictMode`;case C:return`Suspense`;case w:return`SuspenseList`;case D:return`Activity`}if(typeof e==`object`)switch(typeof e.tag==`number`&&console.error(`Received an unexpected object in getComponentNameFromType(). This is likely a bug in React. Please file an issue.`),e.$$typeof){case g:return`Portal`;case x:return e.displayName||`Context`;case b:return(e._context.displayName||`Context`)+`.Consumer`;case S:var n=e.render;return e=e.displayName,e||=(e=n.displayName||n.name||``,e===``?`ForwardRef`:`ForwardRef(`+e+`)`),e;case T:return n=e.displayName||null,n===null?t(e.type)||`Memo`:n;case E:n=e._payload,e=e._init;try{return t(e(n))}catch{}}return null}function n(e){return``+e}function r(e){try{n(e);var t=!1}catch{t=!0}if(t){t=console;var r=t.error,i=typeof Symbol==`function`&&Symbol.toStringTag&&e[Symbol.toStringTag]||e.constructor.name||`Object`;return r.call(t,`The provided key is an unsupported type %s. This value must be coerced to a string before using it here.`,i),n(e)}}function i(e){if(e===_)return`<>`;if(typeof e==`object`&&e&&e.$$typeof===E)return`<...>`;try{var n=t(e);return n?`<`+n+`>`:`<...>`}catch{return`<...>`}}function a(){var e=k.A;return e===null?null:e.getOwner()}function o(){return Error(`react-stack-top-frame`)}function s(e){if(A.call(e,`key`)){var t=Object.getOwnPropertyDescriptor(e,`key`).get;if(t&&t.isReactWarning)return!1}return e.key!==void 0}function c(e,t){function n(){N||(N=!0,console.error("%s: `key` is not a prop. Trying to access it will result in `undefined` being returned. If you need to access the same value within the child component, you should pass it as a different prop. (https://react.dev/link/special-props)",t))}n.isReactWarning=!0,Object.defineProperty(e,`key`,{get:n,configurable:!0})}function l(){var e=t(this.type);return P[e]||(P[e]=!0,console.error(`Accessing element.ref was removed in React 19. ref is now a regular prop. It will be removed from the JSX Element type in a future release.`)),e=this.props.ref,e===void 0?null:e}function u(e,t,n,r,i,a){var o=n.ref;return e={$$typeof:h,type:e,key:t,props:n,_owner:r},(o===void 0?null:o)===null?Object.defineProperty(e,`ref`,{enumerable:!1,value:null}):Object.defineProperty(e,`ref`,{enumerable:!1,get:l}),e._store={},Object.defineProperty(e._store,`validated`,{configurable:!1,enumerable:!1,writable:!0,value:0}),Object.defineProperty(e,`_debugInfo`,{configurable:!1,enumerable:!1,writable:!0,value:null}),Object.defineProperty(e,`_debugStack`,{configurable:!1,enumerable:!1,writable:!0,value:i}),Object.defineProperty(e,`_debugTask`,{configurable:!1,enumerable:!1,writable:!0,value:a}),Object.freeze&&(Object.freeze(e.props),Object.freeze(e)),e}function d(e,n,i,o,l,d){var p=n.children;if(p!==void 0)if(o)if(j(p)){for(o=0;o<p.length;o++)f(p[o]);Object.freeze&&Object.freeze(p)}else console.error(`React.jsx: Static children should always be an array. You are likely explicitly calling React.jsxs or React.jsxDEV. Use the Babel transform instead.`);else f(p);if(A.call(n,`key`)){p=t(e);var m=Object.keys(n).filter(function(e){return e!==`key`});o=0<m.length?`{key: someKey, `+m.join(`: ..., `)+`: ...}`:`{key: someKey}`,L[p+o]||(m=0<m.length?`{`+m.join(`: ..., `)+`: ...}`:`{}`,console.error(`A props object containing a "key" prop is being spread into JSX:
2
- let props = %s;
3
- <%s {...props} />
4
- React keys must be passed directly to JSX without using spread:
5
- let props = %s;
6
- <%s key={someKey} {...props} />`,o,p,m,p),L[p+o]=!0)}if(p=null,i!==void 0&&(r(i),p=``+i),s(n)&&(r(n.key),p=``+n.key),`key`in n)for(var h in i={},n)h!==`key`&&(i[h]=n[h]);else i=n;return p&&c(i,typeof e==`function`?e.displayName||e.name||`Unknown`:e),u(e,p,i,a(),l,d)}function f(e){p(e)?e._store&&(e._store.validated=1):typeof e==`object`&&e&&e.$$typeof===E&&(e._payload.status===`fulfilled`?p(e._payload.value)&&e._payload.value._store&&(e._payload.value._store.validated=1):e._store&&(e._store.validated=1))}function p(e){return typeof e==`object`&&!!e&&e.$$typeof===h}var m=require(`react`),h=Symbol.for(`react.transitional.element`),g=Symbol.for(`react.portal`),_=Symbol.for(`react.fragment`),v=Symbol.for(`react.strict_mode`),y=Symbol.for(`react.profiler`),b=Symbol.for(`react.consumer`),x=Symbol.for(`react.context`),S=Symbol.for(`react.forward_ref`),C=Symbol.for(`react.suspense`),w=Symbol.for(`react.suspense_list`),T=Symbol.for(`react.memo`),E=Symbol.for(`react.lazy`),D=Symbol.for(`react.activity`),O=Symbol.for(`react.client.reference`),k=m.__CLIENT_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE,A=Object.prototype.hasOwnProperty,j=Array.isArray,M=console.createTask?console.createTask:function(){return null};m={react_stack_bottom_frame:function(e){return e()}};var N,P={},F=m.react_stack_bottom_frame.bind(m,o)(),I=M(i(o)),L={};e.Fragment=_,e.jsx=function(e,t,n){var r=1e4>k.recentlyCreatedOwnerStacks++;return d(e,t,n,!1,r?Error(`react-stack-top-frame`):F,r?M(i(e)):I)},e.jsxs=function(e,t,n){var r=1e4>k.recentlyCreatedOwnerStacks++;return d(e,t,n,!0,r?Error(`react-stack-top-frame`):F,r?M(i(e)):I)}})()})),h=o(((e,t)=>{process.env.NODE_ENV===`production`?t.exports=p():t.exports=m()})),g=h();function _(e){let t=[];function n(n,r){let i=u.createContext(r),a=t.length;t.push(i);let o=t=>{let{scope:n,children:r,...o}=t,s=n?.[e]?.[a]||i,c=u.useMemo(()=>o,[o]);return(0,g.jsx)(s.Provider,{value:c,children:r})};o.displayName=n+`Provider`;function s(t,o){let s=o?.[e]?.[a]||i,c=u.useContext(s);if(c)return c;if(r!==void 0)return r;throw Error(`\`${t}\` must be used within \`${n}\``)}return[o,s]}function r(){let n=t.map(e=>u.createContext(e));return function(t){let r=t?.[e]||n;return u.useMemo(()=>({[`__scope${e}`]:{...t,[e]:r}}),[t,r])}}return r.scopeName=e,[n,r]}[...`onClick.aria-label.aria-disabled.aria-hidden.aria-selected.aria-expanded.aria-controls.aria-describedby.aria-labelledby.aria-owns.aria-posinset.aria-setsize.aria-atomic.aria-busy.aria-current.aria-details.aria-dropeffect.aria-errormessage.aria-flowto.aria-grabbed.aria-haspopup.aria-invalid.aria-keyshortcuts.aria-live.aria-modal.aria-multiline.aria-multiselectable.aria-orientation.aria-placeholder.aria-pressed.aria-readonly.aria-relevant.aria-required.aria-roledescription.aria-rowcount.aria-rowindex.aria-rowspan.aria-sort.aria-valuemax.aria-valuemin.aria-valuenow.aria-valuetext`.split(`.`)],[...`onClick.onDoubleClick.onMouseDown.onMouseEnter.onMouseLeave.onMouseMove.onMouseOut.onMouseOver.onMouseUp.onWheel.onKeyDown.onKeyPress.onKeyUp.onFocus.onBlur.onChange.onInput.onSubmit.onReset.onSelect.onSelectStart.onSelectionChange.onInvalid.onBeforeInput.onCompositionEnd.onCompositionStart.onCompositionUpdate.onCopy.onCut.onPaste.onDrag.onDragEnd.onDragEnter.onDragExit.onDragLeave.onDragOver.onDragStart.onDrop.onScroll.onLoad.onError.onAnimationStart.onAnimationEnd.onAnimationIteration.onTransitionEnd.onGotPointerCapture.onLostPointerCapture.onPointerCancel.onPointerDown.onPointerEnter.onPointerLeave.onPointerMove.onPointerOut.onPointerOver.onPointerUp.aria-label.aria-labelledby.aria-describedby.aria-controls.aria-owns.aria-activedescendant.aria-autocomplete.aria-checked.aria-current.aria-disabled.aria-expanded.aria-haspopup.aria-hidden.aria-invalid.aria-level.aria-live.aria-modal.aria-multiline.aria-multiselectable.aria-orientation.aria-placeholder.aria-pressed.aria-readonly.aria-required.aria-selected.aria-sort.aria-valuemax.aria-valuemin.aria-valuenow.aria-valuetext.role.tabIndex.contentEditable.contextMenu.dir.draggable.dropzone.hidden.id.lang.spellCheck.style.title.translate.slot.part.class.className.dataset.innerHTML.outerHTML.accessKey.autocapitalize.autocorrect.enterKeyHint.inputMode.is.itemID.itemProp.itemRef.itemScope.itemType.nonce.popover.radioGroup.referrerPolicy.rel.security.unselectable.virtualKeyboardPolicy`.split(`.`)];function v(e,t){if(t===`web`)return e;let{src:n,alt:r,width:i,height:a,...o}=e,s=[typeof i==`number`?{width:i}:void 0,typeof a==`number`?{height:a}:void 0].filter(Boolean),c;return s.length===1?c=s[0]:s.length>1&&(c=s),{...o,source:{uri:n},...c?{style:c}:{}}}function y(e){let{src:t,alt:n,...r}=e;return t?{...r,source:{uri:t}}:r}var b={div:`View`,span:`Text`,p:`Text`,h1:`Text`,h2:`Text`,h3:`Text`,h4:`Text`,h5:`Text`,h6:`Text`,button:`Pressable`,input:`TextInput`,form:`View`,section:`View`,article:`View`,nav:`View`,header:`View`,footer:`View`,main:`View`,aside:`View`,ul:`View`,ol:`View`,li:`View`,a:`Pressable`,img:`Image`,label:`Text`,textarea:`TextInput`,select:`Pressable`,option:`Text`};function x(e,t){if(t===`web`)return e;let n=null;try{n=require(`react-native`)}catch{n=null}if(!n)return console.warn(`react-native is not available at runtime; falling back to 'View' for '${e}'`),`div`;let r=b[e];if(!r)return console.warn(`No native component mapping found for '${e}', falling back to View`),n.View;if(r===`Image`){let e=u.default.forwardRef((e,t)=>e.src?(0,g.jsx)(n.Image,{ref:t,...y(e)}):null);return e.displayName=`PlatformPrimitiveImage`,e}return n[r]||(console.warn(`Native component '${r}' not found, falling back to View`),n.View)}var S=Symbol(`radix.slottable`);function C(...e){return t=>e.forEach(e=>{typeof e==`function`?e(t):e!=null&&(e.current=t)})}function w(e,t){let n={...t};for(let r in t){let i=e[r],a=t[r];/^on[A-Z]/.test(r)?i&&a?n[r]=(...e)=>{let t=a(...e);return i(...e),t}:i&&(n[r]=i):r===`style`?n[r]=T(i,a):r===`className`&&(n[r]=[i,a].filter(Boolean).join(` `))}return{...e,...n}}function T(e,t){let n=(()=>{try{return require(`react-native`)}catch{return null}})()?.StyleSheet?.flatten;if(typeof e==`function`&&typeof t==`function`)return r=>{let i=[e(r),t(r)];return n?n(i):i};if(typeof e==`function`)return r=>{let i=t?[e(r),t]:e(r);return n?n(i):i};if(typeof t==`function`)return r=>{let i=e?[e,t(r)]:t(r);return n?n(i):i};let r=[e,t].filter(Boolean);return n?n(r):r}function E(e){return u.isValidElement(e)&&typeof e.type==`function`&&`__radixId`in e.type&&e.type.__radixId===S}function D(e){let t=Object.getOwnPropertyDescriptor(e.props,`ref`)?.get,n=t&&`isReactWarning`in t&&t.isReactWarning;return n?e.ref:(t=Object.getOwnPropertyDescriptor(e,`ref`)?.get,n=t&&`isReactWarning`in t&&t.isReactWarning,n?e.props.ref:e.props.ref||e.ref)}function O(e,t){let n=u.forwardRef((e,t)=>{let{children:n,...r}=e;if(u.isValidElement(n)){let e=D(n),i=w(r,n.props);return n.type!==u.Fragment&&(i.ref=t?C(t,e):e),u.cloneElement(n,i)}return u.Children.count(n)>1?u.Children.only(null):null});return n.displayName=`${e}.SlotClone`,n}function k(e,t=!1,n=`div`){if(!t)return x(n,e);let r=O(`Slot`,e),i=u.forwardRef((e,t)=>{let{children:n,...i}=e,a=u.Children.toArray(n),o=a.find(E);if(o){let e=o.props.children,n=a.map(t=>t===o?u.Children.count(e)>1?u.Children.only(null):u.isValidElement(e)?e.props.children:null:t);return(0,g.jsx)(r,{...i,ref:t,children:u.isValidElement(e)?u.cloneElement(e,void 0,n):null})}return(0,g.jsx)(r,{...i,ref:t,children:n})});return i.displayName=`Slot`,i}function A(e){let t=({children:e})=>e;return t.displayName=`${e}.Slottable`,t.__radixId=S,t}A(`Slottable`);var j=`debug`,M=()=>{try{if(typeof window>`u`||typeof localStorage>`u`)return!1;let e=localStorage.getItem(j);return e===`true`||e===`1`}catch{return!1}},N=(()=>{let e=(e,t,n=[])=>t?typeof e==`string`?[`<${t}> ${e}`,...n]:[`<${t}>`,e,...n]:Array.isArray(e)?[...e,...n]:[e,...n];return{log:(t,n,...r)=>{M()&&console.log(...e(t,n,r))},info:(t,n,...r)=>{M()&&console.info(...e(t,n,r))},warn:(t,n,...r)=>{M()&&console.warn(...e(t,n,r))},error:(t,n,...r)=>{M()&&console.error(...e(t,n,r))},debug:(t,n,...r)=>{M()&&console.debug(...e(t,n,r))},group:(e,t)=>{if(M()){let n=typeof e==`string`?e:void 0;console.group(t?n?`<${t}> ${n}`:`<${t}>`:n)}},groupCollapsed:(e,t)=>{if(M()){let n=typeof e==`string`?e:void 0;console.groupCollapsed(t?n?`<${t}> ${n}`:`<${t}>`:n)}},groupEnd:()=>{M()&&console.groupEnd()},table:(e,t,n)=>{M()&&(t&&console.log(`<${t}>`),console.table(e,n))},time:(e,t)=>{if(M()){let n=typeof e==`string`?e:void 0;console.time(t?n?`<${t}> ${n}`:`<${t}>`:n)}},timeEnd:(e,t)=>{if(M()){let n=typeof e==`string`?e:void 0;console.timeEnd(t?n?`<${t}> ${n}`:`<${t}>`:n)}}}})(),P=e=>e==null?0:typeof e==`number`?e:`value`in e?e.value:`min`in e?e.min:0,F=e=>{let t=e.map(e=>P(e.price)),n=Math.min(...t),r=Math.max(...t);return n===void 0||r===void 0?{value:0}:n===r?{value:n}:{min:n,max:r}},I=(e,t)=>typeof e==`function`?e(t):e;Object.defineProperty(exports,`a`,{enumerable:!0,get:function(){return k}}),Object.defineProperty(exports,`c`,{enumerable:!0,get:function(){return h}}),Object.defineProperty(exports,`d`,{enumerable:!0,get:function(){return o}}),Object.defineProperty(exports,`f`,{enumerable:!0,get:function(){return s}}),Object.defineProperty(exports,`i`,{enumerable:!0,get:function(){return N}}),Object.defineProperty(exports,`l`,{enumerable:!0,get:function(){return f}}),Object.defineProperty(exports,`n`,{enumerable:!0,get:function(){return F}}),Object.defineProperty(exports,`o`,{enumerable:!0,get:function(){return v}}),Object.defineProperty(exports,`p`,{enumerable:!0,get:function(){return l}}),Object.defineProperty(exports,`r`,{enumerable:!0,get:function(){return I}}),Object.defineProperty(exports,`s`,{enumerable:!0,get:function(){return _}}),Object.defineProperty(exports,`t`,{enumerable:!0,get:function(){return P}}),Object.defineProperty(exports,`u`,{enumerable:!0,get:function(){return d}});
package/src-CsM7SeIh.mjs DELETED
@@ -1,455 +0,0 @@
1
- import * as e from "react";
2
- import t from "react";
3
- //#region \0rolldown/runtime.js
4
- var n = Object.defineProperty, r = (e, t) => () => (t || e((t = { exports: {} }).exports, t), t.exports), i = (e, t) => {
5
- let r = {};
6
- for (var i in e) n(r, i, {
7
- get: e[i],
8
- enumerable: !0
9
- });
10
- return t || n(r, Symbol.toStringTag, { value: "Module" }), r;
11
- }, a = /* @__PURE__ */ ((e) => typeof require < "u" ? require : typeof Proxy < "u" ? new Proxy(e, { get: (e, t) => (typeof require < "u" ? require : e)[t] }) : e)(function(e) {
12
- if (typeof require < "u") return require.apply(this, arguments);
13
- throw Error("Calling `require` for \"" + e + "\" in an environment that doesn't expose the `require` function. See https://rolldown.rs/in-depth/bundling-cjs#require-external-modules for more details.");
14
- }), o = /* @__PURE__ */ function(e) {
15
- return e.ACTIVE_ORDER = "activeOrder", e.ACTIVE_CHANNEL = "activeChannel", e.ACTIVE_CUSTOMER = "activeCustomer", e.ACTIVE_CUSTOMER_ORDERS = "activeCustomerOrders", e.AVAILABLE_COUNTRIES = "availableCountries", e.FACETS = "facets", e.ORDER_BY_CODE = "orderByCode", e.ORDER_STATES = "orderStates", e.PRODUCT = "product", e.PAYMENT_METHODS = "paymentMethods", e.SEARCH = "search", e.SEARCH_FIELD = "searchField", e.SHIPPING_METHODS = "shippingMethods", e;
16
- }({}), s = /* @__PURE__ */ function(e) {
17
- return e.AlreadyLoggedInError = "ALREADY_LOGGED_IN_ERROR", e.CouponCodeExpiredError = "COUPON_CODE_EXPIRED_ERROR", e.CouponCodeInvalidError = "COUPON_CODE_INVALID_ERROR", e.CouponCodeLimitError = "COUPON_CODE_LIMIT_ERROR", e.EmailAddressConflictError = "EMAIL_ADDRESS_CONFLICT_ERROR", e.GuestCheckoutError = "GUEST_CHECKOUT_ERROR", e.IdentifierChangeTokenExpiredError = "IDENTIFIER_CHANGE_TOKEN_EXPIRED_ERROR", e.IdentifierChangeTokenInvalidError = "IDENTIFIER_CHANGE_TOKEN_INVALID_ERROR", e.IneligiblePaymentMethodError = "INELIGIBLE_PAYMENT_METHOD_ERROR", e.IneligibleShippingMethodError = "INELIGIBLE_SHIPPING_METHOD_ERROR", e.InsufficientStockError = "INSUFFICIENT_STOCK_ERROR", e.InvalidCredentialsError = "INVALID_CREDENTIALS_ERROR", e.MissingPasswordError = "MISSING_PASSWORD_ERROR", e.NativeAuthStrategyError = "NATIVE_AUTH_STRATEGY_ERROR", e.NegativeQuantityError = "NEGATIVE_QUANTITY_ERROR", e.NotVerifiedError = "NOT_VERIFIED_ERROR", e.NoActiveOrderError = "NO_ACTIVE_ORDER_ERROR", e.OrderLimitError = "ORDER_LIMIT_ERROR", e.OrderModificationError = "ORDER_MODIFICATION_ERROR", e.OrderPaymentStateError = "ORDER_PAYMENT_STATE_ERROR", e.OrderStateTransitionError = "ORDER_STATE_TRANSITION_ERROR", e.PasswordAlreadySetError = "PASSWORD_ALREADY_SET_ERROR", e.PasswordResetTokenExpiredError = "PASSWORD_RESET_TOKEN_EXPIRED_ERROR", e.PasswordResetTokenInvalidError = "PASSWORD_RESET_TOKEN_INVALID_ERROR", e.PasswordValidationError = "PASSWORD_VALIDATION_ERROR", e.PaymentDeclinedError = "PAYMENT_DECLINED_ERROR", e.PaymentFailedError = "PAYMENT_FAILED_ERROR", e.UnknownError = "UNKNOWN_ERROR", e.VerificationTokenExpiredError = "VERIFICATION_TOKEN_EXPIRED_ERROR", e.VerificationTokenInvalidError = "VERIFICATION_TOKEN_INVALID_ERROR", e;
18
- }({}), c = /* @__PURE__ */ r(((e) => {
19
- var t = Symbol.for("react.transitional.element"), n = Symbol.for("react.fragment");
20
- function r(e, n, r) {
21
- var i = null;
22
- if (r !== void 0 && (i = "" + r), n.key !== void 0 && (i = "" + n.key), "key" in n) for (var a in r = {}, n) a !== "key" && (r[a] = n[a]);
23
- else r = n;
24
- return n = r.ref, {
25
- $$typeof: t,
26
- type: e,
27
- key: i,
28
- ref: n === void 0 ? null : n,
29
- props: r
30
- };
31
- }
32
- e.Fragment = n, e.jsx = r, e.jsxs = r;
33
- })), l = /* @__PURE__ */ r(((e) => {
34
- process.env.NODE_ENV !== "production" && (function() {
35
- function t(e) {
36
- if (e == null) return null;
37
- if (typeof e == "function") return e.$$typeof === k ? null : e.displayName || e.name || null;
38
- if (typeof e == "string") return e;
39
- switch (e) {
40
- case v: return "Fragment";
41
- case b: return "Profiler";
42
- case y: return "StrictMode";
43
- case w: return "Suspense";
44
- case T: return "SuspenseList";
45
- case O: return "Activity";
46
- }
47
- if (typeof e == "object") switch (typeof e.tag == "number" && console.error("Received an unexpected object in getComponentNameFromType(). This is likely a bug in React. Please file an issue."), e.$$typeof) {
48
- case _: return "Portal";
49
- case S: return e.displayName || "Context";
50
- case x: return (e._context.displayName || "Context") + ".Consumer";
51
- case C:
52
- var n = e.render;
53
- return e = e.displayName, e ||= (e = n.displayName || n.name || "", e === "" ? "ForwardRef" : "ForwardRef(" + e + ")"), e;
54
- case E: return n = e.displayName || null, n === null ? t(e.type) || "Memo" : n;
55
- case D:
56
- n = e._payload, e = e._init;
57
- try {
58
- return t(e(n));
59
- } catch {}
60
- }
61
- return null;
62
- }
63
- function n(e) {
64
- return "" + e;
65
- }
66
- function r(e) {
67
- try {
68
- n(e);
69
- var t = !1;
70
- } catch {
71
- t = !0;
72
- }
73
- if (t) {
74
- t = console;
75
- var r = t.error, i = typeof Symbol == "function" && Symbol.toStringTag && e[Symbol.toStringTag] || e.constructor.name || "Object";
76
- return r.call(t, "The provided key is an unsupported type %s. This value must be coerced to a string before using it here.", i), n(e);
77
- }
78
- }
79
- function i(e) {
80
- if (e === v) return "<>";
81
- if (typeof e == "object" && e && e.$$typeof === D) return "<...>";
82
- try {
83
- var n = t(e);
84
- return n ? "<" + n + ">" : "<...>";
85
- } catch {
86
- return "<...>";
87
- }
88
- }
89
- function o() {
90
- var e = A.A;
91
- return e === null ? null : e.getOwner();
92
- }
93
- function s() {
94
- return Error("react-stack-top-frame");
95
- }
96
- function c(e) {
97
- if (j.call(e, "key")) {
98
- var t = Object.getOwnPropertyDescriptor(e, "key").get;
99
- if (t && t.isReactWarning) return !1;
100
- }
101
- return e.key !== void 0;
102
- }
103
- function l(e, t) {
104
- function n() {
105
- P || (P = !0, console.error("%s: `key` is not a prop. Trying to access it will result in `undefined` being returned. If you need to access the same value within the child component, you should pass it as a different prop. (https://react.dev/link/special-props)", t));
106
- }
107
- n.isReactWarning = !0, Object.defineProperty(e, "key", {
108
- get: n,
109
- configurable: !0
110
- });
111
- }
112
- function u() {
113
- var e = t(this.type);
114
- return F[e] || (F[e] = !0, console.error("Accessing element.ref was removed in React 19. ref is now a regular prop. It will be removed from the JSX Element type in a future release.")), e = this.props.ref, e === void 0 ? null : e;
115
- }
116
- function d(e, t, n, r, i, a) {
117
- var o = n.ref;
118
- return e = {
119
- $$typeof: g,
120
- type: e,
121
- key: t,
122
- props: n,
123
- _owner: r
124
- }, (o === void 0 ? null : o) === null ? Object.defineProperty(e, "ref", {
125
- enumerable: !1,
126
- value: null
127
- }) : Object.defineProperty(e, "ref", {
128
- enumerable: !1,
129
- get: u
130
- }), e._store = {}, Object.defineProperty(e._store, "validated", {
131
- configurable: !1,
132
- enumerable: !1,
133
- writable: !0,
134
- value: 0
135
- }), Object.defineProperty(e, "_debugInfo", {
136
- configurable: !1,
137
- enumerable: !1,
138
- writable: !0,
139
- value: null
140
- }), Object.defineProperty(e, "_debugStack", {
141
- configurable: !1,
142
- enumerable: !1,
143
- writable: !0,
144
- value: i
145
- }), Object.defineProperty(e, "_debugTask", {
146
- configurable: !1,
147
- enumerable: !1,
148
- writable: !0,
149
- value: a
150
- }), Object.freeze && (Object.freeze(e.props), Object.freeze(e)), e;
151
- }
152
- function f(e, n, i, a, s, u) {
153
- var f = n.children;
154
- if (f !== void 0) if (a) if (M(f)) {
155
- for (a = 0; a < f.length; a++) p(f[a]);
156
- Object.freeze && Object.freeze(f);
157
- } else console.error("React.jsx: Static children should always be an array. You are likely explicitly calling React.jsxs or React.jsxDEV. Use the Babel transform instead.");
158
- else p(f);
159
- if (j.call(n, "key")) {
160
- f = t(e);
161
- var m = Object.keys(n).filter(function(e) {
162
- return e !== "key";
163
- });
164
- a = 0 < m.length ? "{key: someKey, " + m.join(": ..., ") + ": ...}" : "{key: someKey}", R[f + a] || (m = 0 < m.length ? "{" + m.join(": ..., ") + ": ...}" : "{}", console.error("A props object containing a \"key\" prop is being spread into JSX:\n let props = %s;\n <%s {...props} />\nReact keys must be passed directly to JSX without using spread:\n let props = %s;\n <%s key={someKey} {...props} />", a, f, m, f), R[f + a] = !0);
165
- }
166
- if (f = null, i !== void 0 && (r(i), f = "" + i), c(n) && (r(n.key), f = "" + n.key), "key" in n) for (var h in i = {}, n) h !== "key" && (i[h] = n[h]);
167
- else i = n;
168
- return f && l(i, typeof e == "function" ? e.displayName || e.name || "Unknown" : e), d(e, f, i, o(), s, u);
169
- }
170
- function p(e) {
171
- m(e) ? e._store && (e._store.validated = 1) : typeof e == "object" && e && e.$$typeof === D && (e._payload.status === "fulfilled" ? m(e._payload.value) && e._payload.value._store && (e._payload.value._store.validated = 1) : e._store && (e._store.validated = 1));
172
- }
173
- function m(e) {
174
- return typeof e == "object" && !!e && e.$$typeof === g;
175
- }
176
- var h = a("react"), g = Symbol.for("react.transitional.element"), _ = Symbol.for("react.portal"), v = Symbol.for("react.fragment"), y = Symbol.for("react.strict_mode"), b = Symbol.for("react.profiler"), x = Symbol.for("react.consumer"), S = Symbol.for("react.context"), C = Symbol.for("react.forward_ref"), w = Symbol.for("react.suspense"), T = Symbol.for("react.suspense_list"), E = Symbol.for("react.memo"), D = Symbol.for("react.lazy"), O = Symbol.for("react.activity"), k = Symbol.for("react.client.reference"), A = h.__CLIENT_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE, j = Object.prototype.hasOwnProperty, M = Array.isArray, N = console.createTask ? console.createTask : function() {
177
- return null;
178
- };
179
- h = { react_stack_bottom_frame: function(e) {
180
- return e();
181
- } };
182
- var P, F = {}, I = h.react_stack_bottom_frame.bind(h, s)(), L = N(i(s)), R = {};
183
- e.Fragment = v, e.jsx = function(e, t, n) {
184
- var r = 1e4 > A.recentlyCreatedOwnerStacks++;
185
- return f(e, t, n, !1, r ? Error("react-stack-top-frame") : I, r ? N(i(e)) : L);
186
- }, e.jsxs = function(e, t, n) {
187
- var r = 1e4 > A.recentlyCreatedOwnerStacks++;
188
- return f(e, t, n, !0, r ? Error("react-stack-top-frame") : I, r ? N(i(e)) : L);
189
- };
190
- })();
191
- })), u = /* @__PURE__ */ r(((e, t) => {
192
- process.env.NODE_ENV === "production" ? t.exports = c() : t.exports = l();
193
- })), d = u();
194
- function f(t) {
195
- let n = [];
196
- function r(r, i) {
197
- let a = e.createContext(i), o = n.length;
198
- n.push(a);
199
- let s = (n) => {
200
- let { scope: r, children: i, ...s } = n, c = r?.[t]?.[o] || a, l = e.useMemo(() => s, [s]);
201
- return /* @__PURE__ */ (0, d.jsx)(c.Provider, {
202
- value: l,
203
- children: i
204
- });
205
- };
206
- s.displayName = r + "Provider";
207
- function c(n, s) {
208
- let c = s?.[t]?.[o] || a, l = e.useContext(c);
209
- if (l) return l;
210
- if (i !== void 0) return i;
211
- throw Error(`\`${n}\` must be used within \`${r}\``);
212
- }
213
- return [s, c];
214
- }
215
- function i() {
216
- let r = n.map((t) => e.createContext(t));
217
- return function(n) {
218
- let i = n?.[t] || r;
219
- return e.useMemo(() => ({ [`__scope${t}`]: {
220
- ...n,
221
- [t]: i
222
- } }), [n, i]);
223
- };
224
- }
225
- return i.scopeName = t, [r, i];
226
- }
227
- [.../* @__PURE__ */ "onClick.aria-label.aria-disabled.aria-hidden.aria-selected.aria-expanded.aria-controls.aria-describedby.aria-labelledby.aria-owns.aria-posinset.aria-setsize.aria-atomic.aria-busy.aria-current.aria-details.aria-dropeffect.aria-errormessage.aria-flowto.aria-grabbed.aria-haspopup.aria-invalid.aria-keyshortcuts.aria-live.aria-modal.aria-multiline.aria-multiselectable.aria-orientation.aria-placeholder.aria-pressed.aria-readonly.aria-relevant.aria-required.aria-roledescription.aria-rowcount.aria-rowindex.aria-rowspan.aria-sort.aria-valuemax.aria-valuemin.aria-valuenow.aria-valuetext".split(".")], [.../* @__PURE__ */ "onClick.onDoubleClick.onMouseDown.onMouseEnter.onMouseLeave.onMouseMove.onMouseOut.onMouseOver.onMouseUp.onWheel.onKeyDown.onKeyPress.onKeyUp.onFocus.onBlur.onChange.onInput.onSubmit.onReset.onSelect.onSelectStart.onSelectionChange.onInvalid.onBeforeInput.onCompositionEnd.onCompositionStart.onCompositionUpdate.onCopy.onCut.onPaste.onDrag.onDragEnd.onDragEnter.onDragExit.onDragLeave.onDragOver.onDragStart.onDrop.onScroll.onLoad.onError.onAnimationStart.onAnimationEnd.onAnimationIteration.onTransitionEnd.onGotPointerCapture.onLostPointerCapture.onPointerCancel.onPointerDown.onPointerEnter.onPointerLeave.onPointerMove.onPointerOut.onPointerOver.onPointerUp.aria-label.aria-labelledby.aria-describedby.aria-controls.aria-owns.aria-activedescendant.aria-autocomplete.aria-checked.aria-current.aria-disabled.aria-expanded.aria-haspopup.aria-hidden.aria-invalid.aria-level.aria-live.aria-modal.aria-multiline.aria-multiselectable.aria-orientation.aria-placeholder.aria-pressed.aria-readonly.aria-required.aria-selected.aria-sort.aria-valuemax.aria-valuemin.aria-valuenow.aria-valuetext.role.tabIndex.contentEditable.contextMenu.dir.draggable.dropzone.hidden.id.lang.spellCheck.style.title.translate.slot.part.class.className.dataset.innerHTML.outerHTML.accessKey.autocapitalize.autocorrect.enterKeyHint.inputMode.is.itemID.itemProp.itemRef.itemScope.itemType.nonce.popover.radioGroup.referrerPolicy.rel.security.unselectable.virtualKeyboardPolicy".split(".")];
228
- function p(e, t) {
229
- if (t === "web") return e;
230
- let { src: n, alt: r, width: i, height: a, ...o } = e, s = [typeof i == "number" ? { width: i } : void 0, typeof a == "number" ? { height: a } : void 0].filter(Boolean), c;
231
- return s.length === 1 ? c = s[0] : s.length > 1 && (c = s), {
232
- ...o,
233
- source: { uri: n },
234
- ...c ? { style: c } : {}
235
- };
236
- }
237
- function m(e) {
238
- let { src: t, alt: n, ...r } = e;
239
- return t ? {
240
- ...r,
241
- source: { uri: t }
242
- } : r;
243
- }
244
- //#endregion
245
- //#region ../../common/utils/src/lib/platform-primitives.tsx
246
- var h = {
247
- div: "View",
248
- span: "Text",
249
- p: "Text",
250
- h1: "Text",
251
- h2: "Text",
252
- h3: "Text",
253
- h4: "Text",
254
- h5: "Text",
255
- h6: "Text",
256
- button: "Pressable",
257
- input: "TextInput",
258
- form: "View",
259
- section: "View",
260
- article: "View",
261
- nav: "View",
262
- header: "View",
263
- footer: "View",
264
- main: "View",
265
- aside: "View",
266
- ul: "View",
267
- ol: "View",
268
- li: "View",
269
- a: "Pressable",
270
- img: "Image",
271
- label: "Text",
272
- textarea: "TextInput",
273
- select: "Pressable",
274
- option: "Text"
275
- };
276
- function g(e, n) {
277
- if (n === "web") return e;
278
- let r = null;
279
- try {
280
- r = a("react-native");
281
- } catch {
282
- r = null;
283
- }
284
- if (!r) return console.warn(`react-native is not available at runtime; falling back to 'View' for '${e}'`), "div";
285
- let i = h[e];
286
- if (!i) return console.warn(`No native component mapping found for '${e}', falling back to View`), r.View;
287
- if (i === "Image") {
288
- let e = t.forwardRef((e, t) => e.src ? /* @__PURE__ */ (0, d.jsx)(r.Image, {
289
- ref: t,
290
- ...m(e)
291
- }) : null);
292
- return e.displayName = "PlatformPrimitiveImage", e;
293
- }
294
- return r[i] || (console.warn(`Native component '${i}' not found, falling back to View`), r.View);
295
- }
296
- //#endregion
297
- //#region ../../common/utils/src/lib/slot.tsx
298
- var _ = Symbol("radix.slottable");
299
- function v(...e) {
300
- return (t) => e.forEach((e) => {
301
- typeof e == "function" ? e(t) : e != null && (e.current = t);
302
- });
303
- }
304
- function y(e, t) {
305
- let n = { ...t };
306
- for (let r in t) {
307
- let i = e[r], a = t[r];
308
- /^on[A-Z]/.test(r) ? i && a ? n[r] = (...e) => {
309
- let t = a(...e);
310
- return i(...e), t;
311
- } : i && (n[r] = i) : r === "style" ? n[r] = b(i, a) : r === "className" && (n[r] = [i, a].filter(Boolean).join(" "));
312
- }
313
- return {
314
- ...e,
315
- ...n
316
- };
317
- }
318
- function b(e, t) {
319
- let n = (() => {
320
- try {
321
- return a("react-native");
322
- } catch {
323
- return null;
324
- }
325
- })()?.StyleSheet?.flatten;
326
- if (typeof e == "function" && typeof t == "function") return (r) => {
327
- let i = [e(r), t(r)];
328
- return n ? n(i) : i;
329
- };
330
- if (typeof e == "function") return (r) => {
331
- let i = t ? [e(r), t] : e(r);
332
- return n ? n(i) : i;
333
- };
334
- if (typeof t == "function") return (r) => {
335
- let i = e ? [e, t(r)] : t(r);
336
- return n ? n(i) : i;
337
- };
338
- let r = [e, t].filter(Boolean);
339
- return n ? n(r) : r;
340
- }
341
- function x(t) {
342
- return e.isValidElement(t) && typeof t.type == "function" && "__radixId" in t.type && t.type.__radixId === _;
343
- }
344
- function S(e) {
345
- let t = Object.getOwnPropertyDescriptor(e.props, "ref")?.get, n = t && "isReactWarning" in t && t.isReactWarning;
346
- return n ? e.ref : (t = Object.getOwnPropertyDescriptor(e, "ref")?.get, n = t && "isReactWarning" in t && t.isReactWarning, n ? e.props.ref : e.props.ref || e.ref);
347
- }
348
- function C(t, n) {
349
- let r = e.forwardRef((t, n) => {
350
- let { children: r, ...i } = t;
351
- if (e.isValidElement(r)) {
352
- let t = S(r), a = y(i, r.props);
353
- return r.type !== e.Fragment && (a.ref = n ? v(n, t) : t), e.cloneElement(r, a);
354
- }
355
- return e.Children.count(r) > 1 ? e.Children.only(null) : null;
356
- });
357
- return r.displayName = `${t}.SlotClone`, r;
358
- }
359
- function w(t, n = !1, r = "div") {
360
- if (!n) return g(r, t);
361
- let i = C("Slot", t), a = e.forwardRef((t, n) => {
362
- let { children: r, ...a } = t, o = e.Children.toArray(r), s = o.find(x);
363
- if (s) {
364
- let t = s.props.children, r = o.map((n) => n === s ? e.Children.count(t) > 1 ? e.Children.only(null) : e.isValidElement(t) ? t.props.children : null : n);
365
- return /* @__PURE__ */ (0, d.jsx)(i, {
366
- ...a,
367
- ref: n,
368
- children: e.isValidElement(t) ? e.cloneElement(t, void 0, r) : null
369
- });
370
- }
371
- return /* @__PURE__ */ (0, d.jsx)(i, {
372
- ...a,
373
- ref: n,
374
- children: r
375
- });
376
- });
377
- return a.displayName = "Slot", a;
378
- }
379
- function T(e) {
380
- let t = ({ children: e }) => e;
381
- return t.displayName = `${e}.Slottable`, t.__radixId = _, t;
382
- }
383
- T("Slottable");
384
- //#endregion
385
- //#region ../../common/utils/src/lib/logger.ts
386
- var E = "debug", D = () => {
387
- try {
388
- if (typeof window > "u" || typeof localStorage > "u") return !1;
389
- let e = localStorage.getItem(E);
390
- return e === "true" || e === "1";
391
- } catch {
392
- return !1;
393
- }
394
- }, O = (() => {
395
- let e = (e, t, n = []) => t ? typeof e == "string" ? [`<${t}> ${e}`, ...n] : [
396
- `<${t}>`,
397
- e,
398
- ...n
399
- ] : Array.isArray(e) ? [...e, ...n] : [e, ...n];
400
- return {
401
- log: (t, n, ...r) => {
402
- D() && console.log(...e(t, n, r));
403
- },
404
- info: (t, n, ...r) => {
405
- D() && console.info(...e(t, n, r));
406
- },
407
- warn: (t, n, ...r) => {
408
- D() && console.warn(...e(t, n, r));
409
- },
410
- error: (t, n, ...r) => {
411
- D() && console.error(...e(t, n, r));
412
- },
413
- debug: (t, n, ...r) => {
414
- D() && console.debug(...e(t, n, r));
415
- },
416
- group: (e, t) => {
417
- if (D()) {
418
- let n = typeof e == "string" ? e : void 0;
419
- console.group(t ? n ? `<${t}> ${n}` : `<${t}>` : n);
420
- }
421
- },
422
- groupCollapsed: (e, t) => {
423
- if (D()) {
424
- let n = typeof e == "string" ? e : void 0;
425
- console.groupCollapsed(t ? n ? `<${t}> ${n}` : `<${t}>` : n);
426
- }
427
- },
428
- groupEnd: () => {
429
- D() && console.groupEnd();
430
- },
431
- table: (e, t, n) => {
432
- D() && (t && console.log(`<${t}>`), console.table(e, n));
433
- },
434
- time: (e, t) => {
435
- if (D()) {
436
- let n = typeof e == "string" ? e : void 0;
437
- console.time(t ? n ? `<${t}> ${n}` : `<${t}>` : n);
438
- }
439
- },
440
- timeEnd: (e, t) => {
441
- if (D()) {
442
- let n = typeof e == "string" ? e : void 0;
443
- console.timeEnd(t ? n ? `<${t}> ${n}` : `<${t}>` : n);
444
- }
445
- }
446
- };
447
- })(), k = (e) => e == null ? 0 : typeof e == "number" ? e : "value" in e ? e.value : "min" in e ? e.min : 0, A = (e) => {
448
- let t = e.map((e) => k(e.price)), n = Math.min(...t), r = Math.max(...t);
449
- return n === void 0 || r === void 0 ? { value: 0 } : n === r ? { value: n } : {
450
- min: n,
451
- max: r
452
- };
453
- }, j = (e, t) => typeof e == "function" ? e(t) : e;
454
- //#endregion
455
- export { w as a, u as c, r as d, i as f, O as i, s as l, A as n, p as o, a as p, j as r, f as s, k as t, o as u };