PageSourceSearch

https://netconv.com/packs/js/14750-c217bbedffddaab455d9.chunk.js

js netconv.com collected 2026-10-04 02:47:46 UTC 9,560 bytes, 2 lines download raw bytes

1"use strict";(self.webpackChunknetconv=self.webpackChunknetconv||[]).push([[14750],{33283:function(e,t,r){r.d(t,{A:function(){return s}});var n=r(96540),a=r(84976),o=r(85667),l=r(57893),i=r(98376),c=r(96473);function s(){var e=(0,o.CA)(),t=(0,l._$)(),r=(0,i.O)(),s=(0,c.A)().text;return n.createElement("header",{className:"sf-header"},n.createElement("a",{className:"sf-skip",href:"#storefront-main"},s("Ir ao conte\xfado","Skip to content")),n.createElement("nav",{className:"sf-container sf-nav","aria-label":s("Loja","Store")},n.createElement(a.N_,{className:"sf-brand",to:"/"},e.logoUrl&&n.createElement("img",{src:e.logoUrl,alt:"",width:"48",height:"48"}),n.createElement("span",null,e.name)),n.createElement("div",{className:"sf-nav-links"},n.createElement(a.N_,{to:"/catalog"},s("Produtos","Products")),n.createElement(a.N_,{to:"/recipes"},s("Receitas","Recipes")),n.createElement(a.N_,{to:"/account"},s("Minha conta","My account")),r.account&&n.createElement(a.N_,{to:"/loyalty"},s("Benef\xedcios","Rewards")),n.createElement(a.N_,{className:"sf-cart-link",to:"/cart","aria-label":s("Carrinho","Cart")},s("Carrinho","Cart")," ",n.createElement("span",null,t.summary.item_count))),n.createElement("form",{className:"sf-header-search",action:"/"+e.slug+"/catalog",role:"search"},n.createElement("label",{className:"sf-sr-only",htmlFor:"storefront-search"},s("Buscar produtos","Search products")),n.createElement("input",{id:"storefront-search",name:"q",type:"search",placeholder:s("O que voc\xea procura?","What are you looking for?")}),n.createElement("button",{type:"submit"},s("Buscar","Search")))))}},98376:function(e,t,r){r.d(t,{O:function(){return i}});var n=r(96540),a=r(85667),o=3e5,l="storefront_user_token";function i(e){var t=(e||{}).orderToken||null,r=(0,a.CA)(),i=(0,n.useState)({account:null,config:null,pendingCoupons:[],milestoneCoupons:[],freshMilestoneCoupons:[],transactions:[],loading:!0,error:null}),c=i[0],s=i[1];return(0,n.useEffect)(function(){var e=function(){try{return window.localStorage.getItem(l)}catch(e){return null}}();if(r.slug&&e){var t=!1;return fetch("/"+r.slug+"/api/v1/loyalty",{method:"GET",credentials:"include",headers:{Accept:"application/json",Authorization:"Bearer "+e}}).then(function(e){if(401===e.status||403===e.status)return t||s(function(e){return Object.assign({},e,{loading:!1})}),null;if(!e.ok)throw new Error("loyalty_fetch_failed:"+e.status);return e.json()}).then(function(e){if(e&&!t){var r=e.milestone_coupons||[],n=Date.now(),a=r.filter(function(e){var t=e.created_at?new Date(e.created_at).getTime():0;return n-t<o});s({account:e.account||null,config:e.config||null,pendingCoupons:e.pending_coupons||[],milestoneCoupons:r,freshMilestoneCoupons:a,transactions:e.transactions||[],loading:!1,error:null})}}).catch(function(e){t||s(function(t){return Object.assign({},t,{loading:!1,error:e.message})})}),function(){t=!0}}s(function(e){return Object.assign({},e,{loading:!1})})},[r.slug,t]),c}},96473:function(e,t,r){r.d(t,{A:function(){return a}});var n=r(85667);function a(){var e=(0,n.CA)(),t=e.locale||("USD"===e.currency?"en-US":"pt-BR");return{locale:t,text:function(e,r){return t.startsWith("pt")?e:r},money:function(r){var n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:e.currency||"BRL";return new Intl.NumberFormat(t,{style:"currency",currency:n}).format(Number(r)||0)}}}},14750:function(e,t,r){r.r(t),r.d(t,{default:function(){return s}});var n=r(11704),a=r(96540),o=r(84976),l=r(57893),i=r(85667),c=r(33283);function s(){var e=(0,l._$)(),t=(0,i.CA)();return a.createElement("div",{style:u.page},a.createElement(c.A,null),a.createElement("main",{id:"storefront-main",tabIndex:"-1",style:u.main},a.createElement("div",{style:u.inner},a.createElement("h1",{style:u.pageTitle},(0,n.C)("Carrinho","Cart")),0===e.items.length?a.createElement("div",{style:u.emptyWrap},a.createElement("p",{style:u.emptyText},(0,n.C)("Seu carrinho est\xe1 vazio.","Your cart is empty.")),a.createElement(o.N_,{to:"/catalog",style:u.ctaBtn},(0,n.C)("Ver cat\xe1logo","Browse catalog"))):a.createElement("div",{className:"sf-cart-layout",style:u.layout},a.createElement("div",{style:u.itemList},e.items.map(function(t){return a.createElement("div",{className:"sf-cart-row",key:t.product_id,style:u.itemRow},t.product_image_url?a.createElement("img",{src:t.product_image_url,alt:t.product_name,style:u.itemImage}):a.createElement("div",{style:u.itemImagePlaceholder},"\ud83d\udce6"),a.createElement("div",{style:u.itemInfo},a.createElement("p",{style:u.itemName},t.product_name),a.createElement("label",{className:"sf-quantity"},(0,n.C)("Quantidade","Quantity"),a.createElement("input",{"aria-label":(0,n.C)("Quantidade de ","Quantity of ")+t.product_name,type:"number",min:"1",step:"1",value:t.quantity,onChange:function(r){return e.updateQuantity(t.product_id,Number(r.target.value))}})),a.createElement("p",{style:u.itemUnit},m(t.sale_price,t.currency)," \xd7 ",t.quantity)),a.createElement("div",{style:u.itemRight},a.createElement("p",{style:u.itemSubtotal},m(t.sale_price*t.quantity,t.currency)),a.createElement("button",{style:u.removeBtn,onClick:function(){e.removeItem(t.product_id)},"aria-label":"Remover "+t.product_name},(0,n.C)("Remover","Remove"))))})),a.createElement("div",{style:u.summary},a.createElement("h2",{style:u.summaryTitle},(0,n.C)("Resumo","Summary")),a.createElement("div",{style:u.summaryRow},a.createElement("span",{style:u.summaryLabel},"Subtotal"),a.createElement("span",{style:u.summaryValue},m(e.summary.subtotal,e.summary.currency))),e.summary.discount>0?a.createElement("div",{style:u.summaryRow},a.createElement("span",{style:u.summaryLabel},(0,n.C)("Desconto","Discount")),a.createElement("span",{style:u.discountValue},"- ",m(e.summary.discount,e.summary.currency))):null,a.createElement("div",{style:u.totalRow},a.createElement("span",{style:u.totalLabel},(0,n.C)("Total estimado","Estimated total")),a.createElement("span",{style:u.totalValue},m(e.summary.total,e.summary.currency))),a.createElement(o.N_,{to:"/checkout",style:u.checkoutBtn},(0,n.C)("Finalizar pedido","Checkout")),a.createElement(o.N_,{to:"/catalog",style:u.continueShopping},(0,n.C)("\u2190 Continuar comprando","\u2190 Continue shopping")))))),a.createElement("footer",{style:u.footer},a.createElement("p",{style:u.footerText},"\xa9 ",(new Date).getFullYear()," ",t.name,(0,n.C)(". Todos os direitos reservados.",". All rights reserved."))))}function m(e,t){var r=e||0;
1try{return r.toLocaleString((0,n.p)(t),{style:"currency",currency:t||"BRL"})}catch(a){return"R$ "+r.toFixed(2).replace(".",",")}}var u={page:{minHeight:"100vh",fontFamily:"var(--font-primary)",background:"#f9fafb",display:"flex",flexDirection:"column"},main:{flex:1,padding:"32px 16px"},inner:{maxWidth:"1000px",margin:"0 auto"},pageTitle:{fontSize:"2.0rem",fontWeight:700,color:"#111827",margin:"0 0 24px",lineHeight:"1.2"},emptyWrap:{display:"flex",flexDirection:"column",alignItems:"center",padding:"64px 0",gap:"20px"},emptyText:{fontSize:"1.0rem",color:"var(--color-muted)",margin:0},ctaBtn:{display:"inline-block",background:"var(--color-primary)",color:"#ffffff",textDecoration:"none",borderRadius:"8px",fontSize:"1.0rem",fontWeight:600,padding:"12px 32px"},layout:{display:"flex",gap:"32px",alignItems:"flex-start"},itemList:{flex:1,background:"#ffffff",borderRadius:"8px",boxShadow:"0 1px 4px rgba(0,0,0,0.08)",overflow:"hidden"},itemRow:{display:"flex",alignItems:"center",gap:"16px",padding:"16px",borderBottom:"1px solid #f3f4f6"},itemImage:{width:"72px",height:"72px",objectFit:"cover",borderRadius:"6px",flexShrink:0},itemImagePlaceholder:{width:"72px",height:"72px",borderRadius:"6px",background:"#f3f4f6",display:"flex",alignItems:"center",justifyContent:"center",fontSize:"1.75rem",flexShrink:0},itemInfo:{flex:1},itemName:{fontSize:"1.0rem",fontWeight:600,color:"#111827",margin:"0 0 4px"},itemUnit:{fontSize:"0.8125rem",color:"var(--color-muted)",margin:0},itemRight:{display:"flex",flexDirection:"column",alignItems:"flex-end",gap:"8px"},itemSubtotal:{fontSize:"1.0rem",fontWeight:600,color:"var(--color-primary)",margin:0},removeBtn:{background:"transparent",border:"none",cursor:"pointer",fontSize:"0.75rem",color:"var(--color-critical)",padding:0,fontFamily:"var(--font-primary)"},summary:{width:"280px",flexShrink:0,background:"#ffffff",borderRadius:"8px",boxShadow:"0 1px 4px rgba(0,0,0,0.08)",padding:"20px",display:"flex",flexDirection:"column",gap:"12px"},summaryTitle:{fontSize:"1.125rem",fontWeight:700,color:"#111827",margin:"0 0 4px"},summaryRow:{display:"flex",justifyContent:"space-between"},summaryLabel:{fontSize:"0.875rem",color:"#374151"},summaryValue:{fontSize:"0.875rem",fontWeight:500,color:"#374151"},discountValue:{fontSize:"0.875rem",fontWeight:500,color:"var(--color-ok)"},totalRow:{display:"flex",justifyContent:"space-between",paddingTop:"12px",borderTop:"1px solid #e5e7eb"},totalLabel:{fontSize:"1.0rem",fontWeight:700,color:"#111827"},totalValue:{fontSize:"1.25rem",fontWeight:700,color:"var(--color-primary)"},checkoutBtn:{display:"flex",alignItems:"center",justifyContent:"center",background:"var(--color-primary)",color:"#ffffff",textDecoration:"none",borderRadius:"8px",fontSize:"1.0rem",fontWeight:600,height:"48px",cursor:"pointer"},continueShopping:{textAlign:"center",fontSize:"0.875rem",color:"var(--color-primary)",textDecoration:"none"},footer:{background:"var(--color-secondary)",padding:"24px 16px",textAlign:"center"},footerText:{fontSize:"0.8125rem",color:"rgba(255,255,255,0.7)",margin:0}}}}]);
2//# sourceMappingURL=14750-c217bbedffddaab455d9.chunk.js.map

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.