/******/!function(e){function t(o){if(n[o])return n[o].exports;var l=n[o]={i:o,l:!1,exports:{}};return e[o].call(l.exports,l,l.exports,t),l.l=!0,l.exports}// webpackBootstrap
/******/
var n={};t.m=e,t.c=n,t.i=function(e){return e},t.d=function(e,n,o){t.o(e,n)||Object.defineProperty(e,n,{configurable:!1,enumerable:!0,get:o})},t.n=function(e){var n=e&&e.__esModule?function(){return e.default}:function(){return e};return t.d(n,"a",n),n},t.o=function(e,t){return Object.prototype.hasOwnProperty.call(e,t)},t.p="",t(t.s=11)}({0:function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var o=n(9),l=window.$;l(function(){function e(e){e&&e.preventDefault();var n=a.replace(/__name__/g,r.children.length+1),o=l(n);l("#"+c).append(o),t(o)}function t(e){var t=e.closest(".custom_collection"),n=l('<button class="remove_custom_url btn btn-primary mt-1">'+t.data("deleteButtonLabel")+"</button>");n.on("click",function(e){return e.preventDefault(),l(e.target).closest(".row").remove(),!1}),e.find(".locale-input-group").first().closest(".col-sm-12").append(n)}new o.a({localeInputSelector:".js-locale-input"});var n=l(".add-collection-btn");n.on("click",e);var c=n.data().collectionId,r=document.getElementById(c),a=r.dataset.prototype;r.children.length?l(".custom_collection .col-sm-12").each(function(e,n){t(l(n))}):e()})},11:function(e,t,n){e.exports=n(0)},9:function(e,t,n){"use strict";function o(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}var l=function(){function e(e,t){for(var n=0;n<t.length;n++){var o=t[n];o.enumerable=o.enumerable||!1,o.configurable=!0,"value"in o&&(o.writable=!0),Object.defineProperty(e,o.key,o)}}return function(t,n,o){return n&&e(t.prototype,n),o&&e(t,o),t}}(),c=window.$,r=function(){function e(t){o(this,e),t=t||{},this.localeItemSelector=t.localeItemSelector||".js-locale-item",this.localeButtonSelector=t.localeButtonSelector||".js-locale-btn",this.localeInputSelector=t.localeInputSelector||"input.js-locale-input",c("body").on("click",this.localeItemSelector,this.toggleInputs.bind(this))}return l(e,[{key:"toggleInputs",value:function(e){var t=c(e.target),n=t.closest("form"),o=t.data("locale");n.find(this.localeButtonSelector).text(o),n.find(this.localeInputSelector).addClass("d-none"),n.find(this.localeInputSelector+".js-locale-"+o).removeClass("d-none")}}]),e}();t.a=r}});