[v-advice]{position: relative;line-height: 18px;padding: 15px;border-radius: 5px;background:#dce3ec;}.popup_in [v-advice]{display:inline-block;margin-top:10px;}.advice_close{position: absolute;top:8px;right:8px;width:12px;height:12px;background:url('../img/close.svg');background-size:contain;cursor: pointer;}#calendar{position: absolute;top:65px;right:0px;z-index: 1000000;background:#ffffff;min-width:10px;min-height: 10px;padding:10px;font-size:0;box-shadow: 0px 3px 6px #00000029;border-radius: 8px;display:none;}#calendar .month{width:168px;display:inline-block;vertical-align: top;margin-right: 10px;font-size: 11px;}#calendar .day{display:inline-block;vertical-align: top;width:24px;height:24px;line-height: 24px;text-align:center;cursor:pointer;}#calendar .day:hover{background:#ebebeb;}#calendar .day.disabled{color:#c0c0c0;cursor:default;}#calendar .day.disabled:hover{background:#ffffff;}#calendar .day.selected{background:#FFAA45;color:#ffffff;}#calendar .day.selected2{background:#ffdeb7;}#calendar .day.selected.selected2{background:#ad6f7b;}#calendar .month_name{text-align: center;margin:0 0 5px 0;background:#f9fafc;padding:5px 0 5px;font-weight: bold;}#calendar .year{text-align: center;margin:0 0 5px 0;background:#f9fafc;padding:5px 0 5px;font-weight: bold;font-size:11px;}#calendar .day.label{background:#b8c1d4;font-weight: bold;}#calendar .previous,#calendar .next{position: absolute;cursor:pointer;}#calendar .change_year{top:5px;}#calendar .change_month{top:35px;}#calendar .previous{left:5px;}#calendar .next{right:5px;}#calendar .previous svg,#calendar .next svg{width:12px;height:12px;}#calendar .previous{transform: rotate(180deg);}#calendar_left,#calendar_right{position: relative;display:inline-block;vertical-align: top;}#calendar_right{font-size:13px;background:#f9fafc;margin:50px 0 0 10px;padding:10px;font-size:11px;}#calendar .cell{margin:0 0 10px 0;}#calendar .calendar_period_show{display:inline-block;vertical-align: top;background:#ffffff;padding:5px;border:2px solid #d6d6d6;border-radius: 10px;}#calendar .calendar_period_show.active{border:2px dotted #FFAA45;}.type_period1{color:#FFAA45;}#calendar .calendar_period_show.period2{border:2px solid #d6d6d6;}#calendar .calendar_period_show.period2.active{border:2px dotted #fdcdc7;}.type_period2{color:#fdcdc7;}#calendar .calendar_period_sep{display:inline-block;vertical-align: top;padding:5px;font-weight: bold;margin:2px 5px 2px 5px;}#calendar select,#calendar option{font-family:'Roboto';font-size:13px;}#calendar_result{position: absolute;top:15px;right:95px;font-size:15px;background:#F9FAFC;cursor:pointer;z-index:10;}#calendar_bottom{text-align: center;}#calendar_bottom input[type="submit"]{font-size:13px;width:initial;display:inline-block;background: #fe0b09;color: #ffffff;font-family: Roboto;padding: 10px;border-radius: 3px;border: 0;cursor: pointer;}#calendar_result_period2{font-size:12px;margin-top:5px;}#calendar_result_period2.hide{display:none;}#calendar_result{border:1px solid #DDE5F4;padding:5px 10px 5px 10px;border-radius:5px;}[v-chart]{font-size:0;margin:0;}.yaxis, .xaxis, .area{display:inline-block;font-size:11px;vertical-align: top;}.yaxis{position: relative;width:50px;margin-top:0;}.axis_label{position: absolute;top:-25px;}.xaxis{height:50px;margin:0 0 0 50px;border-top:1px solid #ebebeb;}.axis_value{border-top:1px solid #ebebeb;padding-top:5px;}.area svg{width:100%;height:100%;overflow:auto;}.area path{stroke-width: 1.7px;fill: none;stroke: #3bb0e3;}path.style2{stroke:#f06483;stroke-dasharray: 3,3;}[v-chart-type="xsmall"] .area path{stroke-width: 1.7px;stroke: #57a2ec;fill: rgba(87, 162, 236, 0.15);}[v-chart-type="xsmall"] path.style2{stroke:#cc4ead;fill:rgba(204, 78, 173, 0.15);stroke-dasharray: 3,3;}.chart_statistics td{padding:0 0 5px 0;}.chart_statistics th{padding:0 0 2px 0;white-space: nowrap;}.ranking_type_tabs .chart_statistics th,.ranking_type_tabs .chart_statistics td{padding-right:18px;}.ranking_type_tabs .ranking_type_tabs_element .label_before{display:none;}.ranking_type_tabs .ranking_type_tabs_element:hover .label_before,.ranking_type_tabs .ranking_type_tabs_element.tab_selected_true .label_before{display:block;}.chart_statistics td{white-space: nowrap;}.chart_statistics{font-size:13px;border:0;padding:0;margin:0;text-align:left;}.chart_statistics .value,.chart_statistics .evolution{vertical-align: top;}.chart_statistics .value{font-size:15px;font-weight:bold;cursor: pointer;}.chart_statistics .evolution.negative,.chart_top_statistics .evolution.negative{color:#e07c78;}.chart_statistics .evolution.stable,.chart_top_statistics .evolution_stable,.chart_statistics .evolution.positive,.chart_top_statistics .evolution.positive,.chart_top_statistics .evolution.stable{color:#9bc181;}.chart_statistics .bar{height:10px;background:red;}.area .grid{stroke:#ebebeb;stroke-width:1px;shape-rendering:crispEdges;}.chart_border_left{position: absolute;top:0;left:-20px;bottom:0;width:20px;background:#ffffff;border-left:5px solid #f9fafc;padding-top:26px;text-align:center;display:none;}.chart_border_left li{padding:0 0 5px 0;}.chart_border_left svg{width:11px;height:11px;fill:#444444;}.chart_cell.chart_cell_relative{position: relative;overflow:initial;}.ranking_type_tabs_element:hover .chart_border_left,.chart_cell_relative:hover .chart_border_left{display:block;}.chart_cell.chart_cell_relative .chart_border_left{padding-top:12px;}.chart_cell.chart_cell_relative .chart_border_left li{padding-bottom:9px;}.chart_dates{position: relative;font-size:11px;margin:10px 0 0 auto;}.chart_dates_period{position: relative;margin:0;}.chart_dates_period.active{border-bottom:1px solid #ebebeb;}.chart_dates_end{position: absolute;top:0;right:0;}.chart_pencil_cursor{position: absolute;top:0;bottom:0;width:4px;display:none;border-left:1px solid #ffffff;border-right:1px solid #ffffff;}[v-chart-type="graph_top_series"]{width:1200px;}[v-chart-type="graph_top_series"] .area svg{display:inline-block;vertical-align: top;}label{cursor:pointer;}[v-title]{cursor:default;}.value_stat_icon [v-title]{cursor: pointer;}[v-edit-field]{}[v-edit-field] input[type="text"]{width:100%;border:0;color:#170C25;background:#f9fafc;padding:4px 5px 4px 5px;line-height:20px;font-family: 'Roboto';border:1px dashed #DDE5F4;border-radius:5px;font-size:13px;}[v-edit-field] textarea{width:280px;min-height:65px;color:#170C25;background:#f9fafc;padding:3px 5px 3px 5px;border-radius:3px;outline: 0;font-family: 'Roboto';border:1px dashed #356dd9;font-size:13px;line-height:20px;overflow:hidden;resize: none;}[v-edit-field] input[type="text"]::selection{color:#ffffff;background:#356dd9;}.edit_field_hover .show{border:1px solid transparent;padding:3px 5px 1px 5px;border-radius:3px;display:block;cursor: text;line-height:20px;}[v-edit-field].edit .edit{font-size:0;}.edit_field_hover:hover .show{border:1px dashed #c4c4ce;}#form_calendar{position: absolute;top:65px;right:100px;width:188px;height:218px;z-index: 1000002;background:#ffffff;min-width:10px;min-height: 10px;padding:10px;font-size:0;box-shadow: 0px 3px 6px #00000029;border-radius: 3px;}#form_calendar .month{width:168px;display:inline-block;vertical-align: top;margin-right: 10px;font-size: 11px;}#form_calendar .day{display:inline-block;vertical-align: top;width:24px;height:24px;line-height: 24px;text-align:center;cursor:pointer;}#form_calendar .day.selected{background:#FFAA45;}#form_calendar .months{width:168px;}#form_calendar .day:hover{background:#ebebeb;}#form_calendar .day.disabled{color:#c0c0c0;cursor:default;}#form_calendar .day.disabled:hover{background:#ffffff;}#form_calendar .day.selected{background:#FFAA45;color:#ffffff;}#form_calendar .day.selected2{background:#ffdeb7;color:#ffffff;}#form_calendar .day.selected.selected2{background:#ffdeb7;}#form_calendar .month_name{text-align: center;margin:0 0 5px 0;background:#f9fafc;padding:5px 0 5px;font-weight: bold;}#form_calendar .year{text-align: center;margin:0 0 5px 0;background:#f9fafc;padding:5px 0 5px;font-weight: bold;font-size:11px;}#form_calendar .day.label{background:#b8c1d4;font-weight: bold;}#form_calendar .previous,#form_calendar .next{position: absolute;cursor:pointer;}#form_calendar .change_year{top:5px;}#form_calendar .change_month{top:35px;}#form_calendar .previous{left:5px;}#form_calendar .next{right:5px;}#form_calendar .previous svg,#form_calendar .next svg{width:12px;height:12px;}#form_calendar .previous{transform: rotate(180deg);}#form_calendar_left,#form_calendar_right{position: relative;display:inline-block;vertical-align: top;}#form_calendar_right{font-size:13px;background:#f9fafc;margin:50px 0 0 10px;padding:10px;font-size:11px;}#form_calendar .cell{margin:0 0 10px 0;}#form_calendar .calendar_period_show{display:inline-block;vertical-align: top;background:#ffffff;padding:5px;border:2px solid #d6d6d6;border-radius: 10px;}#form_calendar .calendar_period_show.active{border:2px dotted #f87567;}#form_calendar .calendar_period_show.period2{border:2px solid #d6d6d6;}#form_calendar .calendar_period_show.period2.active{border:2px dotted #61698f;}#form_calendar .calendar_period_sep{display:inline-block;vertical-align: top;padding:5px;font-weight: bold;margin:2px 5px 2px 5px;}#form_calendar select,#form_calendar option{font-family:'Roboto';font-size:13px;}#form_calendar_result{position: absolute;top:40px;right:0;font-size:16px;z-index:10;}#form_calendar_bottom{text-align: center;}#form_calendar_bottom input[type="submit"]{background:#F7A634;color:#ffffff;font-family: 'Roboto';font-size:14px;border:0;padding:10px;border-radius:5px;width:initial;display:inline-block;}#form_calendar_result_period2{font-size:12px;margin-top:5px;}#form_calendar_result_period2.hide{display:none;}#form_calendar_result{border:1px solid #DDE5F4;padding:5px 10px 5px 10px;border-radius:5px;}input[type="checkbox"]{display:none;}.checkbox_bloc{line-height: 16px;vertical-align: top;}.checkbox{border:1px solid #DDE5F4;border-radius:0;width:16px;height:16px;display:inline-block;vertical-align: top;border-radius: 5px;}.checkbox.checked{background:#DDE5F4;}.checkbox_label{display:inline-block;vertical-align: top;line-height: initial;margin:0 0 0 5px;}.form_multiple_bloc{margin:5px 0 0 0;}.form_multiple{position: absolute;top:100%;margin:-27px 0 0 0;vertical-align: top;border:1px solid #DDE5F4;border-bottom:0;background:#ffffff;display:none;z-index:50;}.form_multiple_always_visible{position: relative;margin: 0;display:inline-block;z-index:1;}.form_multiple .items_scroll{max-height: 200px;max-width:400px;overflow-y: auto;border-bottom:1px solid #DDE5F4;}.form_multiple .items{display:table;min-width:200px;}.form_multiple .item{display:table-row;white-space: nowrap;}.form_multiple .item.selected,.form_multiple .item:hover{background:#CDD2E1;}.form_multiple .item.selected{background:#CDD2E1;}.form_multiple .item .label,.form_multiple .item .subtitle{display:table-cell;border-bottom:1px solid #DDE5F4;cursor: pointer;color:#373741;}.form_multiple .item .label{padding:8px 10px 8px 10px;}.form_multiple .item .subtitle{padding:8px 10px 8px 20px;}.form_multiple .form_multiple_search{background:#f4f5f7;border-bottom:1px solid #DDE5F4;}.form_multiple .form_multiple_search input[type="text"]{background:#f4f5f7;font-size:13px;padding:8px 10px 8px 10px;}.form_multiple_button_add{border:1px solid #CDD2E1;display:inline-block;padding:5px 8px 5px 8px;cursor:pointer;}.form_multiple_button_add svg{width:8px;height:8px;display:inline-block;vertical-align: middle;margin-top:-2px;}.form_multiple_result_item{display:inline-block;vertical-align: top;background:#e2e7f2;border-radius:3px;padding:6px 7px 6px 7px;margin:0 10px 10px 0;}.form_multiple_result{display:inline;vertical-align: top;}.form_multiple_always_visible.form_multiple_result{display:inline-block;margin:0 0 5px 10px;}.form_multiple.form_multiple_always_visible{margin-bottom: 5px;}.form_multiple_label,.form_multiple_delete{display:inline-block;vertical-align: middle;}.form_multiple_delete svg{width:8px;height:8px;margin:0 0 0 10px;cursor: pointer;}.form_multiple_create_post{border-bottom:1px solid #DDE5F4;}.form_multiple_create_post_button{color:#1f9de1;text-align:center;padding:10px 0 10px 0;cursor:pointer;}[m-form-resource] .form_multiple_create_post_field{display:none;}[m-form-resource] .form_multiple_create_post_field input[type="text"]{padding:9px 10px 8px 10px;}.form_select{position: relative;display:inline-block;vertical-align: top;padding-right: 16px;}.form_select .list{position: absolute;top: 0;background: #FFFFFF;border: 1px solid #DDE5F4;min-width: 140px;text-align: left;z-index:10180;}.form_select .list.pos_top{top:initial;bottom: 0;}.form_select .list .list_in{max-height: 400px;overflow: auto;}.form_select .list .list_in.paddingtop{padding-top:15px;}.form_select .list .option,.form_select .list .option_select{display: block;line-height: 34px;padding: 0 10px 0 10px;font-size: 13px;white-space: nowrap;font-weight: normal;cursor: pointer;}.form_select .list .master{display: block;line-height: 34px;padding: 0 10px 0 10px;font-size: 13px;white-space: nowrap;font-weight: bold;cursor: pointer;}.form_select .value_bloc{border: 1px solid #DDE5F4;padding: 0 10px 0 10px;line-height: 34px;background: #dde7f1;border-radius: 5px;margin: 0;}.form_select .value,.form_select .open{display: inline-block;vertical-align: middle;}.form_select .open{margin:0 0 0 15px;padding-right:5px;}.form_select .open svg{position: absolute;top:12px;width:10px;height:10px;}.form_select_button_bottom{border-top: 1px solid #DDE5F4;text-align: center;line-height: initial;padding:15px 0 15px 0;}.form_select_button_bottom.button_a{display: block;}.jscolor,input[type=text].jscolor{width:50px;border:0;padding:5px 10px 5px 10px;border:1px solid #606060;}body [v-permission][v-access="true"]{display:inline-block;}body [v-permission][v-access="false"]{display:none !important;}body #top_list_options [v-permission="billing|write"][v-access="true"]{display:block;}[template="daily_dashboard"] .button4[v-popup-open="projects_add"],[template="daily_dashboard"] #button_action_top li[v-popup-open="projects_add"]{display:none;}[template="daily_dashboard"] .button4[v-popup-open="projects_add"][v-access="true"],[template="daily_dashboard"] #button_action_top li[v-popup-open="projects_add"][v-access="true"]{display:inline-block;}#popup_background{position: fixed;top:0;left:0;right:0;bottom:0;background:rgba(0, 0, 0, 0.5);display:none;z-index:1000000;}#popup{}#popup h2{margin:0;}.popup_in p{line-height: 18px;}.popup_description,.popup_important,.popup_video{line-height: 18px;background:#f4f5f7;padding:15px;border-radius:5px;margin:20px 0 0 0;}.popup_description_important{font-size: 13px;background: #38a715;padding: 10px;color: #ffffff;border-radius: 5px;margin-bottom: 20px;}.popup_video_content{display:inline-block;vertical-align: top;margin:5px 0 0 10px;}[v-popup] .popup_video a{color:#069AFE;}[v-popup] a{color:#069AFE;}[v-popup]{position: fixed;top:0;right:0;bottom:0;min-width: 500px;display:none;background:#ffffff;box-shadow: 0px 0px 6px #bebebe;z-index:1000001;padding:16px 20px 160px 20px;overflow-y:scroll;display:none;}[v-popup].hover{box-shadow: none;}.popup_close{position: absolute;top:20px;left:20px;width:16px;height:16px;background:url('../img/close.svg');background-size: contain;cursor:pointer;z-index:1000002;}.popup_line{border:1px solid #DDE5F4;margin:-1px 0 0 0;font-size:0;}.popup_table_header{font-weight: bold;margin:20px 0 0 0;}.popup_cell{display:inline-block;vertical-align: top;font-size:13px;padding:10px 5px 10px 5px;}.popup_line_force .popup_cell{white-space: nowrap;overflow: hidden;}.popup_in .action{margin:10px 0 0 0;}[v-popup] h2{margin:0 0 0 25px;}.popup_in form{border:1px solid #DDE5F4;padding:10px;margin:0 0 20px 0;}.popup_in form .title{font-size: 20px;font-weight: 700;padding: 0;margin:0 0 10px 0;}.popup_line .icon_device1,.popup_line .icon_device2,.popup_line .icon_device1true_active,.popup_line .icon_device1false_active,.popup_line .icon_device2true_active,.popup_line .icon_device2false_active{display:inline-block;vertical-align: top;margin:0 5px 0 0;}.popup_line .disabled{display:none;}.popup_line .icon_device1false_active:hover,.popup_line .icon_device2false_active:hover{cursor:pointer;}.popup_line .icon_device1true_active:hover,.popup_line .icon_device2true_active:hover{cursor:pointer;}.popup_line .menu_action_show.icon{background-color:#ffffff;width:21px;}.popup_line .menu_action_show .icon_action{margin-right:5px;}.popup_line.menu_action_hover:hover .menu_action_show.icon{opacity:1;}.popup_in .bloc_show{margin:0;display:block;}.popup_in form{margin:20px 0 0 0;}.popup_cell .color{width:16px;height:16px;display:inline-block;vertical-align: top;}.popup_cell .jscolor, .popup_cell input[type=text].jscolor{border:0;}#popup_notes_add_palette{display:none;}[v-popup-open].load{opacity:0.50;}.popup_in .label_list{margin:20px 0 0 0;font-weight: bold;font-size:15px;}.popup_in .list li{margin:10px 0 0 0;color:#069AFE;cursor: pointer;}[v-show-scroll="false"]{border:1px solid red;}[v-show-scroll="true"]{border:1px solid green;}th{font-weight: normal;}table{border-spacing:0;}#title_mouse{padding:5px;font-size:0;position: absolute;top:50%;left:50%;display:none;transform: translate3d(0,0,0);z-index:1000001;}#title_mouse_content{background:#404040;color:#f0f0f0;font-size:13px;padding:10px;border-radius: 3px;line-height: 20px;white-space: nowrap;overflow: hidden;}#title_mouse_cursor,#title_mouse_cursor_reverse{position: relative;width:12px;height:10px;font-size:0;overflow:hidden;text-align:center;margin:0 auto 0 auto;}#title_mouse_cursor svg,#title_mouse_cursor_reverse svg{width:12px;height:12px;margin:-1px 0 0 0;transform: rotate(180deg);}#title_mouse_cursor_reverse svg{transform: rotate(0deg);}#title_mouse_cursor path,#title_mouse_cursor_reverse path{fill:#404040;stroke-width: 0;}#title_mouse_cursor_reverse{display:none;}[m-data]{font-size:0;}[m-data][m-exec="true"]{font-size:initial;}[v-table]{opacity:0;}[v-table][v-exec="true"]{opacity:1;}[v-auto-hide="false"]{display:none;}[v-auto-hide="true"]{display: block;}[v-action-show]{cursor: pointer;}[v-action-show] input[type="text"]{}[v-hide="true"]{display:none;}[v-hide="false"]{display:block;}[v-edit-field] .edit{display:none;}[v-edit-field].edit .edit{display:initial;}[v-edit-field].edit .show{display:none;}[v-exec="true"][v-load="false"], [v-load="false"]{opacity:0.5;}@media screen and (max-device-width: 11in){#mobile_notice{display:block !important;}}.action:hover{color:#069AFE;fill:#069AFE;}.action:hover path{fill:#069AFE;}.alert_pixels,.alert_visibility,.alert_performance{display:none;}.profile.profile_alerts{margin-right: -7px;margin-top:-10px;border: 2px solid #ffffff;width: 34px;height: 34px;cursor: pointer;}.profile.profile_alerts.no_bg{line-height: 30px;background: #dde7f1;border: 2px solid #ffffff;color: #373741;font-size: 13px;}.api_method,.return{margin:0 0 50px 0;line-height:18px;}.api_method .subtitle,.return .subtitle{font-size: 16px;background: #F9FAFC;padding: 10px;margin: 40px 0 10px 0;color: #404040;font-weight: bold;}.api_method .title,.return .title{font-weight: bold;}.api_method .element,.return .element{margin:0 0 20px 0;}.api_select{display:none;}.api_method{display:none;}.api_method.show{display:block;}.api_method .param,.return .param{color:#fe0b09;font-weight: bold;}.api_rank_type{line-height: 24px;}.bill_information_field{display:none;}.billing_information_bloc{border: 1px solid #E7ECF7;margin: 0 0 20px 0;padding: 5px 10px 5px 10px;background: #ffffff;transition: all 0.25s;border-radius: 5px;font-weight:normal;}.billing_information_bloc .edit{color:#069AFE;cursor:pointer;}.billing_information_bloc .edit:hover{text-decoration: underline;}.billing_ranking_type{margin:10px 0 0 0;padding:5px 7px 5px 7px;border-radius:3px;color:#ffffff;font-size:13px;}.billing_ranking_type .label{}.billing_ranking_type.type_automatic{border:2px solid #38a715;color:#38a715;margin-bottom: 5px;}.billing_ranking_type.type_automatic.no_card_active,.billing_ranking_type.type_automatic.type_automatic_error{background:#ea5457;border:2px solid #ea5457;color:#ffffff;}.billing_ranking_type.type_manual{border:2px solid #e47318;color:#e47318;margin-bottom: 5px;}#offer_bloc{position: fixed;top:0;bottom:0;left:250px;background:#F9FAFC;background:#ffffff;padding:0 15px 8px 15px;line-height: 20px;border-right:1px solid #DDE5F4;z-index:999999;}#offer_bloc_background{position: fixed;top:0;bottom:0;right:0;left:250px;background: rgba(0, 0, 0, 0.5);z-index:999998;}.html_50_100_label{max-width: 310px;font-weight: normal;border: 1px solid #E7ECF7;border-radius: 5px;margin: 10px 0 0 0;background:#ffffff;padding:10px;display:none;}.menu_ressources_details{color:#069AFE;font-size: 13px;font-weight: bold;text-align: right;margin:5px 0 0 0;cursor: pointer;}.menu_ressources_activate_direct_debit{text-align:right;color:#069AFE;font-size: 13px;cursor: pointer;margin-top:3px;}.html_50_100_total{font-weight: bold;border-top:1px solid #E7ECF7;margin-top:10px;padding-top:10px;}.offer_bloc{position: relative;border: 1px dotted #DDE5F4;margin: 0;padding: 10px;background:#ffffff;line-height: 20px;}.offer_bloc_title{font-size:20px;font-weight: 700;margin:50px 0 25px 0;display:block;}#offer_bloc .submit_button{margin-top:10px;color:#ffffff;background:#FFAA45;}.billing_ranking_type{cursor: pointer;}.bloc{position: relative;margin:0;background:#ffffff;box-shadow: 0px 0px 5px 0px #e1e1e1;box-shadow:none;border-radius: 10px;}.bloc_in{border:1px solid #e6e6e6;border-radius:4px;margin-top:30px;overflow:hidden;}.bloc_img img{width:1198px;}.bloc_header{position: relative;margin:0 20px 5px 0;}.bloc_header h2{margin:0;}.bloc_header_right{margin:3px 0 10px 0;}.bloc_header_right li{display:inline-block;margin:0 5px 0 0;padding-right: 5px;line-height: 12px;border-right: 1px solid #373741;font-size:11px;}.bloc_header_right li:last-child{border-right:0;}.bloc_header_right_items{position: absolute;bottom:0;right:-30px;}.bloc_worker{min-height:500px;}.bloc_worker[v-load="true"]{min-height: initial;}[v-bloc-html]{opacity: 0.5;}[v-bloc-html="true"]{opacity: 1;}[v-load="bloc_load"]{opacity:1;}[v-load="true"]{opacity:1;}.bloc_border_rbl{border:1px solid #DDE5F4;border-top:0;}.bloc_border_trl{border:1px solid #DDE5F4;border-bottom:0;}.bloc_border_rl{border-left:1px solid #DDE5F4;border-right:1px solid #DDE5F4;}.entity_bloc_table{min-height: 500px;}.bloc_empty_data,.bloc_no_entities{border:1px solid #DDE5F4;padding:20px;margin:20px 0 50px 0;}.bloc_no_queries{border:1px solid #DDE5F4;border-bottom:0;padding:20px;margin:20px 0 0 0;}.bloc_empty_data .description{margin:0 0 20px 0;}.bloc_no_entities .description{margin:0;}.bloc_empty_data .button4{display:inline-block;}.bloc_informations{position: absolute;top:20px;left:10px;background: #FFFFFF;border: 1px solid #DDE5F4;padding:10px;z-index:100;}.bloc_informations_main{position: relative;}.bloc_informations .menu_action_hover{border: 1px solid #DDE5F4;padding: 7px 7px 3px 7px;font-size: 12px;margin: 0 0 5px 0;border-radius: 5px;}.bloc_informations .menu_action_show.icon{top:5px;}.button3{border:2px solid #fe0b09;color:#fe0b09;display:inline-block;font-weight: bold;padding:5px 10px 5px 10px;border-radius: 24px;font-size:13px;}.button3 svg{width:12px;height:12px;fill:#fe0b09;display: inline-block;vertical-align: top;margin:2px 0 0 5px;}.button3 .button_label{display: inline-block;vertical-align: top;}.button4,.button5,.button6{background: #fe0b09;color: #ffffff;font-family: Roboto;padding: 10px;border-radius: 3px;border: 0;cursor: pointer;font-size:13px;line-height: initial;}.button5{background: #e6e6e6;color:#404040;}.button6{background: #404040;color:#f5f5f5;}.graph_top{margin:0;padding:17px 0 7px 10px;}.chart[v-chart-type="graph_top"]{margin-top:40px;}.graph_top .legend li{display:inline-block;vertical-align: top;margin:0 5px 5px 0;}.graph_top .chart_cell{width:1190px;border:0;margin:0;padding-left:0;padding-top:0;overflow: initial;}.graph_top .chart_statistics,.graph_top .area{display:inline-block;vertical-align: top;}.area{position:relative;overflow:hidden;}.graph_top .chart_statistics{margin:0 0 50px 0;}.graph_top .chart_statistics tr{vertical-align: top;margin:0;display:inline-block;}.graph_top .chart_statistics thead th{font-size:16px;font-weight:bold;padding:0 20px 5px 0;}.graph_top .chart_statistics td{padding-right:20px;}.graph_top .td_target{width:90px;}.graph_top .value_evolution{margin:5px 0 0 0;}.graph_top .value_evolution .value,.graph_top .value_evolution .evolution{display: inline-block;vertical-align: top;}.graph_top .value_evolution .evolution{font-size:15px;margin:0 0 0 10px;}.graph_top .label span {display: inline-block;vertical-align: top;margin: 0;}.graph_top .chart_statistics .value{margin-left:15px;}.graph_top .chart_value,.graph_top .evolution{display:inline-block;vertical-align: top;font-size:13px;}.graph_top .evolution{margin-left:10px;}.graph_top .chart_statistics td .label{margin-top:20px;}.chart_top_statistics{font-size:13px;}.chart_top_statistics th{font-weight:bold;}.chart_top_statistics{margin:0 0 70px 0;}.graph_top .chart_top_statistics th{text-align:left;}.graph_top .chart_top_statistics td{width:170px;background:#f9fafc;border-top:5px solid #ffffff;padding:5px 0 5px 0;}.graph_top .chart_top_statistics td .td_name{width:125px;overflow:hidden;white-space: nowrap;}.graph_top .chart_top_statistics .value{margin-left:15px;}.graph_top .chart_top_statistics td:first-child{width:160px;padding-left:10px;}.graph_top .chart_top_statistics .chart_value,.graph_top .chart_top_statistics .evolution{font-weight:normal;}.graph_top .chart_top_statistics td .label{margin-top:20px;}.graph_top .chart_top_statistics td:first-child{font-weight:bold;}.legend_entity{display:inline-block;vertical-align: top;font-size:0;line-height: 18px;margin:0 20px 10px 0;}.legend_entity_color{display:inline-block;vertical-align: middle;border-radius: 10px;margin:0 5px 0 0;}.legend_entity_name{display:inline-block;vertical-align: middle;font-size:13px;}.chart{display:inline-block;vertical-align: top;min-width:50px;}.chart[v-chart-show="true"]{border:1px solid green;background:#000000;}.chart_cell{display:inline-block;width:190px;overflow:hidden;vertical-align:top;padding:10px 5px 5px 5px;border-left:1px dotted #DDE5F4;border-left:1px solid #DDE5F4;}.chart_cell[v-popup-open]:hover,.chart_cell span[v-popup-open]:hover{text-decoration: underline;}.chart_cell [v-menu-action] span[v-popup-open]:hover{text-decoration: none;}.chart_cell_center{text-align: center;height:85px;}.chart_cell_center .icon_add_stat{margin-top:20px;}.chart_load_icon{height:94px;}.line.header .chart_cell{min-height: 38px;padding-top:10px;background:#F9FAFC;border-bottom:1px solid #DDE5F4;}.chart_value{font-weight: bold;}.evolution{font-weight: bold;}.chart_cell_graph_top{min-height: 310px;}#chart_value{position: absolute;background:#ffffff;white-space: nowrap;z-index:1000003;border-radius:5px;box-shadow: 0px 0px 10px #b4b4b4;display:none;}#chart_value .column,#chart_value .column_in{display:inline-block;vertical-align: top;}#chart_value .target_li_legend{margin-top:1px;}#chart_value .cell{border-bottom:1px solid #dcdcdc;padding:5px 10px 5px 10px;max-width: 400px;overflow:hidden;}#chart_value .value{display:inline-block;min-width: 80px;vertical-align: top;padding-right:20px;}#chart_value .value.value_in{min-width: 100px;padding-right:20px;}#chart_value .value_large{min-width: 130px;}#chart_value .value.value_in.period1{min-width: 80px;}#chart_value .value.value_in.period2{min-width: 100px;}#chart_value .periods{font-size:11px;}#chart_cursor{position: absolute;top:0;left:0;z-index:100002;cursor: pointer;display:none;}#chart_change_date{position: absolute;top:0;left:500px;background:rgba(0, 0, 0, 0.15);z-index:100001;}#chart_cursor_html{position: absolute;top:0;left:0;z-index:100000;cursor: pointer;display:none;}#chart_cursor_html a{position: absolute;top:0;left:0;right:0;bottom:0;}#chart_value svg{width:12px;height:12px;margin:-3px 4px 0 0 ;display: inline-block;vertical-align: middle;}#chart_cursor .cursor_in{position: absolute;border-radius:20px;width:8px;height:8px;}#chart_cursor[v-chart-class="graph_top"] .cursor_in{width:12px;height:12px;}#chart_cursor[v-chart-class="small"] .cursor_in{width:8px;height:8px;}[v-chart-type="small"] .table .chart{width:auto;}[v-chart-type="small"] .chart_statistics td{width:80px;}.table .chart[v-chart-type="small"]{width:auto;}.table .chart[v-chart-type="small"] .chart_statistics{width:100%;}.chart_cell_count1 [v-chart-type="small"] .chart_statistics td,.chart_cell_count1.table_header_stat{width:100%;}.chart_cell_count2 [v-chart-type="small"] .chart_statistics td,.chart_cell_count2.table_header_stat{width:50%;}.chart_cell_count3 [v-chart-type="small"] .chart_statistics td,.chart_cell_count3.table_header_stat{width:33%;}.chart_cell_count4 [v-chart-type="small"] .chart_statistics td,.chart_cell_count4.table_header_stat{width:25%;}.chart_cell_count5 [v-chart-type="small"] .chart_statistics td,.chart_cell_count5.table_header_stat{width:20%;}.chart_statistics .chart_value, .chart_statistics .evolution{display:inline-block;vertical-align: top;}.chart_statistics .evolution{font-size:13px;padding:0 0 0 0;margin:0 0 0 5px;}.chart_pencil{position: relative;margin:0 0 0 auto;}.pencil_period{position: relative;height:16px;margin:-12px 0 10px 0;}.pencil{position: absolute;top:0;width:12px;height:12px;font-size: 0;cursor: pointer;transform: rotate(180deg);z-index: 1;}.pencil.pencil_small{width:10px;height:10px;}.pencil.global{transform: rotate(0deg);margin-top:-5px;}.pencil svg{width:12px;height:12px;}.pencil.pencil_small svg{width:10px;height:10px;}.li_color{width:10px;height:10px;border-radius: 20px;}.graph_top_close{width:16px;height:16px;position: absolute;top:10px;right:10px;cursor: pointer;}.graph_top:hover .graph_top_close,.graph_query_top:hover .graph_top_close{display:block;}.graph_top_close svg{fill:#444444;}.chart_date_step_cursor{position: absolute;top:-10px;left:50%;width:1px;height:10px;background:#ebebeb;}.chart_date_step{position: relative;display:inline-block;vertical-align: top;text-align:center;}.chart_dates_period{white-space: nowrap;}.graphic_small_notes{position: absolute;top:0;left:0;right:0;z-index:1000000;}.graphic_evolution_notes{position: relative;margin-top:-14px;margin-left:50px;width:930px;}.graphic_evolution_notes .pencil.global{margin-top:-1px;}.column{display:inline-block;vertical-align: top;font-size:13px;}.column_icons_left{position: absolute;top:0;left:5px;padding-top:11px;z-index:5;}.column.move:hover .column_icons_left{background:#fafafa;}.column_icons_right{position: absolute;top:9px;right:5px;padding-top:3px;z-index:1000000005;}.table .column_icons_right{top:7px;}[v-style="compact"] .table .column_icons_right{top:2px;}.ranking_type_tabs .column_icons_right{top:3px;right:30px;}.column_icons_in{height:0;overflow: hidden;}.column:hover .column_icons_in,.chart_cell:hover .column_icons_in,.column_right_bloc:hover .column_icons_in,.show_menu_action:hover .column_icons_in{display:block;height:25px;background:#fafafa;overflow: initial;}.column_icons_left svg,.column_icons_right svg{width:16px;height:16px;cursor:pointer;}.column_icons_in path{fill:#444444 ;}.column.move{position: relative;}.column.move.tmp .cell,.column.move.tmp .chart_cell{background:#E0E4EC;font-size:0;height:37px;}.column.move.active .column_move_bg{position: absolute;top:0;left:0;right:0;bottom:0;background:#E0E4EC;z-index:2;}#column_move{position: absolute;top:100px;left:100px;width:20px;height:10px;background:rgba(224, 228, 236, 0.75);display:none;z-index:102;}#column_move.active{display:block;}#column_move_in{padding:10px 0 10px 11px;font-weight: bold;}body .column_move,.table .header svg.column_move{width:16px;height:16px;margin-left:5px;cursor: move !important;}.column_icons_right .icon_desktop,.column_icons_right .icon_mobile{margin:0 0 0 7px;}.component_select{position: relative;}.component_select .value{cursor: pointer;}.component_select .list{position: absolute;background:#ffffff;box-shadow: 0px 3px 6px #00000029;border-radius: 8px;z-index:5;}.component_select .list[v-show="true"]{display:block;}.component_select .values{max-height:200px;overflow: auto;white-space: nowrap;margin:10px 0 0 0;padding-bottom:10px;}menu_projects_list .component_select .values{max-height: 500px;}.component_select .values li{padding:8px 15px 8px 15px;}.component_select .search input{border:0;font-family: 'Roboto';font-size: 14px;color: #373741;padding:10px 0 10px 10px;}.component_select .search{border-bottom:1px solid #dcdcdc;}.configuration_table_projects .cell_id{width:100px;}.configuration_table_projects .cell_name{width:591px;}.configuration_table_projects .cell_status{width:40px;}.configuration_table_projects .cell_top100{width:50px;}.configuration_table_projects .cell_favorites{width:70px;}.configuration_table_projects .cell_entities{width:70px;}.configuration_table_projects .cell_queries{width:100px;}.configuration_table_queries .cell_id{width:80px;}.configuration_table_queries .table .cell_keyword{width:246px;}.configuration_table_queries .cell_project_id{width:80px;}.configuration_table_queries .cell_project{width:150px;}.configuration_table_queries .cell_device{width:40px;}.configuration_table_queries .cell_service{width:110px;}.configuration_table_queries .cell_thematics{width:180px;}.configuration_table_queries .cell_ctr{width:100px;}.configuration_table_queries .cell_version{width:85px;}.configuration_table_thematics .cell_id{width:70px;}.configuration_table_thematics .table .cell_name{width:561px;}.configuration_table_thematics .table .cell_picture{width:70px;}.configuration_table_thematics .table .line_master .cell_picture{padding-top:5px;padding-left:5px;}.configuration_table_thematics .cell_picture .picture{width:30px;height:30px;background-size: cover;background-position: top center;}.configuration_table_thematics .cell_queries_count{width:100px;}.configuration_table_thematics .cell_project_id{width:100px;}.configuration_table_thematics .cell_project{width:150px;}.configuration_table_entities_types .cell_id{width:70px;}.configuration_table_entities_types .table .cell_name{width:991px;}.configuration_table_entities_types .cell_color{width:100px;}.configuration_table_entities .cell_id{width:70px;}.configuration_table_entities .table .cell_name{width:591px;}.configuration_table_entities .cell_project_id{width:100px;}.configuration_table_entities .cell_project{width:150px;}.configuration_table_entities .table .cell_entity_type{width:250px;}.configuration_table_audits .cell_id{width:70px;}.configuration_table_audits .table .cell_audit_name{width:286px;}.configuration_table_audits .cell_project_id{width:100px;}.configuration_table_audits .cell_project{width:150px;}.configuration_table_audits .cell_recurrence{width:105px;}.configuration_table_audits .table .cell_queries_count{width:100px;}.configuration_table_audits .table .cell_status{width:150px;}.configuration_table_audits .table .cell_exec_date{width:100px;}.configuration_table_audits .table .cell_exec_count{width:100px;}.configuration_table_audits_queries .cell_id{width:70px;}.configuration_table_audits_queries .table .cell_keyword{width:836px;}.configuration_table_audits_queries .cell_device{width:40px;}.configuration_table_audits_queries .cell_service{width:130px;}.configuration_table_audits_queries .cell_version{width:85px;}.configuration_table_usersgroups .cell_id{width:70px;}.configuration_table_usersgroups .cell_root{width:85px;}.configuration_table_usersgroups .table .cell_name{width:206px;}.configuration_table_usersgroups .table .cell_count_users{width:106px;}.configuration_table_usersgroups .table .cell_default_rights{width:200px;}.configuration_table_usersgroups .table .cell_default_rights{width:200px;}.configuration_table_usersgroups .table .cell_rights{width:500px;}.configuration_table_users .cell_id{width:70px;}.configuration_table_users .cell_email{width:391px;}.configuration_table_users .cell_usersgroups{width:200px;}.configuration_table_users .cell_inherited{width:400px;}.configuration_table_users .cell_projects{width:100px;}.configuration_table_exports .cell_id{width:70px;}.configuration_table_exports .cell_name{width:281px;}.configuration_table_exports .cell_entity_id{width:70px;}.configuration_table_exports .cell_entity{width:195px;}.configuration_table_exports .line .cell_type{width:70px;}.configuration_table_exports .cell_period{width:160px;}.configuration_table_exports .cell_files{width:100px;}.configuration_table_exports .cell_exec_date{width:105px;}.configuration_table_exports .cell_repeat{width:110px;}.configuration_table_support .cell_id{width:80px;}.configuration_table_support .table .cell_subject{width:369px;}.configuration_table_support .table .cell_note{width:200px;}.configuration_table_support .table .cell_type{width:150px;}.configuration_table_support .table .cell_update_date{width:200px;}.configuration_table_support .table .cell_status{width:200px;}.configuration_table_bills .cell_num{width:759px;}.configuration_table_bills .cell_price{width:100px;}.configuration_table_bills .cell_payment{width:200px;}.configuration_table_bills .cell_date{width:100px;}.configuration_table_bills .cell_pdf{width:40px;}#configuration_table .cell a:hover{color:#fe0b09;}.configuration_table_prepaid .cell_id{width:80px;}.configuration_table_prepaid .cell_info{width:779px;}.configuration_table_prepaid .cell_price{width:200px;}.configuration_table_prepaid .cell_date{width:100px;}.configuration_table_prepaid .cell_pdf{width:40px;}.configuration_table_alerts .cell_id{width:70px;}.configuration_table_alerts .table .cell_name{width:220px;}.configuration_table_alerts .cell_type{width:100px;}.configuration_table_alerts .cell_project_id{width:70px;}.configuration_table_alerts .cell_project{width:140px;}.configuration_table_alerts .cell_period{width:120px;}.configuration_table_alerts .cell_alert_entities{width:160px;}.configuration_table_alerts .cell_users{width:120px;}.configuration_table_alerts .cell_alert_thematics{width:160px;}.configuration_table_payment_methods .table .cell_id{display:none;}.configuration_table_payment_methods .cell_name{width:629px;}.configuration_table_payment_methods .cell_num{width:160px;}.configuration_table_payment_methods .cell_expiration{width:160px;}.configuration_table_payment_methods .table .cell_type{width:250px;}#configuration_table .table .cell{border-right:1px solid #DDE5F4;border-left:0;}#configuration_table .icon_desktop,#configuration_table .icon_mobile,#configuration_table .icon{width:16px;height:16px;}#configuration_table .cell_checkbox{width:40px;}#configuration_table input[type="checkbox"]{display:inline-block;outline: 0;}.open_first_page:hover{border-bottom:1px dotted #fe0b09;cursor: pointer;}.table_bloc .header svg{width:10px;margin:0 0 0 10px;}.table_bloc .column_sort{cursor: pointer;}.filters_table #filters_action{position: absolute;top:0;right:0;}#configuration_table{margin-top:10px;}#configuration_table .table_stats{overflow-x:hidden;}.table_information .cell_id:hover,.table_information .cell[v-popup-open]:hover,.table_information .cell[v-popup-open]:hover span{text-decoration: underline;cursor:pointer;}#configuration_table .usersgroups_rights li{display: inline-block;background:#e2e7f2;margin:0 5px 0 0;padding:2px 5px 2px 5px;border-radius: 3px;}#configuration_table .line_master .cell svg{width:16px;height:16px;}#configuration_table .audit_icon_reload{position: absolute;top:12px;right:10px;cursor: pointer;}#configuration_table .cell .load_icon{margin-left:-3px;}#button_action_top_left_checkbox_not_selected{position: absolute;top:15px;left:10px;font-size:13px;z-index:1;line-height: 16px;vertical-align: middle;display:none;}#button_action_top_left_checkbox_not_selected svg{width:16px;height:16px;vertical-align: middle;margin:0 5px 0 0;}#configuration_table .line_master .cell_alert_entities svg{width:10px;height:10px;}html,body{margin:0;padding:0;font-family:'Roboto';font-size:13px;color:#373741;background:#ffffff;}#mobile_notice{display:none;}*{box-sizing: border-box;}html{overflow-y:scroll;}[v-menu-key="help|byebyenum100"] .icon{background:url('https://app.monitorank.com/img/vs.svg');background-repeat: no-repeat;background-size: contain;background-position: center center;}[v-menu-key="help|byebyenum100"] .name{color:#fe0b09;}#beta{width:140px;margin:0 auto 0 auto;text-transform: uppercase;font-size:9px;color:#fe0b09;font-weight: bold;text-align:right;}#beta.beta_login{width:180px;margin-top:5px;}.disabled{display:none;}ul, li{margin:0;padding:0;}ul{list-style:none;}h2{font-size:20px;font-weight:700;padding:0;margin:0 0 0 20px;}.in{position: relative;width:1200px;margin:0 auto 0 auto;}body .menu_action_show,.table_bloc .header .menu_action_show{width:16px;}body .header .value_stat svg,body .header .value_stat_icon svg{width:12px;margin-left:0;}body .header .cell_top_device .icon_sort_asc,body .header .cell_top_device .icon_sort_desc,body .header .value_stat .icon_sort_asc,body .header .value_stat .icon_sort_desc,body .header .value_stat_icon .icon_sort_asc,body .header .value_stat_icon .icon_sort_desc{width:10px;height:10px;margin:3px 0 0 5px;}.sort_yoyo{position: absolute;top:12px;left:22px;z-index:1;}.cell_yoyo_device{overflow: auto;}@media screen and (max-width: 1780px){.in_app{margin-left:250px;}}@media screen and (max-width: 1510px){body #menu_projects{margin-left:5px;width:65px;padding-right:10px;}body #menu_projects_value{background:#ffffff;}body #menu_projects:hover{width:190px;}.in_app{margin-left:auto;}body #menu{width:68px;overflow:hidden;}body #menu:hover, body #menu.force{width:250px;overflow:hidden;overflow-y: auto;}body #menu_account_ressources{display: none;}#menu_projects_value svg{opacity:0;transition-delay: 125ms;transform: translateZ(0);transition-duration: 0.125s;}body #menu:hover #menu_projects_value svg{opacity:1;}body #menu:hover #menu_account_ressources, body #menu.force #menu_account_ressources{display:block;}}@media screen and (max-width: 1400px){.in{margin-left:90px;}}#main{padding-bottom: 50px;min-height: 100vh;}#main[template="login"]{width:800px;}.min #main{left:240px;}a{color:#373741;text-decoration: none;}.a{color:#069AFE;}#account_select{position: fixed;right:20px;bottom:20px;z-index:200;}.li_color{width:10px;height:10px;border-radius:10px;font-size:0;display: inline-block;margin: 0 5px 0 0;}svg{transform: translateZ(0);}svg path{transform: translateZ(0);shape-rendering:auto;}input[type="button"].button_a{background: #FFAA45;color: #ffffff;font-family: Roboto;padding: 10px;border-radius: 3px;border: 0;cursor: pointer;font-size: 13px;line-height: initial;}.in[template="login"]{margin:0 auto 0 auto;}.v-bloc-show{display:none;}.bloc_show{display:initial;}.no_result{font-size:13px;}[v-period-exec]{cursor: pointer;}#button_action_top{text-align: right;margin-top:15px;height:35px;}#button_action_top li{display:inline-block;margin:0 0 0 20px;}.site_name{background:#ffffff;font-size:13px;padding:5px;overflow:hidden;display:inline-block;}.entity_info{position: relative;display:inline-block;width:245px;font-size:0;overflow:hidden;}#demo_online{position: fixed;bottom:15px;right:15px;padding:10px;z-index:900;text-transform: uppercase;font-weight: bold;border: 1px solid #dcdcdc;background: #f5f5f6;border-radius: 5px;font-size: 0;cursor: pointer;vertical-align: middle;transition-timing-function: ease;transition-duration: 0.25s;display:none;}#demo_online span{display: inline-block;line-height: 12px;font-size:12px;vertical-align: top;margin:0 10px 0 5px;}#demo_online:hover{background:#282828;color:#ffffff;}#demo_online svg{width:12px;height:12px;}#demo_online:hover svg{fill:#ffffff;}.export_file_html{margin:20px 0 0 0;}.export_logo_img{max-width: 100px;max-height: 50px;display: inline-block;vertical-align: top;margin:10px;cursor:pointer;}.export_logo_img:hover{opacity:0.5;}.tab_select{font-size: 0;color:#170C25;border-bottom:1px solid #DDE5F4;}.tab_select li{position: relative;display: inline-block;vertical-align: top;cursor: pointer;font-size:14px;margin: 0;height: 28px;white-space: nowrap;padding: 2px 20px 7px 20px;}.tab_select li.active{border-bottom:2px solid #fe0b09;}#langs{position: absolute;right:20px;top:20px;font-size:0;}#langs select{padding: 5px 7px 5px 7px;border: 1px dotted #c0c0d2;background:#ffffff;border-radius: 3px;color: #373741;font-family: 'Roboto';font-size: 13px;outline: 0;margin:0 0 0 5px;}.langs_item{display:inline-block;vertical-align: middle;}#top_globe_lang_list{fill:#373741;margin-top:-1px;}.jscolor-picker-wrap{z-index:5000000 !important;}.table .header .icon_sort_hide{display:inline-block;vertical-align: top;}.table .header .icon_sort_hide svg{fill:#a0a0a0;}.table .header [v-url]{cursor: pointer;}.url_more_value{cursor: pointer;}#google_scroll{position: fixed;top:10vh;max-height:80vh;overflow:auto;left:50%;width:600px;z-index:10000000001;background:#ffffff;font-family: 'Roboto';font-size: 13px;line-height:18px;padding:55px 20px 20px 20px;margin:0 0 0 -300px;border-radius: 5px;color: #373741;box-sizing: border-box;font-weight:normal;}#google_scroll_background{position: fixed;top:0;left:0;bottom:0;right:0;z-index:10000000000;background:rgba(0, 0, 0, 0.5);}#video_vs, #video_help{width: 560px;height:315px;}#google_scroll_vs{position: fixed;top:10vh;max-height:80vh;overflow:auto;left:50%;width:600px;z-index:10000000001;background:#ffffff;font-family: 'Roboto';font-size: 13px;line-height:18px;padding:55px 20px 20px 20px;margin:0 0 0 -300px;border-radius: 5px;color: #373741;box-sizing: border-box;font-weight:normal;}#google_scroll_vs_background{position: fixed;top:0;left:0;bottom:0;right:0;z-index:10000000000;background:rgba(0, 0, 0, 0.5);}.google_scroll_title{font-size: 20px;font-weight: 700;margin-bottom:30px;margin-top:30px;}#google_scroll .submit_button,#google_scroll_vs .submit_button{background: #FFAA45;color: #ffffff;margin-top:20px;display:block;font-weight: normal;text-align:center;padding: 10px;text-transform: initial;}#google_scroll_vs .submit_button{background:#fe0b09;}#google_scroll .popup_close{left:initial;right:20px;}#google_scroll .description{line-height: 18px;background: #f4f5f7;padding: 15px;border-radius: 5px;margin: 20px 0 20px 0;}#retard{background:#fe0b09;color:#ffffff;padding:10px;position: fixed;left:10px;bottom:10px;width: 230px;z-index: 10000;line-height:15px;font-size: 12px;}#filters_bloc_ai_overview{}#filters_bloc_ai_overview .filter_label_main{border-bottom:1px dotted #377cf3;color:#377cf3;}#delete_notice_background{position: fixed;top:0;left:0;right:0;bottom:0;background:rgba(255, 255, 255, 0.8);z-index:100000;display:none;}#delete_notice{position: fixed;top:100px;left:50%;z-index:100001;display:none;}#delete_notice_in{margin: 0 0 0 -200px;width: 400px;background:#FFFFFF;box-shadow:1px 1px 50px 0px #707070;}#delete_notice_title,#delete_notice_alert,#delete_notice_bottom{padding:12px 15px 12px 15px;}#delete_notice_alert{background:#fa1a39;color:#ffffff;font-weight: bold;margin:5px 15px 10px 15px;border-radius:5px;padding:8px 10px 8px 10px;}#delete_notice_bottom input{margin:0 15px 0 0;}.popup_description.warning{background:#fa1a39;color:#ffffff;font-weight: bold;}.evolution_table{margin:50px 20px 20px 20px;}.evolution_line{border-bottom: 1px solid #DDE5F4;border-right: 1px solid #DDE5F4;}.evolution_cell{display:inline-block;vertical-align: top;min-height: 39px;overflow:hidden;padding: 12px 0px 0 10px;font-size: 13px;border-left: 1px solid #DDE5F4;}.evolution_cell:nth-child(1){width:780px;font-size:0;}.evolution_header .evolution_cell:nth-child(1){font-size:13px;}.evolution_ranking {display: inline-block;width:40px;font-size:0;vertical-align: top;}.evolution_ranking_evolution{display: inline-block;width:40px;}.evolution_header .evolution_cell:nth-child(2),.evolution_header .evolution_cell:nth-child(3){width:94px;}.evolution_header{border-top: 1px solid #DDE5F4;background:#fafafa;font-weight: bold;}.evolution_header svg{width:14px;height: 16px;display: inline-block;vertical-align: top;fill: #444444;}.evolution_icon{width:13px;height:13px;border-radius: 10px;display:inline-block;vertical-align: top;margin:0 10px 0 0;}.evolution_url,.evolution_rank{display:inline-block;vertical-align: top;font-size: 13px;}#filters_in{border:1px solid #DDE5F4;border-radius:5px;background:#F9FAFC;}#filters_auto{width:1150px;display:inline-block;}#filters_action{width:35px;display:inline-block;text-align:right;margin:0 5px 0 0;}.filters_save #filters_auto{width:1010px;}.filters_save #filters_action{width:175px;}.filters_action_item li{display: inline-block;margin:0 0 0 5px;}#filters_list_label{display:inline-block;border-left:1px solid #DDE5F4;padding:9px 0 10px 15px;}#filters_action .menu_action li{display:block;margin:0;}#filters_action svg{width:20px;height:20px;cursor: pointer;fill:#404040;}#filters .label{position: relative;padding:10px 10px 10px 10px;margin:0 15px 0 0;border-radius:10px;display:inline-block;vertical-align: top;color:#373741;}#filters .label path{fill:#000000;}#filters .filter{position: absolute;top:0;left:4px;background:#FFFFFF;border: 1px solid #DDE5F4;border-top:0;z-index:100006;}#filters .filter .scroll{max-height:670px;overflow:auto;}@media screen and (max-height: 900px){#filters .filter .scroll {max-height: calc(100vh - 250px);}}#filters .filter li{display:block;line-height:37px;padding:0;white-space: nowrap;cursor:pointer;}#filters .filter li span{color:#373741;}#filters .filter li .checkox_multiple{display: inline-block;vertical-align: top;width: 16px;height: 16px;border: 1px solid #DDE5F4;border-radius: 5px;margin: 0 5px 0 0;display: inline-block;}#filters .filter li .checkox_multiple.checked{background:#DDE5F4;}.list_submenu .filter_comparison.multiple .selected{background:#ffffff;}.list_submenu#filters  .filter_comparison.multiple .selected span{color:#fe0b09;}#filters .filter .li{width:10px;height:10px;border-radius:10px;display:inline-block;vertical-align:middle;margin:0 10px 0 0;}#filters .filter li[selected="selected"] span{}#filters_right{position: absolute;top:0;right:0;}#filters_right .item{display:inline-block;vertical-align: top;}#filters ul{vertical-align: top;}#filters .field{padding:7px;font-family: 'Roboto';font-size: 13px;}.list_submenu .filter_comparison .selected{background:#dde7f1;}.list_submenu .label .filter_comparison{margin:0 0 10px 0;font-size:13px;display:block;}.list_submenu .label .filter_comparison li{line-height: initial;padding:7px;white-space: nowrap;}.list_submenu .label .filter_comparison li:nth-child(1){}.list_submenu .label .filter_comparison.active_sort li:nth-child(1){}.list_submenu .label .filter_comparison svg{position:relative;top:0px;right:0;margin:0 5px 0 0;height:10px;}.list_submenu .label .filter_comparison svg path{fill:#303030;}.list_submenu .label input[type="text"]{border-radius:5px;border:1px solid #DDE5F4;margin:0 10px 10px 10px;}#filters .label .filter_comparison li{line-height: initial;border:0;}#filters .label .filter_comparison[v-type="thematics"] li{border-top:0;}#filters .label .filter_comparison li [v-sort-li-bloc]{padding:8px 15px 8px 10px;}#filters .filter_comparison{display:block;}.label_filters_label{position:relative;display: inline-block;}#filters .label svg{width:10px;height:10px;transform: rotate(0deg);}#filters .label_in svg{display:inline-block;vertical-align: top;width:10px;height:10px;margin:3px 0 0 0;transform: rotate(0deg);}#filters .two_field input[type="text"]{width:70px;}#filters .one_field,#filters .two_field{white-space: nowrap;}#filters .label_name{padding:10px 0  10px 10px;font-weight: bold;}.filter input[type="submit"],.filter input[type="reset"],.group_by_sort input[type="submit"]{width:auto;border-radius:5px;font-size:12px;padding:7px;border:0;margin:0 0 0 5px;cursor:pointer;font-weight: 400;}.filter input[type="submit"],.group_by_sort input[type="submit"]{background:#fe0b09;color:#ffffff;}#filters input[type="reset"]{background:#ffffff;}#filters .bottom{text-align:right;padding:0 0 10px 0;white-space: nowrap;}#filters .filter_icon,#filters .label_in .filter_icon{margin-left:7px;}.list_submenu .label .filter_fields input[type="text"] {margin:5px 0 0 0;}.filter_fields{display:none;}.filter_fields.filter_fields_show{display:block;}.selected .filter_fields{display:block;}.filters_action_item{display:inline-block;vertical-align: top;white-space: nowrap;margin:7px 5px 0 0;}#filters_list_open{display:none;}#filters.show #filters_list_open{display:block;}#filters_list_open_label{font-weight: bold;margin:10px 0 5px 10px;}#filters_list{font-size:0;}#filters_list li.menu_action_hover{display:inline-block;vertical-align: top;border:1px solid #DDE5F4;border-radius:5px;font-size:13px;margin:0 0 10px 10px;}#filters_list .filters_list_item{width:137px;font-size:13px;cursor:pointer;padding:10px;}#filters_list .menu_action_hover.selected{background:#ffffff;}#filters_list .menu_action_show.icon{top:5px;right:5px;}#filters_list .no_result{margin:5px 0 10px 10px;}#filters_list .infos{line-height: 18px;font-size:11px;}#filters_list .infos svg{width:10px;height:10px;}.filters_list_item .name{margin:0 0 10px 0;}#filters_list_open_button{cursor: pointer;white-space: nowrap;font-weight: bold;text-transform: uppercase;}#filters_list_open_button .button_label{display:inline-block;vertical-align: middle;}#filters_list_open_button svg{width:10px;height:10px;display:inline-block;vertical-align: middle;margin:0 0 0 5px;}.filters_table #filters_in{min-height: 35px;}#filters_auto .value_user{color:#fe0b09;}#filters{position: relative;left:inherit;top:initial;margin-left:initial;}#filters.fixed{position:fixed;top:0;left:0;right:0;z-index:10000;}#filters.fixed #filters_in{margin:0 auto 0 auto;}@media screen and (max-width: 1400px){#filters.fixed{left:0px;}#filters.fixed #filters_in{margin-left:90px;}}@media screen and (max-width: 1780px){#filters.fixed{left:251px;}#filters.fixed #filters_in{margin-left:auto;}}@media screen and (max-width: 1510px) {#filters.fixed{left:0px;}#filters.fixed #filters_in{margin-left:90px;}}[m-form-resource] [field]{position: relative;border:1px solid #E7ECF7;margin:0 0 20px 0;padding:5px 10px 5px 10px;background:#ffffff;transition: all 0.25s;border-radius:5px;}[m-form-resource] [field].hide{display:none;}[m-form-resource] .label{font-size:12px;color:#606060;padding:5px 0 2px 0;cursor:default;}[m-form-resource] .label .icon_information{position: absolute;top:5px;right:5px;}[m-form-resource] .mandatory{display:inline-block;vertical-align: top;width:8px;height:8px;background: url('../img/mandatory.svg?v=1');background-size:100% 100%;margin:2px 0 0 5px;}[m-form-resource] .mandatory path{fill:#e84c45;}[m-form-result="error"],.form_notice_field{background:#fa1a39;border-radius:5px;padding:10px;margin:0 0 20px 0;color:#ffffff;}.form_notice_field{margin:10px 0 0 0;}[m-form-result="error"]{display:none;}[m-form-resource] .field_error{border:1px solid #fa1a39;}[m-form-resource] .field_error .label_field{color:#fa1a39;}[m-form-resource] input[type="text"],[m-form-resource] input[type="password"],[m-form-resource] select,[m-form-resource] textarea,form input[type="submit"]{width:100%;margin:0;font-size:15px;outline:0;border:0;padding:5px 0 5px 0;color:#373741;font-family:'Roboto';resize: none;}[m-form-resource] textarea{height:100px;}[m-form-resource] select {}[m-form-resource] [field="stay_logged"]{border:0;padding-left:0;}select{font-family: 'Roboto';font-size: 14px;outline: 0;}select option{padding:20px;}select[multiple]{height: 200px;}input:-webkit-autofill,input:-webkit-autofill::first-line{-webkit-box-shadow: 0 0 0px 1000px #ffffff inset;-webkit-text-fill-color: #373741 !important;}.submit_button{cursor: pointer;margin:0 auto 0 auto;width:100%;background:#e6e6e6;color:#404040;font-size:13px;cursor: pointer;border:2px solid #373741;font-weight:400;outline:0;font-family:'Roboto';text-align:center;padding: 10px;border-radius: 3px;border: 0;cursor: pointer;margin:0 auto 0 auto;}form input[type="submit"],form input[type="button"].submit{background: #FFAA45;color: #ffffff;font-family: Roboto;padding: 10px;border-radius: 3px;border: 0;cursor: pointer;margin:0 auto 0 auto;}form input[type="button"].submit{width:auto;}form input[type="button"], .button{width:100%;padding:15px;border-radius:50px;background:#ffffff;color:#747179;font-size:14px;cursor: pointer;border:2px solid #373741;font-weight:400;outline:0;font-family:'Roboto';}input[type="button"]{outline: 0;}form.show{display:block;}button{}#main select,.popup_in select{padding:5px 7px 5px 7px;border:1px dotted #c0c0d2;border-radius:3px;background:#ffffff;}input[type="text"]{outline:0;}.form_input_classic{margin:0 0 20px 0;}.form_input_checkbox{margin:0 0 10px 0;}.form_input_classic input[type="checkbox"]{display:inline-block;vertical-align:top;}.form_label_classic{display:inline-block;vertical-align:top;}form .column_left_right{font-size:0;margin:10px 0 0 0;}form .column_left,form .column_right{display:inline-block;vertical-align: top;width:50%;font-size:12px;}form .column_right{text-align:right;}.button_action{background:#FFAA45;color:#ffffff;font-family: Roboto;padding:10px;border-radius:3px;border:0;cursor: pointer;}[v-popup] a.button_action{color: #ffffff;}.button_action2{background:#dde7f1;color:#373741;}.button_action2 svg path,.group_by_sort .button_action.button_action2 svg path{fill:#404040;}.select_field{border:1px solid #E7ECF7;border-radius: 5px;margin:10px 0 0 0;overflow: hidden;display: inline-block;}.popup_in .select_field{margin-bottom:6px;display: inline-block;}.select_field .select_option{padding:10px;border-top:1px solid #E7ECF7;cursor: pointer;}.select_field .select_option svg{width:16px;height:16px;display:inline-block;vertical-align: top;}.select_field .select_option[selected="selected"]{background:#e2e7f2;}.select_field .select_option:first-child{border-top:0;}.form_input_content{position: relative;margin:0 0 20px 0;line-height: 20px;}.form_input_title{margin:20px 0 10px 0;font-weight: bold;}form .submit{position: relative;text-align: center;}form input[type="submit"].load{opacity:0.75;}.submit .load_icon_white{position: absolute;top:3px;right:3px;}[type="file"]{display:none;}.preview_upload_file .upload{position: absolute;top:0;left:0;right:0;bottom:0;cursor:pointer;}.preview_no_result{position: relative;width:40px;height:40px;border:1px dotted #DDE5F4;background:#fafafa;}.preview_upload_file .upload:hover{background:rgba(0, 0, 0, 0.75);}.preview_upload_file .upload svg,.preview_no_result svg{position: absolute;top:50%;left:50%;width:18px;height:18px;margin:-9px 0 0 -9px;display:none;}.preview_no_result svg{display:block;}.preview_upload_file .upload:hover svg{display:block;}.preview_upload_file .upload path{fill:#FFFFFF;}.preview_no_result svg path{fill:#000000;}.preview_upload_file_img{display:inline-block;vertical-align: top;min-width: 40px;background:url('../img/error.png');background-size:contain;min-height: 40px;font-size:0;}#profile_edit .preview_upload_file_img{background:none;}.preview_upload_file img{max-width:300px;max-height:100px;border: 1px solid #E7ECF7;cursor:pointer;}.preview_upload_file{position: relative;display: inline-block;}.preview_upload_file:hover{opacity:0.75;}.preview_upload_file .load_icon2{position: absolute;top:50%;left:50%;margin:-18px 0 0 -18px;display:none;}.preview_upload_file[v-upload-exec="false"] .load_icon2{display:block;}.upload_file_no_picture_success{width:40px;height:40px;line-height: 40px;text-align: center;}.upload_file_no_picture_success svg{vertical-align: middle;}.upload_file_no_picture_success path{fill:#38a715;}label.checkbox{display:inline-block;border:2px solid #606060;text-align: center;font-size:0;}label.checkbox svg{width:8px;height:8px;margin:2px 0 0 0;display:none;}input[type="checkbox"].checkbox_style{}input[type="checkbox"].checkbox_style:checked + label svg{display:inline-block;fill:#303030;}.form_title{margin:20px 0 10px 0;}.form_description{line-height: 18px;padding: 15px;border-radius: 5px;background:#dce3ec;margin:0 0 20px 0;}form.form_disabled input[type="submit"]{background:#dde7f1;}.form_popup .field{position: relative;border: 1px solid #E7ECF7;margin: 0 0 20px 0;padding: 5px 10px 5px 10px;background: #ffffff;transition: all 0.25s;border-radius: 5px;}.form_popup .label{font-size: 12px;color: #606060;padding: 5px 0 2px 0;cursor: default;}.form_popup input[type="text"]{width: 100%;margin: 0;font-size: 15px;outline: 0;border: 0;padding: 5px 0 5px 0;color: #373741;font-family: 'Roboto';resize: none;}.field_hide{display:none;}#top_label{display:inline-block;vertical-align:top;font-weight:700;font-size:20px;margin:5px 0 0 20px;}h1{padding: 20px 0 0 0;margin:0;font-size: 24px;font-weight: 500;color:#170C25;}h1 .h1_in span{position:relative;}h1 .h1_in{margin:0 0 0 5px;color:rgb(241, 111, 119);}h1 li, h1 div{display: inline-block;}.h1_in{position: relative;display:inline-block;vertical-align:top;}#projects_entities_types{position: absolute;left:0px;width:400px;top:30px;background:#ffffff;box-shadow: 0px 0px 30px 0px #c8c8c8;padding:20px 0 20px 0;border-radius:5px;color:#373741;font-size:14px;z-index:10;}#projects_entities_types [v-table]{display:inline-block;vertical-align: top;}#projects_entities_types ul[v-table]{display:block;}.icon_sort_asc{transform:rotate(270deg);}.icon_sort_desc{transform:rotate(90deg);}.url_less svg, .url_more svg{width:7px;height:7px;margin:1px;}.url_less svg path, .url_more svg path{fill: #373741;}.url_less, .url_more{border:1px solid #373741;display:inline-block;font-size:0;background:#ffffff;cursor:pointer;margin:0 0 0 5px;border-radius:13px;}.url_no_more{width:11px;height:11px;display:inline-block;margin:0 5px 0 0;}.icon_service,.icon_flag{height:12px;opacity:0.6;}.icon_localisation{width:10px;height:12px;opacity:0.8;}.icon_localisation path{fill:#de4e4a;}.line_master .cell_yoyo_device svg{fill:#edb319;width:20px;}.icon_target{width:20px;height:20px;}.icon_target path{fill:#444444;}.icon_target_best{width:20px;height:20px;fill:#38a715;}.table .header svg.icon_target_best{fill:#38a715;}.icon_target_medium{width:20px;height:20px;fill:#fc9504;}.table .header svg.icon_target_medium{fill:#fc9504;}.icon_target_null{width:20px;height:20px;fill:#ea5457;}.table .header svg.icon_target_null{fill:#ea5457;}.icon_target_best_li{width:14px;height:14px;background:#38a715;border-radius:100px;}.icon_target_medium_li{width:16px;height:16px;background:#fc9504;border-radius:100px;}.icon_target_null_li{width:16px;height:16px;background:#ea5457;border-radius:100px;}.status_active{fill:#38a715;}.status_pause{fill:#ea5457;}svg.status_active{width:16px;height:16px;}svg.status_pause{width:16px;height:16px;}.icon_device1,.icon_device2,.icon_device1true_active,.icon_device1false_active,.icon_device2true_active,.icon_device2false_active{width:16px;height:16px;background-size: contain;}.icon_device1,.icon_device1true_active,.icon_device1false_active{background-image:url('../img/desktop.svg');}.icon_device2,.icon_device2true_active,.icon_device2false_active{background-image:url('../img/mobile.svg');}.icon_device1false_active,.icon_device2false_active{opacity:0.3;}.icon_action{width:16px;height:16px;background-image:url('../img/action.svg');background-size:contain;opacity:0.6;}.icon_action:hover{opacity: 1;}.rank_type2,.rank_type3,.rank_type4,.rank_type5,.rank_type6,.rank_type7,.rank_type8,.rank_type9,.rank_type10,.rank_type11,.rank_type12,.rank_type13,.rank_type14,.rank_type15,.rank_type16,.rank_type17{width:16px;height:16px;margin:0 5px 0 0;background-size:contain;display:inline-block;vertical-align: top;opacity:0.75;}.rank_type2{background-image:url('../img/rank_types/2.svg');}.rank_type3{background-image:url('../img/rank_types/3.svg');}.rank_type4{background-image:url('../img/rank_types/4.svg');}.rank_type5{background-image:url('../img/rank_types/5.svg');}.rank_type6{background-image:url('../img/rank_types/6.svg');}.rank_type7{background-image:url('../img/rank_types/7.svg');}.rank_type8{background-image:url('../img/rank_types/8.svg');}.rank_type9{background-image:url('../img/rank_types/9.svg');}.rank_type10{background-image:url('../img/rank_types/10.svg');}.rank_type11{background-image:url('../img/rank_types/11.svg');}.rank_type12{background-image:url('../img/rank_types/12.svg');}.rank_type13{background-image:url('../img/rank_types/13.svg');}.rank_type14{background-image:url('../img/rank_types/14.svg?t=1');background-position: 0 -2px;background-repeat: no-repeat;}.rank_type15{background-image:url('../img/rank_types/15.svg');}.rank_type16{background-image:url('../img/rank_types/16.svg');}.rank_type17{background-image:url('../img/rank_types/17.svg');}.ai_overview{position: absolute;right:5px;top:10px;color:#ffffff;background:#377cf3;font-size: 11px;padding:3px 5px 3px 5px;border-radius: 3px;}.cell:hover .ai_overview{right: 85px;}.infinity{width:14px;height:14px;}.up .infinity{fill:#9bc181;display:inline-block;vertical-align: middle;margin:0 0 0 1px;}.up_in{display:inline-block;vertical-align: middle;}.load_icon{width:16px;height:16px;background:url('../img/load.svg?v=2');background-size: contain;}.load_icon2{width:36px;height:36px;background:url('../img/load.svg?v=2');background-size: contain;}.load_icon_white{width:32px;height:32px;background:url('../img/load_white.svg?v=2');background-size: contain;}.icon_information{width:18px;height:18px;}.icon_pause{width:24px;height:24px;transform: scale(0.5);}.icon_add_stat{width:24px;height:24px;cursor: pointer;}.icon_add_stat path{fill:#000000;}.svg_text{display:inline-block;vertical-align: top;width:10px;height:10px;font-size:11px;font-weight: bold;color:#000000;margin:0 5px 0 0;}#icon_last_is_support,.menu_icon_new{position: absolute;top:20px;right:10px;width:7px;height:7px;background:#fe0b09;border-radius:10px;}.star_note{fill:#f8cc02;}.icon_open_url svg,.icon_tag svg{width:16px;height:16px;fill:#444444;}.icon_close{width:16px;height:16px;fill:#444444;}.icon_favorites_active,.icon_favorites_inactive{fill:#edb319;}.project_favorite{width:16px;height:16px;margin:0 0 0 5px;}.icon_content{display:inline-block;vertical-align: top;margin:0 0 0 5px;}#configuration_table .line_master .cell .icon_payment_method_master,.icon_payment_method_master{width:16px;height:16px;fill:#edb319;margin:-1px 0 0 10px;display:inline-block;}.icon_paa{position: absolute;top:10px;right:4px;background:#fe0b09;font-size:10px;font-weight: bold;padding:2px 4px 2px 4px;border-radius: 5px;color:#ffffff;}.s7k{cursor: pointer;}.favicon{width: 16px;height: 16px;display: inline-block;margin: -2px 10px 0 0;vertical-align: middle;}.favicon_chart_event{overflow: hidden;width:14px;height: 14px;}.favicon_chart_event img{margin-top:-1px;}.icon_sitemap_graph_large svg{width:10px;height:10px;}.pencil_small_in_line.pencil.pencil_small svg{width:10px;height:10px;z-index:100;}.sitemap_url{position: absolute;top:0;left:0;z-index: 11190;}.list_select .label_name{color:#373741;font-weight: bold;font-size:13px;}.list_submenu .label .list_select_ul li{border-top: 1px solid #DDE5F4;padding:0;}.list_select_li [v-sort-li-bloc]{padding: 0 7px 0 7px;line-height: 30px;cursor: pointer;}.list_select_scroll{max-height: 400px;overflow:auto;border: 1px solid #DDE5F4;margin:10px;border-radius:5px;}.list_submenu.list_select .label .filter_comparison{border:0;margin:0;}#menu{position: fixed;top:0;left:0;bottom:0;width:250px;background:#FFFFFF;border-right:1px solid #DDE5F4;overflow:hidden;overflow-y: auto;transform: translateZ(0);transition-duration: 0.125s;z-index:2;}#menu_in{position: relative;z-index:2;}#menu_main{min-width:200px;vertical-align:top;font-size:0;white-space: nowrap;margin:0;border-bottom:1px solid #DDE5F4;z-index:3;}#menu_main ul{overflow: hidden;}.min #menu_main{width:60px;font-size:0;}#menu_sub{position: absolute;top:0;left:180px;bottom:0;width:180px;padding-top:60px;background:#ffffff;border-bottom:1px solid rgb(203, 203, 203);border-right:1px solid #e6e6e6;box-shadow: 0px 0px 5px 0px #e6e6e6;z-index:2;display:none;}.min #menu_sub{left:60px;}.min [v-component="menu_list"] #icon_min_max svg{transform: rotate(0deg);}.min [v-component="menu_list"] li{margin-left:0;}#menu_icon{margin:20px 0 0 0;text-align: center;}#logo{width:140px;}#menu_background{position: fixed;top:128px;left:20px;bottom:10px;width:34px;border-radius: 8px;z-index:1;}#menu_more{position: fixed;left:20px;bottom:10px;}#menu_projects_value svg,#menu_entities_value svg{position: absolute;top:15px;right:15px;width:10px;height:10px;}#menu_projects_value svg path,#menu_entities_value svg path{fill:#fe0b09;}#menu_projects{position: fixed;top:35px;left:0;width:190px;margin:25px 30px 10px 30px;z-index:5;}#menu_entities{margin:-5px 30px 20px 30px;padding-bottom:42px; }#menu_projects_list,#menu_entities_list{width:560px;overflow-x:hidden;}#menu_projects_list .values,#menu_entities_list .values{overflow-x:hidden;max-height:400px;}#menu_return_v4{position: absolute;bottom:20px;right:0;left:0;text-align: center;}.menu_new{text-transform: uppercase;font-size:9px;color:#fe0b09;font-weight: bold;padding:0 0 0 40px;}#menu_list_icon_mobile{display:none;}#menu_background_mobile{display:none;}.menu_action{position: fixed;background:#ffffff;box-shadow:0px 0px 10px 0px #c8c8c8;padding:5px;border-radius:3px;max-height: 600px;overflow:auto;z-index:10000;}body .menu_action li{padding:5px 20px 5px 10px;margin:0;line-height: 20px;font-size:13px;display:block;text-align:left;font-weight: normal;cursor:pointer;color:#373741;}body #module_statistics .menu_action li{padding:0;}body #module_statistics .menu_action svg{margin-left:5px;margin-top:5px;margin-right:0;}body #module_statistics .menu_action li span{padding:5px 20px 5px 10px;}.menu_action li:hover{background:#ebebeb;}.menu_action svg{width:16px;height:16px;margin:1px 5px 0 -5px;display:inline-block;vertical-align:top;}.menu_action svg path{fill:#404040;}.menu_action span{display:inline-block;vertical-align: middle;}.menu_action_show.icon{width:16px;overflow:hidden;padding:0;margin:0;font-size: 0;}.menu_action_show_main:hover .menu_action_show.icon{opacity:1;}.menu_action .menu_action_show.icon{top:5px;}.menu_action_show.active{opacity:1;}.menu_action_show.icon svg{width:16px;}.menu_action_show.icon svg path{fill:#808080;}.menu_action_show.icon:hover svg path{fill:#000000;}.menu_action .title{font-weight: bold;line-height: 20px;padding: 5px 10px 5px 10px;cursor: pointer;}.menu_action .label{display:inline-block;vertical-align:middle;}.menu_action .active{display:inline-block;vertical-align:middle;border:1px solid #b2bfd2;width:13px;height:13px;border-radius: 3px;margin:0 5px 0 0;}.menu_action .activetrue .active{background:#b2bfd2;}.menu_action_show.icon{position: absolute;top:10px;right:0;font-size:0;padding:0;margin:0;}#views_list .menu_action_show.icon{opacity:0;}#views_list .menu_action_show_main:hover .menu_action_show.icon{opacity:0.75;}.menu_action_hover{position: relative;}.menu_action_hover .icon {right: 0;}.menu_action_hover .icon_action{opacity: 0;}.menu_action_hover:hover .icon_action{opacity: 0.75;}.menu_action_show :hover.icon_action{opacity:1;}@media screen and (max-device-width: 11in){body #google_scroll,body #google_scroll_vs{width: 90vw;left:5vw;margin:0;}body #google_scroll iframe,body #google_scroll_vs #video_vs,body #google_scroll_vs #video_help{width: 80vw;height: 45vw;}::-webkit-scrollbar {height:0;}#mobile_notice{position: fixed;left:0;top:0;right:0;bottom:0;background:#ffffff;font-size:20px;line-height:28px;z-index:10000;}#mobile_notice_in{margin:100px auto 0 auto;width:80vw;}.bloc_mobile{display:block !important;}body #menu_ressources{padding-top:0;}body [v-component="menu_ressources"] #menu_account_ressources{padding-bottom:15px;}#mobile_notice_in a{display: block;background:#fe0b09;color: #ffffff;font-family: Roboto;padding: 5px 10px 5px 10px;border-radius: 3px;margin:100px 0 0 0;text-align: center;border: 0;cursor: pointer;font-size: 15px;outline: 0;}#mobile_notice_logout{text-align: center;font-size:15px;margin-top:10px;}body #main[template="login"]{width:90vw;margin:0 0 0 5vw;}body [v-component="login_form"] .bloc_login,body [v-component="signup_form"] .bloc_login{width:90vw;padding-left:0;padding-right: 0;}body [v-component="login_form"] .bloc_login_create,body [v-component="signup_form"] .bloc_login_create{width:90vw;}body [v-component="login_form"] #youtube_items img{width:25vw;height:auto;}body [v-component="login_form"] #youtube_items li{margin:0 2.5vw 0 2.5vw;}body [v-component="login_form"] .bloc_login,body [v-component="signup_form"] .bloc_login{margin-top:0;}body #logo_login{margin-top:30px;}body .in{margin:0;width:100vw;}body #menu_ressources,body #menu_entities,body #menu_sub,body #menu_more{display:none;}body #menu:hover{overflow: initial;overflow-y:auto;}body #is_mobile{display:block;width:100vw;}.bloc_border_trl{border-right:0;border-left:0;}body [v-component="views_list"] #views_list_top{width: 100vw;}[v-component="views_list"] #view_description{display:none;}.hide_mobile{display:none !important;}#button_action_top{margin-right:10px;}.bloc_header{margin:25px 10px 0 10px;}body [v-component="views_list"]{width:98vw;overflow:auto;margin:0 0 0 1vw;}body #views_list_top{display:none;}body #app{overflow: hidden;}body .page_change_bloc{text-align: left;}body .page_change_select{width:50vw;padding-left:10px;}body .page_change_value{width:50vw;text-align: right;padding-right:10px;}body .open_first_page{margin:0;}body .page_change_value .next,body .page_change_value .previous,body .open_first_page{width:auto;padding:10px;text-align: center;margin:0;}body .open_first_page{padding-left:0;padding-right:0;}body .page_change_value{margin-top:1px;}body .chart_cell a{display:block;}body .bloc_header_right_items{right:-10px;}body .bloc_table_sort{position: relative;bottom:initial;right: initial;}body .group_by_sort{padding-right:10px;}body .group_by_sort .item{margin-top:15px;}body .bloc_table_sort .group_by_sort{padding-right: 5px;}body .bloc_header_right_items{position: initial;text-align: right;margin-top:-18px;}body .bloc_header_right li{padding-right: 0;margin-right: 0;}body #menu{z-index:20;}body [template="daily_query"] .bloc_header{margin:25px 10px 40px 10px;}body [template="daily_query"] .button_serp{top:20px;}body [template="daily_keywords"] #button_action_top{height:0;}body [v-component="header_right"] #top_list_accounts{max-height: 200px;}body #serp_show_in{width:100vw;}body .serp_show_download{position: initial;text-align: right;}body #menu_projects_list .values, body #menu_entities_list .values{max-height: 50vh;}body [v-component="header_right"] #profile_edit .file_preview{width:50px;height:50px;}body .langs_item:nth-child(1){display:none;}body #langs{top:10px;right:10px;}body [v-component="views_list"] .main{border-bottom:0;}#views_list {border-bottom: 1px solid #DDE5F4;}body #menu_projects_value svg{top:14px;opacity: 1;}body .chart_dates_period.active{border-bottom:0;}body #header_right_install_app{display:none;}body #menu_main.active{padding-top:10px !important;}body #filters .filter .scroll{max-height: 60vh;}body .table_google_scroll{width:90vw;}body .table_google_scroll .cell{width:20vw;padding:1vw;}body #google_scroll_content{width:90vw;margin:0 auto 0 auto;}body .site_desc{width:auto;}.bg_top_content{width:90vw;margin:0 auto 0 auto;}#page_screenshots{margin-top:0;}body #google_scroll{width: 90vw;left:5vw;margin:0;}body #google_scroll iframe{width: 80vw;height: 45vw;}}#is_mobile{display:none;width:0;height:0;font-size:0;}@media screen and (max-device-width: 11in){body #calendar .month.month0,body #calendar .month.month1{display:none;}body #calendar{top:0px;bottom:0;position:fixed;padding:20px;}body #calendar_left{margin-left:1px;}body #calendar_in{text-align: center;box-shadow: 0px 0px 6px #00000029;padding-top:10px;}body #calendar_left{width:84vw;}body #calendar .month{display: block;width:84vw;margin:0 auto 0 auto;text-align:left;}body #calendar .months{position: relative;text-align: center;}body #calendar .day{width:12vw;}body #calendar .day,body #calendar .month_name,body #calendar .year{height:10vw;line-height: 10vw;padding:0;}body #calendar_right{text-align: left;}body #calendar .calendar_period_show{width:35vw;}body #calendar .month_name,body #calendar .year,body #calendar .month{font-size:13px;}body #calendar .change_month,body #calendar .change_year{top:0;width:9vw;height:9vw;line-height: 9vw;}body #calendar .change_year{top:-11vw;}body #calendar .previous svg,body #calendar .next svg{width:5vw;height:5vw;vertical-align: middle;}body #calendar .previous{left:0;}body #calendar .next{right:0;}body #calendar_right{margin-top:20px;}body #calendar_result{padding-right:5px;padding-left:5px;}body #calendar_result_period2{margin-top:2px;line-height: 16px;vertical-align: middle;font-size:11px;}body #calendar_result_period1{font-size:13px;}body #calendar_icon_compare{width:12px;height:12px;display:inline-block;vertical-align: middle;margin-top:-3px;}body #calendar_right{margin-right:10px;}body #calendar_bottom{padding:10px 0 10px 0;}}@media screen and (max-device-width: 11in){[v-chart-type="graph_top"]{width:100vw;}[v-chart-type="graph_top"] .yaxis{width:9vw !important;;}[v-chart-type="graph_top"] .areagraph_top{width:89vw !important;}.graph_top{padding:0 0 0 0;}.graph_top .chart_cell{width:100vw;padding-top:10px;}body .chart_dates{width:97vw !important;margin-right:0 !important;margin-left:0 !important;}body [v-chart-type="graph_top"] .chart_dates_init{padding-left:9vw;}body .legend_entity{margin-left:2vw;margin-right:0;width:30vw;white-space: nowrap;overflow:hidden;}body [template="daily_dashboard"] .graph_top{border-top:0;}body [template="daily_dashboard"] .in .chart_cell.chart_cell_graph_top{border-bottom: 0;}body .area svg{width:87vw;}body .axis_value{border-top:0;margin-left:10px;}body .axis_label{margin-left:10px;}}@media screen and (max-device-width: 11in){body #configuration_table .table_bloc{overflow:auto;width:100vw;}body #configuration_table .table_stats{overflow:initial;}body #configuration_table .table .cell{border-bottom:1px solid #DDE5F4;}body #configuration_table .header .cell{border-top:1px solid #DDE5F4;}body .table .line_master{border-bottom:0;}body #configuration_table .table{border-top:0;}body .configuration_table_projects .cell_name{width:220px;}body .configuration_table_thematics .table .cell_name{width:220px;}body .configuration_table_entities .table .cell_name{width:220px;}body .configuration_table_entities .table .cell_entity_type{width:150px;}body .configuration_table_entities_types .table .cell_name{width:220px;}body .configuration_table_audits .table .cell_audit_name{width:220px;}body .configuration_table_exports .cell_name{width:220px;}}@media screen and (max-device-width: 11in){[template="daily_dashboard"] .mobile_fixed_bloc .site_name{display:none;}[template="daily_dashboard"] .entity_info{width:85px;}[template="daily_dashboard"] .table_charts .header .file.file_label{width:80px;}}@media screen and (max-device-width: 11in){.table_bloc0,body [template="daily_query"] .table_bloc{position: relative;}.mobile_fixed_bloc{position: relative;width:100vw;overflow: auto;}.mobile_fixed_column{position: absolute;top:1px;left:0px;width:85px;font-size:0;background:#FFFFFF;z-index:1000010;}.mobile_fixed_column .column_icons_right,body [template="daily_dashboard"] .mobile_fixed_column .site_name{display:none;}[template="daily_dashboard"] .mobile_fixed_column .file{display:block;}.mobile_fixed_column_item{font-size:13px;white-space: nowrap;overflow:hidden;}.mobile_fixed_column_item .icon_open_url,.mobile_fixed_column_item .icon_tag{display: none;}.mobile_fixed_column_type_table{}.mobile_fixed_column_type_table.mobile_fixed_column{top:1px;left:0;width:40vw;}}@media screen and (max-device-width: 11in){.table_statistics{width: 100vw;overflow:auto;margin-bottom:20px;}.table_statistics .ranking_type_tabs{white-space: nowrap;}.group_by_sort .item[v-table="notes"]{display:none;}.tags_query{}}@media screen and (max-device-width: 11in){body [v-component="menu_list"] .icon, body #menu_list_icon_mobile svg{width:20vw;height:6vw;margin-bottom:3px;}body #menu{position:fixed;top:initial;bottom:0;left:0;right:0;width:initial;z-index:10000002;box-shadow:1px 1px 5px 0px #bebebe;}body #menu .name{display:none;}body #menu_main{min-width: initial;max-height: 75vh;padding-top:10px;padding-bottom:10px;border-top:1px solid #DDE5F4;border-bottom: 0;overflow:auto;}body #menu_main ul{display:flex;}body #menu_main.active ul{display:block;width:95vw;}body #menu_main.active .main{display:none !important;}body [v-component="menu_list"] .sub,body [v-component="menu_list"] .sub.selected{display:flex;padding:0;}body [v-component="menu_list"] .sub.disabled,body [v-component="menu_list"] .sub.selected.disabled{display:none;}body [v-component="menu_list"] .icon,body #menu_list_icon_mobile{width: 16.666vw;height:8vw;text-align: center;margin-bottom:3px;}body #menu_list_icon_mobile svg{fill:#404040;}body #menu_list_icon_mobile{width: 16.666vw;vertical-align: top;}body [v-component="menu_list"] svg,body #menu_list_icon_mobile svg{width:6vw;height:6vw;}body #menu{border-right:0;}body [v-component="menu_list"] .main{display:none;}#icon_last_is_support, .menu_icon_new{left:12vw;top:initial;bottom:3vw;}.active #icon_last_is_support{bottom:0;}body #menu_icon{display:none;}body #menu_entities{display:none;}body [v-component="menu_projects"] #menu_values_projects,body [v-component="menu_projects"] #menu_values_entities{width:46vw;}body #menu_values_projects li,body #menu_values_entities li{padding-right:0;padding-left:10px;}body #menu_projects{margin-left:0;}body #menu_projects_list,body #menu_entities_list{width:100vw;}body #menu_projects_list{}body #menu_projects_value{margin-left:10px;}body #menu_main ul{width:83.35vw;display:flex;vertical-align: top;white-space: normal;}body [v-component="menu_list"] .sub.force_mobile{display: block !important;}body #menu .force_mobile .name{display:inline-block;margin-left:0;}body [v-component="menu_list"].active .name{margin-bottom:3vw;}body #menu_background_mobile{background:rgba(0, 0, 0, 0.5);position: fixed;top:0;left:0;right:0;bottom:0;z-index:10001;}body #menu_list_icon_mobile{position: fixed;width:20vw;right:0px;bottom:0px;color:#170C25;z-index:10000003;}body #menu {transform: initial;transition-duration: initial;}body #menu_list_icon_mobile svg{margin-top:10px;}body #menu [v-component="menu_list"] .name,body #menu_list_icon_mobile .name{display:block;text-align:center;margin:0 auto 0 auto;font-size:9px;}body #menu_list_icon_mobile{bottom:10px;font-size:0;margin-bottom:0;height:initial;}body #menu_list_icon_mobile svg{width:6vw;margin-bottom: 3px;}body #menu [v-component="menu_list"].active .name{text-transform: initial;font-size:13px;text-align:left;display: inline-block;margin-left: 0;vertical-align: middle;}body #menu [v-component="menu_list"].active li{position: relative;margin-bottom: 15px;}body [v-component="menu_list"].active .icon{vertical-align: middle;margin-bottom: 0;}body .mobile_pin_menu{position: absolute;top:0;right:0;display:none;}body .active .mobile_pin_menu{display:block;}body .mobile_pin_menu select{padding: 5px 3px 5px 3px;border: 1px dotted #c0c0d2;border-radius: 3px;background: #ffffff;display:none;}body [v-component="menu_list"] li{display: flex;}body .menu_mobile_pin_icon svg{width:16px;height:16px;fill:#d2d2d2 !important;}body .menu_mobile_pin_icon.active svg{fill:#404040 !important;}}@media screen and (max-device-width: 11in) {body [v-component="menu_list"] .icon, body #menu_list_icon_mobile svg {width: 20vw;height: 3vw;margin-bottom: 3px;}body [v-component="menu_list"] svg, body #menu_list_icon_mobile svg{width: 3vw;height:3vw;}}@media screen and (max-device-width: 7in) {body [v-component="menu_list"] .icon, body #menu_list_icon_mobile svg {width: 20vw;height: 6vw;margin-bottom: 3px;}body [v-component="menu_list"] svg, body #menu_list_icon_mobile svg{width: 6vw;height:6vw;}body .menu_mobile_pin_icon svg{width: 16px;height:16px;}}@media screen and (max-device-width: 11in){[v-popup]{width:100vw !important;min-width: auto !important;overflow: hidden;z-index:10000001;}.icon_information{display:none;}}@media screen and (max-device-width: 11in){body .table .cell_keyword{width:40vw;}body .mobile_fixed_column_item {position: relative;padding: 12px 40vw 27px 0;margin:0;font-size:0;border-right:1px solid #DDE5F4;}body [template="daily_dashboard"] .mobile_fixed_column_item {padding-right:85px;min-height:86px;padding-top:0;padding-bottom:0;}body [template="daily_dashboard"] .mobile_fixed_header.mobile_fixed_column_item {padding-top:0px;padding-bottom:11px;min-height: initial;}body [template="daily_thematics"] #module_statistics .mobile_fixed_header.mobile_fixed_column_item {}body .mobile_fixed_column_item.count_url_border{border-bottom: 1px solid #DDE5F4;}body .mobile_fixed_column_item_in{font-size:13px;padding-left:10px;}body [template="daily_dashboard"] .mobile_fixed_column_item_in{padding-left:0px;}body [template="daily_dashboard"] .mobile_fixed_header .mobile_fixed_column_item_in{padding-left:5px;}body .mobile_fixed_header .mobile_fixed_column_item_in .table_header_stat{margin-top:10px;}body .mobile_fixed_header{font-weight: bold;}body .mobile_fixed_column_item.mobile_fixed_header{padding-bottom:10px;}body .mobile_fixed_column_item.mobile_fixed_header:nth-child(2){height:39px;}body [template="daily_dashboard"] .mobile_fixed_column_item.mobile_fixed_header{max-height:initial;}body .mobile_fixed_column_item svg{width:10px;height:16px;display: inline-block;vertical-align: top;margin:0 0 0 10px;}body .mobile_fixed_column_item .icon_sort_hide{display:inline-block;vertical-align: top;}body .bloc_border_rl{border-left:0;border-right: 0;}body .line_master{width:initial;}body .mobile_fixed_header{background:#F9FAFC;}body .mobile_fixed_header .column_icons_left{display:none;}body [template="daily_query"] .table .cell_url_query{width:50vw;}body [template="daily_query"] .mobile_fixed_column_type_table.mobile_fixed_column{width:50vw;}body [template="daily_query"] .mobile_fixed_column_item{padding-right:50vw;}body [template="daily_query"] .mobile_fixed_column_item.mobile_fixed_header:nth-child(1){}body [template="daily_thematics"] .chart_cell:nth-child(1),body [template="daily_thematics"] .cell_chart_main,body [template="daily_competition"] .chart_cell:nth-child(1),body [template="daily_competition"] .table_header_stat,body [template="daily_suggestions"] .line .chart_cell:nth-child(1),body [template="daily_suggestions"] .table_header_stat,body [template="daily_exports"] .line .chart_cell:nth-child(1),body [template="daily_exports"] .table_header_stat,body [template="daily_alerts"] .line .chart_cell:nth-child(1),body [template="daily_alerts"] .table_header_stat,body [template="audit_list"] .line .chart_cell:nth-child(1),body [template="audit_list"] .with_id .line .chart_cell:nth-child(1),body [template="audit_list"] .table_header_stat{width:40vw;}body [template="daily_thematics"] .mobile_fixed_column_item{padding-right:40vw;}body [template="daily_suggestions"] .chart_cell,body [template="daily_exports"] .chart_cell,body [template="daily_alerts"] .chart_cell,body [template="audit_list"] .chart_cell{padding-bottom:6px;}body #module_statistics .bloc[v-load="true"] .bloc_in{position: relative;}body #module_statistics .mobile_fixed_header .mobile_fixed_column_item_in .table_header_stat{padding: 0px 5px 0px 5px;margin-top: 10px;line-height: 14px;}body #module_statistics .mobile_fixed_column_item_in{padding-left:0;}body [template="daily_exports"] #module_statistics .mobile_fixed_column_item_in span{padding-left:3px;}body [template="audit_list"] #module_statistics .mobile_fixed_column_item_in span{padding-left:3px;}body [template="daily_alerts"] #module_statistics .mobile_fixed_column_item_in span{padding-left:3px;}body [template="daily_thematics"] .table_header_stat,body [template="daily_competition"] .table_header_stat{min-height: initial;}body #module_statistics .mobile_fixed_column_item{}body #module_statistics .mobile_fixed_column_item .file{margin-top:5px;}body #module_statistics .mobile_fixed_column_item.mobile_fixed_header{padding: 0 40vw 11px 0px;min-height: initial;}body #module_statistics .mobile_fixed_column_type_table.mobile_fixed_column{left:0px;}body [template="daily_thematics"] .site_name{margin-left:80px;}body [template="daily_thematics"] .mobile_fixed_header.mobile_fixed_column_item{padding-top:12px;}body [template="daily_thematics"] .mobile_fixed_column_item{height:86px !important;min-height: 86px;}body [template="daily_competition"] .mobile_fixed_column_item{height:86px !important;min-height: 86px;}body [template="daily_suggestions"] #module_statistics .mobile_fixed_column_item.mobile_fixed_header{padding-bottom:12px;}body [template="daily_suggestions"] #module_statistics .mobile_fixed_column_item{padding-bottom:26px;}body [template="daily_exports"] #module_statistics .mobile_fixed_column_item.mobile_fixed_header{padding-bottom:12px;}body [template="daily_exports"] #module_statistics .mobile_fixed_column_item{padding-bottom:26px;}body [template="audit_list"] #module_statistics .mobile_fixed_column_item.mobile_fixed_header{padding-bottom:12px;}body [template="audit_list"] #module_statistics .mobile_fixed_column_item{padding-bottom:26px;}body [template="daily_alerts"] #module_statistics .mobile_fixed_column_item.mobile_fixed_header{padding-bottom:12px;}body [template="daily_alerts"] #module_statistics .mobile_fixed_column_item{padding-bottom:26px;}body [template="daily_competition"] .mobile_fixed_column_item span{margin-left:2px;}body [template="daily_dashboard"] .chart_cell,#module_statistics .chart_cell{border-bottom:1px solid #DDE5F4;}#module_statistics .mobile_fixed_header .chart_cell{padding-bottom:9px;}#module_statistics .table_header_stat{padding-bottom:4px;}body #module_statistics .table .header .line,body #module_statistics .mobile_fixed_header{height:initial !important;}body #module_statistics .table .line{border-bottom: 0;}body #module_statistics .header .chart_cell{background:#F9FAFC;}body [template="daily_dashboard"] .line{border-bottom:0;}body #module_statistics .bloc_in .table{border-left:0;border-right:0;}body #module_statistics .mobile_fixed_column_item svg{width:10px;height:16px;margin-top:0;}body .mobile_fixed_column_item.multi_periods,body .mobile_fixed_column_item.multi_periods_in{border-bottom:0;}body .mobile_fixed_column_item.multi_periods{font-weight: bold;}body .mobile_fixed_column_item.multi_periods_in.last,body .mobile_fixed_header.mobile_fixed_column_item.multi_periods_in.i_mobile_fixed_cell0,body .mobile_fixed_header.mobile_fixed_column_item.multi_periods_in.i_mobile_fixed_cell1,body [template="daily_dashboard"] .mobile_fixed_column_item.multi_periods_in,body [template="daily_thematics"] .mobile_fixed_column_item.multi_periods_in,body [template="daily_competition"] .mobile_fixed_column_item.multi_periods_in,body [template="daily_suggestions"] .mobile_fixed_column_item.multi_periods_in,body [template="daily_exports"] .mobile_fixed_column_item.multi_periods_in,body [template="daily_alerts"] .mobile_fixed_column_item.multi_periods_in,body [template="audit_list"] .mobile_fixed_column_item.multi_periods_in{border-bottom: 1px solid #DDE5F4;}body #module_statistics .bloc_header{margin: 25px 10px 0 10px;}body [template="daily_suggestions"] #module_statistics .group_by_sort,body [template="daily_competition"] #module_statistics .group_by_sort,body [template="daily_thematics"] #module_statistics .group_by_sort,body [template="daily_exports"] #module_statistics .group_by_sort,body [template="daily_alerts"] #module_statistics .group_by_sort,body [template="audit_list"] #module_statistics .group_by_sort{position: relative;}body .mobile_fixed_column_item_in .icon, body [template="daily_suggestions"] .mobile_fixed_column_item_in .icon_value {display: inline-block;vertical-align: top;}body [template="daily_suggestions"] .mobile_fixed_column_item_in .icon_value {margin-left:5px;}body [template="daily_suggestions"] #module_statistics .mobile_fixed_column_item_in .action svg{width: 18px;height: 18px;margin-left:2px;}body #filters_auto{width:initial;}body [v-component="popup_exports_list"] #exports_list_sites .popup_cell:nth-child(1){width:45vw;}body [v-component="popup_exports_list"] #exports_list_sites .popup_cell:nth-child(2){width:20vw;}body [v-component="popup_exports_list"] #exports_list_sites .popup_cell:nth-child(3){width:10vw;}body [v-component="popup_exports_list"] #exports_list_sites .popup_cell:nth-child(4){width:10vw;}body [template="api_documentation"] #button_action_top{margin-bottom:20px;}body .api_method .element, body .return .element{padding-left:10px;}body .api_select{margin-left:10px;}body [v-component="query_evolution"] #query_evolution{width:100vw;left:0;margin-left:0;}body [template="daily_keywords"] .table .line_master{border-bottom:1px solid #DDE5F4;}body [v-component="query_evolution"] [v-chart-type="graph_top_series"]{width:100vw;}body [v-component="query_evolution"] h1{margin-top:0 !important;}body [v-component="query_evolution"] .chart_date_step{opacity:0;}body [v-component="query_evolution"] .chart_date_step:nth-child(1),body [v-component="query_evolution"] .chart_date_step:last-child{opacity:1;}body [v-component="query_evolution"] .chart_dates{margin-left:9vw !important;width:89vw !important;}body [v-component="query_evolution"] .yaxis{width:9vw;}body [v-component="query_evolution"] .area{width:89vw;}body .evolution_cell:nth-child(1){width:50vw !important;}body .evolution_cell:nth-child(2){width:15vw !important;}body .evolution_cell:nth-child(3){width:15vw !important;}}@media screen and (max-device-width: 11in){body [v-component="header_right"] #user_top{right:10px;}body h1{margin-left:10px;padding-top:14px;}body #calendar_result{}body [v-component="views_list"]{margin-top:50px;}body #calendar_result{top:65px;right:10px;}body #menu_projects{position: absolute;top:15px;margin-right:0;}body #menu_projects_value{position: relative;width:40vw;}body #filters_in{margin:5px 10px 5px 10px;overflow: auto;white-space: nowrap;}body #filters_auto{}body #filters.fixed{left:10px;}body #filters.fixed #filters_in{margin-left:0 !important;}body .filters_save #filters_auto{width:auto;}}#module_statistics .bloc{margin:0 0 50px 0;}#module_statistics .bloc_in{border-bottom:0;margin-top:10px;overflow:initial;border:0;}#module_statistics .bloc_in .table{border:1px solid #DDE5F4;border-bottom:0;}#module_statistics .bloc_header{margin:30px 0 20px 0;}#module_statistics .chart_cell{position: relative;}#module_statistics .cell_chart_main:hover .column_icons_in{display:block;height:25px;overflow: initial;}#module_statistics .chart_cell:nth-child(1){border-left:0;}#module_statistics .bloc[v-load="false"] .bloc_in{}#module_statistics .chart_cell a:hover{text-decoration: underline;}#module_statistics .group_by_sort{position: absolute;bottom:-5px;right:0;padding-right:0;}#module_statistics .group_by_sort .item span.sort{margin-right: 0;}#module_statistics .count_queries{font-size:11px;margin:5px 0 0 0}#module_statistics .bloc[v-load="true"] .bloc_in{}#module_statistics .table .cell {border-right: 1px solid #DDE5F4;border-left: 0;}#module_statistics .table_load{border:1px solid #e6e6e6;}#module_statistics .load_icon{width:48px;height: 48px;margin:250px auto 250px auto;}#module_statistics .chart_cell .load_icon{margin:0;width:16px;height:16px;}#module_statistics .table .line{border-bottom: 1px solid #DDE5F4;}#module_statistics .table{border-top:0;}#module_statistics .table .header .line:first-child .cell{border-bottom: 0;}#module_statistics .volume_chart{width:15px;display: inline-block;vertical-align: bottom;background:#e3f4fb;border-top:2px solid #3bb0e3;}#module_statistics .volume_chart:hover{background:#3bb0e3;}#module_statistics .chart_statistics{width:100%;font-size:0;}#module_statistics .chart_value{font-size:13px;}#module_statistics .table_header_stat,#module_statistics .cell_chart_main{font-size:13px;}#module_statistics [v-chart-type] svg  path{stroke:#57a2ec !important;fill:#e3f4fb !important;}#module_statistics .count_period2 [v-chart-type] svg path{fill:rgba(87, 162, 236, 0.15) !important;}#module_statistics .count_period2 [v-chart-type] svg path:nth-child(2){stroke:#57a2ec !important;stroke-dasharray:4,2 !important;}#module_statistics .count_period2 .cell_chart_tops100 [v-chart-type] svg path:nth-child(3),#module_statistics .count_period2 .cell_chart_tops100 [v-chart-type] svg path:nth-child(4){stroke: #57a2ec !important;fill: rgba(87, 162, 236, 0.15) !important;}#module_statistics .li_bottom{background:#57a2ec;}#module_statistics .cell_chart_tops100 [v-chart-type] svg path:nth-child(2),#module_statistics .cell_chart_types [v-chart-type] svg path:nth-child(2),#module_statistics .cell_chart_visibility [v-chart-type] svg path:nth-child(2){stroke: #57a2ec !important;fill: rgba(87, 162, 236, 0.15) !important;}#module_statistics .cell_chart_tops100 [v-chart-type] svg path:nth-child(1),#module_statistics .cell_chart_types [v-chart-type] svg path:nth-child(1),#module_statistics .cell_chart_visibility [v-chart-type] svg path:nth-child(1){stroke: #cc4ead !important;fill: rgba(204, 78, 173, 0.15) !important;}#module_statistics .cell_chart_tops100:nth-child(2) .li_bottom,#module_statistics .cell_chart_types:nth-child(2) .li_bottom,#module_statistics .cell_chart_visibility:nth-child(2) .li_bottom{background:#cc4ead;}#module_statistics .count_period2 .cell_chart_tops100 [v-chart-type] svg path:nth-child(1),#module_statistics .count_period2 .cell_chart_tops100 [v-chart-type] svg path:nth-child(2),#module_statistics .count_period2 .cell_chart_visibility [v-chart-type] svg path:nth-child(1),#module_statistics .count_period2 .cell_chart_visibility [v-chart-type] svg path:nth-child(2),#module_statistics .count_period2 .cell_chart_types [v-chart-type] svg path:nth-child(1),#module_statistics .count_period2 .cell_chart_types [v-chart-type] svg path:nth-child(2){stroke: #cc4ead !important;fill: rgba(204, 78, 173, 0.15) !important;}#module_statistics .cell.no_result{width:auto;display: block;border-right:0;}#chart_cursor_html.daily_thematics[v-cursor-stats="nb_query tops100"] svg:nth-child(1) circle,#chart_cursor_html.daily_competition[v-cursor-stats="performance visibility"] svg:nth-child(1) circle,#chart_cursor_html.daily_competition[v-cursor-stats="only_type12 only_type4"] svg:nth-child(1) circle,#chart_cursor_html.daily_competition[v-cursor-stats="only_type9 only_type8"] svg:nth-child(1) circle{fill: #cc4ead !important;}#chart_cursor_html.daily_thematics[v-cursor-stats="nb_query tops100"] svg:nth-child(2) circle,#chart_cursor_html.daily_competition[v-cursor-stats="performance visibility"] svg:nth-child(2) circle,#chart_cursor_html.daily_competition[v-cursor-stats="only_type12 only_type4"] svg:nth-child(2) circle,#chart_cursor_html.daily_competition[v-cursor-stats="only_type9 only_type8"] svg:nth-child(2) circle{fill: #57a2ec !important;}#chart_cursor_html.count_period2.daily_thematics[v-cursor-stats="nb_query tops100"] svg:nth-child(1) circle,#chart_cursor_html.count_period2.daily_competition[v-cursor-stats="performance visibility"] svg:nth-child(1) circle,#chart_cursor_html.count_period2.daily_competition[v-cursor-stats="only_type12 only_type4"] svg:nth-child(1) circle,#chart_cursor_html.count_period2.daily_competition[v-cursor-stats="only_type9 only_type8"] svg:nth-child(1) circle{stroke:none !important;stroke-dasharray:none !important;fill:#cc4ead !important;}#chart_cursor_html.count_period2.daily_thematics[v-cursor-stats="nb_query tops100"] svg:nth-child(2) circle,#chart_cursor_html.count_period2.daily_competition[v-cursor-stats="performance visibility"] svg:nth-child(2) circle,#chart_cursor_html.count_period2.daily_competition[v-cursor-stats="only_type12 only_type4"] svg:nth-child(2) circle,#chart_cursor_html.count_period2.daily_competition[v-cursor-stats="only_type9 only_type8"] svg:nth-child(2) circle{stroke:#cc4ead !important;stroke-dasharray:4,2 !important;fill:#ffffff !important;}#chart_cursor_html.count_period2.daily_thematics[v-cursor-stats="nb_query tops100"] svg:nth-child(3) circle,#chart_cursor_html.count_period2.daily_competition[v-cursor-stats="performance visibility"] svg:nth-child(3) circle,#chart_cursor_html.count_period2.daily_competition[v-cursor-stats="only_type12 only_type4"] svg:nth-child(3) circle,#chart_cursor_html.count_period2.daily_competition[v-cursor-stats="only_type9 only_type8"] svg:nth-child(3) circle{stroke:none !important;stroke-dasharray:none !important;fill:#57a2ec !important;}#chart_cursor_html.count_period2.daily_thematics[v-cursor-stats="nb_query tops100"] svg:nth-child(4) circle,#chart_cursor_html.count_period2.daily_competition[v-cursor-stats="performance visibility"] svg:nth-child(4) circle,#chart_cursor_html.count_period2.daily_competition[v-cursor-stats="only_type12 only_type4"] svg:nth-child(4) circle,#chart_cursor_html.count_period2.daily_competition[v-cursor-stats="only_type9 only_type8"] svg:nth-child(4) circle{stroke:#57a2ec !important;stroke-dasharray:4,2 !important;fill:#ffffff !important;}#chart_cursor_html.count_path2.daily_query svg:nth-child(1) circle{fill: #57a2ec !important;}#chart_cursor_html.count_path2.daily_query svg:nth-child(2) circle{fill: #cc4ead !important;}#module_statistics .count_period2 .cell_chart_tops100 [v-chart-type] svg path:nth-child(2),#module_statistics .count_period2 .cell_chart_tops100 [v-chart-type] svg path:nth-child(4),#module_statistics .count_period2 .cell_chart_types  [v-chart-type] svg path:nth-child(2),#module_statistics .count_period2 .cell_chart_types  [v-chart-type] svg path:nth-child(4),#module_statistics .count_period2 .cell_chart_visibility [v-chart-type] svg path:nth-child(2),#module_statistics .count_period2 .cell_chart_visibility [v-chart-type] svg path:nth-child(4){stroke-dasharray:4,2 !important;}#module_statistics .count_period2 .cell_chart_tops100 [v-chart-type] svg path:nth-child(1),#module_statistics .count_period2 .cell_chart_tops100 [v-chart-type] svg path:nth-child(3),#module_statistics .count_period2 .cell_chart_types [v-chart-type] svg path:nth-child(1),#module_statistics .count_period2 .cell_chart_types [v-chart-type] svg path:nth-child(3),#module_statistics .count_period2 .cell_chart_visibility [v-chart-type] svg path:nth-child(1),#module_statistics .count_period2 .cell_chart_visibility [v-chart-type] svg path:nth-child(3){stroke-dasharray:none !important;}#module_statistics .count_period2 .cell_chart_tops [v-chart-type] svg path:nth-child(2),#module_statistics .count_period2 .cell_chart_tops [v-chart-type] svg path:nth-child(4),#module_statistics .count_period2 .cell_chart_tops [v-chart-type] svg path:nth-child(6){stroke-dasharray:4,2 !important;}#module_statistics .count_period2 .cell_chart_tops [v-chart-type] svg path:nth-child(1),#module_statistics .count_period2 .cell_chart_tops [v-chart-type] svg path:nth-child(3),#module_statistics .count_period2 .cell_chart_tops [v-chart-type] svg path:nth-child(5){stroke:none !important;stroke-dasharray:none !important;}#module_statistics .cell_chart_tops [v-chart-type] svg path:nth-child(1){stroke: #fc9504 !important;fill: rgba(250,216,172,1) !important;}#module_statistics .cell_chart_tops [v-chart-type] svg path:nth-child(2){stroke: #f3c341 !important;fill: rgba(251,242,217,1) !important;}#module_statistics .cell_chart_tops [v-chart-type] svg path:nth-child(3){stroke: #83de70 !important;fill: rgba(228,251,223,1) !important;}#module_statistics .cell_chart_tops:nth-child(1) .li_bottom{background:#83de70;}#module_statistics .cell_chart_tops:nth-child(2) .li_bottom{background:#f3c341;}#module_statistics .cell_chart_tops:nth-child(3) .li_bottom{background:#fc9504;}#module_statistics .count_period2 .cell_chart_tops [v-chart-type] svg path:nth-child(1),#module_statistics .count_period2 .cell_chart_tops [v-chart-type] svg path:nth-child(2){stroke: #fc9504 !important;fill: rgba(252, 149, 4, 0.15) !important;}#module_statistics .count_period2 .cell_chart_tops [v-chart-type] svg path:nth-child(3),#module_statistics .count_period2 .cell_chart_tops [v-chart-type] svg path:nth-child(4){stroke: #f3c341 !important;fill: rgba(243, 195, 65, 0.15) !important;}#module_statistics .count_period2 .cell_chart_tops [v-chart-type] svg path:nth-child(5),#module_statistics .count_period2 .cell_chart_tops [v-chart-type] svg path:nth-child(6){stroke:#83de70 !important;fill:rgba(131, 222, 112, 0.15) !important;}[template="daily_thematics"] .cell_chart_main{width:245px;}[template="daily_thematics"] .table_header_stat,[template="daily_competition"] .table_header_stat{line-height: initial;min-height: 23px;}#module_statistics .split_ranking{display:inline-block;vertical-align: top;width: 35px;text-align: right;}#module_statistics .split_ranking.evolution{width:40px;}#module_statistics .chart_cell  svg{fill:#404040;}#module_statistics .table .header .icon_sort_hide svg{fill:#a0a0a0;}#notification{position: fixed;left:50%;top:0;width:0;text-align: center;white-space: nowrap;transform: translateZ(0);transition-property: top;transition-duration: 0s;z-index:10000000;}#notification_bloc.success{background:#03a747;}#notification_bloc.error{background:#fa1a39;}#notification_bloc{position: relative;background:#282828;margin:0 auto 0 auto;padding:10px 15px 10px 15px;color:#f0f0f0;display:inline-block;text-align:left;border-radius:5px;}#notification .title{font-size:15px;line-height: 22px;}#notification .content{font-size:13px;margin:10px 0 0 0;}#notification .download{display: block;text-decoration: none;font-size:15px;border: 2px solid #ffffff;color: #ffffff;padding: 5px 8px 5px 8px;border-radius: 5px;margin:20px 0 0 0;text-align:center;}#notification_close{position: absolute;width:12px;height:12px;top:0px;right:0px;cursor: pointer;}#notification_close svg{width:8px;height:8px;}#notification_close path{fill:#ffffff;}#notification a{text-decoration: underline;font-weight: bold;color:#ffffff;}.page_change_bloc{text-align:right;padding:15px 0 15px 0;}.page_change_value svg{width:12px;height:12px;}.page_change_value .previous,.page_change_value .next{width:12px;display:inline-block;vertical-align: middle;cursor: pointer;}.page_change_value .value{display:inline-block;vertical-align: top;margin:0 5px 0 5px;}.page_change_value .previous svg{transform: rotate(90deg);}.page_change_value .next svg{transform: rotate(270deg);}.page_change_select,.page_change_value{display:inline-block;vertical-align: top;}.page_change_value{margin:11px 0 0 0;}#popup_url_target .popup_cell:nth-child(1){width:125px;}#popup_url_target .popup_cell:nth-child(2){width:75px;}#popup_url_target .popup_cell:nth-child(3){width:380px;}#popup_url_target .popup_description,#popup_url_target form{width:600px;}#popup_url_target .popup_table{width:602px;}#popup_chart_pin .popup_cell:nth-child(1){width:180px;}#popup_chart_pin .popup_cell:nth-child(2){width:450px;}#popup_chart_pin .popup_description,#popup_chart_pin [v-advice],#popup_chart_pin form{width:630px;}#popup_chart_pin .popup_table{width:632px;}#popup_position_zero{width:800px;}#popup_notes_add{width:800px;}#popup_support_ticket_add,#popup_support_ticket_reply{width:700px;}#popup_support_ticket_reply .popup_table{padding-top:20px;margin-top:50px;}#popup_notes_add .popup_cell:nth-child(1){width:50px;}#popup_notes_add .popup_cell:nth-child(2){width:125px;}#popup_notes_add .popup_cell:nth-child(3){width:245px;}#popup_notes_add .popup_cell:nth-child(4){width:300px;}#popup_queries_add,#popup_queries_import,#popup_audits_queries_add{width:650px;}#popup_users_add,#popup_users_edit{width:650px;}#popup_queries_add .items,#popup_queries_add .items{width:200px;}#popup_queries_add .form_multiple_result.form_multiple_always_visible,#popup_audits_queries_add .form_multiple_result.form_multiple_always_visible{width:300px;}#popup_entities_add{width:400px;}#popup_prepaid_add,#popup_ressources_add,#popup_offer,#popup_billing{width:400px;}#popup_entities_add [m-form-field="establishment"]{height:50px;}form [m-form-field="establishment"]{height:65px;}#popup_audits_export{width: 600px;}#popup_queries_thematics,#popup_suggestions_export{width:650px;}#popup_queries_thematics .items{width:200px;}#popup_queries_thematics .form_multiple_result.form_multiple_always_visible{width:300px;}#popup_thematics_edit{width:650px;}#popup_queries_thematics .items{width:200px;}#popup_queries_thematics .form_multiple_result.form_multiple_always_visible{width:300px;}#popup_exports_add,#popup_exports_edit{width:600px;}#popup_view_share{width:500px;}#popup_affiliate,#popup_affiliate_add_site,#popup_affiliate_billing{width:600px;}#popup_api{width:500px;}#popup_account_delete{width:600px;}#popup_mojitorank_add{width:800px;}#popup_exports_list{width:400px;}#popup_queries_delete{width:700px;}#popup_thematics_move{width:700px;}#popup_payment_methods_add,#popup_payment_methods_edit{width:400px;}#popup_thematics_move .form_multiple_result.form_multiple_always_visible {width:370px;}#popup_alerts_add,#popup_alerts_edit{width:600px;}#popup_queries_tags{width: 650px;}#popup_queries_tags .form_multiple_result.form_multiple_always_visible{width:300px;}#profil.profil{padding:3px;}.profil{display:inline-block;vertical-align: top;border-radius: 125px;background: #fe0b09;}#profil .profil_in{width:133px;height: 133px;border:4px solid #f9fafc;border-radius: 125px;overflow: hidden;}#profile,.profile{width:40px;height:40px;line-height:40px;vertical-align: middle;border-radius: 100px;background-size: cover;background-position:center top;text-align:center;font-weight: bold;text-transform: uppercase;font-size:16px;}.profile{display: inline-block;vertical-align: top;}.profile.no_bg{border:2px solid #404040;}.permission{height:38px;line-height:34px;vertical-align: middle;border:2px solid #ffffff;padding-left:10px;padding-right: 10px;border-radius: 5px;background:#dde7f1;text-align:center;font-size:13px;display:inline-block;vertical-align: top;margin-top:1px;}#profile_edit_preview{width:140px;height:140px;background-size: cover;background-position: center top;border-radius:100px;}#profile_edit .upload{border-radius:100px;}.profiles{position: relative;list-style: none;}.profiles li{position: absolute;display: inline-block;vertical-align: top;width:40px;height:40px;border-radius: 100px;}.profil_no_exist{border:1px solid #000000;width:40px;height:40px;border-radius: 100px;background:#ffffff;}.profile_no_preview_img{font-size: 0;border:2px solid #404040;line-height: 90px;}.profile_no_preview_img svg{width:48px;height:48px;vertical-align:middle;fill:#404040;}.profiles li:nth-child(1){right:0px;z-index:99;}.profiles li:nth-child(2){right:32px;z-index:98;}.profiles li:nth-child(3){right:64px;z-index:97;}.profiles li:nth-child(4){right:96px;z-index:96;}.profiles li:nth-child(5){right:128px;z-index:95;}.profiles li:nth-child(6){right:160px;z-index:94;}.profiles li:nth-child(7){right:192px;z-index:93;}.profiles li:nth-child(8){right:224px;z-index:92;}.profiles li:nth-child(9){right:256px;z-index:91;}.profiles li:nth-child(10){right:288px;z-index:90;}.profiles li:nth-child(11){right:320px;z-index:89;}.profiles li:nth-child(12){right:352px;z-index:88;}.profiles li:nth-child(13){right:384px;z-index:87;}.profiles li:nth-child(14){right:416px;z-index:86;}.profiles li:nth-child(15){right:448px;z-index:85;}.profiles li:nth-child(16){right:480px;z-index:84;}.profiles li:nth-child(17){right:512px;z-index:83;}.profiles li:nth-child(18){right:544px;z-index:82;}.profiles li:nth-child(19){right:576px;z-index:81;}.profiles li:nth-child(20){right:608px;z-index:80;}#pwa_button{position: fixed;bottom:0;left:0;right:0;background:#ffffff;padding:10px 0 10px 10px;font-size:20px;z-index:10000004;display:none;opacity:0;}#pwa_button_in{cursor: pointer;}#pwa_icon{width:48px;height:48px;}#pwa_button_in{color:#237ae9;}#pwa_button li{display:inline-block;vertical-align: top;line-height: 48px;}#pwa_icon_li{width:48px;height:48px;margin-right: 10px;}#pwa_close{position: absolute;top:24px;right:20px;}#pwa_close svg{width:20px;height:20px;fill:#404040;}.ranking_type_tab{display:inline-block;vertical-align: top;border:1px solid transparent;border-bottom:1px solid #DDE5F4;padding:5px 5px 5px 4px;box-sizing: content-box;margin-left:-1px;}.ranking_type_tabs .ranking_type_tabs_element:first-child .ranking_type_tab{border-left:1px solid transparent;margin-left:0;width:189px;}.ranking_type_tabs .ranking_type_tabs_element:first-child .ranking_type_tab.selected{border-left:1px solid #DDE5F4;}.ranking_type_tab.selected {border:1px solid #DDE5F4;border-bottom:1px solid #ffffff;}.ranking_type_tabs{background:#ffffff;}.ranking_type_tabs .ranking_type_tabs_element:nth-child(-n+3) .ranking_type_tab{}.ranking_type_tabs_element{position: relative;display:inline-block;vertical-align: top;}.ranking_type_tabs_element.add_tab_element .ranking_type_tab{width:190px;height:90px;text-align:center;cursor:pointer;}.ranking_type_tabs_element.add_tab_element svg{width:24px;height:24px;margin:33px 0 0 0;}.ranking_type_tabs_element.add_tab_element svg path{fill:#444444;}.ranking_type_tabs_element .label_before{position: absolute;top:0px;right:0px;padding:5px;}.ranking_type_tab .chart{width:190px;overflow: hidden;}.up{color:#9bc181;}.down{color:#e07c78;}.volume_historical_in{position: absolute;left:0;bottom:0;width:4px;background:#e3f4fb;display:inline-block;border-top:1px solid #3bb0e3;}.volume_historical_in:hover{background:#3bb0e3;}.volume_historical_in_max{position: relative;display:inline-block;width:4px;height:30px;vertical-align: bottom;}.volume_historical{height:30px;font-size:0;margin:0 0 5px 0;}.volume_historical.volume_style_compact{height:14px;}.volume_style_compact .volume_historical_in_max{height:14px;}.entity_bloc{margin:0 0 50px 0;}[v-query-key]{cursor:pointer;}.view_alert_email .group_by_sort,.view_alert_email .table_statistics .column_icons_right,.view_alert_email .table_statistics .ranking_type_tabs .ranking_type_tabs_element.tab_selected_true .label_before,.view_alert_email #filters_action{display:none;}.device_query2 .table .cell.cell_info_desktop{display:none;}.device_query2 .table .header .line:first-child .cell_ranking{width: 125px;}.device_query2 .table .cell_url_query{width:903px;}.device_query1 .table .cell.cell_info_mobile{display:none;}.device_query1 .table .header .line:first-child .cell_ranking{width: 125px;}.device_query1 .table .cell_url_query{width:903px;}#semdatabase{position: fixed;left:10px;bottom:0px;padding-bottom:10px;background:#ffffff;border-radius:5px;overflow: hidden;z-index:100;display: none;}#semdatabase_label{margin-bottom:7px;text-align: center;}#semdatabase a{color:#444444;}#semdatabase .icon_close{position: absolute;top:1px;right:0;}#semdatabase .icon_close{position: absolute;top:10px;right:10px;width: 12px;height: 12px;cursor: pointer;}#semdatabase .icon_close{fill:#ffffff;}#serp_show{position: fixed;left:0;top:0;right:0;bottom:0;background:rgba(54, 54, 54, 0.85);z-index:1000000;display:none;}#serp_show_in{position: fixed;left:0;top:30px;right:0;bottom:30px;width: 1200px;background: #ffffff;margin:0px auto 0 auto;box-shadow: 0px 0px 10px 0px #606060;z-index:1000001;display:none;}#serp_show_device{position: absolute;top:0;left:0;right:0;padding:20px 0 0 20px;border-bottom: 1px solid #DDE5F4;}.serp_show_header{border-bottom: 1px solid #DDE5F4;padding:10px 0 10px 20px;text-align: left;}#serp_show_device li{display:inline-block;vertical-align: top;padding: 2px 20px 7px 20px;font-size: 14px;height: 28px;cursor: pointer;}#serp_show_device .serp_show_active{border-bottom: 2px solid #fe0b09;}#serp_show_iframes{position: absolute;top:50px;left:0;right:0;bottom:36px;}#serp_show_desktop_bloc,#serp_show_mobile_bloc{height:100%;}#serp_show_mobile_bloc{text-align: center;}#serp_show_desktop{width:100%;}#serp_show_desktop,#serp_show_mobile{height:100%;}#serp_show_desktop{width:100%;}#serp_show_mobile{width:40%;margin:0 auto 0 auto;}#serp_show_in .icon_close{position: absolute;top:15px;right:15px;cursor: pointer;z-index:2;}.cell_serp_features{cursor: pointer;}.button_serp{position: absolute;top:-5px;right:0;}.serp_show_download{position: absolute;top:0;right:10px;}.serp_show_download li{display:inline-block;vertical-align: top;padding:8px 5px 5px 5px;}.serp_show_download_title{font-weight: bold;}.sort_icons{display:inline-block;vertical-align: top;}.sort svg,.form_select svg{width:12px;height:12px;cursor: pointer;}.sort path{}.sort .desc svg{transform: rotate(180deg);}.sort .down svg{transform: rotate(45deg);}.sort .up path{fill:#569d2f;}.sort .down path{fill:#d03932;}.sort_list  .sort_icons li{width:12px;height:12px;display:inline-block;vertical-align: top;margin:4px 4px 0 0;padding: 0;opacity:0.5;line-height: 12px;}.sort .open{margin:0 0 0 15px;}.sort .open svg{width:9px;height:9px;}.sort_icons li.active{opacity:1;}.sort_value{font-size:14px;display:inline-block;vertical-align: top;}.sort_list{position: absolute;top:0;background:#FFFFFF;border: 1px solid #DDE5F4;min-width: 140px;text-align:left;overflow:auto;z-index:10020;}.sort_list .bottom{text-align: right;padding: 0px 10px 10px 0;}.item.right .sort_list{right:0;}.sort_in{display:inline-block;vertical-align: top;}.group_by_sort .item .sort_in span.open{display:none;}.sort_value .value,.sort_value .icon{display:inline-block;vertical-align: middle;}.sort_value .icon{margin:0 0 0 5px;}.group_by_sort{text-align:right;padding:0 15px 0 0;}.group_by_sort .item{position: relative;display:inline-block;vertical-align: top;margin:0 0 0 15px;line-height: 34px;font-size:0;}.group_by_sort .form_select{padding-right:0;}.group_by_sort .item span{font-size:13px;display:inline-block;vertical-align: top;margin:0 5px 0 0;line-height: 34px;}.group_by_sort .item span.label{border-top:1px solid transparent;vertical-align: top;font-weight:bold;text-transform: uppercase;}.group_by_sort .item span.label svg{width:16px;height:16px;display:inline-block;vertical-align: middle;}.group_by_sort .sort_value .value_more{border-left:1px solid #ffffff;padding:0 0 0 10px;margin-right:0;}.group_by_sort .sort_value .value_more svg{width:12px;height:12px;display:inline-block;vertical-align: middle;margin-top:-3px;}#main .group_by_sort select,.group_by_sort .sort_value{border-radius:0;padding:0px 10px 0px 10px;background:#dde7f1;border-radius:5px;margin:0;}.group_by_sort .label_name{font-weight: bold;padding:0 0 0 10px;}.group_by_sort .list_submenu .label .active_sort{min-width: 220px;font-size:0;overflow:hidden;}.group_by_sort .active_sort li{vertical-align: top;font-size: 13px;margin:0;}[v-sort-active], .active_sort_result li{cursor: pointer;}.sort .list_submenu .label .filter_comparison svg{height:16px;}.sort .list_submenu .label .filter_comparison li{padding-top:0;padding-bottom:0;line-height:30px;vertical-align: middle;}.sort .list_submenu .label .filter_comparison li svg{width:12px;height:12px;vertical-align: middle;margin:0 5px 0 0;}.sort_li_bloc div[v-sort-chart]{padding:0 7px 0 7px;}.sort_li_bloc{line-height: 30px;}.sort_li_bloc [v-sort-active]{padding:0 7px 0 10px;}.sort_li_bloc div[v-sort-chart]:first-child{border-top:0;}.list_submenu .label .filter_comparison .sort_li_bloc{padding:0;}.list_submenu .label .filter_comparison .sort_li_bloc:nth-child(1){}.list_submenu .label .filter_comparison.active_sort_result .sort_li_bloc{border:0;}.list_submenu .label .filter_comparison.active_sort_result .sort_li_bloc:first-child{border-top:0;}#filters_auto .list_submenu .label .filter_comparison.active_sort_result .sort_li_bloc{border:0;}.list_submenu .label .filter_comparison.active_sort_result .sort_li_bloc [v-sort-li-bloc]{padding:0 7px 0 7px;}.sort_chart_name,.sort_chart_where{vertical-align: top;}.sort_chart_where{font-size:11px;text-align:right;padding-right:7px;background:#fafafa;}.group_by_sort .button_action{cursor: pointer;font-size: 13px;line-height: initial;}.group_by_sort .button_action svg{display: inline-block;vertical-align: top;width:12px;height:12px;margin:2px 5px 0 0;}.group_by_sort .button_action svg path{fill:#FFFFFF;}.group_by_sort .button_action .label_button{display: inline-block;vertical-align: top;}.sort_li_bloc .icon,.sort_li_in{display:inline-block;vertical-align: middle;}.sort_li_bloc .icon{margin:0 0 0 10px;}.list_submenu .label .filter_comparison [v-sort-active="desktop_target_best"] svg path,.list_submenu .label .filter_comparison [v-sort-active="mobile_target_best"] svg path{fill:#38a715;}.list_submenu .label .filter_comparison [v-sort-active="desktop_target_medium"] svg path,.list_submenu .label .filter_comparison [v-sort-active="mobile_target_medium"] svg path{fill:#fc9504;}.list_submenu .label .filter_comparison [v-sort-active="desktop_target_null"] svg path,.list_submenu .label .filter_comparison [v-sort-active="mobile_target_null"] svg path{fill:#ea5457;}[v-c="table"] .cell{display:inline-block;vertical-align:top;}[v-c="table"] .header .cell{cursor:pointer;}[v-c="table"] .header span{position:relative;}.table{white-space: nowrap;border-top: 1px solid #DDE5F4;font-size:0;}.table a.action{font-size:13px;}.table .line_master{border-bottom:1px solid #DDE5F4;}.table .line_master .line[v-line-type="merge"] .cell,.table .line_master .line[v-line-type="merge"]:first-child .cell{}.table .header .line:last-child .cell{border-bottom:1px solid #DDE5F4;}.table .header .line:first-child .cell{border-bottom:1px solid #DDE5F4;}.table .header .line:first-child .cell:first-child,.table .first .cell{border-left:0;}.table .header .column:last-child .cell,.table .header .line:nth-child(2) .cell:last-child{}.table .line_master .cell:last-child{}.table .header .cell{background:#F9FAFC;}.table .cell,.table .cell_column{position: relative;display:inline-block;vertical-align: top;overflow: hidden;min-height: 39px;border-left:1px solid #DDE5F4;padding:12px 0px 0 10px;font-size:13px;}.table .cell:first-child,.table .cell_column:first-child{border-left:0;}.table .cell.important{font-weight: bold;}.table .url{border-left:0;}.table .header{background:#F9FAFC;font-weight: bold;}.table [v-line-show="true"]{display:block;}.table [v-line-show="false"]{display:none;}.table .cell_split{padding:0 0 0 0;border-left:0;}.table .cell_in{display:inline-block;vertical-align: top;}.table .cell_split .cell_column{padding-top:10px;min-height:39px;}.table .cell_split .cell_column.chart{padding-top:0px;}.table .number{text-align:right;}.table .cell_column.rank_average{border-left:1px solid #e6e6e6;}.table .header svg{height:16px;display:inline-block;vertical-align:top;fill:#444444;}.cell .value_stat{padding-left:0;}.cell .value_stat .cell_in{width:35px;text-align:right;padding-right:10px;}.cell .value_stat.value_average .cell_in{width:45px;}.table .multi_periods{font-weight: bold;}.table .line_master .multi_periods.line:first-child .cell{border-bottom:0;}.table .cell.cell_noborder{border-left:0;}.table_stats,.table_charts{margin:0;}.table_stats{overflow:auto;}.table_charts{}.table_charts_dashboard .chart_statistics thead{display:none;}.table_header_stat{position: relative;display:inline-block;vertical-align: top;line-height: 14px;padding-right:10px;overflow:hidden;box-sizing: border-box;cursor:default;}.table_charts .header .file{height:0px;}.li_bottom{width:20px;height:3px;border-radius:5px;}.li_bottom.disabled{display:none;}.table_header_comparison{line-height:18px;vertical-align: middle;}.table .table_header_comparison svg{vertical-align: middle;margin:0 5px 0 5px;width:10px;height:10px;}.table .table_header_comparison .split_device_comparison{display:inline-block;margin:0 0 0 5px;}.table .table_header_comparison .split_device_comparison svg{margin:0;}.tmp .li_bottom{display:none;}.table_tab_title{padding:20px 0 20px 10px;}.table_tab_title li{display:inline-block;vertical-align:top;margin:0 20px 0 0;font-weight: bold;cursor:pointer;}.table_bloc{}.table_bloc.hide{display:none;}.table .line_master .cell_information{font-size:0;}.table .cell_information .element,.table .cell_chart_information .element{display:inline-block;vertical-align: top;margin:0 5px 0 0;font-size:0;text-transform:uppercase;font-weight:bold;line-height:12px;}.table .cell_information .element span,.table .cell_chart_information .element span{font-size:12px;}.table .query_information{position:relative;}.table .localisation_value{position: absolute;bottom:-8px;left:0;font-size:10px;}.cell_select{cursor: pointer;}.bloc_table_sort{position: absolute;right:10px;bottom:-43px;z-index: 15;}.bloc_table_sort .group_by_sort{padding-right: 0;}.bloc_entity_line{position: relative;}.cell .load_icon{margin:0 0 0 10px;}.cell .no_exist,.cell .no_create_date{width:14px;height:14px;}.cell .no_exist{fill:#fe0b09;cursor: pointer;}.cell_icon_data{text-align: left;padding-left:10px;}.cell:hover .column_icons_in{display:block;height:15px;overflow: initial;}.cell .icon_open_url,.cell .icon_tag{position: absolute;right:30px;top:10px;z-index:5;display:none;}[v-style="compact"] .cell .icon_open_url,[v-style="compact"] .cell .icon_tag{top:5px;}.cell .icon_tag{top:12px;right:55px;}.cell:hover .icon_open_url,.cell:hover .icon_tag{display:block;cursor: pointer;}[v-style="compact"] .tags_query{bottom:-1px;}[v-style="compact"] .tags_query li{font-size: 11px;line-height: 0;}[v-style="compact"] .tags_query .tag_icon{width: 8px;height:8px;}[v-style="compact"] .tags_query .tag_label{line-height: 9px;}[v-style="compact"] .area{height: 20px;}#button_action_top_left svg{width:16px;height:16px;margin:0 5px 0 0;}#button_action_top_left{position: absolute;bottom:0;left:10px;background:#ffffff;display:none;z-index:2;}#button_action_top_left.show{display:block;}#button_action_top_left li{display: inline-block;padding:5px 20px 0 0;cursor: pointer;}#button_action_top_left li,#button_action_top_left span{display: inline-block;line-height: 16px;vertical-align: top;}#button_action_top_left_count{color:#fe0b09;}.active_percentage_value{position: absolute;top:8px;right:10px;}.active_percentage_value .value{border:1px solid transparent;width:20px;height:20px;line-height: 20px;text-align:center;border-radius:5px;cursor:pointer;}.active_percentage_value .value:hover{border:1px solid #e6e6e6;background:#ffffff;}.table .cell_keyword{width:300px;}.table .header .cell_ranking,.table .header .cell_visibility,.table .header .cell_performance,.table .header .cell_pixel{width:250px;text-align:left;}.table.device_active_count1 .header .cell_ranking,.table.device_active_count1 .header .cell_visibility,.table.device_active_count1 .header .cell_performance,.table.device_active_count1 .header .cell_pixel{width:125px;text-align:left;}.table .cell_ranking,.table .cell_visibility,.table .cell_performance,.table .cell_pixel{width:35px;text-align:right;}.table .line_master .cell_ranking,.table .line_master .cell_visibility,.table .line_master .cell_performance,.table .line_master .cell_pixel{padding-left:0;}.table .cell_ranking.evolution,.table .cell_visibility.evolution,.table .cell_performance.evolution,.table .cell_pixel.evolution{width:40px;border-left:0;text-align:right;}.table .cell_ranking.average,.table .cell_visibility.average,.table .cell_performance.average,.table .cell_pixel.average{width:50px;text-align:right;}.table .cell_tops10,.table .cell_tops30,.table .cell_tops100,.table .cell_type,.table .cell_opportunities_all{width:100px;text-align:left;}.table.device_active_count1 .cell_tops10,.table.device_active_count1 .cell_tops30,.table.device_active_count1 .cell_tops100,.table.device_active_count1 .cell_type,.table.device_active_count1 .cell_opportunities_all{width:50px;text-align:left;}.table .cell_top_device{display:inline-block;vertical-align: top;width:50px;}.table .cell_yoyo_sum,.table .cell_yoyo_device{display:inline-block;vertical-align: top;}.table .header .cell_yoyo_device{width:55px;}.table .header .cell_yoyo_sum{width:30px;}.table .cell_yoyo_device{width:35px;}.table .line_master .cell_yoyo_device{padding-top:6px;}.table .cell_yoyo_sum{border-left:0;width:50px;}.table .cell_yoyo{width:170px;}.table.device_active_count1 .cell_yoyo{width:85px;}.table .cell_target_sum_left.cell_target_sum{border-left: 1px solid #e6e6e6;}.table .cell_target_sum,.table .cell_target_device{display:inline-block;vertical-align: top;}.table .cell_target_device{width:35px;}.table .line_master .cell_target_device{padding-top:6px;}.table .cell_target_sum{border-left:0;width:35px;padding-right: 10px;text-align:right;}.line .cell_target_sum.cell_target_sum_left{border-left:1px solid #e6e6e6;}.table .cell_target{width:210px;}.table.device_active_count1 .cell_target{width:105px;}.table .cell_url .icon_target_best,.table .cell_url .icon_target_medium,.table .cell_url .icon_target_null,.table .cell_url .icon_target{width:20px;margin:0 5px 0 0;cursor: pointer;}.table .cell_url .icon_target{display:none;}.table .cell_url:hover .icon_target{display:inline-block;}.table .cell_url .target_all{position: absolute;top:9px;right:0;background:#ffffff;}.table .cell_ranking_small{width:140px;}.table .cell_url_count{width:50px;}.table .value_url{width:330px;}.table .cell_graphic{width:170px;}.table .cell_url_query{width:778px;overflow:hidden;}.count_period2 .table .line_master .line:first-child .cell_url_query{font-weight: bold;}.table .cell_ctr,.table .cell_location{width:140px;}.table .cell_information{width:90px;}.table .cell_cpc{width:60px;}.table .cell_competition{width:60px;}.table .cell_bloc_natural_pixel{width:60px;}.table .header .line:first-child .cell_bloc_natural_pixel{width:120px;}.table .cell_serp_features{width:140px;}.table .header .line:first-child .cell_serp_features{width:280px;}.table .cell_evolution,.table .value_evolution{width:170px;}.table .cell_graphic{padding-top:0;}.table .header .cell_graphic{padding-top:12px;}.table .cell_volume_last,.table .value_volume_last,.table .cell_volume_month,.table .value_volume_month,.table .cell_volume_year,.table .value_volume_year{width:80px;}.table .cell_volume_historical{width:70px;}.table .line_master .cell_volume_historical{padding-top:4px;}.table .cell_seasonality{width:70px;}.table .cell_volume_last,.table .cell_volume_month,.table .cell_volume_year,.table .cell_average_basket,.table .cell_bloc_natural_pixel,.table .cell_competition,.table .cell_cpc{text-align:right;padding-right:10px;}.table .header .cell_bloc_natural_pixel{text-align: left;}.table .value_count_url{width:60px;}.table .chart{width:150px;}.table .volume{width:65px;text-align:right;}.table .icon_more_less{width:25px;}.table .cell_stat{width:240px;}.table .value_stat{width:55px;}.table .cell_value_ranking.value_stat{width:55px;}.table .cell_value_ranking_query{width:45px;}.table .value_stat_evolution{width:30px;}.table .value_stat_evolution svg{margin-left:0;}.table .value_stat_average{width:50px;padding-right:10px;}.table .header .value_stat_average{margin-left:-10px;}.table .cell_column.cell_stat .cell_in:nth-child(1){width:30px;text-align:right;}.table .cell_column.cell_stat .cell_in:nth-child(2){width:35px;text-align:right;font-weight: bold;}.table .cell_column.cell_stat .cell_in:nth-child(3){ width:30px; text-align:right;}.table .header .cell.cell_stat .cell_in:nth-child(1){width:60px;}.table.ranking_small .cell_ranking.value_stat_average,.table.ranking_small .cell_average_ranking {display:none;}.table.ranking_small .header .cell_ranking{width:170px;}.table.ranking_small.device_active_count1 .header .cell_ranking{width:85px;}.table.ranking_small .cell_ranking.evolution{width:50px;padding-right:10px;}.table .cell.cell_no_result{width:1179px;}.entity_bloc[v-style="compact"] .table .cell{padding-top:5px;min-height: 25px;}.entity_bloc[v-style="compact"] .cell .icon_target,.entity_bloc[v-style="compact"] .cell .icon_target_best,.entity_bloc[v-style="compact"] .cell .icon_target_medium,.entity_bloc[v-style="compact"] .cell .icon_target_null{width:12px;}.entity_bloc[v-style="compact"] .table .cell_url .target_all{top:4px;}#tags_list{position: absolute;top:100px;left:100px;z-index:1000000;background: #ffffff;box-shadow: 0px 0px 10px 0px #c8c8c8;padding: 0;border-radius: 3px;min-width: 100px;max-height: 500px;overflow: auto;}#tags_list .tags_select_apply_to{margin:10px 10px 15px 10px;}#tags_list .jscolor{width:100%;}#tags_list .tag{padding: 5px 15px 5px 10px;line-height: initial;border:1px #ffffff solid;border-radius: 100px;margin:10px 10px 0 10px;}#tags_list .tag:hover{cursor: pointer;}#tags_list .manage_button{text-align: center;border-top:1px solid #DDE5F4;margin:10px 0 0 0;padding:10px 10px 10px 10px;color:#1f9de1;cursor: pointer;}#tags_list li{padding: 5px 15px 5px 10px;border:1px solid #E7ECF7;margin:0 0 10px 0;}#tags_list .tags_list_color{border:0;color:#ffffff;}#tags_list .tags_list_color_div{width:30px;height:30px;overflow:hidden;display:inline-block;}#tags_list .tag_manage_ul{margin:10px 0 0 0;}#tags_list .tags_list_name{width:250px;display:inline-block;vertical-align: top;border:0;padding: 4px 0 5px 10px;color:#373741;}#tags_list .tag_manage_line{padding:0;border:0;margin:0;}#tags_list .tag_manage_line.set_delete{opacity: 0.5;background:#fa1a39;}#tags_list .tag_manage_line_in{display:inline-block;vertical-align: top;height:27px;overflow:hidden;border-radius: 5px;border: 1px solid #E7ECF7;background:#ffffff;margin: 7px 5px 7px 10px;}#tags_list .bloc_add_tag{border-top:1px solid #DDE5F4;margin:0;padding:15px 10px 10px 10px;}#tags_list .tags_list_input_bloc{border: 1px solid #E7ECF7;margin: 0 0 20px 0;padding: 10px 10px 5px 10px;border-radius: 5px;}#tags_list .tags_list_input_bloc .tags_list_color_div{margin-top:6px;}#tags_list .tags_list_input_bloc .tags_list_name{margin-top:6px;}#tags_list .tags_list_sort{display:none;}#tags_list .sorts,#tags_list .delete{display:inline-block;vertical-align: top;font-size:0;line-height: 0;margin:5px 5px 0 0;}#tags_list .sorts{margin:10px 0 0 0;}#tags_list .delete{margin:10px 10px 0 0;}#tags_list .sorts{width:32px;}#tags_list .delete{width:16px;}#tags_list .sorts svg{display:inline-block;width:16px;height:16px;fill:#000000;}#tags_list .delete svg{width:16px;height:16px;cursor:pointer;fill:#444444;}#tags_list .sorts svg.disabled{display:inline-block;height:0;}#tags_list .sorts svg:hover{opacity:0.25;cursor:pointer;}#tags_list .sort_up{transform: rotate(0deg);margin-bottom:1px;}#tags_list .sort_down{transform: rotate(180deg);margin-left:-3px;}.tags_query{position: absolute;bottom:1px;right:1px;font-size:0;list-style: none;cursor:pointer;z-index:4;}.tags_query li{display:inline-block;vertical-align: top;margin:0 0 0 5px;font-size:11px;border:0 solid #ffffff;padding:0;line-height: 9px;border-radius:10px;overflow:hidden;background:#e4edf4;}.tags_query .tag_icon{width:12px;height:12px;border-radius:20px;display:inline-block;line-height: 11px;border:1px solid #ffffff;vertical-align: middle;}.tags_query .tag_label{display:inline-block;margin-left:2px;line-height: 11px;vertical-align: middle;padding-right:4px;}.target_li_legend{width:14px;height:14px;border-radius:20px;margin-top:2px;}.url_target_graph_title{position:absolute;top:0;left:20px;width:20px;height:20px;}.graph_top .url_target_graph_title{left:0px;}#logo_login{margin:60px auto 0 auto;width:180px;text-align:center;display:block;}#top_right{position: absolute;top:10px;right:10px;}#bloc_top{margin:0;}body [v-component="header_right"] #top_list_options [v-permission="billing|write"],body [v-component="header_right"] #top_list_options [v-permission="users|write"],body [v-component="header_right"] #top_list_options .li_logout{padding:0;}body [v-component="header_right"] #top_list_options [v-permission="billing|write"] a,body [v-component="header_right"] #top_list_options [v-permission="users|write"] a,body [v-component="header_right"] #top_list_options .li_logout a{padding:10px 0 10px 10px;}#top_lang{position: absolute;top:10px;right:10px;padding: 5px 7px 5px 7px;border: 1px dotted #c0c0d2;border-radius: 3px;cursor:pointer;z-index:10;}#top_lang:hover{background:#f0f0f0;}#top_list_accounts_ul a{display:block;}.bg_type_rank1{background:#438bf1;}.bg_type_rank2{background:#31a54b;}.bg_type_rank3{background:#70de7f;}.bg_type_rank4{background:#f8e012;}.bg_type_rank5{background:#f1941d;}.bg_type_rank6{background:#e84c45;}.bg_type_rank7{background:#52e2df;}.bg_type_rank8{background:#cb15c4;}.bg_type_rank9{background:#fd8fd2;}.bg_type_rank10{background:#52c0f0;}.bg_type_rank11{background:#ccac00;}.bg_type_rank12{background:#7e5738;}#views_actions{position: absolute;right:0;top:20px;text-align:right;}#views_actions input[type="button"]{color:#ffffff;background:#1067ee;padding:8px 10px 8px 10px;border:0;border-radius:3px;font-family: 'Roboto';font-size: 14px;}#description{padding:35px 10px 15px 10px;border-radius:5px;margin:0 0 20px 0;}.button_create_view{vertical-align: top;margin:6px 0 0 15px;padding:0 0 0 15px;cursor: pointer;border-left:1px solid #DDE5F4;display:none !important;}[template="daily_dashboard"] .button_create_view,[template="daily_keywords"] .button_create_view{display:inline-block !important;}.button_create_view svg{width:12px;height:12px;}#views_list.views_list_configuration .menu_action_show {display:none;}#youtube_items li{display:inline-block;vertical-align: top;margin:0 20px 0 20px;border-radius:3px;overflow: hidden;}#youtube_items img{height:100px;}#bloc_login_youtube{text-align: center;margin:100px auto 0 auto;}#bloc_login_youtube p{margin:5px 0 20px 0;}[v-component="boards_list"] li{position: relative;}[v-component="boards_list"] li:hover{background:#e6e6e8;}[v-component="charts_entities"] .file{width:80px;height:80px;background-color:#f0f0f0;background-size:cover;vertical-align: top;display:inline-block;vertical-align: top;margin:10px;border-radius:5px;overflow:hidden;}[v-component="charts_entities"] .info{display:inline-block;width:180px;vertical-align: top;margin:10px 0 0 0;}[v-component="charts_entities"] .line{border-bottom:1px solid #e6e6e6;}[v-component="charts_entities"] .main .line:last-child{border-bottom:0;}[v-component="charts_entities"] .charts{display:inline-block;vertical-align:top;margin:10px 0 0 0;}[v-component="header_right"] #top_globe{transform: scale(0.5);display:inline-block;vertical-align: top;margin:-4px 0 0 -4px;}[v-component="header_right"] .top_lang_item{display:inline-block;vertical-align: top;height:12px;}[v-component="header_right"] .top_lang_item:first-child{font-size:0;}[v-component="header_right"] #top_list_accounts_search{width:260px;margin: 10px 10px 10px 10px ;font-size: 15px;outline: 0;padding: 5px 10px 5px 10px;color: #373741;font-family: 'Roboto';border: 1px solid #E7ECF7;}[v-component="header_right"] #user_no_picture, #account_no_picture{line-height: 40px;text-align: center;font-weight: bold;text-transform: uppercase;font-size: 16px;}[v-component="header_right"] #top_list_options{background:#F9FAFC;}[v-component="header_right"] #top_list_options li{border-top:1px solid #DDE5F4;padding:10px 0 10px 10px;vertical-align: middle;line-height: 20px;cursor:pointer;}[v-component="header_right"] #top_list_options li[v-permission="users|write"]{display:block;}[v-component="header_right"] #top_list_options li:hover{background:#f0f0f0;}[v-component="header_right"] #top_list_options a{display:block;}[v-component="header_right"] #top_list_options svg{width:16px;height:16px;display:inline-block;vertical-align: middle;margin:-1px 5px 0 0;}[v-component="header_right"] #top_list_options svg path{fill:#404040;}#user_no_picture.exist,[v-component="header_right"] #account_no_picture.exist{display:none;}#account_no_picture,[v-component="header_right"] #user_no_picture{text-transform: uppercase;width:40px;height:40px;border:2px solid #404040;background:#ffffff;border-radius:100px;text-align: center;line-height: 40px;font-weight: bold;}[v-component="header_right"] #top_list_accounts{max-height: 350px;overflow: auto;border-top:1px solid #DDE5F4;padding:5px 0 5px 0;}[v-component="header_right"] #profile_edit .label_field{display:none;}[v-component="header_right"] #top_list_accounts li{padding:7px 0px 7px 10px;cursor: pointer;}[v-component="header_right"] #top_list_accounts .selectedtrue{font-weight: bold;}[v-component="header_right"] #projects_entities_types{font-weight: 400;}[v-component="header_right"] #user_top_menu{position: absolute;top:60px;right:0;background:#ffffff;width:300px;border:1px solid #DDE5F4;color:#170C25;z-index:1000100;}[v-component="header_right"] #profile_edit{text-align:center;padding:10px 0 10px 0;}[v-component="header_right"] #profile_edit [m-form-resource] [field]{border:0;margin:0;}[v-component="header_right"] #profile_edit .submit{display: none;}[v-component="header_right"] #profile_edit .file_preview{width: 100px;height: 100px;background-size: cover;background-position: center top;border-radius: 100px;}[v-component="header_right"] #profile_edit_preview{margin:20px auto 20px auto;}[v-component="header_right"] #projects_entities_types h3{font-size:14px;padding:0;margin:0 0 10px 30px;font-weight: 500;}[v-component="header_right"] #projects_entities_types .sep{height:30px;}[v-component="header_right"] #projects_entities_types li{display:block;line-height:34px;padding:0 10px 0 10px;cursor:pointer;}[v-component="header_right"] #projects_entities_types li span{color:#373741;}[v-component="header_right"] #projects_entities_types li:hover{background:#f5f5f5;}[v-component="header_right"] #projects_entities_types .li{width:10px;height:10px;border-radius:10px;display:inline-block;vertical-align:middle;margin:0 10px 0 0;}[v-component="header_right"] #user_top{position: absolute;top:10px;right:0;}[v-component="lang_list"] #langs_background{position: fixed;top:0;left:0;right:0;bottom:0;background: rgba(255, 255, 255, 0.5);z-index:100;display:none;}[v-component="login_form"] #profil_in{background-size:cover;background-position: center top;}[v-component="login_form"] .profil{margin:0 auto 20px auto;display:block;width:139px;height:139px;}[v-component="login_form"] .bloc_login{position:relative;width:450px;margin:40px auto 0 auto;background:#ffffff;padding:20px 30px 30px 30px;border-radius:8px;}[v-component="login_form"] input[type="submit"]{background: #fe0b09;margin:30px auto 0 auto;}[v-component="login_form"] .bloc_login_create{width:500px;margin:20px auto 0 auto;text-align:center;}[v-component="lostpassword_form"] #profil_in{background-size:cover;background-position: center top;}[v-component="lostpassword_form"] .profil{margin:0 auto 20px auto;display:block;width:139px;height:139px;}[v-component="lostpassword_form"] .bloc_login{position:relative;width:450px;margin:40px auto 0 auto;background:#ffffff;padding:20px 30px 30px 30px;border-radius:8px;}[v-component="lostpassword_form"] input[type="submit"]{background: #fe0b09;margin:30px auto 0 auto;}[v-component="lostpassword_form"] .bloc_login_create{width:500px;margin:20px auto 0 auto;text-align:center;}[v-component="menu_entities"] .component_select{min-width:55px;margin:20px 0 0 0;}[v-component="menu_entities"] .component_select .value{border:1px solid #fe0b09;border-radius:8px;padding:10px;color:#fe0b09;overflow: hidden;white-space: nowrap;}[v-component="menu_entities"] .component_select .values li{cursor:pointer;}[v-component="menu_entities"] .selected{color:#fe0b09;}[v-component="menu_list"] svg{fill: #404040;display: inline-block;vertical-align: middle;margin:0;text-align:center;width:20px;height:20px;}[v-component="menu_list"] li{position: relative;display: block;color: #444444;vertical-align: middle;margin:0;}[v-component="menu_list"] .icon{width:20px;height:20px;display:inline-block;vertical-align: middle;margin:0;}[v-component="menu_list"] .more{position: absolute;top:0;right:0;}[v-component="menu_list"] .more svg{width:10px;height:10px;transform: rotate(270deg);}[v-component="menu_list"] .selected .more svg{transform: rotate(0deg);}[v-component="menu_list"] li.main{margin:0;font-weight:bold;border-top:1px solid #DDE5F4;height:0;overflow: hidden;}[v-component="menu_list"] .name{display:inline-block;vertical-align: middle;font-size:13px;margin:0 0 0 20px;}[v-component="menu_list"] li a{color:#170C25;display:block;}[v-component="menu_list"] #icon_min_max svg{width:21px;height:21px;margin:0;background:#ffffff;transform: rotate(180deg);transition-duration: 0.25s}[v-component="menu_list"] .sub{padding:12px 0 12px 30px;}[v-component="menu_list"] .sub.selected{display:block;}[v-component="menu_list"] .main_sep{border:0;}[v-component="menu_list"] .sub.sub_selected a{color:#fe0b09;}[v-component="menu_list"] .sub.sub_selected svg{fill:#fe0b09;}[v-component="menu_more"] li{height:34px;margin:10px 0 0 0;white-space: nowrap;}[v-component="menu_more"] svg{fill: #000000;width: 20px;height: 20px;display: inline-block;vertical-align: middle;margin: 5px 0 0 5px;text-align: center;}[v-component="menu_more"] .icon{display:inline-block;vertical-align: middle;}[v-component="menu_more"] .name{display:inline-block;vertical-align: middle;}[v-component="menu_more"] .icon{width:34px;height:34px;border-radius:8px;display:inline-block;vertical-align: middle;margin:0 10px 0 0;}[v-component="menu_more"] .name{color:#170C25;}[v-component="menu_projects"] [li-line-project="true"]{position: relative;}[v-component="menu_projects"] #menu_projects_list_bottom{text-align: left;padding:15px;}[v-component="menu_projects"] #menu_projects_list_bottom input{margin:0 15px 0 0;}[v-component="menu_projects"] #menu_values_entities{border-left:1px solid #dcdcdc;margin-left:20px;}[v-component="menu_projects"] #menu_values_projects{width:250px;display: inline-block;vertical-align: top;}[v-component="menu_projects"] #menu_values_entities{width:290px;display: inline-block;vertical-align: top;}[v-component="menu_projects"] .menu_project_line{}[v-component="menu_projects"] .checkbox{width:16px;height:16px;border:1px solid #DDE5F4;border-radius:5px;margin:0 5px 0 0;display:inline-block;}[v-component="menu_projects"] .selected .checkbox{background:#DDE5F4;}[v-component="menu_projects"] .component_select{min-width:55px;margin:20px 0 0 0;}[v-component="menu_projects"] .component_select .value{border:1px solid #fe0b09;border-radius:8px;padding:10px;color:#fe0b09;overflow: hidden;white-space: nowrap;}[v-component="menu_projects"] .component_select .values li{cursor:pointer;}[v-component="menu_projects"] .selected{font-weight: bold;}[v-component="menu_projects"] .menu_project_line_label{cursor: pointer;}[v-component="menu_projects"] .search{border:1px solid #E7ECF7;margin:10px 15px 0 15px;}[v-component="menu_projects"] .search input{padding:6px 10px 6px 10px;font-size: 15px;}[v-component="menu_projects"] .icon_pause{position: absolute;top:4px;right:0;}[v-component="menu_ressources"] #menu_account_ressources{padding:10px 30px 20px 30px;border-top:1px solid transparent;}[v-component="menu_ressources"] #menu_account_ressources:hover{background:#F9FAFC;border-top:1px solid #DDE5F4;}[v-component="menu_ressources"] #menu_account_ressources .main_title{display:inline-block;vertical-align: top;color:#170C25;}[v-component="menu_ressources"] #menu_account_ressources .item{margin:0 0 0 5px;display:inline-block;vertical-align: top;}[v-component="menu_ressources"] #menu_account_ressources .label{text-transform: uppercase;font-weight: bold;font-size:11px;}[v-component="menu_ressources"] #menu_account_ressources .value{font-weight: bold;}[v-component="menu_ressources"] #ressources_progression{border:2px solid #DDE5F4;background:#ffffff;padding:2px;border-radius: 10px;margin:5px 0 0 0;}[v-component="menu_ressources"] #ressources_progression_in{background:#83de70;height:10px;border-radius: 10px;}[v-component="menu_ressources"] #ressources_progression_in.width75{background:#fc9504;}[v-component="menu_ressources"] #ressources_progression_in.width90{background:#e84c45;}[v-component="menu_ressources"] #ressources_alert{background:#ea5457;color:#ffffff;padding:7px 10px 7px 10px;margin:10px 0 0 0;line-height: 16px;font-size:11px;border-radius: 5px;white-space: normal;}[v-component="menu_ressources"] #ressources_progression_in.widthmore100{background:#000000;}[v-component="menu_ressources"] #menu_account_ressources_info{white-space: nowrap;}[v-component="newpassword_form"] #profil_in{background-size:cover;background-position: center top;}[v-component="newpassword_form"] .profil{margin:0 auto 20px auto;display:block;width:139px;height:139px;}[v-component="newpassword_form"] .bloc_login{position:relative;width:450px;margin:40px auto 0 auto;background:#ffffff;padding:20px 30px 30px 30px;border-radius:8px;}[v-component="newpassword_form"] input[type="submit"]{background: #fe0b09;margin:30px auto 0 auto;}[v-component="newpassword_form"] .bloc_login_create{width:500px;margin:20px auto 0 auto;text-align:center;}[v-component="popup_affiliate"] .affiliate_a{position: absolute;top:10px;right:10px;cursor: pointer;font-size:12px;}[v-component="popup_affiliate"] #popup_affiliate_values{margin:20px 0 0 0;}[v-component="popup_affiliate"] #affiliate_sites .popup_cell:nth-child(1){width:286px;}[v-component="popup_affiliate"] #affiliate_sites .popup_cell:nth-child(2){width:100px;}[v-component="popup_affiliate"] #affiliate_sites .popup_cell:nth-child(3){width:100px;}[v-component="popup_affiliate"] #affiliate_requests .popup_cell:nth-child(1){width:100px;}[v-component="popup_affiliate"] #affiliate_requests .popup_cell:nth-child(2){width:318px;}[v-component="popup_affiliate"] #affiliate_requests .popup_cell:nth-child(3){width:100px;}[v-component="popup_affiliate"] .no_padding{padding:0;font-size:0;}[v-component="popup_affiliate"] .popup_cell svg{width:16px;height:16px;display:inline-block;vertical-align: top;margin:0 5px 0 0;}[v-component="popup_affiliate"] .status1{fill:#00c000;}[v-component="popup_affiliate"] .status0{fill:#d64534;}[v-component="popup_affiliate"] .statuswait{fill:#ffc71f;}[v-component="popup_affiliate"] .popup_cell{display:inline-block;vertical-align: top;}[v-component="popup_affiliate"] .delete{cursor: pointer;}[v-component="popup_affiliate"] .items{display:inline-block;vertical-align: top;margin:0 20px 20px 0;}[v-component="popup_affiliate"] .items .value{font-size:16px;font-weight: bold;}[v-component="popup_api"] #popup_api_key{margin-top:20px;}[v-component="popup_billing"] #popup_billing_alert_amount_min{background: #fa1a39;color: #ffffff;font-weight: bold;line-height: 20px;padding: 5px 7px 5px 7px;border-radius: 10px;}[v-component="popup_billing"] #total_ht_ttc{font-weight: bold;position: relative;border: 1px dotted #DDE5F4;margin: 20px 0 0 0;padding: 10px;line-height: 20px;cursor: pointer;}[v-component="popup_billing"] #total_ht_ttc strong{color:#fe0b09;}[v-component="popup_billing"] .item_billing{border:1px dotted #DDE5F4;margin:20px 0 0 0;padding:10px;}[v-component="popup_billing"] .item_billing h3{font-size:14px;margin:0 0 5px 0;padding:0;}[v-component="popup_billing"] input[type="checkbox"]{display:inline-block;}[v-component="popup_billing"] .popup_in #popup_billing_form form{border-bottom:0;}[v-component="popup_billing"] #popup_billing_form .submit{background: #e6e6e6;color: #404040;}.popup_in #popup_billing_credit_card form,.popup_in #popup_billing_paypal form,.popup_in #popup_billing_prepaid form,[v-component="popup_billing"] .popup_in #popup_billing_automatic form{border-top:0;margin-top:0;padding-top:10px;}#popup_billing_paypal,#popup_billing_prepaid,[v-component="popup_billing"] #popup_billing_automatic{display:none;}[v-component="popup_credit_audit_add"] .form_input_content{font-weight: bold;margin:20px 0 10px 0;}[v-component="popup_exports_add"] #popup_exports_add_params ul{margin:25px 0 0 0;}[v-component="popup_exports_add"] #popup_exports_add_params li{display: inline-block;vertical-align: top;margin:0 10px 10px 0;padding:5px 7px 5px 7px;background-color:#FFAA45;color:#ffffff;font-size:12px;border-radius:3px;}[v-component="popup_exports_list"] #exports_list_sites .popup_cell:nth-child(1){width:300px;}[v-component="popup_exports_list"] #exports_list_sites .popup_cell:nth-child(2){width:70px;}#exports_list_sites .popup_cell:nth-child(3),[v-component="popup_exports_list"] #exports_list_sites .popup_cell:nth-child(4){width:35px;}[v-component="popup_exports_list"] .no_padding{padding:0;font-size:0;}[v-component="popup_exports_list"] .popup_cell svg{width:16px;height:16px;display:inline-block;vertical-align: top;margin:0 5px 0 0;cursor:pointer;}[v-component="popup_mojitorank_add"] #mojitorank_4_pictures{margin:50px 0 0 0;}[v-component="popup_mojitorank_add"] .picture{width:350px;height:196px;margin:0 20px 20px 0;background-size:cover;background-position: center center;display:inline-block;}[v-component="popup_offer"] .action{color:#069AFE;text-align: right;margin:5px 0 0 0;}[v-component="popup_offer"] .item_offer{position: relative;border:1px dotted #DDE5F4;margin:20px 0 0 0;padding:10px;line-height: 20px;cursor:pointer;}[v-component="popup_offer"] .item_offer:hover{background:#f9fafc;}[v-component="popup_offer"] .item_offer strong{color:#fe0b09;}[v-component="popup_offer"] .item_offer .billing_ranking_type  strong{color:#ffffff;}[v-component="popup_offer"] .item_offer h3{font-size:14px;margin:0 0 5px 0;padding:0;}[v-component="popup_offer"] .offer_edit{position: absolute;top:10px;right:10px;color:#069AFE;}[v-component="popup_prepaid_add"] .form_input_content{font-weight: bold;margin:20px 0 10px 0;}[v-component="popup_ressources_add"] #offer_value{border:1px solid #DDE5F4;margin:20px 0 0 0;padding:10px;font-weight: bold;line-height: 20px;}[v-component="popup_ressources_add"] #offer_value strong{color:#fe0b09;}[v-component="popup_ressources_add"] .form_input_content{font-weight: bold;margin:20px 0 10px 0;}[v-component="popup_ressources_add"] #ressources_add_price{font-weight: normal;width:420px;font-size:0;}[v-component="popup_ressources_add"] #ressources_add_price .price_cell{position: relative;display:inline-block;vertical-align: top;padding:5px;border-left:1px solid #E7ECF7;font-size:13px;}[v-component="popup_ressources_add"] #ressources_add_price .price_cell:nth-child(1){width:138px;border-left:0;}#ressources_add_price .price_cell:nth-child(2),[v-component="popup_ressources_add"] #ressources_add_price .price_cell:nth-child(3){width:100px;}[v-component="popup_ressources_add"] #ressources_add_price .price_cell:nth-child(4){width:80px;text-align:right;}[v-component="popup_ressources_add"] #ressources_add_price .price_line{border:1px solid #E7ECF7;margin:-1px 0 0 0;display:none;}[v-component="popup_ressources_add"] #ressources_add_price .price_total{background:#f9fafc;font-weight: bold;display:block;}[v-component="popup_ressources_add"] #ressources_add_price .price_renew{display:block;}#ressources_add_price .price_total .price_cell:nth-child(1),[v-component="popup_ressources_add"] #ressources_add_price .price_renew .price_cell:nth-child(1){width:338px;}#ressources_add_price .price_total .price_cell:nth-child(2),[v-component="popup_ressources_add"] #ressources_add_price .price_renew .price_cell:nth-child(2){width:80px;text-align:right;}[v-component="popup_ressources_add"] #ressources_add_price .price_header{color:#FFAA45;font-weight: bold;background:#f9fafc;}[v-component="popup_ressources_add"] #ressources_add_price_more_detail{position: absolute;top:5px;right:10px;color:#069AFE;font-size:13px;cursor:pointer;}[v-component="popup_ressources_add"] #ressources_add_price_negative{font-size:13px;background:#38a715;padding:10px;color:#ffffff;border-radius:5px;margin-top:20px;margin-bottom:20px;}[v-component="popup_support_ticket_reply"] .reply_support{position: relative;margin:0 0 20px 0;font-size:13px;background:#F9FAFC;border-radius:10px;overflow: hidden;}[v-component="popup_support_ticket_reply"] .ticket_reply_header{background:#F9FAFC;padding:20px;}[v-component="popup_support_ticket_reply"] .reply_support .update_date{font-size:11px;}[v-component="popup_support_ticket_reply"] .reply_support .profile{width:40px;height:40px;margin:0 5px 0 0;}[v-component="popup_support_ticket_reply"] .ticket_reply_pictures img{margin:0 0 20px 20px;max-width:200px;max-height: 100px;}[v-component="popup_support_ticket_reply"] .support_name{font-weight: bold;margin:5px 0 5px 0;}.ticket_reply_header_left,[v-component="popup_support_ticket_reply"] .ticket_reply_header_right{display:inline-block;vertical-align: top;}[v-component="popup_support_ticket_reply"] .ticket_reply_content{padding:20px;line-height: 18px;}[v-component="popup_support_ticket_reply"] .reply_supporttrue{margin:0 0 20px 50px;}[v-component="popup_support_ticket_reply"] .reply_supportfalse{margin:0 50px 20px 0;}[v-component="popup_support_ticket_reply"] .popup_description_in{display:inline-block;vertical-align: top;}[v-component="popup_support_ticket_reply"] #ticket_stars{font-size:0;line-height: 0;cursor: pointer;display:inline-block;vertical-align: top;margin-top:-3px;}[v-component="popup_support_ticket_reply"] #ticket_stars li{position: relative;display:inline-block;width:20px;height:20px;}[v-component="popup_support_ticket_reply"] #ticket_stars ul{font-size:0;}[v-component="popup_support_ticket_reply"] #ticket_stars svg{fill:#f8cc02;width:20px;height:20px;}[v-component="popup_view_share"] #popup_view_share_list{margin:10px 0 0 0;font-size:0;}[v-component="popup_view_share"] #popup_view_share_list .profile{margin: 3px 3px 0 0;background:#dde7f1;color:#373741;border:0;}[v-component="query_evolution"] #query_evolution_background{position: fixed;top: 0;left: 0;right: 0;bottom: 0;background: rgba(255, 255, 255, 0.8);z-index: 11190;}[v-component="query_evolution"] #query_evolution{position: absolute;left: 50%;width:1010px;background:#ffffff;margin:0 0 0 -505px;padding:10px 0 10px 10px;box-shadow:1px 1px 15px 0px #bebebe;z-index: 11191;}[v-component="query_evolution"] [v-chart-type="graph_top_series"]{width:980px;margin-top:30px;}[v-component="query_evolution"] #evolution_show_calendar{text-align: right;padding:0 10px 0 0;}[v-component="query_evolution"] [v-chart]{margin-bottom:40px;}[v-component="query_evolution"] [v-chart] .area svg path:nth-child(2n):not(.grid) {stroke:#57a2ec;fill: rgba(87, 162, 236, 0.15);}[v-component="query_evolution"] [v-chart] .area svg path:nth-child(2n+1):not(.grid) {stroke:#cc4ead;fill: rgba(204, 78, 173, 0.15);}[v-component="query_evolution"] .evolution_cell{white-space: nowrap;}[v-component="query_evolution"] #query_evolution .query_information{margin:0 0 0 20px;text-transform: uppercase;}[v-component="query_evolution"] #query_evolution .query_information .element{display: inline-block;vertical-align: top;margin: 10px 5px 0 0;text-transform: uppercase;font-weight: bold;line-height: 12px;font-size:12px;}[v-component="signup_form"] #profil_in{background-size:cover;background-position: center top;}[v-component="signup_form"] .profil{margin:0 auto 20px auto;display:block;width:139px;height:139px;}[v-component="signup_form"] .bloc_login{position:relative;width:450px;margin:40px auto 0 auto;background:#ffffff;padding:20px 30px 30px 30px;border-radius:8px;}[v-component="signup_form"] input[type="submit"]{background: #fe0b09;}[v-component="signup_form"] #signup_offer{color:#fe0b09;font-size:11px;text-align:center;margin:20px auto 20px auto;line-height: 16px;}[v-component="signup_form"] .bloc_login_create{width:500px;margin:20px auto 0 auto;text-align:center;}#view_share_values,[v-component="views_list"] #view_share_info #view_share_values.menu_action_show{width: initial;margin-top:-15px;cursor: pointer;font-size:0;padding-right:5px;}[v-component="views_list"] #view_share_info{display:none;}[v-component="views_list"] #view_share_values .profile{margin-right:-7px;border:2px solid #ffffff;width:34px;height:34px;cursor:pointer;}[v-component="views_list"] #view_share_values .profile.no_bg{line-height: 30px;background:#dde7f1;color:#373741;font-size:13px;}[v-component="views_list"] #view_share_values .profile.hide{display:none;}[v-component="views_list"] .main{position: relative;font-size:0;white-space: nowrap;padding:0;margin-top:20px;margin-bottom:20px;border-bottom:1px solid #DDE5F4;}[v-component="views_list"] ul{vertical-align:top;font-size:0;display:inline-block;white-space: nowrap;}[v-component="views_list"] li{position: relative;display:inline-block;vertical-align:top;cursor:pointer;font-size:0;margin:0;height:28px;white-space: nowrap;}[v-component="views_list"] li a{color:#170C25;padding:2px 20px 7px 20px;margin:0;display:block;font-size:14px;}[v-component="views_list"] li[active="true"]{border-bottom:2px solid #fe0b09;}[v-component="views_list"] .edit input{margin:-5px 0 0 0;}[v-component="views_list"] #create_view{display:inline-block;vertical-align:top;vertical-align:top;margin:0px 0 0 20px;font-family: 'Roboto';font-size: 14px;color: #373741;padding: 4px 10px 4px 20px;border-radius:5px;background:#f9fafc;border:0;cursor:pointer;}[v-component="views_list"] .menu_action_show.icon{top:2px;}[v-component="views_list"] #view_description{width:980px;color:#585868;font-size:0;}[v-component="views_list"] #view_description textarea{width:1200px;}[v-component="views_list"] #view_description .show{font-size:13px;}[v-component="views_list"] #views_list_top{position: relative;width:1200px;margin-bottom: 20px;}[v-component="views_list"] #view_share{position: absolute;top:6px;right:0;font-size:13px;}[v-component="views_list"] #view_share svg{width :20px;height:20px;}[v-component="views_list"] #view_share_info{text-align:right;margin-top:5px;}#view_share_button,[v-component="views_list"] #view_share_list{display:inline-block;}#view_share_permissions,[v-component="views_list"] #view_share_users{display:block;}[v-component="views_list"] #view_share_permissions{margin:0 0 20px 0;}[v-component="views_list"] #view_share_popup li.activefalse{display:none;}[v-component="views_list"] #view_share_popup.manage li.activefalse{display:block;}[v-component="views_list"]  #view_share_popup .active{ display: none; }[v-component="views_list"] #view_share_popup.manage .active{display: inline-block;}[v-component="views_list"] #view_share_popup .owner{display: none;}[v-component="views_list"] #view_share_popup.manage .ownertrue .owner{display: inline-block;width: 13px;height: 13px;margin: 0 5px 0 0;}[v-component="views_list"] #view_share_popup.manage .ownertrue .owner path{fill:#444444;}[v-component="views_list"] #view_share_popup.manage .ownertrue .active{display:none;}[v-component="views_list"] #view_share_info .menu_action_show{display:inline-block;vertical-align: top;margin:0 0 0 7px;}[v-component="views_list"] #view_share_info .menu_action_show svg{cursor: pointer;}[template="app"] #pwa_button{box-shadow:1px 1px 5px 0px #bebebe;}[template="app"] @media screen and (max-device-width: 11in) {[template="app"] #pwa_button {border-bottom: 1px solid #DDE5F4;box-shadow: initial;}}[template="applogin"] #pwa_button{box-shadow:1px 1px 5px 0px #bebebe;opacity:1;}[template="audit_list"] .line .chart_cell .audit_icon_reload{position: absolute;top: 12px;right: 10px;cursor: pointer;width: 16px;height:16px;}[template="audit_list"] .line .chart_cell:nth-child(1){height:initial;}[template="audit_list"] .line .chart_cell{padding:12px 0px 0 10px;font-size:13px;min-height: 39px;}[template="audit_list"] .line .chart_cell:nth-child(2) svg{position: absolute;top:12px;right:10px;cursor: pointer;width:16px;height:16px;}[template="audit_list"] .line .chart_cell:nth-child(2) .icon_localisation{position: relative;top:initial;right:initial;width:10px;height:12px;}.line .chart_cell:nth-child(2) svg.icon_desktop,[template="audit_list"] .line .chart_cell:nth-child(2) svg.icon_mobile{position: initial;width:12px;height:12Px;}[template="audit_list"] .line .chart_cell:nth-child(1){width:454px;}[template="audit_list"] .line .chart_cell:nth-child(2){width:90px;}[template="audit_list"] .line .chart_cell:nth-child(3){width:100px;}[template="audit_list"] .line .chart_cell:nth-child(4){width:150px;}[template="audit_list"] .line .chart_cell:nth-child(5){width:100px;}[template="audit_list"] .line .chart_cell:nth-child(6){width:100px;}[template="audit_list"] .line .chart_cell:nth-child(7){width:100px;}[template="audit_list"] .line .chart_cell:nth-child(8){width:105px;}[template="audit_list"] .line .chart_cell svg{width:18px;height:18px;cursor: pointer;}[template="audit_list"] .line .value_stat_icon svg{width:10px;height:10px;}[template="audit_list"] .line .chart_cell .url_more svg{width:7px;height:7px;}.line .icon,[template="audit_list"] .line .icon_value{display:inline-block;vertical-align: top;}[template="audit_list"] .line .icon_value{margin:0 0 0 10px;}[template="audit_list"] .line [v-popup-open]{cursor: pointer;}[template="audit_list"] .with_id .line .chart_cell:nth-child(1){width:318px;}[template="audit_list"] .with_id .cell_split:nth-child(1){width:319px;}.with_id .line .chart_cell:nth-child(2),[template="audit_list"] .with_id .cell_split:nth-child(2){width:100px;}.with_id .line .chart_cell:nth-child(3),[template="audit_list"] .with_id .cell_split:nth-child(3){width:100px;background:#ffffff;}[template="audit_list"] .with_id .cell_split:nth-child(3){font-size:0;}[template="audit_list"] .with_id .cell_split:nth-child(3) .split_ranking{font-size:13px;}.with_id .line .chart_cell:nth-child(4),[template="audit_list"] .with_id .cell_split:nth-child(4){width:380px;background:#ffffff;}.with_id .line .chart_cell:nth-child(5),[template="audit_list"] .with_id .cell_split:nth-child(5){width:50px;background:#ffffff;}.with_id .line .chart_cell:nth-child(6),[template="audit_list"] .with_id .cell_split:nth-child(6){overflow: initial;width:170px;background:#ffffff;padding-top:0;}[template="audit_list"] .with_id .header .line .chart_cell:nth-child(6){background:none;padding-top:12px;}.with_id .line .chart_cell:nth-child(7),[template="audit_list"] .with_id .cell_split:nth-child(7){width:70px;text-align:right;}[template="audit_list"] .with_id .cell_chart_volume .chart_value_evolution{text-align: right;}[template="audit_list"] .with_id .cell_chart_volume .chart_value {font-weight: normal;}[template="audit_list"] #module_statistics .chart_statistics{display:inline-block;width:60px;}[template="audit_list"] #module_statistics .graph_volume{display:inline-block;}[template="audit_list"] #module_statistics .volume_chart{width:4px;border-top:1px solid #3bb0e3;}[template="audit_list"] .cell_chart_rank{padding-left:0;}[template="audit_list"] .line_split{margin:-35px 0 0 -960px;display:none;}[template="audit_list"] .line_split_in{position: relative;}[template="audit_list"] .cell_split{position: relative;display:inline-block;border-left:1px solid #e6e6e6;min-height:39px;padding:12px 0 0 10px;vertical-align: top;overflow:hidden;}.with_id .header .chart_cell:nth-child(3),.with_id .header .chart_cell:nth-child(4),[template="audit_list"] .with_id .header .chart_cell:nth-child(5){background:#F9FAFC;}[template="audit_list"] .chart_cell .chart svg{width:150px;height:35px;}[template="audit_list"] .line .chart_cell.cell_chart_urls{padding-top:0;}function audit_listinit(){Views.exec();if(!Router.getParam('id')) {var config = {type: 'projects',where_field: 'project_id',id: 'id',table: 'audits',module: 'audit_list',period: false,hide_label_first_column: false,columns: [{type: 'value', key: 'main', open: 'id', values: [{key: 'audit_name', label: Lang.get('audit')}],url: 'audit/list?id={id}'},{type: 'icon', key: 'export', action: true, icon: Lang.get('export') + Icon.export(), values: []},{type: 'value', key: 'queries_count', values: [{key: 'queries_count', label: Lang.get('keywords')}]},{type: 'value', key: 'status', action: true, values: [{key: 'status', label: Lang.get('status')}]},{type: 'value', key: 'exec_date', values: [{key: 'exec_date', label:Lang.get('update')}]},{type: 'value', key: 'exec_count', values: [{key: 'exec_count', label: Lang.get('treatment')}]},{type: 'value', key: 'create_date', values: [{key: 'create_date', label: Lang.get('creation')}]},{type: 'value', key: 'recurrence', values: [{key: 'recurrence', label: Lang.get('recurrence')}]},],sort: [{key: 'audit_name', label: Lang.get('audit')},{key: 'queries_count', label: Lang.get('keywords')},{key: 'create_date', label: Lang.get('creation')},{key: 'exec_date', label:Lang.get('update')},],filters: [{key: 'audit_name', label: Lang.get('audit')},{key: 'queries_count', label: Lang.get('keywords')},],};}else{var config = {type: 'audits',where_field: 'audit_id',id: 'id',table: 'auditsstatistics',module: 'audit_list',period: false,hide_label_first_column: false,columns: [{type: 'value', key: 'main', open: 'id', values: [{key: 'keywords', label: Lang.get('keywords')}]},{type: 'value', key: 'information', values: [{key: 'information', label: Lang.get('information')}]},{type: 'value', key: 'ranking', values: [{key: 'ranking', label: Lang.get('ranking')}]},{type: 'value', key: 'url', action: true, values: [{key: 'url', label: Lang.get('url')}]},{type: 'value', key: 'urls_count', values: [{key: 'urls_count', label: Lang.get('urls')}]},{type: 'value', key: 'urls', values: [{key: 'urls', label: Lang.get('evolution')}]},{type: 'value', key: 'volume', label:Lang.get('volume'), values: [{key: 'volume', label: Lang.get('volume_monthly')}]},],sort: [{key: 'keywords', label: Lang.get('keywords')},{key: 'ranking', label: Lang.get('ranking')},{key: 'url', label: Lang.get('url')},{key: 'urls_count', label: Lang.get('urls')},{key: 'volume', label: Lang.get('volume_monthly')},],filters: [{key: 'keywords', label: Lang.get('keywords')},{key: 'ranking', label: Lang.get('ranking')},{key: 'url', label: Lang.get('url')},{key: 'urls_count', label: Lang.get('urls')},{key: 'volume', label: Lang.get('volume_monthly')},],};}ModuleStatistics.run(config);if(!Router.getParam('id')){$('.button4').css({display:'inline-block'});$('.button4.with_id').css({display:'none'});}else{$('.button4').css({display:'none'});$('.button4.with_id').css({display:'inline-block'});}return true;}var audit_list_url_split = false;$(function(){$(document).on('click', '[template="audit_list"] .url_more', function(){if(!audit_list_url_split){$('[template="audit_list"] .line_split').css({display:'block'});audit_list_url_split = true;}else{$('[template="audit_list"] .line_split').css({display:'none'});audit_list_url_split = false;}});});function audit_listrun() {Header.projectsEntitiesTypesActive();setTimeout(function(){menu_projectsentities(true);});}function audit_listmakeTitleFilters(){var audit   = Db.selectOne('audits', [[{field:'id', value:Router.getParam('id')}]]);var last_exec = Db.selectOne('auditsexec', [[{field:'id_audit', value:audit.id}]], [{field:'id', order:'desc', type:'numeric'}]);var entity_default = Db.selectOne('entities', [[{field:'project_id', value:last_exec.project_id}]], [{field:'id', order:'asc', type:'numeric'}]);if(!init_exec && !Router.getParam('auditexec')) {var init_exec = Db.select('auditsexec', [[{field:'id_audit', value:audit.id}]], [{field: 'id', order: 'desc', type: 'numeric'}]);if(init_exec.length >= 2) {init_exec = init_exec[1];} else {init_exec = false;}}else{if(!init_exec) {var init_exec = Db.selectOne('auditsexec', [[{field: 'id',value: Router.getParam('auditexec')}]], [{field: 'id', order: 'desc', type: 'numeric'}]);}}var title = 'Position du ' + last_exec.create_date + ' (' + last_exec.create_time + ')';if(init_exec){title += '<br />Evolution par rapport au ' + init_exec.create_date + ' (' + init_exec.create_time + ')';}ModuleStatistics.filtersAuto();$('.header .cell_chart_ranking').attr('v-title', title);}function audit_listmain() {Calendar.open();return false;}[template="billing_bills"] .cell_id{display:none;}function billing_billsinit(){Views.exec();ConfigurationTable.sort = 'num';ConfigurationTable.order = 'desc';Templates.verifDbTablesExist(['bills'], function() {billing_billsrun();});return true;}function billing_billsrun(e=false) {if(e) {WorkerExec.reload(e);}var config = [{key:Router.getAction(),columns:[{key:'id', name:Lang.get('invoice'), type:'hide'},{key:'num', name:Lang.get('invoice'), type:'string', filter:'search'},{key:'price', name:Lang.get('total'), type:'numeric', filter:'search'},{key:'payment', name:Lang.get('payment'), type:'string'},{key:'date', name:Lang.get('date'), type:'string', filter:'search'},{key:'pdf', name:'PDF', type:'string'}]}];var values_select = Db.select('bills');var values = [];var value = false;for(var i=0, c=values_select.length;i<c;i++){value = values_select[i];if(typeof value != 'undefined') {values.push({'id':value.id,'num':'<a href="https://account.monitorank.com/files/bill/' + value.file + '" target="_blank">' + value.num + '</a>','price':value.price,'payment':value.payment,'date':value.date,'pdf':'<a href="https://account.monitorank.com/files/bill/' + value.file + '" target="_blank"><svg xmlns="http://www.w3.org/2000/svg" width="24" height="24" viewBox="0 0 24 24"><path d="M16 11h5l-9 10-9-10h5v-11h8v11zm1 11h-10v2h10v-2z"></path></svg></a>'},);}}$('#configuration_table').addClass('configuration_table_' + Router.getAction());ConfigurationTable.init(Router.getAction(), config, values);ConfigurationTable.makeFilter(Router.getAction());ConfigurationTable.make(Router.getAction(), 1, false, ConfigurationTable.sort, ConfigurationTable.order);}function billing_billsmain() {Calendar.open();return false;}function billing_payment_methodsinit(){Views.exec();ConfigurationTable.sort = 'name';ConfigurationTable.order = 'asc';Templates.verifDbTablesExist(['paymentmethods'], function() {billing_payment_methodsrun();});return true;}function billing_payment_methodsrun(e=false) {if(e) {WorkerExec.reload(e);}var config = [{key:Router.getAction(),columns:[{key:'id', name:'id', type:'hide'},{key:'name', name:Lang.get('name_the_card'), type:'string', filter:'search'},{key:'num', name:Lang.get('number'), type:'string', filter:'search'},{key:'expiration', name:Lang.get('expiry_date'), type:'numeric', filter:'search'},{key:'type', name:Lang.get('type'), type:'string'},]}];var values_select = Db.select('paymentmethods');var values = [];var value = false;for(var i=0, c=values_select.length;i<c;i++){value = values_select[i];if(typeof value != 'undefined') {if(value.master){var name = '<div style="display:inline-block;vertical-align:top;">' + value.name + '</div>';name += Icon.paymentMethodMaster();}else{var name = value.name;}values.push({'id':value.id,'name':name,'num':'**** '+value.num,'expiration':value.expiration,'type':value.type,},);}}$('#configuration_table').addClass('configuration_table_' + Router.getAction());ConfigurationTable.init(Router.getAction(), config, values);ConfigurationTable.makeFilter(Router.getAction());ConfigurationTable.make(Router.getAction(), 1, false, ConfigurationTable.sort, ConfigurationTable.order);}function billing_payment_methodsmain() {Calendar.open();return false;}function billing_prepaidinit(){Views.exec();ConfigurationTable.sort = 'date';ConfigurationTable.order = 'desc';Templates.verifDbTablesExist(['prepaid'], function() {billing_prepaidrun();});return true;}function billing_prepaidrun(e=false) {if(e) {WorkerExec.reload(e);}var config = [{key:Router.getAction(),columns:[{key:'id', name:'ID', type:'numeric'},{key:'price', name:Lang.get('total'), type:'numeric', filter:'search'},{key:'info', name:Lang.get('information'), type:'numeric'},{key:'date', name:Lang.get('date'), type:'string', filter:'search'},{key:'pdf', name:'PDF', type:'string'}]}];var values_select = Db.select('prepaid');var values = [];var value = false;for(var i=0, c=values_select.length;i<c;i++){value = values_select[i];if(typeof value != 'undefined') {var file = '';if(value.file){file = '<a href="https://account.monitorank.com/files/prepaid/' + value.file + '" target="_blank"><svg xmlns="http://www.w3.org/2000/svg" width="24" height="24" viewBox="0 0 24 24"><path d="M16 11h5l-9 10-9-10h5v-11h8v11zm1 11h-10v2h10v-2z"></path></svg></a>';value.info = '<a href="https://account.monitorank.com/files/prepaid/' + value.file + '" target="_blank">' + value.info + '</a>';}values.push({'id':value.id,'price':value.price,'info':value.info,'date':value.date,'pdf':file},);}}$('#configuration_table').addClass('configuration_table_' + Router.getAction());ConfigurationTable.init(Router.getAction(), config, values);ConfigurationTable.makeFilter(Router.getAction());ConfigurationTable.make(Router.getAction(), 1, false, ConfigurationTable.sort, ConfigurationTable.order);}function billing_prepaidmain() {Calendar.open();return false;}function configuration_alertsinit(){Views.exec();if(Router.getMethod() == 'daily' && Router.getAction() == 'alerts'){ModuleStatistics.forceReload();}if(Router.getMethod() == 'configuration' && Router.getAction() == 'alerts') {Templates.verifDbTablesExist(['projects', 'alerts'], function () {configuration_alertsrun();});}return true;}function configuration_alertsrun(e=false) {if(!Permission.userAccess('configuration|read')){return false;}if(e) {WorkerExec.reload(e);}if(Router.getMethod() == 'configuration' && Router.getAction() == 'alerts'){}else{daily_alertsinit();return false;}var projects_all= Db.select('projects', false, [{field:'name', sort:'asc', type:'string'}]);var projects_list = [];for(var i=0, c=projects_all.length;i<c;i++){projects_list.push({key:projects_all[i].name, label:projects_all[i].name});}var config = [{key:Router.getAction(),columns:[{key:'id', name:'ID', type:'numeric', more:'id'},{key:'name', name:Lang.get('name'), type:'string', filter:'search'},{key:'type', name:Lang.get('type'), type:'string'},{key:'project_id', name:Lang.get('project') + ' ID', type:'numeric'},{key:'project', name:Lang.get('project'), type:'string', filter:'list', filter_values:projects_list, vtitle:true},{key:'period', name:Lang.get('period'), type:'string', filter:'search'},{key:'alert_entities', name:Lang.get('websites'), type:'string', filter:'search'},{key:'users', name:'Utilisateurs', type:'string', filter:'search'},{key:'alert_thematics', name:Lang.get('themes'), type:'string', filter:'search', vtitle:true},],}];var values_select = Db.select('alerts');var values = [];var value = false;for(var i=0, c=values_select.length;i<c;i++){value = values_select[i];if(typeof value != 'undefined') {values.push({'id': value.id,'name': value.alert_name,'type': value.alert_type,'project_id': value.project_id,'project':value.project_name,'period':value.alert_period,'users':value.users,'alert_entities':value.alert_entities,'alert_thematics':value.alert_thematics,},);}}$('#configuration_table').addClass('configuration_table_' + Router.getAction());ConfigurationTable.init(Router.getAction(), config, values);ConfigurationTable.makeFilter(Router.getAction());ConfigurationTable.make(Router.getAction(), 1, false, ConfigurationTable.sort, ConfigurationTable.order);}function configuration_alertsmain() {Calendar.open();return false;}function configuration_auditsinit(){Views.exec();if(Router.getMethod() == 'configuration' && Router.getParam('id')){$('#button_action_top_left_checkbox_not_selected').css({display:'block'});$('[v-split-template="main"]').css({display:'none'});$('[v-split-template="id"]').css({display:'inline-block'});Templates.verifDbTablesExist(['projects', 'audits'], function() {Db.apiExec('audits/queries', function () {configuration_auditsrunIdAudit(Router.getParam('id'));}, false, 'get', {audit_id: Router.getParam('id')}, true);});}else{if(Router.getMethod() == 'audit' && Router.getAction() == 'list' && Router.getParam('id')){delete ModuleStatistics.api_list_exec[Router.getParam('id')];var url = Router.deleteParam('auditexec');Router.execUrl(url);}else {Db.apiExec('audits', function(){$('#button_action_top_left_checkbox_not_selected').css({display: 'none'});$('[v-split-template="main"]').css({display: 'inline-block'});$('[v-split-template="id"]').css({display: 'none'});Templates.verifDbTablesExist(['projects', 'audits'], function () {configuration_auditsrun();});});}}return true;}function configuration_auditsreload(id_audit=false){if(Router.getParam('id')){if(Router.getParam('id') == id_audit ||!id_audit) {configuration_auditsrunIdAudit(Router.getParam('id'));}}else{configuration_auditsrun();}}function configuration_auditsauditCreateNext(id_audit){configuration_auditsinit();Popup.show('audits_queries_add', {audit_id:id_audit}, true);}function configuration_auditsrun(e=false) {if(e) {WorkerExec.reload(e);}if(!Permission.userAccess('configuration|read')){return false;}if(Router.getMethod() == 'configuration' && Router.getAction() == 'audits'){if(Router.getParam('id')) {configuration_auditsrunIdAudit(Router.getParam('id'));return false;}}else{if(Router.getMethod() == 'audit' && Router.getAction() == 'list') {$('#module_statistics .bloc[v-load="true"]').attr('v-load', 'false');ModuleStatistics.execBlocs();return false;}}var projects_all= Db.select('projects', false, [{field:'name', sort:'asc', type:'string'}]);var projects_by_ids = {};var projects_list = [];for(var i=0, c=projects_all.length;i<c;i++){projects_by_ids[projects_all[i].id] = projects_all[i];projects_list.push({key:projects_all[i].name, label:projects_all[i].name});}var config = [{key:Router.getAction(),columns:[{key:'id', name:'ID', type:'numeric', filter:'search', more:'id'},{key:'audit_name', name:Lang.get('name'), type:'string', filter:'search'},{key:'exec_count', name:Lang.get('treatment'), type:'numeric', filter:'search'},{key:'exec_date', name:Lang.get('update'), type:'string', filter:'search'},{key:'project_id', name:Lang.get('project') + ' ID', type:'numeric'},{key:'project', name:Lang.get('project'), type:'string', filter:'list', filter_values:projects_list, vtitle:true},{key:'queries_count', name:Lang.get('keywords'), type:'numeric'},{key:'recurrence', name:Lang.get('recurrence'), type:'numeric', filter:'search'},{key:'status', name:Lang.get('status'), type:'string', filter:'search'},]}];var values_select = Db.select('audits');var values = [];var value = false;for(var i=0, c=values_select.length;i<c;i++){value = values_select[i];if(typeof value != 'undefined') {var ctr = Lang.get('by_default');if(value.ctr){ctr = value.ctr.slice(0, 10).join(', ');}var icon_reload = '<svg class="audit_icon_reload" v-popup-open="audits_exec" v-popup-reload="true" v-popup-params="' + btoa(JSON.stringify({ids:value.id})) + '" v-title="' + Lang.get('run_audit_update_it') + '" xmlns="http://www.w3.org/2000/svg" width="24" height="24" viewBox="0 0 24 24"><path d="M20.944 12.979c-.489 4.509-4.306 8.021-8.944 8.021-2.698 0-5.112-1.194-6.763-3.075l1.245-1.633c1.283 1.645 3.276 2.708 5.518 2.708 3.526 0 6.444-2.624 6.923-6.021h-2.923l4-5.25 4 5.25h-3.056zm-15.864-1.979c.487-3.387 3.4-6 6.92-6 2.237 0 4.228 1.059 5.51 2.698l1.244-1.632c-1.65-1.876-4.061-3.066-6.754-3.066-4.632 0-8.443 3.501-8.941 8h-3.059l4 5.25 4-5.25h-2.92z"></path></svg>';var status = '';switch(value.status){case 0:status = Lang.get('new') + ' ' + icon_reload;break;case 1:status = Lang.get('in_process');;break;case 2:status = Lang.get('in_process');;break;case 3:status = Lang.get('treaty') + ' ' + icon_reload;break;}var recurrence = Lang.get('none');if(value.recurrence > 0){recurrence = value.recurrence + ' ' + Lang.get('days');}values.push({'id': value.id,'audit_name': value.audit_name,'name_url':Config.app.url + 'configuration/audits?id=' + value.id,'exec_count':value.exec_count,'exec_date':value.exec_date,'project_id': value.project_id,'project':projects_by_ids[value.project_id].name,'queries_count': value.queries_count,'queries_count_url':Config.app.url + 'configuration/audits?id=' + value.id,'recurrence': recurrence,'status':status,},);}}$('#configuration_table').attr('class', 'table_information configuration_table_' + Router.getAction());$('h1').html(Lang.get('audits'));ConfigurationTable.init(Router.getAction(), config, values);ConfigurationTable.makeFilter(Router.getAction());ConfigurationTable.where = false;ConfigurationTable.make(Router.getAction(), 1, false, ConfigurationTable.sort, ConfigurationTable.order, false);}function configuration_auditsrunIdAudit(id_audit){id_audit = parseInt(id_audit);var config = [{key: Router.getAction(),columns: [{key: 'id', name: 'ID', type: 'numeric', more: 'project_id'},{key: 'keyword', name: Lang.get('keyword'), type: 'string', filter: 'search'},{key: 'service', name:Lang.get('service'), type: 'string', filter: 'search'},{key: 'version', name: 'Version', type: 'string', filter: 'search'},{key: 'device',name: Lang.get('device'),type: 'numeric',filter: 'list',filter_values: [{key: 1, label:Lang.get('desktop')}, {key: 2, label:Lang.get('mobile')}]},]}];var values_select = Db.select('audits_queries', [[{field:'audit_id', value:id_audit}]]);var values = [];var value = false;for(var i=0, c=values_select.length;i<c;i++){value = values_select[i];if(typeof value != 'undefined') {values.push({'id': value.id,'keyword': value.keyword,'service':ServiceLabel.getName(value.service),'version':value.version,'device':value.device,'audit_id':id_audit},);}}$('#configuration_table').attr('class', 'table_information configuration_table_' + Router.getAction() + '_queries');var audit = Db.selectOne('audits', [[{field:'id', value:Router.getParam('id')}]]);$('h1').html('Audit : ' + audit.audit_name);ConfigurationTable.init(Router.getAction() + '_queries', config, values);ConfigurationTable.makeFilter(Router.getAction() + '_queries');ConfigurationTable.make(Router.getAction() + '_queries', 1, false, ConfigurationTable.sort, ConfigurationTable.order, [[{field:'audit_id', value:id_audit}]]);}function configuration_auditsmain() {Calendar.open();return false;}function configuration_entitiesinit(){Views.exec();Templates.verifDbTablesExist(['projects', 'entities', 'entities_types'], function() {configuration_entitiesrun();});return true;}function configuration_entitiesrun(e=false) {if(!Permission.userAccess('configuration|read')){return false;}if(Router.getMethod() == 'configuration' && Router.getAction() == 'entities'){}else{WorkerExec.reload(e);return false;}var projects_all= Db.select('projects', false, [{field:'name', sort:'asc', type:'string'}]);var projects_by_ids = {};var projects_list = [];for(var i=0, c=projects_all.length;i<c;i++){projects_by_ids[projects_all[i].id] = projects_all[i];projects_list.push({key:projects_all[i].name, label:projects_all[i].name});}var config = [{key:Router.getAction(),columns:[{key:'id', name:'ID', type:'numeric', more:'id'},{key:'name', name:Lang.get('name'), type:'string', filter:'search'},{key:'entity_type', name:Lang.get('type'), type:'string', filter:'search'},{key:'project_id', name:Lang.get('project') + ' ID', type:'numeric'},{key:'project', name:Lang.get('project'), type:'string', filter:'list', filter_values:projects_list, vtitle:true},]}];var values_select   = Db.select('entities');var values_types= Db.select('entities_types');var types   = {};for(var i=0, c=values_types.length;i<c;i++){types[values_types[i].id] = values_types[i];}var values = [];var value = false;for(var i=0, c=values_select.length;i<c;i++){value = values_select[i];if(typeof value != 'undefined') {values.push({'id': value.id,'name': value.name,'entity_type': types[value.entity_type].name,'entity_type_color':'#' + types[value.entity_type].color,'project_id': value.project_id,'project':projects_by_ids[value.project_id].name,},);}}$('#configuration_table').addClass('configuration_table_' + Router.getAction());var where = false;if(Router.getParam('project')){where = [[{field:'project', value:decodeURI(decodeURI(Router.getParam('project')))}]];}ConfigurationTable.init(Router.getAction(), config, values);ConfigurationTable.makeFilter(Router.getAction());ConfigurationTable.make(Router.getAction(), 1, false, ConfigurationTable.sort, ConfigurationTable.order, where);}function configuration_entitiesmain() {Calendar.open();return false;}function configuration_entities_typesinit(){Views.exec();Templates.verifDbTablesExist(['entities', 'entities_types'], function() {configuration_entities_typesrun();});return true;}function configuration_entities_typesrun(e=false) {if(!Permission.userAccess('configuration|read')){return false;}if(e) {WorkerExec.reload(e);}if(Router.getMethod() != 'configuration'){return false;}if(Router.getAction() == 'entities') {configuration_entitiesrun();return true;}if(Router.getAction() != 'entities_types') {return true;}var config = [{key:Router.getAction(),columns:[{key:'id', name:'ID', type:'numeric', more:'id'},{key:'color', name:Lang.get('color'), type:'string', filter:'search'},{key:'name', name:Lang.get('name'), type:'string', filter:'search'},]}];var values_select= Db.select('entities_types');var values = [];var value = false;for(var i=0, c=values_select.length;i<c;i++){value = values_select[i];if(typeof value != 'undefined') {values.push({'id': value.id,'name': value.name,'color': value.color,'color_color':'#' + value.color},);}}$('#configuration_table').addClass('configuration_table_' + Router.getAction());ConfigurationTable.init(Router.getAction(), config, values);ConfigurationTable.makeFilter(Router.getAction());ConfigurationTable.make(Router.getAction(), 1, false, ConfigurationTable.sort, ConfigurationTable.order);}function configuration_entities_typesmain() {Calendar.open();return false;}function configuration_exportsinit(){Views.exec();Templates.verifDbTablesExist(['projects', 'exports'], function() {configuration_exportsrun();});return true;}function configuration_exportsrun(e=false) {if(!Permission.userAccess('configuration|read')){return false;}if(Router.getMethod() == 'configuration' && Router.getAction() == 'exports'){}else{if(Router.getMethod() == 'daily' && Router.getAction() == 'exports'){daily_exportsinit();}return false;}var projects_all= Db.select('projects');var projects_by_ids = {};for(var i=0, c=projects_all.length;i<c;i++){projects_by_ids[projects_all[i].id] = projects_all[i];}var config = [{key:Router.getAction(),columns:[{key:'id', name:'ID', type:'numeric', more:'id'},{key:'name', name:Lang.get('name'), type:'string', filter:'search', popup: 'exports_list'},{key:'entity_id', name:'Site ID', type:'numeric'},{key:'entity', name:Lang.get('website'), type:'string', filter:'search'},{key:'period', name:Lang.get('period'), type:'string', filter:'search'},{key:'type', name:Lang.get('type'), type:'string'},{key:'files', name:'Fichiers', type:'numeric', popup: 'exports_list'},{key:'exec_date', name:Lang.get('update'), type:'string'},{key:'repeat', name:Lang.get('recurrence'), type:'string'}]}];var values_select = Db.select('exports');var periods_all = Calendar.periodsAuto();var periods = {};for(var i=0, c=periods_all.length;i<c;i++){periods[periods_all[i].key] = periods_all[i];}var values = [];var value = false;for(var i=0, c=values_select.length;i<c;i++){value = values_select[i];if(typeof value != 'undefined') {var type = 'CSV';if(value.pdf){type = 'PDF';}if(value.html){type ='HTML';}var period = value.period;if(typeof periods[period] != 'undefined'){period = periods[period].name;}var repeat = '';if(value.repeat){repeat = Lang.get('yes');}if(value.status == 0){value.nb = '<div class="load_icon" v-title="En cours de traitement"></div>';}values.push({'id': value.id,'name': value.name,'entity_id': value.entity_id,'entity': value.entity_name,'period': period,'type':type,'files':value.nb,'exec_date':value.exec_date,'repeat':repeat},);}}$('#configuration_table').addClass('configuration_table_' + Router.getAction());ConfigurationTable.init(Router.getAction(), config, values);ConfigurationTable.makeFilter(Router.getAction());ConfigurationTable.make(Router.getAction(), 1, false, ConfigurationTable.sort, ConfigurationTable.order);}function configuration_exportsmain() {Calendar.open();return false;}function configuration_projectsinit(){Views.exec();Templates.verifDbTablesExist(['projects'], function() {configuration_projectsrun();});return true;}function configuration_projectsrun(e=false) {if(!Permission.userAccess('configuration|read')){return false;}if(e) {WorkerExec.reload(e);}if(Router.getMethod() == 'configuration' && Router.getAction() == 'projects'){}else{if(Router.getMethod() == 'daily' && Router.getAction() == 'dashboard') {daily_dashboardmain();}return false;}if(!Permission.userAccess('configuration|read')){return false;}var config = [{key:Router.getAction(),columns:[{key:'id', name:'ID', type:'numeric', more:'id'},{key:'name', name:Lang.get('name'), type:'string', filter:'search'},{key:'status', name:Lang.get('state'), type:'numeric', filter:'list', filter_values:[{key:1, label:'Actif'},{key:0, label:'En pause'}]},{key:'top100', name:'TOP', type:'numeric', filter:'list', filter_values:[{key:100, label:'100'},{key:50, label:'50'}]},{key:'favorites', name:Lang.get('favorites'), type:'numeric', filter:'list', filter_values:[{key:true, label:Lang.get('yes')},{key:false, label:Lang.get('no')}]},{key:'queries', name:Lang.get('keywords'), type:'numeric'},{key:'entities', name:Lang.get('websites'), type:'numeric'},{key:'ctr', name:'CTR', type:'string', filter:'search', vtitle:true},]}];var values_select = Db.select('projects');var values = [];var value = false;for(var i=0, c=values_select.length;i<c;i++){value = values_select[i];if(typeof value != 'undefined') {var ctr = Lang.get('by_default');if(value.ctr){ctr = JSON.parse(value.ctr).slice(0, 10).join(', ');}if(value.top100){var top100 = 100;}else{var top100 = 50;}values.push({'id': value.id,'name': value.name,'status': value.status,'top100': top100,'favorites': value.favorites,'queries': value.queries_count,'entities': value.entities_count,'queries_url':'configuration/queries?project=' + (value.name),'entities_url':'configuration/entities?project=' + (value.name),'ctr': ctr},);}}$('#configuration_table').addClass('configuration_table_' + Router.getAction());ConfigurationTable.init(Router.getAction(), config, values);ConfigurationTable.makeFilter(Router.getAction());ConfigurationTable.make(Router.getAction(), 1, false, ConfigurationTable.sort, ConfigurationTable.order);}function configuration_projectsmain() {Calendar.open();return false;}[template="configuration_queries"] .cell .icon_tag{right:10px;}function configuration_queriesinit(){Views.exec();Templates.verifDbTablesExist(['queries', 'projects', 'thematics', 'tags'], function() {configuration_queriesrun();});}function configuration_queriesrun(e=false){if(!Permission.userAccess('configuration|read')){return false;}if(Router.getMethod() == 'configuration' && Router.getAction() == 'queries'){}else{return false;}var thematics_all   = Db.select('thematics');var values_select   = Db.select('queries', false, [{field:'id', order:'asc', type:'numeric'}]);var projects_all= Db.select('projects', false, [{field:'name', sort:'asc', type:'string'}]);var projects_by_ids = {};var projects_list = [];for(var i=0, c=projects_all.length;i<c;i++){projects_by_ids[projects_all[i].id] = projects_all[i];projects_list.push({key:projects_all[i].name, label:projects_all[i].name});}var thematics   = {};for(var i=0, c=thematics_all.length;i<c;i++){thematics[thematics_all[i].id] = thematics_all[i];}var config = [{key:Router.getAction(),columns:[{key:'id', name:'ID', type:'numeric', more:'project_id'},{key:'keyword', name:Lang.get('keyword'), type:'string', filter:'search'},{key:'project_id', name:Lang.get('project') + ' ID', type:'numeric'},{key:'project', name:Lang.get('project'), type:'string', filter:'list', filter_values:projects_list, vtitle:true},{key:'service', name:Lang.get('service'), type:'string', filter:'search', vtitle:true},{key:'version', name:Lang.get('version'), type:'string', filter:'search'},{key:'device', name:Lang.get('device'), type:'numeric', filter:'list', filter_values:[{key:1, label:Lang.get('desktop')},{key:2, label:Lang.get('mobile')}]},{key:'thematics', name:Lang.get('themes'), type:'string', filter:'search', vtitle:true},{key:'volume_year', name:Lang.get('volume_annual'), type:'numeric'},{key:'location', name:Lang.get('location'), type:'string', filter:'search', vtitle:true},]}];var values = [];var value = false;var tags = Db.select('tags', false, [{field:'sort', order:'asc', type:'numeric'}]);var tags_by_id = {};if(tags){for(var it=0;it<tags.length;it++){tags_by_id[tags[it].id] = tags[it];}}for(var i=0, c=values_select.length;i<c;i++){value = values_select[i];var thematics_str = [];if(value.thematics) {var thematic_query = JSON.parse(value.thematics);for(var iv = 0, cv = thematic_query.length; iv < cv; iv++) {if(typeof thematics[thematic_query[iv]] != 'undefined') {thematics_str.push(thematics[thematic_query[iv]].name);}}}var ctr = Lang.get('by_default');if(value.ctr){ctr = value.ctr.slice(0, 10).join(', ');}var volume_year = 0;if(value.volume_historical && value.volume_historical.length == 12){for(var i2=0;i2<12;i2++){volume_year += value.volume_historical[i2].volume;}}var location = 'Aucune';if(value.localisation != 'all'){location = value.localisation;}values.push({'id':value.id,'keyword':value.keyword + tagsQueryShow(value, tags_by_id) + '<div class="icon_tag" v-action-show="tags_list" v-id-query="' + value.key + '"><svg xmlns="http://www.w3.org/2000/svg" width="24" height="24" viewBox="0 0 24 24"><path d="M9.776 2l11.395 11.395-7.78 7.777-11.391-11.391v-7.781h7.776zm.829-2h-10.605v10.609l13.391 13.391 10.609-10.604-13.395-13.396zm-3.191 7.414c-.781.782-2.046.782-2.829.001-.781-.783-.781-2.048 0-2.829.782-.782 2.048-.781 2.829-.001.782.783.781 2.047 0 2.829z"></path></svg></div>','project_id':value.project_id,'project':projects_by_ids[value.project_id].name,'service':ServiceLabel.getName(value.service),'version':value.version,'device':value.device,'thematics':thematics_str.join(', '),'volume_year':volume_year,'location':location,},);}var where = false;if(Router.getParam('project')){where = [[{field:'project', value:decodeURI(decodeURI(Router.getParam('project')))}]];}$('#configuration_table').addClass('configuration_table_' + Router.getAction());ConfigurationTable.init(Router.getAction(), config, values);ConfigurationTable.makeFilter(Router.getAction());ConfigurationTable.make(Router.getAction(), 1, false, ConfigurationTable.sort, ConfigurationTable.order, where);}function configuration_queriesmain() {Calendar.open();return false;}function configuration_thematicsinit(){Views.exec();if(Router.getMethod() == 'daily' && Router.getAction() == 'thematics'){ModuleStatistics.forceReload();}if(Router.getMethod() == 'configuration' && Router.getAction() == 'thematics') {Templates.verifDbTablesExist(['projects', 'thematics'], function () {configuration_thematicsrun();});}return true;}function configuration_thematicsrun(e=false) {if(!Permission.userAccess('configuration|read')){return false;}if(e) {WorkerExec.reload(e);}if(Router.getMethod() == 'configuration' && Router.getAction() == 'thematics'){}else{return false;}var projects_all= Db.select('projects', false, [{field:'name', sort:'asc', type:'string'}]);var projects_by_ids = {};var projects_list = [];for(var i=0, c=projects_all.length;i<c;i++){projects_by_ids[projects_all[i].id] = projects_all[i];projects_list.push({key:projects_all[i].name, label:projects_all[i].name});}var config = [{key:Router.getAction(),columns:[{key:'id', name:'ID', type:'numeric', more:'id'},{key:'name', name:Lang.get('name'), type:'string', filter:'search'},{key:'picture', name:'Image', type:'string'},{key:'project_id', name:Lang.get('project') + ' ID', type:'numeric'},{key:'project', name:Lang.get('project'), type:'string', filter:'list', filter_values:projects_list, vtitle:true},{key:'queries_count', name:Lang.get('keywords'), type:'numeric'},{key:'ctr', name:'CTR', type:'string', filter:'search', vtitle:true},],}];var values_select = Db.select('thematics');var values = [];var value = false;for(var i=0, c=values_select.length;i<c;i++){value = values_select[i];if(typeof value != 'undefined') {var ctr = Lang.get('by_default');if(value.ctr){ctr = value.ctr.slice(0, 10).join(', ');}var picture = '';if(value.picture){picture = '<div class="picture" style="background-image:url(\'' + Storage.getNameSize(value.picture, 40) + '\');"></div>';}values.push({'id': value.id,'name': value.name,'picture': picture,'project_id': value.project_id,'project':projects_by_ids[value.project_id].name,'queries_count': value.queries_count,'ctr':ctr,},);}}$('#configuration_table').addClass('configuration_table_' + Router.getAction());ConfigurationTable.init(Router.getAction(), config, values);ConfigurationTable.makeFilter(Router.getAction());ConfigurationTable.make(Router.getAction(), 1, false, ConfigurationTable.sort, ConfigurationTable.order);}function configuration_thematicsmain() {Calendar.open();return false;}function configuration_usersinit(){Views.exec();if(!Permission.userAccessHome('users|read')){return false;}Templates.verifDbTablesExist(['users', 'usersgroups'], function() {configuration_usersrun();});return true;}function configuration_userswsUpdate(email, id_account){var user= Db.selectOne('useraccount', [[{field:'type', value:'user'}]]);var account = Db.selectOne('useraccount', [[{field:'type', value:'account'}]]);if(email == user.email && account.id_account == id_account){Notification.open('Un administrateur a modifié vos projets ou droits d\'accès.<br />Vous allez être déconnecté dans quelques secondes.<br /><br />Vous pourrez ensuite vous reconnecter.', false, false);setTimeout(function(){document.location.href = Config.app.url + '?logout';}, 5000);return false;}configuration_usersrun();}function configuration_usersrun(e=false) {if(!Permission.userAccess('configuration|read')){return false;}if(e) {WorkerExec.reload(e);}if(Router.getMethod() == 'configuration' && (Router.getAction() == 'users' ||Router.getAction() == 'usersgroups')){}else{return false;}if(Router.getMethod() == 'configuration' && Router.getAction() == 'usersgroups'){configuration_usersgroupsinit();return false;}var usersgroups_list= Db.select('usersgroups');var usersgroups = [];var usersgroups_by_id   = {};for(var i=0, c=usersgroups_list.length;i<c;i++){usersgroups.push({key:usersgroups_list[i].name, label:usersgroups_list[i].name});usersgroups_by_id[usersgroups_list[i].id] = usersgroups_list[i];}var config = [{key:Router.getAction(),columns:[{key:'id', name:'ID', type:'numeric', more:'id'},{key:'email', name:Lang.get('email'), type:'string', filter:'search'},{key:'usersgroups', name:Lang.get('group'), type:'string', filter:'list', filter_values:usersgroups},{key:'projects', name:Lang.get('projects'), type:'string', filter:'search'},{key:'inherited', name:Lang.get('legacy'), type:'string', filter:'list', filter:'search'}]}];var values_select = Db.select('users');var values = [];var value = false;for(var i=0, c=values_select.length;i<c;i++){value = values_select[i];if(typeof value != 'undefined') {var inherited = '';var inherited_title = false;if(value.inherited){inherited   = value.inherited.join(', ');inherited_title = value.inherited.join('<br />');}var projects_title  =  Lang.get('all');var projects= Lang.get('all');if(value.projects){projects_title  = value.projects_name.join('<br />');projects= value.projects.length;}values.push({'id': value.id,'email': value.email,'usersgroups': usersgroups_by_id[value.id_permission].name,'projects':projects,'projects_title':projects_title,'inherited':inherited,'inherited_title':inherited_title,},);}}$('#configuration_table').addClass('configuration_table_' + Router.getAction());ConfigurationTable.init(Router.getAction(), config, values);ConfigurationTable.makeFilter(Router.getAction());ConfigurationTable.make(Router.getAction(), 1, false, ConfigurationTable.sort, ConfigurationTable.order);}function configuration_usersmain() {Calendar.open();return false;}function configuration_usersgroupsinit(){Views.exec();if(!Permission.userAccessHome('users|read')){return false;}Templates.verifDbTablesExist(['usersgroups'], function() {configuration_usersgroupsrun();});return true;}function configuration_usersgroupsrun(e=false) {if(!Permission.userAccess('configuration|read')){return false;}if(e) {WorkerExec.reload(e);}if(Router.getMethod() == 'configuration' && (Router.getAction() == 'usersgroups' ||Router.getAction() == 'usersgroups')){}else{return false;}if(Router.getMethod() == 'configuration' && Router.getAction() == 'users'){configuration_usersinit();return false;}var config = [{key:Router.getAction(),columns:[{key:'id', name:'ID', type:'numeric', more:'id'},{key:'root', name:Lang.get('protected'), type:'string'},{key:'name', name:Lang.get('name'), type:'string', filter:'search'},{key:'count_users', name:Lang.get('users'), type:'numeric'},{key:'default_rights', name:Lang.get('future_features'), type:'string', filter:'search'},{key:'rights', name:Lang.get('rights'), type:'string', filter:'search'}]}];var values_select = Db.select('usersgroups');var values = [];var value = false;for(var i=0, c=values_select.length;i<c;i++){value = values_select[i];if(typeof value != 'undefined') {var ctr = Lang.get('by_default');if(value.ctr){ctr = JSON.parse(value.ctr).slice(0, 10).join(', ');}var root = '';if(value.root){root = '<svg class="icon" xmlns="http://www.w3.org/2000/svg" width="24" height="24" viewBox="0 0 24 24"><path d="M6 8v-2c0-3.313 2.687-6 6-6 3.312 0 6 2.687 6 6v2h-2v-2c0-2.206-1.795-4-4-4s-4 1.794-4 4v2h-2zm-3 2v14h18v-14h-18z"/></svg>';}var default_rights = Lang.get('reading_and_writing');switch(value.default_rights){case 2:default_rights = Lang.get('reading');break;case 3:default_rights = Lang.get('no_access');break;}var values_text = '<ul class="usersgroups_rights">';for(var it=0, ct=value.values_text.length;it<ct;it++){values_text += '<li>' + value.values_text[it] + '</li>';}values_text += '</ul>';var values_title= value.values_text.join('<br />');if(value.root){values_text = Lang.get('all');values_title = Lang.get('super_administrator_with_access_all_features');}values.push({'id': value.id,'root': root,'name': value.name,'count_users': value.count_users,'default_rights': default_rights,'rights':values_text,'rights_title':values_title},);}}$('#configuration_table').addClass('configuration_table_' + Router.getAction());ConfigurationTable.init(Router.getAction(), config, values);ConfigurationTable.makeFilter(Router.getAction());ConfigurationTable.make(Router.getAction(), 1, false, ConfigurationTable.sort, ConfigurationTable.order);}function configuration_usersgroupsmain() {Calendar.open();return false;}[template="daily_alerts"] .line .chart_cell:nth-child(1){height:initial;}[template="daily_alerts"] .line .chart_cell{padding:12px 0px 0 10px;font-size:13px;min-height: 39px;}[template="daily_alerts"] .line .chart_cell:nth-child(1){width:278px;}[template="daily_alerts"] .line .chart_cell:nth-child(2){width:45px;}[template="daily_alerts"] .line .chart_cell:nth-child(3){width:90px;}[template="daily_alerts"] .line .chart_cell:nth-child(4){width:100px;}[template="daily_alerts"] .line .chart_cell:nth-child(5){width:210px;}[template="daily_alerts"] .line .chart_cell:nth-child(6){width:155px;}[template="daily_alerts"] .line .chart_cell:nth-child(7){width:170px;}[template="daily_alerts"] .line .chart_cell:nth-child(8){width:150px;}[template="daily_alerts"] .line .chart_cell svg{width:18px;height:18px;cursor: pointer;}[template="daily_alerts"] .line .cell_chart_alert_entities svg{width:10px;height:10px;}[template="daily_alerts"] .line .value_stat_icon svg{width:10px;height:10px;}function daily_alertsinit(){Views.exec();if(Router.getParam('id')){var alert_params = {alert_id:Router.getParam('id')};if(Router.getParam('entity_id')){alert_params.entity_id = Router.getParam('entity_id');}Templates.verifDbTablesExist(['views'], function() {Router.execApi('alerts/redir', 'get', function(data){var date_init   = data.alert_period.init;var date_end= data.alert_period.end;var url = data.url;$('#calendar_period option[value="' + date_init + '|' + date_end + '|' + data.alert_period.key + '"]').attr('selected', 'selected');Calendar.submitResult(date_init, date_end, true);var view = Db.select('views', [[{field:'id', value:'alert_email'}]]);if(!view){Db.insert('views', {id:'alert_email',config:data.config,description:'Vue temporaire pour l\'affichage du détail de votre alerte email',hide:false,id_customer:0,id_duo:'alert_email',name:'Alerte email',owner:true,parent:'daily|keywords',selected:true,share:'["permissionprivate"]'});}else{Db.update('views', [{field:'config', value:data.config}], [[{field:'id', value:'alert_email'}]]);}if(Router.getParam('_project')){url += '&_project=' + Router.getParam('_project');}if(Router.getParam('_entity_type')){url += '&_entity_type=' + Router.getParam('_entity_type');}if(Router.getParam('_entity')){url += '&_entity=' + Router.getParam('_entity');}Router.execUrl('daily/keywords?view=alert_email' + url);}, alert_params);});return false;}var config = {type: 'projects',where_field: 'project_id',id: 'id',table: 'alerts',module: 'daily_alerts',period: false,hide_label_first_column: false,columns: [{type: 'value', key: 'main', values: [{key: 'alert_name', label: Lang.get('alert', false, true)}],url: 'daily/alerts?id={id}'},{type: 'value', key: 'icon_statistics', values: [{key: 'alert_type', label: Lang.get('stats')}],url: 'daily/alerts?id={id}'},{type: 'value', key: 'alert_type', values: [{key: 'alert_type', label: Lang.get('type')}]},{type: 'value', key: 'alert_period', values: [{key: 'alert_period', label: Lang.get('period')}]},{type: 'value', key: 'alert_entities', title:true, values: [{key: 'alert_entities', label: Lang.get('websites')}]},{type: 'value', key: 'users', values: [{key: 'users', label: Lang.get('recipients')}]},{type: 'value', key: 'alert_thematics', title:true, values: [{key: 'alert_thematics', label: Lang.get('themes')}]},{type: 'value', key: 'project_name', values: [{key: 'project_name', label: Lang.get('project')}]},],sort: [{key: 'alert_name', label: Lang.get('alert', false, true)},{key: 'create_date', label: Lang.get('creation')},{key: 'alert_type', label: Lang.get('type')},{key: 'alert_thematics', label: Lang.get('themes')},],filters: [{key: 'alert_name', label: Lang.get('audit')},{key: 'alert_entities', label: Lang.get('websites')},{key: 'alert_thematics', label: Lang.get('themes')},{key: 'alert_period', label: Lang.get('period')},],};ModuleStatistics.run(config);return true;}function daily_alertsrun() {}function daily_alertsmain() {Calendar.open();Header.projectsEntitiesTypesActive();setTimeout(function(){menu_projectsentities(true);});return false;}$(document).on('click', '#popup_alerts_add_form [field="entities"] *', function() {var values = $('#popup_alerts_add_form [m-form-field="entities"]').val().split(',');var o = $('#popup_alerts_add_form [field="split_entities"]');if(values.length >= 2){o.css({display:'block'});}else{o.css({display:'none'});}});[template="daily_competition"] .line .chart_cell:nth-child(1){width:245px;padding:12px 0px 0 10px;font-size:13px;min-height: 39px;}function daily_competitioninit(){Views.exec();var config = {type:'projects',where_field:'project_id',id:'id',table:'competition',module:'daily_competition',period:false,hide_label_first_column:false,columns:[{type:'value', key:'site', values:[{key:'website', label:Lang.get('website')}]},{type:'chart', key:'ranking', chart_max_value:100, values:[{key:'ranking',  stat:'ranking', label:Lang.get('ranking'), reverse:true}]},{type:'chart', key:'visibility', chart_max_value:false, values:[{key:'performance', stat:'performance', label:Lang.get('performance'), reverse:false},{key:'visibility', stat:'visibility', label:Lang.get('visibility'), reverse:false},]},{type:'chart', key:'tops', chart_max_value:false, values:[{key:'top10', stat:'top10', label:Lang.get('top') + '10', reverse:false, stroke:'#fc9504', fill:'rgba(250,216,172,1)'},{key:'top3', stat:'top3', label:Lang.get('top') + '3', reverse:false, stroke:'#f3c341', fill:'rgba(251,242,217,1)'},{key:'top1', stat:'top1', label:Lang.get('top') + '1', reverse:false, stroke:'#83de70', fill:'rgba(228,251,223,1)'},]},{type:'chart', key:'types', chart_max_value:false, values:[{key:'only_type9', stat:'only_type9', label:Lang.get('paa'), reverse:false},{key:'only_type8', stat:'only_type8', label:Lang.get('zero_position'), reverse:false},]},{type:'chart', key:'types', chart_max_value:false, values:[{key:'only_type12', stat:'only_type12', label: Lang.get('videos'), reverse:false},{key:'only_type4', stat:'only_type4', label:Lang.get('images'), reverse:false},]},],sort:[{key:'ranking', label:Lang.get('ranking')},{key:'visibility', label:Lang.get('visibility')},{key:'performance', label:Lang.get('performance')},{key:'top1', label:Lang.get('top') + '1'},{key:'top3', label:Lang.get('top') + '3'},{key:'top10', label:Lang.get('top') + '10'},{key:'only_type8', label:Lang.get('zero_position')},{key:'only_type9', label:Lang.get('paa')},{key:'only_type4', label:Lang.get('images')},{key:'only_type12', label: Lang.get('videos')},],filters:[{key:'website', label:Lang.get('website')},{key:'ranking', label:Lang.get('ranking')},{key:'visibility', label:Lang.get('visibility')},{key:'performance', label:Lang.get('performance')},{key:'tops10', label:Lang.get('top') + '10'},{key:'only_type8', label:Lang.get('zero_position')},{key:'only_type9', label:Lang.get('paa')},{key:'only_type4', label:Lang.get('images')},{key:'only_type12', label: Lang.get('videos')},],};ModuleStatistics.run(config);return true;}function daily_competitionrun() {}function daily_competitionmain() {Calendar.open();Header.projectsEntitiesTypesActive();setTimeout(function(){menu_projectsentities(true);});return false;}[template="daily_dashboard"] .chart_cell{min-height:84px;}[template="daily_dashboard"] .table_charts .header .file.file_label{font-size: 13px;height:28px;margin-top:10px;border-radius:0;}[template="daily_dashboard"] .table_charts .header .file{border-bottom:1px solid #DDE5F4;}[template="daily_dashboard"] body .header .file.file_label .value_stat_icon .icon_sort_desc{margin-top:2px;}[template="daily_dashboard"] #filters_entities_types ul{margin:2px 0 0 0;}[template="daily_dashboard"] #filters_entities_types li{padding:8px 15px 8px 10px;line-height: initial;}[template="daily_dashboard"] #filters_entities_types li:first-child{font-weight: bold;}[template="daily_dashboard"] #header_description{margin-top:1px;}[template="daily_dashboard"] .wait{height:80px;}[template="daily_dashboard"] .graphic{width:140px;height:80px;border: 1px solid #e6e6e6;border-radius: 4px;margin: 0 20px 20px 0;padding:5px;display:inline-block;vertical-align: top;}[template="daily_dashboard"] .file{width:75px;height:75px;background-color:#F9FAFC;background-size:cover;background-position: top center;background-repeat: no-repeat;vertical-align: top;display:inline-block;vertical-align: top;margin:5px 0 0 5px;overflow:hidden;border-radius:5px;cursor:pointer;}[template="daily_dashboard"] .header .file{width:240px;}[template="daily_dashboard"] .info{display:inline-block;width:128px;vertical-align: top;margin:10px 0 0 0;overflow:hidden;}[template="daily_dashboard"] .line{border-bottom:1px solid #DDE5F4;}[template="daily_dashboard"] .line.header{border-bottom:0;}[template="daily_dashboard"] .main .line:last-child{border-bottom:0;}[template="daily_dashboard"] .charts{display:inline-block;vertical-align:top;margin:10px 0 0 0;}[template="daily_dashboard"] .header .label{font-size:22px;font-weight: 400;}[template="daily_dashboard"] .graph_top{padding-bottom:24px;}[template="daily_dashboard"] .group_by_sort{padding:0 10px 15px 0;}function daily_dashboardinit(){var user_param = UserParam.get('views_filters');if(user_param){user_param = JSON.parse(user_param);}var force_param = false;Views.setLastView();Views.exec();return true;}function daily_dashboardmain() {Calendar.open();if(Router.getParam('view')) {Views.active(Router.getParam('view'));Header.projectsEntitiesTypesActive();setTimeout(function(){daily_dashboardprojects();});}return false;}function daily_dashboardfiltersAuto(){if(Router.getParam('view')) {Filters.makeHtmlAuto(Router.getParam('view'));}return true;}function daily_dashboardmakeSelected(value){if(value){return [{result_selected:'selected="selected"'}];}return [{result_selected:''}];}function daily_dashboardviewProjectNoConfig(id_project){var html = '<div class="bloc_empty_data">' +'<div class="description">' + Lang.get('your_project_is_not_configured') + '</div>' +'<div class="button4" v-popup-open="entities_add" v-popup-reload="true" v-popup-params="' + btoa(JSON.stringify({project_id:id_project, configrun:true})) + '">' + Lang.get('configure_project') + '</div>' +'</div>';return html;}function daily_dashboardviewProjectNoQueries(id_project){var html = '<div class="bloc_empty_data bloc_no_queries">' +'<div class="description">' + Lang.get('no_keywords_in_the_project') + '</div>' +'<div class="button4" v-popup-open="queries_add" v-popup-reload="true" v-popup-params="' + btoa(JSON.stringify({project_id:id_project, configrun:true})) + '">' + Lang.get('create_keyword') + '</div>' +'</div>';return html;}function daily_dashboardviewNoStats(){var html = '<div class="bloc bloc_empty_data">' +'<div class="description">' + Lang.get('no_statistics_are_pinned_in_view') + '</div>' +'<div class="button4" v-popup-open="chart_pin" v-popup-params="' + btoa(JSON.stringify({view: Router.getParam('view')})) + '">' + Lang.get('pin_statistic') + '</div>' +'</div>';$('#rankings_charts').html(html);}function daily_dashboardentitiesTypes(){var values = Db.select('entities_types');var ids = Router.getParam('_entity_type');if(ids) {ids = ids.split(',');var entities = [];for(var i = 0, c = values.length; i < c; i++) {if(ids.indexOf(''+values[i].id) != -1) {entities.push(values[i].name);}}if(entities.length > 0){$('#entities_types_all_value').html(entities.join(', '));}return values;}$('#entities_types_all_value').html(Lang.get('all_websites'));return values;}function daily_dashboardentities(){}function daily_dashboardprojects(){Templates.verifDbTablesExist(['projects', 'entities', 'entities_types', 'charts', 'views', 'permissions', 'users', 'thematics'], function() {var view = Views.get(Router.getParam('view'));var html = '';var where = Db.makeWhereProjectsByUrl([]);if(where.length == 1 && where[0] == false){where = false;}var projects = Projects.list(false, 'all', where);if(view.config.charts.length == 0){daily_dashboardviewNoStats();return true;}if(projects){for(var ip=0, cp=projects.length;ip<cp;ip++){var project = projects[ip];var id_worker   = Router.getMethod() + '_' + Router.getAction() + '_worker_rankings' + view.id + '_' + project.id;var where   = [[{field:'project_id', value:project.id}]];html += Workers.initScroll(id_worker, 'rankings', {project_id:project.id,view:view,periods:Period.list(),exec:'daily_dashboardprojectsHtmlEntities(' + project.id + ', true)',entities:Db.select('entities', where),queries_count:project.queries_count});html += '<div id="project' + project.id + '">';html += daily_dashboardprojectsHtmlHeader(project);html += '<div id="project' + project.id + '_entities_line" v-worker-bloc="' + id_worker + '" class="bloc">';html += daily_dashboardprojectsHtmlEntities(project.id);html += '</div>';html += '</div>';}if(html) {$('#rankings_charts').html(html);WorkerScroll.exec();}}});}function daily_dashboardprojectsHtmlHeader(project){var favorites = '';if(project.favorites){favorites = '<svg v-title="Projet favoris" class="project_favorite icon_favorites_active" xmlns="http://www.w3.org/2000/svg" width="24" height="24" viewBox="0 0 24 24"><path d="M12 .587l3.668 7.568 8.332 1.151-6.064 5.828 1.48 8.279-7.416-3.967-7.417 3.967 1.481-8.279-6.064-5.828 8.332-1.151z"></path></svg>';}var html = '';html += '<div class="bloc_header"><h2>' + Lang.get('project') + ' : ' + project.name + favorites + '</h2>' +'<div class="bloc_header_right">' +'   <ul>' +'<li>' + project.queries_count + ' ' + Lang.get('keywords', true) +  ', ' + project.entities_count + ' ' + Lang.get('websites', true);if(project.top100){html += ', ' + Lang.get('top') + '100';}else{html += ', ' + Lang.get('top') + '50';}html += '</li>' +'   </ul>' +'</div></div>';return html;}function daily_dashboardsortInit(){}function daily_dashboardprojectsHtmlEntities(project_id, force_html=false, page=1){var view= Views.get(Router.getParam('view'));if(!view){return false;}if(view.config.charts.length == 0){daily_dashboardviewNoStats();return true;}var wheres   = Db.makeWhereByUrl([{field:'entity_type', get:'_entity_type'},{field:'entity_id', get:'entity'},{field:'entity_id', get:'_entity'},], [{field:'project_id', value:project_id}]);var limit   = Sort.limitDefault;if(UserParam.get('page_limit_dashboard' + UserParam.getPageLimitDevice())){limit = UserParam.get('page_limit_dashboard' + UserParam.getPageLimitDevice());}var show_wide_graphic = true;if(typeof view.config != 'undefined' && typeof view.config.personalize != 'undefined' && typeof view.config.personalize.wide_graphic != 'undefined'){if(view.config.personalize.wide_graphic == 'hide'){show_wide_graphic = false;}}if(Router.getParam('limit')){limit = Router.getParam('limit');}var offset  = (page - 1) * limit;var sort= false;var sort_value  = false;var desc_value  = false;if(typeof view.config.sort != 'undefined' && typeof view.config.sort[0] != 'undefined'){sort_value  = view.config.sort[0].sort;desc_value  = view.config.sort[0].order;}if(Router.getParam('sort')){sort_value  = Router.getParam('sort');}if(Router.getParam('order')){desc_value  = Router.getParam('order');}var sort_value_find = Views.isStatisticExist(Router.getParam('view'), sort_value);if(!sort_value_find){sort_value = false;desc_value = false;}if(sort_value){sort = [{field:'value_end', order:'asc', type:'numeric'}, {field: 'entity_type', order: 'asc', type: 'numeric'}, {field:'entity_name', order:'asc', type:'string'}];}else {if(Router.getParam('order') && Router.getParam('order') == 'desc'){sort = [{field: 'entity_type', order: 'desc', type: 'numeric'}, {field: 'entity_name', order: 'desc',type: 'string'}];}else{sort = [{field: 'entity_type', order: 'asc', type: 'numeric'}, {field: 'entity_name', order: 'asc',type: 'string'}];}}var sort_html = Sort.makeHtml(Router.getParam('view'), project_id, false, false, [{name:Lang.get('websites'), key:false}]);if(force_html && sort && view.config.charts.length > 0){var filter_sort = false;for(var iw=0;iw<wheres.length;iw++){if(!sort_value && typeof view.config.charts[0] != 'undefined'){wheres[iw].push({field:'statistic_id', value:statisticId(view.config.charts[0].statistics[0])});}else{wheres[iw].push({field:'statistic_id', value:sort_value});}wheres[iw].push({field:'period_init', value:Period.first().init},{field:'period_end', value:Period.first().end},);}if(sort_value){var filter_sort = Type.string.replace(sort_value, '_evolution', '');var find= false;for(var iw2=0;iw2<wheres.length;iw2++) {for(var iw = 0, cw = wheres[iw2].length; iw < cw; iw++) {if(wheres[iw2][iw].field == 'statistic_id') {find = true;wheres[iw2][iw].value = filter_sort;}}}if(desc_value == 'desc') {sort[0].order = 'desc';}if(desc_value == 'up') {sort[0].order = 'desc';sort[0].field = 'evolution';}if(desc_value == 'down') {sort[0].order = 'asc';sort[0].field = 'evolution';}if(sort_value && sort_value.indexOf('_evolution') !== -1) {sort[0].field = 'evolution';}}var id_entities = Db.select('worker_rankings', wheres, sort, false, false, false, {limit:limit, offset:offset});var max_entities= Db.select('worker_rankings', wheres, sort, false, false, false);var entities_list   = [];var ids_entities= {};if(id_entities){for(var i=0, c=id_entities.length;i<c;i++){if(typeof ids_entities[id_entities[i].entity_id] == 'undefined'){ids_entities[id_entities[i].entity_id] = true;entities_list.push(Db.selectOne('entities', [[{field:'id', value:id_entities[i].entity_id}]]));}}}}else{var wheres   = Db.makeWhereByUrl([{field:'entity_type', get:'_entity_type'},{field:'id', get:'entity'},{field:'id', get:'_entity'},], [{field:'project_id', value:project_id}]);var entities_list   = Db.select('entities', wheres, [{field:'entity_type', order:'asc', type:'numeric'}, {field:'name', order:'asc', type:'string'}], false, false, false, {limit:limit, offset:offset});var max_entities= Db.select('entities', wheres, [{field:'entity_type', order:'asc', type:'numeric'}, {field:'name', order:'asc', type:'string'}], false, false, false);}var count_entities= Db.select('entities', [[{field:'project_id', value:project_id}]], false, false, false, false);if(!count_entities){return daily_dashboardviewProjectNoConfig(project_id);}if(!max_entities){var entity_type = Router.getParam('_entity_type');if(entity_type) {var entity_type = Db.selectOne('entities_types', [[{field: 'id', value: entity_type}]]);var html = '<div class="bloc bloc_no_entities">' +'<div class="description">Aucun résultat pour le filtre sélectionné : <strong style="color:#' + entity_type.color + ';">' + entity_type.name + '</strong></div>' +'</div>';}else{var html = '<div class="bloc bloc_no_entities">' +'<div class="description">Aucun résultat pour le filtre sélectionné.</div>' +'</div>';}return html;}var html = '';var count_queries= Db.select('queries', [[{field:'project_id', value:project_id}]], false, false, false, false);var project = Db.selectOne('projects', [[{field:'id', value:project_id}]]);if(!project.queries_count){html += daily_dashboardviewProjectNoQueries(project_id);}else {/* * ON INTEGRE LE LARGE GRAPHIQUE */if(show_wide_graphic) {html += '<div class="graph_top bloc_border_trl">' +'<div class="graph_top_close personalize" v-title="' + Lang.get('customize_view') + '" v-view-id="' + Router.getParam('view') + '">' +'   <svg version="1.1" xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24"><path d="M6 12c0 1.657-1.343 3-3 3s-3-1.343-3-3 1.343-3 3-3 3 1.343 3 3zm9 0c0 1.657-1.343 3-3 3s-3-1.343-3-3 1.343-3 3-3 3 1.343 3 3zm9 0c0 1.657-1.343 3-3 3s-3-1.343-3-3 1.343-3 3-3 3 1.343 3 3z"></path></svg>' +'</div>';var select_one_statistic = Sort.get(Router.getParam('view'), filter_sort);for(var ic = 0, cc = view.config.charts.length; ic < cc; ic++) {var chart = view.config.charts[select_one_statistic.chart];html += '<div class="chart_cell chart_cell_graph_top">';if(force_html) {Color.init();for(var ie = 0; ie < entities_list.length; ie++) {var color = Color.next();html += '<div class="legend_entity">' +'<div class="legend_entity_color" style="width:10px;height:10px;background:' + color + ';"></div>' +'<div class="legend_entity_name">' + entities_list[ie].name + '</div>' +'</div>';}html += ChartsShow.exec(chart, entities_list, 'graph_top', select_one_statistic, {classGraph: 'graph_top_compare'});}html += '</div>';break;}html += '</div>';}}//if(show_wide_graphic){var style_show = ' bloc_border_rl';}else{var style_show = '';}html += '<div class="group_by_sort' + style_show + '">' +'   <ul>';var sort_icon = '   <li class="item right bloc_mobile">' +'   <span class="label">' + Lang.get('sort_by') + '</span>' +'   <span class="sort">' + sort_html + '</span>' +'   </li>';if(!Config.isMobile()){html += sort_icon;}if(Permission.userAccess('entities|write')) {html += '   <li class="item right"><div class="button5" v-popup-open="entities_add" v-popup-reload="true" v-popup-params="' + btoa(JSON.stringify({project_id: project_id})) + '">' + Lang.get('create_website') + '</div></li>';}if(Permission.userAccess('queries|write')) {html += '   <li class="item right"><div class="button4" v-popup-open="queries_add" v-popup-reload="true" v-popup-params="' + btoa(JSON.stringify({project_id: project_id})) + '">' + Lang.get('create_keyword') + '</div></li>';}if(Config.isMobile()){html += sort_icon;}html += '   </ul>' +'</div>';/* * ON INTEGRE LE TABLEAU DE STATS */html += '<div class="table_bloc0 bloc_border_rl">';html += '<div class="mobile_fixed_bloc table table_charts table_charts_dashboard">';/* * ON AFFICHE LE HEADER DU TABLEAU DE STATS */var sort_icon = '';var sort_icon_location = '';sort_icon = Icon.sortAsc();var url_tmp = Router.deleteParam('order');url_tmp = Router.deleteParam('sort', url_tmp);sort_icon_location = ' v-url="' + url_tmp + '"';var sort_view   = false;var order_view  = 'asc';var order_view_init = 'asc';if(Router.getParam('sort')) {sort_icon = '<div class="icon_sort_hide">' + Icon.sortAsc() + '</div>';sort_view = Router.getParam('sort');if(Router.getParam('order') && Router.getParam('order') == 'desc') {order_view_init = 'desc';}if(Router.getParam('order') && Router.getParam('order') == 'asc') {order_view_init = 'asc';}}else{if(typeof view.config.sort != 'undefined') {sort_view = view.config.sort[0].sort;order_view_init = view.config.sort[0].order;}}if(!sort_view) {if(Router.getParam('order') == 'desc') {sort_icon = Icon.sortDesc();sort_icon_location = ' v-url="' + Router.setParam('order', 'asc') + '"';} else {sort_icon = Icon.sortAsc();sort_icon_location = ' v-url="' + Router.setParam('order', 'desc') + '"';}}html += '<div class="line header"><div class="mobile_fixed_cell file file_label">' +'<div class="table_header_stat sort_update value_stat_icon"' + sort_icon_location + '>' + Lang.get('websites') + sort_icon + '</div>' +'</div>';var html_header_filter = '';columns_list = Views.columnsKey(Router.getParam('view'));var header_filter_show = false;for(var ic=0, cc=view.config.charts.length;ic<cc;ic++){if(columns_list[ic] != 'queries_count') {var chart = view.config.charts[ic];var column_icons_left = columnsIconsLeft(columns_list[ic]);var column_action = [{label: Lang.get('delete'),params: {index: ic},js: function (params) {Views.updateColumns(Router.getParam('view'), false, params.index);}}];var column_icons_right = columnsIconsRight(columns_list[ic], column_action);html += '<div class="column move" v-column="' + columns_list[ic] + '"><div class="column_move_bg"></div>';html += '<div class="chart_cell">' + column_icons_left;html_header_filter += '<div class="chart_cell">';var path_id = uniqId();var stat_count = 0;for(var is = 0, cs = chart.statistics.length; is < cs; is++) {var key = chart.statistics[is].key;if(key != 'visibility_max' && key != 'performance_max' && key != 'queries_count') {stat_count++;}}for(var is = 0, cs = chart.statistics.length; is < cs; is++) {var key = chart.statistics[is].key;var filter = Db.selectOne('filters', [[{field: 'key', value: key}]]);var path = ChartsConfig.getPath(path_id, filter, {stat:chart.statistics[is]}, 0);var color = '';if(key != 'visibility_max' && key != 'performance_max' && key != 'queries_count') {color = ' style="background-color:' + path.color + ';"';var key_sort= '';var chart_sort  = ObjectCore.clone(chart.statistics[is]);var key_exist   = chart.key;if(typeof chart_sort.where != 'undefined'){key_exist += '_' + JSON.stringify(chart_sort.where);}if(typeof chart_sort.filter != 'undefined'){key_exist += '_' + JSON.stringify(chart_sort.filter);}key_sort = statisticId(chart_sort);var sort_icon = '';var sort_icon_location = '';sort_icon = '<div class="icon_sort_hide">' + Icon.sortAsc() + '</div>';var url_tmp = Router.setParam('order', 'asc');url_tmp = Router.setParam('sort', key_sort, url_tmp);sort_icon_location = ' v-url="' + url_tmp + '"';var sort_view   = false;var order_view  = 'asc';var order_view_init = 'asc';if(Router.getParam('sort')) {sort_view = Router.getParam('sort');if(Router.getParam('order') && Router.getParam('order') == 'desc') {order_view_init = 'desc';}if(Router.getParam('order') && Router.getParam('order') == 'asc') {order_view_init = 'asc';}}else{if(typeof view.config.sort != 'undefined') {sort_view = view.config.sort[0].sort;order_view_init = view.config.sort[0].order;}}if(sort_view && sort_view == key_sort) {if(order_view_init == 'desc') {sort_icon = Icon.sortDesc();sort_icon_location = ' v-url="' + Router.setParam('order', 'asc') + '"';} else {sort_icon = Icon.sortAsc();sort_icon_location = ' v-url="' + Router.setParam('order', 'desc') + '"';}if(Router.getParam('order') && Router.getParam('order') == 'desc'){order_view = 'asc';}if(Router.getParam('order') && Router.getParam('order') == 'asc'){order_view = 'desc';}}var name = Filters.makeName(chart.statistics[is]);html += '<div class="table_header_stat sort_update value_stat_icon chart_cell_count' + stat_count + '" v-title="' + name + '"' + sort_icon_location + '>' + name + sort_icon + '<div class="li_bottom" style="background-color:' + path.color + ';"></div></div>';if(is == 0 && typeof chart.statistics[is].where != 'undefined' && chart.statistics[is].where.length > 0) {for(var iw = 0, cw = chart.statistics[is].where[0].length; iw < cw; iw++) {var w = chart.statistics[is].where[0][iw];var field_get   = w.field;if(field_get.indexOf('stat_') === 0){field_get = field_get.substr(5, field_get.length);}if(field_get.indexOf('field_') === 0){field_get = field_get.substr(6, field_get.length);}if(field_get.indexOf('_evolution') !== -1){field_get = 'evolution';}if(field_get.indexOf('_top') !== -1){field_get = 'top';}var filter_config   = FiltersConfig.get(field_get);if(filter_config) {var comparison = FiltersConfig.makeComparison(w);html_header_filter += '<div class="table_header_comparison"';if(comparison) {if(typeof comparison.comparison != 'undefined' && typeof comparison.comparison.label != 'undefined') {html_header_filter += ' v-title="' + comparison.comparison.label + '"';}}if(typeof w.field != 'undefined' && w.field == 'thematics'){html_header_filter += '>';}else {html_header_filter += '>' + filter_config[0].label;}if(typeof w.field != 'undefined' && w.field == 'device'){html_header_filter += '<span class="split_device_comparison">';switch(w.value){case '1':html_header_filter += Icon.desktop();break;case '2':html_header_filter += Icon.mobile();break;case '1,2':html_header_filter += Icon.desktop() + ' / ' + Icon.mobile();break;}html_header_filter += '</span>';}if(comparison){if(typeof comparison.comparison != 'undefined' && typeof comparison.comparison.svg != 'undefined') {html_header_filter += comparison.comparison.svg;}if(comparison.values.length == 1) {html_header_filter += comparison.values[0];}if(comparison.values.length == 2) {html_header_filter += comparison.values[0] + '-' + comparison.values[1];}}if(typeof w.field != 'undefined' && w.field == 'thematics'){var thematic = Db.selectOne('thematics', [[{field:'id', value:w.value}]]);html_header_filter += thematic.name ;}html_header_filter += '</div>';header_filter_show = true;}}}}}html_header_filter += '</div>';html += column_icons_right;html += '</div>';html += '</div>';}}html += '</div>';if(header_filter_show){html += '<div class="line header" style="font-weight: normal;font-size:11px;"><div class="file"></div>';html += html_header_filter;html += '</div>';}//var date_day = DateTime.now();for(var ie=0, ce=entities_list.length;ie<ce;ie++){if(typeof entities_list[ie] != 'undefined') {var entity = entities_list[ie];entity = Db.selectOne('entities', [[{field: 'id', value: entity.id}]]);if(entity) {var bg = '';if(entity.file) {bg = 'background-image:url(\'' + entity.file + '\');';}if(Permission.userAccess('entities|write')) {var column_action = [];column_action.push({label: 'Modifier',popup: {id: 'entities_edit',reload: 'true',params: {ids: [entity.id]}},});var notice = Lang.get('are_sure_want_remove_selection');var alert = Lang.get('all_positions_for_these_entity_will_be_removed');column_action.push({label: Lang.get('delete'),api: {module: 'entities',method: 'delete',notice: notice,alert: alert,params: [{key: 'ids', value: [entity.id]}]},});var menu_html = classicMenu(column_action);}var view_id_more = '';var field_more = '';for(var ic = 0, cc = view.config.charts.length; ic < cc; ic++) {var chart = view.config.charts[ic];if(typeof chart.view != 'undefined') {view_id_more = 'view=' + chart.view + '&';field_more = ChartsShow.url(chart);break;}}html += '' +'<div class="line">' +'<div class="mobile_fixed_cell entity_info show_menu_action">' + menu_html + '<a href="/daily/keywords?' + view_id_more + 'entity=' + entity.id + field_more + '">' +'<div class="file" style="' + bg + '" v-title="' + entity.name + '"></div>' +'<div class="site_name" style="color:#' + entity.type_color + ';">' + entity.name + '</div></a>' +'</div>';var periods = Period.list();var last_day_period = periods[0].end;for(var ic = 0, cc = view.config.charts.length; ic < cc; ic++) {if(entity.update_file_ranks != date_day && date_day == last_day_period && entity.update_file_ranks != '2000-01-01') {html += '<div class="chart_cell chart_cell_relative chart_load_icon"><div class="load_icon" v-title="En cours de traitement"></div></div>';} else {var chart = view.config.charts[ic];var url_more = ChartsShow.url(chart);html += '<div class="chart_cell chart_cell_relative chart_cell_count' + chart.statistics.length + '">';if(force_html) {var view_url = '';if(typeof chart.view != 'undefined') {view_url = 'view=' + chart.view + '&';}if(typeof chart.statistics[0].where != 'undefined') {for(var i_where = 0; i_where < chart.statistics[0].where[0].length; i_where++) {if(chart.statistics[0].where[0][i_where].field == 'device' && chart.statistics[0].where[0][i_where].value == '1,2') {var desktop = Icon.desktop();var mobile = Icon.mobile();html += '<div class="chart_border_left"><ul><li>' + desktop + '</li><li>' + mobile + '</li></ul></div>';}}}html += '<a href="' + Config.app.url + 'daily/' + chart.method + '?' + view_url + 'entity=' + entity.id + url_more + '">';html += ChartsShow.exec(chart, [entity]);html += '</a>';}html += '</div>';}}if(cc < 5) {html += '<div class="chart_cell chart_cell_relative chart_cell_center">' +'<div v-popup-open="chart_pin" v-popup-params="' + btoa(JSON.stringify({view: Router.getParam('view')})) + '">' +'<svg class="icon_add_stat" viewBox="0 0 24 24" xmlns="http://www.w3.org/2000/svg">' +'   <path d="m12.002 2c5.518 0 9.998 4.48 9.998 9.998 0 5.517-4.48 9.997-9.998 9.997-5.517 0-9.997-4.48-9.997-9.997 0-5.518 4.48-9.998 9.997-9.998zm0 1.5c-4.69 0-8.497 3.808-8.497 8.498s3.807 8.497 8.497 8.497 8.498-3.807 8.498-8.497-3.808-8.498-8.498-8.498zm-.747 7.75h-3.5c-.414 0-.75.336-.75.75s.336.75.75.75h3.5v3.5c0 .414.336.75.75.75s.75-.336.75-.75v-3.5h3.5c.414 0 .75-.336.75-.75s-.336-.75-.75-.75h-3.5v-3.5c0-.414-.336-.75-.75-.75s-.75.336-.75.75z" fill-rule="nonzero"></path>' +'</svg>' +'</div>' +'</div>';}html += '</div>';}}}//html += '</div></div>';// LA PAGE DE NAVIhtml += PageChange.makeHtmlOffset('daily_dashboardprojectsHtmlEntities(' + project_id + ', true, \'_page_\')', max_entities.length, project_id,[{'key':'v-scroll-project', 'value':project_id}]);if(force_html){$('#project' + project_id + '_entities_line').html(html);var width = $('.areagraph_top:eq(0)').innerWidth();$('.chart_dates').css({width: width + 'px'});mobileMakeFixed();return false;}return html;}$(function(){$(document).on('mousedown', '#filters_entities_types li', function(){});});[template="daily_exports"] .line .chart_cell:nth-child(1):hover .column_icons_in{height:auto;}[template="daily_exports"] .line .chart_cell:nth-child(1){height:initial;}[template="daily_exports"] .line .chart_cell{padding:12px 0px 0 10px;font-size:13px;min-height: 39px;}[template="daily_exports"] .line .chart_cell:nth-child(2) svg{position: absolute;top:12px;right:10px;cursor: pointer;width:16px;height:16px;}[template="daily_exports"] .line .chart_cell:nth-child(2) .icon_localisation{position: relative;top:initial;right:initial;width:10px;height:12px;}.line .chart_cell:nth-child(2) svg.icon_desktop,[template="daily_exports"] .line .chart_cell:nth-child(2) svg.icon_mobile{position: initial;width:12px;height:12Px;}[template="daily_exports"] .line .chart_cell:nth-child(1){width:333px;}[template="daily_exports"] .line .chart_cell:nth-child(2){width:100px;}[template="daily_exports"] .line .chart_cell:nth-child(3){width:160px;}[template="daily_exports"] .line .chart_cell:nth-child(4){width:295px;}[template="daily_exports"] .line .chart_cell:nth-child(5){width:70px;}[template="daily_exports"] .line .chart_cell:nth-child(6){width:100px;}[template="daily_exports"] .line .chart_cell:nth-child(7){width:100px;}[template="daily_exports"] .line .chart_cell:nth-child(8){width:105px;}[template="daily_exports"] .line .chart_cell svg{width:18px;height:18px;cursor: pointer;}[template="daily_exports"] .line .value_stat_icon svg{width:10px;height:10px;}[template="daily_exports"] .line .chart_cell .url_more svg{width:7px;height:7px;}.line .icon,[template="daily_exports"] .line .icon_value{display:inline-block;vertical-align: top;}[template="daily_exports"] .line .icon_value{margin:0 0 0 10px;}[template="daily_exports"] .line [v-popup-open]{cursor: pointer;}function daily_exportsinit(){Views.exec();if(!Router.getParam('id')) {var config = {type: 'projects',where_field: 'project_id',id: 'id',table: 'exports',module: 'daily_exports',period: false,hide_label_first_column: false,columns: [{type: 'value', key: 'name', values: [{key: 'name', label: Lang.get('name')}],popup: {key: 'exports_list',}},{type: 'value', key: 'nb', values: [{key: 'nb', label: Lang.get('treatment')}],popup: {key: 'exports_list',}},{type: 'value', key:'period', values: [{key: 'period', label: Lang.get('period')}]},{type: 'value', key:'entity_name', values: [{key: 'entity_name', label: Lang.get('websites')}]},{type: 'value', key:'type', values: [{key: 'type', label: Lang.get('type')}]},{type: 'value', key:'exec_date', values: [{key: 'exec_date', label:Lang.get('update')}]},{type: 'value', key:'repeat', values: [{key: 'repeat', label: Lang.get('recurrence')}]},{type: 'value', key:'download_url', values: [{url: 'download_url', force_value:Icon.download(), label: ''}],popup: {key: 'exports_list',}},],sort: [{key: 'name', label: 'Export'},{key: 'entity_name', label: Lang.get('websites')},{key: 'nb', label: Lang.get('treatment')},{key: 'exec_date', label:Lang.get('update')},],filters: [{key: 'name', label: 'Export'},{key:'exec_date', label:Lang.get('update')},{key:'period', label:Lang.get('period')},{key:'entity_name',label:Lang.get('websites')},],};ModuleStatistics.run(config);}}function daily_exportsmakeTitleFilters(){ModuleStatistics.filtersAuto();}function daily_exportsrun() {}function daily_exportsmain() {Calendar.open();Header.projectsEntitiesTypesActive();setTimeout(function(){menu_projectsentities(true);});return false;}[template="daily_keywords"] #filters_action_save_filter svg.active{fill:#fe0b09;}function daily_keywordsinit(){var user_param = UserParam.get('views_filters');if(user_param){user_param = JSON.parse(user_param);}Views.setLastView();var force_param = false;if(!force_param && user_param && Router.getParam('view') && typeof user_param[Router.getParam('view')] != 'undefined'){var url = false;for(var key in user_param[Router.getParam('view')]){if(!Router.getParam(key) && user_param[Router.getParam('view')][key]) {var add_param = true;if(key == 'thematics'){add_param = false;var entity  = Db.selectOne('entities', [[{field:'id', value:Router.getParam('entity')}]]);var thematic= Db.selectOne('thematics', [[{field:'id', value:user_param[Router.getParam('view')][key]}]]);if(entity && thematic && entity.project_id == thematic.project_id){add_param = true;}else{if(Db.select('projects').length == 1){add_param = true;}}}if(key == 'entity'){add_param = false;}if(add_param) {url = Router.setParam(key, user_param[Router.getParam('view')][key]);}}}if(url != document.location.href) {if(url.charAt(0) == '/') {url = url.substr(1, url.label);}Router.execUrl(url);}else{Views.exec();}}else{Views.exec();}return true;}function daily_keywordsmain() {Calendar.open();if(Router.getParam('view')) {Views.active(Router.getParam('view'));Header.projectsEntitiesTypesActive();setTimeout(function(){daily_keywordsentities(true);});}return false;}var rankings_sort_last  = false;var rankings_order_last = false;function daily_keywordssortsKeys(){var values  = ['keyword', 'ai_overview', 'volume_last', 'volume_month', 'volume_year', 'seasonality', 'url', 'url_count', 'visibility', 'performance', 'visibility', 'pixel','desktop_top1', 'desktop_top3', 'desktop_top10', 'desktop_top20', 'desktop_top30', 'desktop_top100', 'desktop_opportunities', 'mobile_opportunities', 'desktop_opportunities_all', 'mobile_opportunities_all','mobile_top1', 'mobile_top3', 'mobile_top10', 'mobile_top20', 'mobile_top30', 'mobile_top100', 'ctr', 'desktop_bloc_natural_pixel', 'mobile_bloc_natural_pixel', 'desktop_serp_features', 'mobile_serp_features', 'cpc', 'competition', 'information','desktop_target_best', 'desktop_target_medium', 'desktop_target_null','mobile_target_best', 'mobile_target_medium', 'mobile_target_null','url1', 'thematics','project_id', 'thematic_name', 'audit_name', 'tags','stat_rank', 'stat_visibility', 'stat_top1', 'stat_top3', 'stat_top10', 'stat_top30, stat_top100','url_count1', 'keyword', 'only_type2', 'only_type4', 'only_top8', 'only_top9', 'only_top11', 'only_top12'];var values_get  = Views.getStatisticsFields(Router.getParam('view'));for(var i=0, c=values_get.length;i<c;i++){values.push('desktop_' + values_get[i]);values.push('mobile_' + values_get[i]);values.push('desktop_' + values_get[i] + '_average');values.push('mobile_' + values_get[i] + '_average');values.push('desktop_' + values_get[i] + '_evolution');values.push('mobile_' + values_get[i] + '_evolution');}var sorts   = {};for(var i=0, c=values.length;i<c;i++){sorts[values[i]] = SortConfig.get(values[i]);sorts[values[i]].key = values[i];}return sorts;}function daily_keywordsfiltersKeys(){var filters_view = [];var keys = daily_keywordssortsKeys();for(var key in keys){filters_view.push(key);}return filters_view;}function daily_keywordsfiltersAuto(){var filters_view = daily_keywordsfiltersKeys();Templates.verifDbTablesExist(['customerfilters'], function () {if(Router.getParam('view')) {Filters.makeHtmlAuto(Router.getParam('view'));}});return true;}function daily_keywordsentitiesTypes(){var values = Db.select('entities_types');for(var i=0, c=values.length;i<c;i++){if(Router.getParam('entity_type')){if(values[i].id == Router.getParam('entity_type')){$('#entities_types_all_value').html(values[i].name);return values;}}else{if(values[i].id == Router.getParam('_entity_type')){$('#entities_types_all_value').html(values[i].name);return values;}}}$('#entities_types_all_value').html('Toutes les entités');return values;}function daily_keywordsmakeSelected(value){if(value){return [{result_selected:'selected="selected"'}];}return [{result_selected:''}];}function daily_keywordsentities(force_write=false) {Templates.verifDbTablesExist(['projects', 'entities', 'charts', 'views', 'permissions', 'users', 'notes', 'thematics', 'tags', 'sitemap'], function () {daily_keywordsfiltersAuto();var view= Views.get(Router.getParam('view'));if(view.config.charts.length == 0 ||view.config.charts[0].statistics.length == 0 ){daily_keywordsviewNoStats();$('[v-bloc-html="true"]').attr('v-bloc-html', false);$('#daily_keywords_charts [v-exec="true"]').attr('v-exec', false);return true;}else {if(force_write){$('#daily_keywords_charts').html('');}var mode_style = 'classic';if(typeof view.config.personalize != 'undefined' && typeof view.config.personalize.table_style != 'undefined') {mode_style = view.config.personalize.table_style;}if(!Router.getParam('field')) {var field_init = '';for(var i = 0, c = view.config.charts[0].statistics.length; i < c; i++) {if(i > 0) {field_init += ',';}var key = view.config.charts[0].statistics[i].key;if(typeof view.config.charts[0].statistics[i].key_get != 'undefined') {key = view.config.charts[0].statistics[i].key_get;}field_init += key;}var url = Router.setParams([{'key': 'field', value: field_init}]);Router.execUrl(url);return false;}var html = '';var where = Db.makeWhereProjectsByUrl();var entity = false;if((Router.getParam('entity') ||Router.getParam('_entity'))) {if(Router.getParam('entity')) {var entity = Entities.get(Router.getParam('entity'));}else{if(Router.getParam('_entity')) {var entity = Entities.get(Router.getParam('_entity'));}}if(!where) {where = [];}if(where.length == 0){where.push();}for(var i_where=0;i_where<where.length;i_where++){where[i_where].push({field: 'id', value: entity.project_id});}}var filters_keys = daily_keywordsfiltersKeys();view = Filters.updateView(view, filters_keys);var projects = Db.select('projects', where, [{field:'favorites', order:'desc', type:'string'},{field:'status', order:'desc', type:'integer'},{field: 'name',order: 'asc',type: 'string'}], false, false, false);for(var i = 0, c = projects.length; i < c; i++) {var project = projects[i];var wheres_add = [];if(Router.getParam('entity')){wheres_add.push({field: 'id', get: 'entity'});}else{wheres_add.push({field: 'id', get: '_entity'});}if(Router.getParam('entity_type')){wheres_add.push({field: 'entity_type', get: 'entity_type'});}else{if(!Router.getParam('entity')) {wheres_add.push({field: 'entity_type', get: '_entity_type'});}}var wheres = Db.makeWhereByUrl(wheres_add, [{field: 'project_id', value: project.id}]);var entities = Db.select('entities', wheres, [{field: 'entity_type',order: 'asc',type: 'numeric'}, {field: 'name',order: 'asc',type: 'string'}], false, false, false);var id_worker = Router.getMethod() + '_' + Router.getAction() + '_worker_rankings_' + project.id;var sort = 'keywords';if(view && typeof view.config.sort != 'undefined' && typeof view.config.sort[Router.getParam('field')] != 'undefined'){sort = view.config.sort[Router.getParam('field')];}html += Workers.initScroll(id_worker, 'rankings',{project_id: project.id,view: view,periods: Period.list(),table: {key: 'keywords', sort: 'keywords'},exec: 'daily_keywordshtmlEntitiesBloc(' + project.id + ')',entities: Db.select('entities', [[{field: 'project_id', value: project.id}]]),queries_count: project.queries_count,entity: entity,});for(var ie = 0, ce = entities.length; ie < ce; ie++) {var entity = entities[ie];html += Html.initScroll(Router.getMethod() + '_' + Router.getAction() + '_entity' + entity.id, 'entity' + entity.id + '_line');html += '<div id="entity' + entity.id + '" v-bloc-html="false" entity-bloc-id="' + entity.id + '">';html += daily_keywordsentitiesHtmlHeader(entity, project);html += '<div id="entity' + entity.id + '_line" v-worker-bloc="' + id_worker + '" v-load-more="entity' + entity.id + '_table" class="bloc_entity_line bloc_worker"></div>';html += '</div>';html += '<div id="entity' + entity.id + '_table" class="entity_bloc bloc entity_bloc_table" v-style="' + mode_style + '"><div class="load_icon2" style="margin:0 auto 0 auto;"></div></div>';}}}if((html && !$('#daily_keywords_charts').html()) ||force_write) {if(Router.getParam('view') == 'alert_email'){$('#main').addClass('view_alert_email');}else{$('#main').removeClass('view_alert_email');}$('#daily_keywords_charts').html(html);}else{$('[v-bloc-html="true"]').attr('v-bloc-html', false);$('#daily_keywords_charts [v-exec="true"]').attr('v-exec', false);}WorkerScroll.exec();});}function daily_keywordsentitiesHtmlHeader(entity, project){var html = '';var thematic_id = '';if(Router.getParam('thematics')){thematic_id = Router.getParam('thematics');}html += ''+'<div class="bloc_header"><h2>' + Lang.get('website') + ' : ' + entity.name + '</h2>' +'<div class="bloc_header_right">' +'   <ul>' +'<li class="bloc_header_right_label">';var label = project.name + ', ';html += '';if(Router.getParam('thematics')){var ids_thematics = Router.getParam('thematics').split(',');var thematics_queries_count = 0;var thematics_name  = [];for(var it=0;it<ids_thematics.length;it++){var thematic = Db.selectOne('thematics', [[{field:'id', value:ids_thematics[it]}]]);if(thematic){thematics_name.push(thematic.name);thematics_queries_count+=thematic.queries_count;}}label += thematics_name.join(', ') + ', ' + thematics_queries_count;}else{label += project.queries_count;}label += ' ' + Lang.get('keywords', true);if(project.top100){label += ', ' + Lang.get('top') + '100';}else{label += ', ' + Lang.get('top') + '50';}html += label;html += '</li>' +'   </ul>' +'<ul class="bloc_header_right_items">';if(Permission.userAccess('queries|write')) {html += '   <li class="item right"><div class="button4" v-popup-open="queries_add" v-popup-reload="true" v-popup-params="' + btoa(JSON.stringify({project_id: project.id})) + '">' + Lang.get('create_keyword') + '</div></li>';}html += ''+'</ul>'+'</div></div>';if(Router.getParam('thematics')){if($('.bloc_header_right_label').length > 0){$('.bloc_header_right_label').html(label);}}return html;}function daily_keywordsviewNoStats(){var html = '<div class="bloc bloc_empty_data">' +'<div class="description">' + Lang.get('no_statistics_are_pinned_in_view') + '.</div>' +'<div class="button4" v-popup-open="chart_pin" v-popup-params="' + btoa(JSON.stringify({view: Router.getParam('view')})) + '">' + Lang.get('pin_statistic') + '</div>' +'</div>';$('#daily_keywords_charts').html(html);}keywords_bloc_table = {};var html_entities_bloc_last_project_id = false;function daily_keywordshtmlEntitiesBloc(project_id, sort=false, only_table=false){html_entities_bloc_last_project_id = project_id;var view= Views.get(Router.getParam('view'));var wheres = [];var wheres_add = [];if(Router.getParam('entity')){wheres_add.push({field: 'id', get: 'entity'});}else{wheres_add.push({field: 'id', get: '_entity'});}if(Router.getParam('entity_type')){wheres_add.push({field: 'entity_type', get: 'entity_type'});}else{if(!Router.getParam('entity')) {wheres_add.push({field: 'entity_type', get: '_entity_type'});}}var wheres   = Db.makeWhereByUrl(wheres_add, [{field:'project_id', value:project_id}]);var entities= Db.select('entities', wheres, false, false, false, false);/* * ON INTEGRE LE TABLEAU DE STATS */var scroll_y_min = Global.scrollY() - 500;var scroll_y_max = scroll_y_min + Global.pageHeight() + 500;for(var ie=0, ce=entities.length;ie<ce;ie++){var entity  = entities[ie];var id_bloc_entity  = 'html_' + Router.getMethod() + '_' + Router.getAction() + '_entity' + entity.id;if($('#' + id_bloc_entity).length > 0) {var bloc_y = $('#' + id_bloc_entity).offset().top;var bloc_y_max = bloc_y + $('#' + id_bloc_entity).parent().innerHeight();var show_table_html = false;if((bloc_y >= scroll_y_min && bloc_y <= scroll_y_max) ||(bloc_y_max >= scroll_y_min && bloc_y_max <= scroll_y_max) ||(bloc_y <= scroll_y_min && scroll_y_max <= bloc_y_max)) {show_table_html = true;}}else{show_table_html = false;}var entities_get = Router.getParam('entity');if(!entities_get){entities_get = Router.getParam('_entity');}if(entities_get){entities_get = ''+entities_get;entities_get = entities_get.split(',');}if(Router.getParam('entity_type')){var entities_type = Router.getParam('entity_type');}else{var entities_type = Router.getParam('_entity_type');}if(entities_type){entities_type = ''+entities_type;entities_type = entities_type.split(',');}if(!Router.getParam('entity') ||(entities_get && entities_get.indexOf(''+entity.id)) !== -1 ||(entities_type && entities_type.indexOf(''+entity.entity_type)) !== -1) {var chart_init = false;var chart_init_key = [];if(Router.getParam('stat')) {chart_init = Views.getChart(Router.getParam('stat'));if(chart_init.statistics) {for(var is = 0, cs = chart_init.statistics.length; is < cs; is++) {chart_init_key.push(chart_init.statistics[is].key);}}}var html = '';html += '<div class="bloc bloc_statistics"><div class="table_statistics">';var bg = '';if(entity.file) {bg = 'background-image:url(\'' + entity.file + '\');';}html += '' +'<div class="ranking_type_tabs">';var selected = '';var chart_selected = false;var chart_active = false;var chart_get = false;if(Router.getParam('field')) {chart_get = Router.getParam('field').split(',');}var chart_get_auto = chart_get;if(chart_get_auto) {chart_get_auto.sort();}for(var ic = 0, cc = view.config.charts.length; ic < cc; ic++) {var chart = ObjectCore.clone(view.config.charts[ic]);var field_key = chart.statistics[0].key;if(typeof chart.statistics[0].key_get != 'undefined') {field_key = chart.statistics[0].key_get;}if(!chart_get_auto) {chart_get_auto = [];chart_get_auto.push(field_key);chart_get_auto.sort();}selected = '';chart_active = false;if(chart_init && chart_init_key.indexOf(field_key) !== -1) {selected = ' selected';chart_active = chart;} else {if((!Router.getParam('field') && ic == 0)) {selected = ' selected';chart_active = chart;} else {if(chart_get && chart_get.indexOf(field_key) !== -1) {selected = ' selected';chart_active = chart;}}}if(chart_selected && chart_active) {for(var ica = 0, cca = chart_active.statistics.length; ica < cca; ica++) {chart_selected.statistics.push(chart_active.statistics[ica]);}} else {if(!chart_selected && chart_active) {chart_selected = chart_active;}}if(!only_table) {var url_more = ChartsShow.url(chart);var checkbox_selected = false;if(selected != '') {checkbox_selected = true;}var url = Config.app.url + 'daily/keywords?view=' + Router.getParam('view') + '&entity=' + entity.id + url_more;var url_more_checkbox = url;var field = Router.getParam('field', url_more_checkbox);var field_list = field.split(',').sort();var tmp = ObjectCore.clone(chart_get_auto);for(var ifl = 0; ifl < field_list.length; ifl++) {field = field_list[ifl];var pos_get = chart_get_auto.indexOf(field);if(pos_get === -1) {tmp.push(field);tmp.sort();} else {tmp.splice(pos_get, 1);}}url_more_checkbox = Type.string.replace(url_more_checkbox, 'field=' + field, 'field=TMP48S448F52Z1DF56SF1BVZ59A');url_more_checkbox = Type.string.replace(url_more_checkbox, 'field=TMP48S448F52Z1DF56SF1BVZ59A', 'field=' + tmp.sort().join(','));html += '<div class="ranking_type_tabs_element column_right_bloc tab_selected_' + checkbox_selected + '">';var column_action = [];column_action.push({label: Lang.get('delete'),api: {module: 'views/chart',method: 'delete',notice: false,params: [{key: 'chart', value: ic}],js: function () {WorkerScroll.reload();}},});html += columnsIconsRight('graph_stat_' + entity.id + '_' + ic, column_action);var checked = '';if(checkbox_selected) {checked = ' checked="checked"';}var id_tmp = uniqId();label_before = '<input id="checbox' + id_tmp + '" type="checkbox" class="checkbox_style" name="" v-url="' + url_more_checkbox + '" value=""' + checked + ' /><label class="checkbox" for="checbox' + id_tmp + '" v-url="' + url_more_checkbox + '" value=""' + checked + '><svg xmlns="http://www.w3.org/2000/svg" width="24" height="24" viewBox="0 0 24 24"><path d="M20.285 2l-11.285 11.567-5.286-5.011-3.714 3.716 9 8.728 15-15.285z"/></svg></label>';html += '<div class="label_before">' + label_before + '</div>';var desktop = Icon.desktop();var mobile = Icon.mobile();if(Router.isDeviceSplitGet()) {html += '<div class="chart_border_left"><ul><li>' + desktop + '</li><li>' + mobile + '</li></ul></div>';}html += '<a href="' + url + '" v-scroll-fixed="entity' + entity.id + '"><div class="ranking_type_tab' + selected + '">';html += ChartsShow.exec(chart, [entity], 'ranking_type', false, false, false);html += '</div></a>';html += '</div>';}selected = '';}if(cc < 6) {html += '' +'<div class="ranking_type_tabs_element add_tab_element"><div class="ranking_type_tab" v-popup-open="chart_pin" v-popup-params="' + btoa(JSON.stringify({view: Router.getParam('view')})) + '">' +'<svg viewBox="0 0 24 24" xmlns="http://www.w3.org/2000/svg"><path d="m12.002 2c5.518 0 9.998 4.48 9.998 9.998 0 5.517-4.48 9.997-9.998 9.997-5.517 0-9.997-4.48-9.997-9.997 0-5.518 4.48-9.998 9.997-9.998zm0 1.5c-4.69 0-8.497 3.808-8.497 8.498s3.807 8.497 8.497 8.497 8.498-3.807 8.498-8.497-3.808-8.498-8.498-8.498zm-.747 7.75h-3.5c-.414 0-.75.336-.75.75s.336.75.75.75h3.5v3.5c0 .414.336.75.75.75s.75-.336.75-.75v-3.5h3.5c.414 0 .75-.336.75-.75s-.336-.75-.75-.75h-3.5v-3.5c0-.414-.336-.75-.75-.75s-.75.336-.75.75z" fill-rule="nonzero"/></svg>' +'</div></div>';for(var i2 = cc + 1; i2 < 6; i2++) {html += '' +'<div class="ranking_type_tabs_element add_tab_element"><div class="ranking_type_tab"></div></div>';}}html += '</div>';html += '</div>';//var filter_sort = 1;if(Router.getParam('sort')) {filter_sort = Router.getParam('sort');}/* * ON INTEGRE LE LARGE GRAPHIQUE */var chart = 0;if(Router.getParam('chart')) {chart = Router.getParam('chart');}var pin_key = Pin.makePinKey();var views_dashboard = Pin.views('daily|dashboard', pin_key);var views_thematics = Pin.views('daily|thematics', pin_key);var show_wide_graphic = true;if(typeof view.config.personalize != 'undefined' && typeof view.config.personalize.wide_graphic != 'undefined') {if(view.config.personalize.wide_graphic == 'hide') {show_wide_graphic = false;}}var entities_export = [];if(!only_table) {var entities_graph = [entity];entities_export.push(entity.id);if(Router.getParam('compare')) {var entities_compare = Router.getParamArrayNumeric('compare');for(var i_c = 0, c_c = entities_compare.length; i_c < c_c; i_c++) {entities_graph.push(Db.selectOne('entities', [[{field: 'id',value: entities_compare[i_c]}]]));entities_export.push(entities_compare[i_c]);}}}var popup_export_params = {entities: entities_export};/* * PARAMETRE POPUP EXPORT */if(Router.getParam('field') == 'ranking') {var p_stat_rank = Router.getParam('stat_rank');var p_stat_rank_values = false;if(p_stat_rank) {p_stat_rank_values = p_stat_rank.split('%7C');}if(p_stat_rank && p_stat_rank.indexOf('lower') === 0) {popup_export_params['ranks_comparison'] = 'lower';popup_export_params['ranks_min'] = 1;popup_export_params['ranks_max'] = parseInt(p_stat_rank_values[1]);}if(p_stat_rank && p_stat_rank.indexOf('upper') === 0) {popup_export_params['ranks_comparison'] = 'upper';popup_export_params['ranks_min'] = parseInt(p_stat_rank_values[1]);popup_export_params['ranks_max'] = 101;}if(p_stat_rank && p_stat_rank.indexOf('between') === 0) {popup_export_params['ranks_comparison'] = 'between';popup_export_params['ranks_min'] = parseInt(p_stat_rank_values[1]);popup_export_params['ranks_max'] = parseInt(p_stat_rank_values[2]);}var p_device = Router.getParam('device');if(p_device == 1 ||p_device == 2) {popup_export_params['device'] = parseInt(p_device);}}html += '<div class="graph_top bloc_border_rl">' +'<div class="group_by_sort">' +'   <ul>' +'<li id="notes' + entity.id + '" class="item" v-table="notes" v-script="daily_keywordsnotes(' + entity.id + ',' + project_id + ')" v-action="for"></li>' +'<li id="entities_compare_select' + entity.id + '" class="item" v-table="entities" v-script="daily_keywordsentitiesCompare(' + entity.id + ',' + project_id + ',\'entities_compare_select' + entity.id + '\')" v-action="for"></li>';if(Permission.userAccess('exports|write')) {html += '<li class="item" v-popup-open="exports_add" v-popup-reload="true" v-popup-params="' + btoa(JSON.stringify(popup_export_params)) + '"><div class="button_action button_action2"><svg xmlns="http://www.w3.org/2000/svg" width="24" height="24" viewBox="0 0 24 24"><path d="M16 11h5l-9 10-9-10h5v-11h8v11zm1 11h-10v2h10v-2z"/></svg><div class="label_button">' + Lang.get('export') + '</div></div>';}html += '<li id="views_pin' + entity.id + '" class="views_pin item" v-table="views" v-script="daily_keywordsviewsPin(\'' + encodeURI(pin_key) + '\',' + project_id + ', \'views_pin' + entity.id + '\')" v-action="for"></li>' +'   </ul>' +'</div>';if(show_wide_graphic) {/* * GRAND GRAPHIQUE */if(!only_table) {chart_selected.id = 'graph_top_selected' + project_id + '_' + entity.id;html += ChartsShow.exec(chart_selected, entities_graph, 'graph_top', false, {classGraph: 'graph_top_compare'}, true, true);}//html += '</div></div>';}html += '<div class="bloc bloc_table bloc_table_sort">';var sort_html = Sort.makeHtml(Router.getParam('view'), project_id + '_' + entity.id, chart, daily_keywordssortsKeys());var columns_html = ColumnsManage.makeHtml(Router.getParam('view'), project_id + '_' + entity.id, [{key: 'field',value: chart_get_auto.join()}]);html += '<div class="group_by_sort">' +'<ul>' +'   <li class="item right">' +'   <span class="label">' + Lang.get('columns') + '</span>' +'   <span id="column_manage' + project_id + '_' + entity.id + '" class="column_manage">' + columns_html + '</span>' +'   </li>' +'   <li class="item right">' +'   <span class="label">' + Lang.get('sort_by') + '</span>' +'   <span id="sort_html' + project_id + '_' + entity.id + '" class="sort">' + sort_html + '</span>' +'   </li>' +'</ul></div>';if(!only_table) {html += '';} else {html = '';}var types = [];if(!chart_selected) {return false;}for(var i_stat = 0, c_stat = chart_selected.statistics.length; i_stat < c_stat; i_stat++) {if(typeof chart_selected.statistics[i_stat].key_get != 'undefined' && chart_selected.statistics[i_stat].key_get.indexOf('type') === 0) {var type = parseInt(chart_selected.statistics[i_stat].key_get.substr(4, chart_selected.statistics[i_stat].key_get.length));if(types.indexOf(type) === -1) {types.push(type);}} else {if(types.indexOf(1) === -1) {types.push(1);}}}var entity_get_data = [entity.id];var entity_compare = Router.getParamArrayNumeric('compare');entity_get_data = entity_get_data.concat(entity_compare);var entity_get_data_key = '_project' + project_id + '_' + entity_get_data.join(',') + '_' + JSON.stringify(Period.list()) + '_' + JSON.stringify(Workers.makeKeyGet());if(typeof rankingsTable_cache[entity_get_data_key] == 'undefined') {var where = [[{field: 'project_id', value: project_id}]];var params ={disabled_db: true,types_rank: types,get_data: true,get: Router.getParams(),project_id: project_id,view: view,periods: Period.list(),table: {key: 'keywords', sort: 'keywords'},exec: 'daily_keywordsrankingsTable',entities: Db.select('entities', where),entity: entity,entity_get_data: entity_get_data,entity_compare: entity_compare,chart_selected: chart_selected,sort: sort};if(show_table_html){Workers.list['rankings'].postMessage(ObjectCore.clone(params));var tmp = id_bloc_entity.split('keywords_entity');$('#entity' + tmp[1] + '_table').removeClass('entity_bloc_table');}else{keywords_bloc_table[id_bloc_entity] = params;}} else {rankingsTable_cache[entity_get_data_key].types_rank = types;rankingsTable_cache[entity_get_data_key].chart_selected = chart_selected;daily_keywordsrankingsTable(rankingsTable_cache[entity_get_data_key]);}html += '</div>';Html.setHtml(Router.getMethod() + '_' + Router.getAction() + '_entity' + entity.id, html);}}return false;}daily_keywords_table_timeout = false;window.addEventListener('scroll', function(e) {if(daily_keywords_table_timeout){clearTimeout(daily_keywords_table_timeout);}daily_keywords_table_timeout = setTimeout(function(){var scroll_y_min = Global.scrollY() - 500;var scroll_y_max = scroll_y_min + Global.pageHeight() + 500;for(var key in keywords_bloc_table){if(key) {var id_bloc_entity = key;if($('#' + id_bloc_entity).length > 0) {var bloc_y = $('#' + id_bloc_entity).offset().top;var bloc_y_max = bloc_y + $(this).parent().innerHeight();if((bloc_y >= scroll_y_min && bloc_y <= scroll_y_max) ||(bloc_y_max >= scroll_y_min && bloc_y_max <= scroll_y_max)) {Workers.list['rankings'].postMessage(ObjectCore.clone(keywords_bloc_table[id_bloc_entity]));var tmp = id_bloc_entity.split('keywords_entity');$('#entity' + tmp[1] + '_table').removeClass('entity_bloc_table');delete keywords_bloc_table[id_bloc_entity];}}}}}, 125);});rankingsTable_cache = {};var daily_keywords_last_data = false;function daily_keywordsrankingsTable(data=false, return_html=false){if(data){daily_keywords_last_data = data;}else{data = daily_keywords_last_data;}console.log('datadata');console.log(data);var view= Views.get(Router.getParam('view'));var mode_style = 'classic';if(typeof view.config.personalize != 'undefined' && typeof view.config.personalize.table_style != 'undefined'){mode_style = view.config.personalize.table_style;}var entity_get_data_key = '_project' + data.project_id + '_' + data.entity_get_data.join(',') + '_' + JSON.stringify(Period.list()) + '_' + JSON.stringify(Workers.makeKeyGet());rankingsTable_cache[entity_get_data_key] = data;PageChange.pages['daily_keywordsrankings(' + data.entity.id + ',false, ' + data.project_id + ', false, \'_page_\', true, false, false, false, \'' + btoa(entity_get_data_key) + '\')'] = 1;var html = daily_keywordsrankings(data.entity.id, data.chart_selected, data.project_id, [data.entity], data.sort, false, data.result_data, data.entity_compare, data.types_rank, btoa(entity_get_data_key));$('#entity' + data.entity.id + '_table').attr('v-style', mode_style).html(html);mobileMakeFixed();}$(function(){$(document).on('click', '[v-pin-view]', function(){var params = Router.getParams();if($(this).attr('v-pin-view') == 'enabled') {params.select_active = true;}else{params.select_active = false;}Db.apiExec('views/pin', false, false, 'post', params);});});function daily_keywordsviewsPin(pin_key, project_id, id){pin_key = decodeURI(pin_key);var view = Db.selectOne('view', [[{field:'id', value:Router.getParam('view')}]]);var views_dashboard = Pin.views('daily|dashboard', pin_key);var views_thematics = Pin.views('daily|thematics', pin_key);var pin_result = false;for(var i=0;i<views_dashboard.length;i++){if(views_dashboard[i].name == view.name && views_dashboard[i].checked){pin_result = true;}}var html = '';if(pin_result){var pin_label = 'pinned_on_synthesis';if(Config.isMobile()){pin_label = 'pinned';}html = '<div class="button_action" v-pin-view="disabled"><svg xmlns="http://www.w3.org/2000/svg" width="24" height="24" viewBox="0 0 24 24"><path d="M20.285 2l-11.285 11.567-5.286-5.011-3.714 3.716 9 8.728 15-15.285z"/></svg><div class="label_button">' + Lang.get(pin_label) + '</div></div>';}else{var pin_label = 'pinning_on_synthesis';if(Config.isMobile()){pin_label = 'pinning';}html = '<div class="button_action button_action2"><div class="label_button" v-pin-view="enabled">' + Lang.get(pin_label) + '</div></div>';}$('#' + id).html(html);return true;}function daily_keywordsnotes(entity_id, project_id){setTimeout(function (){var html = '<span class="label">' + Lang.get('notes') + '</span>' + Notes.makeHtml(entity_id, project_id);$('#notes' + entity_id).html(html);daily_keywordsnotesPencil(entity_id, project_id);}, 25);}function daily_keywordsnotesQueries(){$('.graphic_small_notes').html('');var periods = Period.list();var diff= false;for(var ip=0;ip<periods.length;ip++) {var width_cell = (150 - 4) / (periods[ip].days - 1);var where = [[{field: 'date', value_min: periods[ip].init}, {field: 'date', value_max: periods[ip].end}],];var notes = Db.select('notes', where, [{field: 'date', order: 'desc', type: 'string'}, {field: 'id',order: 'desc',type: 'numeric'}]);if(notes) {for(var i_note = 0; i_note < notes.length; i_note++) {if(notes[i_note].id_query_key) {var html_notes = '';diff = (DateTime.diffDay(periods[ip].init, notes[i_note].date) - 1);var icon = Icon.cursorTime('fill:#' + notes[i_note].color + ';');var more_class = '';if(notes[i_note].color.indexOf('global') === 0) {icon = Icon.google();more_class = ' global';var color = '373741';} else {var color = notes[i_note].color;}var ahref = false;if(typeof notes[i_note].description != 'undefined' && notes[i_note].description && notes[i_note].description.indexOf('https://twitter.com') === 0) {ahref = notes[i_note].description;}if(ahref) {html_notes += '<a href="' + ahref + '" target="_blank">';}html_notes += '<div class="pencil_small pencil' + more_class + '" v-cursor-left="' + (diff * width_cell + 7) + '" v-cursor-color="' + htmlEntities(color) + '" v-title-pos="bottom" v-title="' + htmlEntities(notes[i_note].date) + '<br />' + htmlEntities(notes[i_note].name) + '" style="left:' + (diff * width_cell + 7) + 'px;">' + icon + '</div>';if(ahref) {html_notes += '</a>';}if(notes[i_note].id_entity){$('.note_query_entity_' + ip + '_' + notes[i_note].id_entity + '.note_query_key_' + ip + '_' + notes[i_note].id_query_key).append(html_notes);}else{$('.note_query_key_' + ip + '_' + notes[i_note].id_query_key).append(html_notes);}}}}}}function daily_keywordsnotesPencil(entity_id, project_id){var width   = $('.areagraph_top:eq(0)').innerWidth();var periods = Period.list();var html= '';var diff= false;for(var ip=0;ip<periods.length;ip++){html = '';width_cell = (width - 4) / (periods[ip].days - 1);var where = [[{field: 'id_entity', value: entity_id}, {field:'date', value_min:periods[ip].init}, {field:'date', value_max:periods[ip].end}],[{field: 'id_entity', value: 0}, {field: 'id_project', value: project_id}, {field:'date', value_min:periods[ip].init}, {field:'date', value_max:periods[ip].end}],[{field: 'id_entity', value: 0}, {field: 'id_project', value: 0}, {field:'date', value_min:periods[ip].init}, {field:'date', value_max:periods[ip].end}],];var notes = Db.select('notes', where, [{field: 'date', order: 'desc', type: 'string'},{field: 'id', order: 'desc', type: 'numeric'}]);for(var i_note=0;i_note<notes.length;i_note++){if(!notes[i_note].id_query_key) {diff = (DateTime.diffDay(periods[ip].init, notes[i_note].date) - 1);var icon = Icon.cursorTime('fill:#' + notes[i_note].color + ';');var more_class = '';if(notes[i_note].color.indexOf('global') === 0) {if(notes[i_note].color == 'global_0'){icon = Icon.google();}if(notes[i_note].color == 'global_1'){icon = '<img src="https://app.monitorank.com/img/favicon.png" />';}more_class = ' global';var color = '373741';} else {var color = notes[i_note].color;}var ahref = false;if(typeof notes[i_note].description != 'undefined' && notes[i_note].description && notes[i_note].description.indexOf('https://twitter.com') === 0) {ahref = notes[i_note].description;}if(ahref) {html += '<a href="' + ahref + '" target="_blank">';}html += '<div class="pencil' + more_class + '" v-cursor-left="' + (diff * width_cell - 6) + '" v-cursor-color="' + htmlEntities(color) + '" v-chart-area="chartgraph_top_selected' + project_id + '_' + entity_id + '" v-title-pos="bottom" v-title="' + htmlEntities(notes[i_note].date) + '<br />' + htmlEntities(notes[i_note].name) + '" style="left:' + (diff * width_cell - 6) + 'px;">' + icon + '</div>';if(ahref) {html += '</a>';}}}var where = [[{field: 'id_entity', value: entity_id}, {field:'date', value_min:periods[ip].init}, {field:'date', value_max:periods[ip].end}],];var sitemap = Db.select('sitemap', where, [{field: 'date', order: 'desc', type: 'string'},{field: 'id', order: 'desc', type: 'numeric'}]);var sitemap_by_date = {};if(sitemap){for(var is=0;is<sitemap.length;is++){var date = sitemap[is].date;if(typeof sitemap_by_date[date] == 'undefined'){sitemap_by_date[date] = [];}sitemap_by_date[date].push(sitemap[is].url);}for(var date in sitemap_by_date){Type.array.sort(sitemap_by_date[date]);diff = (DateTime.diffDay(periods[ip].init, date) - 1);var color   = '4275f4';var icon= Icon.cursorSitemap('fill:#' + color + ';');var more_class  = '';var urls_content= '';for(var iu=0;iu<sitemap_by_date[date].length;iu++){urls_content += '<br />' + sitemap_by_date[date][iu];}html += '<div class="icon_sitemap_graph_large pencil' + more_class + '" v-cursor-left="' + (diff * width_cell - 6) + '" v-cursor-color="' + htmlEntities(color) + '" v-chart-area="chartgraph_top_selected' + project_id + '_' + entity_id + '" v-title-pos="bottom" v-title="<strong>' + Lang.get('url_sitemap_date_lastmod') + ' : ' + htmlEntities(date) + '</strong>' + urls_content + '" style="margin-top:0px;left:' + (diff * width_cell - 6) + 'px;">' + icon + '</div>';}}if(notes.length > 0 ||sitemap) {setTimeout(function(){$('.chart_dates_period').addClass('active');}, 50);$('#chartgraph_top_selected' + project_id + '_' + entity_id + ' .pencil_period' + (ip + 1)).css({width: width + 'px'}).html(html);}else{$('.chart_dates_period').removeClass('active');}}html += '</div>';$('.chart_dates').css({width:width+'px'});setTimeout(function(){daily_keywordsnotesQueries();}, 50);}function daily_keywordsentitiesCompare(entity_id, project_id, id){var entities_types = Db.select('entities_types', false,[{field:'id', order:'asc', type:'numeric'}]);var values  = [];var checked = false;var compare_get = Router.getParamArrayNumeric('compare');for(var it=0, ct=entities_types.length;it<ct;it++){var checkbox = [];var entities = Db.select('entities', [[{field:'project_id', value:project_id}, {field:'entity_type', value:entities_types[it].id}]], [{field:'name', order:'asc', type:'string'}]);for(var i=0, c=entities.length;i<c;i++){if(entities[i].id != entity_id) {checked = false;if(compare_get.indexOf(entities[i].id) !== -1){checked = true;}checkbox.push({label: entities[i].name, value:entities[i].id, checked:checked});}}if(checkbox.length > 0) {values.push({label: entities_types[it].name, checkbox: checkbox});}}var html = '<span class="label">' + Lang.get('compare_to') + '</span>';html += FormSelect.html('sort' + entity_id, values, '', function(o){/* * ON PASSE LE PARAMETRE A L'URL */var entities= Router.getParamArrayNumeric('compare');var entity_id_add   = parseInt(o.find('input[type="checkbox"]').val());var index = entities.indexOf(entity_id_add);if(index === -1) {entities.push(o.find('input[type="checkbox"]').val());}else{entities.splice(index, 1);}if(entities.length > 0) {var url = Router.setParams([{'key': 'compare', value: entities.join(',')}]);}else{var url = Router.deleteParam('compare');}Router.execUrl(url);}, false, 'post', false, false, false, {'one':'site', 'more': 'sites', 'null':Icon.forbidden()});$('#' + id).html(html);}function daily_keywordsactivePin(id_view){setTimeout(function(){var o = $('.views_pin .option input[value="' + id_view + '"]');var id = o.parent().parent().parent().parent().parent().attr('v-form-select-id');FormSelect.execApi(id, o.parent().parent(), {select_active:true});}, 25, id_view);}var daily_keywords_split_merge = 'merge';function daily_keywordsrankingsShowSplit(){if(daily_keywords_split_merge == 'merge'){daily_keywords_split_merge = 'split';$('[v-line-type="merge"]').attr('v-line-show', 'false');$('[v-line-type="split"]').attr('v-line-show', 'true');}else{daily_keywordsrankingsShowMerge();}}function daily_keywordsrankingsShowMerge(){daily_keywords_split_merge = 'merge';$('[v-line-type="split"]').attr('v-line-show', 'false');$('[v-line-type="merge"]').attr('v-line-show', 'true');}var daily_keywords_chart_last   = {};var rankings_result_data= {};function daily_keywordsrankings(entity_id, chart=false, project_id, entities, page=1, write_table=false, result_data=false, entity_compare=false, types_rank, entity_get_data_key){entity_get_data_key = atob(entity_get_data_key);var view= Views.get(Router.getParam('view'));var limit   = Sort.limitDefault;if(UserParam.get('page_limit_keywords' + UserParam.getPageLimitDevice())){limit = UserParam.get('page_limit_keywords' + UserParam.getPageLimitDevice());}if(!page){page = 1;}var mode_style = 'classic';if(typeof view.config.personalize != 'undefined' && typeof view.config.personalize.table_style != 'undefined'){mode_style = view.config.personalize.table_style;}if(result_data){rankings_result_data[entity_id] = {result_data:result_data, entity_compare:entity_compare};}else{result_data = rankings_result_data[entity_id].result_data;entity_compare  = rankings_result_data[entity_id].entity_compare;}if(entity_compare.indexOf(entity_id) === -1) {entity_compare.unshift(entity_id);}if(!chart && typeof daily_keywords_chart_last[entity_id]){chart = daily_keywords_chart_last[entity_id].chart;}if(!entities && daily_keywords_chart_last[entity_id]){entities = daily_keywords_chart_last[entity_id].entities;}daily_keywords_chart_last[entity_id] = {chart:chart, entities:entities};if(Router.getParam('limit')){limit = Router.getParam('limit');}var offset  = (page - 1) * limit;var sorts   = daily_keywordssortsKeys();var sort_key= false;var order   = false;if(typeof view.config.sort != 'undefined' && typeof view.config.sort[Router.getParam('field')] != 'undefined'){var tmp = view.config.sort[Router.getParam('field')];sort_key= tmp.sort;order   = tmp.order;}if(!sort_key) {for(var key in sorts) {sort_key = key;break;}}if(Router.getParam('sort')){sort_key = Router.getParam('sort');}if(typeof sorts[sort_key] == 'undefined'){return false;}if(!order) {order = sorts[sort_key].comparison_selected;}if(Router.getParam('order')){order = Router.getParam('order');}rankings_order_last = order;rankings_sort_last = sort_key;var periods = Period.list();if(typeof chart.statistics != 'undefined') {var statistics = chart.statistics;var html = '';var chart_get = ['ranking'];if(Router.getParam('field')) {chart_get = Router.getParam('field').split(',');}var active_target   = false;if(chart_get.indexOf('target') != -1){active_target = true;}var i_table_bloc= 0;var type_rank_all   = [];html += '<div class="bloc_border_rl table_tab_title"><ul>';for(var i = 0, c = statistics.length; i < c; i++) {var stat= statistics[i];var type_rank   = Filters.typeRank(stat);if(type_rank_all.indexOf(type_rank) === -1) {type_rank_all.push(type_rank);var style = '';if(i_table_bloc != table_tab_active) {style = ' disabled';}html += '<li class="table_tab_title_li" v-table-bloc="' + i_table_bloc + '">' + Filters.typeRankName(stat) + '<div class="li_bottom bg_type_rank' + type_rank + style + '"></div></li>';i_table_bloc++;}}html += '</ul></div>';var statistics_save = statistics;var yoyo= false;var target  = false;for(var i=0, c=statistics_save.length;i<c;i++){if(statistics_save[i].key == 'yoyo'){yoyo = statistics_save[i];}if(statistics_save[i].key == 'target'){target = statistics_save[i];}}if(yoyo ||target){statistics  = [];if(yoyo) {statistics.push(yoyo);}if(target) {statistics.push(target);}for(var i=0, c=statistics_save.length;i<c;i++){if(statistics_save[i].key != 'yoyo' && statistics_save[i].key != 'target'){statistics.push(statistics_save[i]);break;}}}var i_table_bloc= 0;var statistics_key_list = [];for(var i = 0, c = statistics.length; i < c; i++) {statistics_key_list.push(statistics[i].key);}var stat_key_get_all = [];var field_sort = ObjectCore.clone(sorts[sort_key].key);var field_array = sort_key.split('_');var percentage = false;if(field_array.length == 3){percentage = Views.isEvolutionPercentage(view, field_array[1]);}if(percentage && field_sort.indexOf('_evolution') !== -1){field_sort = Type.string.replace(field_sort, '_evolution', '_percentage');}var active_desktop  = Router.isGetDeviceDesktop();var active_mobile   = Router.isGetDeviceMobile();var sorts_keys  = daily_keywordssortsKeys();for(var i = 0, c = statistics.length; i < c; i++) {var stat= statistics[i];var stat_key_get= 1;if(typeof stat.key_get != 'undefined'){stat_key_get = parseInt(stat.key_get.substr(4, stat.key_get.length));}if(stat_key_get_all.indexOf(stat_key_get) === -1) {stat_key_get_all.push(stat_key_get);var style = '';if(i_table_bloc != table_tab_active) {style = ' hide';}if(field_sort == 'url'){field_sort = 'url1';}html += '<div class="table_bloc table_bloc' + style + ' table_bloc' + i_table_bloc + '">';var statistics_key = statisticsKey(stat);for(var ie = 0, ce = entities.length; ie < ce; ie++) {var entity = entities[ie];var datas = TableStats.run(statistics_key + '_' + entity.id, result_data, stat_key_get, 'key_merge', false,[{field: field_sort, order: order, type: sorts[sort_key].type}, {field: 'key',order: order,type: 'string'}], {limit: limit, offset: offset}, Period.list(), entity.id);var datas_compare = {};var datas_compare_keys = {};if(entity_compare){for(var i_compare=0, c_compare=entity_compare.length;i_compare<c_compare;i_compare++){var tmp = TableStats.run(statistics_key + '_' + entity_compare[i_compare], result_data, stat_key_get, 'key_merge', false,[{field: field_sort, order: order, type: sorts[sort_key].type}, {field: 'key',order: order,type: 'string'}], false, Period.list(), entity_compare[i_compare], true);datas_compare[entity_compare[i_compare]] = tmp;datas_compare_keys[entity_compare[i_compare]] = {};for(var i_tmp=0, c_tmp=tmp.length;i_tmp<c_tmp;i_tmp++){datas_compare_keys[entity_compare[i_compare]][tmp[i_tmp].key] = i_tmp;}}}var max_datas = TableStats.run(statistics_key + '_' + entity.id, result_data, stat_key_get, 'key_merge', false,[{field: field_sort, order: order, type: sorts[sort_key].type}, {field: 'key',order: order,type: 'string'}], false, Period.list(), entity.id);var i_line = 0;var table_column_ranking_class = '';if(Views.isColumnRankingSmall()) {table_column_ranking_class = ' ranking_small';}else{if(typeof view.config.personalize != 'undefined' && typeof view.config.personalize.rankings_average != 'undefined' && view.config.personalize.rankings_average == 'hide'){table_column_ranking_class = ' ranking_small';}}var more_class = '';var field_tmp = Router.getParam('field');if(field_tmp && field_tmp.indexOf('type') !== -1) {more_class = ' table_field_type';}var device_active_count = 0;if(active_desktop){device_active_count++;}if(active_mobile){device_active_count++;}html += '' +'<div class="mobile_fixed_bloc mobile_fixed_bloc_type_table bloc_border_rl table table_stats device_active_count' + device_active_count + ' keywords' + table_column_ranking_class + more_class + '" v-count-stats="' + chart_get.length + '"><div class="header">' +'<div class="line">';var columns = Views.columnsKey(Router.getParam('view'), stat);var columns_all = ColumnConfig.getAll(Router.getMethod() + '_' + Router.getAction());columns_list = columns;var column_is_small = Views.isColumnRankingSmall();if(typeof view.config.personalize != 'undefined' && typeof view.config.personalize.rankings_average != 'undefined' && view.config.personalize.rankings_average == 'hide'){column_is_small = true;}var column_auto = ColumnConfig.getSizeAuto(columns, column_is_small, Router.getMethod() + '_' + Router.getAction());html += '<style>.line_master{width:' + column_auto.max + 'px;} .table_bloc' + i_table_bloc + ' .cell_' + column_auto.key + '{width:' + column_auto.width + 'px}</style>';for(var ic = 0, cc = columns.length; ic < cc; ic++) {if(columns_list[ic] != 'queries_count' && columns_list[ic] != 'visibility_max' && columns_list[ic] != 'performance_max') {var column_icons_left = columnsIconsLeft(columns[ic]);var column_key_clean = columns[ic];if(column_key_clean.indexOf('type') === 0) {column_key_clean = 'type';}var column_action = false;var column_icons_right = '';if(typeof columns_all != 'undefined' && columns[ic] != 'keyword' && typeof columns_all[column_key_clean] != 'undefined' && columns_all[column_key_clean].table) {if(!column_action) {column_action = [];}column_action.push({label: Lang.get('delete'),params: {index: ic},js: function (params) {columns_list.splice(params.index, 1);Views.updateColumns(Router.getParam('view'), columns_list);ColumnsManage.reloadAllHtml();}});if(columns_list[ic] == 'url'){column_action.push({label: Lang.get('customize'),popup: {id: 'views_personalize_' + Router.getMethod() + '_' + Router.getAction(),reload: 'true',params: {view:Router.getParam('view')}},});}}var array_percetange_value = ['visibility', 'performance', 'ranking', 'rank'];if(array_percetange_value.indexOf(column_key_clean) !== -1) {if(!column_action) {column_action = [];}var label_percentage = Lang.get('evolution_in_value');var value_percentage = 'value';if(!Views.isEvolutionPercentage(view, column_key_clean)) {label_percentage = Lang.get('percentage_change');value_percentage = 'percentage';}column_action.push({label: label_percentage,api: {module: 'views/evolution',method: 'put',params: [{key: 'value', value: value_percentage}, {key: 'column',value: columns[ic]}],js: function () {setTimeout(function(){daily_keywordsrankingsTable(rankingsTable_cache[entity_get_data_key], false);}, 25);}},});if(columns_list[ic] == 'ranking') {column_action.push({label: Lang.get('customize'),popup: {id: 'views_personalize_' + Router.getMethod() + '_' + Router.getAction(),reload: 'true',params: {view: Router.getParam('view')}},});}}column_icons_right = '';if(column_action) {column_icons_right = columnsIconsRight(columns[ic], column_action);}var column_percentage_value = false;if(array_percetange_value.indexOf(columns[ic]) !== -1) {column_percentage_value = true;}if(columns[ic].indexOf('type') == -1) {column_type = columns[ic];} else {column_type = 'type';}var label = '';var sort_config = SortConfig.get(columns[ic]);if(sort_config) {label = sort_config.name;} else {var config = Filters.get(columns[ic]);if(config && typeof config.table != 'undefined') {label = config.table.name;}}if(columns[ic] == 'graphic') {label = Lang.get('evolution');}if(column_type == 'type') {label = Lang.get('acquired', false, true);}var sort_icon = '';var sort_icon_location = '';if(typeof sorts_keys[columns[ic]] != 'undefined') {sort_icon = '<div class="icon_sort_hide">' + Icon.sortAsc() + '</div>';var url_tmp = Router.setParam('order', 'asc');url_tmp = Router.setParam('sort', columns[ic], url_tmp);sort_icon_location = ' v-url="' + url_tmp + '"';}if(Router.getParam('sort') && Router.getParam('sort') == columns[ic]) {if(Router.getParam('order') && Router.getParam('order') == 'desc') {sort_icon = Icon.sortDesc();sort_icon_location = ' v-url="' + Router.setParam('order', 'asc') + '"';} else {sort_icon = Icon.sortAsc();sort_icon_location = ' v-url="' + Router.setParam('order', 'desc') + '"';}}else{if(typeof view.config.sort != 'undefined' && typeof view.config.sort[Router.getParam('field')] != 'undefined'){var order   = view.config.sort[Router.getParam('field')].order;var sort= view.config.sort[Router.getParam('field')].sort;if(columns[ic] == sort){if(order == 'asc'){sort_icon = Icon.sortAsc();sort_icon_location = ' v-url="' + Router.setParam('order', 'desc') + '"';}else{sort_icon = Icon.sortDesc();sort_icon_location = ' v-url="' + Router.setParam('order', 'asc') + '"';}}}}var column_class = '';if(ic == 0){column_class = ' first';}html += '<div class="column move' + column_class + '" v-column="' + columns[ic] + '"><div class="column_move_bg"></div>';if(columns[ic] == 'tops10' ||columns[ic] == 'tops30' ||columns[ic] == 'tops100') {if(columns[ic] == 'tops10') {html += '' +'<div class="cell cell_' + columns[ic] + ' cell_top1">' + column_icons_left + 'TOP1</div>' +'<div class="cell cell_' + columns[ic] + ' cell_top3">TOP3</div>' +'<div class="cell cell_' + columns[ic] + ' cell_top10">TOP10 ' + column_icons_right + '</div>';}else{if(columns[ic] == 'tops30') {html += '' +'<div class="cell cell_' + columns[ic] + ' cell_top10">' + column_icons_left + 'TOP10</div>' +'<div class="cell cell_' + columns[ic] + ' cell_top20">TOP20</div>' +'<div class="cell cell_' + columns[ic] + ' cell_top30">TOP30 ' + column_icons_right + '</div>';}else{html += '' +'<div class="cell cell_' + columns[ic] + ' cell_top100">Positionné</div>';}}} else {var mobile_class = '';if(column_type == 'keyword'){mobile_class = ' mobile_fixed_cell';}html += '' +'<div class="cell sort_update cell_' + column_type + mobile_class + '" v-title="' + label + '"' + sort_icon_location + '>' + column_icons_left + label + sort_icon + column_icons_right + '</div>';}html += '</div>';}}html += '</div>' +'<div class="line">';var column_type = false;for(var ic = 0, cc = columns.length; ic < cc; ic++) {if(columns[ic] != 'queries_count' && columns[ic] != 'visibility_max' && columns[ic] != 'performance_max') {if(columns[ic].indexOf('type') == -1) {column_type = columns[ic];} else {column_type = 'type';}switch (column_type) {case 'keyword':case 'volume_last':case 'volume_year':case 'volume_month':case 'volume_historical':case 'seasonality':case 'ctr':case 'cpc':case 'competition':case 'url':case 'url_count':case 'graphic':case 'information':var mobile_class = '';if(column_type == 'keyword'){mobile_class = ' mobile_fixed_cell';}html += '<div class="cell cell_' + columns[ic] + mobile_class + '"></div>';break;case 'serp_features':case 'bloc_natural_pixel':if(active_desktop) {var sort_top = daily_keywordsgetSortTops('bloc_natural_pixel', sorts_keys, columns[ic], 'desktop');html += '<div class="cell sort_update value_stat_icon cell_' + columns[ic] + '"' + sort_top.location + '><svg xmlns="http://www.w3.org/2000/svg" width="24" height="24" viewBox="0 0 24 24"><path d="M2 0c-1.104 0-2 .896-2 2v15c0 1.104.896 2 2 2h20c1.104 0 2-.896 2-2v-15c0-1.104-.896-2-2-2h-20zm20 14h-20v-12h20v12zm-6.599 7c0 1.6 1.744 2.625 2.599 3h-12c.938-.333 2.599-1.317 2.599-3h6.802z"/></svg>' + sort_top.icon + '</div>';}if(active_mobile){var sort_top = daily_keywordsgetSortTops('bloc_natural_pixel', sorts_keys, columns[ic], 'mobile');html += '<div class="cell sort_update value_stat_icon cell_' + columns[ic] + '"' + sort_top.location + '><svg xmlns="http://www.w3.org/2000/svg" width="24" height="24" viewBox="0 0 24 24"><path d="M19 2c0-1.104-.896-2-2-2h-10c-1.104 0-2 .896-2 2v20c0 1.104.896 2 2 2h10c1.104 0 2-.896 2-2v-20zm-8.5 0h3c.276 0 .5.224.5.5s-.224.5-.5.5h-3c-.276 0-.5-.224-.5-.5s.224-.5.5-.5zm1.5 20c-.553 0-1-.448-1-1s.447-1 1-1c.552 0 .999.448.999 1s-.447 1-.999 1zm5-3h-10v-14.024h10v14.024z"/></svg>' + sort_top.icon + '</div>';}break;case 'ranking':case 'visibility':case 'pixel':case 'performance':if(active_desktop) {var sort_top= daily_keywordsgetSortTops(column_type, sorts_keys, columns[ic], 'desktop');var sort_top_evolution  = daily_keywordsgetSortTops(column_type + '_evolution', sorts_keys, columns[ic], 'desktop');var sort_top_average= daily_keywordsgetSortTops(column_type + '_average', sorts_keys, columns[ic], 'desktop');html += '' +'<div class="cell sort_update cell_value_' + columns[ic] + ' value_stat value_rank"' + sort_top.location + '><svg xmlns="http://www.w3.org/2000/svg" width="24" height="24" viewBox="0 0 24 24"><path d="M2 0c-1.104 0-2 .896-2 2v15c0 1.104.896 2 2 2h20c1.104 0 2-.896 2-2v-15c0-1.104-.896-2-2-2h-20zm20 14h-20v-12h20v12zm-6.599 7c0 1.6 1.744 2.625 2.599 3h-12c.938-.333 2.599-1.317 2.599-3h6.802z"/></svg>' + sort_top.icon + '</div>' +'<div class="cell sort_update cell_value_' + columns[ic] + '_evolution cell_noborder value_stat_evolution"' + sort_top_evolution.location + '>' + sort_top_evolution.icon + '</div>'+'<div class="cell sort_update cell_average_' + columns[ic] + ' cell_noborder value_stat_average value_rank_average"' + sort_top_average.location + '>Moy.</div>';}if(active_mobile){var sort_top= daily_keywordsgetSortTops(column_type, sorts_keys, columns[ic], 'mobile');var sort_top_evolution  = daily_keywordsgetSortTops(column_type + '_evolution', sorts_keys, columns[ic], 'mobile');var sort_top_average= daily_keywordsgetSortTops(column_type + '_average', sorts_keys, columns[ic], 'mobile');html += '' +'<div class="cell sort_update cell_value_' + columns[ic] + ' value_stat value_rank"' + sort_top.location + '><svg xmlns="http://www.w3.org/2000/svg" width="24" height="24" viewBox="0 0 24 24"><path d="M19 2c0-1.104-.896-2-2-2h-10c-1.104 0-2 .896-2 2v20c0 1.104.896 2 2 2h10c1.104 0 2-.896 2-2v-20zm-8.5 0h3c.276 0 .5.224.5.5s-.224.5-.5.5h-3c-.276 0-.5-.224-.5-.5s.224-.5.5-.5zm1.5 20c-.553 0-1-.448-1-1s.447-1 1-1c.552 0 .999.448.999 1s-.447 1-.999 1zm5-3h-10v-14.024h10v14.024z"/></svg>' + sort_top.icon + '</div>' +'<div class="cell sort_update cell_value_' + columns[ic] + '_evolution cell_noborder value_stat_evolution"' + sort_top_evolution.location + '>' + sort_top_evolution.icon + '</div>'+'<div class="cell sort_update cell_average_' + columns[ic] + ' cell_noborder value_stat_average value_rank_average"' + sort_top_average.location + '>Moy.</div>';}break;case 'yoyo':if(active_desktop) {var sort_top = daily_keywordsgetSortTops(column_type, sorts_keys, columns[ic], 'desktop');html += '' +'<div class="cell sort_update value_stat_icon cell_yoyo_device"' + sort_top.location + '><svg xmlns="http://www.w3.org/2000/svg" width="24" height="24" viewBox="0 0 24 24"><path d="M2 0c-1.104 0-2 .896-2 2v15c0 1.104.896 2 2 2h20c1.104 0 2-.896 2-2v-15c0-1.104-.896-2-2-2h-20zm20 14h-20v-12h20v12zm-6.599 7c0 1.6 1.744 2.625 2.599 3h-12c.938-.333 2.599-1.317 2.599-3h6.802z"/></svg><div class="sort_yoyo">' + sort_top.icon + '</div></div>' +'<div class="cell sort_update value_stat_icon cell_yoyo_sum"' + sort_top.location + '></div>';}if(active_mobile){var sort_top = daily_keywordsgetSortTops(column_type, sorts_keys, columns[ic], 'mobile');html += '' +'<div class="cell sort_update value_stat_icon cell_yoyo_device"' + sort_top.location + '><svg xmlns="http://www.w3.org/2000/svg" width="24" height="24" viewBox="0 0 24 24"><path d="M19 2c0-1.104-.896-2-2-2h-10c-1.104 0-2 .896-2 2v20c0 1.104.896 2 2 2h10c1.104 0 2-.896 2-2v-20zm-8.5 0h3c.276 0 .5.224.5.5s-.224.5-.5.5h-3c-.276 0-.5-.224-.5-.5s.224-.5.5-.5zm1.5 20c-.553 0-1-.448-1-1s.447-1 1-1c.552 0 .999.448.999 1s-.447 1-.999 1zm5-3h-10v-14.024h10v14.024z"/></svg><div class="sort_yoyo">' + sort_top.icon + '</div></div>' +'<div class="cell sort_update value_stat_icon cell_yoyo_sum"' + sort_top.location + '></div>';}break;case 'target':if(active_desktop) {var sort_top1 = daily_keywordsgetSortTops('target_best', sorts_keys, columns[ic], 'desktop');var sort_top2 = daily_keywordsgetSortTops('target_medium', sorts_keys, columns[ic], 'desktop');var sort_top3 = daily_keywordsgetSortTops('target_null', sorts_keys, columns[ic], 'desktop');html += '' +'<div class="cell sort_update value_stat_icon cell_target_sum cell_target_sum_left"' + sort_top1.location + '><svg v-title="' + Lang.get('your_target_url_is_best_positioned') + '" class="icon_target_best" xmlns="http://www.w3.org/2000/svg" width="24" height="24" viewBox="0 0 24 24"><path d="M2 0c-1.104 0-2 .896-2 2v15c0 1.104.896 2 2 2h20c1.104 0 2-.896 2-2v-15c0-1.104-.896-2-2-2h-20zm20 14h-20v-12h20v12zm-6.599 7c0 1.6 1.744 2.625 2.599 3h-12c.938-.333 2.599-1.317 2.599-3h6.802z"/></svg></div>' +'<div class="cell sort_update value_stat_icon cell_target_sum"' + sort_top2.location + '><svg v-title="' + Lang.get('your_target_url_is_positioned_but_another_one_at_better_position') + '" class="icon_target_medium" xmlns="http://www.w3.org/2000/svg" width="24" height="24" viewBox="0 0 24 24"><path d="M2 0c-1.104 0-2 .896-2 2v15c0 1.104.896 2 2 2h20c1.104 0 2-.896 2-2v-15c0-1.104-.896-2-2-2h-20zm20 14h-20v-12h20v12zm-6.599 7c0 1.6 1.744 2.625 2.599 3h-12c.938-.333 2.599-1.317 2.599-3h6.802z"/></svg></div>' +'<div class="cell sort_update value_stat_icon cell_target_sum"' + sort_top3.location + '><svg v-title="' + Lang.get('your_target_url_is_not_positioned') + '" class="icon_target_null" xmlns="http://www.w3.org/2000/svg" width="24" height="24" viewBox="0 0 24 24"><path d="M2 0c-1.104 0-2 .896-2 2v15c0 1.104.896 2 2 2h20c1.104 0 2-.896 2-2v-15c0-1.104-.896-2-2-2h-20zm20 14h-20v-12h20v12zm-6.599 7c0 1.6 1.744 2.625 2.599 3h-12c.938-.333 2.599-1.317 2.599-3h6.802z"/></svg></div>';}if(active_mobile){var sort_top1 = daily_keywordsgetSortTops('target_best', sorts_keys, columns[ic], 'mobile');var sort_top2 = daily_keywordsgetSortTops('target_medium', sorts_keys, columns[ic], 'mobile');var sort_top3 = daily_keywordsgetSortTops('target_null', sorts_keys, columns[ic], 'mobile');html += '' +'<div class="cell sort_update value_stat_icon cell_target_sum cell_target_sum_left"' + sort_top1.location + '><svg v-title="' + Lang.get('your_target_url_is_best_positioned') + '" class="icon_target_best" xmlns="http://www.w3.org/2000/svg" width="24" height="24" viewBox="0 0 24 24"><path d="M19 2c0-1.104-.896-2-2-2h-10c-1.104 0-2 .896-2 2v20c0 1.104.896 2 2 2h10c1.104 0 2-.896 2-2v-20zm-8.5 0h3c.276 0 .5.224.5.5s-.224.5-.5.5h-3c-.276 0-.5-.224-.5-.5s.224-.5.5-.5zm1.5 20c-.553 0-1-.448-1-1s.447-1 1-1c.552 0 .999.448.999 1s-.447 1-.999 1zm5-3h-10v-14.024h10v14.024z"/></svg></div>' +'<div class="cell sort_update value_stat_icon cell_target_sum"' + sort_top2.location + '><svg v-title="' + Lang.get('your_target_url_is_positioned_but_another_one_at_better_position') + '" class="icon_target_medium" xmlns="http://www.w3.org/2000/svg" width="24" height="24" viewBox="0 0 24 24"><path d="M19 2c0-1.104-.896-2-2-2h-10c-1.104 0-2 .896-2 2v20c0 1.104.896 2 2 2h10c1.104 0 2-.896 2-2v-20zm-8.5 0h3c.276 0 .5.224.5.5s-.224.5-.5.5h-3c-.276 0-.5-.224-.5-.5s.224-.5.5-.5zm1.5 20c-.553 0-1-.448-1-1s.447-1 1-1c.552 0 .999.448.999 1s-.447 1-.999 1zm5-3h-10v-14.024h10v14.024z"/></svg></div>' +'<div class="cell sort_update value_stat_icon cell_target_sum"' + sort_top3.location + '><svg v-title="' + Lang.get('your_target_url_is_not_positioned') + '" class="icon_target_null" xmlns="http://www.w3.org/2000/svg" width="24" height="24" viewBox="0 0 24 24"><path d="M19 2c0-1.104-.896-2-2-2h-10c-1.104 0-2 .896-2 2v20c0 1.104.896 2 2 2h10c1.104 0 2-.896 2-2v-20zm-8.5 0h3c.276 0 .5.224.5.5s-.224.5-.5.5h-3c-.276 0-.5-.224-.5-.5s.224-.5.5-.5zm1.5 20c-.553 0-1-.448-1-1s.447-1 1-1c.552 0 .999.448.999 1s-.447 1-.999 1zm5-3h-10v-14.024h10v14.024z"/></svg></div>';}break;case 'tops10':for(var i_top=0;i_top<3;i_top++) {var top = 1;if(i_top == 1){top = 3;}if(i_top == 2){top = 10;}html += '' +'<div class="cell cell_' + columns[ic] + ' value_stat_icon cell_top' + top + '">';if(active_desktop) {var sort_top = daily_keywordsgetSortTops('top'+top, sorts_keys, columns[ic], 'desktop');html += '   <div class="cell_top_device sort_update"' + sort_top.location + '><svg xmlns="http://www.w3.org/2000/svg" width="24" height="24" viewBox="0 0 24 24"><path d="M2 0c-1.104 0-2 .896-2 2v15c0 1.104.896 2 2 2h20c1.104 0 2-.896 2-2v-15c0-1.104-.896-2-2-2h-20zm20 14h-20v-12h20v12zm-6.599 7c0 1.6 1.744 2.625 2.599 3h-12c.938-.333 2.599-1.317 2.599-3h6.802z"/></svg>' + sort_top.icon + '</div>';}if(active_mobile) {var sort_top = daily_keywordsgetSortTops('top'+top, sorts_keys, columns[ic], 'mobile');html += '   <div class="cell_top_device sort_update"' + sort_top.location + '><svg xmlns="http://www.w3.org/2000/svg" width="24" height="24" viewBox="0 0 24 24"><path d="M19 2c0-1.104-.896-2-2-2h-10c-1.104 0-2 .896-2 2v20c0 1.104.896 2 2 2h10c1.104 0 2-.896 2-2v-20zm-8.5 0h3c.276 0 .5.224.5.5s-.224.5-.5.5h-3c-.276 0-.5-.224-.5-.5s.224-.5.5-.5zm1.5 20c-.553 0-1-.448-1-1s.447-1 1-1c.552 0 .999.448.999 1s-.447 1-.999 1zm5-3h-10v-14.024h10v14.024z"/></svg>' + sort_top.icon + '</div>';}html += '</div>';}break;case 'tops30':for(var i_top=0;i_top<3;i_top++) {var top = 10;if(i_top == 1){top = 20;}if(i_top == 2){top = 30;}html += '' +'<div class="cell cell_' + columns[ic] + ' value_stat_icon cell_top' + top + '">';if(active_desktop) {var sort_top = daily_keywordsgetSortTops('top'+top, sorts_keys, columns[ic], 'desktop');html += '   <div class="cell_top_device sort_update"' + sort_top.location + '><svg xmlns="http://www.w3.org/2000/svg" width="24" height="24" viewBox="0 0 24 24"><path d="M2 0c-1.104 0-2 .896-2 2v15c0 1.104.896 2 2 2h20c1.104 0 2-.896 2-2v-15c0-1.104-.896-2-2-2h-20zm20 14h-20v-12h20v12zm-6.599 7c0 1.6 1.744 2.625 2.599 3h-12c.938-.333 2.599-1.317 2.599-3h6.802z"/></svg>' + sort_top.icon + '</div>';}if(active_mobile) {var sort_top = daily_keywordsgetSortTops('top'+top, sorts_keys, columns[ic], 'mobile');html += '   <div class="cell_top_device sort_update"' + sort_top.location + '><svg xmlns="http://www.w3.org/2000/svg" width="24" height="24" viewBox="0 0 24 24"><path d="M19 2c0-1.104-.896-2-2-2h-10c-1.104 0-2 .896-2 2v20c0 1.104.896 2 2 2h10c1.104 0 2-.896 2-2v-20zm-8.5 0h3c.276 0 .5.224.5.5s-.224.5-.5.5h-3c-.276 0-.5-.224-.5-.5s.224-.5.5-.5zm1.5 20c-.553 0-1-.448-1-1s.447-1 1-1c.552 0 .999.448.999 1s-.447 1-.999 1zm5-3h-10v-14.024h10v14.024z"/></svg>' + sort_top.icon + '</div>';}html += '</div>';}break;case 'tops100':html += '' +'<div class="cell cell_' + columns[ic] + ' value_stat_icon cell_top100">';if(active_desktop) {var sort_top = daily_keywordsgetSortTops('top100', sorts_keys, columns[ic], 'desktop');html += '   <div class="cell_top_device sort_update"' + sort_top.location + '><svg xmlns="http://www.w3.org/2000/svg" width="24" height="24" viewBox="0 0 24 24"><path d="M2 0c-1.104 0-2 .896-2 2v15c0 1.104.896 2 2 2h20c1.104 0 2-.896 2-2v-15c0-1.104-.896-2-2-2h-20zm20 14h-20v-12h20v12zm-6.599 7c0 1.6 1.744 2.625 2.599 3h-12c.938-.333 2.599-1.317 2.599-3h6.802z"/></svg>' + sort_top.icon + '</div>';}if(active_mobile) {var sort_top = daily_keywordsgetSortTops('top100', sorts_keys, columns[ic], 'mobile');html += '   <div class="cell_top_device sort_update"' + sort_top.location + '><svg xmlns="http://www.w3.org/2000/svg" width="24" height="24" viewBox="0 0 24 24"><path d="M19 2c0-1.104-.896-2-2-2h-10c-1.104 0-2 .896-2 2v20c0 1.104.896 2 2 2h10c1.104 0 2-.896 2-2v-20zm-8.5 0h3c.276 0 .5.224.5.5s-.224.5-.5.5h-3c-.276 0-.5-.224-.5-.5s.224-.5.5-.5zm1.5 20c-.553 0-1-.448-1-1s.447-1 1-1c.552 0 .999.448.999 1s-.447 1-.999 1zm5-3h-10v-14.024h10v14.024z"/></svg>' + sort_top.icon + '</div>';}html += '</div>';break;case 'type':html += '' +'<div class="cell cell_' + columns[ic] + ' value_stat_icon cell_type">';if(active_desktop) {var sort_top = daily_keywordsgetSortTops('opportunities', sorts_keys, columns[ic], 'desktop');html += '   <div class="cell_top_device sort_update"' + sort_top.location + '><svg xmlns="http://www.w3.org/2000/svg" width="24" height="24" viewBox="0 0 24 24"><path d="M2 0c-1.104 0-2 .896-2 2v15c0 1.104.896 2 2 2h20c1.104 0 2-.896 2-2v-15c0-1.104-.896-2-2-2h-20zm20 14h-20v-12h20v12zm-6.599 7c0 1.6 1.744 2.625 2.599 3h-12c.938-.333 2.599-1.317 2.599-3h6.802z"/></svg>' + sort_top.icon + '</div>';}if(active_mobile) {var sort_top = daily_keywordsgetSortTops('opportunities', sorts_keys, columns[ic], 'mobile');html += '   <div class="cell_top_device sort_update"' + sort_top.location + '><svg xmlns="http://www.w3.org/2000/svg" width="24" height="24" viewBox="0 0 24 24"><path d="M19 2c0-1.104-.896-2-2-2h-10c-1.104 0-2 .896-2 2v20c0 1.104.896 2 2 2h10c1.104 0 2-.896 2-2v-20zm-8.5 0h3c.276 0 .5.224.5.5s-.224.5-.5.5h-3c-.276 0-.5-.224-.5-.5s.224-.5.5-.5zm1.5 20c-.553 0-1-.448-1-1s.447-1 1-1c.552 0 .999.448.999 1s-.447 1-.999 1zm5-3h-10v-14.024h10v14.024z"/></svg>' + sort_top.icon + '</div>';}html += '</div>';break;case 'opportunities_all':html += '' +'<div class="cell cell_' + columns[ic] + ' value_stat_icon cell_opportunities_all">';if(active_desktop) {var sort_top = daily_keywordsgetSortTops('opportunities_all', sorts_keys, columns[ic], 'desktop');html += '   <div class="cell_top_device sort_update"' + sort_top.location + '><svg xmlns="http://www.w3.org/2000/svg" width="24" height="24" viewBox="0 0 24 24"><path d="M2 0c-1.104 0-2 .896-2 2v15c0 1.104.896 2 2 2h20c1.104 0 2-.896 2-2v-15c0-1.104-.896-2-2-2h-20zm20 14h-20v-12h20v12zm-6.599 7c0 1.6 1.744 2.625 2.599 3h-12c.938-.333 2.599-1.317 2.599-3h6.802z"/></svg>' + sort_top.icon + '</div>';}if(active_mobile) {var sort_top = daily_keywordsgetSortTops('opportunities_all', sorts_keys, columns[ic], 'mobile');html += '   <div class="cell_top_device sort_update"' + sort_top.location + '><svg xmlns="http://www.w3.org/2000/svg" width="24" height="24" viewBox="0 0 24 24"><path d="M19 2c0-1.104-.896-2-2-2h-10c-1.104 0-2 .896-2 2v20c0 1.104.896 2 2 2h10c1.104 0 2-.896 2-2v-20zm-8.5 0h3c.276 0 .5.224.5.5s-.224.5-.5.5h-3c-.276 0-.5-.224-.5-.5s.224-.5.5-.5zm1.5 20c-.553 0-1-.448-1-1s.447-1 1-1c.552 0 .999.448.999 1s-.447 1-.999 1zm5-3h-10v-14.024h10v14.024z"/></svg>' + sort_top.icon + '</div>';}html += '</div>';break;}}}html += '' +'</div></div>';var last = '';if(!datas){html += '<div class="line_master"><div class="line"><div class="cell cell_no_result">Aucun résultat</div></div></div>';}var url_show = 'all';if(typeof view.config.personalize != 'undefined' && typeof view.config.personalize.url_show != 'undefined') {url_show = view.config.personalize.url_show;}var tags = Db.select('tags', false, [{field:'sort', order:'asc', type:'numeric'}]);var tags_by_id = {};if(tags){for(var it=0;it<tags.length;it++){tags_by_id[tags[it].id] = tags[it];}}for(var id = 0, cd = datas.length; id < cd; id++) {html += '<div class="line_master">';var values = datas[id];var query = values;var query_key = query.key;var keyword_last = false;var line_merge_save = false;for(var i_compare=0, c_compare=entity_compare.length;i_compare<c_compare;i_compare++) {var id_entity_compare   = entity_compare[i_compare];var entity_compare_info = Db.selectOne('entities', [[{field:'id', value:id_entity_compare}]]);var key_data= datas_compare_keys[id_entity_compare][query_key];if(typeof key_data != 'undefined') {var values = datas_compare[id_entity_compare][key_data];var query = values;var urls = values.urls;var urls_values = {};for(var ip = 0; ip < periods.length; ip++) {urls_values[ip] = [];}for(var ip = 0; ip < periods.length; ip++) {urls_values[ip].push({values: query.urls[ip + 1].best_values,url: query['url' + (ip + 1)]});if(urls[ip + 1].keys) {for(var iu = 0, cu = urls[ip + 1].keys.length; iu < cu; iu++) {var url = urls[ip + 1].keys[iu];urls_values[ip].push({values: urls[ip + 1].values[url], url: url});}}}var line_merge = 'merge';if(daily_keywords_split_merge == 'merge') {var vlinetype_merge = 'true';var vlinetype_split = 'false';} else {var vlinetype_split = 'true';var vlinetype_merge = 'false';}/* * SI 2 PERIODES ON AFFICHE QUE LE MOT-CLE DANS LA LIGNE PAR EXEMPLE */if(periods.length == 2 && i_compare == 0) {html += '' +'<div class="line multi_periods">';for(var ic = 0, cc = columns.length; ic < cc; ic++) {if(columns[ic] != 'queries_count' && columns[ic] != 'visibility_max' && columns[ic] != 'performance_max') {if(columns[ic].indexOf('type') == -1) {column_type = columns[ic];} else {column_type = 'type';}var label = '';if(column_type == 'keyword' && i_compare == 0) {var url_open = Config.app.url + 'daily/query?id=' + query.key;if(Router.getParam('_project')){url_open = Router.setParam('_project', Router.getParam('_project'), url_open);}if(Router.getParam('_entity')){url_open = Router.setParam('_entity', Router.getParam('_entity'), url_open);}if(Router.getParam('thematics')){url_open = Router.setParam('thematics', Router.getParam('thematics'), url_open);}label = '<a href="' + url_open + '" class="action">' + query[columns[ic]] + '</a>';}if(column_type == 'tops10' ||column_type == 'tops30' ||column_type == 'tops100') {if(column_type == 'tops10') {html += '' +'<div class="cell cell_' + columns[ic] + ' multi_periods">' + label + '</div>' +'<div class="cell cell_' + columns[ic] + ' multi_periods">' + label + '</div>' +'<div class="cell cell_' + columns[ic] + ' multi_periods">' + label + '</div>';} else {if(column_type == 'tops30') {html += '' +'<div class="cell cell_' + columns[ic] + ' multi_periods">' + label + '</div>' +'<div class="cell cell_' + columns[ic] + ' multi_periods">' + label + '</div>' +'<div class="cell cell_' + columns[ic] + ' multi_periods">' + label + '</div>';} else {html += '' +'<div class="cell cell_' + columns[ic] + ' multi_periods">' + label + '</div>';}}} else {switch (column_type) {case 'ranking':case 'visibility':case 'pixel':case 'performance':if(active_desktop) {html += '' +'<div class="cell cell_' + column_type + ' multi_periods"></div>' +'<div class="cell cell_' + column_type + ' evolution multi_periods"></div>' +'<div class="cell cell_' + column_type + ' cell_noborder value_stat_average multi_periods"></div>';}if(active_mobile) {html += '' +'<div class="cell cell_' + column_type + ' multi_periods"></div>' +'<div class="cell cell_' + column_type + ' evolution multi_periods"></div>' +'<div class="cell cell_' + column_type + ' cell_noborder value_stat_average multi_periods"></div>';}break;case 'yoyo':if(active_desktop) {html += '' +'   <div class="cell cell_yoyo_device"></div>' +'   <div class="cell cell_yoyo_sum"></div>';}if(active_mobile) {html += '' +'   <div class="cell cell_yoyo_device"></div>' +'   <div class="cell cell_yoyo_sum"></div>';}break;case 'target':if(active_desktop) {html += '' +'   <div class="cell cell_target_sum cell_target_sum_left "></div>' +'   <div class="cell cell_target_sum"></div>' +'   <div class="cell cell_target_sum"></div>';}if(active_mobile) {html += '' +'   <div class="cell cell_target_sum cell_target_sum_left "></div>' +'   <div class="cell cell_target_sum"></div>' +'   <div class="cell cell_target_sum"></div>';}break;case 'serp_features':case 'bloc_natural_pixel':if(active_desktop) {html += '<div class="cell cell_' + column_type + ' multi_periods">' + label + '</div>';}if(active_mobile) {html += '<div class="cell cell_' + column_type + ' multi_periods">' + label + '</div>';}break;default:var mobile_fixed_cell = '';if(ic == 0){mobile_fixed_cell = ' mobile_fixed_cell';}html += '' +'<div class="cell cell_' + column_type + ' multi_periods' + mobile_fixed_cell + '">' + label + '</div>';break;}}}}html += '' +'</div>';}//var cp = periods.length;for(var ip = 0; ip < cp; ip++) {for(var iuv = 0, cuv = urls_values[ip].length; iuv < cuv; iuv++) {var urls_values_item = urls_values[ip][iuv].values;var show_urls = true;if(active_desktop && !urls_values_item.desktop){show_urls = false;}if(active_mobile && !urls_values_item.mobile){show_urls = false;}/* * ON GERE JUSTE L'URL MAINTENANT POUR L'AFFICHER EN v-title */var url = '';if(iuv == 0) {if(query['url' + (ip + 1)]) {url = query['url' + (ip + 1)];}} else {url = urls_values[ip][iuv].url;}//var ip_value = ip + 1;var url_target_desktop = '';var url_target_mobile = '';if(query.url_target && typeof query.url_target[1] != 'undefined' && typeof query.url_target[1][id_entity_compare] != 'undefined') {url_target_desktop = query.url_target[1][id_entity_compare].last;}if(query.url_target && typeof query.url_target[2] != 'undefined' && typeof query.url_target[2][id_entity_compare] != 'undefined') {url_target_mobile = query.url_target[2][id_entity_compare].last;}var target_desktop = '';var target_mobile = '';var target_icon = '';var target_all = '';if(iuv <= 1) {if(query['desktop_target_last' + ip_value] == 'best') {target_desktop = '<svg class="icon_target_best" v-title="' + Lang.get('your_target_url_is_best_positioned') + ' : ' + periods[ip].end + '" xmlns="http://www.w3.org/2000/svg" width="24" height="24" viewBox="0 0 24 24"><path d="M2 0c-1.104 0-2 .896-2 2v15c0 1.104.896 2 2 2h20c1.104 0 2-.896 2-2v-15c0-1.104-.896-2-2-2h-20zm20 14h-20v-12h20v12zm-6.599 7c0 1.6 1.744 2.625 2.599 3h-12c.938-.333 2.599-1.317 2.599-3h6.802z"/></svg>';}if(query['desktop_target_last' + ip_value] == 'medium') {target_desktop = '<svg class="icon_target_medium" v-title="' + Lang.get('your_target_url_is_positioned_but_another_one_at_better_position') + ' : ' + periods[ip].end + '" xmlns="http://www.w3.org/2000/svg" width="24" height="24" viewBox="0 0 24 24"><path d="M2 0c-1.104 0-2 .896-2 2v15c0 1.104.896 2 2 2h20c1.104 0 2-.896 2-2v-15c0-1.104-.896-2-2-2h-20zm20 14h-20v-12h20v12zm-6.599 7c0 1.6 1.744 2.625 2.599 3h-12c.938-.333 2.599-1.317 2.599-3h6.802z"/></svg>';}if(query['desktop_target_last' + ip_value] == 'null') {target_desktop = '<svg class="icon_target_null" v-title="' + Lang.get('your_target_url_is_not_positioned') + ' : ' + periods[ip].end + '" xmlns="http://www.w3.org/2000/svg" width="24" height="24" viewBox="0 0 24 24"><path d="M2 0c-1.104 0-2 .896-2 2v15c0 1.104.896 2 2 2h20c1.104 0 2-.896 2-2v-15c0-1.104-.896-2-2-2h-20zm20 14h-20v-12h20v12zm-6.599 7c0 1.6 1.744 2.625 2.599 3h-12c.938-.333 2.599-1.317 2.599-3h6.802z"/></svg>';}if(query['mobile_target_last' + ip_value] == 'best') {target_mobile = '<svg class="icon_target_best" v-title="' + Lang.get('your_target_url_is_best_positioned') + ' : ' + periods[ip].end + '" xmlns="http://www.w3.org/2000/svg" width="24" height="24" viewBox="0 0 24 24"><path d="M19 2c0-1.104-.896-2-2-2h-10c-1.104 0-2 .896-2 2v20c0 1.104.896 2 2 2h10c1.104 0 2-.896 2-2v-20zm-8.5 0h3c.276 0 .5.224.5.5s-.224.5-.5.5h-3c-.276 0-.5-.224-.5-.5s.224-.5.5-.5zm1.5 20c-.553 0-1-.448-1-1s.447-1 1-1c.552 0 .999.448.999 1s-.447 1-.999 1zm5-3h-10v-14.024h10v14.024z"/></svg>';}if(query['mobile_target_last' + ip_value] == 'medium') {target_mobile = '<svg class="icon_target_medium" v-title="' + Lang.get('your_target_url_is_positioned_but_another_one_at_better_position') + ' : ' + periods[ip].end + '" xmlns="http://www.w3.org/2000/svg" width="24" height="24" viewBox="0 0 24 24"><path d="M19 2c0-1.104-.896-2-2-2h-10c-1.104 0-2 .896-2 2v20c0 1.104.896 2 2 2h10c1.104 0 2-.896 2-2v-20zm-8.5 0h3c.276 0 .5.224.5.5s-.224.5-.5.5h-3c-.276 0-.5-.224-.5-.5s.224-.5.5-.5zm1.5 20c-.553 0-1-.448-1-1s.447-1 1-1c.552 0 .999.448.999 1s-.447 1-.999 1zm5-3h-10v-14.024h10v14.024z"/></svg>';}if(query['mobile_target_last' + ip_value] == 'null') {target_mobile = '<svg class="icon_target_null" v-title="' + Lang.get('your_target_url_is_not_positioned') + ' : ' + periods[ip].end + '" xmlns="http://www.w3.org/2000/svg" width="24" height="24" viewBox="0 0 24 24"><path d="M19 2c0-1.104-.896-2-2-2h-10c-1.104 0-2 .896-2 2v20c0 1.104.896 2 2 2h10c1.104 0 2-.896 2-2v-20zm-8.5 0h3c.276 0 .5.224.5.5s-.224.5-.5.5h-3c-.276 0-.5-.224-.5-.5s.224-.5.5-.5zm1.5 20c-.553 0-1-.448-1-1s.447-1 1-1c.552 0 .999.448.999 1s-.447 1-.999 1zm5-3h-10v-14.024h10v14.024z"/></svg>';}}target_all = '';active_target_icon = '';if(Permission.userAccess('url_target|write')) {active_target_icon = '<svg class="icon_target" v-title="' + Lang.get('target_url_for_this_keyword') + '" xmlns="http://www.w3.org/2000/svg" width="24" height="24" viewBox="0 0 24 24"><path d="M24 11h-2.051c-.469-4.725-4.224-8.48-8.949-8.95v-2.05h-2v2.05c-4.725.47-8.48 4.225-8.949 8.95h-2.051v2h2.051c.469 4.725 4.224 8.48 8.949 8.95v2.05h2v-2.05c4.725-.469 8.48-4.225 8.949-8.95h2.051v-2zm-11 8.931v-3.931h-2v3.931c-3.611-.454-6.478-3.32-6.931-6.931h3.931v-2h-3.931c.453-3.611 3.32-6.477 6.931-6.931v3.931h2v-3.931c3.611.454 6.478 3.319 6.931 6.931h-3.931v2h3.931c-.453 3.611-3.32 6.477-6.931 6.931zm1-7.931c0 1.104-.896 2-2 2s-2-.896-2-2 .896-2 2-2 2 .896 2 2z"/></svg>';}var url_btoa = encodeURI(url);target_all = '<div class="target_all" v-popup-open="url_target" v-popup-reload="true" v-popup-params="' + btoa(JSON.stringify({url: url_btoa,entity_id: id_entity_compare,query_id: query.key})) + '">' + active_target_icon + target_desktop + target_mobile + '</div>';var statistics_devices = [];if(active_mobile) {statistics_devices.push({key: 'mobile',name: Lang.get('mobile'),reverse: true,class: 'style2'},);}if(active_desktop) {statistics_devices.push({key: 'desktop',name: Lang.get('desktop'),reverse: true});}var height_graph = 35;if(mode_style == 'compact') {height_graph = 21;}var chart_html = Charts.timesSeries({class: 'xsmall',legend: {items: false,values: true,average: false,},size: {width: 150, height: height_graph},axis: {y: false, x: false},axisY: {min: 0, max: 100},reverse: true,valueDefault: 0,grid: false,statistics: statistics_devices,periods: [periods[ip]],style: {classGraph: false}},[{entity: entity,values: {desktop: urls_values_item.desktop,mobile: urls_values_item.mobile,}}]);var keyword = '';if(iuv <= 1) {// ON AFFICHE MOT CLE QUE POUR LA 1ERE LIGNEif(periods.length == 2) {keyword = periods[ip].init + ' - ' + periods[ip].end;} else {keyword = query.keyword;}} else {if(periods.length == 2) {keyword = periods[ip].init + ' - ' + periods[ip].end;}}var information = queryInformation(query);//if(iuv == 0) {line_merge = 'merge';} else {line_merge = 'split';}if(daily_keywords_split_merge == line_merge) {show = 'true';} else {show = 'false';}if(cuv == 1) {show = 'true';}if(cuv == 1) {line_merge = '';}var last = '';if((iuv == cuv - 1 ||iuv == 0) && ip == cp - 1) {last = ' last';}var show_line = true;if(show_line) {if(!line_merge){line_merge = 'merge';}html += '' +'<div class="line ' + last + '" v-line-show-test="' + cuv + '" v-line-show="' + show + '" v-line-type="' + line_merge + '">';if(line_merge == 'split' && line_merge != line_merge_save && i_compare == 0) {keyword_last = false;}line_merge_save = line_merge;if(cp == 1 ||(cp == 2 && ip == 1)) {line_merge = 'split';}for(var ic = 0, cc = columns.length; ic < cc; ic++) {if(columns[ic] != 'queries_count' && columns[ic] != 'visibility_max' && columns[ic] != 'performance_max') {if(columns[ic].indexOf('type') == -1) {column_type = columns[ic];} else {column_type = 'type';}var evolution_popup = '';if(column_type == 'ranking') {evolution_popup = ' v-query-key="' + query.key + '" v-query-entity="' + entity_id + '"';}var v_title = false;if(column_type != 'tops10' && column_type != 'opportunities_all' && column_type != 'tops30' && column_type != 'tops100' && column_type != 'type' && column_type != 'yoyo' && column_type != 'target' && column_type != 'bloc_natural_pixel' && column_type != 'serp_features') {var mobile_class = '';if(columns[ic] == 'keyword'){mobile_class = ' mobile_fixed_cell';}html += '' +'<div class="cell cell_' + columns[ic] + mobile_class + '"';if(column_type == 'url') {html += ' v-title="' + url + '" v-title-top="12"';}if(column_type == 'keyword') {v_title = ' v-title="' + keyword + '" v-title-top="12"';}if(column_type == 'ctr') {html += ' v-title="' + query.ctr + '" v-title-top="12"';}html += evolution_popup + '>';}switch (column_type) {case 'keyword':var keywords_menu_value = [];var notice = "Etes vous sur de vouloir supprimer la sélection ?";var alert = "Toutes les positions de ces mots-clés seront supprimées";if(Permission.userAccess('queries|write')) {keywords_menu_value.push({class:'keyword_create_note',label: Lang.get('create_note'),popup: {id: 'notes_add',reload: 'true',params: {id_key: query.key, entity_id:entity.id, project_id:project_id, open_form:true}}});keywords_menu_value.push({label: Lang.get('themes'),popup: {id: 'queries_thematics',reload: 'true',params: {id_key: query.key}},});keywords_menu_value.push({label: 'CTR',popup: {id: 'queries_ctr',reload: 'true',params: {id_key: query.key}},});keywords_menu_value.push({label: Lang.get('relaunching_positions'),api: {module: 'queries/reload',method: 'put',params: [{key: 'id_key',value: query.key}]},});keywords_menu_value.push({label: Lang.get('serp_view'),api: {module: 'queries/serp',method: 'get',params: [{key: 'id_key',value: query.key}]},});if(query.desktop && query.mobile) {keywords_menu_value.push({label: Lang.get('delete') + ' ' + Icon.desktop() + ' ' + Icon.mobile(),api: {module: 'queries',method: 'delete',notice: notice,alert: alert,params: [{key: 'id_key',value: query.key}, {key: 'device', value: 'all'}]},});}if(query.desktop) {keywords_menu_value.push({label: Lang.get('delete') + ' ' + Icon.desktop(),api: {module: 'queries',method: 'delete',notice: notice,alert: alert,params: [{key: 'id_key',value: query.key}, {key: 'device', value: 1}]},});}if(query.mobile) {keywords_menu_value.push({label: Lang.get('delete') + ' ' + Icon.mobile(),api: {module: 'queries',method: 'delete',notice: notice,alert: alert,params: [{key: 'id_key',value: query.key}, {key: 'device', value: 2}]},});}}if(keyword != keyword_last) {var url_open = Config.app.url + 'daily/query?id=' + query.key;if(Router.getParam('_project')) {url_open = Router.setParam('_project', Router.getParam('_project'), url_open);}if(Router.getParam('_entity')) {url_open = Router.setParam('_entity', Router.getParam('_entity'), url_open);}if(Router.getParam('thematics')) {url_open = Router.setParam('thematics', Router.getParam('thematics'), url_open);}var ai_overview = '';if(query.ai_overview){ai_overview += '<div class="ai_overview" v-title="AI Overview ' + Lang.get('ai_on_the_serp') + '">AIO</div>';}if(periods.length == 2) {html += '<span class="type_period' + (ip + 1) + '"><span><a href="' + url_open + '" class="action">' + keyword + ai_overview + '</a></span>';if(Permission.userAccess('queries|write')) {html += keywordsMenu(keywords_menu_value);}html += '</span>';} else {html += '<span><a href="' + url_open + '" class="action">' + keyword + ai_overview + '</a></span>';if(Permission.userAccess('queries|write')) {html += keywordsMenu(keywords_menu_value);}}}html += '<a href="' + Config.api.url + 'queries/redir?id_query=' + query.key + '" target="_blank"><div class="icon_open_url"><svg xmlns="http://www.w3.org/2000/svg" width="24" height="24" viewBox="0 0 24 24"><path d="M21 13v10h-21v-19h12v2h-10v15h17v-8h2zm3-12h-10.988l4.035 4-6.977 7.07 2.828 2.828 6.977-7.07 4.125 4.172v-11z"/></svg></div></a>';html += '<div class="icon_tag" v-action-show="tags_list" v-id-entity="' + entity.id + '" v-id-query="' + query.key + '"><svg xmlns="http://www.w3.org/2000/svg" width="24" height="24" viewBox="0 0 24 24"><path d="M9.776 2l11.395 11.395-7.78 7.777-11.391-11.391v-7.781h7.776zm.829-2h-10.605v10.609l13.391 13.391 10.609-10.604-13.395-13.396zm-3.191 7.414c-.781.782-2.046.782-2.829.001-.781-.783-.781-2.048 0-2.829.782-.782 2.048-.781 2.829-.001.782.783.781 2.047 0 2.829z"/></svg></div>';if(iuv <= 1 && ip == 0) {if(i_compare == 0) {html += tagsQueryShow(query, tags_by_id, entity.id);}}if(keyword) {keyword_last = keyword;}break;case 'volume_last':if(iuv <= 1 && ip == 0) {var precision = 0;if(query.volume_last >= 1000 && query.volume_last < 10000) {precision = 1;}if(i_compare == 0) {html += Type.numeric.showNumberMinimal(query.volume_last, false, precision);}}break;case 'volume_year':if(iuv <= 1 && ip == 0) {var precision = 0;if(query.volume_year >= 1000 && query.volume_year < 10000) {precision = 1;}if(i_compare == 0) {html += Type.numeric.showNumberMinimal(query.volume_year, false, precision);}}break;case 'volume_month':if(iuv <= 1 && ip == 0) {var precision = 0;if(query.volume_month >= 1000 && query.volume_month < 10000) {precision = 1;}if(i_compare == 0) {html += Type.numeric.showNumberMinimal(query.volume_month, false, precision);}}break;case 'volume_historical':if(iuv <= 1 && ip == 0 && i_compare == 0) {html += queryVolumeHistorical(query, mode_style);}break;case 'seasonality':if(iuv <= 1 && ip == 0 && i_compare == 0) {var min_max = queryVolumeMinMax(query);html += '<div v-title="Volume minimum : ' + min_max.min + '<br />Volume maximum : ' + min_max.max + '">' + query.seasonality + '</div>';}break;case 'ctr':if(iuv <= 1 && ip == 0 && i_compare == 0) {html += query.ctr;}break;case 'information':if(iuv <= 1 && ip == 0 && i_compare == 0) {html += information;}break;case 'cpc':if(iuv <= 1 && ip == 0 && i_compare == 0) {html += Type.numeric.showNumberMinimal(query.cpc, false, 0);}break;case 'competition':if(iuv <= 1 && ip == 0 && i_compare == 0) {html += Type.numeric.showNumberMinimal(query.competition, false, 0);}break;case 'url':var url_target_desktop = '';var url_target_mobile = '';var style = '';if(entity_compare.length > 1) {style = ' style="color:#' + entity_compare_info.type_color + '"';}if(query.url_target && typeof query.url_target[1] != 'undefined' && typeof query.url_target[1][entity_id] != 'undefined') {url_target_desktop = query.url_target[1][entity_id].last;}if(query.url_target && typeof query.url_target[2] != 'undefined' && typeof query.url_target[2][entity_id] != 'undefined') {url_target_mobile = query.url_target[2][entity_id].last;}if(!url) {html += '<span' + style + '>' + target_all + '</span>';} else {var url_clean = url;if(url_show == 'hide_domain') {var pos_url = url_clean.indexOf('//');if(pos_url != -1) {pos_url = url_clean.indexOf('/', pos_url + 2);url_clean = url_clean.substr(pos_url + 1, url_clean.length);}}if(url_clean.indexOf('google_maps') === 0){var tmp_maps = url_clean.split('|');if(tmp_maps.length == 3){url_clean = tmp_maps[2];url = 'https://www.google.fr/maps/search/' + encodeURI(url_clean) + '/';}}if(url_clean.indexOf('google_maps') === 0){var tmp_maps = url_clean.split('|');if(tmp_maps.length == 2){url_clean = tmp_maps[1];url = 'https://www.google.fr/maps/search/' + encodeURI(url_clean) + '/';}}if(url_clean.indexOf('https://www.youtube.com/') === 0){url_clean = Type.string.replace(url_clean, 'https://www.youtube.com/watch?v=', '');}html += '<a href="' + url + '" class="action" target="_blank"' + style + '>' + url_clean + '</a>' + target_all;}break;case 'url_count':if(iuv <= 1) {html += '<span class="url_more_value" v-event-script="daily_keywordsrankingsShowSplit()">' + query['url_count' + (ip + 1)] + '</span>';}var icon = '<div class="url_no_more"></div>';if(query['url_count' + (ip_value)] > 1) {if(iuv <= 1) {var svg = '<svg xmlns="http://www.w3.org/2000/svg" width="24" height="24" viewBox="0 0 24 24"><path d="M24 10h-10v-10h-4v10h-10v4h10v10h4v-10h10z"/></svg>';if(show == vlinetype_split) {svg = '<svg xmlns="http://www.w3.org/2000/svg" width="24" height="24" viewBox="0 0 24 24"><path d="M0 10h24v4h-24z"/></svg>';}var icon = '<div class="url_more" v-event-script="daily_keywordsrankingsShowSplit()">' + svg + '</div>';}}html += icon;break;case 'graphic':html += '<div class="graphic_small_notes note_query_entity_' + ip + '_' + id_entity_compare + ' note_query_key_' + ip + '_' + query_key + '" v-query-key="' + query.key + '" v-query-entity="' + entity_id + '">';html += '</div>';var width_cell = (150 - 4) / (periods[ip].days - 1);var html_notes = '';var urls_sitemaps = [];if(line_merge_save == 'merge'){var csb = urls_values[ip].length;for(var isb=0;isb<csb;isb++){if(urls_values[ip][isb].url && urls_sitemaps.indexOf(urls_values[ip][isb].url) === -1){urls_sitemaps.push(urls_values[ip][isb].url);}}}else{urls_sitemaps.push(urls_values[ip][iuv].url);}for(var ius=0;ius<urls_sitemaps.length;ius++){var where = [[{field: 'id_entity', value: entity_id}, {field: 'url', value: urls_sitemaps[ius]}, {field:'date', value_min:periods[ip].init}, {field:'date', value_max:periods[ip].end}],];var notes = Db.select('sitemap', where, [{field: 'date', order: 'desc', type: 'string'},{field: 'id', order: 'desc', type: 'numeric'}]);if(notes){for(var i_note=0;i_note<notes.length;i_note++) {diff = (DateTime.diffDay(periods[ip].init, notes[i_note].date) - 1);var color   = '4275f4';var icon= Icon.cursorSitemap('fill:#' + color + ';');var more_class  = '';html_notes += '<div class="pencil_small_in_line pencil_small pencil' + more_class + '" v-cursor-left="' + (diff * width_cell + 7) + '" v-cursor-color="' + htmlEntities(color) + '" v-title-pos="bottom" v-title="<strong>' + Lang.get('url_sitemap_date_lastmod') + ' : ' + htmlEntities(notes[i_note].date) + '</strong><br />' + urls_sitemaps[ius] + '" style="left:' + (diff * width_cell + 7) + 'px;">' + icon + '</div>';}}}if(html_notes){html += '<div class="sitemap_url">' + html_notes + '</div>';}html += '<div class="evolution_show" v-query-key="' + query.key + '" v-query-entity="' + entity_id + '">' + chart_html + '</div>';break;case 'ranking':case 'visibility':case 'pixel':case 'performance':var config = Filters.get(columns[ic]);var config_filter = config;var values_zero = config.values_zero;if(config && typeof config.table != 'undefined') {var config = config.table;var ranking_desktop_table = false;var ranking_mobile_table = false;var query_date1 = Db.selectOne('queries', [[{field: 'key',value: query.key}, {field: 'device', value: 1}]]);var query_date2 = Db.selectOne('queries', [[{field: 'key',value: query.key}, {field: 'device', value: 2}]]);if(query.desktop) {if(query.create_date > Period.list()[0].end) {var ranking_desktop = '-';ranking_desktop_table = '<div class="cell_icon_data" v-title="' + Lang.get('create_after_end_period') + ' : ' + Period.list()[0].end + '">' + Icon.noCreateDate() + '</div>';} else {if(query_date1.update_date < Period.list()[0].end) {var ranking_desktop =  Lang.get('in_process');ranking_desktop_table = '<div class="load_icon" v-title="' + Lang.get('in_process') + '"></div>';} else {var ranking_desktop = 0;}}} else {var ranking_desktop = '-';if(iuv <= 1) {ranking_desktop_table = '<div class="cell_icon_data" v-title="' + Lang.get('not_created_desktop') + '">' + Icon.noExist() + '</div>';}}if(query.mobile) {if(query.create_date > Period.list()[0].end) {var ranking_mobile = '-';ranking_mobile_table = '<div class="cell_icon_data" v-title="' + Lang.get('create_after_end_period') + ' : ' + Period.list()[0].end + '">' + Icon.noCreateDate() + '</div>';} else {if(query_date2.update_date < Period.list()[0].end) {var ranking_mobile =  Lang.get('in_process');ranking_mobile_table = '<div class="load_icon" v-title="' + Lang.get('in_process') + '"></div>';} else {var ranking_mobile = 0;}}} else {var ranking_mobile = '-';if(iuv <= 1) {ranking_mobile_table = '<div class="cell_icon_data" v-title="' + Lang.get('not_created_mobile') + '">' + Icon.noExist() + '</div>';}if(query.service == 'google_maps'){ranking_mobile_table = '';}}var desktop_init = 0;var mobile_init = 0;var desktop_evolution = 0;var mobile_evolution = 0;var desktop_average = 0;var mobile_average = 0;var field = config.field;if(field == 'ranking') {field = 'rank';}var percentage_evolution = 'evolution';var percentage_evolution_symbol = '';var percentage = false;if(Views.isEvolutionPercentage(view, field)) {percentage = true;percentage_evolution = 'percentage';percentage_evolution_symbol = ' %';}if(iuv == 0) {/* * ON EST DANS LA LIGNE MERGEE */if(query['desktop_' + field + ip_value] && query['desktop_rank' + ip_value] < 101) {ranking_desktop = query['desktop_' + field + ip_value];if(config.round !== false) {ranking_desktop = Type.numeric.round(ranking_desktop, config.round);}}desktop_init = query['desktop_' + field + '_init' + ip_value];if(query['mobile_' + field + ip_value] && query['mobile_rank' + ip_value] < 101) {ranking_mobile = query['mobile_' + field + ip_value];if(config.round !== false) {ranking_mobile = Type.numeric.round(ranking_mobile, config.round);}}mobile_init = query['mobile_' + field + '_init' + ip_value];desktop_evolution = Type.numeric.evolutionStyle(query['desktop_' + field + '_' + percentage_evolution + ip_value], config_filter.reverse, field, values_zero.desktop_evolution, false, percentage, 0);mobile_evolution = Type.numeric.evolutionStyle(query['mobile_' + field + '_' + percentage_evolution + ip_value], config_filter.reverse, field, values_zero.desktop_evolution, false, percentage, 0);desktop_average = query['desktop_' + field + '_average' + ip_value];mobile_average = query['mobile_' + field + '_average' + ip_value];//} else {/* * DETAIL PAR URL */var end = periods[ip].days - 1;if(urls_values_item.desktop && typeof urls_values_item.desktop[end] != 'undefined') {ranking_desktop = urls_values_item.desktop[end][field];}if(urls_values_item.mobile && typeof urls_values_item.mobile[end] != 'undefined') {ranking_mobile = urls_values_item.mobile[end][field];}var desktop_end = desktop_init = 0;var mobile_end = mobile_init = 0;if(typeof urls_values_item.desktop[end] != 'undefined') {desktop_end = urls_values_item.desktop[end][field];}if(typeof urls_values_item.desktop[0] != 'undefined') {desktop_init = urls_values_item.desktop[0][field];}if(typeof urls_values_item.mobile[end] != 'undefined') {mobile_end = urls_values_item.mobile[end][field];}if(typeof urls_values_item.mobile[0] != 'undefined') {mobile_init = urls_values_item.mobile[0][field];}desktop_evolution = TableStats.makeEvolutionSplit(desktop_init, desktop_end, field);mobile_evolution = TableStats.makeEvolutionSplit(mobile_init, mobile_end, field);desktop_evolution = Type.numeric.evolutionStyle(desktop_evolution, config_filter.reverse, false, values_zero.desktop_evolution, ranking_desktop);mobile_evolution = Type.numeric.evolutionStyle(mobile_evolution, config_filter.reverse, false, values_zero.mobile_evolution, ranking_mobile);//if(!ranking_desktop) {ranking_desktop = values_zero.desktop;}if(!ranking_mobile) {ranking_mobile = values_zero.mobile;}desktop_average = Type.numeric.averagePeriod(urls_values_item.desktop, field, periods[ip].init, periods[ip].end, TableStats.fieldConfig(field).default, query.create_date, 0, false);mobile_average = Type.numeric.averagePeriod(urls_values_item.mobile, field, periods[ip].init, periods[ip].end, TableStats.fieldConfig(field).default, query.create_date, 0, false);}var title_desktop = periods[ip].init + ' : ' + desktop_init + '<br />' + periods[ip].end + ' : ' + ranking_desktop;var title_mobile = periods[ip].init + ' : ' + mobile_init + '<br />' + periods[ip].end + ' : ' + ranking_mobile;if(ranking_desktop_table === false) {ranking_desktop_table = ranking_desktop;}if(ranking_mobile_table === false) {ranking_mobile_table = ranking_mobile;}var evolution_popup = '';if(column_type == 'ranking') {evolution_popup = ' v-query-key="' + query.key + '" v-query-entity="' + entity_id + '"';}if(active_desktop) {html += Type.numeric.showNumberMinimal(ranking_desktop_table, field) + '</div><div class="cell cell_' + columns[ic] + ' evolution"' + evolution_popup + '><span v-title="' + title_desktop + '">' + desktop_evolution + '</span></div>';html += '<div class="cell cell_' + columns[ic] + ' cell_noborder value_stat_average"' + evolution_popup + '>' + Type.numeric.showNumberMinimal(Type.numeric.averageStyle(desktop_average));if(active_mobile) {html += '</div>';}}if(active_mobile) {if(active_desktop) {html += '<div class="cell cell_' + columns[ic] + ' "' + evolution_popup + '>';}html += Type.numeric.showNumberMinimal(ranking_mobile_table, field) + '</div><div class="cell cell_' + columns[ic] + ' evolution"><span v-title="' + title_mobile + '"' + evolution_popup + '>' + mobile_evolution + '</span></div>';html += '<div class="cell cell_' + columns[ic] + '  cell_noborder value_stat_average"' + evolution_popup + '>' + Type.numeric.showNumberMinimal(Type.numeric.averageStyle(mobile_average));}}break;//case 'tops10':html += '' +'<div class="cell cell_' + columns[ic] + ' cell_top1">';if(active_desktop) {html += '   <div class="cell_top_device">' + Type.numeric.round(query['desktop_top1' + ip_value]) + '%</div>';}if(active_mobile) {html += '   <div class="cell_top_device">' + Type.numeric.round(query['mobile_top1' + ip_value]) + '%</div>';}html += '</div>';html += '' +'<div class="cell cell_' + columns[ic] + ' cell_top3">';if(active_desktop) {html += '   <div class="cell_top_device">' + Type.numeric.round(query['desktop_top3' + ip_value]) + '%</div>';}if(active_mobile) {html += '   <div class="cell_top_device">' + Type.numeric.round(query['mobile_top3' + ip_value]) + '%</div>';}html += '</div>';html += '' +'<div class="cell cell_' + columns[ic] + ' cell_top10">';if(active_desktop) {html += '   <div class="cell_top_device">' + Type.numeric.round(query['desktop_top10' + ip_value]) + '%</div>';}if(active_mobile) {html += '   <div class="cell_top_device">' + Type.numeric.round(query['mobile_top10' + ip_value]) + '%</div>';}html += '</div>';break;case 'tops30':html += '' +'<div class="cell cell_' + columns[ic] + ' cell_top10">';if(active_desktop) {html += '   <div class="cell_top_device">' + Type.numeric.round(query['desktop_top10' + ip_value]) + '%</div>';}if(active_mobile) {html += '   <div class="cell_top_device">' + Type.numeric.round(query['mobile_top10' + ip_value]) + '%</div>';}html += '</div>';html += '' +'<div class="cell cell_' + columns[ic] + ' cell_top20">';if(active_desktop) {html += '   <div class="cell_top_device">' + Type.numeric.round(query['desktop_top20' + ip_value]) + '%</div>';}if(active_mobile) {html += '   <div class="cell_top_device">' + Type.numeric.round(query['mobile_top20' + ip_value]) + '%</div>';}html += '</div>';html += '' +'<div class="cell cell_' + columns[ic] + ' cell_top30">';if(active_desktop) {html += '   <div class="cell_top_device">' + Type.numeric.round(query['desktop_top30' + ip_value]) + '%</div>';}if(active_mobile) {html += '   <div class="cell_top_device">' + Type.numeric.round(query['mobile_top30' + ip_value]) + '%</div>';}html += '</div>';break;case 'tops100':html += '' +'<div class="cell cell_' + columns[ic] + ' cell_top100">';if(active_desktop) {html += '   <div class="cell_top_device">' + Type.numeric.round(query['desktop_top100' + ip_value]) + '%</div>';}if(active_desktop) {html += '   <div class="cell_top_device">' + Type.numeric.round(query['mobile_top100' + ip_value]) + '%</div>';}html += '</div>';break;case 'bloc_natural_pixel':if(iuv <= 1 && ip == 0) {var desktop_value = query.desktop_bloc_natural_pixel;if(!query.desktop) {desktop_value = '';}var mobile_value = query.mobile_bloc_natural_pixel;if(!query.mobile) {mobile_value = '';}if(i_compare > 0){desktop_value = '';mobile_value = '';}if(active_desktop) {html += '' +'   <div class="cell cell_' + columns[ic] + '">' + desktop_value + '</div>';}if(active_mobile) {html += '' +'   <div class="cell cell_' + columns[ic] + '">' + mobile_value + '</div>';}} else {if(active_desktop) {html += '' +'   <div class="cell cell_' + columns[ic] + '"></div>';}if(active_mobile) {html += '' +'   <div class="cell cell_' + columns[ic] + '"></div>';}}break;case 'serp_features':if(iuv <= 1 && ip == 0 && i_compare == 0) {if(active_desktop) {html += '' +'   <div class="cell cell_' + columns[ic] + '">' + serpFeaturesIcons(query.desktop_serp_features) + '</div>';}if(active_mobile) {html += '' +'   <div class="cell cell_' + columns[ic] + '">' + serpFeaturesIcons(query.mobile_serp_features) + '</div>';}} else {if(active_desktop) {html += '' +'   <div class="cell cell_' + columns[ic] + '"></div>';}if(active_mobile) {html += '' +'   <div class="cell cell_' + columns[ic] + '"></div>';}}break;case 'yoyo':if(iuv <= 1) {var yoyo_desktop = '';var yoyo_mobile = '';if(query['desktop_yoyo_last' + ip_value] > 0) {yoyo_desktop = '<svg v-title="Yoyo pour la fin de période : ' + periods[ip].end + '" xmlns="http://www.w3.org/2000/svg" width="24" height="24" viewBox="0 0 24 24"><path d="M12 5.177l8.631 15.823h-17.262l8.631-15.823zm0-4.177l-12 22h24l-12-22zm-1 9h2v6h-2v-6zm1 9.75c-.689 0-1.25-.56-1.25-1.25s.561-1.25 1.25-1.25 1.25.56 1.25 1.25-.561 1.25-1.25 1.25z"/></svg>';}if(query['mobile_yoyo_last' + ip_value] > 0) {yoyo_mobile = '<svg v-title="Yoyo pour la fin de période : ' + periods[ip].end + '" xmlns="http://www.w3.org/2000/svg" width="24" height="24" viewBox="0 0 24 24"><path d="M12 5.177l8.631 15.823h-17.262l8.631-15.823zm0-4.177l-12 22h24l-12-22zm-1 9h2v6h-2v-6zm1 9.75c-.689 0-1.25-.56-1.25-1.25s.561-1.25 1.25-1.25 1.25.56 1.25 1.25-.561 1.25-1.25 1.25z"/></svg>';}if(active_desktop) {html += '' +'   <div class="cell cell_yoyo_device">' + yoyo_desktop + '</div>' +'   <div class="cell cell_yoyo_sum">' + query['desktop_yoyo' + ip_value] + '</div>';}if(active_mobile) {html += '' +'   <div class="cell cell_yoyo_device">' + yoyo_mobile + '</div>' +'   <div class="cell cell_yoyo_sum">' + query['mobile_yoyo' + ip_value] + '</div>';}} else {if(active_desktop) {html += '' +'   <div class="cell cell_yoyo_device"></div>' +'   <div class="cell cell_yoyo_sum"></div>';}if(active_mobile) {html += '' +'   <div class="cell cell_yoyo_device"></div>' +'   <div class="cell cell_yoyo_sum"></div>';}}break;case 'target':if(iuv <= 1) {if(active_desktop) {html += '' +'   <div class="cell cell_target_sum_left cell_target_sum">' + query['desktop_target_best' + ip_value] + '</div>' +'   <div class="cell cell_target_sum">' + query['desktop_target_medium' + ip_value] + '</div>' +'   <div class="cell cell_target_sum">' + query['desktop_target_null' + ip_value] + '</div>';}if(active_mobile) {html += '' +'   <div class="cell cell_target_sum_left cell_target_sum">' + query['mobile_target_best' + ip_value] + '</div>' +'   <div class="cell cell_target_sum">' + query['mobile_target_medium' + ip_value] + '</div>' +'   <div class="cell cell_target_sum">' + query['mobile_target_null' + ip_value] + '</div>';}} else {if(active_desktop) {html += '' +'   <div class="cell cell_target_sum_left cell_target_sum"></div>' +'   <div class="cell cell_target_sum"></div>' +'   <div class="cell cell_target_sum"></div>';}if(active_mobile) {html += '' +'   <div class="cell cell_target_sum_left cell_target_sum"></div>' +'   <div class="cell cell_target_sum"></div>' +'   <div class="cell cell_target_sum"></div>';}}break;case 'type':html += '' +'<div class="cell cell_' + columns[ic] + ' cell_type">' +'   <div class="cell_top_device">' + Type.numeric.round(query['desktop_opportunities' + ip_value]) + '%</div>' +'   <div class="cell_top_device">' + Type.numeric.round(query['mobile_opportunities' + ip_value]) + '%</div>' +'</div>';break;case 'opportunities_all':html += '' +'<div class="cell cell_' + columns[ic] + ' cell_opportunities_all">' +'   <div class="cell_top_device" v-title="Le mot-clé contient ce type de position ' + Type.numeric.round(query['desktop_opportunities_all' + ip_value], 1) + ' fois pour ' + periods[ip_value - 1].days + ' jours">' + Type.numeric.round(query['desktop_opportunities_all' + ip_value]) + '%</div>' +'   <div class="cell_top_device" v-title="Le mot-clé contient ce type de position ' + Type.numeric.round(query['mobile_opportunities_all' + ip_value], 1) + ' fois pour ' + periods[ip_value - 1].days + ' jours">' + Type.numeric.round(query['mobile_opportunities_all' + ip_value]) + '%</div>' +'</div>';break;}if(column_type != 'tops10' && column_type != 'opportunities_all' && column_type != 'tops30' && column_type != 'tops100' && column_type != 'type' && column_type != 'yoyo' && column_type != 'target' && column_type != 'bloc_natural_pixel' && column_type != 'serp_features') {html += '</div>';}}}html += '' +'</div>';}}}}}html += '</div>';i_line++;}html += '</div>';// LA PAGE DE NAVIhtml += PageChange.makeHtmlOffset('daily_keywordsrankings(' + entity_id + ',' + false + ', ' + project_id + ', ' + false + ', \'_page_\', true, false, false, false, \'' + btoa(entity_get_data_key) + '\')', max_datas.length, project_id);if(write_table) {$('#entity' + entity_id + '_table').html(html);mobileMakeFixed();}}html += '</div>';i_table_bloc++;}}}setTimeout(function(){daily_keywordsnotesQueries();}, 50);return html;}function daily_keywordsgetSortTops(top, sorts_keys, column, device){var key = device + '_' + top;var sort_icon = '';var sort_icon_location = '';if(typeof sorts_keys[key] != 'undefined'){sort_icon = '<div class="icon_sort_hide">' + Icon.sortAsc() + '</div>';var url_tmp = Router.setParam('order', 'asc');url_tmp = Router.setParam('sort', key, url_tmp);sort_icon_location = ' v-url="' + url_tmp + '"';}if(Router.getParam('sort') && Router.getParam('sort') == key){if(Router.getParam('order') && Router.getParam('order') == 'desc'){sort_icon = Icon.sortDesc();sort_icon_location = ' v-url="' + Router.setParam('order', 'asc') + '"';}else{sort_icon = Icon.sortAsc();sort_icon_location = ' v-url="' + Router.setParam('order', 'desc') + '"';}}else{var view = Views.get(Router.getParam('view'));if(view){if(typeof view.config.sort != 'undefined' && typeof view.config.sort[Router.getParam('field')] != 'undefined'){var order   = view.config.sort[Router.getParam('field')].order;var sort= view.config.sort[Router.getParam('field')].sort;if(key == sort){if(order == 'asc'){sort_icon = Icon.sortAsc();sort_icon_location = ' v-url="' + Router.setParam('order', 'desc') + '"';}else{sort_icon = Icon.sortDesc();sort_icon_location = ' v-url="' + Router.setParam('order', 'asc') + '"';}}}}}return {icon:sort_icon, location:sort_icon_location};}[template="daily_query"] .name{color:#170C25;padding:2px 20px 7px 20px;margin:0;display:block;font-size:14px;}#filters_query,[template="daily_query"] #filters_auto{display:inline-block;vertical-align: top;width: initial;}[template="daily_query"] #filters_action{position: absolute;top:0;right:0px;}[template="daily_query"] #filters_entities_types li{padding:8px 15px 8px 10px;line-height: initial;}[template="daily_query"] #filters_entities_types li:first-child{font-weight: bold;}[template="daily_query"] .line [v-chart-type] svg path:nth-child(1){stroke-width: 1.7px;stroke:#cc4ead !important;fill: rgba(204, 78, 173, 0.15) !important;}[template="daily_query"] .line [v-chart-type] svg path:nth-child(2){stroke-width: 1.7px;stroke:#57a2ec !important;fill: rgba(87, 162, 236, 0.15) !important;}[template="daily_query"] .bloc_header {margin: 30px 0 20px 0;}[template="daily_query"] .group_by_sort {margin:50px 0 0 0;padding:0;}[template="daily_query"] .bloc_border_trl{position: relative;padding:40px 0 15px 10px;}[template="daily_query"] .icon_sort_hide{width:0;overflow: hidden;}var daily_query_exec = {};var daily_query_last_query  = false;var daily_query_last_types  = false;var daily_query_graph_height= 250;function daily_queryinit(){Templates.execScriptMain();daily_query_rank_type = 1;if(!Router.getParam('id') ||Router.getParam('id') == 'undefined'){document.location.href = Config.app.url;return false;}Templates.verifDbTablesExist(['entities', 'entities_types'], function() {var key = Router.getParam('id') + '_' + JSON.stringify(Period.list());var filters = [{key:'ranking', label:Lang.get('ranking')},];daily_queryfiltersAuto(filters);Db.delete('query');Db.delete('query_info');Db.delete('types');DbTables.delete('query');DbTables.delete('query_info');DbTables.delete('types');Db.apiExec('query', function (data) {daily_query_last_query = data.query_info;daily_query_last_types = data.types;daily_query_graph_height = parseInt(data.height);daily_queryrun(data.query_info, data.types);}, false, 'get', {id: Router.getParam('id'), periods: ObjectCore.clone(Period.list())}, true);});}function daily_queryentitiesTypes(){var values = Db.select('entities_types');for(var i=0, c=values.length;i<c;i++){if(values[i].id == Router.getParam('entity_type')){$('#entities_types_all_value').html(values[i].name);return values;}}$('#entities_types_all_value').html(Lang.get('all_websites'));return values;}function daily_querymakeSelected(value){if(value){return [{result_selected:'selected="selected"'}];}return [{result_selected:''}];}$(function(){$(document).on('click', '.view_li_query a', function(){return false;});$(document).on('mousedown', '.view_li_query', function(){$('.view_li_query').attr('active', 'false');$(this).attr('active', 'true');daily_query_rank_type = $(this).attr('v-type');daily_querywriteTables();});});function daily_queryrun(query, rank_types=false) {if(rank_types){daily_query_rank_types = rank_types;}else{rank_types = daily_query_rank_types;}var views = '';var rank_type = daily_query_rank_type;for(var i=0;i<rank_types.length;i++){var active  = false;if(rank_type == rank_types[i]){active = true;}views += '' +'<li class="view_li_query menu_action_show_mai" v-type="' + rank_types[i] + '" active="' + active + '">' +'<span class="name">' + Rankings.get(rank_types[i]).name + '</span>' +'</li>';}$('#views_list').html(views);daily_query_exec[Router.getParam('id') + '_' + JSON.stringify(Period.list())] = query;var query_search = Db.selectOne('queries', [[{field:'id', value:query.id}]]);var html = '';html += '' +'<div class="bloc">' +'   <div class="bloc_header"><h2>' + Lang.get('keyword') + ' : ' + query.keywords + '</h2><div class="button4 button_serp" v-query-key="' + Router.getParam('id') + '">' + Lang.get('serp_view') + '</div>';html +='</div>';html += ''+'</div>' +'   <div id="bloc_in"></div>' +'</div>';$('#bloc').html(html);daily_querywriteTables();}var daily_query_count_show = 10;var daily_query_rank_type = 1;var daily_query_rank_types = false;function daily_queryreloadGraphHeight(height){daily_query_graph_height = height;daily_querywriteTables();}function daily_querywriteTables(page=1, count_show=false){var id_bloc = uniqId();var sort_order  = 'asc';var type_sort   = 'string';var name_sort   = Lang.get('ranking');var sort_key= 'desktop_ranking';if(daily_query_last_query.id_device == 2){sort_key = 'mobile_ranking';}var sort = [];if(daily_query_last_query.id_device == 1 ||daily_query_last_query.id_device == 'all'){sort.push({key:'desktop_ranking', label:Lang.get('ranking'), device:'desktop'});sort.push({key:'desktop_ranking_average', label:Lang.get('average_position'), device:'desktop'});}if(daily_query_last_query.id_device == 2 ||daily_query_last_query.id_device == 'all'){sort.push({key:'mobile_ranking', label:Lang.get('ranking'), device:'mobile'});sort.push({key:'mobile_ranking_average', label:Lang.get('average_position'), device:'mobile'});}if(Router.getParam('sort')){sort_key = Router.getParam('sort');for(var i=0;i<sort.length;i++){if(sort[i].key == sort_key){name_sort = sort[i].label;}}}if(Router.getParam('order')){sort_order = Router.getParam('order');}if(count_show) {daily_query_count_show = count_show;}else{if(!count_show && UserParam.get('page_limit_' + Router.getAction() + UserParam.getPageLimitDevice())){count_show = UserParam.get('page_limit_' + Router.getAction() + UserParam.getPageLimitDevice());}else {if(!daily_query_count_show && !count_show) {daily_query_count_show = 10;count_show = 10;} else {count_show = daily_query_count_show;}}}var html= '';var rank_type   = daily_query_rank_type;var id_device   = 1;var where   = daily_querymakeWhere();if(!where){where   = [];where[0]= [];}where.push({field:'rank_type', value:rank_type});var wheres = [];wheres.push(where);where = ObjectCore.clone(where);for(var i=0;i<where.length;i++){where[i].field = Type.string.replace(where[i].field, 'desktop', 'mobile');}wheres.push(where);var sort_order  = 'asc';var sort_key= 'desktop_ranking';if(daily_query_last_query.id_device == 2){sort_key= 'mobile_ranking';}if(Router.getParam('sort')){sort_key = Router.getParam('sort');}if(Router.getParam('order')){sort_order = Router.getParam('order');}var order = [{field:sort_key, order:sort_order, type:'numeric'}];var lines   = Db.select('query', wheres, order, false, false, false,{limit:count_show, offset:(page -1)*count_show});var lines_all   = Db.select('query', wheres, order, false, false, false);/* * ON AFFICHE LARGE GRAPHIQUE */var stroke = false;var fill = false;var stat = false;var statistics_devices = [];var url_color = '';if(entity){url_color = ' style="color:#' + entity.type_color + ';"';}/* * GRAPHIQUE */var ranks = [];var style = {};var id = uniqId();statistics_devices.push({maxAxisY: false,key: 'ranking',name: Lang.get('ranking'),reverse: true,stroke: stroke,fill: fill,stat: 'ranking',});Color.init();for(var i=0;i<lines.length;i++){var color = Color.next();if(sort_key == 'desktop_ranking') {ranks.push({icon:lines[i].favicon, name:lines[i].url, stroke: color, color: color, values: {ranking: lines[i].ranks_desktop}});}else{ranks.push({icon:lines[i].favicon, name: lines[i].url, stroke: color, color: color, values: {ranking: lines[i].ranks_mobile}});}}var max_y = 101;var height_graph = daily_query_graph_height;if(Config.isMobile()){height_graph = 200;}var width = 1180;if(Config.isMobile()){width = Config.mobileWidth();}var chart_html = Charts.timesSeries({class: 'graph_top_series',classMore:'graph_query_series',legend: {items: false,values: true,average: false,},size: {width: width, height: height_graph},axis: {y: true, x: false},axisY: {min: 0, max: max_y},reverse: true,valueDefault: 0,grid: 4,statistics: statistics_devices,periods: Period.list(),style: style},ranks);var graph_param = '<div class="graph_top_close personalize" v-title="' + Lang.get('customize_chart') + '" v-view-id="none">' +'   <svg version="1.1" xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24"><path d="M6 12c0 1.657-1.343 3-3 3s-3-1.343-3-3 1.343-3 3-3 3 1.343 3 3zm9 0c0 1.657-1.343 3-3 3s-3-1.343-3-3 1.343-3 3-3 3 1.343 3 3zm9 0c0 1.657-1.343 3-3 3s-3-1.343-3-3 1.343-3 3-3 3 1.343 3 3z"></path></svg>' +'</div>';html += '<div class="graph_query_top bloc_border_trl">' + graph_param + '<div v-load="true">' + chart_html + '</div>';/* * BLOC DE TRI */var sort_html = '' +'<span class="sort">' +'   <div id="sort_in' + id_bloc + '" class="sort_in list_submenu">' +'   <div id="sort_value' + id_bloc + '" v-action-show="sort_list' + id_bloc + '" class="value sort_value">' +'   <span class="value">' + name_sort + '</span>' +'   <span class="icon sort_up">' + SortConfig.comparison(type_sort, sort_order).svg +'   </span>' +'   <span class="open">' +'   <svg version="1.1" xmlns="http://www.w3.org/2000/svg" viewBox="0 0 9.2 4.6"><path d="M9.2,0L4.6,4.6L0,0H9.2z"></path></svg>' +'   </span>' +'   </div>' +'   <div id="sort_list' + id_bloc + '" v-auto-hide="false" class="sort_list list">' +'   <ul>' +'   <div class="label">'+'   <div class="label_name">' + Lang.get('sort_by') + '</div>' +'   <ul class="filter_comparison active_sort">';for(var i_s=0;i_s<sort.length;i_s++){var selected = '';if(sort[i_s].key == sort_key ||sort[i_s].key + '_evolution' == sort_key){selected = ' class="selected"';}var sort_active = sort[i_s].key;var device = '';if(typeof sort[i_s].device != 'undefined') {switch (sort[i_s].device) {case 'desktop':device = '<svg xmlns="http://www.w3.org/2000/svg" width="24" height="24" viewBox="0 0 24 24"><path d="M2 0c-1.104 0-2 .896-2 2v15c0 1.104.896 2 2 2h20c1.104 0 2-.896 2-2v-15c0-1.104-.896-2-2-2h-20zm20 14h-20v-12h20v12zm-6.599 7c0 1.6 1.744 2.625 2.599 3h-12c.938-.333 2.599-1.317 2.599-3h6.802z"></path></svg>';break;case 'mobile':device = '<svg xmlns="http://www.w3.org/2000/svg" width="24" height="24" viewBox="0 0 24 24"><path d="M19 2c0-1.104-.896-2-2-2h-10c-1.104 0-2 .896-2 2v20c0 1.104.896 2 2 2h10c1.104 0 2-.896 2-2v-20zm-8.5 0h3c.276 0 .5.224.5.5s-.224.5-.5.5h-3c-.276 0-.5-.224-.5-.5s.224-.5.5-.5zm1.5 20c-.553 0-1-.448-1-1s.447-1 1-1c.552 0 .999.448.999 1s-.447 1-.999 1zm5-3h-10v-14.024h10v14.024z"></path></svg>';break;}}sort_html += '' +'<li class="sort_li_bloc">' +'   <div v-sort-li-bloc="true" v-sort-chart="' + sort[i_s].key + '" v-sort-active="' + sort_active + '"' + selected + '>' +'   <div class="sort_chart_name">' + device + sort[i_s].label + '</div>' +'   </div>' +'   </li>';}sort_html += '   </ul>' +'   <div class="label_name">' + Lang.get('order_of_display') + '</div>'+'   <ul class="filter_comparison active_sort_result">' +'   </ul>' +'   </div>' +'   </ul>' +'   <div class="bottom"><input type="submit" value="' + Lang.get('apply') + '"></div>' +'   </div>' +'   </div>' +'</span>';html += '<div class="group_by_sort">' +'   <ul>'+'   <li class="item right">' +'   <span class="label">' + Lang.get('sort_by') + '</span>' +'   <span class="sort">' + sort_html + '</span>' +'   </li>';if(Router.getMethod() == 'audit' && Router.getAction() == 'list' && Router.getParam('id')){html += '' +'<li class="item" v-popup-open="audits_export" v-popup-reload="true" v-popup-params="' + btoa(JSON.stringify({ids:Router.getParam('id'), 'entities':Router.getParam('entity')})) + '">' +'   <div class="button_action button_action2">' +'   <svg xmlns="http://www.w3.org/2000/svg" width="24" height="24" viewBox="0 0 24 24"><path d="M16 11h5l-9 10-9-10h5v-11h8v11zm1 11h-10v2h10v-2z"></path></svg>' +'   <div class="label_button">' + Lang.get('export') + '</div>' +'   </div>' +'</li>';}html += ''+'   </ul>' +'</div>' +'</div>';html += '' +'<div class="table_bloc count_period' + Period.list().length + ' device_query' + daily_query_last_query.id_device + '" v-load="true">' +'   <div class="bloc_border_rl table mobile_fixed_bloc">' +'   <div class="header">' +'   <div class="line">' +'   <div class="cell cell_url_query mobile_fixed_cell">URL' +'<div class="icon_sort_hide"><svg xmlns="http://www.w3.org/2000/svg" class="icon_sort_asc" width="24" height="24" viewBox="0 0 24 24"><path d="M8.122 24l-4.122-4 8-8-8-8 4.122-4 11.878 12z"></path></svg></div>' +'</div>' +'   <div class="cell cell_ranking">Position</div>' +'   <div class="cell cell_graphic">Evolution</div>' +'   </div>' +'   <div class="line">' +'   <div class="cell cell_url_query mobile_fixed_cell"></div>' +'   <div class="cell cell_value_ranking cell_info_desktop cell_value_ranking_query value_rank"><svg xmlns="http://www.w3.org/2000/svg" width="24" height="24" viewBox="0 0 24 24"><path d="M2 0c-1.104 0-2 .896-2 2v15c0 1.104.896 2 2 2h20c1.104 0 2-.896 2-2v-15c0-1.104-.896-2-2-2h-20zm20 14h-20v-12h20v12zm-6.599 7c0 1.6 1.744 2.625 2.599 3h-12c.938-.333 2.599-1.317 2.599-3h6.802z"></path></svg></div>' +'   <div class="cell cell_ranking evolution cell_info_desktop"></div>'+'   <div class="cell cell_average_ranking cell_noborder cell_info_desktop value_stat_average value_rank_average">Moy.</div>'+'   <div class="cell cell_value_ranking cell_info_mobile cell_value_ranking_query value_rank"><svg xmlns="http://www.w3.org/2000/svg" width="24" height="24" viewBox="0 0 24 24"><path d="M19 2c0-1.104-.896-2-2-2h-10c-1.104 0-2 .896-2 2v20c0 1.104.896 2 2 2h10c1.104 0 2-.896 2-2v-20zm-8.5 0h3c.276 0 .5.224.5.5s-.224.5-.5.5h-3c-.276 0-.5-.224-.5-.5s.224-.5.5-.5zm1.5 20c-.553 0-1-.448-1-1s.447-1 1-1c.552 0 .999.448.999 1s-.447 1-.999 1zm5-3h-10v-14.024h10v14.024z"></path></svg></div>'+'   <div class="cell cell_average_ranking cell_info_mobile evolution cell_noborder value_stat_average value_rank_average"></div>'+'   <div class="cell cell_average_ranking cell_info_mobile cell_noborder value_stat_average value_rank_average">Moy.</div>'+'   <div class="cell cell_graphic"></div>' +'   </div>' +'   </div>';for(var i_line=0;i_line<lines.length;i_line++){var line = ObjectCore.clone(lines[i_line]);if(Config.isMobile()){line.url = Type.string.replace(line.url, 'http://www.', '');line.url = Type.string.replace(line.url, 'https://www.', '');line.url = Type.string.replace(line.url, 'http://', '');line.url = Type.string.replace(line.url, 'https://', '');}var evolution_type_desktop  = 'down';var evolution_type_mobile   = 'down';var evolution_type_desktop2 = 'down';var evolution_type_mobile2  = 'down';if(line['desktop_ranking'] == 101){line['desktop_ranking'] = 0;}if(line['mobile_ranking'] == 101){line['mobile_ranking'] = 0;}if(line['desktop_ranking2'] == 101){line['desktop_ranking2'] = 0;}if(line['mobile_ranking2'] == 101){line['mobile_ranking2'] = 0;}if(line['desktop_ranking_evolution'] == 0){line['desktop_ranking_evolution'] = '=';evolution_type_desktop = 'up';}if(line['mobile_ranking_evolution'] == 0){line['mobile_ranking_evolution'] = '=';evolution_type_mobile = 'up';}if(line['desktop_ranking_evolution2'] == 0){line['desktop_ranking_evolution2'] = '=';evolution_type_desktop2 = 'up';}if(line['mobile_ranking_evolution2'] == 0){line['mobile_ranking_evolution2'] = '=';evolution_type_mobile2 = 'up';}if(line['desktop_ranking_evolution'] > 0){line['desktop_ranking_evolution'] = '+' + line['desktop_ranking_evolution'];evolution_type_desktop = 'up';}if(line['mobile_ranking_evolution'] > 0){line['mobile_ranking_evolution'] = '+' + line['mobile_ranking_evolution'];evolution_type_mobile = 'up';}if(line['desktop_ranking_evolution2'] > 0){line['desktop_ranking_evolution2'] = '+' + line['desktop_ranking_evolution2'];evolution_type_desktop2 = 'up';}if(line['mobile_ranking_evolution2'] > 0){line['mobile_ranking_evolution2'] = '+' + line['mobile_ranking_evolution2'];evolution_type_mobile2 = 'up';}var entity = false;if(line['id_entity']){entity = Db.selectOne('entities', [[{field:'id', value:line['id_entity']}]]);}var stroke = false;var fill = false;var stat = false;var statistics_devices = [];statistics_devices.push({maxAxisY: false,key: 'mobile',name: 'Mobile',reverse: true,stroke: stroke,fill: fill,stat: 'mobile',});statistics_devices.push({maxAxisY: false,key: 'desktop',name: 'Desktop',reverse: true,stroke: stroke,fill: fill,stat: 'desktop',});var url_color = '';if(entity){url_color = ' style="color:#' + entity.type_color + ';"';}if(Period.list().length == 1){/* * GRAPHIQUE */var ranks = {mobile:line.ranks_mobile, desktop:line.ranks_desktop};var style = {};var id = uniqId();var max_y = 101;var chart_html = Charts.timesSeries({class: 'small',legend: {items: false,values: true,average: false,},size: {width: 150, height: 35},axis: {y: false, x: false},axisY: {min: 0, max: 101},reverse: true,valueDefault: 0,grid: false,statistics: statistics_devices,periods: Period.list(),style: style},[{name: Lang.get('ranking'),values: ranks}]);var url_show = line.url;if(line.url.indexOf('https://www.youtube.com/') === 0){url_show = Type.string.replace(line.url, 'https://www.youtube.com/watch?v=', '');url_show = Type.string.replace(url_show, '|https://www.youtube.com/', ' - ');}html += '' +'<div class="line_master"><div class="line">' +'   <div class="cell cell_url_query mobile_fixed_cell"><a href="' + line.url + '" class="action" target="_blank"' + url_color + '><div class="favicon"><img src="' + line.favicon + '" alt="" /></div>' + url_show + '</a></div>' +'   <div class="cell cell_ranking cell_info_desktop">' + line['desktop_ranking'] + '</div>' +'   <div class="cell cell_ranking evolution cell_info_desktop"><span class="' + evolution_type_desktop + '">' + line['desktop_ranking_evolution'] + '</span></div>'+'   <div class="cell cell_ranking cell_noborder value_stat_average cell_info_desktop">' + line['desktop_ranking_average'] + '</div>'+'   <div class="cell cell_ranking cell_info_mobile">' + line['mobile_ranking'] + '</div>' +'   <div class="cell cell_ranking evolution cell_info_mobile"><span class="' + evolution_type_mobile + '">' + line['mobile_ranking_evolution'] + '</span></div>'+'   <div class="cell cell_ranking cell_noborder value_stat_average cell_info_mobile">' + line['mobile_ranking_average'] + '</div>'+'   <div class="cell cell_graphic">' + chart_html + '</div>'+'</div></div>';}else{var url_show = line.url;if(line.url.indexOf('https://www.youtube.com/') === 0){url_show = Type.string.replace(line.url, 'https://www.youtube.com/watch?v=', '');url_show = Type.string.replace(url_show, '|https://www.youtube.com/', ' | ');}html += '' +'<div class="line_master">';html += '' +'<div class="line">' +'   <div class="cell cell_url_query mobile_fixed_cell"><a href="' + line.url + '" class="action" target="_blank"' + url_color + '><div class="favicon"><img src="' + line.favicon + '" alt="" /></div>' + url_show + '</a></div>'+'   <div class="cell cell_ranking"></div>' +'   <div class="cell cell_ranking evolution"></div>'+'   <div class="cell cell_ranking cell_noborder value_stat_average"></div>'+'   <div class="cell cell_ranking"></div>' +'   <div class="cell cell_ranking evolution"></div>'+'   <div class="cell cell_ranking cell_noborder value_stat_average"></div>'+'   <div class="cell cell_graphic"></div>'+'</div>';var periods = Period.list();for(var ip=0;ip<periods.length;ip++){var ranks = {desktop:[], mobile:[]};if(typeof line.ranks_desktop[ip] != 'undefined') {ranks.desktop = [line.ranks_desktop[ip]];}if(typeof line.ranks_mobile[ip] != 'undefined') {ranks.mobile = [line.ranks_mobile[ip]];}var style = {};var id = uniqId();var stroke = false;var fill = false;var stat = false;var max_y = 101;var chart_html = Charts.timesSeries({class: 'small',legend: {items: false,values: true,average: false,},size: {width: 150, height: 35},axis: {y: false, x: false},axisY: {min: 0, max: 101},reverse: true,valueDefault: 0,grid: false,statistics: statistics_devices,periods: [periods[ip]],style: style},[{name: Lang.get('ranking'),values: ranks}]);html += '' +'<div class="line">' +'   <div class="cell cell_url_query">' + periods[ip].init + ' - ' + periods[ip].end + '</div>';if(ip == 0) {html += '' +'   <div class="cell cell_ranking">' + line['desktop_ranking'] + '</div>' +'   <div class="cell cell_ranking evolution"><span class="' + evolution_type_desktop + '">' + line['desktop_ranking_evolution'] + '</span></div>' +'   <div class="cell cell_ranking cell_noborder value_stat_average">' + line['desktop_ranking_average'] + '</div>' +'   <div class="cell cell_ranking">' + line['mobile_ranking'] + '</div>' +'   <div class="cell cell_ranking evolution"><span class="' + evolution_type_mobile + '">' + line['mobile_ranking_evolution'] + '</span></div>' +'   <div class="cell cell_ranking cell_noborder value_stat_average">' + line['mobile_ranking_average'] + '</div>' +'   <div class="cell cell_graphic">' + chart_html + '</div>';}else{html += '' +'   <div class="cell cell_ranking">' + line['desktop_ranking2'] + '</div>' +'   <div class="cell cell_ranking evolution"><span class="' + evolution_type_desktop2 + '">' + line['desktop_ranking_evolution2'] + '</span></div>' +'   <div class="cell cell_ranking cell_noborder value_stat_average">' + line['desktop_ranking_average2'] + '</div>' +'   <div class="cell cell_ranking">' + line['mobile_ranking2'] + '</div>' +'   <div class="cell cell_ranking evolution"><span class="' + evolution_type_mobile2 + '">' + line['mobile_ranking_evolution2'] + '</span></div>' +'   <div class="cell cell_ranking cell_noborder value_stat_average">' + line['mobile_ranking_average2'] + '</div>' +'   <div class="cell cell_graphic">' + chart_html + '</div>';}html += ''+'</div>';}html += ''+'</div>';}}html += '</div>';html += '</div>';html += daily_querypageChange(page, count_show, lines_all.length);$('#bloc_in').html(html);setTimeout(function(){sort = Type.string.replace(sort_key, '_evolution', '');Sort.getHtmlComparison(sort, false);mobileMakeFixed();}, 25);}function daily_queryfiltersAuto(filters){daily_queryentitiesTypes();var filters_view = [];var keys = daily_keywordssortsKeys();for(var key in keys){filters_view.push(key);}var columns = [];for(var i = 0; i < filters.length; i++) {columns.push(filters[i].key);}Filters.makeHtmlAuto(false, columns);return true;}function daily_querymakeWhere(){var where = [];var params = Router.getParams();for(var filter_key in params){if(filter_key != 'id' && filter_key != 'sort' && filter_key != 'order' && filter_key != 'thematics' && filter_key != '_project' && filter_key != '_entity' && filter_key != '_entity_type') {if(params[filter_key] != '') {var value_filter = params[filter_key].split('|');if(filter_key == 'stat_rank') {filter_key = 'desktop_ranking';}if(filter_key == 'stat_rank_evolution') {filter_key = 'desktop_ranking_evolution';}if(filter_key == 'stat_visibility') {filter_key = 'visibility';}if(filter_key == 'stat_visibility_evolution') {filter_key = 'visibility_evolution';}if(filter_key == 'stat_top1') {filter_key = 'top1';}if(filter_key == 'stat_top3') {filter_key = 'top3';}if(filter_key == 'stat_top10') {filter_key = 'top10';}if(filter_key == 'stat_top100') {filter_key = 'tops100';}if(filter_key != '') {var key_value = false;var key_value2 = false;if(value_filter.length == 1) {key_value = 'value';} else {if(value_filter[1] !== false && value_filter[1] !== 'false') {key_value = 'value';key_value2 = false;switch (value_filter[0]) {case 'lower':key_value = 'value_max';break;case 'upper':key_value = 'value_min';break;case 'between':key_value = 'value_min';key_value2 = 'value_max';break;case 'contain':key_value = 'search';value_filter[1] = '%' + value_filter[1] + '%';break;case 'not_contain':key_value = 'search';value_filter[1] = '!' + value_filter[1];break;case 'start':key_value = 'search';value_filter[1] = value_filter[1] + '%';break;case 'end':key_value = 'search';value_filter[1] = '%' + value_filter[1];break;case 'exact':key_value = 'search';break;}}}if(key_value) {var push_value = {};push_value['field'] = filter_key;if(value_filter.length == 1) {if(key_value == 'device') {value_filter[0] = parseInt(value_filter[0]);}push_value[key_value] = parseInt(value_filter[0]);} else {if(key_value2) {push_value[key_value2] = parseInt(value_filter[2]);}push_value[key_value] = parseInt(value_filter[1]);}var add = true;if(Router.getMethod() == 'audit' && Router.getAction() == 'list'){add = false;if(push_value.field != 'id' && push_value.field != 'entity' && push_value.field != 'auditexec'){add = true;}}if(add) {where.push(push_value);}}}}}}return where;}function daily_querypageChange(page, count_show, count_all){var id  = uniqId();if(typeof count_all == 'undefined'){count_all   = 1;}else{var max_page= count_all / count_show;}$('#button_action_top_left').removeClass('show');var html = ''+'<div class="page_change_bloc page_change_table">'+'<div class="page_change_select">'+'<div id="form_select' + id + '" v-form-select-id="' + id + '" class="form_select select_page">'+'<div class="value_bloc" v-action-show="form_select' + id + '_list"><span class="form_select_value value">' + count_show + ' ' + Lang.get('results_per_page') + '</span> <span class="open">' +'<svg version="1.1" xmlns="http://www.w3.org/2000/svg" viewBox="0 0 9.2 4.6"><path d="M9.2,0L4.6,4.6L0,0H9.2z"></path></svg></span>' +'</div>'+'<div id="form_select' + id + '_list" v-auto-hide="false" class="list">'+'<div class="list_in">';var keys = [5, 10, 20, 30, 40, 50, 100, 200];for(var i=0, c=keys.length;i<c;i++){html += '<div class="option_select" value="' + keys[i] + '" v-user-param="page_limit_' + Router.getAction() + UserParam.getPageLimitDevice() + '|' + keys[i] + '" v-click-exec="daily_querywriteTables(1,'+ keys[i] + ', true)">' + keys[i] + ' résultat par page</div>';}html += '</div>'+'</div>'+'</div>'+'</div>'+'<div class="page_change_value">';if( page > 1){html +='' +'<span class="previous" v-click-exec="daily_querywriteTables(' + (page - 1) + ','+ count_show + ', true)">' +'<svg version="1.1" xmlns="http://www.w3.org/2000/svg" viewBox="0 0 9.2 4.6"><path d="M9.2,0L4.6,4.6L0,0H9.2z"></path></svg>'+'</span>';}html += '' +'<span class="value open_first_page" v-click-exec="daily_querywriteTables(' + 1 + ','+ count_show + ', true)">' + Lang.get('page') + ' ' + page + ' ' + Lang.get('on') + ' ' +  Type.numeric.ceil(count_all / count_show) + '</span>';if(page < max_page){html +='' +'<span class="next" v-click-exec="daily_querywriteTables(' + (page + 1) + ','+ count_show + ', true)">' +'<svg version="1.1" xmlns="http://www.w3.org/2000/svg" viewBox="0 0 9.2 4.6"><path d="M9.2,0L4.6,4.6L0,0H9.2z"></path></svg>'+'</span>';}html += '' +'</div>'+'</div>';return html;}function daily_querymain() {Calendar.open();return false;}[template="daily_reports"] #header_description{margin-top:1px;}[template="daily_suggestions"] .line .chart_cell:nth-child(1){height:initial;}[template="daily_suggestions"] .line .chart_cell{padding:12px 0px 0 10px;font-size:13px;min-height: 39px;}[template="daily_suggestions"] .line .chart_cell:nth-child(1){width:350px;}[template="daily_suggestions"] .line .chart_cell:nth-child(2){width:70px;}[template="daily_suggestions"] .line .chart_cell:nth-child(3){width:388px;}[template="daily_suggestions"] .line .chart_cell:nth-child(4){width:80px;text-align:right;padding-right:10px;}[template="daily_suggestions"] .line .chart_cell:nth-child(5){width:80px;text-align:right;padding-right:10px;}[template="daily_suggestions"] .line .chart_cell:nth-child(6){width:70px;}[template="daily_suggestions"] .line .chart_cell:nth-child(7){width:60px;text-align: right;padding-right:10px;}.header .line .chart_cell:nth-child(4),.header .line .chart_cell:nth-child(5),[template="daily_suggestions"] .header .line .chart_cell:nth-child(7){text-align: left;}[template="daily_suggestions"] .line .chart_cell:nth-child(8){width:100px;}[template="daily_suggestions"] .line .chart_cell svg{width:18px;height:18px;cursor: pointer;}[template="daily_suggestions"] .line .value_stat_icon svg{width:10px;height:10px;}.line .icon,[template="daily_suggestions"] .line .icon_value{display:inline-block;vertical-align: top;}[template="daily_suggestions"] .line .icon_value{margin:0 0 0 10px;}[template="daily_suggestions"] .line [v-popup-open]{cursor: pointer;}[template="daily_suggestions"] #module_statistics .volume_chart{width:4px;}[template="daily_suggestions"] #module_statistics .volume_chart{border-top:1px solid #3bb0e3;}function daily_suggestionsinit(){Views.exec();var config = {type:'entities',where_field:'entity_id',id:'id',table:'suggestions',module:'daily_suggestions',period:false,hide_label_first_column:false,columns:[{type:'value', key:'suggestion', values:[{key:'suggestion', label:Lang.get('suggestion')}], action:true, icon:Icon.add(), icon_title:Lang.get('follow_this_keyword'), icon_more:'popup_queries_add'},{type:'value', key:'rank', values:[{key:'rank', label:Lang.get('ranking')}]},{type:'value', key:'url', title:true, values:[{key:'url', label:Lang.get('url')}]},{type:'value', key:'volume_last', values:[{key:'volume_last', label:Lang.get('volume_last')}]},{type:'value', key:'volume_year', values:[{key:'volume_year', label:Lang.get('volume_annual')}]},{type:'volume', key:'volume', label:Lang.get('volume_historical'), values:[]},{type:'value', key:'cpc', values:[{key:'cpc', label:Lang.get('cpc')}]},{type:'value', key:'rank_date', values:[{key:'rank_date', label:Lang.get('date')}]},],sort:[{key:'suggestion', label:Lang.get('suggestion')},{key:'url', label:Lang.get('url')},{key:'rank', label:Lang.get('ranking')},{key:'volume_last', label:Lang.get('volume_last')},{key:'volume_year', label:Lang.get('volume_annual')},{key:'cpc', label:Lang.get('cpc')},{key:'rank_date', label:Lang.get('date')},],filters:[{key:'suggestion', label:Lang.get('suggestion')},{key:'url', label:Lang.get('url')},{key:'rank', label:Lang.get('ranking')},{key:'volume_last', label:Lang.get('volume_last')},{key:'volume_year', label:Lang.get('volume_annual')},{key:'rank_date', label:Lang.get('date')},{key:'cpc', label:Lang.get('cpc')},{key:'suggestion_type', label:Lang.get('suggestion_type')},],};ModuleStatistics.run(config);return true;}function daily_suggestionsrun() {}function daily_suggestionsmain() {Header.projectsEntitiesTypesActive();setTimeout(function(){menu_projectsentities(true);});return false;}[template="daily_thematics"] #module_statistics .cell:nth-child(1){width:300px;}[template="daily_thematics"] .file{position: absolute;top:0;left:0;width:75px;height:75px;background-color:#F9FAFC;background-size:cover;background-position: top center;background-repeat: no-repeat;vertical-align: top;display:inline-block;vertical-align: top;text-align:center;margin:5px 0 0 5px;overflow:hidden;border-radius:5px;cursor:pointer;}[template="daily_thematics"] .file svg{width:24px;height:24px;fill:#404040;margin-top:25px;}[template="daily_thematics"] .file:hover svg{opacity: 0.5;}a:nth-child(1) .cell,[template="daily_thematics"] .chart_cell:nth-child(1){width:245px;}.line .chart_cell:nth-child(1),[template="daily_thematics"] .line .chart_cell:nth-child(6){height:85px;}.header .chart_cell:nth-child(1),[template="daily_thematics"] .header .chart_cell:nth-child(6){height:initial;}[template="daily_thematics"] .site_name{margin:-5px 0 0 80px;}function daily_thematicsinit(){Views.exec();var config = {type:'entities',where_field:'entity_id',id:'thematic_id',table:'thematicsstatistics',module:'daily_thematics',period:true,columns:[{type:'value', key:'main', values:[{key:'thematic_name', label:Lang.get('theme')}],url:'daily/keywords?entity={id_bloc}&thematics={id}'},{type:'chart', key:'ranking', chart_max_value:100, values:[{key:'ranking',  stat:'ranking', label:Lang.get('ranking'), reverse:true}],url:'daily/keywords?entity={id_bloc}&thematics={id}&field=ranking'},{type:'chart', key:'visibility', chart_max_value:false, values:[{key:'visibility', stat:'visibility', label:Lang.get('visibility'), reverse:false}],url:'daily/keywords?entity={id_bloc}&thematics={id}&field=visibility'},{type:'chart', key:'tops100', chart_max_value:false, values:[{key:'nb_query', stat:'queries_count', label:Lang.get('keywords_created'), reverse:false, 'type_value':'%'},{key:'tops100', stat:'tops100', label:Lang.get('positioned_keywords'), reverse:false, 'type_value':'%'},],url:'daily/keywords?entity={id_bloc}&thematics={id}&field=tops100,queries_count'},{type:'chart', key:'tops', chart_max_value:false, values:[{key:'top10', stat:'top10', label:'TOP10', reverse:false, stroke:'#fc9504', fill:'rgba(250,216,172,1)'},{key:'top3', stat:'top3', label:'TOP3', reverse:false, stroke:'#f3c341', fill:'rgba(251,242,217,1)'},{key:'top1', stat:'top1', label:'TOP1', reverse:false, stroke:'#83de70', fill:'rgba(228,251,223,1)'},],url:'daily/keywords?entity={id_bloc}&thematics={id}&field=tops10'},{type:'volume', key:'volume', label:Lang.get('volume_monthly'), values:[]},],sort:[{key:'thematic_name', label:Lang.get('theme')},{key:'ranking', label:Lang.get('ranking')},{key:'visibility', label:Lang.get('visibility')},{key:'top1', label:'TOP1'},{key:'top3', label:'TOP3'},{key:'top10', label:'TOP10'},{key:'tops100', label:Lang.get('positioned_keywords')},{key:'volume', label:Lang.get('volume_monthly')}],filters:[{key:'thematic_name', label:Lang.get('theme')},{key:'ranking', label:Lang.get('ranking')},{key:'visibility', label:Lang.get('visibility')},{key:'tops10', label:Lang.get('top') + '10'},{key:'tops100', label:Lang.get('positioned_keywords')},{key:'volume', label:Lang.get('volume_monthly')}],};ModuleStatistics.run(config);return true;}function daily_thematicsrun() {}function daily_thematicsmain() {Calendar.open();Header.projectsEntitiesTypesActive();setTimeout(function(){menu_projectsentities(true);});return false;}#wearemojitorank_table .column:nth-child(1) .cell,[template="event_mojitorank"] #wearemojitorank_table .line_master .cell:nth-child(1){width:300px;}#wearemojitorank_table .column:nth-child(2) .cell,[template="event_mojitorank"] #wearemojitorank_table .line_master .cell:nth-child(2){width:200px;}#wearemojitorank_table .column:nth-child(3) .cell,[template="event_mojitorank"] #wearemojitorank_table .line_master .cell:nth-child(3){width:200px;}#wearemojitorank_table .column:nth-child(4) .cell,[template="event_mojitorank"] #wearemojitorank_table .line_master .cell:nth-child(4){width:100px;}#wearemojitorank_table .column:nth-child(5) .cell,[template="event_mojitorank"] #wearemojitorank_table .line_master .cell:nth-child(5){width:200px;}#wearemojitorank_table .column:nth-child(6) .cell,[template="event_mojitorank"] #wearemojitorank_table .line_master .cell:nth-child(6){width:200px;}function event_mojitorankinit(){Views.exec();Templates.verifDbTablesExist(['mojitorankTV'], function() {$('h1').html('We are #mojitorankTV');setTimeout(function(){$('h1').html('We are #mojitorankTV');}, 250);setTimeout(function(){$('h1').html('We are #mojitorankTV');}, 1000);event_mojitoranklist();});}$(function(){$(document).on('mousedown', 'li[v-menu-key="event|mojitorankTV"]', function(){   $('#app').html('<iframe  style="border:0;position:absolute;width:100vw;height:100vh;"src="https://www.mojitorank.com/show.php"></iframe>');});});function event_mojitorankmain(){}function event_mojitoranklist(){var values = Db.select('mojitorankTV', false, [{field: 'id', order: 'desc', type: 'numeric'}]);var html = '' +'<div id="wearemojitorank_table" class="table_bloc">' +'<div class="bloc_border_rl table table_stats">' +'   <div class="header">' +'   <div class="line">' +'   <div class="column"><div class="cell">Email</div></div>' +'   <div class="column"><div class="cell">Twitter</div></div>' +'   <div class="column"><div class="cell">Linkedin</div></div>' +'   <div class="column"><div class="cell">Photo</div></div>' +'   <div class="column"><div class="cell">Background</div></div>' +'   <div class="column"><div class="cell">GIF</div></div>' +'   </div>'+'   </div>';if(values.length > 0){for(var i=0; i<values.length;i++){var gif = '<div style="cursor: pointer;padding:12px 0px 0 5px;" v-popup-open="mojitorank_gif" v-popup-reload="true" v-popup-params="' + btoa(JSON.stringify({id:values[i].id})) + '">A faire</div>';if(values[i].gif){gif = '<a href="' + values[i].gif + '" target="_blank"><img style="height: 35px;" src="' + values[i].gif + '" alt="" /></a>';}var photo = '<a href="' + values[i].photo + '" target="_blank"><div style="border-radius:30px;overflow:hidden;width:35px;height:35px;background-position:center center;background-size:cover;background-image:url(\'' + Storage.getNameSize(values[i].photo, 40) + '\');"></div></a>';html += ''+'<div class="line_master"><div class="line">';html += '<div class="cell">' + values[i].email + '</div>';html += '<div class="cell">' + values[i].twitter + '</div>';html += '<div class="cell">' + values[i].linkedin + '</div>';html += '<div class="cell" style="padding:2px;">' + photo + '</div>';html += '<div class="cell">' + values[i].background + '</div>';html += '<div class="cell" style="padding:2px;">' + gif + '</div>';html += '</div></div>';}}html += ''+'</div>' +'</div>';$('#configuration_table').html(html);}function event_mojitorankmain() {Calendar.open();return false;}[template="help_byebyenum100"] iframe{margin:20px 0 0 0;}function help_byebyenum100init(){Views.exec();Templates.verifDbTablesExist(['tickets'], function() {help_supportrun();});return true;}function help_byebyenum100main(){window.open('https://www.monitorank.com/fr/byebyenum100/');}[template="help_help"] iframe{margin:20px 0 0 0;}function help_supportinit(){Views.exec();Templates.verifDbTablesExist(['tickets'], function() {help_supportrun();});return true;}function help_supportmain(){}function help_supportcountSupportReply(){var values_select   = Db.select('tickets');var last_is_support = false;if(values_select){for(var i=0;i<values_select.length;i++){if(values_select[i].last_reply_is_support && values_select[i].status != 2){last_is_support = true;}}}if(last_is_support){if($('#icon_last_is_support').length == 0) {$('[v-menu-key="help|support"]').append('<div id="icon_last_is_support" style="opacity:0;" v-title="Une réponse du support est en attente de lecture"></div>');$('#icon_last_is_support').animate({opacity:1}, 125);}}else{if($('#icon_last_is_support').length > 0) {$('#icon_last_is_support').animate({opacity:0}, 125, function(){$('#icon_last_is_support').remove();});}}}function help_supportrun() {var values_select = Db.select('tickets');help_supportcountSupportReply();if(Router.getMethod() == 'help' && Router.getAction() == 'support') {var config = [{key: Router.getAction(),columns: [{key: 'id', name: Lang.get('ticket'), type: 'numeric', popup: 'support_ticket_reply'},{key: 'subject', name: Lang.get('object'), type: 'string', filter: 'search', popup: 'support_ticket_reply'},{key: 'note', name: Lang.get('write_down_tickets'), type: 'numeric', popup: 'support_ticket_reply'},{key: 'type', name: Lang.get('type'), type: 'string', filter: 'list', filter_values: [{key: 'assistance', label: Lang.get('assistance')},{key: 'bug',label: Lang.get('bug')},{key: 'suggestion',label: Lang.get('suggestion')},{key: 'demo', label: Lang.get('online_demo_request')}]},{key: 'update_date', name:Lang.get('update'), type: 'string', popup: 'support_ticket_reply'},{key: 'status',name: Lang.get('status'),type: 'string',filter: 'list',popup: 'support_ticket_reply',filter_values: [{key: 'Cloturé', label: Lang.get('closed')}, {key: 'Ouvert',label: Lang.get('open')}, {key: 'Une réponse vous attend', label: Lang.get('an_answer_awaits')}]},]}];var values = [];var value = false;for(var i = 0, c = values_select.length; i < c; i++) {value = values_select[i];if(typeof value != 'undefined') {var status = value.status;var color = '';if(status == 2) {status = Lang.get('closed')} else {status = Lang.get('open');if(value.last_reply_is_support) {status = Lang.get('an_answer_awaits');color = '#fe0b09';}}var type = '';switch(value.type){case 'assistance':type = Lang.get('assistance');break;case 'bug':type = 'Bug';break;case 'suggestion':type = Lang.get('suggestion');break;case 'demo':type = Lang.get('online_demo_request');break;}if(!value.note){var note = '';if(value.active_note){note = Lang.get('write_down_ticket');}}else{var note = '';for(var i_note=0;i_note<5;i_note++){if(i_note < value.note) {note += '<svg class="star_note" xmlns="http://www.w3.org/2000/svg" width="24" height="24" viewBox="0 0 24 24"><path d="M12 .587l3.668 7.568 8.332 1.151-6.064 5.828 1.48 8.279-7.416-3.967-7.417 3.967 1.481-8.279-6.064-5.828 8.332-1.151z"/></svg>';}else {note += '<svg class="star_note" xmlns="http://www.w3.org/2000/svg" width="24" height="24" viewBox="0 0 24 24"><path d="M12 5.173l2.335 4.817 5.305.732-3.861 3.71.942 5.27-4.721-2.524-4.721 2.525.942-5.27-3.861-3.71 5.305-.733 2.335-4.817zm0-4.586l-3.668 7.568-8.332 1.151 6.064 5.828-1.48 8.279 7.416-3.967 7.416 3.966-1.48-8.279 6.064-5.827-8.332-1.15-3.668-7.569z"/></svg>';}}}values.push({'id': value.id,'subject': value.subject,'note':note,'type': type,'update_date': value.update_date + ', ' + value.update_time,'status': status,'status_color': color,},);}}$('#configuration_table').attr('class', 'table_information configuration_table_' + Router.getAction());ConfigurationTable.init(Router.getAction(), config, values);ConfigurationTable.makeFilter(Router.getAction());ConfigurationTable.make(Router.getAction(), 1, false, 'update_date', 'desc');}}[template="login"] #profil{display:none;}[template="lostpassword"] #profil{display:none;}[template="newpassword"]   #profil{display:none;  }function news_appinit(){Views.exec();Db.apiExec('news/app', function(data){console.log(data.data);});return true;}function news_appmain(){}[template="signup"] #profil{display:none;}