PageSourceSearch

https://www.lojastorra.com.br/_next/static/chunks/CartItem.f43562c70c791a89.js

js lojastorra.com.br collected 2026-10-04 20:18:50 UTC 2,470 bytes, 1 lines download raw bytes

1"use strict";(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[4168],{19872:(e,t,i)=>{i.r(t),i.d(t,{default:()=>c});var r=i(59749),a=i(75834),n=i(36291),m=i(12108),u=i(6641),f=i(48125),s=i(26514);let c=function(e){var t,{item:c,useUnitMultiplier:d=!1,taxesConfiguration:l}=e,o=(e=>{var{currency:{code:t}}=(0,u.wV)();return{onClick:(0,a.useCallback)(r=>{r.preventDefault(),e&&(Promise.resolve().then(i.bind(i,30270)).then(i=>{var{sendAnalyticsEvent:r}=i;r({name:"remove_from_cart",params:{currency:t,value:e.price*e.quantity,items:[{item_id:e.itemOffered.isVariantOf.productGroupID,item_name:e.itemOffered.isVariantOf.name,item_brand:e.itemOffered.brand.name,item_variant:e.itemOffered.sku,quantity:e.quantity,price:e.price,discount:e.listPrice-e.price,currency:t,item_variant_name:e.itemOffered.name,product_reference_id:e.itemOffered.gtin}]}})}),m.O.removeItem(e.id))},[t,e]),"data-testid":"remove-from-cart-button","data-sku":null==e?void 0:e.itemOffered.sku}})(c),{sendCartItemEvent:p}=function(){var{currency:{code:e}}=(0,u.wV)(),t=(0,a.useCallback)((t,r)=>{var a=r-t.quantity;Promise.resolve().then(i.bind(i,30270)).then(i=>{var{sendAnalyticsEvent:r}=i;return r({name:a>0?"add_to_cart":"remove_from_cart",params:{currency:e,value:t.price*Math.abs(a),items:[{item_id:t.itemOffered.isVariantOf.productGroupID,item_name:t.itemOffered.isVariantOf.name,item_brand:t.itemOffered.brand.name,item_variant:t.itemOffered.sku,quantity:Math.abs(a),price:t.price,discount:t.listPrice-t.price,currency:e,item_variant_name:t.itemOffered.name,product_reference_id:t.itemOffered.gtin}]}})})},[e]);return(0,a.useMemo)(()=>({sendCartItemEvent:t}),[t])}(),O=(0,a.useCallback)(e=>{p(c,e),m.O.updateItemQuantity(c.id,e)},[c,p]),_=c.itemOffered.isVariantOf.skuVariants.activeVariations,v=Object.keys(_).map(e=>({label:e,option:_[e]})),h=null!=l&&l.usePriceWithTaxes?c.priceWithTaxes:c.price,b=null!=l&&l.usePriceWithTaxes?c.listPriceWithTaxes:c.listPrice,k=null!=(t=c.itemOffered.unitMultiplier)?t:1;return(0,s.jsxs)(r.m6,{price:{value:h,listPrice:d?b*k:b,formatter:f.f},quantity:c.quantity,onQuantityChange:O,removeBtnProps:o,"data-sku":c.itemOffered.sku,"data-seller":c.seller.identifier,unitMultiplier:c.itemOffered.unitMultiplier,useUnitMultiplier:d,children:[(0,s.jsx)(r.Fq,{children:(0,s.jsx)(n.A,{src:c.itemOffered.image[0].url,alt:c.itemOffered.image[0].alternateName,width:56,height:56})}),(0,s.jsx)(r.m2,{title:c.itemOffered.isVariantOf.name,activeVariations:v})]})}}}]);

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.