@cedros/pay-react 1.1.28 → 1.1.30

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 (181) hide show
  1. package/README.md +8 -0
  2. package/dist/{AISettingsSection-BlIv3CzS.mjs → AISettingsSection-BMh3hAb5.mjs} +6 -4
  3. package/dist/{AISettingsSection-DELur7D2.js → AISettingsSection-C0zqPbd6.js} +2 -2
  4. package/dist/{AutosaveIndicator-Bed0-ekg.mjs → AutosaveIndicator-3ctAnz8Y.mjs} +1 -1
  5. package/dist/{AutosaveIndicator-Dn_qA2hK.js → AutosaveIndicator-DXRPr4P7.js} +1 -1
  6. package/dist/CedrosContext-5Gjveoba.mjs +2555 -0
  7. package/dist/CedrosContext-CCakH2SZ.js +3 -0
  8. package/dist/CedrosPayAdminDashboard-DaJ9JoGn.mjs +250 -0
  9. package/dist/CedrosPayAdminDashboard-Uvyh9p7A.js +1 -0
  10. package/dist/{ChatLogsSection-v4zwzCTC.mjs → ChatLogsSection-BtJixYAp.mjs} +19 -17
  11. package/dist/ChatLogsSection-FC3O536G.js +1 -0
  12. package/dist/{ComplianceSection-CemgfDrL.mjs → ComplianceSection-BMnb1p4w.mjs} +18 -15
  13. package/dist/ComplianceSection-BioTKm7k.js +1 -0
  14. package/dist/{CryptoButton-BV9owVe2.mjs → CryptoButton-Cl2kZbOP.mjs} +26 -24
  15. package/dist/CryptoButton-DxFCYDlJ.js +1 -0
  16. package/dist/{CustomersSection-D_j7OrfS.mjs → CustomersSection-dmwoBhcf.mjs} +21 -19
  17. package/dist/CustomersSection-z6ARxuex.js +1 -0
  18. package/dist/DisputesSection-BjHHQAi7.js +1 -0
  19. package/dist/{DisputesSection-BcAbXp3K.mjs → DisputesSection-CHyLne76.mjs} +19 -17
  20. package/dist/Dropdown-BRSZlhik.mjs +111 -0
  21. package/dist/Dropdown-j8o0OO5L.js +1 -0
  22. package/dist/ErrorBanner-CAgPnj62.js +1 -0
  23. package/dist/ErrorBanner-lZJhCmDX.mjs +22 -0
  24. package/dist/{FAQSection-Dn38OhB_.mjs → FAQSection-Di2xE9Sm.mjs} +8 -6
  25. package/dist/FAQSection-b34DMzgV.js +1 -0
  26. package/dist/{ImagesSection-Ctw9Icym.mjs → ImagesSection-D63PEjR6.mjs} +6 -4
  27. package/dist/ImagesSection-DGBA7iKY.js +1 -0
  28. package/dist/{InventorySection-DmhjUlRZ.mjs → InventorySection-Dp5Yu4TA.mjs} +25 -23
  29. package/dist/InventorySection-bVCECzX5.js +1 -0
  30. package/dist/LazyCedrosPayAdminDashboard-BqJDNrDI.mjs +9 -0
  31. package/dist/LazyCedrosPayAdminDashboard-CpfTtOBc.js +1 -0
  32. package/dist/{MessagingSection-B1FaGxkp.mjs → MessagingSection-BLCnCpEv.mjs} +5 -4
  33. package/dist/MessagingSection-DU0dYNMy.js +1 -0
  34. package/dist/{OrdersSection-Bj8bPdg8.mjs → OrdersSection-Bd56F3cj.mjs} +27 -24
  35. package/dist/OrdersSection-FOFEAgs1.js +1 -0
  36. package/dist/PaymentSettingsSection-52iw47Su.mjs +648 -0
  37. package/dist/PaymentSettingsSection-B5J56VAk.js +1 -0
  38. package/dist/ReturnsSection-BjpIVFfN.js +1 -0
  39. package/dist/{ReturnsSection-BC0L8r2e.mjs → ReturnsSection-DUVeKrCd.mjs} +11 -9
  40. package/dist/{SettingsSection-vdYFSNxB.js → SettingsSection-DKkHykaC.js} +1 -1
  41. package/dist/{SettingsSection-KYdEizq_.mjs → SettingsSection-vK9WIwXE.mjs} +1 -1
  42. package/dist/ShippingSection-B5lk7zpS.js +1 -0
  43. package/dist/{ShippingSection-BOgto6_9.mjs → ShippingSection-CZRrXrlh.mjs} +5 -3
  44. package/dist/{SingleCategorySettings-suJ8z9d8.mjs → SingleCategorySettings-C8xJ47_T.mjs} +143 -140
  45. package/dist/SingleCategorySettings-g7D-9lG1.js +3 -0
  46. package/dist/StatsBar-CWXw2ZT3.js +1 -0
  47. package/dist/StatsBar-D4cOKG2e.mjs +25 -0
  48. package/dist/StorefrontSection-BWnMB9k-.js +1 -0
  49. package/dist/{StorefrontSection-BRvIGBEJ.mjs → StorefrontSection-uXSVbEAa.mjs} +121 -119
  50. package/dist/{SubscriptionsSection-D60qrX9a.mjs → SubscriptionsSection-Ci_AZrWA.mjs} +11 -9
  51. package/dist/SubscriptionsSection-DQfXkuDv.js +1 -0
  52. package/dist/{TaxSection-C7-pv-Rl.mjs → TaxSection-BTukS_cU.mjs} +23 -21
  53. package/dist/TaxSection-cuPQISxZ.js +1 -0
  54. package/dist/ThemeContext-CFXyYx7A.js +1 -0
  55. package/dist/ThemeContext-l0bqcOGW.mjs +126 -0
  56. package/dist/Token22Section-CCfkDm8W.js +1 -0
  57. package/dist/{Token22Section-CrHLQ0EB.mjs → Token22Section-DRsPJuTq.mjs} +7 -6
  58. package/dist/{WalletManager-BIwH8Dw_.mjs → WalletManager-D-eoqUDy.mjs} +21 -19
  59. package/dist/WalletManager-DXChB9LA.js +1 -0
  60. package/dist/{WebhooksSection-COPW4Ec0.mjs → WebhooksSection-A8Y4ZGcj.mjs} +40 -38
  61. package/dist/WebhooksSection-CnEmaGH1.js +1 -0
  62. package/dist/admin.d.ts +2 -0
  63. package/dist/admin.js +1 -0
  64. package/dist/admin.mjs +7 -0
  65. package/dist/configApi-BS5UJfzm.js +1 -0
  66. package/dist/{configApi-6XhAJGKX.mjs → configApi-BUXZOMWK.mjs} +57 -3
  67. package/dist/crypto-only.js +1 -1
  68. package/dist/crypto-only.mjs +215 -202
  69. package/dist/dateHelpers-BKW_lGND.js +1 -0
  70. package/dist/dateHelpers-yvPkofYQ.mjs +6 -0
  71. package/dist/fetchWithTimeout-CG0EKbhf.js +1 -0
  72. package/dist/fetchWithTimeout-DmMOwL0Q.mjs +195 -0
  73. package/dist/icons-C3yDMnKE.mjs +235 -0
  74. package/dist/icons-Cjgd9YVo.js +1 -0
  75. package/dist/index-9QF_UfSN.mjs +18668 -0
  76. package/dist/index-Cq9ya93W.js +84 -0
  77. package/dist/index.js +1 -1
  78. package/dist/index.mjs +74 -63
  79. package/dist/safeHref-DqJPLPl5.mjs +12 -0
  80. package/dist/safeHref-DyHIpVjY.js +1 -0
  81. package/dist/sectionIds-D46-_-h-.js +1 -0
  82. package/dist/sectionIds-YktNxmRt.mjs +124 -0
  83. package/dist/sections-511_XBh4.js +1 -0
  84. package/dist/sections-CRaMa8ZB.mjs +9 -0
  85. package/dist/sections-more-Cgw2qJlA.js +1 -0
  86. package/dist/sections-more-Ixw6mM6R.mjs +3082 -0
  87. package/dist/src/admin/index.d.ts +3 -3
  88. package/dist/src/admin/index.d.ts.map +1 -1
  89. package/dist/src/admin/plugin.d.ts.map +1 -1
  90. package/dist/src/admin/types.d.ts +2 -6
  91. package/dist/src/admin/types.d.ts.map +1 -1
  92. package/dist/src/admin.d.ts +9 -0
  93. package/dist/src/admin.d.ts.map +1 -0
  94. package/dist/src/components/admin/LazyCedrosPayAdminDashboard.d.ts +4 -0
  95. package/dist/src/components/admin/LazyCedrosPayAdminDashboard.d.ts.map +1 -0
  96. package/dist/src/components/admin/PaymentReadinessChecklist.d.ts +9 -0
  97. package/dist/src/components/admin/PaymentReadinessChecklist.d.ts.map +1 -0
  98. package/dist/src/components/admin/PaymentSettingsSection.d.ts.map +1 -1
  99. package/dist/src/components/admin/PaymentSetupGuide.d.ts +6 -0
  100. package/dist/src/components/admin/PaymentSetupGuide.d.ts.map +1 -0
  101. package/dist/src/components/admin/ProductsSection.d.ts.map +1 -1
  102. package/dist/src/components/admin/configApi.d.ts +1 -1
  103. package/dist/src/components/admin/configApi.d.ts.map +1 -1
  104. package/dist/src/components/admin/icons.d.ts +3 -50
  105. package/dist/src/components/admin/icons.d.ts.map +1 -1
  106. package/dist/src/components/admin/index.d.ts +1 -1
  107. package/dist/src/components/admin/index.d.ts.map +1 -1
  108. package/dist/src/components/admin/types.d.ts +43 -0
  109. package/dist/src/components/admin/types.d.ts.map +1 -1
  110. package/dist/src/context/CedrosContext.d.ts +2 -0
  111. package/dist/src/context/CedrosContext.d.ts.map +1 -1
  112. package/dist/src/ecommerce/__tests__/featureFlags.test.d.ts +2 -0
  113. package/dist/src/ecommerce/__tests__/featureFlags.test.d.ts.map +1 -0
  114. package/dist/src/ecommerce/adapters/paywall/paywallAdapter.d.ts.map +1 -1
  115. package/dist/src/ecommerce/components/general/ErrorBoundary.d.ts +1 -1
  116. package/dist/src/ecommerce/components/ui/button.d.ts +1 -1
  117. package/dist/src/ecommerce/components/ui/sheet.d.ts +1 -1
  118. package/dist/src/ecommerce/config/context.d.ts +2 -0
  119. package/dist/src/ecommerce/config/context.d.ts.map +1 -1
  120. package/dist/src/ecommerce/config/types.d.ts +2 -0
  121. package/dist/src/ecommerce/config/types.d.ts.map +1 -1
  122. package/dist/src/ecommerce/index.d.ts +2 -0
  123. package/dist/src/ecommerce/index.d.ts.map +1 -1
  124. package/dist/src/featureFlags.d.ts +41 -0
  125. package/dist/src/featureFlags.d.ts.map +1 -0
  126. package/dist/src/index.d.ts +4 -2
  127. package/dist/src/index.d.ts.map +1 -1
  128. package/dist/src/managers/StripeManager.d.ts.map +1 -1
  129. package/dist/src/managers/SubscriptionManager.d.ts +1 -0
  130. package/dist/src/managers/SubscriptionManager.d.ts.map +1 -1
  131. package/dist/src/standalone-admin.d.ts +8 -0
  132. package/dist/src/standalone-admin.d.ts.map +1 -0
  133. package/dist/src/types/index.d.ts +14 -1
  134. package/dist/src/types/index.d.ts.map +1 -1
  135. package/dist/src/types/subscription.d.ts +47 -1
  136. package/dist/src/types/subscription.d.ts.map +1 -1
  137. package/dist/src/utils/validateConfig.d.ts.map +1 -1
  138. package/dist/standalone-admin.d.ts +2 -0
  139. package/dist/standalone-admin.js +1 -0
  140. package/dist/standalone-admin.mjs +4 -0
  141. package/dist/stripe-only.js +1 -1
  142. package/dist/stripe-only.mjs +35 -33
  143. package/dist/styles--fxb3lCl.js +1 -0
  144. package/dist/{styles-D4SQkuV3.mjs → styles-DGagylUj.mjs} +53 -51
  145. package/dist/testing/index.js +1 -1
  146. package/dist/testing/index.mjs +1 -1
  147. package/dist/tokenMintValidator-DAjQld0r.mjs +98 -0
  148. package/dist/tokenMintValidator-DNBhoefh.js +4 -0
  149. package/dist/{walletPool-DE-t1wSW.mjs → walletPool-9MylB2QK.mjs} +1 -1
  150. package/dist/walletPool-BjTXX6Vn.js +1 -0
  151. package/package.json +9 -3
  152. package/dist/CedrosContext-C2RjHLaQ.js +0 -6
  153. package/dist/CedrosContext-CY6zvjvJ.mjs +0 -2801
  154. package/dist/ChatLogsSection-BH5tLA4T.js +0 -1
  155. package/dist/ComplianceSection-DP2a9-S0.js +0 -1
  156. package/dist/CryptoButton-DpiCnyXE.js +0 -1
  157. package/dist/CustomersSection-CBwy_waO.js +0 -1
  158. package/dist/DisputesSection-BLjIk60n.js +0 -1
  159. package/dist/FAQSection-wNeH0i6Q.js +0 -1
  160. package/dist/ImagesSection-0ZzKlzMJ.js +0 -1
  161. package/dist/InventorySection-zV6lTmue.js +0 -1
  162. package/dist/MessagingSection-B_wdFR0j.js +0 -1
  163. package/dist/OrdersSection-Dw2FX-1d.js +0 -1
  164. package/dist/PaymentSettingsSection-BYF4D-GR.js +0 -1
  165. package/dist/PaymentSettingsSection-EnMxeWjv.mjs +0 -94
  166. package/dist/ReturnsSection-D_pJVxuG.js +0 -1
  167. package/dist/ShippingSection-1DRSTu49.js +0 -1
  168. package/dist/SingleCategorySettings-DwCnBdRf.js +0 -3
  169. package/dist/StorefrontSection-RumGkb3C.js +0 -1
  170. package/dist/SubscriptionsSection-C2aLLn7L.js +0 -1
  171. package/dist/TaxSection-Dt1DnM51.js +0 -1
  172. package/dist/Token22Section-DY3mUwTY.js +0 -1
  173. package/dist/WalletManager-B3UdQ5pQ.js +0 -1
  174. package/dist/WebhooksSection-CKeiJ7Py.js +0 -1
  175. package/dist/configApi-DkduMQg1.js +0 -1
  176. package/dist/index-C0g-JxJk.js +0 -84
  177. package/dist/index-DXnuQp5x.mjs +0 -22128
  178. package/dist/sections-C1NpK7hk.mjs +0 -9
  179. package/dist/sections-DVVSZBhW.js +0 -1
  180. package/dist/styles-BT4bhFey.js +0 -1
  181. package/dist/walletPool-IS7R3MR1.js +0 -1
@@ -0,0 +1 @@
1
+ "use strict";function e(t){return new Date(t).toLocaleString()}exports.formatDateTime=e;
@@ -0,0 +1,6 @@
1
+ function e(t) {
2
+ return new Date(t).toLocaleString();
3
+ }
4
+ export {
5
+ e as f
6
+ };
@@ -0,0 +1 @@
1
+ "use strict";const _="3.7.8",$=_,l=typeof Buffer=="function",m=typeof TextDecoder=="function"?new TextDecoder:void 0,E=typeof TextEncoder=="function"?new TextEncoder:void 0,L="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/=",u=Array.prototype.slice.call(L),d=(t=>{let e={};return t.forEach((r,o)=>e[r]=o),e})(u),V=/^(?:[A-Za-z\d+\/]{4})*?(?:[A-Za-z\d+\/]{2}(?:==)?|[A-Za-z\d+\/]{3}=?)?$/,i=String.fromCharCode.bind(String),B=typeof Uint8Array.from=="function"?Uint8Array.from.bind(Uint8Array):t=>new Uint8Array(Array.prototype.slice.call(t,0)),w=t=>t.replace(/=/g,"").replace(/[+\/]/g,e=>e=="+"?"-":"_"),R=t=>t.replace(/[^A-Za-z0-9\+\/]/g,""),F=t=>{let e,r,o,n,s="";const f=t.length%3;for(let a=0;a<t.length;){if((r=t.charCodeAt(a++))>255||(o=t.charCodeAt(a++))>255||(n=t.charCodeAt(a++))>255)throw new TypeError("invalid character found");e=r<<16|o<<8|n,s+=u[e>>18&63]+u[e>>12&63]+u[e>>6&63]+u[e&63]}return f?s.slice(0,f-3)+"===".substring(f):s},A=typeof btoa=="function"?t=>btoa(t):l?t=>Buffer.from(t,"binary").toString("base64"):F,g=l?t=>Buffer.from(t).toString("base64"):t=>{let r=[];for(let o=0,n=t.length;o<n;o+=4096)r.push(i.apply(null,t.subarray(o,o+4096)));return A(r.join(""))},h=(t,e=!1)=>e?w(g(t)):g(t),W=t=>{if(t.length<2){var e=t.charCodeAt(0);return e<128?t:e<2048?i(192|e>>>6)+i(128|e&63):i(224|e>>>12&15)+i(128|e>>>6&63)+i(128|e&63)}else{var e=65536+(t.charCodeAt(0)-55296)*1024+(t.charCodeAt(1)-56320);return i(240|e>>>18&7)+i(128|e>>>12&63)+i(128|e>>>6&63)+i(128|e&63)}},j=/[\uD800-\uDBFF][\uDC00-\uDFFFF]|[^\x00-\x7F]/g,D=t=>t.replace(j,W),U=l?t=>Buffer.from(t,"utf8").toString("base64"):E?t=>g(E.encode(t)):t=>A(D(t)),c=(t,e=!1)=>e?w(U(t)):U(t),C=t=>c(t,!0),G=/[\xC0-\xDF][\x80-\xBF]|[\xE0-\xEF][\x80-\xBF]{2}|[\xF0-\xF7][\x80-\xBF]{3}/g,H=t=>{switch(t.length){case 4:var e=(7&t.charCodeAt(0))<<18|(63&t.charCodeAt(1))<<12|(63&t.charCodeAt(2))<<6|63&t.charCodeAt(3),r=e-65536;return i((r>>>10)+55296)+i((r&1023)+56320);case 3:return i((15&t.charCodeAt(0))<<12|(63&t.charCodeAt(1))<<6|63&t.charCodeAt(2));default:return i((31&t.charCodeAt(0))<<6|63&t.charCodeAt(1))}},S=t=>t.replace(G,H),T=t=>{if(t=t.replace(/\s+/g,""),!V.test(t))throw new TypeError("malformed base64.");t+="==".slice(2-(t.length&3));let e,r,o,n=[];for(let s=0;s<t.length;)e=d[t.charAt(s++)]<<18|d[t.charAt(s++)]<<12|(r=d[t.charAt(s++)])<<6|(o=d[t.charAt(s++)]),r===64?n.push(i(e>>16&255)):o===64?n.push(i(e>>16&255,e>>8&255)):n.push(i(e>>16&255,e>>8&255,e&255));return n.join("")},p=typeof atob=="function"?t=>atob(R(t)):l?t=>Buffer.from(t,"base64").toString("binary"):T,v=l?t=>B(Buffer.from(t,"base64")):t=>B(p(t).split("").map(e=>e.charCodeAt(0))),I=t=>v(O(t)),M=l?t=>Buffer.from(t,"base64").toString("utf8"):m?t=>m.decode(v(t)):t=>S(p(t)),O=t=>R(t.replace(/[-_]/g,e=>e=="-"?"+":"/")),b=t=>M(O(t)),k=t=>{if(typeof t!="string")return!1;const e=t.replace(/\s+/g,"").replace(/={0,2}$/,"");return!/[^\s0-9a-zA-Z\+/]/.test(e)||!/[^\s0-9a-zA-Z\-_]/.test(e)},N=t=>({value:t,enumerable:!1,writable:!0,configurable:!0}),P=function(){const t=(e,r)=>Object.defineProperty(String.prototype,e,N(r));t("fromBase64",function(){return b(this)}),t("toBase64",function(e){return c(this,e)}),t("toBase64URI",function(){return c(this,!0)}),t("toBase64URL",function(){return c(this,!0)}),t("toUint8Array",function(){return I(this)})},z=function(){const t=(e,r)=>Object.defineProperty(Uint8Array.prototype,e,N(r));t("toBase64",function(e){return h(this,e)}),t("toBase64URI",function(){return h(this,!0)}),t("toBase64URL",function(){return h(this,!0)})},q=()=>{P(),z()},J={version:_,VERSION:$,atob:p,atobPolyfill:T,btoa:A,btoaPolyfill:F,fromBase64:b,toBase64:c,encode:c,encodeURI:C,encodeURL:C,utob:D,btou:S,decode:b,isValid:k,fromUint8Array:h,toUint8Array:I,extendString:P,extendUint8Array:z,extendBuiltins:q};var Z=(t=>(t[t.DEBUG=0]="DEBUG",t[t.INFO=1]="INFO",t[t.WARN=2]="WARN",t[t.ERROR=3]="ERROR",t[t.SILENT=4]="SILENT",t))(Z||{});class y{config;constructor(e){this.config=e}setLevel(e){this.config.level=e}getLevel(){return this.config.level}debug(...e){this.config.level<=0&&this.log("DEBUG",console.log,e)}info(...e){this.config.level<=1&&this.log("INFO",console.info,e)}warn(...e){this.config.level<=2&&this.log("WARN",console.warn,e)}error(...e){this.config.level<=3&&this.log("ERROR",console.error,e)}log(e,r,o){const n=this.config.prefix?`${this.config.prefix} `:"",s=new Date().toISOString();r(`[${s}] ${n}[${e}]`,...o)}}const K=()=>typeof process<"u"&&process.env.NODE_ENV==="development"?0:2;let x=null;function Q(){return x||(x=new y({level:K(),prefix:"[CedrosPay]"})),x}function X(t){x=t}function Y(t){return new y(t)}const tt=15e3;async function et(t,e={},r=tt){const o=new AbortController,n=e.signal;if(n?.aborted)throw o.abort(),new DOMException("The operation was aborted","AbortError");const s=setTimeout(()=>o.abort(),r);let f=null;n&&(f=()=>o.abort(),n.addEventListener("abort",f));try{return await fetch(t,{...e,signal:o.signal})}catch(a){throw a instanceof Error&&a.name==="AbortError"?n?.aborted?a:new Error(`Request timeout after ${r}ms`):a}finally{clearTimeout(s),n&&f&&n.removeEventListener("abort",f)}}exports.LogLevel=Z;exports.Logger=y;exports.createLogger=Y;exports.fetchWithTimeout=et;exports.gBase64=J;exports.getLogger=Q;exports.setLogger=X;
@@ -0,0 +1,195 @@
1
+ const C = "3.7.8", Z = C, l = typeof Buffer == "function", y = typeof TextDecoder == "function" ? new TextDecoder() : void 0, m = typeof TextEncoder == "function" ? new TextEncoder() : void 0, $ = "ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/=", u = Array.prototype.slice.call($), d = ((t) => {
2
+ let e = {};
3
+ return t.forEach((r, o) => e[r] = o), e;
4
+ })(u), V = /^(?:[A-Za-z\d+\/]{4})*?(?:[A-Za-z\d+\/]{2}(?:==)?|[A-Za-z\d+\/]{3}=?)?$/, a = String.fromCharCode.bind(String), E = typeof Uint8Array.from == "function" ? Uint8Array.from.bind(Uint8Array) : (t) => new Uint8Array(Array.prototype.slice.call(t, 0)), _ = (t) => t.replace(/=/g, "").replace(/[+\/]/g, (e) => e == "+" ? "-" : "_"), w = (t) => t.replace(/[^A-Za-z0-9\+\/]/g, ""), R = (t) => {
5
+ let e, r, o, n, s = "";
6
+ const f = t.length % 3;
7
+ for (let i = 0; i < t.length; ) {
8
+ if ((r = t.charCodeAt(i++)) > 255 || (o = t.charCodeAt(i++)) > 255 || (n = t.charCodeAt(i++)) > 255)
9
+ throw new TypeError("invalid character found");
10
+ e = r << 16 | o << 8 | n, s += u[e >> 18 & 63] + u[e >> 12 & 63] + u[e >> 6 & 63] + u[e & 63];
11
+ }
12
+ return f ? s.slice(0, f - 3) + "===".substring(f) : s;
13
+ }, A = typeof btoa == "function" ? (t) => btoa(t) : l ? (t) => Buffer.from(t, "binary").toString("base64") : R, g = l ? (t) => Buffer.from(t).toString("base64") : (t) => {
14
+ let r = [];
15
+ for (let o = 0, n = t.length; o < n; o += 4096)
16
+ r.push(a.apply(null, t.subarray(o, o + 4096)));
17
+ return A(r.join(""));
18
+ }, x = (t, e = !1) => e ? _(g(t)) : g(t), j = (t) => {
19
+ if (t.length < 2) {
20
+ var e = t.charCodeAt(0);
21
+ return e < 128 ? t : e < 2048 ? a(192 | e >>> 6) + a(128 | e & 63) : a(224 | e >>> 12 & 15) + a(128 | e >>> 6 & 63) + a(128 | e & 63);
22
+ } else {
23
+ var e = 65536 + (t.charCodeAt(0) - 55296) * 1024 + (t.charCodeAt(1) - 56320);
24
+ return a(240 | e >>> 18 & 7) + a(128 | e >>> 12 & 63) + a(128 | e >>> 6 & 63) + a(128 | e & 63);
25
+ }
26
+ }, W = /[\uD800-\uDBFF][\uDC00-\uDFFFF]|[^\x00-\x7F]/g, F = (t) => t.replace(W, j), U = l ? (t) => Buffer.from(t, "utf8").toString("base64") : m ? (t) => g(m.encode(t)) : (t) => A(F(t)), c = (t, e = !1) => e ? _(U(t)) : U(t), B = (t) => c(t, !0), G = /[\xC0-\xDF][\x80-\xBF]|[\xE0-\xEF][\x80-\xBF]{2}|[\xF0-\xF7][\x80-\xBF]{3}/g, H = (t) => {
27
+ switch (t.length) {
28
+ case 4:
29
+ var e = (7 & t.charCodeAt(0)) << 18 | (63 & t.charCodeAt(1)) << 12 | (63 & t.charCodeAt(2)) << 6 | 63 & t.charCodeAt(3), r = e - 65536;
30
+ return a((r >>> 10) + 55296) + a((r & 1023) + 56320);
31
+ case 3:
32
+ return a((15 & t.charCodeAt(0)) << 12 | (63 & t.charCodeAt(1)) << 6 | 63 & t.charCodeAt(2));
33
+ default:
34
+ return a((31 & t.charCodeAt(0)) << 6 | 63 & t.charCodeAt(1));
35
+ }
36
+ }, D = (t) => t.replace(G, H), S = (t) => {
37
+ if (t = t.replace(/\s+/g, ""), !V.test(t))
38
+ throw new TypeError("malformed base64.");
39
+ t += "==".slice(2 - (t.length & 3));
40
+ let e, r, o, n = [];
41
+ for (let s = 0; s < t.length; )
42
+ e = d[t.charAt(s++)] << 18 | d[t.charAt(s++)] << 12 | (r = d[t.charAt(s++)]) << 6 | (o = d[t.charAt(s++)]), r === 64 ? n.push(a(e >> 16 & 255)) : o === 64 ? n.push(a(e >> 16 & 255, e >> 8 & 255)) : n.push(a(e >> 16 & 255, e >> 8 & 255, e & 255));
43
+ return n.join("");
44
+ }, p = typeof atob == "function" ? (t) => atob(w(t)) : l ? (t) => Buffer.from(t, "base64").toString("binary") : S, T = l ? (t) => E(Buffer.from(t, "base64")) : (t) => E(p(t).split("").map((e) => e.charCodeAt(0))), I = (t) => T(v(t)), M = l ? (t) => Buffer.from(t, "base64").toString("utf8") : y ? (t) => y.decode(T(t)) : (t) => D(p(t)), v = (t) => w(t.replace(/[-_]/g, (e) => e == "-" ? "+" : "/")), b = (t) => M(v(t)), k = (t) => {
45
+ if (typeof t != "string")
46
+ return !1;
47
+ const e = t.replace(/\s+/g, "").replace(/={0,2}$/, "");
48
+ return !/[^\s0-9a-zA-Z\+/]/.test(e) || !/[^\s0-9a-zA-Z\-_]/.test(e);
49
+ }, O = (t) => ({
50
+ value: t,
51
+ enumerable: !1,
52
+ writable: !0,
53
+ configurable: !0
54
+ }), N = function() {
55
+ const t = (e, r) => Object.defineProperty(String.prototype, e, O(r));
56
+ t("fromBase64", function() {
57
+ return b(this);
58
+ }), t("toBase64", function(e) {
59
+ return c(this, e);
60
+ }), t("toBase64URI", function() {
61
+ return c(this, !0);
62
+ }), t("toBase64URL", function() {
63
+ return c(this, !0);
64
+ }), t("toUint8Array", function() {
65
+ return I(this);
66
+ });
67
+ }, P = function() {
68
+ const t = (e, r) => Object.defineProperty(Uint8Array.prototype, e, O(r));
69
+ t("toBase64", function(e) {
70
+ return x(this, e);
71
+ }), t("toBase64URI", function() {
72
+ return x(this, !0);
73
+ }), t("toBase64URL", function() {
74
+ return x(this, !0);
75
+ });
76
+ }, q = () => {
77
+ N(), P();
78
+ }, Q = {
79
+ version: C,
80
+ VERSION: Z,
81
+ atob: p,
82
+ atobPolyfill: S,
83
+ btoa: A,
84
+ btoaPolyfill: R,
85
+ fromBase64: b,
86
+ toBase64: c,
87
+ encode: c,
88
+ encodeURI: B,
89
+ encodeURL: B,
90
+ utob: F,
91
+ btou: D,
92
+ decode: b,
93
+ isValid: k,
94
+ fromUint8Array: x,
95
+ toUint8Array: I,
96
+ extendString: N,
97
+ extendUint8Array: P,
98
+ extendBuiltins: q
99
+ };
100
+ var J = /* @__PURE__ */ ((t) => (t[t.DEBUG = 0] = "DEBUG", t[t.INFO = 1] = "INFO", t[t.WARN = 2] = "WARN", t[t.ERROR = 3] = "ERROR", t[t.SILENT = 4] = "SILENT", t))(J || {});
101
+ class z {
102
+ config;
103
+ constructor(e) {
104
+ this.config = e;
105
+ }
106
+ /**
107
+ * Update the log level dynamically
108
+ */
109
+ setLevel(e) {
110
+ this.config.level = e;
111
+ }
112
+ /**
113
+ * Get the current log level
114
+ */
115
+ getLevel() {
116
+ return this.config.level;
117
+ }
118
+ /**
119
+ * Debug-level logging (most verbose)
120
+ * Use for detailed debugging information
121
+ */
122
+ debug(...e) {
123
+ this.config.level <= 0 && this.log("DEBUG", console.log, e);
124
+ }
125
+ /**
126
+ * Info-level logging
127
+ * Use for general informational messages
128
+ */
129
+ info(...e) {
130
+ this.config.level <= 1 && this.log("INFO", console.info, e);
131
+ }
132
+ /**
133
+ * Warning-level logging
134
+ * Use for potentially problematic situations
135
+ */
136
+ warn(...e) {
137
+ this.config.level <= 2 && this.log("WARN", console.warn, e);
138
+ }
139
+ /**
140
+ * Error-level logging
141
+ * Use for error conditions
142
+ */
143
+ error(...e) {
144
+ this.config.level <= 3 && this.log("ERROR", console.error, e);
145
+ }
146
+ /**
147
+ * Internal log method with formatting
148
+ */
149
+ log(e, r, o) {
150
+ const n = this.config.prefix ? `${this.config.prefix} ` : "", s = (/* @__PURE__ */ new Date()).toISOString();
151
+ r(`[${s}] ${n}[${e}]`, ...o);
152
+ }
153
+ }
154
+ const K = () => typeof process < "u" && process.env.NODE_ENV === "development" ? 0 : 2;
155
+ let h = null;
156
+ function X() {
157
+ return h || (h = new z({
158
+ level: K(),
159
+ prefix: "[CedrosPay]"
160
+ })), h;
161
+ }
162
+ function Y(t) {
163
+ h = t;
164
+ }
165
+ function tt(t) {
166
+ return new z(t);
167
+ }
168
+ const L = 15e3;
169
+ async function et(t, e = {}, r = L) {
170
+ const o = new AbortController(), n = e.signal;
171
+ if (n?.aborted)
172
+ throw o.abort(), new DOMException("The operation was aborted", "AbortError");
173
+ const s = setTimeout(() => o.abort(), r);
174
+ let f = null;
175
+ n && (f = () => o.abort(), n.addEventListener("abort", f));
176
+ try {
177
+ return await fetch(t, {
178
+ ...e,
179
+ signal: o.signal
180
+ });
181
+ } catch (i) {
182
+ throw i instanceof Error && i.name === "AbortError" ? n?.aborted ? i : new Error(`Request timeout after ${r}ms`) : i;
183
+ } finally {
184
+ clearTimeout(s), n && f && n.removeEventListener("abort", f);
185
+ }
186
+ }
187
+ export {
188
+ J as L,
189
+ z as a,
190
+ Q as b,
191
+ tt as c,
192
+ et as f,
193
+ X as g,
194
+ Y as s
195
+ };
@@ -0,0 +1,235 @@
1
+ import { b as M } from "./index-BFt38o8Q.mjs";
2
+ import { g as c, b as L, f as u } from "./fetchWithTimeout-DmMOwL0Q.mjs";
3
+ import { jsx as e, jsxs as t } from "react/jsx-runtime";
4
+ class C {
5
+ serverUrl;
6
+ walletSigner = null;
7
+ jwtToken = null;
8
+ isAdminUser = !1;
9
+ constructor(r) {
10
+ this.serverUrl = r;
11
+ }
12
+ getAuthMethod() {
13
+ return this.walletSigner?.publicKey && this.walletSigner.signMessage ? "wallet" : this.jwtToken && this.isAdminUser ? "cedros-login" : "none";
14
+ }
15
+ isAuthenticated() {
16
+ return this.getAuthMethod() !== "none";
17
+ }
18
+ setWalletSigner(r) {
19
+ this.walletSigner = r, c().debug("[AdminAuthManager] Wallet signer updated:", !!r?.publicKey);
20
+ }
21
+ setCedrosLoginAuth(r, o) {
22
+ this.jwtToken = r, this.isAdminUser = o ?? !1, c().debug("[AdminAuthManager] Cedros-login auth updated:", { hasToken: !!r, isAdmin: this.isAdminUser });
23
+ }
24
+ async createAuthHeaders(r) {
25
+ const o = this.getAuthMethod();
26
+ if (o === "wallet")
27
+ return this.createWalletAuthHeaders(r);
28
+ if (o === "cedros-login")
29
+ return this.createJwtAuthHeaders();
30
+ throw new Error("No admin authentication configured. Connect a wallet or sign in as admin.");
31
+ }
32
+ async createWalletAuthHeaders(r) {
33
+ if (!this.walletSigner?.publicKey || !this.walletSigner.signMessage)
34
+ throw new Error("Wallet not connected or does not support message signing");
35
+ const o = await this.fetchNonce(r), s = new TextEncoder().encode(o.nonce), n = await this.walletSigner.signMessage(s), h = M.encode(this.walletSigner.publicKey.toBytes()), d = L.fromUint8Array(n);
36
+ return {
37
+ "X-Signer": h,
38
+ "X-Message": o.nonce,
39
+ "X-Signature": d
40
+ };
41
+ }
42
+ createJwtAuthHeaders() {
43
+ if (!this.jwtToken)
44
+ throw new Error("No JWT token available");
45
+ return {
46
+ Authorization: `Bearer ${this.jwtToken}`
47
+ };
48
+ }
49
+ async fetchNonce(r) {
50
+ const o = `${this.serverUrl}/paywall/v1/nonce`, s = typeof r == "string" ? { purpose: r } : { path: r.path, method: r.method.toUpperCase() };
51
+ c().debug("[AdminAuthManager] Fetching nonce:", s);
52
+ const n = await u(o, {
53
+ method: "POST",
54
+ headers: { "Content-Type": "application/json" },
55
+ body: JSON.stringify(s)
56
+ });
57
+ if (!n.ok) {
58
+ const h = await n.text();
59
+ throw new Error(`Failed to fetch nonce: ${n.status} ${h}`);
60
+ }
61
+ return await n.json();
62
+ }
63
+ async fetchWithAuth(r, o = {}) {
64
+ if (this.getAuthMethod() === "none")
65
+ throw new Error("No admin authentication configured");
66
+ const n = (o.method || "GET").toUpperCase(), h = await this.createAuthHeaders({ path: r, method: n }), d = {
67
+ // Only set Content-Type for methods that typically carry a body
68
+ ...n !== "GET" && n !== "HEAD" ? { "Content-Type": "application/json" } : {},
69
+ ...o.headers || {},
70
+ ...h
71
+ }, a = await u(`${this.serverUrl}${r}`, {
72
+ ...o,
73
+ headers: d
74
+ });
75
+ if (!a.ok) {
76
+ let l = `Admin API error ${a.status}`;
77
+ try {
78
+ const i = await a.json();
79
+ i && typeof i.error == "string" ? l = i.error : i && typeof i.message == "string" && (l = i.message);
80
+ } catch {
81
+ }
82
+ throw new Error(l);
83
+ }
84
+ return await a.json();
85
+ }
86
+ }
87
+ function k() {
88
+ return /* @__PURE__ */ t("svg", { width: "16", height: "16", viewBox: "0 0 24 24", fill: "none", stroke: "currentColor", strokeWidth: "2", strokeLinecap: "round", strokeLinejoin: "round", children: [
89
+ /* @__PURE__ */ e("path", { d: "M20 7.5v9l-4 2.25M4 7.5v9l4 2.25" }),
90
+ /* @__PURE__ */ e("path", { d: "m20 7.5-8-4.5-8 4.5" }),
91
+ /* @__PURE__ */ e("path", { d: "m12 12 8-4.5M12 12v9.5M12 12 4 7.5" })
92
+ ] });
93
+ }
94
+ function p() {
95
+ return /* @__PURE__ */ e("svg", { width: "16", height: "16", viewBox: "0 0 24 24", fill: "none", stroke: "currentColor", strokeWidth: "2", strokeLinecap: "round", strokeLinejoin: "round", children: /* @__PURE__ */ e("path", { d: "M12 2v20M17 5H9.5a3.5 3.5 0 0 0 0 7h5a3.5 3.5 0 0 1 0 7H6" }) });
96
+ }
97
+ function g() {
98
+ return /* @__PURE__ */ t("svg", { width: "16", height: "16", viewBox: "0 0 24 24", fill: "none", stroke: "currentColor", strokeWidth: "2", strokeLinecap: "round", strokeLinejoin: "round", children: [
99
+ /* @__PURE__ */ e("path", { d: "M2 9a3 3 0 0 1 0 6v2a2 2 0 0 0 2 2h16a2 2 0 0 0 2-2v-2a3 3 0 0 1 0-6V7a2 2 0 0 0-2-2H4a2 2 0 0 0-2 2Z" }),
100
+ /* @__PURE__ */ e("path", { d: "M13 5v2M13 17v2M13 11v2" })
101
+ ] });
102
+ }
103
+ function w() {
104
+ return /* @__PURE__ */ t("svg", { width: "16", height: "16", viewBox: "0 0 24 24", fill: "none", stroke: "currentColor", strokeWidth: "2", strokeLinecap: "round", strokeLinejoin: "round", children: [
105
+ /* @__PURE__ */ e("path", { d: "M3 12a9 9 0 1 0 9-9 9.75 9.75 0 0 0-6.74 2.74L3 8" }),
106
+ /* @__PURE__ */ e("path", { d: "M3 3v5h5" }),
107
+ /* @__PURE__ */ e("path", { d: "M12 7v5l4 2" })
108
+ ] });
109
+ }
110
+ function v() {
111
+ return /* @__PURE__ */ t("svg", { width: "16", height: "16", viewBox: "0 0 24 24", fill: "none", stroke: "currentColor", strokeWidth: "2", strokeLinecap: "round", strokeLinejoin: "round", children: [
112
+ /* @__PURE__ */ e("path", { d: "M12.22 2h-.44a2 2 0 0 0-2 2v.18a2 2 0 0 1-1 1.73l-.43.25a2 2 0 0 1-2 0l-.15-.08a2 2 0 0 0-2.73.73l-.22.38a2 2 0 0 0 .73 2.73l.15.1a2 2 0 0 1 1 1.72v.51a2 2 0 0 1-1 1.74l-.15.09a2 2 0 0 0-.73 2.73l.22.38a2 2 0 0 0 2.73.73l.15-.08a2 2 0 0 1 2 0l.43.25a2 2 0 0 1 1 1.73V20a2 2 0 0 0 2 2h.44a2 2 0 0 0 2-2v-.18a2 2 0 0 1 1-1.73l.43-.25a2 2 0 0 1 2 0l.15.08a2 2 0 0 0 2.73-.73l.22-.39a2 2 0 0 0-.73-2.73l-.15-.08a2 2 0 0 1-1-1.74v-.5a2 2 0 0 1 1-1.74l.15-.09a2 2 0 0 0 .73-2.73l-.22-.38a2 2 0 0 0-2.73-.73l-.15.08a2 2 0 0 1-2 0l-.43-.25a2 2 0 0 1-1-1.73V4a2 2 0 0 0-2-2z" }),
113
+ /* @__PURE__ */ e("circle", { cx: "12", cy: "12", r: "3" })
114
+ ] });
115
+ }
116
+ function f() {
117
+ return /* @__PURE__ */ t("svg", { width: "16", height: "16", viewBox: "0 0 24 24", fill: "none", stroke: "currentColor", strokeWidth: "2", strokeLinecap: "round", strokeLinejoin: "round", children: [
118
+ /* @__PURE__ */ e("path", { d: "M19 7V4a1 1 0 0 0-1-1H5a2 2 0 0 0 0 4h15a1 1 0 0 1 1 1v4h-3a2 2 0 0 0 0 4h3a1 1 0 0 0 1-1v-2a1 1 0 0 0-1-1" }),
119
+ /* @__PURE__ */ e("path", { d: "M3 5v14a2 2 0 0 0 2 2h15a1 1 0 0 0 1-1v-4" })
120
+ ] });
121
+ }
122
+ const W = {
123
+ products: () => /* @__PURE__ */ e(k, {}),
124
+ transactions: () => /* @__PURE__ */ e(p, {}),
125
+ coupons: () => /* @__PURE__ */ e(g, {}),
126
+ refunds: () => /* @__PURE__ */ e(w, {}),
127
+ settings: () => /* @__PURE__ */ e(v, {}),
128
+ wallet: () => /* @__PURE__ */ e(f, {})
129
+ }, A = {
130
+ products: /* @__PURE__ */ e(k, {}),
131
+ transactions: /* @__PURE__ */ e(p, {}),
132
+ coupons: /* @__PURE__ */ e(g, {}),
133
+ refunds: /* @__PURE__ */ e(w, {}),
134
+ settings: /* @__PURE__ */ e(v, {}),
135
+ wallet: /* @__PURE__ */ e(f, {}),
136
+ chevronRight: /* @__PURE__ */ e("svg", { width: "16", height: "16", viewBox: "0 0 24 24", fill: "none", stroke: "currentColor", strokeWidth: "2", strokeLinecap: "round", strokeLinejoin: "round", children: /* @__PURE__ */ e("path", { d: "m9 18 6-6-6-6" }) }),
137
+ loading: /* @__PURE__ */ e("svg", { width: "16", height: "16", viewBox: "0 0 24 24", fill: "none", stroke: "currentColor", strokeWidth: "2", strokeLinecap: "round", strokeLinejoin: "round", className: "cedros-admin__spinner", children: /* @__PURE__ */ e("path", { d: "M21 12a9 9 0 1 1-6.219-8.56" }) }),
138
+ refresh: /* @__PURE__ */ t("svg", { width: "16", height: "16", viewBox: "0 0 24 24", fill: "none", stroke: "currentColor", strokeWidth: "2", strokeLinecap: "round", strokeLinejoin: "round", children: [
139
+ /* @__PURE__ */ e("path", { d: "M3 12a9 9 0 0 1 9-9 9.75 9.75 0 0 1 6.74 2.74L21 8" }),
140
+ /* @__PURE__ */ e("path", { d: "M21 3v5h-5" }),
141
+ /* @__PURE__ */ e("path", { d: "M21 12a9 9 0 0 1-9 9 9.75 9.75 0 0 1-6.74-2.74L3 16" }),
142
+ /* @__PURE__ */ e("path", { d: "M8 16H3v5" })
143
+ ] }),
144
+ user: /* @__PURE__ */ t("svg", { width: "16", height: "16", viewBox: "0 0 24 24", fill: "none", stroke: "currentColor", strokeWidth: "2", strokeLinecap: "round", strokeLinejoin: "round", children: [
145
+ /* @__PURE__ */ e("circle", { cx: "12", cy: "8", r: "5" }),
146
+ /* @__PURE__ */ e("path", { d: "M20 21a8 8 0 0 0-16 0" })
147
+ ] }),
148
+ check: /* @__PURE__ */ e("svg", { width: "16", height: "16", viewBox: "0 0 24 24", fill: "none", stroke: "currentColor", strokeWidth: "2", strokeLinecap: "round", strokeLinejoin: "round", children: /* @__PURE__ */ e("path", { d: "M20 6 9 17l-5-5" }) }),
149
+ trash: /* @__PURE__ */ e("svg", { width: "16", height: "16", viewBox: "0 0 24 24", fill: "none", stroke: "currentColor", strokeWidth: "2", strokeLinecap: "round", strokeLinejoin: "round", children: /* @__PURE__ */ e("path", { d: "M3 6h18M19 6v14c0 1-1 2-2 2H7c-1 0-2-1-2-2V6M8 6V4c0-1 1-2 2-2h4c1 0 2 1 2 2v2" }) }),
150
+ plus: /* @__PURE__ */ e("svg", { width: "16", height: "16", viewBox: "0 0 24 24", fill: "none", stroke: "currentColor", strokeWidth: "2", strokeLinecap: "round", strokeLinejoin: "round", children: /* @__PURE__ */ e("path", { d: "M12 5v14M5 12h14" }) }),
151
+ chevronDown: /* @__PURE__ */ e("svg", { width: "16", height: "16", viewBox: "0 0 24 24", fill: "none", stroke: "currentColor", strokeWidth: "2", strokeLinecap: "round", strokeLinejoin: "round", children: /* @__PURE__ */ e("path", { d: "m6 9 6 6 6-6" }) }),
152
+ chevronUp: /* @__PURE__ */ e("svg", { width: "16", height: "16", viewBox: "0 0 24 24", fill: "none", stroke: "currentColor", strokeWidth: "2", strokeLinecap: "round", strokeLinejoin: "round", children: /* @__PURE__ */ e("path", { d: "m18 15-6-6-6 6" }) }),
153
+ storefront: /* @__PURE__ */ t("svg", { width: "16", height: "16", viewBox: "0 0 24 24", fill: "none", stroke: "currentColor", strokeWidth: "2", strokeLinecap: "round", strokeLinejoin: "round", children: [
154
+ /* @__PURE__ */ e("path", { d: "M3 9h18v10a2 2 0 0 1-2 2H5a2 2 0 0 1-2-2V9Z" }),
155
+ /* @__PURE__ */ e("path", { d: "m3 9 2.45-4.9A2 2 0 0 1 7.24 3h9.52a2 2 0 0 1 1.8 1.1L21 9" }),
156
+ /* @__PURE__ */ e("path", { d: "M12 3v6" })
157
+ ] }),
158
+ arrowUp: /* @__PURE__ */ t("svg", { width: "16", height: "16", viewBox: "0 0 24 24", fill: "none", stroke: "currentColor", strokeWidth: "2", strokeLinecap: "round", strokeLinejoin: "round", children: [
159
+ /* @__PURE__ */ e("path", { d: "m5 12 7-7 7 7" }),
160
+ /* @__PURE__ */ e("path", { d: "M12 19V5" })
161
+ ] }),
162
+ arrowDown: /* @__PURE__ */ t("svg", { width: "16", height: "16", viewBox: "0 0 24 24", fill: "none", stroke: "currentColor", strokeWidth: "2", strokeLinecap: "round", strokeLinejoin: "round", children: [
163
+ /* @__PURE__ */ e("path", { d: "m5 12 7 7 7-7" }),
164
+ /* @__PURE__ */ e("path", { d: "M12 5v14" })
165
+ ] }),
166
+ delete: /* @__PURE__ */ t("svg", { width: "16", height: "16", viewBox: "0 0 24 24", fill: "none", stroke: "currentColor", strokeWidth: "2", strokeLinecap: "round", strokeLinejoin: "round", children: [
167
+ /* @__PURE__ */ e("path", { d: "M3 6h18M19 6v14c0 1-1 2-2 2H7c-1 0-2-1-2-2V6M8 6V4c0-1 1-2 2-2h4c1 0 2 1 2 2v2" }),
168
+ /* @__PURE__ */ e("path", { d: "M10 11v6M14 11v6" })
169
+ ] }),
170
+ close: /* @__PURE__ */ e("svg", { width: "16", height: "16", viewBox: "0 0 24 24", fill: "none", stroke: "currentColor", strokeWidth: "2", strokeLinecap: "round", strokeLinejoin: "round", children: /* @__PURE__ */ e("path", { d: "M18 6 6 18M6 6l12 12" }) }),
171
+ edit: /* @__PURE__ */ t("svg", { width: "16", height: "16", viewBox: "0 0 24 24", fill: "none", stroke: "currentColor", strokeWidth: "2", strokeLinecap: "round", strokeLinejoin: "round", children: [
172
+ /* @__PURE__ */ e("path", { d: "M11 4H4a2 2 0 0 0-2 2v14a2 2 0 0 0 2 2h14a2 2 0 0 0 2-2v-7" }),
173
+ /* @__PURE__ */ e("path", { d: "M18.5 2.5a2.121 2.121 0 0 1 3 3L12 15l-4 1 1-4 9.5-9.5z" })
174
+ ] }),
175
+ faq: /* @__PURE__ */ t("svg", { width: "16", height: "16", viewBox: "0 0 24 24", fill: "none", stroke: "currentColor", strokeWidth: "2", strokeLinecap: "round", strokeLinejoin: "round", children: [
176
+ /* @__PURE__ */ e("circle", { cx: "12", cy: "12", r: "10" }),
177
+ /* @__PURE__ */ e("path", { d: "M9.09 9a3 3 0 0 1 5.83 1c0 2-3 3-3 3" }),
178
+ /* @__PURE__ */ e("path", { d: "M12 17h.01" })
179
+ ] }),
180
+ chat: /* @__PURE__ */ e("svg", { width: "16", height: "16", viewBox: "0 0 24 24", fill: "none", stroke: "currentColor", strokeWidth: "2", strokeLinecap: "round", strokeLinejoin: "round", children: /* @__PURE__ */ e("path", { d: "m3 21 1.9-5.7a8.5 8.5 0 1 1 3.8 3.8z" }) }),
181
+ globe: /* @__PURE__ */ t("svg", { width: "16", height: "16", viewBox: "0 0 24 24", fill: "none", stroke: "currentColor", strokeWidth: "2", strokeLinecap: "round", strokeLinejoin: "round", children: [
182
+ /* @__PURE__ */ e("circle", { cx: "12", cy: "12", r: "10" }),
183
+ /* @__PURE__ */ e("path", { d: "M12 2a14.5 14.5 0 0 0 0 20 14.5 14.5 0 0 0 0-20" }),
184
+ /* @__PURE__ */ e("path", { d: "M2 12h20" })
185
+ ] }),
186
+ eye: /* @__PURE__ */ t("svg", { width: "16", height: "16", viewBox: "0 0 24 24", fill: "none", stroke: "currentColor", strokeWidth: "2", strokeLinecap: "round", strokeLinejoin: "round", children: [
187
+ /* @__PURE__ */ e("path", { d: "M2 12s3-7 10-7 10 7 10 7-3 7-10 7-10-7-10-7Z" }),
188
+ /* @__PURE__ */ e("circle", { cx: "12", cy: "12", r: "3" })
189
+ ] }),
190
+ eyeOff: /* @__PURE__ */ t("svg", { width: "16", height: "16", viewBox: "0 0 24 24", fill: "none", stroke: "currentColor", strokeWidth: "2", strokeLinecap: "round", strokeLinejoin: "round", children: [
191
+ /* @__PURE__ */ e("path", { d: "M9.88 9.88a3 3 0 1 0 4.24 4.24" }),
192
+ /* @__PURE__ */ e("path", { d: "M10.73 5.08A10.43 10.43 0 0 1 12 5c7 0 10 7 10 7a13.16 13.16 0 0 1-1.67 2.68" }),
193
+ /* @__PURE__ */ e("path", { d: "M6.61 6.61A13.526 13.526 0 0 0 2 12s3 7 10 7a9.74 9.74 0 0 0 5.39-1.61" }),
194
+ /* @__PURE__ */ e("line", { x1: "2", x2: "22", y1: "2", y2: "22" })
195
+ ] }),
196
+ creditCard: /* @__PURE__ */ t("svg", { width: "16", height: "16", viewBox: "0 0 24 24", fill: "none", stroke: "currentColor", strokeWidth: "2", strokeLinecap: "round", strokeLinejoin: "round", children: [
197
+ /* @__PURE__ */ e("rect", { width: "20", height: "14", x: "2", y: "5", rx: "2" }),
198
+ /* @__PURE__ */ e("line", { x1: "2", x2: "22", y1: "10", y2: "10" })
199
+ ] }),
200
+ mail: /* @__PURE__ */ t("svg", { width: "16", height: "16", viewBox: "0 0 24 24", fill: "none", stroke: "currentColor", strokeWidth: "2", strokeLinecap: "round", strokeLinejoin: "round", children: [
201
+ /* @__PURE__ */ e("rect", { width: "20", height: "16", x: "2", y: "4", rx: "2" }),
202
+ /* @__PURE__ */ e("path", { d: "m22 7-8.97 5.7a1.94 1.94 0 0 1-2.06 0L2 7" })
203
+ ] }),
204
+ server: /* @__PURE__ */ t("svg", { width: "16", height: "16", viewBox: "0 0 24 24", fill: "none", stroke: "currentColor", strokeWidth: "2", strokeLinecap: "round", strokeLinejoin: "round", children: [
205
+ /* @__PURE__ */ e("rect", { width: "20", height: "8", x: "2", y: "2", rx: "2", ry: "2" }),
206
+ /* @__PURE__ */ e("rect", { width: "20", height: "8", x: "2", y: "14", rx: "2", ry: "2" }),
207
+ /* @__PURE__ */ e("line", { x1: "6", x2: "6.01", y1: "6", y2: "6" }),
208
+ /* @__PURE__ */ e("line", { x1: "6", x2: "6.01", y1: "18", y2: "18" })
209
+ ] }),
210
+ calendarRepeat: /* @__PURE__ */ t("svg", { width: "16", height: "16", viewBox: "0 0 24 24", fill: "none", stroke: "currentColor", strokeWidth: "2", strokeLinecap: "round", strokeLinejoin: "round", children: [
211
+ /* @__PURE__ */ e("rect", { width: "18", height: "18", x: "3", y: "4", rx: "2", ry: "2" }),
212
+ /* @__PURE__ */ e("line", { x1: "16", x2: "16", y1: "2", y2: "6" }),
213
+ /* @__PURE__ */ e("line", { x1: "8", x2: "8", y1: "2", y2: "6" }),
214
+ /* @__PURE__ */ e("line", { x1: "3", x2: "21", y1: "10", y2: "10" }),
215
+ /* @__PURE__ */ e("path", { d: "M11 14h1.5a1.5 1.5 0 0 1 0 3H11v2" }),
216
+ /* @__PURE__ */ e("path", { d: "M16 14v3a1 1 0 0 0 1 1h1" })
217
+ ] }),
218
+ shield: /* @__PURE__ */ e("svg", { width: "16", height: "16", viewBox: "0 0 24 24", fill: "none", stroke: "currentColor", strokeWidth: "2", strokeLinecap: "round", strokeLinejoin: "round", children: /* @__PURE__ */ e("path", { d: "M20 13c0 5-3.5 7.5-7.66 8.95a1 1 0 0 1-.67-.01C7.5 20.5 4 18 4 13V6a1 1 0 0 1 1-1c2 0 4.5-1.2 6.24-2.72a1.17 1.17 0 0 1 1.52 0C14.51 3.81 17 5 19 5a1 1 0 0 1 1 1z" }) }),
219
+ brain: /* @__PURE__ */ t("svg", { width: "16", height: "16", viewBox: "0 0 24 24", fill: "none", stroke: "currentColor", strokeWidth: "2", strokeLinecap: "round", strokeLinejoin: "round", children: [
220
+ /* @__PURE__ */ e("path", { d: "M12 5a3 3 0 1 0-5.997.125 4 4 0 0 0-2.526 5.77 4 4 0 0 0 .556 6.588A4 4 0 1 0 12 18Z" }),
221
+ /* @__PURE__ */ e("path", { d: "M12 5a3 3 0 1 1 5.997.125 4 4 0 0 1 2.526 5.77 4 4 0 0 1-.556 6.588A4 4 0 1 1 12 18Z" }),
222
+ /* @__PURE__ */ e("path", { d: "M15 13a4.5 4.5 0 0 1-3-4 4.5 4.5 0 0 1-3 4" }),
223
+ /* @__PURE__ */ e("path", { d: "M17.599 6.5a3 3 0 0 0 .399-1.375" }),
224
+ /* @__PURE__ */ e("path", { d: "M6.003 5.125A3 3 0 0 0 6.401 6.5" }),
225
+ /* @__PURE__ */ e("path", { d: "M3.477 10.896a4 4 0 0 1 .585-.396" }),
226
+ /* @__PURE__ */ e("path", { d: "M19.938 10.5a4 4 0 0 1 .585.396" }),
227
+ /* @__PURE__ */ e("path", { d: "M6 18a4 4 0 0 1-1.967-.516" }),
228
+ /* @__PURE__ */ e("path", { d: "M19.967 17.484A4 4 0 0 1 18 18" })
229
+ ] })
230
+ };
231
+ export {
232
+ W as A,
233
+ A as I,
234
+ C as a
235
+ };
@@ -0,0 +1 @@
1
+ "use strict";const p=require("./index-WcOlBYZJ.js"),s=require("./fetchWithTimeout-CG0EKbhf.js"),e=require("react/jsx-runtime");class w{serverUrl;walletSigner=null;jwtToken=null;isAdminUser=!1;constructor(t){this.serverUrl=t}getAuthMethod(){return this.walletSigner?.publicKey&&this.walletSigner.signMessage?"wallet":this.jwtToken&&this.isAdminUser?"cedros-login":"none"}isAuthenticated(){return this.getAuthMethod()!=="none"}setWalletSigner(t){this.walletSigner=t,s.getLogger().debug("[AdminAuthManager] Wallet signer updated:",!!t?.publicKey)}setCedrosLoginAuth(t,r){this.jwtToken=t,this.isAdminUser=r??!1,s.getLogger().debug("[AdminAuthManager] Cedros-login auth updated:",{hasToken:!!t,isAdmin:this.isAdminUser})}async createAuthHeaders(t){const r=this.getAuthMethod();if(r==="wallet")return this.createWalletAuthHeaders(t);if(r==="cedros-login")return this.createJwtAuthHeaders();throw new Error("No admin authentication configured. Connect a wallet or sign in as admin.")}async createWalletAuthHeaders(t){if(!this.walletSigner?.publicKey||!this.walletSigner.signMessage)throw new Error("Wallet not connected or does not support message signing");const r=await this.fetchNonce(t),i=new TextEncoder().encode(r.nonce),o=await this.walletSigner.signMessage(i),h=p.bs58.encode(this.walletSigner.publicKey.toBytes()),d=s.gBase64.fromUint8Array(o);return{"X-Signer":h,"X-Message":r.nonce,"X-Signature":d}}createJwtAuthHeaders(){if(!this.jwtToken)throw new Error("No JWT token available");return{Authorization:`Bearer ${this.jwtToken}`}}async fetchNonce(t){const r=`${this.serverUrl}/paywall/v1/nonce`,i=typeof t=="string"?{purpose:t}:{path:t.path,method:t.method.toUpperCase()};s.getLogger().debug("[AdminAuthManager] Fetching nonce:",i);const o=await s.fetchWithTimeout(r,{method:"POST",headers:{"Content-Type":"application/json"},body:JSON.stringify(i)});if(!o.ok){const h=await o.text();throw new Error(`Failed to fetch nonce: ${o.status} ${h}`)}return await o.json()}async fetchWithAuth(t,r={}){if(this.getAuthMethod()==="none")throw new Error("No admin authentication configured");const o=(r.method||"GET").toUpperCase(),h=await this.createAuthHeaders({path:t,method:o}),d={...o!=="GET"&&o!=="HEAD"?{"Content-Type":"application/json"}:{},...r.headers||{},...h},a=await s.fetchWithTimeout(`${this.serverUrl}${t}`,{...r,headers:d});if(!a.ok){let c=`Admin API error ${a.status}`;try{const n=await a.json();n&&typeof n.error=="string"?c=n.error:n&&typeof n.message=="string"&&(c=n.message)}catch{}throw new Error(c)}return await a.json()}}function l(){return e.jsxs("svg",{width:"16",height:"16",viewBox:"0 0 24 24",fill:"none",stroke:"currentColor",strokeWidth:"2",strokeLinecap:"round",strokeLinejoin:"round",children:[e.jsx("path",{d:"M20 7.5v9l-4 2.25M4 7.5v9l4 2.25"}),e.jsx("path",{d:"m20 7.5-8-4.5-8 4.5"}),e.jsx("path",{d:"m12 12 8-4.5M12 12v9.5M12 12 4 7.5"})]})}function u(){return e.jsx("svg",{width:"16",height:"16",viewBox:"0 0 24 24",fill:"none",stroke:"currentColor",strokeWidth:"2",strokeLinecap:"round",strokeLinejoin:"round",children:e.jsx("path",{d:"M12 2v20M17 5H9.5a3.5 3.5 0 0 0 0 7h5a3.5 3.5 0 0 1 0 7H6"})})}function x(){return e.jsxs("svg",{width:"16",height:"16",viewBox:"0 0 24 24",fill:"none",stroke:"currentColor",strokeWidth:"2",strokeLinecap:"round",strokeLinejoin:"round",children:[e.jsx("path",{d:"M2 9a3 3 0 0 1 0 6v2a2 2 0 0 0 2 2h16a2 2 0 0 0 2-2v-2a3 3 0 0 1 0-6V7a2 2 0 0 0-2-2H4a2 2 0 0 0-2 2Z"}),e.jsx("path",{d:"M13 5v2M13 17v2M13 11v2"})]})}function j(){return e.jsxs("svg",{width:"16",height:"16",viewBox:"0 0 24 24",fill:"none",stroke:"currentColor",strokeWidth:"2",strokeLinecap:"round",strokeLinejoin:"round",children:[e.jsx("path",{d:"M3 12a9 9 0 1 0 9-9 9.75 9.75 0 0 0-6.74 2.74L3 8"}),e.jsx("path",{d:"M3 3v5h5"}),e.jsx("path",{d:"M12 7v5l4 2"})]})}function k(){return e.jsxs("svg",{width:"16",height:"16",viewBox:"0 0 24 24",fill:"none",stroke:"currentColor",strokeWidth:"2",strokeLinecap:"round",strokeLinejoin:"round",children:[e.jsx("path",{d:"M12.22 2h-.44a2 2 0 0 0-2 2v.18a2 2 0 0 1-1 1.73l-.43.25a2 2 0 0 1-2 0l-.15-.08a2 2 0 0 0-2.73.73l-.22.38a2 2 0 0 0 .73 2.73l.15.1a2 2 0 0 1 1 1.72v.51a2 2 0 0 1-1 1.74l-.15.09a2 2 0 0 0-.73 2.73l.22.38a2 2 0 0 0 2.73.73l.15-.08a2 2 0 0 1 2 0l.43.25a2 2 0 0 1 1 1.73V20a2 2 0 0 0 2 2h.44a2 2 0 0 0 2-2v-.18a2 2 0 0 1 1-1.73l.43-.25a2 2 0 0 1 2 0l.15.08a2 2 0 0 0 2.73-.73l.22-.39a2 2 0 0 0-.73-2.73l-.15-.08a2 2 0 0 1-1-1.74v-.5a2 2 0 0 1 1-1.74l.15-.09a2 2 0 0 0 .73-2.73l-.22-.38a2 2 0 0 0-2.73-.73l-.15.08a2 2 0 0 1-2 0l-.43-.25a2 2 0 0 1-1-1.73V4a2 2 0 0 0-2-2z"}),e.jsx("circle",{cx:"12",cy:"12",r:"3"})]})}function g(){return e.jsxs("svg",{width:"16",height:"16",viewBox:"0 0 24 24",fill:"none",stroke:"currentColor",strokeWidth:"2",strokeLinecap:"round",strokeLinejoin:"round",children:[e.jsx("path",{d:"M19 7V4a1 1 0 0 0-1-1H5a2 2 0 0 0 0 4h15a1 1 0 0 1 1 1v4h-3a2 2 0 0 0 0 4h3a1 1 0 0 0 1-1v-2a1 1 0 0 0-1-1"}),e.jsx("path",{d:"M3 5v14a2 2 0 0 0 2 2h15a1 1 0 0 0 1-1v-4"})]})}const v={products:()=>e.jsx(l,{}),transactions:()=>e.jsx(u,{}),coupons:()=>e.jsx(x,{}),refunds:()=>e.jsx(j,{}),settings:()=>e.jsx(k,{}),wallet:()=>e.jsx(g,{})},M={products:e.jsx(l,{}),transactions:e.jsx(u,{}),coupons:e.jsx(x,{}),refunds:e.jsx(j,{}),settings:e.jsx(k,{}),wallet:e.jsx(g,{}),chevronRight:e.jsx("svg",{width:"16",height:"16",viewBox:"0 0 24 24",fill:"none",stroke:"currentColor",strokeWidth:"2",strokeLinecap:"round",strokeLinejoin:"round",children:e.jsx("path",{d:"m9 18 6-6-6-6"})}),loading:e.jsx("svg",{width:"16",height:"16",viewBox:"0 0 24 24",fill:"none",stroke:"currentColor",strokeWidth:"2",strokeLinecap:"round",strokeLinejoin:"round",className:"cedros-admin__spinner",children:e.jsx("path",{d:"M21 12a9 9 0 1 1-6.219-8.56"})}),refresh:e.jsxs("svg",{width:"16",height:"16",viewBox:"0 0 24 24",fill:"none",stroke:"currentColor",strokeWidth:"2",strokeLinecap:"round",strokeLinejoin:"round",children:[e.jsx("path",{d:"M3 12a9 9 0 0 1 9-9 9.75 9.75 0 0 1 6.74 2.74L21 8"}),e.jsx("path",{d:"M21 3v5h-5"}),e.jsx("path",{d:"M21 12a9 9 0 0 1-9 9 9.75 9.75 0 0 1-6.74-2.74L3 16"}),e.jsx("path",{d:"M8 16H3v5"})]}),user:e.jsxs("svg",{width:"16",height:"16",viewBox:"0 0 24 24",fill:"none",stroke:"currentColor",strokeWidth:"2",strokeLinecap:"round",strokeLinejoin:"round",children:[e.jsx("circle",{cx:"12",cy:"8",r:"5"}),e.jsx("path",{d:"M20 21a8 8 0 0 0-16 0"})]}),check:e.jsx("svg",{width:"16",height:"16",viewBox:"0 0 24 24",fill:"none",stroke:"currentColor",strokeWidth:"2",strokeLinecap:"round",strokeLinejoin:"round",children:e.jsx("path",{d:"M20 6 9 17l-5-5"})}),trash:e.jsx("svg",{width:"16",height:"16",viewBox:"0 0 24 24",fill:"none",stroke:"currentColor",strokeWidth:"2",strokeLinecap:"round",strokeLinejoin:"round",children:e.jsx("path",{d:"M3 6h18M19 6v14c0 1-1 2-2 2H7c-1 0-2-1-2-2V6M8 6V4c0-1 1-2 2-2h4c1 0 2 1 2 2v2"})}),plus:e.jsx("svg",{width:"16",height:"16",viewBox:"0 0 24 24",fill:"none",stroke:"currentColor",strokeWidth:"2",strokeLinecap:"round",strokeLinejoin:"round",children:e.jsx("path",{d:"M12 5v14M5 12h14"})}),chevronDown:e.jsx("svg",{width:"16",height:"16",viewBox:"0 0 24 24",fill:"none",stroke:"currentColor",strokeWidth:"2",strokeLinecap:"round",strokeLinejoin:"round",children:e.jsx("path",{d:"m6 9 6 6 6-6"})}),chevronUp:e.jsx("svg",{width:"16",height:"16",viewBox:"0 0 24 24",fill:"none",stroke:"currentColor",strokeWidth:"2",strokeLinecap:"round",strokeLinejoin:"round",children:e.jsx("path",{d:"m18 15-6-6-6 6"})}),storefront:e.jsxs("svg",{width:"16",height:"16",viewBox:"0 0 24 24",fill:"none",stroke:"currentColor",strokeWidth:"2",strokeLinecap:"round",strokeLinejoin:"round",children:[e.jsx("path",{d:"M3 9h18v10a2 2 0 0 1-2 2H5a2 2 0 0 1-2-2V9Z"}),e.jsx("path",{d:"m3 9 2.45-4.9A2 2 0 0 1 7.24 3h9.52a2 2 0 0 1 1.8 1.1L21 9"}),e.jsx("path",{d:"M12 3v6"})]}),arrowUp:e.jsxs("svg",{width:"16",height:"16",viewBox:"0 0 24 24",fill:"none",stroke:"currentColor",strokeWidth:"2",strokeLinecap:"round",strokeLinejoin:"round",children:[e.jsx("path",{d:"m5 12 7-7 7 7"}),e.jsx("path",{d:"M12 19V5"})]}),arrowDown:e.jsxs("svg",{width:"16",height:"16",viewBox:"0 0 24 24",fill:"none",stroke:"currentColor",strokeWidth:"2",strokeLinecap:"round",strokeLinejoin:"round",children:[e.jsx("path",{d:"m5 12 7 7 7-7"}),e.jsx("path",{d:"M12 5v14"})]}),delete:e.jsxs("svg",{width:"16",height:"16",viewBox:"0 0 24 24",fill:"none",stroke:"currentColor",strokeWidth:"2",strokeLinecap:"round",strokeLinejoin:"round",children:[e.jsx("path",{d:"M3 6h18M19 6v14c0 1-1 2-2 2H7c-1 0-2-1-2-2V6M8 6V4c0-1 1-2 2-2h4c1 0 2 1 2 2v2"}),e.jsx("path",{d:"M10 11v6M14 11v6"})]}),close:e.jsx("svg",{width:"16",height:"16",viewBox:"0 0 24 24",fill:"none",stroke:"currentColor",strokeWidth:"2",strokeLinecap:"round",strokeLinejoin:"round",children:e.jsx("path",{d:"M18 6 6 18M6 6l12 12"})}),edit:e.jsxs("svg",{width:"16",height:"16",viewBox:"0 0 24 24",fill:"none",stroke:"currentColor",strokeWidth:"2",strokeLinecap:"round",strokeLinejoin:"round",children:[e.jsx("path",{d:"M11 4H4a2 2 0 0 0-2 2v14a2 2 0 0 0 2 2h14a2 2 0 0 0 2-2v-7"}),e.jsx("path",{d:"M18.5 2.5a2.121 2.121 0 0 1 3 3L12 15l-4 1 1-4 9.5-9.5z"})]}),faq:e.jsxs("svg",{width:"16",height:"16",viewBox:"0 0 24 24",fill:"none",stroke:"currentColor",strokeWidth:"2",strokeLinecap:"round",strokeLinejoin:"round",children:[e.jsx("circle",{cx:"12",cy:"12",r:"10"}),e.jsx("path",{d:"M9.09 9a3 3 0 0 1 5.83 1c0 2-3 3-3 3"}),e.jsx("path",{d:"M12 17h.01"})]}),chat:e.jsx("svg",{width:"16",height:"16",viewBox:"0 0 24 24",fill:"none",stroke:"currentColor",strokeWidth:"2",strokeLinecap:"round",strokeLinejoin:"round",children:e.jsx("path",{d:"m3 21 1.9-5.7a8.5 8.5 0 1 1 3.8 3.8z"})}),globe:e.jsxs("svg",{width:"16",height:"16",viewBox:"0 0 24 24",fill:"none",stroke:"currentColor",strokeWidth:"2",strokeLinecap:"round",strokeLinejoin:"round",children:[e.jsx("circle",{cx:"12",cy:"12",r:"10"}),e.jsx("path",{d:"M12 2a14.5 14.5 0 0 0 0 20 14.5 14.5 0 0 0 0-20"}),e.jsx("path",{d:"M2 12h20"})]}),eye:e.jsxs("svg",{width:"16",height:"16",viewBox:"0 0 24 24",fill:"none",stroke:"currentColor",strokeWidth:"2",strokeLinecap:"round",strokeLinejoin:"round",children:[e.jsx("path",{d:"M2 12s3-7 10-7 10 7 10 7-3 7-10 7-10-7-10-7Z"}),e.jsx("circle",{cx:"12",cy:"12",r:"3"})]}),eyeOff:e.jsxs("svg",{width:"16",height:"16",viewBox:"0 0 24 24",fill:"none",stroke:"currentColor",strokeWidth:"2",strokeLinecap:"round",strokeLinejoin:"round",children:[e.jsx("path",{d:"M9.88 9.88a3 3 0 1 0 4.24 4.24"}),e.jsx("path",{d:"M10.73 5.08A10.43 10.43 0 0 1 12 5c7 0 10 7 10 7a13.16 13.16 0 0 1-1.67 2.68"}),e.jsx("path",{d:"M6.61 6.61A13.526 13.526 0 0 0 2 12s3 7 10 7a9.74 9.74 0 0 0 5.39-1.61"}),e.jsx("line",{x1:"2",x2:"22",y1:"2",y2:"22"})]}),creditCard:e.jsxs("svg",{width:"16",height:"16",viewBox:"0 0 24 24",fill:"none",stroke:"currentColor",strokeWidth:"2",strokeLinecap:"round",strokeLinejoin:"round",children:[e.jsx("rect",{width:"20",height:"14",x:"2",y:"5",rx:"2"}),e.jsx("line",{x1:"2",x2:"22",y1:"10",y2:"10"})]}),mail:e.jsxs("svg",{width:"16",height:"16",viewBox:"0 0 24 24",fill:"none",stroke:"currentColor",strokeWidth:"2",strokeLinecap:"round",strokeLinejoin:"round",children:[e.jsx("rect",{width:"20",height:"16",x:"2",y:"4",rx:"2"}),e.jsx("path",{d:"m22 7-8.97 5.7a1.94 1.94 0 0 1-2.06 0L2 7"})]}),server:e.jsxs("svg",{width:"16",height:"16",viewBox:"0 0 24 24",fill:"none",stroke:"currentColor",strokeWidth:"2",strokeLinecap:"round",strokeLinejoin:"round",children:[e.jsx("rect",{width:"20",height:"8",x:"2",y:"2",rx:"2",ry:"2"}),e.jsx("rect",{width:"20",height:"8",x:"2",y:"14",rx:"2",ry:"2"}),e.jsx("line",{x1:"6",x2:"6.01",y1:"6",y2:"6"}),e.jsx("line",{x1:"6",x2:"6.01",y1:"18",y2:"18"})]}),calendarRepeat:e.jsxs("svg",{width:"16",height:"16",viewBox:"0 0 24 24",fill:"none",stroke:"currentColor",strokeWidth:"2",strokeLinecap:"round",strokeLinejoin:"round",children:[e.jsx("rect",{width:"18",height:"18",x:"3",y:"4",rx:"2",ry:"2"}),e.jsx("line",{x1:"16",x2:"16",y1:"2",y2:"6"}),e.jsx("line",{x1:"8",x2:"8",y1:"2",y2:"6"}),e.jsx("line",{x1:"3",x2:"21",y1:"10",y2:"10"}),e.jsx("path",{d:"M11 14h1.5a1.5 1.5 0 0 1 0 3H11v2"}),e.jsx("path",{d:"M16 14v3a1 1 0 0 0 1 1h1"})]}),shield:e.jsx("svg",{width:"16",height:"16",viewBox:"0 0 24 24",fill:"none",stroke:"currentColor",strokeWidth:"2",strokeLinecap:"round",strokeLinejoin:"round",children:e.jsx("path",{d:"M20 13c0 5-3.5 7.5-7.66 8.95a1 1 0 0 1-.67-.01C7.5 20.5 4 18 4 13V6a1 1 0 0 1 1-1c2 0 4.5-1.2 6.24-2.72a1.17 1.17 0 0 1 1.52 0C14.51 3.81 17 5 19 5a1 1 0 0 1 1 1z"})}),brain:e.jsxs("svg",{width:"16",height:"16",viewBox:"0 0 24 24",fill:"none",stroke:"currentColor",strokeWidth:"2",strokeLinecap:"round",strokeLinejoin:"round",children:[e.jsx("path",{d:"M12 5a3 3 0 1 0-5.997.125 4 4 0 0 0-2.526 5.77 4 4 0 0 0 .556 6.588A4 4 0 1 0 12 18Z"}),e.jsx("path",{d:"M12 5a3 3 0 1 1 5.997.125 4 4 0 0 1 2.526 5.77 4 4 0 0 1-.556 6.588A4 4 0 1 1 12 18Z"}),e.jsx("path",{d:"M15 13a4.5 4.5 0 0 1-3-4 4.5 4.5 0 0 1-3 4"}),e.jsx("path",{d:"M17.599 6.5a3 3 0 0 0 .399-1.375"}),e.jsx("path",{d:"M6.003 5.125A3 3 0 0 0 6.401 6.5"}),e.jsx("path",{d:"M3.477 10.896a4 4 0 0 1 .585-.396"}),e.jsx("path",{d:"M19.938 10.5a4 4 0 0 1 .585.396"}),e.jsx("path",{d:"M6 18a4 4 0 0 1-1.967-.516"}),e.jsx("path",{d:"M19.967 17.484A4 4 0 0 1 18 18"})]})};exports.AdminAuthManager=w;exports.AdminPluginIcons=v;exports.Icons=M;