// Module ID: 4104 // Function ID: 4105 // Name: items // Dependencies: [689, 2] // Exports: generateRandomColorOptions // Module 4104 (items) let items = ["#94E0CF", "#9AF0B1", "#9A90FF", "#9A53FF", "#FDA6E4", "#FFE6C0", "#EFB4AA", "#56B69F", "#29C566", "#5348CA", "#6D24D4", "#CA48C8", "#F0AE29", "#DF4232"]; let closure_3 = [0, 45, 90, 135, 180, 225, 270, 315]; let closure_4 = [20, 40, 60, 80]; let obj = { SOLID: "solid", GRADIENT: "gradient" }; obj = { TWO_COLOR: "two-color", ANALOGOUS: "analogous", COMPLEMENTARY: "complementary", SPLIT_COMPLEMENTARY: "split-complementary", TRIADIC: "triadic" }; let items1 = [, , , ]; ({ ANALOGOUS: arr2[0], COMPLEMENTARY: arr2[1], SPLIT_COMPLEMENTARY: arr2[2], TRIADIC: arr2[3] } = obj); const result = require("set").fileFinishedImporting("modules/client_themes/CustomThemesRandomUtils.tsx"); export const COLOR_PALETTE = items; export const ColorType = obj; export const GradientType = obj; export const generateRandomColorOptions = function generateRandomColorOptions() { const tmp = length2[Math.floor(Math, Math.random(Math) * length2.length)]; const tmp2 = length[Math.floor(Math, Math.random(Math) * length.length)]; let str = "path2"; if (Math.random() < 0.2) { str = "path1"; } if ("path1" === str) { const _Math = Math; const _Math2 = Math; let tmp3 = items; const rounded = Math.floor(Math.random() * items.length); const _Math3 = Math; const _Math4 = Math; let rounded1 = Math.floor(Math.random() * items.length); if (rounded1 === rounded) { do { let _Math5 = Math; let _Math6 = Math; let tmp6 = items; rounded1 = Math.floor(Math.random() * items.length); tmp3 = items; } while (rounded1 === rounded); } items = [tmp3[rounded], tmp3[rounded1]]; let obj = { type: null, colors: null, angle: null, intensity: null, gradientType: null }; obj[0] = obj.GRADIENT; obj[1] = items; obj[2] = tmp2; obj[3] = tmp; obj[4] = obj.TWO_COLOR; return obj; } else { const _Math7 = Math; const _Math8 = Math; const _Math9 = Math; const _Math10 = Math; const tmp11 = items1[Math.floor(Math, Math.random(Math) * items1.length)]; obj = { type: null, colors: null, angle: null, intensity: null, gradientType: null }; obj[0] = obj.GRADIENT; obj[1] = (function generateColorHarmony(gradientSecondaryBackground, arg1) { try { let obj = callback(table[0])(gradientSecondaryBackground); let value = obj.get("hsl.h"); value = obj.get("hsl.s"); const value1 = obj.get("hsl.l"); if (constants.ANALOGOUS === arg1) { return (function generateAnalogousColors(gradientSecondaryBackground, value, value1, value2) { const obj = callback(689); const items = [callback(689).hsl(value2 - 30, value, value1).hex(), gradientSecondaryBackground, ]; const hslResult = callback(689).hsl(value2 - 30, value, value1); const obj3 = callback(689); items[2] = callback(689).hsl(value2 + 30, value, value1).hex(); return items; })(gradientSecondaryBackground, value, value1, value); } else if (tmp8.COMPLEMENTARY === arg1) { return (function generateComplementaryColors(gradientSecondaryBackground, value, value1, value2) { const obj = callback(689); const hexResult = callback(689).hsl((value2 + 180) % 360, value, value1).hex(); const items = [gradientSecondaryBackground, , ]; const hslResult = callback(689).hsl((value2 + 180) % 360, value, value1); const obj3 = callback(689); items[1] = callback(689).mix(gradientSecondaryBackground, hexResult, 0.5).hex(); items[2] = hexResult; return items; })(gradientSecondaryBackground, value, value1, value); } else if (tmp8.SPLIT_COMPLEMENTARY === arg1) { return (function generateSplitComplementaryColors(gradientSecondaryBackground, value, value1, value2) { const items = [gradientSecondaryBackground, , ]; const obj = callback(689); items[1] = callback(689).hsl((value2 + 150) % 360, value, value1).hex(); const hslResult = callback(689).hsl((value2 + 150) % 360, value, value1); const obj3 = callback(689); items[2] = callback(689).hsl((value2 + 210) % 360, value, value1).hex(); return items; })(gradientSecondaryBackground, value, value1, value); } else if (tmp8.TRIADIC === arg1) { return (function generateTriadicColors(gradientSecondaryBackground, value, value1, value2) { const items = [gradientSecondaryBackground, , ]; const obj = callback(689); items[1] = callback(689).hsl((value2 + 120) % 360, value, value1).hex(); const hslResult = callback(689).hsl((value2 + 120) % 360, value, value1); const obj3 = callback(689); items[2] = callback(689).hsl((value2 + 240) % 360, value, value1).hex(); return items; })(gradientSecondaryBackground, value, value1, value); } else { let items = [gradientSecondaryBackground]; return items; } } catch (err) { const items1 = [tmp]; return items1; } })(items[Math.floor(Math, Math.random(Math) * items.length)], tmp11); obj[2] = tmp2; obj[3] = tmp; obj[4] = tmp11; return obj; } };