define("admin/integration_edit",["jquery"],function(t){return function(t){function e(i){if(n[i])return n[i].exports;var r=n[i]={i:i,l:!1,exports:{}};return t[i].call(r.exports,r,r.exports,e),r.l=!0,r.exports}var n={};return e.m=t,e.c=n,e.i=function(t){return t},e.d=function(t,n,i){e.o(t,n)||Object.defineProperty(t,n,{configurable:!1,enumerable:!0,get:i})},e.n=function(t){var n=t&&t.__esModule?function(){return t.default}:function(){return t};return e.d(n,"a",n),n},e.o=function(t,e){return Object.prototype.hasOwnProperty.call(t,e)},e.p="/components/",e(e.s="./assets/js/admin/integration_edit.js")}({"./assets/js/admin/integration_edit.js":function(t,e,n){var i,r;i=[n(0)],void 0!==(r=function(t){return function(){this.saved_entry_deleted=!1;var e=0;this.add_entry=function(n){n.preventDefault(),e+=1;var i='\t<div class="api-form entry-container mb-2">\n \t\t<div class="form-row"><input type="hidden" name="entry_status[]" class="entry-status-field" value="new">\t\t\t\t<label for="entry_keys[]_'+e+'" class="col-form-label col-12 col-sm-2">'+lmsg("admin.integration.entry_key")+'</label>\n\t\t\t\t<input type="text" id="entry_keys[]_'+e+'" name="entry_keys[]" class="form-control col-12 col-sm-3" value="">\n\t\t\t\t<label for="entry_values[]_'+e+'" class="col-form-label col-12 col-sm-2">'+lmsg("admin.integration.entry_value")+'</label>\n\t\t\t\t<input type="text" id="entry_values[]_'+e+'" name="entry_values[]" class="form-control col-12 col-sm-3" value="">\n\t\t\t    <div class="col-12 col-sm-2 my-1 my-sm-0 pl-0 pl-sm-1"><a href="#" class="btn btn-danger" onclick="window.integration.remove_entry(event);" rel="tooltip" title="'+lmsg("admin.integration.delete_entry")+'" data-saved="0"><ion-icon name="trash-outline"></ion-icon></a></div>\n\t\t\t</div><hr>';t("#entry_set_container").append(i),this.showHideDeleteButtons()},this.remove_entry=function(e){e.preventDefault();var n=e.target,i=null;"SPAN"==n.tagName?(i=t(n).parent().attr("data-saved"),t(n).parent().tooltip("dispose")):(i=t(n).attr("data-saved"),t(n).tooltip("dispose")),t(n).closest(".entry-container").remove(),this.showHideDeleteButtons(),"1"===i&&(this.saved_entry_deleted=!0)},this.edit_entry=function(e){e.preventDefault();var n=t(e.target).closest(".entry-container");n.find(".masked-value-display").hide(),n.find(".existing-key-display").hide(),n.find(".value-edit-field").show(),n.find(".key-edit-field").show(),n.find(".entry-status-field").val("changed")},this.showHideDeleteButtons=function(){var e=t(".entry-container");1==e.length?t(e[0]).find(".entry-delete-button").hide():e.each(function(e,n){t(n).find(".entry-delete-button").show()})}}}.apply(e,i))&&(t.exports=r)},0:function(e,n){e.exports=t}})});
//# sourceMappingURL=integration_edit.js.map