(function(){dust.register("tl/apps/profile/my_profile/embed/project_edit",V); var ad={"removeDialog2ndMsg":X}; function V(af,ae){ae=ae.shiftBlocks(ad); return af.section(ae.get("Projects"),ae,{"block":U},null) }function U(af,ae){ae=ae.shiftBlocks(ad); return af.section(ae.get("form"),ae,{"block":T},{"_projId":ae.get("id")}) }function T(af,ae){ae=ae.shiftBlocks(ad); return af.write('
").helper("jsControl",ae,{"block":B},{"name":"FrontierAJAXForm","disableControlInitData":"true"}).helper("select",ae,{"block":A},{"key":ae.get("lix_profile_isb_state")}).section(ae.get("locale"),ae,{"block":o},null).section(ae.get("timestamp"),ae,{"block":m},null).section(ae.get("profileVersionTag"),ae,{"block":k},null).section(ae.get("useJsonResponse"),ae,{"block":h},{"passedInValue":"true"}).section(ae.get("projectID"),ae,{"block":g},{"passedInValue":ae.get("_projId")}).section(ae.get("csrfToken"),ae,{"block":e},null).section(ae.get("sourceAlias"),ae,{"block":c},null).write("").helper("jsControl",ae,{"block":a},{"name":"FrontierAJAXForm","disableControlInitData":"true"}) }function P(af,ae){ae=ae.shiftBlocks(ad); return af.write('').reference(ae.get("defaultLocaleTitle"),ae,"h").write("
") }function L(af,ae){ae=ae.shiftBlocks(ad); return af.write('').write('').reference(ae.get("i18n__Remove"),ae,"h").write("").helper("jsControl",ae,{"block":S},{"name":"Profile.DialogHelper"}).write("
") }function X(af,ae){ae=ae.shiftBlocks(ad); return af.exists(ae.get("inNonDefaultLocale"),ae,{"block":W},null) }function W(af,ae){ae=ae.shiftBlocks(ad); return af.reference(ae.get("i18n__delete_from_all_profiles_msg"),ae,"h",["j"]) }function S(af,ae){ae=ae.shiftBlocks(ad); return af.write("{name : 'removeProjectDialog',submitFormId : 'removeProjectForm-").reference(ae.get("_projId"),ae,"h",["h","j","s"]).write("',extra : {projectID: \"").reference(ae.get("_projId"),ae,"h",["h","j","s"]).write("\"},content : {title : '").reference(ae.get("i18n__remove_project"),ae,"h",["j","s"]).write("',message : '").reference(ae.get("i18n__are_you_sure_you_want_to_delete"),ae,"h",["j","s"]).write("',message2 : '").block(ae.getBlock("removeDialog2ndMsg"),ae,{},null).write("',submitButton : '").reference(ae.get("i18n__yes_confirm"),ae,"h",["j","s"]).write("',cancelButton : '").reference(ae.get("i18n__cancel"),ae,"h",["j","s"]).write("'}}") }function Q(af,ae){ae=ae.shiftBlocks(ad); return af.partial("tl/apps/profile/my_profile/partial/hidden_with_value",ae,null) }function O(af,ae){ae=ae.shiftBlocks(ad); return af.partial("tl/apps/profile/my_profile/partial/hidden_with_value",ae,null) }function M(af,ae){ae=ae.shiftBlocks(ad); return af.partial("tl/apps/profile/v2/partial/hidden_with_value",ae,null) }function J(af,ae){ae=ae.shiftBlocks(ad); return af.partial("tl/apps/profile/my_profile/partial/hidden_with_value",ae,null) }function H(af,ae){ae=ae.shiftBlocks(ad); return af.partial("tl/apps/profile/my_profile/partial/hidden_with_value",ae,null) }function F(af,ae){ae=ae.shiftBlocks(ad); return af.partial("tl/apps/profile/my_profile/partial/hidden_with_value",ae,null) }function E(af,ae){ae=ae.shiftBlocks(ad); return af.partial("tl/apps/profile/my_profile/partial/hidden_with_value",ae,null) }function D(af,ae){ae=ae.shiftBlocks(ad); return af.partial("tl/apps/profile/my_profile/partial/hidden_with_value",ae,null) }function C(af,ae){ae=ae.shiftBlocks(ad); return af.partial("tl/apps/profile/my_profile/partial/hidden_with_value",ae,null) }function B(af,ae){ae=ae.shiftBlocks(ad); return af.write("{injectAfter: '.btn-primary',errorId: 'global-error',scrollIntoViewOnError : false,showCloseInError : true,successCallback: function(data) {var additionalTemplates = [\"my_profile_positions\", \"my_profile_educations\", \"my_profile_recommended_sections\"];LI.Sortable.Region.setRegion('projects', 'background-projects', null);$.fn.ProfileEdit.handleSaveSuccess({listTemplate : 'tl/apps/profile/my_profile/embed/projects_section',containerId : 'background-projects-container',responseData : data});LI.Profile2.Section.updateSectionsUsingBaseMapper(additionalTemplates, null);},errorCallback: function(err) {$.fn.ProfileEdit.handleSaveFailure(err);},exceptionCallback : function() {$.fn.ProfileEdit.handleSaveException();}}") }function A(af,ae){ae=ae.shiftBlocks(ad); return af.helper("eq",ae,{"block":y},{"value":"isb"}).helper("default",ae,{"block":q},null) }function y(af,ae){ae=ae.shiftBlocks(ad); return af.helper("select",ae,{"block":w},{"key":ae.get("lix_profile_isb_projects_state")}) }function w(af,ae){ae=ae.shiftBlocks(ad); return af.helper("eq",ae,{"block":u},{"value":"rollback"}).helper("default",ae,{"block":s},null) }function u(af,ae){ae=ae.shiftBlocks(ad); return af.write('