PageSourceSearch

https://www.phyto.com/_nuxt/B8QB8HkJ.js

js phyto.com collected 2026-09-26 03:37:31 UTC 9,418 bytes, 1 lines download raw bytes

1import{_ as ue}from"./Dww_EAP4.js";import{_ as de}from"./JvtRH1NV.js";import{_ as me}from"./C-znHVCM.js";import{aH as ee,aF as te,aE as pe,aN as ge,aL as _e,aC as Y,aD as ye,aU as he,aP as fe,aS as J,aQ as xe,aR as ve}from"./CqJabS_z.js";import{y as O,f as b,D as se,X as a,F as r,a3 as d,Q as ae,Y as oe,A as e,a8 as j,R as A,_ as Z,a5 as m,c as s,a2 as R,at as be}from"./Bk15PzoC.js";import{_ as we}from"./Dvc-ZbMp.js";import{u as $e}from"./DYDhesRW.js";import{u as Pe}from"./CjZtGk94.js";import{u as ke}from"./CX9ZAtVv.js";import"./DfhZUlZB.js";import"./CrqWWAv1.js";import"./Dfyun4WM.js";import"./DPFjq_tf.js";import"./D5uc-Z9X.js";try{let p=typeof window<"u"?window:typeof global<"u"?global:typeof globalThis<"u"?globalThis:typeof self<"u"?self:{},f=new p.Error().stack;f&&(p._sentryDebugIds=p._sentryDebugIds||{},p._sentryDebugIds[f]="fcd3de08-7a1d-404f-92fe-2b27aca48518",p._sentryDebugIdIdentifier="sentry-dbid-fcd3de08-7a1d-404f-92fe-2b27aca48518")}catch{}const Ce={class:"max-w-[1270px] mx-auto"},Le={class:"flex flex-wrap gap-6 justify-center pb-8 lg:gap-y-10 lg:gap-x-4"},Se={key:0,class:"items-center p-8 w-full lg:flex lg:flex-col text-center"},je=O({__name:"ProductGrid",props:{smallPush:{type:Array,default:()=>null},products:{type:Array,required:!0},filters:{type:Array,required:!0},metadata:{type:Object,required:!0},isLoading:{type:Boolean,required:!0}},emits:["applyFilter","applySort"],setup(p,{emit:f}){const c=ee().categoryStore,v=p,{$i18n:B}=te(),t=b(!1),n=b(30),x=b(12),M=b({isLoading:!1,loadingText:B.t("common.loading"),status:void 0});se(()=>{t.value=!0});const D=s(()=>u.value.length<L.value&&!v.isLoading),C=s(()=>{if(v.smallPush){const h=(g,q,P=0)=>[...g.slice(0,P),...q,...g.slice(P)],S=v.smallPush;let $=v.products;for(let g=0;g<S.length;g++)$=h($,[S[g]],S[g].position-1);return $}return v.smallPush}),w=s(()=>n.value),u=s(()=>C.value.slice(0,n.value)),L=s(()=>c.$state.totalCount),z=s(()=>C.value.length-w.value),E=s(()=>c.$state.products.length<=w.value?c.$state.products.length:c.$state.products.length-z.value),N=s(()=>c.$state.metadata.currentPage),Q=async()=>{if(M.value.isLoading=!0,u.value.length>=C.value.length){const h={currentPage:N.value+1};c.$state.uid?h.categoryUid=c.$state.uid:c.$state.urlPath&&(h.categoryUrlPath=c.$state.urlPath),await c.getCategory(h)}n.value+=x.value,M.value.isLoading=!1};
1return(h,S)=>{const $=ue,g=de,q=me;return a(),r("div",Ce,[d("div",Le,[(a(!0),r(ae,null,oe(e(u),(P,T)=>(a(),Z($,{key:P.sku,product:P,"is-loading":p.isLoading,index:T,class:R(e(t)?"transition-opacity duration-500 ease-in-out opacity-100 animate-fade-in":"")},null,8,["product","is-loading","index","class"]))),128))]),e(L)?(a(),r("div",Se,[d("div",null,j(h.$t("pages.products.category.products_viewed",{counter:e(E),totalCount:e(L)})),1),A(g,{max:e(L),value:e(w),counter:e(w)},null,8,["max","value","counter"]),e(D)?(a(),Z(q,{key:0,title:h.$t("components.product.show_more"),class:"h-12 w-[300px] text","loading-state":e(M),onClick:Q},null,8,["title","loading-state"])):m("",!0)])):m("",!0)])}}}),Me=pe(je,[["__scopeId","data-v-fe6de00a"]]),qe=["src"],Ae={class:"relative z-10 p-2 mx-4 space-y-4 w-full lg:p-8 lg:mx-0 lg:w-auto lg:space-y-4"},Be={key:0,class:"text-center title lg:max-w-lg uppercase text-white font-bold"},De={key:1,class:"flex justify-center"},Te=O({__name:"BigPush",props:{bigPush:{type:Array,required:!0}},setup(p){const c=b(p.bigPush);return(v,B)=>{const t=ge;return a(),r("div",null,[(a(!0),r(ae,null,oe(e(c),n=>(a(),r("div",{key:n.title,class:"relative flex justify-center items-center pb-8 lg:pb-0 mb-8 h-[300px] lg:h-[600px] overflow-hidden"},[d("img",{src:n.image,alt:"",class:"absolute inset-0 w-full h-full object-cover object-center",loading:"lazy"},null,8,qe),d("div",Ae,[n.title?(a(),r("h3",Be,j(n.title)+" "+j(n.text),1)):m("",!0),n.cta?(a(),r("div",De,[A(t,{slide:!0,title:n.cta,to:n.url,size:"md",class:"w-[170px] lg:w-64",inverted:""},null,8,["title","to"])])):m("",!0)])]))),128))])}}}),Ue={class:"category-page"},Ie={key:0,class:"relative w-full"},Re={class:"relative"},ze=["src","alt"],Ee=["src","alt"],Ne={class:"absolute inset-0 flex items-center justify-center px-4"},Fe={class:"max-w-[1270px] mx-auto text-center"},He={key:1,class:"text-center pt-4 max-w-[1270px] mx-auto"},Ve={key:0,class:"mx-4 mb-4 title dashed lg:mb-6 uppercase"},Ke=["innerHTML"],Oe={key:2,class:"w-full bg-white"},Qe={class:"max-w-[1270px] mx-auto lg:mt-4 px-4 sm:px-8 md:px-12 lg:px-20 xl:px-32 py-6 sm:py-8 md:py-10 lg:py-4"},We={class:"max-w-4xl mx-auto"},Ge={class:"text-center"},Xe=["innerHTML"],Ye={key:3,class:"max-w-[1270px] mx-auto hidden lg:block"},Je={key:4,class:"mt-4 mb-2 lg:mb-8 max-w-[1270px] mx-auto px-4"},pt=O({__name:"[...c_slug]",async setup(p){let f,c;const{localeProperties:v}=_e(),B=Y(),t=ee().categoryStore,n=B.public.brandCode,{$cms:x,$setting:M,$gtm:D}=te(),C=Y().public.magentoCdnUrl,w=ye(),u=he(),L=fe(),z=b(!1),E=$e(),N=s(()=>u.params.c_slug.join("-")),{status:Q,error:h}=([f,c]=be(async()=>ve(`category-${u.params.c_slug.join("-")}`,async()=>await $(),{watch:[N]})),f=await f,c(),f);if(h.value)throw J({statusCode:404,message:"Page non trouvée"});function S(o){if(!o||o.includes("/")||o.includes("-"))return!1;try{const i=atob(o);return/^\d+$/.test(i)}catch{return!1}}async function $(){try{const o={[u.query.sort]:u.query.order};u.query.sort=void 0,u.query.order=void 0;const i=u.params.c_slug,_=i[0];let y;return S(_)?y={categoryUid:_}:y={categoryUrlPath:ce(i)},await t.getCategory(y)}catch{throw J({statusCode:404,message:"Page non trouvée"})}}const g=s(()=>t.$state.products),q=s(()=>t.$state.filters),P=s(()=>t.$state.metadata),T=s(()=>t.$state.breadcrumbs),l=s(()=>t.$state.categoryName),k=b(t.$state.description),W=b(!1),G=s(()=>{switch(n){case"ph":return"text-[#383e44]";case"lc":return"text-black";default:return"text-gray-800"}}),F=o=>E(o,{format:"webp"},{}),U=s(()=>t.$state.image?F(C+t.$state.image):x.getSeo().image?F(x.getSeo().image.url):""),H=s(()=>t.$state.imageMobile?F(C+t.$state.imageMobile):null),I=s(()=>t.$state.level),re=s(()=>{let o=l.value;return I.value>2&&T.value.forEach((i,_)=>{o+=` - ${i.label}`}),`${o} - ${M.brand()}`}),ne=s(()=>t.$state.smallPush!=null?t.$state.smallPush:null),X=s(()=>t.$state.bigPush!=null?t.$state.bigPush:null),V=s(()=>x.getBlockCategory()?x.getBlockCategory():{});function le({id:o,value:i}){const _={...u.query,[o]:i};w.push({path:u.path,query:_})}function ie({id:o,order:i}){const _={...u.query,sort:o,order:i};w.push({path:u.path,query:_})}xe({title:re.value,bodyAttrs:{class:t.$state.breadcrumbs.urlKey},meta:[{hid:"description",name:"description",content:k.value||x.getSeo().metadescription},{hid:"keywords",name:"keywords",content:l.value},{hid:"og:title",property:"og:title",content:l.value},{hid:"og:url",property:"og:url",content:L.href},{hid:"og:description",property:"og:description",content:k.value||x.getSeo().metadescription},{hid:"og:image",property:"og:image",content:U.value}]}),Pe(T.value,l.value),ke({title:l.value,description:k.value||x.getSeo().metadescription,image:U.value,card:"summary_large_image"});function ce(o){return o.join("/")}return se(async()=>{z.value=!0,W.value=window.innerWidth<768,window.addEventListener("resize",()=>{W.value=window.innerWidth<768}),l.value,I.value;const o=g.value.slice(0,10),i=[];o.forEach((y,K)=>{i.push({item_id:y.sku,item_name:`${y.lineLabel} ${y.name} ${y.sizeLabel}`,index:K,item_brand:v.brand,item_category:l.value,price:y.priceRange.minimumPrice.regularPrice.value,item_list_id:I.value,item_list_name:l.value})});const _={event:"view_item_list",ecommerce:{item_list_id:I.value,item_list_name:l.value,items:i}};D.push({ecommerce:null}),D.push(_)}),(o,i)=>{const _=Me,y=Te,K=we;return a(),r("section",Ue,[e(U)?(a(),r("div",Ie,[d("div",Re,[d("img",{src:e(U),alt:e(l),class:R([e(H)?"hidden md:block":"","w-full object-cover object-center"]),width:"1000",height:"200",loading:"eager",fetchpriority:"high",style:{"aspect-ratio":"1000/200"}},null,10,ze),e(H)?(a(),r("img",{key:0,src:e(H),alt:e(l),class:"w-full md:hidden object-cover object-center",width:"640",height:"360",loading:"eager",fetchpriority:"high",style:{"aspect-ratio":"640/360"}},null,8,Ee)):m("",!0),d("div",Ne,[d("div",Fe,[e(l)&&e(n)!=="rg"?(a(),r("h1",{key:0,class:R(["text-xl sm:text-3xl md:text-3xl lg:text-3xl font-bold uppercase hidden lg:block",e(G)])},j(e(l)),3)):m("",!0)])])])])):m("",!0),e(n)==="rg"?(a(),r("div",He,[e(l)?(a(),r("h1",Ve,j(e(l)),1)):m("",!0),e(k)?(a(),r("div",{key:1,class:"mx-4 lg:px-64",innerHTML:e(k)},null,8,Ke)):m("",!0)])):m("",!0),e(k)&&e(n)!=="rg"?(a(),r("div",Oe,[d("div",Qe,[d("div",We,[d("div",Ge,[e(l)?(a(),r("h1",{key:0,class:R(["text-xl sm:text-3xl md:text-4xl lg:text-5xl font-bold uppercase block lg:hidden mb-1",e(G)])},j(e(l)),3)):m("",!0),d("div",{class:"text-sm sm:text-base md:text-base lg:text-lg 
1!leading-[20px]",innerHTML:e(k)},null,8,Xe)]),i[0]||(i[0]=d("div",{class:"flex items-center justify-center mt-4 sm:mt-3 mb-2 sm:mb-2"},[d("div",{class:"h-[1px] bg-gray-200 w-32 sm:w-32"})],-1))])])])):m("",!0),A(_,{"small-push":e(ne),products:e(g),filters:e(q),metadata:e(P),"is-loading":!1,class:"gap-px pt-4",onApplyFilter:le,onApplySort:ie},null,8,["small-push","products","filters","metadata"]),e(X)?(a(),r("div",Ye,[A(y,{"big-push":e(X)},null,8,["big-push"])])):m("",!0),e(V)&&e(V).visible?(a(),r("div",Je,[A(K,{boxes:e(V),class:"my-16"},null,8,["boxes"])])):m("",!0)])}}});export{pt as default};

Line numbers count LF bytes from the start of the resource, as the search results do. Vendor segments are library code the classifier recognised; they are stored but not indexed. Bytes are shown as Latin1 characters, one per byte.