(self.webpackChunksymfony=self.webpackChunksymfony||[]).push([[7108],{3939:function(t,r,n){"use strict";n(41539),n(88674),n(2707),n(68309),n(21249);var e=n(19755),o=n.n(e),a=n(49117),i=n(51474),c=(n(76579),n(38231),document.querySelector(".js__sortable"));if(c){var s=new i.ZP(c,{handle:".js__sortableHandle"});o()(".js__saveOrder").on("click",(function(){var t=s.toArray();o().ajax(a.Z.generate("app_admin_custom_field_options_save_order",[]),{type:"POST",dataType:"json",data:JSON.stringify({orderedIdList:t})})})),o()(".js__sortAlphabetically").on("click",(function(){var t=[];o()(".js__sortAlphabeticallyElement").each((function(r,n){t.push({id:o()(n).data("id"),name:o()(n).data("name")})})),t.sort((function(t,r){return t.name>r.name?1:-1}));var r=t.map((function(t){return t.id}));s.sort(r)}))}},76579:function(t,r,n){"use strict";var e=n(19755),o=n.n(e),a=n(70471),i=n(79075);o().ajaxSetup({headers:{"X-CSRF-Token":a.ZP[i.Z.CSRF_TOKEN]}})},38231:function(t,r,n){"use strict";n(23157);var e=n(19755),o=n.n(e),a=n(19422);o()(".js__confirm").on("click",(function(){var t,r=o()(this);return confirm((t=r.data("confirm-message")).startsWith("trans.")?a.Z.trans(t):t)}))},94362:function(t,r,n){var e=n(50206),o=Math.floor,a=function(t,r){var n=t.length,s=o(n/2);return n<8?i(t,r):c(t,a(e(t,0,s),r),a(e(t,s),r),r)},i=function(t,r){for(var n,e,o=t.length,a=1;a<o;){for(e=a,n=t[a];e&&r(t[e-1],n)>0;)t[e]=t[--e];e!==a++&&(t[e]=n)}return t},c=function(t,r,n,e){for(var o=r.length,a=n.length,i=0,c=0;i<o||c<a;)t[i+c]=i<o&&c<a?e(r[i],n[c])<=0?r[i++]:n[c++]:i<o?r[i++]:n[c++];return t};t.exports=a},84964:function(t,r,n){var e=n(5112)("match");t.exports=function(t){var r=/./;try{"/./"[t](r)}catch(n){try{return r[e]=!1,"/./"[t](r)}catch(t){}}return!1}},68886:function(t,r,n){var e=n(88113).match(/firefox\/(\d+)/i);t.exports=!!e&&+e[1]},30256:function(t,r,n){var e=n(88113);t.exports=/MSIE|Trident/.test(e)},98008:function(t,r,n){var e=n(88113).match(/AppleWebKit\/(\d+)\./);t.exports=!!e&&+e[1]},3929:function(t,r,n){var e=n(17854),o=n(47850),a=e.TypeError;t.exports=function(t){if(o(t))throw a("The method doesn't accept regular expressions");return t}},2707:function(t,r,n){"use strict";var e=n(82109),o=n(1702),a=n(19662),i=n(47908),c=n(26244),s=n(41340),u=n(47293),f=n(94362),h=n(9341),v=n(68886),l=n(30256),d=n(7392),p=n(98008),g=[],m=o(g.sort),_=o(g.push),y=u((function(){g.sort(void 0)})),S=u((function(){g.sort(null)})),k=h("sort"),b=!u((function(){if(d)return d<70;if(!(v&&v>3)){if(l)return!0;if(p)return p<603;var t,r,n,e,o="";for(t=65;t<76;t++){switch(r=String.fromCharCode(t),t){case 66:case 69:case 70:case 72:n=3;break;case 68:case 71:n=4;break;default:n=2}for(e=0;e<47;e++)g.push({k:r+e,v:n})}for(g.sort((function(t,r){return r.v-t.v})),e=0;e<g.length;e++)r=g[e].k.charAt(0),o.charAt(o.length-1)!==r&&(o+=r);return"DGBEFHACIJK"!==o}}));e({target:"Array",proto:!0,forced:y||!S||!k||!b},{sort:function(t){void 0!==t&&a(t);var r=i(this);if(b)return void 0===t?m(r):m(r,t);var n,e,o=[],u=c(r);for(e=0;e<u;e++)e in r&&_(o,r[e]);for(f(o,function(t){return function(r,n){return void 0===n?-1:void 0===r?1:void 0!==t?+t(r,n)||0:s(r)>s(n)?1:-1}}(t)),n=o.length,e=0;e<n;)r[e]=o[e++];for(;e<u;)delete r[e++];return r}})},68309:function(t,r,n){var e=n(19781),o=n(76530).EXISTS,a=n(1702),i=n(3070).f,c=Function.prototype,s=a(c.toString),u=/^\s*function ([^ (]*)/,f=a(u.exec);e&&!o&&i(c,"name",{configurable:!0,get:function(){try{return f(u,s(this))[1]}catch(t){return""}}})},23157:function(t,r,n){"use strict";var e,o=n(82109),a=n(1702),i=n(31236).f,c=n(17466),s=n(41340),u=n(3929),f=n(84488),h=n(84964),v=n(31913),l=a("".startsWith),d=a("".slice),p=Math.min,g=h("startsWith");o({target:"String",proto:!0,forced:!!(v||g||(e=i(String.prototype,"startsWith"),!e||e.writable))&&!g},{startsWith:function(t){var r=s(f(this));u(t);var n=c(p(arguments.length>1?arguments[1]:void 0,r.length)),e=s(t);return l?l(r,e,n):d(r,n,n+e.length)===e}})}},function(t){t.O(0,[2719,9755,9825,5027,9125,628,1474,9422,9117],(function(){return r=3939,t(t.s=r);var r}));t.O()}]);
//# sourceMappingURL=admin_custom_field_edit.536a0dc8.js.map