(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('
').section(ae.get("html"),ae,{"block":R},null) }function R(af,ae){ae=ae.shiftBlocks(ad); return af.write("").exists(ae.get("_projId"),ae,{"else":aa,"block":Z},null).partial("tl/apps/profile/my_profile/partial/actions",ae,{"trackSave":"profile-edit-project-submit","trackCancel":"nprofile-edit-project-cancel"}).exists(ae.get("_projId"),ae,{"block":Y},null).section(ae.get("locale"),ae,{"block":Q},null).section(ae.get("timestamp"),ae,{"block":O},null).section(ae.get("profileVersionTag"),ae,{"block":M},null).section(ae.get("useJsonResponse"),ae,{"block":J},{"passedInValue":"true"}).section(ae.get("csrfToken"),ae,{"block":H},null).section(ae.get("sourceAlias"),ae,{"block":F},null).section(ae.get("projectID"),ae,{"block":E},{"passedInValue":ae.get("_projId")}).section(ae.get("creatorName"),ae,{"block":D},{"passedInValue":ae.get("creatorNameData")}).section(ae.get("creatorContributorId"),ae,{"block":C},{"passedInValue":ae.get("creatorContributorIdData")}).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('
  • ').section(ae.get("defaultLocaleTitle"),ae,{"block":N},null).write("
  • ") }function N(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('
  • ').partial("tl/apps/profile/my_profile/partial/select_with_value",ae,null).write("
  • ") }function K(af,ae){ae=ae.shiftBlocks(ad); return af.section(ae.get("startDate"),ae,{"block":I},null).section(ae.get("endDate"),ae,{"block":x},null).section(ae.get("form"),ae,{"block":r},null) }function I(af,ae){ae=ae.shiftBlocks(ad); return af.section(ae.get("month"),ae,{"block":G},null).section(ae.get("year"),ae,{"block":z},null) }function G(af,ae){ae=ae.shiftBlocks(ad); return af.write('') }function z(af,ae){ae=ae.shiftBlocks(ad); return af.write('') }function x(af,ae){ae=ae.shiftBlocks(ad); return af.section(ae.get("month"),ae,{"block":v},null).section(ae.get("year"),ae,{"block":t},null) }function v(af,ae){ae=ae.shiftBlocks(ad); return af.write('') }function t(af,ae){ae=ae.shiftBlocks(ad); return af.write('') }function r(af,ae){ae=ae.shiftBlocks(ad); return af.write('') }function p(af,ae){ae=ae.shiftBlocks(ad); return af.partial("tl/apps/profile/my_profile/partial/life_span_single_date_with_dropdown",ae,null) }function n(af,ae){ae=ae.shiftBlocks(ad); return af.write('
  • ') }function l(af,ae){ae=ae.shiftBlocks(ad); return af.partial("tl/apps/profile/my_profile/partial/contributors_input",ae,null) }function j(af,ae){ae=ae.shiftBlocks(ad); return af.write('
  • ').helper("select",ae,{"block":i},{"key":ae.get("lix_profile_edit_warmup_text")}).section(ae.get("defaultLocaleDescription"),ae,{"block":ab},null).write("
  • ") }function i(af,ae){ae=ae.shiftBlocks(ad); return af.helper("eq",ae,{"block":f},{"value":"B"}).helper("eq",ae,{"block":d},{"value":"C"}).helper("eq",ae,{"block":b},{"value":"D"}).helper("default",ae,{"block":ac},null) }function f(af,ae){ae=ae.shiftBlocks(ad); return af.write('") }function d(af,ae){ae=ae.shiftBlocks(ad); return af.write('") }function b(af,ae){ae=ae.shiftBlocks(ad); return af.write('") }function ac(af,ae){ae=ae.shiftBlocks(ad); return af.write('") }function ab(af,ae){ae=ae.shiftBlocks(ad); return af.write('

    ').reference(ae.get("defaultLocaleDescription"),ae,"h").write("

    ") }function aa(af,ae){ae=ae.shiftBlocks(ad); return af.write('') }function Z(af,ae){ae=ae.shiftBlocks(ad); return af.write('') }function Y(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('
    ') }function s(af,ae){ae=ae.shiftBlocks(ad); return af.write('') }function q(af,ae){ae=ae.shiftBlocks(ad); return af.write('') }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/my_profile/partial/hidden_with_value",ae,null) }function k(af,ae){ae=ae.shiftBlocks(ad); return af.partial("tl/apps/profile/v2/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 g(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 c(af,ae){ae=ae.shiftBlocks(ad); return af.partial("tl/apps/profile/my_profile/partial/hidden_with_value",ae,null) }function a(af,ae){ae=ae.shiftBlocks(ad); return af.write('{errorId: \'global-error\',scrollIntoViewOnError : false,showCloseInError : true,successCallback: function(data) {var additionalTemplates = ["my_profile_positions", "my_profile_educations", "my_profile_recommended_sections"];$.fn.ProfileEdit.handleRemoveSuccess({itemId : \'project-').reference(ae.get("id"),ae,"h",["h","j","s"]).write("',responseData : data});LI.Profile2.Section.updateSectionsUsingBaseMapper(additionalTemplates, null);},errorCallback: function(err) {$.fn.ProfileEdit.handleSaveFailure(err);},exceptionCallback : function() {$.fn.ProfileEdit.handleSaveException();}}") }return V })(); (function(){dust.register("project_edit",dust.cache["tl/apps/profile/my_profile/embed/project_edit"]) })();(function(){dust.register("tl/apps/profile/my_profile/partial/multiple_hidden_with_value",d); function d(f,e){return f.section(e.get("elements"),e,{"block":c},null) }function c(f,e){return f.write('') }function b(f,e){return f.reference(e.get("value"),e,"h") }function a(f,e){return f.reference(e.get("passedInValue"),e,"h") }return d })(); (function(){dust.register("multiple_hidden_with_value",dust.cache["tl/apps/profile/my_profile/partial/multiple_hidden_with_value"]) })();(function(){dust.register("tl/apps/profile/my_profile/embed/summary",d); function d(f,e){return f.helper("eq",e,{"block":c},{"key":e.get("lix_summary_prompts"),"value":"B"}).write('
    ').partial("tl/apps/profile/my_profile/embed/summary_view",e,{"_truncateTo":"400"}).write("
    ").section(e.get("formData"),e,{"block":b},null).section(e.getPath(false,["associatedWith","treasury"]),e,{"block":a},null).write("
    ") }function c(f,e){return f }function b(f,e){return f.write('
    ") }function a(f,e){return f.partial("tl/apps/profile/my_profile/embed/treasury_view",e,null) }return d })(); (function(){dust.register("summary",dust.cache["tl/apps/profile/my_profile/embed/summary"]) })();(function(){dust.register("tl/shared/js-control/typeahead2",a); function a(c,b){return c.write("