cloudcommerce 0.1.7 → 0.2.0

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 (177) hide show
  1. package/CHANGELOG.md +33 -0
  2. package/action.yml +4 -0
  3. package/ecomplus-stores/monocard/functions/core/package.json +1 -1
  4. package/ecomplus-stores/monocard/functions/events/package.json +2 -2
  5. package/ecomplus-stores/monocard/functions/modules/package.json +2 -2
  6. package/ecomplus-stores/monocard/functions/passport/package.json +2 -2
  7. package/ecomplus-stores/monocard/functions/ssr/package.json +6 -6
  8. package/ecomplus-stores/monocard/package.json +1 -1
  9. package/ecomplus-stores/tia-sonia/functions/core/package.json +1 -1
  10. package/ecomplus-stores/tia-sonia/functions/events/package.json +2 -2
  11. package/ecomplus-stores/tia-sonia/functions/modules/package.json +2 -2
  12. package/ecomplus-stores/tia-sonia/functions/passport/package.json +2 -2
  13. package/ecomplus-stores/tia-sonia/functions/ssr/package.json +8 -7
  14. package/ecomplus-stores/tia-sonia/functions/ssr/public/img/uploads/categoria-acucares.webp +0 -0
  15. package/ecomplus-stores/tia-sonia/functions/ssr/public/img/uploads/categoria-barras.webp +0 -0
  16. package/ecomplus-stores/tia-sonia/functions/ssr/public/img/uploads/categoria-bebidas-em-po.webp +0 -0
  17. package/ecomplus-stores/tia-sonia/functions/ssr/public/img/uploads/categoria-cookies.webp +0 -0
  18. package/ecomplus-stores/tia-sonia/functions/ssr/public/img/uploads/categoria-granola-tia-sonia.webp +0 -0
  19. package/ecomplus-stores/tia-sonia/functions/ssr/public/img/uploads/categoria-integrais.webp +0 -0
  20. package/ecomplus-stores/tia-sonia/functions/ssr/public/img/uploads/categoria-naturais.webp +0 -0
  21. package/ecomplus-stores/tia-sonia/functions/ssr/public/img/uploads/categoria-pastas-tia-sonia.webp +0 -0
  22. package/ecomplus-stores/tia-sonia/functions/ssr/public/img/uploads/categoria-snacks.webp +0 -0
  23. package/ecomplus-stores/tia-sonia/functions/ssr/public/img/uploads/categoria-ultrabar.webp +0 -0
  24. package/ecomplus-stores/tia-sonia/functions/ssr/public/img/uploads/daniel-cady.webp +0 -0
  25. package/ecomplus-stores/tia-sonia/functions/ssr/public/img/uploads/granola-tradicional-lata-verso.webp +0 -0
  26. package/ecomplus-stores/tia-sonia/functions/ssr/public/img/uploads/granola-tradicional-lata.webp +0 -0
  27. package/ecomplus-stores/tia-sonia/functions/ssr/public/img/uploads/machu-picchu-1500.jpg +0 -0
  28. package/ecomplus-stores/tia-sonia/functions/ssr/public/img/uploads/selo-ibd-120-80.webp +0 -0
  29. package/ecomplus-stores/tia-sonia/functions/ssr/public/img/uploads/selo-organico-120-80.webp +0 -0
  30. package/ecomplus-stores/tia-sonia/functions/ssr/public/img/uploads/selo-usda-120-80.webp +0 -0
  31. package/ecomplus-stores/tia-sonia/functions/ssr/public/img/uploads/selo-vegano-120-80.webp +0 -0
  32. package/ecomplus-stores/tia-sonia/functions/ssr/public/img/uploads/tia-sonia-real.png +0 -0
  33. package/ecomplus-stores/tia-sonia/functions/ssr/public/img/uploads/trustvox.png +0 -0
  34. package/ecomplus-stores/tia-sonia/functions/ssr/src/components/AboutUs.astro +77 -0
  35. package/ecomplus-stores/tia-sonia/functions/ssr/src/components/BrandTestimonials.vue +134 -0
  36. package/ecomplus-stores/tia-sonia/functions/ssr/src/components/CategoriesGrid.vue +32 -0
  37. package/ecomplus-stores/tia-sonia/functions/ssr/src/components/CategoriesSlider.vue +105 -7
  38. package/ecomplus-stores/tia-sonia/functions/ssr/src/components/HeroBanner.vue +2 -2
  39. package/ecomplus-stores/tia-sonia/functions/ssr/src/layouts/Base.astro +5 -1
  40. package/ecomplus-stores/tia-sonia/functions/ssr/src/layouts/Pages.astro +1 -1
  41. package/ecomplus-stores/tia-sonia/functions/ssr/src/main/Home.astro +116 -25
  42. package/ecomplus-stores/tia-sonia/package.json +1 -1
  43. package/package.json +12 -12
  44. package/packages/api/package.json +1 -1
  45. package/packages/apps/correios/package.json +1 -1
  46. package/packages/apps/custom-payment/package.json +1 -1
  47. package/packages/apps/custom-shipping/package.json +1 -1
  48. package/packages/apps/datafrete/CHANGELOG.md +1 -0
  49. package/packages/apps/datafrete/README.md +1 -0
  50. package/packages/apps/datafrete/lib/datafrete-webhook.d.ts +4 -0
  51. package/packages/apps/datafrete/lib/datafrete-webhook.js +108 -0
  52. package/packages/apps/datafrete/lib/datafrete-webhook.js.map +1 -0
  53. package/packages/apps/datafrete/lib/datafrete.d.ts +2 -0
  54. package/packages/apps/datafrete/lib/datafrete.js +6 -0
  55. package/packages/apps/datafrete/lib/datafrete.js.map +1 -0
  56. package/packages/apps/datafrete/lib/index.d.ts +1 -0
  57. package/packages/apps/datafrete/lib/index.js +2 -0
  58. package/packages/apps/datafrete/lib/index.js.map +1 -0
  59. package/packages/apps/datafrete/lib-mjs/calculate-datafrete.mjs +277 -0
  60. package/packages/apps/datafrete/package.json +37 -0
  61. package/packages/apps/datafrete/src/datafrete-webhook.ts +131 -0
  62. package/packages/apps/datafrete/src/datafrete.ts +7 -0
  63. package/packages/apps/datafrete/src/index.ts +1 -0
  64. package/packages/apps/datafrete/tsconfig.json +6 -0
  65. package/packages/apps/datafrete/webhook.js +1 -0
  66. package/packages/apps/discounts/package.json +1 -1
  67. package/packages/apps/emails/package.json +1 -1
  68. package/packages/apps/fb-conversions/package.json +2 -2
  69. package/packages/apps/frenet/package.json +1 -1
  70. package/packages/apps/galaxpay/lib/functions-lib/galaxpay/webhook.js +3 -2
  71. package/packages/apps/galaxpay/lib/functions-lib/galaxpay/webhook.js.map +1 -1
  72. package/packages/apps/galaxpay/package.json +1 -1
  73. package/packages/apps/galaxpay/src/functions-lib/galaxpay/webhook.ts +3 -2
  74. package/packages/apps/google-analytics/CHANGELOG.md +1 -0
  75. package/packages/apps/google-analytics/README.md +1 -0
  76. package/packages/apps/google-analytics/lib/google-analytics-events.js +113 -0
  77. package/packages/apps/google-analytics/lib/google-analytics-events.js.map +1 -0
  78. package/packages/apps/google-analytics/lib/index.js +2 -0
  79. package/packages/apps/google-analytics/lib/index.js.map +1 -0
  80. package/packages/apps/google-analytics/package.json +32 -0
  81. package/packages/apps/google-analytics/src/google-analytics-events.ts +151 -0
  82. package/packages/apps/google-analytics/src/index.ts +1 -0
  83. package/packages/apps/google-analytics/tsconfig.json +3 -0
  84. package/packages/apps/google-analytics/types.d.ts +43 -0
  85. package/packages/apps/infinitepay/package.json +1 -1
  86. package/packages/apps/jadlog/package.json +1 -1
  87. package/packages/apps/loyalty-points/package.json +1 -1
  88. package/packages/apps/mercadopago/lib/mp-create-transaction.js +1 -1
  89. package/packages/apps/mercadopago/lib/mp-create-transaction.js.map +1 -1
  90. package/packages/apps/mercadopago/lib/mp-webhook.js +2 -7
  91. package/packages/apps/mercadopago/lib/mp-webhook.js.map +1 -1
  92. package/packages/apps/mercadopago/package.json +1 -1
  93. package/packages/apps/mercadopago/src/mp-create-transaction.ts +1 -1
  94. package/packages/apps/mercadopago/src/mp-webhook.ts +3 -8
  95. package/packages/apps/pagarme/lib/pagarme-webhook.js +1 -1
  96. package/packages/apps/pagarme/lib/pagarme-webhook.js.map +1 -1
  97. package/packages/apps/pagarme/package.json +1 -1
  98. package/packages/apps/pagarme/src/pagarme-webhook.ts +1 -1
  99. package/packages/apps/pix/package.json +1 -1
  100. package/packages/apps/tiny-erp/package.json +1 -1
  101. package/packages/cli/package.json +1 -1
  102. package/packages/config/package.json +1 -1
  103. package/packages/emails/package.json +2 -2
  104. package/packages/events/lib/firebase.js +4 -0
  105. package/packages/events/lib/firebase.js.map +1 -1
  106. package/packages/events/package.json +3 -1
  107. package/packages/events/src/firebase.ts +4 -0
  108. package/packages/firebase/lib/config.d.ts +7 -0
  109. package/packages/firebase/lib/config.js +10 -0
  110. package/packages/firebase/lib/config.js.map +1 -1
  111. package/packages/firebase/package.json +1 -1
  112. package/packages/firebase/src/config.ts +11 -0
  113. package/packages/i18n/package.json +1 -1
  114. package/packages/modules/lib/firebase/call-app-module.js +5 -0
  115. package/packages/modules/lib/firebase/call-app-module.js.map +1 -1
  116. package/packages/modules/package.json +3 -2
  117. package/packages/modules/src/firebase/call-app-module.ts +5 -0
  118. package/packages/passport/package.json +1 -1
  119. package/packages/ssr/package.json +4 -3
  120. package/packages/storefront/.eslintrc.cjs +5 -1
  121. package/packages/storefront/astro.config.mjs +9 -24
  122. package/packages/storefront/client.d.ts +6 -8
  123. package/packages/storefront/dist/client/PitchBar.afe7ff5c.js +1 -0
  124. package/packages/storefront/dist/client/Prices.eaf8a32c.js +1 -0
  125. package/packages/storefront/dist/client/ProductCard.1106b153.js +1 -0
  126. package/packages/storefront/dist/client/assets/_...slug_.fea84512.css +1 -0
  127. package/packages/storefront/dist/client/assets/index.90df622b.css +1 -0
  128. package/packages/storefront/dist/client/chunks/Prices.vue_vue_type_script_setup_true_lang.781b6501.js +1 -0
  129. package/packages/storefront/dist/client/chunks/ecom-utils.63984324.js +1 -0
  130. package/packages/storefront/dist/client/chunks/runtime-core.esm-bundler.fa6cdb60.js +1 -0
  131. package/packages/storefront/dist/client/client.367a6497.js +1 -0
  132. package/packages/storefront/dist/client/hoisted.4671ed15.js +1 -0
  133. package/packages/storefront/dist/client/sw.js +1 -1
  134. package/packages/storefront/dist/client/workbox-e2ee76b5.js +1 -0
  135. package/packages/storefront/dist/server/entry.mjs +359 -537
  136. package/packages/storefront/package.json +10 -9
  137. package/packages/storefront/src/env.d.ts +9 -0
  138. package/packages/storefront/src/lib/assets/tooltip.css +6 -5
  139. package/packages/storefront/src/lib/components/Carousel.vue +259 -0
  140. package/packages/storefront/src/lib/components/CarouselControl.vue +29 -0
  141. package/packages/storefront/src/lib/components/LoginDrawer.vue +1 -1
  142. package/packages/storefront/src/lib/components/PitchBar.vue +44 -0
  143. package/packages/storefront/src/lib/components/Prices.vue +13 -17
  144. package/packages/storefront/src/lib/components/ProductCard.vue +1 -1
  145. package/packages/storefront/src/lib/components/_injection-keys.ts +9 -0
  146. package/packages/storefront/src/lib/components/globals/ALink.vue +26 -0
  147. package/packages/storefront/src/lib/layouts/BaseBody.astro +1 -5
  148. package/packages/storefront/src/lib/layouts/BaseHead.astro +7 -2
  149. package/packages/storefront/src/lib/layouts/PagesHeader.astro +38 -0
  150. package/packages/storefront/src/lib/pages/_vue.ts +3 -2
  151. package/packages/storefront/src/lib/ssr-context.ts +6 -0
  152. package/packages/storefront/src/vue-globals.d.ts +5 -5
  153. package/packages/storefront/tailwind.config.cjs +12 -6
  154. package/packages/storefront/tsconfig.json +2 -2
  155. package/packages/storefront/uno.config.cjs +4 -4
  156. package/packages/types/package.json +1 -1
  157. package/packages/storefront/dist/client/HeaderButtons.6f668467.js +0 -1
  158. package/packages/storefront/dist/client/Prices.2ada125b.js +0 -1
  159. package/packages/storefront/dist/client/ProductCard.e5bdea60.js +0 -1
  160. package/packages/storefront/dist/client/assets/_...slug_.81b9a00c.css +0 -1
  161. package/packages/storefront/dist/client/assets/index.e6a09532.css +0 -1
  162. package/packages/storefront/dist/client/chunks/HeaderButtons.cfa275db.js +0 -1
  163. package/packages/storefront/dist/client/chunks/LoginForm.1ba3ad0d.js +0 -1441
  164. package/packages/storefront/dist/client/chunks/Prices.vue_vue_type_script_setup_true_lang.9a6ab0d6.js +0 -1
  165. package/packages/storefront/dist/client/chunks/_plugin-vue_export-helper.0d33cd48.js +0 -1
  166. package/packages/storefront/dist/client/chunks/ecom-utils.b0a26608.js +0 -1
  167. package/packages/storefront/dist/client/chunks/preload-helper.1de719f8.js +0 -1
  168. package/packages/storefront/dist/client/chunks/price.ecf7fed4.js +0 -1
  169. package/packages/storefront/dist/client/chunks/runtime-core.esm-bundler.45ba83fa.js +0 -1
  170. package/packages/storefront/dist/client/client.4d2b3a73.js +0 -1
  171. package/packages/storefront/dist/client/hoisted.f6ee2883.js +0 -1
  172. package/packages/storefront/dist/client/page.5a6f3db5.js +0 -1
  173. package/packages/storefront/dist/client/workbox-abdc68aa.js +0 -1
  174. package/packages/storefront/dist/client/~partytown/partytown-atomics.js +0 -2
  175. package/packages/storefront/dist/client/~partytown/partytown-media.js +0 -2
  176. package/packages/storefront/dist/client/~partytown/partytown-sw.js +0 -2
  177. package/packages/storefront/dist/client/~partytown/partytown.js +0 -2
@@ -19,7 +19,7 @@ export const pagarme = {
19
19
  } else {
20
20
  // read configured E-Com Plus app data
21
21
  const app = (await api.get(
22
- 'applications?app_id=117391&fields=hidden_data',
22
+ `applications?app_id=${config.get().apps.pagarMe.appId}&fields=hidden_data`,
23
23
  )).data.result;
24
24
  const apiKeyPagame = app[0].hidden_data?.pagarme_api_key;
25
25
 
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "@cloudcommerce/app-pix",
3
3
  "type": "module",
4
- "version": "0.1.7",
4
+ "version": "0.2.0",
5
5
  "description": "E-Com Plus Cloud Commerce app to integrate Pix API (Bacen)",
6
6
  "main": "lib/pix.js",
7
7
  "exports": {
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "@cloudcommerce/app-tiny-erp",
3
3
  "type": "module",
4
- "version": "0.1.7",
4
+ "version": "0.2.0",
5
5
  "description": "E-Com Plus Cloud Commerce app for Tiny ERP",
6
6
  "main": "lib/tiny-erp.js",
7
7
  "repository": {
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "@cloudcommerce/cli",
3
3
  "type": "module",
4
- "version": "0.1.7",
4
+ "version": "0.2.0",
5
5
  "description": "E-Com Plus Cloud Commerce CLI tools",
6
6
  "bin": {
7
7
  "cloudcommerce": "./bin/run.mjs"
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "@cloudcommerce/config",
3
3
  "type": "module",
4
- "version": "0.1.7",
4
+ "version": "0.2.0",
5
5
  "description": "E-Com Plus Cloud Commerce base config",
6
6
  "main": "lib/config.js",
7
7
  "exports": {
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "@cloudcommerce/emails",
3
3
  "type": "module",
4
- "version": "0.1.7",
4
+ "version": "0.2.0",
5
5
  "description": "E-Com Plus Cloud Commerce",
6
6
  "main": "lib/index.js",
7
7
  "types": "lib/index.d.ts",
@@ -25,7 +25,7 @@
25
25
  "@cloudcommerce/firebase": "workspace:*",
26
26
  "axios": "^1.2.2",
27
27
  "ejs": "^3.1.8",
28
- "nodemailer": "^6.8.0"
28
+ "nodemailer": "^6.9.0"
29
29
  },
30
30
  "devDependencies": {
31
31
  "@cloudcommerce/types": "workspace:*",
@@ -20,4 +20,8 @@ export * from '@cloudcommerce/app-loyalty-points/events';
20
20
  export * from '@cloudcommerce/app-frenet/events';
21
21
 
22
22
  export * from '@cloudcommerce/app-fb-conversions';
23
+
24
+ export * from '@cloudcommerce/app-datafrete/webhook';
25
+
26
+ export * from '@cloudcommerce/app-google-analytics';
23
27
  // # sourceMappingURL=firebase.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"firebase.js","sourceRoot":"","sources":["../src/firebase.ts"],"names":[],"mappings":"AAAA,iDAAiD;AACjD,OAAO,kCAAkC,CAAC;AAE1C,cAAc,6BAA6B,CAAC;AAE5C,cAAc,wCAAwC,CAAC;AAEvD,cAAc,2BAA2B,CAAC;AAE1C,cAAc,oCAAoC,CAAC;AAEnD,cAAc,gCAAgC,CAAC;AAE/C,cAAc,wCAAwC,CAAC;AAEvD,cAAc,oCAAoC,CAAC;AAEnD,cAAc,0CAA0C,CAAC;AAEzD,cAAc,kCAAkC,CAAC;AAEjD,cAAc,mCAAmC,CAAC"}
1
+ {"version":3,"file":"firebase.js","sourceRoot":"","sources":["../src/firebase.ts"],"names":[],"mappings":"AAAA,iDAAiD;AACjD,OAAO,kCAAkC,CAAC;AAE1C,cAAc,6BAA6B,CAAC;AAE5C,cAAc,wCAAwC,CAAC;AAEvD,cAAc,2BAA2B,CAAC;AAE1C,cAAc,oCAAoC,CAAC;AAEnD,cAAc,gCAAgC,CAAC;AAE/C,cAAc,wCAAwC,CAAC;AAEvD,cAAc,oCAAoC,CAAC;AAEnD,cAAc,0CAA0C,CAAC;AAEzD,cAAc,kCAAkC,CAAC;AAEjD,cAAc,mCAAmC,CAAC;AAElD,cAAc,sCAAsC,CAAC;AAErD,cAAc,qCAAqC,CAAC"}
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "@cloudcommerce/events",
3
3
  "type": "module",
4
- "version": "0.1.7",
4
+ "version": "0.2.0",
5
5
  "description": "E-Com Plus Cloud Commerce app events",
6
6
  "main": "lib/index.js",
7
7
  "exports": {
@@ -24,10 +24,12 @@
24
24
  },
25
25
  "dependencies": {
26
26
  "@cloudcommerce/api": "workspace:*",
27
+ "@cloudcommerce/app-datafrete": "workspace:*",
27
28
  "@cloudcommerce/app-emails": "workspace:*",
28
29
  "@cloudcommerce/app-fb-conversions": "workspace:*",
29
30
  "@cloudcommerce/app-frenet": "workspace:*",
30
31
  "@cloudcommerce/app-galaxpay": "workspace:*",
32
+ "@cloudcommerce/app-google-analytics": "workspace:*",
31
33
  "@cloudcommerce/app-infinitepay": "workspace:*",
32
34
  "@cloudcommerce/app-loyalty-points": "workspace:*",
33
35
  "@cloudcommerce/app-mercadopago": "workspace:*",
@@ -20,3 +20,7 @@ export * from '@cloudcommerce/app-loyalty-points/events';
20
20
  export * from '@cloudcommerce/app-frenet/events';
21
21
 
22
22
  export * from '@cloudcommerce/app-fb-conversions';
23
+
24
+ export * from '@cloudcommerce/app-datafrete/webhook';
25
+
26
+ export * from '@cloudcommerce/app-google-analytics';
@@ -63,6 +63,13 @@ declare const mergeConfig: {
63
63
  appId: number;
64
64
  events: ApiEventName[];
65
65
  };
66
+ datafrete: {
67
+ appId: number;
68
+ };
69
+ googleAnalytics: {
70
+ appId: number;
71
+ events: ApiEventName[];
72
+ };
66
73
  };
67
74
  cmsSettings: CmsSettings;
68
75
  };
@@ -25,6 +25,9 @@ const frenetEvents = [
25
25
  const fbConversionsEvents = [
26
26
  'orders-new',
27
27
  ];
28
+ const googleAnalyticsEvents = [
29
+ 'orders-anyStatusSet',
30
+ ];
28
31
  const {
29
32
  SETTINGS_FILEPATH, DEPLOY_REGION, SSR_DEPLOY_REGION, SSR_DEPLOY_MEMORY, SSR_DEPLOY_TIMEOUT_SECONDS, SSR_DEPLOY_MIN_INSTANCES,
30
33
  } = process.env;
@@ -98,6 +101,13 @@ const mergeConfig = {
98
101
  appId: 131670,
99
102
  events: fbConversionsEvents,
100
103
  },
104
+ datafrete: {
105
+ appId: 123886,
106
+ },
107
+ googleAnalytics: {
108
+ appId: 122241,
109
+ events: googleAnalyticsEvents,
110
+ },
101
111
  },
102
112
  cmsSettings,
103
113
  };
@@ -1 +1 @@
1
- {"version":3,"file":"config.js","sourceRoot":"","sources":["../src/config.ts"],"names":[],"mappings":"AACA,OAAO,EAAE,IAAI,IAAI,QAAQ,EAAE,MAAM,WAAW,CAAC;AAC7C,OAAO,EAAE,UAAU,EAAE,YAAY,EAAE,MAAM,SAAS,CAAC;AACnD,OAAO,MAAsB,MAAM,uBAAuB,CAAC;AAE3D,MAAM,aAAa,GAAmB;IACpC,qBAAqB;IACrB,cAAc;IACd,mBAAmB;IACnB,sBAAsB;CACvB,CAAC;AAEF,MAAM,YAAY,GAAmB;IACnC,YAAY;IACZ,qBAAqB;CACtB,CAAC;AAEF,MAAM,cAAc,GAAmB;IACrC,kBAAkB;CACnB,CAAC;AAEF,MAAM,mBAAmB,GAAmB;IAC1C,YAAY;IACZ,qBAAqB;CACtB,CAAC;AAEF,MAAM,YAAY,GAAmB;IACnC,YAAY;CACb,CAAC;AACF,MAAM,mBAAmB,GAAmB;IAC1C,YAAY;CACb,CAAC;AAEF,MAAM,EACJ,iBAAiB,EACjB,aAAa,EACb,iBAAiB,EACjB,iBAAiB,EACjB,0BAA0B,EAC1B,wBAAwB,GACzB,GAAG,OAAO,CAAC,GAAG,CAAC;AAEhB,IAAI,eAAe,GAAG,iBAAiB,IAAI,UAAU,CAAC,iBAAiB,CAAC;IACtE,CAAC,CAAC,iBAAiB;IACnB,CAAC,CAAC,QAAQ,CAAC,OAAO,CAAC,GAAG,EAAE,EAAE,uBAAuB,CAAC,CAAC;AACrD,IAAI,CAAC,UAAU,CAAC,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AM;SACd;QACD,MAAM,EAAE;YACN,KAAK,EAAE,MAAM;SACd;QACD,QAAQ,EAAE;YACR,KAAK,EAAE,MAAM;YACb,MAAM,EAAE,cAAc;SACvB;QACD,aAAa,EAAE;YACb,KAAK,EAAE,MAAM;SACd;QACD,aAAa,EAAE;YACb,KAAK,EAAE,MAAM;YACb,MAAM,EAAE,mBAAmB;SAC5B;QACD,aAAa,EAAE;YACb,KAAK,EAAE,MAAM;YACb,MAAM,EAAE,mBAAmB;SAC5B;QACD,SAAS,EAAE;YACT,KAAK,EAAE,MAAM;SACd;QACD,eAAe,EAAE;YACf,KAAK,EAAE,MAAM;YACb,MAAM,EAAE,qBAAqB;SAC9B;KACF;IACD,WAAW;CACZ,CAAC;AACF,MAAM,CAAC,GAAG,CAAC,WAAW,CAAC,CAAC;AAExB,eAAe,MAId,CAAC"}
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "@cloudcommerce/firebase",
3
3
  "type": "module",
4
- "version": "0.1.7",
4
+ "version": "0.2.0",
5
5
  "description": "E-Com Plus Cloud Commerce on Firebase",
6
6
  "main": "lib/index.js",
7
7
  "types": "lib/index.d.ts",
@@ -31,6 +31,10 @@ const fbConversionsEvents: ApiEventName[] = [
31
31
  'orders-new',
32
32
  ];
33
33
 
34
+ const googleAnalyticsEvents: ApiEventName[] = [
35
+ 'orders-anyStatusSet',
36
+ ];
37
+
34
38
  const {
35
39
  SETTINGS_FILEPATH,
36
40
  DEPLOY_REGION,
@@ -111,6 +115,13 @@ const mergeConfig = {
111
115
  appId: 131670,
112
116
  events: fbConversionsEvents,
113
117
  },
118
+ datafrete: {
119
+ appId: 123886,
120
+ },
121
+ googleAnalytics: {
122
+ appId: 122241,
123
+ events: googleAnalyticsEvents,
124
+ },
114
125
  },
115
126
  cmsSettings,
116
127
  };
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "@cloudcommerce/i18n",
3
3
  "type": "module",
4
- "version": "0.1.7",
4
+ "version": "0.2.0",
5
5
  "description": "E-Com Plus Cloud Commerce i18n",
6
6
  "main": "lib/all.js",
7
7
  "exports": {
@@ -56,6 +56,11 @@ export default async (
56
56
  return import('@cloudcommerce/app-jadlog')
57
57
  .then(({ calculateShipping }) => calculateShipping(_data));
58
58
  };
59
+ } else if (appId === apps.datafrete.appId) {
60
+ internalModuleFn = async (_data = data) => {
61
+ return import('@cloudcommerce/app-datafrete')
62
+ .then(({ calculateShipping }) => calculateShipping(_data));
63
+ };
59
64
  }
60
65
  } else if (modName === 'list_payments') {
61
66
  if (appId === apps.mercadoPago.appId) {
@@ -1 +1 @@
1
- {"version":3,"file":"call-app-module.js","sourceRoot":"","sources":["../../src/firebase/call-app-module.ts"],"names":[],"mappings":"AACA,OAAO,MAAM,MAAM,2BAA2B,CAAC;AAC/C,OAAO,MAAM,MAAM,oCAAoC,CAAC;AAExD,gDAAgD;AAChD,MAAM,SAAS,GAAG,EAAE,CAAC;AAErB,eAAe,KAAK,EAClB,KAAa,EACb,OAAsB,EACtB,GAAW,EACX,IAAS;AACT,6DAA6D;AAC7D,YAAqB,EACrB,EAAE;IACF,IAAI,SAAS,CAAC,GAAG,CAAC,GAAG,CAAC,EAAE;QACtB,MAAM,CAAC,GAAG,CAAC,0BAA0B,GAAG,EAAE,CAAC,CAAC;QAC5C,MAAM,GAAG,GAAG,IAAI,KAAK,CAAC,yBAAyB,CAAC,CAAC;QACjD,OAAO,OAAO,CAAC,MAAM,CAAC,GAAG,CAAC,CAAC;KAC5B;IACD,MAAM,EAAE,IAAI,EAAE,GAAG,MAAM,CAAC,GAAG,EAAE,CAAC;IAE9B,MAAM,kBAAkB,GAAG,CAAC,OAAe,EAAE,OAAY,EAAE,EAAE;QAC3D,IAAI,OAAO,OAAO,KAAK,QAAQ,IAAI,OAAO,KAAK,IAAI,EAAE;YACnD,MAAM,EAAE,KAAK,EAAE,OAAO,EAAE,GAAG,OAAO,CAAC;YACnC,IAAI,OAAO,KAAK,KAAK,QAAQ,IAAI,KAAK,CAAC,MAAM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D,IAAI,gBAAgB,EAAE;QACpB;;;;;;;;;;UAUE;QACF,MAAM,UAAU,GAAG,MAAM,CAAC,MAAM,KAAK,IAAI,OAAO,aAAa,CAAC,CAAC;QAC/D,IAAI;YACF,IAAI,WAAgB,CAAC;YACrB,IAAI,OAAO,UAAU,KAAK,UAAU,EAAE;gBACpC,WAAW,GAAG,MAAM,UAAU,CAAC,IAAI,EAAE,gBAAgB,CAAC,CAAC;aACxD;iBAAM;gBACL,WAAW,GAAG,MAAM,gBAAgB,CAAC,IAAI,CAAC,CAAC;aAC5C;YACD,kBAAkB,CAAC,GAAG,KAAK,IAAI,OAAO,EAAE,EAAE,WAAW,CAAC,CAAC;YACvD,OAAO,WAAW,CAAC;SACpB;QAAC,OAAO,GAAG,EAAE;YACZ,MAAM,CAAC,KAAK,CAAC,GAAG,CAAC,CAAC;YAClB,IAAI,OAAO,GAAG,mCAAmC,CAAC;YAClD,IAAI,OAAO,UAAU,KAAK,UAAU,EAAE;gBACpC,OAAO,IAAI,mBAAmB,CAAC;aAChC;YACD,OAAO;gBACL,KAAK,EAAE,uBAAuB;gBAC9B,OAAO;aACR,CAAC;SACH;KACF;IAED,OAAO,OAAO,CAAC,OAAO,CAAC;QACrB,KAAK,EAAE,qBAAqB;QAC5B,OAAO,EAAE,oDAAoD;KAC9D,CAAC,CAAC;IACH;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;MA8BE;AACJ,CAAC,CAAC"}
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "@cloudcommerce/modules",
3
3
  "type": "module",
4
- "version": "0.1.7",
4
+ "version": "0.2.0",
5
5
  "description": "E-Com Plus Cloud Commerce modules API",
6
6
  "main": "lib/index.cjs",
7
7
  "exports": {
@@ -28,6 +28,7 @@
28
28
  "@cloudcommerce/app-correios": "workspace:*",
29
29
  "@cloudcommerce/app-custom-payment": "workspace:*",
30
30
  "@cloudcommerce/app-custom-shipping": "workspace:*",
31
+ "@cloudcommerce/app-datafrete": "workspace:*",
31
32
  "@cloudcommerce/app-discounts": "workspace:*",
32
33
  "@cloudcommerce/app-frenet": "workspace:*",
33
34
  "@cloudcommerce/app-galaxpay": "workspace:*",
@@ -39,7 +40,7 @@
39
40
  "@cloudcommerce/app-pix": "workspace:*",
40
41
  "@cloudcommerce/firebase": "workspace:*",
41
42
  "@ecomplus/utils": "1.5.0-rc.3",
42
- "ajv": "^8.11.2",
43
+ "ajv": "^8.12.0",
43
44
  "ajv-formats": "^2.1.1",
44
45
  "axios": "^1.2.2",
45
46
  "firebase-admin": "^11.4.1",
@@ -59,6 +59,11 @@ export default async (
59
59
  return import('@cloudcommerce/app-jadlog')
60
60
  .then(({ calculateShipping }) => calculateShipping(_data));
61
61
  };
62
+ } else if (appId === apps.datafrete.appId) {
63
+ internalModuleFn = async (_data: AppModuleBody = data) => {
64
+ return import('@cloudcommerce/app-datafrete')
65
+ .then(({ calculateShipping }) => calculateShipping(_data));
66
+ };
62
67
  }
63
68
  } else if (modName === 'list_payments') {
64
69
  if (appId === apps.mercadoPago.appId) {
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "@cloudcommerce/passport",
3
3
  "type": "module",
4
- "version": "0.1.7",
4
+ "version": "0.2.0",
5
5
  "description": "E-Com Plus Cloud Commerce customers authentication (passport) API",
6
6
  "main": "lib/index.js",
7
7
  "exports": {
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "@cloudcommerce/ssr",
3
3
  "type": "module",
4
- "version": "0.1.7",
4
+ "version": "0.2.0",
5
5
  "description": "E-Com Plus Cloud Commerce storefront SSR",
6
6
  "main": "lib/index.js",
7
7
  "exports": {
@@ -30,11 +30,12 @@
30
30
  "@cloudcommerce/i18n": "workspace:*",
31
31
  "@ecomplus/utils": "1.5.0-rc.3",
32
32
  "@headlessui/vue": "^1.7.7",
33
- "@vueuse/core": "^9.9.0",
34
- "astro": "^1.8.0",
33
+ "@vueuse/core": "^9.10.0",
34
+ "astro": "^1.9.2",
35
35
  "firebase-admin": "^11.4.1",
36
36
  "firebase-functions": "^4.1.1",
37
37
  "image-size": "^1.0.2",
38
+ "lodash": "^4.17.21",
38
39
  "semver": "^7.3.8",
39
40
  "sharp": "^0.31.3",
40
41
  "vue": "^3.2.45"
@@ -4,10 +4,14 @@ module.exports = {
4
4
  'no-console': 'off',
5
5
  semi: 'warn',
6
6
  'arrow-parens': 'warn',
7
+ 'object-curly-newline': 'warn',
8
+ 'comma-dangle': 'warn',
9
+ 'consistent-return': 'warn',
10
+ 'array-bracket-spacing': 'warn',
7
11
  'global-require': 'off',
8
12
  'import/no-dynamic-require': 'off',
9
13
  'vue/multi-word-component-names': ['error', {
10
- ignores: ['Fade', 'Prices'],
14
+ ignores: ['Fade', 'Carousel', 'Prices'],
11
15
  }],
12
16
  },
13
17
  };
@@ -1,14 +1,14 @@
1
- import { existsSync, lstatSync, readFileSync } from 'node:fs';
1
+ import { lstatSync, readFileSync } from 'node:fs';
2
2
  import { join as joinPath } from 'path';
3
3
  import * as dotenv from 'dotenv';
4
4
  import { defineConfig } from 'astro/config';
5
5
  import node from '@astrojs/node';
6
6
  import vue from '@astrojs/vue';
7
7
  import image from '@astrojs/image';
8
- import partytown from '@astrojs/partytown';
9
- import prefetch from '@astrojs/prefetch';
8
+ // import partytown from '@astrojs/partytown';
9
+ // import prefetch from '@astrojs/prefetch';
10
10
  import UnoCSS from 'unocss/astro';
11
- import { VitePWA } from 'vite-plugin-pwa';
11
+ import AstroPWA from '@vite-pwa/astro';
12
12
  import dictionaryDir from '@cloudcommerce/i18n/lib/dirname';
13
13
  import getConfig from './storefront.config.mjs';
14
14
 
@@ -55,7 +55,7 @@ const _vitePWAOptions = {
55
55
  },
56
56
  registerType: 'autoUpdate',
57
57
  workbox: {
58
- navigateFallback: null,
58
+ navigateFallback: '/404',
59
59
  globDirectory: 'dist/client',
60
60
  globPatterns: ['**/!(cms*|admin*).{js,css}'],
61
61
  ignoreURLParametersMatching: [/.*/],
@@ -136,10 +136,6 @@ const _vitePWAOptions = {
136
136
  },
137
137
  };
138
138
 
139
- // @@components tries ~/components with fallback to @@sf/components
140
- const localComponentsDir = joinPath(process.cwd(), 'src/components');
141
- const libComponentsDir = joinPath(__dirname, 'src/lib/components');
142
-
143
139
  const genAstroConfig = ({
144
140
  site = `https://${domain}`,
145
141
  vitePWAOptions = _vitePWAOptions,
@@ -154,17 +150,17 @@ const genAstroConfig = ({
154
150
  serviceEntryPoint: '@astrojs/image/sharp',
155
151
  }),
156
152
  vue({ appEntrypoint: '/src/pages/_vue' }),
157
- partytown(),
158
- prefetch(),
153
+ // partytown(),
154
+ // prefetch(),
159
155
  UnoCSS({
160
156
  injectReset: false,
161
157
  injectEntry: false,
162
158
  }),
159
+ AstroPWA(vitePWAOptions),
163
160
  ],
164
161
  site,
165
162
  vite: {
166
163
  plugins: [
167
- VitePWA(vitePWAOptions),
168
164
  {
169
165
  name: 'vue-i18n',
170
166
  transform(code, id) {
@@ -185,23 +181,12 @@ const genAstroConfig = ({
185
181
  },
186
182
  ],
187
183
  resolve: {
188
- preserveSymlinks: lstatSync(localComponentsDir).isSymbolicLink(),
184
+ preserveSymlinks: lstatSync(joinPath(process.cwd(), 'src/components')).isSymbolicLink(),
189
185
  alias: [
190
186
  { find: '@@i18n', replacement: `@cloudcommerce/i18n/src/${lang}.ts` },
191
187
  { find: '@@sf', replacement: joinPath(__dirname, 'src/lib') },
192
188
  { find: '~', replacement: joinPath(process.cwd(), 'src') },
193
189
  { find: 'content', replacement: joinPath(process.cwd(), 'content') },
194
- {
195
- find: '@@components',
196
- replacement: '',
197
- customResolver: (componentPath) => {
198
- const localReplacement = joinPath(localComponentsDir, componentPath);
199
- if (existsSync(localReplacement)) {
200
- return localReplacement;
201
- }
202
- return joinPath(libComponentsDir, componentPath);
203
- },
204
- },
205
190
  ],
206
191
  },
207
192
  },
@@ -1,4 +1,3 @@
1
- /* eslint-disable */
2
1
  /// <reference types="./src/vue-globals" />
3
2
 
4
3
  interface Window {
@@ -11,14 +10,13 @@ interface Window {
11
10
  appId: string,
12
11
  measurementId?: string,
13
12
  };
13
+ ECOM_STORE_ID: number;
14
+ ECOM_LANG: string;
15
+ ECOM_CURRENCY: string;
16
+ ECOM_CURRENCY_SYMBOL: string;
17
+ ECOM_COUNTRY_CODE: string;
14
18
  storefront?: {
15
- settings: typeof import('./content/settings.json') & {
16
- store_id: number,
17
- lang: string,
18
- country_code: string,
19
- currency: string,
20
- currency_symbol: string,
21
- },
19
+ settings: typeof import('./content/settings.json'),
22
20
  context?: {
23
21
  resource: string,
24
22
  doc: Record<string, any>,
@@ -0,0 +1 @@
1
+ import{u as le,q as ye,s as he,k as m,v as R,d as D,o as O,a as j,b as S,f as F,x as ue,y as _e,z as K,A as Oe,B as Te,C as we,D as Se,l as ce,w as x,p as de,n as xe,g as Ee,i as L,F as Ie,E as $e}from"./chunks/runtime-core.esm-bundler.fa6cdb60.js";/* empty css */var A=typeof globalThis<"u"?globalThis:typeof window<"u"?window:typeof global<"u"?global:typeof self<"u"?self:{};function je(e){var t=typeof e;return e!=null&&(t=="object"||t=="function")}var fe=je,Le=typeof A=="object"&&A&&A.Object===Object&&A,Pe=Le,Ce=Pe,Be=typeof self=="object"&&self&&self.Object===Object&&self,We=Ce||Be||Function("return this")(),ve=We,ke=ve,Ne=function(){return ke.Date.now()},Ae=Ne,Re=/\s/;function Fe(e){for(var t=e.length;t--&&Re.test(e.charAt(t)););return t}var Me=Fe,Ge=Me,Qe=/^\s+/;function Ve(e){return e&&e.slice(0,Ge(e)+1).replace(Qe,"")}var He=Ve,Ue=ve,ze=Ue.Symbol,pe=ze,X=pe,me=Object.prototype,De=me.hasOwnProperty,qe=me.toString,$=X?X.toStringTag:void 0;function Ke(e){var t=De.call(e,$),n=e[$];try{e[$]=void 0;var a=!0}catch{}var u=qe.call(e);return a&&(t?e[$]=n:delete e[$]),u}var Xe=Ke,Ze=Object.prototype,Je=Ze.toString;function Ye(e){return Je.call(e)}var et=Ye,Z=pe,tt=Xe,nt=et,rt="[object Null]",at="[object Undefined]",J=Z?Z.toStringTag:void 0;function ot(e){return e==null?e===void 0?at:rt:J&&J in Object(e)?tt(e):nt(e)}var st=ot;function it(e){return e!=null&&typeof e=="object"}var lt=it,ut=st,ct=lt,dt="[object Symbol]";function ft(e){return typeof e=="symbol"||ct(e)&&ut(e)==dt}var vt=ft,pt=He,Y=fe,mt=vt,ee=0/0,bt=/^[-+]0x[0-9a-f]+$/i,gt=/^0b[01]+$/i,yt=/^0o[0-7]+$/i,ht=parseInt;function _t(e){if(typeof e=="number")return e;if(mt(e))return ee;if(Y(e)){var t=typeof e.valueOf=="function"?e.valueOf():e;e=Y(t)?t+"":t}if(typeof e!="string")return e===0?e:+e;e=pt(e);var n=gt.test(e);return n||yt.test(e)?ht(e.slice(2),n?2:8):bt.test(e)?ee:+e}var Ot=_t,Tt=fe,H=Ae,te=Ot,wt="Expected a function",St=Math.max,xt=Math.min;function Et(e,t,n){var a,u,v,i,o,d,p=0,c=!1,f=!1,b=!0;if(typeof e!="function")throw new TypeError(wt);t=te(t)||0,Tt(n)&&(c=!!n.leading,f="maxWait"in n,v=f?St(te(n.maxWait)||0,t):v,b="trailing"in n?!!n.trailing:b);function y(s){var g=a,h=u;return a=u=void 0,p=s,i=e.apply(h,g),i}function C(s){return p=s,o=setTimeout(_,t),c?y(s):i}function E(s){var g=s-d,h=s-p,W=t-g;return f?xt(W,v-h):W}function T(s){var g=s-d,h=s-p;return d===void 0||g>=t||g<0||f&&h>=v}function _(){var s=H();if(T(s))return B(s);o=setTimeout(_,E(s))}function B(s){return o=void 0,b&&a?y(s):(a=u=void 0,i)}function G(){o!==void 0&&clearTimeout(o),p=0,a=d=u=o=void 0}function Q(){return o===void 0?i:B(H())}function w(){var s=H(),g=T(s);if(a=arguments,u=this,d=s,g){if(o===void 0)return C(d);if(f)return clearTimeout(o),o=setTimeout(_,t),y(d)}return o===void 0&&(o=setTimeout(_,t)),i}return w.cancel=G,w.flush=Q,w}var ne=Et,re;const P=typeof window<"u",It=e=>typeof e=="string",$t=()=>{};P&&((re=window?.navigator)==null?void 0:re.userAgent)&&/iP(ad|hone|od)/.test(window.navigator.userAgent);function jt(e){return typeof e=="function"?e():le(e)}function Lt(e){return e}function Pt(e){return ye()?(he(e),!0):!1}function Ct(e){var t;const n=jt(e);return(t=n?.$el)!=null?t:n}const Bt=P?window:void 0;P&&window.document;P&&window.navigator;P&&window.location;function ae(...e){let t,n,a,u;if(It(e[0])||Array.isArray(e[0])?([n,a,u]=e,t=Bt):[t,n,a,u]=e,!t)return $t;Array.isArray(n)||(n=[n]),Array.isArray(a)||(a=[a]);const v=[],i=()=>{v.forEach(c=>c()),v.length=0},o=(c,f,b)=>(c.addEventListener(f,b,u),()=>c.removeEventListener(f,b,u)),d=R(()=>Ct(t),c=>{i(),c&&v.push(...n.flatMap(f=>a.map(b=>o(c,f,b))))},{immediate:!0,flush:"post"}),p=()=>{d(),i()};return Pt(p),p}const U=typeof globalThis<"u"?globalThis:typeof window<"u"?window:typeof global<"u"?global:typeof self<"u"?self:{},z="__vueuse_ssr_handlers__";U[z]=U[z]||{};U[z];function Wt(e){const t=m(!1);return ae(e,"mouseenter",()=>t.value=!0),ae(e,"mouseleave",()=>t.value=!1),t}var oe;(function(e){e.UP="UP",e.RIGHT="RIGHT",e.DOWN="DOWN",e.LEFT="LEFT",e.NONE="NONE"})(oe||(oe={}));var kt=Object.defineProperty,se=Object.getOwnPropertySymbols,Nt=Object.prototype.hasOwnProperty,At=Object.prototype.propertyIsEnumerable,ie=(e,t,n)=>t in e?kt(e,t,{enumerable:!0,configurable:!0,writable:!0,value:n}):e[t]=n,Rt=(e,t)=>{for(var n in t||(t={}))Nt.call(t,n)&&ie(e,n,t[n]);if(se)for(var n of se(t))At.call(t,n)&&ie(e,n,t[n]);return e};const Ft={easeInSine:[.12,0,.39,0],easeOutSine:[.61,1,.88,1],easeInOutSine:[.37,0,.63,1],easeInQuad:[.11,0,.5,0],easeOutQuad:[.5,1,.89,1],easeInOutQuad:[.45,0,.55,1],easeInCubic:[.32,0,.67,0],easeOutCubic:[.33,1,.68,1],easeInOutCubic:[.65,0,.35,1],easeInQuart:[.5,0,.75,0],easeOutQuart:[.25,1,.5,1],easeInOutQuart:[.76,0,.24,1],easeInQuint:[.64,0,.78,0],easeOutQuint:[.22,1,.36,1],easeInOutQuint:[.83,0,.17,1],easeInExpo:[.7,0,.84,0],easeOutExpo:[.16,1,.3,1],easeInOutExpo:[.87,0,.13,1],easeInCirc:[.55,0,1,.45],easeOutCirc:[0,.55,.45,1],easeInOutCirc:[.85,0,.15,1],easeInBack:[.36,0,.66,-.56],easeOutBack:[.34,1.56,.64,1],easeInOutBack:[.68,-.6,.32,1.6]};Rt({linear:Lt},Ft);const be=Symbol("carousel"),Mt=["aria-label","data-carousel-control"],M=D({__name:"CarouselControl",props:{direction:{default:1}},setup(e){const{changeSlide:t}=_e(be);return(n,a)=>(O(),j("button",{type:"button","aria-label":e.direction>0?"Pr\xF3ximo":"Anterior",onClick:a[0]||(a[0]=u=>le(t)(e.direction)),"data-carousel-control":e.direction>0?"next":"previous"},[S(n.$slots,"default",{},()=>[F("i",{class:ue(["mb-0 z-10",e.direction>0?"i-chevron-right":"i-chevron-left"])},null,2)])],8,Mt))}}),Gt=D({__name:"Carousel",props:{as:{default:"ul"},modelValue:{default:1},autoplay:null},emits:["update:modelValue","bound-left","bound-right"],setup(e,{emit:t}){const n=e,a=(r,l,N)=>Math.abs(r-l)<=N,u=100,v=410,i=m(n.modelValue-1);R(K(n,"modelValue"),r=>{i.value=r-1}),R(i,(r,l)=>{r!==l&&t("update:modelValue",r+1)});const o=m(null),d=m(!0),p=m(!1),c=m([]),f=m(0),b=m(0),y=m(0),C=m(0),E=m(null),T=m(null),_=()=>{const r=a(y.value,0,5),l=a(f.value-b.value,y.value,5);r&&t("bound-left",!0),d.value=r,l&&t("bound-right",!0),p.value=l},B=()=>{f.value=o.value.scrollWidth,b.value=o.value.offsetWidth},G=()=>{const r=[...o.value.children];c.value=r.map(l=>({offsetLeft:l.offsetLeft,width:l.offsetWidth}))},Q=r=>{const l=r>0?i.value:i.value+r,N=c.value[l].width||0;return N?N*r:0},w=()=>{const r=c.value.findIndex(l=>a(l.offsetLeft,y.value,5));r!==-1&&r!==-2&&(i.value=r||0)},s=()=>{y.value=o.value.scrollLeft||0},g=()=>{const r=f.value-b.value;C.value=c.value.findIndex(({offsetLeft:l})=>l>=r)},h=()=>{!o.value||(B(),G(),s(),w(),_(),g())},W=()=>{!o.value||(s(),w(),_())};let k=null;const V=()=>{n.autoplay&&(clearTimeout(k),k=setTimeout(()=>{I(1)},n.autoplay))},I=r=>{if(r<0){if(d.value){g(),i.value=C.value-1,I(1);return}}else if(p.value){i.value=1,I(-1);return}const l=Q(r);l&&(o.value.scrollBy({left:l,behavior:"smooth"}),V())},q=m(null),ge=Wt(q);return R(ge,r=>{r?clearTimeout(k):V()}),Oe(()=>{h(),T.value=ne(W,u),E.value=ne(h,v),o.value.addEventListener("scroll",T.value),window.addEventListener("resize",E.value),Te(()=>{[...o.value.children].forEach(r=>{r.setAttribute("tabindex","0")})}),V()}),we(()=>{o.value.removeEventListener("scroll",T.value),window.removeEventListener("resize",E.value),clearTimeout(k)}),Se(be,{autoplay:K(n,"autoplay"),changeSlide:I,isBoundLeft:d,isBoundRight:p}),(r,l)=>(O(),j("div",{ref_key:"carousel",ref:q,"data-carousel":""},[(O(),ce(de(e.as),{ref_key:"wrapper",ref:o,"data-carousel-wrapper":""},{default:x(()=>[S(r.$slots,"default")]),_:3},512)),S(r.$slots,"controls",xe(Ee({changeSlide:I,isBoundLeft:d.value,isBoundRight:p.value})),()=>[L(M,{direction:-1},{default:x(()=>[S(r.$slots,"previous")]),_:3}),L(M,null,{default:x(()=>[S(r.$slots,"next")]),_:3})])],512))}}),Qt={"data-pitch-bar":"",class:"bg-base-100"},Vt={class:"container md:w-2/3 mx-auto px-3 py-1"},Ht=["innerHTML"],Ut={class:"text-xl leading-none text-base-400"},qt=D({__name:"PitchBar",props:{slides:null},setup(e){return(t,n)=>(O(),j("div",Qt,[F("div",Vt,[L(Gt,{autoplay:7e3},{controls:x(()=>[F("div",Ut,[L(M,{direction:-1,class:"pr-2 bg-base-100 hover:text-base-700"}),L(M,{class:"pl-2 bg-base-100 hover:text-base-700"})])]),default:x(()=>[(O(!0),j(Ie,null,$e(e.slides,({href:a,target:u,html:v},i)=>(O(),j("li",{key:i},[(O(),ce(de(a?"ALink":"span"),{href:a,target:u,class:ue(a?"hover:underline":null)},{default:x(()=>[S(t.$slots,"slide",{},()=>[F("span",{innerHTML:v,class:"prose text-sm text-base-800"},null,8,Ht)])]),_:2},1032,["href","target","class"]))]))),128))]),_:3})])]))}});export{qt as default};
@@ -0,0 +1 @@
1
+ import"./chunks/Prices.vue_vue_type_script_setup_true_lang.781b6501.js";import{_}from"./chunks/Prices.vue_vue_type_script_setup_true_lang.781b6501.js";/* empty css */import"./chunks/session-utm.2de8b604.js";import"./chunks/runtime-core.esm-bundler.fa6cdb60.js";import"./chunks/ecom-utils.63984324.js";export{_ as default};
@@ -0,0 +1 @@
1
+ import{_ as e}from"./chunks/Prices.vue_vue_type_script_setup_true_lang.781b6501.js";/* empty css */import{d as u,k as c,l as n,w as t,p as d,o as m,i as a,h as l,t as o}from"./chunks/runtime-core.esm-bundler.fa6cdb60.js";import"./chunks/session-utm.2de8b604.js";import"./chunks/ecom-utils.63984324.js";const h=u({__name:"ProductCard",props:{as:{default:"div"}},setup(p){const s=c(12),r=c(!1);return setTimeout(()=>{s.value=8,r.value=!0},5e3),(_,f)=>(m(),n(d(p.as),null,{default:t(()=>[a(e,null,{default:t(({salePrice:i})=>[l(" ProductCard "+o(i),1)]),_:1}),a(e,{product:{price:s.value}},null,8,["product"]),a(e,{price:12,"base-price":17}),a(e,{price:12,"base-price":16,"is-literal":!0}),a(e,{price:12,"is-big":r.value},null,8,["is-big"]),a(e,{price:14,"base-price":18,"is-big":r.value,"is-literal":!0},null,8,["is-big"]),a(e,{price:12,"base-price":16},{"compare-value":t(({comparePrice:i})=>[l(" x"+o(i),1)]),_:1})]),_:1}))}});export{h as default};
@@ -0,0 +1 @@
1
+ *,:before,:after{box-sizing:border-box;border-width:0;border-style:solid;border-color:currentColor}html{line-height:1.5;-webkit-text-size-adjust:100%;-moz-tab-size:4;tab-size:4;font-family:var(--font-family);font-feature-settings:normal}body{margin:0;line-height:inherit}hr{height:0;color:inherit;border-top-width:1px}abbr:where([title]){text-decoration:underline dotted}h1,h2,h3,h4,h5,h6{font-size:inherit;font-weight:inherit}a{color:inherit;text-decoration:inherit}b,strong{font-weight:bolder}code,kbd,samp,pre{font-family:var(--font-mono);font-size:1em}small{font-size:80%}sub,sup{font-size:75%;line-height:0;position:relative;vertical-align:baseline}sub{bottom:-.25em}sup{top:-.5em}table{text-indent:0;border-color:inherit;border-collapse:collapse}button,input,optgroup,select,textarea{font-family:inherit;font-size:100%;font-weight:inherit;line-height:inherit;color:inherit;margin:0;padding:0}button,select{text-transform:none}button,[type=button],[type=reset],[type=submit]{-webkit-appearance:button;background-color:transparent;background-image:none}:-moz-focusring{outline:auto}:-moz-ui-invalid{box-shadow:none}progress{vertical-align:baseline}::-webkit-inner-spin-button,::-webkit-outer-spin-button{height:auto}[type=search]{-webkit-appearance:textfield;outline-offset:-2px}::-webkit-search-decoration{-webkit-appearance:none}::-webkit-file-upload-button{-webkit-appearance:button;font:inherit}summary{display:list-item}blockquote,dl,dd,h1,h2,h3,h4,h5,h6,hr,figure,p,pre{margin:0}fieldset{margin:0;padding:0}legend{padding:0}ol,ul,menu{list-style:none;margin:0;padding:0}textarea{resize:vertical}input::placeholder,textarea::placeholder{opacity:1;color:#94a3b8}button,[role=button]{cursor:pointer}:disabled{cursor:default}img,svg,video,canvas,audio,iframe,embed,object{display:block;vertical-align:middle}img,video{max-width:100%;height:auto}[hidden]{display:none}:root{--content-max-width: 80rem;--font-size: 14.5px;--font-sans: var(--custom-font-sans, ui-sans-serif), system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, "Noto Sans", sans-serif, "Apple Color Emoji", "Segoe UI Emoji", "Segoe UI Symbol", "Noto Color Emoji";--font-mono: var(--custom-font-mono, ui-monospace), SFMono-Regular, Menlo, Monaco, Consolas, "Liberation Mono", "Courier New", monospace;--font-family: var(--font-sans);--transition: .15s ease-in-out;--transition-slow: .25s ease-in-out;--transition-slower: .45s ease-in-out;--c-on-dark: rgb(255, 255, 255);--c-on-light: rgb(0, 0, 0);--c-background: #fff;--c-on-background: #1e293b;--un-prose-body: #334155;--un-prose-headings: #0f172a;--un-prose-links: var(--c-primary);--un-prose-captions: #64748b;--un-prose-borders: #e2e8f0;--un-prose-hr: #cbd5e1;--un-prose-bg-soft: #f1f5f9;color-scheme:light;accent-color:var(--c-secondary)}@media (prefers-reduced-motion: reduce){:root{--transition: 0s;--transition-slow: 0s;--transition-slower: .15s linear}}html{font-size:var(--font-size)}@media (min-width: 640px){html{font-size:calc(var(--font-size) * 1.0345)}}@media (min-width: 768px){html{font-size:calc(var(--font-size) * 1.0689)}}@media (min-width: 1024px){html{font-size:calc(var(--font-size) * 1.1034)}}@media (min-width: 1280px){html{font-size:calc(var(--font-size) * 1.1379)}}@media (min-width: 1536px){html{font-size:calc(var(--font-size) * 1.1724)}}body>header,body>main,body>footer{margin-left:auto;margin-right:auto}body>main{max-width:var(--content-max-width)}:focus-visible{outline-color:var(--c-outline, rgba(var(--rgb-secondary), .1))}::selection{background-color:var(--c-selection-background, rgba(var(--rgb-secondary), .15))}::marker{color:var(--c-primary)}:is(::-webkit-calendar-picker-indicator,::-webkit-clear-button,::-webkit-inner-spin-button,::-webkit-outer-spin-button){color:var(--c-secondary)}body{background:var(--c-background);color:var(--c-on-background)}[type=text],[type=email],[type=url],[type=password],[type=number],[type=date],[type=datetime-local],[type=month],[type=search],[type=tel],[type=time],[type=week],[multiple],textarea,select{-webkit-appearance:none;-moz-appearance:none;appearance:none;background-color:var(--c-background);border-color:#64748b;border-width:1px;border-radius:0;padding:.5rem .75rem;font-size:1rem;line-height:1.5rem;--un-shadow: 0 0 #0000}[type=text]:focus,[type=email]:focus,[type=url]:focus,[type=password]:focus,[type=number]:focus,[type=date]:focus,[type=datetime-local]:focus,[type=month]:focus,[type=search]:focus,[type=tel]:focus,[type=time]:focus,[type=week]:focus,[multiple]:focus,textarea:focus,select:focus{outline:2px solid transparent;outline-offset:2px;--un-ring-inset: var(--un-empty, );--un-ring-offset-width: 0px;--un-ring-offset-color: var(--c-background);--un-ring-color: var(--c-primary);--un-ring-offset-shadow: var(--un-ring-inset) 0 0 0 var(--un-ring-offset-width) var(--un-ring-offset-color);--un-ring-shadow: var(--un-ring-inset) 0 0 0 calc(1px + var(--un-ring-offset-width)) var(--un-ring-color);box-shadow:var(--un-ring-offset-shadow),var(--un-ring-shadow),var(--un-shadow);border-color:var(--c-primary)}input::-moz-placeholder,textarea::-moz-placeholder{color:#64748b;opacity:1}input::placeholder,textarea::placeholder{color:#64748b;opacity:1}::-webkit-datetime-edit-fields-wrapper{padding:0}::-webkit-date-and-time-value{min-height:1.5em}::-webkit-datetime-edit,::-webkit-datetime-edit-year-field,::-webkit-datetime-edit-month-field,::-webkit-datetime-edit-day-field,::-webkit-datetime-edit-hour-field,::-webkit-datetime-edit-minute-field,::-webkit-datetime-edit-second-field,::-webkit-datetime-edit-millisecond-field,::-webkit-datetime-edit-meridiem-field{padding-top:0;padding-bottom:0}select{background-image:url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' fill='none' viewBox='0 0 20 20'%3e%3cpath stroke='%236b7280' stroke-linecap='round' stroke-linejoin='round' stroke-width='1.5' d='M6 8l4 4 4-4'/%3e%3c/svg%3e");background-position:right .5rem center;background-repeat:no-repeat;background-size:1.5em 1.5em;padding-right:2.5rem;print-color-adjust:exact}[multiple]{background-image:initial;background-position:initial;background-repeat:unset;background-size:initial;padding-right:.75rem;print-color-adjust:unset}[type=checkbox],[type=radio]{-webkit-appearance:none;-moz-appearance:none;appearance:none;padding:0;print-color-adjust:exact;display:inline-block;vertical-align:middle;background-origin:border-box;-webkit-user-select:none;-moz-user-select:none;user-select:none;flex-shrink:0;height:1rem;width:1rem;color:var(--c-primary);background-color:var(--c-background);border-color:#64748b;border-width:1px;--un-shadow: 0 0 #0000}[type=checkbox]{border-radius:0}[type=radio]{border-radius:100%}[type=checkbox]:focus,[type=radio]:focus{outline:2px solid transparent;outline-offset:2px;--un-ring-inset: var(--un-empty, );--un-ring-offset-width: 2px;--un-ring-offset-color: var(--c-background);--un-ring-color: var(--c-primary);--un-ring-offset-shadow: var(--un-ring-inset) 0 0 0 var(--un-ring-offset-width) var(--un-ring-offset-color);--un-ring-shadow: var(--un-ring-inset) 0 0 0 calc(2px + var(--un-ring-offset-width)) var(--un-ring-color);box-shadow:var(--un-ring-offset-shadow),var(--un-ring-shadow),var(--un-shadow)}[type=checkbox]:checked,[type=radio]:checked{border-color:transparent;background-color:currentColor;background-size:100% 100%;background-position:center;background-repeat:no-repeat}[type=checkbox]:checked{background-image:url("data:image/svg+xml,%3csvg viewBox='0 0 16 16' fill='white' xmlns='http://www.w3.org/2000/svg'%3e%3cpath d='M12.207 4.793a1 1 0 010 1.414l-5 5a1 1 0 01-1.414 0l-2-2a1 1 0 011.414-1.414L6.5 9.086l4.293-4.293a1 1 0 011.414 0z'/%3e%3c/svg%3e")}[type=radio]:checked{background-image:url("data:image/svg+xml,%3csvg viewBox='0 0 16 16' fill='white' xmlns='http://www.w3.org/2000/svg'%3e%3ccircle cx='8' cy='8' r='3'/%3e%3c/svg%3e")}[type=checkbox]:checked:hover,[type=checkbox]:checked:focus,[type=radio]:checked:hover,[type=radio]:checked:focus{border-color:transparent;background-color:currentColor}[type=checkbox]:indeterminate{background-image:url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' fill='none' viewBox='0 0 16 16'%3e%3cpath stroke='white' stroke-linecap='round' stroke-linejoin='round' stroke-width='2' d='M4 8h8'/%3e%3c/svg%3e");border-color:transparent;background-color:currentColor;background-size:100% 100%;background-position:center;background-repeat:no-repeat}[type=checkbox]:indeterminate:hover,[type=checkbox]:indeterminate:focus{border-color:transparent;background-color:currentColor}[type=file]{background:unset;border-color:inherit;border-width:0;border-radius:0;padding:0;font-size:unset;line-height:inherit}[type=file]:focus{outline:1px solid ButtonText;outline:1px auto -webkit-focus-ring-color}[data-tooltip]{position:relative;cursor:help;--background-color: var(--c-tooltip-background, rgba(44, 44, 44, .85));--color: var(--c-tooltip-foreground, var(--c-on-dark));--border-color: transparent transparent var(--background-color) transparent}[data-tooltip]:before{content:attr(data-tooltip);visibility:hidden;opacity:0;transition:opacity var(--transition);position:absolute;z-index:1;left:0;top:102%;margin-top:5px;font-size:clamp(.75rem,90%,1rem);width:max-content;background-color:var(--background-color);color:var(--color);text-align:center;border-radius:.125rem;padding:.25rem .5rem;line-height:1.375}[data-tooltip]:after{content:"";visibility:hidden;opacity:0;transition:opacity var(--transition);position:absolute;z-index:1;left:50%;top:102%;margin-left:-5px;margin-top:-4px;border-width:5px;border-style:solid;border-color:var(--border-color)}[data-tooltip]:hover:before,[data-tooltip]:hover:after{opacity:1;visibility:visible}*,:before,:after{--un-rotate:0;--un-rotate-x:0;--un-rotate-y:0;--un-rotate-z:0;--un-scale-x:1;--un-scale-y:1;--un-scale-z:1;--un-skew-x:0;--un-skew-y:0;--un-translate-x:0;--un-translate-y:0;--un-translate-z:0;--un-pan-x: ;--un-pan-y: ;--un-pinch-zoom: ;--un-scroll-snap-strictness:proximity;--un-ordinal: ;--un-slashed-zero: ;--un-numeric-figure: ;--un-numeric-spacing: ;--un-numeric-fraction: ;--un-border-spacing-x:0;--un-border-spacing-y:0;--un-ring-offset-shadow:0 0 rgba(0,0,0,0);--un-ring-shadow:0 0 rgba(0,0,0,0);--un-shadow-inset: ;--un-shadow:0 0 rgba(0,0,0,0);--un-ring-inset: ;--un-ring-offset-width:0px;--un-ring-offset-color:#fff;--un-ring-width:0px;--un-ring-color:rgba(147,197,253,.5);--un-blur: ;--un-brightness: ;--un-contrast: ;--un-drop-shadow: ;--un-grayscale: ;--un-hue-rotate: ;--un-invert: ;--un-saturate: ;--un-sepia: ;--un-backdrop-blur: ;--un-backdrop-brightness: ;--un-backdrop-contrast: ;--un-backdrop-grayscale: ;--un-backdrop-hue-rotate: ;--un-backdrop-invert: ;--un-backdrop-opacity: ;--un-backdrop-saturate: ;--un-backdrop-sepia: }::backdrop{--un-rotate:0;--un-rotate-x:0;--un-rotate-y:0;--un-rotate-z:0;--un-scale-x:1;--un-scale-y:1;--un-scale-z:1;--un-skew-x:0;--un-skew-y:0;--un-translate-x:0;--un-translate-y:0;--un-translate-z:0;--un-pan-x: ;--un-pan-y: ;--un-pinch-zoom: ;--un-scroll-snap-strictness:proximity;--un-ordinal: ;--un-slashed-zero: ;--un-numeric-figure: ;--un-numeric-spacing: ;--un-numeric-fraction: ;--un-border-spacing-x:0;--un-border-spacing-y:0;--un-ring-offset-shadow:0 0 rgba(0,0,0,0);--un-ring-shadow:0 0 rgba(0,0,0,0);--un-shadow-inset: ;--un-shadow:0 0 rgba(0,0,0,0);--un-ring-inset: ;--un-ring-offset-width:0px;--un-ring-offset-color:#fff;--un-ring-width:0px;--un-ring-color:rgba(147,197,253,.5);--un-blur: ;--un-brightness: ;--un-contrast: ;--un-drop-shadow: ;--un-grayscale: ;--un-hue-rotate: ;--un-invert: ;--un-saturate: ;--un-sepia: ;--un-backdrop-blur: ;--un-backdrop-brightness: ;--un-backdrop-contrast: ;--un-backdrop-grayscale: ;--un-backdrop-hue-rotate: ;--un-backdrop-invert: ;--un-backdrop-opacity: ;--un-backdrop-saturate: ;--un-backdrop-sepia: }:root{--rgb-primary-50:246,250,249;--rgb-primary-100:226,239,235;--rgb-primary-200:204,227,220;--rgb-primary-300:180,214,204;--rgb-primary-400:148,196,181;--rgb-primary-500:106,172,152;--rgb-primary-600:59,146,120;--rgb-primary-700:19,123,91;--rgb-primary-800:16,101,75;--rgb-primary-900:11,72,54;--rgb-primary-subtle:103,197,161;--c-primary-subtle:rgb(103,197,161);--c-on-primary-subtle:var(--c-on-light);--rgb-primary:19,124,92;--c-primary:rgb(19,124,92);--c-on-primary:var(--c-on-dark);--rgb-primary-bold:0,57,31;--c-primary-bold:rgb(0,57,31);--c-on-primary-bold:var(--c-on-dark);--rgb-secondary-50:246,250,249;--rgb-secondary-100:226,239,235;--rgb-secondary-200:204,227,220;--rgb-secondary-300:180,214,204;--rgb-secondary-400:148,196,181;--rgb-secondary-500:106,172,152;--rgb-secondary-600:59,146,120;--rgb-secondary-700:19,123,91;--rgb-secondary-800:16,101,75;--rgb-secondary-900:11,72,54;--rgb-secondary-subtle:103,197,161;--c-secondary-subtle:rgb(103,197,161);--c-on-secondary-subtle:var(--c-on-light);--rgb-secondary:19,124,92;--c-secondary:rgb(19,124,92);--c-on-secondary:var(--c-on-dark);--rgb-secondary-bold:0,57,31;--c-secondary-bold:rgb(0,57,31);--c-on-secondary-bold:var(--c-on-dark);--rgb-on-primary:--c-on-dark;--rgb-on-primary-subtle:--c-on-light;--rgb-on-primary-bold:--c-on-dark;--rgb-on-secondary:--c-on-dark;--rgb-on-secondary-subtle:--c-on-light;--rgb-on-secondary-bold:--c-on-dark}.prose :where(h1,h2,h3,h4,h5,h6):not(:where(.not-prose,.not-prose *)){color:var(--un-prose-headings);font-weight:600;line-height:1.25}.prose :where(a):not(:where(.not-prose,.not-prose *)){color:var(--un-prose-links);text-decoration:underline;font-weight:500}.prose :where(a code):not(:where(.not-prose,.not-prose *)){color:var(--un-prose-links)}.prose :where(p,ul,ol,pre):not(:where(.not-prose,.not-prose *)){margin:1em 0;line-height:1.75}.prose :where(blockquote):not(:where(.not-prose,.not-prose *)){margin:1em 0;padding-left:1em;font-style:italic;border-left:.25em solid var(--un-prose-borders)}.prose :where(h1):not(:where(.not-prose,.not-prose *)){margin:1rem 0;font-size:2.25em}.prose :where(h2):not(:where(.not-prose,.not-prose *)){margin:1.75em 0 .5em;font-size:1.75em}.prose :where(h3):not(:where(.not-prose,.not-prose *)){margin:1.5em 0 .5em;font-size:1.375em}.prose :where(h4):not(:where(.not-prose,.not-prose *)){margin:1em 0;font-size:1.125em}.prose :where(img,video):not(:where(.not-prose,.not-prose *)){max-width:100%}.prose :where(figure,picture):not(:where(.not-prose,.not-prose *)){margin:1em 0}.prose :where(figcaption):not(:where(.not-prose,.not-prose *)){color:var(--un-prose-captions);font-size:.875em}.prose :where(code):not(:where(.not-prose,.not-prose *)){color:var(--un-prose-code);font-size:.875em;font-weight:600;font-family:var(--un-prose-font-mono)}.prose :where(:not(pre) > code):not(:where(.not-prose,.not-prose *)):before,.prose :where(:not(pre) > code):not(:where(.not-prose,.not-prose *)):after{content:"`"}.prose :where(pre):not(:where(.not-prose,.not-prose *)){padding:1.25rem 1.5rem;overflow-x:auto;border-radius:.375rem}.prose :where(pre,code):not(:where(.not-prose,.not-prose *)){white-space:pre;word-spacing:normal;word-break:normal;word-wrap:normal;-moz-tab-size:4;-o-tab-size:4;tab-size:4;-webkit-hyphens:none;-moz-hyphens:none;hyphens:none;background:transparent}.prose :where(pre code):not(:where(.not-prose,.not-prose *)){font-weight:inherit}.prose :where(ol,ul):not(:where(.not-prose,.not-prose *)){padding-left:1.25em}.prose :where(ol):not(:where(.not-prose,.not-prose *)){list-style-type:decimal}.prose :where(ol[type="A"]):not(:where(.not-prose,.not-prose *)){list-style-type:upper-alpha}.prose :where(ol[type="a"]):not(:where(.not-prose,.not-prose *)){list-style-type:lower-alpha}.prose :where(ol[type="A" s]):not(:where(.not-prose,.not-prose *)){list-style-type:upper-alpha}.prose :where(ol[type="a" s]):not(:where(.not-prose,.not-prose *)){list-style-type:lower-alpha}.prose :where(ol[type="I"]):not(:where(.not-prose,.not-prose *)){list-style-type:upper-roman}.prose :where(ol[type="i"]):not(:where(.not-prose,.not-prose *)){list-style-type:lower-roman}.prose :where(ol[type="I" s]):not(:where(.not-prose,.not-prose *)){list-style-type:upper-roman}.prose :where(ol[type="i" s]):not(:where(.not-prose,.not-prose *)){list-style-type:lower-roman}.prose :where(ol[type="1"]):not(:where(.not-prose,.not-prose *)){list-style-type:decimal}.prose :where(ul):not(:where(.not-prose,.not-prose *)){list-style-type:disc}.prose :where(ol > li):not(:where(.not-prose,.not-prose *))::marker,.prose :where(ul > li):not(:where(.not-prose,.not-prose *))::marker,.prose :where(summary):not(:where(.not-prose,.not-prose *))::marker{color:var(--un-prose-lists)}.prose :where(hr):not(:where(.not-prose,.not-prose *)){margin:2em 0;border:1px solid var(--un-prose-hr)}.prose :where(table):not(:where(.not-prose,.not-prose *)){display:block;margin:1em 0;border-collapse:collapse;overflow-x:auto}.prose :where(tr):not(:where(.not-prose,.not-prose *)):nth-child(2n){background:var(--un-prose-bg-soft)}.prose :where(td,th):not(:where(.not-prose,.not-prose *)){border:1px solid var(--un-prose-borders);padding:.625em 1em}.prose :where(abbr):not(:where(.not-prose,.not-prose *)){cursor:help}.prose :where(kbd):not(:where(.not-prose,.not-prose *)){color:var(--un-prose-code);border:1px solid;padding:.25rem .5rem;font-size:.875em;border-radius:.25rem}.prose :where(details):not(:where(.not-prose,.not-prose *)){margin:1em 0;padding:1.25rem 1.5rem;background:var(--un-prose-bg-soft)}.prose :where(summary):not(:where(.not-prose,.not-prose *)){cursor:pointer;font-weight:600}.prose{color:var(--un-prose-body);max-width:65ch}.i-bars-3-bottom-left{--un-icon:url("data:image/svg+xml;utf8,%3Csvg viewBox='0 0 24 24' display='inline-block' vertical-align='middle' margin-bottom='0.22rem' width='1em' height='1em' xmlns='http://www.w3.org/2000/svg' %3E%3Cpath fill='none' stroke='currentColor' stroke-linecap='round' stroke-linejoin='round' stroke-width='1.5' d='M3.75 6.75h16.5M3.75 12h16.5m-16.5 5.25H12'/%3E%3C/svg%3E");-webkit-mask:var(--un-icon) no-repeat;mask:var(--un-icon) no-repeat;-webkit-mask-size:100% 100%;mask-size:100% 100%;background-color:currentColor;color:inherit;display:inline-block;vertical-align:middle;margin-bottom:.22rem;width:1em;height:1em}.i-cashback{--un-icon:url("data:image/svg+xml;utf8,%3Csvg viewBox='0 0 24 24' display='inline-block' vertical-align='middle' margin-bottom='0.22rem' width='1em' height='1em' xmlns='http://www.w3.org/2000/svg' %3E%3Cpath fill='none' stroke='currentColor' stroke-linecap='round' stroke-linejoin='round' stroke-width='1.5' d='M9 15L3 9m0 0l6-6M3 9h12a6 6 0 0 1 0 12h-3'/%3E%3C/svg%3E");-webkit-mask:var(--un-icon) no-repeat;mask:var(--un-icon) no-repeat;-webkit-mask-size:100% 100%;mask-size:100% 100%;background-color:currentColor;color:inherit;display:inline-block;vertical-align:middle;margin-bottom:.22rem;width:1em;height:1em}.i-chevron-left{--un-icon:url("data:image/svg+xml;utf8,%3Csvg viewBox='0 0 24 24' display='inline-block' vertical-align='middle' margin-bottom='0.22rem' width='1em' height='1em' xmlns='http://www.w3.org/2000/svg' %3E%3Cpath fill='none' stroke='currentColor' stroke-linecap='round' stroke-linejoin='round' stroke-width='1.5' d='M15.75 19.5L8.25 12l7.5-7.5'/%3E%3C/svg%3E");-webkit-mask:var(--un-icon) no-repeat;mask:var(--un-icon) no-repeat;-webkit-mask-size:100% 100%;mask-size:100% 100%;background-color:currentColor;color:inherit;display:inline-block;vertical-align:middle;margin-bottom:.22rem;width:1em;height:1em}.i-chevron-right{--un-icon:url("data:image/svg+xml;utf8,%3Csvg viewBox='0 0 24 24' display='inline-block' vertical-align='middle' margin-bottom='0.22rem' width='1em' height='1em' xmlns='http://www.w3.org/2000/svg' %3E%3Cpath fill='none' stroke='currentColor' stroke-linecap='round' stroke-linejoin='round' stroke-width='1.5' d='m8.25 4.5l7.5 7.5l-7.5 7.5'/%3E%3C/svg%3E");-webkit-mask:var(--un-icon) no-repeat;mask:var(--un-icon) no-repeat;-webkit-mask-size:100% 100%;mask-size:100% 100%;background-color:currentColor;color:inherit;display:inline-block;vertical-align:middle;margin-bottom:.22rem;width:1em;height:1em}.i-facebook{--un-icon:url("data:image/svg+xml;utf8,%3Csvg viewBox='0 0 512 512' display='inline-block' vertical-align='middle' margin-bottom='0.22rem' width='1em' height='1em' xmlns='http://www.w3.org/2000/svg' %3E%3Cpath fill='currentColor' d='M504 256C504 119 393 8 256 8S8 119 8 256c0 123.78 90.69 226.38 209.25 245V327.69h-63V256h63v-54.64c0-62.15 37-96.48 93.67-96.48c27.14 0 55.52 4.84 55.52 4.84v61h-31.28c-30.8 0-40.41 19.12-40.41 38.73V256h68.78l-11 71.69h-57.78V501C413.31 482.38 504 379.78 504 256z'/%3E%3C/svg%3E");-webkit-mask:var(--un-icon) no-repeat;mask:var(--un-icon) no-repeat;-webkit-mask-size:100% 100%;mask-size:100% 100%;background-color:currentColor;color:inherit;display:inline-block;vertical-align:middle;margin-bottom:.22rem;width:1em;height:1em}.i-instagram{--un-icon:url("data:image/svg+xml;utf8,%3Csvg viewBox='0 0 448 512' display='inline-block' vertical-align='middle' margin-bottom='0.22rem' width='1em' height='1em' xmlns='http://www.w3.org/2000/svg' %3E%3Cpath fill='currentColor' d='M224.1 141c-63.6 0-114.9 51.3-114.9 114.9s51.3 114.9 114.9 114.9S339 319.5 339 255.9S287.7 141 224.1 141zm0 189.6c-41.1 0-74.7-33.5-74.7-74.7s33.5-74.7 74.7-74.7s74.7 33.5 74.7 74.7s-33.6 74.7-74.7 74.7zm146.4-194.3c0 14.9-12 26.8-26.8 26.8c-14.9 0-26.8-12-26.8-26.8s12-26.8 26.8-26.8s26.8 12 26.8 26.8zm76.1 27.2c-1.7-35.9-9.9-67.7-36.2-93.9c-26.2-26.2-58-34.4-93.9-36.2c-37-2.1-147.9-2.1-184.9 0c-35.8 1.7-67.6 9.9-93.9 36.1s-34.4 58-36.2 93.9c-2.1 37-2.1 147.9 0 184.9c1.7 35.9 9.9 67.7 36.2 93.9s58 34.4 93.9 36.2c37 2.1 147.9 2.1 184.9 0c35.9-1.7 67.7-9.9 93.9-36.2c26.2-26.2 34.4-58 36.2-93.9c2.1-37 2.1-147.8 0-184.8zM398.8 388c-7.8 19.6-22.9 34.7-42.6 42.6c-29.5 11.7-99.5 9-132.1 9s-102.7 2.6-132.1-9c-19.6-7.8-34.7-22.9-42.6-42.6c-11.7-29.5-9-99.5-9-132.1s-2.6-102.7 9-132.1c7.8-19.6 22.9-34.7 42.6-42.6c29.5-11.7 99.5-9 132.1-9s102.7-2.6 132.1 9c19.6 7.8 34.7 22.9 42.6 42.6c11.7 29.5 9 99.5 9 132.1s2.7 102.7-9 132.1z'/%3E%3C/svg%3E");-webkit-mask:var(--un-icon) no-repeat;mask:var(--un-icon) no-repeat;-webkit-mask-size:100% 100%;mask-size:100% 100%;background-color:currentColor;color:inherit;display:inline-block;vertical-align:middle;margin-bottom:.22rem;width:1em;height:1em}.i-phone{--un-icon:url("data:image/svg+xml;utf8,%3Csvg viewBox='0 0 24 24' display='inline-block' vertical-align='middle' margin-bottom='0.22rem' width='1em' height='1em' xmlns='http://www.w3.org/2000/svg' %3E%3Cpath fill='none' stroke='currentColor' stroke-linecap='round' stroke-linejoin='round' stroke-width='1.5' d='M2.25 6.75c0 8.284 6.716 15 15 15h2.25a2.25 2.25 0 0 0 2.25-2.25v-1.372c0-.516-.351-.966-.852-1.091l-4.423-1.106c-.44-.11-.902.055-1.173.417l-.97 1.293c-.282.376-.769.542-1.21.38a12.035 12.035 0 0 1-7.143-7.143c-.162-.441.004-.928.38-1.21l1.293-.97c.363-.271.527-.734.417-1.173L6.963 3.102a1.125 1.125 0 0 0-1.091-.852H4.5A2.25 2.25 0 0 0 2.25 4.5v2.25Z'/%3E%3C/svg%3E");-webkit-mask:var(--un-icon) no-repeat;mask:var(--un-icon) no-repeat;-webkit-mask-size:100% 100%;mask-size:100% 100%;background-color:currentColor;color:inherit;display:inline-block;vertical-align:middle;margin-bottom:.22rem;width:1em;height:1em}.i-pinterest{--un-icon:url("data:image/svg+xml;utf8,%3Csvg viewBox='0 0 496 512' display='inline-block' vertical-align='middle' margin-bottom='0.22rem' width='1em' height='1em' xmlns='http://www.w3.org/2000/svg' %3E%3Cpath fill='currentColor' d='M496 256c0 137-111 248-248 248c-25.6 0-50.2-3.9-73.4-11.1c10.1-16.5 25.2-43.5 30.8-65c3-11.6 15.4-59 15.4-59c8.1 15.4 31.7 28.5 56.8 28.5c74.8 0 128.7-68.8 128.7-154.3c0-81.9-66.9-143.2-152.9-143.2c-107 0-163.9 71.8-163.9 150.1c0 36.4 19.4 81.7 50.3 96.1c4.7 2.2 7.2 1.2 8.3-3.3c.8-3.4 5-20.3 6.9-28.1c.6-2.5.3-4.7-1.7-7.1c-10.1-12.5-18.3-35.3-18.3-56.6c0-54.7 41.4-107.6 112-107.6c60.9 0 103.6 41.5 103.6 100.9c0 67.1-33.9 113.6-78 113.6c-24.3 0-42.6-20.1-36.7-44.8c7-29.5 20.5-61.3 20.5-82.6c0-19-10.2-34.9-31.4-34.9c-24.9 0-44.9 25.7-44.9 60.2c0 22 7.4 36.8 7.4 36.8s-24.5 103.8-29 123.2c-5 21.4-3 51.6-.9 71.2C65.4 450.9 0 361.1 0 256C0 119 111 8 248 8s248 111 248 248z'/%3E%3C/svg%3E");-webkit-mask:var(--un-icon) no-repeat;mask:var(--un-icon) no-repeat;-webkit-mask-size:100% 100%;mask-size:100% 100%;background-color:currentColor;color:inherit;display:inline-block;vertical-align:middle;margin-bottom:.22rem;width:1em;height:1em}.i-shopping-cart{--un-icon:url("data:image/svg+xml;utf8,%3Csvg viewBox='0 0 24 24' display='inline-block' vertical-align='middle' margin-bottom='0.22rem' width='1em' height='1em' xmlns='http://www.w3.org/2000/svg' %3E%3Cpath fill='none' stroke='currentColor' stroke-linecap='round' stroke-linejoin='round' stroke-width='1.5' d='M15.75 10.5V6a3.75 3.75 0 1 0-7.5 0v4.5m11.356-1.993l1.263 12c.07.665-.45 1.243-1.119 1.243H4.25a1.125 1.125 0 0 1-1.12-1.243l1.264-12A1.125 1.125 0 0 1 5.513 7.5h12.974c.576 0 1.059.435 1.119 1.007ZM8.625 10.5a.375.375 0 1 1-.75 0a.375.375 0 0 1 .75 0Zm7.5 0a.375.375 0 1 1-.75 0a.375.375 0 0 1 .75 0Z'/%3E%3C/svg%3E");-webkit-mask:var(--un-icon) no-repeat;mask:var(--un-icon) no-repeat;-webkit-mask-size:100% 100%;mask-size:100% 100%;background-color:currentColor;color:inherit;display:inline-block;vertical-align:middle;margin-bottom:.22rem;width:1em;height:1em}.i-tiktok{--un-icon:url("data:image/svg+xml;utf8,%3Csvg viewBox='0 0 448 512' display='inline-block' vertical-align='middle' margin-bottom='0.22rem' width='1em' height='1em' xmlns='http://www.w3.org/2000/svg' %3E%3Cpath fill='currentColor' d='M448 209.91a210.06 210.06 0 0 1-122.77-39.25v178.72A162.55 162.55 0 1 1 185 188.31v89.89a74.62 74.62 0 1 0 52.23 71.18V0h88a121.18 121.18 0 0 0 1.86 22.17A122.18 122.18 0 0 0 381 102.39a121.43 121.43 0 0 0 67 20.14Z'/%3E%3C/svg%3E");-webkit-mask:var(--un-icon) no-repeat;mask:var(--un-icon) no-repeat;-webkit-mask-size:100% 100%;mask-size:100% 100%;background-color:currentColor;color:inherit;display:inline-block;vertical-align:middle;margin-bottom:.22rem;width:1em;height:1em}.i-twitter{--un-icon:url("data:image/svg+xml;utf8,%3Csvg viewBox='0 0 512 512' display='inline-block' vertical-align='middle' margin-bottom='0.22rem' width='1em' height='1em' xmlns='http://www.w3.org/2000/svg' %3E%3Cpath fill='currentColor' d='M459.37 151.716c.325 4.548.325 9.097.325 13.645c0 138.72-105.583 298.558-298.558 298.558c-59.452 0-114.68-17.219-161.137-47.106c8.447.974 16.568 1.299 25.34 1.299c49.055 0 94.213-16.568 130.274-44.832c-46.132-.975-84.792-31.188-98.112-72.772c6.498.974 12.995 1.624 19.818 1.624c9.421 0 18.843-1.3 27.614-3.573c-48.081-9.747-84.143-51.98-84.143-102.985v-1.299c13.969 7.797 30.214 12.67 47.431 13.319c-28.264-18.843-46.781-51.005-46.781-87.391c0-19.492 5.197-37.36 14.294-52.954c51.655 63.675 129.3 105.258 216.365 109.807c-1.624-7.797-2.599-15.918-2.599-24.04c0-57.828 46.782-104.934 104.934-104.934c30.213 0 57.502 12.67 76.67 33.137c23.715-4.548 46.456-13.32 66.599-25.34c-7.798 24.366-24.366 44.833-46.132 57.827c21.117-2.273 41.584-8.122 60.426-16.243c-14.292 20.791-32.161 39.308-52.628 54.253z'/%3E%3C/svg%3E");-webkit-mask:var(--un-icon) no-repeat;mask:var(--un-icon) no-repeat;-webkit-mask-size:100% 100%;mask-size:100% 100%;background-color:currentColor;color:inherit;display:inline-block;vertical-align:middle;margin-bottom:.22rem;width:1em;height:1em}.i-user-circle{--un-icon:url("data:image/svg+xml;utf8,%3Csvg viewBox='0 0 24 24' display='inline-block' vertical-align='middle' margin-bottom='0.22rem' width='1em' height='1em' xmlns='http://www.w3.org/2000/svg' %3E%3Cpath fill='none' stroke='currentColor' stroke-linecap='round' stroke-linejoin='round' stroke-width='1.5' d='M17.982 18.725A7.488 7.488 0 0 0 12 15.75a7.488 7.488 0 0 0-5.982 2.975m11.963 0a9 9 0 1 0-11.963 0m11.963 0A8.966 8.966 0 0 1 12 21a8.966 8.966 0 0 1-5.982-2.275M15 9.75a3 3 0 1 1-6 0a3 3 0 0 1 6 0Z'/%3E%3C/svg%3E");-webkit-mask:var(--un-icon) no-repeat;mask:var(--un-icon) no-repeat;-webkit-mask-size:100% 100%;mask-size:100% 100%;background-color:currentColor;color:inherit;display:inline-block;vertical-align:middle;margin-bottom:.22rem;width:1em;height:1em}.i-whatsapp{--un-icon:url("data:image/svg+xml;utf8,%3Csvg viewBox='0 0 448 512' display='inline-block' vertical-align='middle' margin-bottom='0.22rem' width='1em' height='1em' xmlns='http://www.w3.org/2000/svg' %3E%3Cpath fill='currentColor' d='M380.9 97.1C339 55.1 283.2 32 223.9 32c-122.4 0-222 99.6-222 222c0 39.1 10.2 77.3 29.6 111L0 480l117.7-30.9c32.4 17.7 68.9 27 106.1 27h.1c122.3 0 224.1-99.6 224.1-222c0-59.3-25.2-115-67.1-157zm-157 341.6c-33.2 0-65.7-8.9-94-25.7l-6.7-4l-69.8 18.3L72 359.2l-4.4-7c-18.5-29.4-28.2-63.3-28.2-98.2c0-101.7 82.8-184.5 184.6-184.5c49.3 0 95.6 19.2 130.4 54.1c34.8 34.9 56.2 81.2 56.1 130.5c0 101.8-84.9 184.6-186.6 184.6zm101.2-138.2c-5.5-2.8-32.8-16.2-37.9-18c-5.1-1.9-8.8-2.8-12.5 2.8c-3.7 5.6-14.3 18-17.6 21.8c-3.2 3.7-6.5 4.2-12 1.4c-32.6-16.3-54-29.1-75.5-66c-5.7-9.8 5.7-9.1 16.3-30.3c1.8-3.7.9-6.9-.5-9.7c-1.4-2.8-12.5-30.1-17.1-41.2c-4.5-10.8-9.1-9.3-12.5-9.5c-3.2-.2-6.9-.2-10.6-.2c-3.7 0-9.7 1.4-14.8 6.9c-5.1 5.6-19.4 19-19.4 46.3c0 27.3 19.9 53.7 22.6 57.4c2.8 3.7 39.1 59.7 94.8 83.8c35.2 15.2 49 16.5 66.6 13.9c10.7-1.6 32.8-13.4 37.4-26.4c4.6-13 4.6-24.1 3.2-26.4c-1.3-2.5-5-3.9-10.5-6.6z'/%3E%3C/svg%3E");-webkit-mask:var(--un-icon) no-repeat;mask:var(--un-icon) no-repeat;-webkit-mask-size:100% 100%;mask-size:100% 100%;background-color:currentColor;color:inherit;display:inline-block;vertical-align:middle;margin-bottom:.22rem;width:1em;height:1em}.i-youtube{--un-icon:url("data:image/svg+xml;utf8,%3Csvg viewBox='0 0 576 512' display='inline-block' vertical-align='middle' margin-bottom='0.22rem' width='1em' height='1em' xmlns='http://www.w3.org/2000/svg' %3E%3Cpath fill='currentColor' d='M549.655 124.083c-6.281-23.65-24.787-42.276-48.284-48.597C458.781 64 288 64 288 64S117.22 64 74.629 75.486c-23.497 6.322-42.003 24.947-48.284 48.597c-11.412 42.867-11.412 132.305-11.412 132.305s0 89.438 11.412 132.305c6.281 23.65 24.787 41.5 48.284 47.821C117.22 448 288 448 288 448s170.78 0 213.371-11.486c23.497-6.321 42.003-24.171 48.284-47.821c11.412-42.867 11.412-132.305 11.412-132.305s0-89.438-11.412-132.305zm-317.51 213.508V175.185l142.739 81.205l-142.739 81.201z'/%3E%3C/svg%3E");-webkit-mask:var(--un-icon) no-repeat;mask:var(--un-icon) no-repeat;-webkit-mask-size:100% 100%;mask-size:100% 100%;background-color:currentColor;color:inherit;display:inline-block;vertical-align:middle;margin-bottom:.22rem;width:1em;height:1em}.container{max-width:100%}@media (min-width: 640px){.container{max-width:640px}}@media (min-width: 768px){.container{max-width:768px}}@media (min-width: 1024px){.container{max-width:1024px}}@media (min-width: 1280px){.container{max-width:1280px}}@media (min-width: 1536px){.container{max-width:1536px}}.absolute{position:absolute}.relative{position:relative}.sticky{position:sticky}.top-0{top:0rem}.z-10{z-index:10}.z-50{z-index:50}.grid{display:grid}.auto-cols-max{grid-auto-columns:max-content}.grid-flow-col{grid-auto-flow:column}.m-0{margin:0rem}.mx-auto{margin-left:auto;margin-right:auto}.mb-0{margin-bottom:0rem}.me{margin-inline-end:1rem}.ml-2{margin-left:.5rem}.mr-1{margin-right:.25rem}.mr-2{margin-right:.5rem}.mr-4{margin-right:1rem}.mt-1{margin-top:.25rem}.mt-2{margin-top:.5rem}.mt-3{margin-top:.75rem}.block{display:block}.inline-block{display:inline-block}.hidden{display:none}.h1{height:.25rem}.h2{height:.5rem}.h3{height:.75rem}.h4{height:1rem}.h5{height:1.25rem}.h6{height:1.5rem}.w-full{width:100%}.flex{display:flex}.inline-flex{display:inline-flex}.grow{flex-grow:1}.transform{transform:translate(var(--un-translate-x)) translateY(var(--un-translate-y)) translateZ(var(--un-translate-z)) rotate(var(--un-rotate)) rotateX(var(--un-rotate-x)) rotateY(var(--un-rotate-y)) rotate(var(--un-rotate-z)) skew(var(--un-skew-x)) skewY(var(--un-skew-y)) scaleX(var(--un-scale-x)) scaleY(var(--un-scale-y)) scaleZ(var(--un-scale-z))}.resize{resize:both}.items-center{align-items:center}.justify-between{justify-content:space-between}.overflow-x-auto{overflow-x:auto}.whitespace-nowrap{white-space:nowrap}.bg-base-100{--un-bg-opacity:1;background-color:rgba(241,245,249,var(--un-bg-opacity))}.bg-opacity-90{--un-bg-opacity:.9}.p-1{padding:.25rem}.px-3{padding-left:.75rem;padding-right:.75rem}.py-1{padding-top:.25rem;padding-bottom:.25rem}.py-2{padding-top:.5rem;padding-bottom:.5rem}.pl-2{padding-left:.5rem}.pr-2{padding-right:.5rem}.text-center{text-align:center}.font-brand{font-family:var(--font-brand, var(--font-sans))}.text-2xl{font-size:1.5rem;line-height:2rem}.text-5xl{font-size:3rem;line-height:1}.text-lg{font-size:1.125rem;line-height:1.75rem}.text-sm{font-size:.875rem;line-height:1.25rem}.text-xl{font-size:1.25rem;line-height:1.75rem}.text-xs{font-size:.75rem;line-height:1rem}.font-medium{font-weight:500}.font-semibold{font-weight:600}.leading-none{line-height:1}.lowercase{text-transform:lowercase}.hover\:text-base-700:hover{--un-text-opacity:1;color:rgba(51,65,85,var(--un-text-opacity))}.hover\:text-primary:hover,.text-primary{--un-text-opacity:1;color:rgba(var(--rgb-primary),var(--un-text-opacity))}.text-base-400{--un-text-opacity:1;color:rgba(148,163,184,var(--un-text-opacity))}.text-base-500{--un-text-opacity:1;color:rgba(100,116,139,var(--un-text-opacity))}.text-base-600{--un-text-opacity:1;color:rgba(71,85,105,var(--un-text-opacity))}.text-base-800{--un-text-opacity:1;color:rgba(30,41,59,var(--un-text-opacity))}.text-gray-700{--un-text-opacity:1;color:rgba(55,65,81,var(--un-text-opacity))}.hover\:underline:hover{text-decoration-line:underline}.no-underline{text-decoration:none}.backdrop-blur-md{--un-backdrop-blur:blur(12px);-webkit-backdrop-filter:var(--un-backdrop-blur) var(--un-backdrop-brightness) var(--un-backdrop-contrast) var(--un-backdrop-grayscale) var(--un-backdrop-hue-rotate) var(--un-backdrop-invert) var(--un-backdrop-opacity) var(--un-backdrop-saturate) var(--un-backdrop-sepia);backdrop-filter:var(--un-backdrop-blur) var(--un-backdrop-brightness) var(--un-backdrop-contrast) var(--un-backdrop-grayscale) var(--un-backdrop-hue-rotate) var(--un-backdrop-invert) var(--un-backdrop-opacity) var(--un-backdrop-saturate) var(--un-backdrop-sepia)}.primary{background-color:var(--c-primary, rgb(19,124,92));color:var(--c-on-primary, var(--c-on-dark))}.secondary{background-color:var(--c-secondary, rgb(19,124,92));color:var(--c-on-secondary, var(--c-on-dark))}@media (min-width: 640px){.sm\:py-2{padding-top:.5rem;padding-bottom:.5rem}}@media (min-width: 768px){.md\:block{display:block}.md\:hidden{display:none}.md\:w-2\/3{width:66.6666666667%}}@media (min-width: 1024px){.lg\:mr-3{margin-right:.75rem}.lg\:px-2{padding-left:.5rem;padding-right:.5rem}}@media (min-width: 1280px){.xl\:px-4{padding-left:1rem;padding-right:1rem}}html{scroll-behavior:smooth}body{overflow-x:hidden}a,button,button>*{transition:color var(--transition),background-color var(--transition),opacity var(--transition)}[data-carousel]{position:relative}[data-carousel-wrapper]{display:flex;overflow-x:scroll;overflow-y:hidden;scroll-snap-type:x mandatory;scroll-behavior:smooth;scrollbar-width:none;-webkit-overflow-scrolling:touch;-ms-overflow-style:none;list-style:none;margin:0;padding:0}[data-carousel-wrapper]::-webkit-scrollbar{display:none}[data-carousel-wrapper]>*{flex:0 0 100%;height:100%;scroll-snap-align:start;display:flex;justify-content:center;align-items:center;outline:none}[data-carousel-control]{position:absolute;top:0;bottom:0}[data-carousel-control=previous]{left:0}[data-carousel-control=next]{right:0}
@@ -0,0 +1 @@
1
+ [data-prices-compare]{font-size:87%}[data-prices-cashback],[data-prices-installment],[data-prices-discount]{font-size:90%}[data-prices] small{text-transform:lowercase;font-size:92%}[data-prices~=Big]{font-size:1.125rem;line-height:1.75rem}[data-prices~=Big] [data-prices-sale]{display:block;font-size:3rem;line-height:1}
@@ -0,0 +1 @@
1
+ import{u as T}from"./session-utm.2de8b604.js";import{r as M,c as u,d as z,a as _,u as e,b as c,n as $,m as L,e as h,g as D,o as v,f as O,t as y,h as W,i as B,w as A,j as R}from"./runtime-core.esm-bundler.fa6cdb60.js";import{g as S,c as q}from"./ecom-utils.63984324.js";const K=(n,r,m=1e4)=>{let d,t;m&&(d=new AbortController,t=setTimeout(()=>{d.abort()},m)),r?.body&&typeof r.body=="object"&&(r.body=JSON.stringify(r.body),r.headers={...r.headers,"Content-Type":"application/json","Content-Length":r.body.length.toString()});const p=fetch(n,{...r,signal:d?.signal});return p.finally(()=>{t&&clearTimeout(t)}),p},U={list_payments:{},calculate_shipping:{},apply_discount:{}},I=M(U);{const n="MODULES_INFO",r=sessionStorage.getItem(n);let m;if(r)try{m=JSON.parse(r),m.__timestamp<Date.now()-1e3*60*5&&(m=null,sessionStorage.removeItem(n)),delete m.__timestamp}catch{sessionStorage.removeItem(n)}if(m?.list_payments)Object.assign(I,m);else{const d=window.storefront?.modulesInfoPreset;d&&Object.assign(I,d);const t=[];["list_payments","calculate_shipping"].forEach(p=>{Object.keys(I[p]).length||t.push({modName:p})}),Object.keys(T).length&&t.push({modName:"apply_discount",reqOptions:{method:"post",body:{utm:T}}}),t.forEach(({modName:p,reqOptions:g})=>{K(`/api/modules/${p}`,g).then(async b=>{if(b.ok){const i={};I[p]=i;const{result:V}=await b.json();Array.isArray(V)&&V.forEach(({error:k,response:f})=>{if(!k){let s,l;switch(p){case"calculate_shipping":s="free_shipping_from_value",l=f[s],typeof l=="number"&&(i[s]===void 0||l<i[s])&&(i[s]=l);break;case"list_payments":s="installments_option",l=f[s],l&&(!i[s]||l.monthly_interest<i[s].monthly_interest||l.max_number>i[s].max_number)&&(i[s]=l),s="discount_option",l=f[s],l&&(!i[s]||l.value>i[s].value)&&f.payment_gateways.forEach(({discount:a})=>{a&&a.apply_at!=="freight"&&a.value===l.value&&(i[s]={apply_at:a.apply_at,...l})}),s="loyalty_points_programs",l=f[s],l&&(i[s]={...i[s],...l});break;default:s="available_extra_discount",l=f[s],l&&(!i[s]||l.value>i[s].value)&&(i[s]=l)}}}),sessionStorage.setItem(n,JSON.stringify({...I,__timestamp:Date.now()}))}}).catch(console.error)})}}const F=(n,r)=>{const{type:m,value:d}=r;let t;return d?(m==="percentage"?t=n*((100-d)/100):t=n-d,t>0?t:0):n},G=n=>{const r=u(()=>n.product||{price:n.price||0,base_price:n.basePrice}),m=u(()=>{const{variations:o}=r.value;if(o){const P=S(r.value);for(let j=0;j<o.length;j++)if(S({...r.value,...o[j]})>P)return!0}return!1}),d=u(()=>I.apply_discount.available_extra_discount),t=u(()=>{const o=S(r.value),P=d.value;return P&&(!P.min_amount||o>P.min_amount)?F(o,P):o}),p=u(()=>{if(q(r.value))return r.value.base_price;const o=S(r.value);return o>t.value?o:0}),g=u(()=>n.installmentsOption||I.list_payments.installments_option||{max_number:1}),b=u(()=>{if(g.value.max_number<=1)return 1;const o=g.value.min_installment||5,P=Math.round(t.value/o);return Math.min(P,g.value.max_number)}),i=u(()=>g.value.monthly_interest||0),V=u(()=>{if(b.value>=2){if(!i.value)return t.value/b.value;const o=i.value/100;return t.value*o/(1-(1+o)**-b.value)}return 0}),k=u(()=>{const o=n.discountOption||I.list_payments.discount_option;return o&&(!o.min_amount||o.min_amount<=t.value)&&(!n.isAmountTotal||o.apply_at==="total")?o:{}}),f=u(()=>{const{label:o}=k.value;return o?o.includes(" ")?o:`via ${o}`:""}),s=u(()=>F(t.value,k.value)),l=u(()=>{if(n.loyaltyPointsProgram)return n.loyaltyPointsProgram;const o=I.list_payments.loyalty_points_programs;if(o){const P=Object.keys(o);for(let j=0;j<P.length;j++){const N=o[P[j]];if(N&&N.earn_percentage>0)return N}}return{ratio:0}}),a=u(()=>l.value.min_subtotal_to_earn||0),E=u(()=>l.value.name||""),w=u(()=>l.value.earn_percentage||0),C=u(()=>w.value*l.value.ratio),J=u(()=>C.value>=1?t.value*(C.value/100):0);return{hasVariedPrices:m,salePrice:t,comparePrice:p,installmentsObject:g,installmentsNumber:b,monthlyInterest:i,installmentValue:V,discountObject:k,discountLabel:f,priceWithDiscount:s,pointsProgramObject:l,pointsMinPrice:a,pointsProgramName:E,earnPointsPercentage:w,cashbackPercentage:C,cashbackValue:J}},H=n=>u(()=>{let r="";return Object.keys(n).forEach(m=>{n[m]===!0&&(r+=` ${m.replace(/^(is|has)/,"")}`)}),r.slice(1)}),Q=["data-prices"],X={"data-prices-compare":"",class:"text-base-500 mr-1"},Y={key:0},Z={key:0},x={"data-prices-sale":"",class:"inline-block text-base-800"},ee={key:0},te={key:0,"data-prices-cashback":"",class:"relative z-10"},se=["data-tooltip"],ae=O("i",{class:"i-cashback mr-1"},null,-1),ne={class:"font-medium"},oe=O("small",null," cashback",-1),le={key:0,"data-prices-installment":""},re={key:0},ie={key:0},ce={key:0},ue={key:0,"data-prices-discount":""},me={key:0},pe={key:0},fe=z({__name:"Prices",props:{product:null,price:null,basePrice:null,isAmountTotal:{type:Boolean},installmentsOption:null,discountOption:null,isBig:{type:Boolean},isLiteral:{type:Boolean},hasCashback:{type:Boolean,default:!0},hasPriceOptions:{type:Boolean,default:!0}},setup(n){const r=n,m=G(r),{hasVariedPrices:d,salePrice:t,comparePrice:p,cashbackPercentage:g,cashbackValue:b,installmentsNumber:i,monthlyInterest:V,installmentValue:k,priceWithDiscount:f,discountLabel:s}=m,l=H(r);return(a,E)=>{const w=R("Fade");return v(),_("div",{"data-prices":e(l),class:"text-base-600"},[e(p)?c(a.$slots,"compare",$(L({key:0},{salePrice:e(t),comparePrice:e(p)})),()=>[O("span",X,[c(a.$slots,"compare-pre",{},()=>[n.isLiteral?(v(),_("small",Y,y("De "))):h("",!0)]),c(a.$slots,"compare-value",$(D({salePrice:e(t),comparePrice:e(p)})),()=>[O("s",null,y(a.$money(e(p))),1)]),c(a.$slots,"compare-post",{},()=>[n.isLiteral?(v(),_("small",Z,y(" Por"))):h("",!0)])])]):h("",!0),c(a.$slots,"sale",$(D({salePrice:e(t)})),()=>[O("strong",x,[c(a.$slots,"sale-pre",{},()=>[e(d)?(v(),_("small",ee,y("A partir de "))):h("",!0)]),c(a.$slots,"sale-value",$(D({salePrice:e(t)})),()=>[W(y(a.$money(e(t))),1)]),c(a.$slots,"sale-post")])]),e(b)?c(a.$slots,"cashback",$(L({key:1},{salePrice:e(t),cashbackValue:e(b),cashbackPercentage:e(g)})),()=>[B(w,{slide:"down"},{default:A(()=>[n.hasCashback?(v(),_("div",te,[O("span",{"data-tooltip":"Receba $1 de volta".replace("$1",a.$percentage(e(g)))},[c(a.$slots,"cashback-pre",{},()=>[ae]),c(a.$slots,"cashback-value",$(D({salePrice:e(t),cashbackValue:e(b),cashbackPercentage:e(g)})),()=>[O("span",ne,y(a.$money(e(b))),1)]),c(a.$slots,"cashback-post",{},()=>[oe])],8,se)])):h("",!0)]),_:3})]):h("",!0),e(k)?c(a.$slots,"installment",$(L({key:2},{salePrice:e(t),installmentValue:e(k),installmentsNumber:e(i),monthlyInterest:e(V)})),()=>[B(w,{slide:"down"},{default:A(()=>[n.hasPriceOptions?(v(),_("div",le,[c(a.$slots,"installment-pre",{},()=>[n.isLiteral?(v(),_("small",re,y("At\xE9 "))):h("",!0)]),c(a.$slots,"installment-value",$(D({salePrice:e(t),installmentValue:e(k),installmentsNumber:e(i),monthlyInterest:e(V)})),()=>[W(y(e(i))+"x ",1),n.isLiteral?(v(),_("small",ie,y(" De "))):h("",!0),O("span",null,y(a.$money(e(k))),1)]),c(a.$slots,"installment-post",{},()=>[!e(V)&&n.isLiteral?(v(),_("small",ce,y("Sem juros"))):h("",!0)])])):h("",!0)]),_:3})]):h("",!0),e(f)<e(t)?c(a.$slots,"discount",$(L({key:3},{salePrice:e(t),priceWithDiscount:e(f),discountLabel:e(s)})),()=>[B(w,{slide:"down"},{default:A(()=>[n.hasPriceOptions?(v(),_("div",ue,[c(a.$slots,"discount-pre",{},()=>[e(s)?h("",!0):(v(),_("small",me,y("A partir de ")))]),c(a.$slots,"discount-value",$(D({salePrice:e(t),priceWithDiscount:e(f),discountLabel:e(s)})),()=>[O("span",null,y(a.$money(e(f))),1)]),c(a.$slots,"discount-post",{},()=>[e(s)?(v(),_("small",pe,y(` ${e(s)}`),1)):h("",!0)])])):h("",!0)]),_:3})]):h("",!0)],8,Q)}}});export{fe as _};
@@ -0,0 +1 @@
1
+ let o,r;typeof window=="object"&&window?r=o=window:typeof process=="object"&&process.env?(r=global,o=process.env):r=o=typeof self=="object"&&self||{};const a="en_us",i="USD",f="$",_="US",l=1011,u="5b1abe30a4d4531b8fe40725",b=e=>{if(typeof document=="object"&&document){const t=document.getElementsByTagName("meta");for(let n=0;n<t.length;n++)if(t[n].getAttribute("name")===e.replace(/_/g,"-")){const s=t[n].getAttribute("content");return e==="ecom_store_id"?parseInt(s,10):s}}return o[e.toUpperCase()]},c={};["lang","currency","currency_symbol","country_code","store_id","store_object_id"].forEach(e=>{c[e]=b("ecom_"+e)});const m={get(e){const t=c[e];if(t!=null&&t!=="")return t;switch(e){case"lang":return a;case"currency":return i;case"currency_symbol":return f;case"country_code":return _;case"store_id":return l;case"store_object_id":return u}return null},set(e,t){c[e]=t}},g=e=>{if(typeof e!="object"||e===null)return console.error(new Error("`product` must be an object")),!1;let t=e.price_effective_date;if(t){let n=new Date;if(t.start&&new Date(t.start)>n||t.end&&new Date(t.end)<n)return!1}return e.base_price>e.price},y=g,D=e=>y(e)?e.price:e?typeof e.final_price=="number"?e.final_price:Math.max(e.base_price||0,e.price||0):0,E=D;r.$ecomConfig;export{a as D,m as _,y as c,E as g};