cloudcommerce 0.39.0 → 0.40.1

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (206) hide show
  1. package/CHANGELOG.md +67 -0
  2. package/ecomplus-stores/barra-doce/functions/many/package.json +3 -3
  3. package/ecomplus-stores/barra-doce/functions/ssr/package.json +6 -6
  4. package/ecomplus-stores/barra-doce/functions/with-apps/package.json +3 -3
  5. package/ecomplus-stores/barra-doce/package.json +2 -2
  6. package/package.json +6 -6
  7. package/packages/api/lib/api.d.ts +2 -2
  8. package/packages/api/package.json +1 -1
  9. package/packages/api/types/applications.d.ts +15 -0
  10. package/packages/api/types/authentications.d.ts +14 -0
  11. package/packages/api/types/brands.d.ts +17 -0
  12. package/packages/api/types/carts.d.ts +12 -0
  13. package/packages/api/types/categories.d.ts +17 -0
  14. package/packages/api/types/collections.d.ts +15 -0
  15. package/packages/api/types/customers.d.ts +12 -0
  16. package/packages/api/types/grids.d.ts +15 -0
  17. package/packages/api/types/orders.d.ts +15 -0
  18. package/packages/api/types/products.d.ts +17 -0
  19. package/packages/api/types/stores.d.ts +15 -0
  20. package/packages/api/types.d.ts +34 -8
  21. package/packages/apps/affilate-program/package.json +1 -1
  22. package/packages/apps/correios/package.json +2 -2
  23. package/packages/apps/custom-payment/package.json +1 -1
  24. package/packages/apps/custom-shipping/package.json +1 -1
  25. package/packages/apps/datafrete/package.json +2 -2
  26. package/packages/apps/discounts/package.json +2 -2
  27. package/packages/apps/emails/package.json +1 -1
  28. package/packages/apps/fb-conversions/package.json +1 -1
  29. package/packages/apps/flash-courier/package.json +1 -1
  30. package/packages/apps/frenet/package.json +1 -1
  31. package/packages/apps/galaxpay/package.json +1 -1
  32. package/packages/apps/google-analytics/package.json +1 -1
  33. package/packages/apps/jadlog/package.json +1 -1
  34. package/packages/apps/loyalty-points/package.json +2 -2
  35. package/packages/apps/mandae/package.json +2 -2
  36. package/packages/apps/melhor-envio/package.json +1 -1
  37. package/packages/apps/mercadopago/package.json +1 -1
  38. package/packages/apps/pagarme/package.json +1 -1
  39. package/packages/apps/pagarme-v5/package.json +2 -2
  40. package/packages/apps/paghiper/package.json +1 -1
  41. package/packages/apps/pix/package.json +1 -1
  42. package/packages/apps/tiny-erp/package.json +2 -2
  43. package/packages/apps/webhooks/package.json +1 -1
  44. package/packages/cli/config/firebase.json +1 -1
  45. package/packages/cli/package.json +1 -1
  46. package/packages/config/package.json +1 -1
  47. package/packages/emails/package.json +1 -1
  48. package/packages/eslint/package.json +5 -5
  49. package/packages/eslint/storefront.eslintrc.cjs +1 -0
  50. package/packages/events/package.json +1 -1
  51. package/packages/feeds/package.json +1 -1
  52. package/packages/firebase/package.json +2 -2
  53. package/packages/i18n/lib/en_us/i19anyPrice.txt +1 -0
  54. package/packages/i18n/lib/en_us/i19filterOut.txt +1 -0
  55. package/packages/i18n/lib/en_us/i19loadMoreProducts.txt +1 -0
  56. package/packages/i18n/lib/en_us/i19noProductsFound.txt +1 -0
  57. package/packages/i18n/lib/en_us/i19noProductsFoundFor$1.txt +1 -0
  58. package/packages/i18n/lib/en_us/i19noProductsInBrandMsg.txt +1 -0
  59. package/packages/i18n/lib/en_us/i19noProductsInCategoryMsg.txt +1 -0
  60. package/packages/i18n/lib/en_us.d.ts +8 -3
  61. package/packages/i18n/lib/en_us.js +8 -3
  62. package/packages/i18n/lib/en_us.js.map +1 -1
  63. package/packages/i18n/lib/pt_br/i19anyPrice.txt +1 -0
  64. package/packages/i18n/lib/pt_br/i19filterOut.txt +1 -0
  65. package/packages/i18n/lib/pt_br/i19loadMoreProducts.txt +1 -0
  66. package/packages/i18n/lib/pt_br/i19noItemSelected.txt +1 -1
  67. package/packages/i18n/lib/pt_br/i19noProductsFoundFor$1.txt +1 -0
  68. package/packages/i18n/lib/pt_br/i19noProductsInBrandMsg.txt +1 -0
  69. package/packages/i18n/lib/pt_br/i19noProductsInCategoryMsg.txt +1 -0
  70. package/packages/i18n/lib/pt_br.d.ts +9 -4
  71. package/packages/i18n/lib/pt_br.js +9 -4
  72. package/packages/i18n/lib/pt_br.js.map +1 -1
  73. package/packages/i18n/package.json +1 -1
  74. package/packages/i18n/src/en_us.ts +8 -3
  75. package/packages/i18n/src/pt_br.ts +9 -4
  76. package/packages/modules/package.json +2 -2
  77. package/packages/passport/package.json +1 -1
  78. package/packages/ssr/events.js +0 -0
  79. package/packages/ssr/package.json +6 -6
  80. package/packages/storefront/dist/client/_astro/AccountPage.Osc6ffV0.js +1 -0
  81. package/packages/storefront/dist/client/_astro/{CartSidebar.1kUFk9Xn.js → CartSidebar.LrfpXG2B.js} +1 -1
  82. package/packages/storefront/dist/client/_astro/HeroSlider.Zf6kCaqD.js +1 -0
  83. package/packages/storefront/dist/client/_astro/PitchBar.N4d9fV8H.js +1 -0
  84. package/packages/storefront/dist/client/_astro/{Prices.PuQc6C7F.js → Prices.eQ9Vd255.js} +1 -1
  85. package/packages/storefront/dist/client/_astro/ProductDetails.Ln_jf57U.js +7 -0
  86. package/packages/storefront/dist/client/_astro/ProductShelf.X389bv9S.js +1 -0
  87. package/packages/storefront/dist/client/_astro/ProductShelf.vj6lVDCr.js +1 -0
  88. package/packages/storefront/dist/client/_astro/{QuantitySelector.YNmWjN8y.js → QuantitySelector.qSJQlvTe.js} +1 -1
  89. package/packages/storefront/dist/client/_astro/SearchModal.BrVoDBvg.js +1 -0
  90. package/packages/storefront/dist/client/_astro/SearchShowcase.KAz3nwco.js +1 -0
  91. package/packages/storefront/dist/client/_astro/ShopHeader.mFKGzhIu.js +7 -0
  92. package/packages/storefront/dist/client/_astro/_plugin-vue_export-helper._suIQ7WC.js +1 -0
  93. package/packages/storefront/dist/client/_astro/_slug_.cfRx-rdA.css +1 -0
  94. package/packages/storefront/dist/client/_astro/client.PdegUP6S.js +1 -0
  95. package/packages/storefront/dist/client/_astro/{customer-session._VkzXnXT.js → customer-session.KkTHFOXl.js} +1 -1
  96. package/packages/storefront/dist/client/_astro/ecom-icon_12falx.png +0 -0
  97. package/packages/storefront/dist/client/_astro/ecom-icon_15pqnO.png +0 -0
  98. package/packages/storefront/dist/client/_astro/ecom-icon_t3guw.png +0 -0
  99. package/packages/storefront/dist/client/_astro/ecom-utils.Ld2zf-Ve.js +1 -0
  100. package/packages/storefront/dist/client/_astro/{format-money.FMQXgKHB.js → format-money.Axn0YFLJ.js} +1 -1
  101. package/packages/storefront/dist/client/_astro/grid-title.GntHOijE.js +1 -0
  102. package/packages/storefront/dist/client/_astro/headphone_T2Jjc.avif +0 -0
  103. package/packages/storefront/dist/client/_astro/headphone_Z1CG18r.webp +0 -0
  104. package/packages/storefront/dist/client/_astro/{hoisted._FbzheVm.js → hoisted.3ec9NcvP.js} +1 -1
  105. package/packages/storefront/dist/client/_astro/{hoisted.B6fKrLPR.js → hoisted.UnTlypMd.js} +1 -1
  106. package/packages/storefront/dist/client/_astro/{i18n.m7SpISxy.js → i18n.3-NUtxYq.js} +1 -1
  107. package/packages/storefront/dist/client/_astro/{img.zh-Drf-O.js → img.pozlYdd3.js} +1 -1
  108. package/packages/storefront/dist/client/_astro/{index.XrHFaN2F.js → index.TkCbiY_p.js} +1 -1
  109. package/packages/storefront/dist/client/_astro/{index.5PN-EYMS.js → index.m6fK0JXC.js} +1 -1
  110. package/packages/storefront/dist/client/_astro/logo_1UBsBq.webp +0 -0
  111. package/packages/storefront/dist/client/_astro/logo_Z1K5PE9.png +0 -0
  112. package/packages/storefront/dist/client/_astro/logo_Z1KIIl1.avif +0 -0
  113. package/packages/storefront/dist/client/_astro/{modules-info.sD0tdb2b.js → modules-info.mmwB1qIJ.js} +1 -1
  114. package/packages/storefront/dist/client/_astro/name.49dZlpDx.js +1 -0
  115. package/packages/storefront/dist/client/_astro/passion_LHbe9.webp +0 -0
  116. package/packages/storefront/dist/client/_astro/passion_Z23MeUb.avif +0 -0
  117. package/packages/storefront/dist/client/_astro/rect8589_1TtOHY.png +0 -0
  118. package/packages/storefront/dist/client/_astro/rect8589_1f5opX.webp +0 -0
  119. package/packages/storefront/dist/client/_astro/rect8589_IUskt.webp +0 -0
  120. package/packages/storefront/dist/client/_astro/rect8589_Uxfdf.png +0 -0
  121. package/packages/storefront/dist/client/_astro/rect8589_Z15uApA.png +0 -0
  122. package/packages/storefront/dist/client/_astro/rect8589_Z1Ap1Im.avif +0 -0
  123. package/packages/storefront/dist/client/_astro/rect8589_Z1JT1HB.webp +0 -0
  124. package/packages/storefront/dist/client/_astro/rect8589_ZY9mtN.avif +0 -0
  125. package/packages/storefront/dist/client/_astro/rect8589_tMFW0.avif +0 -0
  126. package/packages/storefront/dist/client/_astro/rect859_1TgQXS.avif +0 -0
  127. package/packages/storefront/dist/client/_astro/rect859_2Nm1z.avif +0 -0
  128. package/packages/storefront/dist/client/_astro/rect859_DIqwR.png +0 -0
  129. package/packages/storefront/dist/client/_astro/rect859_Z1IKDb2.png +0 -0
  130. package/packages/storefront/dist/client/_astro/rect859_Z29FI4V.webp +0 -0
  131. package/packages/storefront/dist/client/_astro/rect859_Z2kFHGk.avif +0 -0
  132. package/packages/storefront/dist/client/_astro/rect859_ZkpPFI.webp +0 -0
  133. package/packages/storefront/dist/client/_astro/rect859_jXzBi.png +0 -0
  134. package/packages/storefront/dist/client/_astro/rect859_x1l16.webp +0 -0
  135. package/packages/storefront/dist/client/_astro/rect89_1TSfW7.avif +0 -0
  136. package/packages/storefront/dist/client/_astro/rect89_Z1re32x.webp +0 -0
  137. package/packages/storefront/dist/client/_astro/sf-utils.yjuG8NjM.js +1 -0
  138. package/packages/storefront/dist/client/_astro/{shopping-cart.A-1jhlKi.js → shopping-cart.Ean2uW2R.js} +1 -1
  139. package/packages/storefront/dist/client/_astro/use-analytics.Y7amTmnr.js +1 -0
  140. package/packages/storefront/dist/client/_astro/{use-product-card.erbOV6Fv.js → use-product-card.zB4z32bC.js} +1 -1
  141. package/packages/storefront/dist/client/_astro/use-text-value.f9pDzruv.js +4 -0
  142. package/packages/storefront/dist/client/app/account/index.html +56 -0
  143. package/packages/storefront/dist/client/app/index.html +96 -0
  144. package/packages/storefront/dist/client/headset-gamer-corsair-hs40-raptor-ca-9011122-naap-vinho/index.html +107 -0
  145. package/packages/storefront/dist/client/index.html +120 -0
  146. package/packages/storefront/dist/client/macbook-apple-pro-15.4-intel-core-i7-2.6ghz-ram-16gb-ssd-512gb-mr972ll/a-prata/index.html +107 -0
  147. package/packages/storefront/dist/client/mouse-gamer-corsair-optico-harpoon-rgb-ch-9301011-na/index.html +107 -0
  148. package/packages/storefront/dist/client/teclado-gamer-fortrek-mecanico-k5-rgb-outemu-blue-preto/index.html +107 -0
  149. package/packages/storefront/dist/client/~fallback/index.html +74 -0
  150. package/packages/storefront/dist/server/chunks/{CartSidebar_hAgJQJgm.mjs → CartSidebar_gCUGFy65.mjs} +1 -1
  151. package/packages/storefront/dist/server/chunks/{SearchModal_eWb5SdQM.mjs → SearchModal_2uYZ9tHy.mjs} +4 -5
  152. package/packages/storefront/dist/server/chunks/{_.._S7DDBn_b.mjs → _.._FnNLvTNv.mjs} +1 -1
  153. package/packages/storefront/dist/server/chunks/{account_3ySmGzMc.mjs → account_iZ2QmK5E.mjs} +1 -1
  154. package/packages/storefront/dist/server/chunks/astro/{assets-service_QlOZG8ov.mjs → assets-service_TpUb271h.mjs} +58 -136
  155. package/packages/storefront/dist/server/chunks/{astro_zcC1GStV.mjs → astro_PpArQAsY.mjs} +4 -4
  156. package/packages/storefront/dist/server/chunks/{index_nIwq11oA.mjs → index_1q5IpD39.mjs} +1 -1
  157. package/packages/storefront/dist/server/chunks/{index_uAR5ZV4d.mjs → index_JEU6B2DI.mjs} +1 -1
  158. package/packages/storefront/dist/server/chunks/{node_2VvC7trl.mjs → node_wOa5hJmt.mjs} +1 -1
  159. package/packages/storefront/dist/server/chunks/pages/{__MSibDuuV.mjs → __cEcxuEWe.mjs} +1674 -422
  160. package/packages/storefront/dist/server/chunks/pages/{account_iG-YqJ5q.mjs → account_WliDuQOB.mjs} +2 -2
  161. package/packages/storefront/dist/server/chunks/pages/{index_BtDyKPh_.mjs → index_2bQLkQf-.mjs} +3 -3
  162. package/packages/storefront/dist/server/chunks/pages/{node_bKqL47eZ.mjs → node_ZaY4t9qW.mjs} +21 -2
  163. package/packages/storefront/dist/server/chunks/pages/{~fallback_73R5VA6j.mjs → ~fallback_TL5hPXF_.mjs} +2 -2
  164. package/packages/storefront/dist/server/chunks/{~fallback_7q1dqY4e.mjs → ~fallback_wxuqpDXG.mjs} +1 -1
  165. package/packages/storefront/dist/server/entry.mjs +34 -16
  166. package/packages/storefront/dist/server/{manifest_dSwvaOdW.mjs → manifest_YgAgEwvF.mjs} +17 -16
  167. package/packages/storefront/dist/server/renderers.mjs +14 -3
  168. package/packages/storefront/package.json +12 -12
  169. package/packages/storefront/src/helpers/sf-utils.ts +11 -0
  170. package/packages/storefront/src/lib/$storefront.d.ts +7 -1
  171. package/packages/storefront/src/lib/components/Drawer.vue +13 -8
  172. package/packages/storefront/src/lib/components/globals/ALink.vue +1 -1
  173. package/packages/storefront/src/lib/composables/use-pagination.ts +61 -0
  174. package/packages/storefront/src/lib/composables/use-product-shelf.ts +29 -19
  175. package/packages/storefront/src/lib/composables/use-search-filters.ts +271 -0
  176. package/packages/storefront/src/lib/composables/use-search-modal.ts +2 -11
  177. package/packages/storefront/src/lib/composables/use-search-showcase.ts +168 -22
  178. package/packages/storefront/src/lib/composables/use-sku-selector.ts +3 -8
  179. package/packages/storefront/src/lib/layouts/use-page-main.ts +20 -8
  180. package/packages/storefront/src/lib/state/search-engine.ts +19 -6
  181. package/packages/storefront/tsconfig.json +1 -1
  182. package/packages/test-base/package.json +1 -1
  183. package/packages/types/package.json +1 -1
  184. package/pnpm-workspace.yaml +0 -2
  185. package/packages/i18n/lib/en_us/i19noProduct.txt +0 -1
  186. package/packages/i18n/lib/en_us/i19noResultsFor.txt +0 -1
  187. package/packages/i18n/lib/pt_br/i19noResultsFor.txt +0 -1
  188. package/packages/storefront/dist/client/_astro/AccountPage.j0C5JBLY.js +0 -1
  189. package/packages/storefront/dist/client/_astro/HeroSlider.tR1dVXyu.js +0 -1
  190. package/packages/storefront/dist/client/_astro/PitchBar.FelC04wE.js +0 -1
  191. package/packages/storefront/dist/client/_astro/ProductCard.ephJafAE.js +0 -1
  192. package/packages/storefront/dist/client/_astro/ProductDetails.B6Ih5MGf.js +0 -7
  193. package/packages/storefront/dist/client/_astro/ProductShelf.GESxuPZ_.js +0 -1
  194. package/packages/storefront/dist/client/_astro/SearchContainer.BzixfU3R.js +0 -1
  195. package/packages/storefront/dist/client/_astro/SearchModal.F7vbwxIv.js +0 -1
  196. package/packages/storefront/dist/client/_astro/ShopHeader.5vR1LgSW.js +0 -10
  197. package/packages/storefront/dist/client/_astro/_plugin-vue_export-helper.sk5AFsEV.js +0 -1
  198. package/packages/storefront/dist/client/_astro/_slug_.r8QHNfdw.css +0 -1
  199. package/packages/storefront/dist/client/_astro/client.RF8UxjZd.js +0 -1
  200. package/packages/storefront/dist/client/_astro/ecom-utils.gJYgRPRz.js +0 -1
  201. package/packages/storefront/dist/client/_astro/name.HU5l7TJo.js +0 -1
  202. package/packages/storefront/dist/client/_astro/sf-utils.5t7r9A2G.js +0 -1
  203. package/packages/storefront/dist/client/_astro/use-analytics.1EVxbrS7.js +0 -1
  204. /package/packages/i18n/lib/en_us/{i19relatedProduct.txt → i19relatedProducts.txt} +0 -0
  205. /package/packages/i18n/lib/pt_br/{i19noProduct.txt → i19noProductsFound.txt} +0 -0
  206. /package/packages/i18n/lib/pt_br/{i19relatedProduct.txt → i19relatedProducts.txt} +0 -0
@@ -1 +1 @@
1
- import{_ as t}from"./ecom-utils.gJYgRPRz.js";import{g as c}from"./price.Easct8WC.js";const s=(r,o=t.get("currency"),e=t.get("lang"))=>{if(typeof r=="object"?r!==null&&(r=c(r)):typeof r=="string"&&(r=parseFloat(r)),o)try{return r.toLocaleString(e.replace("_","-"),{style:"currency",currency:o})}catch(f){console.error(f)}const n=(o||t.get("currency_symbol"))+" ";return typeof r=="number"?n+r:""},g=s;export{g as f};
1
+ import{_ as t}from"./ecom-utils.Ld2zf-Ve.js";import{g as c}from"./price.Easct8WC.js";const s=(r,o=t.get("currency"),e=t.get("lang"))=>{if(typeof r=="object"?r!==null&&(r=c(r)):typeof r=="string"&&(r=parseFloat(r)),o)try{return r.toLocaleString(e.replace("_","-"),{style:"currency",currency:o})}catch(f){console.error(f)}const n=(o||t.get("currency_symbol"))+" ";return typeof r=="number"?n+r:""},g=s;export{g as f};
@@ -0,0 +1 @@
1
+ import{_ as g}from"./ecom-utils.Ld2zf-Ve.js";import{g as a}from"./name.49dZlpDx.js";const s=(t,e,i=g.get("lang"))=>{let r;return Array.isArray(e)?r=e.find(o=>o.grid_id===t):console.error("`grids` must be array to get grid title"),r?a(r,i):t},m=s;export{m as g};
@@ -1 +1 @@
1
- import{u as C,w as V,a as I,e as Y,b as $,t as v}from"./use-analytics.1EVxbrS7.js";import{a as H}from"./afetch.5c8VmT0-.js";import{u as R}from"./index.XrHFaN2F.js";import"./customer-session._VkzXnXT.js";import"./sf-utils.5t7r9A2G.js";import"./ecom-utils.gJYgRPRz.js";import"./shopping-cart.A-1jhlKi.js";import"./price.Easct8WC.js";import"./name.HU5l7TJo.js";import"./i18n.m7SpISxy.js";const p={waiting:Promise.resolve(),params:{content_ids:[],content_name:""}},A=(t,e="BRL",n=!1)=>{const a={currency:e,content_category:t.item_category,content_name:t.item_name,value:t.price,content_type:"product"};return n?(a.contents=[{id:t.item_id,quantity:t.quantity}],Number(t.quantity)<0&&(a.value=0)):a.content_ids=[t.item_id],a},W=async({event:t})=>{if(t.name==="page_view")return p.waiting=new Promise(a=>{setTimeout(a,110)}),p.params.content_name=t.params.page_title,[{name:"PageView"}];const{items:e,currency:n}=t.params;if(t.name==="view_item"&&e){const a=e[0];if(a)return a.item_list_id==="product-page"?[{name:"ViewContent",params:A(a,n)}]:(e.forEach(({item_id:i})=>{p.params.content_ids.push(i)}),p.params.content_ids.length>e.length?[{name:null}]:(await p.waiting,[{name:"ViewContent",params:{...p.params,content_type:"product"}}]))}if((t.name==="add_to_cart"||t.name==="remove_from_cart")&&e){const a=t.name==="add_to_cart";return e.map(i=>({name:"AddToCart",params:A({...i,quantity:a?i.quantity||1:-(i.quantity||1)},n,!0)}))}return[{name:null}]},h={waiting:Promise.resolve(),params:{description:"",contents:[]}},w=(t,e=!1)=>{const n={content_id:t.item_id,content_name:t.item_name,price:t.price,content_category:t.item_category,brand:t.item_brand};return e&&(n.quantity=t.quantity),n},D=async({event:t})=>{if(t.name==="page_view")return h.waiting=new Promise(a=>{setTimeout(a,110)}),h.params.description=t.params.page_title,[{name:"PageView"}];const{items:e,currency:n}=t.params;if(t.name==="view_item"&&e){const a=e[0];if(a)return a.item_list_id==="product-page"?[{name:"ViewContent",params:{contents:[w(a)],content_type:"product",currency:n,value:a.price}}]:(e.forEach(i=>{h.params.contents.push(w(i))}),h.params.contents.length>e.length?[{name:null}]:(await h.waiting,[{name:"ViewContent",params:{...h.params,content_type:"product",currency:n}}]))}if((t.name==="add_to_cart"||t.name==="remove_from_cart")&&e){const a=t.name==="add_to_cart";return e.map(i=>{const l=i.quantity||1,{price:d}=i;return{name:"AddToCart",params:{contents:[w({...i,quantity:a?l:-l},!0)],content_type:"product",currency:n,value:a&&typeof d=="number"?l*d:0}}})}return[{name:null}]};let b=[];const F=R(()=>{H("/_analytics",{method:"post",body:{...I(),events:b}}),b=[]},200),_=t=>{b.push(t),F()};{C(),V(async n=>{const{name:a,params:i}=n.event;_({type:"gtag",name:a,params:i});const{gtag:l,dataLayer:d,fbq:s,ttq:c}=window;typeof l=="function"&&l("event",a,i),d&&typeof d.push=="function"&&d.push(["event",a,i]),(await W(n)).forEach(o=>{o.name&&(_({type:"fbq",...o}),typeof s=="function"&&s("track",o.name,o.params))}),(await D(n)).forEach(o=>{o.name&&(_({type:"ttk",...o}),typeof c?.page=="function"&&(o.name==="PageView"?c.page():c.track(o.name,o.params)))})});let t="";const e=()=>{const n=window.location.toString();n!==t&&(Y("page_view",{...$(),page_location:n,client_id:v.g_client_id||v.client_id}),t=n)};e(),window.addEventListener("storefront:apiContext",()=>{try{window.dataLayer.push(function(){this.reset(),e()})}catch{e()}})}const y=t=>history.replaceState(t,""),k=!!document.startViewTransition,g=()=>!!document.querySelector('[name="astro-view-transitions-enabled"]'),q=t=>document.dispatchEvent(new Event(t)),P=()=>q("astro:load"),f="data-astro-transition-persist";let m=history.state?.index||0;!history.state&&g()&&y({index:m,scrollY:0});const G=(t,e)=>{let n=!1,a=!1;return(...i)=>{if(n){a=!0;return}t(...i),n=!0,setTimeout(()=>{a&&(a=!1,t(...i)),n=!1},e)}};async function M(t){const e=await fetch(t),n=await e.text();return{ok:e.ok,html:n}}function x(){const t=document.querySelector('[name="astro-view-transitions-fallback"]');return t?t.getAttribute("content"):"animate"}function L(){for(const t of document.scripts)t.dataset.astroExec=""}function K(){let t=Promise.resolve();for(const e of Array.from(document.scripts)){if(e.dataset.astroExec==="")continue;const n=document.createElement("script");n.innerHTML=e.innerHTML;for(const a of e.attributes){if(a.name==="src"){const i=new Promise(l=>{n.onload=l});t=t.then(()=>i)}n.setAttribute(a.name,a.value)}n.dataset.astroExec="",e.replaceWith(n)}return t}const B=new DOMParser;async function T(t,e,n){const a=B.parseFromString(t,"text/html"),i=s=>{const c=s.getAttribute(f),u=c&&a.head.querySelector(`[${f}="${c}"]`);if(u)return u;if(s.matches("link[rel=stylesheet]")){const r=s.getAttribute("href");return a.head.querySelector(`link[rel=stylesheet][href="${r}"]`)}if(s.tagName==="SCRIPT"){let r=s;for(const o of a.scripts)if(r.textContent&&r.textContent===o.textContent||r.type===o.type&&r.src&&r.src===o.src)return o}return null},l=()=>{a.querySelectorAll("head noscript").forEach(r=>r.remove());const s=document.documentElement,c=[...s.attributes].filter(({name:r})=>(s.removeAttribute(r),r.startsWith("data-astro-")));[...a.documentElement.attributes,...c].forEach(({name:r,value:o})=>s.setAttribute(r,o));for(const r of Array.from(document.head.children)){const o=i(r);o?o.remove():r.remove()}document.head.append(...a.head.children);const u=document.body;document.body.replaceWith(a.body);for(const r of u.querySelectorAll(`[${f}]`)){const o=r.getAttribute(f),E=document.querySelector(`[${f}="${o}"]`);E&&E.replaceWith(r)}if(scrollTo({left:0,top:0,behavior:"instant"}),e?.scrollY===0&&location.hash){const r=decodeURIComponent(location.hash.slice(1)),o=document.getElementById(r);o&&(e.scrollY=o.offsetTop,y(e),o.scrollIntoView())}else e&&e.scrollY!==0&&scrollTo(0,e.scrollY);q("astro:beforeload")},d=[];for(const s of a.querySelectorAll("head link[rel=stylesheet]"))if(!document.querySelector(`[${f}="${s.getAttribute(f)}"], link[rel=stylesheet]`)){const c=document.createElement("link");c.setAttribute("rel","preload"),c.setAttribute("as","style"),c.setAttribute("href",s.getAttribute("href")),d.push(new Promise(u=>{["load","error"].forEach(r=>c.addEventListener(r,u)),document.head.append(c)}))}if(d.length&&await Promise.all(d),n==="animate"){let s=!1;addEventListener("animationstart",()=>s=!0,{once:!0}),document.documentElement.dataset.astroTransitionFallback="old",await new Promise(c=>{const u=()=>{removeEventListener("animationend",u),clearTimeout(r),l(),c(!0),document.documentElement.dataset.astroTransitionFallback="new"};addEventListener("animationend",u,{once:!0});let r=setTimeout(()=>!s&&u())})}else l()}async function S(t,e,n){let a;const{html:i,ok:l}=await M(e);if(!l){location.href=e;return}document.documentElement.dataset.astroTransition=t,k?a=document.startViewTransition(()=>T(i,n)).finished:a=T(i,n,x());try{await a}finally{await K(),L(),P()}}function N(t){if(document.querySelector(`link[rel=prefetch][href="${t}"]`))return;if(navigator.connection){let n=navigator.connection;if(n.saveData||/(2|3)g/.test(n.effectiveType||""))return}let e=document.createElement("link");e.setAttribute("rel","prefetch"),e.setAttribute("href",t),document.head.append(e)}(k||x()!=="none")&&!location.pathname.startsWith("/app/")&&(L(),document.addEventListener("click",t=>{let e=t.target;if(e instanceof Element&&e.tagName!=="A"&&(e=e.closest("a")),!e||!(e instanceof HTMLAnchorElement)||e.dataset.astroReload!==void 0||e.hasAttribute("download")||!e.href||e.pathname.startsWith("/app/")||e.target&&e.target!=="_self"||e.origin!==location.origin||t.button!==0||t.metaKey||t.ctrlKey||t.altKey||t.shiftKey||t.defaultPrevented||!g())return;if(location.pathname===e.pathname&&location.search===e.search){if(e.hash)return;if(t.preventDefault(),y({...history.state,scrollY}),scrollTo({left:0,top:0,behavior:"instant"}),location.hash){const a={index:++m,scrollY:0};history.pushState(a,"",e.href)}return}t.preventDefault(),S("forward",e.href,{index:++m,scrollY:0});const n={index:m,scrollY};y({index:m-1,scrollY}),history.pushState(n,"",e.href)}),addEventListener("popstate",t=>{if(!g()&&t.state){location.reload();return}if(t.state===null)return;const e=history.state,n=e?.index??m+1,a=n>m?"forward":"back";S(a,location.href,e),m=n}),["mouseenter","touchstart","focus"].forEach(t=>{document.addEventListener(t,e=>{if(e.target instanceof HTMLAnchorElement){let n=e.target;n.origin===location.origin&&n.pathname!==location.pathname&&!n.pathname.startsWith("/app/")&&n.dataset.astroReload===void 0&&!n.hasAttribute("download")&&n.role!=="button"&&g()&&N(n.pathname)}},{passive:!0,capture:!0})}),addEventListener("load",P),addEventListener("scroll",G(()=>{history.state&&y({...history.state,scrollY})},300),{passive:!0}));
1
+ import{u as C,w as V,a as I,e as Y,b as $,t as v}from"./use-analytics.Y7amTmnr.js";import{a as H}from"./afetch.5c8VmT0-.js";import{u as R}from"./index.TkCbiY_p.js";import"./customer-session.KkTHFOXl.js";import"./sf-utils.yjuG8NjM.js";import"./ecom-utils.Ld2zf-Ve.js";import"./shopping-cart.Ean2uW2R.js";import"./price.Easct8WC.js";import"./name.49dZlpDx.js";import"./i18n.3-NUtxYq.js";const p={waiting:Promise.resolve(),params:{content_ids:[],content_name:""}},A=(t,e="BRL",n=!1)=>{const a={currency:e,content_category:t.item_category,content_name:t.item_name,value:t.price,content_type:"product"};return n?(a.contents=[{id:t.item_id,quantity:t.quantity}],Number(t.quantity)<0&&(a.value=0)):a.content_ids=[t.item_id],a},W=async({event:t})=>{if(t.name==="page_view")return p.waiting=new Promise(a=>{setTimeout(a,110)}),p.params.content_name=t.params.page_title,[{name:"PageView"}];const{items:e,currency:n}=t.params;if(t.name==="view_item"&&e){const a=e[0];if(a)return a.item_list_id==="product-page"?[{name:"ViewContent",params:A(a,n)}]:(e.forEach(({item_id:i})=>{p.params.content_ids.push(i)}),p.params.content_ids.length>e.length?[{name:null}]:(await p.waiting,[{name:"ViewContent",params:{...p.params,content_type:"product"}}]))}if((t.name==="add_to_cart"||t.name==="remove_from_cart")&&e){const a=t.name==="add_to_cart";return e.map(i=>({name:"AddToCart",params:A({...i,quantity:a?i.quantity||1:-(i.quantity||1)},n,!0)}))}return[{name:null}]},h={waiting:Promise.resolve(),params:{description:"",contents:[]}},w=(t,e=!1)=>{const n={content_id:t.item_id,content_name:t.item_name,price:t.price,content_category:t.item_category,brand:t.item_brand};return e&&(n.quantity=t.quantity),n},D=async({event:t})=>{if(t.name==="page_view")return h.waiting=new Promise(a=>{setTimeout(a,110)}),h.params.description=t.params.page_title,[{name:"PageView"}];const{items:e,currency:n}=t.params;if(t.name==="view_item"&&e){const a=e[0];if(a)return a.item_list_id==="product-page"?[{name:"ViewContent",params:{contents:[w(a)],content_type:"product",currency:n,value:a.price}}]:(e.forEach(i=>{h.params.contents.push(w(i))}),h.params.contents.length>e.length?[{name:null}]:(await h.waiting,[{name:"ViewContent",params:{...h.params,content_type:"product",currency:n}}]))}if((t.name==="add_to_cart"||t.name==="remove_from_cart")&&e){const a=t.name==="add_to_cart";return e.map(i=>{const l=i.quantity||1,{price:d}=i;return{name:"AddToCart",params:{contents:[w({...i,quantity:a?l:-l},!0)],content_type:"product",currency:n,value:a&&typeof d=="number"?l*d:0}}})}return[{name:null}]};let b=[];const F=R(()=>{H("/_analytics",{method:"post",body:{...I(),events:b}}),b=[]},200),_=t=>{b.push(t),F()};{C(),V(async n=>{const{name:a,params:i}=n.event;_({type:"gtag",name:a,params:i});const{gtag:l,dataLayer:d,fbq:s,ttq:c}=window;typeof l=="function"&&l("event",a,i),d&&typeof d.push=="function"&&d.push(["event",a,i]),(await W(n)).forEach(o=>{o.name&&(_({type:"fbq",...o}),typeof s=="function"&&s("track",o.name,o.params))}),(await D(n)).forEach(o=>{o.name&&(_({type:"ttk",...o}),typeof c?.page=="function"&&(o.name==="PageView"?c.page():c.track(o.name,o.params)))})});let t="";const e=()=>{const n=window.location.toString();n!==t&&(Y("page_view",{...$(),page_location:n,client_id:v.g_client_id||v.client_id}),t=n)};e(),window.addEventListener("storefront:apiContext",()=>{try{window.dataLayer.push(function(){this.reset(),e()})}catch{e()}})}const y=t=>history.replaceState(t,""),k=!!document.startViewTransition,g=()=>!!document.querySelector('[name="astro-view-transitions-enabled"]'),q=t=>document.dispatchEvent(new Event(t)),P=()=>q("astro:load"),f="data-astro-transition-persist";let m=history.state?.index||0;!history.state&&g()&&y({index:m,scrollY:0});const G=(t,e)=>{let n=!1,a=!1;return(...i)=>{if(n){a=!0;return}t(...i),n=!0,setTimeout(()=>{a&&(a=!1,t(...i)),n=!1},e)}};async function M(t){const e=await fetch(t),n=await e.text();return{ok:e.ok,html:n}}function x(){const t=document.querySelector('[name="astro-view-transitions-fallback"]');return t?t.getAttribute("content"):"animate"}function L(){for(const t of document.scripts)t.dataset.astroExec=""}function K(){let t=Promise.resolve();for(const e of Array.from(document.scripts)){if(e.dataset.astroExec==="")continue;const n=document.createElement("script");n.innerHTML=e.innerHTML;for(const a of e.attributes){if(a.name==="src"){const i=new Promise(l=>{n.onload=l});t=t.then(()=>i)}n.setAttribute(a.name,a.value)}n.dataset.astroExec="",e.replaceWith(n)}return t}const B=new DOMParser;async function T(t,e,n){const a=B.parseFromString(t,"text/html"),i=s=>{const c=s.getAttribute(f),u=c&&a.head.querySelector(`[${f}="${c}"]`);if(u)return u;if(s.matches("link[rel=stylesheet]")){const r=s.getAttribute("href");return a.head.querySelector(`link[rel=stylesheet][href="${r}"]`)}if(s.tagName==="SCRIPT"){let r=s;for(const o of a.scripts)if(r.textContent&&r.textContent===o.textContent||r.type===o.type&&r.src&&r.src===o.src)return o}return null},l=()=>{a.querySelectorAll("head noscript").forEach(r=>r.remove());const s=document.documentElement,c=[...s.attributes].filter(({name:r})=>(s.removeAttribute(r),r.startsWith("data-astro-")));[...a.documentElement.attributes,...c].forEach(({name:r,value:o})=>s.setAttribute(r,o));for(const r of Array.from(document.head.children)){const o=i(r);o?o.remove():r.remove()}document.head.append(...a.head.children);const u=document.body;document.body.replaceWith(a.body);for(const r of u.querySelectorAll(`[${f}]`)){const o=r.getAttribute(f),E=document.querySelector(`[${f}="${o}"]`);E&&E.replaceWith(r)}if(scrollTo({left:0,top:0,behavior:"instant"}),e?.scrollY===0&&location.hash){const r=decodeURIComponent(location.hash.slice(1)),o=document.getElementById(r);o&&(e.scrollY=o.offsetTop,y(e),o.scrollIntoView())}else e&&e.scrollY!==0&&scrollTo(0,e.scrollY);q("astro:beforeload")},d=[];for(const s of a.querySelectorAll("head link[rel=stylesheet]"))if(!document.querySelector(`[${f}="${s.getAttribute(f)}"], link[rel=stylesheet]`)){const c=document.createElement("link");c.setAttribute("rel","preload"),c.setAttribute("as","style"),c.setAttribute("href",s.getAttribute("href")),d.push(new Promise(u=>{["load","error"].forEach(r=>c.addEventListener(r,u)),document.head.append(c)}))}if(d.length&&await Promise.all(d),n==="animate"){let s=!1;addEventListener("animationstart",()=>s=!0,{once:!0}),document.documentElement.dataset.astroTransitionFallback="old",await new Promise(c=>{const u=()=>{removeEventListener("animationend",u),clearTimeout(r),l(),c(!0),document.documentElement.dataset.astroTransitionFallback="new"};addEventListener("animationend",u,{once:!0});let r=setTimeout(()=>!s&&u())})}else l()}async function S(t,e,n){let a;const{html:i,ok:l}=await M(e);if(!l){location.href=e;return}document.documentElement.dataset.astroTransition=t,k?a=document.startViewTransition(()=>T(i,n)).finished:a=T(i,n,x());try{await a}finally{await K(),L(),P()}}function N(t){if(document.querySelector(`link[rel=prefetch][href="${t}"]`))return;if(navigator.connection){let n=navigator.connection;if(n.saveData||/(2|3)g/.test(n.effectiveType||""))return}let e=document.createElement("link");e.setAttribute("rel","prefetch"),e.setAttribute("href",t),document.head.append(e)}(k||x()!=="none")&&!location.pathname.startsWith("/app/")&&(L(),document.addEventListener("click",t=>{let e=t.target;if(e instanceof Element&&e.tagName!=="A"&&(e=e.closest("a")),!e||!(e instanceof HTMLAnchorElement)||e.dataset.astroReload!==void 0||e.hasAttribute("download")||!e.href||e.pathname.startsWith("/app/")||e.target&&e.target!=="_self"||e.origin!==location.origin||t.button!==0||t.metaKey||t.ctrlKey||t.altKey||t.shiftKey||t.defaultPrevented||!g())return;if(location.pathname===e.pathname&&location.search===e.search){if(e.hash)return;if(t.preventDefault(),y({...history.state,scrollY}),scrollTo({left:0,top:0,behavior:"instant"}),location.hash){const a={index:++m,scrollY:0};history.pushState(a,"",e.href)}return}t.preventDefault(),S("forward",e.href,{index:++m,scrollY:0});const n={index:m,scrollY};y({index:m-1,scrollY}),history.pushState(n,"",e.href)}),addEventListener("popstate",t=>{if(!g()&&t.state){location.reload();return}if(t.state===null)return;const e=history.state,n=e?.index??m+1,a=n>m?"forward":"back";S(a,location.href,e),m=n}),["mouseenter","touchstart","focus"].forEach(t=>{document.addEventListener(t,e=>{if(e.target instanceof HTMLAnchorElement){let n=e.target;n.origin===location.origin&&n.pathname!==location.pathname&&!n.pathname.startsWith("/app/")&&n.dataset.astroReload===void 0&&!n.hasAttribute("download")&&n.role!=="button"&&g()&&N(n.pathname)}},{passive:!0,capture:!0})}),addEventListener("load",P),addEventListener("scroll",G(()=>{history.state&&y({...history.state,scrollY})},300),{passive:!0}));
@@ -1 +1 @@
1
- import{i as E,s as b,c as p,a as N}from"./customer-session._VkzXnXT.js";import{s as w}from"./shopping-cart.A-1jhlKi.js";import{g as v,e as I}from"./use-analytics.1EVxbrS7.js";import{u as O}from"./afetch.5c8VmT0-.js";import{w as T}from"./ecom-utils.gJYgRPRz.js";import"./hoisted._FbzheVm.js";import"./sf-utils.5t7r9A2G.js";import"./index.XrHFaN2F.js";import"./price.Easct8WC.js";import"./name.HU5l7TJo.js";import"./i18n.m7SpISxy.js";const R=o=>{let a="";if(typeof o=="object"&&o!==null){let i=Array.isArray(o.phones)?o.phones[0]:o;i&&i.number&&(i.country_code&&(a=`+${i.country_code} `),a+=i.number)}return a},k=R,M=()=>{const o=window.storefrontApp?.router;if(o){const a=()=>sessionStorage.getItem("st_discount_coupon")||void 0,i=s=>Math.round(s*100)/100,h=[],r=(s,t)=>{h.includes(s)||(h.push(s),t||(t={value:i(w.subtotal||0),items:w.items.map(v)}),s!=="view_cart"&&(t.coupon=a(),h.includes("begin_checkout")||r("begin_checkout")),I(s,t))};let g=!1;const m=(s,t)=>{if(!g){if(localStorage.getItem("gtag.orderIdSent")!==s){let _;if(t)try{_=JSON.parse(t)}catch{}const{amount:l}=_||window.storefrontApp,S={transaction_id:s,value:i(l?.total||w.subtotal||0),items:w.items.map(v),coupon:_?_.extra_discount?.discount_coupon:a()};l&&(l.freight!==void 0&&(S.shipping=i(l.freight)),l.tax!==void 0&&(S.tax=i(l.tax)));let A=1;const{dataLayer:y,__sendGTMExtraPurchaseData:P}=window;if(y&&P){const n={};let e;if(p){n.customerDisplayName=N.value;let c=p.value.name;if(!c?.given_name)try{const f=sessionStorage.getItem("ecomCustomerAccount");if(f){const C=JSON.parse(f);typeof C=="object"&&C&&(c=C.name)}}catch{}c&&(n.customerGivenName=c.given_name,n.customerFamilyName=c.family_name),n.customerEmail=p.value.main_email,n.customerPhone=k(p.value),e=p.value.addresses?.[0]}try{const c=sessionStorage.getItem("ecomCustomerAddress");if(c){const f=JSON.parse(c);typeof e=="object"&&e?Object.assign(e,f):e=f}}catch{}e&&e.zip&&(n.shippingAddrZip=e.zip,n.shippingAddrStreet=e.street,n.shippingAddrNumber=e.number,e.street&&e.number&&(n.shippingAddrStreet+=`, ${e.number}`),n.shippingAddrCity=e.city,n.shippingAddrProvinceCode=e.province_code),y.push({event:"purchaseExtraData",...n}),A=100}setTimeout(()=>I("purchase",S),A),localStorage.setItem("gtag.orderIdSent",s)}g=!0}};let u;const d=({name:s,params:t})=>{switch(s){case"cart":r("view_cart");break;case"checkout":t.step?Number(t.step)===1?r("add_shipping_info"):Number(t.step)===2&&r("add_payment_info"):r("begin_checkout");break;case"confirmation":clearTimeout(u),t.json?m(t.id,decodeURIComponent(t.json)):u=setTimeout(()=>{m(t.id)},1500);break}};o.currentRoute&&d(o.currentRoute),o.afterEach(d)}};{Object.keys(O).length&&sessionStorage.setItem("ecomUtm",JSON.stringify(O));let o=window.location.search;!o&&window.location.hash&&(o="?"+window.location.hash.split("?")[1]);const a=new URLSearchParams(o);a.get("product_id")&&a.get("quantity")==="1"&&(localStorage.setItem("ecomShoppingCart__tmp",JSON.stringify({items:[{product_id:a.get("product_id"),variation_id:a.get("variation_id")||void 0,quantity:1}]})),window.ECOM_CART_STORAGE_KEY="ecomShoppingCart__tmp");const{hostname:i}=window.location,{domain:h}=globalThis.$storefront.settings,r=`https://ecomplus.io/v2/:${window.ECOM_STORE_ID}/`;window.ECOMCLIENT_API_STORE=r,window.ECOMCLIENT_API_STORE_CACHE=r,window.ECOMCLIENT_API_PASSPORT=r,window.ECOMCLIENT_API_SEARCH=`${r}/search/_els/`,window.ECOMCLIENT_API_MODULES=["localhost","127.0.0.1"].includes(i)?`https://${h}/_api/modules/`:"/_api/modules/";const g=()=>{const{ecomPassport:u}=window;T(E,async()=>{E.value?u.setSession({auth:{...b.auth,id:b.auth?.customer_id,level:3},customer:p.value}):u.checkLogin()&&u.logout()},{immediate:!0}),T(p,d=>{(d.display_name||d.main_email)&&u.setCustomer(d)},{immediate:!0}),setTimeout(M,400)},m=document.createElement("script");m.src="https://cdn.jsdelivr.net/npm/@ecomplus/storefront-app@2.0.0-beta.190/dist/lib/js/app.js",m.onload=g,document.body.appendChild(m)}
1
+ import{i as E,s as b,c as p,a as N}from"./customer-session.KkTHFOXl.js";import{s as w}from"./shopping-cart.Ean2uW2R.js";import{g as v,e as I}from"./use-analytics.Y7amTmnr.js";import{u as O}from"./afetch.5c8VmT0-.js";import{w as T}from"./ecom-utils.Ld2zf-Ve.js";import"./hoisted.3ec9NcvP.js";import"./sf-utils.yjuG8NjM.js";import"./index.TkCbiY_p.js";import"./price.Easct8WC.js";import"./name.49dZlpDx.js";import"./i18n.3-NUtxYq.js";const R=o=>{let a="";if(typeof o=="object"&&o!==null){let i=Array.isArray(o.phones)?o.phones[0]:o;i&&i.number&&(i.country_code&&(a=`+${i.country_code} `),a+=i.number)}return a},k=R,M=()=>{const o=window.storefrontApp?.router;if(o){const a=()=>sessionStorage.getItem("st_discount_coupon")||void 0,i=s=>Math.round(s*100)/100,h=[],r=(s,t)=>{h.includes(s)||(h.push(s),t||(t={value:i(w.subtotal||0),items:w.items.map(v)}),s!=="view_cart"&&(t.coupon=a(),h.includes("begin_checkout")||r("begin_checkout")),I(s,t))};let g=!1;const m=(s,t)=>{if(!g){if(localStorage.getItem("gtag.orderIdSent")!==s){let _;if(t)try{_=JSON.parse(t)}catch{}const{amount:l}=_||window.storefrontApp,S={transaction_id:s,value:i(l?.total||w.subtotal||0),items:w.items.map(v),coupon:_?_.extra_discount?.discount_coupon:a()};l&&(l.freight!==void 0&&(S.shipping=i(l.freight)),l.tax!==void 0&&(S.tax=i(l.tax)));let A=1;const{dataLayer:y,__sendGTMExtraPurchaseData:P}=window;if(y&&P){const n={};let e;if(p){n.customerDisplayName=N.value;let c=p.value.name;if(!c?.given_name)try{const f=sessionStorage.getItem("ecomCustomerAccount");if(f){const C=JSON.parse(f);typeof C=="object"&&C&&(c=C.name)}}catch{}c&&(n.customerGivenName=c.given_name,n.customerFamilyName=c.family_name),n.customerEmail=p.value.main_email,n.customerPhone=k(p.value),e=p.value.addresses?.[0]}try{const c=sessionStorage.getItem("ecomCustomerAddress");if(c){const f=JSON.parse(c);typeof e=="object"&&e?Object.assign(e,f):e=f}}catch{}e&&e.zip&&(n.shippingAddrZip=e.zip,n.shippingAddrStreet=e.street,n.shippingAddrNumber=e.number,e.street&&e.number&&(n.shippingAddrStreet+=`, ${e.number}`),n.shippingAddrCity=e.city,n.shippingAddrProvinceCode=e.province_code),y.push({event:"purchaseExtraData",...n}),A=100}setTimeout(()=>I("purchase",S),A),localStorage.setItem("gtag.orderIdSent",s)}g=!0}};let u;const d=({name:s,params:t})=>{switch(s){case"cart":r("view_cart");break;case"checkout":t.step?Number(t.step)===1?r("add_shipping_info"):Number(t.step)===2&&r("add_payment_info"):r("begin_checkout");break;case"confirmation":clearTimeout(u),t.json?m(t.id,decodeURIComponent(t.json)):u=setTimeout(()=>{m(t.id)},1500);break}};o.currentRoute&&d(o.currentRoute),o.afterEach(d)}};{Object.keys(O).length&&sessionStorage.setItem("ecomUtm",JSON.stringify(O));let o=window.location.search;!o&&window.location.hash&&(o="?"+window.location.hash.split("?")[1]);const a=new URLSearchParams(o);a.get("product_id")&&a.get("quantity")==="1"&&(localStorage.setItem("ecomShoppingCart__tmp",JSON.stringify({items:[{product_id:a.get("product_id"),variation_id:a.get("variation_id")||void 0,quantity:1}]})),window.ECOM_CART_STORAGE_KEY="ecomShoppingCart__tmp");const{hostname:i}=window.location,{domain:h}=globalThis.$storefront.settings,r=`https://ecomplus.io/v2/:${window.ECOM_STORE_ID}/`;window.ECOMCLIENT_API_STORE=r,window.ECOMCLIENT_API_STORE_CACHE=r,window.ECOMCLIENT_API_PASSPORT=r,window.ECOMCLIENT_API_SEARCH=`${r}/search/_els/`,window.ECOMCLIENT_API_MODULES=["localhost","127.0.0.1"].includes(i)?`https://${h}/_api/modules/`:"/_api/modules/";const g=()=>{const{ecomPassport:u}=window;T(E,async()=>{E.value?u.setSession({auth:{...b.auth,id:b.auth?.customer_id,level:3},customer:p.value}):u.checkLogin()&&u.logout()},{immediate:!0}),T(p,d=>{(d.display_name||d.main_email)&&u.setCustomer(d)},{immediate:!0}),setTimeout(M,400)},m=document.createElement("script");m.src="https://cdn.jsdelivr.net/npm/@ecomplus/storefront-app@2.0.0-beta.190/dist/lib/js/app.js",m.onload=g,document.body.appendChild(m)}
@@ -1 +1 @@
1
- import{D as n,_ as o}from"./ecom-utils.gJYgRPRz.js";const t=(e,f=o.get("lang"))=>{if(typeof e=="object"&&e!==null){const p=Object.keys(e)[0];if(/^[a-z]{2}(_[a-z]{2})?$/.test(p))return e[f]||e[n]||e[p];{const r=Array.isArray(e)?[]:{};for(const s in e)e[s]!==void 0&&(r[s]=t(e[s],f));return r}}return e},u=t;export{u as i};
1
+ import{D as n,_ as o}from"./ecom-utils.Ld2zf-Ve.js";const t=(e,f=o.get("lang"))=>{if(typeof e=="object"&&e!==null){const p=Object.keys(e)[0];if(/^[a-z]{2}(_[a-z]{2})?$/.test(p))return e[f]||e[n]||e[p];{const r=Array.isArray(e)?[]:{};for(const s in e)e[s]!==void 0&&(r[s]=t(e[s],f));return r}}return e},u=t;export{u as i};
@@ -1 +1 @@
1
- import{_ as n}from"./ecom-utils.gJYgRPRz.js";const m=(l,f,o)=>{if(o||(o=n.get("default_img_size")||"normal"),l){let{pictures:a,picture:e}=l;e||a||(Array.isArray(l)?a=l:e=l),Array.isArray(a)&&(e=f&&a.filter(r=>r._id===f)[0]||a[0]);let s;if(typeof e=="object"&&e!==null){if(s=e[o],s&&s.url)return s;let r;switch(o){case"small":r=["normal","big"];break;case"normal":r=["big","zoom","small"];break;case"big":r=["zoom","normal"];break;case"zoom":r=["big"];break;default:r=["big","zoom","normal","small"]}for(let i=0;i<r.length;i++){const t=r[i];if(e[t]&&e[t].url)return e[t]}for(const i in e)if(e[i]&&e[i].url)return e[i]}}},b=m;export{b as g};
1
+ import{_ as n}from"./ecom-utils.Ld2zf-Ve.js";const m=(l,f,o)=>{if(o||(o=n.get("default_img_size")||"normal"),l){let{pictures:a,picture:e}=l;e||a||(Array.isArray(l)?a=l:e=l),Array.isArray(a)&&(e=f&&a.filter(r=>r._id===f)[0]||a[0]);let s;if(typeof e=="object"&&e!==null){if(s=e[o],s&&s.url)return s;let r;switch(o){case"small":r=["normal","big"];break;case"normal":r=["big","zoom","small"];break;case"big":r=["zoom","normal"];break;case"zoom":r=["big"];break;default:r=["big","zoom","normal","small"]}for(let i=0;i<r.length;i++){const t=r[i];if(e[t]&&e[t].url)return e[t]}for(const i in e)if(e[i]&&e[i].url)return e[i]}}},b=m;export{b as g};
@@ -1 +1 @@
1
- import{w as g,n as T,u as D,a as y,b as F,o as A,c as C,g as W,e as k,f as I}from"./ecom-utils.gJYgRPRz.js";function M(e){return k()?(I(e),!0):!1}function B(e,t){if(typeof Symbol<"u"){const n={...e};return Object.defineProperty(n,Symbol.iterator,{enumerable:!1,value(){let o=0;return{next:()=>({value:t[o++],done:o>t.length})}}}),n}else return Object.assign([...t],e)}function m(e){return typeof e=="function"?e():D(e)}const O=typeof window<"u"&&typeof document<"u";typeof WorkerGlobalScope<"u"&&globalThis instanceof WorkerGlobalScope;const _=Object.prototype.toString,H=e=>_.call(e)==="[object Object]",l=()=>{},J=R();function R(){var e,t;return O&&((e=window?.navigator)==null?void 0:e.userAgent)&&(/iP(ad|hone|od)/.test(window.navigator.userAgent)||((t=window?.navigator)==null?void 0:t.maxTouchPoints)>2&&/iPad|Macintosh/.test(window?.navigator.userAgent))}function v(e,t){function n(...o){return new Promise((i,r)=>{Promise.resolve(e(()=>t.apply(this,o),{fn:t,thisArg:this,args:o})).then(i).catch(r)})}return n}const P=e=>e();function x(e,t={}){let n,o,i=l;const r=u=>{clearTimeout(u),i(),i=l};return u=>{const s=m(e),c=m(t.maxWait);return n&&r(n),s<=0||c!==void 0&&c<=0?(o&&(r(o),o=null),Promise.resolve(u())):new Promise((f,p)=>{i=t.rejectOnCancel?p:f,c&&!o&&(o=setTimeout(()=>{n&&r(n),o=null,f(u())},c)),n=setTimeout(()=>{o&&r(o),o=null,f(u())},s)})}}function z(e,t=!0,n=!0,o=!1){let i=0,r,a=!0,u=l,s;const c=()=>{r&&(clearTimeout(r),r=void 0,u(),u=l)};return p=>{const d=m(e),h=Date.now()-i,w=()=>s=p();return c(),d<=0?(i=Date.now(),w()):(h>d&&(n||!a)?(i=Date.now(),w()):t&&(s=new Promise((b,j)=>{u=o?j:b,r=setTimeout(()=>{i=Date.now(),a=!0,b(w()),c()},Math.max(0,d-h))})),!n&&!r&&(r=setTimeout(()=>a=!0,d)),a=!1,s)}}function E(e=P){const t=y(!0);function n(){t.value=!1}function o(){t.value=!0}const i=(...r)=>{t.value&&e(...r)};return{isActive:F(t),pause:n,resume:o,eventFilter:i}}function G(e){const t=Object.create(null);return n=>t[n]||(t[n]=e(n))}const L=/-(\w)/g,K=G(e=>e.replace(L,(t,n)=>n?n.toUpperCase():""));function N(e,t=!1,n="Timeout"){return new Promise((o,i)=>{setTimeout(t?()=>i(n):o,e)})}function V(e){return e||W()}function Q(e,t=200,n={}){return v(x(t,n),e)}function X(e,t=200,n=!1,o=!0,i=!1){return v(z(t,n,o,i),e)}function S(e,t,n={}){const{eventFilter:o=P,...i}=n;return g(e,v(o,t),i)}function Y(e,t,n={}){const{eventFilter:o,...i}=n,{eventFilter:r,pause:a,resume:u,isActive:s}=E(o);return{stop:S(e,t,{...i,eventFilter:r}),pause:a,resume:u,isActive:s}}function Z(e,t=!0,n){const o=V(n);o?A(e,o):t?e():T(e)}function U(e,t,n={}){const{immediate:o=!0}=n,i=y(!1);let r=null;function a(){r&&(clearTimeout(r),r=null)}function u(){i.value=!1,a()}function s(...c){a(),i.value=!0,r=setTimeout(()=>{i.value=!1,r=null,e(...c)},m(t))}return o&&(i.value=!0,O&&s()),M(u),{isPending:F(i),start:s,stop:u}}function $(e=1e3,t={}){const{controls:n=!1,callback:o}=t,i=U(o??l,e,t),r=C(()=>!i.isPending.value);return n?{ready:r,...i}:r}function ee(e,t,n={}){const{debounce:o=0,maxWait:i=void 0,...r}=n;return S(e,t,{...r,eventFilter:x(o,{maxWait:i})})}function te(e,t,n){const o=g(e,(...i)=>(T(()=>o()),t(...i)),n);return o}export{H as a,X as b,Z as c,K as d,J as e,M as f,te as g,ee as h,O as i,$ as j,B as m,l as n,N as p,m as t,Q as u,Y as w};
1
+ import{w as g,n as T,u as D,a as y,b as F,c as A,o as C,g as W,e as k,f as I}from"./ecom-utils.Ld2zf-Ve.js";function M(e){return W()?(k(e),!0):!1}function B(e,t){if(typeof Symbol<"u"){const n={...e};return Object.defineProperty(n,Symbol.iterator,{enumerable:!1,value(){let o=0;return{next:()=>({value:t[o++],done:o>t.length})}}}),n}else return Object.assign([...t],e)}function m(e){return typeof e=="function"?e():D(e)}const O=typeof window<"u"&&typeof document<"u";typeof WorkerGlobalScope<"u"&&globalThis instanceof WorkerGlobalScope;const _=Object.prototype.toString,H=e=>_.call(e)==="[object Object]",l=()=>{},J=R();function R(){var e,t;return O&&((e=window?.navigator)==null?void 0:e.userAgent)&&(/iP(ad|hone|od)/.test(window.navigator.userAgent)||((t=window?.navigator)==null?void 0:t.maxTouchPoints)>2&&/iPad|Macintosh/.test(window?.navigator.userAgent))}function v(e,t){function n(...o){return new Promise((i,r)=>{Promise.resolve(e(()=>t.apply(this,o),{fn:t,thisArg:this,args:o})).then(i).catch(r)})}return n}const P=e=>e();function x(e,t={}){let n,o,i=l;const r=u=>{clearTimeout(u),i(),i=l};return u=>{const s=m(e),c=m(t.maxWait);return n&&r(n),s<=0||c!==void 0&&c<=0?(o&&(r(o),o=null),Promise.resolve(u())):new Promise((f,p)=>{i=t.rejectOnCancel?p:f,c&&!o&&(o=setTimeout(()=>{n&&r(n),o=null,f(u())},c)),n=setTimeout(()=>{o&&r(o),o=null,f(u())},s)})}}function z(e,t=!0,n=!0,o=!1){let i=0,r,a=!0,u=l,s;const c=()=>{r&&(clearTimeout(r),r=void 0,u(),u=l)};return p=>{const d=m(e),h=Date.now()-i,w=()=>s=p();return c(),d<=0?(i=Date.now(),w()):(h>d&&(n||!a)?(i=Date.now(),w()):t&&(s=new Promise((b,j)=>{u=o?j:b,r=setTimeout(()=>{i=Date.now(),a=!0,b(w()),c()},Math.max(0,d-h))})),!n&&!r&&(r=setTimeout(()=>a=!0,d)),a=!1,s)}}function E(e=P){const t=y(!0);function n(){t.value=!1}function o(){t.value=!0}const i=(...r)=>{t.value&&e(...r)};return{isActive:F(t),pause:n,resume:o,eventFilter:i}}function G(e){const t=Object.create(null);return n=>t[n]||(t[n]=e(n))}const L=/-(\w)/g,K=G(e=>e.replace(L,(t,n)=>n?n.toUpperCase():""));function N(e,t=!1,n="Timeout"){return new Promise((o,i)=>{setTimeout(t?()=>i(n):o,e)})}function V(e){return e||I()}function Q(e,t=200,n={}){return v(x(t,n),e)}function X(e,t=200,n=!1,o=!0,i=!1){return v(z(t,n,o,i),e)}function S(e,t,n={}){const{eventFilter:o=P,...i}=n;return g(e,v(o,t),i)}function Y(e,t,n={}){const{eventFilter:o,...i}=n,{eventFilter:r,pause:a,resume:u,isActive:s}=E(o);return{stop:S(e,t,{...i,eventFilter:r}),pause:a,resume:u,isActive:s}}function Z(e,t=!0,n){const o=V(n);o?C(e,o):t?e():T(e)}function U(e,t,n={}){const{immediate:o=!0}=n,i=y(!1);let r=null;function a(){r&&(clearTimeout(r),r=null)}function u(){i.value=!1,a()}function s(...c){a(),i.value=!0,r=setTimeout(()=>{i.value=!1,r=null,e(...c)},m(t))}return o&&(i.value=!0,O&&s()),M(u),{isPending:F(i),start:s,stop:u}}function $(e=1e3,t={}){const{controls:n=!1,callback:o}=t,i=U(o??l,e,t),r=A(()=>!i.isPending.value);return n?{ready:r,...i}:r}function ee(e,t,n={}){const{debounce:o=0,maxWait:i=void 0,...r}=n;return S(e,t,{...r,eventFilter:x(o,{maxWait:i})})}function te(e,t,n){const o=g(e,(...i)=>(T(()=>o()),t(...i)),n);return o}export{H as a,X as b,K as c,Z as d,J as e,M as f,te as g,ee as h,O as i,$ as j,B as m,l as n,N as p,m as t,Q as u,Y as w};
@@ -1 +1 @@
1
- import{m as N,w as X,i as q,n as k,a as z,t as _,u as B,b as Q,c as Y,d as G,e as J,f as Z}from"./index.XrHFaN2F.js";import{s as ee,r as D,w as te,a as C,c as W,d as j}from"./ecom-utils.gJYgRPRz.js";function re(t={}){const{inheritAttrs:u=!0}=t,o=ee(),r=j({setup(p,{slots:e}){return()=>{o.value=e.default}}}),b=j({inheritAttrs:u,setup(p,{attrs:e,slots:i}){return()=>{var v;o.value;const f=(v=o.value)==null?void 0:v.call(o,{...oe(e),$slots:i});return u&&f?.length===1?f[0]:f}}});return N({define:r,reuse:b},[r,b])}function oe(t){const u={};for(const o in t)u[G(o)]=t[o];return u}function P(t){var u;const o=_(t);return(u=o?.$el)!=null?u:o}const R=q?window:void 0;function A(...t){let u,o,r,b;if(typeof t[0]=="string"||Array.isArray(t[0])?([o,r,b]=t,u=R):[u,o,r,b]=t,!u)return k;Array.isArray(o)||(o=[o]),Array.isArray(r)||(r=[r]);const p=[],e=()=>{p.forEach(h=>h()),p.length=0},i=(h,y,n,c)=>(h.addEventListener(y,n,c),()=>h.removeEventListener(y,n,c)),v=te(()=>[P(u),_(b)],([h,y])=>{if(e(),!h)return;const n=z(y)?{...y}:y;p.push(...o.flatMap(c=>r.map(m=>i(h,c,m,n))))},{immediate:!0,flush:"post"}),f=()=>{v(),e()};return Z(f),f}let U=!1;function le(t,u,o={}){const{window:r=R,ignore:b=[],capture:p=!0,detectIframe:e=!1}=o;if(!r)return;J&&!U&&(U=!0,Array.from(r.document.body.children).forEach(n=>n.addEventListener("click",k)),r.document.documentElement.addEventListener("click",k));let i=!0;const v=n=>b.some(c=>{if(typeof c=="string")return Array.from(r.document.querySelectorAll(c)).some(m=>m===n.target||n.composedPath().includes(m));{const m=P(c);return m&&(n.target===m||n.composedPath().includes(m))}}),h=[A(r,"click",n=>{const c=P(t);if(!(!c||c===n.target||n.composedPath().includes(c))){if(n.detail===0&&(i=!v(n)),!i){i=!0;return}u(n)}},{passive:!0,capture:p}),A(r,"pointerdown",n=>{const c=P(t);i=!v(n)&&!!(c&&!n.composedPath().includes(c))},{passive:!0}),e&&A(r,"blur",n=>{setTimeout(()=>{var c;const m=P(t);((c=r.document.activeElement)==null?void 0:c.tagName)==="IFRAME"&&!m?.contains(r.document.activeElement)&&u(n)},0)})].filter(Boolean);return()=>h.forEach(n=>n())}function ae(t,u={}){const{delayEnter:o=0,delayLeave:r=0,window:b=R}=u,p=C(!1);let e;const i=v=>{const f=v?o:r;e&&(clearTimeout(e),e=void 0),f?e=setTimeout(()=>p.value=v,f):p.value=v};return b&&(A(t,"mouseenter",()=>i(!0),{passive:!0}),A(t,"mouseleave",()=>i(!1),{passive:!0})),p}const K=1;function ie(t,u={}){const{throttle:o=0,idle:r=200,onStop:b=k,onScroll:p=k,offset:e={left:0,right:0,top:0,bottom:0},eventListenerOptions:i={capture:!1,passive:!0},behavior:v="auto",window:f=R}=u,h=C(0),y=C(0),n=W({get(){return h.value},set(a){m(a,void 0)}}),c=W({get(){return y.value},set(a){m(void 0,a)}});function m(a,L){var E,$,x;if(!f)return;const S=_(t);S&&((x=S instanceof Document?f.document.body:S)==null||x.scrollTo({top:(E=_(L))!=null?E:c.value,left:($=_(a))!=null?$:n.value,behavior:_(v)}))}const T=C(!1),w=D({left:!0,right:!1,top:!0,bottom:!1}),s=D({left:!1,right:!1,top:!1,bottom:!1}),l=a=>{T.value&&(T.value=!1,s.left=!1,s.right=!1,s.top=!1,s.bottom=!1,b(a))},d=B(l,o+r),g=a=>{var L;if(!f)return;const E=a.document?a.document.documentElement:(L=a.documentElement)!=null?L:a,{display:$,flexDirection:x}=getComputedStyle(E),S=E.scrollLeft;s.left=S<h.value,s.right=S>h.value;const M=Math.abs(S)<=0+(e.left||0),F=Math.abs(S)+E.clientWidth>=E.scrollWidth-(e.right||0)-K;$==="flex"&&x==="row-reverse"?(w.left=F,w.right=M):(w.left=M,w.right=F),h.value=S;let O=E.scrollTop;a===f.document&&!O&&(O=f.document.body.scrollTop),s.top=O<y.value,s.bottom=O>y.value;const I=Math.abs(O)<=0+(e.top||0),V=Math.abs(O)+E.clientHeight>=E.scrollHeight-(e.bottom||0)-K;$==="flex"&&x==="column-reverse"?(w.top=V,w.bottom=I):(w.top=I,w.bottom=V),y.value=O},H=a=>{var L;if(!f)return;const E=(L=a.target.documentElement)!=null?L:a.target;g(E),T.value=!0,d(a),p(a)};return A(t,"scroll",o?Q(H,o,!0,!1):H,i),Y(()=>{const a=_(t);a&&g(a)}),A(t,"scrollend",l,i),{x:n,y:c,isScrolling:T,arrivedState:w,directions:s,measure(){const a=_(t);f&&a&&g(a)}}}function ce(t="history",u={}){const{initialValue:o={},removeNullishValues:r=!0,removeFalsyValues:b=!1,write:p=!0,window:e=R}=u;if(!e)return D(o);const i=D({});function v(){if(t==="history")return e.location.search||"";if(t==="hash"){const s=e.location.hash||"",l=s.indexOf("?");return l>0?s.slice(l):""}else return(e.location.hash||"").replace(/^#/,"")}function f(s){const l=s.toString();if(t==="history")return`${l?`?${l}`:""}${e.location.hash||""}`;if(t==="hash-params")return`${e.location.search||""}${l?`#${l}`:""}`;const d=e.location.hash||"#",g=d.indexOf("?");return g>0?`${d.slice(0,g)}${l?`?${l}`:""}`:`${d}${l?`?${l}`:""}`}function h(){return new URLSearchParams(v())}function y(s){const l=new Set(Object.keys(i));for(const d of s.keys()){const g=s.getAll(d);i[d]=g.length>1?g:s.get(d)||"",l.delete(d)}Array.from(l).forEach(d=>delete i[d])}const{pause:n,resume:c}=X(i,()=>{const s=new URLSearchParams("");Object.keys(i).forEach(l=>{const d=i[l];Array.isArray(d)?d.forEach(g=>s.append(l,g)):r&&d==null||b&&!d?s.delete(l):s.set(l,d)}),m(s)},{deep:!0});function m(s,l){n(),l&&y(s),e.history.replaceState(e.history.state,e.document.title,e.location.pathname+f(s)),c()}function T(){p&&m(h(),!0)}A(e,"popstate",T,!1),t!=="history"&&A(e,"hashchange",T,!1);const w=h();return w.keys().next().value?y(w):Object.assign(i,o),i}export{ce as a,ie as b,re as c,le as o,ae as u};
1
+ import{m as N,w as X,i as q,n as k,a as z,t as _,c as B,u as Q,b as Y,d as G,e as J,f as Z}from"./index.TkCbiY_p.js";import{s as ee,r as D,w as te,d as W,a as C,c as j}from"./ecom-utils.Ld2zf-Ve.js";function re(t={}){const{inheritAttrs:u=!0}=t,o=ee(),r=W({setup(p,{slots:e}){return()=>{o.value=e.default}}}),b=W({inheritAttrs:u,setup(p,{attrs:e,slots:i}){return()=>{var v;o.value;const f=(v=o.value)==null?void 0:v.call(o,{...oe(e),$slots:i});return u&&f?.length===1?f[0]:f}}});return N({define:r,reuse:b},[r,b])}function oe(t){const u={};for(const o in t)u[B(o)]=t[o];return u}function P(t){var u;const o=_(t);return(u=o?.$el)!=null?u:o}const R=q?window:void 0;function A(...t){let u,o,r,b;if(typeof t[0]=="string"||Array.isArray(t[0])?([o,r,b]=t,u=R):[u,o,r,b]=t,!u)return k;Array.isArray(o)||(o=[o]),Array.isArray(r)||(r=[r]);const p=[],e=()=>{p.forEach(h=>h()),p.length=0},i=(h,y,n,c)=>(h.addEventListener(y,n,c),()=>h.removeEventListener(y,n,c)),v=te(()=>[P(u),_(b)],([h,y])=>{if(e(),!h)return;const n=z(y)?{...y}:y;p.push(...o.flatMap(c=>r.map(m=>i(h,c,m,n))))},{immediate:!0,flush:"post"}),f=()=>{v(),e()};return Z(f),f}let U=!1;function le(t,u,o={}){const{window:r=R,ignore:b=[],capture:p=!0,detectIframe:e=!1}=o;if(!r)return;J&&!U&&(U=!0,Array.from(r.document.body.children).forEach(n=>n.addEventListener("click",k)),r.document.documentElement.addEventListener("click",k));let i=!0;const v=n=>b.some(c=>{if(typeof c=="string")return Array.from(r.document.querySelectorAll(c)).some(m=>m===n.target||n.composedPath().includes(m));{const m=P(c);return m&&(n.target===m||n.composedPath().includes(m))}}),h=[A(r,"click",n=>{const c=P(t);if(!(!c||c===n.target||n.composedPath().includes(c))){if(n.detail===0&&(i=!v(n)),!i){i=!0;return}u(n)}},{passive:!0,capture:p}),A(r,"pointerdown",n=>{const c=P(t);i=!v(n)&&!!(c&&!n.composedPath().includes(c))},{passive:!0}),e&&A(r,"blur",n=>{setTimeout(()=>{var c;const m=P(t);((c=r.document.activeElement)==null?void 0:c.tagName)==="IFRAME"&&!m?.contains(r.document.activeElement)&&u(n)},0)})].filter(Boolean);return()=>h.forEach(n=>n())}function ae(t,u={}){const{delayEnter:o=0,delayLeave:r=0,window:b=R}=u,p=C(!1);let e;const i=v=>{const f=v?o:r;e&&(clearTimeout(e),e=void 0),f?e=setTimeout(()=>p.value=v,f):p.value=v};return b&&(A(t,"mouseenter",()=>i(!0),{passive:!0}),A(t,"mouseleave",()=>i(!1),{passive:!0})),p}const K=1;function ie(t,u={}){const{throttle:o=0,idle:r=200,onStop:b=k,onScroll:p=k,offset:e={left:0,right:0,top:0,bottom:0},eventListenerOptions:i={capture:!1,passive:!0},behavior:v="auto",window:f=R}=u,h=C(0),y=C(0),n=j({get(){return h.value},set(a){m(a,void 0)}}),c=j({get(){return y.value},set(a){m(void 0,a)}});function m(a,L){var E,$,x;if(!f)return;const S=_(t);S&&((x=S instanceof Document?f.document.body:S)==null||x.scrollTo({top:(E=_(L))!=null?E:c.value,left:($=_(a))!=null?$:n.value,behavior:_(v)}))}const T=C(!1),w=D({left:!0,right:!1,top:!0,bottom:!1}),s=D({left:!1,right:!1,top:!1,bottom:!1}),l=a=>{T.value&&(T.value=!1,s.left=!1,s.right=!1,s.top=!1,s.bottom=!1,b(a))},d=Q(l,o+r),g=a=>{var L;if(!f)return;const E=a.document?a.document.documentElement:(L=a.documentElement)!=null?L:a,{display:$,flexDirection:x}=getComputedStyle(E),S=E.scrollLeft;s.left=S<h.value,s.right=S>h.value;const M=Math.abs(S)<=0+(e.left||0),F=Math.abs(S)+E.clientWidth>=E.scrollWidth-(e.right||0)-K;$==="flex"&&x==="row-reverse"?(w.left=F,w.right=M):(w.left=M,w.right=F),h.value=S;let O=E.scrollTop;a===f.document&&!O&&(O=f.document.body.scrollTop),s.top=O<y.value,s.bottom=O>y.value;const I=Math.abs(O)<=0+(e.top||0),V=Math.abs(O)+E.clientHeight>=E.scrollHeight-(e.bottom||0)-K;$==="flex"&&x==="column-reverse"?(w.top=V,w.bottom=I):(w.top=I,w.bottom=V),y.value=O},H=a=>{var L;if(!f)return;const E=(L=a.target.documentElement)!=null?L:a.target;g(E),T.value=!0,d(a),p(a)};return A(t,"scroll",o?Y(H,o,!0,!1):H,i),G(()=>{const a=_(t);a&&g(a)}),A(t,"scrollend",l,i),{x:n,y:c,isScrolling:T,arrivedState:w,directions:s,measure(){const a=_(t);f&&a&&g(a)}}}function ce(t="history",u={}){const{initialValue:o={},removeNullishValues:r=!0,removeFalsyValues:b=!1,write:p=!0,window:e=R}=u;if(!e)return D(o);const i=D({});function v(){if(t==="history")return e.location.search||"";if(t==="hash"){const s=e.location.hash||"",l=s.indexOf("?");return l>0?s.slice(l):""}else return(e.location.hash||"").replace(/^#/,"")}function f(s){const l=s.toString();if(t==="history")return`${l?`?${l}`:""}${e.location.hash||""}`;if(t==="hash-params")return`${e.location.search||""}${l?`#${l}`:""}`;const d=e.location.hash||"#",g=d.indexOf("?");return g>0?`${d.slice(0,g)}${l?`?${l}`:""}`:`${d}${l?`?${l}`:""}`}function h(){return new URLSearchParams(v())}function y(s){const l=new Set(Object.keys(i));for(const d of s.keys()){const g=s.getAll(d);i[d]=g.length>1?g:s.get(d)||"",l.delete(d)}Array.from(l).forEach(d=>delete i[d])}const{pause:n,resume:c}=X(i,()=>{const s=new URLSearchParams("");Object.keys(i).forEach(l=>{const d=i[l];Array.isArray(d)?d.forEach(g=>s.append(l,g)):r&&d==null||b&&!d?s.delete(l):s.set(l,d)}),m(s)},{deep:!0});function m(s,l){n(),l&&y(s),e.history.replaceState(e.history.state,e.document.title,e.location.pathname+f(s)),c()}function T(){p&&m(h(),!0)}A(e,"popstate",T,!1),t!=="history"&&A(e,"hashchange",T,!1);const w=h();return w.keys().next().value?y(w):Object.assign(i,o),i}export{ie as a,ae as b,re as c,le as o,ce as u};
@@ -1 +1 @@
1
- import{l as v,u as g,a as I}from"./afetch.5c8VmT0-.js";import{r as O}from"./sf-utils.5t7r9A2G.js";import{r as S,c as l}from"./ecom-utils.gJYgRPRz.js";import{f as x}from"./format-money.FMQXgKHB.js";const w={list_payments:{},calculate_shipping:{},apply_discount:{}},n=S(w);v.then(o=>{Object.assign(n,o)});{const o="MODULES_INFO",m=sessionStorage.getItem(o);if(m)try{const a=JSON.parse(m);a.__timestamp>=Date.now()-1e3*60*5?(delete a.__timestamp,Object.assign(n,a)):sessionStorage.removeItem(o)}catch{sessionStorage.removeItem(o)}O(()=>{const a=[];["list_payments","calculate_shipping"].forEach(i=>{Object.keys(n[i]).length||a.push({modName:i})}),Object.keys(g).length&&a.push({modName:"apply_discount",reqOptions:{method:"post",body:{utm:g}}}),a.forEach(({modName:i,reqOptions:p})=>{const{hostname:c}=window.location,{domain:f}=globalThis.$storefront.settings,d=c!=="localhost"&&c!=="127.0.0.1"?`https://${f}/_api/modules/`:"/_api/modules/";I(`${d}${i}`,p).then(async h=>{if(h.ok){const s={};n[i]=s;const{result:y}=await h.json();Array.isArray(y)&&y.forEach(({error:b,response:r})=>{if(!b){let t,e;switch(i){case"calculate_shipping":t="free_shipping_from_value",e=r[t],typeof e=="number"&&(s[t]===void 0||e<s[t])&&(s[t]=e);break;case"list_payments":t="installments_option",e=r[t],e&&(!s[t]||e.monthly_interest<s[t].monthly_interest||e.max_number>s[t].max_number)&&(s[t]=e),t="discount_option",e=r[t],e&&(!s[t]||e.value>s[t].value)&&r.payment_gateways.forEach(({discount:_})=>{_&&_.apply_at!=="freight"&&_.value===e.value&&(s[t]={apply_at:_.apply_at,...e})}),t="loyalty_points_programs",e=r[t],e&&(s[t]={...s[t],...e});break;default:t="available_extra_discount",e=r[t],e&&(!s[t]||e.value>s[t].value)&&(s[t]=e)}}}),sessionStorage.setItem(o,JSON.stringify({...n,__timestamp:Date.now()}))}}).catch(console.error)})})}const D=l(()=>n.calculate_shipping.free_shipping_from_value),F=l(()=>n.list_payments.installments_option),J=l(()=>n.list_payments.discount_option),V=l(()=>n.list_payments.loyalty_points_programs),q=l(()=>n.apply_discount.available_extra_discount),k=(o,m,u,a=x)=>l(()=>{const i=`{${u}}`,p=o.indexOf(i);if(p>-1){const c=n[m][u];if(c){const f=a(c);return o.substring(0,p)+f+o.substring(p+i.length)}return""}return o}),A=o=>k(o,"calculate_shipping","free_shipping_from_value");export{q as a,J as d,D as f,F as i,V as l,A as p};
1
+ import{l as v,u as g,a as I}from"./afetch.5c8VmT0-.js";import{r as O}from"./sf-utils.yjuG8NjM.js";import{r as S,c as l}from"./ecom-utils.Ld2zf-Ve.js";import{f as x}from"./format-money.Axn0YFLJ.js";const w={list_payments:{},calculate_shipping:{},apply_discount:{}},n=S(w);v.then(o=>{Object.assign(n,o)});{const o="MODULES_INFO",m=sessionStorage.getItem(o);if(m)try{const a=JSON.parse(m);a.__timestamp>=Date.now()-1e3*60*5?(delete a.__timestamp,Object.assign(n,a)):sessionStorage.removeItem(o)}catch{sessionStorage.removeItem(o)}O(()=>{const a=[];["list_payments","calculate_shipping"].forEach(i=>{Object.keys(n[i]).length||a.push({modName:i})}),Object.keys(g).length&&a.push({modName:"apply_discount",reqOptions:{method:"post",body:{utm:g}}}),a.forEach(({modName:i,reqOptions:p})=>{const{hostname:c}=window.location,{domain:f}=globalThis.$storefront.settings,d=c!=="localhost"&&c!=="127.0.0.1"?`https://${f}/_api/modules/`:"/_api/modules/";I(`${d}${i}`,p).then(async h=>{if(h.ok){const s={};n[i]=s;const{result:y}=await h.json();Array.isArray(y)&&y.forEach(({error:b,response:r})=>{if(!b){let t,e;switch(i){case"calculate_shipping":t="free_shipping_from_value",e=r[t],typeof e=="number"&&(s[t]===void 0||e<s[t])&&(s[t]=e);break;case"list_payments":t="installments_option",e=r[t],e&&(!s[t]||e.monthly_interest<s[t].monthly_interest||e.max_number>s[t].max_number)&&(s[t]=e),t="discount_option",e=r[t],e&&(!s[t]||e.value>s[t].value)&&r.payment_gateways.forEach(({discount:_})=>{_&&_.apply_at!=="freight"&&_.value===e.value&&(s[t]={apply_at:_.apply_at,...e})}),t="loyalty_points_programs",e=r[t],e&&(s[t]={...s[t],...e});break;default:t="available_extra_discount",e=r[t],e&&(!s[t]||e.value>s[t].value)&&(s[t]=e)}}}),sessionStorage.setItem(o,JSON.stringify({...n,__timestamp:Date.now()}))}}).catch(console.error)})})}const D=l(()=>n.calculate_shipping.free_shipping_from_value),F=l(()=>n.list_payments.installments_option),J=l(()=>n.list_payments.discount_option),V=l(()=>n.list_payments.loyalty_points_programs),q=l(()=>n.apply_discount.available_extra_discount),k=(o,m,u,a=x)=>l(()=>{const i=`{${u}}`,p=o.indexOf(i);if(p>-1){const c=n[m][u];if(c){const f=a(c);return o.substring(0,p)+f+o.substring(p+i.length)}return""}return o}),A=o=>k(o,"calculate_shipping","free_shipping_from_value");export{q as a,J as d,D as f,F as i,V as l,A as p};
@@ -0,0 +1 @@
1
+ import{_ as t}from"./ecom-utils.Ld2zf-Ve.js";import{i as n}from"./i18n.3-NUtxYq.js";const r=(e,i=t.get("lang"))=>i&&e.i18n&&e.i18n[i]?e.i18n[i]:e.name||e.title||n(e.i18n,i)||"",a=r;export{a as g};
@@ -0,0 +1 @@
1
+ let s,r;s=navigator.userAgent,r=document.body?document.body.offsetWidth:window.screen.width;const p=/Android|iPhone|iPad|iPod|webOS/i.test(s),d=r<640,u=r>=1024,a=["whatsapp","instagram","facebook","twitter","youtube","tiktok","pinterest","threads"],c={},o=()=>{const{settings:e}=globalThis.$storefront;a.forEach(t=>{e[t]&&(c[t]=e[t])})};o();let n=-1;const w=()=>String(++n),f=(e,t=300)=>{typeof window.requestIdleCallback=="function"?window.requestIdleCallback(e):setTimeout(e,t)},l=e=>e.replace(/[ÁáÃãÂâÀà]/g,"a").replace(/[ÉéÊê]/g,"e").replace(/[Íí]/g,"i").replace(/[ÕõÓóÔô]/g,"o").replace(/[Úú]/g,"u").replace(/[Çç]/g,"c"),b=e=>l(e.trim()).toLowerCase().replace(/[\W\r\n]/gm,"-").replace(/-{2,}/g,"-").replace(/(^-)|(-$)/g,""),i=e=>e.toLowerCase().replace(/Á/g,"á").replace(/Ã/g,"ã").replace(/Â/g,"â").replace(/À/g,"à").replace(/É/g,"é").replace(/Ê/g,"ê").replace(/Í/g,"í").replace(/Õ/g,"õ").replace(/Ó/g,"ó").replace(/Ô/g,"ô").replace(/Ú/g,"ú").replace(/Ç/g,"ç"),g=e=>i(e.trim()).replace(/[\r\n]/gm," ").replace(/[^\w-&%áãâàéêíõóôúç]/g," ").replace(/\s{2,}/g," "),h=(e,t="/s/")=>`${t}${encodeURIComponent(g(e))}`,m=(e,t=0)=>{for(;e.offsetParent;)t+=e.offsetTop,e=e.offsetParent;return window.scroll({top:t,behavior:"smooth"})};export{m as a,p as b,l as c,d,c as e,h as g,u as i,f as r,b as s,w as u};
@@ -1 +1 @@
1
- import{u as _}from"./customer-session._VkzXnXT.js";import{c as l,w as y}from"./ecom-utils.gJYgRPRz.js";import{g as m}from"./price.Easct8WC.js";import{u as g}from"./index.XrHFaN2F.js";const q=()=>{let i=Math.floor(Math.random()*1e6).toString()+Date.now();for(;i.length<24;)i+="0";return i},h=q;function b(i){return{all:i=i||new Map,on:function(t,r){var o=i.get(t);o?o.push(r):i.set(t,[r])},off:function(t,r){var o=i.get(t);o&&(r?o.splice(o.indexOf(r)>>>0,1):i.set(t,[]))},emit:function(t,r){var o=i.get(t);o&&o.slice().map(function(n){n(r)}),(o=i.get("*"))&&o.slice().map(function(n){n(t,r)})}}}const v=(i,{flags:t})=>!i.flags&&!t?!0:!i.flags||!t||i.flags.length!==t.length?!1:i.flags.every(r=>t.includes(r)),C=(i,t)=>{if(typeof t.product_id!="string"||typeof t.quantity!="number"||!(t.quantity>=0)||typeof t.price!="number"||!(t.price>=0))return null;const{items:r}=i;if(!t.kit_product)for(let n=0;n<r.length;n++){const a=r[n];if(!a.kit_product&&a.product_id===t.product_id&&a.variation_id===t.variation_id&&(!a.customizations||!a.customizations.length)&&v(a,t))return a.quantity+=t.quantity,t.price&&(a.price=t.price),t.final_price&&(a.final_price=t.final_price),a}const o={...t};if((!t._id||t._id===t.variation_id||r.find(({_id:n})=>n===t._id))&&(o._id=h()),t.customizations){const n=[];t.customizations.forEach((a,c)=>{n[c]={...a}}),o.customizations=n}return r.push(o),o},k=(i,t,r)=>{(typeof r!="number"||Number.isNaN(r))&&(r=i.min_quantity||1);const o=i.min_quantity||0,n=t&&i.variations?i.variations.find(({_id:c})=>c===t):void 0,a={product_id:i._id,variation_id:t,sku:n?.sku||i.sku,name:n?.name||i.name,slug:i.slug,production_time:n?.production_time||i.production_time,currency_id:i.currency_id,currency_symbol:i.currency_symbol,base_price:n?.base_price||i.base_price,max_quantity:i.quantity,quantity:o>0?Math.max(o,r):r,price:m(i)};return n?.picture_id&&i.pictures&&(a.picture=i.pictures.find(c=>c._id===n.picture_id)),!a.picture&&i.pictures&&([a.picture]=i.pictures),a},E="ecomShoppingCart",x={subtotal:0,items:[]},s=_(E,x),O=l(()=>s.items.reduce((i,t)=>i+t.quantity,0)),z=i=>{C(s,i)},S=i=>{for(let t=0;t<s.items.length;t++)if(s.items[t]._id===i){s.items.splice(t,1);break}},D=(i,t,r)=>z(k(i,t,r)),f=b(),p=()=>s.items.map(i=>({...i}));let e=p();const N=g(i=>{["addCartItem","removeCartItem"].forEach(t=>{const r=t==="addCartItem",o=r?i:e,n=r?e:i;o.forEach(a=>{if(!a.quantity)return;const u=n.find(({_id:d})=>d===a._id)?.quantity||0;a.quantity>u&&f.emit(t,{...a,quantity:a.quantity-u})})}),e=p()},200);y(s.items,i=>{i.forEach(t=>{let r=t.kit_product?.price&&t.kit_product.pack_quantity?t.kit_product.price/t.kit_product.pack_quantity:t.price;Array.isArray(t.customizations)&&t.customizations.forEach(a=>{if(a.add_to_price){const{type:c,addition:u}=a.add_to_price;r+=c==="fixed"?u:t.price*(u/100)}}),t.final_price=r;const o=t.min_quantity||1,n=t.max_quantity;typeof t.quantity!="number"||Number.isNaN(t.quantity)||t.quantity<o?t.quantity=o:n&&t.quantity>n&&(t.quantity=n)}),s.subtotal=i.reduce((t,r)=>t+r.quantity*(r.final_price||r.price),0),N(i)});const Q={on:f.on,off:f.off};export{D as a,Q as c,k as p,S as r,s,O as t};
1
+ import{u as _}from"./customer-session.KkTHFOXl.js";import{c as l,w as y}from"./ecom-utils.Ld2zf-Ve.js";import{g as m}from"./price.Easct8WC.js";import{u as g}from"./index.TkCbiY_p.js";const q=()=>{let i=Math.floor(Math.random()*1e6).toString()+Date.now();for(;i.length<24;)i+="0";return i},h=q;function b(i){return{all:i=i||new Map,on:function(t,r){var o=i.get(t);o?o.push(r):i.set(t,[r])},off:function(t,r){var o=i.get(t);o&&(r?o.splice(o.indexOf(r)>>>0,1):i.set(t,[]))},emit:function(t,r){var o=i.get(t);o&&o.slice().map(function(n){n(r)}),(o=i.get("*"))&&o.slice().map(function(n){n(t,r)})}}}const v=(i,{flags:t})=>!i.flags&&!t?!0:!i.flags||!t||i.flags.length!==t.length?!1:i.flags.every(r=>t.includes(r)),C=(i,t)=>{if(typeof t.product_id!="string"||typeof t.quantity!="number"||!(t.quantity>=0)||typeof t.price!="number"||!(t.price>=0))return null;const{items:r}=i;if(!t.kit_product)for(let n=0;n<r.length;n++){const a=r[n];if(!a.kit_product&&a.product_id===t.product_id&&a.variation_id===t.variation_id&&(!a.customizations||!a.customizations.length)&&v(a,t))return a.quantity+=t.quantity,t.price&&(a.price=t.price),t.final_price&&(a.final_price=t.final_price),a}const o={...t};if((!t._id||t._id===t.variation_id||r.find(({_id:n})=>n===t._id))&&(o._id=h()),t.customizations){const n=[];t.customizations.forEach((a,c)=>{n[c]={...a}}),o.customizations=n}return r.push(o),o},k=(i,t,r)=>{(typeof r!="number"||Number.isNaN(r))&&(r=i.min_quantity||1);const o=i.min_quantity||0,n=t&&i.variations?i.variations.find(({_id:c})=>c===t):void 0,a={product_id:i._id,variation_id:t,sku:n?.sku||i.sku,name:n?.name||i.name,slug:i.slug,production_time:n?.production_time||i.production_time,currency_id:i.currency_id,currency_symbol:i.currency_symbol,base_price:n?.base_price||i.base_price,max_quantity:i.quantity,quantity:o>0?Math.max(o,r):r,price:m(i)};return n?.picture_id&&i.pictures&&(a.picture=i.pictures.find(c=>c._id===n.picture_id)),!a.picture&&i.pictures&&([a.picture]=i.pictures),a},E="ecomShoppingCart",x={subtotal:0,items:[]},s=_(E,x),O=l(()=>s.items.reduce((i,t)=>i+t.quantity,0)),z=i=>{C(s,i)},S=i=>{for(let t=0;t<s.items.length;t++)if(s.items[t]._id===i){s.items.splice(t,1);break}},D=(i,t,r)=>z(k(i,t,r)),f=b(),p=()=>s.items.map(i=>({...i}));let e=p();const N=g(i=>{["addCartItem","removeCartItem"].forEach(t=>{const r=t==="addCartItem",o=r?i:e,n=r?e:i;o.forEach(a=>{if(!a.quantity)return;const u=n.find(({_id:d})=>d===a._id)?.quantity||0;a.quantity>u&&f.emit(t,{...a,quantity:a.quantity-u})})}),e=p()},200);y(s.items,i=>{i.forEach(t=>{let r=t.kit_product?.price&&t.kit_product.pack_quantity?t.kit_product.price/t.kit_product.pack_quantity:t.price;Array.isArray(t.customizations)&&t.customizations.forEach(a=>{if(a.add_to_price){const{type:c,addition:u}=a.add_to_price;r+=c==="fixed"?u:t.price*(u/100)}}),t.final_price=r;const o=t.min_quantity||1,n=t.max_quantity;typeof t.quantity!="number"||Number.isNaN(t.quantity)||t.quantity<o?t.quantity=o:n&&t.quantity>n&&(t.quantity=n)}),s.subtotal=i.reduce((t,r)=>t+r.quantity*(r.final_price||r.price),0),N(i)});const Q={on:f.on,off:f.off};export{D as a,Q as c,k as p,S as r,s,O as t};
@@ -0,0 +1 @@
1
+ import{u as S,b as I,d as w,c as $}from"./customer-session.KkTHFOXl.js";import{c as C}from"./shopping-cart.Ean2uW2R.js";import{a as u,r as G,c as p,K as b,w as v}from"./ecom-utils.Ld2zf-Ve.js";import{u as P,g as x}from"./index.TkCbiY_p.js";import{u as N}from"./afetch.5c8VmT0-.js";import{g as T}from"./name.49dZlpDx.js";import{g as R}from"./price.Easct8WC.js";const A="ecomSeachHistory",l=S(A,[]);for(let s=0;s<l.length;s++)typeof l[s]!="string"&&(l.splice(s,1),s-=1);const L=async({term:s,params:i,fields:r,url:t="search/v1"})=>{if(typeof s=="string"&&(s=s.trim(),s.length<2))return{data:{result:[],meta:null}};const a=await I.get(t,{fields:r,params:s?{...i,term:s}:i});if(s&&a.data.result.length){const o=s,e=l.findIndex(n=>n.includes(o)&&!n.replace(o,"").includes(" "));if(e>-1){const n=l[e];l.splice(e,1),l.unshift(n)}else{const n=l.findIndex(g=>o.startsWith(g));n>-1&&l.splice(n,1),l.unshift(s)}for(;l.length>20;)l.pop()}return a};class H{fields;term=u(null);isWithCount=u(!0);isWithBuckets=u(!0);params=G({});pageSize=u(24);pageNumber=u(1);#s=u(!1);isFetching=p(()=>this.#s.value);#t=u(!1);wasFetched=p(()=>this.#t.value);#i=u(null);#e;fetching=p(()=>this.#i.value);#a=u(null);fetchError=p(()=>this.#a.value);products=b([]);meta=b({offset:0,limit:0,fields:[],sort:[],query:{}});#n;constructor({fields:i,debounce:r=150}={}){this.fields=i,this.#n=P(t=>(this.#s.value=!0,L(t)),r),v([this.term,this.params,this.pageSize],()=>{this.pageNumber.value=1}),v(this.pageNumber,()=>{this.#t.value=!1})}async fetch(i){i!==void 0&&i!==this.term.value&&(this.term.value=i,this.pageNumber.value=1);const r=this.pageSize.value,t=r*(this.pageNumber.value-1);this.#i.value||(this.#i.value=new Promise(o=>{this.#e=o}));let a;try{a=await this.#n({term:this.term.value,params:{...this.params,limit:r,offset:t,count:this.isWithCount.value||void 0,buckets:this.isWithBuckets.value||void 0},fields:this.fields})}catch(o){throw this.#e&&(this.#a.value=o,this.#e()),o}if(a){this.#s.value=!1,this.#t.value=!0;const{data:o}=a;o.meta&&this.setResult(o),this.#e&&this.#e()}}setResult(i){i.meta&&Object.assign(this.meta,i.meta),i.result&&(this.products.splice(0),i.result.forEach(r=>this.products.push(r))),i.meta&&i.result&&(this.#t.value=!0)}}const c={},f={},E=()=>{f.resolve||(f.waiting=new Promise(s=>{f.resolve=s}))};E();const M=()=>({page_location:window.location.toString(),language:globalThis.$storefront.settings.lang||"pt_br",page_title:document.title,user_agent:navigator.userAgent}),q=()=>({...f.params||M(),...c,user_id:$.value._id,utm:N}),y="GtagEvent";let m={},h="";const d=async(s,i)=>{const r=i;if(s==="page_view"){m={};const{apiContext:t}=window.$storefront;if(h="",t){const{name:a}=t.doc;switch(t.resource){case"categories":h=`Category: ${a}`;break;case"brands":h=`Brand: ${a}`;break;case"collections":h=`Collection: ${a}`;break}}else{const{pathname:a}=window.location;a==="/"?h="Home":(/^\/s\/?/.test(a)||a==="/search"||a==="/busca")&&(h="Search results")}f.resolve&&(f.params=i,f.resolve(),f.resolve=null)}else f.waiting&&await f.waiting,s==="view_item"&&r.items?.forEach(t=>{if(t.index!==void 0)return;if(!t.item_list_id&&!t.item_list_name){const{apiContext:o}=window.$storefront;o?.doc._id===t.object_id&&(t.item_list_id="product-page",t.item_list_name="Product page")}const a=t.item_list_id||t.item_list_name||h;a&&(m[a]?m[a]+=1:m[a]=1,t.index=m[a],!t.item_list_id&&!t.item_list_name&&(t.item_list_name=a))}),typeof r.value=="number"&&!r.currency&&(r.currency=window.ECOM_CURRENCY||"BRL");try{const t={type:y,...q(),event:{name:s,params:r}};window.postMessage(t,window.origin)}catch(t){console.error(t)}},O=s=>{window.addEventListener("message",({data:i})=>{i.type===y&&s(i)})},F=s=>{const[i,...r]=T(s).split(" / "),t={item_name:i,item_id:s.sku,price:Math.round(R(s)*100)/100,object_id:s._id};r&&r.length?t.item_variant=r.join(" / "):s.variation_id&&(t.item_name=i.replace(window.__customGTMVariantRegex||/\s[^\s]+$/,""),t.item_variant=i.replace(t.item_name,"").trim()),(s.quantity===0||s.quantity&&s.product_id)&&(t.quantity=s.quantity);const{brands:a,categories:o}=s;if(a?.length&&(t.item_brand=a[0].name),o?.length)for(let e=0;e<o.length;e++){const{name:n}=o[e];if(e===0)t.item_category=n;else if(t[`item_category${e+1}`]=n,e===4)break}return t},U=()=>{document.addEventListener("astro:beforeload",E);const{gtag:s,GTAG_TAG_ID:i,GA_TRACKING_ID:r}=window,t=i||r;t&&typeof s=="function"&&["client_id","session_id","gclid"].forEach(e=>{s("get",t,e,n=>{c[e==="gclid"?e:`g_${e}`]=n})});const a=new URL(window.location.toString());["gclid","fbclid","ttclid"].forEach(e=>{const n=c[e]||a.searchParams.get(e);n?(c[e]=n,sessionStorage.setItem(`analytics_${e}`,n)):c[e]=sessionStorage.getItem(`analytics_${e}`)||void 0});const o=["_fbp"];c.fbclid||o.push("_fbc"),c.g_client_id||o.push("_ga"),o.forEach(e=>{document.cookie.split(";").forEach(n=>{const[g,_]=n.split("=");if(g.trim()===e&&_)switch(e){case"_fbp":c.fbp=_;break;case"_fbc":c.fbclid=_;break;case"_ga":c.g_client_id=_.substring(6);break}})}),["client_id","session_id"].forEach(e=>{const n=e==="client_id"?localStorage:sessionStorage,g=n.getItem(`analytics_${e}`);g?c[e]=g:c[e]=c[`g_${e}`]||`${Math.ceil(Math.random()*1e6)}.${Math.ceil(Math.random()*1e6)}`,n.setItem(`analytics_${e}`,c[e])}),w.value?d("login",{}):x(w,()=>d("login",{})),C.on("*",(e,n)=>{d(e==="addCartItem"?"add_to_cart":"remove_from_cart",{items:[F(n)]})}),v(l,()=>{const e=l[0];e&&d("search",{search_term:e})}),window.location.pathname==="/s"&&setTimeout(()=>{const e=new URLSearchParams(window.location.search).get("q");e&&typeof e=="string"&&d("view_search_results",{search_term:e})},300)};export{H as S,q as a,M as b,d as e,F as g,l as s,c as t,U as u,O as w};
@@ -1 +1 @@
1
- import{b as k}from"./customer-session._VkzXnXT.js";import{s as I}from"./sf-utils.5t7r9A2G.js";import{e as P,g as p}from"./use-analytics.1EVxbrS7.js";import{g as w}from"./img.zh-Drf-O.js";import{a as g,J as N,c as n}from"./ecom-utils.gJYgRPRz.js";import{g as f,c as q}from"./price.Easct8WC.js";import{g as E}from"./name.HU5l7TJo.js";const O=t=>t&&t.min_quantity||1,S=O,$=t=>!t.hasOwnProperty("quantity")||t.quantity>=S(t),G=$,J=t=>{const a=g(!1);let r=null;const c=g(null),{productId:s}=t,e=N({...t.product,_id:t.product?._id||s,price:f(t.product||{})});!t.product&&s&&(a.value=!0,r=(async()=>{try{const{data:i}=await k.get(`products/${s}`);Object.assign(e,i)}catch(i){console.error(i),c.value=i}a.value=!1})());const d=n(()=>E(e)),h=n(()=>{const{slug:i}=e;return typeof i=="string"?`/${i}`:null}),v=n(()=>{const{pictures:i}=e,m=[];return i&&i.forEach(b=>{const l=w(b);l&&m.push(l)}),m}),o=n(()=>G(e)),u=n(()=>o.value&&e.available&&e.visible),_=n(()=>{if(q(e)){const i=e.base_price;return Math.round((i-f(e))*100/i)}return 0}),y=n(()=>e.has_variations?!0:!!e.variations?.length);return P("view_item",{value:u.value?e.price:0,items:[{...p(e),item_list_name:t.listName,item_list_id:t.listId||t.listName&&I(t.listName)}]}),{isFetching:a,fetching:r,fetchError:c,product:e,title:d,link:h,images:v,isInStock:o,isActive:u,discountPercentage:_,hasVariations:y}};export{G as c,J as u};
1
+ import{b as k}from"./customer-session.KkTHFOXl.js";import{s as I}from"./sf-utils.yjuG8NjM.js";import{e as P,g as p}from"./use-analytics.Y7amTmnr.js";import{g as w}from"./img.pozlYdd3.js";import{a as g,K as N,c as n}from"./ecom-utils.Ld2zf-Ve.js";import{g as f,c as q}from"./price.Easct8WC.js";import{g as E}from"./name.49dZlpDx.js";const O=t=>t&&t.min_quantity||1,S=O,$=t=>!t.hasOwnProperty("quantity")||t.quantity>=S(t),G=$,K=t=>{const a=g(!1);let r=null;const c=g(null),{productId:s}=t,e=N({...t.product,_id:t.product?._id||s,price:f(t.product||{})});!t.product&&s&&(a.value=!0,r=(async()=>{try{const{data:i}=await k.get(`products/${s}`);Object.assign(e,i)}catch(i){console.error(i),c.value=i}a.value=!1})());const d=n(()=>E(e)),h=n(()=>{const{slug:i}=e;return typeof i=="string"?`/${i}`:null}),v=n(()=>{const{pictures:i}=e,m=[];return i&&i.forEach(b=>{const l=w(b);l&&m.push(l)}),m}),o=n(()=>G(e)),u=n(()=>o.value&&e.available&&e.visible),_=n(()=>{if(q(e)){const i=e.base_price;return Math.round((i-f(e))*100/i)}return 0}),y=n(()=>e.has_variations?!0:!!e.variations?.length);return P("view_item",{value:u.value?e.price:0,items:[{...p(e),item_list_name:t.listName,item_list_id:t.listId||t.listName&&I(t.listName)}]}),{isFetching:a,fetching:r,fetchError:c,product:e,title:d,link:h,images:v,isInStock:o,isActive:u,discountPercentage:_,hasVariations:y}};export{G as c,K as u};
@@ -0,0 +1,4 @@
1
+ import{_ as Q,w as Z,v as J}from"./_plugin-vue_export-helper._suIQ7WC.js";import{d as W,a as w,w as P,a5 as T,c as g,n as B,L as ee,M as y,Z as _,U as D,S as A,a7 as te,Y as j,N as F,P as E,Q as $,ad as ne,T as re,V as le,af as ae,t as oe,W as ie,a3 as se,a4 as ue,o as ce,a9 as k}from"./ecom-utils.Ld2zf-Ve.js";const de=W({__name:"Drawer",props:{modelValue:{type:Boolean,default:!1},isHidden:{type:Boolean,default:!1},placement:{default:"start"},position:{default:"fixed"},animation:{default:"slide"},hasCloseButton:{type:Boolean,default:!0},anchorEl:{},backdropTarget:{default:"#teleported-top"},canLockScroll:{type:Boolean,default:!0},maxWidth:{},class:{}},emits:["update:modelValue"],setup(e,{expose:t,emit:n}){t();const r=e,a=n,l=()=>a("update:modelValue",!1),o=w(null),i=h=>{if(!o.value?.contains(h.target)){if(r.anchorEl?.contains(h.target))return;l()}},d=h=>{h.key==="Escape"&&l()},s=w(0);P(T(r,"modelValue"),async h=>{h?(r.canLockScroll&&(s.value=window.innerWidth-document.documentElement.clientWidth,document.body.style.overflow="hidden",document.body.style.paddingRight=`${s.value}px`),setTimeout(()=>{document.addEventListener("click",i,{passive:!0}),document.addEventListener("keydown",d,{passive:!0})},500)):(r.canLockScroll&&(document.body.style.overflow="",document.body.style.paddingRight=""),document.removeEventListener("click",i),document.removeEventListener("keydown",d))});const u=g(()=>{if(r.animation!=="slide")return null;switch(r.placement){case"start":return"left";case"end":return"right";case"top":return"down";default:return"up"}}),f=w(null);r.animation==="scale"&&P(T(r,"modelValue"),h=>{h?B(()=>{setTimeout(()=>{f.value="transition",setTimeout(()=>{r.modelValue&&(f.value="")},300)},50)}):f.value="transition scale-90"},{immediate:!0});const v=g(()=>Array.isArray(r.class)?r.class:[r.class]),p=g(()=>r.position==="fixed"),c=g(()=>r.placement==="start"||r.placement==="end"),m={props:r,emit:a,close:l,drawer:o,outsideClickListener:i,escClickListener:d,scrollbarWidth:s,slideTo:u,animationClassName:f,customClassList:v,isFixed:p,isPlacementX:c};return Object.defineProperty(m,"__isScriptSetup",{enumerable:!1,value:!0}),m}}),fe=["open","data-drawer"],me={class:"relative h-full"},pe=$("i",{class:"i-close text-base-400 hover:text-base-600 m-0 text-3xl"},null,-1),ve={key:0,class:"fixed left-0 top-0 z-30 h-screen w-screen bg-black/50","data-drawer-backdrop":""};function he(e,t,n,r,a,l){const o=ee("Fade");return y(),_(o,{slide:r.slideTo,speed:"slow","is-floating":""},{default:D(()=>[n.modelValue?le((y(),F("dialog",{key:0,ref:"drawer",class:A(["z-40 w-screen p-0",[n.position,r.isPlacementX?"m-0":"mx-auto",r.isPlacementX&&!n.maxWidth?"max-w-sm":null,r.isFixed?`top-0 ${r.isPlacementX?"h-screen":"max-h-screen"}`:null,r.isFixed&&n.placement!=="end"?"left-0":null,r.isFixed&&n.placement==="end"?"left-auto right-0":null,r.animationClassName,...r.customClassList]]),style:te({maxWidth:n.maxWidth?`min(${n.maxWidth}, calc(100vw - ${r.scrollbarWidth}px))`:r.isPlacementX?void 0:`calc(100vw - ${r.scrollbarWidth}px)`}),open:n.modelValue,"data-drawer":n.placement},[$("div",me,[n.hasCloseButton?(y(),F("button",{key:0,type:"button","aria-label":"Fechar",onClick:Z(r.close,["prevent"]),class:A(["absolute top-2 z-30 rounded",n.placement==="end"?"left-2":"right-2"]),"data-drawer-close":""},[j(e.$slots,"close",{},()=>[pe])],2)):E("",!0),j(e.$slots,"default")]),n.backdropTarget?(y(),_(ne,{key:0,to:n.backdropTarget},[re(o,null,{default:D(()=>[n.modelValue&&!n.isHidden?(y(),F("div",ve)):E("",!0)]),_:1})],8,["to"])):E("",!0)],14,fe)),[[J,!n.isHidden]]):E("",!0)]),_:3},8,["slide"])}const Xe=Q(de,[["render",he]]);function L(e,t,...n){if(e in t){let a=t[e];return typeof a=="function"?a(...n):a}let r=new Error(`Tried to handle "${e}" but there is no handler defined. Only defined handlers are: ${Object.keys(t).map(a=>`"${a}"`).join(", ")}.`);throw Error.captureStackTrace&&Error.captureStackTrace(r,L),r}var we=(e=>(e[e.None=0]="None",e[e.RenderStrategy=1]="RenderStrategy",e[e.Static=2]="Static",e))(we||{}),be=(e=>(e[e.Unmount=0]="Unmount",e[e.Hidden=1]="Hidden",e))(be||{});function ye({visible:e=!0,features:t=0,ourProps:n,theirProps:r,...a}){var l;let o=U(r,n),i=Object.assign(a,{props:o});if(e||t&2&&o.static)return N(i);if(t&1){let d=(l=o.unmount)==null||l?0:1;return L(d,{0(){return null},1(){return N({...a,props:{...o,hidden:!0,style:{display:"none"}}})}})}return N(i)}function N({props:e,attrs:t,slots:n,slot:r,name:a}){var l,o;let{as:i,...d}=ge(e,["unmount","static"]),s=(l=n.default)==null?void 0:l.call(n,r),u={};if(r){let f=!1,v=[];for(let[p,c]of Object.entries(r))typeof c=="boolean"&&(f=!0),c===!0&&v.push(p);f&&(u["data-headlessui-state"]=v.join(" "))}if(i==="template"){if(s=R(s??[]),Object.keys(d).length>0||Object.keys(t).length>0){let[f,...v]=s??[];if(!Ee(f)||v.length>0)throw new Error(['Passing props on "template"!',"",`The current component <${a} /> is rendering a "template".`,"However we need to passthrough the following props:",Object.keys(d).concat(Object.keys(t)).map(m=>m.trim()).filter((m,h,Y)=>Y.indexOf(m)===h).sort((m,h)=>m.localeCompare(h)).map(m=>` - ${m}`).join(`
2
+ `),"","You can apply a few solutions:",['Add an `as="..."` prop, to ensure that we render an actual element instead of a "template".',"Render a single element as the child so that we can forward the props onto that element."].map(m=>` - ${m}`).join(`
3
+ `)].join(`
4
+ `));let p=U((o=f.props)!=null?o:{},d),c=ae(f,p);for(let m in p)m.startsWith("on")&&(c.props||(c.props={}),c.props[m]=p[m]);return c}return Array.isArray(s)&&s.length===1?s[0]:s}return oe(i,Object.assign({},d,u),{default:()=>s})}function R(e){return e.flatMap(t=>t.type===ie?R(t.children):[t])}function U(...e){if(e.length===0)return{};if(e.length===1)return e[0];let t={},n={};for(let r of e)for(let a in r)a.startsWith("on")&&typeof r[a]=="function"?(n[a]!=null||(n[a]=[]),n[a].push(r[a])):t[a]=r[a];if(t.disabled||t["aria-disabled"])return Object.assign(t,Object.fromEntries(Object.keys(n).map(r=>[r,void 0])));for(let r in n)Object.assign(t,{[r](a,...l){let o=n[r];for(let i of o){if(a instanceof Event&&a.defaultPrevented)return;i(a,...l)}}});return t}function Ke(e){let t=Object.assign({},e);for(let n in t)t[n]===void 0&&delete t[n];return t}function ge(e,t=[]){let n=Object.assign({},e);for(let r of t)r in n&&delete n[r];return n}function Ee(e){return e==null?!1:typeof e.type=="string"||typeof e.type=="object"||typeof e.type=="function"}let xe=0;function Fe(){return++xe}function ze(){return Fe()}var Ne=(e=>(e.Space=" ",e.Enter="Enter",e.Escape="Escape",e.Backspace="Backspace",e.Delete="Delete",e.ArrowLeft="ArrowLeft",e.ArrowUp="ArrowUp",e.ArrowRight="ArrowRight",e.ArrowDown="ArrowDown",e.Home="Home",e.End="End",e.PageUp="PageUp",e.PageDown="PageDown",e.Tab="Tab",e))(Ne||{});function Se(e){throw new Error("Unexpected object: "+e)}var ke=(e=>(e[e.First=0]="First",e[e.Previous=1]="Previous",e[e.Next=2]="Next",e[e.Last=3]="Last",e[e.Specific=4]="Specific",e[e.Nothing=5]="Nothing",e))(ke||{});function Ge(e,t){let n=t.resolveItems();if(n.length<=0)return null;let r=t.resolveActiveIndex(),a=r??-1,l=(()=>{switch(e.focus){case 0:return n.findIndex(o=>!t.resolveDisabled(o));case 1:{let o=n.slice().reverse().findIndex((i,d,s)=>a!==-1&&s.length-d-1>=a?!1:!t.resolveDisabled(i));return o===-1?o:n.length-1-o}case 2:return n.findIndex((o,i)=>i<=a?!1:!t.resolveDisabled(o));case 3:{let o=n.slice().reverse().findIndex(i=>!t.resolveDisabled(i));return o===-1?o:n.length-1-o}case 4:return n.findIndex(o=>t.resolveId(o)===e.id);case 5:return null;default:Se(e)}})();return l===-1?r:l}function b(e){var t;return e==null||e.value==null?null:(t=e.value.$el)!=null?t:e.value}let X=Symbol("Context");var Le=(e=>(e[e.Open=1]="Open",e[e.Closed=2]="Closed",e[e.Closing=4]="Closing",e[e.Opening=8]="Opening",e))(Le||{});function qe(){return se(X,null)}function Ye(e){ue(X,e)}function C(e,t){if(e)return e;let n=t??"button";if(typeof n=="string"&&n.toLowerCase()==="button")return"button"}function Qe(e,t){let n=w(C(e.value.type,e.value.as));return ce(()=>{n.value=C(e.value.type,e.value.as)}),k(()=>{var r;n.value||b(t)&&b(t)instanceof HTMLButtonElement&&!((r=b(t))!=null&&r.hasAttribute("type"))&&(n.value="button")}),n}var Oe=Object.defineProperty,Pe=(e,t,n)=>t in e?Oe(e,t,{enumerable:!0,configurable:!0,writable:!0,value:n}):e[t]=n,I=(e,t,n)=>(Pe(e,typeof t!="symbol"?t+"":t,n),n);class Te{constructor(){I(this,"current",this.detect()),I(this,"currentId",0)}set(t){this.current!==t&&(this.currentId=0,this.current=t)}reset(){this.set(this.detect())}nextId(){return++this.currentId}get isServer(){return this.current==="server"}get isClient(){return this.current==="client"}detect(){return typeof window>"u"||typeof document>"u"?"server":"client"}}let O=new Te;function K(e){if(O.isServer)return null;if(e instanceof Node)return e.ownerDocument;if(e!=null&&e.hasOwnProperty("value")){let t=b(e);if(t)return t.ownerDocument}return document}let S=["[contentEditable=true]","[tabindex]","a[href]","area[href]","button:not([disabled])","iframe","input:not([disabled])","select:not([disabled])","textarea:not([disabled])"].map(e=>`${e}:not([tabindex='-1'])`).join(",");var _e=(e=>(e[e.First=1]="First",e[e.Previous=2]="Previous",e[e.Next=4]="Next",e[e.Last=8]="Last",e[e.WrapAround=16]="WrapAround",e[e.NoScroll=32]="NoScroll",e))(_e||{}),De=(e=>(e[e.Error=0]="Error",e[e.Overflow=1]="Overflow",e[e.Success=2]="Success",e[e.Underflow=3]="Underflow",e))(De||{}),Ae=(e=>(e[e.Previous=-1]="Previous",e[e.Next=1]="Next",e))(Ae||{});function z(e=document.body){return e==null?[]:Array.from(e.querySelectorAll(S)).sort((t,n)=>Math.sign((t.tabIndex||Number.MAX_SAFE_INTEGER)-(n.tabIndex||Number.MAX_SAFE_INTEGER)))}var G=(e=>(e[e.Strict=0]="Strict",e[e.Loose=1]="Loose",e))(G||{});function q(e,t=0){var n;return e===((n=K(e))==null?void 0:n.body)?!1:L(t,{0(){return e.matches(S)},1(){let r=e;for(;r!==null;){if(r.matches(S))return!0;r=r.parentElement}return!1}})}function Ze(e){let t=K(e);B(()=>{t&&!q(t.activeElement,0)&&Ce(e)})}var je=(e=>(e[e.Keyboard=0]="Keyboard",e[e.Mouse=1]="Mouse",e))(je||{});typeof window<"u"&&typeof document<"u"&&(document.addEventListener("keydown",e=>{e.metaKey||e.altKey||e.ctrlKey||(document.documentElement.dataset.headlessuiFocusVisible="")},!0),document.addEventListener("click",e=>{e.detail===1?delete document.documentElement.dataset.headlessuiFocusVisible:e.detail===0&&(document.documentElement.dataset.headlessuiFocusVisible="")},!0));function Ce(e){e?.focus({preventScroll:!0})}let Ie=["textarea","input"].join(",");function Me(e){var t,n;return(n=(t=e?.matches)==null?void 0:t.call(e,Ie))!=null?n:!1}function He(e,t=n=>n){return e.slice().sort((n,r)=>{let a=t(n),l=t(r);if(a===null||l===null)return 0;let o=a.compareDocumentPosition(l);return o&Node.DOCUMENT_POSITION_FOLLOWING?-1:o&Node.DOCUMENT_POSITION_PRECEDING?1:0})}function Je(e,t){return Ve(z(),t,{relativeTo:e})}function Ve(e,t,{sorted:n=!0,relativeTo:r=null,skipElements:a=[]}={}){var l;let o=(l=Array.isArray(e)?e.length>0?e[0].ownerDocument:document:e?.ownerDocument)!=null?l:document,i=Array.isArray(e)?n?He(e):e:z(e);a.length>0&&i.length>1&&(i=i.filter(c=>!a.includes(c))),r=r??o.activeElement;let d=(()=>{if(t&5)return 1;if(t&10)return-1;throw new Error("Missing Focus.First, Focus.Previous, Focus.Next or Focus.Last")})(),s=(()=>{if(t&1)return 0;if(t&2)return Math.max(0,i.indexOf(r))-1;if(t&4)return Math.max(0,i.indexOf(r))+1;if(t&8)return i.length-1;throw new Error("Missing Focus.First, Focus.Previous, Focus.Next or Focus.Last")})(),u=t&32?{preventScroll:!0}:{},f=0,v=i.length,p;do{if(f>=v||f+v<=0)return 0;let c=s+f;if(t&16)c=(c+v)%v;else{if(c<0)return 3;if(c>=v)return 1}p=i[c],p?.focus(u),f+=d}while(p!==o.activeElement);return t&6&&Me(p)&&p.select(),2}function x(e,t,n){O.isServer||k(r=>{document.addEventListener(e,t,n),r(()=>document.removeEventListener(e,t,n))})}function We(e,t,n){O.isServer||k(r=>{window.addEventListener(e,t,n),r(()=>window.removeEventListener(e,t,n))})}function et(e,t,n=g(()=>!0)){function r(l,o){if(!n.value||l.defaultPrevented)return;let i=o(l);if(i===null||!i.getRootNode().contains(i))return;let d=function s(u){return typeof u=="function"?s(u()):Array.isArray(u)||u instanceof Set?u:[u]}(e);for(let s of d){if(s===null)continue;let u=s instanceof HTMLElement?s:b(s);if(u!=null&&u.contains(i)||l.composed&&l.composedPath().includes(u))return}return!q(i,G.Loose)&&i.tabIndex!==-1&&l.preventDefault(),t(l,i)}let a=w(null);x("pointerdown",l=>{var o,i;n.value&&(a.value=((i=(o=l.composedPath)==null?void 0:o.call(l))==null?void 0:i[0])||l.target)},!0),x("mousedown",l=>{var o,i;n.value&&(a.value=((i=(o=l.composedPath)==null?void 0:o.call(l))==null?void 0:i[0])||l.target)},!0),x("click",l=>{a.value&&(r(l,()=>a.value),a.value=null)},!0),x("touchend",l=>r(l,()=>l.target instanceof HTMLElement?l.target:null),!0),We("blur",l=>r(l,()=>window.document.activeElement instanceof HTMLIFrameElement?window.document.activeElement:null),!0)}var Be=(e=>(e[e.None=1]="None",e[e.Focusable=2]="Focusable",e[e.Hidden=4]="Hidden",e))(Be||{});let tt=W({name:"Hidden",props:{as:{type:[Object,String],default:"div"},features:{type:Number,default:1}},setup(e,{slots:t,attrs:n}){return()=>{let{features:r,...a}=e,l={"aria-hidden":(r&2)===2?!0:void 0,style:{position:"fixed",top:1,left:1,width:1,height:0,padding:0,margin:-1,overflow:"hidden",clip:"rect(0, 0, 0, 0)",whiteSpace:"nowrap",borderWidth:"0",...(r&4)===4&&(r&2)!==2&&{display:"none"}}};return ye({ourProps:l,theirProps:a,slot:{},attrs:n,slots:t,name:"Hidden"})}}});function M(e){return[e.screenX,e.screenY]}function nt(){let e=w([-1,-1]);return{wasMoved(t){let n=M(t);return e.value[0]===n[0]&&e.value[1]===n[1]?!1:(e.value=n,!0)},update(t){e.value=M(t)}}}let H=/([\u2700-\u27BF]|[\uE000-\uF8FF]|\uD83C[\uDC00-\uDFFF]|\uD83D[\uDC00-\uDFFF]|[\u2011-\u26FF]|\uD83E[\uDD10-\uDDFF])/g;function V(e){var t,n;let r=(t=e.innerText)!=null?t:"",a=e.cloneNode(!0);if(!(a instanceof HTMLElement))return r;let l=!1;for(let i of a.querySelectorAll('[hidden],[aria-hidden],[role="img"]'))i.remove(),l=!0;let o=l?(n=a.innerText)!=null?n:"":r;return H.test(o)&&(o=o.replace(H,"")),o}function $e(e){let t=e.getAttribute("aria-label");if(typeof t=="string")return t.trim();let n=e.getAttribute("aria-labelledby");if(n){let r=n.split(" ").map(a=>{let l=document.getElementById(a);if(l){let o=l.getAttribute("aria-label");return typeof o=="string"?o.trim():V(l).trim()}return null}).filter(Boolean);if(r.length>0)return r.join(", ")}return V(e).trim()}function rt(e){let t=w(""),n=w("");return()=>{let r=b(e);if(!r)return"";let a=r.innerText;if(t.value===a)return n.value;let l=$e(r).trim().toLowerCase();return t.value=a,n.value=l,l}}export{Xe as D,z as E,ye as H,Ke as K,we as N,He as O,Ve as P,ge as T,Ze as _,ke as a,Be as b,Ye as c,Qe as d,rt as e,tt as f,nt as g,G as h,Ne as i,We as j,O as k,Le as l,K as m,_e as n,b as o,qe as p,De as q,ze as t,L as u,Je as v,q as w,Ge as x,et as y};
@@ -0,0 +1,56 @@
1
+ <!DOCTYPE html>
2
+ <html lang="pt-br">
3
+ <head data-capo=""><meta charset="UTF-8"><meta name="viewport" content="width=device-width"><title>E-Com Plus demoStore</title><script data-astro-transition-persist="astro-23j4qrxj-1">
4
+ window._emitApiContext = (id = null) => {
5
+ console.log('[ctx] emit ' + id);
6
+ window.dispatchEvent(new Event('storefront:apiContext'));
7
+ window._emitedContextId = id;
8
+ };
9
+ window.ECOM_STORE_ID = 1011;
10
+ window.ECOM_LANG = 'pt_br';
11
+ window.ECOM_CURRENCY = 'BRL';
12
+ window.ECOM_CURRENCY_SYMBOL = 'R$';
13
+ window.ECOM_COUNTRY_CODE = 'BR';
14
+ window.$storefront = {"settings":{"domain":"demo.ecomplus.app","name":"E-Com Plus demoStore","description":"E-Com Plus é a plataforma de e-commerce API-first desenhada para modelos de negócio e experiências de compra únicas. Flexibilidade do código aberto com facilidade de SaaS para que você comece rápido, venda do seu jeito e escale sem limitações.","logo":"/img/uploads/logo.png","icon":"/img/uploads/ecom-icon.png","primaryColor":"#37003c","email":"","phone":"","address":"","corporateName":"","docNumber":"","lang":"pt_br","currency":"BRL","currencySymbol":"R$","countryCode":"BR","whatsapp":"(31) 9 8272-1558","instagram":"https://www.instagram.com/ecomclub/","facebook":"https://www.facebook.com/ecom.clubpage/","twitter":"","youtube":"https://www.youtube.com/channel/UCBlIxK5JAub0E1EX_qHdzmA","tiktok":"","pinterest":"","threads":"","serviceLinks":[{"title":"Fale conosco","href":"/p/contato"},{"title":"Privacidade e termos","href":"/p/terms"}],"paymentMethods":["pix","visa","mastercard","elo","amex","hipercard","boleto"],"modules":{"list_payments":{"installments_option":{"max_number":null,"monthly_interest":null,"min_installment":null},"discount_option":{"label":null,"apply_at":null,"type":null,"value":null},"loyalty_points_program":{"id":null,"name":null,"ratio":null,"earn_percentage":null}},"calculate_shipping":{"free_shipping_from_value":200}}},"data":{}};
15
+ window._firstLoadContextId = null;</script><script>
16
+ $storefront.apiContext = null;
17
+ delete $storefront.apiContext;
18
+ delete $storefront.context;
19
+ _emitApiContext();</script><script>
20
+ window.$firebaseConfig = {
21
+ apiKey: "AIzaSyCnvm7QrPKzSBrUi09Z3zTgjDST0t4Yikg",
22
+ authDomain: "ecom2-demo.firebaseapp.com",
23
+ projectId: "ecom2-demo",
24
+ storageBucket: "ecom2-demo.appspot.com",
25
+ messagingSenderId: "70369627313",
26
+ appId: "1:70369627313:web:06634033b9c6208fe7e690"
27
+ };
28
+ </script><link rel="stylesheet" href="/_astro/_slug_.cfRx-rdA.css"><script type="module" src="/_astro/hoisted.3ec9NcvP.js"></script><meta name="theme-color" content="#37003c"><link rel="icon" type="image/png" href="/_image?f=png&#38;w=32&#38;h=32&#38;href=%2Fimg%2Fuploads%2Fecom-icon.png&#38;V=_" sizes="32x32"><link rel="icon" type="image/png" href="/_image?f=png&#38;w=192&#38;h=192&#38;href=%2Fimg%2Fuploads%2Fecom-icon.png&#38;V=_" sizes="192x192"><meta name="description" content="E-Com Plus é a plataforma de e-commerce API-first desenhada para modelos de negócio e experiências de compra únicas. Flexibilidade do código aberto com facilidade de SaaS para que você comece rápido, venda do seu jeito e escale sem limitações."><meta name="author" content="E-Com Plus demoStore"><meta name="generator" content="Astro v4.0.7"><link rel="canonical" href="https://demo.ecomplus.app/app/account/"><link rel="apple-touch-icon" href="/_image?f=png&#38;w=192&#38;h=192&#38;href=%2Fimg%2Fuploads%2Fecom-icon.png&#38;V=_"><meta name="apple-mobile-web-app-capable" content="yes"><meta name="apple-mobile-web-app-status-bar-style" content="default"><meta property="og:site_name" content="E-Com Plus demoStore"><meta property="og:url" content="https://demo.ecomplus.app/app/account/"><meta property="og:title" content="E-Com Plus demoStore"><meta property="og:description" content="E-Com Plus é a plataforma de e-commerce API-first desenhada para modelos de negócio e experiências de compra únicas. Flexibilidade do código aberto com facilidade de SaaS para que você comece rápido, venda do seu jeito e escale sem limitações."><meta property="og:type" content="website"><meta property="og:locale" content="ptBR"><meta name="twitter:card" content="summary"><meta name="ecom-store-id" content="1011"><script type="application/ld+json">{"@context":"http://schema.org","@type":"Organization","name":"E-Com Plus demoStore","url":"https://demo.ecomplus.app/","logo":"https://demo.ecomplus.app/img/uploads/logo.png"}</script></head>
29
+ <body style="visibility:hidden" class="!visible"> <!-- Prevent FOUC -->
30
+ <div id="teleported-overlap" class="relative z-[59]"></div>
31
+ <div id="teleported-top" class="relative z-[19]"></div>
32
+
33
+
34
+
35
+
36
+
37
+
38
+ <main>
39
+ <style>astro-island,astro-slot,astro-static-slot{display:contents}</style><script>(()=>{var e=async t=>{await(await t())()};(self.Astro||(self.Astro={})).only=e;window.dispatchEvent(new Event("astro:only"));})();;(()=>{var b=Object.defineProperty;var f=(c,o,i)=>o in c?b(c,o,{enumerable:!0,configurable:!0,writable:!0,value:i}):c[o]=i;var l=(c,o,i)=>(f(c,typeof o!="symbol"?o+"":o,i),i);var p;{let c={0:t=>m(t),1:t=>i(t),2:t=>new RegExp(t),3:t=>new Date(t),4:t=>new Map(i(t)),5:t=>new Set(i(t)),6:t=>BigInt(t),7:t=>new URL(t),8:t=>new Uint8Array(t),9:t=>new Uint16Array(t),10:t=>new Uint32Array(t)},o=t=>{let[e,r]=t;return e in c?c[e](r):void 0},i=t=>t.map(o),m=t=>typeof t!="object"||t===null?t:Object.fromEntries(Object.entries(t).map(([e,r])=>[e,o(r)]));customElements.get("astro-island")||customElements.define("astro-island",(p=class extends HTMLElement{constructor(){super(...arguments);l(this,"Component");l(this,"hydrator");l(this,"hydrate",async()=>{var d;if(!this.hydrator||!this.isConnected)return;let e=(d=this.parentElement)==null?void 0:d.closest("astro-island[ssr]");if(e){e.addEventListener("astro:hydrate",this.hydrate,{once:!0});return}let r=this.querySelectorAll("astro-slot"),a={},h=this.querySelectorAll("template[data-astro-template]");for(let n of h){let s=n.closest(this.tagName);s!=null&&s.isSameNode(this)&&(a[n.getAttribute("data-astro-template")||"default"]=n.innerHTML,n.remove())}for(let n of r){let s=n.closest(this.tagName);s!=null&&s.isSameNode(this)&&(a[n.getAttribute("name")||"default"]=n.innerHTML)}let u;try{u=this.hasAttribute("props")?m(JSON.parse(this.getAttribute("props"))):{}}catch(n){let s=this.getAttribute("component-url")||"<unknown>",y=this.getAttribute("component-export");throw y&&(s+=` (export ${y})`),console.error(`[hydrate] Error parsing props for component ${s}`,this.getAttribute("props"),n),n}await this.hydrator(this)(this.Component,u,a,{client:this.getAttribute("client")}),this.removeAttribute("ssr"),this.dispatchEvent(new CustomEvent("astro:hydrate"))});l(this,"unmount",()=>{this.isConnected||this.dispatchEvent(new CustomEvent("astro:unmount"))})}disconnectedCallback(){document.removeEventListener("astro:after-swap",this.unmount),document.addEventListener("astro:after-swap",this.unmount,{once:!0})}connectedCallback(){if(!this.hasAttribute("await-children")||document.readyState==="interactive"||document.readyState==="complete")this.childrenConnectedCallback();else{let e=()=>{document.removeEventListener("DOMContentLoaded",e),r.disconnect(),this.childrenConnectedCallback()},r=new MutationObserver(()=>{var a;((a=this.lastChild)==null?void 0:a.nodeType)===Node.COMMENT_NODE&&this.lastChild.nodeValue==="astro:end"&&(this.lastChild.remove(),e())});r.observe(this,{childList:!0}),document.addEventListener("DOMContentLoaded",e)}}async childrenConnectedCallback(){let e=this.getAttribute("before-hydration-url");e&&await import(e),this.start()}start(){let e=JSON.parse(this.getAttribute("opts")),r=this.getAttribute("client");if(Astro[r]===void 0){window.addEventListener(`astro:${r}`,()=>this.start(),{once:!0});return}Astro[r](async()=>{let a=this.getAttribute("renderer-url"),[h,{default:u}]=await Promise.all([import(this.getAttribute("component-url")),a?import(a):()=>()=>{}]),d=this.getAttribute("component-export")||"default";if(!d.includes("."))this.Component=h[d];else{this.Component=h;for(let n of d.split("."))this.Component=this.Component[n]}return this.hydrator=u,this.hydrate},e,this)}attributeChangedCallback(){this.hydrate()}},l(p,"observedAttributes",["props"]),p))}})();</script><astro-island uid="Z1ufmnP" component-url="/_astro/AccountPage.Osc6ffV0.js" component-export="default" renderer-url="/_astro/client.PdegUP6S.js" props="{}" ssr="" client="only" opts="{&quot;name&quot;:&quot;AccountPage&quot;,&quot;value&quot;:true}" await-children=""><template data-astro-template="logo"><picture>
40
+ <source type="image/avif" srcset="/_astro/logo_Z1KIIl1.avif 300w" sizes="150px"><source type="image/webp" srcset="/_astro/logo_1UBsBq.webp 300w" sizes="150px"><source type="image/png" srcset="/_astro/logo_Z1K5PE9.png 300w" sizes="150px">
41
+ <img src="/_astro/logo_Z1K5PE9.png" alt="E-Com Plus demoStore" loading="lazy" decoding="async" slot="logo" class="max-w-[150px]" width="300" height="71">
42
+ </picture></template><!--astro:end--></astro-island>
43
+ </main>
44
+
45
+
46
+
47
+
48
+
49
+
50
+ <div id="teleported-bottom" class="relative z-[19]"></div>
51
+ <picture data-alt="Icon" class="hidden absolute" style="bottom: -1000px">
52
+ <source type="image/png" srcset="/_astro/ecom-icon_t3guw.png 32w,/_astro/ecom-icon_12falx.png 192w,/_astro/ecom-icon_15pqnO.png 512w" sizes="32px">
53
+
54
+ </picture>
55
+ </body>
56
+ </html>
@@ -0,0 +1,96 @@
1
+ <!DOCTYPE html>
2
+ <html lang="pt-br">
3
+ <head data-capo=""><meta charset="UTF-8"><meta name="viewport" content="width=device-width"><title>E-Com Plus demoStore</title><script data-astro-transition-persist="astro-23j4qrxj-1">
4
+ window._emitApiContext = (id = null) => {
5
+ console.log('[ctx] emit ' + id);
6
+ window.dispatchEvent(new Event('storefront:apiContext'));
7
+ window._emitedContextId = id;
8
+ };
9
+ window.ECOM_STORE_ID = 1011;
10
+ window.ECOM_LANG = 'pt_br';
11
+ window.ECOM_CURRENCY = 'BRL';
12
+ window.ECOM_CURRENCY_SYMBOL = 'R$';
13
+ window.ECOM_COUNTRY_CODE = 'BR';
14
+ window.$storefront = {"settings":{"domain":"demo.ecomplus.app","name":"E-Com Plus demoStore","description":"E-Com Plus é a plataforma de e-commerce API-first desenhada para modelos de negócio e experiências de compra únicas. Flexibilidade do código aberto com facilidade de SaaS para que você comece rápido, venda do seu jeito e escale sem limitações.","logo":"/img/uploads/logo.png","icon":"/img/uploads/ecom-icon.png","primaryColor":"#37003c","email":"","phone":"","address":"","corporateName":"","docNumber":"","lang":"pt_br","currency":"BRL","currencySymbol":"R$","countryCode":"BR","whatsapp":"(31) 9 8272-1558","instagram":"https://www.instagram.com/ecomclub/","facebook":"https://www.facebook.com/ecom.clubpage/","twitter":"","youtube":"https://www.youtube.com/channel/UCBlIxK5JAub0E1EX_qHdzmA","tiktok":"","pinterest":"","threads":"","serviceLinks":[{"title":"Fale conosco","href":"/p/contato"},{"title":"Privacidade e termos","href":"/p/terms"}],"paymentMethods":["pix","visa","mastercard","elo","amex","hipercard","boleto"],"modules":{"list_payments":{"installments_option":{"max_number":null,"monthly_interest":null,"min_installment":null},"discount_option":{"label":null,"apply_at":null,"type":null,"value":null},"loyalty_points_program":{"id":null,"name":null,"ratio":null,"earn_percentage":null}},"calculate_shipping":{"free_shipping_from_value":200}}},"data":{}};
15
+ window._firstLoadContextId = null;</script><script>
16
+ $storefront.apiContext = null;
17
+ delete $storefront.apiContext;
18
+ delete $storefront.context;
19
+ _emitApiContext();</script><script>
20
+ window.$firebaseConfig = {
21
+ apiKey: "AIzaSyCnvm7QrPKzSBrUi09Z3zTgjDST0t4Yikg",
22
+ authDomain: "ecom2-demo.firebaseapp.com",
23
+ projectId: "ecom2-demo",
24
+ storageBucket: "ecom2-demo.appspot.com",
25
+ messagingSenderId: "70369627313",
26
+ appId: "1:70369627313:web:06634033b9c6208fe7e690"
27
+ };
28
+ </script><link rel="stylesheet" href="https://cdn.jsdelivr.net/npm/@ecomplus/storefront-twbs@7/dist/cdn/storefront-twbs.min.css"><style>
29
+ body {
30
+ --primary: var(--c-primary);
31
+ --primary-yiq: var(--c-on-primary);
32
+ --primary-rgb: var(--rgb-primary);
33
+ --primary-darken: var(--c-primary);
34
+ --primary-darken-yiq: var(--c-on-primary);
35
+ --primary-darken-rgb: var(--rgb-primary);
36
+ --primary-dark: var(--c-primary-bold);
37
+ --primary-dark-yiq: var(--c-on-primary-bold);
38
+ --primary-dark-rgb: var(--rgb-primary-bold);
39
+ --primary-darker: var(--c-primary-bold);
40
+ --primary-darker-yiq: var(--c-on-primary-bold);
41
+ --primary-darker-rgb: var(--rgb-primary-bold);
42
+ --primary-darkest: rgb(var(--rgb-primary-900));
43
+ --primary-darkest-yiq: var(--c-on-dark);
44
+ --primary-darkest-rgb: var(--rgb-primary-900);
45
+ --primary-black: rgb(var(--rgb-primary-950));
46
+ --primary-lighten: var(--c-primary);
47
+ --primary-lighten-yiq: var(--c-on-primary);
48
+ --primary-lighten-rgb: var(--rgb-primary);
49
+ --primary-light: var(--c-primary-subtle);
50
+ --primary-light-yiq: var(--c-on-primary-subtle);
51
+ --primary-light-rgb: var(--rgb-primary-subtle);
52
+ --primary-lighter: var(--c-primary-subtle);
53
+ --primary-lighter-yiq: var(--c-on-primary-subtle);
54
+ --primary-lighter-rgb: var(--rgb-primary-subtle);
55
+ --primary-lightest: rgb(var(--rgb-primary-200));
56
+ --primary-lightest-yiq: var(--c-on-light);
57
+ --primary-lightest-rgb: var(--rgb-primary-200);
58
+ }
59
+ #storefront-app .lead {
60
+ margin-bottom: 1.25rem;
61
+ }
62
+ #storefront-app hr {
63
+ margin-top: 1rem;
64
+ margin-bottom: 1rem;
65
+ }
66
+ #storefront-app p {
67
+ margin-bottom: 1rem;
68
+ }
69
+ </style><link rel="stylesheet" href="/_astro/_slug_.cfRx-rdA.css"><script type="module" src="/_astro/hoisted.UnTlypMd.js"></script><meta name="theme-color" content="#37003c"><link rel="icon" type="image/png" href="/_image?f=png&#38;w=32&#38;h=32&#38;href=%2Fimg%2Fuploads%2Fecom-icon.png&#38;V=_" sizes="32x32"><link rel="icon" type="image/png" href="/_image?f=png&#38;w=192&#38;h=192&#38;href=%2Fimg%2Fuploads%2Fecom-icon.png&#38;V=_" sizes="192x192"><meta name="description" content="E-Com Plus é a plataforma de e-commerce API-first desenhada para modelos de negócio e experiências de compra únicas. Flexibilidade do código aberto com facilidade de SaaS para que você comece rápido, venda do seu jeito e escale sem limitações."><meta name="author" content="E-Com Plus demoStore"><meta name="generator" content="Astro v4.0.7"><link rel="canonical" href="https://demo.ecomplus.app/app/"><link rel="apple-touch-icon" href="/_image?f=png&#38;w=192&#38;h=192&#38;href=%2Fimg%2Fuploads%2Fecom-icon.png&#38;V=_"><meta name="apple-mobile-web-app-capable" content="yes"><meta name="apple-mobile-web-app-status-bar-style" content="default"><meta property="og:site_name" content="E-Com Plus demoStore"><meta property="og:url" content="https://demo.ecomplus.app/app/"><meta property="og:title" content="E-Com Plus demoStore"><meta property="og:description" content="E-Com Plus é a plataforma de e-commerce API-first desenhada para modelos de negócio e experiências de compra únicas. Flexibilidade do código aberto com facilidade de SaaS para que você comece rápido, venda do seu jeito e escale sem limitações."><meta property="og:type" content="website"><meta property="og:locale" content="ptBR"><meta name="twitter:card" content="summary"><meta name="ecom-store-id" content="1011"><script type="application/ld+json">{"@context":"http://schema.org","@type":"Organization","name":"E-Com Plus demoStore","url":"https://demo.ecomplus.app/","logo":"https://demo.ecomplus.app/img/uploads/logo.png"}</script></head>
70
+ <body style="visibility:hidden" class="!visible"> <!-- Prevent FOUC -->
71
+ <div id="teleported-overlap" class="relative z-[59]"></div>
72
+ <div id="teleported-top" class="relative z-[19]"></div>
73
+
74
+
75
+
76
+
77
+
78
+
79
+ <article class="flex min-h-screen flex-col justify-end"><section class="bg-base-50"><div class="ui-section flex flex-wrap items-center justify-center gap-6 lg:gap-12"><a href="/"><!--[--><picture>
80
+ <source type="image/avif" srcset="/_astro/logo_Z1KIIl1.avif 300w" sizes="150px"><source type="image/webp" srcset="/_astro/logo_1UBsBq.webp 300w" sizes="150px"><source type="image/png" srcset="/_astro/logo_Z1K5PE9.png 300w" sizes="150px">
81
+ <img src="/_astro/logo_Z1K5PE9.png" alt="E-Com Plus demoStore" loading="lazy" decoding="async" slot="logo" class="max-w-[150px]" width="300" height="71">
82
+ </picture><!--]--></a><div class="flex items-center gap-2"><i class="i-shield-check-solid bg-success-400 m-0 text-3xl"></i><span class="text-base-600 text-base">Compra segura</span></div></div></section><section class="grow"><article id="storefront-app"></article></section><section class="bg-base-50 mt-4 lg:mt-8"><nav class="ui-section-slim"><ul class="mt-6 flex flex-wrap justify-center gap-6 lg:gap-8"><!--[--><li><a href="/p/contato" target="blank" class="ui-link text-base-700"><!--[-->Fale conosco <i class="bg-base-300 i-arrow-top-right-on-square ml-0.5"></i><!--]--></a></li><li><a href="/p/terms" target="blank" class="ui-link text-base-700"><!--[-->Privacidade e termos <i class="bg-base-300 i-arrow-top-right-on-square ml-0.5"></i><!--]--></a></li><!--]--></ul></nav><div class="ui-section"><div class="flex flex-wrap items-start justify-between gap-5 lg:flex-nowrap"><ul class="mx-auto flex items-center gap-x-6 gap-y-3 overflow-x-auto md:mx-0 md:flex-wrap md:overflow-hidden lg:gap-x-8"><!--[--><li><a href="/p/trocas"><!--[--><!--[--><!--]--><span class="flex items-center"><span class="[&amp;&gt;*]:from-success-200 [&amp;&gt;*]:to-success-700 mr-2 text-4xl [&amp;&gt;*]:bg-gradient-to-br"><i class="i-arrow-path-rounded-square"></i></span><span class="text-base-600 max-w-[140px] text-sm font-medium">Troca garantida <!----></span></span><!--]--></a></li><li><a href="https://transparencyreport.google.com/safe-browsing/search?url=demo.ecomplus.app"><!--[--><!--[--><!--]--><span class="flex items-center"><span class="[&amp;&gt;*]:from-success-200 [&amp;&gt;*]:to-success-700 mr-2 text-4xl [&amp;&gt;*]:bg-gradient-to-br"><i class="i-check-badge"></i></span><span class="text-base-600 max-w-[140px] text-sm font-medium">Google Navegação Segura <i class="bg-base-400 i-arrow-top-right-on-square ml-0.5"></i></span></span><!--]--></a></li><li><span href><!--[--><!--[--><!--]--><span class="flex items-center"><span class="[&amp;&gt;*]:from-success-200 [&amp;&gt;*]:to-success-700 mr-2 text-4xl [&amp;&gt;*]:bg-gradient-to-br"><i class="i-lock-closed"></i></span><span class="text-base-600 max-w-[140px] text-sm font-medium">Conexão SSL <!----></span></span><!--]--></span></li><!--]--></ul><div class="mx-auto flex flex-wrap items-center justify-end gap-4 overflow-x-auto text-2xl md:mx-0 md:flex-nowrap md:overflow-hidden"><!--[--><i class="i-pix text-[#77B6A8]"></i><i class="i-visa"></i><i class="i-mastercard"></i><i class="i-elo"></i><i class="i-amex"></i><i class="i-hipercard"></i><b class="mb-1 text-[57%] leading-none tracking-tighter text-black">boleto</b><!--]--></div></div><div class="mt-7 justify-between gap-4 text-center text-xs md:flex md:text-left"><div class="mb-3 md:mb-0"> @ 2023 / </div><a href="https://www.ecomplus.io/" class="italic text-[#37003c]"><!--[--> powered by <b>e-com.plus</b><!--]--></a></div></div></section></article>
83
+
84
+
85
+
86
+
87
+
88
+
89
+
90
+ <div id="teleported-bottom" class="relative z-[19]"></div>
91
+ <picture data-alt="Icon" class="hidden absolute" style="bottom: -1000px">
92
+ <source type="image/png" srcset="/_astro/ecom-icon_t3guw.png 32w,/_astro/ecom-icon_12falx.png 192w,/_astro/ecom-icon_15pqnO.png 512w" sizes="32px">
93
+
94
+ </picture>
95
+ </body>
96
+ </html>