cloudcommerce 0.2.1 → 0.2.3
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/.eslintrc.cjs +1 -93
- package/CHANGELOG.md +37 -0
- package/ecomplus-stores/monocard/functions/ssr/package.json +2 -1
- package/ecomplus-stores/tia-sonia/functions/ssr/package.json +2 -1
- package/package.json +7 -7
- package/packages/api/package.json +1 -1
- package/packages/apps/correios/package.json +2 -2
- package/packages/apps/custom-payment/package.json +1 -1
- package/packages/apps/custom-shipping/package.json +1 -1
- package/packages/apps/datafrete/package.json +4 -4
- package/packages/apps/discounts/package.json +1 -1
- package/packages/apps/emails/package.json +2 -2
- package/packages/apps/fb-conversions/lib/fb-conversions-events.js +131 -111
- package/packages/apps/fb-conversions/lib/fb-conversions-events.js.map +1 -1
- package/packages/apps/fb-conversions/lib/functions-lib/create-fb-objects.js +69 -0
- package/packages/apps/fb-conversions/lib/functions-lib/create-fb-objects.js.map +1 -0
- package/packages/apps/fb-conversions/package.json +4 -4
- package/packages/apps/fb-conversions/src/fb-conversions-events.ts +173 -125
- package/packages/apps/fb-conversions/src/functions-lib/create-fb-objects.ts +104 -0
- package/packages/apps/frenet/package.json +4 -4
- package/packages/apps/galaxpay/lib/galaxpay-list-payments.d.ts +2 -2
- package/packages/apps/galaxpay/lib/galaxpay.d.ts +2 -2
- package/packages/apps/galaxpay/package.json +4 -4
- package/packages/apps/google-analytics/package.json +4 -4
- package/packages/apps/infinitepay/package.json +4 -4
- package/packages/apps/jadlog/package.json +2 -2
- package/packages/apps/loyalty-points/package.json +1 -1
- package/packages/apps/mercadopago/package.json +4 -4
- package/packages/apps/pagarme/package.json +4 -4
- package/packages/apps/paghiper/CHANGELOG.md +1 -0
- package/packages/apps/paghiper/README.md +1 -0
- package/packages/apps/paghiper/lib/functions-lib/create-axios.d.ts +2 -0
- package/packages/apps/paghiper/lib/functions-lib/create-axios.js +22 -0
- package/packages/apps/paghiper/lib/functions-lib/create-axios.js.map +1 -0
- package/packages/apps/paghiper/lib/functions-lib/handle-webhook.d.ts +3 -0
- package/packages/apps/paghiper/lib/functions-lib/handle-webhook.js +154 -0
- package/packages/apps/paghiper/lib/functions-lib/handle-webhook.js.map +1 -0
- package/packages/apps/paghiper/lib/index.d.ts +1 -0
- package/packages/apps/paghiper/lib/index.js +2 -0
- package/packages/apps/paghiper/lib/index.js.map +1 -0
- package/packages/apps/paghiper/lib/paghiper-create-transaction.d.ts +71 -0
- package/packages/apps/paghiper/lib/paghiper-create-transaction.js +199 -0
- package/packages/apps/paghiper/lib/paghiper-create-transaction.js.map +1 -0
- package/packages/apps/paghiper/lib/paghiper-list-payments.d.ts +7 -0
- package/packages/apps/paghiper/lib/paghiper-list-payments.js +97 -0
- package/packages/apps/paghiper/lib/paghiper-list-payments.js.map +1 -0
- package/packages/apps/paghiper/lib/paghiper-webhook.d.ts +5 -0
- package/packages/apps/paghiper/lib/paghiper-webhook.js +18 -0
- package/packages/apps/paghiper/lib/paghiper-webhook.js.map +1 -0
- package/packages/apps/paghiper/lib/paghiper.d.ts +76 -0
- package/packages/apps/paghiper/lib/paghiper.js +12 -0
- package/packages/apps/paghiper/lib/paghiper.js.map +1 -0
- package/packages/apps/paghiper/package.json +36 -0
- package/packages/apps/paghiper/src/functions-lib/create-axios.ts +21 -0
- package/packages/apps/paghiper/src/functions-lib/handle-webhook.ts +176 -0
- package/packages/apps/paghiper/src/index.ts +1 -0
- package/packages/apps/paghiper/src/paghiper-create-transaction.ts +242 -0
- package/packages/apps/paghiper/src/paghiper-list-payments.ts +127 -0
- package/packages/apps/paghiper/src/paghiper-webhook.ts +17 -0
- package/packages/apps/paghiper/src/paghiper.ts +12 -0
- package/packages/apps/paghiper/tsconfig.json +6 -0
- package/packages/apps/paghiper/types/config-app.d.ts +34 -0
- package/packages/apps/paghiper/webhook.js +1 -0
- package/packages/apps/pix/package.json +4 -4
- package/packages/apps/tiny-erp/lib/integration/post-tiny-erp.js.map +1 -1
- package/packages/apps/tiny-erp/package.json +4 -4
- package/packages/apps/tiny-erp/src/integration/post-tiny-erp.ts +1 -1
- package/packages/cli/package.json +1 -1
- package/packages/config/package.json +1 -1
- package/packages/emails/package.json +2 -2
- package/packages/events/lib/firebase.js +2 -0
- package/packages/events/lib/firebase.js.map +1 -1
- package/packages/events/package.json +4 -3
- package/packages/events/src/firebase.ts +2 -0
- package/packages/firebase/lib/config.d.ts +3 -0
- package/packages/firebase/lib/config.js +4 -0
- package/packages/firebase/lib/config.js.map +1 -1
- package/packages/firebase/package.json +3 -3
- package/packages/firebase/src/config.ts +4 -0
- package/packages/i18n/package.json +1 -1
- package/packages/modules/lib/firebase/call-app-module.js +12 -0
- package/packages/modules/lib/firebase/call-app-module.js.map +1 -1
- package/packages/modules/package.json +6 -5
- package/packages/modules/src/firebase/call-app-module.ts +12 -0
- package/packages/passport/package.json +3 -3
- package/packages/ssr/package.json +7 -7
- package/packages/storefront/.base.eslintrc.cjs +93 -0
- package/packages/storefront/.eslintrc.cjs +1 -1
- package/packages/storefront/astro.config.mjs +2 -0
- package/packages/storefront/client.d.ts +1 -1
- package/packages/storefront/config/storefront.cms.mjs +2 -2
- package/packages/storefront/dist/client/_astro/PitchBar.f3579a5b.js +1 -0
- package/packages/storefront/dist/client/_astro/Prices.8e5cead5.js +1 -0
- package/packages/storefront/dist/client/_astro/Prices.vue_vue_type_script_setup_true_lang.b8cbeb54.js +1 -0
- package/packages/storefront/dist/client/_astro/ProductCard.6d8b6d86.js +1 -0
- package/packages/storefront/dist/client/_astro/StickyHeader.7b0f3963.js +1 -0
- package/packages/storefront/dist/client/{assets/_...slug_.fea84512.css → _astro/_...slug_.97285eba.css} +1 -1
- package/packages/storefront/dist/client/_astro/client.3e777d4c.js +1 -0
- package/packages/storefront/dist/client/_astro/ecom-utils.92f137f6.js +1 -0
- package/packages/storefront/dist/client/_astro/hoisted.6edd7364.js +1 -0
- package/packages/storefront/dist/client/{assets → _astro}/index.90df622b.css +0 -0
- package/packages/storefront/dist/client/_astro/modules-info.dde776b4.js +1 -0
- package/packages/storefront/dist/client/_astro/runtime-core.esm-bundler.7cf33881.js +1 -0
- package/packages/storefront/dist/client/_astro/runtime-dom.esm-bundler.1a4c7407.js +1 -0
- package/packages/storefront/dist/client/{assets → _astro}/server.4d9646d8.css +0 -0
- package/packages/storefront/dist/client/_astro/session-utm.72684b84.js +1 -0
- package/packages/storefront/dist/client/{chunks/workbox-window.prod.es5.10f2e5ac.js → _astro/workbox-window.prod.es5.295a6886.js} +0 -0
- package/packages/storefront/dist/client/fallback/index.html +73 -0
- package/packages/storefront/dist/client/sw.js +1 -1
- package/packages/storefront/dist/server/chunks/astro.89bd9221.mjs +3378 -0
- package/packages/storefront/dist/server/chunks/pages/all.c27193d6.mjs +2195 -0
- package/packages/storefront/dist/server/chunks/prerender.89f63027.mjs +2 -0
- package/packages/storefront/dist/server/entry.mjs +516 -5742
- package/packages/storefront/package.json +9 -9
- package/packages/storefront/src/lib/components/Carousel.vue +1 -0
- package/packages/storefront/src/lib/components/CarouselControl.vue +1 -1
- package/packages/storefront/src/lib/components/PitchBar.vue +27 -10
- package/packages/storefront/src/lib/components/Prices.vue +24 -24
- package/packages/storefront/src/lib/components/StickyHeader.vue +56 -0
- package/packages/storefront/src/lib/layouts/Base.astro +6 -0
- package/packages/storefront/src/lib/layouts/BaseBody.astro +0 -1
- package/packages/storefront/src/lib/layouts/PagesHeader.astro +24 -3
- package/packages/storefront/src/lib/scripts/modules-info-preset.ts +60 -0
- package/packages/storefront/src/lib/ssr/Picture.astro +18 -0
- package/packages/storefront/src/lib/ssr/image.ts +12 -2
- package/packages/storefront/src/lib/ssr-context.ts +18 -4
- package/packages/storefront/src/lib/state/modules-info.ts +44 -14
- package/packages/storefront/src/lib/types/cms-settings.d.ts +2 -1
- package/packages/storefront/storefront.config.mjs +20 -8
- package/packages/storefront/tailwind.config.cjs +1 -1
- package/packages/types/index.ts +17 -0
- package/packages/types/package.json +1 -1
- package/packages/storefront/dist/client/PitchBar.afe7ff5c.js +0 -1
- package/packages/storefront/dist/client/Prices.eaf8a32c.js +0 -1
- package/packages/storefront/dist/client/ProductCard.1106b153.js +0 -1
- package/packages/storefront/dist/client/chunks/Prices.vue_vue_type_script_setup_true_lang.781b6501.js +0 -1
- package/packages/storefront/dist/client/chunks/ecom-utils.63984324.js +0 -1
- package/packages/storefront/dist/client/chunks/runtime-core.esm-bundler.fa6cdb60.js +0 -1
- package/packages/storefront/dist/client/chunks/session-utm.2de8b604.js +0 -1
- package/packages/storefront/dist/client/client.367a6497.js +0 -1
- package/packages/storefront/dist/client/hoisted.4671ed15.js +0 -1
|
@@ -0,0 +1,73 @@
|
|
|
1
|
+
<!DOCTYPE html>
|
|
2
|
+
<html lang="pt-br">
|
|
3
|
+
<head>
|
|
4
|
+
<meta charset="UTF-8">
|
|
5
|
+
<meta name="viewport" content="width=device-width">
|
|
6
|
+
<meta name="theme-color" content="#137c5c">
|
|
7
|
+
<link rel="icon" href="/_image?f=png&w=32&h=32&href=%2Fimg%2Fuploads%2Flarge-icon.png&V=_">
|
|
8
|
+
<title>My Shop</title>
|
|
9
|
+
<meta name="description" content="My PWA Shop">
|
|
10
|
+
<meta name="author" content="My Shop">
|
|
11
|
+
<meta name="generator" content="Astro v2.0.2">
|
|
12
|
+
<link rel="canonical" href="https://ecom2-002.web.app/fallback/">
|
|
13
|
+
<link rel="apple-touch-icon" href="/img/uploads/large-icon.png">
|
|
14
|
+
<meta name="apple-mobile-web-app-capable" content="yes">
|
|
15
|
+
<meta name="apple-mobile-web-app-status-bar-style" content="default">
|
|
16
|
+
<meta property="og:site_name" content="My Shop">
|
|
17
|
+
<meta property="og:url" content="https://ecom2-002.web.app/fallback/">
|
|
18
|
+
<meta property="og:title" content="My Shop">
|
|
19
|
+
<meta property="og:description" content="My PWA Shop">
|
|
20
|
+
<meta property="og:type" content="website">
|
|
21
|
+
<meta property="og:locale" content="ptBR">
|
|
22
|
+
|
|
23
|
+
|
|
24
|
+
<meta name="twitter:card" content="summary">
|
|
25
|
+
|
|
26
|
+
<meta name="ecom-store-id" content="1011">
|
|
27
|
+
<link rel="manifest" href="/manifest.webmanifest">
|
|
28
|
+
|
|
29
|
+
<script>
|
|
30
|
+
window.ECOM_STORE_ID = 1011;
|
|
31
|
+
window.ECOM_LANG = 'pt_br';
|
|
32
|
+
window.ECOM_CURRENCY = 'BRL';
|
|
33
|
+
window.ECOM_CURRENCY_SYMBOL = 'R$';
|
|
34
|
+
window.ECOM_COUNTRY_CODE = 'R$';
|
|
35
|
+
window.storefront = {"settings":{"domain":"ecom2-002.web.app","name":"My Shop","description":"My PWA Shop","logo":"/img/uploads/logo.webp","icon":"/img/uploads/large-icon.png","primary_color":"#137c5c","email":"","phone":"","address":"","corporate_name":"","doc_number":"","lang":"pt_br","currency":"BRL","currency_symbol":"R$","country_code":"BR","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":150}}}};</script>
|
|
36
|
+
<script type="application/ld+json">{"@context":"http://schema.org","@type":"Organization","name":"My Shop","url":"https://ecom2-002.web.app/","logo":"https://ecom2-002.web.app/img/uploads/logo.webp"}</script>
|
|
37
|
+
|
|
38
|
+
|
|
39
|
+
|
|
40
|
+
<script>
|
|
41
|
+
window.firebaseConfig = {
|
|
42
|
+
apiKey: 'AIzaSyCrVzemDgpyp9i6ni7Yc5ZuEVfXYwl-4J0',
|
|
43
|
+
authDomain: 'ecom2-002.firebaseapp.com',
|
|
44
|
+
projectId: 'ecom2-002',
|
|
45
|
+
storageBucket: 'ecom2-002.appspot.com',
|
|
46
|
+
messagingSenderId: '402807248219',
|
|
47
|
+
appId: '1:402807248219:web:cf7d57759751e74776367e',
|
|
48
|
+
measurementId: 'G-SC592CE0GB',
|
|
49
|
+
};
|
|
50
|
+
</script>
|
|
51
|
+
<link rel="stylesheet" href="/_astro/_...slug_.97285eba.css" /><script type="module" src="/_astro/hoisted.6edd7364.js"></script></head>
|
|
52
|
+
<body>
|
|
53
|
+
<style>astro-island,astro-slot{display:contents}</style><script>(self.Astro=self.Astro||{}).idle=t=>{const e=async()=>{await(await t())()};"requestIdleCallback"in window?window.requestIdleCallback(e):setTimeout(e,200)},window.dispatchEvent(new Event("astro:idle"));var l;{const c={0:t=>t,1:t=>JSON.parse(t,o),2:t=>new RegExp(t),3:t=>new Date(t),4:t=>new Map(JSON.parse(t,o)),5:t=>new Set(JSON.parse(t,o)),6:t=>BigInt(t),7:t=>new URL(t),8:t=>new Uint8Array(JSON.parse(t)),9:t=>new Uint16Array(JSON.parse(t)),10:t=>new Uint32Array(JSON.parse(t))},o=(t,s)=>{if(t===""||!Array.isArray(s))return s;const[e,n]=s;return e in c?c[e](n):void 0};customElements.get("astro-island")||customElements.define("astro-island",(l=class extends HTMLElement{constructor(){super(...arguments);this.hydrate=()=>{if(!this.hydrator||this.parentElement&&this.parentElement.closest("astro-island[ssr]"))return;const s=this.querySelectorAll("astro-slot"),e={},n=this.querySelectorAll("template[data-astro-template]");for(const r of n){const i=r.closest(this.tagName);!i||!i.isSameNode(this)||(e[r.getAttribute("data-astro-template")||"default"]=r.innerHTML,r.remove())}for(const r of s){const i=r.closest(this.tagName);!i||!i.isSameNode(this)||(e[r.getAttribute("name")||"default"]=r.innerHTML)}const a=this.hasAttribute("props")?JSON.parse(this.getAttribute("props"),o):{};this.hydrator(this)(this.Component,a,e,{client:this.getAttribute("client")}),this.removeAttribute("ssr"),window.removeEventListener("astro:hydrate",this.hydrate),window.dispatchEvent(new CustomEvent("astro:hydrate"))}}connectedCallback(){!this.hasAttribute("await-children")||this.firstChild?this.childrenConnectedCallback():new MutationObserver((s,e)=>{e.disconnect(),this.childrenConnectedCallback()}).observe(this,{childList:!0})}async childrenConnectedCallback(){window.addEventListener("astro:hydrate",this.hydrate);let s=this.getAttribute("before-hydration-url");s&&await import(s),this.start()}start(){const s=JSON.parse(this.getAttribute("opts")),e=this.getAttribute("client");if(Astro[e]===void 0){window.addEventListener(`astro:${e}`,()=>this.start(),{once:!0});return}Astro[e](async()=>{const n=this.getAttribute("renderer-url"),[a,{default:r}]=await Promise.all([import(this.getAttribute("component-url")),n?import(n):()=>()=>{}]),i=this.getAttribute("component-export")||"default";if(!i.includes("."))this.Component=a[i];else{this.Component=a;for(const d of i.split("."))this.Component=this.Component[d]}return this.hydrator=r,this.hydrate},s,this)}attributeChangedCallback(){this.hydrator&&this.hydrate()}},l.observedAttributes=["props"],l))}</script><script>(self.Astro=self.Astro||{}).load=a=>{(async()=>await(await a())())()},window.dispatchEvent(new Event("astro:load"));</script>
|
|
54
|
+
|
|
55
|
+
<astro-island uid="2a8ELd" component-url="/_astro/PitchBar.f3579a5b.js" component-export="default" renderer-url="/_astro/client.3e777d4c.js" props="{"slides":[1,"[[0,{\"href\":[0,\"/promotion\"],\"html\":[0,\"Aproveite nossos descontos de até 50%!\"]}],[0,{\"href\":[0,\"\"],\"html\":[0,\"<b>Frete grátis</b> para todo Brasil a partir de {{free_shipping_from_value}}\"]}]]"]}" ssr="" client="idle" opts="{"name":"PitchBar","value":true}" await-children=""><div data-pitch-bar class="bg-base-100"><div class="container md:w-2/3 mx-auto px-3 py-1"><div data-carousel><ul data-carousel-wrapper><!--[--><!--[--><li><a href="/promotion" class="hover:underline"><!--[--><!--[--><span class="prose text-sm text-base-800">Aproveite nossos descontos de até 50%!</span><!--]--><!--]--></a></li><li><span href class=""><!--[--><span class="prose text-sm text-base-800"><b>Frete grátis</b> para todo Brasil a partir de R$ 150,00</span><!--]--></span></li><!--]--><!--]--></ul><!--[--><div style="" class="text-xl leading-none text-base-400"><button type="button" aria-label="Anterior" data-carousel-control="previous" class="pr-2 bg-base-100 hover:text-base-700"><!--[--><i class="i-chevron-left m-0"></i><!--]--></button><button type="button" aria-label="Próximo" data-carousel-control="next" class="pl-2 bg-base-100 hover:text-base-700"><!--[--><i class="i-chevron-right m-0"></i><!--]--></button></div><!--]--></div></div></div></astro-island>
|
|
56
|
+
|
|
57
|
+
<astro-island uid="Z2abwf2" component-url="/_astro/StickyHeader.7b0f3963.js" component-export="default" renderer-url="/_astro/client.3e777d4c.js" props="{}" ssr="" client="load" opts="{"name":"StickyHeader","value":true}" await-children=""><header class="header bg-opacity-90 backdrop-blur-md sticky top-0 z-50 py-1 sm:py-2" data-sticky-header><div class="container"><div class="grid grid-flow-col auto-cols-max justify-between items-center"><!--[--><div class="header__aside md:hidden"><div class="i-bars-3-bottom-left"></div></div><!--]--><!--[--><astro-slot name="logo">
|
|
58
|
+
<h2><picture>
|
|
59
|
+
<source type="image/avif" srcset="/_image?f=avif&w=300&h=117&ar=2.570281124497992&href=%2Fimg%2Fuploads%2Flogo.webp 300w" sizes="150px"><source type="image/webp" srcset="/_image?f=webp&w=300&h=117&ar=2.570281124497992&href=%2Fimg%2Fuploads%2Flogo.webp 300w" sizes="150px">
|
|
60
|
+
<img alt="My Shop" src="/_image?f=webp&w=300&h=117&ar=2.570281124497992&href=%2Fimg%2Fuploads%2Flogo.webp" loading="lazy" decoding="async" alt="My Shop" fetchpriority="high">
|
|
61
|
+
</picture></h2>
|
|
62
|
+
</astro-slot><!--]--><div class="flex items-center"><!--[--><!--[--><!----><!--]--><!--[--><!--]--><!--[--><!--]--><!--]--></div></div></div></header></astro-island>
|
|
63
|
+
|
|
64
|
+
<link rel="stylesheet" href="/_astro/_...slug_.97285eba.css" /><script type="module" src="/_astro/hoisted.6edd7364.js"></script><main>
|
|
65
|
+
<h1>Error :/</h1>
|
|
66
|
+
<p class="instructions">
|
|
67
|
+
Check out the <code>src/pages</code> directory to get started.<br>
|
|
68
|
+
<strong>Code Challenge:</strong> Tweak the "Welcome to Astro" message above.
|
|
69
|
+
</p>
|
|
70
|
+
</main>
|
|
71
|
+
|
|
72
|
+
</body>
|
|
73
|
+
</html>
|
|
@@ -1 +1 @@
|
|
|
1
|
-
if(!self.define){let e,s={};const
|
|
1
|
+
if(!self.define){let e,s={};const r=(r,n)=>(r=new URL(r+".js",n).href,s[r]||new Promise((s=>{if("document"in self){const e=document.createElement("script");e.src=r,e.onload=s,document.head.appendChild(e)}else e=r,importScripts(r),s()})).then((()=>{let e=s[r];if(!e)throw new Error(`Module ${r} didn’t register its module`);return e})));self.define=(n,i)=>{const o=e||("document"in self?document.currentScript.src:"")||location.href;if(s[o])return;let t={};const a=e=>r(e,o),u={module:{uri:o},exports:t,require:a};s[o]=Promise.all(n.map((e=>u[e]||a(e)))).then((e=>(i(...e),t)))}}define(["./workbox-e2ee76b5"],(function(e){"use strict";self.skipWaiting(),e.clientsClaim(),e.precacheAndRoute([{url:"_astro/_...slug_.97285eba.css",revision:null},{url:"_astro/client.3e777d4c.js",revision:null},{url:"_astro/ecom-utils.92f137f6.js",revision:null},{url:"_astro/hoisted.6edd7364.js",revision:null},{url:"_astro/index.90df622b.css",revision:null},{url:"_astro/modules-info.dde776b4.js",revision:null},{url:"_astro/PitchBar.f3579a5b.js",revision:null},{url:"_astro/Prices.8e5cead5.js",revision:null},{url:"_astro/Prices.vue_vue_type_script_setup_true_lang.b8cbeb54.js",revision:null},{url:"_astro/ProductCard.6d8b6d86.js",revision:null},{url:"_astro/runtime-core.esm-bundler.7cf33881.js",revision:null},{url:"_astro/runtime-dom.esm-bundler.1a4c7407.js",revision:null},{url:"_astro/server.4d9646d8.css",revision:null},{url:"_astro/session-utm.72684b84.js",revision:null},{url:"_astro/StickyHeader.7b0f3963.js",revision:null},{url:"_astro/workbox-window.prod.es5.295a6886.js",revision:null},{url:"img/uploads/large-icon.png",revision:"0b35db516cfa7475b1c2f8c081e8d54d"},{url:"manifest.webmanifest",revision:"6a858866b0560997f368e27ab5418e15"}],{ignoreURLParametersMatching:[/.*/]}),e.cleanupOutdatedCaches(),e.registerRoute(new e.NavigationRoute(e.createHandlerBoundToURL("/404"))),e.registerRoute(/^\/$/,new e.NetworkFirst,"GET"),e.registerRoute(/\/((?!(?:admin|assets|img)(\/|$))[^.]+)(\.(?!js|css|xml|txt|png|jpg|jpeg|webp|avif|svg|gif)[^.]+)*$/,new e.NetworkFirst({cacheName:"pages",plugins:[new e.ExpirationPlugin({maxEntries:50,purgeOnQuotaError:!0})]}),"GET"),e.registerRoute(/^\/assets\//,new e.StaleWhileRevalidate({cacheName:"assets",plugins:[]}),"GET"),e.registerRoute(/^\/_image$/,new e.StaleWhileRevalidate({cacheName:"sharp-images",plugins:[new e.ExpirationPlugin({maxEntries:50,maxAgeSeconds:2592e3,purgeOnQuotaError:!0})]}),"GET"),e.registerRoute(/^\/img\/uploads\/.*\.(?:png|jpg|jpeg|webp|avif|svg|gif)$/,new e.StaleWhileRevalidate({cacheName:"cms-images",plugins:[new e.ExpirationPlugin({maxEntries:20,maxAgeSeconds:2592e3,purgeOnQuotaError:!0})]}),"GET"),e.registerRoute(/^https:\/\/ecomplus\.io/,new e.NetworkFirst({cacheName:"store-api",plugins:[new e.ExpirationPlugin({maxEntries:50,purgeOnQuotaError:!0})]}),"GET"),e.registerRoute(/^https:\/\/(((\w+\.)?ecoms\d)|(ecom[\w-]+(\.\w+)*\.digitaloceanspaces))\.com.*\/imgs\/normal\//,new e.CacheFirst({cacheName:"product-thumbnails",plugins:[new e.ExpirationPlugin({maxEntries:100,maxAgeSeconds:2592e3,purgeOnQuotaError:!0})]}),"GET"),e.registerRoute(/^https:\/\/(((\w+\.)?ecoms\d)|(ecom[\w-]+(\.\w+)*\.digitaloceanspaces))\.com.*\/imgs\/big\//,new e.CacheFirst({cacheName:"product-pictures",plugins:[new e.ExpirationPlugin({maxEntries:10,maxAgeSeconds:604800,purgeOnQuotaError:!0})]}),"GET")}));
|