@dropins/tools 1.6.0-alpha6 → 1.6.0-alpha77

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 (103) hide show
  1. package/chunks/Image.js +1 -1
  2. package/chunks/cjs.js +1 -1
  3. package/chunks/get-path-value.js +1 -1
  4. package/chunks/get-price-formatter.js +1 -1
  5. package/chunks/icons/Add.js +1 -1
  6. package/chunks/icons/AddressBook.js +1 -1
  7. package/chunks/icons/Bulk.js +1 -1
  8. package/chunks/icons/Burger.js +1 -1
  9. package/chunks/icons/Business.js +4 -0
  10. package/chunks/icons/Business.js.map +1 -0
  11. package/chunks/icons/Card.js +1 -1
  12. package/chunks/icons/Cart.js +1 -1
  13. package/chunks/icons/Check.js +1 -1
  14. package/chunks/icons/CheckWithCircle.js +1 -1
  15. package/chunks/icons/ChevronDown.js +2 -2
  16. package/chunks/icons/ChevronDown.js.map +1 -1
  17. package/chunks/icons/ChevronRight.js +1 -1
  18. package/chunks/icons/ChevronUp.js +2 -2
  19. package/chunks/icons/ChevronUp.js.map +1 -1
  20. package/chunks/icons/Close.js +1 -1
  21. package/chunks/icons/Coupon.js +1 -1
  22. package/chunks/icons/Date.js +1 -1
  23. package/chunks/icons/Delivery.js +1 -1
  24. package/chunks/icons/Edit.js +2 -2
  25. package/chunks/icons/Edit.js.map +1 -1
  26. package/chunks/icons/EmptyBox.js +1 -1
  27. package/chunks/icons/Eye.js +2 -2
  28. package/chunks/icons/Eye.js.map +1 -1
  29. package/chunks/icons/EyeClose.js +2 -2
  30. package/chunks/icons/EyeClose.js.map +1 -1
  31. package/chunks/icons/Gift.js +2 -2
  32. package/chunks/icons/Gift.js.map +1 -1
  33. package/chunks/icons/GiftCard.js +2 -2
  34. package/chunks/icons/GiftCard.js.map +1 -1
  35. package/chunks/icons/Heart.js +2 -2
  36. package/chunks/icons/Heart.js.map +1 -1
  37. package/chunks/icons/HeartFilled.js +1 -1
  38. package/chunks/icons/InfoFilled.js +1 -1
  39. package/chunks/icons/List.js +4 -0
  40. package/chunks/icons/List.js.map +1 -0
  41. package/chunks/icons/Locker.js +2 -2
  42. package/chunks/icons/Locker.js.map +1 -1
  43. package/chunks/icons/Minus.js +2 -2
  44. package/chunks/icons/Minus.js.map +1 -1
  45. package/chunks/icons/Order.js +1 -1
  46. package/chunks/icons/OrderError.js +2 -2
  47. package/chunks/icons/OrderError.js.map +1 -1
  48. package/chunks/icons/OrderSuccess.js +2 -2
  49. package/chunks/icons/OrderSuccess.js.map +1 -1
  50. package/chunks/icons/PaymentError.js +2 -2
  51. package/chunks/icons/PaymentError.js.map +1 -1
  52. package/chunks/icons/Placeholder.js +2 -2
  53. package/chunks/icons/Placeholder.js.map +1 -1
  54. package/chunks/icons/PlaceholderFilled.js +1 -1
  55. package/chunks/icons/Purchase.js +4 -0
  56. package/chunks/icons/Purchase.js.map +1 -0
  57. package/chunks/icons/Quote.js +4 -0
  58. package/chunks/icons/Quote.js.map +1 -0
  59. package/chunks/icons/Search.js +1 -1
  60. package/chunks/icons/SearchFilled.js +1 -1
  61. package/chunks/icons/Sort.js +2 -2
  62. package/chunks/icons/Sort.js.map +1 -1
  63. package/chunks/icons/Star.js +1 -1
  64. package/chunks/icons/Structure.js +4 -0
  65. package/chunks/icons/Structure.js.map +1 -0
  66. package/chunks/icons/Team.js +4 -0
  67. package/chunks/icons/Team.js.map +1 -0
  68. package/chunks/icons/Trash.js +2 -2
  69. package/chunks/icons/Trash.js.map +1 -1
  70. package/chunks/icons/User.js +1 -1
  71. package/chunks/icons/View.js +1 -1
  72. package/chunks/icons/Wallet.js +1 -1
  73. package/chunks/icons/Warning.js +2 -2
  74. package/chunks/icons/Warning.js.map +1 -1
  75. package/chunks/icons/WarningFilled.js +1 -1
  76. package/chunks/icons/WarningWithCircle.js +1 -1
  77. package/chunks/image-params-keymap.js +1 -1
  78. package/chunks/initializer.js +2 -2
  79. package/chunks/locale-config.js +1 -1
  80. package/chunks/vcomponent.js +1 -1
  81. package/components.js +2 -2
  82. package/components.js.map +1 -1
  83. package/event-bus.js +1 -1
  84. package/fetch-graphql.js +2 -2
  85. package/fetch-graphql.js.map +1 -1
  86. package/i18n.js +1 -1
  87. package/initializer.js +2 -2
  88. package/lib/aem/assets.js +2 -2
  89. package/lib/aem/configs.js +2 -2
  90. package/lib/aem/configs.js.map +1 -1
  91. package/lib.js +1 -1
  92. package/package.json +1 -1
  93. package/preact-compat.js +1 -1
  94. package/preact-hooks.js +1 -1
  95. package/preact-jsx-runtime.js +1 -1
  96. package/preact.js +1 -1
  97. package/recaptcha.js +1 -1
  98. package/shims/importmap.js +1 -1
  99. package/signals.js +1 -1
  100. package/types/elsie/src/components/Pagination/Pagination.d.ts +2 -1
  101. package/types/elsie/src/components/Pagination/PaginationButton.d.ts +11 -0
  102. package/types/elsie/src/icons/index.d.ts +30 -24
  103. package/types/fetch-graphql/src/index.d.ts +40 -10
@@ -1,4 +1,4 @@
1
- /*! Copyright 2025 Adobe
1
+ /*! Copyright 2026 Adobe
2
2
  All Rights Reserved. */
3
- import{g as c}from"../../chunks/get-path-value.js";import{d as s}from"../../chunks/cjs.js";let l=null,f=null,u=null,i=null;function z(){l=null,f=null,u=null,i=null}function g(e=l,t=f){return e?Object.keys(e==null?void 0:e.public).sort((n,r)=>{const o=n.split("/").filter(Boolean).length;return r.split("/").filter(Boolean).length-o}).find(n=>{var r;return window.location.pathname===n||(((r=t==null?void 0:t.match)==null?void 0:r.call(t,n))??window.location.pathname.startsWith(n))})??"/":(console.warn("No config found. Please call initializeConfig() first."),"/")}function h(){return l?Object.keys(l.public).filter(e=>e!=="default"):(console.warn("No config found. Please call initializeConfig() first."),[])}function P(){return h().length>=1}function p(e){if(!i)throw new Error("Configuration not initialized. Call initializeConfig() first.");const t=i.headers??{};return{...t.all??{},...t[e]??{}}}function d(e,t){var n;const a=(n=e.public)==null?void 0:n.default;return t==="/"||!e.public[t]?a:s(a,e.public[t])}function v(e,t){return l=e,f=t??null,u=g(l,{match:t==null?void 0:t.match}),i=d(l,u),i}function S(e){if(!i)throw new Error("Configuration not initialized. Call initializeConfig() first.");return c(i,e)}export{S as getConfigValue,p as getHeaders,h as getListOfRootPaths,g as getRootPath,v as initializeConfig,P as isMultistore,z as resetConfig};
3
+ import{d as c}from"../../chunks/cjs.js";import{g as s}from"../../chunks/get-path-value.js";let l=null,f=null,u=null,i=null;function z(){l=null,f=null,u=null,i=null}function g(t=l,e=f){return t?Object.keys(t==null?void 0:t.public).sort((n,r)=>{const o=n.split("/").filter(Boolean).length;return r.split("/").filter(Boolean).length-o}).find(n=>{var r;return window.location.pathname===n||(((r=e==null?void 0:e.match)==null?void 0:r.call(e,n))??window.location.pathname.startsWith(n))})??"/":(console.warn("No config found. Please call initializeConfig() first."),"/")}function h(){return l?Object.keys(l.public).filter(t=>t!=="default"&&t.startsWith("/")):(console.warn("No config found. Please call initializeConfig() first."),[])}function P(){return h().length>=1}function p(t){if(!i)throw new Error("Configuration not initialized. Call initializeConfig() first.");const e=i.headers??{};return{...e.all??{},...e[t]??{}}}function d(t,e){var n;const a=(n=t.public)==null?void 0:n.default;return e==="/"||!t.public[e]?a:c(a,t.public[e])}function v(t,e){return l=t,f=e??null,u=g(l,{match:e==null?void 0:e.match}),i=d(l,u),i}function S(t){if(!i)throw new Error("Configuration not initialized. Call initializeConfig() first.");return s(i,t)}export{S as getConfigValue,p as getHeaders,h as getListOfRootPaths,g as getRootPath,v as initializeConfig,P as isMultistore,z as resetConfig};
4
4
  //# sourceMappingURL=configs.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"configs.js","sources":["/@dropins/tools/src/lib/aem/configs.ts"],"sourcesContent":["import { deepmerge } from '../deepmerge';\nimport { getPathValue } from '../get-path-value';\n\ninterface ConfigHeaders {\n all?: Record<string, string>;\n [key: string]: Record<string, string> | undefined;\n}\n\ninterface ConfigPublic {\n default: ConfigRoot;\n [key: string]: ConfigRoot;\n}\n\ninterface ConfigRoot {\n headers?: ConfigHeaders;\n [key: string]: any;\n}\n\ninterface Config {\n public: ConfigPublic;\n [key: string]: any;\n}\n\n// Private state\nlet config: Config | null = null;\nlet options: { match?: (key: string) => boolean } | null = null;\nlet rootPath: string | null = null;\nlet rootConfig: ConfigRoot | null = null;\n\n/**\n * Reset the config state\n */\nfunction resetConfig() {\n config = null;\n options = null;\n rootPath = null;\n rootConfig = null;\n}\n\n/**\n * Get root path\n * @param {Object} [configObj=config] - The config object.\n * @returns {string} - The root path.\n */\nfunction getRootPath(configObj: Config | null = config, optionsObj: { match?: (key: string) => boolean } | null = options): string {\n if (!configObj) {\n console.warn('No config found. Please call initializeConfig() first.');\n return '/';\n }\n\n const value = Object.keys(configObj?.public)\n // Sort by number of non-empty segments to find the deepest path\n .sort((a, b) => {\n const aSegments = a.split('/').filter(Boolean).length;\n const bSegments = b.split('/').filter(Boolean).length;\n return bSegments - aSegments;\n })\n .find(\n (key) =>\n window.location.pathname === key ||\n (optionsObj?.match?.(key) ?? window.location.pathname.startsWith(key))\n );\n\n return value ?? '/';\n}\n\n/**\n * Get list of root paths from public config\n * @returns {Array} - The list of root paths.\n */\nfunction getListOfRootPaths(): string[] {\n if (!config) {\n console.warn('No config found. Please call initializeConfig() first.');\n return [];\n }\n\n return Object.keys(config.public).filter((root) => root !== 'default');\n}\n\n/**\n * Checks if the public config contains more than \"default\"\n * @returns {boolean} - true if public config contains more than \"default\"\n */\nfunction isMultistore(): boolean {\n return getListOfRootPaths().length >= 1;\n}\n\n/**\n * Retrieves headers from config entries like commerce.headers.pdp.my-header, etc and\n * returns as object of all headers like { my-header: value, ... }\n * @param {string} scope - The scope of the headers to retrieve.\n * @returns {Object} - The headers.\n */\nfunction getHeaders(scope: string): Record<string, string> {\n if (!rootConfig) {\n throw new Error(\n 'Configuration not initialized. Call initializeConfig() first.'\n );\n }\n const headers = rootConfig.headers ?? {};\n return {\n ...(headers.all ?? {}),\n ...(headers[scope] ?? {}),\n };\n}\n\n/**\n * Applies config overrides from metadata.\n *\n * @param {Object} [configObj] - The base config.\n * @param {string} [root] - The root path.\n * @returns {Object} - The config with overrides applied.\n */\nfunction applyConfigOverrides(\n configObj: Config | null,\n root: string | null\n): ConfigRoot {\n const defaultConfig = configObj!.public?.default;\n\n if (root === '/' || !configObj!.public[root as keyof ConfigPublic])\n return defaultConfig;\n\n return deepmerge(\n defaultConfig,\n configObj!.public[root as keyof ConfigPublic]\n );\n}\n\n/**\n * Initializes the configuration system.\n * @param {Object} configObj - The config object.\n * @param {Object} [options] - The options object.\n * @param {Function} [options.match] - The function to match the path to the config.\n * @returns {Object} The initialized root configuration\n */\nfunction initializeConfig(configObj: Config, optionsObj?: { match?: (key: string) => boolean }): ConfigRoot {\n config = configObj;\n options = optionsObj ?? null;\n rootPath = getRootPath(config, { match: optionsObj?.match });\n rootConfig = applyConfigOverrides(config, rootPath);\n return rootConfig;\n}\n\n/**\n * Retrieves a configuration value.\n *\n * @param {string} configParam - The configuration parameter to retrieve.\n * @returns {string|undefined} - The value of the configuration parameter, or undefined.\n */\nfunction getConfigValue(configParam: string): any {\n if (!rootConfig) {\n throw new Error(\n 'Configuration not initialized. Call initializeConfig() first.'\n );\n }\n return getPathValue(rootConfig, configParam);\n}\n\nexport {\n initializeConfig,\n getRootPath,\n getListOfRootPaths,\n isMultistore,\n getConfigValue,\n getHeaders,\n resetConfig,\n};\n"],"names":["config","options","rootPath","rootConfig","resetConfig","getRootPath","configObj","optionsObj","a","b","aSegments","key","_a","getListOfRootPaths","root","isMultistore","getHeaders","scope","headers","applyConfigOverrides","defaultConfig","deepmerge","initializeConfig","getConfigValue","configParam","getPathValue"],"mappings":"2FAwBA,IAAIA,EAAwB,KACxBC,EAAuD,KACvDC,EAA0B,KAC1BC,EAAgC,KAKpC,SAASC,GAAc,CACZJ,EAAA,KACCC,EAAA,KACCC,EAAA,KACEC,EAAA,IACf,CAOA,SAASE,EAAYC,EAA2BN,EAAQO,EAA0DN,EAAiB,CACjI,OAAKK,EAKS,OAAO,KAAKA,GAAA,YAAAA,EAAW,MAAM,EAExC,KAAK,CAACE,EAAGC,IAAM,CACd,MAAMC,EAAYF,EAAE,MAAM,GAAG,EAAE,OAAO,OAAO,EAAE,OAE/C,OADkBC,EAAE,MAAM,GAAG,EAAE,OAAO,OAAO,EAAE,OAC5BC,CACpB,CAAA,EACA,KACEC,GAAA,OACC,cAAO,SAAS,WAAaA,MAC5BC,EAAAL,GAAA,YAAAA,EAAY,QAAZ,YAAAK,EAAA,KAAAL,EAAoBI,KAAQ,OAAO,SAAS,SAAS,WAAWA,CAAG,GACxE,GAEc,KAjBd,QAAQ,KAAK,wDAAwD,EAC9D,IAiBX,CAMA,SAASE,GAA+B,CACtC,OAAKb,EAKE,OAAO,KAAKA,EAAO,MAAM,EAAE,OAAQc,GAASA,IAAS,SAAS,GAJnE,QAAQ,KAAK,wDAAwD,EAC9D,CAAC,EAIZ,CAMA,SAASC,GAAwB,CACxB,OAAAF,EAAA,EAAqB,QAAU,CACxC,CAQA,SAASG,EAAWC,EAAuC,CACzD,GAAI,CAACd,EACH,MAAM,IAAI,MACR,+DACF,EAEI,MAAAe,EAAUf,EAAW,SAAW,CAAC,EAChC,MAAA,CACL,GAAIe,EAAQ,KAAO,CAAC,EACpB,GAAIA,EAAQD,CAAK,GAAK,CAAA,CACxB,CACF,CASA,SAASE,EACPb,EACAQ,EACY,OACN,MAAAM,GAAgBR,EAAAN,EAAW,SAAX,YAAAM,EAAmB,QAEzC,OAAIE,IAAS,KAAO,CAACR,EAAW,OAAOQ,CAA0B,EACxDM,EAEFC,EACLD,EACAd,EAAW,OAAOQ,CAA0B,CAC9C,CACF,CASA,SAASQ,EAAiBhB,EAAmBC,EAA+D,CACjG,OAAAP,EAAAM,EACTL,EAAUM,GAAc,KACxBL,EAAWG,EAAYL,EAAQ,CAAE,MAAOO,GAAA,YAAAA,EAAY,MAAO,EAC9CJ,EAAAgB,EAAqBnB,EAAQE,CAAQ,EAC3CC,CACT,CAQA,SAASoB,EAAeC,EAA0B,CAChD,GAAI,CAACrB,EACH,MAAM,IAAI,MACR,+DACF,EAEK,OAAAsB,EAAatB,EAAYqB,CAAW,CAC7C"}
1
+ {"version":3,"file":"configs.js","sources":["/@dropins/tools/src/lib/aem/configs.ts"],"sourcesContent":["import { deepmerge } from '../deepmerge';\nimport { getPathValue } from '../get-path-value';\n\ninterface ConfigHeaders {\n all?: Record<string, string>;\n [key: string]: Record<string, string> | undefined;\n}\n\ninterface ConfigPublic {\n default: ConfigRoot;\n [key: string]: ConfigRoot;\n}\n\ninterface ConfigRoot {\n headers?: ConfigHeaders;\n [key: string]: any;\n}\n\ninterface Config {\n public: ConfigPublic;\n [key: string]: any;\n}\n\n// Private state\nlet config: Config | null = null;\nlet options: { match?: (key: string) => boolean } | null = null;\nlet rootPath: string | null = null;\nlet rootConfig: ConfigRoot | null = null;\n\n/**\n * Reset the config state\n */\nfunction resetConfig() {\n config = null;\n options = null;\n rootPath = null;\n rootConfig = null;\n}\n\n/**\n * Get root path\n * @param {Object} [configObj=config] - The config object.\n * @returns {string} - The root path.\n */\nfunction getRootPath(configObj: Config | null = config, optionsObj: { match?: (key: string) => boolean } | null = options): string {\n if (!configObj) {\n console.warn('No config found. Please call initializeConfig() first.');\n return '/';\n }\n\n const value = Object.keys(configObj?.public)\n // Sort by number of non-empty segments to find the deepest path\n .sort((a, b) => {\n const aSegments = a.split('/').filter(Boolean).length;\n const bSegments = b.split('/').filter(Boolean).length;\n return bSegments - aSegments;\n })\n .find(\n (key) =>\n window.location.pathname === key ||\n (optionsObj?.match?.(key) ?? window.location.pathname.startsWith(key))\n );\n\n return value ?? '/';\n}\n\n/**\n * Get list of root paths from public config\n * @returns {Array} - The list of root paths.\n */\nfunction getListOfRootPaths(): string[] {\n if (!config) {\n console.warn('No config found. Please call initializeConfig() first.');\n return [];\n }\n\n return Object.keys(config.public).filter((root) => root !== 'default' && root.startsWith('/'));\n}\n\n/**\n * Checks if the public config contains more than \"default\"\n * @returns {boolean} - true if public config contains more than \"default\"\n */\nfunction isMultistore(): boolean {\n return getListOfRootPaths().length >= 1;\n}\n\n/**\n * Retrieves headers from config entries like commerce.headers.pdp.my-header, etc and\n * returns as object of all headers like { my-header: value, ... }\n * @param {string} scope - The scope of the headers to retrieve.\n * @returns {Object} - The headers.\n */\nfunction getHeaders(scope: string): Record<string, string> {\n if (!rootConfig) {\n throw new Error(\n 'Configuration not initialized. Call initializeConfig() first.'\n );\n }\n const headers = rootConfig.headers ?? {};\n return {\n ...(headers.all ?? {}),\n ...(headers[scope] ?? {}),\n };\n}\n\n/**\n * Applies config overrides from metadata.\n *\n * @param {Object} [configObj] - The base config.\n * @param {string} [root] - The root path.\n * @returns {Object} - The config with overrides applied.\n */\nfunction applyConfigOverrides(\n configObj: Config | null,\n root: string | null\n): ConfigRoot {\n const defaultConfig = configObj!.public?.default;\n\n if (root === '/' || !configObj!.public[root as keyof ConfigPublic])\n return defaultConfig;\n\n return deepmerge(\n defaultConfig,\n configObj!.public[root as keyof ConfigPublic]\n );\n}\n\n/**\n * Initializes the configuration system.\n * @param {Object} configObj - The config object.\n * @param {Object} [options] - The options object.\n * @param {Function} [options.match] - The function to match the path to the config.\n * @returns {Object} The initialized root configuration\n */\nfunction initializeConfig(configObj: Config, optionsObj?: { match?: (key: string) => boolean }): ConfigRoot {\n config = configObj;\n options = optionsObj ?? null;\n rootPath = getRootPath(config, { match: optionsObj?.match });\n rootConfig = applyConfigOverrides(config, rootPath);\n return rootConfig;\n}\n\n/**\n * Retrieves a configuration value.\n *\n * @param {string} configParam - The configuration parameter to retrieve.\n * @returns {string|undefined} - The value of the configuration parameter, or undefined.\n */\nfunction getConfigValue(configParam: string): any {\n if (!rootConfig) {\n throw new Error(\n 'Configuration not initialized. Call initializeConfig() first.'\n );\n }\n return getPathValue(rootConfig, configParam);\n}\n\nexport {\n initializeConfig,\n getRootPath,\n getListOfRootPaths,\n isMultistore,\n getConfigValue,\n getHeaders,\n resetConfig,\n};\n"],"names":["config","options","rootPath","rootConfig","resetConfig","getRootPath","configObj","optionsObj","a","b","aSegments","key","_a","getListOfRootPaths","root","isMultistore","getHeaders","scope","headers","applyConfigOverrides","defaultConfig","deepmerge","initializeConfig","getConfigValue","configParam","getPathValue"],"mappings":"2FAwBA,IAAIA,EAAwB,KACxBC,EAAuD,KACvDC,EAA0B,KAC1BC,EAAgC,KAKpC,SAASC,GAAc,CACZJ,EAAA,KACCC,EAAA,KACCC,EAAA,KACEC,EAAA,IACf,CAOA,SAASE,EAAYC,EAA2BN,EAAQO,EAA0DN,EAAiB,CACjI,OAAKK,EAKS,OAAO,KAAKA,GAAA,YAAAA,EAAW,MAAM,EAExC,KAAK,CAACE,EAAGC,IAAM,CACd,MAAMC,EAAYF,EAAE,MAAM,GAAG,EAAE,OAAO,OAAO,EAAE,OAE/C,OADkBC,EAAE,MAAM,GAAG,EAAE,OAAO,OAAO,EAAE,OAC5BC,CACpB,CAAA,EACA,KACEC,GAAA,OACC,cAAO,SAAS,WAAaA,MAC5BC,EAAAL,GAAA,YAAAA,EAAY,QAAZ,YAAAK,EAAA,KAAAL,EAAoBI,KAAQ,OAAO,SAAS,SAAS,WAAWA,CAAG,GACxE,GAEc,KAjBd,QAAQ,KAAK,wDAAwD,EAC9D,IAiBX,CAMA,SAASE,GAA+B,CACtC,OAAKb,EAKE,OAAO,KAAKA,EAAO,MAAM,EAAE,OAAQc,GAASA,IAAS,WAAaA,EAAK,WAAW,GAAG,CAAC,GAJ3F,QAAQ,KAAK,wDAAwD,EAC9D,CAAC,EAIZ,CAMA,SAASC,GAAwB,CACxB,OAAAF,EAAA,EAAqB,QAAU,CACxC,CAQA,SAASG,EAAWC,EAAuC,CACzD,GAAI,CAACd,EACH,MAAM,IAAI,MACR,+DACF,EAEI,MAAAe,EAAUf,EAAW,SAAW,CAAC,EAChC,MAAA,CACL,GAAIe,EAAQ,KAAO,CAAC,EACpB,GAAIA,EAAQD,CAAK,GAAK,CAAA,CACxB,CACF,CASA,SAASE,EACPb,EACAQ,EACY,OACN,MAAAM,GAAgBR,EAAAN,EAAW,SAAX,YAAAM,EAAmB,QAEzC,OAAIE,IAAS,KAAO,CAACR,EAAW,OAAOQ,CAA0B,EACxDM,EAEFC,EACLD,EACAd,EAAW,OAAOQ,CAA0B,CAC9C,CACF,CASA,SAASQ,EAAiBhB,EAAmBC,EAA+D,CACjG,OAAAP,EAAAM,EACTL,EAAUM,GAAc,KACxBL,EAAWG,EAAYL,EAAQ,CAAE,MAAOO,GAAA,YAAAA,EAAY,MAAO,EAC9CJ,EAAAgB,EAAqBnB,EAAQE,CAAQ,EAC3CC,CACT,CAQA,SAASoB,EAAeC,EAA0B,CAChD,GAAI,CAACrB,EACH,MAAM,IAAI,MACR,+DACF,EAEK,OAAAsB,EAAatB,EAAYqB,CAAW,CAC7C"}
package/lib.js CHANGED
@@ -1,4 +1,4 @@
1
- /*! Copyright 2025 Adobe
1
+ /*! Copyright 2026 Adobe
2
2
  All Rights Reserved. */
3
3
  import{S as M}from"./chunks/vcomponent.js";import{R as te,V as ne,c as se,g as ie}from"./chunks/vcomponent.js";import{d as E}from"./chunks/cjs.js";import{d as ae,g as de,b as ue,a as ce,i as pe}from"./chunks/get-price-formatter.js";import{C as fe,I as Se,i as me}from"./chunks/initializer.js";import{IntlContext as k}from"./i18n.js";import{x as R,A as P,h as _,T as L,E as C,q as p,_ as V,y as D,N as q,f as Q}from"./chunks/icons/Add.js";import{g as we,s as ye}from"./chunks/image-params-keymap.js";import{g as Ne,s as be}from"./chunks/locale-config.js";import{g as ve}from"./chunks/get-path-value.js";import"./preact-jsx-runtime.js";import"./signals.js";const H=r=>{const o=new FormData(r);return Object.fromEntries(o)},X=r=>{const o=new FormData(r),n=Object.fromEntries(o);return Object.entries(n).reduce((s,[a])=>{const c=r.elements[a];return c!=null&&c.validationMessage?{...s,[a]:c.validationMessage}:{...s}},{})},T={arrayMerge:(r,o,n)=>{const l=r.slice();return o.forEach((s,a)=>{typeof l[a]>"u"?l[a]=n.cloneUnlessOtherwiseSpecified(s,n):n.isMergeableObject(s)?l[a]=E(r[a],s,n):r.indexOf(s)===-1&&l.push(s)}),l}};function Y(r,o){return o?E(r,o,T):r}const Z=r=>r.replace("_","-");function z(r,o={},n,l,s,a="div"){const c=R(M),g=P(null),h=P("pending"),S=P([]),[y,N]=_({children:[l]}),[I,B]=_({}),v=L(()=>({get:t=>I[t],set:(t,e)=>{B({...v,[t]:e})}}),[I]),{intl:F}=R(k);o.dictionary=F.dictionary,o._setProps=t=>{N(e=>{const i=typeof t=="function"?t(e):t;if(s){const u=C(s(e),{key:"render"}),m=e.children.findIndex(f=>(f==null?void 0:f.key)==="render");e.children[m]=u}return i})};const d=p(t=>{typeof t=="function"?S.current.push(t):console.warn("Skipped: Invalid _registerMethod",t)},[]);o._registerMethod=d;const w=p(t=>V(a,{"data-slot-html-element":t.tagName.toLowerCase(),ref:e=>{e==null||e.appendChild(t)}},null),[a]);o._htmlElementToVNode=w,o.getSlotElement=p(t=>{var i,u;const e=(i=g.current)==null?void 0:i.querySelector(`[data-slot-key="${t}"]`);if(b(`🟦 "${r}" Slot getSlotElement: ${t}`,(u=g.current)==null?void 0:u.cloneNode(!0),e==null?void 0:e.cloneNode(!0)),!!e)return{appendChild:m=>{e.appendChild(m)},prependChild:m=>{e.insertBefore(m,e.firstChild)},appendSibling:m=>{const f=e.parentNode;f==null||f.insertBefore(m,e.nextSibling)},prependSibling:m=>{const f=e.parentNode;f==null||f.insertBefore(m,e)},remove:()=>{e.remove()}}},[r]),o.onRender=p(t=>{S.current.push(t)},[]),o.onChange=o.onRender,o.replaceWith=p(t=>{d(e=>{const i=w(t);e._setProps({children:[i]})})},[w,d]),o.appendChild=p(t=>{d(e=>{const i=w(t);e._setProps(u=>({...u,children:[...u.children,i]}))})},[w,d]),o.prependChild=p(t=>{d(e=>{const i=w(t);e._setProps(u=>({...u,children:[i,...u.children]}))})},[w,d]),o.appendSibling=p(t=>{d(()=>{var i,u;const e=(i=g.current)==null?void 0:i.parentNode;e==null||e.insertBefore(t,((u=g.current)==null?void 0:u.nextSibling)??null)})},[d]),o.prependSibling=p(t=>{d(()=>{var i;const e=(i=g.current)==null?void 0:i.parentNode;e==null||e.insertBefore(t,g.current)})},[d]),o.remove=p(()=>{d(()=>{var t;(t=g.current)==null||t.remove()})},[d]);const O=p(async()=>{if(h.current==="loading")return;h.current="loading",b(`🟨 "${r}" Slot Rendered`);const t=s?C(s(y),{key:"render"}):null;N({children:[t??l]}),S.current.forEach(e=>{e(o,v)}),h.current="ready"},[l,o,r,y,s,v]),j=p(async()=>{if(n)try{h.current="loading",b(`🟩 "${r}" Slot Initialized`),await n(o,g.current)}catch(t){console.error(`Error in "${n.name}" Slot callback`,t)}finally{h.current="ready",await O()}},[n,o,O,r]);return D(()=>{j().finally(()=>{c&&c.value.has(r)&&(c.value.delete(r),c.value=new Set(c.value))})},[]),D(()=>{O()},[JSON.stringify(o),JSON.stringify(I)]),[g,y,h.current]}const $=(r,o)=>q.map(r,n=>Q(n)?n.props.src?C(n,{...n.props,src:o?n.props.src:"","data-original-src":n.props.src}):n.props&&n.props.children?C(n,{...n.props,children:$(n.props.children,o)}):n:n);function x({name:r,lazy:o=!1,context:n,slot:l,children:s,render:a,slotTag:c="div",contentTag:g="div",...h}){const S=R(M),[y,N,I]=z(r,n,l,s,a,g);return L(()=>{if(!r)return console.warn('Slot "name" is required');S&&o===!1&&(S.value.add(r),S.value=new Set(S.value))},[r,o,S]),V(c,{...h,ref:y,"data-slot":r},$(N.children,I==="ready"))}window.DROPINS=window.DROPINS||{};window.DROPINS.showSlots=async r=>{window.sessionStorage.setItem("dropin-debugger--show-slots",r.toString()),document.body.classList.toggle("dropin-debugger--show-slots",r)};let b=()=>{};window.DROPINS.logSlots=async r=>{window.sessionStorage.setItem("dropin-debugger--log-slots",r.toString()),b=r?(...o)=>console.log(...o):()=>{}};window.DROPINS.showSlots(window.sessionStorage.getItem("dropin-debugger--show-slots")==="true");window.DROPINS.logSlots(window.sessionStorage.getItem("dropin-debugger--log-slots")==="true");function ee(r){const o=document.cookie.split(";");let n;return o.forEach(l=>{const[s,a]=l.trim().split("=");s===r&&(n=decodeURIComponent(a))}),n}export{fe as Config,Se as Initializer,te as Render,x as Slot,M as SlotQueueContext,ne as VComponent,se as classes,ae as debounce,E as deepmerge,ie as generateSrcset,ee as getCookie,de as getEffectiveLocale,X as getFormErrors,H as getFormValues,Ne as getGlobalLocale,we as getImageParamsKeyMap,ve as getPathValue,ue as getPriceFormatter,me as initializers,ce as isIOSMobileDevice,pe as isNumber,Y as merge,be as setGlobalLocale,ye as setImageParamsKeyMap,Z as toLanguageTag,z as useSlot};
4
4
  //# sourceMappingURL=lib.js.map
package/package.json CHANGED
@@ -1 +1 @@
1
- {"name": "@dropins/tools", "version": "1.6.0-alpha6", "license": "SEE LICENSE IN LICENSE.md"}
1
+ {"name": "@dropins/tools", "version": "1.6.0-alpha77", "license": "SEE LICENSE IN LICENSE.md"}
package/preact-compat.js CHANGED
@@ -1,4 +1,4 @@
1
- /*! Copyright 2025 Adobe
1
+ /*! Copyright 2026 Adobe
2
2
  All Rights Reserved. */
3
3
  import{N as a,b as t,k as n,C as r,e as u,L as o,U as d,o as l,i as c,G as i,_ as m,j as f,n as E,m as _,R as S,r as p,s as C,u as R,v as y,w as I,z as L,I as N,f as O,F as T,J as b,K as h,M as x,O as D,Q as F,q as M,x as g,P as U,V,y as v,c as A,g as P,d as k,W as w,a as z,T as B,p as W,A as Y,h as j,X as q,Y as G,Z as H}from"./chunks/icons/Add.js";export{a as Children,t as Component,n as Fragment,r as PureComponent,u as StrictMode,o as Suspense,d as SuspenseList,l as __SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED,c as cloneElement,i as createContext,m as createElement,f as createFactory,E as createPortal,_ as createRef,S as default,p as findDOMNode,C as flushSync,R as forwardRef,y as hydrate,I as isElement,L as isFragment,N as isMemo,O as isValidElement,T as lazy,b as memo,h as render,x as startTransition,D as unmountComponentAtNode,F as unstable_batchedUpdates,M as useCallback,g as useContext,U as useDebugValue,V as useDeferredValue,v as useEffect,A as useErrorBoundary,P as useId,k as useImperativeHandle,w as useInsertionEffect,z as useLayoutEffect,B as useMemo,W as useReducer,Y as useRef,j as useState,q as useSyncExternalStore,G as useTransition,H as version};
4
4
  //# sourceMappingURL=preact-compat.js.map
package/preact-hooks.js CHANGED
@@ -1,4 +1,4 @@
1
- /*! Copyright 2025 Adobe
1
+ /*! Copyright 2026 Adobe
2
2
  All Rights Reserved. */
3
3
  import{q as a,x as u,P as t,y as r,c as o,g as f,d as c,a as d,T as l,p as m,A as n,h as p}from"./chunks/icons/Add.js";export{a as useCallback,u as useContext,t as useDebugValue,r as useEffect,o as useErrorBoundary,f as useId,c as useImperativeHandle,d as useLayoutEffect,l as useMemo,m as useReducer,n as useRef,p as useState};
4
4
  //# sourceMappingURL=preact-hooks.js.map
@@ -1,4 +1,4 @@
1
- /*! Copyright 2025 Adobe
1
+ /*! Copyright 2026 Adobe
2
2
  All Rights Reserved. */
3
3
  import{l,k as _}from"./chunks/icons/Add.js";var v=/["&<]/;function p(r){if(r.length===0||v.test(r)===!1)return r;for(var t=0,e=0,a="",n="";e<r.length;e++){switch(r.charCodeAt(e)){case 34:n="&quot;";break;case 38:n="&amp;";break;case 60:n="&lt;";break;default:continue}e!==t&&(a+=r.slice(t,e)),a+=n,t=e+1}return e!==t&&(a+=r.slice(t,e)),a}var y=/acit|ex(?:s|g|n|p|$)|rph|grid|ows|mnc|ntw|ine[ch]|zoo|^ord|itera/i,d=0,x=Array.isArray;function b(r,t,e,a,n,i){t||(t={});var s,o,f=t;if("ref"in f)for(o in f={},t)o=="ref"?s=t[o]:f[o]=t[o];var u={type:r,props:f,key:e,ref:s,__k:null,__:null,__b:0,__e:null,__d:void 0,__c:null,constructor:void 0,__v:--d,__i:-1,__u:0,__source:n,__self:i};if(typeof r=="function"&&(s=r.defaultProps))for(o in s)f[o]===void 0&&(f[o]=s[o]);return l.vnode&&l.vnode(u),u}function k(r){var t=b(_,{tpl:r,exprs:[].slice.call(arguments,1)});return t.key=t.__v,t}var c={},g=/[A-Z]/g;function m(r,t){if(l.attr){var e=l.attr(r,t);if(typeof e=="string")return e}if(r==="ref"||r==="key")return"";if(r==="style"&&typeof t=="object"){var a="";for(var n in t){var i=t[n];if(i!=null&&i!==""){var s=n[0]=="-"?n:c[n]||(c[n]=n.replace(g,"-$&").toLowerCase()),o=";";typeof i!="number"||s.startsWith("--")||y.test(s)||(o="px;"),a=a+s+":"+i+o}}return r+'="'+a+'"'}return t==null||t===!1||typeof t=="function"||typeof t=="object"?"":t===!0?r:r+'="'+p(t)+'"'}function j(r){if(r==null||typeof r=="boolean"||typeof r=="function")return null;if(typeof r=="object"){if(r.constructor===void 0)return r;if(x(r)){for(var t=0;t<r.length;t++)r[t]=j(r[t]);return r}}return p(""+r)}export{_ as Fragment,b as jsx,m as jsxAttr,b as jsxDEV,j as jsxEscape,k as jsxTemplate,b as jsxs};
4
4
  //# sourceMappingURL=preact-jsx-runtime.js.map
package/preact.js CHANGED
@@ -1,4 +1,4 @@
1
- /*! Copyright 2025 Adobe
1
+ /*! Copyright 2026 Adobe
2
2
  All Rights Reserved. */
3
3
  import{b as t,k as s,E as r,G as n,_ as o,m as l,_ as m,D as c,t as d,l as i,B as E,H as h}from"./chunks/icons/Add.js";export{t as Component,s as Fragment,r as cloneElement,n as createContext,o as createElement,l as createRef,m as h,c as hydrate,d as isValidElement,i as options,E as render,h as toChildArray};
4
4
  //# sourceMappingURL=preact.js.map
package/recaptcha.js CHANGED
@@ -1,4 +1,4 @@
1
- /*! Copyright 2025 Adobe
1
+ /*! Copyright 2026 Adobe
2
2
  All Rights Reserved. */
3
3
  import{FetchGraphQL as l}from"./fetch-graphql.js";const n={failedFetch:"Failed to fetch config from backend with status:",failedSetStorageConfig:"Failed to set storage config",failedGetStorageConfig:"Configuration could not be loaded.",failedExecutionRecaptcha:"Recaptcha execution failed",failedInitializing:"An error occurred while initializing ReCaptcha:"},u={PLACE_ORDER:"placeOrder",CONTACT:"contactUs",CUSTOMER_LOGIN:"generateCustomerToken",CUSTOMER_FORGOT_PASSWORD:"requestPasswordResetEmail",CUSTOMER_CREATE:"createCustomerV2",CUSTOMER_EDIT:"updateCustomerV2",NEWSLETTER:"subscribeEmailToNewsletter",PRODUCT_REVIEW:"createProductReview",SENDFRIEND:"SENDFRIEND",BRAINTREE:"BRAINTREE"},h=".grecaptcha-badge iframe",f=(o,e)=>{if(o&&o.forms){const t=o.forms.concat(e).map(a=>typeof a!="string"?{...a,enabledBadgePlace:!1}:{badgeId:u[a],enabledBadgePlace:!1});return{...o,forms:[...new Set(t)]}}},g=async(o,e=1,t=1e3)=>{const a=sessionStorage.getItem(o);return a!==null?JSON.parse(a):e>0?(await new Promise(r=>setTimeout(r,t)),g(o,e-1,t)):null},p=(o,e,t)=>{if(!o||!e.websiteKey)return null;try{sessionStorage.setItem(o,JSON.stringify(e))}catch(a){return t&&console.error(n.failedSetStorageConfig,a),null}},C=o=>new Promise((e,t)=>{try{if(document.querySelector(o)){e();return}const a=new MutationObserver(()=>{document.querySelector(o)&&(e(),a.disconnect())});a.observe(document.body,{childList:!0,subtree:!1})}catch(a){t(a)}}),m=async()=>{try{return await C(h),!0}catch{return!1}},b=o=>{const e=t=>t.replace(/_([a-z])/g,(a,r)=>r.toUpperCase());return Object.keys(o).reduce((t,a)=>{const r=e(a);return t[r]=o[a],t},{})},{failedExecutionRecaptcha:d}=n,y=async o=>{if(!window.grecaptcha)return Promise.reject(d);try{return await window.grecaptcha.execute(o,{action:"click"})}catch(e){return Promise.reject(`${d} : ${e}`)}},_=()=>new Promise(o=>{const e=new MutationObserver((a,r)=>{window.grecaptcha&&(r.disconnect(),o(!0))}),t={childList:!0,subtree:!0,attributes:!0};e.observe(document.body,t)}),w=async(o,e,t)=>(window.grecaptcha||await _(),grecaptcha.ready(()=>{const a=document.querySelectorAll(`#${o}`);a.length&&(a.forEach(r=>r.id=`${r.id}_${Math.random().toString(36)}`),a.forEach(r=>{if(r.innerHTML==="")try{grecaptcha.render(r.id,{sitekey:e.websiteKey,badge:e.badgePosition,size:"invisible",theme:e.theme??"light"})}catch(i){t&&console.error(i)}}))})),S=`query {
4
4
  recaptchaV3Config {
@@ -1,4 +1,4 @@
1
- /*! Copyright 2025 Adobe
1
+ /*! Copyright 2026 Adobe
2
2
  All Rights Reserved. */
3
3
  console.warn(`[importmap not supported] This browser does not support import maps. A fallback shim is now being used to enable module loading.
4
4
  `,`You may see warnings like: "Relative module specifiers must start with './', '../', or '/'." — these can be safely ignored.`);document.head.prepend(Object.assign(document.createElement("script"),{type:"esms-options",innerHTML:JSON.stringify({shimMode:!0})}));document.querySelectorAll("script").forEach(U=>{U.type==="importmap"?U.setAttribute("type","importmap-shim"):U.type==="module"&&U.setAttribute("type","module-shim")});(function(){const U=typeof document<"u",Q=()=>{},dt=U?document.querySelector("script[type=esms-options]"):void 0,j=dt?JSON.parse(dt.innerHTML):{};Object.assign(j,self.esmsInitOptions||{});let y=!U||!!j.shimMode;const ge=ee(y&&j.onimport),ve=ee(y&&j.resolve);let Yt=j.fetch?ee(j.fetch):fetch;const Gt=j.meta?ee(y&&j.meta):Q,pt=j.mapOverrides;let N=j.nonce;if(!N&&U){const r=document.querySelector("script[nonce]");r&&(N=r.nonce||r.getAttribute("nonce"))}const Qt=ee(j.onerror||Q),{revokeBlobURLs:bt,noLoadEventRetriggers:$e,globalLoadEventRetrigger:Vt,enforceIntegrity:Xt}=j;function ee(r){return typeof r=="string"?self[r]:r}const Ae=Array.isArray(j.polyfillEnable)?j.polyfillEnable:[],Se=Ae.includes("css-modules"),Oe=Ae.includes("json-modules"),te=Ae.includes("wasm-modules"),re=Ae.includes("source-phase"),mt=j.onpolyfill?ee(j.onpolyfill):()=>{console.log("%c^^ Module error above is polyfilled and can be ignored ^^","font-weight:900;color:#391")},Zt=!navigator.userAgentData&&!!navigator.userAgent.match(/Edge\/\d+\.\d+/),V=U?document.baseURI:`${location.protocol}//${location.host}${location.pathname.includes("/")?location.pathname.slice(0,location.pathname.lastIndexOf("/")+1):location.pathname}`,I=(r,n="text/javascript")=>URL.createObjectURL(new Blob([r],{type:n}));let{skip:W}=j;if(Array.isArray(W)){const r=W.map(n=>new URL(n,V).href);W=n=>r.some(o=>o[o.length-1]==="/"&&n.startsWith(o)||n===o)}else if(typeof W=="string"){const r=new RegExp(W);W=n=>r.test(n)}else W instanceof RegExp&&(W=r=>W.test(r));const e0=r=>self.dispatchEvent(Object.assign(new Event("error"),{error:r})),qe=r=>{(self.reportError||e0)(r),Qt(r)};function oe(r){return r?` imported from ${r}`:""}let Ee=!1;function t0(){Ee=!0}if(!y)if(document.querySelectorAll("script[type=module-shim],script[type=importmap-shim],link[rel=modulepreload-shim]").length)y=!0;else{let r=!1;for(const n of document.querySelectorAll("script[type=module],script[type=importmap]"))if(r){if(n.type==="importmap"&&r){Ee=!0;break}}else n.type!=="module"||n.ep||(r=!0)}const r0=/\\/g;function xe(r){try{if(r.indexOf(":")!==-1)return new URL(r).href}catch{}}function ht(r,n){return D(r,n)||xe(r)||D("./"+r,n)}function D(r,n){const o=n.indexOf("#"),d=n.indexOf("?");if(o+d>-2&&(n=n.slice(0,o===-1?d:d===-1||d>o?o:d)),r.indexOf("\\")!==-1&&(r=r.replace(r0,"/")),r[0]==="/"&&r[1]==="/")return n.slice(0,n.indexOf(":")+1)+r;if(r[0]==="."&&(r[1]==="/"||r[1]==="."&&(r[2]==="/"||r.length===2&&(r+="/"))||r.length===1&&(r+="/"))||r[0]==="/"){const c=n.slice(0,n.indexOf(":")+1);if(c==="blob:")throw new TypeError(`Failed to resolve module specifier "${r}". Invalid relative url or base scheme isn't hierarchical.`);let l;if(n[c.length+1]==="/"?c!=="file:"?(l=n.slice(c.length+2),l=l.slice(l.indexOf("/")+1)):l=n.slice(8):l=n.slice(c.length+(n[c.length]==="/")),r[0]==="/")return n.slice(0,n.length-l.length-1)+r;const p=l.slice(0,l.lastIndexOf("/")+1)+r,m=[];let w=-1;for(let b=0;b<p.length;b++)if(w===-1){if(p[b]==="."){if(p[b+1]==="."&&(p[b+2]==="/"||b+2===p.length)){m.pop(),b+=2;continue}if(p[b+1]==="/"||b+1===p.length){b+=1;continue}}for(;p[b]==="/";)b++;w=b}else p[b]==="/"&&(m.push(p.slice(w,b+1)),w=-1);return w!==-1&&m.push(p.slice(w)),n.slice(0,n.length-l.length)+m.join("")}}function kt(r,n,o){const d={imports:Object.assign({},o.imports),scopes:Object.assign({},o.scopes),integrity:Object.assign({},o.integrity)};if(r.imports&&yt(r.imports,d.imports,n,o),r.scopes)for(let c in r.scopes){const l=ht(c,n);yt(r.scopes[c],d.scopes[l]||(d.scopes[l]={}),n,o)}return r.integrity&&s0(r.integrity,d.integrity,n),d}function Je(r,n){if(n[r])return r;let o=r.length;do{const d=r.slice(0,o+1);if(d in n)return d}while((o=r.lastIndexOf("/",o-1))!==-1)}function wt(r,n){const o=Je(r,n);if(o){const d=n[o];return d===null?void 0:d+r.slice(o.length)}}function De(r,n,o){let d=o&&Je(o,r.scopes);for(;d;){const c=wt(n,r.scopes[d]);if(c)return c;d=Je(d.slice(0,d.lastIndexOf("/")),r.scopes)}return wt(n,r.imports)||n.indexOf(":")!==-1&&n}function yt(r,n,o,d){for(let c in r){const l=D(c,o)||c;if((!y||!pt)&&n[l]&&n[l]!==r[l])throw Error(`Rejected map override "${l}" from ${n[l]} to ${r[l]}.`);let p=r[c];if(typeof p!="string")continue;const m=De(d,D(p,o)||p,o);m?n[l]=m:console.warn(`Mapping "${c}" -> "${r[c]}" does not resolve`)}}function s0(r,n,o){for(let d in r){const c=D(d,o)||d;if((!y||!pt)&&n[c]&&n[c]!==r[c])throw Error(`Rejected map integrity override "${c}" from ${n[c]} to ${r[c]}.`);n[c]=r[d]}}let H=!U&&(0,eval)("u=>import(u)"),ce;const n0=U&&new Promise(r=>{const n=Object.assign(document.createElement("script"),{src:I("self._d=u=>import(u)"),ep:!0});n.setAttribute("nonce",N),n.addEventListener("load",()=>{if(!(ce=!!(H=self._d))){let o;window.addEventListener("error",d=>o=d),H=(d,c)=>new Promise((l,p)=>{const m=Object.assign(document.createElement("script"),{type:"module",src:I(`import*as m from'${d}';self._esmsi=m`)});o=void 0,m.ep=!0,N&&m.setAttribute("nonce",N),m.addEventListener("error",w),m.addEventListener("load",w);function w(b){document.head.removeChild(m),self._esmsi?(l(self._esmsi,V),self._esmsi=void 0):(p(!(b instanceof Event)&&b||o&&o.error||new Error(`Error loading ${c&&c.errUrl||d} (${m.src}).`)),o=void 0)}document.head.appendChild(m)})}document.head.removeChild(n),delete self._d,r()}),document.head.appendChild(n)});let Le=!1,Ce=!1;const Fe=U&&HTMLScriptElement.supports;let se=Fe&&Fe.name==="supports"&&Fe("importmap"),je=ce,Me=!1,Ue=!1;const Ie=[0,97,115,109,1,0,0,0];let i0=Promise.resolve(n0).then(()=>{if(ce)return U?new Promise(r=>{const n=document.createElement("iframe");n.style.display="none",n.setAttribute("nonce",N);function o({data:m}){Array.isArray(m)&&m[0]==="esms"&&([,se,je,Ce,Le,Me,Ue]=m,r(),document.head.removeChild(n),window.removeEventListener("message",o,!1))}window.addEventListener("message",o,!1);const d=`<script nonce=${N||""}>b=(s,type='text/javascript')=>URL.createObjectURL(new Blob([s],{type}));document.head.appendChild(Object.assign(document.createElement('script'),{type:'importmap',nonce:"${N}",innerText:\`{"imports":{"x":"\${b('')}"}}\`}));Promise.all([${se?"true,true":"'x',b('import.meta')"}, ${Se?`b(\`import"\${b('','text/css')}"with{type:"css"}\`)`:"false"}, ${Oe?`b(\`import"\${b('{}','text/json')}"with{type:"json"}\`)`:"false"}, ${te?`b(\`import"\${b(new Uint8Array(${JSON.stringify(Ie)}),'application/wasm')}"\`)`:"false"}, ${te&&re?`b(\`import source x from "\${b(new Uint8Array(${JSON.stringify(Ie)}),'application/wasm')}"\`)`:"false"}].map(x =>typeof x==='string'?import(x).then(()=>true,()=>false):x)).then(a=>parent.postMessage(['esms'].concat(a),'*'))<\/script>`;let c=!1,l=!1;function p(){if(!c){l=!0;return}const m=n.contentDocument;if(m&&m.head.childNodes.length===0){const w=m.createElement("script");N&&w.setAttribute("nonce",N),w.innerHTML=d.slice(15+(N?N.length:0),-9),m.head.appendChild(w)}}n.onload=p,document.head.appendChild(n),c=!0,"srcdoc"in n?n.srcdoc=d:n.contentDocument.write(d),l&&p()}):Promise.all([se||H(I("import.meta")).then(()=>je=!0,Q),Se&&H(I(`import"${I("","text/css")}"with{type:"css"}`)).then(()=>Ce=!0,Q),Oe&&H(I(`import"${I("{}","text/json")}"with{type:"json"}`)).then(()=>Le=!0,Q),te&&H(I(`import"${I(new Uint8Array(Ie),"application/wasm")}"`)).then(()=>Me=!0,Q),te&&re&&H(I(`import source x from"${I(new Uint8Array(Ie),"application/wasm")}"`)).then(()=>Ue=!0,Q)])}),A,Pe,Be,le=2<<19;const gt=new Uint8Array(new Uint16Array([1]).buffer)[0]===1?function(r,n){const o=r.length;let d=0;for(;d<o;)n[d]=r.charCodeAt(d++)}:function(r,n){const o=r.length;let d=0;for(;d<o;){const c=r.charCodeAt(d);n[d++]=(255&c)<<8|c>>>8}},a0="xportmportlassetaourceromsyncunctionssertvoyiedelecontininstantybreareturdebuggeawaithrwhileforifcatcfinallels";let O,vt,g;function o0(r,n="@"){O=r,vt=n;const o=2*O.length+(2<<18);if(o>le||!A){for(;o>le;)le*=2;Pe=new ArrayBuffer(le),gt(a0,new Uint16Array(Pe,16,110)),A=function(p,m,w){var b=new p.Int8Array(w),f=new p.Int16Array(w),t=new p.Int32Array(w),R=new p.Uint8Array(w),$=new p.Uint16Array(w),E=1040;function _(){var e=0,s=0,a=0,u=0,i=0,h=0;h=E,E=E+10240|0,b[804]=1,b[803]=0,f[399]=0,f[400]=0,t[69]=t[2],b[805]=0,t[68]=0,b[802]=0,t[70]=h+2048,t[71]=h,b[806]=0,e=(t[3]|0)+-2|0,t[72]=e,s=e+(t[66]<<1)|0,t[73]=s;e:for(;;){if(a=e+2|0,t[72]=a,e>>>0>=s>>>0){i=18;break}r:do switch(f[a>>1]|0){case 9:case 10:case 11:case 12:case 13:case 32:break;case 101:{if(!(f[400]|0)&&we(a)|0&&!(P(e+4|0,16,10)|0)&&(K(),(b[804]|0)==0)){i=9;break e}else i=17;break}case 105:{we(a)|0&&!(P(e+4|0,26,10)|0)&&Y(),i=17;break}case 59:{i=17;break}case 47:switch(f[e+4>>1]|0){case 47:{at();break r}case 42:{it(1);break r}default:{i=16;break e}}default:{i=16;break e}}while(!1);(i|0)==17&&(i=0,t[69]=t[72]),e=t[72]|0,s=t[73]|0}(i|0)==9?(e=t[72]|0,t[69]=e,i=19):(i|0)==16?(b[804]=0,t[72]=e,i=19):(i|0)==18&&(b[802]|0?e=0:(e=a,i=19));do if((i|0)==19){e:for(;;){if(s=e+2|0,t[72]=s,e>>>0>=(t[73]|0)>>>0){i=86;break}r:do switch(f[s>>1]|0){case 9:case 10:case 11:case 12:case 13:case 32:break;case 101:{!(f[400]|0)&&we(s)|0&&!(P(e+4|0,16,10)|0)&&K(),i=85;break}case 105:{we(s)|0&&!(P(e+4|0,26,10)|0)&&Y(),i=85;break}case 99:{we(s)|0&&!(P(e+4|0,36,8)|0)&&ae(f[e+12>>1]|0)|0&&(b[806]=1),i=85;break}case 40:{u=t[70]|0,s=f[400]|0,i=s&65535,t[u+(i<<3)>>2]=1,a=t[69]|0,f[400]=s+1<<16>>16,t[u+(i<<3)+4>>2]=a,i=85;break}case 41:{if(s=f[400]|0,!(s<<16>>16)){i=36;break e}i=s+-1<<16>>16,f[400]=i,u=f[399]|0,s=u&65535,u<<16>>16&&(t[(t[70]|0)+((i&65535)<<3)>>2]|0)==5&&(s=t[(t[71]|0)+(s+-1<<2)>>2]|0,a=s+4|0,t[a>>2]|0||(t[a>>2]=(t[69]|0)+2),t[s+12>>2]=e+4,f[399]=u+-1<<16>>16),i=85;break}case 123:{i=t[69]|0,u=t[63]|0,e=i;do if((f[i>>1]|0)==41&(u|0)!=0&&(t[u+4>>2]|0)==(i|0))if(s=t[64]|0,t[63]=s,s){t[s+32>>2]=0;break}else{t[59]=0;break}while(!1);u=t[70]|0,a=f[400]|0,i=a&65535,t[u+(i<<3)>>2]=b[806]|0?6:2,f[400]=a+1<<16>>16,t[u+(i<<3)+4>>2]=e,b[806]=0,i=85;break}case 125:{if(e=f[400]|0,!(e<<16>>16)){i=49;break e}u=t[70]|0,i=e+-1<<16>>16,f[400]=i,(t[u+((i&65535)<<3)>>2]|0)==4&&me(),i=85;break}case 39:{M(39),i=85;break}case 34:{M(34),i=85;break}case 47:switch(f[e+4>>1]|0){case 47:{at();break r}case 42:{it(1);break r}default:{e=t[69]|0,s=f[e>>1]|0;t:do if(y0(s)|0)switch(s<<16>>16){case 46:if(((f[e+-2>>1]|0)+-48&65535)<10){i=66;break t}else break t;case 43:if((f[e+-2>>1]|0)==43){i=66;break t}else break t;case 45:if((f[e+-2>>1]|0)==45){i=66;break t}else break t;default:break t}else{switch(s<<16>>16){case 41:if(A0(t[(t[70]|0)+($[400]<<3)+4>>2]|0)|0)break t;i=66;break t;case 125:break;default:{i=66;break t}}a=t[70]|0,u=$[400]|0,!(w0(t[a+(u<<3)+4>>2]|0)|0)&&(t[a+(u<<3)>>2]|0)!=6&&(i=66)}while(!1);t:do if((i|0)==66&&!(L(e)|0)){switch(s<<16>>16){case 0:break t;case 47:{if(b[805]|0)break t;break}default:}if(i=t[65]|0,i|0&&e>>>0>=(t[i>>2]|0)>>>0&&e>>>0<=(t[i+4>>2]|0)>>>0){nt(),b[805]=0,i=85;break r}a=t[3]|0;do{if(e>>>0<=a>>>0)break;e=e+-2|0,t[69]=e,s=f[e>>1]|0}while(!(We(s)|0));if(He(s)|0){do{if(e>>>0<=a>>>0)break;e=e+-2|0,t[69]=e}while(He(f[e>>1]|0)|0);if(v0(e)|0){nt(),b[805]=0,i=85;break r}}b[805]=1,i=85;break r}while(!1);nt(),b[805]=0,i=85;break r}}case 96:{u=t[70]|0,a=f[400]|0,i=a&65535,t[u+(i<<3)+4>>2]=t[69],f[400]=a+1<<16>>16,t[u+(i<<3)>>2]=3,me(),i=85;break}default:i=85}while(!1);(i|0)==85&&(i=0,t[69]=t[72]),e=t[72]|0}if((i|0)==36){T(),e=0;break}else if((i|0)==49){T(),e=0;break}else if((i|0)==86){e=b[802]|0?0:(f[399]|f[400])<<16>>16==0;break}}while(!1);return E=h,e|0}function K(){var e=0,s=0,a=0,u=0,i=0,h=0,x=0,Z=0,ct=0,lt=0,ft=0,ut=0,v=0,S=0;Z=t[72]|0,ct=t[65]|0,S=Z+12|0,t[72]=S,a=k(1)|0,e=t[72]|0,(e|0)==(S|0)&&!(Ne(a)|0)||(v=3);e:do if((v|0)==3){r:do switch(a<<16>>16){case 123:{for(t[72]=e+2,e=k(1)|0,s=t[72]|0;;){if(ye(e)|0?(M(e),e=(t[72]|0)+2|0,t[72]=e):(J(e)|0,e=t[72]|0),k(1)|0,e=he(s,e)|0,e<<16>>16==44&&(t[72]=(t[72]|0)+2,e=k(1)|0),e<<16>>16==125){v=15;break}if(S=s,s=t[72]|0,(s|0)==(S|0)){v=12;break}if(s>>>0>(t[73]|0)>>>0){v=14;break}}if((v|0)==12){T();break e}else if((v|0)==14){T();break e}else if((v|0)==15){b[803]=1,t[72]=(t[72]|0)+2;break r}break}case 42:{t[72]=e+2,k(1)|0,S=t[72]|0,he(S,S)|0;break}default:{switch(b[804]=0,a<<16>>16){case 100:{switch(Z=e+14|0,t[72]=Z,(k(1)|0)<<16>>16){case 97:{s=t[72]|0,!(P(s+2|0,66,8)|0)&&(i=s+10|0,He(f[i>>1]|0)|0)&&(t[72]=i,k(0)|0,v=22);break}case 102:{v=22;break}case 99:{s=t[72]|0,!(P(s+2|0,36,8)|0)&&(u=s+10|0,S=f[u>>1]|0,ae(S)|0|S<<16>>16==123)&&(t[72]=u,h=k(1)|0,h<<16>>16!=123)&&(ut=h,v=31);break}default:}t:do if((v|0)==22&&(x=t[72]|0,(P(x+2|0,74,14)|0)==0)){if(a=x+16|0,s=f[a>>1]|0,!(ae(s)|0))switch(s<<16>>16){case 40:case 42:break;default:break t}t[72]=a,s=k(1)|0,s<<16>>16==42&&(t[72]=(t[72]|0)+2,s=k(1)|0),s<<16>>16!=40&&(ut=s,v=31)}while(!1);if((v|0)==31&&(lt=t[72]|0,J(ut)|0,ft=t[72]|0,ft>>>0>lt>>>0)){ie(e,Z,lt,ft),t[72]=(t[72]|0)+-2;break e}ie(e,Z,0,0),t[72]=e+12;break e}case 97:{t[72]=e+10,k(0)|0,e=t[72]|0,v=35;break}case 102:{v=35;break}case 99:{if(!(P(e+2|0,36,8)|0)&&(s=e+10|0,We(f[s>>1]|0)|0)){t[72]=s,S=k(1)|0,v=t[72]|0,J(S)|0,S=t[72]|0,ie(v,S,v,S),t[72]=(t[72]|0)+-2;break e}e=e+4|0,t[72]=e;break}case 108:case 118:break;default:break e}if((v|0)==35){t[72]=e+16,e=k(1)|0,e<<16>>16==42&&(t[72]=(t[72]|0)+2,e=k(1)|0),v=t[72]|0,J(e)|0,S=t[72]|0,ie(v,S,v,S),t[72]=(t[72]|0)+-2;break e}t[72]=e+6,b[804]=0,a=k(1)|0,e=t[72]|0,a=(J(a)|0|32)<<16>>16==123,u=t[72]|0,a&&(t[72]=u+2,S=k(1)|0,e=t[72]|0,J(S)|0);t:for(;s=t[72]|0,(s|0)!=(e|0);){if(ie(e,s,e,s),s=k(1)|0,a)switch(s<<16>>16){case 93:case 125:break e;default:}if(e=t[72]|0,s<<16>>16!=44){v=51;break}switch(t[72]=e+2,s=k(1)|0,e=t[72]|0,s<<16>>16){case 91:case 123:{v=51;break t}default:}J(s)|0}if((v|0)==51&&(t[72]=e+-2),!a)break e;t[72]=u+-2;break e}}while(!1);if(S=(k(1)|0)<<16>>16==102,e=t[72]|0,S&&!(P(e+2|0,60,6)|0))for(t[72]=e+8,G(Z,k(1)|0,0),e=ct|0?ct+16|0:240;;){if(e=t[e>>2]|0,!e)break e;t[e+12>>2]=0,t[e+8>>2]=0,e=e+16|0}t[72]=e+-2}while(!1)}function Y(){var e=0,s=0,a=0,u=0,i=0,h=0,x=0;i=t[72]|0,a=i+12|0,t[72]=a,u=k(1)|0,s=t[72]|0;e:do if(u<<16>>16!=46)u<<16>>16==115&s>>>0>a>>>0?!(P(s+2|0,50,10)|0)&&(e=s+12|0,ae(f[e>>1]|0)|0)?h=14:(s=6,a=0,h=46):(e=u,a=0,h=15);else switch(t[72]=s+2,(k(1)|0)<<16>>16){case 109:{if(e=t[72]|0,P(e+2|0,44,6)|0||(s=t[69]|0,!(ot(s)|0)&&(f[s>>1]|0)==46))break e;q(i,i,e+8|0,2);break e}case 115:{if(e=t[72]|0,P(e+2|0,50,10)|0||(s=t[69]|0,!(ot(s)|0)&&(f[s>>1]|0)==46))break e;e=e+12|0,h=14;break e}default:break e}while(!1);(h|0)==14&&(t[72]=e,e=k(1)|0,a=1,h=15);e:do if((h|0)==15)switch(e<<16>>16){case 40:{if(s=t[70]|0,x=f[400]|0,u=x&65535,t[s+(u<<3)>>2]=5,e=t[72]|0,f[400]=x+1<<16>>16,t[s+(u<<3)+4>>2]=e,(f[t[69]>>1]|0)==46)break e;switch(t[72]=e+2,s=k(1)|0,q(i,t[72]|0,0,e),a?(e=t[63]|0,t[e+28>>2]=5):e=t[63]|0,i=t[71]|0,x=f[399]|0,f[399]=x+1<<16>>16,t[i+((x&65535)<<2)>>2]=e,s<<16>>16){case 39:{M(39);break}case 34:{M(34);break}default:{t[72]=(t[72]|0)+-2;break e}}switch(e=(t[72]|0)+2|0,t[72]=e,(k(1)|0)<<16>>16){case 44:{t[72]=(t[72]|0)+2,k(1)|0,i=t[63]|0,t[i+4>>2]=e,x=t[72]|0,t[i+16>>2]=x,b[i+24>>0]=1,t[72]=x+-2;break e}case 41:{f[400]=(f[400]|0)+-1<<16>>16,x=t[63]|0,t[x+4>>2]=e,t[x+12>>2]=(t[72]|0)+2,b[x+24>>0]=1,f[399]=(f[399]|0)+-1<<16>>16;break e}default:{t[72]=(t[72]|0)+-2;break e}}}case 123:{if(a){s=12,a=1,h=46;break e}if(e=t[72]|0,f[400]|0){t[72]=e+-2;break e}for(;!(e>>>0>=(t[73]|0)>>>0);){if(e=k(1)|0,ye(e)|0)M(e);else if(e<<16>>16==125){h=36;break}e=(t[72]|0)+2|0,t[72]=e}if((h|0)==36&&(t[72]=(t[72]|0)+2),x=(k(1)|0)<<16>>16==102,e=t[72]|0,x&&P(e+2|0,60,6)|0){T();break e}if(t[72]=e+8,e=k(1)|0,ye(e)|0){G(i,e,0);break e}else{T();break e}}default:{if(a){s=12,a=1,h=46;break e}switch(e<<16>>16){case 42:case 39:case 34:{a=0,h=48;break e}default:{s=6,a=0,h=46;break e}}}}while(!1);(h|0)==46&&(e=t[72]|0,(e|0)==(i+(s<<1)|0)?t[72]=e+-2:h=48);do if((h|0)==48){if(f[400]|0){t[72]=(t[72]|0)+-2;break}for(e=t[73]|0,s=t[72]|0;;){if(s>>>0>=e>>>0){h=55;break}if(u=f[s>>1]|0,ye(u)|0){h=53;break}x=s+2|0,t[72]=x,s=x}if((h|0)==53){G(i,u,a);break}else if((h|0)==55){T();break}}while(!1)}function L(e){e=e|0;var s=0,a=0;e:do switch(f[e>>1]|0){case 100:switch(f[e+-2>>1]|0){case 105:{s=C(e+-4|0,98,2)|0;break e}case 108:{s=C(e+-4|0,102,3)|0;break e}default:{s=0;break e}}case 101:switch(f[e+-2>>1]|0){case 115:switch(f[e+-4>>1]|0){case 108:{s=ke(e+-6|0,101)|0;break e}case 97:{s=ke(e+-6|0,99)|0;break e}default:{s=0;break e}}case 116:{s=C(e+-4|0,108,4)|0;break e}case 117:{s=C(e+-4|0,116,6)|0;break e}default:{s=0;break e}}case 102:{if((f[e+-2>>1]|0)==111)if(a=e+-4|0,(a|0)!=(t[3]|0)&&(s=f[a>>1]|0,!(We(s)|0)))if(s<<16>>16==101)switch(f[e+-6>>1]|0){case 99:{s=C(e+-8|0,128,6)|0;break e}case 112:{s=C(e+-8|0,140,2)|0;break e}default:{s=0;break e}}else s=0;else s=1;else s=0;break}case 107:{s=C(e+-2|0,144,4)|0;break}case 110:{s=e+-2|0,ke(s,105)|0?s=1:s=C(s,152,5)|0;break}case 111:{s=ke(e+-2|0,100)|0;break}case 114:{s=C(e+-2|0,162,7)|0;break}case 116:{s=C(e+-2|0,176,4)|0;break}case 119:switch(f[e+-2>>1]|0){case 101:{s=ke(e+-4|0,110)|0;break e}case 111:{s=C(e+-4|0,184,3)|0;break e}default:{s=0;break e}}default:s=0}while(!1);return s|0}function G(e,s,a){e=e|0,s=s|0,a=a|0;var u=0,i=0;switch(u=(t[72]|0)+2|0,s<<16>>16){case 39:{M(39),i=5;break}case 34:{M(34),i=5;break}default:T()}do if((i|0)==5){if(q(e,u,t[72]|0,1),a&&(t[(t[63]|0)+28>>2]=4),t[72]=(t[72]|0)+2,s=k(0)|0,a=s<<16>>16==97,a?(u=t[72]|0,P(u+2|0,88,10)|0&&(i=13)):(u=t[72]|0,s<<16>>16==119&&(f[u+2>>1]|0)==105&&(f[u+4>>1]|0)==116&&(f[u+6>>1]|0)==104||(i=13)),(i|0)==13){t[72]=u+-2;break}if(t[72]=u+((a?6:4)<<1),(k(1)|0)<<16>>16!=123){t[72]=u;break}a=t[72]|0,s=a;e:for(;;){switch(t[72]=s+2,s=k(1)|0,s<<16>>16){case 39:{M(39),t[72]=(t[72]|0)+2,s=k(1)|0;break}case 34:{M(34),t[72]=(t[72]|0)+2,s=k(1)|0;break}default:s=J(s)|0}if(s<<16>>16!=58){i=22;break}switch(t[72]=(t[72]|0)+2,(k(1)|0)<<16>>16){case 39:{M(39);break}case 34:{M(34);break}default:{i=26;break e}}switch(t[72]=(t[72]|0)+2,(k(1)|0)<<16>>16){case 125:{i=31;break e}case 44:break;default:{i=30;break e}}if(t[72]=(t[72]|0)+2,(k(1)|0)<<16>>16==125){i=31;break}s=t[72]|0}if((i|0)==22){t[72]=u;break}else if((i|0)==26){t[72]=u;break}else if((i|0)==30){t[72]=u;break}else if((i|0)==31){i=t[63]|0,t[i+16>>2]=a,t[i+12>>2]=(t[72]|0)+2;break}}while(!1)}function me(){var e=0,s=0,a=0,u=0;s=t[73]|0,a=t[72]|0;e:for(;;){if(e=a+2|0,a>>>0>=s>>>0){s=10;break}switch(f[e>>1]|0){case 96:{s=7;break e}case 36:{if((f[a+4>>1]|0)==123){s=6;break e}break}case 92:{e=a+4|0;break}default:}a=e}(s|0)==6?(e=a+4|0,t[72]=e,s=t[70]|0,u=f[400]|0,a=u&65535,t[s+(a<<3)>>2]=4,f[400]=u+1<<16>>16,t[s+(a<<3)+4>>2]=e):(s|0)==7?(t[72]=e,a=t[70]|0,u=(f[400]|0)+-1<<16>>16,f[400]=u,(t[a+((u&65535)<<3)>>2]|0)!=3&&T()):(s|0)==10&&(t[72]=e,T())}function k(e){e=e|0;var s=0,a=0,u=0;a=t[72]|0;e:do{s=f[a>>1]|0;r:do if(s<<16>>16!=47)if(e){if(ae(s)|0)break;break e}else{if(He(s)|0)break;break e}else switch(f[a+2>>1]|0){case 47:{at();break r}case 42:{it(e);break r}default:{s=47;break e}}while(!1);u=t[72]|0,a=u+2|0,t[72]=a}while(u>>>0<(t[73]|0)>>>0);return s|0}function q(e,s,a,u){e=e|0,s=s|0,a=a|0,u=u|0;var i=0,h=0;h=t[67]|0,t[67]=h+36,i=t[63]|0,t[(i|0?i+32|0:236)>>2]=h,t[64]=i,t[63]=h,t[h+8>>2]=e,(u|0)==2?(e=3,i=a):(i=(u|0)==1,e=i?1:2,i=i?a+2|0:0),t[h+12>>2]=i,t[h+28>>2]=e,t[h>>2]=s,t[h+4>>2]=a,t[h+16>>2]=0,t[h+20>>2]=u,s=(u|0)==1,b[h+24>>0]=s&1,t[h+32>>2]=0,s|(u|0)==2&&(b[803]=1)}function M(e){e=e|0;var s=0,a=0,u=0,i=0;for(i=t[73]|0,s=t[72]|0;;){if(u=s+2|0,s>>>0>=i>>>0){s=9;break}if(a=f[u>>1]|0,a<<16>>16==e<<16>>16){s=10;break}if(a<<16>>16==92)a=s+4|0,(f[a>>1]|0)==13?(s=s+6|0,s=(f[s>>1]|0)==10?s:a):s=a;else if(Kt(a)|0){s=9;break}else s=u}(s|0)==9?(t[72]=u,T()):(s|0)==10&&(t[72]=u)}function he(e,s){e=e|0,s=s|0;var a=0,u=0,i=0,h=0;return a=t[72]|0,u=f[a>>1]|0,h=(e|0)==(s|0),i=h?0:e,h=h?0:s,u<<16>>16==97&&(t[72]=a+4,a=k(1)|0,e=t[72]|0,ye(a)|0?(M(a),s=(t[72]|0)+2|0,t[72]=s):(J(a)|0,s=t[72]|0),u=k(1)|0,a=t[72]|0),(a|0)!=(e|0)&&ie(e,s,i,h),u|0}function k0(){var e=0,s=0,a=0;a=t[73]|0,s=t[72]|0;e:for(;;){if(e=s+2|0,s>>>0>=a>>>0){s=6;break}switch(f[e>>1]|0){case 13:case 10:{s=6;break e}case 93:{s=7;break e}case 92:{e=s+4|0;break}default:}s=e}return(s|0)==6?(t[72]=e,T(),e=0):(s|0)==7&&(t[72]=e,e=93),e|0}function nt(){var e=0,s=0,a=0;e:for(;;){if(e=t[72]|0,s=e+2|0,t[72]=s,e>>>0>=(t[73]|0)>>>0){a=7;break}switch(f[s>>1]|0){case 13:case 10:{a=7;break e}case 47:break e;case 91:{k0()|0;break}case 92:{t[72]=e+4;break}default:}}(a|0)==7&&T()}function w0(e){switch(e=e|0,f[e>>1]|0){case 62:{e=(f[e+-2>>1]|0)==61;break}case 41:case 59:{e=1;break}case 104:{e=C(e+-2|0,210,4)|0;break}case 121:{e=C(e+-2|0,218,6)|0;break}case 101:{e=C(e+-2|0,230,3)|0;break}default:e=0}return e|0}function it(e){e=e|0;var s=0,a=0,u=0,i=0,h=0;for(i=(t[72]|0)+2|0,t[72]=i,a=t[73]|0;s=i+2|0,!(i>>>0>=a>>>0||(u=f[s>>1]|0,!e&&Kt(u)|0));){if(u<<16>>16==42&&(f[i+4>>1]|0)==47){h=8;break}i=s}(h|0)==8&&(t[72]=s,s=i+4|0),t[72]=s}function P(e,s,a){e=e|0,s=s|0,a=a|0;var u=0,i=0;e:do if(!a)e=0;else{for(;u=b[e>>0]|0,i=b[s>>0]|0,u<<24>>24==i<<24>>24;)if(a=a+-1|0,a)e=e+1|0,s=s+1|0;else{e=0;break e}e=(u&255)-(i&255)|0}while(!1);return e|0}function Ne(e){e=e|0;e:do switch(e<<16>>16){case 38:case 37:case 33:{e=1;break}default:if((e&-8)<<16>>16==40|(e+-58&65535)<6)e=1;else{switch(e<<16>>16){case 91:case 93:case 94:{e=1;break e}default:}e=(e+-123&65535)<4}}while(!1);return e|0}function y0(e){e=e|0;e:do switch(e<<16>>16){case 38:case 37:case 33:break;default:if(!((e+-58&65535)<6|(e+-40&65535)<7&e<<16>>16!=41)){switch(e<<16>>16){case 91:case 94:break e;default:}return e<<16>>16!=125&(e+-123&65535)<4|0}}while(!1);return 1}function zt(e){e=e|0;var s=0;s=f[e>>1]|0;e:do if((s+-9&65535)>=5){switch(s<<16>>16){case 160:case 32:{s=1;break e}default:}if(Ne(s)|0)return s<<16>>16!=46|(ot(e)|0)|0;s=0}else s=1;while(!1);return s|0}function g0(e){e=e|0;var s=0,a=0,u=0,i=0;return a=E,E=E+16|0,u=a,t[u>>2]=0,t[66]=e,s=t[3]|0,i=s+(e<<1)|0,e=i+2|0,f[i>>1]=0,t[u>>2]=e,t[67]=e,t[59]=0,t[63]=0,t[61]=0,t[60]=0,t[65]=0,t[62]=0,E=a,s|0}function ie(e,s,a,u){e=e|0,s=s|0,a=a|0,u=u|0;var i=0,h=0;i=t[67]|0,t[67]=i+20,h=t[65]|0,t[(h|0?h+16|0:240)>>2]=i,t[65]=i,t[i>>2]=e,t[i+4>>2]=s,t[i+8>>2]=a,t[i+12>>2]=u,t[i+16>>2]=0,b[803]=1}function C(e,s,a){e=e|0,s=s|0,a=a|0;var u=0,i=0;return u=e+(0-a<<1)|0,i=u+2|0,e=t[3]|0,i>>>0>=e>>>0&&!(P(i,s,a<<1)|0)?(i|0)==(e|0)?e=1:e=zt(u)|0:e=0,e|0}function v0(e){switch(e=e|0,f[e>>1]|0){case 107:{e=C(e+-2|0,144,4)|0;break}case 101:{(f[e+-2>>1]|0)==117?e=C(e+-4|0,116,6)|0:e=0;break}default:e=0}return e|0}function ke(e,s){e=e|0,s=s|0;var a=0;return a=t[3]|0,a>>>0<=e>>>0&&(f[e>>1]|0)==s<<16>>16?(a|0)==(e|0)?a=1:a=We(f[e+-2>>1]|0)|0:a=0,a|0}function We(e){e=e|0;e:do if((e+-9&65535)<5)e=1;else{switch(e<<16>>16){case 32:case 160:{e=1;break e}default:}e=e<<16>>16!=46&(Ne(e)|0)}while(!1);return e|0}function at(){var e=0,s=0,a=0;e=t[73]|0,a=t[72]|0;e:for(;s=a+2|0,!(a>>>0>=e>>>0);)switch(f[s>>1]|0){case 13:case 10:break e;default:a=s}t[72]=s}function J(e){for(e=e|0;!(ae(e)|0||Ne(e)|0);)if(e=(t[72]|0)+2|0,t[72]=e,e=f[e>>1]|0,!(e<<16>>16)){e=0;break}return e|0}function $0(){var e=0;switch(e=t[(t[61]|0)+20>>2]|0,e|0){case 1:{e=-1;break}case 2:{e=-2;break}default:e=e-(t[3]|0)>>1}return e|0}function A0(e){return e=e|0,!(C(e,190,5)|0)&&!(C(e,200,3)|0)?e=C(e,206,2)|0:e=1,e|0}function He(e){switch(e=e|0,e<<16>>16){case 160:case 32:case 12:case 11:case 9:{e=1;break}default:e=0}return e|0}function ot(e){return e=e|0,(f[e>>1]|0)==46&&(f[e+-2>>1]|0)==46?e=(f[e+-4>>1]|0)==46:e=0,e|0}function we(e){return e=e|0,(t[3]|0)==(e|0)?e=1:e=zt(e+-2|0)|0,e|0}function S0(){var e=0;return e=t[(t[62]|0)+12>>2]|0,e?e=e-(t[3]|0)>>1:e=-1,e|0}function O0(){var e=0;return e=t[(t[61]|0)+12>>2]|0,e?e=e-(t[3]|0)>>1:e=-1,e|0}function E0(){var e=0;return e=t[(t[62]|0)+8>>2]|0,e?e=e-(t[3]|0)>>1:e=-1,e|0}function x0(){var e=0;return e=t[(t[61]|0)+16>>2]|0,e?e=e-(t[3]|0)>>1:e=-1,e|0}function L0(){var e=0;return e=t[(t[61]|0)+4>>2]|0,e?e=e-(t[3]|0)>>1:e=-1,e|0}function C0(){var e=0;return e=t[61]|0,e=t[(e|0?e+32|0:236)>>2]|0,t[61]=e,(e|0)!=0|0}function j0(){var e=0;return e=t[62]|0,e=t[(e|0?e+16|0:240)>>2]|0,t[62]=e,(e|0)!=0|0}function T(){b[802]=1,t[68]=(t[72]|0)-(t[3]|0)>>1,t[72]=(t[73]|0)+2}function ae(e){return e=e|0,(e|128)<<16>>16==160|(e+-9&65535)<5|0}function ye(e){return e=e|0,e<<16>>16==39|e<<16>>16==34|0}function M0(){return(t[(t[61]|0)+8>>2]|0)-(t[3]|0)>>1|0}function U0(){return(t[(t[62]|0)+4>>2]|0)-(t[3]|0)>>1|0}function Kt(e){return e=e|0,e<<16>>16==13|e<<16>>16==10|0}function I0(){return(t[t[61]>>2]|0)-(t[3]|0)>>1|0}function P0(){return(t[t[62]>>2]|0)-(t[3]|0)>>1|0}function R0(){return R[(t[61]|0)+24>>0]|0|0}function _0(e){e=e|0,t[3]=e}function T0(){return t[(t[61]|0)+28>>2]|0}function N0(){return(b[803]|0)!=0|0}function W0(){return(b[804]|0)!=0|0}function H0(){return t[68]|0}function q0(e){return e=e|0,E=e+992+15&-16,992}return{su:q0,ai:x0,e:H0,ee:U0,ele:S0,els:E0,es:P0,f:W0,id:$0,ie:L0,ip:R0,is:I0,it:T0,ms:N0,p:_,re:j0,ri:C0,sa:g0,se:O0,ses:_0,ss:M0}}(typeof self<"u"?self:global,{},Pe),Be=A.su(le-(2<<17))}const d=O.length+1;A.ses(Be),A.sa(d-1),gt(O,new Uint16Array(Pe,Be,d)),A.p()||(g=A.e(),F());const c=[],l=[];for(;A.ri();){const p=A.is(),m=A.ie(),w=A.ai(),b=A.id(),f=A.ss(),t=A.se(),R=A.it();let $;A.ip()&&($=ze(b===-1?p:p+1,O.charCodeAt(b===-1?p-1:p))),c.push({t:R,n:$,s:p,e:m,ss:f,se:t,d:b,a:w})}for(;A.re();){const p=A.es(),m=A.ee(),w=A.els(),b=A.ele(),f=O.charCodeAt(p),t=w>=0?O.charCodeAt(w):-1;l.push({s:p,e:m,ls:w,le:b,n:f===34||f===39?ze(p+1,f):O.slice(p,m),ln:w<0?void 0:t===34||t===39?ze(w+1,t):O.slice(w,b)})}return[c,l,!!A.f(),!!A.ms()]}function ze(r,n){g=r;let o="",d=g;for(;;){g>=O.length&&F();const c=O.charCodeAt(g);if(c===n)break;c===92?(o+=O.slice(d,g),o+=c0(),d=g):(c===8232||c===8233||$t(c)&&F(),++g)}return o+=O.slice(d,g++),o}function c0(){let r=O.charCodeAt(++g);switch(++g,r){case 110:return`
package/signals.js CHANGED
@@ -1,4 +1,4 @@
1
- /*! Copyright 2025 Adobe
1
+ /*! Copyright 2026 Adobe
2
2
  All Rights Reserved. */
3
3
  import{b as V,l as E,A as N,T as U,y as q,t as z}from"./chunks/icons/Add.js";var B=Symbol.for("preact-signals");function b(){if(v>1)v--;else{for(var t,i=!1;d!==void 0;){var r=d;for(d=void 0,x++;r!==void 0;){var n=r.o;if(r.o=void 0,r.f&=-3,!(8&r.f)&&j(r))try{r.c()}catch(f){i||(t=f,i=!0)}r=n}}if(x=0,v--,i)throw t}}function K(t){if(v>0)return t();v++;try{return t()}finally{b()}}var o=void 0;function L(t){var i=o;o=void 0;try{return t()}finally{o=i}}var d=void 0,v=0,x=0,y=0;function O(t){if(o!==void 0){var i=t.n;if(i===void 0||i.t!==o)return i={i:0,S:t,p:o.s,n:void 0,t:o,e:void 0,x:void 0,r:i},o.s!==void 0&&(o.s.n=i),o.s=i,t.n=i,32&o.f&&t.S(i),i;if(i.i===-1)return i.i=0,i.n!==void 0&&(i.n.p=i.p,i.p!==void 0&&(i.p.n=i.n),i.p=o.s,i.n=void 0,o.s.n=i,o.s=i),i}}function u(t){this.v=t,this.i=0,this.n=void 0,this.t=void 0}u.prototype.brand=B;u.prototype.h=function(){return!0};u.prototype.S=function(t){this.t!==t&&t.e===void 0&&(t.x=this.t,this.t!==void 0&&(this.t.e=t),this.t=t)};u.prototype.U=function(t){if(this.t!==void 0){var i=t.e,r=t.x;i!==void 0&&(i.x=r,t.e=void 0),r!==void 0&&(r.e=i,t.x=void 0),t===this.t&&(this.t=r)}};u.prototype.subscribe=function(t){var i=this;return $(function(){var r=i.value,n=o;o=void 0;try{t(r)}finally{o=n}})};u.prototype.valueOf=function(){return this.value};u.prototype.toString=function(){return this.value+""};u.prototype.toJSON=function(){return this.value};u.prototype.peek=function(){var t=o;o=void 0;try{return this.value}finally{o=t}};Object.defineProperty(u.prototype,"value",{get:function(){var t=O(this);return t!==void 0&&(t.i=this.i),this.v},set:function(t){if(t!==this.v){if(x>100)throw new Error("Cycle detected");this.v=t,this.i++,y++,v++;try{for(var i=this.t;i!==void 0;i=i.x)i.t.N()}finally{b()}}}});function C(t){return new u(t)}function j(t){for(var i=t.s;i!==void 0;i=i.n)if(i.S.i!==i.i||!i.S.h()||i.S.i!==i.i)return!0;return!1}function A(t){for(var i=t.s;i!==void 0;i=i.n){var r=i.S.n;if(r!==void 0&&(i.r=r),i.S.n=i,i.i=-1,i.n===void 0){t.s=i;break}}}function P(t){for(var i=t.s,r=void 0;i!==void 0;){var n=i.p;i.i===-1?(i.S.U(i),n!==void 0&&(n.n=i.n),i.n!==void 0&&(i.n.p=n)):r=i,i.S.n=i.r,i.r!==void 0&&(i.r=void 0),i=n}t.s=r}function h(t){u.call(this,void 0),this.x=t,this.s=void 0,this.g=y-1,this.f=4}(h.prototype=new u).h=function(){if(this.f&=-3,1&this.f)return!1;if((36&this.f)==32||(this.f&=-5,this.g===y))return!0;if(this.g=y,this.f|=1,this.i>0&&!j(this))return this.f&=-2,!0;var t=o;try{A(this),o=this;var i=this.x();(16&this.f||this.v!==i||this.i===0)&&(this.v=i,this.f&=-17,this.i++)}catch(r){this.v=r,this.f|=16,this.i++}return o=t,P(this),this.f&=-2,!0};h.prototype.S=function(t){if(this.t===void 0){this.f|=36;for(var i=this.s;i!==void 0;i=i.n)i.S.S(i)}u.prototype.S.call(this,t)};h.prototype.U=function(t){if(this.t!==void 0&&(u.prototype.U.call(this,t),this.t===void 0)){this.f&=-33;for(var i=this.s;i!==void 0;i=i.n)i.S.U(i)}};h.prototype.N=function(){if(!(2&this.f)){this.f|=6;for(var t=this.t;t!==void 0;t=t.x)t.t.N()}};Object.defineProperty(h.prototype,"value",{get:function(){if(1&this.f)throw new Error("Cycle detected");var t=O(this);if(this.h(),t!==void 0&&(t.i=this.i),16&this.f)throw this.v;return this.v}});function T(t){return new h(t)}function G(t){var i=t.u;if(t.u=void 0,typeof i=="function"){v++;var r=o;o=void 0;try{i()}catch(n){throw t.f&=-2,t.f|=8,m(t),n}finally{o=r,b()}}}function m(t){for(var i=t.s;i!==void 0;i=i.n)i.S.U(i);t.x=void 0,t.s=void 0,G(t)}function D(t){if(o!==this)throw new Error("Out-of-order effect");P(this),o=t,this.f&=-2,8&this.f&&m(this),b()}function p(t){this.x=t,this.u=void 0,this.s=void 0,this.o=void 0,this.f=32}p.prototype.c=function(){var t=this.S();try{if(8&this.f||this.x===void 0)return;var i=this.x();typeof i=="function"&&(this.u=i)}finally{t()}};p.prototype.S=function(){if(1&this.f)throw new Error("Cycle detected");this.f|=1,this.f&=-9,G(this),A(this),v++;var t=o;return o=this,D.bind(this,t)};p.prototype.N=function(){2&this.f||(this.f|=2,this.o=d,d=this)};p.prototype.d=function(){this.f|=8,1&this.f||m(this)};function $(t){var i=new p(t);try{i.c()}catch(r){throw i.d(),r}return i.d.bind(i)}var w,g;function c(t,i){E[t]=i.bind(null,E[t]||function(){})}function S(t){g&&g(),g=t&&t.S()}function J(t){var i=this,r=t.data,n=H(r);n.value=r;var f=U(function(){for(var e=i.__v;e=e.__;)if(e.__c){e.__c.__$f|=4;break}return i.__$u.c=function(){var s;!z(f.peek())&&((s=i.base)==null?void 0:s.nodeType)===3?i.base.data=f.peek():(i.__$f|=1,i.setState({}))},T(function(){var s=n.value.value;return s===0?0:s===!0?"":s||""})},[]);return f.value}J.displayName="_st";Object.defineProperties(u.prototype,{constructor:{configurable:!0,value:void 0},type:{configurable:!0,value:J},props:{configurable:!0,get:function(){return{data:this}}},__b:{configurable:!0,value:1}});c("__b",function(t,i){if(typeof i.type=="string"){var r,n=i.props;for(var f in n)if(f!=="children"){var e=n[f];e instanceof u&&(r||(i.__np=r={}),r[f]=e,n[f]=e.peek())}}t(i)});c("__r",function(t,i){S();var r,n=i.__c;n&&(n.__$f&=-2,(r=n.__$u)===void 0&&(n.__$u=r=function(f){var e;return $(function(){e=this}),e.c=function(){n.__$f|=1,n.setState({})},e}())),w=n,S(r),t(i)});c("__e",function(t,i,r,n){S(),w=void 0,t(i,r,n)});c("diffed",function(t,i){S(),w=void 0;var r;if(typeof i.type=="string"&&(r=i.__e)){var n=i.__np,f=i.props;if(n){var e=r.U;if(e)for(var s in e){var a=e[s];a!==void 0&&!(s in n)&&(a.d(),e[s]=void 0)}else r.U=e={};for(var l in n){var _=e[l],k=n[l];_===void 0?(_=F(r,l,k,f),e[l]=_):_.o(k,f)}}}t(i)});function F(t,i,r,n){var f=i in t&&t.ownerSVGElement===void 0,e=C(r);return{o:function(s,a){e.value=s,n=a},d:$(function(){var s=e.value.value;n[i]!==s&&(n[i]=s,f?t[i]=s:s?t.setAttribute(i,s):t.removeAttribute(i))})}}c("unmount",function(t,i){if(typeof i.type=="string"){var r=i.__e;if(r){var n=r.U;if(n){r.U=void 0;for(var f in n){var e=n[f];e&&e.d()}}}}else{var s=i.__c;if(s){var a=s.__$u;a&&(s.__$u=void 0,a.d())}}t(i)});c("__h",function(t,i,r,n){(n<3||n===9)&&(i.__$f|=2),t(i,r,n)});V.prototype.shouldComponentUpdate=function(t,i){var r=this.__$u;if(!(r&&r.s!==void 0||4&this.__$f)||3&this.__$f)return!0;for(var n in i)return!0;for(var f in t)if(f!=="__source"&&t[f]!==this.props[f])return!0;for(var e in this.props)if(!(e in t))return!0;return!1};function H(t){return U(function(){return C(t)},[])}function M(t){var i=N(t);return i.current=t,w.__$f|=4,U(function(){return T(function(){return i.current()})},[])}function Q(t){var i=N(t);i.current=t,q(function(){return $(function(){return i.current()})},[])}export{u as Signal,K as batch,T as computed,$ as effect,C as signal,L as untracked,M as useComputed,H as useSignal,Q as useSignalEffect};
4
4
  //# sourceMappingURL=signals.js.map
@@ -4,7 +4,8 @@ export interface PaginationProps {
4
4
  className?: string;
5
5
  currentPage?: number;
6
6
  totalPages?: number;
7
- onChange?: (currentPage: number) => void;
7
+ onChange?: (currentPage: number, e?: Event) => void;
8
+ routePage?: (page: number) => string;
8
9
  }
9
10
  export type PaginationList = {
10
11
  page: number | string;
@@ -0,0 +1,11 @@
1
+ import { FunctionComponent, JSX } from 'preact';
2
+
3
+ type BaseProps = {
4
+ href?: string;
5
+ type?: 'button';
6
+ disabled?: boolean;
7
+ };
8
+ export type PaginationButtonProps = BaseProps & (Omit<JSX.HTMLAttributes<HTMLAnchorElement>, 'type'> | Omit<JSX.HTMLAttributes<HTMLButtonElement>, 'href'>);
9
+ export declare const PaginationButton: FunctionComponent<PaginationButtonProps>;
10
+ export {};
11
+ //# sourceMappingURL=PaginationButton.d.ts.map
@@ -1,44 +1,50 @@
1
1
  export { default as Add } from './Add.svg';
2
+ export { default as AddressBook } from './AddressBook.svg';
2
3
  export { default as Bulk } from './Bulk.svg';
3
4
  export { default as Burger } from './Burger.svg';
5
+ export { default as Business } from './Business.svg';
6
+ export { default as Card } from './Card.svg';
4
7
  export { default as Cart } from './Cart.svg';
5
8
  export { default as Check } from './Check.svg';
9
+ export { default as CheckWithCircle } from './CheckWithCircle.svg';
6
10
  export { default as ChevronDown } from './ChevronDown.svg';
7
- export { default as ChevronUp } from './ChevronUp.svg';
8
11
  export { default as ChevronRight } from './ChevronRight.svg';
12
+ export { default as ChevronUp } from './ChevronUp.svg';
9
13
  export { default as Close } from './Close.svg';
14
+ export { default as Coupon } from './Coupon.svg';
15
+ export { default as Date } from './Date.svg';
16
+ export { default as Delivery } from './Delivery.svg';
17
+ export { default as Edit } from './Edit.svg';
18
+ export { default as EmptyBox } from './EmptyBox.svg';
19
+ export { default as Eye } from './Eye.svg';
20
+ export { default as EyeClose } from './EyeClose.svg';
21
+ export { default as Gift } from './Gift.svg';
22
+ export { default as GiftCard } from './GiftCard.svg';
10
23
  export { default as Heart } from './Heart.svg';
24
+ export { default as HeartFilled } from './HeartFilled.svg';
25
+ export { default as InfoFilled } from './InfoFilled.svg';
26
+ export { default as List } from './List.svg';
27
+ export { default as Locker } from './Locker.svg';
11
28
  export { default as Minus } from './Minus.svg';
29
+ export { default as Order } from './Order.svg';
30
+ export { default as OrderError } from './OrderError.svg';
31
+ export { default as OrderSuccess } from './OrderSuccess.svg';
32
+ export { default as PaymentError } from './PaymentError.svg';
12
33
  export { default as Placeholder } from './Placeholder.svg';
13
34
  export { default as PlaceholderFilled } from './PlaceholderFilled.svg';
35
+ export { default as Purchase } from './Purchase.svg';
36
+ export { default as Quote } from './Quote.svg';
14
37
  export { default as Search } from './Search.svg';
15
38
  export { default as SearchFilled } from './SearchFilled.svg';
16
39
  export { default as Sort } from './Sort.svg';
17
40
  export { default as Star } from './Star.svg';
18
- export { default as View } from './View.svg';
41
+ export { default as Structure } from './Structure.svg';
42
+ export { default as Team } from './Team.svg';
43
+ export { default as Trash } from './Trash.svg';
19
44
  export { default as User } from './User.svg';
20
- export { default as Warning } from './Warning.svg';
21
- export { default as Locker } from './Locker.svg';
45
+ export { default as View } from './View.svg';
22
46
  export { default as Wallet } from './Wallet.svg';
23
- export { default as Card } from './Card.svg';
24
- export { default as Order } from './Order.svg';
25
- export { default as Delivery } from './Delivery.svg';
26
- export { default as OrderError } from './OrderError.svg';
27
- export { default as OrderSuccess } from './OrderSuccess.svg';
28
- export { default as PaymentError } from './PaymentError.svg';
29
- export { default as CheckWithCircle } from './CheckWithCircle.svg';
30
- export { default as WarningWithCircle } from './WarningWithCircle.svg';
47
+ export { default as Warning } from './Warning.svg';
31
48
  export { default as WarningFilled } from './WarningFilled.svg';
32
- export { default as InfoFilled } from './InfoFilled.svg';
33
- export { default as HeartFilled } from './HeartFilled.svg';
34
- export { default as Trash } from './Trash.svg';
35
- export { default as Eye } from './Eye.svg';
36
- export { default as EyeClose } from './EyeClose.svg';
37
- export { default as Date } from './Date.svg';
38
- export { default as AddressBook } from './AddressBook.svg';
39
- export { default as EmptyBox } from './EmptyBox.svg';
40
- export { default as Coupon } from './Coupon.svg';
41
- export { default as Gift } from './Gift.svg';
42
- export { default as GiftCard } from './GiftCard.svg';
43
- export { default as Edit } from './Edit.svg';
49
+ export { default as WarningWithCircle } from './WarningWithCircle.svg';
44
50
  //# sourceMappingURL=index.d.ts.map
@@ -33,11 +33,11 @@ export type AfterHook<T = any> = (requestInit: RequestInit, response: {
33
33
  };
34
34
  declare class FetchGraphQLMesh {
35
35
  protected _endpoint?: string;
36
- get endpoint(): string | undefined;
37
- get fetchGraphQlHeaders(): Header;
38
36
  _fetchGraphQlHeaders: Header;
39
37
  _beforeHooks: BeforeHook[];
40
38
  _afterHooks: AfterHook[];
39
+ get endpoint(): string | undefined;
40
+ get fetchGraphQlHeaders(): Header;
41
41
  /**
42
42
  * Sets the GraphQL endpoint.
43
43
  * @param endpoint - The GraphQL endpoint URL string.
@@ -169,31 +169,61 @@ export declare class FetchGraphQL extends FetchGraphQLMesh {
169
169
  get endpoint(): string | undefined;
170
170
  get fetchGraphQlHeaders(): Header;
171
171
  /**
172
- * Sets the GraphQL endpoint or inherits from a parent instance.
173
- * @param endpoint - The GraphQL endpoint URL string, or a FetchGraphQL instance to inherit from.
172
+ * Sets the GraphQL endpoint or links to another FetchGraphQL instance.
173
+ * @param endpoint - The GraphQL endpoint URL string, or a FetchGraphQL instance to link to.
174
174
  * @example
175
175
  * ```js
176
176
  * // Set endpoint as string
177
177
  * instance.setEndpoint('https://api.example.com/graphql');
178
178
  *
179
- * // Inherit from parent instance
179
+ * // Link to another instance
180
180
  * const parent = new FetchGraphQL();
181
181
  * parent.setEndpoint('https://api.example.com/graphql');
182
182
  *
183
183
  * const child = new FetchGraphQL();
184
- * child.setEndpoint(parent); // Inherits endpoint, headers, and hooks
184
+ * child.setEndpoint(parent); // Links to parent, shares endpoint, headers, and hooks
185
185
  * ```
186
186
  */
187
187
  setEndpoint(endpoint: string | FetchGraphQL): void;
188
188
  /**
189
- * Collects all before hooks from the parent chain.
190
- * Parent hooks execute first, then child hooks.
189
+ * Sets a GraphQL header. When linked to another instance, this sets the header on the linked instance.
190
+ * @param key - The key of the header.
191
+ * @param value - The value of the header.
192
+ */
193
+ setFetchGraphQlHeader(key: string, value: string | null): void;
194
+ /**
195
+ * Sets the GraphQL headers. When linked to another instance, this sets the headers on the linked instance.
196
+ * @param header - The header object or a function that returns a header object.
197
+ */
198
+ setFetchGraphQlHeaders(header: Header | ((prev: Header) => Header)): void;
199
+ /**
200
+ * Removes a specific GraphQL header. When linked to another instance, this removes the header from the linked instance.
201
+ * @param key - The key of the header.
202
+ */
203
+ removeFetchGraphQlHeader(key: string): void;
204
+ /**
205
+ * Gets the value of a specific GraphQL header. When linked to another instance, this gets the header from the linked instance.
206
+ * @param key - The key of the header.
207
+ * @returns The value of the header, or undefined if not found.
208
+ */
209
+ getFetchGraphQlHeader(key: string): string | null | undefined;
210
+ /**
211
+ * Adds a before hook. When linked to another instance, this adds the hook to the linked instance.
212
+ * @param hook - The hook function.
213
+ */
214
+ addBeforeHook(hook: BeforeHook): void;
215
+ /**
216
+ * Adds an after hook. When linked to another instance, this adds the hook to the linked instance.
217
+ * @param hook - The hook function.
218
+ */
219
+ addAfterHook(hook: AfterHook): void;
220
+ /**
221
+ * Collects all before hooks. When linked, delegates to the linked instance.
191
222
  * @protected
192
223
  */
193
224
  protected _collectBeforeHooks(): BeforeHook[];
194
225
  /**
195
- * Collects all after hooks from the parent chain.
196
- * Child hooks execute first, then parent hooks.
226
+ * Collects all after hooks. When linked, delegates to the linked instance.
197
227
  * @protected
198
228
  */
199
229
  protected _collectAfterHooks(): AfterHook[];