cloudcommerce 0.22.3 → 0.22.4
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 -1
- package/CHANGELOG.md +8 -0
- package/ecomplus-stores/barra-doce/functions/many/package.json +3 -3
- package/ecomplus-stores/barra-doce/functions/ssr/content/settings.json +1 -0
- package/ecomplus-stores/barra-doce/functions/ssr/package.json +6 -6
- package/ecomplus-stores/barra-doce/functions/ssr/src/assets/style.css +1 -1
- package/ecomplus-stores/barra-doce/functions/ssr/src/components/AccountMenu.vue +1 -1
- package/ecomplus-stores/barra-doce/functions/ssr/src/components/Banner.vue +1 -0
- package/ecomplus-stores/barra-doce/functions/ssr/src/components/ProductCard.vue +2 -1
- package/ecomplus-stores/barra-doce/functions/ssr/src/components/ShopHeader.vue +4 -8
- package/ecomplus-stores/barra-doce/functions/ssr/src/components/ShopHeaderMenu.vue +1 -1
- package/ecomplus-stores/barra-doce/functions/with-apps/package.json +3 -3
- package/ecomplus-stores/barra-doce/package.json +1 -1
- package/ecomplus-stores/iluminim/functions/many/package.json +3 -3
- package/ecomplus-stores/iluminim/functions/ssr/package.json +6 -6
- package/ecomplus-stores/iluminim/functions/ssr/src/components/AccountMenu.vue +1 -1
- package/ecomplus-stores/iluminim/functions/ssr/src/components/ShopHeader.vue +1 -5
- package/ecomplus-stores/iluminim/functions/with-apps/package.json +3 -3
- package/ecomplus-stores/iluminim/package.json +1 -1
- package/package.json +7 -11
- package/packages/api/package.json +1 -1
- package/packages/apps/affilate-program/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 +1 -1
- package/packages/apps/discounts/package.json +1 -1
- package/packages/apps/emails/package.json +1 -1
- package/packages/apps/fb-conversions/package.json +1 -1
- package/packages/apps/flash-courier/package.json +1 -1
- package/packages/apps/frenet/package.json +1 -1
- package/packages/apps/galaxpay/package.json +1 -1
- package/packages/apps/google-analytics/package.json +1 -1
- package/packages/apps/jadlog/package.json +1 -1
- package/packages/apps/loyalty-points/package.json +1 -1
- package/packages/apps/melhor-envio/package.json +1 -1
- package/packages/apps/mercadopago/package.json +1 -1
- package/packages/apps/pagarme/package.json +1 -1
- package/packages/apps/paghiper/package.json +1 -1
- package/packages/apps/pix/package.json +1 -1
- package/packages/apps/tiny-erp/package.json +2 -2
- package/packages/apps/webhooks/package.json +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/eslint/CHANGELOG.md +1 -0
- package/packages/eslint/README.md +1 -0
- package/packages/eslint/package.json +29 -0
- package/packages/eslint/storefront.eslintrc.cjs +28 -0
- package/packages/events/package.json +1 -1
- package/packages/feeds/package.json +1 -1
- package/packages/firebase/package.json +2 -2
- package/packages/i18n/package.json +1 -1
- package/packages/modules/package.json +1 -1
- package/packages/passport/package.json +1 -1
- package/packages/ssr/lib/firebase/serve-storefront.js +3 -2
- package/packages/ssr/lib/firebase/serve-storefront.js.map +1 -1
- package/packages/ssr/package.json +4 -5
- package/packages/ssr/src/firebase/serve-storefront.ts +3 -2
- package/packages/storefront/.eslintrc.cjs +1 -26
- package/packages/storefront/dist/client/_astro/{Carousel.62c97a79.js → Carousel.8af656b5.js} +1 -1
- package/packages/storefront/dist/client/_astro/{HeroSlider.cea1f361.js → HeroSlider.8a040a33.js} +1 -1
- package/packages/storefront/dist/client/_astro/{PitchBar.ed85833a.js → PitchBar.ab0c501e.js} +1 -1
- package/packages/storefront/dist/client/_astro/{ProductShelf.35614736.js → ProductShelf.6351b57b.js} +1 -1
- package/packages/storefront/dist/client/_astro/ShopHeader.cfab20c7.js +4 -0
- package/packages/storefront/dist/client/_astro/{firebase-app.84207480.js → firebase-app.1df8af9a.js} +5 -5
- package/packages/storefront/dist/client/_astro/index.7eac5494.js +1 -0
- package/packages/storefront/dist/client/sw.js +1 -1
- package/packages/storefront/dist/server/chunks/{_...75363048.mjs → _...1b951f6c.mjs} +3 -3
- package/packages/storefront/dist/server/chunks/{account@_@astro.12fbe243.mjs → account@_@astro.f6aec583.mjs} +3 -3
- package/packages/storefront/dist/server/chunks/{astro.e0968ba7.mjs → astro.b875de26.mjs} +1119 -1226
- package/packages/storefront/dist/server/chunks/{endpoint@_@js.67b66d0a.mjs → endpoint@_@js.5834ad4e.mjs} +3 -3
- package/packages/storefront/dist/server/chunks/{fallback@_@astro.0a6656b6.mjs → fallback@_@astro.069ddb54.mjs} +3 -3
- package/packages/storefront/dist/server/chunks/{index@_@astro.df499bf2.mjs → index@_@astro.37e61ebe.mjs} +3 -3
- package/packages/storefront/dist/server/chunks/{index@_@astro.a4c9c84e.mjs → index@_@astro.485287a1.mjs} +3 -3
- package/packages/storefront/dist/server/chunks/pages/{_...slug_.astro.a71c9334.mjs → _...slug_.astro.95bf4c3b.mjs} +12 -8
- package/packages/storefront/dist/server/chunks/pages/{account.astro.0003ca94.mjs → account.astro.4b8c2471.mjs} +1 -1
- package/packages/storefront/dist/server/chunks/pages/{endpoint.js.085dadb5.mjs → endpoint.js.bd1232b7.mjs} +1 -1
- package/packages/storefront/dist/server/chunks/pages/{fallback.astro.055cb7df.mjs → fallback.astro.b52164bc.mjs} +2 -2
- package/packages/storefront/dist/server/chunks/pages/{index.astro.abc34f72.mjs → index.astro.98167846.mjs} +2 -2
- package/packages/storefront/dist/server/entry.mjs +9 -9
- package/packages/storefront/dist/server/renderers.mjs +2 -2
- package/packages/storefront/package.json +8 -7
- package/packages/storefront/src/lib/layouts/use-page-header.ts +0 -1
- package/packages/types/package.json +1 -1
- package/packages/storefront/dist/client/_astro/ShopHeader.1c27e68e.js +0 -4
- package/packages/storefront/dist/client/_astro/index.b93f3d06.js +0 -1
- /package/packages/{storefront/.base.eslintrc.cjs → eslint/base.eslintrc.cjs} +0 -0
package/packages/storefront/dist/client/_astro/{firebase-app.84207480.js → firebase-app.1df8af9a.js}
RENAMED
|
@@ -208,7 +208,7 @@
|
|
|
208
208
|
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
|
209
209
|
* See the License for the specific language governing permissions and
|
|
210
210
|
* limitations under the License.
|
|
211
|
-
*/class fr{constructor(e){this.container=e}getPlatformInfoString(){return this.container.getProviders().map(t=>{if(pr(t)){const r=t.getImmediate();return`${r.library}/${r.version}`}else return null}).filter(t=>t).join(" ")}}function pr(n){const e=n.getComponent();return e?.type==="VERSION"}const Fe="@firebase/app",lt="0.9.
|
|
211
|
+
*/class fr{constructor(e){this.container=e}getPlatformInfoString(){return this.container.getProviders().map(t=>{if(pr(t)){const r=t.getImmediate();return`${r.library}/${r.version}`}else return null}).filter(t=>t).join(" ")}}function pr(n){const e=n.getComponent();return e?.type==="VERSION"}const Fe="@firebase/app",lt="0.9.15";/**
|
|
212
212
|
* @license
|
|
213
213
|
* Copyright 2019 Google LLC
|
|
214
214
|
*
|
|
@@ -223,7 +223,7 @@
|
|
|
223
223
|
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
|
224
224
|
* See the License for the specific language governing permissions and
|
|
225
225
|
* limitations under the License.
|
|
226
|
-
*/const L=new Bt("@firebase/app"),gr="@firebase/app-compat",mr="@firebase/analytics-compat",_r="@firebase/analytics",Ir="@firebase/app-check-compat",vr="@firebase/app-check",yr="@firebase/auth",Er="@firebase/auth-compat",br="@firebase/database",wr="@firebase/database-compat",Tr="@firebase/functions",Sr="@firebase/functions-compat",Rr="@firebase/installations",kr="@firebase/installations-compat",Ar="@firebase/messaging",Cr="@firebase/messaging-compat",Or="@firebase/performance",Pr="@firebase/performance-compat",Dr="@firebase/remote-config",Nr="@firebase/remote-config-compat",Lr="@firebase/storage",Mr="@firebase/storage-compat",Ur="@firebase/firestore",Br="@firebase/firestore-compat",xr="firebase",Fr="
|
|
226
|
+
*/const L=new Bt("@firebase/app"),gr="@firebase/app-compat",mr="@firebase/analytics-compat",_r="@firebase/analytics",Ir="@firebase/app-check-compat",vr="@firebase/app-check",yr="@firebase/auth",Er="@firebase/auth-compat",br="@firebase/database",wr="@firebase/database-compat",Tr="@firebase/functions",Sr="@firebase/functions-compat",Rr="@firebase/installations",kr="@firebase/installations-compat",Ar="@firebase/messaging",Cr="@firebase/messaging-compat",Or="@firebase/performance",Pr="@firebase/performance-compat",Dr="@firebase/remote-config",Nr="@firebase/remote-config-compat",Lr="@firebase/storage",Mr="@firebase/storage-compat",Ur="@firebase/firestore",Br="@firebase/firestore-compat",xr="firebase",Fr="10.1.0";/**
|
|
227
227
|
* @license
|
|
228
228
|
* Copyright 2019 Google LLC
|
|
229
229
|
*
|
|
@@ -343,7 +343,7 @@
|
|
|
343
343
|
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
|
344
344
|
* See the License for the specific language governing permissions and
|
|
345
345
|
* limitations under the License.
|
|
346
|
-
*/function Zr(n){q(new $("platform-logger",e=>new fr(e),"PRIVATE")),q(new $("heartbeat",e=>new Yr(e),"PRIVATE")),x(Fe,lt,n),x(Fe,lt,"esm2017"),x("fire-js","")}Zr("");var ei="firebase",ti="
|
|
346
|
+
*/function Zr(n){q(new $("platform-logger",e=>new fr(e),"PRIVATE")),q(new $("heartbeat",e=>new Yr(e),"PRIVATE")),x(Fe,lt,n),x(Fe,lt,"esm2017"),x("fire-js","")}Zr("");var ei="firebase",ti="10.1.0";/**
|
|
347
347
|
* @license
|
|
348
348
|
* Copyright 2020 Google LLC
|
|
349
349
|
*
|
|
@@ -748,7 +748,7 @@
|
|
|
748
748
|
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
|
749
749
|
* See the License for the specific language governing permissions and
|
|
750
750
|
* limitations under the License.
|
|
751
|
-
*/class Oi{constructor(e,t,r,i){this.app=e,this.heartbeatServiceProvider=t,this.appCheckServiceProvider=r,this.config=i,this.currentUser=null,this.emulatorConfig=null,this.operations=Promise.resolve(),this.authStateSubscription=new vt(this),this.idTokenSubscription=new vt(this),this.beforeStateQueue=new Ci(this),this.redirectUser=null,this.isProactiveRefreshEnabled=!1,this._canInitEmulator=!0,this._isInitialized=!1,this._deleted=!1,this._initializationPromise=null,this._popupRedirectResolver=null,this._errorFactory=zt,this._agentRecaptchaConfig=null,this._tenantRecaptchaConfigs={},this.lastNotifiedUid=void 0,this.languageCode=null,this.tenantId=null,this.settings={appVerificationDisabledForTesting:!1},this.frameworks=[],this.name=e.name,this.clientVersion=i.sdkClientVersion}_initializeWithPersistence(e,t){return t&&(this._popupRedirectResolver=E(t)),this._initializationPromise=this.queue(async()=>{var r,i;if(!this._deleted&&(this.persistenceManager=await F.create(this,e),!this._deleted)){if(!((r=this._popupRedirectResolver)===null||r===void 0)&&r._shouldInitProactively)try{await this._popupRedirectResolver._initialize(this)}catch{}await this.initializeCurrentUser(t),this.lastNotifiedUid=((i=this.currentUser)===null||i===void 0?void 0:i.uid)||null,!this._deleted&&(this._isInitialized=!0)}}),this._initializationPromise}async _onStorageEvent(){if(this._deleted)return;const e=await this.assertedPersistence.getCurrentUser();if(!(!this.currentUser&&!e)){if(this.currentUser&&e&&this.currentUser.uid===e.uid){this._currentUser._assign(e),await this.currentUser.getIdToken();return}await this._updateCurrentUser(e,!0)}}async initializeCurrentUser(e){var t;const r=await this.assertedPersistence.getCurrentUser();let i=r,s=!1;if(e&&this.config.authDomain){await this.getOrInitRedirectPersistenceManager();const o=(t=this.redirectUser)===null||t===void 0?void 0:t._redirectEventId,a=i?._redirectEventId,c=await this.tryRedirectSignIn(e);(!o||o===a)&&c?.user&&(i=c.user,s=!0)}if(!i)return this.directlySetCurrentUser(null);if(!i._redirectEventId){if(s)try{await this.beforeStateQueue.runMiddleware(i)}catch(o){i=r,this._popupRedirectResolver._overrideRedirectResult(this,()=>Promise.reject(o))}return i?this.reloadAndSetCurrentUserOrClear(i):this.directlySetCurrentUser(null)}return u(this._popupRedirectResolver,this,"argument-error"),await this.getOrInitRedirectPersistenceManager(),this.redirectUser&&this.redirectUser._redirectEventId===i._redirectEventId?this.directlySetCurrentUser(i):this.reloadAndSetCurrentUserOrClear(i)}async tryRedirectSignIn(e){let t=null;try{t=await this._popupRedirectResolver._completeRedirectFn(this,e,!0)}catch{await this._setRedirectUser(null)}return t}async reloadAndSetCurrentUserOrClear(e){try{await me(e)}catch(t){if(t?.code!=="auth/network-request-failed")return this.directlySetCurrentUser(null)}return this.directlySetCurrentUser(e)}useDeviceLanguage(){this.languageCode=ai()}async _delete(){this._deleted=!0}async updateCurrentUser(e){const t=e?P(e):null;return t&&u(t.auth.config.apiKey===this.config.apiKey,this,"invalid-user-token"),this._updateCurrentUser(t&&t._clone(this))}async _updateCurrentUser(e,t=!1){if(!this._deleted)return e&&u(this.tenantId===e.tenantId,this,"tenant-id-mismatch"),t||await this.beforeStateQueue.runMiddleware(e),this.queue(async()=>{await this.directlySetCurrentUser(e),this.notifyAuthListeners()})}async signOut(){return await this.beforeStateQueue.runMiddleware(null),(this.redirectPersistenceManager||this._popupRedirectResolver)&&await this._setRedirectUser(null),this._updateCurrentUser(null,!0)}setPersistence(e){return this.queue(async()=>{await this.assertedPersistence.setPersistence(E(e))})}async initializeRecaptchaConfig(){const e=await on(this,{clientType:"CLIENT_TYPE_WEB",version:"RECAPTCHA_ENTERPRISE"}),t=new an(e);this.tenantId==null?this._agentRecaptchaConfig=t:this._tenantRecaptchaConfigs[this.tenantId]=t,t.emailPasswordEnabled&&new ln(this).verify()}_getRecaptchaConfig(){return this.tenantId==null?this._agentRecaptchaConfig:this._tenantRecaptchaConfigs[this.tenantId]}_getPersistence(){return this.assertedPersistence.persistence.type}_updateErrorMap(e){this._errorFactory=new Z("auth","Firebase",e())}onAuthStateChanged(e,t,r){return this.registerStateListener(this.authStateSubscription,e,t,r)}beforeAuthStateChanged(e,t){return this.beforeStateQueue.pushCallback(e,t)}onIdTokenChanged(e,t,r){return this.registerStateListener(this.idTokenSubscription,e,t,r)}toJSON(){var e;return{apiKey:this.config.apiKey,authDomain:this.config.authDomain,appName:this.name,currentUser:(e=this._currentUser)===null||e===void 0?void 0:e.toJSON()}}async _setRedirectUser(e,t){const r=await this.getOrInitRedirectPersistenceManager(t);return e===null?r.removeCurrentUser():r.setCurrentUser(e)}async getOrInitRedirectPersistenceManager(e){if(!this.redirectPersistenceManager){const t=e&&E(e)||this._popupRedirectResolver;u(t,this,"argument-error"),this.redirectPersistenceManager=await F.create(this,[E(t._redirectPersistence)],"redirectUser"),this.redirectUser=await this.redirectPersistenceManager.getCurrentUser()}return this.redirectPersistenceManager}async _redirectUserForId(e){var t,r;return this._isInitialized&&await this.queue(async()=>{}),((t=this._currentUser)===null||t===void 0?void 0:t._redirectEventId)===e?this._currentUser:((r=this.redirectUser)===null||r===void 0?void 0:r._redirectEventId)===e?this.redirectUser:null}async _persistUserIfCurrent(e){if(e===this.currentUser)return this.queue(async()=>this.directlySetCurrentUser(e))}_notifyListenersIfCurrent(e){e===this.currentUser&&this.notifyAuthListeners()}_key(){return`${this.config.authDomain}:${this.config.apiKey}:${this.name}`}_startProactiveRefresh(){this.isProactiveRefreshEnabled=!0,this.currentUser&&this._currentUser._startProactiveRefresh()}_stopProactiveRefresh(){this.isProactiveRefreshEnabled=!1,this.currentUser&&this._currentUser._stopProactiveRefresh()}get _currentUser(){return this.currentUser}notifyAuthListeners(){var e,t;if(!this._isInitialized)return;this.idTokenSubscription.next(this.currentUser);const r=(t=(e=this.currentUser)===null||e===void 0?void 0:e.uid)!==null&&t!==void 0?t:null;this.lastNotifiedUid!==r&&(this.lastNotifiedUid=r,this.authStateSubscription.next(this.currentUser))}registerStateListener(e,t,r,i){if(this._deleted)return()=>{};const s=typeof t=="function"?t:t.next.bind(t),o=this._isInitialized?Promise.resolve():this._initializationPromise;return u(o,this,"internal-error"),o.then(()=>s(this.currentUser)),typeof t=="function"?e.addObserver(t,r,i):e.addObserver(t)}async directlySetCurrentUser(e){this.currentUser&&this.currentUser!==e&&this._currentUser._stopProactiveRefresh(),e&&this.isProactiveRefreshEnabled&&e._startProactiveRefresh(),this.currentUser=e,e?await this.assertedPersistence.setCurrentUser(e):await this.assertedPersistence.removeCurrentUser()}queue(e){return this.operations=this.operations.then(e,e),this.operations}get assertedPersistence(){return u(this.persistenceManager,this,"internal-error"),this.persistenceManager}_logFramework(e){!e||this.frameworks.includes(e)||(this.frameworks.push(e),this.frameworks.sort(),this.clientVersion=sn(this.config.clientPlatform,this._getFrameworks()))}_getFrameworks(){return this.frameworks}async _getAdditionalHeaders(){var e;const t={"X-Client-Version":this.clientVersion};this.app.options.appId&&(t["X-Firebase-gmpid"]=this.app.options.appId);const r=await((e=this.heartbeatServiceProvider.getImmediate({optional:!0}))===null||e===void 0?void 0:e.getHeartbeatsHeader());r&&(t["X-Firebase-Client"]=r);const i=await this._getAppCheckToken();return i&&(t["X-Firebase-AppCheck"]=i),t}async _getAppCheckToken(){var e;const t=await((e=this.appCheckServiceProvider.getImmediate({optional:!0}))===null||e===void 0?void 0:e.getToken());return t?.error&&ri(`Error while retrieving App Check token: ${t.error}`),t?.token}}function ie(n){return P(n)}class vt{constructor(e){this.auth=e,this.observer=null,this.addObserver=zn(t=>this.observer=t)}get next(){return u(this.observer,this.auth,"internal-error"),this.observer.next.bind(this.observer)}}/**
|
|
751
|
+
*/class Oi{constructor(e,t,r,i){this.app=e,this.heartbeatServiceProvider=t,this.appCheckServiceProvider=r,this.config=i,this.currentUser=null,this.emulatorConfig=null,this.operations=Promise.resolve(),this.authStateSubscription=new vt(this),this.idTokenSubscription=new vt(this),this.beforeStateQueue=new Ci(this),this.redirectUser=null,this.isProactiveRefreshEnabled=!1,this._canInitEmulator=!0,this._isInitialized=!1,this._deleted=!1,this._initializationPromise=null,this._popupRedirectResolver=null,this._errorFactory=zt,this._agentRecaptchaConfig=null,this._tenantRecaptchaConfigs={},this.lastNotifiedUid=void 0,this.languageCode=null,this.tenantId=null,this.settings={appVerificationDisabledForTesting:!1},this.frameworks=[],this.name=e.name,this.clientVersion=i.sdkClientVersion}_initializeWithPersistence(e,t){return t&&(this._popupRedirectResolver=E(t)),this._initializationPromise=this.queue(async()=>{var r,i;if(!this._deleted&&(this.persistenceManager=await F.create(this,e),!this._deleted)){if(!((r=this._popupRedirectResolver)===null||r===void 0)&&r._shouldInitProactively)try{await this._popupRedirectResolver._initialize(this)}catch{}await this.initializeCurrentUser(t),this.lastNotifiedUid=((i=this.currentUser)===null||i===void 0?void 0:i.uid)||null,!this._deleted&&(this._isInitialized=!0)}}),this._initializationPromise}async _onStorageEvent(){if(this._deleted)return;const e=await this.assertedPersistence.getCurrentUser();if(!(!this.currentUser&&!e)){if(this.currentUser&&e&&this.currentUser.uid===e.uid){this._currentUser._assign(e),await this.currentUser.getIdToken();return}await this._updateCurrentUser(e,!0)}}async initializeCurrentUser(e){var t;const r=await this.assertedPersistence.getCurrentUser();let i=r,s=!1;if(e&&this.config.authDomain){await this.getOrInitRedirectPersistenceManager();const o=(t=this.redirectUser)===null||t===void 0?void 0:t._redirectEventId,a=i?._redirectEventId,c=await this.tryRedirectSignIn(e);(!o||o===a)&&c?.user&&(i=c.user,s=!0)}if(!i)return this.directlySetCurrentUser(null);if(!i._redirectEventId){if(s)try{await this.beforeStateQueue.runMiddleware(i)}catch(o){i=r,this._popupRedirectResolver._overrideRedirectResult(this,()=>Promise.reject(o))}return i?this.reloadAndSetCurrentUserOrClear(i):this.directlySetCurrentUser(null)}return u(this._popupRedirectResolver,this,"argument-error"),await this.getOrInitRedirectPersistenceManager(),this.redirectUser&&this.redirectUser._redirectEventId===i._redirectEventId?this.directlySetCurrentUser(i):this.reloadAndSetCurrentUserOrClear(i)}async tryRedirectSignIn(e){let t=null;try{t=await this._popupRedirectResolver._completeRedirectFn(this,e,!0)}catch{await this._setRedirectUser(null)}return t}async reloadAndSetCurrentUserOrClear(e){try{await me(e)}catch(t){if(t?.code!=="auth/network-request-failed")return this.directlySetCurrentUser(null)}return this.directlySetCurrentUser(e)}useDeviceLanguage(){this.languageCode=ai()}async _delete(){this._deleted=!0}async updateCurrentUser(e){const t=e?P(e):null;return t&&u(t.auth.config.apiKey===this.config.apiKey,this,"invalid-user-token"),this._updateCurrentUser(t&&t._clone(this))}async _updateCurrentUser(e,t=!1){if(!this._deleted)return e&&u(this.tenantId===e.tenantId,this,"tenant-id-mismatch"),t||await this.beforeStateQueue.runMiddleware(e),this.queue(async()=>{await this.directlySetCurrentUser(e),this.notifyAuthListeners()})}async signOut(){return await this.beforeStateQueue.runMiddleware(null),(this.redirectPersistenceManager||this._popupRedirectResolver)&&await this._setRedirectUser(null),this._updateCurrentUser(null,!0)}setPersistence(e){return this.queue(async()=>{await this.assertedPersistence.setPersistence(E(e))})}async initializeRecaptchaConfig(){const e=await on(this,{clientType:"CLIENT_TYPE_WEB",version:"RECAPTCHA_ENTERPRISE"}),t=new an(e);this.tenantId==null?this._agentRecaptchaConfig=t:this._tenantRecaptchaConfigs[this.tenantId]=t,t.emailPasswordEnabled&&new ln(this).verify()}_getRecaptchaConfig(){return this.tenantId==null?this._agentRecaptchaConfig:this._tenantRecaptchaConfigs[this.tenantId]}_getPersistence(){return this.assertedPersistence.persistence.type}_updateErrorMap(e){this._errorFactory=new Z("auth","Firebase",e())}onAuthStateChanged(e,t,r){return this.registerStateListener(this.authStateSubscription,e,t,r)}beforeAuthStateChanged(e,t){return this.beforeStateQueue.pushCallback(e,t)}onIdTokenChanged(e,t,r){return this.registerStateListener(this.idTokenSubscription,e,t,r)}authStateReady(){return new Promise((e,t)=>{if(this.currentUser)e();else{const r=this.onAuthStateChanged(()=>{r(),e()},t)}})}toJSON(){var e;return{apiKey:this.config.apiKey,authDomain:this.config.authDomain,appName:this.name,currentUser:(e=this._currentUser)===null||e===void 0?void 0:e.toJSON()}}async _setRedirectUser(e,t){const r=await this.getOrInitRedirectPersistenceManager(t);return e===null?r.removeCurrentUser():r.setCurrentUser(e)}async getOrInitRedirectPersistenceManager(e){if(!this.redirectPersistenceManager){const t=e&&E(e)||this._popupRedirectResolver;u(t,this,"argument-error"),this.redirectPersistenceManager=await F.create(this,[E(t._redirectPersistence)],"redirectUser"),this.redirectUser=await this.redirectPersistenceManager.getCurrentUser()}return this.redirectPersistenceManager}async _redirectUserForId(e){var t,r;return this._isInitialized&&await this.queue(async()=>{}),((t=this._currentUser)===null||t===void 0?void 0:t._redirectEventId)===e?this._currentUser:((r=this.redirectUser)===null||r===void 0?void 0:r._redirectEventId)===e?this.redirectUser:null}async _persistUserIfCurrent(e){if(e===this.currentUser)return this.queue(async()=>this.directlySetCurrentUser(e))}_notifyListenersIfCurrent(e){e===this.currentUser&&this.notifyAuthListeners()}_key(){return`${this.config.authDomain}:${this.config.apiKey}:${this.name}`}_startProactiveRefresh(){this.isProactiveRefreshEnabled=!0,this.currentUser&&this._currentUser._startProactiveRefresh()}_stopProactiveRefresh(){this.isProactiveRefreshEnabled=!1,this.currentUser&&this._currentUser._stopProactiveRefresh()}get _currentUser(){return this.currentUser}notifyAuthListeners(){var e,t;if(!this._isInitialized)return;this.idTokenSubscription.next(this.currentUser);const r=(t=(e=this.currentUser)===null||e===void 0?void 0:e.uid)!==null&&t!==void 0?t:null;this.lastNotifiedUid!==r&&(this.lastNotifiedUid=r,this.authStateSubscription.next(this.currentUser))}registerStateListener(e,t,r,i){if(this._deleted)return()=>{};const s=typeof t=="function"?t:t.next.bind(t),o=this._isInitialized?Promise.resolve():this._initializationPromise;return u(o,this,"internal-error"),o.then(()=>s(this.currentUser)),typeof t=="function"?e.addObserver(t,r,i):e.addObserver(t)}async directlySetCurrentUser(e){this.currentUser&&this.currentUser!==e&&this._currentUser._stopProactiveRefresh(),e&&this.isProactiveRefreshEnabled&&e._startProactiveRefresh(),this.currentUser=e,e?await this.assertedPersistence.setCurrentUser(e):await this.assertedPersistence.removeCurrentUser()}queue(e){return this.operations=this.operations.then(e,e),this.operations}get assertedPersistence(){return u(this.persistenceManager,this,"internal-error"),this.persistenceManager}_logFramework(e){!e||this.frameworks.includes(e)||(this.frameworks.push(e),this.frameworks.sort(),this.clientVersion=sn(this.config.clientPlatform,this._getFrameworks()))}_getFrameworks(){return this.frameworks}async _getAdditionalHeaders(){var e;const t={"X-Client-Version":this.clientVersion};this.app.options.appId&&(t["X-Firebase-gmpid"]=this.app.options.appId);const r=await((e=this.heartbeatServiceProvider.getImmediate({optional:!0}))===null||e===void 0?void 0:e.getHeartbeatsHeader());r&&(t["X-Firebase-Client"]=r);const i=await this._getAppCheckToken();return i&&(t["X-Firebase-AppCheck"]=i),t}async _getAppCheckToken(){var e;const t=await((e=this.appCheckServiceProvider.getImmediate({optional:!0}))===null||e===void 0?void 0:e.getToken());return t?.error&&ri(`Error while retrieving App Check token: ${t.error}`),t?.token}}function ie(n){return P(n)}class vt{constructor(e){this.auth=e,this.observer=null,this.addObserver=zn(t=>this.observer=t)}get next(){return u(this.observer,this.auth,"internal-error"),this.observer.next.bind(this.observer)}}/**
|
|
752
752
|
* @license
|
|
753
753
|
* Copyright 2020 Google LLC
|
|
754
754
|
*
|
|
@@ -1378,7 +1378,7 @@
|
|
|
1378
1378
|
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
|
1379
1379
|
* See the License for the specific language governing permissions and
|
|
1380
1380
|
* limitations under the License.
|
|
1381
|
-
*/const Ue="webStorageSupport";class Ys{constructor(){this.eventManagers={},this.iframes={},this.originValidationPromises={},this._redirectPersistence=_n,this._completeRedirectFn=ys,this._overrideRedirectResult=_s}async _openPopup(e,t,r,i){var s;b((s=this.eventManagers[e._key()])===null||s===void 0?void 0:s.manager,"_initialize() not called before _openPopup()");const o=await kt(e,t,r,ge(),i);return js(e,o,Xe())}async _openRedirect(e,t,r,i){await this._originValidation(e);const s=await kt(e,t,r,ge(),i);return Zi(s),new Promise(()=>{})}_initialize(e){const t=e._key();if(this.eventManagers[t]){const{manager:i,promise:s}=this.eventManagers[t];return i?Promise.resolve(i):(b(s,"If manager is not set, promise should be"),s)}const r=this.initAndGetManager(e);return this.eventManagers[t]={promise:r},r.catch(()=>{delete this.eventManagers[t]}),r}async initAndGetManager(e){const t=await xs(e),r=new bs(e);return t.register("authEvent",i=>(u(i?.authEvent,e,"invalid-auth-event"),{status:r.onEvent(i.authEvent)?"ACK":"ERROR"}),gapi.iframes.CROSS_ORIGIN_IFRAMES_FILTER),this.eventManagers[e._key()]={manager:r},this.iframes[e._key()]=t,r}_isIframeWebStorageSupported(e,t){this.iframes[e._key()].send(Ue,{type:Ue},i=>{var s;const o=(s=i?.[0])===null||s===void 0?void 0:s[Ue];o!==void 0&&t(!!o),m(e,"internal-error")},gapi.iframes.CROSS_ORIGIN_IFRAMES_FILTER)}_originValidation(e){const t=e._key();return this.originValidationPromises[t]||(this.originValidationPromises[t]=ks(e)),this.originValidationPromises[t]}get _shouldInitProactively(){return rn()||Je()||Ee()}}const Xs=Ys;var At="@firebase/auth",Ct="
|
|
1381
|
+
*/const Ue="webStorageSupport";class Ys{constructor(){this.eventManagers={},this.iframes={},this.originValidationPromises={},this._redirectPersistence=_n,this._completeRedirectFn=ys,this._overrideRedirectResult=_s}async _openPopup(e,t,r,i){var s;b((s=this.eventManagers[e._key()])===null||s===void 0?void 0:s.manager,"_initialize() not called before _openPopup()");const o=await kt(e,t,r,ge(),i);return js(e,o,Xe())}async _openRedirect(e,t,r,i){await this._originValidation(e);const s=await kt(e,t,r,ge(),i);return Zi(s),new Promise(()=>{})}_initialize(e){const t=e._key();if(this.eventManagers[t]){const{manager:i,promise:s}=this.eventManagers[t];return i?Promise.resolve(i):(b(s,"If manager is not set, promise should be"),s)}const r=this.initAndGetManager(e);return this.eventManagers[t]={promise:r},r.catch(()=>{delete this.eventManagers[t]}),r}async initAndGetManager(e){const t=await xs(e),r=new bs(e);return t.register("authEvent",i=>(u(i?.authEvent,e,"invalid-auth-event"),{status:r.onEvent(i.authEvent)?"ACK":"ERROR"}),gapi.iframes.CROSS_ORIGIN_IFRAMES_FILTER),this.eventManagers[e._key()]={manager:r},this.iframes[e._key()]=t,r}_isIframeWebStorageSupported(e,t){this.iframes[e._key()].send(Ue,{type:Ue},i=>{var s;const o=(s=i?.[0])===null||s===void 0?void 0:s[Ue];o!==void 0&&t(!!o),m(e,"internal-error")},gapi.iframes.CROSS_ORIGIN_IFRAMES_FILTER)}_originValidation(e){const t=e._key();return this.originValidationPromises[t]||(this.originValidationPromises[t]=ks(e)),this.originValidationPromises[t]}get _shouldInitProactively(){return rn()||Je()||Ee()}}const Xs=Ys;var At="@firebase/auth",Ct="1.1.0";/**
|
|
1382
1382
|
* @license
|
|
1383
1383
|
* Copyright 2020 Google LLC
|
|
1384
1384
|
*
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
import{l as K,u as H}from"./session-utm.744b0db3.js";import{P as A,c as b,R as Y,k as q,E as z,S as B,j as I,U as Q,V as Z,W as ee}from"./_plugin-vue_export-helper.4cb7dd76.js";const te=(e,t,o=1e4)=>{let n,r;o&&(n=new AbortController,r=setTimeout(()=>{n.abort()},o)),t?.body&&typeof t.body=="object"&&(t.body=JSON.stringify(t.body),t.headers={...t.headers,"Content-Type":"application/json","Content-Length":t.body.length.toString()});const s=fetch(e,{...t,signal:n?.signal});return s.finally(()=>{r&&clearTimeout(r)}),s},oe=(e,t=300)=>{typeof window.requestIdleCallback=="function"?window.requestIdleCallback(e):setTimeout(e,t)},ne={list_payments:{},calculate_shipping:{},apply_discount:{}},v=A(ne);K.then(e=>{Object.assign(v,e)});{const e="MODULES_INFO",t=sessionStorage.getItem(e);if(t)try{const n=JSON.parse(t);n.__timestamp>=Date.now()-1e3*60*5?(delete n.__timestamp,Object.assign(v,n)):sessionStorage.removeItem(e)}catch{sessionStorage.removeItem(e)}oe(()=>{const n=[];["list_payments","calculate_shipping"].forEach(r=>{Object.keys(v[r]).length||n.push({modName:r})}),Object.keys(H).length&&n.push({modName:"apply_discount",reqOptions:{method:"post",body:{utm:H}}}),n.forEach(({modName:r,reqOptions:s})=>{te(`/api/modules/${r}`,s).then(async c=>{if(c.ok){const l={};v[r]=l;const{result:m}=await c.json();Array.isArray(m)&&m.forEach(({error:u,response:f})=>{if(!u){let a,i;switch(r){case"calculate_shipping":a="free_shipping_from_value",i=f[a],typeof i=="number"&&(l[a]===void 0||i<l[a])&&(l[a]=i);break;case"list_payments":a="installments_option",i=f[a],i&&(!l[a]||i.monthly_interest<l[a].monthly_interest||i.max_number>l[a].max_number)&&(l[a]=i),a="discount_option",i=f[a],i&&(!l[a]||i.value>l[a].value)&&f.payment_gateways.forEach(({discount:d})=>{d&&d.apply_at!=="freight"&&d.value===i.value&&(l[a]={apply_at:d.apply_at,...i})}),a="loyalty_points_programs",i=f[a],i&&(l[a]={...l[a],...i});break;default:a="available_extra_discount",i=f[a],i&&(!l[a]||i.value>l[a].value)&&(l[a]=i)}}}),sessionStorage.setItem(e,JSON.stringify({...v,__timestamp:Date.now()}))}}).catch(console.error)})})}const ye=b(()=>v.calculate_shipping.free_shipping_from_value),ve=b(()=>v.list_payments.installments_option),ge=b(()=>v.list_payments.discount_option),be=b(()=>v.list_payments.loyalty_points_programs),we=b(()=>v.apply_discount.available_extra_discount),re=(e,t,o,n=Y)=>b(()=>{const r=`{${o}}`,s=e.indexOf(r);if(s>-1){const c=v[t][o];if(c){const l=n(c);return e.substring(0,s)+l+e.substring(s+r.length)}return""}return e}),Te=e=>re(e,"calculate_shipping","free_shipping_from_value");function N(e){return Z()?(ee(e),!0):!1}function y(e){return typeof e=="function"?e():B(e)}const U=typeof window<"u",T=()=>{};function X(e,t){function o(...n){return new Promise((r,s)=>{Promise.resolve(e(()=>t.apply(this,n),{fn:t,thisArg:this,args:n})).then(r).catch(s)})}return o}function se(e,t={}){let o,n,r=T;const s=l=>{clearTimeout(l),r(),r=T};return l=>{const m=y(e),u=y(t.maxWait);return o&&s(o),m<=0||u!==void 0&&u<=0?(n&&(s(n),n=null),Promise.resolve(l())):new Promise((f,a)=>{r=t.rejectOnCancel?a:f,u&&!n&&(n=setTimeout(()=>{o&&s(o),n=null,f(l())},u)),o=setTimeout(()=>{n&&s(n),n=null,f(l())},m)})}}function le(e,t=!0,o=!0,n=!1){let r=0,s,c=!0,l=T,m;const u=()=>{s&&(clearTimeout(s),s=void 0,l(),l=T)};return a=>{const i=y(e),d=Date.now()-r,O=()=>m=a();return u(),i<=0?(r=Date.now(),O()):(d>i&&(o||!c)?(r=Date.now(),O()):t&&(m=new Promise((S,h)=>{l=n?h:S,s=setTimeout(()=>{r=Date.now(),c=!0,S(O()),u()},Math.max(0,i-d))})),!o&&!s&&(s=setTimeout(()=>c=!0,i)),c=!1,m)}}function Se(e,t=!1,o="Timeout"){return new Promise((n,r)=>{setTimeout(t?()=>r(o):n,e)})}function ae(e,t=200,o={}){return X(se(t,o),e)}function ie(e,t=200,o=!1,n=!0,r=!1){return X(le(t,o,n,r),e)}function ue(e,t,o={}){const{immediate:n=!0}=o,r=I(!1);let s=null;function c(){s&&(clearTimeout(s),s=null)}function l(){r.value=!1,c()}function m(...u){c(),r.value=!0,s=setTimeout(()=>{r.value=!1,s=null,e(...u)},y(t))}return n&&(r.value=!0,U&&m()),N(l),{isPending:Q(r),start:m,stop:l}}var ce=Object.defineProperty,W=Object.getOwnPropertySymbols,fe=Object.prototype.hasOwnProperty,pe=Object.prototype.propertyIsEnumerable,R=(e,t,o)=>t in e?ce(e,t,{enumerable:!0,configurable:!0,writable:!0,value:o}):e[t]=o,me=(e,t)=>{for(var o in t||(t={}))fe.call(t,o)&&R(e,o,t[o]);if(W)for(var o of W(t))pe.call(t,o)&&R(e,o,t[o]);return e};function Ee(e=1e3,t={}){const{controls:o=!1,callback:n}=t,r=ue(n??T,e,t),s=b(()=>!r.isPending.value);return o?me({ready:s},r):s}function Oe(e,t,o){const n=q(e,(...r)=>(z(()=>n()),t(...r)),o)}function de(e){var t;const o=y(e);return(t=o?.$el)!=null?t:o}const C=U?window:void 0;function j(...e){let t,o,n,r;if(typeof e[0]=="string"||Array.isArray(e[0])?([o,n,r]=e,t=C):[t,o,n,r]=e,!t)return T;Array.isArray(o)||(o=[o]),Array.isArray(n)||(n=[n]);const s=[],c=()=>{s.forEach(f=>f()),s.length=0},l=(f,a,i,d)=>(f.addEventListener(a,i,d),()=>f.removeEventListener(a,i,d)),m=q(()=>[de(t),y(r)],([f,a])=>{c(),f&&s.push(...o.flatMap(i=>n.map(d=>l(f,i,d,a))))},{immediate:!0,flush:"post"}),u=()=>{m(),c()};return N(u),u}function Pe(e,t={}){const{delayEnter:o=0,delayLeave:n=0,window:r=C}=t,s=I(!1);let c;const l=m=>{const u=m?o:n;c&&(clearTimeout(c),c=void 0),u?c=setTimeout(()=>s.value=m,u):s.value=m};return r&&(j(e,"mouseenter",()=>l(!0),{passive:!0}),j(e,"mouseleave",()=>l(!1),{passive:!0})),s}const J=1;function xe(e,t={}){const{throttle:o=0,idle:n=200,onStop:r=T,onScroll:s=T,offset:c={left:0,right:0,top:0,bottom:0},eventListenerOptions:l={capture:!1,passive:!0},behavior:m="auto",window:u=C}=t,f=I(0),a=I(0),i=b({get(){return f.value},set(p){O(p,void 0)}}),d=b({get(){return a.value},set(p){O(void 0,p)}});function O(p,_){var x,D,w;if(!u)return;const P=y(e);P&&((w=P instanceof Document?u.document.body:P)==null||w.scrollTo({top:(x=y(_))!=null?x:d.value,left:(D=y(p))!=null?D:i.value,behavior:y(m)}))}const S=I(!1),h=A({left:!0,right:!1,top:!0,bottom:!1}),g=A({left:!1,right:!1,top:!1,bottom:!1}),L=p=>{S.value&&(S.value=!1,g.left=!1,g.right=!1,g.top=!1,g.bottom=!1,r(p))},G=ae(L,o+n),F=p=>{if(!u)return;const _=p===u?p.document.documentElement:p===u.document?p.documentElement:p,{display:x,flexDirection:D}=getComputedStyle(_),w=_.scrollLeft;g.left=w<f.value,g.right=w>f.value;const P=Math.abs(w)<=0+(c.left||0),k=Math.abs(w)+_.clientWidth>=_.scrollWidth-(c.right||0)-J;x==="flex"&&D==="row-reverse"?(h.left=k,h.right=P):(h.left=P,h.right=k),f.value=w;let E=_.scrollTop;p===u.document&&!E&&(E=u.document.body.scrollTop),g.top=E<a.value,g.bottom=E>a.value;const M=Math.abs(E)<=0+(c.top||0),V=Math.abs(E)+_.clientHeight>=_.scrollHeight-(c.bottom||0)-J;x==="flex"&&D==="column-reverse"?(h.top=V,h.bottom=M):(h.top=M,h.bottom=V),a.value=E},$=p=>{if(!u)return;const _=p.target===u.document?p.target.documentElement:p.target;F(_),S.value=!0,G(p),s(p)};return j(e,"scroll",o?ie($,o,!0,!1):$,l),j(e,"scrollend",L,l),{x:i,y:d,isScrolling:S,arrivedState:h,directions:g,measure(){const p=y(e);u&&p&&F(p)}}}export{xe as a,Se as b,ae as c,we as d,ve as e,ye as f,ge as g,Pe as h,oe as i,be as l,Te as p,Ee as u,Oe as w};
|
|
@@ -1 +1 @@
|
|
|
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 a={};const l=e=>r(e,o),t={module:{uri:o},exports:a,require:l};s[o]=Promise.all(n.map((e=>t[e]||l(e)))).then((e=>(i(...e),a)))}}define(["./workbox-5e0bf4e4"],(function(e){"use strict";self.skipWaiting(),e.clientsClaim(),e.precacheAndRoute([{url:"_astro/_...slug_.c13e0486.css",revision:null},{url:"_astro/_plugin-vue_export-helper.4cb7dd76.js",revision:null},{url:"_astro/api.4984c5be.js",revision:null},{url:"_astro/Carousel.
|
|
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 a={};const l=e=>r(e,o),t={module:{uri:o},exports:a,require:l};s[o]=Promise.all(n.map((e=>t[e]||l(e)))).then((e=>(i(...e),a)))}}define(["./workbox-5e0bf4e4"],(function(e){"use strict";self.skipWaiting(),e.clientsClaim(),e.precacheAndRoute([{url:"_astro/_...slug_.c13e0486.css",revision:null},{url:"_astro/_plugin-vue_export-helper.4cb7dd76.js",revision:null},{url:"_astro/api.4984c5be.js",revision:null},{url:"_astro/Carousel.8af656b5.js",revision:null},{url:"_astro/client.0fb6b44e.js",revision:null},{url:"_astro/firebase-app.1df8af9a.js",revision:null},{url:"_astro/HeroSlider.8a040a33.js",revision:null},{url:"_astro/hoisted.572313d6.js",revision:null},{url:"_astro/img.abbe849f.js",revision:null},{url:"_astro/index.7eac5494.js",revision:null},{url:"_astro/PitchBar.ab0c501e.js",revision:null},{url:"_astro/preload-helper.cf010ec4.js",revision:null},{url:"_astro/ProductShelf.6351b57b.js",revision:null},{url:"_astro/session-utm.744b0db3.js",revision:null},{url:"_astro/ShopHeader.cfab20c7.js",revision:null},{url:"_astro/workbox-window.prod.es5.a7b12eab.js",revision:null},{url:"manifest.webmanifest",revision:"138b9c9f495fe815bcec626365e9372e"}],{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:"optim-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")}));
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
export { renderers } from '../renderers.mjs';
|
|
2
2
|
export { onRequest } from '../_empty-middleware.mjs';
|
|
3
|
-
import './astro.
|
|
3
|
+
import './astro.b875de26.mjs';
|
|
4
4
|
import 'path-to-regexp';
|
|
5
5
|
import 'cookie';
|
|
6
6
|
import '@astrojs/internal-helpers/path';
|
|
@@ -14,7 +14,7 @@ import 'html-escaper';
|
|
|
14
14
|
import 'vue';
|
|
15
15
|
import 'vue/server-renderer';
|
|
16
16
|
import '@ecomplus/utils';
|
|
17
|
-
import './pages/_...slug_.astro.
|
|
17
|
+
import './pages/_...slug_.astro.95bf4c3b.mjs';
|
|
18
18
|
import 'node:fs/promises';
|
|
19
19
|
import 'node:path';
|
|
20
20
|
import 'node:url';
|
|
@@ -29,6 +29,6 @@ import '@cloudcommerce/config';
|
|
|
29
29
|
/* empty css */import '@vueuse/core';
|
|
30
30
|
import '@headlessui/vue';
|
|
31
31
|
|
|
32
|
-
const page = () => import('./pages/_...slug_.astro.
|
|
32
|
+
const page = () => import('./pages/_...slug_.astro.95bf4c3b.mjs').then(n => n.k);
|
|
33
33
|
|
|
34
34
|
export { page };
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
export { renderers } from '../renderers.mjs';
|
|
2
2
|
export { onRequest } from '../_empty-middleware.mjs';
|
|
3
|
-
import './astro.
|
|
3
|
+
import './astro.b875de26.mjs';
|
|
4
4
|
import 'path-to-regexp';
|
|
5
5
|
import 'cookie';
|
|
6
6
|
import '@astrojs/internal-helpers/path';
|
|
@@ -14,7 +14,7 @@ import 'html-escaper';
|
|
|
14
14
|
import 'vue';
|
|
15
15
|
import 'vue/server-renderer';
|
|
16
16
|
import '@ecomplus/utils';
|
|
17
|
-
import './pages/_...slug_.astro.
|
|
17
|
+
import './pages/_...slug_.astro.95bf4c3b.mjs';
|
|
18
18
|
import 'node:fs/promises';
|
|
19
19
|
import 'node:path';
|
|
20
20
|
import 'node:url';
|
|
@@ -29,6 +29,6 @@ import '@cloudcommerce/config';
|
|
|
29
29
|
/* empty css */import '@vueuse/core';
|
|
30
30
|
import '@headlessui/vue';
|
|
31
31
|
|
|
32
|
-
const page = () => import('./pages/account.astro.
|
|
32
|
+
const page = () => import('./pages/account.astro.4b8c2471.mjs');
|
|
33
33
|
|
|
34
34
|
export { page };
|