-
Notifications
You must be signed in to change notification settings - Fork 0
/
videme_func1.min.js
1 lines (1 loc) · 187 KB
/
videme_func1.min.js
1
console.log("videme_func1.js");var origin_static_vide_me="https://static.rate-my.life/";var moment=require("moment");(function(d){var k={seconds:10,color:"rgba(255, 255, 255, 0.8)",height:null,width:null},e=3*Math.PI/2,g=Math.PI/180,f=function(b,a,c){null===a.width&&(a.width=b.width());null===a.height&&(a.height=b.height());this.settings=a;this.jquery_object=b;this.interval_id=null;this.current_value=360;this.initial_time=new Date;this.accrued_time=0;this.callback=c;this.is_paused=!0;this.is_reversed="undefined"!=typeof a.is_reversed?a.is_reversed:!1;this.jquery_object.html('<canvas class="pie_timer" width="'+a.width+'" height="'+a.height+'"></canvas>');this.canvas=this.jquery_object.children(".pie_timer")[0]};f.prototype={start:function(){this.is_paused&&(this.initial_time=new Date-this.accrued_time,0>=this.current_value&&(this.current_value=360),this.interval_id=setInterval(d.proxy(this.run_timer,this),40),this.is_paused=!1)},pause:function(){this.is_paused||(this.accrued_time=new Date-this.initial_time,clearInterval(this.interval_id),this.is_paused=!0)},run_timer:function(){if(this.canvas.getContext)if(this.elapsed_time=(new Date-this.initial_time)/1e3,this.current_value=360*Math.max(0,this.settings.seconds-this.elapsed_time)/this.settings.seconds,0>=this.current_value)clearInterval(this.interval_id),this.canvas.width=this.settings.width,d.isFunction(this.callback)&&this.callback.call(),this.is_paused=!0;else{this.canvas.width=this.settings.width;var b=this.canvas.getContext("2d"),a=[this.canvas.width,this.canvas.height],c=Math.min(a[0],a[1])/2,a=[a[0]/2,a[1]/2],h=this.is_reversed;b.beginPath();b.moveTo(a[0],a[1]);b.arc(a[0],a[1],c,h?e-(360-this.current_value)*g:e-this.current_value*g,e,h);b.closePath();b.fillStyle=this.settings.color;b.fill()}}};var l=function(b,a){var c=d.extend({},k,b);return this.each(function(){var b=d(this),e=new f(b,c,a);b.data("pie_timer",e)})},m=function(b){b in f.prototype||d.error("Method "+b+" does not exist on jQuery.pietimer");var a=Array.prototype.slice.call(arguments,1);return this.each(function(){var c=d(this).data("pie_timer");if(!c)return!0;c[b].apply(c,a)})};d.fn.pietimer=function(b){return"object"===typeof b||!b?l.apply(this,arguments):m.apply(this,arguments)}})(jQuery);var VidemeProgress="<img src='data:image/gif;base64,R0lGODlhDQAMAKIAAP///7W1ta2trXNzczExMf4BAgAAAAAAACH/C05FVFNDQVBFMi4wAwEAAAAh+QQFCgAFACwAAAAADQAMAAADIgi6zCIghDilejRbgK2fHPRloVaB3Umm5iWqGzuW49bcQAIAIfkEBQoABQAsAAABAAMACgAAAwhYRMrb8ElHEwAh+QQFCgAFACwAAAEADAAKAAADHlgzRVRCQLnai1Mxl3HlmLddkmh11IhqZ5i25QvGCQAh+QQFCgAFACwAAAEACQAKAAADGVgiNVOEKOagXO3FmS2vGwZelEZ2YemJZgIAIfkEBQoABQAsBAABAAgACgAAAxYYUTNFRDEHZXtx3appnpjliWFXglACACH5BAUKAAUALAcAAQAFAAoAAAMNGFEzym61N2WE9FZsEwA7' />";var VidemeAlertLogin='<div class="alert alert-warning alert-dismissible fade show" role="alert">'+' Please <strong><a href="https://www.vide.me/web/enter/" class="alert-link"> log in </a></strong> first!'+' <button type="button" class="close" data-dismiss="alert" aria-label="Close">'+' <span aria-hidden="true">×</span>'+" </button>"+"</div>";function gotoLogin(){window.location.href="https://www.vide.me/web/enter/"}function pas_info(){if($.cookie("vide_nad")){$.getJSON("https://api.vide.me/v2/user/info/?videmecallback=?",function(data){if(!$.isEmptyObject(data)){var trueUserInfo=paddingUserInfo(data);$(".pas_info_heading").html(trueUserInfo.user_display_name);$(".pas_info_user_id_face_img").attr("src",origin_img_vide_me+trueUserInfo.user_picture);$(".pas_info_user_cover").attr("src",origin_img_vide_me+trueUserInfo.user_cover);$(".pas_info_user_cover_top").attr("src",origin_img_vide_me+trueUserInfo.user_cover_top);$("#user_display_name").val(trueUserInfo.user_display_name);$("#user_first_name").val(trueUserInfo.user_first_name);$("#user_last_name").val(trueUserInfo.user_last_name);$("#user_link").val(trueUserInfo.user_link);$("input:radio[name=user_gender]").val([trueUserInfo.user_gender]);$("#user_locale").val(trueUserInfo.user_locale);$("#country").val(trueUserInfo.country);$("#city").val(trueUserInfo.city);$("#bio").val(trueUserInfo.bio);$("#slogan").val(trueUserInfo.slogan)}else{console.log("$.fn.getAuthorized -----\x3e getJSON empty");$(".videme-form-user-info").remove()}})}else{console.log("$.fn.getAuthorized -----\x3e no cookie");$(".pas_info_heading").html("authorise please")}console.log("pas_info"+$.fn.getAuthorized())}function itemEdit(){if($.cookie("vide_nad")){var i=getParameterByName("i");$.getJSON("https://api.vide.me/v2/items/info/?item_id="+i+"&videmecallback=?",function(data){if(!$.isEmptyObject(data)){console.log(".itemEdit -----\x3e data: ",data);console.log(".itemEdit -----\x3e data: ",JSON.stringify(data));var trueUserInfo=paddingUserInfo(data);$("#nad").val($.cookie("vide_nad"));$("#item_id").val(trueUserInfo.item_id);$("#videme-form-partners-search-btn").attr("item_id",trueUserInfo.item_id);$("#item_type").val(trueUserInfo.type);if(trueUserInfo.cover){$("#videme_item_edit_image").attr("src",origin_img_vide_me+trueUserInfo.cover).removeClass("hidden")}else{}$("#videme_item_edit_image_item").attr("src",origin_img_vide_me+trueUserInfo.item_id+".jpg");$("#cover").val(trueUserInfo.cover);$("#item_edit_title").val(trueUserInfo.title);$("#item_edit_content_edit").val(trueUserInfo.content);if(trueUserInfo.access){$("input[name=access][value="+trueUserInfo.access+"]").prop("checked",true)}else{$("input[name=access][value=public]").prop("checked",true)}$(".del-my-toggle").attr("item_id",trueUserInfo.item_id);$(".del-my-toggle").attr("user_display_name",trueUserInfo.user_display_name);$(".del-my-toggle").attr("title",trueUserInfo.title);$(".del-my-toggle").attr("content",trueUserInfo.content);$(".del-my-toggle").attr("created_at",trueUserInfo.created_at);if(trueUserInfo.tags){var element_tags="";var web_id_tags="";array_tags=$.parseJSON(trueUserInfo.tags);$.each(array_tags,function(key,value){web_id_tags=makeid();element_tags+="<input type='hidden' name='tags["+value+"]' value='"+value+"' class='"+web_id_tags+"'/>"+"<span class='badge badge-pill badge-secondary videme-edit-tag "+web_id_tags+"' >"+value+" <a class='tag_remove' href='#' tag_remove_title='"+web_id_tags+"'>"+" <i class='fa fa-remove'></i>"+" </a>"+"</span> "});$("#videme-item-edit-tags_edit").html(element_tags)}if(trueUserInfo.ext_links){console.log("function itemEdit ext_links -----\x3e"+JSON.stringify(trueUserInfo.ext_links));var links="";var element="";var web_id="";array_ext_links2=$.parseJSON(trueUserInfo.ext_links);$.each(array_ext_links2,function(key,value){web_id=makeid();element+='<input type="hidden" name="ext_links['+value.title+'][title]" value="'+value.title+"\" class='"+web_id+'\'><input type="hidden" name="ext_links['+value.title+'][link]" value="'+value.link+"\" class='"+web_id+"'><a class=\"badge badge-primary videme-edit-ext_link "+web_id+"\" href='"+value.link+"' target='_blank'> "+value.title+'<a class="ext_link_remove" href="#" ext_link_title="'+web_id+'"><i class="fa fa-remove"></i></a></a>'});$("#add_ext_links").html(" "+element)}}else{console.log("$.fn.getAuthorized -----\x3e getJSON empty");$(".videme-form-user-info").remove()}})}else{gotoLogin()}}function detectBrowser(){var isOpera=!!window.opr&&!!opr.addons||!!window.opera||navigator.userAgent.indexOf(" OPR/")>=0;var isFirefox=typeof InstallTrigger!=="undefined";var isSafari=/constructor/i.test(window.HTMLElement)||function(p){return p.toString()==="[object SafariRemoteNotification]"}(!window["safari"]||typeof safari!=="undefined"&&safari.pushNotification);var isIE=false||!!document.documentMode;var isEdge=!isIE&&!!window.StyleMedia;var isChrome=!!window.chrome&&!!window.chrome.webstore;var isBlink=(isChrome||isOpera)&&!!window.CSS;if(isOpera)return"opera";if(isFirefox)return"firefox";if(isSafari)return"safari";if(isIE)return"ie";if(isEdge)return"edge";if(isChrome)return"chrome";if(isBlink)return"blink"}function showTileDoorbellSignSmall(showTileDoorbellSignSmall,tempObject){console.log("showTileDoorbellSignSmall ---\x3e "+JSON.stringify(showTileDoorbellSignSmall));var html=[];let li_id="";html.push('<ul class="list-group videme-doorbell-sign-small">');$.each(showTileDoorbellSignSmall,function(key,value){var trueValue=paddingUserInfo(value);if(!$.isEmptyObject(showDoorbellSignSmall.web_parent_id)){li_id=showDoorbellSignSmall.web_parent_id}else{li_id=makeid();showDoorbellSignSmall.web_parent_id=li_id}html.push('<li type="button" class="list-group-item list-group-item-action videme-list-group" id="'+li_id+'">');html.push(showDoorbellSignSmall(trueValue,tempObject));html.push("</li>")});html.push("</ul>");return html.join("")}function showDoorbellSignSmall(showDoorbellSignSmall,tempObject){console.log("showDoorbellSignSmall ---\x3e "+JSON.stringify(showDoorbellSignSmall));var tempObjectClass="",title="",dbs_image_class="videme-doorbell-sign-image",spring_show="",country_show="",city_show="";if(!$.isEmptyObject(tempObject)){if(tempObject.width()<300){tempObjectClass=""}else{}}else{tempObjectClass=" d-flex"}if(!$.isEmptyObject(showDoorbellSignSmall.href)){title="<a href='https://www.vide.me/"+showDoorbellSignSmall.href+"'>"+showDoorbellSignSmall.title+"</a>"}else{title=showDoorbellSignSmall.title}if(!$.isEmptyObject(showDoorbellSignSmall.dbs_type)){}spring_show=getHtmlSpringDBS(showDoorbellSignSmall);country_show=getHtmlCountryDBS(showDoorbellSignSmall);city_show=getHtmlCityDBS(showDoorbellSignSmall);return"<div class='"+dbs_image_class+"'> "+showIconForDoorbelSign(showDoorbellSignSmall)+" </div> <div class='videme-doorbell-sign-1st-line'> <div class='videme-doorbell-sign-1st-line-title-date"+tempObjectClass+'\'> <div class="videme-doorbell-sign-title">'+title+showStatusForDoorbellSign(showDoorbellSignSmall)+"</div> </div> "+showMiniDBS(showDoorbellSignSmall)+" </div> <div class='videme-doorbell-sign-2st-line'> "+spring_show+" <div class='videme-relation-card-user-geo'> "+country_show+" "+city_show+" </div> "+showButtonForDoorbelSign(showDoorbellSignSmall)+" "+showDropdownForDoorbelSign(showDoorbellSignSmall)+" <div class='videme-doorbell-sign-additional'>"+accessToIcon(showDoorbellSignSmall)+"</div> <div class='text-muted videme-doorbell-sign-count'>"+showDoorbellSignSmall.count+"</div> </div> <ul class='videme-doorbell-sign-additional-line'> "+showFooterAdditionalForDoorbellSign(showDoorbellSignSmall)+" </ul> </div>"}function showChartItem(showChartItem,chart_id){console.log("showChartItem ---\x3e "+JSON.stringify(showChartItem));console.log("showChartItem chart_id ---\x3e "+chart_id);var data={datasets:[{data:showChartItem}]};const canvas=$("#"+chart_id);const ctx=canvas[0].getContext("2d");new Chart(ctx,{type:"bar",data:data,options:{maintainAspectRatio:false,backgroundColor:"rgb(203,76,76)",borderColor:"rgb(101,39,39)",borderWidth:1,borderRadius:12,borderSkipped:false,aspectRatio:5,scales:{x:{type:"timeseries"}},plugins:{legend:{display:false}}}})}function showChartPopStates(showChartPopStates,param){var html=[];if(!$.isEmptyObject(showChartPopStates)){html.push("<div class='videme-chart-filter-pop-states'>");html.push("<div class='videme-v3-tile-title'>Popular regions:</div>");html.push("<span id='' class='badge rounded-pill text-bg-primary videme-chart-pop-state-button videme-chart-pop-state-button_"+param.item+"' state='' item_id='"+param.item+"'>All</span>");$.each(showChartPopStates,function(key,value){var obj_names=jQuery.parseJSON(value["names"]);html.push("<span id='' class='badge rounded-pill text-bg-secondary videme-chart-pop-state-button videme-chart-pop-state-button_"+param.item+"' state='"+value["state"]+"' item_id='"+param.item+"'>"+obj_names["en"]+" - "+value["count_state"]+"</span>")});html.push("</div>")}return html.join("")}function jason_padding_to_div(json){console.log("jason_padding_to_div ---\x3e "+JSON.stringify(json));var html=[];$.each(json,function(key,value){html.push(" vide-prop-"+key+'=" + value + "')});return html.join("")}function showMiniDBS(showDoorbellSignSmall){console.log("showMiniDBS ---\x3e "+JSON.stringify(showDoorbellSignSmall));var owner_picture="",html="";if(!$.isEmptyObject(showDoorbellSignSmall.dbs_type)){switch(showDoorbellSignSmall.dbs_type){case"essence_to":if(!$.isEmptyObject(showDoorbellSignSmall.user_picture)){owner_picture="<img class='rounded-circle videme-relation-card-img-tile' src='"+origin_img_vide_me+showDoorbellSignSmall.user_picture+"' alt='' style='width: 1rem;height: 1rem;'/>";html=showDoorbellSignSmall.ref_title+" at <div class='videme-doorbell-sign-image hidden'> "+owner_picture+" </div> "+getHtmlUserNameDBS(showDoorbellSignSmall)+"("+showDoorbellSignSmall.essence_title+")"}break;case"essence_from":if(!$.isEmptyObject(showDoorbellSignSmall.owner_picture)){owner_picture="<img class='rounded-circle videme-relation-card-img-tile' src='"+origin_img_vide_me+showDoorbellSignSmall.owner_picture+"' alt='' style='width: 1rem;height: 1rem;'/>";html=" "+showDoorbellSignSmall.ref_title+" at <div class='videme-doorbell-sign-image'> "+owner_picture+" </div> "+showDoorbellSignSmall.owner_display_name+" ("+showDoorbellSignSmall.essence_title+") "}break;case"partnership_to_me":if(!$.isEmptyObject(showDoorbellSignSmall.user_picture)){owner_picture="<img class='rounded-circle videme-relation-card-img-tile-v3' src='"+origin_img_vide_me+showDoorbellSignSmall.user_picture+"' alt=''/>";html=owner_picture+getHtmlUserNameDBS(showDoorbellSignSmall)}break;default:}}return html}function showDropdownForDoorbelSign(showDropdownForDoorbelSign){var dropdownDS="";var dropdownMain="";$.each(showDropdownForDoorbelSign.dropdown,function(key,value){switch(value){case"album":dropdownDS+=" <a class='dropdown-item album-edit-toggle' data-toggle='modal' data-target='#modal-edit-list' title='"+showDropdownForDoorbelSign.title+"' access='"+showDropdownForDoorbelSign.access+"'> Edit </a>";break;case"edit_relation":dropdownDS+="\t<a \t\tclass='dropdown-item contact-edit-toggle' data-toggle='modal' \t\tdata-target='#modal-edit-contact' \t\tfrom_user_id='"+showDropdownForDoorbelSign.from_user_id+"'\t\tto_user_id='"+showDropdownForDoorbelSign.to_user_id+"'\t\trelation_email='"+showDropdownForDoorbelSign.relation_email+"'\t\trelation='"+showDropdownForDoorbelSign.relation+"'>\t\tEdit\t</a>";break;case"del_friendship":dropdownDS+="\t<a \t\tclass='dropdown-item friendship-del-toggle' data-toggle='modal' \t\tdata-target='#modal-del-friendship' \t\tuser_display_name='"+showDropdownForDoorbelSign.user_display_name+"'\t\tspring='"+showDropdownForDoorbelSign.spring+"'\t\tuser_id='"+showDropdownForDoorbelSign.user_id+"'>\t\tDelete\t</a>";break;case"edit_my_video":dropdownDS+="<a class='dropdown-item item-edit-toggle' href='https://api.vide.me/web/item_edit/?i="+showDropdownForDoorbelSign.item_id+"'>Edit</a>";break;case"edit_my_article":dropdownDS+="\t<a \t\tclass='dropdown-item article-edit-toggle'\t\thref='https://api.vide.me/article/update/html/?a="+showDropdownForDoorbelSign.item_id+"' \t\tid='"+showDropdownForDoorbelSign.key+"' \t\titem_id='"+showDropdownForDoorbelSign.item_id+"'\t\tcover='"+showDropdownForDoorbelSign.cover+"'\t\ttitle='"+showDropdownForDoorbelSign.title+"'\t\tcontent='"+showDropdownForDoorbelSign.content+"'\t\taccess='"+showDropdownForDoorbelSign.access+"'\t\ttags='"+showDropdownForDoorbelSign.tags+"'>\t\tEdit\t</a>";break;case"edit_my_event":dropdownDS+="\t<a \t\tclass='dropdown-item event-edit-toggle'\t\thref='https://api.vide.me/web/event_update/?e="+showDropdownForDoorbelSign.item_id+"' \t\tid='"+showDropdownForDoorbelSign.key+"' \t\titem_id='"+showDropdownForDoorbelSign.item_id+"'\t\tcover='"+showDropdownForDoorbelSign.cover+"'\t\ttitle='"+showDropdownForDoorbelSign.title+"'\t\tcontent='"+showDropdownForDoorbelSign.content+"'\t\taccess='"+showDropdownForDoorbelSign.access+"'\t\ttags='"+showDropdownForDoorbelSign.tags+"'>\t\tEdit\t</a>";break;case"send":dropdownDS+="\t<a \t\tclass='dropdown-item contact-toggle'\t\tid='"+showDropdownForDoorbelSign.key+"' \t\tdata-toggle='modal' \t\tdata-target='#modal-contact'\t\titem_id='"+showDropdownForDoorbelSign.item_id+"'\t\ttitle='"+showDropdownForDoorbelSign.title+"'\t\tcontent='"+showDropdownForDoorbelSign.content+"' created_at='"+showDropdownForDoorbelSign.created_at+"'>\t\tSend\t</a>";break;case"share":dropdownDS+="\t<a \t\tclass='dropdown-item list-toggle'\t\tid='"+showDropdownForDoorbelSign.key+"' \t\tdata-toggle='modal' \t\tdata-target='#modal-list'\t\titem_id='"+showDropdownForDoorbelSign.item_id+"'\t\ttitle='"+showDropdownForDoorbelSign.title+"'\t\tcontent='"+showDropdownForDoorbelSign.content+"'\t\tcreated_at='"+showDropdownForDoorbelSign.created_at+"'>\t\tSave to album\t</a>";break;case"delete":dropdownDS+="\t<a \t\tclass='dropdown-item del-my-toggle'\t\tid='"+showDropdownForDoorbelSign.key+"' \t\tdata-toggle='modal' \t\tdata-target='#modal-del'\t\titem_id='"+showDropdownForDoorbelSign.item_id+"'\t\tuser_display_name='"+showDropdownForDoorbelSign.user_display_name+"'\t\ttitle='"+showDropdownForDoorbelSign.title+"'\t\tcontent='"+showDropdownForDoorbelSign.content+"'\t\tcreated_at='"+showDropdownForDoorbelSign.created_at+"'>\t\tDelete\t</a>";break;case"delete-my-post":dropdownDS+="\t<a \t\tclass='dropdown-item del-my-post-toggle'\t\tid='"+showDropdownForDoorbelSign.key+"' \t\tdata-toggle='modal' \t\tdata-target='#modal-del-post'\t\titem_id='"+showDropdownForDoorbelSign.item_id+"'\t\tpost_id='"+showDropdownForDoorbelSign.post_id+"'\t\tuser_display_name='"+showDropdownForDoorbelSign.user_display_name+"'\t\ttitle='"+showDropdownForDoorbelSign.title+"'\t\tcontent='"+showDropdownForDoorbelSign.content+"'\t\tcreated_at='"+showDropdownForDoorbelSign.created_at+"'>\t\tDelete\t</a>";break;case"delete_my_post":dropdownDS+="\t<a \t\tclass='dropdown-item del-my-post-toggle'\t\tid='"+showDropdownForDoorbelSign.key+"' \t\tdata-toggle='modal' \t\tdata-target='#modal-del-post'\t\titem_id='"+showDropdownForDoorbelSign.item_id+"'\t\tpost_id='"+showDropdownForDoorbelSign.post_id+"'\t\tuser_display_name='"+showDropdownForDoorbelSign.user_display_name+"'\t\ttitle='"+showDropdownForDoorbelSign.title+"'\t\tcontent='"+showDropdownForDoorbelSign.content+"'\t\tcreated_at='"+showDropdownForDoorbelSign.created_at+"'>\t\tDelete\t</a>";break;case"delete_my_event":dropdownDS+="\t<a \t\tclass='dropdown-item del-my-toggle'\t\tid='"+showDropdownForDoorbelSign.key+"' \t\tdata-toggle='modal' \t\tdata-target='#modal-del'\t\titem_id='"+showDropdownForDoorbelSign.item_id+"'\t\tuser_display_name='"+showDropdownForDoorbelSign.user_display_name+"'\t\ttitle='"+showDropdownForDoorbelSign.title+"'\t\tcontent='"+showDropdownForDoorbelSign.content+"'\t\tcreated_at='"+showDropdownForDoorbelSign.created_at+"'\t\tfeedback='https://www.vide.me/web/my_event/'>\t\tDelete\t</a>";break;case"delete_inbox":dropdownDS+="\t<a \t\tclass='dropdown-item del-inbox-toggle'\t\tid='"+showDropdownForDoorbelSign.key+"' \t\tdata-toggle='modal' \t\tdata-target='#modal-del-inbox'\t\titem_id='"+showDropdownForDoorbelSign.item_id+"'\t\tmessage_id='"+showDropdownForDoorbelSign.message_id+"'\t\tuser_display_name='"+showDropdownForDoorbelSign.user_display_name+"'\t\ttitle='"+showDropdownForDoorbelSign.title+"'\t\tcontent='"+showDropdownForDoorbelSign.content+"'\t\tcreated_at='"+showDropdownForDoorbelSign.created_at+"'>\t\tDelete\t</a>";break;case"delete_sent":dropdownDS+="\t<a \t\tclass='dropdown-item del-sent-toggle'\t\tid='"+showDropdownForDoorbelSign.key+"' \t\tdata-toggle='modal' \t\tdata-target='#modal-del-sent'\t\titem_id='"+showDropdownForDoorbelSign.item_id+"'\t\tmessage_id='"+showDropdownForDoorbelSign.message_id+"'\t\tuser_display_name='"+showDropdownForDoorbelSign.user_display_name+"'\t\ttitle='"+showDropdownForDoorbelSign.title+"'\t\tcontent='"+showDropdownForDoorbelSign.content+"'\t\tcreated_at='"+showDropdownForDoorbelSign.created_at+"'>\t\tDelete\t</a>";break;case"embed":dropdownDS+="\t<a \t\tclass='dropdown-item embed-code-toggle'\t\tid='"+showDropdownForDoorbelSign.key+"' \t\tdata-toggle='modal' \t\tdata-target='#modal-show-embed-code'\t\titem_id='"+showDropdownForDoorbelSign.item_id+"'\t\tspring='"+showDropdownForDoorbelSign.spring+"'\t\tuser_display_name='"+showDropdownForDoorbelSign.user_display_name+"'\t\ttitle='"+showDropdownForDoorbelSign.title+"'\t\tcontent='"+showDropdownForDoorbelSign.content+"'\t\tcreated_at='"+showDropdownForDoorbelSign.created_at+"'\t\tnest_li='"+showDropdownForDoorbelSign.nest_li+"'>\t\tEmbed\t</a>";break;case"copy_link":dropdownDS+="\t<a \t\tclass='dropdown-item copy-link-toggle'\t\tid='"+showDropdownForDoorbelSign.key+"' \t\tdata-toggle='modal' \t\tdata-target='#modal-show-copy-link'\t\titem_id='"+showDropdownForDoorbelSign.item_id+"'\t\ttype='"+showDropdownForDoorbelSign.type+"'\t\tspring='"+showDropdownForDoorbelSign.spring+"'\t\tuser_display_name='"+showDropdownForDoorbelSign.user_display_name+"'\t\ttitle='"+showDropdownForDoorbelSign.title+"'\t\tcontent='"+showDropdownForDoorbelSign.content+"'\t\tcreated_at='"+showDropdownForDoorbelSign.created_at+"'\t\tnest_li='"+showDropdownForDoorbelSign.nest_li+"'>\t\tCopy link\t</a>";break}});if(dropdownDS.trim()){dropdownMain=' <div class="videme-doorbell-sign-action text-right"> <div class="dropdown"> <a class="fa fa-sort-down" href="#" role="button" id="dropdownMenuLink" data-toggle="dropdown" aria-haspopup="true" aria-expanded="false"> </a> <div class="dropdown-menu dropdown-menu-right" aria-labelledby="dropdownMenuLink"> '+dropdownDS+" </div> </div> </div> "}return dropdownMain}function paddingButtonAction(value){var action_url_class=value.action_url_class;if(value.access=="public"){var share="share";var fa_icon_access="fa fa-unlock"}else{var share="";var fa_icon_access="fa fa-lock"}if(action_url_class=="file-my-url"){value.dropdown={dd_item_1:"edit_my_video",dd_item_2:"send",dd_item_3:"share",dd_item_4:"delete",dd_item_5:"copy_link"};value=paddingButtonMy(value)}if(action_url_class=="videme-v3-my-item-url"){value.dropdown={dd_item_1:"edit_my_video",dd_item_2:"send",dd_item_3:"share",dd_item_4:"delete_my_item",dd_item_5:"copy_link"};value=paddingButtonMy(value)}if(action_url_class=="videme-v3-my-post-url"){value.dropdown={dd_item_1:"edit_my_video",dd_item_2:"send",dd_item_3:"share",dd_item_4:"delete_my_post",dd_item_5:"copy_link"};value=paddingButtonMy(value)}if(action_url_class=="article-my-url"){value.dropdown={dd_item_1:"edit_my_article",dd_item_2:"send",dd_item_3:"share",dd_item_4:"delete",dd_item_5:"copy_link"};value=paddingButtonMy(value)}if(action_url_class=="event-url"){value.dropdown={dd_item_1:"edit_my_event",dd_item_2:"send",dd_item_3:"share",dd_item_4:"delete_my_event",dd_item_5:"copy_link"};value=paddingButtonMy(value)}if(action_url_class=="post-my-url"){value.dropdown={dd_item_1:"send",dd_item_2:"share",dd_item_3:my_item_edit_type,dd_item_4:"delete_my_post",dd_item_5:"copy_link"};value=paddingButtonMy(value)}if(action_url_class=="file-inbox-url"){value.dropdown={dd_item_1:"send",dd_item_2:share,dd_item_3:"delete"};value=paddingButtonInbox(value)}if(action_url_class=="message-inbox-url"){value.dropdown={dd_item_1:"send",dd_item_2:share,dd_item_3:"delete_inbox"};value=paddingButtonInbox(value)}if(action_url_class=="file-sent-url"){value.dropdown={dd_item_1:"send",dd_item_2:share,dd_item_3:"delete"};value=paddingButtonSent(value)}if(action_url_class=="message-sent-url"){value.dropdown={dd_item_1:"send",dd_item_2:share,dd_item_3:"delete_sent"};value=paddingButtonSent(value)}if(action_url_class=="showmulti"){value.dropdown={dd_item_1:"send",dd_item_2:share,dd_item_3:"embed",dd_item_4:"request_partnership",dd_item_5:"copy_link"};value=paddingButtonSent(value)}if(action_url_class=="shownext"){value.dropdown={dd_item_1:"send",dd_item_2:share};value=paddingButtonSent(value)}if(action_url_class=="file-spring-url"){value.dropdown={dd_item_1:"send",dd_item_2:share};value=paddingButtonSent(value)}if(action_url_class=="article"){value.dropdown={dd_item_1:"send",dd_item_2:share};value=paddingButtonSent(value)}if(action_url_class=="item-card"){value.dropdown={}}return value}function showDropdownForDoorbelSignV3(showDropdownForDoorbelSignV3){var dropdownDS="";var dropdownMain="";$.each(showDropdownForDoorbelSignV3.dropdown,function(key,value){switch(value){case"album":dropdownDS+=" <li><a class='dropdown-item album-edit-toggle' data-bs-toggle='modal' data-bs-target='#modal-edit-list' title='"+showDropdownForDoorbelSignV3.title+"' access='"+showDropdownForDoorbelSignV3.access+"'> Edit </a></li>";break;case"edit_relation":dropdownDS+="\t<li><a \t\tclass='dropdown-item contact-edit-toggle' data-bs-toggle='modal' \t\tdata-bs-target='#modal-edit-contact' \t\tfrom_user_id='"+showDropdownForDoorbelSignV3.from_user_id+"'\t\tto_user_id='"+showDropdownForDoorbelSignV3.to_user_id+"'\t\trelation_email='"+showDropdownForDoorbelSignV3.relation_email+"'\t\trelation='"+showDropdownForDoorbelSignV3.relation+"'>\t\tEdit\t</a></li>";break;case"del_friendship":dropdownDS+="\t<li><a \t\tclass='dropdown-item friendship-del-toggle' data-bs-toggle='modal' \t\tdata-bs-target='#modal-del-friendship' \t\tuser_display_name='"+showDropdownForDoorbelSignV3.user_display_name+"'\t\tspring='"+showDropdownForDoorbelSignV3.spring+"'\t\tuser_id='"+showDropdownForDoorbelSignV3.user_id+"'>\t\tDelete\t</a></li>";break;case"edit_my_video":dropdownDS+="<li><a class='dropdown-item item-edit-toggle' href='https://api.vide.me/web/item_edit/?i="+showDropdownForDoorbelSignV3.item_id+"'>Edit</a></li>";break;case"edit_my_article":dropdownDS+="\t<li><a \t\tclass='dropdown-item article-edit-toggle'\t\thref='https://api.vide.me/article/update/html/?a="+showDropdownForDoorbelSignV3.item_id+"' \t\tid='"+showDropdownForDoorbelSignV3.key+"' \t\titem_id='"+showDropdownForDoorbelSignV3.item_id+"'\t\tcover='"+showDropdownForDoorbelSignV3.cover+"'\t\ttitle='"+showDropdownForDoorbelSignV3.title+"'\t\tcontent='"+showDropdownForDoorbelSignV3.content+"'\t\taccess='"+showDropdownForDoorbelSignV3.access+"'\t\ttags='"+showDropdownForDoorbelSignV3.tags+"'>\t\tEdit\t</a></li>";break;case"edit_my_event":dropdownDS+="\t<li><a \t\tclass='dropdown-item event-edit-toggle'\t\thref='https://api.vide.me/web/event_update/?e="+showDropdownForDoorbelSignV3.item_id+"' \t\tid='"+showDropdownForDoorbelSignV3.key+"' \t\titem_id='"+showDropdownForDoorbelSignV3.item_id+"'\t\tcover='"+showDropdownForDoorbelSignV3.cover+"'\t\ttitle='"+showDropdownForDoorbelSignV3.title+"'\t\tcontent='"+showDropdownForDoorbelSignV3.content+"'\t\taccess='"+showDropdownForDoorbelSignV3.access+"'\t\ttags='"+showDropdownForDoorbelSignV3.tags+"'>\t\tEdit\t</a></li>";break;case"send":dropdownDS+="\t<li><a \t\tclass='dropdown-item contact-toggle'\t\tid='"+showDropdownForDoorbelSignV3.key+"' \t\tdata-bs-toggle='modal' \t\tdata-bs-target='#modal-contact'\t\titem_id='"+showDropdownForDoorbelSignV3.item_id+"'\t\ttitle='"+showDropdownForDoorbelSignV3.title+"'\t\tcontent='"+showDropdownForDoorbelSignV3.content+"' created_at='"+showDropdownForDoorbelSignV3.created_at+"'>\t\tSend\t</a></li>";break;case"share":dropdownDS+="\t<li><a \t\tclass='dropdown-item list-toggle'\t\tid='"+showDropdownForDoorbelSignV3.key+"' \t\tdata-bs-toggle='modal' \t\tdata-bs-target='#modal-list'\t\titem_id='"+showDropdownForDoorbelSignV3.item_id+"'\t\ttitle='"+showDropdownForDoorbelSignV3.title+"'\t\tcontent='"+showDropdownForDoorbelSignV3.content+"'\t\tcreated_at='"+showDropdownForDoorbelSignV3.created_at+"'>\t\tSave to album\t</a></li>";break;case"delete":dropdownDS+="\t<li><a \t\tclass='dropdown-item del-my-toggle'\t\tid='"+showDropdownForDoorbelSignV3.key+"' \t\tdata-bs-toggle='modal' \t\tdata-bs-target='#modal-del'\t\titem_id='"+showDropdownForDoorbelSignV3.item_id+"'\t\tuser_display_name='"+showDropdownForDoorbelSignV3.user_display_name+"'\t\ttitle='"+showDropdownForDoorbelSignV3.title+"'\t\tcontent='"+showDropdownForDoorbelSignV3.content+"'\t\tcreated_at='"+showDropdownForDoorbelSignV3.created_at+"'>\t\tDelete\t</a></li>";break;case"delete-my-post_old26042020":dropdownDS+="\t<li><a \t\tclass='dropdown-item del-my-post-toggle'\t\tid='"+showDropdownForDoorbelSignV3.key+"' \t\tdata-toggle='modal' \t\tdata-target='#modal-del-post'\t\titem_id='"+showDropdownForDoorbelSignV3.item_id+"'\t\tpost_id='"+showDropdownForDoorbelSignV3.post_id+"'\t\tuser_display_name='"+showDropdownForDoorbelSignV3.user_display_name+"'\t\ttitle='"+showDropdownForDoorbelSignV3.title+"'\t\tcontent='"+showDropdownForDoorbelSignV3.content+"'\t\tcreated_at='"+showDropdownForDoorbelSignV3.created_at+"'>\t\tDelete\t</a></li>";break;case"delete_my_item":dropdownDS+="\t<li><a \t\tclass='dropdown-item del-my-toggle'\t\tid='"+showDropdownForDoorbelSignV3.key+"' \t\tdata-bs-toggle='modal' \t\tdata-bs-target='#modal-del'\t\titem_id='"+showDropdownForDoorbelSignV3.item_id+"'\t\tuser_display_name='"+showDropdownForDoorbelSignV3.user_display_name+"'\t\ttitle='"+showDropdownForDoorbelSignV3.title+"'\t\tcontent='"+showDropdownForDoorbelSignV3.content+"'\t\tcreated_at='"+showDropdownForDoorbelSignV3.created_at+"'>\t\tDelete item\t</a></li>";break;case"delete_my_post":dropdownDS+="\t<li><a \t\tclass='dropdown-item del-my-post-toggle'\t\tid='"+showDropdownForDoorbelSignV3.key+"' \t\tdata-bs-toggle='modal' \t\tdata-bs-target='#modal-del-post'\t\titem_id='"+showDropdownForDoorbelSignV3.item_id+"'\t\tpost_id='"+showDropdownForDoorbelSignV3.post_id+"'\t\tuser_display_name='"+showDropdownForDoorbelSignV3.user_display_name+"'\t\ttitle='"+showDropdownForDoorbelSignV3.title+"'\t\tcontent='"+showDropdownForDoorbelSignV3.content+"'\t\tcreated_at='"+showDropdownForDoorbelSignV3.created_at+"'>\t\tDelete post\t</a></li>";break;case"delete_my_partner_req":dropdownDS+="\t<li><a \t\tclass='dropdown-item partner_delete'\t\tid='"+showDropdownForDoorbelSignV3.key+"' \t\tdata-bs-toggle='modal' \t\tdata-bs-target='#modal-partner-delete'\t\tip_id='"+showDropdownForDoorbelSignV3.ip_id+"'\t\titem_id='"+showDropdownForDoorbelSignV3.item_id+"'\t\tpartner_id='"+showDropdownForDoorbelSignV3.partner_id+"'\t\tspring='"+showDropdownForDoorbelSignV3.post_spring+"'\t\ttitle='"+showDropdownForDoorbelSignV3.title+"'\t\tcontent='"+showDropdownForDoorbelSignV3.content+"'\t\tcreated_at='"+showDropdownForDoorbelSignV3.created_at+"'>\t\tDelete request\t</a></li>";break;case"delete_my_album_set":dropdownDS+="\t<li><a \t\tclass='dropdown-item delete_my_album_set'\t\tid='"+showDropdownForDoorbelSignV3.key+"' \t\talbums_sets_id='"+showDropdownForDoorbelSignV3.albums_sets_id+"'\t\talbum='"+showDropdownForDoorbelSignV3.albums_title+"'\t\titem_id='"+showDropdownForDoorbelSignV3.item_id+"'\t\tpost_id='"+showDropdownForDoorbelSignV3.post_id+"'\t\tuser_display_name='"+showDropdownForDoorbelSignV3.user_display_name+"'\t\ttitle='"+showDropdownForDoorbelSignV3.title+"'\t\tcontent='"+showDropdownForDoorbelSignV3.content+"'\t\tcreated_at='"+showDropdownForDoorbelSignV3.created_at+"'>\t\tDelete \t</a></li>";break;case"delete_my_event":dropdownDS+="\t<li><a \t\tclass='dropdown-item del-my-toggle'\t\tid='"+showDropdownForDoorbelSignV3.key+"' \t\tdata-bs-toggle='modal' \t\tdata-bs-target='#modal-del'\t\titem_id='"+showDropdownForDoorbelSignV3.item_id+"'\t\tuser_display_name='"+showDropdownForDoorbelSignV3.user_display_name+"'\t\ttitle='"+showDropdownForDoorbelSignV3.title+"'\t\tcontent='"+showDropdownForDoorbelSignV3.content+"'\t\tcreated_at='"+showDropdownForDoorbelSignV3.created_at+"'\t\tfeedback='https://www.vide.me/web/my_event/'>\t\tDelete\t</a></li>";break;case"delete_inbox":dropdownDS+="\t<li><a \t\tclass='dropdown-item del-inbox-toggle'\t\tid='"+showDropdownForDoorbelSignV3.key+"' \t\tdata-bs-toggle='modal' \t\tdata-bs-target='#modal-del-inbox'\t\titem_id='"+showDropdownForDoorbelSignV3.item_id+"'\t\tmessage_id='"+showDropdownForDoorbelSignV3.message_id+"'\t\tuser_display_name='"+showDropdownForDoorbelSignV3.user_display_name+"'\t\ttitle='"+showDropdownForDoorbelSignV3.title+"'\t\tcontent='"+showDropdownForDoorbelSignV3.content+"'\t\tcreated_at='"+showDropdownForDoorbelSignV3.created_at+"'>\t\tDelete\t</a></li>";break;case"delete_sent":dropdownDS+="\t<li><a \t\tclass='dropdown-item del-sent-toggle'\t\tid='"+showDropdownForDoorbelSignV3.key+"' \t\tdata-bs-toggle='modal' \t\tdata-bs-target='#modal-del-sent'\t\titem_id='"+showDropdownForDoorbelSignV3.item_id+"'\t\tmessage_id='"+showDropdownForDoorbelSignV3.message_id+"'\t\tuser_display_name='"+showDropdownForDoorbelSignV3.user_display_name+"'\t\ttitle='"+showDropdownForDoorbelSignV3.title+"'\t\tcontent='"+showDropdownForDoorbelSignV3.content+"'\t\tcreated_at='"+showDropdownForDoorbelSignV3.created_at+"'>\t\tDelete\t</a></li>";break;case"embed":dropdownDS+="\t<li><a \t\tclass='dropdown-item embed-code-toggle-v3'\t\tid='"+showDropdownForDoorbelSignV3.key+"' \t\tdata-bs-toggle='modal' \t\tdata-bs-target='#modal-show-embed-code'\t\titem_id='"+showDropdownForDoorbelSignV3.item_id+"'\t\tspring='"+showDropdownForDoorbelSignV3.spring+"'\t\tuser_display_name='"+showDropdownForDoorbelSignV3.user_display_name+"'\t\ttitle='"+showDropdownForDoorbelSignV3.title+"'\t\tcontent='"+showDropdownForDoorbelSignV3.content+"'\t\tcreated_at='"+showDropdownForDoorbelSignV3.created_at+"'\t\tnest_li='"+showDropdownForDoorbelSignV3.nest_li+"'>\t\tEmbed\t</a></li>";break;case"request_partnership":dropdownDS+="\t<li><a \t\tclass='dropdown-item partner_invite_request'\t\tid='"+showDropdownForDoorbelSignV3.key+"' \t\titem_id='"+showDropdownForDoorbelSignV3.item_id+"'>\t\tRequest partnership\t</a></li>";break;case"copy_link":dropdownDS+="\t<li><a \t\tclass='dropdown-item copy-link-toggle'\t\tid='"+showDropdownForDoorbelSignV3.key+"' \t\tdata-bs-toggle='modal' \t\tdata-bs-target='#modal-show-copy-link'\t\titem_id='"+showDropdownForDoorbelSignV3.item_id+"'\t\ttype='"+showDropdownForDoorbelSignV3.type+"'\t\tspring='"+showDropdownForDoorbelSignV3.spring+"'\t\tuser_display_name='"+showDropdownForDoorbelSignV3.user_display_name+"'\t\ttitle='"+showDropdownForDoorbelSignV3.title+"'\t\tcontent='"+showDropdownForDoorbelSignV3.content+"'\t\tcreated_at='"+showDropdownForDoorbelSignV3.created_at+"'\t\tnest_li='"+showDropdownForDoorbelSignV3.nest_li+"'>\t\tCopy link\t</a></li>";break;case"repost":dropdownDS+="\t<li><a \t\tclass='dropdown-item copy-link-toggle'\t\tid='"+showDropdownForDoorbelSignV3.key+"' \t\tdata-toggle='modal' \t\tdata-target='#modal-show-copy-link'\t\titem_id='"+showDropdownForDoorbelSignV3.item_id+"'\t\ttype='"+showDropdownForDoorbelSignV3.type+"'\t\tspring='"+showDropdownForDoorbelSignV3.spring+"'\t\tuser_display_name='"+showDropdownForDoorbelSignV3.user_display_name+"'\t\ttitle='"+showDropdownForDoorbelSignV3.title+"'\t\tcontent='"+showDropdownForDoorbelSignV3.content+"'\t\tcreated_at='"+showDropdownForDoorbelSignV3.created_at+"'\t\tnest_li='"+showDropdownForDoorbelSignV3.nest_li+"'>\t\tCopy link\t</a></li>";break}});if(dropdownDS.trim()){dropdownMain=' <div class="videme-doorbell-sign-action text-right"> <div class="dropdown"> \x3c!--<button class="btn btn-outline-primary btn-sm videme-round-button">--\x3e \x3c!--<button class="btn btn-secondary dropdown-toggle" type="button" id="dropdownMenuButton1" data-bs-toggle="dropdown" aria-expanded="false">--\x3e <button class="fa fa-ellipsis-h btn btn-outline-primary btn-sm videme-round-button" href="#" role="button" id="dropdownMenuLink" data-bs-toggle="dropdown" aria-haspopup="true" aria-expanded="false" style="padding: .4rem .5rem;"> </button> \x3c!--</button>--\x3e <ul class="dropdown-menu dropdown-menu-end" aria-labelledby="dropdownMenuLink"> '+dropdownDS+" </ul> </div> </div> "}return dropdownMain}function showButtonForDoorbelSign(showButtonForDoorbelSign){var buttonDS="";$.each(showButtonForDoorbelSign.buttons,function(key,value){switch(value){case"send_message":buttonDS+="\t\t<a class='btn btn-primary videme-relation-card-button-connect' href=\"https://vide.me/rec/?email="+showButtonForDoorbelSign.relation_email+"\" role='button'>Send video email</a>";break;case"item_send_message":buttonDS+="\t\t<a class='btn btn-primary videme-relation-card-button-connect contact-url' href='https://api.vide.me/v2/email/share/?user_id="+showButtonForDoorbelSign.to_user_id+"&item_id="+showButtonForDoorbelSign.item_id+"&subject=Re: "+showButtonForDoorbelSign.title+"&message="+showButtonForDoorbelSign.content+"&nad="+$.cookie("vide_nad")+"' role='button'>Send</a>";break;case"pop_relations":buttonDS+="\t<a href='https://api.vide.me/v2/relation/connect/?user_id="+showButtonForDoorbelSign.user_id+"&nad="+$.cookie("vide_nad")+"' class='btn btn-outline-primary videme-relation-card-button-connect relation_connect' user_id='"+showButtonForDoorbelSign.user_id+"' feedback='https://www.vide.me/"+showButtonForDoorbelSign.spring+"'>Connect</a>";break;case"friendship_accept":buttonDS+="\t<a href='https://api.vide.me/v2/friendship/accept/?user_id="+showButtonForDoorbelSign.user_id+"&nad="+$.cookie("vide_nad")+"' class='btn btn-outline-primary videme-relation-card-button-connect friendship_accept' user_id='"+showButtonForDoorbelSign.user_id+"' feedback='https://www.vide.me/"+showButtonForDoorbelSign.spring+"'>Accept</a>";break;case"friendship_declined":buttonDS+="\t<a href='https://api.vide.me/v2/friendship/declined/?user_id="+showButtonForDoorbelSign.user_id+"&nad="+$.cookie("vide_nad")+"' class='btn btn-outline-secondary videme-relation-card-button-connect friendship_declined' user_id='"+showButtonForDoorbelSign.user_id+"' feedback='https://www.vide.me/"+showButtonForDoorbelSign.spring+"'>Declined</a>";break;case"del_friendship":buttonDS+="\t<a \t\tclass='btn btn-outline-secondary videme-relation-card-button-connect friendship-del-toggle' data-bs-toggle='modal' \t\tdata-bs-target='#modal-del-friendship' \t\tuser_display_name='"+showButtonForDoorbelSign.user_display_name+"'\t\tspring='"+showButtonForDoorbelSign.spring+"'\t\tuser_id='"+showButtonForDoorbelSign.user_id+"'>\t\tDelete\t</a>";break;case"item_add_to_album":buttonDS+="\t<a href='https://api.vide.me/v2/items/share/?item_id="+showButtonForDoorbelSign.item_id+"&album_id="+showButtonForDoorbelSign.album_id+"&nad="+$.cookie("vide_nad")+"' class='btn btn-outline-secondary videme-relation-card-button-connect list-url'>Add</a>";break;case"friendship":buttonDS+="\t<a href='https://api.vide.me/v2/friendship/request/?user_id="+showButtonForDoorbelSign.user_id+"&nad="+$.cookie("vide_nad")+"' class='btn btn-outline-secondary videme-relation-card-button-connect list-url'>Frindship</a>";break;case"essence_join":buttonDS+="\t<a href='https://api.vide.me/v2/essences/join/?ue_id="+showButtonForDoorbelSign.ue_id+"&nad="+$.cookie("vide_nad")+"' class='btn btn-outline-secondary videme-relation-card-button-connect essence_join' ue_id='"+showButtonForDoorbelSign.ue_id+"' spring='"+showButtonForDoorbelSign.spring+"' data-bs-toggle='modal' data-bs-target='#modal-create-new-essence-to-me'>Join</a>";break;case"partner_invite":buttonDS+="\t<a href='' class='btn btn-outline-secondary videme-relation-card-button-connect partner_invite' item_id='"+showButtonForDoorbelSign.item_id+"' partner_id='"+showButtonForDoorbelSign.user_id+"' spring='"+showButtonForDoorbelSign.spring+"' data-bs-toggle='modal' data-bs-target='#modal-partner-invite'>Invite</a>";break;case"partner_delete":buttonDS+="\t<a href='' class='btn btn-outline-secondary videme-relation-card-button-connect partner_delete' ip_id='"+showButtonForDoorbelSign.ip_id+"' item_id='"+showButtonForDoorbelSign.item_id+"' partner_id='"+showButtonForDoorbelSign.partner_id+"' spring='"+showButtonForDoorbelSign.spring+"'>Delete</a>";break;case"partner_accept":buttonDS+="\t<a href='' class='btn btn-outline-secondary videme-relation-card-button-connect partner_accept' ip_id='"+showButtonForDoorbelSign.ip_id+"'>Accept</a>";break;case"partner_decline":buttonDS+="\t<a href='' class='btn btn-outline-secondary videme-relation-card-button-connect partner_decline' ip_id='"+showButtonForDoorbelSign.ip_id+"'>Decline</a>";break;case"follow":buttonDS+="\t<a href='https://api.vide.me/v2/relation/connect/?user_id="+showButtonForDoorbelSign.user_id+"&nad="+$.cookie("vide_nad")+"' class='btn btn-outline-primary videme-relation-card-button-connect list-url'>Follow</a>";break;case"relation_delete":buttonDS+="\t<a href='https://api.vide.me/v2/relation/delete/?to_user_id="+showButtonForDoorbelSign.user_id+"&nad="+$.cookie("vide_nad")+"' class='btn btn-outline-secondary videme-relation-card-button-connect relation_delete' user_id='"+showButtonForDoorbelSign.user_id+"' feedback='https://www.vide.me/web/im_following/'>Unfollow</a>";break;case"del_task":buttonDS+="\t<a href='https://api.vide.me/v2/tasks/delete/?task_id="+showButtonForDoorbelSign.task_id+"&nad="+$.cookie("vide_nad")+"' class='btn btn-outline-primary btn-sm float-right videme-relation-card-button-connect task_delete' user_id='"+showButtonForDoorbelSign.user_id+"' feedback=''>Hide</a>";break;case"del_star":var btn_group_stars_id="btn_proup_stars_"+Math.floor(Math.random()*100);buttonDS+='<div class="btn-group float-right" role="group" aria-label="Stars" id="'+btn_group_stars_id+'"> <button type="button" class="btn btn-secondary btn-sm videme-relation-card-button-connect delete_star_multy" stars_count="'+showButtonForDoorbelSign.stars_count+'" item_id="'+showButtonForDoorbelSign.item_id+'" btn_group_stars_id="'+btn_group_stars_id+'"> <i id="videme_showcase_stars_icon" class="fa fa-star-o" aria-hidden="true"></i> Unstar</button> <button type="button" class="btn btn-light btn-sm videme-relation-card-button-connect">'+showButtonForDoorbelSign.stars_count+"</button> </div>";break;case"del_tag":buttonDS+=returnDeleteTagButton(showButtonForDoorbelSign);break;case"del_like":let btn_group_likes_id="btn_proup_likes_"+Math.floor(Math.random()*100);buttonDS+='<div class="btn-group float-right" role="group" aria-label="likes" id="'+btn_group_likes_id+'"> <button type="button" class="btn btn-secondary btn-sm videme-relation-card-button-connect delete_like_multy" likes_count="'+showButtonForDoorbelSign.likes_count+'" item_id="'+showButtonForDoorbelSign.item_id+'" btn_group_likes_id="'+btn_group_likes_id+'"> <i class="fa fa-thumbs-o-up" aria-hidden="true"></i> Dislike</button> <button type="button" class="btn btn-light btn-sm videme-relation-card-button-connect">'+showButtonForDoorbelSign.likes_count+"</button> </div>";break;case"album_edit":buttonDS+="<a class='btn btn-outline-secondary videme-relation-card-button-connect album-edit-toggle' data-bs-toggle='modal' data-bs-target='#modal-edit-list' "+"title='"+showButtonForDoorbelSign.title+"' "+"access='"+showButtonForDoorbelSign.access+"'>Edit</a>";break;case"new":buttonDS+="...";break;case"essence_from_me_accept_ref":buttonDS+="\t<a href='https://api.vide.me/v2/essences/accept/?ure_id="+showButtonForDoorbelSign.ure_id+"&nad="+$.cookie("vide_nad")+"' class='btn btn-outline-primary videme-relation-card-button-connect essence_from_me_accept_ref' ure_id='"+showButtonForDoorbelSign.ure_id+"' ue_id='"+showButtonForDoorbelSign.ue_id+"'>Accept</a>";break;case"essence_from_me_delete":buttonDS+="\t<a href='https://api.vide.me/v2/essences/delete_from/?ure_id="+showButtonForDoorbelSign.ure_id+"&nad="+$.cookie("vide_nad")+"' class='btn btn-outline-primary videme-relation-card-button-connect essence_from_me_delete' ure_id='"+showButtonForDoorbelSign.ure_id+"' ue_id='"+showButtonForDoorbelSign.ue_id+"'>Delete</a>";break;case"essence_to_me_delete":buttonDS+="\t<a href='https://api.vide.me/v2/essences/delete_to/?ure_id="+showButtonForDoorbelSign.ure_id+"&nad="+$.cookie("vide_nad")+"' class='btn btn-outline-primary videme-relation-card-button-connect essence_to_me_delete' ure_id='"+showButtonForDoorbelSign.ure_id+"'>Delete</a>";break;case"chart_item_mel_toggle":buttonDS+="\t <button class='btn btn-primary chart_item_mel_toggle' type='button' data-bs-toggle='collapse' data-bs-target='#videme_mel_collapse_"+showButtonForDoorbelSign.item_id+"' aria-expanded='false' aria-controls='videme_mel_collapse_"+showButtonForDoorbelSign.item_id+"' item_id='"+showButtonForDoorbelSign.item_id+"'> <span class='btn-label'><i class='fa fa-bar-chart'></i></span> </button>";break;default:buttonDS=" "}});return buttonDS}function showFooterForDoorbellSign(showFooterForDoorbellSign){var footerDS="";$.each(showFooterForDoorbellSign.footer,function(key,value){switch(value){case"partner_edit":footerDS+="\t<div class='videme-partner-item-edit-panel' id='videme-partner-item-edit-panel_"+showFooterForDoorbellSign.user_id+"'>\t <a class='' data-toggle='collapse' href='#videme-partner-item-edit-collapse_"+showFooterForDoorbellSign.user_id+"' role='button' aria-expanded='false' aria-controls='collapseExample'>Options</a>\t <div class='collapse' id='videme-partner-item-edit-collapse_"+showFooterForDoorbellSign.user_id+"'> <div class='card card-body'> <input type='hidden2' name='partners["+showFooterForDoorbellSign.user_id+"][user_id]' value='"+showFooterForDoorbellSign.user_id+"'/>\t <div class='mb-3'> <label for='create-new-essence-to-me-title' class='form-label'>Essence title</label> <input type='text' class='form-control' id='create-new-essence-to-me-title' aria-describedby='title' name='partners["+showFooterForDoorbellSign.user_id+"][title]'/> </div> <div class='mb-3'> <label for='create-new-essence-to-me-content' class='form-label'>Essence content</label> <textarea class='form-control' id='create-new-essence-to-me-content' rows='3' name='partners["+showFooterForDoorbellSign.user_id+"][content]'></textarea> </div> </div> </div></div>";break;case"chart_item_mel_toggle":footerDS+="\t\t <div class='collapse' id='videme_mel_collapse_"+showFooterForDoorbellSign.item_id+"'> <div class='videme_mel_card_collapse' id='videme_mel_card_collapse_"+showFooterForDoorbellSign.item_id+"'> "+chartButtonComposition(showFooterForDoorbellSign.item_id)+" </div> </div>";break;default:footerDS=" "}});return footerDS}function showFooterAdditionalForDoorbellSign(showFooterAdditionalForDoorbellSign){console.log("showFooterAdditionalForDoorbellSign ---\x3e "+JSON.stringify(showFooterAdditionalForDoorbellSign));console.log("showFooterAdditionalForDoorbellSign.additional_item ---\x3e "+JSON.stringify(showFooterAdditionalForDoorbellSign.additional_item));var html="";if(!$.isEmptyObject(showFooterAdditionalForDoorbellSign.additional_item)){console.log("showFooterAdditionalForDoorbellSign additional_item ---\x3e NOT empty");var param=[];param=showFooterAdditionalForDoorbellSign.additional_item;console.log("showFooterAdditionalForDoorbellSign param ---\x3e "+param);html="<div class='videme-card-list-group'>"+showTask(param)+"</div>"}else{console.log("showFooterAdditionalForDoorbellSign additional_item ---\x3e empty")}return html}function showStatusForDoorbellSign(showStatusForDoorbellSign){console.log("showStatusForDoorbellSign showStatusForDoorbellSign.partner_status ---\x3e "+showStatusForDoorbellSign.partner_status);var buttonStatus="";switch(showStatusForDoorbellSign.partner_status){case"0":buttonStatus+='<span class="badge bg-warning"><i class="fa fa-info-circle px-1" aria-hidden="true"></i>pending</span>';break;case"1":buttonStatus+='<span class="badge bg-success"><i class="fa fa-check-circle-o px-1" aria-hidden="true"></i>confirmed</span>';break;case"2":buttonStatus+='<span class="badge bg-danger"><i class="fa fa-ban px-1" aria-hidden="true"></i>declined</span>';break;default:buttonStatus=" "}return buttonStatus}function showIconForDoorbelSign(showIconForDoorbelSign){var dbImage,img_class="rounded-circle";if(!$.isEmptyObject(showIconForDoorbelSign.dbs_type)){if(showIconForDoorbelSign.dbs_type=="square")img_class=""}if(!$.isEmptyObject(showIconForDoorbelSign.image)){if(!$.isEmptyObject(showIconForDoorbelSign.href)){dbImage="<a href='https://www.vide.me/"+showIconForDoorbelSign.href+"'><img class='"+img_class+" videme-relation-card-img-tile' src='"+showIconForDoorbelSign.image+"' alt='' /></a>"}else{dbImage="<img class='"+img_class+" videme-relation-card-img-tile' src='"+showIconForDoorbelSign.image+"' alt='' />"}}if(!$.isEmptyObject(showIconForDoorbelSign.icon)){dbImage="<i class='img-thumbnail fa fa-"+showIconForDoorbelSign.icon+" fa-2x fa-pull-left text-center align-items-center d-flex justify-content-center videme-doorbell-sign-icon'></i>"}return dbImage}function showTileShowcasePanelList(showTileShowcasePanelList,tempObject){var html=[];html.push('<ul class="list-group videme-doorbell-sign-small">');$.each(showTileShowcasePanelList,function(key,value){var trueValue=paddingUserInfo(value);html.push(showShowcasePanelList(trueValue,tempObject))});html.push("</ul>");return html.join("")}function showShowcasePanelList(showShowcasePanelList,tempObject){var tempObjectClass="",title="",dbs_image_class="videme-doorbell-sign-image";var dateWord="";if(!$.isEmptyObject(tempObject)){if(tempObject.width()<300){tempObjectClass=""}else{tempObjectClass=" d-flex"}}else{tempObjectClass=" d-flex"}if(!$.isEmptyObject(showShowcasePanelList.href)){title="<a href='https://www.vide.me/"+showShowcasePanelList.href+"'>"+showShowcasePanelList.title+"</a>"}else{title=showShowcasePanelList.title}if(!$.isEmptyObject(showShowcasePanelList.dbs_type)){if(showShowcasePanelList.dbs_type=="square")dbs_image_class="videme-doorbell-sign-image_square"}if(!$.isEmptyObject(showShowcasePanelList.created_at)){dateWord=timeToWord(showShowcasePanelList.created_at)}if(!$.isEmptyObject(showShowcasePanelList.updated_at)){dateWord=timeToWord(showShowcasePanelList.updated_at)}return' <li type="button" class="list-group-item list-group-item-action videme-list-group_showcase_panel_list"> <div class=\'videme-showcase_panel_list-image_square\'> <a href=\'https://www.vide.me/'+showShowcasePanelList.href+"'><img class='videme-showcase_panel_list-img' src='"+showShowcasePanelList.image+"' alt='' /></a> </div> <div class='showcase_panel_list-text'> <div class='videme-showcase_panel-1st-line text-center'> <div class='videme-showcase_panel_list-1st-line-title-date'> <div class=\"videme-showcase_panel-title\">"+title+"</div> </div> "+showButtonForDoorbelSign(showShowcasePanelList)+" <div class='videme-showcase_panel-dropdown-place'>"+showDropdownForDoorbelSign(showShowcasePanelList)+"</div> </div> <div class='videme-showcase_panel-2st-line text-right'> \x3c!--<div class='videme-doorbell-sign-additional'>"+accessToIcon(showShowcasePanelList)+"</div>--\x3e <div class='text-muted videme-showcase_panel-count'>"+showShowcasePanelList.count+" - "+dateWord+"</div> </div> </div> </li>"}function showTilePanelList(showTilePanelList,tempObject){var html=[];html.push('<div class="row">');$.each(showTilePanelList,function(key,value){var trueValue=paddingUserInfo(value);html.push(showPanelList(trueValue,tempObject))});html.push("</div>");return html.join("")}function showPanelList(showShowcasePanelList,tempObject){var tempObjectClass="",title="",dbs_image_class="videme-doorbell-sign-image";if(!$.isEmptyObject(tempObject)){if(tempObject.width()<300){tempObjectClass=""}else{tempObjectClass=" d-flex"}}else{tempObjectClass=" d-flex"}if(!$.isEmptyObject(showShowcasePanelList.href)){title="<a href='https://www.vide.me/"+showShowcasePanelList.href+"'>"+showShowcasePanelList.title+"</a>"}else{title=showShowcasePanelList.title}if(!$.isEmptyObject(showShowcasePanelList.dbs_type)){if(showShowcasePanelList.dbs_type=="square")dbs_image_class="videme-doorbell-sign-image_square"}return' <div class="col-sm-6"><div class="card"> <img src="'+showShowcasePanelList.image+'" class="card-img-top" alt="..."> <div class="card-body"> <p class="card-text">'+title+"</p> </div></div> </div>"}function showTileRelationModernAlbums(relationArray){var html=[];html.push('<div class="container">');$.each(relationArray,function(key,value){var trueValue=paddingUserInfo(value);html.push(showRelationCardSmallModernAlbums(trueValue))});html.push("</div>");return html.join("")}function showRelationCardSmallModernAlbums(showRelationCardSmallModernAlbums){var dateWord="",edit_link="",access_icon="",album_href_class="";if(!$.isEmptyObject(showRelationCardSmallModernAlbums.href)){title="<a href='https://www.vide.me/"+showRelationCardSmallModernAlbums.href+"'>"+showRelationCardSmallModernAlbums.title+"</a>"}else{title=showRelationCardSmallModernAlbums.title}if(!$.isEmptyObject(showRelationCardSmallModernAlbums.created_at)){dateWord=timeToWord(showRelationCardSmallModernAlbums.created_at)}if(!$.isEmptyObject(showRelationCardSmallModernAlbums.updated_at)){dateWord=timeToWord(showRelationCardSmallModernAlbums.updated_at)}if(!$.isEmptyObject(showRelationCardSmallModernAlbums.dbs_type)){if(showRelationCardSmallModernAlbums.dbs_type==="album_edit"){edit_link="<a class='album-edit-toggle' data-toggle='modal' data-target='#modal-edit-list' "+"title='"+showRelationCardSmallModernAlbums.title+"' "+"access='"+showRelationCardSmallModernAlbums.access+"'>Edit</a>";access_icon="<div class='videme-doorbell-sign-additional'>"+accessToIcon(showRelationCardSmallModernAlbums)+"</div>"}switch(showRelationCardSmallModernAlbums.dbs_type){case"album_manager":album_href_class="album_manager_open";break;default:}}return' <hr class=\'videme-relation-card-hr\'/> <div class="row videme-ralation-card-small"> <div class="col-4 videme-relation-card-1-column"> <a href=\'https://www.vide.me/'+showRelationCardSmallModernAlbums.href+"' class='"+album_href_class+"' album='"+showRelationCardSmallModernAlbums.title+'\'><img class="rounded-circle2 videme-relation-card-img-tile_modern" src="'+showRelationCardSmallModernAlbums.image+'" alt=""/></a> </div> <div class="col-8 videme-relation-card-2-column"> <div class="d-flex justify-content-between align-items-center"> <div class="videme-relation-card-user"> '+title+' </div> </div> <div class="d-flex justify-content-between align-items-center"> '+access_icon+" <div class=''>"+showRelationCardSmallModernAlbums.count+"</div> <div class=\"videme-relation-card-user\"> <a class='text-muted' href='https://www.vide.me/"+showRelationCardSmallModernAlbums.href+"/'>"+dateWord+"</a> </div> "+" "+showButtonForDoorbelSign(showRelationCardSmallModernAlbums)+" </div> </div> </div>"}function showTileTasks(showTileTasks){var html=[];html.push('<ul class="list-group videme-doorbell-sign-small">');$.each(showTileTasks,function(key,value){var trueValue=paddingUserInfo(value);html.push('<li type="button" class="list-group-item list-group-item-action videme-card-list-group">');html.push(showTask(trueValue));html.push("</li>")});html.push("</ul>");return html.join("")}function showTileTasksActiveOnly(showTileTasks){console.log("showTileTasksActiveOnly");var html=[];html.push('<ul class="list-group videme-doorbell-sign-small">');$.each(showTileTasks,function(key,value){if(value.task_status=="worked"||value.task_status=="awaiting"){var trueValue=paddingUserInfo(value);html.push('<li type="button" class="list-group-item list-group-item-action videme-card-list-group">');html.push(showMediaElementLi(trueValue));html.push("</li>")}});html.push("</ul>");return html.join("")}function showListMedia(showListMedia){var html=[];html.push('<ul class="list-group videme-doorbell-sign-small222">');$.each(showListMedia,function(key,value){var trueValue=paddingUserInfo(value);html.push("<li data-videme-playlist-number='"+key+"' class=\"list-group-item list-group-item-action d-flex align-items-center videme-list-media-li p-2\" id='videme-list-media-li_"+value.item_id+"'>");html.push(showMediaElementLi(trueValue));html.push("</li>")});html.push("</ul>");let htmlList=html.join("");return htmlList}function showListMediaForPlayer(showListMediaData,list_details){console.log("showListMediaForPlayer list_details ---\x3e "+JSON.stringify(list_details));let htmlList=showListMedia(showListMediaData);let htmlPlaylistPlace='<div class="accordion" id="accordionVidePlaylist"> <div class="accordion-item"> <h2 class="accordion-header" id="headingOne"> <button class="accordion-button" type="button" data-bs-toggle="collapse" data-bs-target="#collapseOne" aria-expanded="true" aria-controls="collapseOne"> '+list_details.slogan+" "+list_details.titles_array.join(" | ")+' </button> </h2> <div id="collapseOne" class="accordion-collapse collapse show" aria-labelledby="headingOne" data-bs-parent="#accordionVidePlaylist"> <div class="accordion-body p-0"> '+htmlList+" </div> </div> </div></div>";return htmlPlaylistPlace}function showTask(showTask){var tempObjectClass="";var title="";var content="";var progress_convert="";var imageThumbnail="";var res_accessToIcon="";var res_itemTileElementCardUserCard="";var res_showItemInfoV3="";var res_count="";var itemImage="";var array_tagsDiv=[];var array_tagsDivJoin="";if(!$.isEmptyObject(showTask.percentage)){if(showTask.percentage>0){var addClass="progress-bar-striped progress-bar-animated ";var percentage=showTask.percentage;if(showTask.percentage>97){percentage=100;addClass="bg-success"}else{}progress_convert='<div class="progress videme-convert-progress" style="height: .2rem; margin-top: .5rem;">'+'<div aria-valuemax="100" aria-valuemin="0" '+'class="progress-bar '+addClass+'" id="videme_convert_progress" '+'role="progressbar" style="width: '+percentage+'%" aria-valuenow="'+percentage+'"></div>'+"</div>"}}if(!$.isEmptyObject(showTask.img)){itemImage=showTask.img}else{itemImage=showTask.image}if(!$.isEmptyObject(showTask.array_tags)){var entryTags=showTask.array_tags;var entryArray=entryTags.split("; ");$.each(entryArray,function(index,value){array_tagsDiv.push(returnLinkTagButtonNOA({tag:value,tag_count:"",item_id:""}))});var array_tagsDivJoin=array_tagsDiv.join("")}var retFirstSet=itemTileParamFirstSet(showTask);var retSet=itemTileParamSet(showTask);if(!$.isEmptyObject(showTask.task_status)){if(!$.isEmptyObject(showTask.additional)){if(showTask.additional=="success"){imageThumbnail=itemTileElementCardA("tempObject",showTask.key,showTask,"retParam.actionUrlClass",retSet.href,itemImage,retFirstSet.user_display_name,retFirstSet.post_spring,retFirstSet.post_user_picture,"",retSet.item_type,retFirstSet.post_user_display_name)}else{imageThumbnail=showIconForTask(showTask)}}else{imageThumbnail=showIconForTask(showTask)}res_accessToIcon=accessToIcon(showTask);res_count=showTask.count;if(!$.isEmptyObject(showTask.href)){title="<a href='https://www.vide.me/"+showTask.href+"'>"+showTask.title+"</a>";content="<a href='https://www.vide.me/"+showTask.href+"'>"+showTask.content+"</a>"}else{title=showTask.title;content=showTask.content}}else{imageThumbnail=itemMediaListImage(retSet.img);res_itemTileElementCardUserCard=itemTileElementCardUserCard(showTask,retFirstSet.post_spring,retFirstSet.post_user_picture,retFirstSet.post_user_display_name);res_showItemInfoV3=showItemInfoV3(showTask);if(!$.isEmptyObject(showTask.href)){title="<a href='"+retSet.href+"'>"+showTask.title+"</a>";content="<a href='"+retSet.href+"'>"+showTask.content+"</a>"}else{title=showTask.title;content=showTask.content}}return"<div class='videme-doorbell-sign-image'> "+imageThumbnail+" </div> <div class='videme-doorbell-sign-right-block-main'> <div class='videme-doorbell-sign-text-block'> "+showButtonForDoorbelSign(showTask)+" <div class='videme-doorbell-sign-1st-line'> <div class='videme-card-1st-line-title-date"+tempObjectClass+"'> <div class='videme-doorbell-sign-title-sub'> "+res_itemTileElementCardUserCard+" "+res_showItemInfoV3+' </div> <div class="videme-doorbell-sign-title h5 my-1">'+title+'</div> <div class="videme-doorbell-sign-content">'+content+"</div> "+" </div> "+" "+showDropdownForDoorbelSignV3(showTask)+" </div> <div class='videme-doorbell-sign-2st-line'> <div class='videme-doorbell-sign-additional'>"+res_accessToIcon+"</div> "+" <div class='text-muted videme-doorbell-sign-count'>"+res_count+"</div> </div> </div> <div class='videme-doorbell-sign-right-block-footer'> "+progress_convert+" "+array_tagsDivJoin+" </div> </div>"}function showMediaElementLi(showTask){console.log("showMediaElementLi");var tempObjectClass="";var title="";var content="";var progress_convert="";var imageThumbnail="";var res_accessToIcon="";var res_itemTileElementCardUserCard="";var res_showItemInfoV3="";var res_count="";var itemImage="";var array_tagsDiv=[];var array_tagsDivJoin="";let button_group_class=" hidden";if(!$.isEmptyObject(showTask.percentage)){if(showTask.percentage>0){var addClass="progress-bar-striped progress-bar-animated ";var percentage=showTask.percentage;if(showTask.percentage>97){percentage=100;addClass="bg-success"}else{}progress_convert='<div class="progress videme-convert-progress" style="height: .2rem; margin-top: .5rem;">'+'<div aria-valuemax="100" aria-valuemin="0" '+'class="progress-bar '+addClass+'" id="videme_convert_progress" '+'role="progressbar" style="width: '+percentage+'%" aria-valuenow="'+percentage+'"></div>'+"</div>"}}if(!$.isEmptyObject(showTask.img)){itemImage=showTask.img}else{itemImage=showTask.image}if(!$.isEmptyObject(showTask.array_tags)){var entryTags=showTask.array_tags;var entryArray=entryTags.split("; ");$.each(entryArray,function(index,value){array_tagsDiv.push(returnLinkTagButtonNOA({tag:value,tag_count:"",item_id:""}))});var array_tagsDivJoin=array_tagsDiv.join("")}let retFirstSet=itemTileParamFirstSet(showTask);let retSet=itemTileParamSet(showTask);if(!$.isEmptyObject(showTask.task_status)){console.log("showMediaElementLi showTask.task_status true ---\x3e "+showTask.task_status);console.log("showMediaElementLi retFirstSet ---\x3e "+JSON.stringify(retFirstSet));console.log("showMediaElementLi retSet ---\x3e "+JSON.stringify(retSet));showTask.icon=iconDefineForMediaElementLi(showTask);if(showTask.task_status=="success"){imageThumbnail=itemMediaListImage(retSet.img)}else{imageThumbnail=showIconForTask(showTask)}res_accessToIcon=accessToIcon(showTask);res_count=showTask.count;if(!$.isEmptyObject(showTask.href)){title="<a href='https://www.vide.me/"+showTask.href+"'>"+showTask.title+"</a>";content="<a href='https://www.vide.me/"+showTask.href+"'>"+showTask.content+"</a>"}else{title=showTask.title;content=showTask.content}}else{console.log("showMediaElementLi showTask.task_status ---\x3e empty");imageThumbnail=itemMediaListImage(retSet.img);if(!$.isEmptyObject(showTask.href)){title="<a href='"+retSet.href+"'>"+showTask.title+"</a>";content="<a href='"+retSet.href+"'>"+showTask.content+"</a>"}else{title=showTask.title;content=showTask.content}}if(!$.isEmptyObject(showTask.buttons)){button_group_class=""}return"<input class='custom-control-input visually-hidden' id='customCheck1' type='checkbox'> <div class='videme-list-media-preposter videme-list-media-preposter-on-left me-md-0'> <label class='videme-1st-line-media-lits custom-control-label' for='customCheck1'> <a href=\"https://www.vide.me/v?m="+showTask.item_id+'"> '+imageThumbnail+" </a> </label> </div> <div class='container'> <div class='row justify-content-between'> <div class='col me-auto d-flex align-items-center px-md-1 px-sm-0 px-lg-4'> <div class='videme-list-media-preposter videme-list-media-preposter-on-title me-sm-1'> <label class='videme-1st-line-media-lits custom-control-label' for='customCheck1'> <a href=\"https://www.vide.me/v?m="+showTask.item_id+'"> '+imageThumbnail+" </a> </label> </div> <label class='videme-1st-line-media-lits custom-control-label' for='customCheck1'> "+title+" </label> </div> <div class='col-auto d-flex align-items-center"+button_group_class+"'> "+showButtonForDoorbelSign(showTask)+" "+showDropdownForDoorbelSignV3(showTask)+" </div> </div> <div class='videme-2nd-line-media-list'> "+showFooterForDoorbellSign(showTask)+" </div> </div>"}function chartButtonComposition(item_id){return"<div id='videme-item-chart-canvas-place_"+item_id+"' class='videme-item-chart-canvas-place'> </div> <div id='videme-chart-stump_"+item_id+"' class='hidden' item_id='"+item_id+"'></div> <span id='videme-chart-button-1st2weeks_"+item_id+"' class='badge rounded-pill text-bg-secondary videme-chart-button videme-chart-button_"+item_id+"' item_id='"+item_id+"' time_shift_type='w_stop' time_shift_val='2'>First 2 weeks</span> <span id='videme-chart-button-1st1months_"+item_id+"' class='badge rounded-pill text-bg-secondary videme-chart-button videme-chart-button_"+item_id+"' item_id='"+item_id+"' time_shift_type='m_stop' time_shift_val='1'>First 1 months</span> <span id='videme-chart-button-last2weeks_"+item_id+"' class='badge rounded-pill text-bg-secondary videme-chart-button videme-chart-button_"+item_id+"' item_id='"+item_id+"' time_shift_type='w_stop' time_shift_val='-2'>Last 2 weeks</span> <span id='videme-chart-button-last1months_"+item_id+"' class='badge rounded-pill text-bg-secondary videme-chart-button videme-chart-button_"+item_id+"' item_id='"+item_id+"' time_shift_type='m_stop' time_shift_val='-1'>Last 1 months</span> <div id='videme-chart-pop-states-place_"+item_id+"' class='videme-chart-pop-states-place'></div>"}function iconDefineForMediaElementLi(value){let taskIcon="",task_status="";if(!$.isEmptyObject(value)){if(!$.isEmptyObject(value.task_type)){if(value.task_type=="fileUploadVideoPre"){taskIcon="cloud-upload"}if(value.task_type=="fileUploadVideo"||value.task_type=="fileUploadVideo_force_mp4"){if(value.task_status=="awaiting"){taskIcon="clock-o"}if(value.task_status=="worked"){taskIcon="cogs"}}if(value.task_type=="fileSendToS3"){if(value.task_status=="success"){taskImage=value.task_item_id+".jpg"}if(value.task_status=="awaiting"){taskIcon="cloud-upload"}}if(value.task_status=="awaiting"){task_status=="awaiting"}if(value.task_status=="worked"){task_status=="worked"}if(value.task_status=="success"){taskImage=value.task_item_id+".jpg"}if(value.task_status=="error"){taskIcon="frown-o";task_status=="error"}}}return taskIcon}function getHtmlSpringDBS(getHtmlSpringDBS){var spring_show="";if(!$.isEmptyObject(getHtmlSpringDBS.spring)){spring_show='<div class="videme-relation-card-user"><a class="text-muted" href="https://www.vide.me/'+getHtmlSpringDBS.spring+'/">@'+getHtmlSpringDBS.spring+"</a></div>"}return spring_show}function getHtmlUserNameDBS(getHtmlUserNameDBS){var spring_user_name="";if(!$.isEmptyObject(getHtmlUserNameDBS.spring)){spring_user_name='<a class="text-muted" href="https://www.vide.me/'+getHtmlUserNameDBS.spring+'/">'+getHtmlUserNameDBS.user_display_name+"</a>"}return spring_user_name}function getHtmlCountryDBS(getHtmlCountryDBS){var country_show="";if(!$.isEmptyObject(getHtmlCountryDBS.country)){country_show='<div class="videme-relation-card-user-country"><i class="fa fa-globe videme-relation-card-user-geo-marker"></i>'+getHtmlCountryDBS.country+"</div>"}return country_show}function getHtmlCityDBS(getHtmlCityDBS){var city_show="";if(!$.isEmptyObject(getHtmlCityDBS.city)){city_show='<div class="videme-relation-card-user-city"><i class="fa fa-map-marker videme-relation-card-user-geo-marker"></i>'+getHtmlCityDBS.city+"</div>"}return city_show}function showLastTask(showLastTask){if(!$.isEmptyObject(showLastTask.percentage)){$("#videme_upload_progress").css("width",showLastTask.percentage+"%").attr("aria-valuenow",showLastTask.percentage)}var videme_last_task=[];videme_last_task.push(showLastTask);var iconArray=parseMyTaskForDoorbellSign(videme_last_task);var icon=paddingUserInfo(iconArray[0]);$(".videme_last_task").html(showIconForTask(icon))}function showIconForTask(showIconForTask){console.log("showIconForTask ---\x3e "+JSON.stringify(showIconForTask));if(!$.isEmptyObject(showIconForTask.image)){if(!$.isEmptyObject(showIconForTask.href)){var dbImage="<a href='https://www.vide.me/"+showIconForTask.href+'\'><img class="videme-task-img-tile" src="'+showIconForTask.image+'" alt="" /></a>'}else{var dbImage='<img class="videme-task-img-tile" src="'+showIconForTask.image+'" alt="" />'}}if(!$.isEmptyObject(showIconForTask.icon)){var dbImage="<i class='img-thumbnail fa fa-"+showIconForTask.icon+" fa-2x fa-pull-left text-center align-items-center d-flex justify-content-center videme-doorbell-sign-icon'></i>"}return dbImage}function showTileTrendsItemsLI(showTileTrendsItems,tempObject){var html=[];html.push('<ul class="list-group videme-doorbell-sign-small">');$.each(showTileTrendsItems,function(key,value){html.push(showTrendsItems(value,tempObject))});html.push("</ul>");return html.join("")}function showTrendsItems(showTrendsItems,tempObject){var title="";var user_display_name="";var type_item="v/?m=";if(!$.isEmptyObject(tempObject)){if(tempObject.width()<300){var tempObjectClass=""}else{var tempObjectClass=" d-flex"}}else{var tempObjectClass=" d-flex"}if(!$.isEmptyObject(showTrendsItems.type_item)){switch(showTrendsItems.type_item){case"image":type_item="i/?i=";break;case"article":type_item="a/?a=";break;case"event":type_item="e/?e=";break;default:type_item="v/?m="}}if(!$.isEmptyObject(showTrendsItems.item_id)&&!$.isEmptyObject(showTrendsItems.title)){title="<a href='https://www.vide.me/"+type_item+showTrendsItems.item_id+"'>"+showTrendsItems.title+"</a>"}else{title=showTrendsItems.title}if(!$.isEmptyObject(showTrendsItems.spring)&&!$.isEmptyObject(showTrendsItems.user_display_name)){user_display_name="<a href='https://www.vide.me/"+showTrendsItems.spring+"'>"+showTrendsItems.user_display_name+"</a>"}return' <li type="button" class="list-group-item list-group-item-action videme-list-group"> \x3c!--<div class=\'videme-doorbell-sign-image\'> '+showIconForTrendsItems(showTrendsItems)+" </div>--\x3e <div class='videme-doorbell-sign-1st-line'> <div class='videme-doorbell-sign-1st-line-title-date"+tempObjectClass+'\'> <div class="videme-doorbell-sign-title">'+title+"</div> </div> \x3c!--"+showButtonForDoorbelSign(showTrendsItems)+" "+showDropdownForDoorbelSign(showTrendsItems)+"--\x3e </div> <div class='videme-doorbell-sign-2st-line'> \x3c!--<div class='videme-doorbell-sign-additional'>"+user_display_name+"</div>--\x3e \x3c!--<div class='text-muted videme-doorbell-sign-count'>"+user_display_name+"</div>--\x3e <small>"+user_display_name+"</small> </div> </li>"}function showIconForTrendsItems(showIconForTrendsItems){if(!$.isEmptyObject(showIconForTrendsItems.image)){if(!$.isEmptyObject(showIconForTrendsItems.href)){var dbImage="<a href='https://www.vide.me/"+showIconForTrendsItems.href+'\'><img class="videme-task-img-tile" src="'+showIconForTrendsItems.image+'" alt="" /></a>'}else{var dbImage='<img class="videme-task-img-tile" src="'+showIconForTrendsItems.image+'" alt="" />'}}if(!$.isEmptyObject(showIconForTrendsItems.icon)){var dbImage="<i class='img-thumbnail fa fa-"+showIconForTrendsItems.icon+" fa-2x fa-pull-left text-center align-items-center d-flex justify-content-center videme-doorbell-sign-icon'></i>"}return dbImage}function showServiceMy(showServiceMy){var html=[];$.each(showServiceMy,function(key,value){html.push('<span class="badge badge-pill badge-primary videme-badge-service service1">'+value.service_title+'<a class="delete_service_action" href="https://api.vide.me/v2/service/delete/?service_id='+value.service_id+"&nad="+$.cookie("vide_nad")+'" service_id="'+value.service_id+'"><i class="fa fa-remove"></i></a>'+"</span>")});return html.join("")}function showEssenceMy(showEssenceMy){var html=[];$.each(showEssenceMy,function(key,value){html.push('<span class="badge badge-pill badge-primary videme-badge-service service1">'+value.title+'<a class="delete_service_action" href="https://api.vide.me/v2/essences/delete/?essence_id='+value.essence_id+"&nad="+$.cookie("vide_nad")+'" essence_id="'+value.essence_id+'"><i class="fa fa-remove"></i></a>'+"</span>")});return html.join("")}function showServiceSpring(showServiceSpring,springInfo){var html=[];$.each(showServiceSpring,function(key,value){html.push('<a class="badge badge-pill badge-light videme-badge-service" href="https://www.vide.me/'+springInfo.spring+'/?show=about">'+value.service_title+"</a> ")});return html.join("")}function showTalentsSpring(showTalentsSpring,springInfo){var html=[];$.each(showTalentsSpring,function(key,value){html.push('<a class="badge badge-pill badge-light videme-badge-tallent" href="https://www.vide.me/'+springInfo.spring+'/?show=about">'+value.talent_title+"</a> ")});return html.join("")}function showServiceSelect(showServiceSelect){var html=[];var service1="";var service2="";$.each(showServiceSelect,function(key,value){if($.isEmptyObject(value.parent_id)){service1+='<span class="badge badge-pill badge-light service1-select service1" order_key="'+value.order_key+'" id="'+value.service_id+'">'+value.service_title+'<a class="add_service_action" href="https://api.vide.me/v2/service/create/?service_id='+value.service_id+"&nad="+$.cookie("vide_nad")+'" service_id="'+value.service_id+'"><i class="fa fa-plus text-white"></i></a></span>'}else{service2+='<span class="badge badge-pill badge-secondary service2-select service2 '+value.order_key+' hidden" order_key="'+value.order_key+'" id="'+value.service_id+'">'+value.service_title+'<a class="add_service_action" href="https://api.vide.me/v2/service/create/?service_id='+value.service_id+"&nad="+$.cookie("vide_nad")+'" service_id="'+value.service_id+'"><i class="fa fa-plus text-white"></i></a></span>'}});html.push(service1,service2);$("#videme-select-service-tile").html(service1);$("#videme-select-service2-tile").html(service2)}function showEssenceSelect(showEssenceSelect){var html=[];var service1="";var service2="";$.each(showEssenceSelect,function(key,value){if($.isEmptyObject(value.parent_id)){service1+='<span class="badge badge-pill badge-light service1-select service1" order_key="'+value.order_key+'" id="'+value.essence_id+'">'+value.title+'<a class="add_service_action" href="https://api.vide.me/v2/essences/create/?essence_id='+value.essence_id+"&nad="+$.cookie("vide_nad")+'" essence_id="'+value.essence_id+'"><i class="fa fa-plus text-white"></i></a></span>'}else{service2+='<span class="badge badge-pill badge-secondary service2-select service2 '+value.order_key+' hidden" order_key="'+value.order_key+'" id="'+value.essence_id+'">'+value.title+'<a class="add_service_action" href="https://api.vide.me/v2/essences/create/?essence_id='+value.essence_id+"&nad="+$.cookie("vide_nad")+'" essence_id="'+value.essence_id+'"><i class="fa fa-plus text-white"></i></a></span>'}});html.push(service1,service2);$("#videme-select-essence-tile").html(service1);$("#videme-select-essence2-tile").html(service2)}function showTalentsMy(showTalentsMy){var html=[];$.each(showTalentsMy,function(key,value){html.push('<span class="badge badge-pill badge-primary videme-badge-tallent service1">'+value.talent_title+'<a class="delete_service_action" href="https://api.vide.me/v2/talents/delete/?talent_id='+value.talent_id+"&nad="+$.cookie("vide_nad")+'" talent_id="'+value.talent_id+'"><i class="fa fa-remove"></i></a>'+"</span>")});return html.join("")}function showTalentsSelect(showTalentsSelect){console.log("showTalentsSelect ---\x3e "+JSON.stringify(showTalentsSelect));var html=[];var talents1="";var talents2="";$.each(showTalentsSelect,function(key,value){if($.isEmptyObject(value.parent_id)){talents1+='<span class="badge badge-pill badge-light talent1-select service1 " order_key="'+value.order_key+'" id="'+value.talent_id+'">'+value.talent_title+'<a class="add_service_action" href="https://api.vide.me/v2/talents/create/?talent_id='+value.talent_id+"&nad="+$.cookie("vide_nad")+'" talent_id="'+value.talent_id+'"><i class="fa fa-plus text-white"></i></a></span>'}else{talents2+='<span class="badge badge-pill badge-secondary talent2-select service2 '+value.order_key+' hidden" order_key="'+value.order_key+'" id="'+value.talent_id+'">'+value.talent_title+'<a class="add_service_action" href="https://api.vide.me/v2/talents/create/?talent_id='+value.talent_id+"&nad="+$.cookie("vide_nad")+'" talent_id="'+value.talent_id+'"><i class="fa fa-plus text-white"></i></a></span>'}});html.push(talents1,talents2);$("#videme-select-talents-tile").html(talents1);$("#videme-select-talents2-tile").html(talents2)}function showItemInfo(showItemInfo){var trueInfo="";var likeButton="";var countShowButton="";var videoDurationButton="";var accessButton="";var repostButton="";var shareButton="";var item_count_show=0;var video_duration="-";var likes_count=0;var reposts_count=0;var ext_links="";if(!$.isEmptyObject(showItemInfo.item_count_show)){item_count_show=showItemInfo.item_count_show}if(!$.isEmptyObject(showItemInfo.video_duration)){video_duration=sec2str(showItemInfo.video_duration)}if(!$.isEmptyObject(showItemInfo.likes_count)){likes_count=showItemInfo.likes_count}if(!$.isEmptyObject(showItemInfo.reposts_count)){reposts_count=showItemInfo.reposts_count}countShowButton='<div class="videme_item_info_element"><i class="fa fa-eye"></i><div class="videme_item_info_val">'+nFormatter(item_count_show,2)+"</div></div>";videoDurationButton='<div class="videme_item_info_element"><i class="fa fa-clock-o"></i><div class="videme_item_info_val">'+video_duration+"</div></div>";if(!$.isEmptyObject(showItemInfo.actionUrlClass)){if(showItemInfo.actionUrlClass=="file-my-url"&&showItemInfo.actionUrlClass=="post-my-url"){accessButton='<div class="videme_item_info_element">'+accessToIcon(showItemInfo)+"</div>"}}if(!$.isEmptyObject(showItemInfo.its_like)){likeButton='<div class="videme_item_info_element"><i class="fa fa-thumbs-up btn-link videme_item_info_icon" item_id="'+showItemInfo.item_id+'" href="#" role="button"></i><div class="videme_item_info_val">'+likes_count+"</div></div>"}else{likeButton='<div class="videme_item_info_element"><i class="fa fa-thumbs-o-up btn-link set_like videme_item_info_icon" likes_count="'+likes_count+'" item_id="'+showItemInfo.item_id+'" href="#" role="button"></i><div class="videme_item_info_val">'+likes_count+"</div></div>"}repostButton='<div class="videme_item_info_element"><a class="fa fa-retweet btn-link list-url videme_item_info_icon" item_id="'+showItemInfo.item_id+'" href="https://api.vide.me/v2/reposts/item/?item_id='+showItemInfo.item_id+"&nad="+$.cookie("vide_nad")+'" role="button"></a><div class="videme_item_info_val">'+reposts_count+"</div></div>";shareButton='<div class="videme_item_info_element"><i class="fa fa-share btn-link share-to-fb-toggle videme_item_info_icon" item_id="'+showItemInfo.item_id+'" data-toggle="modal" data-target="#modal-share-to-fb"></i><div class="videme_item_info_val"></div></div>';if(!$.isEmptyObject(showItemInfo.ext_links)){var links="";array_ext_links=$.parseJSON(showItemInfo.ext_links);$.each(array_ext_links,function(key,value){links+='<a href="'+value.link+'" target="_blank" class="badge badge-pill badge-primary">'+value.title+"</span> "});ext_links='<div class="videme_item_info_element">'+links+"</div>"}if(showItemInfo.embed){return countShowButton+videoDurationButton+accessButton+ext_links}else{return countShowButton+videoDurationButton+accessButton+likeButton+repostButton+shareButton+ext_links}}function showItemInfoShowcase(showItemInfo){var trueInfo="";var likeButton="";var countShowButton="";var videoDurationButton="";var accessButton="";var repostButton="";var shareButton="";var item_count_show=0;var video_duration="-";var likes_count=0;var reposts_count=0;var ext_links="";if(!$.isEmptyObject(showItemInfo.item_count_show)){item_count_show=showItemInfo.item_count_show}if(!$.isEmptyObject(showItemInfo.video_duration)){video_duration=sec2str(showItemInfo.video_duration)}if(!$.isEmptyObject(showItemInfo.likes_count)){likes_count=showItemInfo.likes_count}if(!$.isEmptyObject(showItemInfo.reposts_count)){reposts_count=showItemInfo.reposts_count}countShowButton='<div class="videme_item_info_element_showcase"><i class="fa fa-eye videme_item_info_icon_showcase_showcase_nobtn"></i><div class="videme_item_info_val_showcase_nobtn">'+nFormatter(item_count_show,2)+"</div></div>";videoDurationButton='<div class="videme_item_info_element_showcase"><i class="fa fa-clock-o videme_item_info_icon_showcase_showcase_nobtn"></i><div class="videme_item_info_val_showcase_nobtn">'+video_duration+"</div></div>";if(!$.isEmptyObject(showItemInfo.actionUrlClass)){if(showItemInfo.actionUrlClass=="file-my-url"&&showItemInfo.actionUrlClass=="post-my-url"){accessButton='<div class="videme_item_info_element_showcase">'+accessToIcon(showItemInfo)+"</div>"}}if(!$.isEmptyObject(showItemInfo.ext_links)){var links="";array_ext_links=$.parseJSON(showItemInfo.ext_links);$.each(array_ext_links,function(key,value){links+='<a href="'+value.link+'" target="_blank" class="badge badge-pill badge-primary">'+value.title+"</span> "})}return countShowButton+videoDurationButton+accessButton+ext_links}function accessToIcon(accessToIcon){if(!$.isEmptyObject(accessToIcon.access)){switch(accessToIcon.access){case"public":return'<i class="fa fa-unlock videme_item_info_icon"></i>';break;case"friends":return'<i class="fa fa-users videme_item_info_icon"></i>';break;case"private":return'<i class="fa fa-lock videme_item_info_icon"></i>';break;default:return'<i class="fa fa-unlock videme_item_info_icon"></i>';break}}else{return""}}function showItemInfoV3(showItemInfo){var trueInfo="";var likeButton="";var starButton="";var tagButton="";var countShowButton="";var videoDurationButton="";var accessButton="";var repostButton="";var shareButton="";var item_count_show=0;var video_duration="-";var likes_count=0;var stars_count=0;var tags_count=0;var reposts_count=0;var ext_links="";if(!$.isEmptyObject(showItemInfo.item_count_show)){item_count_show=showItemInfo.item_count_show}if(!$.isEmptyObject(showItemInfo.video_duration)){video_duration=sec2str(showItemInfo.video_duration)}if(!$.isEmptyObject(showItemInfo.likes_count)){likes_count=showItemInfo.likes_count}if(!$.isEmptyObject(showItemInfo.stars_count)){stars_count=showItemInfo.stars_count}if(stars_count>0){starButton='<div class="videme-tile-v3-item_info_element"><i class="fa fa-star btn-link2 set_like2 videme-tile-v3-item_info_icon" stars_count="'+stars_count+'" item_id="'+showItemInfo.item_id+'" href="#" role="button"></i><div class="videme-tile-v3-item_info_val">'+stars_count+"</div></div>"}if(!$.isEmptyObject(showItemInfo.tags_conf)){tags_count=showItemInfo.tags_conf}if(tags_count>0){tagButton='<div class="videme-tile-v3-item_info_element"><i class="fa fa-hashtag btn-link2 set_like2 videme-tile-v3-item_info_icon" tags_count="'+tags_count+'" item_id="'+showItemInfo.item_id+'" href="#" role="button"></i><div class="videme-tile-v3-item_info_val">'+tags_count+"</div></div>"}if(!$.isEmptyObject(showItemInfo.reposts_count)){reposts_count=showItemInfo.reposts_count}countShowButton='<div class="videme-tile-v3-item_info_element"><i class="fa fa-eye"></i><div class="videme-tile-v3-item_info_val">'+nFormatter(item_count_show,2)+"</div></div>";videoDurationButton='<div class="videme-tile-v3-item_info_element"><i class="fa fa-clock-o"></i><div class="videme-tile-v3-item_info_val">'+video_duration+"</div></div>";if(!$.isEmptyObject(showItemInfo.actionUrlClass)){if(showItemInfo.actionUrlClass=="file-my-url"&&showItemInfo.actionUrlClass=="post-my-url"){accessButton='<div class="videme-tile-v3-item_info_element">'+accessToIcon(showItemInfo)+"</div>"}}if(!$.isEmptyObject(showItemInfo.its_like)){likeButton='<div class="videme-tile-v3-item_info_element"><i class="fa fa-thumbs-up btn-link2 videme-tile-v3-item_info_icon" item_id="'+showItemInfo.item_id+'" href="#" role="button"></i><div class="videme-tile-v3-item_info_val">'+likes_count+"</div></div>"}else{likeButton='<div class="videme-tile-v3-item_info_element"><i class="fa fa-thumbs-o-up btn-link2 set_like2 videme-tile-v3-item_info_icon" likes_count="'+likes_count+'" item_id="'+showItemInfo.item_id+'" href="#" role="button"></i><div class="videme-tile-v3-item_info_val">'+likes_count+"</div></div>"}repostButton='<div class="videme-tile-v3-item_info_element"><a class="fa fa-retweet btn-link list-url videme-tile-v3-item_info_icon" item_id="'+showItemInfo.item_id+'" href="https://api.vide.me/v2/reposts/item/?item_id='+showItemInfo.item_id+"&nad="+$.cookie("vide_nad")+'" role="button"></a><div class="videme-tile-v3-item_info_val">'+reposts_count+"</div></div>";shareButton='<div class="videme-tile-v3-item_info_element"><i class="fa fa-share btn-link share-to-fb-toggle videme-tile-v3-item_info_icon" item_id="'+showItemInfo.item_id+'" data-toggle="modal" data-target="#modal-share-to-fb"></i><div class="videme-tile-v3-item_info_val"></div></div>';if(!$.isEmptyObject(showItemInfo.ext_links)){var links="";array_ext_links=$.parseJSON(showItemInfo.ext_links);$.each(array_ext_links,function(key,value){links+='<a href="'+value.link+'" target="_blank" class="badge badge-pill badge-primary">'+value.title+"</span> "});ext_links='<div class="videme-tile-v3-item_info_element">'+links+"</div>"}if(showItemInfo.embed){return countShowButton+videoDurationButton+accessButton+ext_links}else{return countShowButton+tagButton+videoDurationButton+accessButton}}function returnSetStarButton(returnSetStarButton){return'<div class="videme_item_info_element_showcase">'+'<i class="fa fa-star btn-link videme_item_info_icon_showcase set_star" stars_count="'+returnSetStarButton.stars_count+'" item_id="'+returnSetStarButton.item_id+'" href="#" role="button" aria-hidden="true">'+"</i>"+'<div class="videme_item_info_val_showcase">'+returnSetStarButton.stars_count+"</div>"+"</div>"}function returnSetStarButtonV3(returnSetStarButtonV3){return'<a feedback="https://www.vide.me/v?i='+returnSetStarButtonV3.item_id+'" class="btn btn-outline-primary btn-sm videme-round-button">'+'<i class="fa fa-star btn-link videme_item_info_icon_showcase set_star" stars_count="'+returnSetStarButtonV3.stars_count+'" item_id="'+returnSetStarButtonV3.item_id+'" href="#" role="button" aria-hidden="true">'+"</i>"+'<div class="videme_item_info_val_showcase-v3" id="videme-showcase-item-stars_count-val">'+returnSetStarButtonV3.stars_count+"</div></a>"}function returnDeleteStarButtonV3(returnDeleteStarButtonV3){return'<a feedback="https://www.vide.me/v?i='+returnDeleteStarButtonV3.item_id+'" class="btn btn-outline-primary btn-sm videme-round-button">'+'<i class="fa fa-star btn-link videme_item_info_icon_showcase text-danger delete_star" stars_count="'+returnDeleteStarButtonV3.stars_count+'" item_id="'+returnDeleteStarButtonV3.item_id+'" href="#" role="button" aria-hidden="true">'+"</i>"+'<div class="text-danger videme_item_info_val_showcase-v3" id="videme-showcase-item-stars_count-val">'+returnDeleteStarButtonV3.stars_count+"</div></a>"}function returnSetFollowButtonV3(returnSetFollowButtonV3){return'<a class="btn btn-sm btn-outline-success videme-relation-card-button-connect relation_connect" user_id="'+returnSetFollowButtonV3.owner_id+'" href="https://api.vide.me/v2/relation/connect/?user_id='+returnSetFollowButtonV3.owner_id+"&nad="+$.cookie("vide_nad")+'">Follow</a>'}function returnDeleteStarButton(returnDeleteStarButton){return'<div class="videme_item_info_element_showcase">'+'<i class="fa fa-star-o btn-link videme_item_info_icon_showcase delete_star" stars_count="'+returnDeleteStarButton.stars_count+'" item_id="'+returnDeleteStarButton.item_id+'" href="#" role="button" aria-hidden="true">'+"</i>"+'<div class="videme_item_info_val_showcase">'+returnDeleteStarButton.stars_count+"</div>"+"</div>"}function returnSetLikeButton(returnSetLikeButton){return'<div class="videme_item_info_element_showcase">'+'<i class="fa fa-thumbs-up btn-link videme_item_info_icon_showcase set_like_showcase" likes_count="'+returnSetLikeButton.likes_count+'" item_id="'+returnSetLikeButton.item_id+'" href="#" role="button" aria-hidden="true">'+"</i>"+'<div class="videme_item_info_val_showcase">'+returnSetLikeButton.likes_count+"</div>"+"</div>"}function returnDeleteLikeButton(returnDeleteStarButton){return'<div class="videme_item_info_element_showcase">'+'<i class="fa fa-thumbs-o-up btn-link videme_item_info_icon_showcase delete_like_showcase" likes_count="'+returnDeleteStarButton.likes_count+'" item_id="'+returnDeleteStarButton.item_id+'" href="#" role="button" aria-hidden="true">'+"</i>"+'<div class="videme_item_info_val_showcase">'+returnDeleteStarButton.likes_count+"</div>"+"</div>"}function showcaseTagsUsers(showcaseTagsSettings){console.log("$.fn.showcaseTagsUsers showcaseTagsSettings -----\x3e "+JSON.stringify(showcaseTagsSettings));$(".videme-showcase-tags-item").removeClass("hidden");if($.cookie("vide_nad")){$.getJSON("https://api.vide.me/v2/tags/my/?videmecallback=?",function(JSON_tags_my){$(".videme-showcase-tags-item_place").html(fShowcaseEachTagButtonAuth(showcaseTagsSettings,JSON_tags_my));if(!$.isEmptyObject(JSON_tags_my)){$(".videme-showcase-tags-user_place").html(fShowcaseEachMyTagButton(showcaseTagsSettings,JSON_tags_my));$(".videme-showcase-tags-user").removeClass("hidden")}}).done(function(data){}).fail(function(data){}).always(function(){})}else{$(".videme-showcase-tags-item_place").html(fShowcaseEachTagButton(showcaseTagsSettings))}}function fShowcaseEachTagButton(showcaseEachTagButton){console.log("fShowcaseEachTagButton showcaseEachTagButton -----\x3e "+JSON.stringify(showcaseEachTagButton));var html=[];if(showcaseEachTagButton.length>0)$("#videme-showcase-tags-item_count").html(showcaseEachTagButton.length+" ");$.each(showcaseEachTagButton,function(key,value){html.push(returnSetTagButtonNOA(value))});return html}function fShowcaseEachConfirmTagButton(ShowcaseEachConfirmTagButton){console.log("fShowcaseEachConfirmTagButton ShowcaseEachConfirmTagButton -----\x3e "+JSON.stringify(ShowcaseEachConfirmTagButton));var html=[];$.each(ShowcaseEachConfirmTagButton,function(key,value){html.push(returnConfirmTagButton(value))});return html}function fShowcaseEachConfirmTagForSpringButton(ShowcaseEachConfirmTagForSpringButton){console.log("fShowcaseEachConfirmTagForSpringButton ShowcaseEachConfirmTagForSpringButton -----\x3e "+JSON.stringify(ShowcaseEachConfirmTagForSpringButton));var html=[];$.each(ShowcaseEachConfirmTagForSpringButton,function(key,value){html.push(returnConfirmTagForSpringButton(value))});return html}function fShowcaseEachAllTagForSpringButton(ShowcaseEachAllTagForSpringButton,spring){console.log("fShowcaseEachAllTagForSpringButton ShowcaseEachAllTagForSpringButton -----\x3e "+JSON.stringify(ShowcaseEachAllTagForSpringButton));var html=[];$.each(ShowcaseEachAllTagForSpringButton,function(key,value){value.spring=spring;html.push(returnAllTagForSpringButton(value))});return html}function fShowcaseEachMyTagButton(showcaseTagsSettings,showcaseEachMyTagButton){var html=[];var alreadyTag=false;var newTagMy=true;var myTagStat="myTagNew";if(showcaseEachMyTagButton.length>0)$("#videme-showcase-tags-user_count").html(showcaseEachMyTagButton.length+" ");$.each(showcaseEachMyTagButton,function(key,value){$.each(showcaseTagsSettings,function(key2,value2){if(value.tag==value2.tag){if(value2.its_tag!==null){alreadyTag=true;newTagMy=false;myTagStat="myTagAlready";return false}else{alreadyTag=false;newTagMy=true;myTagStat="myTadEq";return false}}else{}});value.item_id=showcaseTagsSettings[0].item_id;value.tags_count=value.tag_count;if(value.tags_count>0){switch(myTagStat){case"myTagAlready":html.push(returnDeleteTagButton(value));break;case"myTadEq":html.push(returnMyTagButtonEq(value));break;default:html.push(returnMyTagButton(value))}}alreadyTag=false;newTagMy=true;var myTagStat="myTagNew"});return html}function fShowcaseEachTagButtonAuth(showcaseEachTagButtonAuth,fShowcaseEachTagButtonAuth){var html=[];var canTag=false;if(showcaseEachTagButtonAuth.length>0)$("#videme-showcase-tags-item_count").html(showcaseEachTagButtonAuth.length+" ");$.each(showcaseEachTagButtonAuth,function(key,value){$.each(fShowcaseEachTagButtonAuth,function(key,value2){if(value.tag==value2.tag){canTag=true;return false}});if(!$.isEmptyObject(value.its_tag)){html.push(returnDeleteTagButton(value))}else{if(canTag){html.push(returnSetTagButton(value))}else{html.push(returnBanTagButton(value))}}canTag=false});return html}function fShowcaseEachEarnedTagButton(ShowcaseEachEarnedTagButton){console.log("fShowcaseEachEarnedTagButton ShowcaseEachEarnedTagButton -----\x3e "+JSON.stringify(ShowcaseEachEarnedTagButton));var html=[];$.each(ShowcaseEachEarnedTagButton,function(key,value){html.push(returnEarnedTagButton(value))});return html}function returnSetTagButton(returnSetTagButtonSettings){return'<span class="badge badge-pill badge-primary videme-badge-tag videme-badge-tag-set service1" id="videme-showcase-tag-badge_'+returnSetTagButtonSettings.tag+'">#'+returnSetTagButtonSettings.tag+'<i class="fa fa-check-circle btn-link videme-showcase-tag-btn-icon set_tag_showcase" id="videme-showcase-tag-btn_'+returnSetTagButtonSettings.tag+'" item_id="'+returnSetTagButtonSettings.item_id+'" tag="'+returnSetTagButtonSettings.tag+'" tags_count="'+returnSetTagButtonSettings.tags_count+'" href="#" role="button" aria-hidden="true"></i>'+'<div class="videme-showcase-tag-proress-place" id="videme-showcase-tag-progress-place_'+returnSetTagButtonSettings.tag+'"></div><div class="videme-badge-tag-count" id="videme-showcase-tag-count_'+returnSetTagButtonSettings.tag+'">'+returnSetTagButtonSettings.tags_count+"</div>"+"</span>"}function returnSetTagButtonNOA(returnSetTagButtonSettingsNOA){return'<span class="badge badge-pill badge-primary videme-badge-tag videme-badge-tag-set-noa service1" id="videme-showcase-tag-badge_'+returnSetTagButtonSettingsNOA.tag+'">#'+returnSetTagButtonSettingsNOA.tag+'<i class="fa fa-check-circle-o btn-link videme-showcase-tag-btn-icon set_tag_noa_showcase" id="videme-showcase-tag-btn_'+returnSetTagButtonSettingsNOA.tag+'" item_id="'+returnSetTagButtonSettingsNOA.item_id+'" tag="'+returnSetTagButtonSettingsNOA.tag+'" tags_count="'+returnSetTagButtonSettingsNOA.tags_count+'" href="#" role="button" aria-hidden="true"></i>'+'<div class="videme-showcase-tag-proress-place" id="videme-showcase-tag-progress-place_'+returnSetTagButtonSettingsNOA.tag+'"></div><div class="videme-badge-tag-count" id="videme-showcase-tag-count_'+returnSetTagButtonSettingsNOA.tag+'">'+returnSetTagButtonSettingsNOA.tags_count+"</div>"+"</span>"}function returnBanTagButton(returnBanTagButtonSettings){return'<span class="badge badge-pill badge-primary videme-badge-tag videme-badge-tag-ban service1" id="videme-showcase-tag-badge_'+returnBanTagButtonSettings.tag+'">#'+returnBanTagButtonSettings.tag+'<i class="fa fa-ban btn-link videme-showcase-tag-btn-icon ban_tag_showcase" id="videme-showcase-tag-btn_'+returnBanTagButtonSettings.tag+'" item_id="'+returnBanTagButtonSettings.item_id+'" tag="'+returnBanTagButtonSettings.tag+'" tags_count="'+returnBanTagButtonSettings.tags_count+'" href="#" role="button" aria-hidden="true"></i><div class="videme-badge-tag-count" id="videme-showcase-tag-count_'+returnBanTagButtonSettings.tag+'">'+returnBanTagButtonSettings.tags_count+"</div>"+"</span>"}function returnDeleteTagButton(returnDeleteTagButtonSettings){return'<span class="badge badge-pill badge-primary videme-badge-tag videme-badge-tag-delete service1" id="videme-showcase-tag-badge_'+returnDeleteTagButtonSettings.tag+'">#'+returnDeleteTagButtonSettings.tag+'<i class="fa fa-remove btn-link videme-showcase-tag-btn-icon delete_tag_showcase" id="videme-showcase-tag-btn_'+returnDeleteTagButtonSettings.tag+'" item_id="'+returnDeleteTagButtonSettings.item_id+'" tag="'+returnDeleteTagButtonSettings.tag+'" tags_count="'+returnDeleteTagButtonSettings.tags_count+'" href="#" role="button" aria-hidden="true"></i><div class="videme-badge-tag-count" id="videme-showcase-tag-count_'+returnDeleteTagButtonSettings.tag+'">'+returnDeleteTagButtonSettings.tags_count+"</div>"+"</span>"}function returnMyTagButton(returnMyTagButtonSettings){return'<span class="badge badge-pill badge-primary videme-badge-tag videme-badge-tag-my service1" id="videme-showcase-tag-my-badge_'+returnMyTagButtonSettings.tag+'">#'+returnMyTagButtonSettings.tag+'<i class="fa fa-arrow-up btn-link videme-showcase-tag-btn-icon set_tag_my_showcase" id="videme-showcase-tag-my-btn_'+returnMyTagButtonSettings.tag+'" item_id="'+returnMyTagButtonSettings.item_id+'" tag="'+returnMyTagButtonSettings.tag+'" tags_count="'+returnMyTagButtonSettings.tag_count+'" href="#" role="button" aria-hidden="true"></i>'+'<div class="videme-showcase-tag-proress-place" id="videme-showcase-tag-my-progress-place_'+returnMyTagButtonSettings.tag+'"></div><div class="videme-badge-tag-count" id="videme-showcase-tag-my-count_'+returnMyTagButtonSettings.tag+'">'+returnMyTagButtonSettings.tag_count+"</div>"+"</span>"}function returnMyTagButtonEq(returnMyTagButtonSettings){return'<span class="badge badge-pill badge-primary videme-badge-tag videme-badge-tag-my-eq service1" id="videme-showcase-tag-my-badge_'+returnMyTagButtonSettings.tag+'">#'+returnMyTagButtonSettings.tag+'<i class="fa fa-check-circle-o btn-link videme-showcase-tag-btn-icon set_tag_showcase" id="videme-showcase-tag-my-btn_'+returnMyTagButtonSettings.tag+'" item_id="'+returnMyTagButtonSettings.item_id+'" tag="'+returnMyTagButtonSettings.tag+'" tags_count="'+returnMyTagButtonSettings.tag_count+'" href="#" role="button" aria-hidden="true"></i>'+'<div class="videme-showcase-tag-proress-place" id="videme-showcase-tag-my-progress-place_'+returnMyTagButtonSettings.tag+'"></div><div class="videme-badge-tag-count" id="videme-showcase-tag-my-count_'+returnMyTagButtonSettings.tag+'">'+returnMyTagButtonSettings.tag_count+"</div>"+"</span>"}function returnConfirmTagButton(returnConfirmTagButtonSettings){return'<span class="badge badge-pill badge-primary videme-badge-tag videme-badge-tag-my service1" id="videme-showcase-tag-my-badge_'+returnConfirmTagButtonSettings.tag+'">#'+returnConfirmTagButtonSettings.tag+'<i class="btn-link videme-showcase-tag-btn-icon show_tag_items_showcase" id="videme-showcase-tag-my-btn_'+returnConfirmTagButtonSettings.tag+'" item_id="'+returnConfirmTagButtonSettings.item_id+'" tag="'+returnConfirmTagButtonSettings.tag+'" tags_count="'+returnConfirmTagButtonSettings.tag_count+'" href="#" role="button" aria-hidden="true">+</i>'+'<div class="videme-showcase-tag-proress-place" id="videme-showcase-tag-my-progress-place_'+returnConfirmTagButtonSettings.tag+'"></div><div class="videme-badge-tag-count" id="videme-showcase-tag-my-count_'+returnConfirmTagButtonSettings.tag+'">'+returnConfirmTagButtonSettings.tag_count+"</div>"+"</span>"}function returnConfirmTagForSpringButton(returnConfirmTagForSpringButtonSettings){return'<span class="badge badge-pill badge-primary videme-badge-tag videme-badge-tag-my service1" id="videme-showcase-tag-my-badge_'+returnConfirmTagForSpringButtonSettings.tag+'">#'+returnConfirmTagForSpringButtonSettings.tag+'<i class="btn-link videme-showcase-tag-btn-icon show_tag_items_for_spring" id="videme-showcase-tag-my-btn_'+returnConfirmTagForSpringButtonSettings.tag+'" item_id="'+returnConfirmTagForSpringButtonSettings.item_id+'" tag="'+returnConfirmTagForSpringButtonSettings.tag+'" tags_count="'+returnConfirmTagForSpringButtonSettings.tag_count+'" href="#" role="button" aria-hidden="true">+</i>'+'<div class="videme-showcase-tag-proress-place" id="videme-showcase-tag-my-progress-place_'+returnConfirmTagForSpringButtonSettings.tag+'"></div><div class="videme-badge-tag-count" id="videme-showcase-tag-my-count_'+returnConfirmTagForSpringButtonSettings.tag+'">'+returnConfirmTagForSpringButtonSettings.tag_count+"</div>"+"</span>"}function returnAllTagForSpringButton(returnAllTagForSpringButtonSettings){console.log("returnAllTagForSpringButton -----\x3e"+JSON.stringify(returnAllTagForSpringButtonSettings));return'<a class="badge badge-pill badge-primary videme-badge-tag videme-badge-tag-my service1" id="videme-showcase-tag-my-badge_'+returnAllTagForSpringButtonSettings.tag+'" href="https://www.vide.me/'+returnAllTagForSpringButtonSettings.spring+"/?tag="+returnAllTagForSpringButtonSettings.tag+'">#'+returnAllTagForSpringButtonSettings.tag+'<i class="btn-link videme-showcase-tag-btn-icon show_tag_items_for_spring_action" id="videme-showcase-tag-my-btn_'+returnAllTagForSpringButtonSettings.tag+'" item_id="'+returnAllTagForSpringButtonSettings.item_id+'" tag="'+returnAllTagForSpringButtonSettings.tag+'" tags_count="'+returnAllTagForSpringButtonSettings.tag_count+'" href="https://www.vide.me/'+returnAllTagForSpringButtonSettings.spring+"/?tag="+returnAllTagForSpringButtonSettings.tag+'" role="button" aria-hidden="true"></i>'+'<div class="videme-showcase-tag-proress-place" id="videme-showcase-tag-my-progress-place_'+returnAllTagForSpringButtonSettings.tag+'"></div><div class="videme-badge-tag-count" id="videme-showcase-tag-my-count_'+returnAllTagForSpringButtonSettings.tag+'">'+returnAllTagForSpringButtonSettings.tag_count+"</div>"+"</a>"}function returnEarnedTagButton(returnEarnedTagButtonSettings){return'<span class="badge badge-pill badge-primary videme-badge-tag videme-badge-tag-my service1" id="videme-showcase-tag-my-badge_'+returnEarnedTagButtonSettings.tag+'">#'+returnEarnedTagButtonSettings.tag+'<i class="btn-link show_tag_items_showcase" id="videme-showcase-tag-my-btn_'+returnEarnedTagButtonSettings.tag+'" item_id="'+returnEarnedTagButtonSettings.item_id+'" tag="'+returnEarnedTagButtonSettings.tag+'" tags_count="'+returnEarnedTagButtonSettings.tag_count+'" href="#" role="button" aria-hidden="true"></i>'+'<div class="videme-showcase-tag-proress-place" id="videme-showcase-tag-my-progress-place_'+returnEarnedTagButtonSettings.tag+'"></div><div class="videme-badge-tag-count" id="videme-showcase-tag-my-count_'+returnEarnedTagButtonSettings.tag+'">'+returnEarnedTagButtonSettings.tag_count+"</div>"+"</span>"}function returnLinkTagButtonNOA(returnLinkTagButtonSettingsNOA){return'<a href="https://www.vide.me/search/?q='+returnLinkTagButtonSettingsNOA.tag+'" class="badge badge-pill badge-primary videme-badge-tag videme-badge-tag-link-noa service1" id="videme-showcase-tag-badge_'+returnLinkTagButtonSettingsNOA.tag+'">#'+returnLinkTagButtonSettingsNOA.tag+"</a>"}function returnSetRepostButton(returnSetRepostButton){return'<div class="videme_item_info_element_showcase">'+'<i class="fa fa-retweet btn-link videme-showcase-tag-btn-icon videme_item_info_icon_showcase set_repost_showcase" reposts_count="'+returnSetRepostButton.reposts_count+'" item_id="'+returnSetRepostButton.item_id+'" href="#" role="button" aria-hidden="true">'+"</i>"+'<div class="videme_item_info_val_showcase">'+returnSetRepostButton.reposts_count+"</div>"+"</div>"}function returnSetRepostButtonV3(returnSetRepostButtonV3){return'<a feedback="https://www.vide.me/v?i='+returnSetRepostButtonV3.item_id+'" class="btn btn-outline-primary btn-sm videme-round-button">'+'<i class="fa fa-retweet btn-link videme-showcase-tag-btn-icon videme_item_info_icon_showcase set_repost_showcase" reposts_count="'+returnSetRepostButtonV3.reposts_count+'" item_id="'+returnSetRepostButtonV3.item_id+'" href="#" role="button" aria-hidden="true">'+"</i>"+'<div class="videme_item_info_val_showcase-v3" id="videme-showcase-item-reposts_count-val">'+returnSetRepostButtonV3.reposts_count+"</div></a>"}function returnShareButton(returnSetRepostButton){return'<div class="videme_item_info_element_showcase">'+'<i class="fa fa-share btn-link videme-showcase-tag-btn-icon videme_item_info_icon_showcase share-to-fb-toggle" item_id="'+returnSetRepostButton.item_id+'" href="#" role="button" aria-hidden="true"'+' data-toggle="modal" data-target="#modal-share-to-fb">'+"</i>"+"</div>"}function sec2str(t){var d=Math.floor(t/86400),h=("0"+Math.floor(t/3600)%24).slice(-2),m=("0"+Math.floor(t/60)%60).slice(-2),s=("0"+t%60).slice(-2);return(d>0?d+"d ":"")+(h>0?h+":":"")+(m>0?m+":":"")+(t>60?s:s+"s")}function parseMyTaskForDoorbellSign(parseMyTaskForDoorbellSign){console.log("parseMyTaskForDoorbellSign");let newArray=[];let newArrayTrue=[];$.each(parseMyTaskForDoorbellSign,function(key,value){var taskImage="",taskIcon="",percentage="",task_status="test",title="Uploading process",count="";if(!$.isEmptyObject(value)){if(!$.isEmptyObject(value.task_type)){if(value.task_type=="fileUploadVideoPre"){taskIcon="cloud-upload"}if(value.task_type=="fileUploadVideo"||value.task_type=="fileUploadVideo_force_mp4"){if(value.task_status=="awaiting"){taskIcon="clock-o"}if(value.task_status=="worked"){taskIcon="cogs"}}if(value.task_type=="fileSendToS3"){if(value.task_status=="success"){taskImage=value.task_item_id+".jpg"}if(value.task_status=="awaiting"){taskIcon="cloud-upload"}}if(value.task_status=="awaiting"){task_status=="awaiting"}if(value.task_status=="worked"){task_status=="worked"}if(value.task_status=="success"){taskImage=value.task_item_id+".jpg"}if(value.task_status=="error"){taskIcon="frown-o";task_status=="error"}if(!$.isEmptyObject(value.percentage)){if(value.percentage<98)percentage="("+value.percentage+"%) "}if(!$.isEmptyObject(value.title)){title=value.title}}}parseMyTaskForDoorbellSign[key].item_id=value.task_item_id});parseMyTaskForDoorbellSign.forEach(object=>{object.buttons={button:"del_task"}});return parseMyTaskForDoorbellSign}function parseMyChartItemsForDoorbellSign(parseMyChartItemsForDoorbellSign){console.log("parseMyChartItemsForDoorbellSign parseMyChartItemsForDoorbellSign -----\x3e"+JSON.stringify(parseMyChartItemsForDoorbellSign));parseMyChartItemsForDoorbellSign.forEach(object=>{object.buttons={button:"chart_item_mel_toggle"};object.footer={second_line:"chart_item_mel_toggle"}});return parseMyChartItemsForDoorbellSign}function parseItemsForDoorbellSign(parseItemsForDoorbellSign){$.each(parseItemsForDoorbellSign,function(key,value){var taskImage="",taskIcon="",percentage="",task_status="test",title="Uploading process",count="";if(!$.isEmptyObject(value)){if(!$.isEmptyObject(value.task_type)){if(value.task_type=="fileUploadVideoPre"){taskIcon="cloud-upload"}if(value.task_type=="fileUploadVideo"||value.task_type=="fileUploadVideo_force_mp4"){if(value.task_status=="awaiting"){taskIcon="clock-o"}if(value.task_status=="worked"){taskIcon="cogs"}}if(value.task_type=="fileSendToS3"){if(value.task_status=="success"){taskImage=value.task_item_id+".jpg"}if(value.task_status=="awaiting"){taskIcon="cloud-upload"}}if(value.task_status=="awaiting"){task_status=="awaiting"}if(value.task_status=="worked"){task_status=="worked"}if(value.task_status=="success"){taskImage=value.task_item_id+".jpg"}if(value.task_status=="error"){taskIcon="frown-o";task_status=="error"}if(!$.isEmptyObject(value.percentage)){if(value.percentage<98)percentage="("+value.percentage+"%) "}if(!$.isEmptyObject(value.title)){title=value.title}}}parseItemsForDoorbellSign[key]={image:taskImage,icon:taskIcon,task_id:value.task_id,task_status:value.task_status,task_type:value.task_type,percentage:value.percentage,cover:"",title:percentage+" "+title,access:value.access,href:value.task_item_id,additional:value.task_status,count:timeToWord(value.created_at),buttons:{button:"del_task"},key:key,img:taskImage}});return parseItemsForDoorbellSign}function parseMyStarredForDoorbellSign(parseMyStarredForDoorbellSign){$.each(parseMyStarredForDoorbellSign,function(key,value){if(!$.isEmptyObject(value.cover)){img=value.cover}else{img=value.item_id+".jpg"}parseMyStarredForDoorbellSign[key]={image:img,item_id:value.item_id,title:value.title,access:value.access,stars_count:value.stars_count,count:timeToWord(value.star_created_at),buttons:{button:"del_star"}}});return parseMyStarredForDoorbellSign}function parseMyTaggedForDoorbellSign(parseMyTaggedForDoorbellSign){parseMyTaggedForDoorbellSign.forEach(object=>{object.buttons={button:"del_tag"}});return parseMyTaggedForDoorbellSign}function parseMyLikesForDoorbellSign(parseMyLikesForDoorbellSign){$.each(parseMyLikesForDoorbellSign,function(key,value){if(!$.isEmptyObject(value.cover)){img=value.cover}else{img=value.item_id+".jpg"}parseMyLikesForDoorbellSign[key]={image:img,item_id:value.item_id,title:value.title,access:value.access,spring:value.spring,likes_count:value.likes_count,count:timeToWord(value.created_at),buttons:{button:"del_like"}}});return parseMyLikesForDoorbellSign}function parseMyRelationsForDoorbellSign(parseMyRelationsForDoorbellSign){$.each(parseMyRelationsForDoorbellSign,function(key,value){var trueUserInfo=paddingUserInfo(value);parseMyRelationsForDoorbellSign[key]={image:origin_img_vide_me+trueUserInfo.user_picture,cover:"",title:trueUserInfo.user_display_name,additional:trueUserInfo.relation_email,from_user_id:trueUserInfo.from_user_id,to_user_id:trueUserInfo.to_user_id,relation:trueUserInfo.relation,relation_email:trueUserInfo.relation_email,date:trueUserInfo.created_at,dropdown:{dd_item:"edit_relation"},buttons:{button:"send_message"}}});return parseMyRelationsForDoorbellSign}function parseMyRelationsForDoorbellSignShare(parseMyRelationsForDoorbellSignShare,item_id){$.each(parseMyRelationsForDoorbellSignShare,function(key,value){var trueUserInfo=paddingUserInfo(value);parseMyRelationsForDoorbellSignShare[key]={image:trueUserInfo.user_picture,cover:"",title:trueUserInfo.user_display_name,item_id:item_id,to_user_id:trueUserInfo.user_id,date:trueUserInfo.created_at,buttons:{button:"item_send_message"}}});return parseMyRelationsForDoorbellSignShare}function parseRelationsForMeForDoorbellSign(parseRelationsToMeForDoorbellSign){$.each(parseRelationsToMeForDoorbellSign,function(key,value){var trueUserInfo=paddingUserInfo(value);parseRelationsToMeForDoorbellSign[key]={image:trueUserInfo.user_picture,cover:"",href:trueUserInfo.spring,title:trueUserInfo.user_display_name,additional:trueUserInfo.relation_email,user_id:trueUserInfo.user_id,spring:trueUserInfo.spring,country:trueUserInfo.country,city:trueUserInfo.city,relation:trueUserInfo.relation,relation_email:trueUserInfo.relation_email,date:trueUserInfo.created_at,buttons:{button:"relation_delete"}}});return parseRelationsToMeForDoorbellSign}function parseRelationsToMeForDoorbellSign(parseRelationsToMeForDoorbellSign){$.each(parseRelationsToMeForDoorbellSign,function(key,value){var trueUserInfo=paddingUserInfo(value);parseRelationsToMeForDoorbellSign[key]={image:trueUserInfo.user_picture,cover:"",href:trueUserInfo.spring,title:trueUserInfo.user_display_name,spring:trueUserInfo.spring,country:trueUserInfo.country,city:trueUserInfo.city,additional:trueUserInfo.relation_email,from_user_id:trueUserInfo.from_user_id,to_user_id:trueUserInfo.to_user_id,user_id:trueUserInfo.user_id,relation:trueUserInfo.relation,relation_email:trueUserInfo.relation_email,date:trueUserInfo.created_at,buttons:{button:"friendship"}}});return parseRelationsToMeForDoorbellSign}function parseFriendshipMyForDoorbellSign(parseFriendshipMyForDoorbellSign){$.each(parseFriendshipMyForDoorbellSign,function(key,value){var trueUserInfo=paddingUserInfo(value);parseFriendshipMyForDoorbellSign[key]={image:trueUserInfo.user_picture,cover:"",href:trueUserInfo.spring,title:trueUserInfo.user_display_name,user_display_name:trueUserInfo.user_display_name,user_id:trueUserInfo.user_id,spring:trueUserInfo.spring,country:trueUserInfo.country,city:trueUserInfo.city,date:dateFromPG(trueUserInfo),buttons:{button:"del_friendship"}}});return parseFriendshipMyForDoorbellSign}function parseUserForDoorbellSign(parseFriendshipMyForDoorbellSign){$.each(parseFriendshipMyForDoorbellSign,function(key,value){var trueUserInfo=paddingUserInfo(value);parseFriendshipMyForDoorbellSign[key]={image:trueUserInfo.user_picture,cover:"",href:trueUserInfo.spring,title:trueUserInfo.user_display_name,user_display_name:trueUserInfo.user_display_name,user_id:trueUserInfo.user_id,spring:trueUserInfo.spring,count:"@"+trueUserInfo.spring,date:dateFromPG(trueUserInfo)}});return parseFriendshipMyForDoorbellSign}function parseFriendshipForDoorbellSign(parseFriendshipMyForDoorbellSign){$.each(parseFriendshipMyForDoorbellSign,function(key,value){var trueUserInfo=paddingUserInfo(value);parseFriendshipMyForDoorbellSign[key]={image:trueUserInfo.user_picture,cover:"",href:trueUserInfo.spring,title:trueUserInfo.user_display_name,spring:trueUserInfo.spring,country:trueUserInfo.country,city:trueUserInfo.city,user_id:trueUserInfo.user_id,date:dateFromPG(trueUserInfo),buttons:{button:"friendship"}}});return parseFriendshipMyForDoorbellSign}function parseFriendshipAcceptForDoorbellSign(parseFriendshipAcceptForDoorbellSign){$.each(parseFriendshipAcceptForDoorbellSign,function(key,value){var trueUserInfo=paddingUserInfo(value);parseFriendshipAcceptForDoorbellSign[key]={image:trueUserInfo.user_picture,cover:"",title:trueUserInfo.user_display_name,href:trueUserInfo.spring,spring:trueUserInfo.spring,country:trueUserInfo.country,city:trueUserInfo.city,user_id:trueUserInfo.user_id,date:dateFromPG(trueUserInfo),buttons:{button:"friendship_accept",button2:"friendship_declined"}}});return parseFriendshipAcceptForDoorbellSign}function parseRecommConnectForDoorbellSign(parseRecommConnectForDoorbellSign){$.each(parseRecommConnectForDoorbellSign,function(key,value){var trueUserInfo=paddingUserInfo(value);parseRecommConnectForDoorbellSign[key]={image:trueUserInfo.user_picture,cover:"",title:trueUserInfo.user_display_name,href:trueUserInfo.spring,spring:trueUserInfo.spring,country:trueUserInfo.country,city:trueUserInfo.city,user_id:trueUserInfo.user_id,date:trueUserInfo.created_at,buttons:{button:"follow"}}});return parseRecommConnectForDoorbellSign}function parseRecommFriendsForDoorbellSign(parseRecommFriendsForDoorbellSign){$.each(parseRecommFriendsForDoorbellSign,function(key,value){var trueUserInfo=paddingUserInfo(value);parseRecommFriendsForDoorbellSign[key]={image:trueUserInfo.user_picture,cover:"",title:trueUserInfo.user_display_name,href:trueUserInfo.spring,spring:trueUserInfo.spring,country:trueUserInfo.country,city:trueUserInfo.city,user_id:trueUserInfo.user_id,date:trueUserInfo.created_at,buttons:{button:"friendship"}}});return parseRecommFriendsForDoorbellSign}function parseMyRequestsFriendshipForDoorbellSign(parseFriendshipAcceptForDoorbellSign){$.each(parseFriendshipAcceptForDoorbellSign,function(key,value){var trueUserInfo=paddingUserInfo(value);parseFriendshipAcceptForDoorbellSign[key]={image:trueUserInfo.user_picture,cover:"",title:trueUserInfo.user_display_name,href:trueUserInfo.spring,spring:trueUserInfo.spring,country:trueUserInfo.country,city:trueUserInfo.city,user_id:trueUserInfo.user_id,date:trueUserInfo.created_at}});return parseFriendshipAcceptForDoorbellSign}function parseSearchPeoplesForDoorbellSign(parseSearchPeoplesForDoorbellSign){$.each(parseSearchPeoplesForDoorbellSign,function(key,value){var trueUserInfo=paddingUserInfo(value);parseSearchPeoplesForDoorbellSign[key]={image:trueUserInfo.user_picture,cover:"",title:trueUserInfo.user_display_name,additional:trueUserInfo.city,user_id:trueUserInfo.user_id,date:trueUserInfo.created_at,spring:trueUserInfo.spring,href:trueUserInfo.spring,country:trueUserInfo.country,city:trueUserInfo.city,bio:trueUserInfo.bio}});return parseSearchPeoplesForDoorbellSign}function parseSearchEssencesForDoorbellSign(parseSearchPeoplesForDoorbellSign){$.each(parseSearchPeoplesForDoorbellSign,function(key,value){var trueUserInfo=paddingUserInfo(value);parseSearchPeoplesForDoorbellSign[key]={image:trueUserInfo.user_picture,cover:"",title:trueUserInfo.user_display_name,additional:trueUserInfo.city,user_id:trueUserInfo.user_id,date:trueUserInfo.created_at,spring:trueUserInfo.spring,href:trueUserInfo.spring,country:trueUserInfo.country,city:trueUserInfo.city,bio:trueUserInfo.bio,ue_id:trueUserInfo.ue_id,buttons:{button:"essence_join"}}});return parseSearchPeoplesForDoorbellSign}function parseSearchPartnersItemsForDoorbellSign(parseSearchPartnersItemsForDoorbellSign){$.each(parseSearchPartnersItemsForDoorbellSign,function(key,value){var trueUserInfo=paddingUserInfo(value);parseSearchPartnersItemsForDoorbellSign[key]={image:trueUserInfo.user_picture,cover:"",title:trueUserInfo.user_display_name,additional:trueUserInfo.city,user_id:trueUserInfo.user_id,date:trueUserInfo.created_at,spring:trueUserInfo.spring,href:trueUserInfo.spring,user_display_name:trueUserInfo.user_display_name,user_picture:trueUserInfo.user_picture,country:trueUserInfo.country,city:trueUserInfo.city,item_id:parseSearchPartnersItemsForDoorbellSign.item_id,bio:trueUserInfo.bio,buttons:{button:"partner_invite"}}});return parseSearchPartnersItemsForDoorbellSign}function parsePartnersItemsForDoorbellSignDelete(parseSearchPartnersItemsForDoorbellSign){$.each(parseSearchPartnersItemsForDoorbellSign,function(key,value){var trueUserInfo=paddingUserInfo(value);parseSearchPartnersItemsForDoorbellSign[key]={image:trueUserInfo.user_picture,cover:"",title:trueUserInfo.user_display_name,additional:trueUserInfo.city,user_id:trueUserInfo.user_id,date:trueUserInfo.created_at,spring:trueUserInfo.spring,status:trueUserInfo.status,href:trueUserInfo.spring,country:trueUserInfo.country,city:trueUserInfo.city,bio:trueUserInfo.bio,item_id:trueUserInfo.item_id,partner_id:trueUserInfo.partner_id,buttons:{button:"partner_delete"}}});return parseSearchPartnersItemsForDoorbellSign}function parsePartnersItemsForDoorbellSignInteractive(parsePartnersItemsForDoorbellSignInteractive){console.log("parsePartnersItemsForDoorbellSignInteractive -----\x3e"+JSON.stringify(parsePartnersItemsForDoorbellSignInteractive));$.each(parsePartnersItemsForDoorbellSignInteractive,function(key,value){var trueUserInfo=paddingUserInfo(value);var buttons=autoselectPartnerButton(trueUserInfo);parsePartnersItemsForDoorbellSignInteractive[key]={image:trueUserInfo.user_picture,cover:"",title:trueUserInfo.user_display_name,additional:trueUserInfo.city,user_id:trueUserInfo.user_id,date:trueUserInfo.created_at,spring:trueUserInfo.spring,partner_status:trueUserInfo.partner_status,href:trueUserInfo.spring,country:trueUserInfo.country,city:trueUserInfo.city,bio:trueUserInfo.bio,item_id:trueUserInfo.item_id,partner_id:trueUserInfo.partner_id,buttons:buttons}});return parsePartnersItemsForDoorbellSignInteractive}function parsePartnersItemsForDoorbellSign(parsePartnersItemsForDoorbellSign){$.each(parsePartnersItemsForDoorbellSign,function(key,value){var trueUserInfo=paddingUserInfo(value);parsePartnersItemsForDoorbellSign[key]={image:trueUserInfo.user_picture,cover:"",title:trueUserInfo.user_display_name,additional:trueUserInfo.city,user_id:trueUserInfo.user_id,date:trueUserInfo.created_at,spring:trueUserInfo.spring,status:trueUserInfo.status,href:trueUserInfo.spring,country:trueUserInfo.country,city:trueUserInfo.city,bio:trueUserInfo.bio,item_id:trueUserInfo.item_id,partner_id:trueUserInfo.partner_id}});return parsePartnersItemsForDoorbellSign}function parsePartnersPendingFromMeForDoorbellSignDelete(parsePartnersPendingFromMeForDoorbellSignDelete){console.log("parsePartnersPendingFromMeForDoorbellSignDelete -----\x3e"+JSON.stringify(parsePartnersPendingFromMeForDoorbellSignDelete));$.each(parsePartnersPendingFromMeForDoorbellSignDelete,function(key,value){var trueUserInfo=paddingUserInfo(value);parsePartnersPendingFromMeForDoorbellSignDelete[key]={image:trueUserInfo.partner_user_picture,cover:"",title:trueUserInfo.partner_user_display_name+" request partnership",additional:trueUserInfo.city,user_id:trueUserInfo.user_id,date:trueUserInfo.created_at,spring:trueUserInfo.partner_spring,partner_status:trueUserInfo.partner_status,href:trueUserInfo.partner_spring,country:trueUserInfo.partner_country,city:trueUserInfo.partner_city,bio:trueUserInfo.bio,ip_id:trueUserInfo.ip_id,item_id:trueUserInfo.item_id,partner_id:trueUserInfo.partner_id,buttons:{button:"partner_delete"},additional_item:trueUserInfo}});console.log("parsePartnersPendingFromMeForDoorbellSignDelete -----\x3e"+JSON.stringify(parsePartnersPendingFromMeForDoorbellSignDelete));return parsePartnersPendingFromMeForDoorbellSignDelete}function parsePartnersPendingForDoorbellSignInteractive(parsePartnersPendingForDoorbellSignInteractive){$.each(parsePartnersPendingForDoorbellSignInteractive,function(key,value){var trueUserInfo=paddingUserInfo(value);var button=autoselectPartnerButton(trueUserInfo);var sign=autoselectPartnerSign(trueUserInfo);parsePartnersPendingForDoorbellSignInteractive[key]={image:trueUserInfo.partner_user_picture,cover:"",title:trueUserInfo.partner_user_display_name+sign,additional:trueUserInfo.city,user_id:trueUserInfo.user_id,date:trueUserInfo.created_at,spring:trueUserInfo.partner_spring,partner_status:trueUserInfo.partner_status,ip_id:trueUserInfo.ip_id,href:trueUserInfo.partner_spring,country:trueUserInfo.partner_country,city:trueUserInfo.partner_city,item_id:trueUserInfo.item_id,partner_id:trueUserInfo.partner_id,buttons:button,additional_item:trueUserInfo}});return parsePartnersPendingForDoorbellSignInteractive}function parsePartnersInviteRequestForDoorbellSign(parsePartnersInviteRequestForDoorbellSign){$.each(parsePartnersInviteRequestForDoorbellSign,function(key,value){var trueUserInfo=paddingUserInfo(value.partner_info);var itemInfo=value.item_info;console.log("parsePartnersInviteRequestForDoorbellSign trueUserInfo -----\x3e"+JSON.stringify(trueUserInfo));console.log("parsePartnersInviteRequestForDoorbellSign itemInfo -----\x3e"+JSON.stringify(itemInfo));parsePartnersInviteRequestForDoorbellSign[key]={image:trueUserInfo.user_picture,cover:"",title:trueUserInfo.user_display_name,additional:trueUserInfo.city,user_id:trueUserInfo.user_id,date:trueUserInfo.created_at,spring:trueUserInfo.spring,status:trueUserInfo.status,href:trueUserInfo.spring,country:trueUserInfo.country,city:trueUserInfo.city,bio:trueUserInfo.bio,item_id:trueUserInfo.item_id}});console.log("parsePartnersInviteRequestForDoorbellSign after -----\x3e"+JSON.stringify(parsePartnersInviteRequestForDoorbellSign));return parsePartnersInviteRequestForDoorbellSign}function parseEssencesMyRefForDoorbellSign(parseEssencesMyRefForDoorbellSign){$.each(parseEssencesMyRefForDoorbellSign,function(key,value){var trueUserInfo=paddingUserInfo(value);parseEssencesMyRefForDoorbellSign[key]={image:trueUserInfo.user_picture,cover:"",title:trueUserInfo.user_display_name,additional:trueUserInfo.city,user_id:trueUserInfo.user_id,date:trueUserInfo.created_at,spring:trueUserInfo.spring,href:trueUserInfo.spring,country:trueUserInfo.country,city:trueUserInfo.city,bio:trueUserInfo.bio,owner_display_name:trueUserInfo.owner_display_name,owner_picture:trueUserInfo.owner_picture,owner_spring:trueUserInfo.owner_spring,essence_title:trueUserInfo.essence_title,ref_title:trueUserInfo.ref_title,dbs_type:"essence_from",ure_id:trueUserInfo.ure_id,ue_id:trueUserInfo.ue_id,buttons:{button:"essence_from_me_delete"}}});return parseEssencesMyRefForDoorbellSign}function parseEssencesMySpringRefForDoorbellSign(parseEssencesMySpringRefForDoorbellSign){$.each(parseEssencesMySpringRefForDoorbellSign,function(key,value){var trueUserInfo=paddingUserInfo(value);parseEssencesMySpringRefForDoorbellSign[key]={image:trueUserInfo.user_picture,cover:"",title:trueUserInfo.user_display_name,spring:trueUserInfo.spring,href:trueUserInfo.spring,owner_display_name:trueUserInfo.owner_display_name,owner_picture:trueUserInfo.owner_picture,owner_spring:trueUserInfo.owner_spring,essence_title:trueUserInfo.essence_title,ref_title:trueUserInfo.ref_title,dbs_type:"essence_from",ure_id:trueUserInfo.ure_id,ue_id:trueUserInfo.ue_id}});return parseEssencesMySpringRefForDoorbellSign}function parseEssencesMySpringRefToDoorbellSign(parseEssencesMySpringRefToDoorbellSign){$.each(parseEssencesMySpringRefToDoorbellSign,function(key,value){var trueUserInfo=paddingUserInfo(value);parseEssencesMySpringRefToDoorbellSign[key]={image:trueUserInfo.owner_picture,cover:"",spring:trueUserInfo.owner_spring,href:trueUserInfo.spring,user_display_name:trueUserInfo.owner_display_name,user_picture:trueUserInfo.owner_picture,user_spring:trueUserInfo.owner_spring,owner_display_name:trueUserInfo.user_display_name,owner_picture:trueUserInfo.user_picture,owner_spring:trueUserInfo.spring,essence_title:trueUserInfo.essence_title,ref_title:trueUserInfo.ref_title,dbs_type:"essence_to",ure_id:trueUserInfo.ure_id,ue_id:trueUserInfo.ue_id}});return parseEssencesMySpringRefToDoorbellSign}function parsEssencesToMeRefForDoorbellSign(parsEssencesToMeRefForDoorbellSign){$.each(parsEssencesToMeRefForDoorbellSign,function(key,value){var trueUserInfo=paddingUserInfo(value);parsEssencesToMeRefForDoorbellSign[key]={image:trueUserInfo.user_picture,cover:"",title:trueUserInfo.user_display_name,additional:trueUserInfo.city,user_id:trueUserInfo.user_id,date:trueUserInfo.created_at,spring:trueUserInfo.spring,href:trueUserInfo.spring,country:trueUserInfo.country,city:trueUserInfo.city,bio:trueUserInfo.bio,owner_display_name:trueUserInfo.owner_display_name,owner_picture:trueUserInfo.owner_picture,owner_spring:trueUserInfo.owner_spring,essence_title:trueUserInfo.essence_title,ref_title:trueUserInfo.ref_title,dbs_type:"essence_to",ure_id:trueUserInfo.ure_id,ue_id:trueUserInfo.ue_id,buttons:{button:"essence_to_me_delete"}}});return parsEssencesToMeRefForDoorbellSign}function parseEssencesFromMePendingForDoorbellSign(parseEssencesFromMePendingForDoorbellSign){$.each(parseEssencesFromMePendingForDoorbellSign,function(key,value){var trueUserInfo=paddingUserInfo(value);parseEssencesFromMePendingForDoorbellSign[key]={image:trueUserInfo.user_picture,cover:"",title:trueUserInfo.user_display_name,additional:trueUserInfo.city,user_id:trueUserInfo.user_id,date:trueUserInfo.created_at,spring:trueUserInfo.spring,href:trueUserInfo.spring,country:trueUserInfo.country,city:trueUserInfo.city,bio:trueUserInfo.bio,owner_display_name:trueUserInfo.owner_display_name,owner_picture:trueUserInfo.owner_picture,owner_spring:trueUserInfo.owner_spring,essence_title:trueUserInfo.essence_title,ref_title:trueUserInfo.ref_title,dbs_type:"essence_from",ure_id:trueUserInfo.ure_id,ue_id:trueUserInfo.ue_id,buttons:{button:"essence_from_me_accept_ref",button2:"essence_from_me_delete"}}});return parseEssencesFromMePendingForDoorbellSign}function parsePopRelationsForDoorbellSign(parsePopRelationsForDoorbellSign){$.each(parsePopRelationsForDoorbellSign,function(key,value){var trueUserInfo=paddingUserInfo(value);parsePopRelationsForDoorbellSign[key]={image:origin_img_vide_me+trueUserInfo.user_picture,cover:"",title:trueUserInfo.user_display_name,user_id:trueUserInfo.user_id,spring:trueUserInfo.spring,edit_button:"pop_relations"}});return parsePopRelationsForDoorbellSign}function parseMyTaskSendmailForDoorbellSign(parseMyTaskSendmailForDoorbellSign){$.each(parseMyTaskSendmailForDoorbellSign,function(key,value){var trueUserInfo=paddingUserInfo(value);var taskImage="";var taskIcon="";if(!$.isEmptyObject(trueUserInfo.task_status)){if(trueUserInfo.task_status=="awaiting"){taskIcon="clock-o"}if(trueUserInfo.task_status=="worked"){taskIcon="cogs"}if(trueUserInfo.task_status=="success"){taskImage=trueUserInfo.task_item_id+".jpg"}if(trueUserInfo.task_status=="error"){taskIcon="frown-o"}}parseMyTaskSendmailForDoorbellSign[key]={image:taskImage,icon:taskIcon,cover:"",title:trueUserInfo.title,href:trueUserInfo.title,additional:trueUserInfo.task_status,count:trueUserInfo.to_user_email,date:trueUserInfo.created_at,edit_button:""}});return parseMyTaskSendmailForDoorbellSign}function parseSendForDoorbellSign(parseSendForDoorbellSign){console.log("parseSendForDoorbellSign -----\x3e"+JSON.stringify(parseSendForDoorbellSign));var date=new Date(2011,0,1,0,0,0,0);parseSendForDoorbellSign={icon:"cogs",cover:"",title:parseSendForDoorbellSign.title,additional:"send",count:parseSendForDoorbellSign.to_user_email,date:date,edit_button:""};return parseSendForDoorbellSign}function parseSignsForDoorbellSign(parseSignsForDoorbellSign){console.log("parseSignsForDoorbellSign Before-----\x3e"+JSON.stringify(parseSignsForDoorbellSign));$.each(parseSignsForDoorbellSign,function(key,value){parseSignsForDoorbellSign[key]={image:value.cover,title:value.title,href:value.spring+"/?album="+value.title,additional:value.access,count:value.count,date:value.created_at,created_at:value.created_at,updated_at:value.updated_at,access:value.access,dropdown:{dd_item:"album"},buttons:{button:"album_edit"}}});return parseSignsForDoorbellSign}function parseSignsForDoorbellSignManager(parseSignsForDoorbellSignManager){$.each(parseSignsForDoorbellSignManager,function(key,value){parseSignsForDoorbellSignManager[key]={image:value.cover,title:value.title,href:value.spring+"/?album="+value.title,additional:value.access,count:value.count,date:value.created_at,created_at:value.created_at,updated_at:value.updated_at,access:value.access,dropdown:{dd_item:"album"},dbs_type:"album_manager",buttons:{button:"album_edit"}}});return parseSignsForDoorbellSignManager}function parseSignsForDoorbellSignSpring(parseSignsForDoorbellSignSpring){$.each(parseSignsForDoorbellSignSpring,function(key,value){parseSignsForDoorbellSignSpring[key]={image:value.cover,title:value.title,href:value.spring+"/?album="+value.title,additional:value.access,count:value.count,created_at:value.created_at,updated_at:value.updated_at,access:value.access,dbs_type:"square"}});return parseSignsForDoorbellSignSpring}function parseSignsForDoorbellSignShare(parseSignsForDoorbellSignShare,item_id){$.each(parseSignsForDoorbellSignShare,function(key,value){parseSignsForDoorbellSignShare[key]={image:value.cover,title:value.title,href:value.spring+"/?album="+value.title,count:value.count,date:value.created_at,access:value.access,item_id:item_id,album_id:value.album_id,buttons:{button:"item_add_to_album"}}});return parseSignsForDoorbellSignShare}function parseTrendsItemsForShowTrendsTile(parseTrendsItemsForShowTrendsTile){$.each(parseTrendsItemsForShowTrendsTile,function(key,value){var trueUserInfo=paddingUserInfo(value);parseTrendsItemsForShowTrendsTile[key]={item_id:trueUserInfo.item_id,title:trueUserInfo.title,type_item:trueUserInfo.type_item,user_display_name:trueUserInfo.user_display_name,spring:trueUserInfo.spring,user_picture:trueUserInfo.user_picture,count_view:trueUserInfo.count_view}});return parseTrendsItemsForShowTrendsTile}function showSendVideo(showSendVideo){if($.fn.getAuthorized()){}else{console.log("showSendVideo -----\x3e "+JSON.stringify(showSendVideo));var showTileDoorbellSignSmall=parseSendForDoorbellSign(showSendVideo);var trueValue=paddingUserInfo(showTileDoorbellSignSmall);let html=[];html.push('<li type="button" class="list-group-item list-group-item-action videme-card-list-group">');html.push(showTask(trueValue));html.push("</li>");return html}}function urlExists(url){console.log("urlExists url:"+url);$.ajax({type:"HEAD",url:url,success:function(data){console.log("urlExists: success"+JSON.stringify(data));return true},error:function(data){console.log("urlExists: error"+JSON.stringify(data));return false}})}function ifAutorisedGotoUrl(target){if($.cookie("vide_nad")){window.location=target.attr("href")}else{gotoLogin()}}function showError(data){var html=[];html.push('\t\t\t<div class="alert alert-warning alert-dismissible" role="alert">\t\t\t\t<button type="button" class="close" data-dismiss="alert" aria-label="Close">\t\t\t\t\t<span aria-hidden="true">×</span>\t\t\t\t</button>\t\t\t\t<strong>Warning!</strong>\t\t\t\tNetwork error. <a href="'+document.URL+'" class="alert-link">Please reload the page.</a> <a href=\'https://api.vide.me/enter/\' class="alert-link"> Or Sign in.</a>\t\t\t\t<p>'+JSON.stringify(data)+"</p>\t\t\t</div>\t\t");return html}function showEmpty(data){return""}function sidebarToggleShow(){$(".videme-content-toggle").animate({right:"-150px"},{duration:500,easing:"swing",complete:function(){$(".videme-content-toggle").addClass("tmpEvent")}});$(".videme-sidebar-toggle").animate({left:"150px"},{duration:500,easing:"swing",complete:function(){$(".videme-sidebar-toggle").addClass("tmpEventSidebarToggle")}})}function paddingButtonInbox(paddingButtonInbox){paddingButtonInbox.showcaseButton={"reply-toggle":{item_id:paddingButtonInbox.item_id,title:paddingButtonInbox.title,content:paddingButtonInbox.content,message_id:paddingButtonInbox.message_id,recipients:paddingButtonInbox.recipients,to_user_id:paddingButtonInbox.to_user_id,from_user_id:paddingButtonInbox.from_user_id,from_user_display_name:paddingButtonInbox.from_user_display_name,conference_id:paddingButtonInbox.conference_id},"contact-toggle":{item_id:paddingButtonInbox.item_id,user_display_name:paddingButtonInbox.user_display_name,title:paddingButtonInbox.title,content:paddingButtonInbox.content,created_at:paddingButtonInbox.created_at,updated_at:paddingButtonInbox.updated_at},"fb-send-message":{item_id:paddingButtonInbox.item_id,message_id:paddingButtonInbox.message_id},"list-toggle":{item_id:paddingButtonInbox.item_id,title:paddingButtonInbox.title,content:paddingButtonInbox.content},"del-inbox-toggle":{message_id:paddingButtonInbox.message_id,item_id:paddingButtonInbox.item_id,user_display_name:paddingButtonInbox.user_display_name,title:paddingButtonInbox.title,content:paddingButtonInbox.content,created_at:paddingButtonInbox.created_at,updated_at:paddingButtonInbox.updated_at}};return paddingButtonInbox}function paddingButtonSent(paddingButtonSend){paddingButtonSend.showcaseButton={"contact-toggle":{item_id:paddingButtonSend.item_id,title:paddingButtonSend.title,content:paddingButtonSend.content},"fb-send-message":{item_id:paddingButtonSend.item_id,message_id:paddingButtonSend.message_id},"list-toggle":{item_id:paddingButtonSend.item_id,title:paddingButtonSend.title,content:paddingButtonSend.content},"del-sent-toggle":{message_id:paddingButtonSend.message_id,item_id:paddingButtonSend.item_id,user_display_name:paddingButtonSend.user_display_name,title:paddingButtonSend.title,content:paddingButtonSend.content,created_at:paddingButtonSend.created_at,updated_at:paddingButtonSend.updated_at}};return paddingButtonSend}function paddingButtonMy(paddingButtonMy){paddingButtonMy.showcaseButton={"contact-toggle":{item_id:paddingButtonMy.item_id,title:paddingButtonMy.title,content:paddingButtonMy.content,created_at:paddingButtonMy.created_at,updated_at:paddingButtonMy.updated_at},"fb-send-message":{item_id:paddingButtonMy.item_id,created_at:paddingButtonMy.created_at,updated_at:paddingButtonMy.updated_at},"list-toggle":{item_id:paddingButtonMy.item_id,title:paddingButtonMy.title,content:paddingButtonMy.content,created_at:paddingButtonMy.created_at,updated_at:paddingButtonMy.updated_at},"del-my-toggle":{item_id:paddingButtonMy.item_id,user_display_name:paddingButtonMy.user_display_name,title:paddingButtonMy.title,content:paddingButtonMy.content,created_at:paddingButtonMy.created_at,updated_at:paddingButtonMy.updated_at},"item-edit-toggle":{item_id:paddingButtonMy.item_id}};return paddingButtonMy}function paddingButtonMyPosts(paddingButtonMyPosts){paddingButtonMyPosts.showcaseButton={"contact-toggle":{item_id:paddingButtonMyPosts.item_id,title:paddingButtonMyPosts.title,content:paddingButtonMyPosts.content,created_at:paddingButtonMyPosts.created_at,updated_at:paddingButtonMyPosts.updated_at},"fb-send-message":{item_id:paddingButtonMyPosts.item_id,created_at:paddingButtonMyPosts.created_at,updated_at:paddingButtonMyPosts.updated_at},"list-toggle":{item_id:paddingButtonMyPosts.item_id,title:paddingButtonMyPosts.title,content:paddingButtonMyPosts.content,created_at:paddingButtonMyPosts.created_at,updated_at:paddingButtonMyPosts.updated_at},"del-my-post-toggle":{item_id:paddingButtonMyPosts.item_id,user_display_name:paddingButtonMyPosts.user_display_name,title:paddingButtonMyPosts.title,content:paddingButtonMyPosts.content,created_at:paddingButtonMyPosts.created_at,updated_at:paddingButtonMyPosts.updated_at}};return paddingButtonMyPosts}function paddingUserInfo(paddingUserInfo){if(!$.isEmptyObject(paddingUserInfo)){var trueUserInfo={};if(!$.isEmptyObject(paddingUserInfo.user_id)){trueUserInfo.user_id=paddingUserInfo.user_id}else{trueUserInfo.user_id=""}if(!$.isEmptyObject(paddingUserInfo.user_email)){trueUserInfo.user_email=paddingUserInfo.user_email}else{trueUserInfo.user_email=""}if(!$.isEmptyObject(paddingUserInfo.user_display_name)){trueUserInfo.user_display_name=paddingUserInfo.user_display_name}else{trueUserInfo.user_display_name=""}if(!$.isEmptyObject(paddingUserInfo.item_user_display_name)){trueUserInfo.item_user_display_name=paddingUserInfo.item_user_display_name}else{}if(!$.isEmptyObject(paddingUserInfo.post_user_display_name)){trueUserInfo.post_user_display_name=paddingUserInfo.post_user_display_name}else{}if(!$.isEmptyObject(paddingUserInfo.user_first_name)){trueUserInfo.user_first_name=paddingUserInfo.user_first_name}else{trueUserInfo.user_first_name=""}if(!$.isEmptyObject(paddingUserInfo.user_last_name)){trueUserInfo.user_last_name=paddingUserInfo.user_last_name}else{trueUserInfo.user_last_name=""}if(!$.isEmptyObject(paddingUserInfo.user_link)){trueUserInfo.user_link=paddingUserInfo.user_link}else{trueUserInfo.user_link=""}if(!$.isEmptyObject(paddingUserInfo.user_gender)){trueUserInfo.user_gender=paddingUserInfo.user_gender}else{trueUserInfo.user_gender=""}if(!$.isEmptyObject(paddingUserInfo.user_birthday)){trueUserInfo.user_birthday=paddingUserInfo.user_birthday}else{trueUserInfo.user_birthday=""}if(!$.isEmptyObject(paddingUserInfo.user_locale)){trueUserInfo.user_locale=paddingUserInfo.user_locale}else{trueUserInfo.user_locale=""}if(!$.isEmptyObject(paddingUserInfo.user_picture)&&paddingUserInfo.user_picture!==null){trueUserInfo.user_picture=paddingUserInfo.user_picture}else{trueUserInfo.user_picture="nonname.jpg"}if(!$.isEmptyObject(paddingUserInfo.item_user_picture)){trueUserInfo.item_user_picture=paddingUserInfo.item_user_picture}else{}if(!$.isEmptyObject(paddingUserInfo.post_user_picture)){trueUserInfo.post_user_picture=paddingUserInfo.post_user_picture}else{}if(!$.isEmptyObject(paddingUserInfo.spring)){trueUserInfo.spring=paddingUserInfo.spring}else{trueUserInfo.spring=""}if(!$.isEmptyObject(paddingUserInfo.item_spring)){trueUserInfo.item_spring=paddingUserInfo.item_spring}else{trueUserInfo.item_spring=""}if(!$.isEmptyObject(paddingUserInfo.post_spring)){trueUserInfo.post_spring=paddingUserInfo.post_spring}else{trueUserInfo.post_spring=""}if(!$.isEmptyObject(paddingUserInfo.facebook)){trueUserInfo.facebook=paddingUserInfo.facebook}else{trueUserInfo.facebook=""}if(!$.isEmptyObject(paddingUserInfo.google)){trueUserInfo.google=paddingUserInfo.google}else{trueUserInfo.google=""}if(!$.isEmptyObject(paddingUserInfo.microsoft)){trueUserInfo.microsoft=paddingUserInfo.microsoft}else{trueUserInfo.microsoft=""}if(!$.isEmptyObject(paddingUserInfo.last_login)){trueUserInfo.last_login=paddingUserInfo.last_login}else{trueUserInfo.last_login=""}if(!$.isEmptyObject(paddingUserInfo.last_active)){trueUserInfo.last_active=paddingUserInfo.last_active}else{trueUserInfo.last_active=""}if(!$.isEmptyObject(paddingUserInfo.user_cover)){trueUserInfo.user_cover=paddingUserInfo.user_cover}else{trueUserInfo.user_cover=getRandomCover()}if(!$.isEmptyObject(paddingUserInfo.user_cover_top)){trueUserInfo.user_cover_top=paddingUserInfo.user_cover_top}else{trueUserInfo.user_cover_top=getRandomCover()}if(!$.isEmptyObject(paddingUserInfo.country)){trueUserInfo.country=paddingUserInfo.country}else{trueUserInfo.country=""}if(!$.isEmptyObject(paddingUserInfo.city)){trueUserInfo.city=paddingUserInfo.city}else{trueUserInfo.city=""}if(!$.isEmptyObject(paddingUserInfo.bio)){trueUserInfo.bio=paddingUserInfo.bio}else{trueUserInfo.bio=""}if(!$.isEmptyObject(paddingUserInfo.slogan)){trueUserInfo.slogan=paddingUserInfo.slogan}else{trueUserInfo.slogan=""}if(!$.isEmptyObject(paddingUserInfo.item_id)){trueUserInfo.item_id=paddingUserInfo.item_id}else{trueUserInfo.item_id=""}if(!$.isEmptyObject(paddingUserInfo.post_id)){trueUserInfo.post_id=paddingUserInfo.post_id}else{trueUserInfo.post_id=""}if(!$.isEmptyObject(paddingUserInfo.type)){trueUserInfo.type=paddingUserInfo.type}else{trueUserInfo.type=""}if(!$.isEmptyObject(paddingUserInfo.item_count_show)){trueUserInfo.item_count_show=paddingUserInfo.item_count_show}else{trueUserInfo.item_count_show=""}if(!$.isEmptyObject(paddingUserInfo.post_type)){trueUserInfo.post_type=paddingUserInfo.post_type}else{trueUserInfo.post_type=""}if(!$.isEmptyObject(paddingUserInfo.video)){trueUserInfo.video=paddingUserInfo.video}else{trueUserInfo.video=""}if(!$.isEmptyObject(paddingUserInfo.src)){trueUserInfo.src=paddingUserInfo.src}else{trueUserInfo.src=""}if(!$.isEmptyObject(paddingUserInfo.message_id)){trueUserInfo.message_id=paddingUserInfo.message_id}else{trueUserInfo.message_id=""}if(!$.isEmptyObject(paddingUserInfo.created_at)){trueUserInfo.created_at=paddingUserInfo.created_at}else{trueUserInfo.created_at=null}if(!$.isEmptyObject(paddingUserInfo.updated_at)){trueUserInfo.updated_at=paddingUserInfo.updated_at}else{trueUserInfo.updated_at=null}if(!$.isEmptyObject(paddingUserInfo.title)){trueUserInfo.title=paddingUserInfo.title}else{trueUserInfo.title=""}if(!$.isEmptyObject(paddingUserInfo.content)){trueUserInfo.content=paddingUserInfo.content}else{trueUserInfo.content=""}if(!$.isEmptyObject(paddingUserInfo.to_user_id)){trueUserInfo.to_user_id=paddingUserInfo.to_user_id}else{trueUserInfo.to_user_id=""}if(!$.isEmptyObject(paddingUserInfo.from_user_id)){trueUserInfo.from_user_id=paddingUserInfo.from_user_id}else{trueUserInfo.from_user_id=""}if(!$.isEmptyObject(paddingUserInfo.from_user_display_name)){trueUserInfo.from_user_display_name=paddingUserInfo.from_user_display_name}else{trueUserInfo.from_user_display_name=""}if(!$.isEmptyObject(paddingUserInfo.from_user_name)){trueUserInfo.from_user_name=paddingUserInfo.from_user_name}else{trueUserInfo.from_user_name=""}if(!$.isEmptyObject(paddingUserInfo.recipients)){trueUserInfo.recipients=paddingUserInfo.recipients}else{trueUserInfo.recipients=""}if(!$.isEmptyObject(paddingUserInfo.conference_id)){trueUserInfo.conference_id=paddingUserInfo.conference_id}else{trueUserInfo.conference_id=""}if(!$.isEmptyObject(paddingUserInfo.dbs_type)){trueUserInfo.dbs_type=paddingUserInfo.dbs_type}else{trueUserInfo.dbs_type=""}if(!$.isEmptyObject(paddingUserInfo.href)){trueUserInfo.href=paddingUserInfo.href}else{trueUserInfo.href=""}if(!$.isEmptyObject(paddingUserInfo.image)){trueUserInfo.image=origin_img_vide_me+paddingUserInfo.image}else{trueUserInfo.image=getRandomImage()}if(!$.isEmptyObject(paddingUserInfo.cover)){trueUserInfo.cover=paddingUserInfo.cover}else{trueUserInfo.cover=""}if(!$.isEmptyObject(paddingUserInfo.cover_video)){trueUserInfo.cover_video=paddingUserInfo.cover_video}else{trueUserInfo.cover_video=""}if(!$.isEmptyObject(paddingUserInfo.started_at)){trueUserInfo.started_at=paddingUserInfo.started_at}else{trueUserInfo.started_at=""}if(!$.isEmptyObject(paddingUserInfo.stopped_at)){trueUserInfo.stopped_at=paddingUserInfo.stopped_at}else{trueUserInfo.stopped_at=""}if(!$.isEmptyObject(paddingUserInfo.item_country)){trueUserInfo.item_country=paddingUserInfo.item_country}else{trueUserInfo.item_country=""}if(!$.isEmptyObject(paddingUserInfo.item_city)){trueUserInfo.item_city=paddingUserInfo.item_city}else{trueUserInfo.item_city=""}if(!$.isEmptyObject(paddingUserInfo.place)){trueUserInfo.place=paddingUserInfo.place}else{trueUserInfo.place=""}if(!$.isEmptyObject(paddingUserInfo.access)){trueUserInfo.access=paddingUserInfo.access}else{trueUserInfo.access=null}if(!$.isEmptyObject(paddingUserInfo.date)){trueUserInfo.date=timeToWord(paddingUserInfo.date)}else{trueUserInfo.date=""}if(!$.isEmptyObject(paddingUserInfo.additional)){trueUserInfo.additional=paddingUserInfo.additional}else{trueUserInfo.additional=""}if(!$.isEmptyObject(paddingUserInfo.count)){trueUserInfo.count=paddingUserInfo.count}else{trueUserInfo.count=""}if(!$.isEmptyObject(paddingUserInfo.tags)){trueUserInfo.tags=paddingUserInfo.tags}else{trueUserInfo.tags=""}if(!$.isEmptyObject(paddingUserInfo.array_tags)){trueUserInfo.array_tags=paddingUserInfo.array_tags}else{trueUserInfo.array_tags=""}if(!$.isEmptyObject(paddingUserInfo.tag)){trueUserInfo.tag=paddingUserInfo.tag}else{trueUserInfo.tag=""}if(!$.isEmptyObject(paddingUserInfo.tag_count)){trueUserInfo.tag_count=paddingUserInfo.tag_count}else{trueUserInfo.tag_count=""}if(!$.isEmptyObject(paddingUserInfo.tags_count)){trueUserInfo.tags_count=paddingUserInfo.tags_count}else{trueUserInfo.tags_count=""}if(!$.isEmptyObject(paddingUserInfo.tags_conf)){trueUserInfo.tags_conf=paddingUserInfo.tags_conf}else{trueUserInfo.tags_conf=""}if(!$.isEmptyObject(paddingUserInfo.user_tags_conf)){trueUserInfo.user_tags_conf=paddingUserInfo.user_tags_conf}else{trueUserInfo.user_tags_conf=""}if(!$.isEmptyObject(paddingUserInfo.user_tags_conf_new)){trueUserInfo.user_tags_conf_new=paddingUserInfo.user_tags_conf_new}else{trueUserInfo.user_tags_conf_new=""}if(!$.isEmptyObject(paddingUserInfo.tags_conf_count)){trueUserInfo.tags_conf_count=paddingUserInfo.tags_conf_count}else{trueUserInfo.tags_conf_count=0}if(!$.isEmptyObject(paddingUserInfo.tags_view_count)){trueUserInfo.tags_view_count=paddingUserInfo.tags_view_count}else{trueUserInfo.tags_view_count=0}if(!$.isEmptyObject(paddingUserInfo.ext_links)){trueUserInfo.ext_links=paddingUserInfo.ext_links}else{trueUserInfo.ext_links=""}if(!$.isEmptyObject(paddingUserInfo.album_id)){trueUserInfo.album_id=paddingUserInfo.album_id}else{trueUserInfo.album_id=""}if(!$.isEmptyObject(paddingUserInfo.album)){trueUserInfo.album=paddingUserInfo.album}else{trueUserInfo.album=""}if(!$.isEmptyObject(paddingUserInfo.dropdown)){trueUserInfo.dropdown=paddingUserInfo.dropdown}else{trueUserInfo.dropdown=""}if(!$.isEmptyObject(paddingUserInfo.buttons)){trueUserInfo.buttons=paddingUserInfo.buttons}else{trueUserInfo.buttons=""}if(!$.isEmptyObject(paddingUserInfo.footer)){trueUserInfo.footer=paddingUserInfo.footer}else{trueUserInfo.footer=""}if(!$.isEmptyObject(paddingUserInfo.from_user_id)){trueUserInfo.from_user_id=paddingUserInfo.from_user_id}else{trueUserInfo.from_user_id=""}if(!$.isEmptyObject(paddingUserInfo.relation_email)){trueUserInfo.relation_email=paddingUserInfo.relation_email}else{trueUserInfo.relation_email=""}if(!$.isEmptyObject(paddingUserInfo.relation)){trueUserInfo.relation=paddingUserInfo.relation}else{trueUserInfo.relation=""}if(!$.isEmptyObject(paddingUserInfo.post_owner_id)){trueUserInfo.post_owner_id=paddingUserInfo.post_owner_id}else{trueUserInfo.post_owner_id=""}if(!$.isEmptyObject(paddingUserInfo.posts_count)){trueUserInfo.posts_count=paddingUserInfo.posts_count}else{trueUserInfo.posts_count=""}if(!$.isEmptyObject(paddingUserInfo.video_duration)){trueUserInfo.video_duration=paddingUserInfo.video_duration}else{trueUserInfo.video_duration=""}if(!$.isEmptyObject(paddingUserInfo.width)){trueUserInfo.width=paddingUserInfo.width}else{trueUserInfo.width=""}if(!$.isEmptyObject(paddingUserInfo.height)){trueUserInfo.height=paddingUserInfo.height}else{trueUserInfo.height=""}if(!$.isEmptyObject(paddingUserInfo.task_id)){trueUserInfo.task_id=paddingUserInfo.task_id}else{trueUserInfo.task_id=""}if(!$.isEmptyObject(paddingUserInfo.task_status)){trueUserInfo.task_status=paddingUserInfo.task_status}else{trueUserInfo.task_status=""}if(!$.isEmptyObject(paddingUserInfo.task_type)){trueUserInfo.task_type=paddingUserInfo.task_type}else{trueUserInfo.task_type=""}if(!$.isEmptyObject(paddingUserInfo.task_item_id)){trueUserInfo.task_item_id=paddingUserInfo.task_item_id}else{trueUserInfo.task_item_id=""}if(!$.isEmptyObject(paddingUserInfo.percentage)){trueUserInfo.percentage=paddingUserInfo.percentage}else{trueUserInfo.percentage=""}if(!$.isEmptyObject(paddingUserInfo.icon)){trueUserInfo.icon=paddingUserInfo.icon}else{trueUserInfo.icon=""}if(!$.isEmptyObject(paddingUserInfo.relation_email)){trueUserInfo.relation_email=paddingUserInfo.relation_email}else{trueUserInfo.relation_email=""}if(!$.isEmptyObject(paddingUserInfo.likes_count)){trueUserInfo.likes_count=paddingUserInfo.likes_count}else{trueUserInfo.likes_count=""}if(!$.isEmptyObject(paddingUserInfo.its_like)){trueUserInfo.its_like=paddingUserInfo.its_like}else{trueUserInfo.its_like=""}if(!$.isEmptyObject(paddingUserInfo.reposts_count)){trueUserInfo.reposts_count=paddingUserInfo.reposts_count}else{trueUserInfo.reposts_count=""}if(!$.isEmptyObject(paddingUserInfo.type_item)){trueUserInfo.type_item=paddingUserInfo.type_item}else{trueUserInfo.type_item=""}if(!$.isEmptyObject(paddingUserInfo.count_view)){trueUserInfo.count_view=paddingUserInfo.count_view}else{trueUserInfo.count_view=""}if(paddingUserInfo.embed){trueUserInfo.embed=paddingUserInfo.embed}else{trueUserInfo.embed=false}if(!$.isEmptyObject(paddingUserInfo.stars_count)){trueUserInfo.stars_count=paddingUserInfo.stars_count}else{trueUserInfo.stars_count=false}if(paddingUserInfo.views_stars){trueUserInfo.views_stars=paddingUserInfo.views_stars}else{trueUserInfo.views_stars=false}if(paddingUserInfo.pre_v_w320){trueUserInfo.pre_v_w320=paddingUserInfo.pre_v_w320}else{trueUserInfo.pre_v_w320=false}if(paddingUserInfo.pre_i_w320){trueUserInfo.pre_i_w320=paddingUserInfo.pre_i_w320}else{trueUserInfo.pre_i_w320=false}if(paddingUserInfo.spr_w120){trueUserInfo.spr_w120=paddingUserInfo.spr_w120}else{trueUserInfo.spr_w120=false}if(paddingUserInfo.vtt_w120){trueUserInfo.vtt_w120=paddingUserInfo.vtt_w120}else{trueUserInfo.vtt_w120=false}if(paddingUserInfo.albums_sets_id){trueUserInfo.albums_sets_id=paddingUserInfo.albums_sets_id}else{trueUserInfo.albums_sets_id=""}if(paddingUserInfo.albums_title){trueUserInfo.albums_title=paddingUserInfo.albums_title}else{trueUserInfo.albums_title=""}if(!$.isEmptyObject(paddingUserInfo.ue_id)){trueUserInfo.ue_id=paddingUserInfo.ue_id}else{trueUserInfo.ue_id=""}if(!$.isEmptyObject(paddingUserInfo.ure_id)){trueUserInfo.ure_id=paddingUserInfo.ure_id}else{trueUserInfo.ure_id=""}if(!$.isEmptyObject(paddingUserInfo.owner_display_name)){trueUserInfo.owner_display_name=paddingUserInfo.owner_display_name}else{trueUserInfo.owner_display_name=""}if(!$.isEmptyObject(paddingUserInfo.owner_picture)){trueUserInfo.owner_picture=paddingUserInfo.owner_picture}else{trueUserInfo.owner_picture=""}if(!$.isEmptyObject(paddingUserInfo.owner_spring)){trueUserInfo.owner_spring=paddingUserInfo.owner_spring}else{trueUserInfo.owner_spring=""}if(!$.isEmptyObject(paddingUserInfo.essence_title)){trueUserInfo.essence_title=paddingUserInfo.essence_title}else{trueUserInfo.essence_title=""}if(!$.isEmptyObject(paddingUserInfo.ref_title)){trueUserInfo.ref_title=paddingUserInfo.ref_title}else{trueUserInfo.ref_title=""}if(!$.isEmptyObject(paddingUserInfo.ip_id)){trueUserInfo.ip_id=paddingUserInfo.ip_id}else{trueUserInfo.ip_id=""}if(!$.isEmptyObject(paddingUserInfo.partner_id)){trueUserInfo.partner_id=paddingUserInfo.partner_id}else{trueUserInfo.partner_id=""}if(!$.isEmptyObject(paddingUserInfo.partner_spring)){trueUserInfo.partner_spring=paddingUserInfo.partner_spring}else{trueUserInfo.partner_spring=""}if(!$.isEmptyObject(paddingUserInfo.partner_user_display_name)){trueUserInfo.partner_user_display_name=paddingUserInfo.partner_user_display_name}else{trueUserInfo.partner_user_display_name=""}if(!$.isEmptyObject(paddingUserInfo.partner_user_picture)){trueUserInfo.partner_user_picture=paddingUserInfo.partner_user_picture}else{trueUserInfo.partner_user_picture=""}if(!$.isEmptyObject(paddingUserInfo.partner_country)){trueUserInfo.partner_country=paddingUserInfo.partner_country}else{trueUserInfo.partner_country=""}if(!$.isEmptyObject(paddingUserInfo.partner_city)){trueUserInfo.partner_city=paddingUserInfo.partner_city}else{trueUserInfo.partner_city=""}if(!$.isEmptyObject(paddingUserInfo.additional_item)){trueUserInfo.additional_item=paddingUserInfo.additional_item}else{trueUserInfo.additional_item=""}if(!$.isEmptyObject(paddingUserInfo.partner_status)){trueUserInfo.partner_status=paddingUserInfo.partner_status}else{trueUserInfo.partner_status=""}if(!$.isEmptyObject(paddingUserInfo.its_my_pend)){trueUserInfo.its_my_pend=paddingUserInfo.its_my_pend}else{trueUserInfo.its_my_pend=""}if(!$.isEmptyObject(paddingUserInfo.status)){trueUserInfo.status=paddingUserInfo.status}else{trueUserInfo.status=""}return trueUserInfo}else{return false}}function parseDropdown(actionUrlClass,key,value){var my_item_edit_type="";switch(value.type){case"artilce":if(value.post_type=="update")my_item_edit_type="edit_my_article";break;case"video":if(value.post_type=="update")my_item_edit_type="edit_my_video";break;case"image":if(value.post_type=="update")my_item_edit_type="edit_my_video";break;case"event":if(value.post_type=="update")my_item_edit_type="edit_my_event";break;default:}if(actionUrlClass=="file-my-url"){value.dropdown={dd_item_1:"edit_my_video",dd_item_2:"send",dd_item_3:"share",dd_item_4:"delete",dd_item_5:"copy_link"};value.key=key;value=paddingButtonMy(value)}if(actionUrlClass=="article-my-url"){value.dropdown={dd_item_1:"edit_my_article",dd_item_2:"send",dd_item_3:"share",dd_item_4:"delete",dd_item_5:"copy_link"};value.key=key;value=paddingButtonMy(value)}if(actionUrlClass=="event-url"){value.dropdown={dd_item_1:"edit_my_event",dd_item_2:"send",dd_item_3:"share",dd_item_4:"delete_my_event",dd_item_5:"copy_link"};value.key=key;value=paddingButtonMy(value)}if(actionUrlClass=="post-my-url"){value.dropdown={dd_item_1:"send",dd_item_2:"share",dd_item_3:my_item_edit_type,dd_item_4:"delete_my_post",dd_item_5:"copy_link"};value.key=key;value=paddingButtonMy(value)}if(actionUrlClass=="partner-req-url"){value.dropdown={dd_item_1:"send",dd_item_2:"share",dd_item_3:my_item_edit_type,dd_item_4:"delete_my_partner_req",dd_item_5:"copy_link"};value.key=key;value=paddingButtonMy(value)}if(actionUrlClass=="album-manage-url"){value.dropdown={dd_item_1:"send",dd_item_2:"share",dd_item_3:"delete_my_album_set",dd_item_4:"copy_link"};value.key=key;value=paddingButtonMy(value)}if(actionUrlClass=="file-inbox-url"){value.dropdown={dd_item_1:"send",dd_item_2:share,dd_item_3:"delete"};value.key=key;value=paddingButtonInbox(value)}if(actionUrlClass=="message-inbox-url"){value.dropdown={dd_item_1:"send",dd_item_2:share,dd_item_3:"delete_inbox"};value.key=key;value=paddingButtonInbox(value)}if(actionUrlClass=="file-sent-url"){value.dropdown={dd_item_1:"send",dd_item_2:share,dd_item_3:"delete"};value.key=key;value=paddingButtonSent(value)}if(actionUrlClass=="message-sent-url"){value.dropdown={dd_item_1:"send",dd_item_2:share,dd_item_3:"delete_sent"};value.key=key;value=paddingButtonSent(value)}if(actionUrlClass=="showmulti"){}if(actionUrlClass=="shownext"){value.dropdown={dd_item_1:"send",dd_item_2:share};value.key=key;value=paddingButtonSent(value)}if(actionUrlClass=="file-spring-url"){value.dropdown={dd_item_1:"send",dd_item_2:share};value.key=key;value=paddingButtonSent(value)}if(actionUrlClass=="article"){value.dropdown={dd_item_1:"send",dd_item_2:share};value.key=key;value=paddingButtonSent(value)}if(actionUrlClass=="item-card"){value.dropdown={}}return value}function itemTileParamFirstSet(value){var retFirstSet=[];if(!$.isEmptyObject(value.user_display_name)){retFirstSet.user_display_name=value.user_display_name}if(!$.isEmptyObject(value.item_user_display_name)){retFirstSet.user_display_name=value.item_user_display_name}if(!$.isEmptyObject(value.item_user_display_name)&&value.post_type!="update"&&value.post_type!="update_user_picture"&&value.post_type!="update_user_cover"&&value.post_type!="user_cover_top"){retFirstSet.item_user_display_name=value.item_user_display_name}if(!$.isEmptyObject(value.item_user_picture)&&value.post_type!="update"&&value.post_type!="update_user_picture"&&value.post_type!="update_user_cover"&&value.post_type!="user_cover_top"){retFirstSet.item_user_picture=value.item_user_picture}if(!$.isEmptyObject(value.item_spring)&&value.post_type!="update"&&value.post_type!="update_user_picture"&&value.post_type!="update_user_cover"&&value.post_type!="user_cover_top"){retFirstSet.item_spring=value.item_spring}if(!$.isEmptyObject(value.post_user_display_name)){retFirstSet.post_user_display_name=value.post_user_display_name}else{retFirstSet.post_user_display_name=value.user_display_name}if(!$.isEmptyObject(value.post_user_picture)){retFirstSet.post_user_picture=value.post_user_picture}else{retFirstSet.post_user_picture=value.user_picture}if(!$.isEmptyObject(value.post_spring)){retFirstSet.post_spring=value.post_spring}else{retFirstSet.post_spring=value.spring}if(!$.isEmptyObject(value.post_user_picture)){retFirstSet.post_user_picture=value.post_user_picture}if(!$.isEmptyObject(value.post_spring)){retFirstSet.post_spring=value.post_spring}if(!$.isEmptyObject(value.user_tags_conf)){retFirstSet.user_tags_conf='<div class="videme-tile-v3-user-tags-conf d-flex text-muted"><div class="videme-tile-v3-user-tags-conf-icon"><i class="fa fa-check-circle-o" aria-hidden="true"></i></div><div class="videme-tile-v3-user-tags-conf-val">'+value.user_tags_conf+"</div></div>"}else{retFirstSet.user_tags_conf=""}if(!$.isEmptyObject(value.user_tags_conf_new)){if(value.user_tags_conf_new>0){retFirstSet.user_tags_conf_new='<div class="badge badge-pill videme-badge-for-tile" >\n'+'<i class="fa fa-check-circle-o fa-lg"></i>\n'+'<span class="badge badge-light videme_nav_badge_tags_conf_count spring_activity_tags_confirmed_value">+'+value.user_tags_conf_new+"</span>\n"+"</div>"}else{retFirstSet.user_tags_conf_new=""}}else{retFirstSet.user_tags_conf_new=""}if(!$.isEmptyObject(value.started_at)){retFirstSet.started_at=value.started_at}if(!$.isEmptyObject(value.stopped_at)){retFirstSet.stopped_at=value.stopped_at}if(value.likes_count==0){retFirstSet.likes=""}else{retFirstSet.likes=value.likes_count}if(value.reposts_count==0){retFirstSet.reposts_count=""}else{retFirstSet.reposts_count=value.reposts_count}return retFirstSet}function itemTileParamSet(value){var retSet=[];var pgwBrowser=$.pgwBrowser();retSet.item_video=value.item_id;retSet.item_type="";if(value.type==="article"){if(value.post_id&&value.post_id!="undefined"){retSet.href="https://www.vide.me/a/?a="+value.href+"&post_id="+value.post_id}else{retSet.href="https://www.vide.me/a/?a="+value.href}retSet.img=origin_img_vide_me+value.cover;retSet.trueActionClass="article-url";retSet.videme_tile_class="videme_tile_box_img";retSet.videme_tile_boxInner_class="videme_tile_boxInner_img";retSet.mainInsert="<img class='videme_tile_img_class' src='"+retSet.img+"' alt=''></img>";retSet.item_type="article"}else if(value.type==="video"){if(value.message_id&&value.message_id!="undefined"){retSet.href="https://www.vide.me/v?m="+value.href+"&message_id="+value.message_id}else{retSet.href="https://www.vide.me/v?m="+value.href}if(value.post_id&&value.post_id!="undefined"){retSet.href="https://www.vide.me/v?m="+value.href+"&post_id="+value.post_id}else{retSet.href="https://www.vide.me/v?m="+value.href}if(!$.isEmptyObject(value.ip_id)){retSet.href="https://www.vide.me/v?m="+value.item_id+"&ip_id="+value.ip_id}else{retSet.href="https://www.vide.me/v?m="+value.item_id}if(!$.isEmptyObject(value.pre_i_w320)){if(!$.isEmptyObject(value.cover)){retSet.img=origin_img_vide_me+value.cover}else{retSet.img=origin_pre_image_w320_vide_me+value.item_id+"-pre-i-w320.jpg"}}else{if(!$.isEmptyObject(value.cover)){retSet.img=origin_img_vide_me+value.cover}else{retSet.img=origin_img_vide_me+value.item_id+".jpg"}}if(!$.isEmptyObject(value.width)&&!$.isEmptyObject(value.height)){retSet.aspect_percent=Math.round(value.width/100);retSet.height_percent=Math.round(value.height/retSet.aspect_percent);console.log("css_aspect_percent "+value.css_aspect_percent)}retSet.trueActionClass="multi_video";if(pgwBrowser.os.group!=="Android"&&pgwBrowser.browser.group!=="Chrome"){retSet.source_src="<source src='"+origin_video_vide_me+retSet.item_video+".m3u8' type='application/x-mpegURL'>"}if(!$.isEmptyObject(value.pre_v_w320)){retSet.video_thumbnail='<div class="videme-v4-tile-video_thumbnail-outer"><div class="videme-v4-tile-video_thumbnail-middle"><div class="videme-v4-tile-video_thumbnail-inner"><video item_id="'+value.item_id+'" src="" poster="'+retSet.img+'" loop muted class="videme-v4-tile-video"></video></div></div></div>'+'<div class="progress videme-v4-tile-video_thumbnail-load-progress hidden" id="videme-v4-tile-video_thumbnail-load-progress-item-'+value.item_id+'">'+' <div class="progress-bar bg-danger" role="progressbar" aria-valuenow="0" aria-valuemin="0" aria-valuemax="100" id="videme-v4-tile-video_thumbnail-load-progress-item-now-'+value.item_id+'"></div>'+"</div>"}else{}}else if(value.type==="image"){if(value.message_id&&value.message_id!="undefined"){retSet.href="https://www.vide.me/i/?i="+value.href+"&message_id="+value.message_id}else{retSet.href="https://www.vide.me/i/?i="+value.href}if(value.post_id&&value.post_id!="undefined"){retSet.href="https://www.vide.me/i/?i="+value.href+"&post_id="+value.post_id}else{retSet.href="https://www.vide.me/i/?i="+value.href}retSet.img=origin_img_vide_me+value.cover;retSet.trueActionClass="image-url";retSet.videme_tile_class="videme_tile_box_img";retSet.videme_tile_boxInner_class="videme_tile_boxInner_img";retSet.mainInsert="<img class='videme_tile_img_class' src='"+retSet.img+"' alt=''></img>";retSet.item_type="image"}else if(value.type==="event"){if(!$.isEmptyObject(value.cover)){retSet.img=origin_img_vide_me+value.cover;retSet.trueActionClass="event_go_url";retSet.videme_tile_class="videme_tile_box_img";retSet.videme_tile_boxInner_class="videme_tile_boxInner_img";retSet.mainInsert="<img class='videme_tile_img_class' src='"+retSet.img+"' alt=''></img>"}if(!$.isEmptyObject(value.cover_video)){if(!$.isEmptyObject(value.cover)){retSet.img=origin_img_vide_me+value.cover}else{retSet.img=origin_img_vide_me+value.cover_video+".jpg"}retSet.trueActionClass="multi_video";if(pgwBrowser.os.group!=="Android"&&pgwBrowser.browser.group!=="Chrome"){retSet.source_src="<source src='"+origin_video_vide_me+retSet.item_video+".m3u8' type='application/x-mpegURL'>"}retSet.its_video=true;retSet.item_video=value.cover_video}if(!$.isEmptyObject(value.post_id)){retSet.href="https://www.vide.me/a/?e="+value.item_id+"&post_id="+value.post_id}else{retSet.href="https://www.vide.me/a/?e="+value.item_id}retSet.item_type="event"}if(!$.isEmptyObject(value.src)){var array_src=[];array_src=$.parseJSON(value.src);$.each(array_src,function(key,value){retSet.source_src+='<source src="'+origin_video_vide_me+value+'" type="video/mp4">'})}return retSet}function itemTileElementReturn(tempObject,key,value,actionUrlClass,href,img,user_display_name,post_spring,post_user_picture,video_thumbnail,item_type,post_user_display_name,user_tags_conf,user_tags_conf_new){tempObject.append('<div class="ms-1 me-1 mb-2 videme-tile-v3-card">'+itemTileElementCardA(tempObject,key,value,actionUrlClass,href,img,user_display_name,post_spring,post_user_picture,video_thumbnail,item_type,post_user_display_name,user_tags_conf_new)+'<div class="videme-tile-v3-card-block">'+itemTileElementCardTitle(value,href)+itemTileElementCardUserCard(value,post_spring,post_user_picture,post_user_display_name,user_tags_conf)+'<div class="videme-tile-v3-card-footer">'+"\x3c!---<small>Last updated 3 mins ago</small>"+'<button class="btn btn-info float-right btn-sm">Follow</button>--\x3e'+showItemInfoV3(value)+'<div class="show_action_button_showcase videme-v3-item-action-button">'+showDropdownForDoorbelSignV3(value)+"</div>"+"</div>"+"</div>"+"</div>")}function itemTileElementCardA(tempObject,key,value,actionUrlClass,href,img,user_display_name,post_spring,post_user_picture,video_thumbnail,item_type,post_user_display_name,user_tags_conf_new){return'<a class="'+actionUrlClass+'"'+' action_url_class="'+actionUrlClass+'"'+' video="'+value.video+'"'+' type="'+value.type+'"'+' message_id="'+value.message_id+'"'+' user_display_name="'+user_display_name+'"'+' created_at="'+value.created_at+'"'+' updated_at="'+value.updated_at+'"'+' title="'+value.title+'"'+' content="'+value.content+'"'+' cover="'+value.cover+'"'+' item_id="'+value.item_id+'"'+' post_id="'+value.post_id+'"'+' spring="'+post_spring+'"'+' user_picture = "'+post_user_picture+'"'+' to_user_id="'+value.to_user_id+'"'+' from_user_id="'+value.from_user_id+'"'+' from_user_display_name="'+value.from_user_display_name+'"'+' from_user_name="'+value.user_display_name+'"'+' file="'+value.item_id+'"'+' video_duration="'+value.video_duration+'"'+' item_count_show="'+value.item_count_show+'"'+' access="'+value.access+'"'+' href="'+href+'" id="el_'+key+'">'+'<div class="videme-tile-v3-wrap-card-img-top" style="background-image: url(\''+img+"')\">"+'\x3c!--<img class="videme-tile-v3-card-img-top" src="'+img+'"/>--\x3e'+video_thumbnail+'<div class="videme-tile-v3-card-item-type">'+item_type+"</div>"+user_tags_conf_new+"</div>"+"</a>"}function itemMediaListImage(img){return'<img src="'+img+'" class="img-fluid" alt="">'}function itemTileElementCardTitle(value,href){return'<div class="videme-tile-v3-card-title"><p><span><a class="videme-v3-link shownext" href="'+href+'">'+value.title+"</a></span></p></div>"}function itemTileElementCardUserCard(value,post_spring,post_user_picture,post_user_display_name,user_tags_conf){if(!user_tags_conf)user_tags_conf="";return'<div class="row videme-ralation-card-small222 videme-tile-v3-card-user-place">'+'<div class="col-2 videme-relation-card-1-column222 videme-tile-v3-profile2">'+'<img src="'+origin_img_vide_me+post_user_picture+'" class="rounded-circle videme-relation-card-img-tile-v3 profile-avatar2" alt="">'+"</div>"+'<div class="col-10 videme-relation-card-2-column222">'+'<div class="d-flex justify-content-between align-items-center meta2 videme-tile-v3-card-text-user_display_name2">'+'<a class="videme-v3-link d-flex" href="https://www.vide.me/'+post_spring+'"><div class="videme-tile-user-spring">'+post_user_display_name+"</div>"+user_tags_conf+"</a>"+"</div>"+'<div class="d-flex justify-content-between align-items-center videme-tile-v3-card-text-date"><p><small>'+timeToWord(value.created_at)+"</small></p></div>"+"</div>"+"</div>"}function videoThumbnail(){const videos=document.querySelectorAll("video.videme-v4-tile-video");videos.forEach(video=>{video.addEventListener("mouseover",function(){console.log("showTileTestV4 play");console.log("hoverVideo src "+$(this).data("src"));var $this=this;$(this).attr("src",origin_pre_video_w320_vide_me+$this.getAttribute("item_id")+"-pre-v-w320.mp4");console.log("hoverVideo attr src "+$(this).attr("src"));$("#videme-v4-tile-video_thumbnail-load-progress-item-"+$this.getAttribute("item_id")).removeClass("hidden");this.play()});video.addEventListener("mouseout",function(){this.pause();var $this=this;$("#videme-v4-tile-video_thumbnail-load-progress-item-"+$this.getAttribute("item_id")).addClass("hidden")});video.addEventListener("touchstart",function(){this.play()});video.addEventListener("touchend",function(){this.pause()});video.addEventListener("loadstart",handleEvent);video.addEventListener("progress",handleEvent);video.addEventListener("canplay",handleEvent);video.addEventListener("canplaythrough",handleEvent);video.addEventListener("progress",function(){var loadedPercentagePre=this.buffered.end(0)/this.duration;var $this=this;var loadedPercentage=Math.round(loadedPercentagePre*100);console.log("videoThumbnail addEventListener loadedPercentage ---\x3e "+$this.getAttribute("item_id")+" %"+loadedPercentage);$("#videme-v4-tile-video_thumbnail-load-progress-item-now-"+$this.getAttribute("item_id")).css("width",loadedPercentage+"%").attr("aria-valuenow",loadedPercentage);if(loadedPercentage>90)$("#videme-v4-tile-video_thumbnail-load-progress-item-"+$this.getAttribute("item_id")).addClass("hidden")})})}function handleEvent(event){}function getRandomCover(){var cover=["sunset-1373171_960_720.jpg","fall-leaves-3744649_960_720.jpg","landscape-2090495_960_720.jpg","windrader-1048981_960_720.jpg","wave-3473335_960_720.jpg"];return cover[Math.floor(Math.random()*cover.length)]}function getRandomImage(){var image=["https://kolonial.no/media/uploads/public/132/24/643224-f617a-product_detail.jpg","https://www.freewebheaders.com/wordpress/wp-content/gallery/clouds-sky/clouds-sky-header-2067-1024x300.jpg","https://www.agropopular.com/wp-content/audios_agropopular/2017/04/6naranja-696x708.png"];return image[Math.floor(Math.random()*image.length)]}function paddingButtonMySpring(paddingButtonMySpring){paddingButtonMySpring.showcaseButton={"contact-toggle":{item_id:paddingButtonMySpring.item_id,title:paddingButtonMySpring.title,content:paddingButtonMySpring.content},"fb-send-message":{item_id:paddingButtonMySpring.item_id},"list-toggle":{item_id:paddingButtonMySpring.item_id,title:paddingButtonMySpring.title,content:paddingButtonMySpring.content},"del-sharefile-toggle":{item_id:paddingButtonMySpring.item_id}};return paddingButtonMySpring}function paddingButtonSpring(paddingButtonSpring){console.log("paddingButtonSpring -----\x3e "+JSON.stringify(paddingButtonSpring));paddingButtonSpring.showcaseButton={"contact-toggle":{item_id:paddingButtonSpring.item_id,title:paddingButtonSpring.title,content:paddingButtonSpring.content},"fb-send-message":{item_id:paddingButtonSpring.item_id},"list-toggle":{item_id:paddingButtonSpring.item_id,title:paddingButtonSpring.title,content:paddingButtonSpring.content}};return paddingButtonSpring}function sidebarToggleButton(){$("#videme-sidebar-button-icon").toggleClass("glyphicon-menu-hamburger");$("#videme-sidebar-button-icon").toggleClass("glyphicon-menu-left")}function sidebarToggleHidde(){$(".tmpEvent").animate({right:"0px"},{duration:300,easing:"swing",complete:function(){$(this).removeClass("tmpEvent")}});$(".tmpEventSidebarToggle").animate({left:"0px"},{duration:300,easing:"swing",complete:function(){$(this).removeClass("tmpEvent")}})}function goToUrl(goToUrl){var jqxhr=$.getJSON(goToUrl,function(){console.log("goToUrl success")}).done(function(){console.log("goToUrl second success");return jqxhr}).fail(function(){console.log("goToUrl error")}).always(function(){console.log("goToUrl complete")})}function item_count_add(item_id){var urlI="https://api.vide.me/system/items/item_count_add/?item="+item_id+"&nad="+$.cookie("vide_nad");console.log("item_count_add goToUrl urlI "+urlI);var next_item_id=getParameterByName("m");$.cookie("vide_prev_item_id",next_item_id,{expires:14,path:"/",domain:"vide.me",secure:true});var jqxhr=$.getJSON(urlI,function(jsonData){if(jsonData){console.log("item_count_add goToUrl success");console.log("item_count_add jsonData "+JSON.stringify(jsonData));if(!$.isEmptyObject(jsonData.response)){if(jsonData.response=="new_view"){console.log("item_count_add new_view jsonData.views_stars "+jsonData.views_stars)}}if(!$.isEmptyObject(jsonData.response)){if(jsonData.response=="new_views_stars"){console.log("item_count_add new_views_stars jsonData.views_stars "+jsonData.views_stars);$(".videme_nav_badge_views_stars").addClass("text-danger").html(jsonData.views_stars)}}}}).done(function(){console.log("goToUrl second success")}).fail(function(){console.log("item_count_add goToUrl error")}).always(function(){console.log("item_count_add goToUrl complete")})}function YouTubeGetID(url){var ID="";url=url.replace(/(>|<)/gi,"").split(/(vi\/|v=|\/v\/|youtu\.be\/|\/embed\/)/);if(url[2]!==undefined){ID=url[2].split(/[^0-9a-z_]/i);ID=ID[0]}else{ID=url}return ID}function getRealDate(){var now=new Date;var year=now.getFullYear();var month=now.getMonth()+1;var day=now.getDate();if(month.toString().length==1){var month="0"+month}if(day.toString().length==1){var day="0"+day}var getRealDate=year+"/"+month+"/"+day;return getRealDate}function getRealTime(){var now=new Date;var hour=now.getHours();var minute=now.getMinutes();var second=now.getSeconds();if(hour.toString().length==1){var hour="0"+hour}if(minute.toString().length==1){var minute="0"+minute}if(second.toString().length==1){var second="0"+second}var getRealTime=hour+":"+minute+":"+second;return getRealTime}function timeToWord(timeToWord){var true_created_at=moment(timeToWord);return true_created_at.fromNow()}function periodToWord(startTime,stopTime){var startTimeM=moment(startTime);var stopTimeM=moment(stopTime);console.log("periodToWord startTime ---\x3e"+startTime);console.log("periodToWord startTime .day() ---\x3e"+startTimeM.date());if(startTimeM.year()!==stopTimeM.year()){return startTimeM.format("dddd, MMMM Do YYYY, h:mm:ss a")+" to "+stopTimeM.format("dddd, MMMM Do YYYY, h:mm:ss a")}else{if(startTimeM.date()==1&&stopTimeM.date()==stopTimeM.daysInMonth()){return startTimeM.format("MMMM ")+" to "+stopTimeM.format("MMMM Do YYYY")}else{if(startTimeM.month()!==stopTimeM.month()){return startTimeM.format("dddd, MMMM")+" to "+stopTimeM.format("dddd, MMMM")}else{if(startTimeM.date()==stopTimeM.date()){return startTimeM.format("MMMM, Do")}else{return startTimeM.format("MMMM, Do")+" to "+stopTimeM.format("Do")}}}}}function text_overlay(text_overlay){if($.isEmptyObject(text_overlay.started_at)&&$.isEmptyObject(text_overlay.stopped_at)&&$.isEmptyObject(text_overlay.item_country)&&$.isEmptyObject(text_overlay.item_city)&&$.isEmptyObject(text_overlay.place))return"";var item_country="";var item_city="";var place="";var commonDate="";if(!$.isEmptyObject(text_overlay.started_at)&&!$.isEmptyObject(text_overlay.stopped_at))commonDate=periodToWord(text_overlay.started_at,text_overlay.stopped_at);if(!$.isEmptyObject(text_overlay.item_country))item_country=text_overlay.item_country+", ";if(!$.isEmptyObject(text_overlay.item_city))item_city=text_overlay.item_city+", ";if(!$.isEmptyObject(text_overlay.place))place=text_overlay.place;return'<a class="event_go_url" href="https://www.vide.me/a/?e='+text_overlay.item_id+'"><div class="videme-tile-signboard-overlay">'+'<div class="videme-tile-signboard-overlay-1st">'+item_country+item_city+place+"</div>"+"</br>"+'<div class="videme-tile-signboard-overlay-2nd">'+commonDate+"</div>"+"</div></a>"}function embed_text_overlay(embed_text_overlay){var title=embed_text_overlay.title;var title_embed=title.slice(0,50);return'<a class="event_go_url" target="_blank" href="https://www.vide.me/a/?v='+embed_text_overlay.item_id+'"><div class="videme-tile-signboard-overlay"><div class="videme-tile-signboard-overlay-1st">Vide.me | '+title_embed+"</div></div></a>"}function embed_text_overlay_next(embed_text_overlay_next){var title=embed_text_overlay_next.title;var title_embed=title.slice(0,50);return'<div class="videme-tile-signboard-overlay" style="background-image: url(\''+origin_img_vide_me+embed_text_overlay_next.item_id+".jpg');width: 15em;height: 8em; background-repeat: no-repeat;background-size: 15em auto;\">\n"+'<a class="event_go_url" href="https://www.vide.me/v?m='+embed_text_overlay_next.item_id+'" style="left: 4px;position: absolute;right: 4px;top: 4px;">\n'+'<div class="videme-tile-signboard-overlay-1st" style="float: right">'+title_embed+"</div>\n"+"</a>\n"+'<div id="countdownCancel" style="float: left;position: absolute;bottom: 4px;left: 4px;" type="button" class="btn btn-secondary btn-sm">\n'+'<div class="countdownShowcase" style="padding-left: .1rem;float: left;padding-right: .5rem;"></div>\n'+"Cancel</div>\n"+"</div>"}var statusCountdown=true;$(document).on("click","#countdownCancel",function(event){statusCountdown=false});var countdownShowcaseSeconds=10;function countdownShowcase(countdownShowcaseVar){console.log("function countdownShowcase ---\x3e "+countdownShowcaseSeconds);var showcase_next_item=$("#showcaseNext").data("showcase_next_item");console.log("function countdownShowcase showcase_next_item ---\x3e "+JSON.stringify(showcase_next_item));if(!$.isEmptyObject(showcase_next_item.item_id)){var timeleft=9;var downloadTimer=setInterval(function(){if(timeleft<=0){console.log("function countdownShowcase timeleft ---\x3e Finished");clearInterval(downloadTimer);$(".countdownShowcase").html("0");window.location="https://www.vide.me/v?m="+showcase_next_item.item_id}else{console.log("function countdownShowcase timeleft ---\x3e "+timeleft);$(".countdownShowcase").html(timeleft)}if(statusCountdown){timeleft-=1}},1e3)}else{console.log("function countdownShowcase showcase_next_item ---\x3e empty")}}function parseDate(parseDate){var str=parseDate.replace(/^(.*-[0-9][0-9])(\ )([0-9][0-9]\:.*$)/,"$1T$3");var d=Date.parse(str);return d}function getParameterByName(name,url){console.log("videme_func1.js function getParameterByName name: "+name);if(typeof url==="undefined")url=window.location.href;var match=url.match("[?&]"+name+"=([^&]+)");return match?match[1]:null}function getUrlParameter(sParam){var sPageURL=window.location.search.substring(1),sURLVariables=sPageURL.split("&"),sParameterName,i;for(i=0;i<sURLVariables.length;i++){sParameterName=sURLVariables[i].split("=");if(sParameterName[0]===sParam){return sParameterName[1]===undefined?true:decodeURIComponent(sParameterName[1])}}return false}function urlIfParamExist(paramName){var url=window.location.href;if(url.indexOf("?"+paramName+"=")!=-1)return true;else if(url.indexOf("&"+paramName+"=")!=-1)return true;return false}function getContactsGoogle(){var config={client_id:"415758327138-lddhq1t058os5o8b6lrmja75t56hi0el.apps.googleusercontent.com",scope:"https://www.google.com/m8/feeds"};gapi.auth.authorize(config,function(){fetch(gapi.auth.getToken())})}function fetch(token){$.ajax({url:"https://www.google.com/m8/feeds/contacts/default/full?access_token="+token.access_token+"&alt=json",dataType:"jsonp",success:function(data){contacts=[];$.each(data.feed.entry,function(key,value){if(value["gd$email"]){var contact={name:value["title"]["$t"],id:value["id"]["$t"],emails:[]};if(!contact["name"]){contact["name"]=contact["emails"][0]||"..."}var emails=value["gd$email"];for(var j=0,email;email=emails[j];j++){contact["emails"].push(email["address"])}var link=value["link"];$("#videme-showcontacts").append("---<br><a href=\"\"class='showContactsItem' email='"+contact.emails+"'>name: "+contact.name+"<br> email "+JSON.stringify(contact.emails)+"</a><br>");console.log("contact contact -----\x3e "+JSON.stringify(contact))}contacts.push(contact)})}})}function filter_array(test_array){var index=-1,arr_length=test_array?test_array.length:0,resIndex=-1,result=[];while(++index<arr_length){var value=test_array[index];if(value){result[++resIndex]=value}}return result}function filter_obj(obj){for(var propName in obj){if(obj[propName]===null||obj[propName]===undefined){delete obj[propName]}}}function bytesToSize(bytes){var sizes=["Bytes","KB","MB","GB","TB"];if(bytes==0)return"0 Byte";var i=parseInt(Math.floor(Math.log(bytes)/Math.log(1024)));return Math.round(bytes/Math.pow(1024,i),2)+" "+sizes[i]}function padding_item_object(padding_item_object){if(padding_item_object.item_id)true_item.item_id=padding_item_object.item_id;if(padding_item_object.cover)true_item.cover=padding_item_object.cover;if(padding_item_object.href)true_item.href=padding_item_object.href;if(padding_item_object.post_id)true_item.post_id=padding_item_object.post_id;if(padding_item_object.message_id)true_item.message_id=padding_item_object.message_id;if(padding_item_object.created_at)true_item.created_at=padding_item_object.created_at;if(padding_item_object.updated_at)true_item.updated_at=padding_item_object.updated_at;if(padding_item_object.title)true_item.title=padding_item_object.title;if(padding_item_object.content)true_item.content=padding_item_object.content;if(padding_item_object.spring)true_item.spring=padding_item_object.spring;if(padding_item_object.user_email)true_item.user_email=padding_item_object.user_email;if(padding_item_object.user_picture)true_item.user_picture=padding_item_object.user_picture;if(padding_item_object.to_user_id)true_item.to_user_id=padding_item_object.to_user_id;if(padding_item_object.from_user_id)true_item.from_user_id=padding_item_object.from_user_id;if(padding_item_object.from_user_display_name)true_item.from_user_display_name=padding_item_object.from_user_display_name;if(padding_item_object.from_user_name)true_item.from_user_name=padding_item_object.from_user_name;if(padding_item_object.video_duration)true_item.video_duration=padding_item_object.video_duration;if(padding_item_object.count)true_item.count=padding_item_object.count;if(padding_item_object.tags)true_item.tags=padding_item_object.tags;if(padding_item_object.ext_links)true_item.ext_links=padding_item_object.ext_links}var videmeUI=new Thing("Joe");function Thing(name333){this.name333=name333}function dateFromPG(dateFromPG){var datePG;if(!$.isEmptyObject(dateFromPG.created_at)){datePG=dateFromPG.created_at}if(!$.isEmptyObject(dateFromPG.updated_at)){datePG=dateFromPG.updated_at}console.log("datePG",datePG);return datePG}function parseUrl(){console.log("videme_func1.js function parseUrl");var parseUrl={};parseUrl.location=window.location.pathname;parseUrl.path=parseUrl.location.substring(0,parseUrl.location.lastIndexOf("/"));parseUrl.spring=parseUrl.location.replace(/^\/|\/$/g,"").toLowerCase();if(getParameterByName("album")){parseUrl.album=getParameterByName("album")}else{parseUrl.album=""}if(getParameterByName("show")){parseUrl.show=getParameterByName("show")}else{parseUrl.show=""}if(getParameterByName("list")){parseUrl.list=getParameterByName("list")}else{parseUrl.list=""}if(getParameterByName("index")){parseUrl.index=getParameterByName("index")}else{parseUrl.index=""}return parseUrl}function eventScroll(){ga("send","event","scroll","down")}function makeid(){var text="";var possible="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789";for(var i=0;i<12;i++)text+=possible.charAt(Math.floor(Math.random()*possible.length));return text}function removeURLParameter(url,parameter){var urlparts=url.split("?");if(urlparts.length>=2){var prefix=encodeURIComponent(parameter)+"=";var pars=urlparts[1].split(/[&;]/g);for(var i=pars.length;i-- >0;){if(pars[i].lastIndexOf(prefix,0)!==-1){pars.splice(i,1)}}return urlparts[0]+(pars.length>0?"?"+pars.join("&"):"")}return url}function nFormatter(num,digits){var si=[{value:1,symbol:""},{value:1e3,symbol:"K"},{value:1e6,symbol:"M"},{value:1e9,symbol:"G"},{value:1e12,symbol:"T"},{value:1e15,symbol:"P"},{value:1e18,symbol:"E"}];var rx=/\.0+$|(\.[0-9]*[1-9])0+$/;var i;for(i=si.length-1;i>0;i--){if(num>=si[i].value){break}}return(num/si[i].value).toFixed(digits).replace(rx,"$1")+si[i].symbol}function fReturnButton_friend_request(data){var html="";if(!$.isEmptyObject(data.user_id)){html='<a class="btn btn-sm btn-outline-success videme-relation-card-button-connect friend_request" user_id="'+data.user_id+'" href="https://api.vide.me/v2/friendship/request/?user_id='+data.user_id+"&nad="+$.cookie("vide_nad")+'">Add friend</a><a class="btn btn-sm btn-outline-success videme-relation-card-button-connect-small videme-round-button friend_request" user_id="'+data.user_id+'" href="https://api.vide.me/v2/friendship/request/?user_id='+data.user_id+"&nad="+$.cookie("vide_nad")+'"><i class="fa fa-user-plus" aria-hidden="true"></i></a>'}return html}function fReturnButton_friend_pending(){return'<a class="btn btn-sm btn-outline-success videme-relation-card-button-connect disabled">Pending</a><a class="btn btn-sm btn-outline-success videme-relation-card-button-connect-small videme-round-button disabled"><i class="fa fa-user-plus" aria-hidden="true"></i></a>'}function modalPartnerDeletePadding(params){console.log("modalPartnerDeletePadding params ---\x3e "+JSON.stringify(params));if($.cookie("vide_nad")){if(params.ip_id){$("#modal-partner-delete").modal("show");$.fn.showUserCardBySpring({spring:params.spring});$("#partner-delete-ip_id").val(params.ip_id);$("#partner-delete-item_id").val(params.item_id);$("#partner-delete-partner_id").val(params.partner_id)}else{$(".partner-delete_submit").html("Error")}}else{gotoLogin()}}function autoselectPartnerButton(trueUserInfo){var buttons={};if(trueUserInfo.its_my_pend=="f")buttons.button="partner_accept";if(trueUserInfo.partner_status=="0")buttons.button2="partner_decline";if(trueUserInfo.partner_status=="1")buttons.button2="partner_delete";return buttons}function autoselectPartnerSign(trueUserInfo){var sign=" invited to partnership";if(trueUserInfo.its_my_pend=="f")sign=" requested partnership";return sign}$(function(){function split(val){return val.split(/,\s*/)}function extractLast(term){return split(term).pop()}$("#videme_new_essences").on("keydown",function(event){if(event.keyCode===$.ui.keyCode.TAB&&$(this).autocomplete("instance").menu.active){event.preventDefault()}}).autocomplete({source:function(request,response){$.getJSON("https://api.vide.me/v2/essences/search_title?q="+request.term,function(data){response($.map(data,function(value,key){return{label:value.title,value:value.essence_id}}))})},search:function(){var term=extractLast(this.value);console.log("search term "+JSON.stringify(term));if(term.length<2){return false}},focus:function(){return false},select:function(event,ui){var terms=split(this.value);console.log("select terms "+JSON.stringify(terms));terms.pop();terms.push(ui.item.label);terms.push("");this.value=terms.join(", ");return false}})});function functionAfterLogin(responseObject){if(responseObject.web_theme){if(responseObject.web_theme=="dark"){localStorage.setItem("preferred-color-scheme","dark");$.cookie("preferred-color-scheme","dark",{expires:14,path:"/; SameSite=None",domain:"vide.me",secure:true})}else{localStorage.setItem("preferred-color-scheme","light");$.cookie("preferred-color-scheme","light",{expires:14,path:"/; SameSite=None",domain:"vide.me",secure:true})}}if(responseObject.login){$.cookie("vide_nad",responseObject.login,{expires:14,path:"/; SameSite=None",domain:"vide.me",secure:true})}}function parseDataArrayToObject(parseDataArrayToObject){console.log("videme_func1.js function parseDataArrayToObject");$.each(parseDataArrayToObject,function(key,value){value=paddingUserInfo(value);parseDataArrayToObject[key]={a:value.user_display_name,b:value.title,c:value.content,d:value.updated_at,img:value.item_id,src:value.src,cover:value.cover,cover_video:value.cover_video,country:value.country,item_country:value.item_country,city:value.city,item_city:value.item_city,place:value.place,started_at:value.started_at,stopped_at:value.stopped_at,type:value.type,href:value.item_id,item_id:value.item_id,video:value.item_id,post_id:value.post_id,message_id:value.message_id,user_picture:value.user_picture,item_user_picture:value.item_user_picture,post_user_picture:value.post_user_picture,created_at:value.created_at,updated_at:value.updated_at,title:value.title,content:value.content,spring:value.spring,item_spring:value.item_spring,post_spring:value.post_spring,user_email:value.user_email,to_user_id:value.to_user_id,from_user_id:value.from_user_id,from_user_display_name:value.from_user_display_name,from_user_name:value.user_display_name,user_display_name:value.user_display_name,item_user_display_name:value.item_user_display_name,post_user_display_name:value.post_user_display_name,file:value.item_id,video_duration:value.video_duration,width:value.width,height:value.height,item_count_show:value.item_count_show,count:value.item_count_show,likes_count:value.likes_count,stars_count:value.stars_count,tags_conf:value.tags_conf,user_tags_conf:value.user_tags_conf,user_tags_conf_new:value.user_tags_conf_new,reposts_count:value.reposts_count,its_like:value.its_like,post_type:value.post_type,access:value.access,ext_links:value.ext_links,tags:value.tags,dropdown:value.dropdown,pre_v_w320:value.pre_v_w320,pre_i_w320:value.pre_i_w320,spr_w120:value.spr_w120,vtt_w120:value.vtt_w120,array_tags:value.array_tags,album:value.album,albums_title:value.albums_title,albums_sets_id:value.albums_sets_id,ip_id:value.ip_id,title_array:value.title_array,content_array:value.content_array,items_array:value.items_array}});return parseDataArrayToObject}function updateURLParameter(url,param,paramVal){var TheAnchor=null;var newAdditionalURL="";var tempArray=url.split("?");var baseURL=tempArray[0];var additionalURL=tempArray[1];var temp="";if(additionalURL){var tmpAnchor=additionalURL.split("#");var TheParams=tmpAnchor[0];TheAnchor=tmpAnchor[1];if(TheAnchor)additionalURL=TheParams;tempArray=additionalURL.split("&");for(var i=0;i<tempArray.length;i++){if(tempArray[i].split("=")[0]!=param){newAdditionalURL+=temp+tempArray[i];temp="&"}}}else{var tmpAnchor=baseURL.split("#");var TheParams=tmpAnchor[0];TheAnchor=tmpAnchor[1];if(TheParams)baseURL=TheParams}if(TheAnchor)paramVal+="#"+TheAnchor;var rows_txt=temp+""+param+"="+paramVal;return baseURL+"?"+newAdditionalURL+rows_txt}function URLUpdate(param,value){window.history.replaceState("","",updateURLParameter(window.location.href,param,value))}function removeURLparam(paramName){var re=new RegExp("[&?]"+paramName+"=\\d+");var oldURL=window.location.href;var newUrl=oldURL.replace(re,"");window.history.replaceState("","",newUrl)}function titleUpdate(titleUpdate){document.title=titleUpdate.title+" | Vide.me"}function activeLiSelect(liClassId,value){$("."+liClassId).removeClass("active");$("#"+liClassId+"_"+value).addClass("active")}