1import{a as k}from"./chunk-M4L5LGG2.js";import{a as S}from"./chunk-IY5U4LIO.js";import{a as P}from"./chunk-KMFM367D.js";import{o as M}from"./chunk-2P73RYP5.js";import{Ab as y,Cb as _,Eb as C,Ka as v,Lc as O,Pa as r,Qb as c,Sb as l,U as b,Xa as w,Z as g,_ as f,ab as x,qb as d,rb as h,sb as u,tb as i,ub as n,vb as p}from"./chunk-TJAUOT4B.js";import"./chunk-GAL4ENT6.js";var E=(o,s)=>s.title;function I(o,s){if(o&1){let e=y();i(0,"div",10),_("click",function(){let a=g(e).$implicit,m=C();return f(m.handleCategoryClick(a.navigateTo))}),i(1,"div",11),p(2,"app-image-with-fallback",12),n(),i(3,"p",13),c(4),n()()}if(o&2){let e=s.$implicit;r(2),u("src",e.image)("alt",e.title),r(2),l(" ",e.title," ")}}function T(o,s){if(o&1){let e=y();i(0,"div",9)(1,"div",14),p(2,"img",15),n(),i(3,"div",16)(4,"h3",17),c(5),n(),i(6,"p",18),c(7),n(),i(8,"button",19),_("click",function(){let a=g(e).$implicit,m=C();return f(m.handleOfferClick(a.buttonText))}),c(9),n()()()}if(o&2){let e=s.$implicit;r(2),u("src",e.image,v)("alt",e.title),r(3),l(" ",e.title," "),r(2),l(" ",e.description," "),r(2),l(" ",e.buttonText," ")}}var U=(()=>{class o{navigationService;categories=[{title:"Oferta",image:"https://cricut.com/on/demandware.static/-/Library-Sites-cricut-content-na01/default/dw06124de0/images/homepage/shop-category/Sale_Icon_Only.svg",navigateTo:"ofertas"},{title:"Cricut Joy Xtra\u2122",image:"https://cricut.com/on/demandware.static/-/Library-Sites-cricut-content-na01/default/dw4453ee6d/images/homepage/shop-category/JoyXtra90x90.svg",navigateTo:"productos/6709/plotter-de-corte-cricut-joy-xtras"},{title:"Cricut Explore\xAE",image:"https://cricut.com/on/demandware.static/-/Library-Sites-cricut-content-na01/default/dw192e4eb7/images/homepage/shop-category/Cricut_Explore_Icon_Only.svg",navigateTo:"/catalogo/4854/cricut-explore"},{title:"Cricut Maker\xAE",image:"https://cricut.com/on/demandware.static/-/Library-Sites-cricut-content-na01/default/dw5c4ec7be/images/homepage/shop-category/Cricut_Maker_Icon_Only.svg",navigateTo:"/catalogo/4870/cricut-maker-5"},{title:"Machine Quiz",image:"https://cricut.com/on/demandware.static/-/Library-Sites-cricut-content-na01/default/dw9abc36fb/images/homepage/shop-category/CricutHome_CompareMachine_Icon.svg",navigateTo:"quiz-de-maquinas"},{title:"Heat Presses",image:"https://cricut.com/on/demandware.static/-/Library-Sites-cricut-content-na01/default/dwbaadc1b4/images/homepage/shop-category/Heat_Presses_Icon_Only.svg",navigateTo:"catalogo/4137/prensas-de-calor"}];offers=[{image:"/assets/descuentos.webp",title:"Obt\xE9n descuentos en materiales*",description:"Abast\xE9cete de iron-on, vinilo y mucho m\xE1s",buttonText:"Comprar Ofertas"},{image:"/assets/easypress.webp",title:"Cricut EasyPress\xAE 3*",description:"Ahorra en esta popular plancha t\xE9rmica ahora.",buttonText:"Comprar EasyPress 3"}];router=b(M);constructor(e){this.navigationService=e}handleCategoryClick(e){if(e.startsWith("productos/")||e.startsWith("/")){let t=e.startsWith("/")?e:`/${e}`;this.router.navigateByUrl(t).then(()=>window.scrollTo(0,0))}else this.navigationService.navigate(e)}navigate(e){this.navigationService.navigate(e)}handleOfferClick(e){let t=null;e==="Comprar Ofertas"?t="/ofertas":e==="Comprar paquetes"?t="/paquetes":e==="Comprar EasyPress 3"&&(t="/productos/7339/plancha-cricut-easypress-3-12x10-zen-azul-2009150"),t&&this.router.navigateByUrl(t).then(()=>window.scrollTo(0,0))}static \u0275fac=function(t){return new(t||o)(w(P))};static \u0275cmp=x({type:o,selectors:[["app-shop"]],decls:14,vars:0,consts:[[1,"shop-page"],[1,"shop-main"],[1,"shop-by-category"],[1,"shop-by-category-title"],[1,"shop-by-category-grid"],[1,"category-item"],[1,"shop-offers-section"],[1,"shop-offers-container"],[1,"shop-offers-grid"],[1,"shop-offer-card"],[1,"category-item",3,"click"],[1,"category-icon-wrapper"],["imageClass","category-icon",3,"src","alt"],[1,"category-title"],[1,"shop-offer-image-container"],[1,"shop-offer-image",3,"src","alt"],[1,"shop-offer-content"],[1,"shop-offer-title"],[1,"shop-offer-description"],[1,"shop-offer-btn",3,"click"]],template:function(t,a){t&1&&(i(0,"div",0)(1,"main",1)(2,"section",2)(3,"h2",3),c(4," Compra por categor\xEDa "),n(),i(5,"div",4),d(6,I,5,3,"div",5,E),n()(),i(8,"section",6)(9,"div",7)(10,"div",8),d(11,T,10,5,"div",9,E),n()()(),p(13,"app-comparison-hero-section"),n()()),t&2&&(r(6),h(a.categories),r(5),h(a.offers))},dependencies:[O,S,k],styles:[".shop-page[_ngcontent-%COMP%]{min-height:100vh;display:flex;flex-direction:column;font-family:ui-sans-serif,system-ui,-apple-system,BlinkMacSystemFont,Segoe UI,Roboto,Helvetica Neue,Arial,Noto Sans,sans-serif}.shop-main[_ngcontent-%COMP%]{flex:1 1 0%}.shop-by-category[_ngcontent-%COMP%]{padding:2rem 1rem 4rem;max-width:80rem;margin-left:auto;margin-right:auto}.shop-by-category-title[_ngcontent-%COMP%]{text-align:center;margin-bottom:3rem;font-size:40px;font-weight:700}.shop-by-category-grid[_ngcontent-%COMP%]{display:flex;flex-wrap:wrap;justify-content:center;gap:1.5rem;row-gap:2rem}.category-item[_ngcontent-%COMP%]{display:flex;flex-direction:column;align-items:center;cursor:pointer;width:6rem}.category-icon-wrapper[_ngcontent-%COMP%]{width:6rem;height:6rem;margin-bottom:.75rem;display:flex;align-items:center;justify-content:center;border-radius:9999px;background-color:#f9fafb;transition-property:color,background-color,border-color;transition-timing-function:cubic-bezier(.4,0,.2,1);transition-duration:.15s}.category-item[_ngcontent-%COMP%]:hover .category-icon-wrapper[_ngcontent-%COMP%]{background-color:#f3f4f6}.category-icon-wrapper[_ngcontent-%COMP%] app-image-with-fallback[_ngcontent-%COMP%]{width:5rem;height:5rem}.category-icon-wrapper[_ngcontent-%COMP%] app-image-with-fallback[_ngcontent-%COMP%] img[_ngcontent-%COMP%], .category-icon-wrapper[_ngcontent-%COMP%] .category-icon[_ngcontent-%COMP%]{width:5rem;height:5rem;object-fit:contain}.category-title[_ngcontent-%COMP%]{text-align:center;font-size:.875rem;line-height:1.25rem;font-weight:600}.shop-offers-section[_ngcontent-%COMP%]{background-color:#f3f4f6;padding:4rem 1rem}.shop-offers-container[_ngcontent-%COMP%]{max-width:80rem;margin-left:auto;margin-right:auto}
1.shop-offers-grid[_ngcontent-%COMP%]{display:flex;flex-wrap:wrap;justify-content:center;gap:1.5rem}.shop-offer-card[_ngcontent-%COMP%]{background-color:#fff;border-radius:.5rem;overflow:hidden;display:flex;flex-direction:column;flex:1 1 100%;max-width:410px}@media(min-width:768px){.shop-offer-card[_ngcontent-%COMP%]{flex-basis:calc((100% - 3rem) / 3)}}.shop-offer-image-container[_ngcontent-%COMP%]{position:relative;background-color:#e5e7eb}.shop-offer-image[_ngcontent-%COMP%]{width:100%;height:auto}.shop-offer-content[_ngcontent-%COMP%]{padding:1.5rem;display:flex;flex-direction:column;align-items:center;text-align:center;flex-grow:1}.shop-offer-title[_ngcontent-%COMP%]{margin-bottom:.75rem;font-weight:700}.shop-offer-description[_ngcontent-%COMP%]{color:#374151;margin-bottom:1.5rem;flex-grow:1}.shop-offer-btn[_ngcontent-%COMP%]{padding:.5rem 1.5rem;background-color:#000;color:#fff;border-radius:9999px;border:none;cursor:pointer;transition-property:color,background-color,border-color;transition-timing-function:cubic-bezier(.4,0,.2,1);transition-duration:.15s}.shop-offer-btn[_ngcontent-%COMP%]:hover{background-color:#1f2937}"]})}return o})();export{U as ShopComponent};
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.