PageSourceSearch

https://netconv.com/packs/js/24235-dae2eb7c4fa764262203.chunk.js

js netconv.com collected 2026-10-04 02:47:57 UTC 7,103 bytes, 2 lines download raw bytes

1"use strict";(self.webpackChunknetconv=self.webpackChunknetconv||[]).push([[24235,97052],{76662:function(e,t,n){n.d(t,{A:function(){return c}});var r=n(96540),a=n(84976),o=n(85667),l=n(96473);function c(){var e=(0,o.CA)(),t=(0,l.A)().text;return r.createElement("footer",{className:"sf-footer"},r.createElement("div",{className:"sf-container sf-footer-inner"},r.createElement("div",null,r.createElement("strong",null,e.name),r.createElement("p",null,[e.city,e.state].filter(Boolean).join(", "))),r.createElement("nav",{"aria-label":t("Informa\xe7\xf5es da loja","Store information")},r.createElement(a.N_,{to:"/about"},t("Sobre a loja","About the store")),e.phone&&r.createElement("a",{href:"tel:"+e.phone.replace(/[^+\d]/g,"")},e.phone),e.whatsappPhoneNumber&&r.createElement("a",{href:"https://wa.me/"+e.whatsappPhoneNumber.replace(/\D/g,"")},"WhatsApp")),r.createElement("p",null,"\xa9 ",(new Date).getFullYear()," ",e.name)))}},33283:function(e,t,n){n.d(t,{A:function(){return i}});var r=n(96540),a=n(84976),o=n(85667),l=n(57893),c=n(98376),u=n(96473);function i(){var e=(0,o.CA)(),t=(0,l._$)(),n=(0,c.O)(),i=(0,u.A)().text;return r.createElement("header",{className:"sf-header"},r.createElement("a",{className:"sf-skip",href:"#storefront-main"},i("Ir ao conte\xfado","Skip to content")),r.createElement("nav",{className:"sf-container sf-nav","aria-label":i("Loja","Store")},r.createElement(a.N_,{className:"sf-brand",to:"/"},e.logoUrl&&r.createElement("img",{src:e.logoUrl,alt:"",width:"48",height:"48"}),r.createElement("span",null,e.name)),r.createElement("div",{className:"sf-nav-links"},r.createElement(a.N_,{to:"/catalog"},i("Produtos","Products")),r.createElement(a.N_,{to:"/recipes"},i("Receitas","Recipes")),r.createElement(a.N_,{to:"/account"},i("Minha conta","My account")),n.account&&r.createElement(a.N_,{to:"/loyalty"},i("Benef\xedcios","Rewards")),r.createElement(a.N_,{className:"sf-cart-link",to:"/cart","aria-label":i("Carrinho","Cart")},i("Carrinho","Cart")," ",r.createElement("span",null,t.summary.item_count))),r.createElement("form",{className:"sf-header-search",action:"/"+e.slug+"/catalog",role:"search"},r.createElement("label",{className:"sf-sr-only",htmlFor:"storefront-search"},i("Buscar produtos","Search products")),r.createElement("input",{id:"storefront-search",name:"q",type:"search",placeholder:i("O que voc\xea procura?","What are you looking for?")}),r.createElement("button",{type:"submit"},i("Buscar","Search")))))}},98376:function(e,t,n){n.d(t,{O:function(){return c}});var r=n(96540),a=n(85667),o=3e5,l="storefront_user_token";function c(e){var t=(e||{}).orderToken||null,n=(0,a.CA)(),c=(0,r.useState)({account:null,config:null,pendingCoupons:[],milestoneCoupons:[],freshMilestoneCoupons:[],transactions:[],loading:!0,error:null}),u=c[0],i=c[1];return(0,r.useEffect)(function(){var e=function(){try{return window.localStorage.getItem(l)}catch(e){return null}}();if(n.slug&&e){var t=!1;return fetch("/"+n.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||i(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 n=e.milestone_coupons||[],r=Date.now(),a=n.filter(function(e){var t=e.created_at?new Date(e.created_at).getTime():0;return r-t<o});i({account:e.account||null,config:e.config||null,pendingCoupons:e.pending_coupons||[],milestoneCoupons:n,freshMilestoneCoupons:a,transactions:e.transactions||[],loading:!1,error:null})}}).catch(function(e){t||i(function(t){return Object.assign({},t,{loading:!1,error:e.message})})}),function(){t=!0}}i(function(e){return Object.assign({},e,{loading:!1})})},[n.slug,t]),u}},96473:function(e,t,n){n.d(t,{A:function(){return a}});var r=n(85667);function a(){var e=(0,r.CA)(),t=e.locale||("USD"===e.currency?"en-US":"pt-BR");return{locale:t,text:function(e,n){return t.startsWith("pt")?e:n},money:function(n){var r=arguments.length>1&&void 0!==arguments[1]?arguments[1]:e.currency||"BRL";return new Intl.NumberFormat(t,{style:"currency",currency:r}).format(Number(n)||0)}}}},24235:function(e,t,n){n.r(t),n.d(t,{default:function(){return s}});var r=n(96540),a=n(84976),o=n(85667),l=n(33283),c=n(76662);function u(e,t){return function(e){if(Array.isArray(e))return e}(e)||function(e,t){var n=null==e?null:"undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(null!=n){var r,a,o,l,c=[],u=!0,i=!1;try{if(o=(n=n.call(e)).next,0===t){if(Object(n)!==n)return;u=!1}else for(;!(u=(r=o.call(n)).done)&&(c.push(r.value),c.length!==t);u=!0);}catch(e){i=!0,a=e}
1finally{try{if(!u&&null!=n.return&&(l=n.return(),Object(l)!==l))return}finally{if(i)throw a}}return c}}(e,t)||function(e,t){if(e){if("string"==typeof e)return i(e,t);var n={}.toString.call(e).slice(8,-1);return"Object"===n&&e.constructor&&(n=e.constructor.name),"Map"===n||"Set"===n?Array.from(e):"Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)?i(e,t):void 0}}(e,t)||function(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function i(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,r=Array(t);n<t;n++)r[n]=e[n];return r}function s(){var e=(0,o.CA)(),t=u((0,r.useState)({loading:!0,recipes:[],error:null}),2),n=t[0],i=t[1],s=u((0,r.useState)(0),2),f=s[0],m=s[1];return(0,r.useEffect)(function(){var t=new AbortController;return i({loading:!0,recipes:[],error:null}),fetch("/".concat(e.slug,"/api/v1/recipes"),{signal:t.signal}).then(function(e){if(!e.ok)throw new Error("recipes_unavailable");return e.json()}).then(function(e){t.signal.aborted||i({loading:!1,recipes:e.recipes||[],error:null})}).catch(function(e){t.signal.aborted||i({loading:!1,recipes:[],error:e})}),function(){return t.abort()}},[e.slug,f]),r.createElement("div",{className:"sf-page"},r.createElement(l.A,null),r.createElement("main",{id:"storefront-main",tabIndex:"-1",className:"sf-container sf-main sf-recipes"},r.createElement("h1",null,"Receitas"),n.loading?r.createElement("p",{role:"status"},"Carregando receitas\u2026"):null,n.error?r.createElement("div",{role:"alert"},r.createElement("p",null,"N\xe3o foi poss\xedvel carregar as receitas."),r.createElement("button",{onClick:function(){return m(function(e){return e+1})}},"Tentar novamente")):null,n.loading||n.error||n.recipes.length?null:r.createElement("p",null,"Nenhuma receita dispon\xedvel nesta loja."),r.createElement("div",{className:"sf-recipes-grid"},n.recipes.map(function(e){var t;return r.createElement(a.N_,{key:e.id,className:"sf-recipe-card",to:"/recipes/".concat(e.id)},null!==(t=e.image)&&void 0!==t&&t.url?r.createElement("img",{src:e.image.url,alt:""}):null,r.createElement("strong",null,e.title),e.serves_people_format?r.createElement("span",null,e.serves_people_format):null,r.createElement("span",null,"Ver receita"))}))),r.createElement(c.A,null))}}}]);
2//# sourceMappingURL=24235-dae2eb7c4fa764262203.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.