cloudcommerce 2.6.4 → 2.7.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/.github/workflows/test-apps.yml +2 -2
- package/CHANGELOG.md +30 -0
- package/action.yml +2 -2
- package/{commitlint.config.cjs → commitlint.config.mjs} +2 -2
- package/ecomplus-stores/barradoce/.gitpod.yml +1 -1
- package/ecomplus-stores/barradoce/.idx/dev.nix +5 -4
- package/ecomplus-stores/barradoce/functions/many/package.json +3 -3
- package/ecomplus-stores/barradoce/functions/ssr/content/pages/home.json +106 -8
- package/ecomplus-stores/barradoce/functions/ssr/content/pages/products.json +3 -0
- package/ecomplus-stores/barradoce/functions/ssr/content/types.d.ts +1 -1
- package/ecomplus-stores/barradoce/functions/ssr/package.json +6 -6
- package/ecomplus-stores/barradoce/functions/ssr/src/components/BuyerReviews.vue +83 -0
- package/ecomplus-stores/barradoce/functions/ssr/src/components/CheckoutPage.vue +6 -6
- package/ecomplus-stores/barradoce/functions/ssr/src/components/FooterStamps.vue +4 -4
- package/ecomplus-stores/barradoce/functions/ssr/src/components/ProductDetails.vue +36 -5
- package/ecomplus-stores/barradoce/functions/ssr/src/components/ProductShelf.vue +8 -7
- package/ecomplus-stores/barradoce/functions/ssr/src/components/ShippingCalculator.vue +1 -1
- package/ecomplus-stores/barradoce/functions/ssr/src/main/content/Sections.astro +4 -0
- package/ecomplus-stores/barradoce/functions/with-apps/package.json +3 -3
- package/ecomplus-stores/barradoce/package.json +2 -2
- package/package.json +5 -5
- package/packages/api/package.json +1 -1
- package/packages/apps/affiliate-program/package.json +1 -1
- package/packages/apps/correios/package.json +1 -1
- 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/mandae/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/pagarme-v5/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 +1 -1
- 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/package.json +1 -1
- package/packages/events/package.json +1 -1
- package/packages/feeds/package.json +1 -1
- package/packages/firebase/package.json +1 -1
- 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/lib/cron-ssr-save-views.js +7 -85
- package/packages/ssr/lib/lib/cron-ssr-save-views.js.map +1 -1
- package/packages/ssr/package.json +3 -3
- package/packages/ssr/src/lib/cron-ssr-save-views.ts +7 -91
- package/packages/storefront/dist/client/_astro/{AccountPage.B4WZaOzX.js → AccountPage.Cq0jrJE5.js} +1 -1
- package/packages/storefront/dist/client/_astro/{CartSidebar.DAGdpIcU.js → CartSidebar.DkX2BE1w.js} +1 -1
- package/packages/storefront/dist/client/_astro/{HeroSlider.Dq_9kcdU.js → HeroSlider.CZujn8cU.js} +1 -1
- package/packages/storefront/dist/client/_astro/{PitchBar.BwLlIs6F.js → PitchBar.DhcSEQPV.js} +1 -1
- package/packages/storefront/dist/client/_astro/{Prices.BgHTq5id.js → Prices.D1uItqV5.js} +1 -1
- package/packages/storefront/dist/client/_astro/{ProductDetails.CnYNdPl5.js → ProductDetails.DDNMc2oj.js} +1 -1
- package/packages/storefront/dist/client/_astro/ProductShelf.BwRDTU-V.js +1 -0
- package/packages/storefront/dist/client/_astro/{SearchModal.DcmvABes.js → SearchModal.DgrtGsIu.js} +1 -1
- package/packages/storefront/dist/client/_astro/{SearchShowcase.C9GWwOnF.js → SearchShowcase.DggdcmcI.js} +1 -1
- package/packages/storefront/dist/client/_astro/{ShippingCalculator.DE01D7dt.js → ShippingCalculator.B5JIh5xw.js} +1 -1
- package/packages/storefront/dist/client/_astro/{ShopHeader.Cf4t6O6z.js → ShopHeader.CIsQLhMR.js} +2 -2
- package/packages/storefront/dist/client/_astro/{_plugin-vue_export-helper.CBemkWnU.js → _plugin-vue_export-helper.3R8ooc_r.js} +3 -3
- package/packages/storefront/dist/client/_astro/{_slug_.DX_OkMX7.css → _slug_.CnXAH2gj.css} +1 -1
- package/packages/storefront/dist/client/_astro/client.mwowSQrH.js +1 -0
- package/packages/storefront/dist/client/_astro/{customer-session.CNe1heRH.js → customer-session.BAjMMoBA.js} +1 -1
- package/packages/storefront/dist/client/_astro/{format-money.DINpWB0x.js → format-money.vLicYTv9.js} +1 -1
- package/packages/storefront/dist/client/_astro/{grid-title.D4m7-g3h.js → grid-title.CxNZApGL.js} +1 -1
- package/packages/storefront/dist/client/_astro/{hoisted.EBqhuD5o.js → hoisted.B8Lw6O9a.js} +1 -1
- package/packages/storefront/dist/client/_astro/{hoisted.B2rH1xwX.js → hoisted.D4m7OTKi.js} +1 -1
- package/packages/storefront/dist/client/_astro/{hoisted.ut_nNM_H.js → hoisted.DSAg3dYh.js} +1 -1
- package/packages/storefront/dist/client/_astro/hoisted.D_dlmSy5.js +1 -0
- package/packages/storefront/dist/client/_astro/{i18n.B3skIOFg.js → i18n.BE5r_SIU.js} +1 -1
- package/packages/storefront/dist/client/_astro/{img.D5a6GzeE.js → img.CB-F9VLo.js} +1 -1
- package/packages/storefront/dist/client/_astro/{index.DBfgCyd-.js → index.BAyyMfaO.js} +1 -1
- package/packages/storefront/dist/client/_astro/{index.CFw6O-Kt.js → index.CTTHpJlV.js} +1 -1
- package/packages/storefront/dist/client/_astro/{modules-info.BHKiT6oA.js → modules-info.C6KJuGeB.js} +1 -1
- package/packages/storefront/dist/client/_astro/name.CIPngEFN.js +1 -0
- package/packages/storefront/dist/client/_astro/sf-utils.xmJHVMAX.js +13 -0
- package/packages/storefront/dist/client/_astro/{shopping-cart.D-w8Z-4p.js → shopping-cart.DGvCZWRZ.js} +1 -1
- package/packages/storefront/dist/client/_astro/{use-analytics.CQDdNgwF.js → use-analytics.BWhF_fCv.js} +1 -1
- package/packages/storefront/dist/client/_astro/{use-cms-preview.4Hq7LCmA.js → use-cms-preview.CPGTKut8.js} +1 -1
- package/packages/storefront/dist/client/_astro/{use-product-card.CQRlRsNX.js → use-product-card.C-RbCwna.js} +1 -1
- package/packages/storefront/dist/client/_astro/{use-text-value.UjCYLWjm.js → use-text-value.D4Rw7N4D.js} +1 -1
- package/packages/storefront/dist/server/chunks/{CartSidebar_BmwcZuxv.mjs → CartSidebar_lUckG0fs.mjs} +1 -1
- package/packages/storefront/dist/server/chunks/{SearchModal_BvEnUvAx.mjs → SearchModal_B2f22Mff.mjs} +1 -1
- package/packages/storefront/dist/server/chunks/{_.._DORZHe_Z.mjs → _.._CvgSOb3Z.mjs} +1 -1
- package/packages/storefront/dist/server/chunks/{_page__DU3kNewy.mjs → _page__Ex4FhYrc.mjs} +1 -1
- package/packages/storefront/dist/server/chunks/{account_CaTloREf.mjs → account_B7sLjsXD.mjs} +1 -1
- package/packages/storefront/dist/server/chunks/astro/{assets-service_B77Hm2ue.mjs → assets-service_BOyOfKDQ.mjs} +1 -1
- package/packages/storefront/dist/server/chunks/{astro_ISB6VLqs.mjs → astro_B5LBy7PI.mjs} +8 -4
- package/packages/storefront/dist/server/chunks/{index_BTDpenpc.mjs → index_BOh755yP.mjs} +1 -1
- package/packages/storefront/dist/server/chunks/{index_D0q4ab_n.mjs → index_C2hkTn-w.mjs} +1 -1
- package/packages/storefront/dist/server/chunks/{node_C7sdLKL4.mjs → node_DavlI8UF.mjs} +1 -1
- package/packages/storefront/dist/server/chunks/pages/{__B4CsSrck.mjs → __RXg_hYeF.mjs} +57 -18
- package/packages/storefront/dist/server/chunks/pages/{_page__sb5Idhgp.mjs → _page__Dyte93f2.mjs} +2 -2
- package/packages/storefront/dist/server/chunks/pages/{account_iWjHfkwu.mjs → account_C66y6_Y9.mjs} +2 -2
- package/packages/storefront/dist/server/chunks/pages/{index_BZlpKBRL.mjs → index_EO1hhrt8.mjs} +2 -2
- package/packages/storefront/dist/server/chunks/pages/{node_GFu-CQ19.mjs → node_hc25rqYt.mjs} +3 -3
- package/packages/storefront/dist/server/chunks/pages/{~fallback_C07rzeay.mjs → ~fallback_-K3esUV3.mjs} +2 -2
- package/packages/storefront/dist/server/chunks/{~fallback_YpJa9BIL.mjs → ~fallback_DQ6yB81s.mjs} +1 -1
- package/packages/storefront/dist/server/entry.mjs +625 -601
- package/packages/storefront/dist/server/{manifest_KFjAaJaC.mjs → manifest_bZVxjk3o.mjs} +3 -3
- package/packages/storefront/dist/server/renderers.mjs +1 -1
- package/packages/storefront/package.json +3 -3
- package/packages/storefront/src/lib/components/Carousel.vue +6 -0
- package/packages/storefront/src/lib/composables/use-product-shelf.ts +23 -4
- package/packages/storefront/src/lib/layouts/use-page-main.ts +6 -7
- package/packages/test-base/package.json +1 -1
- package/packages/types/package.json +1 -1
- package/packages/storefront/dist/client/_astro/ProductShelf.kfADQTUO.js +0 -1
- package/packages/storefront/dist/client/_astro/client.CdXC84C5.js +0 -1
- package/packages/storefront/dist/client/_astro/hoisted.DBPXHTEb.js +0 -1
- package/packages/storefront/dist/client/_astro/name.BZA9xqh-.js +0 -1
- package/packages/storefront/dist/client/_astro/sf-utils.Cigv01cN.js +0 -13
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import{_ as Q,w as Z,v as J}from"./_plugin-vue_export-helper.CBemkWnU.js";import{d as H,aj as ee,ak as te,a as h,w as P,c as b,Q as B,i as ne,o as g,$ as A,h as T,j as re,e as F,n as D,ac as le,f as W,Z as _,l as y,an as oe,g as ae,ag as R,af as k,T as ie,ap as se,z as ue,F as ce,ad as de}from"./sf-utils.Cigv01cN.js";const fe=H({__name:"Drawer",props:ee({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:{}},{modelValue:{type:Boolean,default:!1},modelModifiers:{}}),emits:["update:modelValue"],setup(e,{expose:n}){n();const t=e,r=te(e,"modelValue"),o=()=>{r.value=!1},l=h(null),a=s=>{if(!l.value?.contains(s.target)){if(t.anchorEl?.contains(s.target))return;o()}},i=s=>{s.key==="Escape"&&o()},f=h(0);P(r,async s=>{s?(t.canLockScroll&&(f.value=window.innerWidth-document.documentElement.clientWidth,document.body.style.overflow="hidden",document.body.style.paddingRight=`${f.value}px`),setTimeout(()=>{document.addEventListener("click",a,{passive:!0}),document.addEventListener("keydown",i,{passive:!0})},500)):(t.canLockScroll&&(document.body.style.overflow="",document.body.style.paddingRight=""),document.removeEventListener("click",a),document.removeEventListener("keydown",i))});const u=b(()=>{if(t.animation!=="slide")return null;switch(t.placement){case"start":return"left";case"end":return"right";case"top":return"down";default:return"up"}}),c=h(null);t.animation==="scale"&&P(r,s=>{s?B(()=>{setTimeout(()=>{c.value="transition",setTimeout(()=>{r.value&&(c.value="")},300)},50)}):c.value="transition scale-90"},{immediate:!0});const v=b(()=>Array.isArray(t.class)?t.class:[t.class]),p=b(()=>t.position==="fixed"),m=b(()=>t.placement==="start"||t.placement==="end"),d={props:t,model:r,close:o,drawer:l,outsideClickListener:a,escClickListener:i,scrollbarWidth:f,slideTo:u,animationClassName:c,customClassList:v,isFixed:p,isPlacementX:m};return Object.defineProperty(d,"__isScriptSetup",{enumerable:!1,value:!0}),d}}),me=["open","data-drawer"],ve={class:"relative h-full"},pe=W("i",{class:"m-0 text-3xl text-base-400 i-close hover:text-base-600"},null,-1),he={key:0,class:"size-screen fixed left-0 top-0 z-30 bg-black/50","data-drawer-backdrop":""};function we(e,n,t,r,o,l){const a=ne("Fade");return g(),A(a,{slide:r.slideTo,speed:"slow","is-floating":""},{default:T(()=>[r.model?re((g(),F("dialog",{key:0,ref:"drawer",class:D(["z-40 w-screen p-0",[t.position,r.isPlacementX?"m-0":"mx-auto",r.isPlacementX&&!t.maxWidth?"max-w-sm":null,r.isFixed?`top-0 ${r.isPlacementX?"h-screen":"max-h-screen"}`:null,r.isFixed&&t.placement!=="end"?"left-0":null,r.isFixed&&t.placement==="end"?"left-auto right-0":null,r.animationClassName,...r.customClassList]]),style:le({maxWidth:t.maxWidth?`min(${t.maxWidth}, calc(100vw - ${r.scrollbarWidth}px))`:r.isPlacementX?void 0:`calc(100vw - ${r.scrollbarWidth}px)`}),open:r.model,"data-drawer":t.placement},[W("div",ve,[t.hasCloseButton?(g(),F("button",{key:0,type:"button","aria-label":"Fechar",onClick:Z(r.close,["prevent"]),class:D(["absolute top-2 z-30 rounded",t.placement==="end"?"left-2":"right-2"]),"data-drawer-close":""},[_(e.$slots,"close",{},()=>[pe])],2)):y("",!0),_(e.$slots,"default")]),t.backdropTarget?(g(),A(oe,{key:0,to:t.backdropTarget},[ae(a,null,{default:T(()=>[r.model&&!t.isHidden?(g(),F("div",he)):y("",!0)]),_:1})],8,["to"])):y("",!0)],14,me)),[[J,!t.isHidden]]):y("",!0)]),_:3},8,["slide"])}const qe=Q(fe,[["render",we]]);let ge=Symbol("headlessui.useid"),be=0;function Ye(){return R(ge,()=>`${++be}`)()}function w(e){var n;if(e==null||e.value==null)return null;let t=(n=e.value.$el)!=null?n:e.value;return t instanceof Node?t:null}function L(e,n,...t){if(e in n){let o=n[e];return typeof o=="function"?o(...t):o}let r=new Error(`Tried to handle "${e}" but there is no handler defined. Only defined handlers are: ${Object.keys(n).map(o=>`"${o}"`).join(", ")}.`);throw Error.captureStackTrace&&Error.captureStackTrace(r,L),r}var ye=Object.defineProperty,Ee=(e,n,t)=>n in e?ye(e,n,{enumerable:!0,configurable:!0,writable:!0,value:t}):e[n]=t,j=(e,n,t)=>(Ee(e,typeof n!="symbol"?n+"":n,t),t);let xe=class{constructor(){j(this,"current",this.detect()),j(this,"currentId",0)}set(n){this.current!==n&&(this.currentId=0,this.current=n)}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"}},O=new xe;function U(e){if(O.isServer)return null;if(e instanceof Node)return e.ownerDocument;if(e!=null&&e.hasOwnProperty("value")){let n=w(e);if(n)return n.ownerDocument}return document}let N=["[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 Fe=(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))(Fe||{}),Se=(e=>(e[e.Error=0]="Error",e[e.Overflow=1]="Overflow",e[e.Success=2]="Success",e[e.Underflow=3]="Underflow",e))(Se||{}),Ne=(e=>(e[e.Previous=-1]="Previous",e[e.Next=1]="Next",e))(Ne||{});function V(e=document.body){return e==null?[]:Array.from(e.querySelectorAll(N)).sort((n,t)=>Math.sign((n.tabIndex||Number.MAX_SAFE_INTEGER)-(t.tabIndex||Number.MAX_SAFE_INTEGER)))}var X=(e=>(e[e.Strict=0]="Strict",e[e.Loose=1]="Loose",e))(X||{});function z(e,n=0){var t;return e===((t=U(e))==null?void 0:t.body)?!1:L(n,{0(){return e.matches(N)},1(){let r=e;for(;r!==null;){if(r.matches(N))return!0;r=r.parentElement}return!1}})}function Ze(e){let n=U(e);B(()=>{n&&!z(n.activeElement,0)&&Le(e)})}var ke=(e=>(e[e.Keyboard=0]="Keyboard",e[e.Mouse=1]="Mouse",e))(ke||{});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 Le(e){e?.focus({preventScroll:!0})}let Oe=["textarea","input"].join(",");function Pe(e){var n,t;return(t=(n=e?.matches)==null?void 0:n.call(e,Oe))!=null?t:!1}function Ae(e,n=t=>t){return e.slice().sort((t,r)=>{let o=n(t),l=n(r);if(o===null||l===null)return 0;let a=o.compareDocumentPosition(l);return a&Node.DOCUMENT_POSITION_FOLLOWING?-1:a&Node.DOCUMENT_POSITION_PRECEDING?1:0})}function Je(e,n){return Te(V(),n,{relativeTo:e})}function Te(e,n,{sorted:t=!0,relativeTo:r=null,skipElements:o=[]}={}){var l;let a=(l=Array.isArray(e)?e.length>0?e[0].ownerDocument:document:e?.ownerDocument)!=null?l:document,i=Array.isArray(e)?t?Ae(e):e:V(e);o.length>0&&i.length>1&&(i=i.filter(d=>!o.includes(d))),r=r??a.activeElement;let f=(()=>{if(n&5)return 1;if(n&10)return-1;throw new Error("Missing Focus.First, Focus.Previous, Focus.Next or Focus.Last")})(),u=(()=>{if(n&1)return 0;if(n&2)return Math.max(0,i.indexOf(r))-1;if(n&4)return Math.max(0,i.indexOf(r))+1;if(n&8)return i.length-1;throw new Error("Missing Focus.First, Focus.Previous, Focus.Next or Focus.Last")})(),c=n&32?{preventScroll:!0}:{},v=0,p=i.length,m;do{if(v>=p||v+p<=0)return 0;let d=u+v;if(n&16)d=(d+p)%p;else{if(d<0)return 3;if(d>=p)return 1}m=i[d],m?.focus(c),v+=f}while(m!==a.activeElement);return n&6&&Pe(m)&&m.select(),2}function De(){return/iPhone/gi.test(window.navigator.platform)||/Mac/gi.test(window.navigator.platform)&&window.navigator.maxTouchPoints>0}function _e(){return/Android/gi.test(window.navigator.userAgent)}function je(){return De()||_e()}function E(e,n,t){O.isServer||k(r=>{document.addEventListener(e,n,t),r(()=>document.removeEventListener(e,n,t))})}function Ce(e,n,t){O.isServer||k(r=>{window.addEventListener(e,n,t),r(()=>window.removeEventListener(e,n,t))})}function et(e,n,t=b(()=>!0)){function r(l,a){if(!t.value||l.defaultPrevented)return;let i=a(l);if(i===null||!i.getRootNode().contains(i))return;let f=function u(c){return typeof c=="function"?u(c()):Array.isArray(c)||c instanceof Set?c:[c]}(e);for(let u of f){if(u===null)continue;let c=u instanceof HTMLElement?u:w(u);if(c!=null&&c.contains(i)||l.composed&&l.composedPath().includes(c))return}return!z(i,X.Loose)&&i.tabIndex!==-1&&l.preventDefault(),n(l,i)}let o=h(null);E("pointerdown",l=>{var a,i;t.value&&(o.value=((i=(a=l.composedPath)==null?void 0:a.call(l))==null?void 0:i[0])||l.target)},!0),E("mousedown",l=>{var a,i;t.value&&(o.value=((i=(a=l.composedPath)==null?void 0:a.call(l))==null?void 0:i[0])||l.target)},!0),E("click",l=>{je()||o.value&&(r(l,()=>o.value),o.value=null)},!0),E("touchend",l=>r(l,()=>l.target instanceof HTMLElement?l.target:null),!0),Ce("blur",l=>r(l,()=>window.document.activeElement instanceof HTMLIFrameElement?window.document.activeElement:null),!0)}function C(e,n){if(e)return e;let t=n??"button";if(typeof t=="string"&&t.toLowerCase()==="button")return"button"}function tt(e,n){let t=h(C(e.value.type,e.value.as));return ie(()=>{t.value=C(e.value.type,e.value.as)}),k(()=>{var r;t.value||w(n)&&w(n)instanceof HTMLButtonElement&&!((r=w(n))!=null&&r.hasAttribute("type"))&&(t.value="button")}),t}function M(e){return[e.screenX,e.screenY]}function nt(){let e=h([-1,-1]);return{wasMoved(n){let t=M(n);return e.value[0]===t[0]&&e.value[1]===t[1]?!1:(e.value=t,!0)},update(n){e.value=M(n)}}}var Me=(e=>(e[e.None=0]="None",e[e.RenderStrategy=1]="RenderStrategy",e[e.Static=2]="Static",e))(Me||{}),Ie=(e=>(e[e.Unmount=0]="Unmount",e[e.Hidden=1]="Hidden",e))(Ie||{});function $e({visible:e=!0,features:n=0,ourProps:t,theirProps:r,...o}){var l;let a=G(r,t),i=Object.assign(o,{props:a});if(e||n&2&&a.static)return S(i);if(n&1){let f=(l=a.unmount)==null||l?0:1;return L(f,{0(){return null},1(){return S({...o,props:{...a,hidden:!0,style:{display:"none"}}})}})}return S(i)}function S({props:e,attrs:n,slots:t,slot:r,name:o}){var l,a;let{as:i,...f}=He(e,["unmount","static"]),u=(l=t.default)==null?void 0:l.call(t,r),c={};if(r){let v=!1,p=[];for(let[m,d]of Object.entries(r))typeof d=="boolean"&&(v=!0),d===!0&&p.push(m);v&&(c["data-headlessui-state"]=p.join(" "))}if(i==="template"){if(u=K(u??[]),Object.keys(f).length>0||Object.keys(n).length>0){let[v,...p]=u??[];if(!Be(v)||p.length>0)throw new Error(['Passing props on "template"!',"",`The current component <${o} /> is rendering a "template".`,"However we need to passthrough the following props:",Object.keys(f).concat(Object.keys(n)).map(s=>s.trim()).filter((s,x,Y)=>Y.indexOf(s)===x).sort((s,x)=>s.localeCompare(x)).map(s=>` - ${s}`).join(`
|
|
1
|
+
import{_ as Q,w as Z,v as J}from"./_plugin-vue_export-helper.3R8ooc_r.js";import{d as H,aj as ee,ak as te,a as h,w as P,c as b,Q as B,i as ne,o as g,$ as A,h as T,j as re,e as F,n as D,ac as le,f as W,Z as _,l as y,an as oe,g as ae,ag as R,af as k,T as ie,ap as se,z as ue,F as ce,ad as de}from"./sf-utils.xmJHVMAX.js";const fe=H({__name:"Drawer",props:ee({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:{}},{modelValue:{type:Boolean,default:!1},modelModifiers:{}}),emits:["update:modelValue"],setup(e,{expose:n}){n();const t=e,r=te(e,"modelValue"),o=()=>{r.value=!1},l=h(null),a=s=>{if(!l.value?.contains(s.target)){if(t.anchorEl?.contains(s.target))return;o()}},i=s=>{s.key==="Escape"&&o()},f=h(0);P(r,async s=>{s?(t.canLockScroll&&(f.value=window.innerWidth-document.documentElement.clientWidth,document.body.style.overflow="hidden",document.body.style.paddingRight=`${f.value}px`),setTimeout(()=>{document.addEventListener("click",a,{passive:!0}),document.addEventListener("keydown",i,{passive:!0})},500)):(t.canLockScroll&&(document.body.style.overflow="",document.body.style.paddingRight=""),document.removeEventListener("click",a),document.removeEventListener("keydown",i))});const u=b(()=>{if(t.animation!=="slide")return null;switch(t.placement){case"start":return"left";case"end":return"right";case"top":return"down";default:return"up"}}),c=h(null);t.animation==="scale"&&P(r,s=>{s?B(()=>{setTimeout(()=>{c.value="transition",setTimeout(()=>{r.value&&(c.value="")},300)},50)}):c.value="transition scale-90"},{immediate:!0});const v=b(()=>Array.isArray(t.class)?t.class:[t.class]),p=b(()=>t.position==="fixed"),m=b(()=>t.placement==="start"||t.placement==="end"),d={props:t,model:r,close:o,drawer:l,outsideClickListener:a,escClickListener:i,scrollbarWidth:f,slideTo:u,animationClassName:c,customClassList:v,isFixed:p,isPlacementX:m};return Object.defineProperty(d,"__isScriptSetup",{enumerable:!1,value:!0}),d}}),me=["open","data-drawer"],ve={class:"relative h-full"},pe=W("i",{class:"m-0 text-3xl text-base-400 i-close hover:text-base-600"},null,-1),he={key:0,class:"size-screen fixed left-0 top-0 z-30 bg-black/50","data-drawer-backdrop":""};function we(e,n,t,r,o,l){const a=ne("Fade");return g(),A(a,{slide:r.slideTo,speed:"slow","is-floating":""},{default:T(()=>[r.model?re((g(),F("dialog",{key:0,ref:"drawer",class:D(["z-40 w-screen p-0",[t.position,r.isPlacementX?"m-0":"mx-auto",r.isPlacementX&&!t.maxWidth?"max-w-sm":null,r.isFixed?`top-0 ${r.isPlacementX?"h-screen":"max-h-screen"}`:null,r.isFixed&&t.placement!=="end"?"left-0":null,r.isFixed&&t.placement==="end"?"left-auto right-0":null,r.animationClassName,...r.customClassList]]),style:le({maxWidth:t.maxWidth?`min(${t.maxWidth}, calc(100vw - ${r.scrollbarWidth}px))`:r.isPlacementX?void 0:`calc(100vw - ${r.scrollbarWidth}px)`}),open:r.model,"data-drawer":t.placement},[W("div",ve,[t.hasCloseButton?(g(),F("button",{key:0,type:"button","aria-label":"Fechar",onClick:Z(r.close,["prevent"]),class:D(["absolute top-2 z-30 rounded",t.placement==="end"?"left-2":"right-2"]),"data-drawer-close":""},[_(e.$slots,"close",{},()=>[pe])],2)):y("",!0),_(e.$slots,"default")]),t.backdropTarget?(g(),A(oe,{key:0,to:t.backdropTarget},[ae(a,null,{default:T(()=>[r.model&&!t.isHidden?(g(),F("div",he)):y("",!0)]),_:1})],8,["to"])):y("",!0)],14,me)),[[J,!t.isHidden]]):y("",!0)]),_:3},8,["slide"])}const qe=Q(fe,[["render",we]]);let ge=Symbol("headlessui.useid"),be=0;function Ye(){return R(ge,()=>`${++be}`)()}function w(e){var n;if(e==null||e.value==null)return null;let t=(n=e.value.$el)!=null?n:e.value;return t instanceof Node?t:null}function L(e,n,...t){if(e in n){let o=n[e];return typeof o=="function"?o(...t):o}let r=new Error(`Tried to handle "${e}" but there is no handler defined. Only defined handlers are: ${Object.keys(n).map(o=>`"${o}"`).join(", ")}.`);throw Error.captureStackTrace&&Error.captureStackTrace(r,L),r}var ye=Object.defineProperty,Ee=(e,n,t)=>n in e?ye(e,n,{enumerable:!0,configurable:!0,writable:!0,value:t}):e[n]=t,j=(e,n,t)=>(Ee(e,typeof n!="symbol"?n+"":n,t),t);let xe=class{constructor(){j(this,"current",this.detect()),j(this,"currentId",0)}set(n){this.current!==n&&(this.currentId=0,this.current=n)}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"}},O=new xe;function U(e){if(O.isServer)return null;if(e instanceof Node)return e.ownerDocument;if(e!=null&&e.hasOwnProperty("value")){let n=w(e);if(n)return n.ownerDocument}return document}let N=["[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 Fe=(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))(Fe||{}),Se=(e=>(e[e.Error=0]="Error",e[e.Overflow=1]="Overflow",e[e.Success=2]="Success",e[e.Underflow=3]="Underflow",e))(Se||{}),Ne=(e=>(e[e.Previous=-1]="Previous",e[e.Next=1]="Next",e))(Ne||{});function V(e=document.body){return e==null?[]:Array.from(e.querySelectorAll(N)).sort((n,t)=>Math.sign((n.tabIndex||Number.MAX_SAFE_INTEGER)-(t.tabIndex||Number.MAX_SAFE_INTEGER)))}var X=(e=>(e[e.Strict=0]="Strict",e[e.Loose=1]="Loose",e))(X||{});function z(e,n=0){var t;return e===((t=U(e))==null?void 0:t.body)?!1:L(n,{0(){return e.matches(N)},1(){let r=e;for(;r!==null;){if(r.matches(N))return!0;r=r.parentElement}return!1}})}function Ze(e){let n=U(e);B(()=>{n&&!z(n.activeElement,0)&&Le(e)})}var ke=(e=>(e[e.Keyboard=0]="Keyboard",e[e.Mouse=1]="Mouse",e))(ke||{});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 Le(e){e?.focus({preventScroll:!0})}let Oe=["textarea","input"].join(",");function Pe(e){var n,t;return(t=(n=e?.matches)==null?void 0:n.call(e,Oe))!=null?t:!1}function Ae(e,n=t=>t){return e.slice().sort((t,r)=>{let o=n(t),l=n(r);if(o===null||l===null)return 0;let a=o.compareDocumentPosition(l);return a&Node.DOCUMENT_POSITION_FOLLOWING?-1:a&Node.DOCUMENT_POSITION_PRECEDING?1:0})}function Je(e,n){return Te(V(),n,{relativeTo:e})}function Te(e,n,{sorted:t=!0,relativeTo:r=null,skipElements:o=[]}={}){var l;let a=(l=Array.isArray(e)?e.length>0?e[0].ownerDocument:document:e?.ownerDocument)!=null?l:document,i=Array.isArray(e)?t?Ae(e):e:V(e);o.length>0&&i.length>1&&(i=i.filter(d=>!o.includes(d))),r=r??a.activeElement;let f=(()=>{if(n&5)return 1;if(n&10)return-1;throw new Error("Missing Focus.First, Focus.Previous, Focus.Next or Focus.Last")})(),u=(()=>{if(n&1)return 0;if(n&2)return Math.max(0,i.indexOf(r))-1;if(n&4)return Math.max(0,i.indexOf(r))+1;if(n&8)return i.length-1;throw new Error("Missing Focus.First, Focus.Previous, Focus.Next or Focus.Last")})(),c=n&32?{preventScroll:!0}:{},v=0,p=i.length,m;do{if(v>=p||v+p<=0)return 0;let d=u+v;if(n&16)d=(d+p)%p;else{if(d<0)return 3;if(d>=p)return 1}m=i[d],m?.focus(c),v+=f}while(m!==a.activeElement);return n&6&&Pe(m)&&m.select(),2}function De(){return/iPhone/gi.test(window.navigator.platform)||/Mac/gi.test(window.navigator.platform)&&window.navigator.maxTouchPoints>0}function _e(){return/Android/gi.test(window.navigator.userAgent)}function je(){return De()||_e()}function E(e,n,t){O.isServer||k(r=>{document.addEventListener(e,n,t),r(()=>document.removeEventListener(e,n,t))})}function Ce(e,n,t){O.isServer||k(r=>{window.addEventListener(e,n,t),r(()=>window.removeEventListener(e,n,t))})}function et(e,n,t=b(()=>!0)){function r(l,a){if(!t.value||l.defaultPrevented)return;let i=a(l);if(i===null||!i.getRootNode().contains(i))return;let f=function u(c){return typeof c=="function"?u(c()):Array.isArray(c)||c instanceof Set?c:[c]}(e);for(let u of f){if(u===null)continue;let c=u instanceof HTMLElement?u:w(u);if(c!=null&&c.contains(i)||l.composed&&l.composedPath().includes(c))return}return!z(i,X.Loose)&&i.tabIndex!==-1&&l.preventDefault(),n(l,i)}let o=h(null);E("pointerdown",l=>{var a,i;t.value&&(o.value=((i=(a=l.composedPath)==null?void 0:a.call(l))==null?void 0:i[0])||l.target)},!0),E("mousedown",l=>{var a,i;t.value&&(o.value=((i=(a=l.composedPath)==null?void 0:a.call(l))==null?void 0:i[0])||l.target)},!0),E("click",l=>{je()||o.value&&(r(l,()=>o.value),o.value=null)},!0),E("touchend",l=>r(l,()=>l.target instanceof HTMLElement?l.target:null),!0),Ce("blur",l=>r(l,()=>window.document.activeElement instanceof HTMLIFrameElement?window.document.activeElement:null),!0)}function C(e,n){if(e)return e;let t=n??"button";if(typeof t=="string"&&t.toLowerCase()==="button")return"button"}function tt(e,n){let t=h(C(e.value.type,e.value.as));return ie(()=>{t.value=C(e.value.type,e.value.as)}),k(()=>{var r;t.value||w(n)&&w(n)instanceof HTMLButtonElement&&!((r=w(n))!=null&&r.hasAttribute("type"))&&(t.value="button")}),t}function M(e){return[e.screenX,e.screenY]}function nt(){let e=h([-1,-1]);return{wasMoved(n){let t=M(n);return e.value[0]===t[0]&&e.value[1]===t[1]?!1:(e.value=t,!0)},update(n){e.value=M(n)}}}var Me=(e=>(e[e.None=0]="None",e[e.RenderStrategy=1]="RenderStrategy",e[e.Static=2]="Static",e))(Me||{}),Ie=(e=>(e[e.Unmount=0]="Unmount",e[e.Hidden=1]="Hidden",e))(Ie||{});function $e({visible:e=!0,features:n=0,ourProps:t,theirProps:r,...o}){var l;let a=G(r,t),i=Object.assign(o,{props:a});if(e||n&2&&a.static)return S(i);if(n&1){let f=(l=a.unmount)==null||l?0:1;return L(f,{0(){return null},1(){return S({...o,props:{...a,hidden:!0,style:{display:"none"}}})}})}return S(i)}function S({props:e,attrs:n,slots:t,slot:r,name:o}){var l,a;let{as:i,...f}=He(e,["unmount","static"]),u=(l=t.default)==null?void 0:l.call(t,r),c={};if(r){let v=!1,p=[];for(let[m,d]of Object.entries(r))typeof d=="boolean"&&(v=!0),d===!0&&p.push(m);v&&(c["data-headlessui-state"]=p.join(" "))}if(i==="template"){if(u=K(u??[]),Object.keys(f).length>0||Object.keys(n).length>0){let[v,...p]=u??[];if(!Be(v)||p.length>0)throw new Error(['Passing props on "template"!',"",`The current component <${o} /> is rendering a "template".`,"However we need to passthrough the following props:",Object.keys(f).concat(Object.keys(n)).map(s=>s.trim()).filter((s,x,Y)=>Y.indexOf(s)===x).sort((s,x)=>s.localeCompare(x)).map(s=>` - ${s}`).join(`
|
|
2
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(s=>` - ${s}`).join(`
|
|
3
3
|
`)].join(`
|
|
4
4
|
`));let m=G((a=v.props)!=null?a:{},f,c),d=se(v,m,!0);for(let s in m)s.startsWith("on")&&(d.props||(d.props={}),d.props[s]=m[s]);return d}return Array.isArray(u)&&u.length===1?u[0]:u}return ue(i,Object.assign({},f,c),{default:()=>u})}function K(e){return e.flatMap(n=>n.type===ce?K(n.children):[n])}function G(...e){if(e.length===0)return{};if(e.length===1)return e[0];let n={},t={};for(let r of e)for(let o in r)o.startsWith("on")&&typeof r[o]=="function"?(t[o]!=null||(t[o]=[]),t[o].push(r[o])):n[o]=r[o];if(n.disabled||n["aria-disabled"])return Object.assign(n,Object.fromEntries(Object.keys(t).map(r=>[r,void 0])));for(let r in t)Object.assign(n,{[r](o,...l){let a=t[r];for(let i of a){if(o instanceof Event&&o.defaultPrevented)return;i(o,...l)}}});return n}function rt(e){let n=Object.assign({},e);for(let t in n)n[t]===void 0&&delete n[t];return n}function He(e,n=[]){let t=Object.assign({},e);for(let r of n)r in t&&delete t[r];return t}function Be(e){return e==null?!1:typeof e.type=="string"||typeof e.type=="object"||typeof e.type=="function"}var We=(e=>(e[e.None=1]="None",e[e.Focusable=2]="Focusable",e[e.Hidden=4]="Hidden",e))(We||{});let lt=H({name:"Hidden",props:{as:{type:[Object,String],default:"div"},features:{type:Number,default:1}},setup(e,{slots:n,attrs:t}){return()=>{var r;let{features:o,...l}=e,a={"aria-hidden":(o&2)===2?!0:(r=l["aria-hidden"])!=null?r: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",...(o&4)===4&&(o&2)!==2&&{display:"none"}}};return $e({ourProps:a,theirProps:l,slot:{},attrs:t,slots:n,name:"Hidden"})}}}),q=Symbol("Context");var Re=(e=>(e[e.Open=1]="Open",e[e.Closed=2]="Closed",e[e.Closing=4]="Closing",e[e.Opening=8]="Opening",e))(Re||{});function ot(){return R(q,null)}function at(e){de(q,e)}var Ue=(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))(Ue||{});function Ve(e){throw new Error("Unexpected object: "+e)}var Xe=(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))(Xe||{});function it(e,n){let t=n.resolveItems();if(t.length<=0)return null;let r=n.resolveActiveIndex(),o=r??-1;switch(e.focus){case 0:{for(let l=0;l<t.length;++l)if(!n.resolveDisabled(t[l],l,t))return l;return r}case 1:{o===-1&&(o=t.length);for(let l=o-1;l>=0;--l)if(!n.resolveDisabled(t[l],l,t))return l;return r}case 2:{for(let l=o+1;l<t.length;++l)if(!n.resolveDisabled(t[l],l,t))return l;return r}case 3:{for(let l=t.length-1;l>=0;--l)if(!n.resolveDisabled(t[l],l,t))return l;return r}case 4:{for(let l=0;l<t.length;++l)if(n.resolveId(t[l],l,t)===e.id)return l;return r}case 5:return null;default:Ve(e)}}let I=/([\u2700-\u27BF]|[\uE000-\uF8FF]|\uD83C[\uDC00-\uDFFF]|\uD83D[\uDC00-\uDFFF]|[\u2011-\u26FF]|\uD83E[\uDD10-\uDDFF])/g;function $(e){var n,t;let r=(n=e.innerText)!=null?n:"",o=e.cloneNode(!0);if(!(o instanceof HTMLElement))return r;let l=!1;for(let i of o.querySelectorAll('[hidden],[aria-hidden],[role="img"]'))i.remove(),l=!0;let a=l?(t=o.innerText)!=null?t:"":r;return I.test(a)&&(a=a.replace(I,"")),a}function ze(e){let n=e.getAttribute("aria-label");if(typeof n=="string")return n.trim();let t=e.getAttribute("aria-labelledby");if(t){let r=t.split(" ").map(o=>{let l=document.getElementById(o);if(l){let a=l.getAttribute("aria-label");return typeof a=="string"?a.trim():$(l).trim()}return null}).filter(Boolean);if(r.length>0)return r.join(", ")}return $(e).trim()}function st(e){let n=h(""),t=h("");return()=>{let r=w(e);if(!r)return"";let o=r.innerText;if(n.value===o)return t.value;let l=ze(r).trim().toLowerCase();return n.value=o,t.value=l,l}}export{$e as A,qe as D,rt as E,Ye as I,Me as N,Ae as O,Te as P,He as T,Ze as _,z as a,lt as b,Xe as c,tt as d,nt as e,it as f,Ue as g,X as h,Re as i,U as j,O as k,ot as l,Ce as m,Fe as n,w as o,st as p,V as q,Se as r,We as s,at as t,L as u,Je as v,et as w};
|
package/packages/storefront/dist/server/chunks/{CartSidebar_BmwcZuxv.mjs → CartSidebar_lUckG0fs.mjs}
RENAMED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { u as parseProduct, _ as _export_sfc, v as removeCartItem, Q as QuantitySelector, w as Prices, x as freeShippingFromValue, y as shoppingCart, z as totalItems, C as CheckoutLink, A as ShippingCalculator } from './pages/
|
|
1
|
+
import { u as parseProduct, _ as _export_sfc, v as removeCartItem, Q as QuantitySelector, w as Prices, x as freeShippingFromValue, y as shoppingCart, z as totalItems, C as CheckoutLink, A as ShippingCalculator } from './pages/__RXg_hYeF.mjs';
|
|
2
2
|
import { computed, useSSRContext, defineComponent, resolveComponent, mergeProps, withCtx, openBlock, createBlock, createCommentVNode, createVNode, toDisplayString, ref, createTextVNode } from 'vue';
|
|
3
3
|
import { name, img } from '@ecomplus/utils';
|
|
4
4
|
import { ssrRenderAttrs, ssrRenderComponent, ssrInterpolate, ssrRenderAttr, ssrRenderList } from 'vue/server-renderer';
|
package/packages/storefront/dist/server/chunks/{SearchModal_BvEnUvAx.mjs → SearchModal_B2f22Mff.mjs}
RENAMED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { q as clearAccents, S as SearchEngine, s as searchHistory, _ as _export_sfc, r as getSearchUrl, t as ProductShelf } from './pages/
|
|
1
|
+
import { q as clearAccents, S as SearchEngine, s as searchHistory, _ as _export_sfc, r as getSearchUrl, t as ProductShelf } from './pages/__RXg_hYeF.mjs';
|
|
2
2
|
import { ref, watch, toRef, defineComponent, resolveComponent, mergeProps, withCtx, createTextVNode, toDisplayString, openBlock, createBlock, Fragment, renderList, createVNode, createCommentVNode, useSSRContext } from 'vue';
|
|
3
3
|
import Wade from 'wade';
|
|
4
4
|
import { ssrRenderAttrs, ssrRenderComponent, ssrRenderClass, ssrRenderList, ssrInterpolate, ssrRenderAttr } from 'vue/server-renderer';
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { isRemotePath, joinPaths } from '@astrojs/internal-helpers/path';
|
|
2
|
-
import { A as AstroError$1, E as ExpectedImage, L as LocalImageUsedWrongly, M as MissingImageDimension, U as UnsupportedImageFormat, I as IncompatibleDescriptorOptions, a as UnsupportedImageConversion, b as MissingSharp } from '../
|
|
2
|
+
import { A as AstroError$1, E as ExpectedImage, L as LocalImageUsedWrongly, M as MissingImageDimension, U as UnsupportedImageFormat, I as IncompatibleDescriptorOptions, a as UnsupportedImageConversion, b as MissingSharp } from '../astro_B5LBy7PI.mjs';
|
|
3
3
|
|
|
4
4
|
const InvalidImageService = {
|
|
5
5
|
name: "InvalidImageService",
|
|
@@ -290,7 +290,7 @@ class AstroError extends Error {
|
|
|
290
290
|
}
|
|
291
291
|
}
|
|
292
292
|
|
|
293
|
-
const ASTRO_VERSION = "4.4.
|
|
293
|
+
const ASTRO_VERSION = "4.4.6";
|
|
294
294
|
const REROUTE_DIRECTIVE_HEADER = "X-Astro-Reroute";
|
|
295
295
|
const ROUTE_TYPE_HEADER = "X-Astro-Route-Type";
|
|
296
296
|
const REROUTABLE_STATUS_CODES = [404, 500];
|
|
@@ -472,6 +472,8 @@ function unescapeHTML(str) {
|
|
|
472
472
|
return Promise.resolve(str).then((value) => {
|
|
473
473
|
return unescapeHTML(value);
|
|
474
474
|
});
|
|
475
|
+
} else if (str[Symbol.for("astro:slot-string")]) {
|
|
476
|
+
return str;
|
|
475
477
|
} else if (Symbol.iterator in str) {
|
|
476
478
|
return unescapeChunks(str);
|
|
477
479
|
} else if (Symbol.asyncIterator in str || hasGetReader(str)) {
|
|
@@ -779,10 +781,10 @@ function isHeadAndContent(obj) {
|
|
|
779
781
|
return typeof obj === "object" && !!obj[headAndContentSym];
|
|
780
782
|
}
|
|
781
783
|
|
|
782
|
-
var astro_island_prebuilt_default = `(()=>{var v=Object.defineProperty;var A=(c,s,a)=>s in c?v(c,s,{enumerable:!0,configurable:!0,writable:!0,value:a}):c[s]=a;var d=(c,s,a)=>(A(c,typeof s!="symbol"?s+"":s,a),a);var u;{let c={0:t=>m(t),1:t=>a(t),2:t=>new RegExp(t),3:t=>new Date(t),4:t=>new Map(a(t)),5:t=>new Set(a(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)},s=t=>{let[e,n]=t;return e in c?c[e](n):void 0},a=t=>t.map(s),m=t=>typeof t!="object"||t===null?t:Object.fromEntries(Object.entries(t).map(([e,n])=>[e,s(n)]));customElements.get("astro-island")||customElements.define("astro-island",(u=class extends HTMLElement{constructor(){super(...arguments);d(this,"Component");d(this,"hydrator");d(this,"hydrate",async()=>{var f;if(!this.hydrator||!this.isConnected)return;let e=(f=this.parentElement)==null?void 0:f.closest("astro-island[ssr]");if(e){e.addEventListener("astro:hydrate",this.hydrate,{once:!0});return}let n=this.querySelectorAll("astro-slot"),r={},l=this.querySelectorAll("template[data-astro-template]");for(let o of l){let i=o.closest(this.tagName);i!=null&&i.isSameNode(this)&&(r[o.getAttribute("data-astro-template")||"default"]=o.innerHTML,o.remove())}for(let o of n){let i=o.closest(this.tagName);i!=null&&i.isSameNode(this)&&(r[o.getAttribute("name")||"default"]=o.innerHTML)}let h;try{h=this.hasAttribute("props")?m(JSON.parse(this.getAttribute("props"))):{}}catch(o){let i=this.getAttribute("component-url")||"<unknown>",b=this.getAttribute("component-export");throw b&&(i+=\` (export \${b})\`),console.error(\`[hydrate] Error parsing props for component \${i}\`,this.getAttribute("props"),o),o}let p;await this.hydrator(this)(this.Component,h,r,{client:this.getAttribute("client")}),this.removeAttribute("ssr"),this.dispatchEvent(new CustomEvent("astro:hydrate"))});d(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),n.disconnect(),this.childrenConnectedCallback()},n=new MutationObserver(()=>{var r;((r=this.lastChild)==null?void 0:r.nodeType)===Node.COMMENT_NODE&&this.lastChild.nodeValue==="astro:end"&&(this.lastChild.remove(),e())});n.observe(this,{childList:!0}),document.addEventListener("DOMContentLoaded",e)}}async childrenConnectedCallback(){let e=this.getAttribute("before-hydration-url");e&&await import(e),this.start()}async start(){let e=JSON.parse(this.getAttribute("opts")),n=this.getAttribute("client");if(Astro[n]===void 0){window.addEventListener(\`astro:\${n}\`,()=>this.start(),{once:!0});return}try{await Astro[n](async()=>{let r=this.getAttribute("renderer-url"),[l,{default:h}]=await Promise.all([import(this.getAttribute("component-url")),r?import(r):()=>()=>{}]),p=this.getAttribute("component-export")||"default";if(!p.includes("."))this.Component=l[p];else{this.Component=l;for(let y of p.split("."))this.Component=this.Component[y]}return this.hydrator=h,this.hydrate},e,this)}catch(r){console.error(\`[astro-island] Error hydrating \${this.getAttribute("component-url")}\`,r)}}attributeChangedCallback(){this.hydrate()}},d(u,"observedAttributes",["props"]),u))}})();`;
|
|
783
|
-
|
|
784
784
|
var astro_island_prebuilt_dev_default = `(()=>{var v=Object.defineProperty;var A=(c,s,a)=>s in c?v(c,s,{enumerable:!0,configurable:!0,writable:!0,value:a}):c[s]=a;var l=(c,s,a)=>(A(c,typeof s!="symbol"?s+"":s,a),a);var m;{let c={0:t=>y(t),1:t=>a(t),2:t=>new RegExp(t),3:t=>new Date(t),4:t=>new Map(a(t)),5:t=>new Set(a(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)},s=t=>{let[e,n]=t;return e in c?c[e](n):void 0},a=t=>t.map(s),y=t=>typeof t!="object"||t===null?t:Object.fromEntries(Object.entries(t).map(([e,n])=>[e,s(n)]));customElements.get("astro-island")||customElements.define("astro-island",(m=class extends HTMLElement{constructor(){super(...arguments);l(this,"Component");l(this,"hydrator");l(this,"hydrate",async()=>{var f;if(!this.hydrator||!this.isConnected)return;let e=(f=this.parentElement)==null?void 0:f.closest("astro-island[ssr]");if(e){e.addEventListener("astro:hydrate",this.hydrate,{once:!0});return}let n=this.querySelectorAll("astro-slot"),r={},h=this.querySelectorAll("template[data-astro-template]");for(let o of h){let i=o.closest(this.tagName);i!=null&&i.isSameNode(this)&&(r[o.getAttribute("data-astro-template")||"default"]=o.innerHTML,o.remove())}for(let o of n){let i=o.closest(this.tagName);i!=null&&i.isSameNode(this)&&(r[o.getAttribute("name")||"default"]=o.innerHTML)}let p;try{p=this.hasAttribute("props")?y(JSON.parse(this.getAttribute("props"))):{}}catch(o){let i=this.getAttribute("component-url")||"<unknown>",b=this.getAttribute("component-export");throw b&&(i+=\` (export \${b})\`),console.error(\`[hydrate] Error parsing props for component \${i}\`,this.getAttribute("props"),o),o}let d,u=this.hydrator(this);d=performance.now(),await u(this.Component,p,r,{client:this.getAttribute("client")}),d&&this.setAttribute("client-render-time",(performance.now()-d).toString()),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),n.disconnect(),this.childrenConnectedCallback()},n=new MutationObserver(()=>{var r;((r=this.lastChild)==null?void 0:r.nodeType)===Node.COMMENT_NODE&&this.lastChild.nodeValue==="astro:end"&&(this.lastChild.remove(),e())});n.observe(this,{childList:!0}),document.addEventListener("DOMContentLoaded",e)}}async childrenConnectedCallback(){let e=this.getAttribute("before-hydration-url");e&&await import(e),this.start()}async start(){let e=JSON.parse(this.getAttribute("opts")),n=this.getAttribute("client");if(Astro[n]===void 0){window.addEventListener(\`astro:\${n}\`,()=>this.start(),{once:!0});return}try{await Astro[n](async()=>{let r=this.getAttribute("renderer-url"),[h,{default:p}]=await Promise.all([import(this.getAttribute("component-url")),r?import(r):()=>()=>{}]),d=this.getAttribute("component-export")||"default";if(!d.includes("."))this.Component=h[d];else{this.Component=h;for(let u of d.split("."))this.Component=this.Component[u]}return this.hydrator=p,this.hydrate},e,this)}catch(r){console.error(\`[astro-island] Error hydrating \${this.getAttribute("component-url")}\`,r)}}attributeChangedCallback(){this.hydrate()}},l(m,"observedAttributes",["props"]),m))}})();`;
|
|
785
785
|
|
|
786
|
+
var astro_island_prebuilt_default = `(()=>{var v=Object.defineProperty;var A=(c,s,a)=>s in c?v(c,s,{enumerable:!0,configurable:!0,writable:!0,value:a}):c[s]=a;var d=(c,s,a)=>(A(c,typeof s!="symbol"?s+"":s,a),a);var u;{let c={0:t=>m(t),1:t=>a(t),2:t=>new RegExp(t),3:t=>new Date(t),4:t=>new Map(a(t)),5:t=>new Set(a(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)},s=t=>{let[e,n]=t;return e in c?c[e](n):void 0},a=t=>t.map(s),m=t=>typeof t!="object"||t===null?t:Object.fromEntries(Object.entries(t).map(([e,n])=>[e,s(n)]));customElements.get("astro-island")||customElements.define("astro-island",(u=class extends HTMLElement{constructor(){super(...arguments);d(this,"Component");d(this,"hydrator");d(this,"hydrate",async()=>{var f;if(!this.hydrator||!this.isConnected)return;let e=(f=this.parentElement)==null?void 0:f.closest("astro-island[ssr]");if(e){e.addEventListener("astro:hydrate",this.hydrate,{once:!0});return}let n=this.querySelectorAll("astro-slot"),r={},l=this.querySelectorAll("template[data-astro-template]");for(let o of l){let i=o.closest(this.tagName);i!=null&&i.isSameNode(this)&&(r[o.getAttribute("data-astro-template")||"default"]=o.innerHTML,o.remove())}for(let o of n){let i=o.closest(this.tagName);i!=null&&i.isSameNode(this)&&(r[o.getAttribute("name")||"default"]=o.innerHTML)}let h;try{h=this.hasAttribute("props")?m(JSON.parse(this.getAttribute("props"))):{}}catch(o){let i=this.getAttribute("component-url")||"<unknown>",b=this.getAttribute("component-export");throw b&&(i+=\` (export \${b})\`),console.error(\`[hydrate] Error parsing props for component \${i}\`,this.getAttribute("props"),o),o}let p;await this.hydrator(this)(this.Component,h,r,{client:this.getAttribute("client")}),this.removeAttribute("ssr"),this.dispatchEvent(new CustomEvent("astro:hydrate"))});d(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),n.disconnect(),this.childrenConnectedCallback()},n=new MutationObserver(()=>{var r;((r=this.lastChild)==null?void 0:r.nodeType)===Node.COMMENT_NODE&&this.lastChild.nodeValue==="astro:end"&&(this.lastChild.remove(),e())});n.observe(this,{childList:!0}),document.addEventListener("DOMContentLoaded",e)}}async childrenConnectedCallback(){let e=this.getAttribute("before-hydration-url");e&&await import(e),this.start()}async start(){let e=JSON.parse(this.getAttribute("opts")),n=this.getAttribute("client");if(Astro[n]===void 0){window.addEventListener(\`astro:\${n}\`,()=>this.start(),{once:!0});return}try{await Astro[n](async()=>{let r=this.getAttribute("renderer-url"),[l,{default:h}]=await Promise.all([import(this.getAttribute("component-url")),r?import(r):()=>()=>{}]),p=this.getAttribute("component-export")||"default";if(!p.includes("."))this.Component=l[p];else{this.Component=l;for(let y of p.split("."))this.Component=this.Component[y]}return this.hydrator=h,this.hydrate},e,this)}catch(r){console.error(\`[astro-island] Error hydrating \${this.getAttribute("component-url")}\`,r)}}attributeChangedCallback(){this.hydrate()}},d(u,"observedAttributes",["props"]),u))}})();`;
|
|
787
|
+
|
|
786
788
|
const ISLAND_STYLES = `<style>astro-island,astro-slot,astro-static-slot{display:contents}</style>`;
|
|
787
789
|
function determineIfNeedsHydrationScript(result) {
|
|
788
790
|
if (result._metadata.hasHydrationScript) {
|
|
@@ -921,6 +923,8 @@ function renderToBufferDestination(bufferRenderFunction) {
|
|
|
921
923
|
write: (chunk) => bufferChunks.push(chunk)
|
|
922
924
|
};
|
|
923
925
|
const renderPromise = bufferRenderFunction(bufferDestination);
|
|
926
|
+
Promise.resolve(renderPromise).catch(() => {
|
|
927
|
+
});
|
|
924
928
|
return {
|
|
925
929
|
async renderToFinalDestination(destination) {
|
|
926
930
|
for (const chunk of bufferChunks) {
|
|
@@ -2168,4 +2172,4 @@ function spreadAttributes(values = {}, _name, { class: scopedClassName } = {}) {
|
|
|
2168
2172
|
return markHTMLString(output);
|
|
2169
2173
|
}
|
|
2170
2174
|
|
|
2171
|
-
export { AstroError as A, ReservedSlotName as B, renderJSX as C, chunkToString as D, ExpectedImage as E, FailedToFetchRemoteImageDimensions as F, GetStaticPathsRequired as G, clientAddressSymbol as H, IncompatibleDescriptorOptions as I, ClientAddressNotAvailable as J, responseSentSymbol as K, LocalImageUsedWrongly as L, MissingImageDimension as M, NoMatchingStaticPathFound as N, LocalsNotAnObject as O, PageNumberParamNotFound as P, clientLocalsSymbol as Q, ResponseSentError as R, StaticClientAddressNotAvailable as S, ASTRO_VERSION as T, UnsupportedImageFormat as U, renderEndpoint as V, renderPage as W, REROUTABLE_STATUS_CODES as X, REROUTE_DIRECTIVE_HEADER as Y, UnsupportedImageConversion as a, MissingSharp as b, ExpectedImageOptions as c, InvalidImageService as d, createAstro as e, createComponent as f, ImageMissingAlt as g, addAttribute as h, renderComponent as i, createTransitionScope as j, renderSlotToString as k, renderAllHeadContent as l, maybeRenderHead as m, renderSlot as n, Fragment as o,
|
|
2175
|
+
export { AstroError as A, ReservedSlotName as B, renderJSX as C, chunkToString as D, ExpectedImage as E, FailedToFetchRemoteImageDimensions as F, GetStaticPathsRequired as G, clientAddressSymbol as H, IncompatibleDescriptorOptions as I, ClientAddressNotAvailable as J, responseSentSymbol as K, LocalImageUsedWrongly as L, MissingImageDimension as M, NoMatchingStaticPathFound as N, LocalsNotAnObject as O, PageNumberParamNotFound as P, clientLocalsSymbol as Q, ResponseSentError as R, StaticClientAddressNotAvailable as S, ASTRO_VERSION as T, UnsupportedImageFormat as U, renderEndpoint as V, renderPage as W, REROUTABLE_STATUS_CODES as X, REROUTE_DIRECTIVE_HEADER as Y, UnsupportedImageConversion as a, MissingSharp as b, ExpectedImageOptions as c, InvalidImageService as d, createAstro as e, createComponent as f, ImageMissingAlt as g, addAttribute as h, renderComponent as i, createTransitionScope as j, renderSlotToString as k, renderAllHeadContent as l, maybeRenderHead as m, renderSlot as n, Fragment as o, MiddlewareNoDataOrNextCalled as p, MiddlewareNotAResponse as q, renderTemplate as r, spreadAttributes as s, ROUTE_TYPE_HEADER as t, unescapeHTML as u, InvalidGetStaticPathsReturn as v, InvalidGetStaticPathsEntry as w, GetStaticPathsExpectedParams as x, GetStaticPathsInvalidRouteParam as y, PrerenderDynamicEndpointPathCollide as z };
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { img, imgSizes, i18n, formatMoney, price, randomObjectId, nickname, inStock, gridTitle, categoriesList, name, onPromotion, variationsGrids, specTextValue, specValueByText } from '@ecomplus/utils';
|
|
2
2
|
import '@astrojs/internal-helpers/path';
|
|
3
|
-
import { A as AstroError, c as ExpectedImageOptions, E as ExpectedImage, F as FailedToFetchRemoteImageDimensions, d as InvalidImageService, e as createAstro, f as createComponent, g as ImageMissingAlt, r as renderTemplate, m as maybeRenderHead, h as addAttribute, s as spreadAttributes, u as unescapeHTML, i as renderComponent, j as createTransitionScope, k as renderSlotToString, l as renderAllHeadContent, n as renderSlot$1, o as Fragment } from '../
|
|
3
|
+
import { A as AstroError, c as ExpectedImageOptions, E as ExpectedImage, F as FailedToFetchRemoteImageDimensions, d as InvalidImageService, e as createAstro, f as createComponent, g as ImageMissingAlt, r as renderTemplate, m as maybeRenderHead, h as addAttribute, s as spreadAttributes, u as unescapeHTML, i as renderComponent, j as createTransitionScope, k as renderSlotToString, l as renderAllHeadContent, n as renderSlot$1, o as Fragment } from '../astro_B5LBy7PI.mjs';
|
|
4
4
|
import 'kleur/colors';
|
|
5
5
|
import api from '@cloudcommerce/api';
|
|
6
6
|
import { EventEmitter } from 'node:events';
|
|
@@ -13,7 +13,7 @@ import 'clsx';
|
|
|
13
13
|
/* empty css */
|
|
14
14
|
import { renderSync, parse as parse$1, walkSync, ELEMENT_NODE } from 'ultrahtml';
|
|
15
15
|
import mime from 'mime/lite.js';
|
|
16
|
-
import { i as isRemoteImage, a as isESMImportedImage, b as isLocalService, D as DEFAULT_HASH_PROPS } from '../astro/assets-
|
|
16
|
+
import { i as isRemoteImage, a as isESMImportedImage, b as isLocalService, D as DEFAULT_HASH_PROPS } from '../astro/assets-service_BOyOfKDQ.mjs';
|
|
17
17
|
import imageSize from 'image-size';
|
|
18
18
|
import { ssrRenderSlotInner, ssrRenderVNode, ssrRenderSlot, ssrRenderAttrs, ssrRenderClass, ssrRenderList, ssrRenderComponent, ssrRenderStyle, ssrIncludeBooleanAttr, ssrRenderAttr, ssrRenderTeleport, ssrInterpolate, ssrRenderSuspense, ssrLooseEqual } from 'vue/server-renderer';
|
|
19
19
|
import { useScroll, useElementHover, useDebounceFn, watchDebounced, useTimeout, promiseTimeout, watchOnce, onClickOutside, useUrlSearchParams, createReusableTemplate } from '@vueuse/core';
|
|
@@ -572,10 +572,14 @@ const _sfc_main$C = /* @__PURE__ */ defineComponent({
|
|
|
572
572
|
restartAutoplay();
|
|
573
573
|
}
|
|
574
574
|
});
|
|
575
|
+
let initWrapperWidth = 0;
|
|
576
|
+
let initWrapperHeight = 0;
|
|
575
577
|
const calcOnInit = () => {
|
|
576
578
|
if (!wrapper.value) {
|
|
577
579
|
return;
|
|
578
580
|
}
|
|
581
|
+
initWrapperWidth = wrapper.value.clientWidth;
|
|
582
|
+
initWrapperHeight = wrapper.value.clientHeight;
|
|
579
583
|
calcWrapperSize();
|
|
580
584
|
calcSlidesSize();
|
|
581
585
|
calcCurrentIndex();
|
|
@@ -583,6 +587,9 @@ const _sfc_main$C = /* @__PURE__ */ defineComponent({
|
|
|
583
587
|
const onResize = useDebounceFn(() => {
|
|
584
588
|
if (!wrapper.value)
|
|
585
589
|
return;
|
|
590
|
+
const { clientWidth, clientHeight } = wrapper.value;
|
|
591
|
+
if (clientWidth === initWrapperWidth && clientHeight === initWrapperHeight)
|
|
592
|
+
return;
|
|
586
593
|
if (isX) {
|
|
587
594
|
wrapper.value.scrollLeft = 0;
|
|
588
595
|
} else {
|
|
@@ -608,7 +615,15 @@ const _sfc_main$C = /* @__PURE__ */ defineComponent({
|
|
|
608
615
|
return autoplayTimer;
|
|
609
616
|
}, set autoplayTimer(v) {
|
|
610
617
|
autoplayTimer = v;
|
|
611
|
-
}, restartAutoplay, changeSlide, carousel, isHovered,
|
|
618
|
+
}, restartAutoplay, changeSlide, carousel, isHovered, get initWrapperWidth() {
|
|
619
|
+
return initWrapperWidth;
|
|
620
|
+
}, set initWrapperWidth(v) {
|
|
621
|
+
initWrapperWidth = v;
|
|
622
|
+
}, get initWrapperHeight() {
|
|
623
|
+
return initWrapperHeight;
|
|
624
|
+
}, set initWrapperHeight(v) {
|
|
625
|
+
initWrapperHeight = v;
|
|
626
|
+
}, calcOnInit, onResize, CarouselControl };
|
|
612
627
|
Object.defineProperty(__returned__, "__isScriptSetup", { enumerable: false, value: true });
|
|
613
628
|
return __returned__;
|
|
614
629
|
}
|
|
@@ -1512,7 +1527,7 @@ async function getConfiguredImageService() {
|
|
|
1512
1527
|
if (!globalThis?.astroAsset?.imageService) {
|
|
1513
1528
|
const { default: service } = await import(
|
|
1514
1529
|
// @ts-expect-error
|
|
1515
|
-
'../astro/assets-
|
|
1530
|
+
'../astro/assets-service_BOyOfKDQ.mjs'
|
|
1516
1531
|
).then(n => n.s).catch((e) => {
|
|
1517
1532
|
const error = new AstroError(InvalidImageService);
|
|
1518
1533
|
error.cause = e;
|
|
@@ -5365,8 +5380,8 @@ const _sfc_main$r = /* @__PURE__ */ defineComponent({
|
|
|
5365
5380
|
},
|
|
5366
5381
|
setup(__props, { expose: __expose }) {
|
|
5367
5382
|
__expose();
|
|
5368
|
-
const SearchModal = defineAsyncComponent(() => import('../
|
|
5369
|
-
const CartSidebar = defineAsyncComponent(() => import('../
|
|
5383
|
+
const SearchModal = defineAsyncComponent(() => import('../SearchModal_B2f22Mff.mjs'));
|
|
5384
|
+
const CartSidebar = defineAsyncComponent(() => import('../CartSidebar_lUckG0fs.mjs'));
|
|
5370
5385
|
const props = __props;
|
|
5371
5386
|
const header = ref(null);
|
|
5372
5387
|
const searchInput = ref(null);
|
|
@@ -6221,6 +6236,7 @@ const useProductShelf = (props) => {
|
|
|
6221
6236
|
} else {
|
|
6222
6237
|
let searchQuery = props.searchQuery || "";
|
|
6223
6238
|
let collection;
|
|
6239
|
+
let productIds;
|
|
6224
6240
|
if (props.collectionId) {
|
|
6225
6241
|
try {
|
|
6226
6242
|
const { data } = await api.get(`collections/${props.collectionId}`);
|
|
@@ -6229,13 +6245,15 @@ const useProductShelf = (props) => {
|
|
|
6229
6245
|
console.error(err);
|
|
6230
6246
|
fetchError.value = err;
|
|
6231
6247
|
}
|
|
6232
|
-
|
|
6233
|
-
if (Array.isArray(productIds) && productIds.length) {
|
|
6234
|
-
searchQuery += `&_id=${productIds.slice(0, 60).join(",")}`;
|
|
6235
|
-
}
|
|
6248
|
+
productIds = collection?.products;
|
|
6236
6249
|
if (!title.value && title.value !== null && collection?.name) {
|
|
6237
6250
|
title.value = collection?.name;
|
|
6238
6251
|
}
|
|
6252
|
+
} else if (!searchQuery && props.orderedProductIds) {
|
|
6253
|
+
productIds = props.orderedProductIds;
|
|
6254
|
+
}
|
|
6255
|
+
if (productIds?.length) {
|
|
6256
|
+
searchQuery += `&_id=${productIds.slice(0, 60).join(",")}`;
|
|
6239
6257
|
}
|
|
6240
6258
|
endpointQuery += searchQuery;
|
|
6241
6259
|
}
|
|
@@ -6254,6 +6272,25 @@ const useProductShelf = (props) => {
|
|
|
6254
6272
|
data.result[i] = t;
|
|
6255
6273
|
}
|
|
6256
6274
|
}
|
|
6275
|
+
const { orderedProductIds } = props;
|
|
6276
|
+
if (orderedProductIds) {
|
|
6277
|
+
data.result.sort((a, b) => {
|
|
6278
|
+
if (b.available && inStock(b)) {
|
|
6279
|
+
if (!a.available || !inStock(a))
|
|
6280
|
+
return 1;
|
|
6281
|
+
const indexA = orderedProductIds.indexOf(a._id);
|
|
6282
|
+
const indexB = orderedProductIds.indexOf(b._id);
|
|
6283
|
+
if (indexA === -1 && indexB > -1)
|
|
6284
|
+
return 1;
|
|
6285
|
+
if (indexB === -1 && indexA > -1)
|
|
6286
|
+
return -1;
|
|
6287
|
+
return indexA - indexB;
|
|
6288
|
+
}
|
|
6289
|
+
if (a.available && inStock(a))
|
|
6290
|
+
return -1;
|
|
6291
|
+
return 0;
|
|
6292
|
+
});
|
|
6293
|
+
}
|
|
6257
6294
|
data.result.forEach((item) => products.push(item));
|
|
6258
6295
|
} catch (err) {
|
|
6259
6296
|
console.error(err);
|
|
@@ -6935,19 +6972,20 @@ const usePageSections = async ({ routeContext, handleCustomSection, searchEngine
|
|
|
6935
6972
|
}
|
|
6936
6973
|
let collectionId = null;
|
|
6937
6974
|
let searchQuery;
|
|
6938
|
-
let titleLink;
|
|
6975
|
+
let titleLink = sectionContent.titleLink;
|
|
6939
6976
|
if (collectionIdAndInfo) {
|
|
6940
6977
|
const [_id, resource, name, path] = collectionIdAndInfo.split(":");
|
|
6941
|
-
|
|
6942
|
-
|
|
6978
|
+
if (!resource || resource === "collection") {
|
|
6979
|
+
collectionId = _id;
|
|
6980
|
+
} else if (resource === "categories") {
|
|
6943
6981
|
searchQuery = `&categories._id=${_id}`;
|
|
6944
6982
|
} else if (resource === "brands") {
|
|
6945
6983
|
searchQuery = `&brands._id=${_id}`;
|
|
6946
6984
|
}
|
|
6947
|
-
if (!title && title !== null && name)
|
|
6985
|
+
if (!title && title !== null && name)
|
|
6948
6986
|
title = name;
|
|
6949
|
-
|
|
6950
|
-
|
|
6987
|
+
if (!titleLink)
|
|
6988
|
+
titleLink = path;
|
|
6951
6989
|
}
|
|
6952
6990
|
const props = {
|
|
6953
6991
|
...rest,
|
|
@@ -8172,6 +8210,7 @@ const _sfc_main$g = /* @__PURE__ */ defineComponent({
|
|
|
8172
8210
|
limit: {},
|
|
8173
8211
|
page: {},
|
|
8174
8212
|
products: {},
|
|
8213
|
+
orderedProductIds: {},
|
|
8175
8214
|
isRelatedProducts: { type: Boolean },
|
|
8176
8215
|
cmsPreview: {}
|
|
8177
8216
|
},
|
|
@@ -8203,10 +8242,10 @@ function _sfc_ssrRender$g(_ctx, _push, _parent, _attrs, $props, $setup, $data, $
|
|
|
8203
8242
|
const _component_CarouselControl = resolveComponent("CarouselControl");
|
|
8204
8243
|
_push(`<section${ssrRenderAttrs(mergeProps({ class: "ui-section" }, _attrs))}>`);
|
|
8205
8244
|
if ($setup.title) {
|
|
8206
|
-
_push(`<div class="mx-auto mb-4 max-w-prose text-center"><h2
|
|
8245
|
+
_push(`<div class="mx-auto mb-4 max-w-prose text-center"><h2>`);
|
|
8207
8246
|
_push(ssrRenderComponent(_component_ALink, {
|
|
8208
8247
|
href: $setup.titleLink,
|
|
8209
|
-
class: $setup.titleLink
|
|
8248
|
+
class: ["text-3xl text-base-700 ui-text-brand", $setup.titleLink && "ui-link decoration-primary/60"]
|
|
8210
8249
|
}, {
|
|
8211
8250
|
default: withCtx((_, _push2, _parent2, _scopeId) => {
|
|
8212
8251
|
if (_push2) {
|
package/packages/storefront/dist/server/chunks/pages/{_page__sb5Idhgp.mjs → _page__Dyte93f2.mjs}
RENAMED
|
@@ -1,6 +1,6 @@
|
|
|
1
|
-
import { e as createAstro, f as createComponent, r as renderTemplate, h as addAttribute, i as renderComponent, o as Fragment, m as maybeRenderHead, u as unescapeHTML } from '../
|
|
1
|
+
import { e as createAstro, f as createComponent, r as renderTemplate, h as addAttribute, i as renderComponent, o as Fragment, m as maybeRenderHead, u as unescapeHTML } from '../astro_B5LBy7PI.mjs';
|
|
2
2
|
import 'kleur/colors';
|
|
3
|
-
import { g as getConfig, P as Pagination, _ as _export_sfc, l as loadRouteContext, $ as $$Base, a as $$BaseHead, b as $$PageHeader, c as $$PageFooter } from './
|
|
3
|
+
import { g as getConfig, P as Pagination, _ as _export_sfc, l as loadRouteContext, $ as $$Base, a as $$BaseHead, b as $$PageHeader, c as $$PageFooter } from './__RXg_hYeF.mjs';
|
|
4
4
|
import { useSSRContext, defineComponent, computed, resolveComponent, mergeProps } from 'vue';
|
|
5
5
|
import { ssrRenderAttrs, ssrRenderAttr, ssrRenderComponent, ssrInterpolate, ssrRenderList } from 'vue/server-renderer';
|
|
6
6
|
|
package/packages/storefront/dist/server/chunks/pages/{account_iWjHfkwu.mjs → account_C66y6_Y9.mjs}
RENAMED
|
@@ -1,6 +1,6 @@
|
|
|
1
|
-
import { e as createAstro, f as createComponent, r as renderTemplate, h as addAttribute, i as renderComponent, o as Fragment, m as maybeRenderHead } from '../
|
|
1
|
+
import { e as createAstro, f as createComponent, r as renderTemplate, h as addAttribute, i as renderComponent, o as Fragment, m as maybeRenderHead } from '../astro_B5LBy7PI.mjs';
|
|
2
2
|
import 'kleur/colors';
|
|
3
|
-
import { l as loadRouteContext, a as $$BaseHead, i as i19myAccount, d as $$Picture, $ as $$Base } from './
|
|
3
|
+
import { l as loadRouteContext, a as $$BaseHead, i as i19myAccount, d as $$Picture, $ as $$Base } from './__RXg_hYeF.mjs';
|
|
4
4
|
|
|
5
5
|
const $$Astro = createAstro("https://demo.ecomplus.app");
|
|
6
6
|
const $$Account = createComponent(async ($$result, $$props, $$slots) => {
|
package/packages/storefront/dist/server/chunks/pages/{index_BZlpKBRL.mjs → index_EO1hhrt8.mjs}
RENAMED
|
@@ -1,6 +1,6 @@
|
|
|
1
|
-
import { e as createAstro, f as createComponent, r as renderTemplate, h as addAttribute, i as renderComponent, o as Fragment, u as unescapeHTML } from '../
|
|
1
|
+
import { e as createAstro, f as createComponent, r as renderTemplate, h as addAttribute, i as renderComponent, o as Fragment, u as unescapeHTML } from '../astro_B5LBy7PI.mjs';
|
|
2
2
|
import 'kleur/colors';
|
|
3
|
-
import { l as loadRouteContext, a as $$BaseHead, $ as $$Base, F as FooterStamps, _ as _export_sfc, e as i19shoppingCart, d as $$Picture } from './
|
|
3
|
+
import { l as loadRouteContext, a as $$BaseHead, $ as $$Base, F as FooterStamps, _ as _export_sfc, e as i19shoppingCart, d as $$Picture } from './__RXg_hYeF.mjs';
|
|
4
4
|
import { useSSRContext, defineComponent, resolveComponent, mergeProps, withCtx, createTextVNode, toDisplayString, createVNode } from 'vue';
|
|
5
5
|
import { ssrRenderAttrs, ssrRenderSlot, ssrInterpolate, ssrRenderList, ssrRenderComponent } from 'vue/server-renderer';
|
|
6
6
|
|
package/packages/storefront/dist/server/chunks/pages/{node_GFu-CQ19.mjs → node_hc25rqYt.mjs}
RENAMED
|
@@ -1,8 +1,8 @@
|
|
|
1
1
|
import { isRemotePath } from '@astrojs/internal-helpers/path';
|
|
2
2
|
import { readFile } from 'fs/promises';
|
|
3
3
|
import mime from 'mime/lite.js';
|
|
4
|
-
import { A as AstroError, I as InvalidImageService, c as isRemoteAllowed } from '../astro/assets-
|
|
5
|
-
import { f as imageConfig, h as assetsDir } from './
|
|
4
|
+
import { A as AstroError, I as InvalidImageService, c as isRemoteAllowed } from '../astro/assets-service_BOyOfKDQ.mjs';
|
|
5
|
+
import { f as imageConfig, h as assetsDir } from './__RXg_hYeF.mjs';
|
|
6
6
|
|
|
7
7
|
const decoder = new TextDecoder();
|
|
8
8
|
const toUTF8String = (input, start = 0, end = input.length) => decoder.decode(input.slice(start, end));
|
|
@@ -749,7 +749,7 @@ async function getConfiguredImageService() {
|
|
|
749
749
|
if (!globalThis?.astroAsset?.imageService) {
|
|
750
750
|
const { default: service } = await import(
|
|
751
751
|
// @ts-expect-error
|
|
752
|
-
'../astro/assets-
|
|
752
|
+
'../astro/assets-service_BOyOfKDQ.mjs'
|
|
753
753
|
).then(n => n.s).catch((e) => {
|
|
754
754
|
const error = new AstroError(InvalidImageService);
|
|
755
755
|
error.cause = e;
|
|
@@ -1,6 +1,6 @@
|
|
|
1
|
-
import { e as createAstro, f as createComponent, r as renderTemplate, m as maybeRenderHead, h as addAttribute, i as renderComponent, o as Fragment } from '../
|
|
1
|
+
import { e as createAstro, f as createComponent, r as renderTemplate, m as maybeRenderHead, h as addAttribute, i as renderComponent, o as Fragment } from '../astro_B5LBy7PI.mjs';
|
|
2
2
|
import 'kleur/colors';
|
|
3
|
-
import { j as i19error, k as i19errorMsg, m as i19notFound, n as i19home, l as loadRouteContext, a as $$BaseHead, b as $$PageHeader, c as $$PageFooter, $ as $$Base } from './
|
|
3
|
+
import { j as i19error, k as i19errorMsg, m as i19notFound, n as i19home, l as loadRouteContext, a as $$BaseHead, b as $$PageHeader, c as $$PageFooter, $ as $$Base } from './__RXg_hYeF.mjs';
|
|
4
4
|
import 'clsx';
|
|
5
5
|
|
|
6
6
|
const $$Astro$1 = createAstro("https://demo.ecomplus.app");
|