{
"version": 3,
"sources": ["../../../../../apps/cslshoes_erp/cslshoes_erp/csl_shoes_erp/product_ui/list.js", "../../../../../apps/cslshoes_erp/cslshoes_erp/csl_shoes_erp/product_ui/views.js", "../../../../../apps/cslshoes_erp/cslshoes_erp/csl_shoes_erp/product_ui/grid.js", "../../../../../apps/cslshoes_erp/cslshoes_erp/csl_shoes_erp/product_ui/search.js"],
"sourcesContent": ["erpnext.ProductList = class {\n /* Options:\n\t\t- items: Items\n\t\t- settings: E Commerce Settings\n\t\t- products_section: Products Wrapper\n\t\t- preference: If preference is not list view, render but hide\n\t*/\n constructor(options) {\n console.log(\"hello from list.js\");\n Object.assign(this, options);\n\n if (this.preference !== \"List View\") {\n this.products_section.addClass(\"hidden\");\n }\n\n this.products_section.empty();\n this.make();\n }\n\n make() {\n let me = this;\n let html = `
`;\n\n this.items.forEach((item) => {\n if (\n item.in_stock ||\n item.has_variants ||\n item.custom_allow_item_not_in_stock\n ) { \n let title =\n item.web_item_name ||\n item.item_name ||\n item.item_code ||\n \"\";\n title =\n \n title.length > 200 ? title.substr(0, 200) + \"...\" : title;\n\n html += `
\n\t\t\t\t${item.item_group} | Item Code : ${item.item_code}\n\t\t\t
\n\t\t\t