diff --git a/nested_admin/nested.py b/nested_admin/nested.py index 0e1b8ea..12429d1 100644 --- a/nested_admin/nested.py +++ b/nested_admin/nested.py @@ -218,7 +218,13 @@ def inline_formset_data(self): @property def handler_classes(self): classes = set(getattr(self.opts, "handler_classes", None) or []) - return tuple(classes | {"djn-model-%s" % self.inline_model_id}) + return tuple( + classes + | { + "djn-model-%s" % self.inline_model_id, + "djn-level-%s" % getattr(self.formset, "nesting_depth", 0), + } + ) class NestedBaseInlineAdminFormSet(helpers.InlineAdminFormSet): diff --git a/nested_admin/static/nested_admin/dist/nested_admin.js b/nested_admin/static/nested_admin/dist/nested_admin.js index ad22230..7c04b58 100644 --- a/nested_admin/static/nested_admin/dist/nested_admin.js +++ b/nested_admin/static/nested_admin/dist/nested_admin.js @@ -137,12 +137,14 @@ var DjangoFormset = /*#__PURE__*/function () { this._$template = (0,_jquery_shim_js__WEBPACK_IMPORTED_MODULE_7__["default"])("#" + this.prefix + "-empty"); var inlineModelClassName = this.$inline.djnData("inlineModel"); + var nestingLevel = this.$inline.djnData("nestingLevel"); + var handlerSelector = ".djn-model-" + inlineModelClassName + ".djn-level-" + nestingLevel; this.opts = _jquery_shim_js__WEBPACK_IMPORTED_MODULE_7__["default"].extend({}, this.opts, { childTypes: this.$inline.data("inlineFormset").options.childTypes, formsetFkModel: this.$inline.djnData("formsetFkModel"), - addButtonSelector: ".djn-add-handler.djn-model-" + inlineModelClassName, - removeButtonSelector: ".djn-remove-handler.djn-model-" + inlineModelClassName, - deleteButtonSelector: ".djn-delete-handler.djn-model-" + inlineModelClassName, + addButtonSelector: ".djn-add-handler" + handlerSelector, + removeButtonSelector: ".djn-remove-handler" + handlerSelector, + deleteButtonSelector: ".djn-delete-handler" + handlerSelector, formClass: "dynamic-form grp-dynamic-form djn-dynamic-form-" + inlineModelClassName, formClassSelector: ".djn-dynamic-form-" + inlineModelClassName }); diff --git a/nested_admin/static/nested_admin/dist/nested_admin.js.map b/nested_admin/static/nested_admin/dist/nested_admin.js.map index ff1bf71..93fcd23 100644 --- a/nested_admin/static/nested_admin/dist/nested_admin.js.map +++ b/nested_admin/static/nested_admin/dist/nested_admin.js.map @@ -1 +1 @@ -{"version":3,"file":"nested_admin.js","mappings":";;;;;;;;;;;;AAAA;AAEA;AACA;AACA;;AACA,SAASC,OAAT,CAAiBC,IAAjB,EAAuB;AACrB,MAAI,OAAOC,MAAM,CAACC,GAAd,KAAsB,WAA1B,EAAuC;AACrC,WAAOJ,2DAAC,CAACE,IAAD,CAAR;AACD;;AACD,MAAIC,MAAM,CAACC,GAAP,CAAWC,MAAX,CAAkBC,EAAlB,CAAqBC,IAArB,KAA8BP,+DAAlC,EAA6C;AAC3C,WAAOA,2DAAC,CAACE,IAAD,CAAR;AACD;;AACD,MAAMM,UAAU,GAAGR,2DAAC,CAACE,IAAD,CAApB;;AACA,MAAIA,IAAI,CAACO,UAAT,EAAqB;AACnBD,IAAAA,UAAU,CAACC,UAAX,GAAwBR,OAAO,CAACC,IAAI,CAACO,UAAN,CAA/B;AACD;;AACD,SAAOD,UAAP;AACD;;AAED,+DAAeP,OAAf;;;;;;;;;;;;;ACnBA;AAEA;AACA;AACA;AACA;AACA;AACA;;AACA,SAASS,IAAT,CAAcR,IAAd,EAAoB;AAClB,MAAI,OAAOC,MAAM,CAACC,GAAd,KAAsB,WAA1B,EAAuC;AACrC,WAAOJ,2DAAC,CAACE,IAAD,CAAR;AACD;;AACD,MAAIC,MAAM,CAACC,GAAP,CAAWC,MAAX,CAAkBC,EAAlB,CAAqBC,IAArB,KAA8BP,+DAAlC,EAA6C;AAC3C,WAAOA,2DAAC,CAACE,IAAD,CAAR;AACD;;AACD,MAAMS,OAAO,GAAGR,MAAM,CAACC,GAAP,CAAWC,MAAX,CAAkBH,IAAlB,CAAhB;;AACA,MAAIA,IAAI,CAACO,UAAT,EAAqB;AACnBE,IAAAA,OAAO,CAACF,UAAR,GAAqBC,IAAI,CAACR,IAAI,CAACO,UAAN,CAAzB;AACD;;AACD,SAAOE,O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;AAC1B;AACA,4BAA4B,mBAAmB;;AAE/C;AACA;AACA;AACA;AACA,IAAI,YAAY;AAChB;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;;;;;;;;;;ACtBA,iBAAiB;;AAEjB;AACA;AACA;;;;;;;;;;;;ACJa;AACb,SAAS,2FAAyB;AAClC,aAAa,mBAAO,CAAC,0EAAkB;AACvC,kBAAkB,mBAAO,CAAC,wEAAiB;AAC3C,UAAU,mBAAO,CAAC,sDAAQ;AAC1B,iBAAiB,mBAAO,CAAC,sEAAgB;AACzC,YAAY,mBAAO,CAAC,4DAAW;AAC/B,kBAAkB,mBAAO,CAAC,sEAAgB;AAC1C,WAAW,mBAAO,CAAC,kEAAc;AACjC,iBAAiB,mBAAO,CAAC,sEAAgB;AACzC,kBAAkB,mBAAO,CAAC,sEAAgB;AAC1C,cAAc,uFAA0B;AACxC,eAAe,mBAAO,CAAC,sFAAwB;AAC/C;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA,wBAAwB,OAAO;AAC/B;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA,8BAA8B;AAC9B,8BAA8B;AAC9B,8BAA8B;AAC9B,8BAA8B;AAC9B,8BAA8B;AAC9B;AACA,KAAK;AACL;AACA;AACA;AACA;AACA,+EAA+E,OAAO;AACtF;AACA;AACA;AACA;AACA;AACA;AACA,OAAO;AACP;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,UAAU;AACV,OAAO;AACP;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,OAAO;AACP;AACA;AACA;AACA;AACA;AACA,KAAK;AACL;AACA;AACA;AACA;AACA,KAAK;AACL;AACA,GAAG;AACH;AACA;AACA;AACA;AACA;AACA;AACA;AACA,MAAM;AACN;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,MAAM;AACN,GAAG;AACH;AACA;AAC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C,kFAAsB;AACnD,qBAAqB,mBAAO,CAAC,oEAAe;AAC5C,eAAe,mBAAO,CAAC,sDAAQ;AAC/B,+CAA+C;AAC/C;AACA;AACA;;AAEA,+BAA+B;;AAE/B;AACA;AACA;AACA;AACA;AACA,0CAA0C;AAC1C,8CAA8C;AAC9C,MAAM,4BAA4B;AAClC;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,gBAAgB,mBAAmB;AACnC;AACA;AACA,mCAAmC;AACnC;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,MAAM;AACN;AACA;AACA;;;;;;;;;;;ACpEA,eAAe,mBAAO,CAAC,sDAAQ;AAC/B;;AAEA;AACA;AACA,kCAAkC;AAClC;AACA,kCAAkC,UAAU;AAC5C,EAAE,YAAY;;AAEd;AACA;AACA;AACA;AACA;AACA;AACA,8BAA8B,SAAS;AACvC,kCAAkC;AAClC;AACA,IAAI,YAAY;AAChB;AACA;;;;;;;;;;;ACrBA;AACA,WAAW;AACX;;;;;;;;;;;ACFA;;;;;;;;;;;ACAA;;;;;;;;;;;ACAA,WAAW,mBAAO,CAAC,sDAAQ;AAC3B,eAAe,mBAAO,CAAC,kEAAc;AACrC,UAAU,mBAAO,CAAC,sDAAQ;AAC1B,cAAc,2FAAyB;AACvC;AACA;AACA;AACA;AACA,cAAc,mBAAO,CAAC,0DAAU;AAChC,iDAAiD;AACjD,CAAC;AACD;AACA,sBAAsB;AACtB;AACA,mBAAmB;AACnB,KAAK;AACL;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,IAAI;AACJ;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,IAAI;AACJ;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;;;;;;;;;;ACpDA;AACA,eAAe,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,wFAAyB;AAC1D,iBAAiB,mBAAO,CAAC,wFAAyB;;AAElD;AACA,mBAAO,CAAC,oEAAe;AACvB;AACA;AACA;AACA;AACA;AACA;AACA;AACA,KAAK;AACL;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,CAAC;;;;;;;;;;;;ACvCY;;AAEb,eAAe,mBAAO,CAAC,kEAAc;AACrC,eAAe,mBAAO,CAAC,kEAAc;AACrC,eAAe,mBAAO,CAAC,kEAAc;AACrC,gBAAgB,mBAAO,CAAC,oEAAe;AACvC,yBAAyB,mBAAO,CAAC,wFAAyB;AAC1D,iBAAiB,mBAAO,CAAC,wFAAyB;AAClD;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;;AAEA;AACA,mBAAO,CAAC,oEAAe;AACvB;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,KAAK;AACL;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,sBAAsB,oBAAoB;AAC1C;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,wBAAwB,mBAAmB;AAC3C;AACA;AACA;AACA;AACA;AACA,UAAU;AACV;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,KAAK;AACL;AACA,CAAC;;;;;;;;;;;;ACrHY;;AAEb,eAAe,mBAAO,CAAC,kEAAc;AACrC,eAAe,mBAAO,CAAC,kEAAc;AACrC,yBAAyB,mBAAO,CAAC,sFAAwB;AACzD,yBAAyB,mBAAO,CAAC,wFAAyB;AAC1D,eAAe,mBAAO,CAAC,kEAAc;AACrC,qBAAqB,mBAAO,CAAC,wFAAyB;AACtD,iBAAiB,mBAAO,CAAC,sEAAgB;AACzC,YAAY,mBAAO,CAAC,0DAAU;AAC9B;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA,sCAAsC,0BAA0B;;AAEhE;AACA,mBAAO,CAAC,oEAAe;AACvB;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,oFAAoF;AACpF;AACA;AACA;AACA,QAAQ;AACR;AACA;AACA;AACA,IAAI;AACJ;AACA;AACA;AACA,IAAI;AACJ;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,KAAK;AACL;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,UAAU;AACV;AACA;AACA,0BAA0B,mBAAmB;AAC7C;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,CAAC;;;;;;;;;;;;ACrIY;AACb,aAAa,mBAAO,CAAC,kFAAsB;AAC3C,eAAe,mBAAO,CAAC,sFAAwB;AAC/C;;AAEA;AACA,iBAAiB,mBAAO,CAAC,oEAAe;AACxC,0BAA0B;AAC1B,CAAC;AACD;AACA;AACA;AACA;AACA,CAAC;;;;;;;;;;;;ACbY;AACb,UAAU,mBAAO,CAAC,kEAAc;;AAEhC;AACA,mBAAO,CAAC,sEAAgB;AACxB,8BAA8B;AAC9B,8BAA8B;AAC9B;AACA,CAAC;AACD;AACA;AACA;AACA,kCAAkC;AAClC;AACA;AACA,WAAW;AACX,CAAC;;;;;;;;;;;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oB,kBAApB,EAAwC,CACtC7C,2DAAC,CAAC,IAAD,CAAD,CAAQmH,aAAR,GAAwB9F,OADc,CAAxC;AAGD,KALD;AAMD,GAPD;AAQD,CA5CD;AA8CA,+DAAeR,8CAAf,E","sources":["../src/nested-admin/django$.js","../src/nested-admin/grp$.js","../src/nested-admin/jquery.djangoformset.js","../src/nested-admin/jquery.djnutils.js","../src/nested-admin/jquery.shim.js","../src/nested-admin/jquery.ui.djnsortable.js","../src/nested-admin/jquery.ui.nestedsortable.js","../src/nested-admin/regexquote.js","../src/nested-admin/sortable.js","../src/nested-admin/utils.js","../../../../node_modules/core-js/modules/_a-function.js","../../../../node_modules/core-js/modules/_add-to-unscopables.js","../../../../node_modules/core-js/modules/_advance-string-index.js","../../../../node_modules/core-js/modules/_an-instance.js","../../../../node_modules/core-js/modules/_an-object.js","../../../../node_modules/core-js/modules/_array-includes.js","../../../../node_modules/core-js/modules/_array-methods.js","../../../../node_modules/core-js/modules/_array-species-constructor.js","../../../../node_modules/core-js/modules/_array-species-create.js","../../../../node_modules/core-js/modules/_classof.js","../../../../node_modules/core-js/modules/_cof.js","../../../../node_modules/core-js/modules/_collection-strong.js","../../../../node_modules/core-js/modules/_collection.js","../../../../node_modules/core-js/modules/_core.js","../../../../node_modules/core-js/modules/_ctx.js","../../../../node_modules/core-js/modules/_defined.js","../../../../node_modules/core-js/modules/_descriptors.js","../../../../node_modules/core-js/modules/_dom-create.js","../../../../node_modules/core-js/modules/_enum-bug-keys.js","../../../../node_modules/core-js/modules/_export.js","../../../../node_modules/core-js/modules/_fails.js","../../../../node_modules/core-js/modules/_fix-re-wks.js","../../../../node_modules/core-js/modules/_flags.js","../../../../node_modules/core-js/modules/_for-of.js","../../../../node_modules/core-js/modules/_function-to-string.js","../../../../node_modules/core-js/modules/_global.js","../../../../node_modules/core-js/modules/_has.js","../../../../node_modules/core-js/modules/_hide.js","../../../../node_modules/core-js/modules/_html.js","../../../../node_modules/core-js/modules/_ie8-dom-define.js","../../../../node_modules/core-js/modules/_inherit-if-required.js","../../../../node_modules/core-js/modules/_iobject.js","../../../../node_modules/core-js/modules/_is-array-iter.js","../../../../node_modules/core-js/modules/_is-array.js","../../../../node_modules/core-js/modules/_is-object.js","../../../../node_modules/core-js/modules/_is-regexp.js","../../../../node_modules/core-js/modules/_iter-call.js","../../../../node_modules/core-js/modules/_iter-create.js","../../../../node_modules/core-js/modules/_iter-define.js","../../../../node_modules/core-js/modules/_iter-detect.js","../../../../node_modules/core-js/modules/_iter-step.js","../../../../node_modules/core-js/modules/_iterators.js","../../../../node_modules/core-js/modules/_library.js","../../../../node_modules/core-js/modules/_meta.js","../../../../node_modules/core-js/modules/_object-create.js","../../../../node_modules/core-js/modules/_object-dp.js","../../../../node_modules/core-js/modules/_object-dps.js","../../../../node_modules/core-js/modules/_object-gopd.js","../../../../node_modules/core-js/modules/_object-gopn.js","../../../../node_modules/core-js/modules/_object-gpo.js","../../../../node_modules/core-js/modules/_object-keys-internal.js","../../../../node_modules/core-js/modules/_object-keys.js","../../../../node_modules/core-js/modules/_object-pie.js","../../../../node_modules/core-js/modules/_property-desc.js","../../../../node_modules/core-js/modules/_redefine-all.js","../../../../node_modules/core-js/modules/_redefine.js","../../../../node_modules/core-js/modules/_regexp-exec-abstract.js","../../../../node_modules/core-js/modules/_regexp-exec.js","../../../../node_modules/core-js/modules/_set-proto.js","../../../../node_modules/core-js/modules/_set-species.js","../../../../node_modules/core-js/modules/_set-to-string-tag.js","../../../../node_modules/core-js/modules/_shared-key.js","../../../../node_modules/core-js/modules/_shared.js","../../../../node_modules/core-js/modules/_species-constructor.js","../../../../node_modules/core-js/modules/_strict-method.js","../../../../node_modules/core-js/modules/_string-at.js","../../../../node_modules/core-js/modules/_to-absolute-index.js","../../../../node_modules/core-js/modules/_to-integer.js","../../../../node_modules/core-js/modules/_to-iobject.js","../../../../node_modules/core-js/modules/_to-length.js","../../../../node_modules/core-js/modules/_to-object.js","../../../../node_modules/core-js/modules/_to-primitive.js","../../../../node_modules/core-js/modules/_uid.js","../../../../node_modules/core-js/modules/_validate-collection.js","../../../../node_modules/core-js/modules/_wks.js","../../../../node_modules/core-js/modules/core.get-iterator-method.js","../../../../node_modules/core-js/modules/es6.array.filter.js","../../../../node_modules/core-js/modules/es6.array.find.js","../../../../node_modules/core-js/modules/es6.array.iterator.js","../../../../node_modules/core-js/modules/es6.array.map.js","../../../../node_modules/core-js/modules/es6.array.slice.js","../../../../node_modules/core-js/modules/es6.array.sort.js","../../../../node_modules/core-js/modules/es6.function.name.js","../../../../node_modules/core-js/modules/es6.object.to-string.js","../../../../node_modules/core-js/modules/es6.regexp.constructor.js","../../../../node_modules/core-js/modules/es6.regexp.exec.js","../../../../node_modules/core-js/modules/es6.regexp.match.js","../../../../node_modules/core-js/modules/es6.regexp.replace.js","../../../../node_modules/core-js/modules/es6.regexp.split.js","../../../../node_modules/core-js/modules/es6.set.js","../../../../node_modules/core-js/modules/es6.string.iterator.js","../../../../node_modules/core-js/modules/web.dom.iterable.js","../../../../external window \"grappelli\"","../../../../external window \"grp\"","../../../../webpack/bootstrap","../../../../webpack/runtime/compat get default export","../../../../webpack/runtime/define property getters","../../../../webpack/runtime/hasOwnProperty shorthand","../../../../webpack/runtime/make namespace object","webpack://DJNesting/./nested_admin/static/nested_admin/src/nested_admin.scss?471b","../src/nested-admin/index.js"],"sourcesContent":["import $ from \"jquery\";\n\n/**\n * Converts a grp.jQuery instance to a django.jQuery instance.\n */\nfunction django$($sel) {\n if (typeof window.grp === \"undefined\") {\n return $($sel);\n }\n if (window.grp.jQuery.fn.init === $.fn.init) {\n return $($sel);\n }\n const $djangoSel = $($sel);\n if ($sel.prevObject) {\n $djangoSel.prevObject = django$($sel.prevObject);\n }\n return $djangoSel;\n}\n\nexport default django$;\n","import $ from \"jquery\";\n\n/**\n * For grappelli 2.14, converts a django.jQuery instance to a grp.jQuery\n * instance. Otherwise (if grappelli is not present, or for grappelli <= 2.13,\n * where the grappelli jQuery instance is the same as django's), returns the\n * object that was passed in, unchanged.\n */\nfunction grp$($sel) {\n if (typeof window.grp === \"undefined\") {\n return $($sel);\n }\n if (window.grp.jQuery.fn.init === $.fn.init) {\n return $($sel);\n }\n const $grpSel = window.grp.jQuery($sel);\n if ($sel.prevObject) {\n $grpSel.prevObject = grp$($sel.prevObject);\n }\n return $grpSel;\n}\n\nexport default grp$;\n","import $ from \"jquery\";\n\nimport regexQuote from \"./regexquote\";\nimport DJNesting from \"./utils\";\nimport * as grappelli from \"grappelli\";\nimport grp from \"grp\";\nimport grp$ from \"./grp$\";\nimport django$ from \"./django$\";\n\nvar pluginName = \"djangoFormset\";\n\nclass DjangoFormset {\n constructor(inline) {\n this.opts = {\n emptyClass: \"empty-form grp-empty-form djn-empty-form\",\n predeleteClass: \"grp-predelete\",\n };\n this.$inline = $(inline);\n this.prefix = this.$inline.djangoFormsetPrefix();\n this._$totalForms = this.$inline.find(\n \"#id_\" + this.prefix + \"-TOTAL_FORMS\"\n );\n this._$totalForms.attr(\"autocomplete\", \"off\");\n this._$template = $(\"#\" + this.prefix + \"-empty\");\n\n var inlineModelClassName = this.$inline.djnData(\"inlineModel\");\n\n this.opts = $.extend({}, this.opts, {\n childTypes: this.$inline.data(\"inlineFormset\").options.childTypes,\n formsetFkModel: this.$inline.djnData(\"formsetFkModel\"),\n addButtonSelector: \".djn-add-handler.djn-model-\" + inlineModelClassName,\n removeButtonSelector:\n \".djn-remove-handler.djn-model-\" + inlineModelClassName,\n deleteButtonSelector:\n \".djn-delete-handler.djn-model-\" + inlineModelClassName,\n formClass:\n \"dynamic-form grp-dynamic-form djn-dynamic-form-\" +\n inlineModelClassName,\n formClassSelector: \".djn-dynamic-form-\" + inlineModelClassName,\n });\n\n DJNesting.initRelatedFields(this.prefix, this.$inline.djnData());\n DJNesting.initAutocompleteFields(this.prefix, this.$inline.djnData());\n\n if (this.opts.childTypes) {\n this._setupPolymorphic();\n }\n this._bindEvents();\n\n this._initializeForms();\n\n this.$inline\n .find('.djn-items:not([id*=\"-empty\"])')\n .trigger(\"djnesting:init\");\n\n // initialize nested formsets\n this.$inline\n .find(\n '.djn-group[id$=\"-group\"][id^=\"' +\n this.prefix +\n '\"][data-inline-formset]:not([id*=\"-empty\"])'\n )\n .each(function () {\n $(this)[pluginName]();\n });\n\n if (this.$inline.is(\".djn-group-root\")) {\n DJNesting.createSortable(this.$inline);\n }\n\n $(document).trigger(\"djnesting:initialized\", [this.$inline, this]);\n }\n _setupPolymorphic() {\n if (!this.opts.childTypes) {\n throw Error(\n \"The polymorphic fieldset options.childTypes is not defined!\"\n );\n }\n let menu = '
\";\n const $addButton = this.$inline.find(this.opts.addButtonSelector);\n const $menu = $(menu);\n $addButton.after($menu);\n }\n\n _initializeForms() {\n var totalForms = this.mgmtVal(\"TOTAL_FORMS\");\n var maxForms = this.mgmtVal(\"MAX_NUM_FORMS\");\n if (maxForms <= totalForms) {\n this.$inline\n .find(this.opts.addButtonSelector)\n .parents(\".djn-add-item\")\n .hide();\n }\n for (var i = 0; i < totalForms; i++) {\n this._initializeForm(\"#\" + this.prefix + \"-\" + i);\n }\n }\n _initializeForm(form) {\n var $form = $(form);\n var formPrefix = $form.djangoFormPrefix();\n $form.addClass(this.opts.formClass);\n if ($form.hasClass(\"has_original\")) {\n $(\"#id_\" + formPrefix + \"DELETE:checked\").toggleClass(\n this.opts.predeleteClass\n );\n }\n var minForms = this.mgmtVal(\"MIN_NUM_FORMS\");\n var totalForms = this.mgmtVal(\"TOTAL_FORMS\");\n var self = this;\n var hideRemoveButton = totalForms <= minForms;\n this.$inline.djangoFormsetForms().each(function () {\n var showHideMethod = hideRemoveButton ? \"hide\" : \"show\";\n $(this).find(self.opts.removeButtonSelector)[showHideMethod]();\n });\n }\n _bindEvents($el) {\n var self = this;\n if (typeof $el == \"undefined\") {\n $el = this.$inline;\n }\n const $addButton = $el.find(this.opts.addButtonSelector);\n $addButton.off(\"click.djnesting\").on(\"click.djnesting\", function (e) {\n e.preventDefault();\n e.stopPropagation();\n const $menu = $(this).next(\".polymorphic-type-menu\");\n if (!$menu.length) {\n self.add();\n } else {\n if (!$menu.is(\":visible\")) {\n function hideMenu() {\n $menu.hide();\n $(document).off(\"click\", hideMenu);\n }\n $(document).on(\"click\", hideMenu);\n }\n $menu.show();\n }\n });\n const $menuButtons = $addButton.parent().find(\"> .polymorphic-type-menu a\");\n $menuButtons.off(\"click.djnesting\").on(\"click.djnesting\", function (e) {\n e.preventDefault();\n e.stopPropagation();\n const polymorphicType = $(this).attr(\"data-type\");\n self.add(null, polymorphicType);\n const $menu = $(e.target).closest(\".polymorphic-type-menu\");\n if ($menu.is(\":visible\")) {\n $menu.hide();\n }\n });\n $el\n .find(this.opts.removeButtonSelector)\n .filter(function () {\n return !$(this).closest(\".djn-empty-form\").length;\n })\n .off(\"click.djnesting\")\n .on(\"click.djnesting\", function (e) {\n e.preventDefault();\n e.stopPropagation();\n var $form = $(this).closest(self.opts.formClassSelector);\n self.remove($form);\n });\n\n var deleteClickHandler = function (e) {\n e.preventDefault();\n e.stopImmediatePropagation();\n var $form = $(this).closest(self.opts.formClassSelector);\n var $deleteInput = $(\"#id_\" + $form.djangoFormPrefix() + \"DELETE\");\n if (!$deleteInput.is(\":checked\")) {\n self[\"delete\"]($form);\n } else {\n self.undelete($form);\n }\n };\n\n var $deleteButton = $el\n .find(this.opts.deleteButtonSelector)\n .filter(function () {\n return !$(this).closest(\".djn-empty-form\").length;\n });\n\n $deleteButton\n .off(\"click.djnesting\")\n .on(\"click.djnesting\", deleteClickHandler);\n $deleteButton\n .find('[id$=\"-DELETE\"]')\n .on(\"mousedown.djnesting\", deleteClickHandler);\n }\n remove(form) {\n var $form = $(form);\n var totalForms = this.mgmtVal(\"TOTAL_FORMS\");\n var minForms = this.mgmtVal(\"MIN_NUM_FORMS\");\n var maxForms = this.mgmtVal(\"MAX_NUM_FORMS\");\n var index = $form.djangoFormIndex();\n var isInitial = $form.data(\"isInitial\");\n\n // Clearing out the form HTML itself using DOM APIs is much faster\n // than using jQuery to remove the element. Using jQuery is so\n // slow that it hangs the page.\n $form[0].innerHTML = \"\";\n $form.remove();\n\n totalForms -= 1;\n this.mgmtVal(\"TOTAL_FORMS\", totalForms);\n\n if (maxForms - totalForms >= 0) {\n this.$inline\n .find(this.opts.addButtonSelector)\n .parents(\".djn-add-item\")\n .show();\n }\n\n this._fillGap(index, isInitial);\n\n var self = this;\n var hideRemoveButton = totalForms <= minForms;\n this.$inline.djangoFormsetForms().each(function () {\n var showHideMethod = hideRemoveButton ? \"hide\" : \"show\";\n $(this).find(self.opts.removeButtonSelector)[showHideMethod]();\n });\n\n DJNesting.updatePositions(this.prefix);\n $(document).trigger(\"djnesting:mutate\", [this.$inline]);\n\n // Also fire using the events that were added in Django 1.9\n $(document).trigger(\"formset:removed\", [$form, this.prefix]);\n\n document.dispatchEvent(\n new CustomEvent(\"formset:removed\", {\n detail: {\n formsetName: this.prefix,\n },\n })\n );\n }\n delete(form) {\n var self = this,\n $form = $(form),\n formPrefix = $form.djangoFormPrefix(),\n $deleteInput = $(\"#id_\" + formPrefix + \"DELETE\");\n\n if ($form.hasClass(this.opts.predeleteClass)) {\n return;\n }\n\n if (!$form.data(\"isInitial\")) {\n return;\n }\n $deleteInput.attr(\"checked\", \"checked\");\n if ($deleteInput.length) {\n $deleteInput[0].checked = true;\n }\n $form.addClass(this.opts.predeleteClass);\n\n $form.find(\".djn-group\").each(function () {\n var $childInline = $(this);\n var childFormset = $childInline.djangoFormset();\n $childInline.djangoFormsetForms().each(function () {\n if ($(this).hasClass(self.opts.predeleteClass)) {\n $(this).data(\"alreadyDeleted\", true);\n } else {\n childFormset.delete(this);\n }\n });\n });\n $form.find(\".cropduster-form\").each(function () {\n var formPrefix = $(this).djangoFormsetPrefix() + \"-0-\";\n var $deleteInput = $(\"#id_\" + formPrefix + \"DELETE\");\n $deleteInput.attr(\"checked\", \"checked\");\n if ($deleteInput.length) {\n $deleteInput[0].checked = true;\n }\n });\n DJNesting.updatePositions(this.prefix);\n $(document).trigger(\"djnesting:mutate\", [this.$inline]);\n $(document).trigger(\"formset:deleted\", [$form, this.prefix]);\n }\n undelete(form) {\n var $form = $(form),\n formPrefix = $form.djangoFormPrefix(),\n $deleteInput = $(\"#id_\" + formPrefix + \"DELETE\");\n\n if ($form.parent().closest(\".\" + this.opts.predeleteClass).length) {\n return;\n }\n if ($form.hasClass(\"has_original\")) {\n $deleteInput.removeAttr(\"checked\");\n if ($deleteInput.length) {\n $deleteInput[0].checked = false;\n }\n $form.removeClass(this.opts.predeleteClass);\n }\n $form.data(\"alreadyDeleted\", false);\n $form.find(\".djn-group\").each(function () {\n var $childInline = $(this);\n var childFormset = $childInline.djangoFormset();\n $childInline.djangoFormsetForms().each(function () {\n if ($(this).data(\"alreadyDeleted\")) {\n $(this).data(\"alreadyDeleted\", false);\n } else {\n childFormset.undelete(this);\n }\n });\n });\n $form.find(\".cropduster-form\").each(function () {\n var formPrefix = $(this).djangoFormsetPrefix() + \"-0-\";\n var $deleteInput = $(\"#id_\" + formPrefix + \"DELETE\");\n $deleteInput.removeAttr(\"checked\");\n if ($deleteInput.length) {\n $deleteInput[0].checked = false;\n }\n });\n DJNesting.updatePositions(this.prefix);\n $(document).trigger(\"djnesting:mutate\", [this.$inline]);\n $(document).trigger(\"formset:undeleted\", [$form, this.prefix]);\n }\n add(spliceIndex, ctype) {\n var self = this;\n const $template = ctype\n ? $(`#${this.prefix}-empty-${ctype}`)\n : this._$template;\n var $form = $template.clone(true);\n\n // For django-grappelli >= 2.14, where the grp.jQuery instance is not\n // the same as django.jQuery, we must copy any prepopulated_field\n // dependency data from grp.jQuery to the cloned nodes.\n grp$($template)\n .find(\":data(dependency_ids)\")\n .each(function () {\n const id = $(this).attr(\"id\");\n const $el = $form.find(`#${id}`);\n grp$($el).data($.extend({}, $el.data(), grp$(this).data()));\n });\n\n var index = this.mgmtVal(\"TOTAL_FORMS\");\n var maxForms = this.mgmtVal(\"MAX_NUM_FORMS\");\n var isNested = this.$inline.hasClass(\"djn-group-nested\");\n\n $(document).trigger(\"djnesting:beforeadded\", [this.$inline, $form]);\n\n $form.removeClass(this.opts.emptyClass);\n $form.addClass(\"djn-item\");\n $form.attr(\"id\", $form.attr(\"id\").replace(/\\-empty.*?$/, \"-\" + index));\n\n if (isNested) {\n $form.append(DJNesting.createContainerElement());\n }\n\n DJNesting.updateFormAttributes(\n $form,\n new RegExp(\n '([#_]id_|[\\\\#]|^id_|\"|^)' +\n regexQuote(this.prefix) +\n \"\\\\-(?:__prefix__|empty)\\\\-\",\n \"g\"\n ),\n \"$1\" + this.prefix + \"-\" + index + \"-\"\n );\n\n let $firstTemplate = this._$template;\n if (this.opts.childTypes) {\n $firstTemplate = $template\n .closest(\".djn-group\")\n .find(\n '> .djn-items > [id*=\"-empty\"], > .djn-fieldset > .djn-items > [id*=\"-empty\"]'\n )\n .eq(0);\n }\n if (this.opts.childTypes) {\n const compatibleParents = this.$inline.djnData(\"compatibleParents\") || {};\n $form.find(\"> .djn-group\").each((i, el) => {\n const fkModel = $(el).djnData(\"formsetFkModel\");\n const compatModels = compatibleParents[ctype] || [];\n const $el = $(el);\n const parentModel = $el.djnData(\"inlineParentModel\");\n const isPolymorphic = !!$el.data(\"inlineFormset\").options.childTypes;\n const formPrefix = $el.data(\"inlineFormset\").options.prefix;\n if (\n parentModel !== ctype ||\n (isPolymorphic &&\n fkModel !== ctype &&\n compatModels.indexOf(fkModel) === -1)\n ) {\n $el.find('input[id$=\"_FORMS\"]').each((i, input) => {\n input.value = 0;\n input.setAttribute(\"value\", \"0\");\n el.parentNode.appendChild(input);\n });\n el.parentNode.removeChild(el);\n }\n });\n }\n\n $form.insertBefore($firstTemplate);\n\n this.mgmtVal(\"TOTAL_FORMS\", index + 1);\n if (maxForms - (index + 1) <= 0) {\n this.$inline\n .find(this.opts.addButtonSelector)\n .parents(\".djn-add-item\")\n .hide();\n }\n\n DJNesting.updatePositions(this.prefix);\n\n if ($.isNumeric(spliceIndex)) {\n this.spliceInto($form, spliceIndex, true);\n } else {\n $(document).trigger(\"djnesting:mutate\", [this.$inline]);\n }\n\n if (grappelli) {\n grappelli.reinitDateTimeFields(grp$($form));\n }\n DJNesting.DjangoInlines.initPrepopulatedFields(django$($form));\n DJNesting.DjangoInlines.reinitDateTimeShortCuts();\n DJNesting.DjangoInlines.updateSelectFilter($form);\n DJNesting.initRelatedFields(this.prefix);\n DJNesting.initAutocompleteFields(this.prefix);\n if (grp && grp.jQuery.fn.grp_collapsible) {\n var addBackMethod = grp.jQuery.fn.addBack ? \"addBack\" : \"andSelf\";\n grp$($form)\n .find('.grp-collapse:not([id$=\"-empty\"]):not([id*=\"-empty-\"])')\n [addBackMethod]()\n .grp_collapsible({\n toggle_handler_slctr: \".grp-collapse-handler:first\",\n closed_css: \"closed grp-closed\",\n open_css: \"open grp-open\",\n on_toggle: function () {\n $(document).trigger(\"djnesting:toggle\", [self.$inline]);\n },\n });\n }\n if (typeof $.fn.curated_content_type == \"function\") {\n $form.find(\".curated-content-type-select\").each(function () {\n $(this).curated_content_type();\n });\n }\n\n this._initializeForm($form);\n this._bindEvents($form);\n\n if (ctype) {\n const formsetModelClassName = this.$inline.djnData(\"inlineModel\");\n const inlineModelClassName = $form.attr(\"data-inline-model\");\n const $buttons = $form.find(`.djn-model-${formsetModelClassName}`);\n $buttons.addClass(`djn-model-${inlineModelClassName}`);\n $form.addClass(`djn-dynamic-form-${inlineModelClassName}`);\n }\n\n // find any nested formsets\n $form\n .find(\n '.djn-group[id$=\"-group\"][id^=\"' +\n this.prefix +\n '\"][data-inline-formset]:not([id*=\"-empty\"])'\n )\n .each(function () {\n $(this)[pluginName]();\n });\n\n // Fire an event on the document so other javascript applications\n // can be alerted to the newly inserted inline\n $(document).trigger(\"djnesting:added\", [this.$inline, $form]);\n\n // Also fire using the events that were added in Django 1.9\n $(document).trigger(\"formset:added\", [$form, this.prefix]);\n\n try {\n $form.get(0).dispatchEvent(\n new CustomEvent(\"formset:added\", {\n bubbles: true,\n detail: {\n formsetName: this.prefix,\n },\n })\n );\n } catch (e) {}\n\n return $form;\n }\n _fillGap(index, isInitial) {\n var $initialForm, $newForm;\n var formsets = this.$inline.djangoFormsetForms().toArray();\n // Sort formsets in index order, so that we get the last indexed form for the swap.\n formsets.sort(function (a, b) {\n return $(a).djangoFormIndex() - $(b).djangoFormIndex();\n });\n formsets.forEach(function (form) {\n var $form = $(form);\n var i = $form.djangoFormIndex();\n if (i <= index) {\n return;\n }\n if ($form.data(\"isInitial\")) {\n $initialForm = $form;\n } else {\n $newForm = $form;\n }\n });\n var $form = isInitial ? $initialForm || $newForm : $newForm;\n if (!$form) {\n return;\n }\n var oldIndex = $form.djangoFormIndex();\n var oldFormPrefixRegex = new RegExp(\n \"([\\\\#_]|^)\" + regexQuote(this.prefix + \"-\" + oldIndex) + \"(?!\\\\-\\\\d)\"\n );\n $form.attr(\"id\", this.prefix + \"-\" + index);\n DJNesting.updateFormAttributes(\n $form,\n oldFormPrefixRegex,\n \"$1\" + this.prefix + \"-\" + index\n );\n\n // Update prefixes on nested DjangoFormset objects\n $form.find(\".djn-group\").each(function () {\n var $childInline = $(this);\n var childFormset = $childInline.djangoFormset();\n childFormset.prefix = $childInline.djangoFormsetPrefix();\n });\n\n $(document).trigger(\"djnesting:attrchange\", [this.$inline, $form]);\n\n if (isInitial && $initialForm && $newForm) {\n this._fillGap(oldIndex, false);\n }\n }\n _makeRoomForInsert() {\n var initialFormCount = this.mgmtVal(\"INITIAL_FORMS\"),\n totalFormCount = this.mgmtVal(\"TOTAL_FORMS\"),\n gapIndex = initialFormCount,\n $existingForm = $(\"#\" + this.prefix + \"-\" + gapIndex);\n\n if (!$existingForm.length) {\n return;\n }\n\n var oldFormPrefixRegex = new RegExp(\n \"([\\\\#_]|^)\" + regexQuote(this.prefix) + \"-\" + gapIndex + \"(?!\\\\-\\\\d)\"\n );\n $existingForm.attr(\"id\", this.prefix + \"-\" + totalFormCount);\n DJNesting.updateFormAttributes(\n $existingForm,\n oldFormPrefixRegex,\n \"$1\" + this.prefix + \"-\" + totalFormCount\n );\n\n // Update prefixes on nested DjangoFormset objects\n $existingForm.find(\".djn-group\").each(function () {\n var $childInline = $(this);\n var childFormset = $childInline.djangoFormset();\n childFormset.prefix = $childInline.djangoFormsetPrefix();\n });\n\n $(document).trigger(\"djnesting:attrchange\", [this.$inline, $existingForm]);\n }\n /**\n * Splice a form into the current formset at new position `index`.\n */\n spliceInto($form, index, isNewAddition) {\n var initialFormCount = this.mgmtVal(\"INITIAL_FORMS\"),\n totalFormCount = this.mgmtVal(\"TOTAL_FORMS\"),\n oldFormsetPrefix = $form.djangoFormsetPrefix(),\n newFormsetPrefix = this.prefix,\n isInitial = $form.data(\"isInitial\"),\n newIndex,\n $before;\n\n // Make sure the form being spliced is from a different inline\n if ($form.djangoFormsetPrefix() == this.prefix) {\n var currentPosition = $form.prevAll(\n \".djn-item:not(.djn-no-drag,.djn-thead)\"\n ).length;\n if (currentPosition === index || typeof index == \"undefined\") {\n DJNesting.updatePositions(newFormsetPrefix);\n return;\n }\n $before = this.$inline\n .find(\"> .djn-items, > .tabular > .module > .djn-items\")\n .find(\"> .djn-item:not(#\" + $form.attr(\"id\") + \")\")\n .eq(index);\n $before.after($form);\n } else {\n var $oldInline = $(\"#\" + oldFormsetPrefix + \"-group\");\n var $currentFormInline = $form.closest(\".djn-group\");\n\n if ($currentFormInline.djangoFormsetPrefix() != newFormsetPrefix) {\n $before = this.$inline\n .find(\"> .djn-items, > .tabular > .module > .djn-items\")\n .find(\"> .djn-item\")\n .eq(index);\n $before.after($form);\n }\n\n var oldDjangoFormset = $oldInline.djangoFormset();\n oldDjangoFormset.mgmtVal(\n \"TOTAL_FORMS\",\n oldDjangoFormset.mgmtVal(\"TOTAL_FORMS\") - 1\n );\n oldDjangoFormset._fillGap($form.djangoFormIndex(), isInitial);\n\n if (isInitial) {\n oldDjangoFormset.mgmtVal(\n \"INITIAL_FORMS\",\n oldDjangoFormset.mgmtVal(\"INITIAL_FORMS\") - 1\n );\n\n var $parentInline = this.$inline.parent().closest(\".djn-group\");\n if ($parentInline.length) {\n var $parentForm = this.$inline.closest(\".djn-inline-form\");\n var parentPkField = ($parentInline.djnData(\"fieldNames\") || {}).pk;\n var $parentPk = $parentForm.djangoFormField(parentPkField);\n if (!$parentPk.val()) {\n $form.data(\"isInitial\", false);\n $form.attr(\"data-is-initial\", \"false\");\n isInitial = false;\n // Set initial form counts to 0 on nested DjangoFormsets\n setTimeout(function () {\n $form\n .find(\n '[name^=\"' +\n $form.djangoFormPrefix() +\n '\"][name$=\"-INITIAL_FORMS\"]'\n )\n .val(\"0\")\n .trigger(\"change\");\n }, 0);\n }\n }\n }\n\n if (isInitial) {\n this._makeRoomForInsert();\n }\n\n // Replace the ids for the splice form\n var oldFormPrefixRegex = new RegExp(\n \"([\\\\#_]|^)\" + regexQuote($form.attr(\"id\")) + \"(?!\\\\-\\\\d)\"\n );\n newIndex = isInitial ? initialFormCount : totalFormCount;\n $form.attr(\"id\", newFormsetPrefix + \"-\" + newIndex);\n DJNesting.updateFormAttributes(\n $form,\n oldFormPrefixRegex,\n \"$1\" + newFormsetPrefix + \"-\" + newIndex\n );\n\n // Update prefixes on nested DjangoFormset objects\n $form.find(\".djn-group\").each(function () {\n var $childInline = $(this);\n var childFormset = $childInline.djangoFormset();\n childFormset.prefix = $childInline.djangoFormsetPrefix();\n });\n\n $(document).trigger(\"djnesting:attrchange\", [this.$inline, $form]);\n\n if (isInitial) {\n this.mgmtVal(\"INITIAL_FORMS\", initialFormCount + 1);\n }\n this.mgmtVal(\"TOTAL_FORMS\", totalFormCount + 1);\n\n DJNesting.updatePositions(oldFormsetPrefix);\n $(document).trigger(\"djnesting:mutate\", [$oldInline]);\n }\n\n DJNesting.updatePositions(newFormsetPrefix);\n if (!isNewAddition) {\n $(document).trigger(\"djnesting:mutate\", [this.$inline]);\n }\n }\n mgmtVal(name, newValue) {\n var $field = this.$inline.find(\"#id_\" + this.prefix + \"-\" + name);\n if (typeof newValue == \"undefined\") {\n return parseInt($field.val(), 10);\n } else {\n return parseInt($field.val(newValue).trigger(\"change\").val(), 10);\n }\n }\n}\n\n$.fn[pluginName] = function () {\n var options, fn, args;\n var $el = this.eq(0);\n\n if (\n arguments.length === 0 ||\n (arguments.length === 1 && $.type(arguments[0]) != \"string\")\n ) {\n options = arguments[0];\n var djangoFormset = $el.data(pluginName);\n if (!djangoFormset) {\n djangoFormset = new DjangoFormset($el, options);\n $el.data(pluginName, djangoFormset);\n }\n return djangoFormset;\n }\n\n fn = arguments[0];\n args = $.makeArray(arguments).slice(1);\n\n if (fn in DjangoFormset.prototype) {\n return $el.data(pluginName)[fn](args);\n } else {\n throw new Error(\"Unknown function call \" + fn + \" for $.fn.\" + pluginName);\n }\n};\n\nexport default DjangoFormset;\n","import $ from \"jquery\";\n\nvar prefixCache = {};\n\n$.fn.djnData = function (name) {\n var inlineFormsetData = $(this).data(\"inlineFormset\") || {},\n nestedOptions = inlineFormsetData.nestedOptions || {};\n if (!name) {\n return nestedOptions;\n } else {\n return nestedOptions[name];\n }\n};\n\n$.fn.djangoPrefixIndex = function () {\n var $this = this.length > 1 ? this.first() : this;\n var id = $this.attr(\"id\"),\n name = $this.attr(\"name\"),\n forattr = $this.attr(\"for\"),\n prefix,\n $form,\n $group,\n groupId,\n cacheKey,\n match,\n index;\n\n if (\n (match = prefixCache[id]) ||\n (match = prefixCache[name]) ||\n (match = prefixCache[forattr])\n ) {\n return match;\n }\n\n if (id && !prefix) {\n prefix = (id.match(/^(.*)\\-group$/) || [null, null])[1];\n }\n\n if (id && !prefix && $this.is(\".djn-item\") && id.match(/\\d+$/)) {\n [cacheKey, prefix, index] = id.match(/(.*?)\\-(\\d+)$/) || [null, null, null];\n }\n\n if (!prefix) {\n $form = $this.closest(\".djn-inline-form\");\n if ($form.length) {\n [cacheKey, prefix, index] = $form.attr(\"id\").match(/(.*?)\\-(\\d+)$/) || [\n null,\n null,\n null,\n ];\n } else {\n $group = $this.closest(\".djn-group\");\n if (!$group.length) {\n return null;\n }\n groupId = $group.attr(\"id\") || \"\";\n prefix = (groupId.match(/^(.*)\\-group$/) || [null, null])[1];\n }\n } else {\n if (prefix.substr(0, 3) == \"id_\") {\n prefix = prefix.substr(3);\n }\n\n if (!document.getElementById(prefix + \"-group\")) {\n return null;\n }\n }\n if (cacheKey) {\n prefixCache[cacheKey] = [prefix, index];\n }\n\n return [prefix, index];\n};\n\n$.fn.djangoFormPrefix = function () {\n var prefixIndex = this.djangoPrefixIndex();\n if (!prefixIndex || !prefixIndex[1]) {\n return null;\n }\n return prefixIndex[0] + \"-\" + prefixIndex[1] + \"-\";\n};\n\n$.fn.djangoFormIndex = function () {\n var prefixIndex = this.djangoPrefixIndex();\n return !prefixIndex || !prefixIndex[1] ? null : parseInt(prefixIndex[1], 10);\n};\n\n$.fn.djangoFormsetPrefix = function () {\n var prefixIndex = this.djangoPrefixIndex();\n return !prefixIndex ? null : prefixIndex[0];\n};\n\nvar filterDjangoFormsetForms = function (form, $group, formsetPrefix) {\n var formId = form.getAttribute(\"id\"),\n formIndex = formId.substr(formsetPrefix.length + 1);\n\n // Check if form id matches /{prefix}-\\d+/\n if (formId.indexOf(formsetPrefix) !== 0) {\n return false;\n }\n return !formIndex.match(/\\D/);\n};\n\n// Selects all initial forms within the same formset as the\n// element the method is being called on.\n$.fn.djangoFormsetForms = function () {\n var forms = [];\n this.each(function () {\n var $this = $(this),\n formsetPrefix = $this.djangoFormsetPrefix(),\n $group = formsetPrefix ? $(\"#\" + formsetPrefix + \"-group\") : null,\n $forms;\n\n if (!formsetPrefix || !$group.length) return;\n\n $forms = $group.find(\".djn-inline-form\").filter(function () {\n return filterDjangoFormsetForms(this, $group, formsetPrefix);\n });\n var sortedForms = $forms.toArray().sort(function (a, b) {\n return $(a).djangoFormIndex() - $(b).djangoFormIndex;\n });\n Array.prototype.push.apply(forms, sortedForms);\n });\n return this.pushStack(forms);\n};\n\nif (typeof $.djangoFormField != \"function\") {\n $.djangoFormField = function (fieldName, prefix, index) {\n var $empty = $([]),\n matches;\n if ((matches = prefix.match(/^(.+)\\-(\\d+)\\-$/))) {\n prefix = matches[1];\n index = matches[2];\n }\n index = parseInt(index, 10);\n if (isNaN(index)) {\n return $empty;\n }\n var namePrefix = prefix + \"-\" + index + \"-\";\n if (fieldName == \"*\") {\n return $('*[name^=\"' + namePrefix + '\"]').filter(function () {\n var fieldPart = $(this).attr(\"name\").substring(namePrefix.length);\n return fieldPart.indexOf(\"-\") === -1;\n });\n }\n var $field = $(\"#id_\" + namePrefix + fieldName);\n if (!$field.length && (fieldName == \"pk\" || fieldName == \"position\")) {\n var $group = $(\"#\" + prefix + \"-group\"),\n fieldNameData = $group.djnData(\"fieldNames\") || {};\n fieldName = fieldNameData[fieldName];\n if (!fieldName) {\n return $empty;\n }\n $field = $(\"#id_\" + namePrefix + fieldName);\n }\n return $field;\n };\n}\n\nif (typeof $.fn.djangoFormField != \"function\") {\n /**\n * Given a django model's field name, and the forms index in the\n * formset, returns the field's input element, or an empty jQuery\n * object on failure.\n *\n * @param String fieldName - 'pk', 'position', or the field's\n * name in django (e.g. 'content_type',\n * 'url', etc.)\n * @return jQuery object containing the field's input element, or\n * an empty jQuery object on failure\n */\n $.fn.djangoFormField = function (fieldName, index) {\n var prefixAndIndex = this.djangoPrefixIndex();\n var $empty = $([]);\n if (!prefixAndIndex) {\n return $empty;\n }\n var prefix = prefixAndIndex[0];\n if (typeof index == \"undefined\") {\n index = prefixAndIndex[1];\n if (typeof index == \"undefined\") {\n return $empty;\n }\n }\n return $.djangoFormField(fieldName, prefix, index);\n };\n}\n\nif (typeof $.fn.filterDjangoField != \"function\") {\n var djRegexCache = {};\n $.fn.filterDjangoField = function (prefix, fieldName, index) {\n var $field, fieldNameData;\n if (typeof index != \"undefined\") {\n if (typeof index == \"string\") {\n index = parseInt(index, 10);\n }\n if (typeof index == \"number\" && !isNaN(index)) {\n var fieldId = \"id_\" + prefix + \"-\" + index + \"-\" + fieldName;\n $field = $(\"#\" + fieldId);\n }\n } else {\n if (typeof djRegexCache[prefix] != \"object\") {\n djRegexCache[prefix] = {};\n }\n if (typeof djRegexCache[prefix][fieldName] == \"undefined\") {\n djRegexCache[prefix][fieldName] = new RegExp(\n \"^\" + prefix + \"-\\\\d+-\" + fieldName + \"$\"\n );\n }\n $field = this.find('input[name$=\"' + fieldName + '\"]').filter(\n function () {\n return this.getAttribute(\"name\").match(\n djRegexCache[prefix][fieldName]\n );\n }\n );\n }\n if (!$field.length && (fieldName == \"pk\" || fieldName == \"position\")) {\n fieldNameData = $(\"#\" + prefix + \"-group\").djnData(\"fieldNames\") || {};\n if (\n typeof fieldNameData[fieldName] &&\n fieldNameData[fieldName] != fieldName\n ) {\n $field = $(this).filterDjangoField(\n prefix,\n fieldNameData[fieldName],\n index\n );\n }\n }\n return $field;\n };\n}\n","export default window.django.jQuery;\n","import $ from \"jquery\";\n/*!\n * jQuery UI Sortable @VERSION\n * http://jqueryui.com\n *\n * Copyright 2012 jQuery Foundation and other contributors\n * Released under the MIT license.\n * http://jquery.org/license\n *\n * http://api.jqueryui.com/sortable/\n *\n * Depends:\n *\tjquery.ui.core.js\n *\tjquery.ui.mouse.js\n *\tjquery.ui.widget.js\n */\nif ($.ui === undefined) {\n var jQuery = $;\n /* eslint-disable */\n (function(e,t){function i(t,i){var s,n,r,o=t.nodeName.toLowerCase();return\"area\"===o?(s=t.parentNode,n=s.name,t.href&&n&&\"map\"===s.nodeName.toLowerCase()?(r=e(\"img[usemap=#\"+n+\"]\")[0],!!r&&a(r)):!1):(/input|select|textarea|button|object/.test(o)?!t.disabled:\"a\"===o?t.href||i:i)&&a(t)}function a(t){return e.expr.filters.visible(t)&&!e(t).parents().addBack().filter(function(){return\"hidden\"===e.css(this,\"visibility\")}).length}var s=0,n=/^ui-id-\\d+$/;e.ui=e.ui||{},e.extend(e.ui,{version:\"1.10.3\",keyCode:{BACKSPACE:8,COMMA:188,DELETE:46,DOWN:40,END:35,ENTER:13,ESCAPE:27,HOME:36,LEFT:37,NUMPAD_ADD:107,NUMPAD_DECIMAL:110,NUMPAD_DIVIDE:111,NUMPAD_ENTER:108,NUMPAD_MULTIPLY:106,NUMPAD_SUBTRACT:109,PAGE_DOWN:34,PAGE_UP:33,PERIOD:190,RIGHT:39,SPACE:32,TAB:9,UP:38}}),e.fn.extend({focus:function(t){return function(i,a){return\"number\"==typeof i?this.each(function(){var t=this;setTimeout(function(){e(t).focus(),a&&a.call(t)},i)}):t.apply(this,arguments)}}(e.fn.focus),scrollParent:function(){var t;return t=e.ui.ie&&/(static|relative)/.test(this.css(\"position\"))||/absolute/.test(this.css(\"position\"))?this.parents().filter(function(){return/(relative|absolute|fixed)/.test(e.css(this,\"position\"))&&/(auto|scroll)/.test(e.css(this,\"overflow\")+e.css(this,\"overflow-y\")+e.css(this,\"overflow-x\"))}).eq(0):this.parents().filter(function(){return/(auto|scroll)/.test(e.css(this,\"overflow\")+e.css(this,\"overflow-y\")+e.css(this,\"overflow-x\"))}).eq(0),/fixed/.test(this.css(\"position\"))||!t.length?e(document):t},zIndex:function(i){if(i!==t)return this.css(\"zIndex\",i);if(this.length)for(var a,s,n=e(this[0]);n.length&&n[0]!==document;){if(a=n.css(\"position\"),(\"absolute\"===a||\"relative\"===a||\"fixed\"===a)&&(s=parseInt(n.css(\"zIndex\"),10),!isNaN(s)&&0!==s))return s;n=n.parent()}return 0},uniqueId:function(){return this.each(function(){this.id||(this.id=\"ui-id-\"+ ++s)})},removeUniqueId:function(){return this.each(function(){n.test(this.id)&&e(this).removeAttr(\"id\")})}}),e.extend(e.expr[\":\"],{data:e.expr.createPseudo?e.expr.createPseudo(function(t){return function(i){return!!e.data(i,t)}}):function(t,i,a){return!!e.data(t,a[3])},focusable:function(t){return i(t,!isNaN(e.attr(t,\"tabindex\")))},tabbable:function(t){var a=e.attr(t,\"tabindex\"),s=isNaN(a);return(s||a>=0)&&i(t,!s)}}),e(\"\").outerWidth(1).jquery||e.each([\"Width\",\"Height\"],function(i,a){function s(t,i,a,s){return e.each(n,function(){i-=parseFloat(e.css(t,\"padding\"+this))||0,a&&(i-=parseFloat(e.css(t,\"border\"+this+\"Width\"))||0),s&&(i-=parseFloat(e.css(t,\"margin\"+this))||0)}),i}var n=\"Width\"===a?[\"Left\",\"Right\"]:[\"Top\",\"Bottom\"],r=a.toLowerCase(),o={innerWidth:e.fn.innerWidth,innerHeight:e.fn.innerHeight,outerWidth:e.fn.outerWidth,outerHeight:e.fn.outerHeight};e.fn[\"inner\"+a]=function(i){return i===t?o[\"inner\"+a].call(this):this.each(function(){e(this).css(r,s(this,i)+\"px\")})},e.fn[\"outer\"+a]=function(t,i){return\"number\"!=typeof t?o[\"outer\"+a].call(this,t):this.each(function(){e(this).css(r,s(this,t,!0,i)+\"px\")})}}),e.fn.addBack||(e.fn.addBack=function(e){return this.add(null==e?this.prevObject:this.prevObject.filter(e))}),e(\"\").data(\"a-b\",\"a\").removeData(\"a-b\").data(\"a-b\")&&(e.fn.removeData=function(t){return function(i){return arguments.length?t.call(this,e.camelCase(i)):t.call(this)}}(e.fn.removeData)),e.ui.ie=!!/msie [\\w.]+/.exec(navigator.userAgent.toLowerCase()),e.support.selectstart=\"onselectstart\"in document.createElement(\"div\"),e.fn.extend({disableSelection:function(){return this.bind((e.support.selectstart?\"selectstart\":\"mousedown\")+\".ui-disableSelection\",function(e){e.preventDefault()})},enableSelection:function(){return this.unbind(\".ui-disableSelection\")}}),e.extend(e.ui,{plugin:{add:function(t,i,a){var s,n=e.ui[t].prototype;for(s in a)n.plugins[s]=n.plugins[s]||[],n.plugins[s].push([i,a[s]])},call:function(e,t,i){var a,s=e.plugins[t];if(s&&e.element[0].parentNode&&11!==e.element[0].parentNode.nodeType)for(a=0;s.length>a;a++)e.options[s[a][0]]&&s[a][1].apply(e.element,i)}},hasScroll:function(t,i){if(\"hidden\"===e(t).css(\"overflow\"))return!1;var a=i&&\"left\"===i?\"scrollLeft\":\"scrollTop\",s=!1;return t[a]>0?!0:(t[a]=1,s=t[a]>0,t[a]=0,s)}})})(jQuery);(function(e,t){var i=0,s=Array.prototype.slice,a=e.cleanData;e.cleanData=function(t){for(var i,s=0;null!=(i=t[s]);s++)try{e(i).triggerHandler(\"remove\")}catch(n){}a(t)},e.widget=function(i,s,a){var n,r,o,h,l={},u=i.split(\".\")[0];i=i.split(\".\")[1],n=u+\"-\"+i,a||(a=s,s=e.Widget),e.expr[\":\"][n.toLowerCase()]=function(t){return!!e.data(t,n)},e[u]=e[u]||{},r=e[u][i],o=e[u][i]=function(e,i){return this._createWidget?(arguments.length&&this._createWidget(e,i),t):new o(e,i)},e.extend(o,r,{version:a.version,_proto:e.extend({},a),_childConstructors:[]}),h=new s,h.options=e.widget.extend({},h.options),e.each(a,function(i,a){return e.isFunction(a)?(l[i]=function(){var e=function(){return s.prototype[i].apply(this,arguments)},t=function(e){return s.prototype[i].apply(this,e)};return function(){var i,s=this._super,n=this._superApply;return this._super=e,this._superApply=t,i=a.apply(this,arguments),this._super=s,this._superApply=n,i}}(),t):(l[i]=a,t)}),o.prototype=e.widget.extend(h,{widgetEventPrefix:r?h.widgetEventPrefix:i},l,{constructor:o,namespace:u,widgetName:i,widgetFullName:n}),r?(e.each(r._childConstructors,function(t,i){var s=i.prototype;e.widget(s.namespace+\".\"+s.widgetName,o,i._proto)}),delete r._childConstructors):s._childConstructors.push(o),e.widget.bridge(i,o)},e.widget.extend=function(i){for(var a,n,r=s.call(arguments,1),o=0,h=r.length;h>o;o++)for(a in r[o])n=r[o][a],r[o].hasOwnProperty(a)&&n!==t&&(i[a]=e.isPlainObject(n)?e.isPlainObject(i[a])?e.widget.extend({},i[a],n):e.widget.extend({},n):n);return i},e.widget.bridge=function(i,a){var n=a.prototype.widgetFullName||i;e.fn[i]=function(r){var o=\"string\"==typeof r,h=s.call(arguments,1),l=this;return r=!o&&h.length?e.widget.extend.apply(null,[r].concat(h)):r,o?this.each(function(){var s,a=e.data(this,n);return a?e.isFunction(a[r])&&\"_\"!==r.charAt(0)?(s=a[r].apply(a,h),s!==a&&s!==t?(l=s&&s.jquery?l.pushStack(s.get()):s,!1):t):e.error(\"no such method '\"+r+\"' for \"+i+\" widget instance\"):e.error(\"cannot call methods on \"+i+\" prior to initialization; \"+\"attempted to call method '\"+r+\"'\")}):this.each(function(){var t=e.data(this,n);t?t.option(r||{})._init():e.data(this,n,new a(r,this))}),l}},e.Widget=function(){},e.Widget._childConstructors=[],e.Widget.prototype={widgetName:\"widget\",widgetEventPrefix:\"\",defaultElement:\"