local Luan = require "luan:Luan.luan" local error = Luan.error return function(product_name,product_info) if (product_info.size_chart and product_info.size_chart.name) ~= nil then return product_info.size_chart.name end local factory = product_info.factory local category = product_info.category local subcategory = product_info.subcategory if factory=="quanzhou" and (category=="leggings_and_pants" or category=="shorts") then return "leggings_thousandknot" end if factory=="yiwuaidu" and (category=="leggings_and_pants" or category=="shorts") then if subcategory=="Joggers" or subcategory=="Running Shorts" then return "leggings_idol_max" else return "leggings_idol" end end if factory=="xiangshan" and (category=="leggings_and_pants" or category=="shorts") then if subcategory=="Shorts" then return "leggings_trust_max" else return "leggings_trust" end end if factory=="ywlwei" and (category=="leggings_and_pants" or category=="shorts") then return "leggings_liamwayne" end if product_info.factory=="yiwukuangyu" and product_info.category=="leggings_and_pants" then return "leggings_wildfeather" end if product_info.factory=="wxsxin" and product_info.category=="leggings_and_pants" then return "leggings_trinity" end if product_info.factory=="gzyge" and product_info.category=="leggings_and_pants" then return "leggings_ykstudio" end if product_info.factory=="gzydong" and product_info.category=="leggings_and_pants" then return "leggings_goodmove" end if product_info.factory=="gzqhui" and (category=="leggings_and_pants" or category=="shorts" or category=="jumpsuits") then return "leggings_lush" end if product_info.factory=="qzmtz" and product_info.category=="leggings_and_pants" then return "leggings_journey" end if product_info.factory=="qzhjian" and product_info.category=="leggings_and_pants" then return "leggings_topfit" end if (factory=="ywlhuan" or factory=="dgcshan") and (category=="leggings_and_pants" or category=="shorts" or category=="jumpsuits") then return "leggings_idol" end if category=="bras" and (factory=="yiwukuangyu" or factory=="gzqhui") then return "bras_wildlush" end error("no chart for product "..product_name) end