text: (window.webpackJsonp=window.webpackJsonp||[]).push([[10],{260:function(t,e,n){t.exports=n(261)},261:function(t,e,n){"use strict";n.r(e),function(t){var e=n(6),a=n.n(e);n(3).a.init(),t("#collectionitemset-delete-btn").click((function(e){e.preventDefault();var n=t(this).parents("form");a()({title:helix.pleaseConfirm,text:helix.deleteTheThing},(function(){return n.submit()}))}))}.call(this,n(1))},3:function(t,e,n){"use strict";(function(t){e.a={init:function(){var e=t("#hierarchy-modal");e.on("show.bs.modal",(function(e){var n=t(e.relatedTarget),a=n.data("entity"),i=n.data("entity-id");t(".modal-body",this).html(t(".hidden .loader").clone()).load("".concat(locale.baseurl,"/arch/ajax/").concat(a,"/hierarchy/").concat(i))})),e.on("click",".hierarchy-btn",(function(){var e=t(this).parent().children("ul"),n="block"===e.css("display")?"plus":"minus";t("i",this).attr("class","fa fa-".concat(n,"-square-o")),e.fadeToggle()})),e.on("click","#collapse-all",(function(){t("ul",e).not("ul:first",e).fadeOut(),t(".hierarchy-btn i").attr("class","fa fa-plus-square-o")})),e.on("click","#expand-all",(function(){t("ul",e).not("ul:first",e).fadeIn(),t(".hierarchy-btn i").attr("class","fa fa-minus-square-o")}))},removeItem:function(t,e){t.parents("tr").fadeOut((function(){this.remove(),e()}))},initTextareaPopouts:function(){t(document).on("focus","[data-toggle=popout]",(function(){var e=t(this),n=e.offset(),a=t("body"),i=a.outerWidth(),o=a.outerHeight(),c=e.outerWidth(),l=e.outerHeight(),s=i<=c+150?i:c+150,r=o<=l+150?o:l+150,u=e.css("font-size"),f=t("<textarea>").attr("class",e.attr("class")).addClass("popout").html(e.val()).css({position:"absolute",top:n.top,left:n.left,width:c,height:l,zIndex:1e3,fontSize:u}).keydown((function(t){if(9===(t.keyCode||t.which)){t.preventDefault();var n=e.closest("form").find(":input"),a=t.shiftKey?-1:1;n.eq(n.index(e)+a).focus()}})).blur((function(){return e.val(f.val()),f.animate({width:c,height:l,top:"+=75",left:"+=75"},200,(function(){f.remove()}))})).appendTo(a).animate({width:s,height:r,top:"-=75",left:"-=75"},200).focus();return!0}))}}}).call(this,n(1))}},[[260,0,1]]]);