!function(a){function e(){var f,e=a("color_scheme")(),g=_.object(c,colorScheme[e].colors);_.each(d,function(b){g[b]=a(b)()}),g.site_page_nav_link_title_color=Color(g.site_page_nav_link_title_color).toCSS(),g.event_button_color=Color(g.event_button_color).toCSS(),g.event_feature_box_color=Color(g.event_feature_box_color).toCSS(),g.event_team_box_color=Color(g.event_team_box_color).toCSS(),g.event_schedule_list_box_color=Color(g.event_schedule_list_box_color).toCSS(),g.event_bbpress_woocommerce_color=Color(g.event_bbpress_woocommerce_color).toCSS(),f=b(g),a.previewer.send("update-color-scheme-css",f)}var b=wp.template("event-color-scheme"),c=["site_page_nav_link_title_color","event_button_color","event_feature_box_color","event_team_box_color","event_schedule_list_box_color","event_bbpress_woocommerce_color"],d=["site_page_nav_link_title_color","event_button_color","event_feature_box_color","event_team_box_color","event_schedule_list_box_color","event_bbpress_woocommerce_color"];a.controlConstructor.select=a.Control.extend({ready:function(){"color_scheme"===this.id&&this.setting.bind("change",function(b){a("site_page_nav_link_title_color").set(colorScheme[b].colors[3]),a.control("site_page_nav_link_title_color").container.find(".color-picker-hex").data("data-default-color",colorScheme[b].colors[3]).wpColorPicker("defaultColor",colorScheme[b].colors[3]),a("event_button_color").set(colorScheme[b].colors[3]),a.control("event_button_color").container.find(".color-picker-hex").data("data-default-color",colorScheme[b].colors[3]).wpColorPicker("defaultColor",colorScheme[b].colors[3]),a("event_feature_box_color").set(colorScheme[b].colors[3]),a.control("event_feature_box_color").container.find(".color-picker-hex").data("data-default-color",colorScheme[b].colors[3]).wpColorPicker("defaultColor",colorScheme[b].colors[3]),a("event_team_box_color").set(colorScheme[b].colors[3]),a.control("event_team_box_color").container.find(".color-picker-hex").data("data-default-color",colorScheme[b].colors[3]).wpColorPicker("defaultColor",colorScheme[b].colors[3]),a("event_schedule_list_box_color").set(colorScheme[b].colors[3]),a.control("event_schedule_list_box_color").container.find(".color-picker-hex").data("data-default-color",colorScheme[b].colors[3]).wpColorPicker("defaultColor",colorScheme[b].colors[3]),a("event_bbpress_woocommerce_color").set(colorScheme[b].colors[3]),a.control("event_bbpress_woocommerce_color").container.find(".color-picker-hex").data("data-default-color",colorScheme[b].colors[3]).wpColorPicker("defaultColor",colorScheme[b].colors[3])})}}),_.each(d,function(b){a(b,function(a){a.bind(e)})})}(wp.customize);