PageSourceSearch

https://ceravis.de/static/js/blocks3.a612348e.chunk.js

js ceravis.de collected 2026-10-08 12:38:08 UTC 2,504 bytes, 2 lines download raw bytes

1"use strict";(globalThis.webpackChunk_danishagro_cms=globalThis.webpackChunk_danishagro_cms||[]).push([[112],{4634(e,a,t){t.r(a),t.d(a,{default:()=>y});var r=t(1462),i=t(9171),n=t(7768),l=t(4505),s=t(3032),c=t(8994),d=t(9162);var o=t(8853);const m="Card_wrapper__+wQjj",u="Card_imageWrapper__iu5Gv",_="Card_image__xgjkH",p="Card_verticalImage__KMReO",h="Card_textWrapper__WNkqM",g="Card_textInner__r2A-z",v="Card_tagWrapper__ra3Zl";var w=t(9334);const y=e=>{var a;const t=(0,o.Zp)(),y=(({name:e,price:a,productNumber:t,currency:i,category:n,brand:l,listId:s,listName:c,quantity:d})=>{const o=new Set(["add_to_cart","remove_from_cart"]),m=e=>{if(!e)return 0;const a=e.replace(/\./g,"").replace(",","."),t=parseFloat(a);return isNaN(t)?0:parseFloat(t.toFixed(2))};return(0,r.useCallback)(r=>{var u,_;window.dataLayer=window.dataLayer||[],null===(u=window.dataLayer)||void 0===u||u.push({ecommerce:null});const p={item_id:null===t||void 0===t?void 0:t.split(",")[0],item_name:e,price:m(a),quantity:o.has(r)&&d?d:1,discount:0,currency:i||"DKK",item_category:n||"",item_brand:l||"",item_list_id:s||"",item_list_name:c||""};o.has(r)||delete p.quantity,null===(_=window.dataLayer)||void 0===_||_.push({event:r,ecommerce:{items:[p]}})},[t,e,a,i,n,l,s,c,d])})({...e,price:"",currency:"",quantity:0,category:"",name:e.headline,brand:"",productNumber:""}),x=()=>{"undefined"!==typeof window&&t(`${window.location.pathname}${window.location.search}`,{replace:!0,state:{scrollY:document.documentElement.scrollTop||document.body.scrollTop}}),y("select_item")},j=e.isPortraitImage||null!==e&&void 0!==e&&e.isVerticalImage?{aspectRatioX:400,aspectRatioY:300}:{aspectRatioX:400,aspectRatioY:200};return(0,w.jsxs)("div",{className:(0,n.cn)(m,e.className),children:[null!==(a=e.image)&&void 0!==a&&a.url?(0,w.jsx)("div",{className:u,children:(0,w.jsx)(d.a,{src:e.image.url,className:(0,n.cn)(_,{[p]:e.isVerticalImage}),...j,alternative:e.alternative})}):null,(0,w.jsxs)("div",{className:h,children:[(0,w.jsxs)("div",{className:g,children:[e.tag&&(0,w.jsx)("div",{className:v,children:(0,w.jsx)(c.Z,{color:"good",children:(0,w.jsx)("span",{children:e.tag})})}),e.headline?(0,w.jsx)(s.je,{h4:!0,tag:s.Nw.H4,noMargin:!0,fullWidth:!0,children:e.headline}):null,e.text?(0,w.jsx)(l.O,{html:e.text,noPadding:!0}):null]}),(0,w.jsx)("div",{onClick:x,role:"button",onKeyDown:e=>{"Enter"!==e.key&&" "!==e.key||x()},tabIndex:0,children:(0,w.jsx)(i.y,{buttons:e.buttons})})]})]})}}}]);
2//# sourceMappingURL=blocks3.a612348e.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.