PageSourceSearch

https://www.eselo.lv/static/frontend/scandipwa/theme/en_US/Magento…/js/product-attributes.67d79a52.chunk.js

js eselo.lv collected 2026-10-06 16:15:44 UTC 4,863 bytes, 1 lines download raw bytes

1(this.webpackJsonpscandipwa=this.webpackJsonpscandipwa||[]).push([[26],{1654:function(t,e,r){"use strict";(function(t,n){var a=r(3),i=r(6),o=r(4),u=r(5),l=r(0),c=r(12),s=(r(62),r(2307)),d=t.middleware((function(t){return{isSignedIn:t.MyAccountReducer.isSignedIn}}),"Scandipwa/Component/ProductDetails/Container/mapStateToProps"),p=t.middleware((function(){return{}}),"Scandipwa/Component/ProductDetails/Container/mapDispatchToProps"),b=r(11).checkBEMProps,h=t.middleware(function(t){Object(o.a)(r,t);var e=Object(u.a)(r);function r(){var t;Object(a.a)(this,r);for(var n=arguments.length,i=new Array(n),o=0;o<n;o++)i[o]=arguments[o];return(t=e.call.apply(e,[this].concat(i))).containerProps=function(){return{product:t._getProduct(),tableAttributes:t._getTableAttributes(),areDetailsLoaded:t._areDetailsLoaded()}},t}return Object(i.a)(r,[{key:"_getProduct",value:function(){return this.props.product}},{key:"_areDetailsLoaded",value:function(){return this.props.areDetailsLoaded}},{key:"_getTableAttributes",value:function(){var t=this.props.product.attributes,e=void 0===t?{}:t;return Object.values(e).filter((function(t){if(t.attribute_code.includes("EF")||"EAN_sp"===t.attribute_code||"PACKAGING_UNIT_sp"===t.attribute_code||"TYPE_DESCRIPTION_sp"===t.attribute_code){if("select"!==t.attribute_type)return t;if("select"===t.attribute_type&&"0"!==t.attribute_value)return t}return null}))}},{key:"render",value:function(){return b(n,s.a,Object.assign({},this.containerFunctions,this.containerProps(),this.props,this.state))}}]),r}(t.Extensible(l.PureComponent)),"Scandipwa/Component/ProductDetails/Container/ProductDetailsContainer");e.a=Object(c.b)(d,p)(h)}).call(this,r(7).default,r(0))},2306:function(t,e,r){"use strict";r.r(e);var n=r(1654);r.d(e,"default",(function(){return n.a}))},2307:function(t,e,r){"use strict";(function(t,n,a){var i,o,u=r(3),l=r(6),c=r(4),s=r(5),d=r(0),p=r(25),b=r(1317),h=r(56),v=(r(62),r(2308),r(11).checkBEMProps),m=t.middleware((o=i=function(t){Object(c.a)(r,t);var e=Object(s.a)(r);function r(){return Object(u.a)(this,r),e.apply(this,arguments)}return Object(l.a)(r,[{key:"renderProductDescription",value:function(){var t=this.props,e=t.product,r=t.areDetailsLoaded;return v(n,b.default,{product:e,areDetailsLoaded:r})}},{key:"renderDetails",value:function(){var t=arguments.length>0&&void 0!==arguments[0]&&arguments[0];return v(n,"div",{block:"ProductDetails",elem:"DetailsWrapper",mods:{isOnlyDetails:t}},v(n,"h2",{block:"ProductDetails",elem:"Heading"},a("Product Information")),this.renderDetailsTable())}},{key:"getValue",value:function(t){return"select"===t.attribute_type&&t.attribute_options[t.attribute_value]?t.attribute_options[t.attribute_value].label:"text"===t.attribute_type?t.attribute_value:v(n,h.a,{length:"short"})}},{key:"renderDetailsTable",value:function(){var t=this,e=this.props,r=e.tableAttributes,a=void 0===r?{}:r,i=e.product.product_attachments,o=void 0===i?{}:i,u=Object.values(o);return 0!==Object.keys(a).length||0!==u.length?v(n,"div",{block:"Table",elem:"Wrapper"},v(n,"table",{className:"table",block:"ProductDetails",elem:"Table"},v(n,"tbody",null,Object.values(a).map((function(e){return v(n,"tr",{key:e.attribute_code},v(n,"th",null,"".concat(e.attribute_label,":")),v(n,"td",null,t.getValue(e)))})),this.renderAttachmentRow()))):null}},{key:"renderAttachmentRow",value:function(){var t=this.props,e=t.isSignedIn,r=t.product.product_attachments,i=void 0===r?{}:r,o=Object.values(i);return e&&o.length?v(n,"tr",null,v(n,"th",null,a("Documents:")),v(n,"td",null,v(n,"ul",{block:"ProductDetails",elem:"Attachments"},o.map((function(t){return v(n,"li",{key:t.id},v(n,p.a,{block:"Underline",to:t.url,isOpenInNewTab:!0},v(n,"div",{className:"Icon-Pdf"}),t.title))}))))):null}},{key:"render",value:function(){var t=this.props,e=t.product,r=e.description,i=(r=void 0===r?{}:r).html,o=e.product_attachments,u=void 0===o?{}:o,l=t.tableAttributes,c=void 0===l?{}:l,s=t.isSignedIn,d=!!((null===c||void 0===c?void 0:c.length)||(null===u||void 0===u?void 0:u.length)&&s);return d&&i?v(n,"div",{block:"ProductDetails",className:"ContentWrapper"},this.renderDetails(),v(n,"div",{block:"ProductDetails",elem:"Description"},v(n,"h2",{block:"ProductDetails",elem:"Heading"},a("Product Description")),this.renderProductDescription())):i?v(n,"div",{block:"ProductDetails",className:"ContentWrapper"},v(n,"div",{block:"ProductDetails",elem:"Description",mods:{isOnlyDescription:!0}
1},v(n,"h2",{block:"ProductDetails",elem:"Heading"},a("Product Description")),this.renderProductDescription())):d?v(n,"div",{block:"ProductDetails",className:"ContentWrapper"},this.renderDetails(!0)):null}}]),r}(t.Extensible(d.PureComponent)),i.defaultProps={tableAttributes:[]},o),"Scandipwa/Component/ProductDetails/Component/ProductDetailsComponent");e.a=m}).call(this,r(7).default,r(0),r(16).default)},2308:function(t,e,r){}}]);

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.