From 9048f643e8a222e05b30869ef9fb37c4e525c194 Mon Sep 17 00:00:00 2001 From: Jasmin Savard Date: Thu, 9 Jan 2025 00:20:44 -0500 Subject: [PATCH] test --- .scripts/assets-build-tool/min.mjs | 2 +- .../wwwroot/Scripts/list-items-filter.map | 2 +- .../wwwroot/Scripts/audittrail-disabledcontent.map | 2 +- .../wwwroot/Scripts/content-type-check-all.map | 2 +- .../OrchardCore.Cors/wwwroot/Scripts/cors-admin.map | 2 +- .../OrchardCore.Deployment/wwwroot/Scripts/steporder.map | 2 +- .../OrchardCore.Flows/wwwroot/Scripts/flows.edit.map | 2 +- .../wwwroot/Scripts/formElementLabelManager.map | 2 +- .../OrchardCore.Forms/wwwroot/Scripts/selectOptionsEditor.map | 2 +- .../OrchardCore.Html/wwwroot/Scripts/trumbowyg.media.tag.map | 2 +- .../OrchardCore.Html/wwwroot/Scripts/trumbowyg.media.url.map | 2 +- .../OrchardCore.Lists/wwwroot/Scripts/ci-list-ordering.map | 2 +- .../OrchardCore.Localization/wwwroot/Scripts/optionsEditor.map | 2 +- .../OrchardCore.Menu/wwwroot/Scripts/activate-links.map | 2 +- .../OrchardCore.Menu/wwwroot/Scripts/menu-permission-picker.map | 2 +- .../OrchardCore.Menu/wwwroot/Scripts/menu.map | 2 +- .../wwwroot/Scripts/notification-manager.map | 2 +- .../OrchardCore.OpenId/wwwroot/Scripts/parametersEditor.map | 2 +- .../OrchardCore.Rules/wwwroot/Scripts/rules.map | 2 +- .../OrchardCore.Seo/wwwroot/Scripts/customMetaTagsEditor.map | 2 +- .../wwwroot/Scripts/shortcode-templates.map | 2 +- .../OrchardCore.Shortcodes/wwwroot/Scripts/shortcodes.map | 2 +- .../OrchardCore.Taxonomies/wwwroot/Scripts/activate-links.map | 2 +- .../OrchardCore.Taxonomies/wwwroot/Scripts/menu.map | 2 +- .../OrchardCore.Taxonomies/wwwroot/Scripts/tags-editor.map | 2 +- .../wwwroot/Scripts/templatepreview.edit.map | 2 +- .../OrchardCore.UrlRewriting/wwwroot/Scripts/admin-ui.map | 2 +- .../OrchardCore.UrlRewriting/wwwroot/Scripts/sortable-rules.map | 2 +- .../OrchardCore.Users/wwwroot/Scripts/password-generator.map | 2 +- .../OrchardCore.Users/wwwroot/Scripts/qrcode.map | 2 +- .../OrchardCore.Widgets/wwwroot/Scripts/widgetslist.edit.map | 2 +- 31 files changed, 31 insertions(+), 31 deletions(-) diff --git a/.scripts/assets-build-tool/min.mjs b/.scripts/assets-build-tool/min.mjs index 5bec1d4240d..7093b5d8fa4 100644 --- a/.scripts/assets-build-tool/min.mjs +++ b/.scripts/assets-build-tool/min.mjs @@ -102,7 +102,7 @@ glob(config.source).then((files) => { dest, path.parse(target).name + ".map" ); - fs.outputFile(mappedTarget, output.map + "\r\n"); + fs.outputFile(mappedTarget, output.map + "asd"); console.log( `Mapped (${chalk.gray("from")}, ${chalk.cyan( "to" diff --git a/src/OrchardCore.Modules/OrchardCore.ContentTypes/wwwroot/Scripts/list-items-filter.map b/src/OrchardCore.Modules/OrchardCore.ContentTypes/wwwroot/Scripts/list-items-filter.map index e2d244d00fa..044e2e2bff8 100644 --- a/src/OrchardCore.Modules/OrchardCore.ContentTypes/wwwroot/Scripts/list-items-filter.map +++ b/src/OrchardCore.Modules/OrchardCore.ContentTypes/wwwroot/Scripts/list-items-filter.map @@ -1 +1 @@ -{"version":3,"sources":[""],"sourcesContent":["document.addEventListener('DOMContentLoaded', function () {\r\n const searchBox = document.getElementById('search-box');\r\n const allRows = Array.from(document.querySelectorAll(\"#list-items > li[data-filter-value]\"));\r\n const listAlert = document.getElementById('list-alert');\r\n const createButton = document.getElementById(\"btnCreate\");\r\n\r\n let visibleRows = allRows;\r\n\r\n // On each keypress filter the list of types\r\n searchBox.addEventListener('keyup', function (e) {\r\n visibleRows = [];\r\n var search = e.target.value.toLowerCase().trim();\r\n\r\n // On ESC, clear the search box and display all types\r\n if (e.key === \"Escape\" || search == '') {\r\n searchBox.value = '';\r\n\r\n allRows.forEach(row => {\r\n row.classList.remove(\"d-none\");\r\n row.classList.remove(\"first-child-visible\");\r\n row.classList.remove(\"last-child-visible\");\r\n\r\n visibleRows.push(row);\r\n });\r\n } else {\r\n allRows.forEach(row => {\r\n let text = row.getAttribute('data-filter-value').toLowerCase();\r\n let found = text.indexOf(search) > -1;\r\n\r\n if (found) {\r\n row.classList.remove(\"d-none\");\r\n row.classList.remove(\"first-child-visible\");\r\n row.classList.remove(\"last-child-visible\");\r\n row.classList.remove(\"border-top\");\r\n row.classList.remove(\"rounded-top\");\r\n\r\n visibleRows.push(row);\r\n }\r\n else {\r\n row.classList.add(\"d-none\");\r\n }\r\n });\r\n\r\n if (visibleRows.length > 0) {\r\n visibleRows[0].classList.add('first-child-visible');\r\n visibleRows[0].classList.add('border-top');\r\n visibleRows[0].classList.add(\"rounded-top\");\r\n\r\n visibleRows[visibleRows.length - 1].classList.add('last-child-visible');\r\n }\r\n }\r\n\r\n if (visibleRows.length == 0) {\r\n listAlert.classList.remove(\"d-none\");\r\n }\r\n else {\r\n listAlert.classList.add(\"d-none\");\r\n }\r\n\r\n // On Enter, redirect to the edit page if the type exists or the create page with a suggestion\r\n if (e.key === \"Enter\" && search != '') {\r\n\r\n if (visibleRows.length > 0) {\r\n let link = visibleRows[0].querySelector('a.edit-button');\r\n\r\n let hrefValue = link.getAttribute(\"href\");\r\n\r\n if (hrefValue) {\r\n location.href = hrefValue;\r\n }\r\n } else {\r\n location.href = createButton.getAttribute(\"href\") + \"?suggestion=\" + search;\r\n }\r\n return;\r\n }\r\n });\r\n});\r\n"],"names":["document","addEventListener","searchBox","getElementById","allRows","Array","from","querySelectorAll","listAlert","createButton","visibleRows","e","search","target","value","toLowerCase","trim","key","forEach","row","classList","remove","push","text","getAttribute","indexOf","add","length","hrefValue","link","querySelector","location","href"],"mappings":"AAAAA,SAASC,gBAAgB,CAAC,mBAAoB,WAC1C,IAAMC,EAAYF,SAASG,cAAc,CAAC,cACpCC,EAAUC,MAAMC,IAAI,CAACN,SAASO,gBA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UAG3Bb,EAAUY,SAAS,CAACM,GAAG,CAAC,UAIxBf,AAAU,UAAVA,EAAEM,GAAG,EAAgBL,AAAU,IAAVA,EAAc,CAEnC,GAAIF,EAAYiB,MAAM,CAAG,EAAG,CAGxB,IAAIC,EAAYC,AAFLnB,CAAW,CAAC,EAAE,CAACoB,aAAa,CAAC,iBAEnBN,YAAY,CAAC,QAE9BI,GACAG,CAAAA,SAASC,IAAI,CAAGJ,CAAQ,CAEhC,MACIG,SAASC,IAAI,CAAGvB,EAAae,YAAY,CAAC,QAAU,eAAiBZ,EAEzE,MACJ,CACJ,EACJ"} +{"version":3,"sources":[""],"sourcesContent":["document.addEventListener('DOMContentLoaded', function () {\r\n const searchBox = document.getElementById('search-box');\r\n const allRows = Array.from(document.querySelectorAll(\"#list-items > li[data-filter-value]\"));\r\n const listAlert = document.getElementById('list-alert');\r\n const createButton = document.getElementById(\"btnCreate\");\r\n\r\n let visibleRows = allRows;\r\n\r\n // On each keypress filter the list of types\r\n searchBox.addEventListener('keyup', function (e) {\r\n visibleRows = [];\r\n var search = e.target.value.toLowerCase().trim();\r\n\r\n // On ESC, clear the search box and display all types\r\n if (e.key === \"Escape\" || search == '') {\r\n searchBox.value = '';\r\n\r\n allRows.forEach(row => {\r\n row.classList.remove(\"d-none\");\r\n row.classList.remove(\"first-child-visible\");\r\n row.classList.remove(\"last-child-visible\");\r\n\r\n visibleRows.push(row);\r\n });\r\n } else {\r\n allRows.forEach(row => {\r\n let text = row.getAttribute('data-filter-value').toLowerCase();\r\n let found = text.indexOf(search) > -1;\r\n\r\n if (found) {\r\n row.classList.remove(\"d-none\");\r\n row.classList.remove(\"first-child-visible\");\r\n row.classList.remove(\"last-child-visible\");\r\n row.classList.remove(\"border-top\");\r\n row.classList.remove(\"rounded-top\");\r\n\r\n visibleRows.push(row);\r\n }\r\n else {\r\n row.classList.add(\"d-none\");\r\n }\r\n });\r\n\r\n if (visibleRows.length > 0) {\r\n visibleRows[0].classList.add('first-child-visible');\r\n visibleRows[0].classList.add('border-top');\r\n visibleRows[0].classList.add(\"rounded-top\");\r\n\r\n visibleRows[visibleRows.length - 1].classList.add('last-child-visible');\r\n }\r\n }\r\n\r\n if (visibleRows.length == 0) {\r\n listAlert.classList.remove(\"d-none\");\r\n }\r\n else {\r\n listAlert.classList.add(\"d-none\");\r\n }\r\n\r\n // On Enter, redirect to the edit page if the type exists or the create page with a suggestion\r\n if (e.key === \"Enter\" && search != '') {\r\n\r\n if (visibleRows.length > 0) {\r\n let link = visibleRows[0].querySelector('a.edit-button');\r\n\r\n let hrefValue = link.getAttribute(\"href\");\r\n\r\n if (hrefValue) {\r\n location.href = hrefValue;\r\n }\r\n } else {\r\n location.href = createButton.getAttribute(\"href\") + \"?suggestion=\" + search;\r\n }\r\n return;\r\n }\r\n });\r\n});\r\n"],"names":["document","addEventListener","searchBox","getElementById","allRows","Array","from","querySelectorAll","listAlert","createButton","visibleRows","e","search","target","value","toLowerCase","trim","key","forEach","row","classList","remove","push","text","getAttribute","indexOf","add","length","hrefValue","link","querySelector","location","href"],"mappings":"AAAAA,SAASC,gBAAgB,CAAC,mBAAoB,WAC1C,IAAMC,EAAYF,SAASG,cAAc,CAAC,cACpCC,EAAUC,MAAMC,IAAI,CAACN,SAASO,gBAAgB,CAAC,wCAC/CC,EAAYR,SAASG,cAAc,CAAC,cACpCM,EAAeT,SAASG,cAAc,CAAC,aAEzCO,EAAcN,EAGlBF,EAAUD,gBAAgB,CAAC,QAAS,SAAUU,CAAC,EAC3CD,EAAc,EAAE,CAChB,IAAIE,EAASD,EAAEE,MAAM,CAACC,KAAK,CAACC,WAAW,GAAGC,IAAI,GAiD9C,GA9CIL,AAAU,WAAVA,EAAEM,GAAG,EAAiBL,AAAU,IAAVA,GACtBV,EAAUY,KAAK,CAAG,GAElBV,EAAQc,OAAO,CAACC,IACZA,EAAIC,SAAS,CAACC,MAAM,CAAC,UACrBF,EAAIC,SAAS,CAACC,MAAM,CAAC,uBACrBF,EAAIC,SAAS,CAAC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.map b/src/OrchardCore.Modules/OrchardCore.Contents/wwwroot/Scripts/audittrail-disabledcontent.map index ecee8a1a556..831202fe3f6 100644 --- a/src/OrchardCore.Modules/OrchardCore.Contents/wwwroot/Scripts/audittrail-disabledcontent.map +++ b/src/OrchardCore.Modules/OrchardCore.Contents/wwwroot/Scripts/audittrail-disabledcontent.map @@ -1 +1 @@ -{"version":3,"sources":[""],"sourcesContent":["$(function () {\r\n $('.disabledContent__wrapper input').prop('disabled', true);\r\n $('.disabledContent__wrapper textarea').prop('disabled', true);\r\n $('.disabledContent__wrapper button').prop('disabled', true);\r\n $('.disabledContent__wrapper .widget-editor .widget-editor-header .widget-editor-btn-toggle').prop('disabled', false);\r\n\r\n setTimeout(function () {\r\n $('.disabledContent__wrapper textarea').prop('disabled', true);\r\n });\r\n});\r\n"],"names":["$","prop","setTimeout"],"mappings":"AAAAA,EAAE,WACEA,EAAE,mCAAmCC,IAAI,CAAC,WAAY,CAAA,GACtDD,EAAE,sCAAsCC,IAAI,CAAC,WAAY,CAAA,GACzDD,EAAE,oCAAoCC,IAAI,CAAC,WAAY,CAAA,GACvDD,EAAE,4FAA4FC,IAAI,CAAC,WAAY,CAAA,GAE/GC,WAAW,WACPF,EAAE,sCAAsCC,IAAI,CAAC,WAAY,CAAA,EAC7D,EACJ"} +{"version":3,"sources":[""],"sourcesContent":["$(function () {\r\n $('.disabledContent__wrapper input').prop('disabled', true);\r\n $('.disabledContent__wrapper textarea').prop('disabled', true);\r\n $('.disabledContent__wrapper button').prop('disabled', true);\r\n $('.disabledContent__wrapper .widget-editor .widget-editor-header .widget-editor-btn-toggle').prop('disabled', false);\r\n\r\n setTimeout(function () {\r\n $('.disabledContent__wrapper textarea').prop('disabled', true);\r\n });\r\n});\r\n"],"names":["$","prop","setTimeout"],"mappings":"AAAAA,EAAE,WACEA,EAAE,mCAAmCC,IAAI,CAAC,WAAY,CAAA,GACtDD,EAAE,sCAAsCC,IAAI,CAAC,WAAY,CAAA,GACzDD,EAAE,oCAAoCC,IAAI,CAAC,WAAY,CAAA,GACvDD,EAAE,4FAA4FC,IAAI,CAAC,WAAY,CAAA,GAE/GC,WAAW,WACPF,EAAE,sCAAsCC,IAAI,CAAC,WAAY,CAAA,EAC7D,EACJ"}asd \ No newline at end of file diff --git a/src/OrchardCore.Modules/OrchardCore.Contents/wwwroot/Scripts/content-type-check-all.map b/src/OrchardCore.Modules/OrchardCore.Contents/wwwroot/Scripts/content-type-check-all.map index aadbc62187b..28355197067 100644 --- a/src/OrchardCore.Modules/OrchardCore.Contents/wwwroot/Scripts/content-type-check-all.map +++ b/src/OrchardCore.Modules/OrchardCore.Contents/wwwroot/Scripts/content-type-check-all.map @@ -1 +1 @@ -{"version":3,"sources":[""],"sourcesContent":["/** Content Type Check All **/\r\ndocument.addEventListener('DOMContentLoaded', function (event) {\r\n let checkAllContainer = document.querySelectorAll('.check-all.content-types');\r\n\r\n checkAllContainer.forEach((container) => {\r\n let master = container.querySelector('input[type=\"checkbox\"].master');\r\n let slaves = container.querySelectorAll('.slaves input[type=\"checkbox\"]:not(:disabled)');\r\n\r\n let updateMaster = function () {\r\n let allChecked = container.querySelectorAll('.slaves input[type=\"checkbox\"]:not(:checked)').length == 0;\r\n master.checked = allChecked;\r\n };\r\n\r\n master.addEventListener('change', function (elem) {\r\n let isChecked = elem.target.checked;\r\n\r\n slaves.forEach((slave) => {\r\n slave.checked = isChecked;\r\n });\r\n });\r\n\r\n slaves.forEach((slave) => {\r\n slave.addEventListener('change', function () {\r\n updateMaster();\r\n });\r\n });\r\n\r\n updateMaster();\r\n });\r\n});\r\n"],"names":["document","addEventListener","event","checkAllContainer","querySelectorAll","forEach","container","master","querySelector","slaves","updateMaster","allChecked","length","checked","elem","isChecked","target","slave"],"mappings":"AACAA,SAASC,gBAAgB,CAAC,mBAAoB,SAAUC,CAAK,EAGzDC,AAFwBH,SAASI,gBAAgB,CAAC,4BAEhCC,OAAO,CAAC,AAACC,IACvB,IAAIC,EAASD,EAAUE,aAAa,CAAC,iCACjCC,EAASH,EAAUF,gBAAgB,CAAC,iDAEpCM,EAAe,WACf,IAAIC,EAAaL,AAAqF,GAArFA,EAAUF,gBAAgB,CAAC,gDAAgDQ,MAAM,AAClGL,CAAAA,EAAOM,OAAO,CAAGF,CACrB,EAEAJ,EAAON,gBAAgB,CAAC,SAAU,SAAUa,CAAI,EAC5C,IAAIC,EAAYD,EAAKE,MAAM,CAACH,OAAO,CAEnCJ,EAAOJ,OAAO,CAAC,AAACY,IACZA,EAAMJ,OAAO,CAAGE,CACpB,EACJ,GAEAN,EAAOJ,OAAO,CAAC,AAACY,IACZA,EAAMhB,gBAAgB,CAAC,SAAU,WAC7BS,GACJ,EACJ,GAEAA,GACJ,EACJ"} +{"version":3,"sources":[""],"sourcesContent":["/** Content Type Check All **/\r\ndocument.addEventListener('DOMContentLoaded', function (event) {\r\n let checkAllContainer = document.querySelectorAll('.check-all.content-types');\r\n\r\n checkAllContainer.forEach((container) => {\r\n let master = container.querySelector('input[type=\"checkbox\"].master');\r\n let slaves = container.querySelectorAll('.slaves input[type=\"checkbox\"]:not(:disabled)');\r\n\r\n let updateMaster = function () {\r\n let allChecked = container.querySelectorAll('.slaves input[type=\"checkbox\"]:not(:checked)').length == 0;\r\n master.checked = allChecked;\r\n };\r\n\r\n master.addEventListener('change', function (elem) {\r\n let isChecked = elem.target.checked;\r\n\r\n slaves.forEach((slave) => {\r\n slave.checked = isChecked;\r\n });\r\n });\r\n\r\n slaves.forEach((slave) => {\r\n slave.addEventListener('change', function () {\r\n updateMaster();\r\n });\r\n });\r\n\r\n updateMaster();\r\n });\r\n});\r\n"],"names":["document","addEventListener","event","checkAllContainer","querySelectorAll","forEach","container","master","querySelector","slaves","updateMaster","allChecked","length","checked","elem","isChecked","target","slave"],"mappings":"AACAA,SAASC,gBAAgB,CAAC,mBAAoB,SAAUC,CAAK,EAGzDC,AAFwBH,SAASI,gBAAgB,CAAC,4BAEhCC,OAAO,CAAC,AAACC,IACvB,IAAIC,EAASD,EAAUE,aAAa,CAAC,iCACjCC,EAASH,EAAUF,gBAAgB,CAAC,iDAEpCM,EAAe,WACf,IAAIC,EAAaL,AAAqF,GAArFA,EAAUF,gBAAgB,CAAC,gDAAgDQ,MAAM,AAClGL,CAAAA,EAAOM,OAAO,CAAGF,CACrB,EAEAJ,EAAON,gBAAgB,CAAC,SAAU,SAAUa,CAAI,EAC5C,IAAIC,EAAYD,EAAKE,MAAM,CAACH,OAAO,CAEnCJ,EAAOJ,OAAO,CAAC,AAACY,IACZA,EAAMJ,OAAO,CAAGE,CACpB,EACJ,GAEAN,EAAOJ,OAAO,CAAC,AAACY,IACZA,EAAMhB,gBAAgB,CAAC,SAAU,WAC7BS,GACJ,EACJ,GAEAA,GACJ,EACJ"}asd \ No newline at end of file diff --git a/src/OrchardCore.Modules/OrchardCore.Cors/wwwroot/Scripts/cors-admin.map b/src/OrchardCore.Modules/OrchardCore.Cors/wwwroot/Scripts/cors-admin.map index 3d9c55ce478..58190c8a5be 100644 --- a/src/OrchardCore.Modules/OrchardCore.Cors/wwwroot/Scripts/cors-admin.map +++ b/src/OrchardCore.Modules/OrchardCore.Cors/wwwroot/Scripts/cors-admin.map @@ -1 +1 @@ -{"version":3,"sources":[""],"sourcesContent":["var optionsList = Vue.component('options-list',\r\n {\r\n props: ['options', 'optionType', 'title', 'subTitle'],\r\n template: '#options-list',\r\n data: function () {\r\n return {\r\n 'newOption': ''\r\n };\r\n },\r\n methods: {\r\n addOption: function (value) {\r\n if (value !== null && value !== '') {\r\n var noDuplicates = ($.inArray(value.toLowerCase(), this.options.map(o => o.toLowerCase())) < 0);\r\n if (noDuplicates) {\r\n this.options.push(value);\r\n }\r\n }\r\n },\r\n deleteOption: function (value) {\r\n this.options.splice($.inArray(value, this.options), 1);\r\n }\r\n }\r\n });\r\n\r\nvar policyDetails = Vue.component('policy-details',\r\n {\r\n components: { optionsList: optionsList },\r\n props: ['policy'],\r\n template: '#policy-details'\r\n });\r\n\r\nvar corsApp = new Vue({\r\n el: '#corsAdmin',\r\n components: { policyDetails: policyDetails, optionsList: optionsList },\r\n data: {\r\n selectedPolicy: null,\r\n policies: null,\r\n defaultPolicyName: null\r\n },\r\n updated: function () {\r\n this.searchBox();\r\n },\r\n methods: {\r\n newPolicy: function () {\r\n this.selectedPolicy = {\r\n name: 'New policy',\r\n allowedOrigins: [],\r\n allowAnyOrigin: true,\r\n allowedMethods: [],\r\n allowAnyMethod: true,\r\n allowedHeaders: [],\r\n allowAnyHeader: true,\r\n allowCredentials: true,\r\n isDefaultPolicy: false,\r\n exposedHeaders: []\r\n };\r\n },\r\n editPolicy: function (policy) {\r\n this.selectedPolicy = Object.assign({}, policy);\r\n this.selectedPolicy.originalName = this.selectedPolicy.name;\r\n },\r\n deletePolicy: function (policy, event) {\r\n this.selectedPolicy = null;\r\n var policyToRemove = this.policies.filter(function (item) { return item.name === policy.name; });\r\n if (policyToRemove.length > 0)\r\n this.policies.splice($.inArray(policyToRemove[0], this.policies), 1);\r\n event.stopPropagation();\r\n this.save();\r\n },\r\n updatePolicy: function (policy, event) {\r\n if (policy.isDefaultPolicy) {\r\n this.policies.forEach(p => p.isDefaultPolicy = false);\r\n }\r\n\r\n if (policy.originalName) {\r\n var policyIndex = this.policies.findIndex((oldPolicy) => oldPolicy.name === policy.originalName);\r\n this.policies[policyIndex] = policy;\r\n }\r\n else {\r\n this.policies.push(policy);\r\n }\r\n\r\n this.save();\r\n this.back();\r\n },\r\n save: function () {\r\n document.getElementById('corsSettings').value = JSON.stringify(this.policies);\r\n document.getElementById('corsForm').submit();\r\n },\r\n back: function () {\r\n this.selectedPolicy = null;\r\n },\r\n searchBox: function () {\r\n var searchBox = $('#search-box');\r\n\r\n // On Enter, edit the item if there is a single one\r\n searchBox.keypress(function (event) {\r\n if (event.which == 13) {\r\n\r\n // Edit the item if there is a single filtered element\r\n var visible = $('#corsAdmin > ul > li:visible');\r\n if (visible.length == 1) {\r\n window.location = visible.find('.edit').attr('href');\r\n }\r\n return false;\r\n }\r\n });\r\n\r\n // On each keypress filter the list\r\n searchBox.keyup(function (e) {\r\n var search = $(this).val().toLowerCase();\r\n var elementsToFilter = $(\"[data-filter-value]\");\r\n\r\n // On ESC, clear the search box and display all\r\n if (e.keyCode == 27 || search == '') {\r\n searchBox.val('');\r\n elementsToFilter.toggle(true);\r\n $('#list-alert').addClass(\"d-none\");\r\n }\r\n else {\r\n var intVisible = 0;\r\n elementsToFilter.each(function () {\r\n var text = $(this).data('filter-value').toLowerCase();\r\n var found = text.indexOf(search) > -1;\r\n $(this).toggle(found);\r\n\r\n if (found) {\r\n intVisible++;\r\n }\r\n });\r\n\r\n // We display an alert if a search is not found\r\n if (intVisible == 0) {\r\n $('#list-alert').removeClass(\"d-none\");\r\n }\r\n else {\r\n $('#list-alert').addClass(\"d-none\");\r\n }\r\n }\r\n });\r\n }\r\n }\r\n});\r\n"],"names":["optionsList","Vue","component","props","template","data","methods","addOption","value","$","inArray","toLowerCase","options","map","o","push","deleteOption","splice","policyDetails","components","corsApp","el","selectedPolicy","policies","defaultPolicyName","updated","searchBox","newPolicy","name","allowedOrigins","allowAnyOrigin","allowedMethods","allowAnyMethod","allowedHeaders","allowAnyHeader","allowCredentials","isDefaultPolicy","exposedHeaders","editPolicy","policy","Object","assign","originalName","deletePolicy","event","policyToRemove","filter","item","length","stopPropagation","save","updatePolicy","forEach","p","policyIndex","findIndex","oldPolicy","back","document","getElementById","JSON","stringify","submit","keypress","which","visible","window","location","find","attr","keyup","e","search","val","elementsToFilter","keyCode","toggle","addClass","intVisible","each","found","text","indexOf","removeClass"],"mappings":"AAAA,IAAIA,YAAcC,IAAIC,SAAS,CAAC,eAC5B,CACIC,MAAO,CAAC,UAAW,aAAc,QAAS,WAAW,CACrDC,SAAU,gBACVC,KAAM,WACF,MAAO,CACH,UAAa,EACjB,CACJ,EACAC,QAAS,CACLC,UAAW,SAAUC,CAAK,EACR,OAAVA,GAAkBA,AAAU,KAAVA,GACEC,AAAyE,EAAzEA,EAAEC,OAAO,CAAC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,WAAW,GAClC+D,EAAmBjE,EAAE,uBAGzB,GAAI8D,AAAa,IAAbA,EAAEI,OAAO,EAAUH,AAAU,IAAVA,EACnB9C,EAAU+C,GAAG,CAAC,IACdC,EAAiBE,MAAM,CAAC,CAAA,GACxBnE,EAAE,eAAeoE,QAAQ,CAAC,cAEzB,CACD,IAAIC,EAAa,EACjBJ,EAAiBK,IAAI,CAAC,WAElB,IAAIC,EAAQC,AADDxE,EAAE,IAAI,EAAEJ,IAAI,CAAC,gBAAgBM,WAAW,GAClCuE,OAAO,CAACV,GAAU,GACnC/D,EAAE,IAAI,EAAEmE,MAAM,CAACI,GAEXA,GACAF,GAER,GAGIA,AAAc,GAAdA,EACArE,EAAE,eAAe0E,WAAW,CAAC,UAG7B1E,EAAE,eAAeoE,QAAQ,CAAC,SAElC,CACJ,EACJ,CACJ,CACJ"} +{"version":3,"sources":[""],"sourcesContent":["var optionsList = Vue.component('options-list',\r\n {\r\n props: ['options', 'optionType', 'title', 'subTitle'],\r\n template: '#options-list',\r\n data: function () {\r\n return {\r\n 'newOption': ''\r\n };\r\n },\r\n methods: {\r\n addOption: function (value) {\r\n if (value !== null && value !== '') {\r\n var noDuplicates = ($.inArray(value.toLowerCase(), this.options.map(o => o.toLowerCase())) < 0);\r\n if (noDuplicates) {\r\n this.options.push(value);\r\n }\r\n }\r\n },\r\n deleteOption: function (value) {\r\n this.options.splice($.inArray(value, this.options), 1);\r\n }\r\n }\r\n });\r\n\r\nvar policyDetails = Vue.component('policy-details',\r\n {\r\n components: { optionsList: optionsList },\r\n props: ['policy'],\r\n template: '#policy-details'\r\n });\r\n\r\nvar corsApp = new Vue({\r\n el: '#corsAdmin',\r\n components: { policyDetails: policyDetails, optionsList: optionsList },\r\n data: {\r\n selectedPolicy: null,\r\n policies: null,\r\n defaultPolicyName: null\r\n },\r\n updated: function () {\r\n this.searchBox();\r\n },\r\n methods: {\r\n newPolicy: function () {\r\n this.selectedPolicy = {\r\n name: 'New policy',\r\n allowedOrigins: [],\r\n allowAnyOrigin: true,\r\n allowedMethods: [],\r\n allowAnyMethod: true,\r\n allowedHeaders: [],\r\n allowAnyHeader: true,\r\n allowCredentials: true,\r\n isDefaultPolicy: false,\r\n exposedHeaders: []\r\n };\r\n },\r\n editPolicy: function (policy) {\r\n this.selectedPolicy = Object.assign({}, policy);\r\n this.selectedPolicy.originalName = this.selectedPolicy.name;\r\n },\r\n deletePolicy: function (policy, event) {\r\n this.selectedPolicy = null;\r\n var policyToRemove = this.policies.filter(function (item) { return item.name === policy.name; });\r\n if (policyToRemove.length > 0)\r\n this.policies.splice($.inArray(policyToRemove[0], this.policies), 1);\r\n event.stopPropagation();\r\n this.save();\r\n },\r\n updatePolicy: function (policy, event) {\r\n if (policy.isDefaultPolicy) {\r\n this.policies.forEach(p => p.isDefaultPolicy = false);\r\n }\r\n\r\n if (policy.originalName) {\r\n var policyIndex = this.policies.findIndex((oldPolicy) => oldPolicy.name === policy.originalName);\r\n this.policies[policyIndex] = policy;\r\n }\r\n else {\r\n this.policies.push(policy);\r\n }\r\n\r\n this.save();\r\n this.back();\r\n },\r\n save: function () {\r\n document.getElementById('corsSettings').value = JSON.stringify(this.policies);\r\n document.getElementById('corsForm').submit();\r\n },\r\n back: function () {\r\n this.selectedPolicy = null;\r\n },\r\n searchBox: function () {\r\n var searchBox = $('#search-box');\r\n\r\n // On Enter, edit the item if there is a single one\r\n searchBox.keypress(function (event) {\r\n if (event.which == 13) {\r\n\r\n // Edit the item if there is a single filtered element\r\n var visible = $('#corsAdmin > ul > li:visible');\r\n if (visible.length == 1) {\r\n window.location = visible.find('.edit').attr('href');\r\n }\r\n return false;\r\n }\r\n });\r\n\r\n // On each keypress filter the list\r\n searchBox.keyup(function (e) {\r\n var search = $(this).val().toLowerCase();\r\n var elementsToFilter = $(\"[data-filter-value]\");\r\n\r\n // On ESC, clear the search box and display all\r\n if (e.keyCode == 27 || search == '') {\r\n searchBox.val('');\r\n elementsToFilter.toggle(true);\r\n $('#list-alert').addClass(\"d-none\");\r\n }\r\n else {\r\n var intVisible = 0;\r\n elementsToFilter.each(function () {\r\n var text = $(this).data('filter-value').toLowerCase();\r\n var found = text.indexOf(search) > -1;\r\n $(this).toggle(found);\r\n\r\n if (found) {\r\n intVisible++;\r\n }\r\n });\r\n\r\n // We display an alert if a search is not found\r\n if (intVisible == 0) {\r\n $('#list-alert').removeClass(\"d-none\");\r\n }\r\n else {\r\n $('#list-alert').addClass(\"d-none\");\r\n }\r\n }\r\n });\r\n }\r\n }\r\n});\r\n"],"names":["optionsList","Vue","component","props","template","data","methods","addOption","value","$","inArray","toLowerCase","options","map","o","push","deleteOption","splice","policyDetails","components","corsApp","el","selectedPolicy","policies","defaultPolicyName","updated","searchBox","newPolicy","name","allowedOrigins","allowAnyOrigin","allowedMethods","allowAnyMethod","allowedHeaders","allowAnyHeader","allowCredentials","isDefaultPolicy","exposedHeaders","editPolicy","policy","Object","assign","originalName","deletePolicy","event","policyToRemove","filter","item","length","stopPropagation","save","updatePolicy","forEach","p","policyIndex","findIndex","oldPolicy","back","document","getElementById","JSON","stringify","submit","keypress","which","visible","window","location","find","attr","keyup","e","search","val","elementsToFilter","keyCode","toggle","addClass","intVisible","each","found","text","indexOf","removeClass"],"mappings":"AAAA,IAAIA,YAAcC,IAAIC,SAAS,CAAC,eAC5B,CACIC,MAAO,CAAC,UAAW,aAAc,QAAS,WAAW,CACrDC,SAAU,gBACVC,KAAM,WACF,MAAO,CACH,UAAa,EACjB,CACJ,EACAC,QAAS,CACLC,UAAW,SAAUC,CAAK,EACR,OAAVA,GAAkBA,AAAU,KAAVA,GACEC,AAAyE,EAAzEA,EAAEC,OAAO,CAACF,EAAMG,WAAW,GAAI,IAAI,CAACC,OAAO,CAACC,GAAG,CAACC,GAAKA,EAAEH,WAAW,MAElF,IAAI,CAACC,OAAO,CAACG,IAAI,CAACP,EAG9B,EACAQ,aAAc,SAAUR,CAAK,EACzB,IAAI,CAACI,OAAO,CAACK,MAAM,CAACR,EAAEC,OAAO,C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,EAAa,EACjBJ,EAAiBK,IAAI,CAAC,WAElB,IAAIC,EAAQC,AADDxE,EAAE,IAAI,EAAEJ,IAAI,CAAC,gBAAgBM,WAAW,GAClCuE,OAAO,CAACV,GAAU,GACnC/D,EAAE,IAAI,EAAEmE,MAAM,CAACI,GAEXA,GACAF,GAER,GAGIA,AAAc,GAAdA,EACArE,EAAE,eAAe0E,WAAW,CAAC,UAG7B1E,EAAE,eAAeoE,QAAQ,CAAC,SAElC,CACJ,EACJ,CACJ,CACJ"}asd \ No newline at end of file diff --git a/src/OrchardCore.Modules/OrchardCore.Deployment/wwwroot/Scripts/steporder.map b/src/OrchardCore.Modules/OrchardCore.Deployment/wwwroot/Scripts/steporder.map index 42e5e9feb15..d5a35596f36 100644 --- a/src/OrchardCore.Modules/OrchardCore.Deployment/wwwroot/Scripts/steporder.map +++ b/src/OrchardCore.Modules/OrchardCore.Deployment/wwwroot/Scripts/steporder.map @@ -1 +1 @@ -{"version":3,"sources":[""],"sourcesContent":["function updateStepOrders(oldIndex, newIndex) {\r\n var url = $('#stepOrderUrl').data(\"url\");\r\n var id = $('#deploymentPlanId').data(\"id\");\r\n\r\n $.ajax({\r\n url: url,\r\n method: 'POST',\r\n data: {\r\n __RequestVerificationToken: $(\"input[name='__RequestVerificationToken']\").val(),\r\n id: id,\r\n newIndex: newIndex,\r\n oldIndex: oldIndex,\r\n },\r\n error: function (error) {\r\n alert($('#stepOrderErrorMessage').data(\"message\"));\r\n }\r\n });\r\n}\r\n\r\n$(function () {\r\n var sortable = document.getElementById(\"stepOrder\");\r\n if (!sortable) {\r\n return;\r\n }\r\n var sortable = Sortable.create(sortable, {\r\n handle: \".ui-sortable-handle\",\r\n onSort: function (evt) {\r\n var oldIndex = evt.oldIndex;\r\n var newIndex = evt.newIndex;\r\n updateStepOrders(oldIndex, newIndex);\r\n }\r\n });\r\n});\r\n"],"names":["updateStepOrders","oldIndex","newIndex","url","$","data","id","ajax","method","__RequestVerificationToken","val","error","alert","sortable","document","getElementById","Sortable","create","handle","onSort","evt"],"mappings":"AAAA,SAASA,iBAAiBC,CAAQ,CAAEC,CAAQ,EACxC,IAAIC,EAAMC,EAAE,iBAAiBC,IAAI,CAAC,OAC9BC,EAAKF,EAAE,qBAAqBC,IAAI,CAAC,MAErCD,EAAEG,IAAI,CAAC,CACHJ,IAAKA,EACLK,OAAQ,OACRH,KAAM,CACFI,2BAA4BL,EAAE,4CAA4CM,GAAG,GAC7EJ,GAAIA,EACJJ,SAAUA,EACVD,SAAUA,CACd,EACAU,MAAO,SAAUA,CAAK,EAClBC,MAAMR,EAAE,0BAA0BC,IAAI,CAAC,WAC3C,CACJ,EACJ,CAEAD,EAAE,WACE,IAAIS,EAAWC,SAASC,cAAc,CAAC,aACvC,GAAKF,EAGL,IAAIA,EAAWG,SAASC,MAAM,CAACJ,EAAU,CACrCK,OAAQ,sBACRC,OAAQ,SAAUC,CAAG,EAGjBpB,iBAFeoB,EAAInB,QAAQ,CACZmB,EAAIlB,QAAQ,CAE/B,CACJ,EACJ"} +{"version":3,"sources":[""],"sourcesContent":["function updateStepOrders(oldIndex, newIndex) {\r\n var url = $('#stepOrderUrl').data(\"url\");\r\n var id = $('#deploymentPlanId').data(\"id\");\r\n\r\n $.ajax({\r\n url: url,\r\n method: 'POST',\r\n data: {\r\n __RequestVerificationToken: $(\"input[name='__RequestVerificationToken']\").val(),\r\n id: id,\r\n newIndex: newIndex,\r\n oldIndex: oldIndex,\r\n },\r\n error: function (error) {\r\n alert($('#stepOrderErrorMessage').data(\"message\"));\r\n }\r\n });\r\n}\r\n\r\n$(function () {\r\n var sortable = document.getElementById(\"stepOrder\");\r\n if (!sortable) {\r\n return;\r\n }\r\n var sortable = Sortable.create(sortable, {\r\n handle: \".ui-sortable-handle\",\r\n onSort: function (evt) {\r\n var oldIndex = evt.oldIndex;\r\n var newIndex = evt.newIndex;\r\n updateStepOrders(oldIndex, newIndex);\r\n }\r\n });\r\n});\r\n"],"names":["updateStepOrders","oldIndex","newIndex","url","$","data","id","ajax","method","__RequestVerificationToken","val","error","alert","sortable","document","getElementById","Sortable","create","handle","onSort","evt"],"mappings":"AAAA,SAASA,iBAAiBC,CAAQ,CAAEC,CAAQ,EACxC,IAAIC,EAAMC,EAAE,iBAAiBC,IAAI,CAAC,OAC9BC,EAAKF,EAAE,qBAAqBC,IAAI,CAAC,MAErCD,EAAEG,IAAI,CAAC,CACHJ,IAAKA,EACLK,OAAQ,OACRH,KAAM,CACFI,2BAA4BL,EAAE,4CAA4CM,GAAG,GAC7EJ,GAAIA,EACJJ,SAAUA,EACVD,SAAUA,CACd,EACAU,MAAO,SAAUA,CAAK,EAClBC,MAAMR,EAAE,0BAA0BC,IAAI,CAAC,WAC3C,CACJ,EACJ,CAEAD,EAAE,WACE,IAAIS,EAAWC,SAASC,cAAc,CAAC,aACvC,GAAKF,EAGL,IAAIA,EAAWG,SAASC,MAAM,CAACJ,EAAU,CACrCK,OAAQ,sBACRC,OAAQ,SAAUC,CAAG,EAGjBpB,iBAFeoB,EAAInB,QAAQ,CACZmB,EAAIlB,QAAQ,CAE/B,CACJ,EACJ"}asd \ No newline at end of file diff --git a/src/OrchardCore.Modules/OrchardCore.Flows/wwwroot/Scripts/flows.edit.map b/src/OrchardCore.Modules/OrchardCore.Flows/wwwroot/Scripts/flows.edit.map index f5e10b85ab9..a3d08a4e405 100644 --- a/src/OrchardCore.Modules/OrchardCore.Flows/wwwroot/Scripts/flows.edit.map +++ b/src/OrchardCore.Modules/OrchardCore.Flows/wwwroot/Scripts/flows.edit.map @@ -1 +1 @@ -{"version":3,"sources":[""],"sourcesContent":["//variables used in FlowPart.Edit sortable\r\nvar widgetDragItem, lastContainer, widgetItemSourceId, widgetItemDestId;\r\n\r\n$(function () {\r\n $(document).on('click', '.add-widget', function (event) {\r\n var type = $(this).data(\"widget-type\");\r\n var targetId = $(this).data(\"target-id\");\r\n var htmlFieldPrefix = $(this).data(\"html-field-prefix\");\r\n var createEditorUrl = $('#' + targetId).data(\"buildeditorurl\");\r\n var prefixesName = $(this).data(\"prefixes-name\");\r\n var flowmetadata = $(this).data(\"flowmetadata\");\r\n var parentContentType = $(this).data(\"parent-content-type\");\r\n var partName = $(this).data(\"part-name\");\r\n\r\n // Retrieve all index values knowing that some elements may have been moved / removed.\r\n var indexes = $('#' + targetId).closest(\"form\").find(\"input[name*='Prefixes']\")\r\n .filter(function (i, e) {\r\n return $(e).val().substring(0, $(e).val().lastIndexOf('-')) === htmlFieldPrefix;\r\n })\r\n .map(function (i, e) {\r\n return parseInt($(e).val().substring($(e).val().lastIndexOf('-') + 1)) || 0;\r\n });\r\n\r\n // Use a prefix based on the items count (not a guid) so that the browser autofill still works.\r\n var index = indexes.length ? Math.max(...indexes) + 1 : 0;\r\n var prefix = htmlFieldPrefix + '-' + index.toString();\r\n\r\n var contentTypesName = $(this).data(\"contenttypes-name\");\r\n var contentItemsName = $(this).data(\"contentitems-name\");\r\n $.ajax({\r\n url: createEditorUrl + \"?id=\" + type + \"&prefix=\" + prefix + \"&prefixesName=\" + prefixesName + \"&contentTypesName=\" + contentTypesName + \"&contentItemsName=\" + contentItemsName + \"&targetId=\" + targetId + \"&flowmetadata=\" + flowmetadata + \"&parentContentType=\" + parentContentType + \"&partName=\" + partName\r\n }).done(function (data) {\r\n var result = JSON.parse(data);\r\n $(document.getElementById(targetId)).append(result.Content);\r\n\r\n var dom = $(result.Scripts);\r\n dom.filter('script').each(function () {\r\n $.globalEval(this.text || this.textContent || this.innerHTML || '');\r\n });\r\n });\r\n });\r\n\r\n $(document).on('click', '.insert-widget', function (event) {\r\n var type = $(this).data(\"widget-type\");\r\n var target = $(this).closest('.widget-template');\r\n var targetId = $(this).data(\"target-id\");\r\n var htmlFieldPrefix = $(this).data(\"html-field-prefix\");\r\n var createEditorUrl = $('#' + targetId).data(\"buildeditorurl\");\r\n var flowmetadata = $(this).data(\"flowmetadata\");\r\n var prefixesName = $(this).data(\"prefixes-name\");\r\n var parentContentType = $(this).data(\"parent-content-type\");\r\n var partName = $(this).data(\"part-name\");\r\n\r\n // Retrieve all index values knowing that some elements may have been moved / removed.\r\n var indexes = $('#' + targetId).closest(\"form\").find(\"input[name*='Prefixes']\")\r\n .filter(function (i, e) {\r\n return $(e).val().substring(0, $(e).val().lastIndexOf('-')) === htmlFieldPrefix;\r\n })\r\n .map(function (i, e) {\r\n return parseInt($(e).val().substring($(e).val().lastIndexOf('-') + 1)) || 0;\r\n });\r\n\r\n // Use a prefix based on the items count (not a guid) so that the browser autofill still works.\r\n var index = indexes.length ? Math.max(...indexes) + 1 : 0;\r\n var prefix = htmlFieldPrefix + '-' + index.toString();\r\n\r\n var contentTypesName = $(this).data(\"contenttypes-name\");\r\n var contentItemsName = $(this).data(\"contentitems-name\");\r\n $.ajax({\r\n url: createEditorUrl + \"?id=\" + type + \"&prefix=\" + prefix + \"&prefixesName=\" + prefixesName + \"&contentTypesName=\" + contentTypesName + \"&contentItemsName=\" + contentItemsName + \"&targetId=\" + targetId + \"&flowmetadata=\" + flowmetadata + \"&parentContentType=\" + parentContentType + \"&partName=\" + partName\r\n }).done(function (data) {\r\n var result = JSON.parse(data);\r\n $(result.Content).insertBefore(target);\r\n\r\n var dom = $(result.Scripts);\r\n dom.filter('script').each(function () {\r\n $.globalEval(this.text || this.textContent || this.innerHTML || '');\r\n });\r\n });\r\n });\r\n\r\n $(document).on('click', '.widget-delete', function () {\r\n var $this = $(this);\r\n confirmDialog({\r\n ...$this.data(), callback: function (r) {\r\n if (r) {\r\n $this.closest('.widget-template').remove();\r\n $(document).trigger('contentpreview:render');\r\n }\r\n }\r\n });\r\n });\r\n\r\n $(document).on('change', '.widget-editor-footer label, .widget-editor-header label', function () {\r\n\r\n var $tmpl = $(this).closest('.widget-template');\r\n var $radio = $(this).find(\"input:first-child\");\r\n if ($radio[0].id !== 'undefined' && $radio[0].id.indexOf('Size') > 0) {\r\n var $radioSize = $(this).find(\"input:first-child\").val();\r\n var classList = $tmpl.attr('class').split(' ');\r\n $.each(classList, function (id, item) {\r\n if (item.indexOf('col-md-') === 0) $tmpl.removeClass(item);\r\n });\r\n var colSize = Math.round($radioSize / 100 * 12);\r\n $tmpl.addClass('col-md-' + colSize);\r\n\r\n var dropdown = $(this).closest('.dropdown-menu');\r\n dropdown.prev('button').text($radioSize + '%');\r\n } else if ($radio[0].id !== 'undefined' && $radio[0].id.indexOf('Alignment') > 0) {\r\n var svg = $(this).find('svg')[0].outerHTML;\r\n var alignDropdown = $(this).closest('.dropdown-menu');\r\n var $btn = alignDropdown.prev('button');\r\n $btn.html(svg);\r\n }\r\n\r\n $(this).parent().find('.dropdown-item').removeClass('active');\r\n $(this).toggleClass('active');\r\n $(document).trigger('contentpreview:render');\r\n });\r\n\r\n $(document).on('click', '.widget-editor-btn-toggle', function () {\r\n $(this).closest('.widget-editor').toggleClass('collapsed');\r\n });\r\n\r\n $(document).on('keyup', '.widget-editor-body .form-group input.content-caption-text', function () {\r\n var headerTextLabel = $(this).closest('.widget-editor').find('.widget-editor-header:first .widget-editor-header-text');\r\n var contentTypeDisplayText = headerTextLabel.data('content-type-display-text');\r\n var title = $(this).val();\r\n var newDisplayText = title + ' ' + contentTypeDisplayText;\r\n\r\n headerTextLabel.text(newDisplayText);\r\n });\r\n});\r\n"],"names":["widgetDragItem","lastContainer","widgetItemSourceId","widgetItemDestId","$","document","on","event","type","data","targetId","htmlFieldPrefix","createEditorUrl","prefixesName","flowmetadata","parentContentType","partName","indexes","closest","find","filter","i","e","val","substring","lastIndexOf","map","parseInt","prefix","index","length","Math","max","toString","contentTypesName","contentItemsName","ajax","url","done","result","JSON","parse","getElementById","append","Content","dom","Scripts","each","globalEval","text","textContent","innerHTML","target","insertBefore","$this","confirmDialog","callback","r","remove","trigger","$tmpl","$radio","id","indexOf","$radioSize","classList","attr","split","item","removeClass","addClass","round","dropdown","prev","svg","outerHTML","$btn","alignDropdown","html","parent","toggleClass","headerTextLabel","contentTypeDisplayText","title"],"mappings":"AACA,IAAIA,eAAgBC,cAAeC,mBAAoBC,iBAEvDC,E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,EAAyBD,EAAgBxE,IAAI,CAAC,6BAC9C0E,EAAQ/E,EAAE,IAAI,EAAEmB,GAAG,GAGvB0D,EAAgBhC,IAAI,CAFCkC,EAAQ,IAAMD,EAGvC,EACJ"} +{"version":3,"sources":[""],"sourcesContent":["//variables used in FlowPart.Edit sortable\r\nvar widgetDragItem, lastContainer, widgetItemSourceId, widgetItemDestId;\r\n\r\n$(function () {\r\n $(document).on('click', '.add-widget', function (event) {\r\n var type = $(this).data(\"widget-type\");\r\n var targetId = $(this).data(\"target-id\");\r\n var htmlFieldPrefix = $(this).data(\"html-field-prefix\");\r\n var createEditorUrl = $('#' + targetId).data(\"buildeditorurl\");\r\n var prefixesName = $(this).data(\"prefixes-name\");\r\n var flowmetadata = $(this).data(\"flowmetadata\");\r\n var parentContentType = $(this).data(\"parent-content-type\");\r\n var partName = $(this).data(\"part-name\");\r\n\r\n // Retrieve all index values knowing that some elements may have been moved / removed.\r\n var indexes = $('#' + targetId).closest(\"form\").find(\"input[name*='Prefixes']\")\r\n .filter(function (i, e) {\r\n return $(e).val().substring(0, $(e).val().lastIndexOf('-')) === htmlFieldPrefix;\r\n })\r\n .map(function (i, e) {\r\n return parseInt($(e).val().substring($(e).val().lastIndexOf('-') + 1)) || 0;\r\n });\r\n\r\n // Use a prefix based on the items count (not a guid) so that the browser autofill still works.\r\n var index = indexes.length ? Math.max(...indexes) + 1 : 0;\r\n var prefix = htmlFieldPrefix + '-' + index.toString();\r\n\r\n var contentTypesName = $(this).data(\"contenttypes-name\");\r\n var contentItemsName = $(this).data(\"contentitems-name\");\r\n $.ajax({\r\n url: createEditorUrl + \"?id=\" + type + \"&prefix=\" + prefix + \"&prefixesName=\" + prefixesName + \"&contentTypesName=\" + contentTypesName + \"&contentItemsName=\" + contentItemsName + \"&targetId=\" + targetId + \"&flowmetadata=\" + flowmetadata + \"&parentContentType=\" + parentContentType + \"&partName=\" + partName\r\n }).done(function (data) {\r\n var result = JSON.parse(data);\r\n $(document.getElementById(targetId)).append(result.Content);\r\n\r\n var dom = $(result.Scripts);\r\n dom.filter('script').each(function () {\r\n $.globalEval(this.text || this.textContent || this.innerHTML || '');\r\n });\r\n });\r\n });\r\n\r\n $(document).on('click', '.insert-widget', function (event) {\r\n var type = $(this).data(\"widget-type\");\r\n var target = $(this).closest('.widget-template');\r\n var targetId = $(this).data(\"target-id\");\r\n var htmlFieldPrefix = $(this).data(\"html-field-prefix\");\r\n var createEditorUrl = $('#' + targetId).data(\"buildeditorurl\");\r\n var flowmetadata = $(this).data(\"flowmetadata\");\r\n var prefixesName = $(this).data(\"prefixes-name\");\r\n var parentContentType = $(this).data(\"parent-content-type\");\r\n var partName = $(this).data(\"part-name\");\r\n\r\n // Retrieve all index values knowing that some elements may have been moved / removed.\r\n var indexes = $('#' + targetId).closest(\"form\").find(\"input[name*='Prefixes']\")\r\n .filter(function (i, e) {\r\n return $(e).val().substring(0, $(e).val().lastIndexOf('-')) === htmlFieldPrefix;\r\n })\r\n .map(function (i, e) {\r\n return parseInt($(e).val().substring($(e).val().lastIndexOf('-') + 1)) || 0;\r\n });\r\n\r\n // Use a prefix based on the items count (not a guid) so that the browser autofill still works.\r\n var index = indexes.length ? Math.max(...indexes) + 1 : 0;\r\n var prefix = htmlFieldPrefix + '-' + index.toString();\r\n\r\n var contentTypesName = $(this).data(\"contenttypes-name\");\r\n var contentItemsName = $(this).data(\"contentitems-name\");\r\n $.ajax({\r\n url: createEditorUrl + \"?id=\" + type + \"&prefix=\" + prefix + \"&prefixesName=\" + prefixesName + \"&contentTypesName=\" + contentTypesName + \"&contentItemsName=\" + contentItemsName + \"&targetId=\" + targetId + \"&flowmetadata=\" + flowmetadata + \"&parentContentType=\" + parentContentType + \"&partName=\" + partName\r\n }).done(function (data) {\r\n var result = JSON.parse(data);\r\n $(result.Content).insertBefore(target);\r\n\r\n var dom = $(result.Scripts);\r\n dom.filter('script').each(function () {\r\n $.globalEval(this.text || this.textContent || this.innerHTML || '');\r\n });\r\n });\r\n });\r\n\r\n $(document).on('click', '.widget-delete', function () {\r\n var $this = $(this);\r\n confirmDialog({\r\n ...$this.data(), callback: function (r) {\r\n if (r) {\r\n $this.closest('.widget-template').remove();\r\n $(document).trigger('contentpreview:render');\r\n }\r\n }\r\n });\r\n });\r\n\r\n $(document).on('change', '.widget-editor-footer label, .widget-editor-header label', function () {\r\n\r\n var $tmpl = $(this).closest('.widget-template');\r\n var $radio = $(this).find(\"input:first-child\");\r\n if ($radio[0].id !== 'undefined' && $radio[0].id.indexOf('Size') > 0) {\r\n var $radioSize = $(this).find(\"input:first-child\").val();\r\n var classList = $tmpl.attr('class').split(' ');\r\n $.each(classList, function (id, item) {\r\n if (item.indexOf('col-md-') === 0) $tmpl.removeClass(item);\r\n });\r\n var colSize = Math.round($radioSize / 100 * 12);\r\n $tmpl.addClass('col-md-' + colSize);\r\n\r\n var dropdown = $(this).closest('.dropdown-menu');\r\n dropdown.prev('button').text($radioSize + '%');\r\n } else if ($radio[0].id !== 'undefined' && $radio[0].id.indexOf('Alignment') > 0) {\r\n var svg = $(this).find('svg')[0].outerHTML;\r\n var alignDropdown = $(this).closest('.dropdown-menu');\r\n var $btn = alignDropdown.prev('button');\r\n $btn.html(svg);\r\n }\r\n\r\n $(this).parent().find('.dropdown-item').removeClass('active');\r\n $(this).toggleClass('active');\r\n $(document).trigger('contentpreview:render');\r\n });\r\n\r\n $(document).on('click', '.widget-editor-btn-toggle', function () {\r\n $(this).closest('.widget-editor').toggleClass('collapsed');\r\n });\r\n\r\n $(document).on('keyup', '.widget-editor-body .form-group input.content-caption-text', function () {\r\n var headerTextLabel = $(this).closest('.widget-editor').find('.widget-editor-header:first .widget-editor-header-text');\r\n var contentTypeDisplayText = headerTextLabel.data('content-type-display-text');\r\n var title = $(this).val();\r\n var newDisplayText = title + ' ' + contentTypeDisplayText;\r\n\r\n headerTextLabel.text(newDisplayText);\r\n });\r\n});\r\n"],"names":["widgetDragItem","lastContainer","widgetItemSourceId","widgetItemDestId","$","document","on","event","type","data","targetId","htmlFieldPrefix","createEditorUrl","prefixesName","flowmetadata","parentContentType","partName","indexes","closest","find","filter","i","e","val","substring","lastIndexOf","map","parseInt","prefix","index","length","Math","max","toString","contentTypesName","contentItemsName","ajax","url","done","result","JSON","parse","getElementById","append","Content","dom","Scripts","each","globalEval","text","textContent","innerHTML","target","insertBefore","$this","confirmDialog","callback","r","remove","trigger","$tmpl","$radio","id","indexOf","$radioSize","classList","attr","split","item","removeClass","addClass","round","dropdown","prev","svg","outerHTML","$btn","alignDropdown","html","parent","toggleClass","headerTextLabel","contentTypeDisplayText","title"],"mappings":"AACA,IAAIA,eAAgBC,cAAeC,mBAAoBC,iBAEvDC,EAAE,WACEA,EAAEC,UAAUC,EAAE,CAAC,QAAS,cAAe,SAAUC,CAAK,EAClD,IAAIC,EAAOJ,EAAE,IAAI,EAAEK,IAAI,CAAC,eACpBC,EAAWN,EAAE,IAAI,EAAEK,IAAI,CAAC,aACxBE,EAAkBP,EAAE,IAAI,EAAEK,IAAI,CAAC,qBAC/BG,EAAkBR,EAAE,IAAMM,GAAUD,IAAI,CAAC,kBACzCI,EAAeT,EAAE,IAAI,EAAEK,IAAI,CAAC,iBAC5BK,EAAeV,EAAE,IAAI,EAAEK,IAAI,CAAC,gBAC5BM,EAAoBX,EAAE,IAAI,EAAEK,IAAI,CAAC,uBACjCO,EAAWZ,EAAE,IAAI,EAAEK,IAAI,CAAC,aAGxBQ,EAAUb,EAAE,IAAMM,GAAUQ,OAAO,CAAC,QAAQC,IAAI,CAAC,2BAChDC,MAAM,CAAC,SAAUC,CAAC,CAAEC,CAAC,EAClB,OAAOlB,EAAEkB,GAAGC,GAAG,GAAGC,SAAS,CAAC,EAAGpB,EAAEkB,GAAGC,GAAG,GAAGE,WAAW,CAAC,QAAUd,CACpE,GACCe,GAAG,CAAC,SAAUL,CAAC,CAAEC,CAAC,EACf,OAAOK,SAASvB,EAAEkB,GAAGC,GAAG,GAAGC,SAAS,CAACpB,EAAEkB,GAAGC,GAAG,GAAGE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AEAtE,EAAE,IAAI,EAAE2E,MAAM,GAAG5D,IAAI,CAAC,kBAAkBkD,WAAW,CAAC,UACpDjE,EAAE,IAAI,EAAE4E,WAAW,CAAC,UACpB5E,EAAEC,UAAUsD,OAAO,CAAC,wBACxB,GAEAvD,EAAEC,UAAUC,EAAE,CAAC,QAAS,4BAA6B,WACjDF,EAAE,IAAI,EAAEc,OAAO,CAAC,kBAAkB8D,WAAW,CAAC,YAClD,GAEA5E,EAAEC,UAAUC,EAAE,CAAC,QAAS,6DAA8D,WAClF,IAAI2E,EAAkB7E,EAAE,IAAI,EAAEc,OAAO,CAAC,kBAAkBC,IAAI,CAAC,0DACzD+D,EAAyBD,EAAgBxE,IAAI,CAAC,6BAC9C0E,EAAQ/E,EAAE,IAAI,EAAEmB,GAAG,GAGvB0D,EAAgBhC,IAAI,CAFCkC,EAAQ,IAAMD,EAGvC,EACJ"}asd \ No newline at end of file diff --git a/src/OrchardCore.Modules/OrchardCore.Forms/wwwroot/Scripts/formElementLabelManager.map b/src/OrchardCore.Modules/OrchardCore.Forms/wwwroot/Scripts/formElementLabelManager.map index f70182c0b66..bcd448c6e2b 100644 --- a/src/OrchardCore.Modules/OrchardCore.Forms/wwwroot/Scripts/formElementLabelManager.map +++ b/src/OrchardCore.Modules/OrchardCore.Forms/wwwroot/Scripts/formElementLabelManager.map @@ -1 +1 @@ -{"version":3,"sources":[""],"sourcesContent":["formElementLabelManager = function () {\r\n const initilize = (wrapper) => {\r\n var selectMenus = wrapper.getElementsByClassName('field-label-option-select-menu');\r\n\r\n for (let i = 0; i < selectMenus.length; i++) {\r\n var selectMenu = selectMenus[i];\r\n selectMenu.addEventListener('change', function (e) {\r\n var labelTextContainer = wrapper.querySelector('.label-text-container');\r\n\r\n if (e.target.value == 'None') {\r\n labelTextContainer.classList.add('d-none');\r\n } else {\r\n labelTextContainer.classList.remove('d-none');\r\n }\r\n });\r\n selectMenu.dispatchEvent(new Event('change'));\r\n }\r\n };\r\n\r\n return {\r\n initilize: initilize\r\n };\r\n}();\r\n\r\ndocument.addEventListener('DOMContentLoaded', function () {\r\n formElementLabelManager.initilize(document);\r\n});\r\n"],"names":["formElementLabelManager","initilize","wrapper","selectMenus","getElementsByClassName","i","length","selectMenu","addEventListener","e","labelTextContainer","querySelector","target","value","classList","add","remove","dispatchEvent","Event","document"],"mappings":"AAAAA,wBAmBW,CACHC,UAnBc,AAACC,IACf,IAAIC,EAAcD,EAAQE,sBAAsB,CAAC,kCAEjD,IAAK,IAAIC,EAAI,EAAGA,EAAIF,EAAYG,MAAM,CAAED,IAAK,CACzC,IAAIE,EAAaJ,CAAW,CAACE,EAAE,CAC/BE,EAAWC,gBAAgB,CAAC,SAAU,SAAUC,CAAC,EAC7C,IAAIC,EAAqBR,EAAQS,aAAa,CAAC,wBAE3CF,AAAkB,CAAA,QAAlBA,EAAEG,MAAM,CAACC,KAAK,CACdH,EAAmBI,SAAS,CAACC,GAAG,CAAC,UAEjCL,EAAmBI,SAAS,CAACE,MAAM,CAAC,SAE5C,GACAT,EAAWU,aAAa,CAAC,IAAIC,MAAM,UACvC,CACJ,CAIA,EAGJC,SAASX,gBAAgB,CAAC,mBAAoB,WAC1CR,wBAAwBC,SAAS,CAACkB,SACtC"} +{"version":3,"sources":[""],"sourcesContent":["formElementLabelManager = function () {\r\n const initilize = (wrapper) => {\r\n var selectMenus = wrapper.getElementsByClassName('field-label-option-select-menu');\r\n\r\n for (let i = 0; i < selectMenus.length; i++) {\r\n var selectMenu = selectMenus[i];\r\n selectMenu.addEventListener('change', function (e) {\r\n var labelTextContainer = wrapper.querySelector('.label-text-container');\r\n\r\n if (e.target.value == 'None') {\r\n labelTextContainer.classList.add('d-none');\r\n } else {\r\n labelTextContainer.classList.remove('d-none');\r\n }\r\n });\r\n selectMenu.dispatchEvent(new Event('change'));\r\n }\r\n };\r\n\r\n return {\r\n initilize: initilize\r\n };\r\n}();\r\n\r\ndocument.addEventListener('DOMContentLoaded', function () {\r\n formElementLabelManager.initilize(document);\r\n});\r\n"],"names":["formElementLabelManager","initilize","wrapper","selectMenus","getElementsByClassName","i","length","selectMenu","addEventListener","e","labelTextContainer","querySelector","target","value","classList","add","remove","dispatchEvent","Event","document"],"mappings":"AAAAA,wBAmBW,CACHC,UAnBc,AAACC,IACf,IAAIC,EAAcD,EAAQE,sBAAsB,CAAC,kCAEjD,IAAK,IAAIC,EAAI,EAAGA,EAAIF,EAAYG,MAAM,CAAED,IAAK,CACzC,IAAIE,EAAaJ,CAAW,CAACE,EAAE,CAC/BE,EAAWC,gBAAgB,CAAC,SAAU,SAAUC,CAAC,EAC7C,IAAIC,EAAqBR,EAAQS,aAAa,CAAC,wBAE3CF,AAAkB,CAAA,QAAlBA,EAAEG,MAAM,CAACC,KAAK,CACdH,EAAmBI,SAAS,CAACC,GAAG,CAAC,UAEjCL,EAAmBI,SAAS,CAACE,MAAM,CAAC,SAE5C,GACAT,EAAWU,aAAa,CAAC,IAAIC,MAAM,UACvC,CACJ,CAIA,EAGJC,SAASX,gBAAgB,CAAC,mBAAoB,WAC1CR,wBAAwBC,SAAS,CAACkB,SACtC"}asd \ No newline at end of file diff --git a/src/OrchardCore.Modules/OrchardCore.Forms/wwwroot/Scripts/selectOptionsEditor.map b/src/OrchardCore.Modules/OrchardCore.Forms/wwwroot/Scripts/selectOptionsEditor.map index 6c73fc9047c..1bc9704daf3 100644 --- a/src/OrchardCore.Modules/OrchardCore.Forms/wwwroot/Scripts/selectOptionsEditor.map +++ b/src/OrchardCore.Modules/OrchardCore.Forms/wwwroot/Scripts/selectOptionsEditor.map @@ -1 +1 @@ -{"version":3,"sources":[""],"sourcesContent":["selectOptionsEditor = function () {\r\n\r\n const initilize = (elemId, optionsData, defaultValue) => {\r\n var keyId = 1;\r\n //Add Key ID\r\n optionsData = optionsData.map((x) => {\r\n x.key = keyId;\r\n keyId++;\r\n return x;\r\n });\r\n\r\n var selectOptionsRow = {\r\n name: \"select-options-row\",\r\n template: \"#select-options-row\",\r\n props: [\"option\", \"defaultValue\"],\r\n data: function () {\r\n return {\r\n partId: elemId,\r\n };\r\n },\r\n methods: {\r\n remove: function () {\r\n this.$emit(\"remove-option\", this.option);\r\n },\r\n },\r\n computed: {\r\n IsSelected: {\r\n get: function () {\r\n if (!IsNullOrWhiteSpace(this.option.value)) {\r\n return this.option.value == this.defaultValue;\r\n } else {\r\n return this.option.text == this.defaultValue;\r\n }\r\n },\r\n set: function (val) {\r\n if (val) {\r\n this.$emit(\"set-default\", this.option);\r\n } else {\r\n this.$emit(\"set-default\", null);\r\n }\r\n },\r\n },\r\n optionValue: {\r\n get: function () {\r\n return this.option.value;\r\n },\r\n set: function (val) {\r\n var isSelected = this.IsSelected;\r\n this.option.value = val;\r\n if (isSelected) {\r\n this.$emit(\"set-default\", this.option);\r\n } else {\r\n this.$emit(\"reorder-option\");\r\n }\r\n },\r\n },\r\n\r\n optionText: {\r\n get: function () {\r\n return this.option.text;\r\n },\r\n set: function (val) {\r\n var isSelected = this.IsSelected;\r\n this.option.text = val;\r\n if (isSelected) {\r\n this.$emit(\"set-default\", this.option);\r\n } else {\r\n this.$emit(\"reorder-option\");\r\n }\r\n },\r\n },\r\n\r\n optionCheck: {\r\n get: function () {\r\n if (IsNullOrWhiteSpace(this.option.value)) {\r\n return this.option.text;\r\n } else {\r\n return this.option.value;\r\n }\r\n },\r\n },\r\n },\r\n };\r\n\r\n var selectOptionsTable = {\r\n name: \"select-options-table\",\r\n components: {\r\n selectOptionsRow: selectOptionsRow,\r\n },\r\n template: \"#select-options-table\",\r\n props: [\"data\"],\r\n data: function () {\r\n return {\r\n partId: elemId,\r\n };\r\n },\r\n methods: {\r\n add: function () {\r\n this.$emit(\"add-option\");\r\n },\r\n onDragEnd: function () {\r\n this.$emit(\"reorder-option\");\r\n },\r\n },\r\n };\r\n\r\n var selectOptionsModal = {\r\n name: \"select-options-modal\",\r\n template: \"#select-options-modal\",\r\n props: [\"data\", \"showModal\", \"validOptions\"],\r\n data: function () {\r\n return {\r\n optionsFormattedList: \"[]\",\r\n partId: elemId,\r\n defaultValue: \"\",\r\n isValid: false,\r\n jsonOptions: [],\r\n };\r\n },\r\n methods: {\r\n closeModal: function (save) {\r\n if (save) {\r\n this.$emit(\"modal-save\", {\r\n options: this.jsonOptions,\r\n defaultValue: this.defaultValue,\r\n });\r\n } else {\r\n this.$emit(\"modal-cancel\");\r\n }\r\n },\r\n showStart: function (params) {\r\n this.$refs.modal.classList.toggle('d-block');\r\n this.$refs.backdrop.classList.toggle('d-block');\r\n },\r\n showEnd: function (params) {\r\n this.$refs.modal.classList.toggle('show');\r\n this.$refs.backdrop.classList.toggle('show');\r\n }\r\n },\r\n watch: {\r\n showModal: function (newval) {\r\n if (newval) {\r\n\r\n this.optionsFormattedList = JSON.stringify(\r\n this.validOptions,\r\n null,\r\n 2\r\n );\r\n this.defaultValue = this.data.defaultValue;\r\n } else {\r\n this.optionsFormattedList = \"[]\";\r\n this.defaultValue = \"\";\r\n }\r\n },\r\n optionsFormattedList: function (newval) {\r\n try {\r\n var parsed = JSON.parse(newval);\r\n if (!!newval && parsed instanceof Array) {\r\n this.jsonOptions = parsed;\r\n this.isValid = true;\r\n } else {\r\n this.isValid = false;\r\n }\r\n } catch (e) {\r\n this.isValid = false;\r\n }\r\n },\r\n },\r\n };\r\n\r\n new Vue({\r\n components: {\r\n selectOptionsTable: selectOptionsTable,\r\n selectOptionsModal: selectOptionsModal,\r\n },\r\n data: function () {\r\n return {\r\n state: {\r\n options: optionsData,\r\n defaultValue: defaultValue,\r\n partId: elemId,\r\n },\r\n debounceTimeout: null,\r\n showModal: false,\r\n };\r\n },\r\n el: \"#\" + elemId,\r\n methods: {\r\n cancelChanges: function () {\r\n this.showModal = false;\r\n },\r\n updateChanges: function (changes) {\r\n this.state.options = changes.options\r\n .filter(function (y) {\r\n return !IsNullOrWhiteSpace(y.text);\r\n })\r\n .map(function (x) {\r\n x.key = keyId++;\r\n return x;\r\n });\r\n this.state.defaultValue = changes.defaultValue;\r\n this.showModal = false;\r\n this.debouncePreview();\r\n },\r\n setDefaultValue: function (opt) {\r\n if (opt == null) {\r\n this.state.defaultValue = \"\";\r\n } else {\r\n if (!IsNullOrWhiteSpace(opt.value)) {\r\n this.state.defaultValue = opt.value;\r\n } else {\r\n this.state.defaultValue = opt.text;\r\n }\r\n }\r\n this.debouncePreview();\r\n },\r\n addOption: function () {\r\n this.state.options.push({\r\n text: \"\",\r\n value: \"\",\r\n key: keyId++,\r\n });\r\n this.debouncePreview();\r\n },\r\n removeOption: function (opt) {\r\n var index = this.state.options.findIndex(function (c) {\r\n return c.key == opt.key;\r\n });\r\n if (index > -1) {\r\n this.state.options.splice(index, 1);\r\n this.debouncePreview();\r\n }\r\n },\r\n reorderOption: function (evt) {\r\n this.debouncePreview();\r\n },\r\n debouncePreview: function (params) {\r\n if (this.debounceTimeout) clearTimeout(this.debounceTimeout);\r\n this.debounceTimeout = setTimeout(() => {\r\n const previewEvent = new Event(\"contentpreview:render\");\r\n document.dispatchEvent(previewEvent);\r\n }, 500);\r\n },\r\n },\r\n computed: {\r\n stringify: function () {\r\n return JSON.stringify(this.validOptions);\r\n },\r\n validOptions: function () {\r\n return this.state.options\r\n .map(function (x) {\r\n return {\r\n text: x.text,\r\n value: x.value,\r\n };\r\n })\r\n .filter(function (x) {\r\n return !IsNullOrWhiteSpace(x.text);\r\n });\r\n },\r\n },\r\n });\r\n\r\n function IsNullOrWhiteSpace(str) {\r\n return str == null || str.match(/^ *$/) !== null;\r\n }\r\n };\r\n\r\n const initilizeElement = (id, options, value) => {\r\n var wrapper = document.getElementById(id);\r\n\r\n if (wrapper != null) {\r\n initilize(id, options, value);\r\n }\r\n }\r\n\r\n const initilizeFieldType = (wrapper) => {\r\n var selectMenus = wrapper.getElementsByClassName('field-type-select-menu');\r\n for (let i = 0; i < selectMenus.length; i++) {\r\n var selectMenu = selectMenus[i];\r\n selectMenu.addEventListener('change', function (e) {\r\n var visibleForInputContainers = wrapper.getElementsByClassName('show-for-input');\r\n\r\n for (let i = 0; i < visibleForInputContainers.length; i++) {\r\n var container = visibleForInputContainers[i];\r\n if (e.target.value == 'reset' || e.target.value == 'submit' || e.target.value == 'hidden') {\r\n container.classList.add('d-none');\r\n } else {\r\n container.classList.remove('d-none');\r\n }\r\n }\r\n });\r\n selectMenu.dispatchEvent(new Event('change'));\r\n }\r\n };\r\n\r\n return {\r\n initilizeElement: initilizeElement,\r\n initilizeFieldType: initilizeFieldType\r\n };\r\n}();\r\n\r\ndocument.addEventListener('DOMContentLoaded', function () {\r\n var wrappers = document.getElementsByName('select-part-properties-wrapper');\r\n\r\n for (let i = 0; i < wrappers.length; i++) {\r\n var wrapper = wrappers[i];\r\n\r\n var fieldWrapper = wrapper.querySelector('.field-options-wrapper');\r\n\r\n if (fieldWrapper != null) {\r\n var initialDefaultValue = fieldWrapper.querySelector('.field-options-wrapper-initial-default-value');\r\n var initialOptions = fieldWrapper.querySelector('.field-options-wrapper-initial-options');\r\n\r\n selectOptionsEditor.initilizeElement(fieldWrapper.Id, initialOptions.innerHTML, initialDefaultValue.value)\r\n }\r\n }\r\n\r\n selectOptionsEditor.initilizeFieldType(document);\r\n});\r\n"],"names":["selectOptionsEditor","initilize","elemId","optionsData","defaultValue","keyId","IsNullOrWhiteSpace","str","match","map","x","key","Vue","components","selectOptionsTable","name","selectOptionsRow","template","props","data","partId","methods","remove","$emit","option","computed","IsSelected","get","value","text","set","val","optionValue","isSelected","optionText","optionCheck","add","onDragEnd","selectOptionsModal","optionsFormattedList","isValid","jsonOptions","closeModal","save","options","showStart","params","$refs","modal","classList","toggle","backdrop","showEnd","watch","showModal","newval","JSON","stringify","validOptions","parsed","parse","Array","e","state","debounceTimeout","el","cancelChanges","updateChanges","changes","filter","y","debouncePreview","setDefaultValue","opt","addOption","push","removeOption","index","findIndex","c","splice","reorderOption","evt","clearTimeout","setTimeout","previewEvent","Event","document","dispatchEvent","initilizeElement","id","getElementById","initilizeFieldType","wrapper","selectMenus","getElementsByClassName","i","length","selectMenu","addEventListener","visibleForInputContainers","container","target","wrappers","getElementsByName","fieldWrapper","querySelector","initialDefaultValue","initialOptions","Id","innerHTML"],"mappings":"AAAAA,oBAAsB,WAElB,IAAMC,EAAY,CAACC,EAAQC,EAAaC,KACpC,IAAIC,EAAQ,EAoQZ,SAASC,EAAmBC,CAAG,EAC3B,OAAOA,AAAO,MAAPA,GAAeA,AAAsB,OAAtBA,EAAIC,KAAK,CAAC,OACpC,CApQAL,EAAcA,EAAYM,GAAG,CAAC,AAACC,IAC3BA,EAAEC,GAAG,CAAGN,EACRA,IACOK,IAkKX,IAAIE,IAAI,CACJC,WAAY,CACRC,mBAxFiB,CACrBC,KAAM,uBACNF,WAAY,CACRG,iBA5Ee,CACnBD,KAAM,qBACNE,SAAU,sBACVC,MAAO,CAAC,SAAU,eAAe,CACjCC,KAAM,WACF,MAAO,CACHC,OAAQlB,CACZ,CACJ,EACAmB,QAAS,CACLC,OAAQ,WACJ,IAAI,CAACC,KAAK,CAAC,gBAAiB,IAAI,CAACC,MAAM,CAC3C,CACJ,EACAC,SAAU,CACNC,WAAY,CACRC,IAAK,kBACD,AAAKrB,EAAmB,IAAI,CAACkB,MAAM,CAACI,KAAK,EAG9B,IAAI,CAACJ,MAAM,CAACK,IAAI,EAAI,IAAI,CAACzB,YAAY,CAFrC,IAAI,CAACoB,MAAM,CAACI,KAAK,EAAI,IAAI,CAACxB,YAAY,AAIrD,EACA0B,IAAK,SAAUC,CAAG,EACVA,EACA,IAAI,CAACR,KAAK,CAAC,cAAe,IAAI,CAACC,MAAM,EAErC,IAAI,CAACD,KAAK,CAAC,cAAe,KAElC,CACJ,EACAS,YAAa,CACTL,IAAK,WACD,OAAO,IAAI,CAACH,MAAM,CAACI,KAAK,AAC5B,EACAE,IAAK,SAAUC,CAAG,EACd,IAAIE,EAAa,IAAI,CAACP,UAAU,AAChC,CAAA,IAAI,CAACF,MAAM,CAACI,KAAK,CAAGG,EAChBE,EACA,IAAI,CAACV,KAAK,CAAC,cAAe,IAAI,CAACC,MAAM,EAErC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tC,IAAIS,EAAeZ,AAFLU,CAAQ,CAACP,EAAE,CAEEU,aAAa,CAAC,0BAEzC,GAAID,AAAgB,MAAhBA,EAAsB,CACtB,IAAIE,EAAsBF,EAAaC,aAAa,CAAC,gDACjDE,EAAiBH,EAAaC,aAAa,CAAC,0CAEhD1G,oBAAoByF,gBAAgB,CAACgB,EAAaI,EAAE,CAAED,EAAeE,SAAS,CAAEH,EAAoB/E,KAAK,CAC7G,CACJ,CAEA5B,oBAAoB4F,kBAAkB,CAACL,SAC3C"} +{"version":3,"sources":[""],"sourcesContent":["selectOptionsEditor = function () {\r\n\r\n const initilize = (elemId, optionsData, defaultValue) => {\r\n var keyId = 1;\r\n //Add Key ID\r\n optionsData = optionsData.map((x) => {\r\n x.key = keyId;\r\n keyId++;\r\n return x;\r\n });\r\n\r\n var selectOptionsRow = {\r\n name: \"select-options-row\",\r\n template: \"#select-options-row\",\r\n props: [\"option\", \"defaultValue\"],\r\n data: function () {\r\n return {\r\n partId: elemId,\r\n };\r\n },\r\n methods: {\r\n remove: function () {\r\n this.$emit(\"remove-option\", this.option);\r\n },\r\n },\r\n computed: {\r\n IsSelected: {\r\n get: function () {\r\n if (!IsNullOrWhiteSpace(this.option.value)) {\r\n return this.option.value == this.defaultValue;\r\n } else {\r\n return this.option.text == this.defaultValue;\r\n }\r\n },\r\n set: function (val) {\r\n if (val) {\r\n this.$emit(\"set-default\", this.option);\r\n } else {\r\n this.$emit(\"set-default\", null);\r\n }\r\n },\r\n },\r\n optionValue: {\r\n get: function () {\r\n return this.option.value;\r\n },\r\n set: function (val) {\r\n var isSelected = this.IsSelected;\r\n this.option.value = val;\r\n if (isSelected) {\r\n this.$emit(\"set-default\", this.option);\r\n } else {\r\n this.$emit(\"reorder-option\");\r\n }\r\n },\r\n },\r\n\r\n optionText: {\r\n get: function () {\r\n return this.option.text;\r\n },\r\n set: function (val) {\r\n var isSelected = this.IsSelected;\r\n this.option.text = val;\r\n if (isSelected) {\r\n this.$emit(\"set-default\", this.option);\r\n } else {\r\n this.$emit(\"reorder-option\");\r\n }\r\n },\r\n },\r\n\r\n optionCheck: {\r\n get: function () {\r\n if (IsNullOrWhiteSpace(this.option.value)) {\r\n return this.option.text;\r\n } else {\r\n return this.option.value;\r\n }\r\n },\r\n },\r\n },\r\n };\r\n\r\n var selectOptionsTable = {\r\n name: \"select-options-table\",\r\n components: {\r\n selectOptionsRow: selectOptionsRow,\r\n },\r\n template: \"#select-options-table\",\r\n props: [\"data\"],\r\n data: function () {\r\n return {\r\n partId: elemId,\r\n };\r\n },\r\n methods: {\r\n add: function () {\r\n this.$emit(\"add-option\");\r\n },\r\n onDragEnd: function () {\r\n this.$emit(\"reorder-option\");\r\n },\r\n },\r\n };\r\n\r\n var selectOptionsModal = {\r\n name: \"select-options-modal\",\r\n template: \"#select-options-modal\",\r\n props: [\"data\", \"showModal\", \"validOptions\"],\r\n data: function () {\r\n return {\r\n optionsFormattedList: \"[]\",\r\n partId: elemId,\r\n defaultValue: \"\",\r\n isValid: false,\r\n jsonOptions: [],\r\n };\r\n },\r\n methods: {\r\n closeModal: function (save) {\r\n if (save) {\r\n this.$emit(\"modal-save\", {\r\n options: this.jsonOptions,\r\n defaultValue: this.defaultValue,\r\n });\r\n } else {\r\n this.$emit(\"modal-cancel\");\r\n }\r\n },\r\n showStart: function (params) {\r\n this.$refs.modal.classList.toggle('d-block');\r\n this.$refs.backdrop.classList.toggle('d-block');\r\n },\r\n showEnd: function (params) {\r\n this.$refs.modal.classList.toggle('show');\r\n this.$refs.backdrop.classList.toggle('show');\r\n }\r\n },\r\n watch: {\r\n showModal: function (newval) {\r\n if (newval) {\r\n\r\n this.optionsFormattedList = JSON.stringify(\r\n this.validOptions,\r\n null,\r\n 2\r\n );\r\n this.defaultValue = this.data.defaultValue;\r\n } else {\r\n this.optionsFormattedList = \"[]\";\r\n this.defaultValue = \"\";\r\n }\r\n },\r\n optionsFormattedList: function (newval) {\r\n try {\r\n var parsed = JSON.parse(newval);\r\n if (!!newval && parsed instanceof Array) {\r\n this.jsonOptions = parsed;\r\n this.isValid = true;\r\n } else {\r\n this.isValid = false;\r\n }\r\n } catch (e) {\r\n this.isValid = false;\r\n }\r\n },\r\n },\r\n };\r\n\r\n new Vue({\r\n components: {\r\n selectOptionsTable: selectOptionsTable,\r\n selectOptionsModal: selectOptionsModal,\r\n },\r\n data: function () {\r\n return {\r\n state: {\r\n options: optionsData,\r\n defaultValue: defaultValue,\r\n partId: elemId,\r\n },\r\n debounceTimeout: null,\r\n showModal: false,\r\n };\r\n },\r\n el: \"#\" + elemId,\r\n methods: {\r\n cancelChanges: function () {\r\n this.showModal = false;\r\n },\r\n updateChanges: function (changes) {\r\n this.state.options = changes.options\r\n .filter(function (y) {\r\n return !IsNullOrWhiteSpace(y.text);\r\n })\r\n .map(function (x) {\r\n x.key = keyId++;\r\n return x;\r\n });\r\n this.state.defaultValue = changes.defaultValue;\r\n this.showModal = false;\r\n this.debouncePreview();\r\n },\r\n setDefaultValue: function (opt) {\r\n if (opt == null) {\r\n this.state.defaultValue = \"\";\r\n } else {\r\n if (!IsNullOrWhiteSpace(opt.value)) {\r\n this.state.defaultValue = opt.value;\r\n } else {\r\n this.state.defaultValue = opt.text;\r\n }\r\n }\r\n this.debouncePreview();\r\n },\r\n addOption: function () {\r\n this.state.options.push({\r\n text: \"\",\r\n value: \"\",\r\n key: keyId++,\r\n });\r\n this.debouncePreview();\r\n },\r\n removeOption: function (opt) {\r\n var index = this.state.options.findIndex(function (c) {\r\n return c.key == opt.key;\r\n });\r\n if (index > -1) {\r\n this.state.options.splice(index, 1);\r\n this.debouncePreview();\r\n }\r\n },\r\n reorderOption: function (evt) {\r\n this.debouncePreview();\r\n },\r\n debouncePreview: function (params) {\r\n if (this.debounceTimeout) clearTimeout(this.debounceTimeout);\r\n this.debounceTimeout = setTimeout(() => {\r\n const previewEvent = new Event(\"contentpreview:render\");\r\n document.dispatchEvent(previewEvent);\r\n }, 500);\r\n },\r\n },\r\n computed: {\r\n stringify: function () {\r\n return JSON.stringify(this.validOptions);\r\n },\r\n validOptions: function () {\r\n return this.state.options\r\n .map(function (x) {\r\n return {\r\n text: x.text,\r\n value: x.value,\r\n };\r\n })\r\n .filter(function (x) {\r\n return !IsNullOrWhiteSpace(x.text);\r\n });\r\n },\r\n },\r\n });\r\n\r\n function IsNullOrWhiteSpace(str) {\r\n return str == null || str.match(/^ *$/) !== null;\r\n }\r\n };\r\n\r\n const initilizeElement = (id, options, value) => {\r\n var wrapper = document.getElementById(id);\r\n\r\n if (wrapper != null) {\r\n initilize(id, options, value);\r\n }\r\n }\r\n\r\n const initilizeFieldType = (wrapper) => {\r\n var selectMenus = wrapper.getElementsByClassName('field-type-select-menu');\r\n for (let i = 0; i < selectMenus.length; i++) {\r\n var selectMenu = selectMenus[i];\r\n selectMenu.addEventListener('change', function (e) {\r\n var visibleForInputContainers = wrapper.getElementsByClassName('show-for-input');\r\n\r\n for (let i = 0; i < visibleForInputContainers.length; i++) {\r\n var container = visibleForInputContainers[i];\r\n if (e.target.value == 'reset' || e.target.value == 'submit' || e.target.value == 'hidden') {\r\n container.classList.add('d-none');\r\n } else {\r\n container.classList.remove('d-none');\r\n }\r\n }\r\n });\r\n selectMenu.dispatchEvent(new Event('change'));\r\n }\r\n };\r\n\r\n return {\r\n initilizeElement: initilizeElement,\r\n initilizeFieldType: initilizeFieldType\r\n };\r\n}();\r\n\r\ndocument.addEventListener('DOMContentLoaded', function () {\r\n var wrappers = document.getElementsByName('select-part-properties-wrapper');\r\n\r\n for (let i = 0; i < wrappers.length; i++) {\r\n var wrapper = wrappers[i];\r\n\r\n var fieldWrapper = wrapper.querySelector('.field-options-wrapper');\r\n\r\n if (fieldWrapper != null) {\r\n var initialDefaultValue = fieldWrapper.querySelector('.field-options-wrapper-initial-default-value');\r\n var initialOptions = fieldWrapper.querySelector('.field-options-wrapper-initial-options');\r\n\r\n selectOptionsEditor.initilizeElement(fieldWrapper.Id, initialOptions.innerHTML, initialDefaultValue.value)\r\n }\r\n }\r\n\r\n selectOptionsEditor.initilizeFieldType(document);\r\n});\r\n"],"names":["selectOptionsEditor","initilize","elemId","optionsData","defaultValue","keyId","IsNullOrWhiteSpace","str","match","map","x","key","Vue","components","selectOptionsTable","name","selectOptionsRow","template","props","data","partId","methods","remove","$emit","option","computed","IsSelected","get","value","text","set","val","optionValue","isSelected","optionText","optionCheck","add","onDragEnd","selectOptionsModal","optionsFormattedList","isValid","jsonOptions","closeModal","save","options","showStart","params","$refs","modal","classList","toggle","backdrop","showEnd","watch","showModal","newval","JSON","stringify","validOptions","parsed","parse","Array","e","state","debounceTimeout","el","cancelChanges","updateChanges","changes","filter","y","debouncePreview","setDefaultValue","opt","addOption","push","removeOption","index","findIndex","c","splice","reorderOption","evt","clearTimeout","setTimeout","previewEvent","Event","document","dispatchEvent","initilizeElement","id","getElementById","initilizeFieldType","wrapper","selectMenus","getElementsByClassName","i","length","selectMenu","addEventListener","visibleForInputContainers","container","target","wrappers","getElementsByName","fieldWrapper","querySelector","initialDefaultValue","initialOptions","Id","innerHTML"],"mappings":"AAAAA,oBAAsB,WAElB,IAAMC,EAAY,CAACC,EAAQC,EAAaC,KACpC,IAAIC,EAAQ,EAoQZ,SAASC,EAAmBC,CAAG,EAC3B,OAAOA,AAAO,MAAPA,GAAeA,AAAsB,OAAtBA,EAAIC,KAAK,CAAC,OACpC,CApQAL,EAAcA,EAAYM,GAAG,CAAC,AAACC,IAC3BA,EAAEC,GAAG,CAAGN,EACRA,IACOK,IAkKX,IAAIE,IAAI,CACJC,WAAY,CACRC,mBAxFiB,CACrBC,KAAM,uBACNF,WAAY,CACRG,iBA5Ee,CACnBD,KAAM,qBACNE,SAAU,sBACVC,MAAO,CAAC,SAAU,eAAe,CACjCC,KAAM,WACF,MAAO,CACHC,OAAQlB,CACZ,CACJ,EACAmB,QAAS,CACLC,OAAQ,WACJ,IAAI,CAACC,KAAK,CAAC,gBAAiB,IAAI,CAACC,MAAM,CAC3C,CACJ,EACAC,SAAU,CACNC,WAAY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kBAE/D,IAAK,IAAIC,EAAI,EAAGA,EAAII,EAA0BH,MAAM,CAAED,IAAK,CACvD,IAAIK,EAAYD,CAAyB,CAACJ,EAAE,AACxClC,AAAkB,CAAA,SAAlBA,EAAEwC,MAAM,CAAC1E,KAAK,EAAekC,AAAkB,UAAlBA,EAAEwC,MAAM,CAAC1E,KAAK,EAAgBkC,AAAkB,UAAlBA,EAAEwC,MAAM,CAAC1E,KAAK,CACzEyE,EAAUpD,SAAS,CAACb,GAAG,CAAC,UAExBiE,EAAUpD,SAAS,CAAC3B,MAAM,CAAC,SAEnC,CACJ,GACA4E,EAAWV,aAAa,CAAC,IAAIF,MAAM,UACvC,CACJ,CAKA,CACJ,IAEAC,SAASY,gBAAgB,CAAC,mBAAoB,WAC1C,IAAII,EAAWhB,SAASiB,iBAAiB,CAAC,kCAE1C,IAAK,IAAIR,EAAI,EAAGA,EAAIO,EAASN,MAAM,CAAED,IAAK,CAGtC,IAAIS,EAAeZ,AAFLU,CAAQ,CAACP,EAAE,CAEEU,aAAa,CAAC,0BAEzC,GAAID,AAAgB,MAAhBA,EAAsB,CACtB,IAAIE,EAAsBF,EAAaC,aAAa,CAAC,gDACjDE,EAAiBH,EAAaC,aAAa,CAAC,0CAEhD1G,oBAAoByF,gBAAgB,CAACgB,EAAaI,EAAE,CAAED,EAAeE,SAAS,CAAEH,EAAoB/E,KAAK,CAC7G,CACJ,CAEA5B,oBAAoB4F,kBAAkB,CAACL,SAC3C"}asd \ No newline at end of file diff --git a/src/OrchardCore.Modules/OrchardCore.Html/wwwroot/Scripts/trumbowyg.media.tag.map b/src/OrchardCore.Modules/OrchardCore.Html/wwwroot/Scripts/trumbowyg.media.tag.map index 44409fbca0b..4fe995aa0ce 100644 --- a/src/OrchardCore.Modules/OrchardCore.Html/wwwroot/Scripts/trumbowyg.media.tag.map +++ b/src/OrchardCore.Modules/OrchardCore.Html/wwwroot/Scripts/trumbowyg.media.tag.map @@ -1 +1 @@ -{"version":3,"sources":[""],"sourcesContent":["(function ($) {\r\n 'use strict';\r\n\r\n $.extend(true, $.trumbowyg, {\r\n langs: {\r\n en: {\r\n insertImage: 'Insert Media'\r\n }\r\n },\r\n plugins: {\r\n insertImage: {\r\n init: function (trumbowyg) {\r\n var btnDef = {\r\n fn: function () {\r\n trumbowyg.saveRange();\r\n $(\"#mediaApp\").detach().appendTo('#mediaModalBody .modal-body');\r\n $(\"#mediaApp\").show();\r\n mediaApp.selectedMedias = [];\r\n var modal = new bootstrap.Modal($(\"#mediaModalBody\"));\r\n modal.show();\r\n //disable an reset on click event over the button to avoid issue if press button multiple times or have multiple editor\r\n $('#mediaBodySelectButton').off('click');\r\n $('#mediaBodySelectButton').on('click', function (v) {\r\n trumbowyg.restoreRange();\r\n trumbowyg.range.deleteContents();\r\n \r\n for (i = 0; i < mediaApp.selectedMedias.length; i++) {\r\n var mediaBodyContent = ' [image]' + mediaApp.selectedMedias[i].mediaPath + '[/image]';\r\n var node = document.createTextNode(mediaBodyContent);\r\n trumbowyg.range.insertNode(node);\r\n }\r\n \r\n trumbowyg.syncCode();\r\n trumbowyg.$c.trigger('tbwchange');\r\n //avoid tag to be selected after add it\r\n trumbowyg.$c.focus();\r\n\r\n modal.hide();\r\n return true;\r\n });\r\n }\r\n };\r\n\r\n trumbowyg.addBtnDef('insertImage', btnDef);\r\n }\r\n }\r\n }\r\n });\r\n})(jQuery);\r\n"],"names":["$","extend","trumbowyg","langs","en","insertImage","plugins","init","addBtnDef","fn","saveRange","detach","appendTo","show","mediaApp","selectedMedias","modal","bootstrap","Modal","off","on","v","restoreRange","range","deleteContents","i","length","mediaBodyContent","mediaPath","node","document","createTextNode","insertNode","syncCode","$c","trigger","focus","hide","jQuery"],"mappings":"CAAA,AAAC,SAAUA,CAAC,EACR,aAEAA,EAAEC,MAAM,CAAC,CAAA,EAAMD,EAAEE,SAAS,CAAE,CACxBC,MAAO,CACHC,GAAI,CACAC,YAAa,cACjB,CACJ,EACAC,QAAS,CACLD,YAAa,CACTE,KAAM,SAAUL,CAAS,EAgCrBA,EAAUM,SAAS,CAAC,cA/BP,CACTC,GAAI,WACAP,EAAUQ,SAAS,GACnBV,EAAE,aAAaW,MAAM,GAAGC,QAAQ,CAAC,+BACjCZ,EAAE,aAAaa,IAAI,GACnBC,SAASC,cAAc,CAAG,EAAE,CAC5B,IAAIC,EAAQ,IAAIC,UAAUC,KAAK,CAAClB,EAAE,oBAClCgB,EAAMH,IAAI,GAEVb,EAAE,0BAA0BmB,GAAG,CAAC,SAChCnB,EAAE,0BAA0BoB,EAAE,CAAC,QAAS,SAAUC,CAAC,EAI/C,IAHAnB,EAAUoB,YAAY,GACtBpB,EAAUqB,KAAK,CAACC,cAAc,GAEzBC,EAAI,EAAGA,EAAIX,SAASC,cAAc,CAACW,MAAM,CAAED,IAAK,CACjD,IAAIE,EAAmB,WAAab,SAASC,cAAc,CAACU,EAAE,CAACG,SAAS,CAAG,WACvEC,EAAOC,SAASC,cAAc,CAACJ,GACnCzB,EAAUqB,KAAK,CAACS,UAAU,CAACH,EAC/B,CAQA,OANA3B,EAAU+B,QAAQ,GAClB/B,EAAUgC,EAAE,CAACC,OAAO,CAAC,aAErBjC,EAAUgC,EAAE,CAACE,KAAK,GAElBpB,EAAMqB,IAAI,GACH,CAAA,CACX,EACJ,CACJ,EAGJ,CACJ,CACJ,CACJ,EACJ,EAAGC"} +{"version":3,"sources":[""],"sourcesContent":["(function ($) {\r\n 'use strict';\r\n\r\n $.extend(true, $.trumbowyg, {\r\n langs: {\r\n en: {\r\n insertImage: 'Insert Media'\r\n }\r\n },\r\n plugins: {\r\n insertImage: {\r\n init: function (trumbowyg) {\r\n var btnDef = {\r\n fn: function () {\r\n trumbowyg.saveRange();\r\n $(\"#mediaApp\").detach().appendTo('#mediaModalBody .modal-body');\r\n $(\"#mediaApp\").show();\r\n mediaApp.selectedMedias = [];\r\n var modal = new bootstrap.Modal($(\"#mediaModalBody\"));\r\n modal.show();\r\n //disable an reset on click event over the button to avoid issue if press button multiple times or have multiple editor\r\n $('#mediaBodySelectButton').off('click');\r\n $('#mediaBodySelectButton').on('click', function (v) {\r\n trumbowyg.restoreRange();\r\n trumbowyg.range.deleteContents();\r\n \r\n for (i = 0; i < mediaApp.selectedMedias.length; i++) {\r\n var mediaBodyContent = ' [image]' + mediaApp.selectedMedias[i].mediaPath + '[/image]';\r\n var node = document.createTextNode(mediaBodyContent);\r\n trumbowyg.range.insertNode(node);\r\n }\r\n \r\n trumbowyg.syncCode();\r\n trumbowyg.$c.trigger('tbwchange');\r\n //avoid tag to be selected after add it\r\n trumbowyg.$c.focus();\r\n\r\n modal.hide();\r\n return true;\r\n });\r\n }\r\n };\r\n\r\n trumbowyg.addBtnDef('insertImage', btnDef);\r\n }\r\n }\r\n }\r\n });\r\n})(jQuery);\r\n"],"names":["$","extend","trumbowyg","langs","en","insertImage","plugins","init","addBtnDef","fn","saveRange","detach","appendTo","show","mediaApp","selectedMedias","modal","bootstrap","Modal","off","on","v","restoreRange","range","deleteContents","i","length","mediaBodyContent","mediaPath","node","document","createTextNode","insertNode","syncCode","$c","trigger","focus","hide","jQuery"],"mappings":"CAAA,AAAC,SAAUA,CAAC,EACR,aAEAA,EAAEC,MAAM,CAAC,CAAA,EAAMD,EAAEE,SAAS,CAAE,CACxBC,MAAO,CACHC,GAAI,CACAC,YAAa,cACjB,CACJ,EACAC,QAAS,CACLD,YAAa,CACTE,KAAM,SAAUL,CAAS,EAgCrBA,EAAUM,SAAS,CAAC,cA/BP,CACTC,GAAI,WACAP,EAAUQ,SAAS,GACnBV,EAAE,aAAaW,MAAM,GAAGC,QAAQ,CAAC,+BACjCZ,EAAE,aAAaa,IAAI,GACnBC,SAASC,cAAc,CAAG,EAAE,CAC5B,IAAIC,EAAQ,IAAIC,UAAUC,KAAK,CAAClB,EAAE,oBAClCgB,EAAMH,IAAI,GAEVb,EAAE,0BAA0BmB,GAAG,CAAC,SAChCnB,EAAE,0BAA0BoB,EAAE,CAAC,QAAS,SAAUC,CAAC,EAI/C,IAHAnB,EAAUoB,YAAY,GACtBpB,EAAUqB,KAAK,CAACC,cAAc,GAEzBC,EAAI,EAAGA,EAAIX,SAASC,cAAc,CAACW,MAAM,CAAED,IAAK,CACjD,IAAIE,EAAmB,WAAab,SAASC,cAAc,CAACU,EAAE,CAACG,SAAS,CAAG,WACvEC,EAAOC,SAASC,cAAc,CAACJ,GACnCzB,EAAUqB,KAAK,CAACS,UAAU,CAACH,EAC/B,CAQA,OANA3B,EAAU+B,QAAQ,GAClB/B,EAAUgC,EAAE,CAACC,OAAO,CAAC,aAErBjC,EAAUgC,EAAE,CAACE,KAAK,GAElBpB,EAAMqB,IAAI,GACH,CAAA,CACX,EACJ,CACJ,EAGJ,CACJ,CACJ,CACJ,EACJ,EAAGC"}asd \ No newline at end of file diff --git a/src/OrchardCore.Modules/OrchardCore.Html/wwwroot/Scripts/trumbowyg.media.url.map b/src/OrchardCore.Modules/OrchardCore.Html/wwwroot/Scripts/trumbowyg.media.url.map index bd59a98c258..e3bc54cf68e 100644 --- a/src/OrchardCore.Modules/OrchardCore.Html/wwwroot/Scripts/trumbowyg.media.url.map +++ b/src/OrchardCore.Modules/OrchardCore.Html/wwwroot/Scripts/trumbowyg.media.url.map @@ -1 +1 @@ -{"version":3,"sources":[""],"sourcesContent":["(function ($) {\r\n 'use strict';\r\n\r\n $.extend(true, $.trumbowyg, {\r\n langs: {\r\n en: {\r\n insertImage: 'Insert Media'\r\n }\r\n },\r\n plugins: {\r\n insertImage: {\r\n init: function (trumbowyg) {\r\n var btnDef = {\r\n fn: function () {\r\n trumbowyg.saveRange();\r\n $(\"#mediaApp\").detach().appendTo('#mediaModalBody .modal-body');\r\n $(\"#mediaApp\").show();\r\n mediaApp.selectedMedias = [];\r\n var modal = new bootstrap.Modal($(\"#mediaModalBody\"));\r\n modal.show();\r\n //disable an reset on click event over the button to avoid issue if press button multiple times or have multiple editor\r\n $('#mediaBodySelectButton').off('click');\r\n $('#mediaBodySelectButton').on('click', function (v) {\r\n //avoid multiple image insert\r\n trumbowyg.restoreRange();\r\n trumbowyg.range.deleteContents();\r\n \r\n $(window).trigger('scroll');\r\n\r\n for (i = 0; i < mediaApp.selectedMedias.length; i++) {\r\n var img = document.createElement(\"img\");\r\n img.src = mediaApp.selectedMedias[i].url;\r\n img.alt = mediaApp.selectedMedias[i].name;\r\n trumbowyg.range.insertNode(img);\r\n }\r\n\r\n trumbowyg.syncCode();\r\n trumbowyg.$c.trigger('tbwchange');\r\n //avoid image to be selected after add it\r\n trumbowyg.$c.focus();\r\n\r\n modal.hide();\r\n return true;\r\n });\r\n }\r\n };\r\n\r\n trumbowyg.addBtnDef('insertImage', btnDef);\r\n }\r\n }\r\n }\r\n });\r\n})(jQuery);\r\n"],"names":["$","extend","trumbowyg","langs","en","insertImage","plugins","init","addBtnDef","fn","saveRange","detach","appendTo","show","mediaApp","selectedMedias","modal","bootstrap","Modal","off","on","v","restoreRange","range","deleteContents","window","trigger","i","length","img","document","createElement","src","url","alt","name","insertNode","syncCode","$c","focus","hide","jQuery"],"mappings":"CAAA,AAAC,SAAUA,CAAC,EACR,aAEAA,EAAEC,MAAM,CAAC,CAAA,EAAMD,EAAEE,SAAS,CAAE,CACxBC,MAAO,CACHC,GAAI,CACAC,YAAa,cACjB,CACJ,EACAC,QAAS,CACLD,YAAa,CACTE,KAAM,SAAUL,CAAS,EAoCrBA,EAAUM,SAAS,CAAC,cAnCP,CACTC,GAAI,WACAP,EAAUQ,SAAS,GACnBV,EAAE,aAAaW,MAAM,GAAGC,QAAQ,CAAC,+BACjCZ,EAAE,aAAaa,IAAI,GACnBC,SAASC,cAAc,CAAG,EAAE,CAC5B,IAAIC,EAAQ,IAAIC,UAAUC,KAAK,CAAClB,EAAE,oBAClCgB,EAAMH,IAAI,GAEVb,EAAE,0BAA0BmB,GAAG,CAAC,SAChCnB,EAAE,0BAA0BoB,EAAE,CAAC,QAAS,SAAUC,CAAC,EAO/C,IALAnB,EAAUoB,YAAY,GACtBpB,EAAUqB,KAAK,CAACC,cAAc,GAE9BxB,EAAEyB,QAAQC,OAAO,CAAC,UAEbC,EAAI,EAAGA,EAAIb,SAASC,cAAc,CAACa,MAAM,CAAED,IAAK,CACjD,IAAIE,EAAMC,SAASC,aAAa,CAAC,MACjCF,CAAAA,EAAIG,GAAG,CAAGlB,SAASC,cAAc,CAACY,EAAE,CAACM,GAAG,CACxCJ,EAAIK,GAAG,CAAGpB,SAASC,cAAc,CAACY,EAAE,CAACQ,IAAI,CACzCjC,EAAUqB,KAAK,CAACa,UAAU,CAACP,EAC/B,CAQA,OANA3B,EAAUmC,QAAQ,GAClBnC,EAAUoC,EAAE,CAACZ,OAAO,CAAC,aAErBxB,EAAUoC,EAAE,CAACC,KAAK,GAElBvB,EAAMwB,IAAI,GACH,CAAA,CACX,EACJ,CACJ,EAGJ,CACJ,CACJ,CACJ,EACJ,EAAGC"} +{"version":3,"sources":[""],"sourcesContent":["(function ($) {\r\n 'use strict';\r\n\r\n $.extend(true, $.trumbowyg, {\r\n langs: {\r\n en: {\r\n insertImage: 'Insert Media'\r\n }\r\n },\r\n plugins: {\r\n insertImage: {\r\n init: function (trumbowyg) {\r\n var btnDef = {\r\n fn: function () {\r\n trumbowyg.saveRange();\r\n $(\"#mediaApp\").detach().appendTo('#mediaModalBody .modal-body');\r\n $(\"#mediaApp\").show();\r\n mediaApp.selectedMedias = [];\r\n var modal = new bootstrap.Modal($(\"#mediaModalBody\"));\r\n modal.show();\r\n //disable an reset on click event over the button to avoid issue if press button multiple times or have multiple editor\r\n $('#mediaBodySelectButton').off('click');\r\n $('#mediaBodySelectButton').on('click', function (v) {\r\n //avoid multiple image insert\r\n trumbowyg.restoreRange();\r\n trumbowyg.range.deleteContents();\r\n \r\n $(window).trigger('scroll');\r\n\r\n for (i = 0; i < mediaApp.selectedMedias.length; i++) {\r\n var img = document.createElement(\"img\");\r\n img.src = mediaApp.selectedMedias[i].url;\r\n img.alt = mediaApp.selectedMedias[i].name;\r\n trumbowyg.range.insertNode(img);\r\n }\r\n\r\n trumbowyg.syncCode();\r\n trumbowyg.$c.trigger('tbwchange');\r\n //avoid image to be selected after add it\r\n trumbowyg.$c.focus();\r\n\r\n modal.hide();\r\n return true;\r\n });\r\n }\r\n };\r\n\r\n trumbowyg.addBtnDef('insertImage', btnDef);\r\n }\r\n }\r\n }\r\n });\r\n})(jQuery);\r\n"],"names":["$","extend","trumbowyg","langs","en","insertImage","plugins","init","addBtnDef","fn","saveRange","detach","appendTo","show","mediaApp","selectedMedias","modal","bootstrap","Modal","off","on","v","restoreRange","range","deleteContents","window","trigger","i","length","img","document","createElement","src","url","alt","name","insertNode","syncCode","$c","focus","hide","jQuery"],"mappings":"CAAA,AAAC,SAAUA,CAAC,EACR,aAEAA,EAAEC,MAAM,CAAC,CAAA,EAAMD,EAAEE,SAAS,CAAE,CACxBC,MAAO,CACHC,GAAI,CACAC,YAAa,cACjB,CACJ,EACAC,QAAS,CACLD,YAAa,CACTE,KAAM,SAAUL,CAAS,EAoCrBA,EAAUM,SAAS,CAAC,cAnCP,CACTC,GAAI,WACAP,EAAUQ,SAAS,GACnBV,EAAE,aAAaW,MAAM,GAAGC,QAAQ,CAAC,+BACjCZ,EAAE,aAAaa,IAAI,GACnBC,SAASC,cAAc,CAAG,EAAE,CAC5B,IAAIC,EAAQ,IAAIC,UAAUC,KAAK,CAAClB,EAAE,oBAClCgB,EAAMH,IAAI,GAEVb,EAAE,0BAA0BmB,GAAG,CAAC,SAChCnB,EAAE,0BAA0BoB,EAAE,CAAC,QAAS,SAAUC,CAAC,EAO/C,IALAnB,EAAUoB,YAAY,GACtBpB,EAAUqB,KAAK,CAACC,cAAc,GAE9BxB,EAAEyB,QAAQC,OAAO,CAAC,UAEbC,EAAI,EAAGA,EAAIb,SAASC,cAAc,CAACa,MAAM,CAAED,IAAK,CACjD,IAAIE,EAAMC,SAASC,aAAa,CAAC,MACjCF,CAAAA,EAAIG,GAAG,CAAGlB,SAASC,cAAc,CAACY,EAAE,CAACM,GAAG,CACxCJ,EAAIK,GAAG,CAAGpB,SAASC,cAAc,CAACY,EAAE,CAACQ,IAAI,CACzCjC,EAAUqB,KAAK,CAACa,UAAU,CAACP,EAC/B,CAQA,OANA3B,EAAUmC,QAAQ,GAClBnC,EAAUoC,EAAE,CAACZ,OAAO,CAAC,aAErBxB,EAAUoC,EAAE,CAACC,KAAK,GAElBvB,EAAMwB,IAAI,GACH,CAAA,CACX,EACJ,CACJ,EAGJ,CACJ,CACJ,CACJ,EACJ,EAAGC"}asd \ No newline at end of file diff --git a/src/OrchardCore.Modules/OrchardCore.Lists/wwwroot/Scripts/ci-list-ordering.map b/src/OrchardCore.Modules/OrchardCore.Lists/wwwroot/Scripts/ci-list-ordering.map index 51162bcade5..6f40170f80a 100644 --- a/src/OrchardCore.Modules/OrchardCore.Lists/wwwroot/Scripts/ci-list-ordering.map +++ b/src/OrchardCore.Modules/OrchardCore.Lists/wwwroot/Scripts/ci-list-ordering.map @@ -1 +1 @@ -{"version":3,"sources":[""],"sourcesContent":["function updateContentItemOrders(oldIndex, newIndex) {\r\n var url = $('#ordering-url').data(\"url\");\r\n var containerId = $('#container-id').data(\"id\");\r\n var before = $('#pager-before').data(\"before\");\r\n var after = $('#pager-after').data(\"after\");\r\n var pageSize = $('#pager-pagesize').data(\"pagesize\");\r\n $.ajax({\r\n url: url,\r\n method: 'POST',\r\n data: {\r\n __RequestVerificationToken: $(\"input[name='__RequestVerificationToken']\").val(),\r\n containerId: containerId,\r\n oldIndex: oldIndex,\r\n newIndex: newIndex,\r\n pagerSlimParameters: {\r\n before: before,\r\n after: after\r\n },\r\n pageSize: pageSize\r\n },\r\n error: function (error) {\r\n alert($('#update-order-error-message').data(\"message\"));\r\n }\r\n });\r\n}\r\n\r\n$(function () {\r\n var sortable = document.getElementById(\"ci-sortable\");\r\n\r\n var sortable = Sortable.create(sortable, {\r\n handle: \".ui-sortable-handle\",\r\n onSort: function (evt) {\r\n var oldIndex = evt.oldIndex;\r\n var newIndex = evt.newIndex;\r\n updateContentItemOrders(oldIndex, newIndex);\r\n }\r\n });\r\n});\r\n"],"names":["updateContentItemOrders","oldIndex","newIndex","url","$","data","containerId","before","after","pageSize","ajax","method","__RequestVerificationToken","val","pagerSlimParameters","error","alert","sortable","document","getElementById","Sortable","create","handle","onSort","evt"],"mappings":"AAAA,SAASA,wBAAwBC,CAAQ,CAAEC,CAAQ,EAC/C,IAAIC,EAAMC,EAAE,iBAAiBC,IAAI,CAAC,OAC9BC,EAAcF,EAAE,iBAAiBC,IAAI,CAAC,MACtCE,EAASH,EAAE,iBAAiBC,IAAI,CAAC,UACjCG,EAAQJ,EAAE,gBAAgBC,IAAI,CAAC,SAC/BI,EAAWL,EAAE,mBAAmBC,IAAI,CAAC,YACzCD,EAAEM,IAAI,CAAC,CACHP,IAAKA,EACLQ,OAAQ,OACRN,KAAM,CACFO,2BAA4BR,EAAE,4CAA4CS,GAAG,GAC7EP,YAAaA,EACbL,SAAUA,EACVC,SAAUA,EACVY,oBAAqB,CACjBP,OAAQA,EACRC,MAAOA,CACX,EACAC,SAAUA,CACd,EACAM,MAAO,SAAUA,CAAK,EAClBC,MAAMZ,EAAE,+BAA+BC,IAAI,CAAC,WAChD,CACJ,EACJ,CAEAD,EAAE,WACE,IAAIa,EAAWC,SAASC,cAAc,CAAC,eAEnCF,EAAWG,SAASC,MAAM,CAACJ,EAAU,CACrCK,OAAQ,sBACRC,OAAQ,SAAUC,CAAG,EAGjBxB,wBAFewB,EAAIvB,QAAQ,CACZuB,EAAItB,QAAQ,CAE/B,CACJ,EACJ"} +{"version":3,"sources":[""],"sourcesContent":["function updateContentItemOrders(oldIndex, newIndex) {\r\n var url = $('#ordering-url').data(\"url\");\r\n var containerId = $('#container-id').data(\"id\");\r\n var before = $('#pager-before').data(\"before\");\r\n var after = $('#pager-after').data(\"after\");\r\n var pageSize = $('#pager-pagesize').data(\"pagesize\");\r\n $.ajax({\r\n url: url,\r\n method: 'POST',\r\n data: {\r\n __RequestVerificationToken: $(\"input[name='__RequestVerificationToken']\").val(),\r\n containerId: containerId,\r\n oldIndex: oldIndex,\r\n newIndex: newIndex,\r\n pagerSlimParameters: {\r\n before: before,\r\n after: after\r\n },\r\n pageSize: pageSize\r\n },\r\n error: function (error) {\r\n alert($('#update-order-error-message').data(\"message\"));\r\n }\r\n });\r\n}\r\n\r\n$(function () {\r\n var sortable = document.getElementById(\"ci-sortable\");\r\n\r\n var sortable = Sortable.create(sortable, {\r\n handle: \".ui-sortable-handle\",\r\n onSort: function (evt) {\r\n var oldIndex = evt.oldIndex;\r\n var newIndex = evt.newIndex;\r\n updateContentItemOrders(oldIndex, newIndex);\r\n }\r\n });\r\n});\r\n"],"names":["updateContentItemOrders","oldIndex","newIndex","url","$","data","containerId","before","after","pageSize","ajax","method","__RequestVerificationToken","val","pagerSlimParameters","error","alert","sortable","document","getElementById","Sortable","create","handle","onSort","evt"],"mappings":"AAAA,SAASA,wBAAwBC,CAAQ,CAAEC,CAAQ,EAC/C,IAAIC,EAAMC,EAAE,iBAAiBC,IAAI,CAAC,OAC9BC,EAAcF,EAAE,iBAAiBC,IAAI,CAAC,MACtCE,EAASH,EAAE,iBAAiBC,IAAI,CAAC,UACjCG,EAAQJ,EAAE,gBAAgBC,IAAI,CAAC,SAC/BI,EAAWL,EAAE,mBAAmBC,IAAI,CAAC,YACzCD,EAAEM,IAAI,CAAC,CACHP,IAAKA,EACLQ,OAAQ,OACRN,KAAM,CACFO,2BAA4BR,EAAE,4CAA4CS,GAAG,GAC7EP,YAAaA,EACbL,SAAUA,EACVC,SAAUA,EACVY,oBAAqB,CACjBP,OAAQA,EACRC,MAAOA,CACX,EACAC,SAAUA,CACd,EACAM,MAAO,SAAUA,CAAK,EAClBC,MAAMZ,EAAE,+BAA+BC,IAAI,CAAC,WAChD,CACJ,EACJ,CAEAD,EAAE,WACE,IAAIa,EAAWC,SAASC,cAAc,CAAC,eAEnCF,EAAWG,SAASC,MAAM,CAACJ,EAAU,CACrCK,OAAQ,sBACRC,OAAQ,SAAUC,CAAG,EAGjBxB,wBAFewB,EAAIvB,QAAQ,CACZuB,EAAItB,QAAQ,CAE/B,CACJ,EACJ"}asd \ No newline at end of file diff --git a/src/OrchardCore.Modules/OrchardCore.Localization/wwwroot/Scripts/optionsEditor.map b/src/OrchardCore.Modules/OrchardCore.Localization/wwwroot/Scripts/optionsEditor.map index a505d583025..efd7ed8e7bf 100644 --- a/src/OrchardCore.Modules/OrchardCore.Localization/wwwroot/Scripts/optionsEditor.map +++ b/src/OrchardCore.Modules/OrchardCore.Localization/wwwroot/Scripts/optionsEditor.map @@ -1 +1 @@ -{"version":3,"sources":[""],"sourcesContent":["function initializeOptionsEditor(elem, data, defaultValue, selectedValue, list) {\r\n\r\n var optionsTable = {\r\n name: 'options-table',\r\n template: '#options-table',\r\n props: ['data', 'defaultValue', 'selectedValue', 'list'],\r\n data: function () {\r\n return {\r\n defaultCulture: this.defaultValue,\r\n selectedCulture: typeof this.selectedValue != 'undefined' ? this.selectedValue : selectedValue,\r\n allCultures: this.list\r\n }\r\n },\r\n methods: {\r\n add: function () {\r\n if (!this.data.includes(this.selectedCulture)) {\r\n this.data.push(this.selectedCulture);\r\n\r\n var culture = this.selectedCulture;\r\n var selectedCulture = this.allCultures.filter(function (ele) {\r\n return ele.Name == culture;\r\n });\r\n\r\n if (selectedCulture.length > 0) {\r\n selectedCulture[0].Supported = true;\r\n }\r\n\r\n var allUnsupportedCultures = this.allCultures.filter(function (ele) {\r\n return ele.Supported == false\r\n });\r\n\r\n if (allUnsupportedCultures.length > 0) {\r\n this.selectedCulture = allUnsupportedCultures[0].Name;\r\n }\r\n }\r\n },\r\n remove: function (index) {\r\n\r\n var selectedCulture = this.data[index];\r\n cultureRemoved = this.list.filter(function (ele) {\r\n return ele.Name == selectedCulture;\r\n });\r\n\r\n if (cultureRemoved.length > 0) {\r\n cultureRemoved[0].Supported = false;\r\n }\r\n\r\n this.data.splice(index, 1);\r\n\r\n var allUnsupportedCultures = this.allCultures.filter(function (ele) {\r\n return ele.Supported == false\r\n });\r\n\r\n if (allUnsupportedCultures.length > 0) {\r\n this.selectedCulture = allUnsupportedCultures[0].Name;\r\n }\r\n },\r\n getSupportedCultures: function () {\r\n return JSON.stringify(this.data);\r\n },\r\n getDefaultCulture: function () {\r\n var result = defaultValue;\r\n if (this.defaultCulture != null) {\r\n result = this.defaultCulture;\r\n }\r\n return result;\r\n },\r\n getAllCultures: function () {\r\n return this.AllCultures;\r\n }\r\n }\r\n };\r\n\r\n new Vue({\r\n components: {\r\n optionsTable: optionsTable\r\n },\r\n data: {\r\n allCultures: list,\r\n supportedCultures: data,\r\n defaultCulture: defaultValue,\r\n selectedCulture: selectedValue\r\n },\r\n el: elem\r\n });\r\n\r\n}\r\n"],"names":["initializeOptionsEditor","elem","data","defaultValue","selectedValue","list","Vue","components","optionsTable","name","template","props","defaultCulture","selectedCulture","allCultures","methods","add","includes","push","culture","filter","ele","Name","length","Supported","allUnsupportedCultures","remove","index","cultureRemoved","splice","getSupportedCultures","JSON","stringify","getDefaultCulture","result","getAllCultures","AllCultures","supportedCultures","el"],"mappings":"AAAA,SAASA,wBAAwBC,CAAI,CAAEC,CAAI,CAAEC,CAAY,CAAEC,CAAa,CAAEC,CAAI,EAyE1E,IAAIC,IAAI,CACJC,WAAY,CACRC,aAzEW,CACfC,KAAM,gBACNC,SAAU,iBACVC,MAAO,CAAC,OAAQ,eAAgB,gBAAiB,OAAO,CACxDT,KAAM,WACF,MAAO,CACHU,eAAgB,IAAI,CAACT,YAAY,CACjCU,gBAAiB,AAA6B,KAAA,IAAtB,IAAI,CAACT,aAAa,CAAkB,IAAI,CAACA,aAAa,CAAGA,EACjFU,YAAa,IAAI,CAACT,IAAI,AAC1B,CACJ,EACAU,QAAS,CACLC,IAAK,WACD,GAAI,CAAC,IAAI,CAACd,IAAI,CAACe,QAAQ,CAAC,IAAI,CAACJ,eAAe,EAAG,CAC3C,IAAI,CAACX,IAAI,CAACgB,IAAI,CAAC,IAAI,CAACL,eAAe,EAEnC,IAAIM,EAAU,I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ACtB,cAAc,AAAD,EAExBsB,CACX,EACAC,eAAgB,WACZ,OAAO,IAAI,CAACC,WAAW,AAC3B,CACJ,CACJ,CAKI,EACAlC,KAAM,CACFY,YAAaT,EACbgC,kBAAmBnC,EACnBU,eAAgBT,EAChBU,gBAAiBT,CACrB,EACAkC,GAAIrC,CACR,EAEJ"} +{"version":3,"sources":[""],"sourcesContent":["function initializeOptionsEditor(elem, data, defaultValue, selectedValue, list) {\r\n\r\n var optionsTable = {\r\n name: 'options-table',\r\n template: '#options-table',\r\n props: ['data', 'defaultValue', 'selectedValue', 'list'],\r\n data: function () {\r\n return {\r\n defaultCulture: this.defaultValue,\r\n selectedCulture: typeof this.selectedValue != 'undefined' ? this.selectedValue : selectedValue,\r\n allCultures: this.list\r\n }\r\n },\r\n methods: {\r\n add: function () {\r\n if (!this.data.includes(this.selectedCulture)) {\r\n this.data.push(this.selectedCulture);\r\n\r\n var culture = this.selectedCulture;\r\n var selectedCulture = this.allCultures.filter(function (ele) {\r\n return ele.Name == culture;\r\n });\r\n\r\n if (selectedCulture.length > 0) {\r\n selectedCulture[0].Supported = true;\r\n }\r\n\r\n var allUnsupportedCultures = this.allCultures.filter(function (ele) {\r\n return ele.Supported == false\r\n });\r\n\r\n if (allUnsupportedCultures.length > 0) {\r\n this.selectedCulture = allUnsupportedCultures[0].Name;\r\n }\r\n }\r\n },\r\n remove: function (index) {\r\n\r\n var selectedCulture = this.data[index];\r\n cultureRemoved = this.list.filter(function (ele) {\r\n return ele.Name == selectedCulture;\r\n });\r\n\r\n if (cultureRemoved.length > 0) {\r\n cultureRemoved[0].Supported = false;\r\n }\r\n\r\n this.data.splice(index, 1);\r\n\r\n var allUnsupportedCultures = this.allCultures.filter(function (ele) {\r\n return ele.Supported == false\r\n });\r\n\r\n if (allUnsupportedCultures.length > 0) {\r\n this.selectedCulture = allUnsupportedCultures[0].Name;\r\n }\r\n },\r\n getSupportedCultures: function () {\r\n return JSON.stringify(this.data);\r\n },\r\n getDefaultCulture: function () {\r\n var result = defaultValue;\r\n if (this.defaultCulture != null) {\r\n result = this.defaultCulture;\r\n }\r\n return result;\r\n },\r\n getAllCultures: function () {\r\n return this.AllCultures;\r\n }\r\n }\r\n };\r\n\r\n new Vue({\r\n components: {\r\n optionsTable: optionsTable\r\n },\r\n data: {\r\n allCultures: list,\r\n supportedCultures: data,\r\n defaultCulture: defaultValue,\r\n selectedCulture: selectedValue\r\n },\r\n el: elem\r\n });\r\n\r\n}\r\n"],"names":["initializeOptionsEditor","elem","data","defaultValue","selectedValue","list","Vue","components","optionsTable","name","template","props","defaultCulture","selectedCulture","allCultures","methods","add","includes","push","culture","filter","ele","Name","length","Supported","allUnsupportedCultures","remove","index","cultureRemoved","splice","getSupportedCultures","JSON","stringify","getDefaultCulture","result","getAllCultures","AllCultures","supportedCultures","el"],"mappings":"AAAA,SAASA,wBAAwBC,CAAI,CAAEC,CAAI,CAAEC,CAAY,CAAEC,CAAa,CAAEC,CAAI,EAyE1E,IAAIC,IAAI,CACJC,WAAY,CACRC,aAzEW,CACfC,KAAM,gBACNC,SAAU,iBACVC,MAAO,CAAC,OAAQ,eAAgB,gBAAiB,OAAO,CACxDT,KAAM,WACF,MAAO,CACHU,eAAgB,IAAI,CAACT,YAAY,CACjCU,gBAAiB,AAA6B,KAAA,IAAtB,IAAI,CAACT,aAAa,CAAkB,IAAI,CAACA,aAAa,CAAGA,EACjFU,YAAa,IAAI,CAACT,IAAI,AAC1B,CACJ,EACAU,QAAS,CACLC,IAAK,WACD,GAAI,CAAC,IAAI,CAACd,IAAI,CAACe,QAAQ,CAAC,IAAI,CAACJ,eAAe,EAAG,CAC3C,IAAI,CAACX,IAAI,CAACgB,IAAI,CAAC,IAAI,CAACL,eAAe,EAEnC,IAAIM,EAAU,IAAI,CAACN,eAAe,CAC9BA,EAAkB,IAAI,CAACC,WAAW,CAACM,MAAM,CAAC,SAAUC,CAAG,EACvD,OAAOA,EAAIC,IAAI,EAAIH,CACvB,EAEIN,CAAAA,EAAgB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,EACnBU,eAAgBT,EAChBU,gBAAiBT,CACrB,EACAkC,GAAIrC,CACR,EAEJ"}asd \ No newline at end of file diff --git a/src/OrchardCore.Modules/OrchardCore.Menu/wwwroot/Scripts/activate-links.map b/src/OrchardCore.Modules/OrchardCore.Menu/wwwroot/Scripts/activate-links.map index da1d7a41c34..7c51e69e012 100644 --- a/src/OrchardCore.Modules/OrchardCore.Menu/wwwroot/Scripts/activate-links.map +++ b/src/OrchardCore.Modules/OrchardCore.Menu/wwwroot/Scripts/activate-links.map @@ -1 +1 @@ -{"version":3,"sources":[""],"sourcesContent":["// This script is used to add a class on the active link of a menu.\r\n// Because Menus are often cached, the class needs to be set dynamically using JavaScript.\r\n\r\n(function ($) {\r\n\r\n $.fn.activateLinks = function (options, cb) {\r\n\r\n var settings = $.extend({\r\n // class to add to the selector\r\n class: \"active\",\r\n // custom selector based on the parent of the link\r\n selector: null,\r\n // how many segments to remove from url in order to find active link in menu\r\n traverse: 0\r\n }, options);\r\n\r\n var segments = window.location.href.replace(window.location.protocol + '//' + window.location.host, '').split(\"/\");\r\n var level = segments.length;\r\n var minLevel = settings.traverse <= 0 ? level : level >= settings.traverse ? level - settings.traverse : level;\r\n\r\n while (level >= minLevel) {\r\n var currentUrl = segments.join('/');\r\n var items = $(this).find('a[href=\"' + currentUrl + '\"]').parent();\r\n\r\n if (settings.selector) {\r\n items = items.find(settings.selector);\r\n }\r\n\r\n if (items.length > 0) {\r\n items.addClass(settings.class);\r\n if (cb) {\r\n cb(items);\r\n }\r\n return this;\r\n }\r\n\r\n level -= 1;\r\n segments = segments.slice(0, level);\r\n }\r\n return this;\r\n };\r\n}(jQuery));\r\n"],"names":["$","fn","activateLinks","options","cb","settings","extend","class","selector","traverse","segments","window","location","href","replace","protocol","host","split","level","length","minLevel","currentUrl","join","items","find","parent","addClass","slice","jQuery"],"mappings":"CAGC,SAAUA,CAAC,EAERA,EAAEC,EAAE,CAACC,aAAa,CAAG,SAAUC,CAAO,CAAEC,CAAE,EAetC,IAbA,IAAIC,EAAWL,EAAEM,MAAM,CAAC,CAEpBC,MAAO,SAEPC,SAAU,KAEVC,SAAU,CACd,EAAGN,GAECO,EAAWC,OAAOC,QAAQ,CAACC,IAAI,CAACC,OAAO,CAACH,OAAOC,QAAQ,CAACG,QAAQ,CAAG,KAAOJ,OAAOC,QAAQ,CAACI,IAAI,CAAE,IAAIC,KAAK,CAAC,KAC1GC,EAAQR,EAASS,MAAM,CACvBC,EAAWf,EAASI,QAAQ,EAAI,EAAIS,EAAQA,GAASb,EAASI,QAAQ,CAAGS,EAAQb,EAASI,QAAQ,CAAGS,EAElGA,GAASE,GAAU,CACtB,IAAIC,EAAaX,EAASY,IAAI,CAAC,KAC3BC,EAAQvB,EAAE,IAAI,EAAEwB,IAAI,CAAC,WAAaH,EAAa,MAAMI,MAAM,GAM/D,GAJIpB,EAASG,QAAQ,EACjBe,CAAAA,EAAQA,EAAMC,IAAI,CAACnB,EAASG,QAAQ,CAAA,EAGpCe,EAAMJ,MAAM,CAAG,EAAG,CAClBI,EAAMG,QAAQ,CAACrB,EAASE,KAAK,EACzBH,GACAA,EAAGmB,GAEP,KACJ,CAEAL,GAAS,EACTR,EAAWA,EAASiB,KAAK,CAAC,EAAGT,EACjC,CACA,OAAO,IAAI,AACf,CACJ,EAAEU"} +{"version":3,"sources":[""],"sourcesContent":["// This script is used to add a class on the active link of a menu.\r\n// Because Menus are often cached, the class needs to be set dynamically using JavaScript.\r\n\r\n(function ($) {\r\n\r\n $.fn.activateLinks = function (options, cb) {\r\n\r\n var settings = $.extend({\r\n // class to add to the selector\r\n class: \"active\",\r\n // custom selector based on the parent of the link\r\n selector: null,\r\n // how many segments to remove from url in order to find active link in menu\r\n traverse: 0\r\n }, options);\r\n\r\n var segments = window.location.href.replace(window.location.protocol + '//' + window.location.host, '').split(\"/\");\r\n var level = segments.length;\r\n var minLevel = settings.traverse <= 0 ? level : level >= settings.traverse ? level - settings.traverse : level;\r\n\r\n while (level >= minLevel) {\r\n var currentUrl = segments.join('/');\r\n var items = $(this).find('a[href=\"' + currentUrl + '\"]').parent();\r\n\r\n if (settings.selector) {\r\n items = items.find(settings.selector);\r\n }\r\n\r\n if (items.length > 0) {\r\n items.addClass(settings.class);\r\n if (cb) {\r\n cb(items);\r\n }\r\n return this;\r\n }\r\n\r\n level -= 1;\r\n segments = segments.slice(0, level);\r\n }\r\n return this;\r\n };\r\n}(jQuery));\r\n"],"names":["$","fn","activateLinks","options","cb","settings","extend","class","selector","traverse","segments","window","location","href","replace","protocol","host","split","level","length","minLevel","currentUrl","join","items","find","parent","addClass","slice","jQuery"],"mappings":"CAGC,SAAUA,CAAC,EAERA,EAAEC,EAAE,CAACC,aAAa,CAAG,SAAUC,CAAO,CAAEC,CAAE,EAetC,IAbA,IAAIC,EAAWL,EAAEM,MAAM,CAAC,CAEpBC,MAAO,SAEPC,SAAU,KAEVC,SAAU,CACd,EAAGN,GAECO,EAAWC,OAAOC,QAAQ,CAACC,IAAI,CAACC,OAAO,CAACH,OAAOC,QAAQ,CAACG,QAAQ,CAAG,KAAOJ,OAAOC,QAAQ,CAACI,IAAI,CAAE,IAAIC,KAAK,CAAC,KAC1GC,EAAQR,EAASS,MAAM,CACvBC,EAAWf,EAASI,QAAQ,EAAI,EAAIS,EAAQA,GAASb,EAASI,QAAQ,CAAGS,EAAQb,EAASI,QAAQ,CAAGS,EAElGA,GAASE,GAAU,CACtB,IAAIC,EAAaX,EAASY,IAAI,CAAC,KAC3BC,EAAQvB,EAAE,IAAI,EAAEwB,IAAI,CAAC,WAAaH,EAAa,MAAMI,MAAM,GAM/D,GAJIpB,EAASG,QAAQ,EACjBe,CAAAA,EAAQA,EAAMC,IAAI,CAACnB,EAASG,QAAQ,CAAA,EAGpCe,EAAMJ,MAAM,CAAG,EAAG,CAClBI,EAAMG,QAAQ,CAACrB,EAASE,KAAK,EACzBH,GACAA,EAAGmB,GAEP,KACJ,CAEAL,GAAS,EACTR,EAAWA,EAASiB,KAAK,CAAC,EAAGT,EACjC,CACA,OAAO,IAAI,AACf,CACJ,EAAEU"}asd \ No newline at end of file diff --git a/src/OrchardCore.Modules/OrchardCore.Menu/wwwroot/Scripts/menu-permission-picker.map b/src/OrchardCore.Modules/OrchardCore.Menu/wwwroot/Scripts/menu-permission-picker.map index c059db3692f..47b1fa72aa6 100644 --- a/src/OrchardCore.Modules/OrchardCore.Menu/wwwroot/Scripts/menu-permission-picker.map +++ b/src/OrchardCore.Modules/OrchardCore.Menu/wwwroot/Scripts/menu-permission-picker.map @@ -1 +1 @@ -{"version":3,"sources":[""],"sourcesContent":["function initMenuPermissionsPicker(element) {\r\n // only run script if element exists\r\n if (element) {\r\n var elementId = element.id;\r\n var selectedItems = JSON.parse(element.dataset.selectedItems || \"[]\");\r\n var allItems = JSON.parse(element.dataset.allItems || \"[]\");\r\n\r\n var vueMultiselect = Vue.component('vue-multiselect', window.VueMultiselect.default);\r\n\r\n var vm = new Vue({\r\n el: '#' + elementId,\r\n components: { 'vue-multiselect': vueMultiselect },\r\n data: {\r\n value: null,\r\n arrayOfItems: selectedItems,\r\n options: allItems,\r\n },\r\n computed: {\r\n selectedNames: function () {\r\n return this.arrayOfItems.map(function (x) { return x.name }).join(',');\r\n }\r\n },\r\n methods: {\r\n onSelect: function (selectedOption, name) {\r\n var self = this;\r\n\r\n for (i = 0; i < self.arrayOfItems.length; i++) {\r\n if (self.arrayOfItems[i].name === selectedOption.name) {\r\n return;\r\n }\r\n }\r\n\r\n self.arrayOfItems.push(selectedOption);\r\n },\r\n remove: function (item) {\r\n this.arrayOfItems.splice(this.arrayOfItems.indexOf(item), 1)\r\n }\r\n }\r\n })\r\n\r\n /*Hook for other scripts that might want to have access to the view model*/\r\n var event = new CustomEvent(\"menu-permission-picker-created\", { detail: { vm: vm } });\r\n document.querySelector(\"body\").dispatchEvent(event);\r\n }\r\n}\r\n"],"names":["initMenuPermissionsPicker","element","elementId","id","selectedItems","JSON","parse","dataset","allItems","vueMultiselect","Vue","component","window","VueMultiselect","default","event","CustomEvent","detail","vm","el","components","data","value","arrayOfItems","options","computed","selectedNames","map","x","name","join","methods","onSelect","selectedOption","i","self","length","push","remove","item","splice","indexOf","document","querySelector","dispatchEvent"],"mappings":"AAAA,SAASA,0BAA0BC,CAAO,EAEtC,GAAIA,EAAS,CACT,IAAIC,EAAYD,EAAQE,EAAE,CACtBC,EAAgBC,KAAKC,KAAK,CAACL,EAAQM,OAAO,CAACH,aAAa,EAAI,MAC5DI,EAAWH,KAAKC,KAAK,CAACL,EAAQM,OAAO,CAACC,QAAQ,EAAI,MAElDC,EAAiBC,IAAIC,SAAS,CAAC,kBAAmBC,OAAOC,cAAc,CAACC,OAAO,EAkC/EC,EAAQ,IAAIC,YAAY,iCAAkC,CAAEC,OAAQ,CAAEC,GAhCjE,IAAIR,IAAI,CACbS,GAAI,IAAMjB,EACVkB,WAAY,CAAE,kBAAmBX,CAAe,EAChDY,KAAM,CACFC,MAAO,KACPC,aAAcnB,EACdoB,QAAShB,CACb,EACAiB,SAAU,CACNC,cAAe,WACX,OAAO,IAAI,CAACH,YAAY,CAACI,GAAG,CAAC,SAAUC,CAAC,EAAI,OAAOA,EAAEC,IAAI,AAAC,GAAGC,IAAI,CAAC,IACtE,CACJ,EACAC,QAAS,CACLC,SAAU,SAAUC,CAAc,CAAEJ,CAAI,EAGpC,IAAKK,EAAI,EAAGA,EAAIC,AAFL,IAAI,CAEMZ,YAAY,CAACa,MAAM,CAAEF,IACtC,GAAIC,AAHG,IAAI,CAGFZ,YAAY,CAACW,EAAE,CAACL,IAAI,GAAKI,EAAeJ,IAAI,CACjD,OAIRM,AARW,IAAI,CAQVZ,YAAY,CAACc,IAAI,CAACJ,EAC3B,EACAK,OAAQ,SAAUC,CAAI,EAClB,IAAI,CAAChB,YAAY,CAACiB,MAAM,CAAC,IAAI,CAACjB,YAAY,CAACkB,OAAO,CAACF,GAAO,EAC9D,CACJ,CACJ,EAGiF,CAAE,GACnFG,SAASC,aAAa,CAAC,QAAQC,aAAa,CAAC7B,EACjD,CACJ"} +{"version":3,"sources":[""],"sourcesContent":["function initMenuPermissionsPicker(element) {\r\n // only run script if element exists\r\n if (element) {\r\n var elementId = element.id;\r\n var selectedItems = JSON.parse(element.dataset.selectedItems || \"[]\");\r\n var allItems = JSON.parse(element.dataset.allItems || \"[]\");\r\n\r\n var vueMultiselect = Vue.component('vue-multiselect', window.VueMultiselect.default);\r\n\r\n var vm = new Vue({\r\n el: '#' + elementId,\r\n components: { 'vue-multiselect': vueMultiselect },\r\n data: {\r\n value: null,\r\n arrayOfItems: selectedItems,\r\n options: allItems,\r\n },\r\n computed: {\r\n selectedNames: function () {\r\n return this.arrayOfItems.map(function (x) { return x.name }).join(',');\r\n }\r\n },\r\n methods: {\r\n onSelect: function (selectedOption, name) {\r\n var self = this;\r\n\r\n for (i = 0; i < self.arrayOfItems.length; i++) {\r\n if (self.arrayOfItems[i].name === selectedOption.name) {\r\n return;\r\n }\r\n }\r\n\r\n self.arrayOfItems.push(selectedOption);\r\n },\r\n remove: function (item) {\r\n this.arrayOfItems.splice(this.arrayOfItems.indexOf(item), 1)\r\n }\r\n }\r\n })\r\n\r\n /*Hook for other scripts that might want to have access to the view model*/\r\n var event = new CustomEvent(\"menu-permission-picker-created\", { detail: { vm: vm } });\r\n document.querySelector(\"body\").dispatchEvent(event);\r\n }\r\n}\r\n"],"names":["initMenuPermissionsPicker","element","elementId","id","selectedItems","JSON","parse","dataset","allItems","vueMultiselect","Vue","component","window","VueMultiselect","default","event","CustomEvent","detail","vm","el","components","data","value","arrayOfItems","options","computed","selectedNames","map","x","name","join","methods","onSelect","selectedOption","i","self","length","push","remove","item","splice","indexOf","document","querySelector","dispatchEvent"],"mappings":"AAAA,SAASA,0BAA0BC,CAAO,EAEtC,GAAIA,EAAS,CACT,IAAIC,EAAYD,EAAQE,EAAE,CACtBC,EAAgBC,KAAKC,KAAK,CAACL,EAAQM,OAAO,CAACH,aAAa,EAAI,MAC5DI,EAAWH,KAAKC,KAAK,CAACL,EAAQM,OAAO,CAACC,QAAQ,EAAI,MAElDC,EAAiBC,IAAIC,SAAS,CAAC,kBAAmBC,OAAOC,cAAc,CAACC,OAAO,EAkC/EC,EAAQ,IAAIC,YAAY,iCAAkC,CAAEC,OAAQ,CAAEC,GAhCjE,IAAIR,IAAI,CACbS,GAAI,IAAMjB,EACVkB,WAAY,CAAE,kBAAmBX,CAAe,EAChDY,KAAM,CACFC,MAAO,KACPC,aAAcnB,EACdoB,QAAShB,CACb,EACAiB,SAAU,CACNC,cAAe,WACX,OAAO,IAAI,CAACH,YAAY,CAACI,GAAG,CAAC,SAAUC,CAAC,EAAI,OAAOA,EAAEC,IAAI,AAAC,GAAGC,IAAI,CAAC,IACtE,CACJ,EACAC,QAAS,CACLC,SAAU,SAAUC,CAAc,CAAEJ,CAAI,EAGpC,IAAKK,EAAI,EAAGA,EAAIC,AAFL,IAAI,CAEMZ,YAAY,CAACa,MAAM,CAAEF,IACtC,GAAIC,AAHG,IAAI,CAGFZ,YAAY,CAACW,EAAE,CAACL,IAAI,GAAKI,EAAeJ,IAAI,CACjD,OAIRM,AARW,IAAI,CAQVZ,YAAY,CAACc,IAAI,CAACJ,EAC3B,EACAK,OAAQ,SAAUC,CAAI,EAClB,IAAI,CAAChB,YAAY,CAACiB,MAAM,CAAC,IAAI,CAACjB,YAAY,CAACkB,OAAO,CAACF,GAAO,EAC9D,CACJ,CACJ,EAGiF,CAAE,GACnFG,SAASC,aAAa,CAAC,QAAQC,aAAa,CAAC7B,EACjD,CACJ"}asd \ No newline at end of file diff --git a/src/OrchardCore.Modules/OrchardCore.Menu/wwwroot/Scripts/menu.map b/src/OrchardCore.Modules/OrchardCore.Menu/wwwroot/Scripts/menu.map index 69ac544f113..d68f030fc54 100644 --- a/src/OrchardCore.Modules/OrchardCore.Menu/wwwroot/Scripts/menu.map +++ b/src/OrchardCore.Modules/OrchardCore.Menu/wwwroot/Scripts/menu.map @@ -1 +1 @@ -{"version":3,"sources":[""],"sourcesContent":["/*\r\n * jQuery UI Nested Sortable\r\n * v 2.1a / 2016-02-04\r\n * https://github.com/ilikenwf/nestedSortable\r\n *\r\n * Depends on:\r\n *\t jquery.ui.sortable.js 1.10+\r\n *\r\n * Copyright (c) 2010-2016 Manuele J Sarfatti and contributors\r\n * Licensed under the MIT License\r\n * http://www.opensource.org/licenses/mit-license.php\r\n */\r\n(function( factory ) {\r\n\t\"use strict\";\r\n\r\n\tif ( typeof define === \"function\" && define.amd ) {\r\n\r\n\t\t// AMD. Register as an anonymous module.\r\n\t\tdefine([\r\n\t\t\t\"jquery\",\r\n\t\t\t\"jquery-ui/sortable\"\r\n\t\t], factory );\r\n\t} else {\r\n\r\n\t\t// Browser globals\r\n\t\tfactory( window.jQuery );\r\n\t}\r\n}(function($) {\r\n\t\"use strict\";\r\n\r\n\tfunction isOverAxis( x, reference, size ) {\r\n\t\treturn ( x > reference ) && ( x < ( reference + size ) );\r\n\t}\r\n\r\n\t$.widget(\"mjs.nestedSortable\", $.extend({}, $.ui.sortable.prototype, {\r\n\r\n\t\toptions: {\r\n\t\t\tdisableParentChange: false,\r\n\t\t\tdoNotClear: false,\r\n\t\t\texpandOnHover: 700,\r\n\t\t\tisAllowed: function() { return true; },\r\n\t\t\tisTree: false,\r\n\t\t\tlistType: \"ol\",\r\n\t\t\tmaxLevels: 0,\r\n\t\t\tprotectRoot: false,\r\n\t\t\trootID: null,\r\n\t\t\trtl: false,\r\n\t\t\tstartCollapsed: false,\r\n\t\t\ttabSize: 20,\r\n\r\n\t\t\tbranchClass: \"mjs-nestedSortable-branch\",\r\n\t\t\tcollapsedClass: \"mjs-nestedSortable-collapsed\",\r\n\t\t\tdisableNestingClass: \"mjs-nestedSortable-no-nesting\",\r\n\t\t\terrorClass: \"mjs-nestedSortable-error\",\r\n\t\t\texpandedClass: \"mjs-nestedSortable-expanded\",\r\n\t\t\thoveringClass: \"mjs-nestedSortable-hovering\",\r\n\t\t\tleafClass: \"mjs-nestedSortable-leaf\",\r\n\t\t\tdisabledClass: \"mjs-nestedSortable-disabled\"\r\n\t\t},\r\n\r\n\t\t_create: function() {\r\n\t\t\tvar self = this,\r\n\t\t\t\terr;\r\n\r\n\t\t\tthis.element.data(\"ui-sortable\", this.element.data(\"mjs-nestedSortable\"));\r\n\r\n\t\t\t// mjs - prevent browser from freezing if the HTML is not correct\r\n\t\t\tif (!this.element.is(this.options.listType)) {\r\n\t\t\t\terr = \"nestedSortable: \" +\r\n\t\t\t\t\t\"Please check that the listType option is set to your actual list type\";\r\n\r\n\t\t\t\tthrow new Error(err);\r\n\t\t\t}\r\n\r\n\t\t\t// if we have a tree with expanding/collapsing functionality,\r\n\t\t\t// force 'intersect' tolerance method\r\n\t\t\tif (this.options.isTree && this.options.expandOnHover) {\r\n\t\t\t\tthis.options.tolerance = \"intersect\";\r\n\t\t\t}\r\n\r\n\t\t\t$.ui.sortable.prototype._create.apply(this, arguments);\r\n\r\n\t\t\t// prepare the tree by applying the right classes\r\n\t\t\t// (the CSS is responsible for actual hide/show functionality)\r\n\t\t\tif (this.options.isTree) {\r\n\t\t\t\t$(this.items).each(function() {\r\n\t\t\t\t\tvar $li = this.item,\r\n\t\t\t\t\t\thasCollapsedClass = $li.hasClass(self.options.collapsedClass),\r\n\t\t\t\t\t\thasExpandedClass = $li.hasClass(self.options.expandedClass);\r\n\r\n\t\t\t\t\tif ($li.children(self.options.listType).length) {\r\n\t\t\t\t\t\t$li.addClass(self.options.branchClass);\r\n\t\t\t\t\t\t// expand/collapse class only if they have children\r\n\r\n\t\t\t\t\t\tif ( !hasCollapsedClass && !hasExpandedClass ) {\r\n\t\t\t\t\t\t\tif (self.options.startCollapsed) {\r\n\t\t\t\t\t\t\t\t$li.addClass(self.options.collapsedClass);\r\n\t\t\t\t\t\t\t} else {\r\n\t\t\t\t\t\t\t\t$li.addClass(self.options.expandedClass);\r\n\t\t\t\t\t\t\t}\r\n\t\t\t\t\t\t}\r\n\t\t\t\t\t} else {\r\n\t\t\t\t\t\t$li.addClass(self.options.leafClass);\r\n\t\t\t\t\t}\r\n\t\t\t\t});\r\n\t\t\t}\r\n\t\t},\r\n\r\n\t\t_destroy: function() {\r\n\t\t\tthis.element\r\n\t\t\t\t.removeData(\"mjs-nestedSortable\")\r\n\t\t\t\t.removeData(\"ui-sortable\");\r\n\t\t\treturn $.ui.sortable.prototype._destroy.apply(this, arguments);\r\n\t\t},\r\n\r\n\t\t_mouseDrag: function(event) {\r\n\t\t\tvar i,\r\n\t\t\t\titem,\r\n\t\t\t\titemElement,\r\n\t\t\t\tintersection,\r\n\t\t\t\tself = this,\r\n\t\t\t\to = this.options,\r\n\t\t\t\tscrolled = false,\r\n\t\t\t\t$document = $(document),\r\n\t\t\t\tpreviousTopOffset,\r\n\t\t\t\tparentItem,\r\n\t\t\t\tlevel,\r\n\t\t\t\tchildLevels,\r\n\t\t\t\titemAfter,\r\n\t\t\t\titemBefore,\r\n\t\t\t\tnewList,\r\n\t\t\t\tmethod,\r\n\t\t\t\ta,\r\n\t\t\t\tpreviousItem,\r\n\t\t\t\tnextItem,\r\n\t\t\t\thelperIsNotSibling;\r\n\r\n\t\t\t//Compute the helpers position\r\n\t\t\tthis.position = this._generatePosition(event);\r\n\t\t\tthis.positionAbs = this._convertPositionTo(\"absolute\");\r\n\r\n\t\t\tif (!this.lastPositionAbs) {\r\n\t\t\t\tthis.lastPositionAbs = this.positionAbs;\r\n\t\t\t}\r\n\r\n\t\t\t//Do scrolling\r\n\t\t\tif (this.options.scroll) {\r\n\t\t\t\tif (this.scrollParent[0] !== document && this.scrollParent[0].tagName !== \"HTML\") {\r\n\r\n\t\t\t\t\tif (\r\n\t\t\t\t\t\t(\r\n\t\t\t\t\t\t\tthis.overflowOffset.top +\r\n\t\t\t\t\t\t\tthis.scrollParent[0].offsetHeight\r\n\t\t\t\t\t\t) -\r\n\t\t\t\t\t\tevent.pageY <\r\n\t\t\t\t\t\to.scrollSensitivity\r\n\t\t\t\t\t) {\r\n\t\t\t\t\t\tscrolled = this.scrollParent.scrollTop() + o.scrollSpeed;\r\n\t\t\t\t\t\tthis.scrollParent.scrollTop(scrolled);\r\n\t\t\t\t\t} else if (\r\n\t\t\t\t\t\tevent.pageY -\r\n\t\t\t\t\t\tthis.overflowOffset.top <\r\n\t\t\t\t\t\to.scrollSensitivity\r\n\t\t\t\t\t) {\r\n\t\t\t\t\t\tscrolled = this.scrollParent.scrollTop() - o.scrollSpeed;\r\n\t\t\t\t\t\tthis.scrollParent.scrollTop(scrolled);\r\n\t\t\t\t\t}\r\n\r\n\t\t\t\t\tif (\r\n\t\t\t\t\t\t(\r\n\t\t\t\t\t\t\tthis.overflowOffset.left +\r\n\t\t\t\t\t\t\tthis.scrollParent[0].offsetWidth\r\n\t\t\t\t\t\t) -\r\n\t\t\t\t\t\tevent.pageX <\r\n\t\t\t\t\t\to.scrollSensitivity\r\n\t\t\t\t\t) {\r\n\t\t\t\t\t\tscrolled = this.scrollParent.scrollLeft() + o.scrollSpeed;\r\n\t\t\t\t\t\tthis.scrollParent.scrollLeft(scrolled);\r\n\t\t\t\t\t} else if (\r\n\t\t\t\t\t\tevent.pageX -\r\n\t\t\t\t\t\tthis.overflowOffset.left <\r\n\t\t\t\t\t\to.scrollSensitivity\r\n\t\t\t\t\t) {\r\n\t\t\t\t\t\tscrolled = this.scrollParent.scrollLeft() - o.scrollSpeed;\r\n\t\t\t\t\t\tthis.scrollParent.scrollLeft(scrolled);\r\n\t\t\t\t\t}\r\n\r\n\t\t\t\t} else {\r\n\r\n\t\t\t\t\tif (\r\n\t\t\t\t\t\tevent.pageY -\r\n\t\t\t\t\t\t$document.scrollTop() <\r\n\t\t\t\t\t\to.scrollSensitivity\r\n\t\t\t\t\t) {\r\n\t\t\t\t\t\tscrolled = $document.scrollTop() - o.scrollSpeed;\r\n\t\t\t\t\t\t$document.scrollTop(scrolled);\r\n\t\t\t\t\t} else if (\r\n\t\t\t\t\t\t$(window).height() -\r\n\t\t\t\t\t\t(\r\n\t\t\t\t\t\t\tevent.pageY -\r\n\t\t\t\t\t\t\t$document.scrollTop()\r\n\t\t\t\t\t\t) <\r\n\t\t\t\t\t\to.scrollSensitivity\r\n\t\t\t\t\t) {\r\n\t\t\t\t\t\tscrolled = $document.scrollTop() + o.scrollSpeed;\r\n\t\t\t\t\t\t$document.scrollTop(scrolled);\r\n\t\t\t\t\t}\r\n\r\n\t\t\t\t\tif (\r\n\t\t\t\t\t\tevent.pageX -\r\n\t\t\t\t\t\t$document.scrollLeft() <\r\n\t\t\t\t\t\to.scrollSensitivity\r\n\t\t\t\t\t) {\r\n\t\t\t\t\t\tscrolled = $document.scrollLeft() - o.scrollSpeed;\r\n\t\t\t\t\t\t$document.scrollLeft(scrolled);\r\n\t\t\t\t\t} else if (\r\n\t\t\t\t\t\t$(window).width() -\r\n\t\t\t\t\t\t(\r\n\t\t\t\t\t\t\tevent.pageX -\r\n\t\t\t\t\t\t\t$document.scrollLeft()\r\n\t\t\t\t\t\t) <\r\n\t\t\t\t\t\to.scrollSensitivity\r\n\t\t\t\t\t) {\r\n\t\t\t\t\t\tscrolled = $document.scrollLeft() + o.scrollSpeed;\r\n\t\t\t\t\t\t$document.scrollLeft(scrolled);\r\n\t\t\t\t\t}\r\n\r\n\t\t\t\t}\r\n\r\n\t\t\t\tif (scrolled !== false && $.ui.ddmanager && !o.dropBehaviour) {\r\n\t\t\t\t\t$.ui.ddmanager.prepareOffsets(this, event);\r\n\t\t\t\t}\r\n\t\t\t}\r\n\r\n\t\t\t//Regenerate the absolute position used for position checks\r\n\t\t\tthis.positionAbs = this._convertPositionTo(\"absolute\");\r\n\r\n\t\t\t// mjs - find the top offset before rearrangement,\r\n\t\t\tpreviousTopOffset = this.placeholder.offset().top;\r\n\r\n\t\t\t//Set the helper position\r\n\t\t\tif (!this.options.axis || this.options.axis !== \"y\") {\r\n\t\t\t\tthis.helper[0].style.left = this.position.left + \"px\";\r\n\t\t\t}\r\n\t\t\tif (!this.options.axis || this.options.axis !== \"x\") {\r\n\t\t\t\tthis.helper[0].style.top = (this.position.top) + \"px\";\r\n\t\t\t}\r\n\r\n\t\t\t// mjs - check and reset hovering state at each cycle\r\n\t\t\tthis.hovering = this.hovering ? this.hovering : null;\r\n\t\t\tthis.mouseentered = this.mouseentered ? this.mouseentered : false;\r\n\r\n\t\t\t// mjs - let's start caching some variables\r\n\t\t\t(function() {\r\n\t\t\t\tvar _parentItem = this.placeholder.parent().parent();\r\n\t\t\t\tif (_parentItem && _parentItem.closest(\".ui-sortable\").length) {\r\n\t\t\t\t\tparentItem = _parentItem;\r\n\t\t\t\t}\r\n\t\t\t}.call(this));\r\n\r\n\t\t\tlevel = this._getLevel(this.placeholder);\r\n\t\t\tchildLevels = this._getChildLevels(this.helper);\r\n\t\t\tnewList = document.createElement(o.listType);\r\n\r\n\t\t\t//Rearrange\r\n\t\t\tfor (i = this.items.length - 1; i >= 0; i--) {\r\n\r\n\t\t\t\t//Cache variables and intersection, continue if no intersection\r\n\t\t\t\titem = this.items[i];\r\n\t\t\t\titemElement = item.item[0];\r\n\t\t\t\tintersection = this._intersectsWithPointer(item);\r\n\t\t\t\tif (!intersection) {\r\n\t\t\t\t\tcontinue;\r\n\t\t\t\t}\r\n\r\n\t\t\t\t// Only put the placeholder inside the current Container, skip all\r\n\t\t\t\t// items form other containers. This works because when moving\r\n\t\t\t\t// an item from one container to another the\r\n\t\t\t\t// currentContainer is switched before the placeholder is moved.\r\n\t\t\t\t//\r\n\t\t\t\t// Without this moving items in \"sub-sortables\" can cause the placeholder to jitter\r\n\t\t\t\t// beetween the outer and inner container.\r\n\t\t\t\tif (item.instance !== this.currentContainer) {\r\n\t\t\t\t\tcontinue;\r\n\t\t\t\t}\r\n\r\n\t\t\t\t// No action if intersected item is disabled\r\n\t\t\t\t// and the element above or below in the direction we're going is also disabled\r\n\t\t\t\tif (itemElement.className.indexOf(o.disabledClass) !== -1) {\r\n\t\t\t\t\t// Note: intersection hardcoded direction values from\r\n\t\t\t\t\t// jquery.ui.sortable.js:_intersectsWithPointer\r\n\t\t\t\t\tif (intersection === 2) {\r\n\t\t\t\t\t\t// Going down\r\n\t\t\t\t\t\titemAfter = this.items[i + 1];\r\n\t\t\t\t\t\tif (itemAfter && itemAfter.item.hasClass(o.disabledClass)) {\r\n\t\t\t\t\t\t\tcontinue;\r\n\t\t\t\t\t\t}\r\n\r\n\t\t\t\t\t} else if (intersection === 1) {\r\n\t\t\t\t\t\t// Going up\r\n\t\t\t\t\t\titemBefore = this.items[i - 1];\r\n\t\t\t\t\t\tif (itemBefore && itemBefore.item.hasClass(o.disabledClass)) {\r\n\t\t\t\t\t\t\tcontinue;\r\n\t\t\t\t\t\t}\r\n\t\t\t\t\t}\r\n\t\t\t\t}\r\n\r\n\t\t\t\tmethod = intersection === 1 ? \"next\" : \"prev\";\r\n\r\n\t\t\t\t// cannot intersect with itself\r\n\t\t\t\t// no useless actions that have been done before\r\n\t\t\t\t// no action if the item moved is the parent of the item checked\r\n\t\t\t\tif (itemElement !== this.currentItem[0] &&\r\n\t\t\t\t\tthis.placeholder[method]()[0] !== itemElement &&\r\n\t\t\t\t\t!$.contains(this.placeholder[0], itemElement) &&\r\n\t\t\t\t\t(\r\n\t\t\t\t\t\tthis.options.type === \"semi-dynamic\" ?\r\n\t\t\t\t\t\t\t!$.contains(this.element[0], itemElement) :\r\n\t\t\t\t\t\t\ttrue\r\n\t\t\t\t\t)\r\n\t\t\t\t) {\r\n\r\n\t\t\t\t\t// mjs - we are intersecting an element:\r\n\t\t\t\t\t// trigger the mouseenter event and store this state\r\n\t\t\t\t\tif (!this.mouseentered) {\r\n\t\t\t\t\t\t$(itemElement).mouseenter();\r\n\t\t\t\t\t\tthis.mouseentered = true;\r\n\t\t\t\t\t}\r\n\r\n\t\t\t\t\t// mjs - if the element has children and they are hidden,\r\n\t\t\t\t\t// show them after a delay (CSS responsible)\r\n\t\t\t\t\tif (o.isTree && $(itemElement).hasClass(o.collapsedClass) && o.expandOnHover) {\r\n\t\t\t\t\t\tif (!this.hovering) {\r\n\t\t\t\t\t\t\t$(itemElement).addClass(o.hoveringClass);\r\n\t\t\t\t\t\t\tthis.hovering = window.setTimeout(function() {\r\n\t\t\t\t\t\t\t\t$(itemElement)\r\n\t\t\t\t\t\t\t\t\t.removeClass(o.collapsedClass)\r\n\t\t\t\t\t\t\t\t\t.addClass(o.expandedClass);\r\n\r\n\t\t\t\t\t\t\t\tself.refreshPositions();\r\n\t\t\t\t\t\t\t\tself._trigger(\"expand\", event, self._uiHash());\r\n\t\t\t\t\t\t\t}, o.expandOnHover);\r\n\t\t\t\t\t\t}\r\n\t\t\t\t\t}\r\n\r\n\t\t\t\t\tthis.direction = intersection === 1 ? \"down\" : \"up\";\r\n\r\n\t\t\t\t\t// mjs - rearrange the elements and reset timeouts and hovering state\r\n\t\t\t\t\tif (this.options.tolerance === \"pointer\" || this._intersectsWithSides(item)) {\r\n\t\t\t\t\t\t$(itemElement).mouseleave();\r\n\t\t\t\t\t\tthis.mouseentered = false;\r\n\t\t\t\t\t\t$(itemElement).removeClass(o.hoveringClass);\r\n\t\t\t\t\t\tif (this.hovering) {\r\n\t\t\t\t\t\t\twindow.clearTimeout(this.hovering);\r\n\t\t\t\t\t\t}\r\n\t\t\t\t\t\tthis.hovering = null;\r\n\r\n\t\t\t\t\t\t// mjs - do not switch container if\r\n\t\t\t\t\t\t// it's a root item and 'protectRoot' is true\r\n\t\t\t\t\t\t// or if it's not a root item but we are trying to make it root\r\n\t\t\t\t\t\tif (o.protectRoot &&\r\n\t\t\t\t\t\t\t!(\r\n\t\t\t\t\t\t\t\tthis.currentItem[0].parentNode === this.element[0] &&\r\n\t\t\t\t\t\t\t\t// it's a root item\r\n\t\t\t\t\t\t\t\titemElement.parentNode !== this.element[0]\r\n\t\t\t\t\t\t\t\t// it's intersecting a non-root item\r\n\t\t\t\t\t\t\t)\r\n\t\t\t\t\t\t) {\r\n\t\t\t\t\t\t\tif (this.currentItem[0].parentNode !== this.element[0] &&\r\n\t\t\t\t\t\t\t\titemElement.parentNode === this.element[0]\r\n\t\t\t\t\t\t\t) {\r\n\r\n\t\t\t\t\t\t\t\tif ( !$(itemElement).children(o.listType).length) {\r\n\t\t\t\t\t\t\t\t\titemElement.appendChild(newList);\r\n\t\t\t\t\t\t\t\t\tif (o.isTree) {\r\n\t\t\t\t\t\t\t\t\t\t$(itemElement)\r\n\t\t\t\t\t\t\t\t\t\t\t.removeClass(o.leafClass)\r\n\t\t\t\t\t\t\t\t\t\t\t.addClass(o.branchClass + \" \" + o.expandedClass);\r\n\t\t\t\t\t\t\t\t\t}\r\n\t\t\t\t\t\t\t\t}\r\n\r\n\t\t\t\t\t\t\t\tif (this.direction === \"down\") {\r\n\t\t\t\t\t\t\t\t\ta = $(itemElement).prev().children(o.listType);\r\n\t\t\t\t\t\t\t\t} else {\r\n\t\t\t\t\t\t\t\t\ta = $(itemElement).children(o.listType);\r\n\t\t\t\t\t\t\t\t}\r\n\r\n\t\t\t\t\t\t\t\tif (a[0] !== undefined) {\r\n\t\t\t\t\t\t\t\t\tthis._rearrange(event, null, a);\r\n\t\t\t\t\t\t\t\t}\r\n\r\n\t\t\t\t\t\t\t} else {\r\n\t\t\t\t\t\t\t\tthis._rearrange(event, item);\r\n\t\t\t\t\t\t\t}\r\n\t\t\t\t\t\t} else if (!o.protectRoot) {\r\n\t\t\t\t\t\t\tthis._rearrange(event, item);\r\n\t\t\t\t\t\t}\r\n\t\t\t\t\t} else {\r\n\t\t\t\t\t\tbreak;\r\n\t\t\t\t\t}\r\n\r\n\t\t\t\t\t// Clear emtpy ul's/ol's\r\n\t\t\t\t\tthis._clearEmpty(itemElement);\r\n\r\n\t\t\t\t\tthis._trigger(\"change\", event, this._uiHash());\r\n\t\t\t\t\tbreak;\r\n\t\t\t\t}\r\n\t\t\t}\r\n\r\n\t\t\t// mjs - to find the previous sibling in the list,\r\n\t\t\t// keep backtracking until we hit a valid list item.\r\n\t\t\t(function() {\r\n\t\t\t\tvar _previousItem = this.placeholder.prev();\r\n\t\t\t\tif (_previousItem.length) {\r\n\t\t\t\t\tpreviousItem = _previousItem;\r\n\t\t\t\t} else {\r\n\t\t\t\t\tpreviousItem = null;\r\n\t\t\t\t}\r\n\t\t\t}.call(this));\r\n\r\n\t\t\tif (previousItem != null) {\r\n\t\t\t\twhile (\r\n\t\t\t\t\tpreviousItem[0].nodeName.toLowerCase() !== \"li\" ||\r\n\t\t\t\t\tpreviousItem[0].className.indexOf(o.disabledClass) !== -1 ||\r\n\t\t\t\t\tpreviousItem[0] === this.currentItem[0] ||\r\n\t\t\t\t\tpreviousItem[0] === this.helper[0]\r\n\t\t\t\t) {\r\n\t\t\t\t\tif (previousItem[0].previousSibling) {\r\n\t\t\t\t\t\tpreviousItem = $(previousItem[0].previousSibling);\r\n\t\t\t\t\t} else {\r\n\t\t\t\t\t\tpreviousItem = null;\r\n\t\t\t\t\t\tbreak;\r\n\t\t\t\t\t}\r\n\t\t\t\t}\r\n\t\t\t}\r\n\r\n\t\t\t// mjs - to find the next sibling in the list,\r\n\t\t\t// keep stepping forward until we hit a valid list item.\r\n\t\t\t(function() {\r\n\t\t\t\tvar _nextItem = this.placeholder.next();\r\n\t\t\t\tif (_nextItem.length) {\r\n\t\t\t\t\tnextItem = _nextItem;\r\n\t\t\t\t} else {\r\n\t\t\t\t\tnextItem = null;\r\n\t\t\t\t}\r\n\t\t\t}.call(this));\r\n\r\n\t\t\tif (nextItem != null) {\r\n\t\t\t\twhile (\r\n\t\t\t\t\tnextItem[0].nodeName.toLowerCase() !== \"li\" ||\r\n\t\t\t\t\tnextItem[0].className.indexOf(o.disabledClass) !== -1 ||\r\n\t\t\t\t\tnextItem[0] === this.currentItem[0] ||\r\n\t\t\t\t\tnextItem[0] === this.helper[0]\r\n\t\t\t\t) {\r\n\t\t\t\t\tif (nextItem[0].nextSibling) {\r\n\t\t\t\t\t\tnextItem = $(nextItem[0].nextSibling);\r\n\t\t\t\t\t} else {\r\n\t\t\t\t\t\tnextItem = null;\r\n\t\t\t\t\t\tbreak;\r\n\t\t\t\t\t}\r\n\t\t\t\t}\r\n\t\t\t}\r\n\r\n\t\t\tthis.beyondMaxLevels = 0;\r\n\r\n\t\t\t// mjs - if the item is moved to the left, send it one level up\r\n\t\t\t// but only if it's at the bottom of the list\r\n\t\t\tif (parentItem != null &&\r\n\t\t\t\tnextItem == null &&\r\n\t\t\t\t!(o.protectRoot && parentItem[0].parentNode == this.element[0]) &&\r\n\t\t\t\t(\r\n\t\t\t\t\to.rtl &&\r\n\t\t\t\t\t(\r\n\t\t\t\t\t\tthis.positionAbs.left +\r\n\t\t\t\t\t\tthis.helper.outerWidth() > parentItem.offset().left +\r\n\t\t\t\t\t\tparentItem.outerWidth()\r\n\t\t\t\t\t) ||\r\n\t\t\t\t\t!o.rtl && (this.positionAbs.left < parentItem.offset().left)\r\n\t\t\t\t)\r\n\t\t\t) {\r\n\r\n\t\t\t\tparentItem.after(this.placeholder[0]);\r\n\t\t\t\thelperIsNotSibling = !parentItem\r\n\t\t\t\t\t\t\t\t\t\t\t.children(o.listItem)\r\n\t\t\t\t\t\t\t\t\t\t\t.children(\"li:visible:not(.ui-sortable-helper)\")\r\n\t\t\t\t\t\t\t\t\t\t\t.length;\r\n\t\t\t\tif (o.isTree && helperIsNotSibling) {\r\n\t\t\t\t\tparentItem\r\n\t\t\t\t\t\t.removeClass(this.options.branchClass + \" \" + this.options.expandedClass)\r\n\t\t\t\t\t\t.addClass(this.options.leafClass);\r\n\t\t\t\t}\r\n if(typeof parentItem !== 'undefined')\r\n\t\t\t\t this._clearEmpty(parentItem[0]);\r\n\t\t\t\tthis._trigger(\"change\", event, this._uiHash());\r\n\t\t\t\t// mjs - if the item is below a sibling and is moved to the right,\r\n\t\t\t\t// make it a child of that sibling\r\n\t\t\t} else if (previousItem != null &&\r\n\t\t\t\t!previousItem.hasClass(o.disableNestingClass) &&\r\n\t\t\t\t(\r\n\t\t\t\t\tpreviousItem.children(o.listType).length &&\r\n\t\t\t\t\tpreviousItem.children(o.listType).is(\":visible\") ||\r\n\t\t\t\t\t!previousItem.children(o.listType).length\r\n\t\t\t\t) &&\r\n\t\t\t\t!(o.protectRoot && this.currentItem[0].parentNode === this.element[0]) &&\r\n\t\t\t\t(\r\n\t\t\t\t\to.rtl &&\r\n\t\t\t\t\t(\r\n\t\t\t\t\t\tthis.positionAbs.left +\r\n\t\t\t\t\t\tthis.helper.outerWidth() <\r\n\t\t\t\t\t\tpreviousItem.offset().left +\r\n\t\t\t\t\t\tpreviousItem.outerWidth() -\r\n\t\t\t\t\t\to.tabSize\r\n\t\t\t\t\t) ||\r\n\t\t\t\t\t!o.rtl &&\r\n\t\t\t\t\t(this.positionAbs.left > previousItem.offset().left + o.tabSize)\r\n\t\t\t\t)\r\n\t\t\t) {\r\n\r\n\t\t\t\tthis._isAllowed(previousItem, level, level + childLevels + 1);\r\n\r\n\t\t\t\tif (!previousItem.children(o.listType).length) {\r\n\t\t\t\t\tpreviousItem[0].appendChild(newList);\r\n\t\t\t\t\tif (o.isTree) {\r\n\t\t\t\t\t\tpreviousItem\r\n\t\t\t\t\t\t\t.removeClass(o.leafClass)\r\n\t\t\t\t\t\t\t.addClass(o.branchClass + \" \" + o.expandedClass);\r\n\t\t\t\t\t}\r\n\t\t\t\t}\r\n\r\n\t\t\t\t// mjs - if this item is being moved from the top, add it to the top of the list.\r\n\t\t\t\tif (previousTopOffset && (previousTopOffset <= previousItem.offset().top)) {\r\n\t\t\t\t\tpreviousItem.children(o.listType).prepend(this.placeholder);\r\n\t\t\t\t} else {\r\n\t\t\t\t\t// mjs - otherwise, add it to the bottom of the list.\r\n\t\t\t\t\tpreviousItem.children(o.listType)[0].appendChild(this.placeholder[0]);\r\n\t\t\t\t}\r\n if(typeof parentItem !== 'undefined')\r\n\t\t\t\t this._clearEmpty(parentItem[0]);\r\n\t\t\t\tthis._trigger(\"change\", event, this._uiHash());\r\n\t\t\t} else {\r\n\t\t\t\tthis._isAllowed(parentItem, level, level + childLevels);\r\n\t\t\t}\r\n\r\n\t\t\t//Post events to containers\r\n\t\t\tthis._contactContainers(event);\r\n\r\n\t\t\t//Interconnect with droppables\r\n\t\t\tif ($.ui.ddmanager) {\r\n\t\t\t\t$.ui.ddmanager.drag(this, event);\r\n\t\t\t}\r\n\r\n\t\t\t//Call callbacks\r\n\t\t\tthis._trigger(\"sort\", event, this._uiHash());\r\n\r\n\t\t\tthis.lastPositionAbs = this.positionAbs;\r\n\t\t\treturn false;\r\n\r\n\t\t},\r\n\r\n\t\t_mouseStop: function(event) {\r\n\t\t\t// mjs - if the item is in a position not allowed, send it back\r\n\t\t\tif (this.beyondMaxLevels) {\r\n\r\n\t\t\t\tthis.placeholder.removeClass(this.options.errorClass);\r\n\r\n\t\t\t\tif (this.domPosition.prev) {\r\n\t\t\t\t\t$(this.domPosition.prev).after(this.placeholder);\r\n\t\t\t\t} else {\r\n\t\t\t\t\t$(this.domPosition.parent).prepend(this.placeholder);\r\n\t\t\t\t}\r\n\r\n\t\t\t\tthis._trigger(\"revert\", event, this._uiHash());\r\n\r\n\t\t\t}\r\n\r\n\t\t\t// mjs - clear the hovering timeout, just to be sure\r\n\t\t\t$(\".\" + this.options.hoveringClass)\r\n\t\t\t\t.mouseleave()\r\n\t\t\t\t.removeClass(this.options.hoveringClass);\r\n\r\n\t\t\tthis.mouseentered = false;\r\n\t\t\tif (this.hovering) {\r\n\t\t\t\twindow.clearTimeout(this.hovering);\r\n\t\t\t}\r\n\t\t\tthis.hovering = null;\r\n\r\n\t\t\tthis._relocate_event = event;\r\n\t\t\tthis._pid_current = $(this.domPosition.parent).parent().attr(\"id\");\r\n\t\t\tthis._sort_current = this.domPosition.prev ? $(this.domPosition.prev).next().index() : 0;\r\n\t\t\t$.ui.sortable.prototype._mouseStop.apply(this, arguments); //asybnchronous execution, @see _clear for the relocate event.\r\n\t\t},\r\n\r\n\t\t// mjs - this function is slightly modified\r\n\t\t// to make it easier to hover over a collapsed element and have it expand\r\n\t\t_intersectsWithSides: function(item) {\r\n\r\n\t\t\tvar half = this.options.isTree ? .8 : .5,\r\n\t\t\t\tisOverBottomHalf = isOverAxis(\r\n\t\t\t\t\tthis.positionAbs.top + this.offset.click.top,\r\n\t\t\t\t\titem.top + (item.height * half),\r\n\t\t\t\t\titem.height\r\n\t\t\t\t),\r\n\t\t\t\tisOverTopHalf = isOverAxis(\r\n\t\t\t\t\tthis.positionAbs.top + this.offset.click.top,\r\n\t\t\t\t\titem.top - (item.height * half),\r\n\t\t\t\t\titem.height\r\n\t\t\t\t),\r\n\t\t\t\tisOverRightHalf = isOverAxis(\r\n\t\t\t\t\tthis.positionAbs.left + this.offset.click.left,\r\n\t\t\t\t\titem.left + (item.width / 2),\r\n\t\t\t\t\titem.width\r\n\t\t\t\t),\r\n\t\t\t\tverticalDirection = this._getDragVerticalDirection(),\r\n\t\t\t\thorizontalDirection = this._getDragHorizontalDirection();\r\n\r\n\t\t\tif (this.floating && horizontalDirection) {\r\n\t\t\t\treturn (\r\n\t\t\t\t\t(horizontalDirection === \"right\" && isOverRightHalf) ||\r\n\t\t\t\t\t(horizontalDirection === \"left\" && !isOverRightHalf)\r\n\t\t\t\t);\r\n\t\t\t} else {\r\n\t\t\t\treturn verticalDirection && (\r\n\t\t\t\t\t(verticalDirection === \"down\" && isOverBottomHalf) ||\r\n\t\t\t\t\t(verticalDirection === \"up\" && isOverTopHalf)\r\n\t\t\t\t);\r\n\t\t\t}\r\n\r\n\t\t},\r\n\r\n\t\t_contactContainers: function() {\r\n\r\n\t\t\tif (this.options.protectRoot && this.currentItem[0].parentNode === this.element[0] ) {\r\n\t\t\t\treturn;\r\n\t\t\t}\r\n\r\n\t\t\t$.ui.sortable.prototype._contactContainers.apply(this, arguments);\r\n\r\n\t\t},\r\n\r\n\t\t_clear: function() {\r\n\t\t\tvar i,\r\n\t\t\t\titem;\r\n\r\n\t\t\t$.ui.sortable.prototype._clear.apply(this, arguments);\r\n\r\n\t\t\t//relocate event\r\n\t\t\tif (!(this._pid_current === this._uiHash().item.parent().parent().attr(\"id\") &&\r\n\t\t\t\tthis._sort_current === this._uiHash().item.index())) {\r\n\t\t\t\tthis._trigger(\"relocate\", this._relocate_event, this._uiHash());\r\n\t\t\t}\r\n\r\n\t\t\t// mjs - clean last empty ul/ol\r\n\t\t\tfor (i = this.items.length - 1; i >= 0; i--) {\r\n\t\t\t\titem = this.items[i].item[0];\r\n\t\t\t\tthis._clearEmpty(item);\r\n\t\t\t}\r\n\r\n\t\t},\r\n\r\n\t\tserialize: function(options) {\r\n\r\n\t\t\tvar o = $.extend({}, this.options, options),\r\n\t\t\t\titems = this._getItemsAsjQuery(o && o.connected),\r\n\t\t\t\tstr = [];\r\n\r\n\t\t\t$(items).each(function() {\r\n\t\t\t\tvar res = ($(o.item || this).attr(o.attribute || \"id\") || \"\")\r\n\t\t\t\t\t\t.match(o.expression || (/(.+)[-=_](.+)/)),\r\n\t\t\t\t\tpid = ($(o.item || this).parent(o.listType)\r\n\t\t\t\t\t\t.parent(o.items)\r\n\t\t\t\t\t\t.attr(o.attribute || \"id\") || \"\")\r\n\t\t\t\t\t\t.match(o.expression || (/(.+)[-=_](.+)/));\r\n\r\n\t\t\t\tif (res) {\r\n\t\t\t\t\tstr.push(\r\n\t\t\t\t\t\t(\r\n\t\t\t\t\t\t\t(o.key || res[1]) +\r\n\t\t\t\t\t\t\t\"[\" +\r\n\t\t\t\t\t\t\t(o.key && o.expression ? res[1] : res[2]) + \"]\"\r\n\t\t\t\t\t\t) +\r\n\t\t\t\t\t\t\"=\" +\r\n\t\t\t\t\t\t(pid ? (o.key && o.expression ? pid[1] : pid[2]) : o.rootID));\r\n\t\t\t\t}\r\n\t\t\t});\r\n\r\n\t\t\tif (!str.length && o.key) {\r\n\t\t\t\tstr.push(o.key + \"=\");\r\n\t\t\t}\r\n\r\n\t\t\treturn str.join(\"&\");\r\n\r\n\t\t},\r\n\r\n\t\ttoHierarchy: function(options) {\r\n\r\n\t\t\tvar o = $.extend({}, this.options, options),\r\n\t\t\t\tret = [];\r\n\r\n\t\t\t$(this.element).children(o.items).each(function() {\r\n\t\t\t\tvar level = _recursiveItems(this);\r\n\t\t\t\tret.push(level);\r\n\t\t\t});\r\n\r\n\t\t\treturn ret;\r\n\r\n\t\t\tfunction _recursiveItems(item) {\r\n\t\t\t\tvar id = ($(item).attr(o.attribute || \"id\") || \"\").match(o.expression || (/(.+)[-=_](.+)/)),\r\n\t\t\t\t\tcurrentItem;\r\n\r\n\t\t\t\tvar data = $(item).data();\r\n\t\t\t\tif (data.nestedSortableItem) {\r\n\t\t\t\t\tdelete data.nestedSortableItem; // Remove the nestedSortableItem object from the data\r\n\t\t\t\t}\r\n\r\n\t\t\t\tif (id) {\r\n\t\t\t\t\tcurrentItem = {\r\n\t\t\t\t\t\t\"id\": id[2]\r\n\t\t\t\t\t};\r\n\r\n\t\t\t\t\tcurrentItem = $.extend({}, currentItem, data); // Combine the two objects\r\n\r\n\t\t\t\t\tif ($(item).children(o.listType).children(o.items).length > 0) {\r\n\t\t\t\t\t\tcurrentItem.children = [];\r\n\t\t\t\t\t\t$(item).children(o.listType).children(o.items).each(function() {\r\n\t\t\t\t\t\t\tvar level = _recursiveItems(this);\r\n\t\t\t\t\t\t\tcurrentItem.children.push(level);\r\n\t\t\t\t\t\t});\r\n\t\t\t\t\t}\r\n\t\t\t\t\treturn currentItem;\r\n\t\t\t\t}\r\n\t\t\t}\r\n\t\t},\r\n\r\n\t\ttoArray: function(options) {\r\n\r\n\t\t\tvar o = $.extend({}, this.options, options),\r\n\t\t\t\tsDepth = o.startDepthCount || 0,\r\n\t\t\t\tret = [],\r\n\t\t\t\tleft = 1;\r\n\r\n\t\t\tif (!o.excludeRoot) {\r\n\t\t\t\tret.push({\r\n\t\t\t\t\t\"item_id\": o.rootID,\r\n\t\t\t\t\t\"parent_id\": null,\r\n\t\t\t\t\t\"depth\": sDepth,\r\n\t\t\t\t\t\"left\": left,\r\n\t\t\t\t\t\"right\": ($(o.items, this.element).length + 1) * 2\r\n\t\t\t\t});\r\n\t\t\t\tleft++;\r\n\t\t\t}\r\n\r\n\t\t\t$(this.element).children(o.items).each(function() {\r\n\t\t\t\tleft = _recursiveArray(this, sDepth, left);\r\n\t\t\t});\r\n\r\n\t\t\tret = ret.sort(function(a, b) { return (a.left - b.left); });\r\n\r\n\t\t\treturn ret;\r\n\r\n\t\t\tfunction _recursiveArray(item, depth, _left) {\r\n\r\n\t\t\t\tvar right = _left + 1,\r\n\t\t\t\t\tid,\r\n\t\t\t\t\tpid,\r\n\t\t\t\t\tparentItem;\r\n\r\n\t\t\t\tif ($(item).children(o.listType).children(o.items).length > 0) {\r\n\t\t\t\t\tdepth++;\r\n\t\t\t\t\t$(item).children(o.listType).children(o.items).each(function() {\r\n\t\t\t\t\t\tright = _recursiveArray($(this), depth, right);\r\n\t\t\t\t\t});\r\n\t\t\t\t\tdepth--;\r\n\t\t\t\t}\r\n\r\n\t\t\t\tid = ($(item).attr(o.attribute || \"id\") || \"\").match(o.expression || (/(.+)[-=_](.+)/));\r\n\r\n\t\t\t\tif (depth === sDepth) {\r\n\t\t\t\t\tpid = o.rootID;\r\n\t\t\t\t} else {\r\n\t\t\t\t\tparentItem = ($(item).parent(o.listType)\r\n\t\t\t\t\t\t\t\t\t\t\t.parent(o.items)\r\n\t\t\t\t\t\t\t\t\t\t\t.attr(o.attribute || \"id\"))\r\n\t\t\t\t\t\t\t\t\t\t\t.match(o.expression || (/(.+)[-=_](.+)/));\r\n\t\t\t\t\tpid = parentItem[2];\r\n\t\t\t\t}\r\n\r\n\t\t\t\tif (id) {\r\n\t\t\t\t\tvar data = $(item).children('div').data();\r\n\t\t\t\t\tvar itemObj = $.extend( data, {\r\n\t\t\t\t\t\t\"id\":id[2],\r\n\t\t\t\t\t\t\"parent_id\":pid,\r\n\t\t\t\t\t\t\"depth\":depth,\r\n\t\t\t\t\t\t\"left\":_left,\r\n\t\t\t\t\t\t\"right\":right\r\n\t\t\t\t\t\t} );\r\n\t\t\t\t\tret.push( itemObj );\r\n\t\t\t\t}\r\n\r\n\t\t\t\t_left = right + 1;\r\n\t\t\t\treturn _left;\r\n\t\t\t}\r\n\r\n\t\t},\r\n\r\n\t\t_clearEmpty: function (item) {\r\n\t\t\tfunction replaceClass(elem, search, replace, swap) {\r\n\t\t\t\tif (swap) {\r\n\t\t\t\t\tsearch = [replace, replace = search][0];\r\n\t\t\t\t}\r\n\r\n\t\t\t\t$(elem).removeClass(search).addClass(replace);\r\n\t\t\t}\r\n\r\n\t\t\tvar o = this.options,\r\n\t\t\t\tchildrenList = $(item).children(o.listType),\r\n\t\t\t\thasChildren = childrenList.has('li').length;\r\n\r\n\t\t\tvar doNotClear =\r\n\t\t\t\to.doNotClear ||\r\n\t\t\t\thasChildren ||\r\n\t\t\t\to.protectRoot && $(item)[0] === this.element[0];\r\n\r\n\t\t\tif (o.isTree) {\r\n\t\t\t\treplaceClass(item, o.branchClass, o.leafClass, doNotClear);\r\n\t\t\t}\r\n\r\n\t\t\tif (!doNotClear) {\r\n\t\t\t\tchildrenList.parent().removeClass(o.expandedClass);\r\n\t\t\t\tchildrenList.remove();\r\n\t\t\t}\r\n\t\t},\r\n\r\n\t\t_getLevel: function(item) {\r\n\r\n\t\t\tvar level = 1,\r\n\t\t\t\tlist;\r\n\r\n\t\t\tif (this.options.listType) {\r\n\t\t\t\tlist = item.closest(this.options.listType);\r\n\t\t\t\twhile (list && list.length > 0 && !list.is(\".ui-sortable\")) {\r\n\t\t\t\t\tlevel++;\r\n\t\t\t\t\tlist = list.parent().closest(this.options.listType);\r\n\t\t\t\t}\r\n\t\t\t}\r\n\r\n\t\t\treturn level;\r\n\t\t},\r\n\r\n\t\t_getChildLevels: function(parent, depth) {\r\n\t\t\tvar self = this,\r\n\t\t\t\to = this.options,\r\n\t\t\t\tresult = 0;\r\n\t\t\tdepth = depth || 0;\r\n\r\n\t\t\t$(parent).children(o.listType).children(o.items).each(function(index, child) {\r\n\t\t\t\tresult = Math.max(self._getChildLevels(child, depth + 1), result);\r\n\t\t\t});\r\n\r\n\t\t\treturn depth ? result + 1 : result;\r\n\t\t},\r\n\r\n\t\t_isAllowed: function(parentItem, level, levels) {\r\n\t\t\tvar o = this.options,\r\n\t\t\t\t// this takes into account the maxLevels set to the recipient list\r\n\t\t\t\tmaxLevels = this\r\n\t\t\t\t\t.placeholder\r\n\t\t\t\t\t.closest(\".ui-sortable\")\r\n\t\t\t\t\t.nestedSortable(\"option\", \"maxLevels\"),\r\n\r\n\t\t\t\t// Check if the parent has changed to prevent it, when o.disableParentChange is true\r\n\t\t\t\toldParent = this.currentItem.parent().parent(),\r\n\t\t\t\tdisabledByParentchange = o.disableParentChange && (\r\n\t\t\t\t\t//From somewhere to somewhere else, except the root\r\n\t\t\t\t\ttypeof parentItem !== 'undefined' && !oldParent.is(parentItem) ||\r\n\t\t\t\t\ttypeof parentItem === 'undefined' && oldParent.is(\"li\")\t//From somewhere to the root\r\n\t\t\t\t);\r\n\t\t\t// mjs - is the root protected?\r\n\t\t\t// mjs - are we nesting too deep?\r\n\t\t\tif (\r\n\t\t\t\tdisabledByParentchange ||\r\n\t\t\t\t!o.isAllowed(this.placeholder, parentItem, this.currentItem)\r\n\t\t\t) {\r\n\t\t\t\tthis.placeholder.addClass(o.errorClass);\r\n\t\t\t\tif (maxLevels < levels && maxLevels !== 0) {\r\n\t\t\t\t\tthis.beyondMaxLevels = levels - maxLevels;\r\n\t\t\t\t} else {\r\n\t\t\t\t\tthis.beyondMaxLevels = 1;\r\n\t\t\t\t}\r\n\t\t\t} else {\r\n\t\t\t\tif (maxLevels < levels && maxLevels !== 0) {\r\n\t\t\t\t\tthis.placeholder.addClass(o.errorClass);\r\n\t\t\t\t\tthis.beyondMaxLevels = levels - maxLevels;\r\n\t\t\t\t} else {\r\n\t\t\t\t\tthis.placeholder.removeClass(o.errorClass);\r\n\t\t\t\t\tthis.beyondMaxLevels = 0;\r\n\t\t\t\t}\r\n\t\t\t}\r\n\t\t}\r\n\r\n\t}));\r\n\r\n\t$.mjs.nestedSortable.prototype.options = $.extend(\r\n\t\t{},\r\n\t\t$.ui.sortable.prototype.options,\r\n\t\t$.mjs.nestedSortable.prototype.options\r\n\t);\r\n}));\r\n"],"names":["factory","define","amd","window","jQuery","$","widget","extend","ui","sortable","prototype","options","disableParentChange","doNotClear","expandOnHover","isAllowed","isTree","listType","maxLevels","protectRoot","rootID","rtl","startCollapsed","tabSize","branchClass","collapsedClass","disableNestingClass","errorClass","expandedClass","hoveringClass","leafClass","disabledClass","_create","self","element","data","is","Error","tolerance","apply","arguments","items","each","$li","item","hasCollapsedClass","hasClass","hasExpandedClass","children","length","addClass","_destroy","removeData","_mouseDrag","event","i","itemElement","intersection","previousTopOffset","parentItem","level","childLevels","itemAfter","itemBefore","newList","method","a","previousItem","nextItem","helperIsNotSibling","o","scrolled","$document","document","position","_generatePosition","positionAbs","_convertPositionTo","lastPositionAbs","scroll","scrollParent","tagName","overflowOffset","top","offsetHeight","pageY","scrollSensitivity","scrollTop","scrollSpeed","left","offsetWidth","pageX","scrollLeft","height","width","ddmanager","dropBehaviour","prepareOffsets","placeholder","offset","axis","helper","style","hovering","mouseentered","_parentItem","parent","closest","call","_getLevel","_getChildLevels","createElement","_intersectsWithPointer","instance","currentContainer","className","indexOf","currentItem","contains","type","mouseenter","setTimeout","removeClass","refreshPositions","_trigger","_uiHash","direction","_intersectsWithSides","mouseleave","clearTimeout","parentNode","appendChild","undefined","prev","_rearrange","_clearEmpty","_previousItem","nodeName","toLowerCase","previousSibling","_nextItem","next","nextSibling","beyondMaxLevels","outerWidth","after","listItem","_isAllowed","prepend","_contactContainers","drag","_mouseStop","domPosition","_relocate_event","_pid_current","attr","_sort_current","index","x","reference","size","half","isOverBottomHalf","click","isOverTopHalf","isOverRightHalf","verticalDirection","_getDragVerticalDirection","horizontalDirection","_getDragHorizontalDirection","floating","_clear","serialize","_getItemsAsjQuery","connected","str","res","attribute","match","expression","pid","push","key","join","toHierarchy","ret","_recursiveItems","id","nestedSortableItem","toArray","sDepth","startDepthCount","excludeRoot","_recursiveArray","depth","_left","right","itemObj","sort","b","search","replace","childrenList","hasChildren","has","remove","list","result","child","Math","max","levels","nestedSortable","oldParent","disabledByParentchange","mjs"],"mappings":"CAYC,SAAUA,CAAO,EACjB,YAEK,AAAkB,CAAA,YAAlB,OAAOC,QAAyBA,OAAOC,GAAG,CAG9CD,OAAO,CACN,SACA,qBACA,CAAED,GAIHA,EAASG,OAAOC,MAAM,CAExB,EAAE,SAASC,CAAC,EACX,aAMAA,EAAEC,MAAM,CAAC,qBAAsBD,EAAEE,MAAM,CAAC,CAAC,EAAGF,EAAEG,EAAE,CAACC,QAAQ,CAACC,SAAS,CAAE,CAEpEC,QAAS,CACRC,oBAAqB,CAAA,EACrBC,WAAY,CAAA,EACZC,cAAe,IACfC,UAAW,WAAa,MAAO,CAAA,CAAM,EACrCC,OAAQ,CAAA,EACRC,SAAU,KACVC,UAAW,EACXC,YAAa,CAAA,EACbC,OAAQ,KACRC,IAAK,CAAA,EACLC,eAAgB,CAAA,EAChBC,QAAS,GAETC,YAAa,4BACbC,eAAgB,+BAChBC,oBAAqB,gCACrBC,WAAY,2BACZC,cAAe,8BACfC,cAAe,8BACfC,UAAW,0BACXC,cAAe,6BAChB,EAEAC,QAAS,WACR,IAAIC,EAAO,IAAI,CAMf,GAHA,IAAI,CAACC,OAAO,CAACC,IAAI,CAAC,cAAe,IAAI,CAACD,OAAO,CAACC,IAAI,CAAC,uBAG/C,CAAC,IAAI,CAACD,OAAO,CAACE,EAAE,CAAC,IAAI,CAACzB,OAAO,CAACM,QAAQ,EAIzC,MAAM,AAAIoB,MAHJ,wFAQH,CAAA,IAAI,CAAC1B,OAAO,CAACK,MAAM,EAAI,IAAI,CAACL,OAAO,CAACG,aAAa,EACpD,CAAA,IAAI,CAACH,OAAO,CAAC2B,SAAS,CAAG,WAAU,EAGpCjC,EAAEG,EAAE,CAACC,QAAQ,CAACC,SAAS,CAACsB,OAAO,CAACO,KAAK,CAAC,IAAI,CAAEC,WAIxC,IAAI,CAAC7B,OAAO,CAACK,MAAM,EACtBX,EAAE,IAAI,CAACoC,KAAK,EAA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AM,EAC7C,IAAI7I,EAAI,IAAI,CAAC3D,OAAO,CAEnBO,EAAY,IAAI,CACdgF,WAAW,CACXS,OAAO,CAAC,gBACRyG,cAAc,CAAC,SAAU,aAG3BC,EAAY,IAAI,CAAChG,WAAW,CAACX,MAAM,GAAGA,MAAM,EAS5C4G,AARyBhJ,CAAAA,EAAE1D,mBAAmB,EAE7C,CAAA,AAAsB,KAAA,IAAf+C,GAA8B,CAAC0J,EAAUjL,EAAE,CAACuB,IACnD,AAAsB,KAAA,IAAfA,GAA8B0J,EAAUjL,EAAE,CAAC,KAAI,GAMvD,CAACkC,EAAEvD,SAAS,CAAC,IAAI,CAACmF,WAAW,CAAEvC,EAAY,IAAI,CAAC0D,WAAW,GAE3D,IAAI,CAACnB,WAAW,CAAChD,QAAQ,CAACoB,EAAE3C,UAAU,EAClCT,EAAYiM,GAAUjM,AAAc,IAAdA,EACzB,IAAI,CAAC6H,eAAe,CAAGoE,EAASjM,EAEhC,IAAI,CAAC6H,eAAe,CAAG,GAGpB7H,EAAYiM,GAAUjM,AAAc,IAAdA,GACzB,IAAI,CAACgF,WAAW,CAAChD,QAAQ,CAACoB,EAAE3C,UAAU,EACtC,IAAI,CAACoH,eAAe,CAAGoE,EAASjM,IAEhC,IAAI,CAACgF,WAAW,CAACwB,WAAW,CAACpD,EAAE3C,UAAU,EACzC,IAAI,CAACoH,eAAe,CAAG,EAG1B,CAED,IAEA1I,EAAEkN,GAAG,CAACH,cAAc,CAAC1M,SAAS,CAACC,OAAO,CAAGN,EAAEE,MAAM,CAChD,CAAC,EACDF,EAAEG,EAAE,CAACC,QAAQ,CAACC,SAAS,CAACC,OAAO,CAC/BN,EAAEkN,GAAG,CAACH,cAAc,CAAC1M,SAAS,CAACC,OAAO,CAExC"} +{"version":3,"sources":[""],"sourcesContent":["/*\r\n * jQuery UI Nested Sortable\r\n * v 2.1a / 2016-02-04\r\n * https://github.com/ilikenwf/nestedSortable\r\n *\r\n * Depends on:\r\n *\t jquery.ui.sortable.js 1.10+\r\n *\r\n * Copyright (c) 2010-2016 Manuele J Sarfatti and contributors\r\n * Licensed under the MIT License\r\n * http://www.opensource.org/licenses/mit-license.php\r\n */\r\n(function( factory ) {\r\n\t\"use strict\";\r\n\r\n\tif ( typeof define === \"function\" && define.amd ) {\r\n\r\n\t\t// AMD. Register as an anonymous module.\r\n\t\tdefine([\r\n\t\t\t\"jquery\",\r\n\t\t\t\"jquery-ui/sortable\"\r\n\t\t], factory );\r\n\t} else {\r\n\r\n\t\t// Browser globals\r\n\t\tfactory( window.jQuery );\r\n\t}\r\n}(function($) {\r\n\t\"use strict\";\r\n\r\n\tfunction isOverAxis( x, reference, size ) {\r\n\t\treturn ( x > reference ) && ( x < ( reference + size ) );\r\n\t}\r\n\r\n\t$.widget(\"mjs.nestedSortable\", $.extend({}, $.ui.sortable.prototype, {\r\n\r\n\t\toptions: {\r\n\t\t\tdisableParentChange: false,\r\n\t\t\tdoNotClear: false,\r\n\t\t\texpandOnHover: 700,\r\n\t\t\tisAllowed: function() { return true; },\r\n\t\t\tisTree: false,\r\n\t\t\tlistType: \"ol\",\r\n\t\t\tmaxLevels: 0,\r\n\t\t\tprotectRoot: false,\r\n\t\t\trootID: null,\r\n\t\t\trtl: false,\r\n\t\t\tstartCollapsed: false,\r\n\t\t\ttabSize: 20,\r\n\r\n\t\t\tbranchClass: \"mjs-nestedSortable-branch\",\r\n\t\t\tcollapsedClass: \"mjs-nestedSortable-collapsed\",\r\n\t\t\tdisableNestingClass: \"mjs-nestedSortable-no-nesting\",\r\n\t\t\terrorClass: \"mjs-nestedSortable-error\",\r\n\t\t\texpandedClass: \"mjs-nestedSortable-expanded\",\r\n\t\t\thoveringClass: \"mjs-nestedSortable-hovering\",\r\n\t\t\tleafClass: \"mjs-nestedSortable-leaf\",\r\n\t\t\tdisabledClass: \"mjs-nestedSortable-disabled\"\r\n\t\t},\r\n\r\n\t\t_create: function() {\r\n\t\t\tvar self = this,\r\n\t\t\t\terr;\r\n\r\n\t\t\tthis.element.data(\"ui-sortable\", this.element.data(\"mjs-nestedSortable\"));\r\n\r\n\t\t\t// mjs - prevent browser from freezing if the HTML is not correct\r\n\t\t\tif (!this.element.is(this.options.listType)) {\r\n\t\t\t\terr = \"nestedSortable: \" +\r\n\t\t\t\t\t\"Please check that the listType option is set to your actual list type\";\r\n\r\n\t\t\t\tthrow new Error(err);\r\n\t\t\t}\r\n\r\n\t\t\t// if we have a tree with expanding/collapsing functionality,\r\n\t\t\t// force 'intersect' tolerance method\r\n\t\t\tif (this.options.isTree && this.options.expandOnHover) {\r\n\t\t\t\tthis.options.tolerance = \"intersect\";\r\n\t\t\t}\r\n\r\n\t\t\t$.ui.sortable.prototype._create.apply(this, arguments);\r\n\r\n\t\t\t// prepare the tree by applying the right classes\r\n\t\t\t// (the CSS is responsible for actual hide/show functionality)\r\n\t\t\tif (this.options.isTree) {\r\n\t\t\t\t$(this.items).each(function() {\r\n\t\t\t\t\tvar $li = this.item,\r\n\t\t\t\t\t\thasCollapsedClass = $li.hasClass(self.options.collapsedClass),\r\n\t\t\t\t\t\thasExpandedClass = $li.hasClass(self.options.expandedClass);\r\n\r\n\t\t\t\t\tif ($li.children(self.options.listType).length) {\r\n\t\t\t\t\t\t$li.addClass(self.options.branchClass);\r\n\t\t\t\t\t\t// expand/collapse class only if they have children\r\n\r\n\t\t\t\t\t\tif ( !hasCollapsedClass && !hasExpandedClass ) {\r\n\t\t\t\t\t\t\tif (self.options.startCollapsed) {\r\n\t\t\t\t\t\t\t\t$li.addClass(self.options.collapsedClass);\r\n\t\t\t\t\t\t\t} else {\r\n\t\t\t\t\t\t\t\t$li.addClass(self.options.expandedClass);\r\n\t\t\t\t\t\t\t}\r\n\t\t\t\t\t\t}\r\n\t\t\t\t\t} else {\r\n\t\t\t\t\t\t$li.addClass(self.options.leafClass);\r\n\t\t\t\t\t}\r\n\t\t\t\t});\r\n\t\t\t}\r\n\t\t},\r\n\r\n\t\t_destroy: function() {\r\n\t\t\tthis.element\r\n\t\t\t\t.removeData(\"mjs-nestedSortable\")\r\n\t\t\t\t.removeData(\"ui-sortable\");\r\n\t\t\treturn $.ui.sortable.prototype._destroy.apply(this, arguments);\r\n\t\t},\r\n\r\n\t\t_mouseDrag: function(event) {\r\n\t\t\tvar i,\r\n\t\t\t\titem,\r\n\t\t\t\titemElement,\r\n\t\t\t\tintersection,\r\n\t\t\t\tself = this,\r\n\t\t\t\to = this.options,\r\n\t\t\t\tscrolled = false,\r\n\t\t\t\t$document = $(document),\r\n\t\t\t\tpreviousTopOffset,\r\n\t\t\t\tparentItem,\r\n\t\t\t\tlevel,\r\n\t\t\t\tchildLevels,\r\n\t\t\t\titemAfter,\r\n\t\t\t\titemBefore,\r\n\t\t\t\tnewList,\r\n\t\t\t\tmethod,\r\n\t\t\t\ta,\r\n\t\t\t\tpreviousItem,\r\n\t\t\t\tnextItem,\r\n\t\t\t\thelperIsNotSibling;\r\n\r\n\t\t\t//Compute the helpers position\r\n\t\t\tthis.position = this._generatePosition(event);\r\n\t\t\tthis.positionAbs = this._convertPositionTo(\"absolute\");\r\n\r\n\t\t\tif (!this.lastPositionAbs) {\r\n\t\t\t\tthis.lastPositionAbs = this.positionAbs;\r\n\t\t\t}\r\n\r\n\t\t\t//Do scrolling\r\n\t\t\tif (this.options.scroll) {\r\n\t\t\t\tif (this.scrollParent[0] !== document && this.scrollParent[0].tagName !== \"HTML\") {\r\n\r\n\t\t\t\t\tif (\r\n\t\t\t\t\t\t(\r\n\t\t\t\t\t\t\tthis.overflowOffset.top +\r\n\t\t\t\t\t\t\tthis.scrollParent[0].offsetHeight\r\n\t\t\t\t\t\t) -\r\n\t\t\t\t\t\tevent.pageY <\r\n\t\t\t\t\t\to.scrollSensitivity\r\n\t\t\t\t\t) {\r\n\t\t\t\t\t\tscrolled = this.scrollParent.scrollTop() + o.scrollSpeed;\r\n\t\t\t\t\t\tthis.scrollParent.scrollTop(scrolled);\r\n\t\t\t\t\t} else if (\r\n\t\t\t\t\t\tevent.pageY -\r\n\t\t\t\t\t\tthis.overflowOffset.top <\r\n\t\t\t\t\t\to.scrollSensitivity\r\n\t\t\t\t\t) {\r\n\t\t\t\t\t\tscrolled = this.scrollParent.scrollTop() - o.scrollSpeed;\r\n\t\t\t\t\t\tthis.scrollParent.scrollTop(scrolled);\r\n\t\t\t\t\t}\r\n\r\n\t\t\t\t\tif (\r\n\t\t\t\t\t\t(\r\n\t\t\t\t\t\t\tthis.overflowOffset.left +\r\n\t\t\t\t\t\t\tthis.scrollParent[0].offsetWidth\r\n\t\t\t\t\t\t) -\r\n\t\t\t\t\t\tevent.pageX <\r\n\t\t\t\t\t\to.scrollSensitivity\r\n\t\t\t\t\t) {\r\n\t\t\t\t\t\tscrolled = this.scrollParent.scrollLeft() + o.scrollSpeed;\r\n\t\t\t\t\t\tthis.scrollParent.scrollLeft(scrolled);\r\n\t\t\t\t\t} else if (\r\n\t\t\t\t\t\tevent.pageX -\r\n\t\t\t\t\t\tthis.overflowOffset.left <\r\n\t\t\t\t\t\to.scrollSensitivity\r\n\t\t\t\t\t) {\r\n\t\t\t\t\t\tscrolled = this.scrollParent.scrollLeft() - o.scrollSpeed;\r\n\t\t\t\t\t\tthis.scrollParent.scrollLeft(scrolled);\r\n\t\t\t\t\t}\r\n\r\n\t\t\t\t} else {\r\n\r\n\t\t\t\t\tif (\r\n\t\t\t\t\t\tevent.pageY -\r\n\t\t\t\t\t\t$document.scrollTop() <\r\n\t\t\t\t\t\to.scrollSensitivity\r\n\t\t\t\t\t) {\r\n\t\t\t\t\t\tscrolled = $document.scrollTop() - o.scrollSpeed;\r\n\t\t\t\t\t\t$document.scrollTop(scrolled);\r\n\t\t\t\t\t} else if (\r\n\t\t\t\t\t\t$(window).height() -\r\n\t\t\t\t\t\t(\r\n\t\t\t\t\t\t\tevent.pageY -\r\n\t\t\t\t\t\t\t$document.scrollTop()\r\n\t\t\t\t\t\t) <\r\n\t\t\t\t\t\to.scrollSensitivity\r\n\t\t\t\t\t) {\r\n\t\t\t\t\t\tscrolled = $document.scrollTop() + o.scrollSpeed;\r\n\t\t\t\t\t\t$document.scrollTop(scrolled);\r\n\t\t\t\t\t}\r\n\r\n\t\t\t\t\tif (\r\n\t\t\t\t\t\tevent.pageX -\r\n\t\t\t\t\t\t$document.scrollLeft() <\r\n\t\t\t\t\t\to.scrollSensitivity\r\n\t\t\t\t\t) {\r\n\t\t\t\t\t\tscrolled = $document.scrollLeft() - o.scrollSpeed;\r\n\t\t\t\t\t\t$document.scrollLeft(scrolled);\r\n\t\t\t\t\t} else if (\r\n\t\t\t\t\t\t$(window).width() -\r\n\t\t\t\t\t\t(\r\n\t\t\t\t\t\t\tevent.pageX -\r\n\t\t\t\t\t\t\t$document.scrollLeft()\r\n\t\t\t\t\t\t) <\r\n\t\t\t\t\t\to.scrollSensitivity\r\n\t\t\t\t\t) {\r\n\t\t\t\t\t\tscrolled = $document.scrollLeft() + o.scrollSpeed;\r\n\t\t\t\t\t\t$document.scrollLeft(scrolled);\r\n\t\t\t\t\t}\r\n\r\n\t\t\t\t}\r\n\r\n\t\t\t\tif (scrolled !== false && $.ui.ddmanager && !o.dropBehaviour) {\r\n\t\t\t\t\t$.ui.ddmanager.prepareOffsets(this, event);\r\n\t\t\t\t}\r\n\t\t\t}\r\n\r\n\t\t\t//Regenerate the absolute position used for position checks\r\n\t\t\tthis.positionAbs = this._convertPositionTo(\"absolute\");\r\n\r\n\t\t\t// mjs - find the top offset before rearrangement,\r\n\t\t\tpreviousTopOffset = this.placeholder.offset().top;\r\n\r\n\t\t\t//Set the helper position\r\n\t\t\tif (!this.options.axis || this.options.axis !== \"y\") {\r\n\t\t\t\tthis.helper[0].style.left = this.position.left + \"px\";\r\n\t\t\t}\r\n\t\t\tif (!this.options.axis || this.options.axis !== \"x\") {\r\n\t\t\t\tthis.helper[0].style.top = (this.position.top) + \"px\";\r\n\t\t\t}\r\n\r\n\t\t\t// mjs - check and reset hovering state at each cycle\r\n\t\t\tthis.hovering = this.hovering ? this.hovering : null;\r\n\t\t\tthis.mouseentered = this.mouseentered ? this.mouseentered : false;\r\n\r\n\t\t\t// mjs - let's start caching some variables\r\n\t\t\t(function() {\r\n\t\t\t\tvar _parentItem = this.placeholder.parent().parent();\r\n\t\t\t\tif (_parentItem && _parentItem.closest(\".ui-sortable\").length) {\r\n\t\t\t\t\tparentItem = _parentItem;\r\n\t\t\t\t}\r\n\t\t\t}.call(this));\r\n\r\n\t\t\tlevel = this._getLevel(this.placeholder);\r\n\t\t\tchildLevels = this._getChildLevels(this.helper);\r\n\t\t\tnewList = document.createElement(o.listType);\r\n\r\n\t\t\t//Rearrange\r\n\t\t\tfor (i = this.items.length - 1; i >= 0; i--) {\r\n\r\n\t\t\t\t//Cache variables and intersection, continue if no intersection\r\n\t\t\t\titem = this.items[i];\r\n\t\t\t\titemElement = item.item[0];\r\n\t\t\t\tintersection = this._intersectsWithPointer(item);\r\n\t\t\t\tif (!intersection) {\r\n\t\t\t\t\tcontinue;\r\n\t\t\t\t}\r\n\r\n\t\t\t\t// Only put the placeholder inside the current Container, skip all\r\n\t\t\t\t// items form other containers. This works because when moving\r\n\t\t\t\t// an item from one container to another the\r\n\t\t\t\t// currentContainer is switched before the placeholder is moved.\r\n\t\t\t\t//\r\n\t\t\t\t// Without this moving items in \"sub-sortables\" can cause the placeholder to jitter\r\n\t\t\t\t// beetween the outer and inner container.\r\n\t\t\t\tif (item.instance !== this.currentContainer) {\r\n\t\t\t\t\tcontinue;\r\n\t\t\t\t}\r\n\r\n\t\t\t\t// No action if intersected item is disabled\r\n\t\t\t\t// and the element above or below in the direction we're going is also disabled\r\n\t\t\t\tif (itemElement.className.indexOf(o.disabledClass) !== -1) {\r\n\t\t\t\t\t// Note: intersection hardcoded direction values from\r\n\t\t\t\t\t// jquery.ui.sortable.js:_intersectsWithPointer\r\n\t\t\t\t\tif (intersection === 2) {\r\n\t\t\t\t\t\t// Going down\r\n\t\t\t\t\t\titemAfter = this.items[i + 1];\r\n\t\t\t\t\t\tif (itemAfter && itemAfter.item.hasClass(o.disabledClass)) {\r\n\t\t\t\t\t\t\tcontinue;\r\n\t\t\t\t\t\t}\r\n\r\n\t\t\t\t\t} else if (intersection === 1) {\r\n\t\t\t\t\t\t// Going up\r\n\t\t\t\t\t\titemBefore = this.items[i - 1];\r\n\t\t\t\t\t\tif (itemBefore && itemBefore.item.hasClass(o.disabledClass)) {\r\n\t\t\t\t\t\t\tcontinue;\r\n\t\t\t\t\t\t}\r\n\t\t\t\t\t}\r\n\t\t\t\t}\r\n\r\n\t\t\t\tmethod = intersection === 1 ? \"next\" : \"prev\";\r\n\r\n\t\t\t\t// cannot intersect with itself\r\n\t\t\t\t// no useless actions that have been done before\r\n\t\t\t\t// no action if the item moved is the parent of the item checked\r\n\t\t\t\tif (itemElement !== this.currentItem[0] &&\r\n\t\t\t\t\tthis.placeholder[method]()[0] !== itemElement &&\r\n\t\t\t\t\t!$.contains(this.placeholder[0], itemElement) &&\r\n\t\t\t\t\t(\r\n\t\t\t\t\t\tthis.options.type === \"semi-dynamic\" ?\r\n\t\t\t\t\t\t\t!$.contains(this.element[0], itemElement) :\r\n\t\t\t\t\t\t\ttrue\r\n\t\t\t\t\t)\r\n\t\t\t\t) {\r\n\r\n\t\t\t\t\t// mjs - we are intersecting an element:\r\n\t\t\t\t\t// trigger the mouseenter event and store this state\r\n\t\t\t\t\tif (!this.mouseentered) {\r\n\t\t\t\t\t\t$(itemElement).mouseenter();\r\n\t\t\t\t\t\tthis.mouseentered = true;\r\n\t\t\t\t\t}\r\n\r\n\t\t\t\t\t// mjs - if the element has children and they are hidden,\r\n\t\t\t\t\t// show them after a delay (CSS responsible)\r\n\t\t\t\t\tif (o.isTree && $(itemElement).hasClass(o.collapsedClass) && o.expandOnHover) {\r\n\t\t\t\t\t\tif (!this.hovering) {\r\n\t\t\t\t\t\t\t$(itemElement).addClass(o.hoveringClass);\r\n\t\t\t\t\t\t\tthis.hovering = window.setTimeout(function() {\r\n\t\t\t\t\t\t\t\t$(itemElement)\r\n\t\t\t\t\t\t\t\t\t.removeClass(o.collapsedClass)\r\n\t\t\t\t\t\t\t\t\t.addClass(o.expandedClass);\r\n\r\n\t\t\t\t\t\t\t\tself.refreshPositions();\r\n\t\t\t\t\t\t\t\tself._trigger(\"expand\", event, self._uiHash());\r\n\t\t\t\t\t\t\t}, o.expandOnHover);\r\n\t\t\t\t\t\t}\r\n\t\t\t\t\t}\r\n\r\n\t\t\t\t\tthis.direction = intersection === 1 ? \"down\" : \"up\";\r\n\r\n\t\t\t\t\t// mjs - rearrange the elements and reset timeouts and hovering state\r\n\t\t\t\t\tif (this.options.tolerance === \"pointer\" || this._intersectsWithSides(item)) {\r\n\t\t\t\t\t\t$(itemElement).mouseleave();\r\n\t\t\t\t\t\tthis.mouseentered = false;\r\n\t\t\t\t\t\t$(itemElement).removeClass(o.hoveringClass);\r\n\t\t\t\t\t\tif (this.hovering) {\r\n\t\t\t\t\t\t\twindow.clearTimeout(this.hovering);\r\n\t\t\t\t\t\t}\r\n\t\t\t\t\t\tthis.hovering = null;\r\n\r\n\t\t\t\t\t\t// mjs - do not switch container if\r\n\t\t\t\t\t\t// it's a root item and 'protectRoot' is true\r\n\t\t\t\t\t\t// or if it's not a root item but we are trying to make it root\r\n\t\t\t\t\t\tif (o.protectRoot &&\r\n\t\t\t\t\t\t\t!(\r\n\t\t\t\t\t\t\t\tthis.currentItem[0].parentNode === this.element[0] &&\r\n\t\t\t\t\t\t\t\t// it's a root item\r\n\t\t\t\t\t\t\t\titemElement.parentNode !== this.element[0]\r\n\t\t\t\t\t\t\t\t// it's intersecting a non-root item\r\n\t\t\t\t\t\t\t)\r\n\t\t\t\t\t\t) {\r\n\t\t\t\t\t\t\tif (this.currentItem[0].parentNode !== this.element[0] &&\r\n\t\t\t\t\t\t\t\titemElement.parentNode === this.element[0]\r\n\t\t\t\t\t\t\t) {\r\n\r\n\t\t\t\t\t\t\t\tif ( !$(itemElement).children(o.listType).length) {\r\n\t\t\t\t\t\t\t\t\titemElement.appendChild(newList);\r\n\t\t\t\t\t\t\t\t\tif (o.isTree) {\r\n\t\t\t\t\t\t\t\t\t\t$(itemElement)\r\n\t\t\t\t\t\t\t\t\t\t\t.removeClass(o.leafClass)\r\n\t\t\t\t\t\t\t\t\t\t\t.addClass(o.branchClass + \" \" + o.expandedClass);\r\n\t\t\t\t\t\t\t\t\t}\r\n\t\t\t\t\t\t\t\t}\r\n\r\n\t\t\t\t\t\t\t\tif (this.direction === \"down\") {\r\n\t\t\t\t\t\t\t\t\ta = $(itemElement).prev().children(o.listType);\r\n\t\t\t\t\t\t\t\t} else {\r\n\t\t\t\t\t\t\t\t\ta = $(itemElement).children(o.listType);\r\n\t\t\t\t\t\t\t\t}\r\n\r\n\t\t\t\t\t\t\t\tif (a[0] !== undefined) {\r\n\t\t\t\t\t\t\t\t\tthis._rearrange(event, null, a);\r\n\t\t\t\t\t\t\t\t}\r\n\r\n\t\t\t\t\t\t\t} else {\r\n\t\t\t\t\t\t\t\tthis._rearrange(event, item);\r\n\t\t\t\t\t\t\t}\r\n\t\t\t\t\t\t} else if (!o.protectRoot) {\r\n\t\t\t\t\t\t\tthis._rearrange(event, item);\r\n\t\t\t\t\t\t}\r\n\t\t\t\t\t} else {\r\n\t\t\t\t\t\tbreak;\r\n\t\t\t\t\t}\r\n\r\n\t\t\t\t\t// Clear emtpy ul's/ol's\r\n\t\t\t\t\tthis._clearEmpty(itemElement);\r\n\r\n\t\t\t\t\tthis._trigger(\"change\", event, this._uiHash());\r\n\t\t\t\t\tbreak;\r\n\t\t\t\t}\r\n\t\t\t}\r\n\r\n\t\t\t// mjs - to find the previous sibling in the list,\r\n\t\t\t// keep backtracking until we hit a valid list item.\r\n\t\t\t(function() {\r\n\t\t\t\tvar _previousItem = this.placeholder.prev();\r\n\t\t\t\tif (_previousItem.length) {\r\n\t\t\t\t\tpreviousItem = _previousItem;\r\n\t\t\t\t} else {\r\n\t\t\t\t\tpreviousItem = null;\r\n\t\t\t\t}\r\n\t\t\t}.call(this));\r\n\r\n\t\t\tif (previousItem != null) {\r\n\t\t\t\twhile (\r\n\t\t\t\t\tpreviousItem[0].nodeName.toLowerCase() !== \"li\" ||\r\n\t\t\t\t\tpreviousItem[0].className.indexOf(o.disabledClass) !== -1 ||\r\n\t\t\t\t\tpreviousItem[0] === this.currentItem[0] ||\r\n\t\t\t\t\tpreviousItem[0] === this.helper[0]\r\n\t\t\t\t) {\r\n\t\t\t\t\tif (previousItem[0].previousSibling) {\r\n\t\t\t\t\t\tpreviousItem = $(previousItem[0].previousSibling);\r\n\t\t\t\t\t} else {\r\n\t\t\t\t\t\tpreviousItem = null;\r\n\t\t\t\t\t\tbreak;\r\n\t\t\t\t\t}\r\n\t\t\t\t}\r\n\t\t\t}\r\n\r\n\t\t\t// mjs - to find the next sibling in the list,\r\n\t\t\t// keep stepping forward until we hit a valid list item.\r\n\t\t\t(function() {\r\n\t\t\t\tvar _nextItem = this.placeholder.next();\r\n\t\t\t\tif (_nextItem.length) {\r\n\t\t\t\t\tnextItem = _nextItem;\r\n\t\t\t\t} else {\r\n\t\t\t\t\tnextItem = null;\r\n\t\t\t\t}\r\n\t\t\t}.call(this));\r\n\r\n\t\t\tif (nextItem != null) {\r\n\t\t\t\twhile (\r\n\t\t\t\t\tnextItem[0].nodeName.toLowerCase() !== \"li\" ||\r\n\t\t\t\t\tnextItem[0].className.indexOf(o.disabledClass) !== -1 ||\r\n\t\t\t\t\tnextItem[0] === this.currentItem[0] ||\r\n\t\t\t\t\tnextItem[0] === this.helper[0]\r\n\t\t\t\t) {\r\n\t\t\t\t\tif (nextItem[0].nextSibling) {\r\n\t\t\t\t\t\tnextItem = $(nextItem[0].nextSibling);\r\n\t\t\t\t\t} else {\r\n\t\t\t\t\t\tnextItem = null;\r\n\t\t\t\t\t\tbreak;\r\n\t\t\t\t\t}\r\n\t\t\t\t}\r\n\t\t\t}\r\n\r\n\t\t\tthis.beyondMaxLevels = 0;\r\n\r\n\t\t\t// mjs - if the item is moved to the left, send it one level up\r\n\t\t\t// but only if it's at the bottom of the list\r\n\t\t\tif (parentItem != null &&\r\n\t\t\t\tnextItem == null &&\r\n\t\t\t\t!(o.protectRoot && parentItem[0].parentNode == this.element[0]) &&\r\n\t\t\t\t(\r\n\t\t\t\t\to.rtl &&\r\n\t\t\t\t\t(\r\n\t\t\t\t\t\tthis.positionAbs.left +\r\n\t\t\t\t\t\tthis.helper.outerWidth() > parentItem.offset().left +\r\n\t\t\t\t\t\tparentItem.outerWidth()\r\n\t\t\t\t\t) ||\r\n\t\t\t\t\t!o.rtl && (this.positionAbs.left < parentItem.offset().left)\r\n\t\t\t\t)\r\n\t\t\t) {\r\n\r\n\t\t\t\tparentItem.after(this.placeholder[0]);\r\n\t\t\t\thelperIsNotSibling = !parentItem\r\n\t\t\t\t\t\t\t\t\t\t\t.children(o.listItem)\r\n\t\t\t\t\t\t\t\t\t\t\t.children(\"li:visible:not(.ui-sortable-helper)\")\r\n\t\t\t\t\t\t\t\t\t\t\t.length;\r\n\t\t\t\tif (o.isTree && helperIsNotSibling) {\r\n\t\t\t\t\tparentItem\r\n\t\t\t\t\t\t.removeClass(this.options.branchClass + \" \" + this.options.expandedClass)\r\n\t\t\t\t\t\t.addClass(this.options.leafClass);\r\n\t\t\t\t}\r\n if(typeof parentItem !== 'undefined')\r\n\t\t\t\t this._clearEmpty(parentItem[0]);\r\n\t\t\t\tthis._trigger(\"change\", event, this._uiHash());\r\n\t\t\t\t// mjs - if the item is below a sibling and is moved to the right,\r\n\t\t\t\t// make it a child of that sibling\r\n\t\t\t} else if (previousItem != null &&\r\n\t\t\t\t!previousItem.hasClass(o.disableNestingClass) &&\r\n\t\t\t\t(\r\n\t\t\t\t\tpreviousItem.children(o.listType).length &&\r\n\t\t\t\t\tpreviousItem.children(o.listType).is(\":visible\") ||\r\n\t\t\t\t\t!previousItem.children(o.listType).length\r\n\t\t\t\t) &&\r\n\t\t\t\t!(o.protectRoot && this.currentItem[0].parentNode === this.element[0]) &&\r\n\t\t\t\t(\r\n\t\t\t\t\to.rtl &&\r\n\t\t\t\t\t(\r\n\t\t\t\t\t\tthis.positionAbs.left +\r\n\t\t\t\t\t\tthis.helper.outerWidth() <\r\n\t\t\t\t\t\tpreviousItem.offset().left +\r\n\t\t\t\t\t\tpreviousItem.outerWidth() -\r\n\t\t\t\t\t\to.tabSize\r\n\t\t\t\t\t) ||\r\n\t\t\t\t\t!o.rtl &&\r\n\t\t\t\t\t(this.positionAbs.left > previousItem.offset().left + o.tabSize)\r\n\t\t\t\t)\r\n\t\t\t) {\r\n\r\n\t\t\t\tthis._isAllowed(previousItem, level, level + childLevels + 1);\r\n\r\n\t\t\t\tif (!previousItem.children(o.listType).length) {\r\n\t\t\t\t\tpreviousItem[0].appendChild(newList);\r\n\t\t\t\t\tif (o.isTree) {\r\n\t\t\t\t\t\tpreviousItem\r\n\t\t\t\t\t\t\t.removeClass(o.leafClass)\r\n\t\t\t\t\t\t\t.addClass(o.branchClass + \" \" + o.expandedClass);\r\n\t\t\t\t\t}\r\n\t\t\t\t}\r\n\r\n\t\t\t\t// mjs - if this item is being moved from the top, add it to the top of the list.\r\n\t\t\t\tif (previousTopOffset && (previousTopOffset <= previousItem.offset().top)) {\r\n\t\t\t\t\tpreviousItem.children(o.listType).prepend(this.placeholder);\r\n\t\t\t\t} else {\r\n\t\t\t\t\t// mjs - otherwise, add it to the bottom of the list.\r\n\t\t\t\t\tpreviousItem.children(o.listType)[0].appendChild(this.placeholder[0]);\r\n\t\t\t\t}\r\n if(typeof parentItem !== 'undefined')\r\n\t\t\t\t this._clearEmpty(parentItem[0]);\r\n\t\t\t\tthis._trigger(\"change\", event, this._uiHash());\r\n\t\t\t} else {\r\n\t\t\t\tthis._isAllowed(parentItem, level, level + childLevels);\r\n\t\t\t}\r\n\r\n\t\t\t//Post events to containers\r\n\t\t\tthis._contactContainers(event);\r\n\r\n\t\t\t//Interconnect with droppables\r\n\t\t\tif ($.ui.ddmanager) {\r\n\t\t\t\t$.ui.ddmanager.drag(this, event);\r\n\t\t\t}\r\n\r\n\t\t\t//Call callbacks\r\n\t\t\tthis._trigger(\"sort\", event, this._uiHash());\r\n\r\n\t\t\tthis.lastPositionAbs = this.positionAbs;\r\n\t\t\treturn false;\r\n\r\n\t\t},\r\n\r\n\t\t_mouseStop: function(event) {\r\n\t\t\t// mjs - if the item is in a position not allowed, send it back\r\n\t\t\tif (this.beyondMaxLevels) {\r\n\r\n\t\t\t\tthis.placeholder.removeClass(this.options.errorClass);\r\n\r\n\t\t\t\tif (this.domPosition.prev) {\r\n\t\t\t\t\t$(this.domPosition.prev).after(this.placeholder);\r\n\t\t\t\t} else {\r\n\t\t\t\t\t$(this.domPosition.parent).prepend(this.placeholder);\r\n\t\t\t\t}\r\n\r\n\t\t\t\tthis._trigger(\"revert\", event, this._uiHash());\r\n\r\n\t\t\t}\r\n\r\n\t\t\t// mjs - clear the hovering timeout, just to be sure\r\n\t\t\t$(\".\" + this.options.hoveringClass)\r\n\t\t\t\t.mouseleave()\r\n\t\t\t\t.removeClass(this.options.hoveringClass);\r\n\r\n\t\t\tthis.mouseentered = false;\r\n\t\t\tif (this.hovering) {\r\n\t\t\t\twindow.clearTimeout(this.hovering);\r\n\t\t\t}\r\n\t\t\tthis.hovering = null;\r\n\r\n\t\t\tthis._relocate_event = event;\r\n\t\t\tthis._pid_current = $(this.domPosition.parent).parent().attr(\"id\");\r\n\t\t\tthis._sort_current = this.domPosition.prev ? $(this.domPosition.prev).next().index() : 0;\r\n\t\t\t$.ui.sortable.prototype._mouseStop.apply(this, arguments); //asybnchronous execution, @see _clear for the relocate event.\r\n\t\t},\r\n\r\n\t\t// mjs - this function is slightly modified\r\n\t\t// to make it easier to hover over a collapsed element and have it expand\r\n\t\t_intersectsWithSides: function(item) {\r\n\r\n\t\t\tvar half = this.options.isTree ? .8 : .5,\r\n\t\t\t\tisOverBottomHalf = isOverAxis(\r\n\t\t\t\t\tthis.positionAbs.top + this.offset.click.top,\r\n\t\t\t\t\titem.top + (item.height * half),\r\n\t\t\t\t\titem.height\r\n\t\t\t\t),\r\n\t\t\t\tisOverTopHalf = isOverAxis(\r\n\t\t\t\t\tthis.positionAbs.top + this.offset.click.top,\r\n\t\t\t\t\titem.top - (item.height * half),\r\n\t\t\t\t\titem.height\r\n\t\t\t\t),\r\n\t\t\t\tisOverRightHalf = isOverAxis(\r\n\t\t\t\t\tthis.positionAbs.left + this.offset.click.left,\r\n\t\t\t\t\titem.left + (item.width / 2),\r\n\t\t\t\t\titem.width\r\n\t\t\t\t),\r\n\t\t\t\tverticalDirection = this._getDragVerticalDirection(),\r\n\t\t\t\thorizontalDirection = this._getDragHorizontalDirection();\r\n\r\n\t\t\tif (this.floating && horizontalDirection) {\r\n\t\t\t\treturn (\r\n\t\t\t\t\t(horizontalDirection === \"right\" && isOverRightHalf) ||\r\n\t\t\t\t\t(horizontalDirection === \"left\" && !isOverRightHalf)\r\n\t\t\t\t);\r\n\t\t\t} else {\r\n\t\t\t\treturn verticalDirection && (\r\n\t\t\t\t\t(verticalDirection === \"down\" && isOverBottomHalf) ||\r\n\t\t\t\t\t(verticalDirection === \"up\" && isOverTopHalf)\r\n\t\t\t\t);\r\n\t\t\t}\r\n\r\n\t\t},\r\n\r\n\t\t_contactContainers: function() {\r\n\r\n\t\t\tif (this.options.protectRoot && this.currentItem[0].parentNode === this.element[0] ) {\r\n\t\t\t\treturn;\r\n\t\t\t}\r\n\r\n\t\t\t$.ui.sortable.prototype._contactContainers.apply(this, arguments);\r\n\r\n\t\t},\r\n\r\n\t\t_clear: function() {\r\n\t\t\tvar i,\r\n\t\t\t\titem;\r\n\r\n\t\t\t$.ui.sortable.prototype._clear.apply(this, arguments);\r\n\r\n\t\t\t//relocate event\r\n\t\t\tif (!(this._pid_current === this._uiHash().item.parent().parent().attr(\"id\") &&\r\n\t\t\t\tthis._sort_current === this._uiHash().item.index())) {\r\n\t\t\t\tthis._trigger(\"relocate\", this._relocate_event, this._uiHash());\r\n\t\t\t}\r\n\r\n\t\t\t// mjs - clean last empty ul/ol\r\n\t\t\tfor (i = this.items.length - 1; i >= 0; i--) {\r\n\t\t\t\titem = this.items[i].item[0];\r\n\t\t\t\tthis._clearEmpty(item);\r\n\t\t\t}\r\n\r\n\t\t},\r\n\r\n\t\tserialize: function(options) {\r\n\r\n\t\t\tvar o = $.extend({}, this.options, options),\r\n\t\t\t\titems = this._getItemsAsjQuery(o && o.connected),\r\n\t\t\t\tstr = [];\r\n\r\n\t\t\t$(items).each(function() {\r\n\t\t\t\tvar res = ($(o.item || this).attr(o.attribute || \"id\") || \"\")\r\n\t\t\t\t\t\t.match(o.expression || (/(.+)[-=_](.+)/)),\r\n\t\t\t\t\tpid = ($(o.item || this).parent(o.listType)\r\n\t\t\t\t\t\t.parent(o.items)\r\n\t\t\t\t\t\t.attr(o.attribute || \"id\") || \"\")\r\n\t\t\t\t\t\t.match(o.expression || (/(.+)[-=_](.+)/));\r\n\r\n\t\t\t\tif (res) {\r\n\t\t\t\t\tstr.push(\r\n\t\t\t\t\t\t(\r\n\t\t\t\t\t\t\t(o.key || res[1]) +\r\n\t\t\t\t\t\t\t\"[\" +\r\n\t\t\t\t\t\t\t(o.key && o.expression ? res[1] : res[2]) + \"]\"\r\n\t\t\t\t\t\t) +\r\n\t\t\t\t\t\t\"=\" +\r\n\t\t\t\t\t\t(pid ? (o.key && o.expression ? pid[1] : pid[2]) : o.rootID));\r\n\t\t\t\t}\r\n\t\t\t});\r\n\r\n\t\t\tif (!str.length && o.key) {\r\n\t\t\t\tstr.push(o.key + \"=\");\r\n\t\t\t}\r\n\r\n\t\t\treturn str.join(\"&\");\r\n\r\n\t\t},\r\n\r\n\t\ttoHierarchy: function(options) {\r\n\r\n\t\t\tvar o = $.extend({}, this.options, options),\r\n\t\t\t\tret = [];\r\n\r\n\t\t\t$(this.element).children(o.items).each(function() {\r\n\t\t\t\tvar level = _recursiveItems(this);\r\n\t\t\t\tret.push(level);\r\n\t\t\t});\r\n\r\n\t\t\treturn ret;\r\n\r\n\t\t\tfunction _recursiveItems(item) {\r\n\t\t\t\tvar id = ($(item).attr(o.attribute || \"id\") || \"\").match(o.expression || (/(.+)[-=_](.+)/)),\r\n\t\t\t\t\tcurrentItem;\r\n\r\n\t\t\t\tvar data = $(item).data();\r\n\t\t\t\tif (data.nestedSortableItem) {\r\n\t\t\t\t\tdelete data.nestedSortableItem; // Remove the nestedSortableItem object from the data\r\n\t\t\t\t}\r\n\r\n\t\t\t\tif (id) {\r\n\t\t\t\t\tcurrentItem = {\r\n\t\t\t\t\t\t\"id\": id[2]\r\n\t\t\t\t\t};\r\n\r\n\t\t\t\t\tcurrentItem = $.extend({}, currentItem, data); // Combine the two objects\r\n\r\n\t\t\t\t\tif ($(item).children(o.listType).children(o.items).length > 0) {\r\n\t\t\t\t\t\tcurrentItem.children = [];\r\n\t\t\t\t\t\t$(item).children(o.listType).children(o.items).each(function() {\r\n\t\t\t\t\t\t\tvar level = _recursiveItems(this);\r\n\t\t\t\t\t\t\tcurrentItem.children.push(level);\r\n\t\t\t\t\t\t});\r\n\t\t\t\t\t}\r\n\t\t\t\t\treturn currentItem;\r\n\t\t\t\t}\r\n\t\t\t}\r\n\t\t},\r\n\r\n\t\ttoArray: function(options) {\r\n\r\n\t\t\tvar o = $.extend({}, this.options, options),\r\n\t\t\t\tsDepth = o.startDepthCount || 0,\r\n\t\t\t\tret = [],\r\n\t\t\t\tleft = 1;\r\n\r\n\t\t\tif (!o.excludeRoot) {\r\n\t\t\t\tret.push({\r\n\t\t\t\t\t\"item_id\": o.rootID,\r\n\t\t\t\t\t\"parent_id\": null,\r\n\t\t\t\t\t\"depth\": sDepth,\r\n\t\t\t\t\t\"left\": left,\r\n\t\t\t\t\t\"right\": ($(o.items, this.element).length + 1) * 2\r\n\t\t\t\t});\r\n\t\t\t\tleft++;\r\n\t\t\t}\r\n\r\n\t\t\t$(this.element).children(o.items).each(function() {\r\n\t\t\t\tleft = _recursiveArray(this, sDepth, left);\r\n\t\t\t});\r\n\r\n\t\t\tret = ret.sort(function(a, b) { return (a.left - b.left); });\r\n\r\n\t\t\treturn ret;\r\n\r\n\t\t\tfunction _recursiveArray(item, depth, _left) {\r\n\r\n\t\t\t\tvar right = _left + 1,\r\n\t\t\t\t\tid,\r\n\t\t\t\t\tpid,\r\n\t\t\t\t\tparentItem;\r\n\r\n\t\t\t\tif ($(item).children(o.listType).children(o.items).length > 0) {\r\n\t\t\t\t\tdepth++;\r\n\t\t\t\t\t$(item).children(o.listType).children(o.items).each(function() {\r\n\t\t\t\t\t\tright = _recursiveArray($(this), depth, right);\r\n\t\t\t\t\t});\r\n\t\t\t\t\tdepth--;\r\n\t\t\t\t}\r\n\r\n\t\t\t\tid = ($(item).attr(o.attribute || \"id\") || \"\").match(o.expression || (/(.+)[-=_](.+)/));\r\n\r\n\t\t\t\tif (depth === sDepth) {\r\n\t\t\t\t\tpid = o.rootID;\r\n\t\t\t\t} else {\r\n\t\t\t\t\tparentItem = ($(item).parent(o.listType)\r\n\t\t\t\t\t\t\t\t\t\t\t.parent(o.items)\r\n\t\t\t\t\t\t\t\t\t\t\t.attr(o.attribute || \"id\"))\r\n\t\t\t\t\t\t\t\t\t\t\t.match(o.expression || (/(.+)[-=_](.+)/));\r\n\t\t\t\t\tpid = parentItem[2];\r\n\t\t\t\t}\r\n\r\n\t\t\t\tif (id) {\r\n\t\t\t\t\tvar data = $(item).children('div').data();\r\n\t\t\t\t\tvar itemObj = $.extend( data, {\r\n\t\t\t\t\t\t\"id\":id[2],\r\n\t\t\t\t\t\t\"parent_id\":pid,\r\n\t\t\t\t\t\t\"depth\":depth,\r\n\t\t\t\t\t\t\"left\":_left,\r\n\t\t\t\t\t\t\"right\":right\r\n\t\t\t\t\t\t} );\r\n\t\t\t\t\tret.push( itemObj );\r\n\t\t\t\t}\r\n\r\n\t\t\t\t_left = right + 1;\r\n\t\t\t\treturn _left;\r\n\t\t\t}\r\n\r\n\t\t},\r\n\r\n\t\t_clearEmpty: function (item) {\r\n\t\t\tfunction replaceClass(elem, search, replace, swap) {\r\n\t\t\t\tif (swap) {\r\n\t\t\t\t\tsearch = [replace, replace = search][0];\r\n\t\t\t\t}\r\n\r\n\t\t\t\t$(elem).removeClass(search).addClass(replace);\r\n\t\t\t}\r\n\r\n\t\t\tvar o = this.options,\r\n\t\t\t\tchildrenList = $(item).children(o.listType),\r\n\t\t\t\thasChildren = childrenList.has('li').length;\r\n\r\n\t\t\tvar doNotClear =\r\n\t\t\t\to.doNotClear ||\r\n\t\t\t\thasChildren ||\r\n\t\t\t\to.protectRoot && $(item)[0] === this.element[0];\r\n\r\n\t\t\tif (o.isTree) {\r\n\t\t\t\treplaceClass(item, o.branchClass, o.leafClass, doNotClear);\r\n\t\t\t}\r\n\r\n\t\t\tif (!doNotClear) {\r\n\t\t\t\tchildrenList.parent().removeClass(o.expandedClass);\r\n\t\t\t\tchildrenList.remove();\r\n\t\t\t}\r\n\t\t},\r\n\r\n\t\t_getLevel: function(item) {\r\n\r\n\t\t\tvar level = 1,\r\n\t\t\t\tlist;\r\n\r\n\t\t\tif (this.options.listType) {\r\n\t\t\t\tlist = item.closest(this.options.listType);\r\n\t\t\t\twhile (list && list.length > 0 && !list.is(\".ui-sortable\")) {\r\n\t\t\t\t\tlevel++;\r\n\t\t\t\t\tlist = list.parent().closest(this.options.listType);\r\n\t\t\t\t}\r\n\t\t\t}\r\n\r\n\t\t\treturn level;\r\n\t\t},\r\n\r\n\t\t_getChildLevels: function(parent, depth) {\r\n\t\t\tvar self = this,\r\n\t\t\t\to = this.options,\r\n\t\t\t\tresult = 0;\r\n\t\t\tdepth = depth || 0;\r\n\r\n\t\t\t$(parent).children(o.listType).children(o.items).each(function(index, child) {\r\n\t\t\t\tresult = Math.max(self._getChildLevels(child, depth + 1), result);\r\n\t\t\t});\r\n\r\n\t\t\treturn depth ? result + 1 : result;\r\n\t\t},\r\n\r\n\t\t_isAllowed: function(parentItem, level, levels) {\r\n\t\t\tvar o = this.options,\r\n\t\t\t\t// this takes into account the maxLevels set to the recipient list\r\n\t\t\t\tmaxLevels = this\r\n\t\t\t\t\t.placeholder\r\n\t\t\t\t\t.closest(\".ui-sortable\")\r\n\t\t\t\t\t.nestedSortable(\"option\", \"maxLevels\"),\r\n\r\n\t\t\t\t// Check if the parent has changed to prevent it, when o.disableParentChange is true\r\n\t\t\t\toldParent = this.currentItem.parent().parent(),\r\n\t\t\t\tdisabledByParentchange = o.disableParentChange && (\r\n\t\t\t\t\t//From somewhere to somewhere else, except the root\r\n\t\t\t\t\ttypeof parentItem !== 'undefined' && !oldParent.is(parentItem) ||\r\n\t\t\t\t\ttypeof parentItem === 'undefined' && oldParent.is(\"li\")\t//From somewhere to the root\r\n\t\t\t\t);\r\n\t\t\t// mjs - is the root protected?\r\n\t\t\t// mjs - are we nesting too deep?\r\n\t\t\tif (\r\n\t\t\t\tdisabledByParentchange ||\r\n\t\t\t\t!o.isAllowed(this.placeholder, parentItem, this.currentItem)\r\n\t\t\t) {\r\n\t\t\t\tthis.placeholder.addClass(o.errorClass);\r\n\t\t\t\tif (maxLevels < levels && maxLevels !== 0) {\r\n\t\t\t\t\tthis.beyondMaxLevels = levels - maxLevels;\r\n\t\t\t\t} else {\r\n\t\t\t\t\tthis.beyondMaxLevels = 1;\r\n\t\t\t\t}\r\n\t\t\t} else {\r\n\t\t\t\tif (maxLevels < levels && maxLevels !== 0) {\r\n\t\t\t\t\tthis.placeholder.addClass(o.errorClass);\r\n\t\t\t\t\tthis.beyondMaxLevels = levels - maxLevels;\r\n\t\t\t\t} else {\r\n\t\t\t\t\tthis.placeholder.removeClass(o.errorClass);\r\n\t\t\t\t\tthis.beyondMaxLevels = 0;\r\n\t\t\t\t}\r\n\t\t\t}\r\n\t\t}\r\n\r\n\t}));\r\n\r\n\t$.mjs.nestedSortable.prototype.options = $.extend(\r\n\t\t{},\r\n\t\t$.ui.sortable.prototype.options,\r\n\t\t$.mjs.nestedSortable.prototype.options\r\n\t);\r\n}));\r\n"],"names":["factory","define","amd","window","jQuery","$","widget","extend","ui","sortable","prototype","options","disableParentChange","doNotClear","expandOnHover","isAllowed","isTree","listType","maxLevels","protectRoot","rootID","rtl","startCollapsed","tabSize","branchClass","collapsedClass","disableNestingClass","errorClass","expandedClass","hoveringClass","leafClass","disabledClass","_create","self","element","data","is","Error","tolerance","apply","arguments","items","each","$li","item","hasCollapsedClass","hasClass","hasExpandedClass","children","length","addClass","_destroy","removeData","_mouseDrag","event","i","itemElement","intersection","previousTopOffset","parentItem","level","childLevels","itemAfter","itemBefore","newList","method","a","previousItem","nextItem","helperIsNotSibling","o","scrolled","$document","document","position","_generatePosition","positionAbs","_convertPositionTo","lastPositionAbs","scroll","scrollParent","tagName","overflowOffset","top","offsetHeight","pageY","scrollSensitivity","scrollTop","scrollSpeed","left","offsetWidth","pageX","scrollLeft","height","width","ddmanager","dropBehaviour","prepareOffsets","placeholder","offset","axis","helper","style","hovering","mouseentered","_parentItem","parent","closest","call","_getLevel","_getChildLevels","createElement","_intersectsWithPointer","instance","currentContainer","className","indexOf","currentItem","contains","type","mouseenter","setTimeout","removeClass","refreshPositions","_trigger","_uiHash","direction","_intersectsWithSides","mouseleave","clearTimeout","parentNode","appendChild","undefined","prev","_rearrange","_clearEmpty","_previousItem","nodeName","toLowerCase","previousSibling","_nextItem","next","nextSibling","beyondMaxLevels","outerWidth","after","listItem","_isAllowed","prepend","_contactContainers","drag","_mouseStop","domPosition","_relocate_event","_pid_current","attr","_sort_current","index","x","reference","size","half","isOverBottomHalf","click","isOverTopHalf","isOverRightHalf","verticalDirection","_getDragVerticalDirection","horizontalDirection","_getDragHorizontalDirection","floating","_clear","serialize","_getItemsAsjQuery","connected","str","res","attribute","match","expression","pid","push","key","join","toHierarchy","ret","_recursiveItems","id","nestedSortableItem","toArray","sDepth","startDepthCount","excludeRoot","_recursiveArray","depth","_left","right","itemObj","sort","b","search","replace","childrenList","hasChildren","has","remove","list","result","child","Math","max","levels","nestedSortable","oldParent","disabledByParentchange","mjs"],"mappings":"CAYC,SAAUA,CAAO,EACjB,YAEK,AAAkB,CAAA,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BACRyG,cAAc,CAAC,SAAU,aAG3BC,EAAY,IAAI,CAAChG,WAAW,CAACX,MAAM,GAAGA,MAAM,EAS5C4G,AARyBhJ,CAAAA,EAAE1D,mBAAmB,EAE7C,CAAA,AAAsB,KAAA,IAAf+C,GAA8B,CAAC0J,EAAUjL,EAAE,CAACuB,IACnD,AAAsB,KAAA,IAAfA,GAA8B0J,EAAUjL,EAAE,CAAC,KAAI,GAMvD,CAACkC,EAAEvD,SAAS,CAAC,IAAI,CAACmF,WAAW,CAAEvC,EAAY,IAAI,CAAC0D,WAAW,GAE3D,IAAI,CAACnB,WAAW,CAAChD,QAAQ,CAACoB,EAAE3C,UAAU,EAClCT,EAAYiM,GAAUjM,AAAc,IAAdA,EACzB,IAAI,CAAC6H,eAAe,CAAGoE,EAASjM,EAEhC,IAAI,CAAC6H,eAAe,CAAG,GAGpB7H,EAAYiM,GAAUjM,AAAc,IAAdA,GACzB,IAAI,CAACgF,WAAW,CAAChD,QAAQ,CAACoB,EAAE3C,UAAU,EACtC,IAAI,CAACoH,eAAe,CAAGoE,EAASjM,IAEhC,IAAI,CAACgF,WAAW,CAACwB,WAAW,CAACpD,EAAE3C,UAAU,EACzC,IAAI,CAACoH,eAAe,CAAG,EAG1B,CAED,IAEA1I,EAAEkN,GAAG,CAACH,cAAc,CAAC1M,SAAS,CAACC,OAAO,CAAGN,EAAEE,MAAM,CAChD,CAAC,EACDF,EAAEG,EAAE,CAACC,QAAQ,CAACC,SAAS,CAACC,OAAO,CAC/BN,EAAEkN,GAAG,CAACH,cAAc,CAAC1M,SAAS,CAACC,OAAO,CAExC"}asd \ No newline at end of file diff --git a/src/OrchardCore.Modules/OrchardCore.Notifications/wwwroot/Scripts/notification-manager.map b/src/OrchardCore.Modules/OrchardCore.Notifications/wwwroot/Scripts/notification-manager.map index e7e61598222..0b7b1887c5b 100644 --- a/src/OrchardCore.Modules/OrchardCore.Notifications/wwwroot/Scripts/notification-manager.map +++ b/src/OrchardCore.Modules/OrchardCore.Notifications/wwwroot/Scripts/notification-manager.map @@ -1 +1 @@ -{"version":3,"sources":[""],"sourcesContent":["notificationManager = function () {\r\n\r\n const removeItem = (values, value) => {\r\n const index = values.indexOf(value);\r\n\r\n if (index > -1) {\r\n values.splice(index, 1);\r\n\r\n return true;\r\n }\r\n\r\n return false;\r\n }\r\n\r\n const initialize = (readUrl, wrapperSelector) => {\r\n\r\n if (!readUrl) {\r\n console.log('No readUrl was provided.');\r\n\r\n return;\r\n }\r\n\r\n const reading = [];\r\n\r\n var elements = document.getElementsByClassName('mark-notification-as-read');\r\n\r\n for (let i = 0; i < elements.length; i++) {\r\n\r\n ['click', 'mouseover'].forEach((evt) => {\r\n elements[i].addEventListener(evt, (e) => {\r\n\r\n if (e.target.getAttribute('data-is-read') != \"false\") {\r\n return;\r\n }\r\n\r\n var messageId = e.target.getAttribute('data-message-id');\r\n\r\n if (!messageId) {\r\n return;\r\n }\r\n\r\n if (reading.includes(messageId)) {\r\n // If a message is pending request, no need to send another request.\r\n return;\r\n }\r\n\r\n reading.push(messageId);\r\n\r\n fetch(readUrl, {\r\n method: 'POST',\r\n headers: {\r\n 'Content-Type': 'application/json'\r\n },\r\n body: JSON.stringify({ messageId: messageId })\r\n }).then(response => response.json())\r\n .then(result => {\r\n if (result.updated) {\r\n if (wrapperSelector) {\r\n var wrapper = e.target.closest(wrapperSelector);\r\n if (wrapper) {\r\n wrapper.classList.remove('notification-is-unread');\r\n wrapper.classList.add('notification-is-read');\r\n wrapper.setAttribute('data-is-read', true);\r\n removeItem(reading, messageId);\r\n }\r\n } else {\r\n e.target.classList.remove('notification-is-unread');\r\n e.target.classList.add('notification-is-read');\r\n e.target.setAttribute('data-is-read', true);\r\n removeItem(reading, messageId);\r\n }\r\n }\r\n\r\n var targetUrl = e.target.getAttribute('data-target-url');\r\n\r\n if (targetUrl) {\r\n window.location.href = targetUrl;\r\n }\r\n });\r\n });\r\n });\r\n }\r\n }\r\n\r\n return {\r\n initializeContainer: initialize\r\n };\r\n}();\r\n"],"names":["notificationManager","removeItem","values","value","index","indexOf","splice","initializeContainer","readUrl","wrapperSelector","console","log","reading","elements","document","getElementsByClassName","i","length","forEach","evt","addEventListener","e","target","getAttribute","messageId","includes","push","fetch","method","headers","body","JSON","stringify","then","response","json","result","updated","wrapper","closest","classList","remove","add","setAttribute","targetUrl","window","location","href"],"mappings":"AAAAA,oBAAsB,WAElB,IAAMC,EAAa,CAACC,EAAQC,KACxB,IAAMC,EAAQF,EAAOG,OAAO,CAACF,UAE7B,AAAIC,EAAQ,KACRF,EAAOI,MAAM,CAACF,EAAO,GAEd,CAAA,EAIf,EAwEA,MAAO,CACHG,oBAvEe,CAACC,EAASC,KAEzB,GAAI,CAACD,EAAS,CACVE,QAAQC,GAAG,CAAC,4BAEZ,MACJ,CAEA,IAAMC,EAAU,EAAE,CAElB,IAAIC,EAAWC,SAASC,sBAAsB,CAAC,6BAE/C,IAAK,IAAIC,EAAI,EAAGA,EAAIH,EAASI,MAAM,CAAED,IAEjC,CAAC,QAAS,YAAY,CAACE,OAAO,CAAC,AAACC,IAC5BN,CAAQ,CAACG,EAAE,CAACI,gBAAgB,CAACD,EAAK,AAACE,IAE/B,GAAIA,AAAyC,SAAzCA,EAAEC,MAAM,CAACC,YAAY,CAAC,iBAI1B,IAAIC,EAAYH,EAAEC,MAAM,CAACC,YAAY,CAAC,kBAElC,EAACC,GAIDZ,EAAQa,QAAQ,CAACD,KAKrBZ,EAAQc,IAAI,CAACF,GAEbG,MAAMnB,EAAS,CACXoB,OAAQ,OACRC,QAAS,CACL,eAAgB,kBACpB,EACAC,KAAMC,KAAKC,SAAS,CAAC,CAAER,UAAWA,CAAU,EAChD,GAAGS,IAAI,CAACC,GAAYA,EAASC,IAAI,IAC5BF,IAAI,CAACG,IACF,GAAIA,EAAOC,OAAO,EACd,GAAI5B,EAAiB,CACjB,IAAI6B,EAAUjB,EAAEC,MAAM,CAACiB,OAAO,CAAC9B,GAC3B6B,IACAA,EAAQE,SAAS,CAACC,MAAM,CAAC,0BACzBH,EAAQE,SAAS,CAACE,GAAG,CAAC,wBACtBJ,EAAQK,YAAY,CAAC,eAAgB,CAAA,GACrC1C,EAAWW,EAASY,GAE5B,MACIH,EAAEC,MAAM,CAACkB,SAAS,CAACC,MAAM,CAAC,0BAC1BpB,EAAEC,MAAM,CAACkB,SAAS,CAACE,GAAG,CAAC,wBACvBrB,EAAEC,MAAM,CAACqB,YAAY,CAAC,eAAgB,CAAA,GACtC1C,EAAWW,EAASY,GAI5B,IAAIoB,EAAYvB,EAAEC,MAAM,CAACC,YAAY,CAAC,mBAElCqB,GACAC,CAAAA,OAAOC,QAAQ,CAACC,IAAI,CAAGH,CAAQ,CAEvC,IACR,EACJ,EAER,CAIA,CACJ"} +{"version":3,"sources":[""],"sourcesContent":["notificationManager = function () {\r\n\r\n const removeItem = (values, value) => {\r\n const index = values.indexOf(value);\r\n\r\n if (index > -1) {\r\n values.splice(index, 1);\r\n\r\n return true;\r\n }\r\n\r\n return false;\r\n }\r\n\r\n const initialize = (readUrl, wrapperSelector) => {\r\n\r\n if (!readUrl) {\r\n console.log('No readUrl was provided.');\r\n\r\n return;\r\n }\r\n\r\n const reading = [];\r\n\r\n var elements = document.getElementsByClassName('mark-notification-as-read');\r\n\r\n for (let i = 0; i < elements.length; i++) {\r\n\r\n ['click', 'mouseover'].forEach((evt) => {\r\n elements[i].addEventListener(evt, (e) => {\r\n\r\n if (e.target.getAttribute('data-is-read') != \"false\") {\r\n return;\r\n }\r\n\r\n var messageId = e.target.getAttribute('data-message-id');\r\n\r\n if (!messageId) {\r\n return;\r\n }\r\n\r\n if (reading.includes(messageId)) {\r\n // If a message is pending request, no need to send another request.\r\n return;\r\n }\r\n\r\n reading.push(messageId);\r\n\r\n fetch(readUrl, {\r\n method: 'POST',\r\n headers: {\r\n 'Content-Type': 'application/json'\r\n },\r\n body: JSON.stringify({ messageId: messageId })\r\n }).then(response => response.json())\r\n .then(result => {\r\n if (result.updated) {\r\n if (wrapperSelector) {\r\n var wrapper = e.target.closest(wrapperSelector);\r\n if (wrapper) {\r\n wrapper.classList.remove('notification-is-unread');\r\n wrapper.classList.add('notification-is-read');\r\n wrapper.setAttribute('data-is-read', true);\r\n removeItem(reading, messageId);\r\n }\r\n } else {\r\n e.target.classList.remove('notification-is-unread');\r\n e.target.classList.add('notification-is-read');\r\n e.target.setAttribute('data-is-read', true);\r\n removeItem(reading, messageId);\r\n }\r\n }\r\n\r\n var targetUrl = e.target.getAttribute('data-target-url');\r\n\r\n if (targetUrl) {\r\n window.location.href = targetUrl;\r\n }\r\n });\r\n });\r\n });\r\n }\r\n }\r\n\r\n return {\r\n initializeContainer: initialize\r\n };\r\n}();\r\n"],"names":["notificationManager","removeItem","values","value","index","indexOf","splice","initializeContainer","readUrl","wrapperSelector","console","log","reading","elements","document","getElementsByClassName","i","length","forEach","evt","addEventListener","e","target","getAttribute","messageId","includes","push","fetch","method","headers","body","JSON","stringify","then","response","json","result","updated","wrapper","closest","classList","remove","add","setAttribute","targetUrl","window","location","href"],"mappings":"AAAAA,oBAAsB,WAElB,IAAMC,EAAa,CAACC,EAAQC,KACxB,IAAMC,EAAQF,EAAOG,OAAO,CAACF,UAE7B,AAAIC,EAAQ,KACRF,EAAOI,MAAM,CAACF,EAAO,GAEd,CAAA,EAIf,EAwEA,MAAO,CACHG,oBAvEe,CAACC,EAASC,KAEzB,GAAI,CAACD,EAAS,CACVE,QAAQC,GAAG,CAAC,4BAEZ,MACJ,CAEA,IAAMC,EAAU,EAAE,CAElB,IAAIC,EAAWC,SAASC,sBAAsB,CAAC,6BAE/C,IAAK,IAAIC,EAAI,EAAGA,EAAIH,EAASI,MAAM,CAAED,IAEjC,CAAC,QAAS,YAAY,CAACE,OAAO,CAAC,AAACC,IAC5BN,CAAQ,CAACG,EAAE,CAACI,gBAAgB,CAACD,EAAK,AAACE,IAE/B,GAAIA,AAAyC,SAAzCA,EAAEC,MAAM,CAACC,YAAY,CAAC,iBAI1B,IAAIC,EAAYH,EAAEC,MAAM,CAACC,YAAY,CAAC,kBAElC,EAACC,GAIDZ,EAAQa,QAAQ,CAACD,KAKrBZ,EAAQc,IAAI,CAACF,GAEbG,MAAMnB,EAAS,CACXoB,OAAQ,OACRC,QAAS,CACL,eAAgB,kBACpB,EACAC,KAAMC,KAAKC,SAAS,CAAC,CAAER,UAAWA,CAAU,EAChD,GAAGS,IAAI,CAACC,GAAYA,EAASC,IAAI,IAC5BF,IAAI,CAACG,IACF,GAAIA,EAAOC,OAAO,EACd,GAAI5B,EAAiB,CACjB,IAAI6B,EAAUjB,EAAEC,MAAM,CAACiB,OAAO,CAAC9B,GAC3B6B,IACAA,EAAQE,SAAS,CAACC,MAAM,CAAC,0BACzBH,EAAQE,SAAS,CAACE,GAAG,CAAC,wBACtBJ,EAAQK,YAAY,CAAC,eAAgB,CAAA,GACrC1C,EAAWW,EAASY,GAE5B,MACIH,EAAEC,MAAM,CAACkB,SAAS,CAACC,MAAM,CAAC,0BAC1BpB,EAAEC,MAAM,CAACkB,SAAS,CAACE,GAAG,CAAC,wBACvBrB,EAAEC,MAAM,CAACqB,YAAY,CAAC,eAAgB,CAAA,GACtC1C,EAAWW,EAASY,GAI5B,IAAIoB,EAAYvB,EAAEC,MAAM,CAACC,YAAY,CAAC,mBAElCqB,GACAC,CAAAA,OAAOC,QAAQ,CAACC,IAAI,CAAGH,CAAQ,CAEvC,IACR,EACJ,EAER,CAIA,CACJ"}asd \ No newline at end of file diff --git a/src/OrchardCore.Modules/OrchardCore.OpenId/wwwroot/Scripts/parametersEditor.map b/src/OrchardCore.Modules/OrchardCore.OpenId/wwwroot/Scripts/parametersEditor.map index 3a9359097ba..2d9c0c3898e 100644 --- a/src/OrchardCore.Modules/OrchardCore.OpenId/wwwroot/Scripts/parametersEditor.map +++ b/src/OrchardCore.Modules/OrchardCore.OpenId/wwwroot/Scripts/parametersEditor.map @@ -1 +1 @@ -{"version":3,"sources":[""],"sourcesContent":["function initializeParametersEditor(elem, data, modalBodyElement) {\r\n\r\n var store = {\r\n state: {\r\n parameters: data\r\n },\r\n addParameter: function () {\r\n this.state.parameters.push({ name: '', value: '' });\r\n },\r\n removeParameter: function (index) {\r\n this.state.parameters.splice(index, 1);\r\n },\r\n getParametersFormattedList: function () {\r\n return JSON.stringify(this.state.parameters.filter(function (x) { return !IsNullOrWhiteSpace(x.name) }));\r\n }\r\n }\r\n\r\n var parametersTable = {\r\n template: '#parameters-table',\r\n props: ['data'],\r\n name: 'parameters-table',\r\n methods: {\r\n add: function () {\r\n store.addParameter();\r\n },\r\n remove: function (index) {\r\n store.removeParameter(index);\r\n },\r\n getParametersFormattedList: function () {\r\n return store.getParametersFormattedList();\r\n }\r\n }\r\n };\r\n\r\n var parametersModal = {\r\n template: '#parameters-modal',\r\n props: ['data'],\r\n name: 'parameters-modal',\r\n methods: {\r\n getParametersFormattedList: function () {\r\n return store.getParametersFormattedList();\r\n },\r\n showModal: function () {\r\n parametersModal.props.data.modal = new bootstrap.Modal(modalBodyElement[0]);\r\n parametersModal.props.data.modal.show();\r\n },\r\n closeModal: function () {\r\n parametersModal.props.data.modal.hide();\r\n }\r\n }\r\n };\r\n\r\n new Vue({\r\n components: {\r\n parametersTable: parametersTable,\r\n parametersModal: parametersModal\r\n },\r\n data: {\r\n sharedState: store.state,\r\n modal: null\r\n },\r\n el: elem,\r\n methods: {\r\n showModal: function () {\r\n parametersModal.methods.showModal();\r\n }\r\n }\r\n });\r\n\r\n}\r\n\r\nfunction IsNullOrWhiteSpace(str) {\r\n return str === null || str.match(/^ *$/) !== null;\r\n}\r\n"],"names":["initializeParametersEditor","elem","data","modalBodyElement","store","state","parameters","addParameter","push","name","value","removeParameter","index","splice","getParametersFormattedList","JSON","stringify","filter","x","IsNullOrWhiteSpace","parametersModal","template","props","methods","showModal","modal","bootstrap","Modal","show","closeModal","hide","Vue","components","parametersTable","add","remove","sharedState","el","str","match"],"mappings":"AAAA,SAASA,2BAA2BC,CAAI,CAAEC,CAAI,CAAEC,CAAgB,EAE5D,IAAIC,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AS,EACrC,CACJ,CACJ,EAEJ,CAEA,SAASL,mBAAmBmB,CAAG,EAC3B,OAAOA,AAAQ,OAARA,GAAgBA,AAAsB,OAAtBA,EAAIC,KAAK,CAAC,OACrC"} +{"version":3,"sources":[""],"sourcesContent":["function initializeParametersEditor(elem, data, modalBodyElement) {\r\n\r\n var store = {\r\n state: {\r\n parameters: data\r\n },\r\n addParameter: function () {\r\n this.state.parameters.push({ name: '', value: '' });\r\n },\r\n removeParameter: function (index) {\r\n this.state.parameters.splice(index, 1);\r\n },\r\n getParametersFormattedList: function () {\r\n return JSON.stringify(this.state.parameters.filter(function (x) { return !IsNullOrWhiteSpace(x.name) }));\r\n }\r\n }\r\n\r\n var parametersTable = {\r\n template: '#parameters-table',\r\n props: ['data'],\r\n name: 'parameters-table',\r\n methods: {\r\n add: function () {\r\n store.addParameter();\r\n },\r\n remove: function (index) {\r\n store.removeParameter(index);\r\n },\r\n getParametersFormattedList: function () {\r\n return store.getParametersFormattedList();\r\n }\r\n }\r\n };\r\n\r\n var parametersModal = {\r\n template: '#parameters-modal',\r\n props: ['data'],\r\n name: 'parameters-modal',\r\n methods: {\r\n getParametersFormattedList: function () {\r\n return store.getParametersFormattedList();\r\n },\r\n showModal: function () {\r\n parametersModal.props.data.modal = new bootstrap.Modal(modalBodyElement[0]);\r\n parametersModal.props.data.modal.show();\r\n },\r\n closeModal: function () {\r\n parametersModal.props.data.modal.hide();\r\n }\r\n }\r\n };\r\n\r\n new Vue({\r\n components: {\r\n parametersTable: parametersTable,\r\n parametersModal: parametersModal\r\n },\r\n data: {\r\n sharedState: store.state,\r\n modal: null\r\n },\r\n el: elem,\r\n methods: {\r\n showModal: function () {\r\n parametersModal.methods.showModal();\r\n }\r\n }\r\n });\r\n\r\n}\r\n\r\nfunction IsNullOrWhiteSpace(str) {\r\n return str === null || str.match(/^ *$/) !== null;\r\n}\r\n"],"names":["initializeParametersEditor","elem","data","modalBodyElement","store","state","parameters","addParameter","push","name","value","removeParameter","index","splice","getParametersFormattedList","JSON","stringify","filter","x","IsNullOrWhiteSpace","parametersModal","template","props","methods","showModal","modal","bootstrap","Modal","show","closeModal","hide","Vue","components","parametersTable","add","remove","sharedState","el","str","match"],"mappings":"AAAA,SAASA,2BAA2BC,CAAI,CAAEC,CAAI,CAAEC,CAAgB,EAE5D,IAAIC,EAAQ,CACRC,MAAO,CACHC,WAAYJ,CAChB,EACAK,aAAc,WACV,IAAI,CAACF,KAAK,CAACC,UAAU,CAACE,IAAI,CAAC,CAAEC,KAAM,GAAIC,MAAO,EAAG,EACrD,EACAC,gBAAiB,SAAUC,CAAK,EAC5B,IAAI,CAACP,KAAK,CAACC,UAAU,CAACO,MAAM,CAACD,EAAO,EACxC,EACAE,2BAA4B,WACxB,OAAOC,KAAKC,SAAS,CAAC,IAAI,CAACX,KAAK,CAACC,UAAU,CAACW,MAAM,CAAC,SAAUC,CAAC,EAAI,MAAO,CAACC,mBAAmBD,EAAET,IAAI,CAAE,GACzG,CACJ,EAmBIW,EAAkB,CAClBC,SAAU,oBACVC,MAAO,CAAC,OAAO,CACfb,KAAM,mBACNc,QAAS,CACLT,2BAA4B,WACxB,OAAOV,EAAMU,0BAA0B,EAC3C,EACAU,UAAW,WACPJ,EAAgBE,KAAK,CAACpB,IAAI,CAACuB,KAAK,CAAG,IAAIC,UAAUC,KAAK,CAACxB,CAAgB,CAAC,EAAE,EAC1EiB,EAAgBE,KAAK,CAACpB,IAAI,CAACuB,KAAK,CAACG,IAAI,EACzC,EACAC,WAAY,WACRT,EAAgBE,KAAK,CAACpB,IAAI,CAACuB,KAAK,CAACK,IAAI,EACzC,CACJ,CACJ,EAEA,IAAIC,IAAI,CACJC,WAAY,CACRC,gBArCc,CAClBZ,SAAU,oBACVC,MAAO,CAAC,OAAO,CACfb,KAAM,mBACNc,QAAS,CACLW,IAAK,WACD9B,EAAMG,YAAY,EACtB,EACA4B,OAAQ,SAAUvB,CAAK,EACnBR,EAAMO,eAAe,CAACC,EAC1B,EACAE,2BAA4B,WACxB,OAAOV,EAAMU,0BAA0B,EAC3C,CACJ,CACJ,EAuBQM,gBAAiBA,CACrB,EACAlB,KAAM,CACFkC,YAAahC,EAAMC,KAAK,CACxBoB,MAAO,IACX,EACAY,GAAIpC,EACJsB,QAAS,CACLC,UAAW,WACPJ,EAAgBG,OAAO,CAACC,SAAS,EACrC,CACJ,CACJ,EAEJ,CAEA,SAASL,mBAAmBmB,CAAG,EAC3B,OAAOA,AAAQ,OAARA,GAAgBA,AAAsB,OAAtBA,EAAIC,KAAK,CAAC,OACrC"}asd \ No newline at end of file diff --git a/src/OrchardCore.Modules/OrchardCore.Rules/wwwroot/Scripts/rules.map b/src/OrchardCore.Modules/OrchardCore.Rules/wwwroot/Scripts/rules.map index 1abab44ce69..0cded441777 100644 --- a/src/OrchardCore.Modules/OrchardCore.Rules/wwwroot/Scripts/rules.map +++ b/src/OrchardCore.Modules/OrchardCore.Rules/wwwroot/Scripts/rules.map @@ -1 +1 @@ -{"version":3,"sources":[""],"sourcesContent":["function updateRuleOrders(conditionId, toConditionId, toPosition) {\r\n var url = $('#ruleOrderUrl').data(\"url\");\r\n var parameters = {};\r\n $('.ruleorderparameters').each(function(i, val) {\r\n parameters[$(val).data(\"param\")] = $(val).data(\"value\");\r\n });\r\n\r\n parameters[\"__RequestVerificationToken\"] = $(\"input[name='__RequestVerificationToken']\").val();\r\n parameters[\"conditionId\"] = conditionId;\r\n parameters[\"toConditionId\"] = toConditionId;\r\n parameters[\"toPosition\"] = toPosition;\r\n\r\n $.ajax({\r\n url: url,\r\n method: 'POST',\r\n data: parameters,\r\n error: function (error) {\r\n alert($('#ruleOrderErrorMessage').data(\"message\"));\r\n }\r\n });\r\n}\r\n\r\n$(function () {\r\n var sortableOptions = {\r\n group: {\r\n name: \"sortable-list\"\r\n },\r\n animation: 250,\r\n forceFallback: true,\r\n fallbackOnBody: true,\r\n swapThreshold: 0.65,\r\n onEnd: function (evt) {\r\n // When nesting groups use onEnd as onSort fires for every group it passes through.\r\n updateRuleOrders($(evt.item).data(\"conditionid\"), $(evt.item).parent().data(\"conditiongroupid\"), evt.newIndex);\r\n }\r\n }; \r\n var groups = document.querySelectorAll(\".condition-group\");\r\n for (var i = 0; i < groups.length; i++) {\r\n new Sortable(groups[i], sortableOptions);\r\n }\r\n});\r\n"],"names":["updateRuleOrders","conditionId","toConditionId","toPosition","url","$","data","parameters","each","i","val","ajax","method","error","alert","sortableOptions","group","name","animation","forceFallback","fallbackOnBody","swapThreshold","onEnd","evt","item","parent","newIndex","groups","document","querySelectorAll","length","Sortable"],"mappings":"AAAA,SAASA,iBAAiBC,CAAW,CAAEC,CAAa,CAAEC,CAAU,EAC5D,IAAIC,EAAMC,EAAE,iBAAiBC,IAAI,CAAC,OAC9BC,EAAa,CAAC,EAClBF,EAAE,wBAAwBG,IAAI,CAAC,SAASC,CAAC,CAAEC,CAAG,EAC1CH,CAAU,CAACF,EAAEK,GAAKJ,IAAI,CAAC,SAAS,CAAGD,EAAEK,GAAKJ,IAAI,CAAC,QACnD,GAEAC,EAAW,0BAA6B,CAAGF,EAAE,4CAA4CK,GAAG,GAC5FH,EAAW,WAAc,CAAGN,EAC5BM,EAAW,aAAgB,CAAGL,EAC9BK,EAAW,UAAa,CAAGJ,EAE3BE,EAAEM,IAAI,CAAC,CACHP,IAAKA,EACLQ,OAAQ,OACRN,KAAMC,EACNM,MAAO,SAAUA,CAAK,EAClBC,MAAMT,EAAE,0BAA0BC,IAAI,CAAC,WAC3C,CACJ,EACJ,CAEAD,EAAE,WAeE,IAAK,IAdDU,EAAkB,CACpBC,MAAO,CACLC,KAAM,eACR,EACAC,UAAW,IACXC,cAAe,CAAA,EACfC,eAAgB,CAAA,EAChBC,cAAe,IACfC,MAAO,SAAUC,CAAG,EAElBvB,iBAAiBK,EAAEkB,EAAIC,IAAI,EAAElB,IAAI,CAAC,eAAgBD,EAAEkB,EAAIC,IAAI,EAAEC,MAAM,GAAGnB,IAAI,CAAC,oBAAqBiB,EAAIG,QAAQ,CAC/G,CACF,EACIC,EAASC,SAASC,gBAAgB,CAAC,oBAC9BpB,EAAI,EAAGA,EAAIkB,EAAOG,MAAM,CAAErB,IACjC,IAAIsB,SAASJ,CAAM,CAAClB,EAAE,CAAEM,EAE9B"} +{"version":3,"sources":[""],"sourcesContent":["function updateRuleOrders(conditionId, toConditionId, toPosition) {\r\n var url = $('#ruleOrderUrl').data(\"url\");\r\n var parameters = {};\r\n $('.ruleorderparameters').each(function(i, val) {\r\n parameters[$(val).data(\"param\")] = $(val).data(\"value\");\r\n });\r\n\r\n parameters[\"__RequestVerificationToken\"] = $(\"input[name='__RequestVerificationToken']\").val();\r\n parameters[\"conditionId\"] = conditionId;\r\n parameters[\"toConditionId\"] = toConditionId;\r\n parameters[\"toPosition\"] = toPosition;\r\n\r\n $.ajax({\r\n url: url,\r\n method: 'POST',\r\n data: parameters,\r\n error: function (error) {\r\n alert($('#ruleOrderErrorMessage').data(\"message\"));\r\n }\r\n });\r\n}\r\n\r\n$(function () {\r\n var sortableOptions = {\r\n group: {\r\n name: \"sortable-list\"\r\n },\r\n animation: 250,\r\n forceFallback: true,\r\n fallbackOnBody: true,\r\n swapThreshold: 0.65,\r\n onEnd: function (evt) {\r\n // When nesting groups use onEnd as onSort fires for every group it passes through.\r\n updateRuleOrders($(evt.item).data(\"conditionid\"), $(evt.item).parent().data(\"conditiongroupid\"), evt.newIndex);\r\n }\r\n }; \r\n var groups = document.querySelectorAll(\".condition-group\");\r\n for (var i = 0; i < groups.length; i++) {\r\n new Sortable(groups[i], sortableOptions);\r\n }\r\n});\r\n"],"names":["updateRuleOrders","conditionId","toConditionId","toPosition","url","$","data","parameters","each","i","val","ajax","method","error","alert","sortableOptions","group","name","animation","forceFallback","fallbackOnBody","swapThreshold","onEnd","evt","item","parent","newIndex","groups","document","querySelectorAll","length","Sortable"],"mappings":"AAAA,SAASA,iBAAiBC,CAAW,CAAEC,CAAa,CAAEC,CAAU,EAC5D,IAAIC,EAAMC,EAAE,iBAAiBC,IAAI,CAAC,OAC9BC,EAAa,CAAC,EAClBF,EAAE,wBAAwBG,IAAI,CAAC,SAASC,CAAC,CAAEC,CAAG,EAC1CH,CAAU,CAACF,EAAEK,GAAKJ,IAAI,CAAC,SAAS,CAAGD,EAAEK,GAAKJ,IAAI,CAAC,QACnD,GAEAC,EAAW,0BAA6B,CAAGF,EAAE,4CAA4CK,GAAG,GAC5FH,EAAW,WAAc,CAAGN,EAC5BM,EAAW,aAAgB,CAAGL,EAC9BK,EAAW,UAAa,CAAGJ,EAE3BE,EAAEM,IAAI,CAAC,CACHP,IAAKA,EACLQ,OAAQ,OACRN,KAAMC,EACNM,MAAO,SAAUA,CAAK,EAClBC,MAAMT,EAAE,0BAA0BC,IAAI,CAAC,WAC3C,CACJ,EACJ,CAEAD,EAAE,WAeE,IAAK,IAdDU,EAAkB,CACpBC,MAAO,CACLC,KAAM,eACR,EACAC,UAAW,IACXC,cAAe,CAAA,EACfC,eAAgB,CAAA,EAChBC,cAAe,IACfC,MAAO,SAAUC,CAAG,EAElBvB,iBAAiBK,EAAEkB,EAAIC,IAAI,EAAElB,IAAI,CAAC,eAAgBD,EAAEkB,EAAIC,IAAI,EAAEC,MAAM,GAAGnB,IAAI,CAAC,oBAAqBiB,EAAIG,QAAQ,CAC/G,CACF,EACIC,EAASC,SAASC,gBAAgB,CAAC,oBAC9BpB,EAAI,EAAGA,EAAIkB,EAAOG,MAAM,CAAErB,IACjC,IAAIsB,SAASJ,CAAM,CAAClB,EAAE,CAAEM,EAE9B"}asd \ No newline at end of file diff --git a/src/OrchardCore.Modules/OrchardCore.Seo/wwwroot/Scripts/customMetaTagsEditor.map b/src/OrchardCore.Modules/OrchardCore.Seo/wwwroot/Scripts/customMetaTagsEditor.map index 14743c91e24..0e880476147 100644 --- a/src/OrchardCore.Modules/OrchardCore.Seo/wwwroot/Scripts/customMetaTagsEditor.map +++ b/src/OrchardCore.Modules/OrchardCore.Seo/wwwroot/Scripts/customMetaTagsEditor.map @@ -1 +1 @@ -{"version":3,"sources":[""],"sourcesContent":["function initializeCustomMetaTagsEditor(elem, data, modalBodyElement) {\r\n\r\n var store = {\r\n debug: false,\r\n state: {\r\n metaTags: data\r\n },\r\n addMetaTag: function () {\r\n this.state.metaTags.push({ content: '', name: '', property: '', charset: '', httpEquiv: '' });\r\n },\r\n removeMetaTag: function (index) {\r\n this.state.metaTags.splice(index, 1);\r\n },\r\n getMetaTagsFormattedList: function () {\r\n return JSON.stringify(this.state.metaTags);\r\n }\r\n }\r\n\r\n var metaTagsTable = {\r\n template: '#meta-tags-table',\r\n props: ['data'],\r\n name: 'meta-tags-table',\r\n methods: {\r\n add: function () {\r\n store.addMetaTag();\r\n },\r\n remove: function (index) {\r\n store.removeMetaTag(index);\r\n },\r\n getMetaTagsFormattedList: function () {\r\n return store.getMetaTagsFormattedList();\r\n }\r\n }\r\n };\r\n\r\n var metaTagsModal = {\r\n template: '#meta-tags-modal',\r\n props: ['data'],\r\n name: 'meta-tags-modal',\r\n methods: {\r\n getMetaTagsFormattedList: function () {\r\n return store.getMetaTagsFormattedList();\r\n },\r\n showModal: function () {\r\n metaTagsModal.props.data.modal = new bootstrap.Modal(modalBodyElement[0]);\r\n metaTagsModal.props.data.modal.show();\r\n },\r\n closeModal: function () {\r\n metaTagsModal.props.data.modal.hide();\r\n }\r\n }\r\n };\r\n\r\n new Vue({\r\n components: {\r\n metaTagsTable: metaTagsTable,\r\n metaTagsModal: metaTagsModal\r\n },\r\n data: {\r\n sharedState: store.state,\r\n modal: null\r\n },\r\n el: elem,\r\n methods: {\r\n showModal: function () {\r\n metaTagsModal.methods.showModal();\r\n }\r\n }\r\n });\r\n}\r\n"],"names":["initializeCustomMetaTagsEditor","elem","data","modalBodyElement","store","state","metaTags","addMetaTag","push","content","name","property","charset","httpEquiv","removeMetaTag","index","splice","getMetaTagsFormattedList","JSON","stringify","metaTagsModal","template","props","methods","showModal","modal","bootstrap","Modal","show","closeModal","hide","Vue","components","metaTagsTable","add","remove","sharedState","el"],"mappings":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J,EAAcG,OAAO,CAACC,SAAS,EACnC,CACJ,CACJ,EACJ"} +{"version":3,"sources":[""],"sourcesContent":["function initializeCustomMetaTagsEditor(elem, data, modalBodyElement) {\r\n\r\n var store = {\r\n debug: false,\r\n state: {\r\n metaTags: data\r\n },\r\n addMetaTag: function () {\r\n this.state.metaTags.push({ content: '', name: '', property: '', charset: '', httpEquiv: '' });\r\n },\r\n removeMetaTag: function (index) {\r\n this.state.metaTags.splice(index, 1);\r\n },\r\n getMetaTagsFormattedList: function () {\r\n return JSON.stringify(this.state.metaTags);\r\n }\r\n }\r\n\r\n var metaTagsTable = {\r\n template: '#meta-tags-table',\r\n props: ['data'],\r\n name: 'meta-tags-table',\r\n methods: {\r\n add: function () {\r\n store.addMetaTag();\r\n },\r\n remove: function (index) {\r\n store.removeMetaTag(index);\r\n },\r\n getMetaTagsFormattedList: function () {\r\n return store.getMetaTagsFormattedList();\r\n }\r\n }\r\n };\r\n\r\n var metaTagsModal = {\r\n template: '#meta-tags-modal',\r\n props: ['data'],\r\n name: 'meta-tags-modal',\r\n methods: {\r\n getMetaTagsFormattedList: function () {\r\n return store.getMetaTagsFormattedList();\r\n },\r\n showModal: function () {\r\n metaTagsModal.props.data.modal = new bootstrap.Modal(modalBodyElement[0]);\r\n metaTagsModal.props.data.modal.show();\r\n },\r\n closeModal: function () {\r\n metaTagsModal.props.data.modal.hide();\r\n }\r\n }\r\n };\r\n\r\n new Vue({\r\n components: {\r\n metaTagsTable: metaTagsTable,\r\n metaTagsModal: metaTagsModal\r\n },\r\n data: {\r\n sharedState: store.state,\r\n modal: null\r\n },\r\n el: elem,\r\n methods: {\r\n showModal: function () {\r\n metaTagsModal.methods.showModal();\r\n }\r\n }\r\n });\r\n}\r\n"],"names":["initializeCustomMetaTagsEditor","elem","data","modalBodyElement","store","state","metaTags","addMetaTag","push","content","name","property","charset","httpEquiv","removeMetaTag","index","splice","getMetaTagsFormattedList","JSON","stringify","metaTagsModal","template","props","methods","showModal","modal","bootstrap","Modal","show","closeModal","hide","Vue","components","metaTagsTable","add","remove","sharedState","el"],"mappings":"AAAA,SAASA,+BAA+BC,CAAI,CAAEC,CAAI,CAAEC,CAAgB,EAEhE,IAAIC,EAAQ,CAERC,MAAO,CACHC,SAAUJ,CACd,EACAK,WAAY,WACR,IAAI,CAACF,KAAK,CAACC,QAAQ,CAACE,IAAI,CAAC,CAAEC,QAAS,GAAIC,KAAM,GAAIC,SAAU,GAAIC,QAAS,GAAIC,UAAW,EAAG,EAC/F,EACAC,cAAe,SAAUC,CAAK,EAC1B,IAAI,CAACV,KAAK,CAACC,QAAQ,CAACU,MAAM,CAACD,EAAO,EACtC,EACAE,yBAA0B,WACtB,OAAOC,KAAKC,SAAS,CAAC,IAAI,CAACd,KAAK,CAACC,QAAQ,CAC7C,CACJ,EAmBIc,EAAgB,CAChBC,SAAU,mBACVC,MAAO,CAAC,OAAO,CACfZ,KAAM,kBACNa,QAAS,CACLN,yBAA0B,WACtB,OAAOb,EAAMa,wBAAwB,EACzC,EACAO,UAAW,WACPJ,EAAcE,KAAK,CAACpB,IAAI,CAACuB,KAAK,CAAG,IAAIC,UAAUC,KAAK,CAACxB,CAAgB,CAAC,EAAE,EACxEiB,EAAcE,KAAK,CAACpB,IAAI,CAACuB,KAAK,CAACG,IAAI,EACvC,EACAC,WAAY,WACRT,EAAcE,KAAK,CAACpB,IAAI,CAACuB,KAAK,CAACK,IAAI,EACvC,CACJ,CACJ,EAEA,IAAIC,IAAI,CACJC,WAAY,CACRC,cArCY,CAChBZ,SAAU,mBACVC,MAAO,CAAC,OAAO,CACfZ,KAAM,kBACNa,QAAS,CACLW,IAAK,WACD9B,EAAMG,UAAU,EACpB,EACA4B,OAAQ,SAAUpB,CAAK,EACnBX,EAAMU,aAAa,CAACC,EACxB,EACAE,yBAA0B,WACtB,OAAOb,EAAMa,wBAAwB,EACzC,CACJ,CACJ,EAuBQG,cAAeA,CACnB,EACAlB,KAAM,CACFkC,YAAahC,EAAMC,KAAK,CACxBoB,MAAO,IACX,EACAY,GAAIpC,EACJsB,QAAS,CACLC,UAAW,WACPJ,EAAcG,OAAO,CAACC,SAAS,EACnC,CACJ,CACJ,EACJ"}asd \ No newline at end of file diff --git a/src/OrchardCore.Modules/OrchardCore.Shortcodes/wwwroot/Scripts/shortcode-templates.map b/src/OrchardCore.Modules/OrchardCore.Shortcodes/wwwroot/Scripts/shortcode-templates.map index 419e7fb5c4a..6d97856f781 100644 --- a/src/OrchardCore.Modules/OrchardCore.Shortcodes/wwwroot/Scripts/shortcode-templates.map +++ b/src/OrchardCore.Modules/OrchardCore.Shortcodes/wwwroot/Scripts/shortcode-templates.map @@ -1 +1 @@ -{"version":3,"sources":[""],"sourcesContent":["function initializeShortcodesTemplateEditor(categoriesElement, contentElement, usageElement, previewElement, nameElement, hintElement) {\r\n if (contentElement) {\r\n CodeMirror.fromTextArea(contentElement, {\r\n autoCloseTags: true,\r\n autoRefresh: true,\r\n lineNumbers: true,\r\n lineWrapping: true,\r\n matchBrackets: true,\r\n styleActiveLine: true,\r\n mode: { name: \"liquid\" }\r\n });\r\n }\r\n\r\n if (usageElement) {\r\n var editor = CodeMirror.fromTextArea(usageElement, {\r\n autoCloseTags: true,\r\n autoRefresh: true,\r\n lineNumbers: true,\r\n lineWrapping: true,\r\n matchBrackets: true,\r\n styleActiveLine: true,\r\n mode: { name: \"htmlmixed\" }\r\n });\r\n if (previewElement) {\r\n editor.on('change', function (e) {\r\n $(previewElement).show();\r\n $(previewElement).find('.shortcode-usage').html(e.doc.getValue());\r\n });\r\n }\r\n }\r\n\r\n if (nameElement && previewElement) {\r\n $(nameElement).on('keyup paste', function () {\r\n $(previewElement).show();\r\n $(previewElement).find('.shortcode-name').html($(this).val())\r\n });\r\n }\r\n\r\n if (hintElement && previewElement) {\r\n $(hintElement).on('keyup paste', function () {\r\n $(previewElement).show();\r\n $(previewElement).find('.shortcode-hint').html($(this).val())\r\n });\r\n }\r\n\r\n if (categoriesElement) {\r\n var vueMultiselect = Vue.component('vue-multiselect', window.VueMultiselect[\"default\"]);\r\n var vm = new Vue({\r\n el: categoriesElement,\r\n components: {\r\n 'vue-multiselect': vueMultiselect\r\n },\r\n data: function data() {\r\n var allCategories = JSON.parse(categoriesElement.dataset.categories || \"[]\");\r\n var selectedCategories = JSON.parse(categoriesElement.dataset.selectedCategories || \"[]\");\r\n return {\r\n value: selectedCategories,\r\n options: allCategories\r\n };\r\n },\r\n methods: {\r\n getSelectedCategories() {\r\n return JSON.stringify(this.value);\r\n },\r\n addCategory(category) {\r\n this.options.push(category);\r\n this.value.push(category);\r\n }\r\n }\r\n });\r\n return vm;\r\n }\r\n}\r\n"],"names":["initializeShortcodesTemplateEditor","categoriesElement","contentElement","usageElement","previewElement","nameElement","hintElement","CodeMirror","fromTextArea","autoCloseTags","autoRefresh","lineNumbers","lineWrapping","matchBrackets","styleActiveLine","mode","name","editor","on","e","$","show","find","html","doc","getValue","val","vueMultiselect","Vue","component","window","VueMultiselect","el","components","data","allCategories","JSON","parse","dataset","categories","value","selectedCategories","options","methods","getSelectedCategories","stringify","addCategory","category","push"],"mappings":"AAAA,SAASA,mCAAmCC,CAAiB,CAAEC,CAAc,CAAEC,CAAY,CAAEC,CAAc,CAAEC,CAAW,CAAEC,CAAW,EAajI,GAZIJ,GACAK,WAAWC,YAAY,CAACN,EAAgB,CACpCO,cAAe,CAAA,EACfC,YAAa,CAAA,EACbC,YAAa,CAAA,EACbC,aAAc,CAAA,EACdC,cAAe,CAAA,EACfC,gBAAiB,CAAA,EACjBC,KAAM,CAAEC,KAAM,QAAS,CAC3B,GAGAb,EAAc,CACd,IAAIc,EAASV,WAAWC,YAAY,CAACL,EAAc,CAC/CM,cAAe,CAAA,EACfC,YAAa,CAAA,EACbC,YAAa,CAAA,EACbC,aAAc,CAAA,EACdC,cAAe,CAAA,EACfC,gBAAiB,CAAA,EACjBC,KAAM,CAAEC,KAAM,WAAY,CAC9B,GACIZ,GACAa,EAAOC,EAAE,CAAC,SAAU,SAAUC,CAAC,EAC3BC,EAAEhB,GAAgBiB,IAAI,GACtBD,EAAEhB,GAAgBkB,IAAI,CAAC,oBAAoBC,IAAI,CAACJ,EAAEK,GAAG,CAACC,QAAQ,GAClE,EAER,CAgBA,GAdIpB,GAAeD,GACfgB,EAAEf,GAAaa,EAAE,CAAC,cAAe,WAC7BE,EAAEhB,GAAgBiB,IAAI,GACtBD,EAAEhB,GAAgBkB,IAAI,CAAC,mBAAmBC,IAAI,CAACH,EAAE,IAAI,EAAEM,GAAG,GAC9D,GAGApB,GAAeF,GACfgB,EAAEd,GAAaY,EAAE,CAAC,cAAe,WAC7BE,EAAEhB,GAAgBiB,IAAI,GACtBD,EAAEhB,GAAgBkB,IAAI,CAAC,mBAAmBC,IAAI,CAACH,EAAE,IAAI,EAAEM,GAAG,GAC9D,GAGAzB,EAAmB,CACnB,IAAI0B,EAAiBC,IAAIC,SAAS,CAAC,kBAAmBC,OAAOC,cAAc,CAAC,OAAU,EAwBtF,OAvBS,IAAIH,IAAI,CACbI,GAAI/B,EACJgC,WAAY,CACR,kBAAmBN,CACvB,EACAO,KAAM,WACF,IAAIC,EAAgBC,KAAKC,KAAK,CAACpC,EAAkBqC,OAAO,CAACC,UAAU,EAAI,MAEvE,MAAO,CACHC,MAFqBJ,KAAKC,KAAK,CAACpC,EAAkBqC,OAAO,CAACG,kBAAkB,EAAI,MAGhFC,QAASP,CACb,CACJ,EACAQ,QAAS,CACLC,wBACI,OAAOR,KAAKS,SAAS,CAAC,IAAI,CAACL,KAAK,CACpC,EACAM,YAAYC,CAAQ,EAChB,IAAI,CAACL,OAAO,CAACM,IAAI,CAACD,GAClB,IAAI,CAACP,KAAK,CAACQ,IAAI,CAACD,EACpB,CACJ,CACJ,EAEJ,CACJ"} +{"version":3,"sources":[""],"sourcesContent":["function initializeShortcodesTemplateEditor(categoriesElement, contentElement, usageElement, previewElement, nameElement, hintElement) {\r\n if (contentElement) {\r\n CodeMirror.fromTextArea(contentElement, {\r\n autoCloseTags: true,\r\n autoRefresh: true,\r\n lineNumbers: true,\r\n lineWrapping: true,\r\n matchBrackets: true,\r\n styleActiveLine: true,\r\n mode: { name: \"liquid\" }\r\n });\r\n }\r\n\r\n if (usageElement) {\r\n var editor = CodeMirror.fromTextArea(usageElement, {\r\n autoCloseTags: true,\r\n autoRefresh: true,\r\n lineNumbers: true,\r\n lineWrapping: true,\r\n matchBrackets: true,\r\n styleActiveLine: true,\r\n mode: { name: \"htmlmixed\" }\r\n });\r\n if (previewElement) {\r\n editor.on('change', function (e) {\r\n $(previewElement).show();\r\n $(previewElement).find('.shortcode-usage').html(e.doc.getValue());\r\n });\r\n }\r\n }\r\n\r\n if (nameElement && previewElement) {\r\n $(nameElement).on('keyup paste', function () {\r\n $(previewElement).show();\r\n $(previewElement).find('.shortcode-name').html($(this).val())\r\n });\r\n }\r\n\r\n if (hintElement && previewElement) {\r\n $(hintElement).on('keyup paste', function () {\r\n $(previewElement).show();\r\n $(previewElement).find('.shortcode-hint').html($(this).val())\r\n });\r\n }\r\n\r\n if (categoriesElement) {\r\n var vueMultiselect = Vue.component('vue-multiselect', window.VueMultiselect[\"default\"]);\r\n var vm = new Vue({\r\n el: categoriesElement,\r\n components: {\r\n 'vue-multiselect': vueMultiselect\r\n },\r\n data: function data() {\r\n var allCategories = JSON.parse(categoriesElement.dataset.categories || \"[]\");\r\n var selectedCategories = JSON.parse(categoriesElement.dataset.selectedCategories || \"[]\");\r\n return {\r\n value: selectedCategories,\r\n options: allCategories\r\n };\r\n },\r\n methods: {\r\n getSelectedCategories() {\r\n return JSON.stringify(this.value);\r\n },\r\n addCategory(category) {\r\n this.options.push(category);\r\n this.value.push(category);\r\n }\r\n }\r\n });\r\n return vm;\r\n }\r\n}\r\n"],"names":["initializeShortcodesTemplateEditor","categoriesElement","contentElement","usageElement","previewElement","nameElement","hintElement","CodeMirror","fromTextArea","autoCloseTags","autoRefresh","lineNumbers","lineWrapping","matchBrackets","styleActiveLine","mode","name","editor","on","e","$","show","find","html","doc","getValue","val","vueMultiselect","Vue","component","window","VueMultiselect","el","components","data","allCategories","JSON","parse","dataset","categories","value","selectedCategories","options","methods","getSelectedCategories","stringify","addCategory","category","push"],"mappings":"AAAA,SAASA,mCAAmCC,CAAiB,CAAEC,CAAc,CAAEC,CAAY,CAAEC,CAAc,CAAEC,CAAW,CAAEC,CAAW,EAajI,GAZIJ,GACAK,WAAWC,YAAY,CAACN,EAAgB,CACpCO,cAAe,CAAA,EACfC,YAAa,CAAA,EACbC,YAAa,CAAA,EACbC,aAAc,CAAA,EACdC,cAAe,CAAA,EACfC,gBAAiB,CAAA,EACjBC,KAAM,CAAEC,KAAM,QAAS,CAC3B,GAGAb,EAAc,CACd,IAAIc,EAASV,WAAWC,YAAY,CAACL,EAAc,CAC/CM,cAAe,CAAA,EACfC,YAAa,CAAA,EACbC,YAAa,CAAA,EACbC,aAAc,CAAA,EACdC,cAAe,CAAA,EACfC,gBAAiB,CAAA,EACjBC,KAAM,CAAEC,KAAM,WAAY,CAC9B,GACIZ,GACAa,EAAOC,EAAE,CAAC,SAAU,SAAUC,CAAC,EAC3BC,EAAEhB,GAAgBiB,IAAI,GACtBD,EAAEhB,GAAgBkB,IAAI,CAAC,oBAAoBC,IAAI,CAACJ,EAAEK,GAAG,CAACC,QAAQ,GAClE,EAER,CAgBA,GAdIpB,GAAeD,GACfgB,EAAEf,GAAaa,EAAE,CAAC,cAAe,WAC7BE,EAAEhB,GAAgBiB,IAAI,GACtBD,EAAEhB,GAAgBkB,IAAI,CAAC,mBAAmBC,IAAI,CAACH,EAAE,IAAI,EAAEM,GAAG,GAC9D,GAGApB,GAAeF,GACfgB,EAAEd,GAAaY,EAAE,CAAC,cAAe,WAC7BE,EAAEhB,GAAgBiB,IAAI,GACtBD,EAAEhB,GAAgBkB,IAAI,CAAC,mBAAmBC,IAAI,CAACH,EAAE,IAAI,EAAEM,GAAG,GAC9D,GAGAzB,EAAmB,CACnB,IAAI0B,EAAiBC,IAAIC,SAAS,CAAC,kBAAmBC,OAAOC,cAAc,CAAC,OAAU,EAwBtF,OAvBS,IAAIH,IAAI,CACbI,GAAI/B,EACJgC,WAAY,CACR,kBAAmBN,CACvB,EACAO,KAAM,WACF,IAAIC,EAAgBC,KAAKC,KAAK,CAACpC,EAAkBqC,OAAO,CAACC,UAAU,EAAI,MAEvE,MAAO,CACHC,MAFqBJ,KAAKC,KAAK,CAACpC,EAAkBqC,OAAO,CAACG,kBAAkB,EAAI,MAGhFC,QAASP,CACb,CACJ,EACAQ,QAAS,CACLC,wBACI,OAAOR,KAAKS,SAAS,CAAC,IAAI,CAACL,KAAK,CACpC,EACAM,YAAYC,CAAQ,EAChB,IAAI,CAACL,OAAO,CAACM,IAAI,CAACD,GAClB,IAAI,CAACP,KAAK,CAACQ,IAAI,CAACD,EACpB,CACJ,CACJ,EAEJ,CACJ"}asd \ No newline at end of file diff --git a/src/OrchardCore.Modules/OrchardCore.Shortcodes/wwwroot/Scripts/shortcodes.map b/src/OrchardCore.Modules/OrchardCore.Shortcodes/wwwroot/Scripts/shortcodes.map index 220f6ecd095..38f86d0e0d9 100644 --- a/src/OrchardCore.Modules/OrchardCore.Shortcodes/wwwroot/Scripts/shortcodes.map +++ b/src/OrchardCore.Modules/OrchardCore.Shortcodes/wwwroot/Scripts/shortcodes.map @@ -1 +1 @@ -{"version":3,"sources":[""],"sourcesContent":["/// jQuery helper to append text to a textarea or input.\r\njQuery.fn.extend({\r\n insertAtCaret: function (myValue) {\r\n return this.each(function (i) {\r\n if (document.selection) {\r\n //For browsers like Internet Explorer\r\n this.focus();\r\n sel = document.selection.createRange();\r\n sel.text = myValue;\r\n this.focus();\r\n } else if (this.selectionStart || this.selectionStart === \"0\") {\r\n //For browsers like Firefox and Webkit based\r\n var startPos = this.selectionStart;\r\n var endPos = this.selectionEnd;\r\n var scrollTop = this.scrollTop;\r\n this.value = this.value.substring(0, startPos) + myValue + this.value.substring(endPos, this.value.length);\r\n this.focus();\r\n this.selectionStart = startPos + myValue.length;\r\n this.selectionEnd = startPos + myValue.length;\r\n this.scrollTop = scrollTop;\r\n } else {\r\n this.value += myValue;\r\n this.focus();\r\n }\r\n });\r\n }\r\n});\r\n\r\nconst shortcodeWrapperTemplate = `\r\n
\r\n`;\r\n\r\nconst shortcodeBtnTemplate = `\r\n\r\n`;\r\n\r\n// Wraps each .shortcode-modal-input class with a wrapper, and attaches detaches the shortcode app as required.\r\n$(function () {\r\n $('.shortcode-modal-input').each(function () {\r\n $(this).wrap(shortcodeWrapperTemplate);\r\n $(this).parent().append(shortcodeBtnTemplate);\r\n });\r\n\r\n $('.shortcode-modal-btn').on('click', function() {\r\n var input = $(this).siblings('.shortcode-modal-input');\r\n\r\n shortcodesApp.init(function (defaultValue) {\r\n input.insertAtCaret(defaultValue);\r\n }); \r\n });\r\n})\r\n\r\nvar shortcodesApp;\r\n\r\nfunction initializeShortcodesApp(element) {\r\n if (element && !shortcodesApp) {\r\n var elementId = element.id;\r\n\r\n shortcodesApp = new Vue({\r\n el: '#' + elementId,\r\n data : function () {\r\n \r\n var shortcodes = JSON.parse(element.dataset.shortcodes || \"[]\");\r\n var categories = JSON.parse(element.dataset.categories || \"[]\");\r\n\r\n return {\r\n filter: '',\r\n allShortcodes: shortcodes,\r\n filteredShortcodes: shortcodes,\r\n categories: categories,\r\n defaultValue: '',\r\n modal: null\r\n }\r\n },\r\n watch:\r\n {\r\n filter(filter) {\r\n if (filter) {\r\n var lower = filter.toLowerCase();\r\n this.filteredShortcodes = this.allShortcodes\r\n .filter(s => s.name.startsWith(lower));\r\n } else {\r\n this.filteredShortcodes = this.allShortcodes;\r\n }\r\n }\r\n }, \r\n methods: {\r\n init(onClose)\r\n {\r\n if (onClose) {\r\n this.onClose = onClose;\r\n }\r\n this.selectedValue = '';\r\n this.modal = new bootstrap.Modal(this.$el);\r\n this.modal.show();\r\n var self = this;\r\n $(this.$el).on('shown.bs.modal', function (e) {\r\n self.$refs.filter.focus();\r\n });\r\n },\r\n onClose(defaultValue)\r\n {\r\n return;\r\n },\r\n setCategory(category)\r\n {\r\n if (category) {\r\n this.filteredShortcodes = this.allShortcodes\r\n .filter(s => s.categories.some(c => c.toLowerCase() === category.toLowerCase()));\r\n } else {\r\n this.filteredShortcodes = this.allShortcodes;\r\n }\r\n this.filter = '';\r\n }, \r\n isVisible(name) {\r\n return this.filteredShortcodes.some(s => s.name === name);\r\n },\r\n insertShortcode(event) {\r\n this.defaultValue = event.target.dataset.defaultValue;\r\n this.modal.hide();\r\n this.onClose(this.defaultValue);\r\n }\r\n }\r\n });\r\n\r\n return shortcodesApp;\r\n }\r\n}\r\n\r\n// initializes a code mirror editor with a shortcode modal.\r\nfunction initializeCodeMirrorShortcodeWrapper(editor) {\r\n const codemirrorWrapper = editor.display.wrapper;\r\n\r\n $(codemirrorWrapper).wrap(shortcodeWrapperTemplate);\r\n $(codemirrorWrapper).parent().append(shortcodeBtnTemplate);\r\n $(codemirrorWrapper).siblings('.shortcode-modal-btn').on('click', function () {\r\n shortcodesApp.init(function (defaultValue) {\r\n editor.replaceSelection(defaultValue); \r\n }); \r\n }); \r\n}\r\n"],"names":["shortcodesApp","jQuery","fn","extend","insertAtCaret","myValue","each","i","document","selection","focus","sel","createRange","text","selectionStart","startPos","endPos","selectionEnd","scrollTop","value","substring","length","shortcodeWrapperTemplate","shortcodeBtnTemplate","initializeShortcodesApp","element","Vue","el","id","data","shortcodes","JSON","parse","dataset","filter","allShortcodes","filteredShortcodes","categories","defaultValue","modal","watch","lower","toLowerCase","s","name","startsWith","methods","init","onClose","selectedValue","bootstrap","Modal","$el","show","self","$","on","e","$refs","setCategory","category","some","c","isVisible","insertShortcode","event","target","hide","initializeCodeMirrorShortcodeWrapper","editor","codemirrorWrapper","display","wrapper","wrap","parent","append","siblings","replaceSelection","input"],"mappings":"IAsDIA,cArDJC,OAAOC,EAAE,CAACC,MAAM,CAAC,CACbC,cAAe,SAAUC,CAAO,EAC5B,OAAO,IAAI,CAACC,IAAI,CAAC,SAAUC,CAAC,EACxB,GAAIC,SAASC,SAAS,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AoBD,EAAOE,OAAO,CAACC,OAAO,CAEhDjB,EAAEe,GAAmBG,IAAI,CAACnD,0BAC1BiC,EAAEe,GAAmBI,MAAM,GAAGC,MAAM,CAACpD,sBACrCgC,EAAEe,GAAmBM,QAAQ,CAAC,wBAAwBpB,EAAE,CAAC,QAAS,WAC9DxD,cAAc+C,IAAI,CAAC,SAAUT,CAAY,EACrC+B,EAAOQ,gBAAgB,CAACvC,EAC5B,EACJ,EACJ,CAvGAiB,EAAE,WACEA,EAAE,0BAA0BjD,IAAI,CAAC,WAC7BiD,EAAE,IAAI,EAAEkB,IAAI,CAACnD,0BACbiC,EAAE,IAAI,EAAEmB,MAAM,GAAGC,MAAM,CAACpD,qBAC5B,GAEAgC,EAAE,wBAAwBC,EAAE,CAAC,QAAS,WAClC,IAAIsB,EAAQvB,EAAE,IAAI,EAAEqB,QAAQ,CAAC,0BAE7B5E,cAAc+C,IAAI,CAAC,SAAUT,CAAY,EACrCwC,EAAM1E,aAAa,CAACkC,EACxB,EACJ,EACJ"} +{"version":3,"sources":[""],"sourcesContent":["/// jQuery helper to append text to a textarea or input.\r\njQuery.fn.extend({\r\n insertAtCaret: function (myValue) {\r\n return this.each(function (i) {\r\n if (document.selection) {\r\n //For browsers like Internet Explorer\r\n this.focus();\r\n sel = document.selection.createRange();\r\n sel.text = myValue;\r\n this.focus();\r\n } else if (this.selectionStart || this.selectionStart === \"0\") {\r\n //For browsers like Firefox and Webkit based\r\n var startPos = this.selectionStart;\r\n var endPos = this.selectionEnd;\r\n var scrollTop = this.scrollTop;\r\n this.value = this.value.substring(0, startPos) + myValue + this.value.substring(endPos, this.value.length);\r\n this.focus();\r\n this.selectionStart = startPos + myValue.length;\r\n this.selectionEnd = startPos + myValue.length;\r\n this.scrollTop = scrollTop;\r\n } else {\r\n this.value += myValue;\r\n this.focus();\r\n }\r\n });\r\n }\r\n});\r\n\r\nconst shortcodeWrapperTemplate = `\r\n
\r\n`;\r\n\r\nconst shortcodeBtnTemplate = `\r\n\r\n`;\r\n\r\n// Wraps each .shortcode-modal-input class with a wrapper, and attaches detaches the shortcode app as required.\r\n$(function () {\r\n $('.shortcode-modal-input').each(function () {\r\n $(this).wrap(shortcodeWrapperTemplate);\r\n $(this).parent().append(shortcodeBtnTemplate);\r\n });\r\n\r\n $('.shortcode-modal-btn').on('click', function() {\r\n var input = $(this).siblings('.shortcode-modal-input');\r\n\r\n shortcodesApp.init(function (defaultValue) {\r\n input.insertAtCaret(defaultValue);\r\n }); \r\n });\r\n})\r\n\r\nvar shortcodesApp;\r\n\r\nfunction initializeShortcodesApp(element) {\r\n if (element && !shortcodesApp) {\r\n var elementId = element.id;\r\n\r\n shortcodesApp = new Vue({\r\n el: '#' + elementId,\r\n data : function () {\r\n \r\n var shortcodes = JSON.parse(element.dataset.shortcodes || \"[]\");\r\n var categories = JSON.parse(element.dataset.categories || \"[]\");\r\n\r\n return {\r\n filter: '',\r\n allShortcodes: shortcodes,\r\n filteredShortcodes: shortcodes,\r\n categories: categories,\r\n defaultValue: '',\r\n modal: null\r\n }\r\n },\r\n watch:\r\n {\r\n filter(filter) {\r\n if (filter) {\r\n var lower = filter.toLowerCase();\r\n this.filteredShortcodes = this.allShortcodes\r\n .filter(s => s.name.startsWith(lower));\r\n } else {\r\n this.filteredShortcodes = this.allShortcodes;\r\n }\r\n }\r\n }, \r\n methods: {\r\n init(onClose)\r\n {\r\n if (onClose) {\r\n this.onClose = onClose;\r\n }\r\n this.selectedValue = '';\r\n this.modal = new bootstrap.Modal(this.$el);\r\n this.modal.show();\r\n var self = this;\r\n $(this.$el).on('shown.bs.modal', function (e) {\r\n self.$refs.filter.focus();\r\n });\r\n },\r\n onClose(defaultValue)\r\n {\r\n return;\r\n },\r\n setCategory(category)\r\n {\r\n if (category) {\r\n this.filteredShortcodes = this.allShortcodes\r\n .filter(s => s.categories.some(c => c.toLowerCase() === category.toLowerCase()));\r\n } else {\r\n this.filteredShortcodes = this.allShortcodes;\r\n }\r\n this.filter = '';\r\n }, \r\n isVisible(name) {\r\n return this.filteredShortcodes.some(s => s.name === name);\r\n },\r\n insertShortcode(event) {\r\n this.defaultValue = event.target.dataset.defaultValue;\r\n this.modal.hide();\r\n this.onClose(this.defaultValue);\r\n }\r\n }\r\n });\r\n\r\n return shortcodesApp;\r\n }\r\n}\r\n\r\n// initializes a code mirror editor with a shortcode modal.\r\nfunction initializeCodeMirrorShortcodeWrapper(editor) {\r\n const codemirrorWrapper = editor.display.wrapper;\r\n\r\n $(codemirrorWrapper).wrap(shortcodeWrapperTemplate);\r\n $(codemirrorWrapper).parent().append(shortcodeBtnTemplate);\r\n $(codemirrorWrapper).siblings('.shortcode-modal-btn').on('click', function () {\r\n shortcodesApp.init(function (defaultValue) {\r\n editor.replaceSelection(defaultValue); \r\n }); \r\n }); \r\n}\r\n"],"names":["shortcodesApp","jQuery","fn","extend","insertAtCaret","myValue","each","i","document","selection","focus","sel","createRange","text","selectionStart","startPos","endPos","selectionEnd","scrollTop","value","substring","length","shortcodeWrapperTemplate","shortcodeBtnTemplate","initializeShortcodesApp","element","Vue","el","id","data","shortcodes","JSON","parse","dataset","filter","allShortcodes","filteredShortcodes","categories","defaultValue","modal","watch","lower","toLowerCase","s","name","startsWith","methods","init","onClose","selectedValue","bootstrap","Modal","$el","show","self","$","on","e","$refs","setCategory","category","some","c","isVisible","insertShortcode","event","target","hide","initializeCodeMirrorShortcodeWrapper","editor","codemirrorWrapper","display","wrapper","wrap","parent","append","siblings","replaceSelection","input"],"mappings":"IAsDIA,cArDJC,OAAOC,EAAE,CAACC,MAAM,CAAC,CACbC,cAAe,SAAUC,CAAO,EAC5B,OAAO,IAAI,CAACC,IAAI,CAAC,SAAUC,CAAC,EACxB,GAAIC,SAASC,SAAS,CAElB,IAAI,CAACC,KAAK,GAEVC,AADAA,CAAAA,IAAMH,SAASC,SAAS,CAACG,WAAW,EAAC,EACjCC,IAAI,CAAGR,EACX,IAAI,CAACK,KAAK,QACP,GAAI,IAAI,CAACI,cAAc,EAAI,AAAw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AwBpB,EAAE,CAAC,QAAS,WAC9DxD,cAAc+C,IAAI,CAAC,SAAUT,CAAY,EACrC+B,EAAOQ,gBAAgB,CAACvC,EAC5B,EACJ,EACJ,CAvGAiB,EAAE,WACEA,EAAE,0BAA0BjD,IAAI,CAAC,WAC7BiD,EAAE,IAAI,EAAEkB,IAAI,CAACnD,0BACbiC,EAAE,IAAI,EAAEmB,MAAM,GAAGC,MAAM,CAACpD,qBAC5B,GAEAgC,EAAE,wBAAwBC,EAAE,CAAC,QAAS,WAClC,IAAIsB,EAAQvB,EAAE,IAAI,EAAEqB,QAAQ,CAAC,0BAE7B5E,cAAc+C,IAAI,CAAC,SAAUT,CAAY,EACrCwC,EAAM1E,aAAa,CAACkC,EACxB,EACJ,EACJ"}asd \ No newline at end of file diff --git a/src/OrchardCore.Modules/OrchardCore.Taxonomies/wwwroot/Scripts/activate-links.map b/src/OrchardCore.Modules/OrchardCore.Taxonomies/wwwroot/Scripts/activate-links.map index 5e69b284c1a..d169640a53f 100644 --- a/src/OrchardCore.Modules/OrchardCore.Taxonomies/wwwroot/Scripts/activate-links.map +++ b/src/OrchardCore.Modules/OrchardCore.Taxonomies/wwwroot/Scripts/activate-links.map @@ -1 +1 @@ -{"version":3,"sources":[""],"sourcesContent":["// This script is used to add a class on the active link of a menu.\r\n// Because Menus are often cached, the class needs to be set dynamically using JavaScript.\r\n\r\n(function ($) {\r\n\r\n $.fn.activateLinks = function (options) {\r\n\r\n var settings = $.extend({\r\n // class to add to the selector\r\n class: \"active\",\r\n // custom selector based on the parent of the link\r\n selector: null\r\n }, options);\r\n\r\n var currentUrl = window.location.href.replace(window.location.protocol + '//' + window.location.host, '');\r\n\r\n var items = $(this).find('a[href=\"' + currentUrl + '\"]').parent();\r\n\r\n if (settings.selector) {\r\n items = items.find(settings.selector);\r\n }\r\n\r\n items.addClass(settings.class)\r\n\r\n return this;\r\n };\r\n}(jQuery));"],"names":["$","fn","activateLinks","options","settings","extend","class","selector","currentUrl","window","location","href","replace","protocol","host","items","find","parent","addClass","jQuery"],"mappings":"CAGC,SAAUA,CAAC,EAERA,EAAEC,EAAE,CAACC,aAAa,CAAG,SAAUC,CAAO,EAElC,IAAIC,EAAWJ,EAAEK,MAAM,CAAC,CAEpBC,MAAO,SAEPC,SAAU,IACd,EAAGJ,GAECK,EAAaC,OAAOC,QAAQ,CAACC,IAAI,CAACC,OAAO,CAACH,OAAOC,QAAQ,CAACG,QAAQ,CAAG,KAAOJ,OAAOC,QAAQ,CAACI,IAAI,CAAE,IAElGC,EAAQf,EAAE,IAAI,EAAEgB,IAAI,CAAC,WAAaR,EAAa,MAAMS,MAAM,GAQ/D,OANIb,EAASG,QAAQ,EACjBQ,CAAAA,EAAQA,EAAMC,IAAI,CAACZ,EAASG,QAAQ,CAAA,EAGxCQ,EAAMG,QAAQ,CAACd,EAASE,KAAK,EAEtB,IAAI,AACf,CACJ,EAAEa"} +{"version":3,"sources":[""],"sourcesContent":["// This script is used to add a class on the active link of a menu.\r\n// Because Menus are often cached, the class needs to be set dynamically using JavaScript.\r\n\r\n(function ($) {\r\n\r\n $.fn.activateLinks = function (options) {\r\n\r\n var settings = $.extend({\r\n // class to add to the selector\r\n class: \"active\",\r\n // custom selector based on the parent of the link\r\n selector: null\r\n }, options);\r\n\r\n var currentUrl = window.location.href.replace(window.location.protocol + '//' + window.location.host, '');\r\n\r\n var items = $(this).find('a[href=\"' + currentUrl + '\"]').parent();\r\n\r\n if (settings.selector) {\r\n items = items.find(settings.selector);\r\n }\r\n\r\n items.addClass(settings.class)\r\n\r\n return this;\r\n };\r\n}(jQuery));"],"names":["$","fn","activateLinks","options","settings","extend","class","selector","currentUrl","window","location","href","replace","protocol","host","items","find","parent","addClass","jQuery"],"mappings":"CAGC,SAAUA,CAAC,EAERA,EAAEC,EAAE,CAACC,aAAa,CAAG,SAAUC,CAAO,EAElC,IAAIC,EAAWJ,EAAEK,MAAM,CAAC,CAEpBC,MAAO,SAEPC,SAAU,IACd,EAAGJ,GAECK,EAAaC,OAAOC,QAAQ,CAACC,IAAI,CAACC,OAAO,CAACH,OAAOC,QAAQ,CAACG,QAAQ,CAAG,KAAOJ,OAAOC,QAAQ,CAACI,IAAI,CAAE,IAElGC,EAAQf,EAAE,IAAI,EAAEgB,IAAI,CAAC,WAAaR,EAAa,MAAMS,MAAM,GAQ/D,OANIb,EAASG,QAAQ,EACjBQ,CAAAA,EAAQA,EAAMC,IAAI,CAACZ,EAASG,QAAQ,CAAA,EAGxCQ,EAAMG,QAAQ,CAACd,EAASE,KAAK,EAEtB,IAAI,AACf,CACJ,EAAEa"}asd \ No newline at end of file diff --git a/src/OrchardCore.Modules/OrchardCore.Taxonomies/wwwroot/Scripts/menu.map b/src/OrchardCore.Modules/OrchardCore.Taxonomies/wwwroot/Scripts/menu.map index 69ac544f113..d68f030fc54 100644 --- a/src/OrchardCore.Modules/OrchardCore.Taxonomies/wwwroot/Scripts/menu.map +++ b/src/OrchardCore.Modules/OrchardCore.Taxonomies/wwwroot/Scripts/menu.map @@ -1 +1 @@ -{"version":3,"sources":[""],"sourcesContent":["/*\r\n * jQuery UI Nested Sortable\r\n * v 2.1a / 2016-02-04\r\n * https://github.com/ilikenwf/nestedSortable\r\n *\r\n * Depends on:\r\n *\t jquery.ui.sortable.js 1.10+\r\n *\r\n * Copyright (c) 2010-2016 Manuele J Sarfatti and contributors\r\n * Licensed under the MIT License\r\n * http://www.opensource.org/licenses/mit-license.php\r\n */\r\n(function( factory ) {\r\n\t\"use strict\";\r\n\r\n\tif ( typeof define === \"function\" && define.amd ) {\r\n\r\n\t\t// AMD. Register as an anonymous module.\r\n\t\tdefine([\r\n\t\t\t\"jquery\",\r\n\t\t\t\"jquery-ui/sortable\"\r\n\t\t], factory );\r\n\t} else {\r\n\r\n\t\t// Browser globals\r\n\t\tfactory( window.jQuery );\r\n\t}\r\n}(function($) {\r\n\t\"use strict\";\r\n\r\n\tfunction isOverAxis( x, reference, size ) {\r\n\t\treturn ( x > reference ) && ( x < ( reference + size ) );\r\n\t}\r\n\r\n\t$.widget(\"mjs.nestedSortable\", $.extend({}, $.ui.sortable.prototype, {\r\n\r\n\t\toptions: {\r\n\t\t\tdisableParentChange: false,\r\n\t\t\tdoNotClear: false,\r\n\t\t\texpandOnHover: 700,\r\n\t\t\tisAllowed: function() { return true; },\r\n\t\t\tisTree: false,\r\n\t\t\tlistType: \"ol\",\r\n\t\t\tmaxLevels: 0,\r\n\t\t\tprotectRoot: false,\r\n\t\t\trootID: null,\r\n\t\t\trtl: false,\r\n\t\t\tstartCollapsed: false,\r\n\t\t\ttabSize: 20,\r\n\r\n\t\t\tbranchClass: \"mjs-nestedSortable-branch\",\r\n\t\t\tcollapsedClass: \"mjs-nestedSortable-collapsed\",\r\n\t\t\tdisableNestingClass: \"mjs-nestedSortable-no-nesting\",\r\n\t\t\terrorClass: \"mjs-nestedSortable-error\",\r\n\t\t\texpandedClass: \"mjs-nestedSortable-expanded\",\r\n\t\t\thoveringClass: \"mjs-nestedSortable-hovering\",\r\n\t\t\tleafClass: \"mjs-nestedSortable-leaf\",\r\n\t\t\tdisabledClass: \"mjs-nestedSortable-disabled\"\r\n\t\t},\r\n\r\n\t\t_create: function() {\r\n\t\t\tvar self = this,\r\n\t\t\t\terr;\r\n\r\n\t\t\tthis.element.data(\"ui-sortable\", this.element.data(\"mjs-nestedSortable\"));\r\n\r\n\t\t\t// mjs - prevent browser from freezing if the HTML is not correct\r\n\t\t\tif (!this.element.is(this.options.listType)) {\r\n\t\t\t\terr = \"nestedSortable: \" +\r\n\t\t\t\t\t\"Please check that the listType option is set to your actual list type\";\r\n\r\n\t\t\t\tthrow new Error(err);\r\n\t\t\t}\r\n\r\n\t\t\t// if we have a tree with expanding/collapsing functionality,\r\n\t\t\t// force 'intersect' tolerance method\r\n\t\t\tif (this.options.isTree && this.options.expandOnHover) {\r\n\t\t\t\tthis.options.tolerance = \"intersect\";\r\n\t\t\t}\r\n\r\n\t\t\t$.ui.sortable.prototype._create.apply(this, arguments);\r\n\r\n\t\t\t// prepare the tree by applying the right classes\r\n\t\t\t// (the CSS is responsible for actual hide/show functionality)\r\n\t\t\tif (this.options.isTree) {\r\n\t\t\t\t$(this.items).each(function() {\r\n\t\t\t\t\tvar $li = this.item,\r\n\t\t\t\t\t\thasCollapsedClass = $li.hasClass(self.options.collapsedClass),\r\n\t\t\t\t\t\thasExpandedClass = $li.hasClass(self.options.expandedClass);\r\n\r\n\t\t\t\t\tif ($li.children(self.options.listType).length) {\r\n\t\t\t\t\t\t$li.addClass(self.options.branchClass);\r\n\t\t\t\t\t\t// expand/collapse class only if they have children\r\n\r\n\t\t\t\t\t\tif ( !hasCollapsedClass && !hasExpandedClass ) {\r\n\t\t\t\t\t\t\tif (self.options.startCollapsed) {\r\n\t\t\t\t\t\t\t\t$li.addClass(self.options.collapsedClass);\r\n\t\t\t\t\t\t\t} else {\r\n\t\t\t\t\t\t\t\t$li.addClass(self.options.expandedClass);\r\n\t\t\t\t\t\t\t}\r\n\t\t\t\t\t\t}\r\n\t\t\t\t\t} else {\r\n\t\t\t\t\t\t$li.addClass(self.options.leafClass);\r\n\t\t\t\t\t}\r\n\t\t\t\t});\r\n\t\t\t}\r\n\t\t},\r\n\r\n\t\t_destroy: function() {\r\n\t\t\tthis.element\r\n\t\t\t\t.removeData(\"mjs-nestedSortable\")\r\n\t\t\t\t.removeData(\"ui-sortable\");\r\n\t\t\treturn $.ui.sortable.prototype._destroy.apply(this, arguments);\r\n\t\t},\r\n\r\n\t\t_mouseDrag: function(event) {\r\n\t\t\tvar i,\r\n\t\t\t\titem,\r\n\t\t\t\titemElement,\r\n\t\t\t\tintersection,\r\n\t\t\t\tself = this,\r\n\t\t\t\to = this.options,\r\n\t\t\t\tscrolled = false,\r\n\t\t\t\t$document = $(document),\r\n\t\t\t\tpreviousTopOffset,\r\n\t\t\t\tparentItem,\r\n\t\t\t\tlevel,\r\n\t\t\t\tchildLevels,\r\n\t\t\t\titemAfter,\r\n\t\t\t\titemBefore,\r\n\t\t\t\tnewList,\r\n\t\t\t\tmethod,\r\n\t\t\t\ta,\r\n\t\t\t\tpreviousItem,\r\n\t\t\t\tnextItem,\r\n\t\t\t\thelperIsNotSibling;\r\n\r\n\t\t\t//Compute the helpers position\r\n\t\t\tthis.position = this._generatePosition(event);\r\n\t\t\tthis.positionAbs = this._convertPositionTo(\"absolute\");\r\n\r\n\t\t\tif (!this.lastPositionAbs) {\r\n\t\t\t\tthis.lastPositionAbs = this.positionAbs;\r\n\t\t\t}\r\n\r\n\t\t\t//Do scrolling\r\n\t\t\tif (this.options.scroll) {\r\n\t\t\t\tif (this.scrollParent[0] !== document && this.scrollParent[0].tagName !== \"HTML\") {\r\n\r\n\t\t\t\t\tif (\r\n\t\t\t\t\t\t(\r\n\t\t\t\t\t\t\tthis.overflowOffset.top +\r\n\t\t\t\t\t\t\tthis.scrollParent[0].offsetHeight\r\n\t\t\t\t\t\t) -\r\n\t\t\t\t\t\tevent.pageY <\r\n\t\t\t\t\t\to.scrollSensitivity\r\n\t\t\t\t\t) {\r\n\t\t\t\t\t\tscrolled = this.scrollParent.scrollTop() + o.scrollSpeed;\r\n\t\t\t\t\t\tthis.scrollParent.scrollTop(scrolled);\r\n\t\t\t\t\t} else if (\r\n\t\t\t\t\t\tevent.pageY -\r\n\t\t\t\t\t\tthis.overflowOffset.top <\r\n\t\t\t\t\t\to.scrollSensitivity\r\n\t\t\t\t\t) {\r\n\t\t\t\t\t\tscrolled = this.scrollParent.scrollTop() - o.scrollSpeed;\r\n\t\t\t\t\t\tthis.scrollParent.scrollTop(scrolled);\r\n\t\t\t\t\t}\r\n\r\n\t\t\t\t\tif (\r\n\t\t\t\t\t\t(\r\n\t\t\t\t\t\t\tthis.overflowOffset.left +\r\n\t\t\t\t\t\t\tthis.scrollParent[0].offsetWidth\r\n\t\t\t\t\t\t) -\r\n\t\t\t\t\t\tevent.pageX <\r\n\t\t\t\t\t\to.scrollSensitivity\r\n\t\t\t\t\t) {\r\n\t\t\t\t\t\tscrolled = this.scrollParent.scrollLeft() + o.scrollSpeed;\r\n\t\t\t\t\t\tthis.scrollParent.scrollLeft(scrolled);\r\n\t\t\t\t\t} else if (\r\n\t\t\t\t\t\tevent.pageX -\r\n\t\t\t\t\t\tthis.overflowOffset.left <\r\n\t\t\t\t\t\to.scrollSensitivity\r\n\t\t\t\t\t) {\r\n\t\t\t\t\t\tscrolled = this.scrollParent.scrollLeft() - o.scrollSpeed;\r\n\t\t\t\t\t\tthis.scrollParent.scrollLeft(scrolled);\r\n\t\t\t\t\t}\r\n\r\n\t\t\t\t} else {\r\n\r\n\t\t\t\t\tif (\r\n\t\t\t\t\t\tevent.pageY -\r\n\t\t\t\t\t\t$document.scrollTop() <\r\n\t\t\t\t\t\to.scrollSensitivity\r\n\t\t\t\t\t) {\r\n\t\t\t\t\t\tscrolled = $document.scrollTop() - o.scrollSpeed;\r\n\t\t\t\t\t\t$document.scrollTop(scrolled);\r\n\t\t\t\t\t} else if (\r\n\t\t\t\t\t\t$(window).height() -\r\n\t\t\t\t\t\t(\r\n\t\t\t\t\t\t\tevent.pageY -\r\n\t\t\t\t\t\t\t$document.scrollTop()\r\n\t\t\t\t\t\t) <\r\n\t\t\t\t\t\to.scrollSensitivity\r\n\t\t\t\t\t) {\r\n\t\t\t\t\t\tscrolled = $document.scrollTop() + o.scrollSpeed;\r\n\t\t\t\t\t\t$document.scrollTop(scrolled);\r\n\t\t\t\t\t}\r\n\r\n\t\t\t\t\tif (\r\n\t\t\t\t\t\tevent.pageX -\r\n\t\t\t\t\t\t$document.scrollLeft() <\r\n\t\t\t\t\t\to.scrollSensitivity\r\n\t\t\t\t\t) {\r\n\t\t\t\t\t\tscrolled = $document.scrollLeft() - o.scrollSpeed;\r\n\t\t\t\t\t\t$document.scrollLeft(scrolled);\r\n\t\t\t\t\t} else if (\r\n\t\t\t\t\t\t$(window).width() -\r\n\t\t\t\t\t\t(\r\n\t\t\t\t\t\t\tevent.pageX -\r\n\t\t\t\t\t\t\t$document.scrollLeft()\r\n\t\t\t\t\t\t) <\r\n\t\t\t\t\t\to.scrollSensitivity\r\n\t\t\t\t\t) {\r\n\t\t\t\t\t\tscrolled = $document.scrollLeft() + o.scrollSpeed;\r\n\t\t\t\t\t\t$document.scrollLeft(scrolled);\r\n\t\t\t\t\t}\r\n\r\n\t\t\t\t}\r\n\r\n\t\t\t\tif (scrolled !== false && $.ui.ddmanager && !o.dropBehaviour) {\r\n\t\t\t\t\t$.ui.ddmanager.prepareOffsets(this, event);\r\n\t\t\t\t}\r\n\t\t\t}\r\n\r\n\t\t\t//Regenerate the absolute position used for position checks\r\n\t\t\tthis.positionAbs = this._convertPositionTo(\"absolute\");\r\n\r\n\t\t\t// mjs - find the top offset before rearrangement,\r\n\t\t\tpreviousTopOffset = this.placeholder.offset().top;\r\n\r\n\t\t\t//Set the helper position\r\n\t\t\tif (!this.options.axis || this.options.axis !== \"y\") {\r\n\t\t\t\tthis.helper[0].style.left = this.position.left + \"px\";\r\n\t\t\t}\r\n\t\t\tif (!this.options.axis || this.options.axis !== \"x\") {\r\n\t\t\t\tthis.helper[0].style.top = (this.position.top) + \"px\";\r\n\t\t\t}\r\n\r\n\t\t\t// mjs - check and reset hovering state at each cycle\r\n\t\t\tthis.hovering = this.hovering ? this.hovering : null;\r\n\t\t\tthis.mouseentered = this.mouseentered ? this.mouseentered : false;\r\n\r\n\t\t\t// mjs - let's start caching some variables\r\n\t\t\t(function() {\r\n\t\t\t\tvar _parentItem = this.placeholder.parent().parent();\r\n\t\t\t\tif (_parentItem && _parentItem.closest(\".ui-sortable\").length) {\r\n\t\t\t\t\tparentItem = _parentItem;\r\n\t\t\t\t}\r\n\t\t\t}.call(this));\r\n\r\n\t\t\tlevel = this._getLevel(this.placeholder);\r\n\t\t\tchildLevels = this._getChildLevels(this.helper);\r\n\t\t\tnewList = document.createElement(o.listType);\r\n\r\n\t\t\t//Rearrange\r\n\t\t\tfor (i = this.items.length - 1; i >= 0; i--) {\r\n\r\n\t\t\t\t//Cache variables and intersection, continue if no intersection\r\n\t\t\t\titem = this.items[i];\r\n\t\t\t\titemElement = item.item[0];\r\n\t\t\t\tintersection = this._intersectsWithPointer(item);\r\n\t\t\t\tif (!intersection) {\r\n\t\t\t\t\tcontinue;\r\n\t\t\t\t}\r\n\r\n\t\t\t\t// Only put the placeholder inside the current Container, skip all\r\n\t\t\t\t// items form other containers. This works because when moving\r\n\t\t\t\t// an item from one container to another the\r\n\t\t\t\t// currentContainer is switched before the placeholder is moved.\r\n\t\t\t\t//\r\n\t\t\t\t// Without this moving items in \"sub-sortables\" can cause the placeholder to jitter\r\n\t\t\t\t// beetween the outer and inner container.\r\n\t\t\t\tif (item.instance !== this.currentContainer) {\r\n\t\t\t\t\tcontinue;\r\n\t\t\t\t}\r\n\r\n\t\t\t\t// No action if intersected item is disabled\r\n\t\t\t\t// and the element above or below in the direction we're going is also disabled\r\n\t\t\t\tif (itemElement.className.indexOf(o.disabledClass) !== -1) {\r\n\t\t\t\t\t// Note: intersection hardcoded direction values from\r\n\t\t\t\t\t// jquery.ui.sortable.js:_intersectsWithPointer\r\n\t\t\t\t\tif (intersection === 2) {\r\n\t\t\t\t\t\t// Going down\r\n\t\t\t\t\t\titemAfter = this.items[i + 1];\r\n\t\t\t\t\t\tif (itemAfter && itemAfter.item.hasClass(o.disabledClass)) {\r\n\t\t\t\t\t\t\tcontinue;\r\n\t\t\t\t\t\t}\r\n\r\n\t\t\t\t\t} else if (intersection === 1) {\r\n\t\t\t\t\t\t// Going up\r\n\t\t\t\t\t\titemBefore = this.items[i - 1];\r\n\t\t\t\t\t\tif (itemBefore && itemBefore.item.hasClass(o.disabledClass)) {\r\n\t\t\t\t\t\t\tcontinue;\r\n\t\t\t\t\t\t}\r\n\t\t\t\t\t}\r\n\t\t\t\t}\r\n\r\n\t\t\t\tmethod = intersection === 1 ? \"next\" : \"prev\";\r\n\r\n\t\t\t\t// cannot intersect with itself\r\n\t\t\t\t// no useless actions that have been done before\r\n\t\t\t\t// no action if the item moved is the parent of the item checked\r\n\t\t\t\tif (itemElement !== this.currentItem[0] &&\r\n\t\t\t\t\tthis.placeholder[method]()[0] !== itemElement &&\r\n\t\t\t\t\t!$.contains(this.placeholder[0], itemElement) &&\r\n\t\t\t\t\t(\r\n\t\t\t\t\t\tthis.options.type === \"semi-dynamic\" ?\r\n\t\t\t\t\t\t\t!$.contains(this.element[0], itemElement) :\r\n\t\t\t\t\t\t\ttrue\r\n\t\t\t\t\t)\r\n\t\t\t\t) {\r\n\r\n\t\t\t\t\t// mjs - we are intersecting an element:\r\n\t\t\t\t\t// trigger the mouseenter event and store this state\r\n\t\t\t\t\tif (!this.mouseentered) {\r\n\t\t\t\t\t\t$(itemElement).mouseenter();\r\n\t\t\t\t\t\tthis.mouseentered = true;\r\n\t\t\t\t\t}\r\n\r\n\t\t\t\t\t// mjs - if the element has children and they are hidden,\r\n\t\t\t\t\t// show them after a delay (CSS responsible)\r\n\t\t\t\t\tif (o.isTree && $(itemElement).hasClass(o.collapsedClass) && o.expandOnHover) {\r\n\t\t\t\t\t\tif (!this.hovering) {\r\n\t\t\t\t\t\t\t$(itemElement).addClass(o.hoveringClass);\r\n\t\t\t\t\t\t\tthis.hovering = window.setTimeout(function() {\r\n\t\t\t\t\t\t\t\t$(itemElement)\r\n\t\t\t\t\t\t\t\t\t.removeClass(o.collapsedClass)\r\n\t\t\t\t\t\t\t\t\t.addClass(o.expandedClass);\r\n\r\n\t\t\t\t\t\t\t\tself.refreshPositions();\r\n\t\t\t\t\t\t\t\tself._trigger(\"expand\", event, self._uiHash());\r\n\t\t\t\t\t\t\t}, o.expandOnHover);\r\n\t\t\t\t\t\t}\r\n\t\t\t\t\t}\r\n\r\n\t\t\t\t\tthis.direction = intersection === 1 ? \"down\" : \"up\";\r\n\r\n\t\t\t\t\t// mjs - rearrange the elements and reset timeouts and hovering state\r\n\t\t\t\t\tif (this.options.tolerance === \"pointer\" || this._intersectsWithSides(item)) {\r\n\t\t\t\t\t\t$(itemElement).mouseleave();\r\n\t\t\t\t\t\tthis.mouseentered = false;\r\n\t\t\t\t\t\t$(itemElement).removeClass(o.hoveringClass);\r\n\t\t\t\t\t\tif (this.hovering) {\r\n\t\t\t\t\t\t\twindow.clearTimeout(this.hovering);\r\n\t\t\t\t\t\t}\r\n\t\t\t\t\t\tthis.hovering = null;\r\n\r\n\t\t\t\t\t\t// mjs - do not switch container if\r\n\t\t\t\t\t\t// it's a root item and 'protectRoot' is true\r\n\t\t\t\t\t\t// or if it's not a root item but we are trying to make it root\r\n\t\t\t\t\t\tif (o.protectRoot &&\r\n\t\t\t\t\t\t\t!(\r\n\t\t\t\t\t\t\t\tthis.currentItem[0].parentNode === this.element[0] &&\r\n\t\t\t\t\t\t\t\t// it's a root item\r\n\t\t\t\t\t\t\t\titemElement.parentNode !== this.element[0]\r\n\t\t\t\t\t\t\t\t// it's intersecting a non-root item\r\n\t\t\t\t\t\t\t)\r\n\t\t\t\t\t\t) {\r\n\t\t\t\t\t\t\tif (this.currentItem[0].parentNode !== this.element[0] &&\r\n\t\t\t\t\t\t\t\titemElement.parentNode === this.element[0]\r\n\t\t\t\t\t\t\t) {\r\n\r\n\t\t\t\t\t\t\t\tif ( !$(itemElement).children(o.listType).length) {\r\n\t\t\t\t\t\t\t\t\titemElement.appendChild(newList);\r\n\t\t\t\t\t\t\t\t\tif (o.isTree) {\r\n\t\t\t\t\t\t\t\t\t\t$(itemElement)\r\n\t\t\t\t\t\t\t\t\t\t\t.removeClass(o.leafClass)\r\n\t\t\t\t\t\t\t\t\t\t\t.addClass(o.branchClass + \" \" + o.expandedClass);\r\n\t\t\t\t\t\t\t\t\t}\r\n\t\t\t\t\t\t\t\t}\r\n\r\n\t\t\t\t\t\t\t\tif (this.direction === \"down\") {\r\n\t\t\t\t\t\t\t\t\ta = $(itemElement).prev().children(o.listType);\r\n\t\t\t\t\t\t\t\t} else {\r\n\t\t\t\t\t\t\t\t\ta = $(itemElement).children(o.listType);\r\n\t\t\t\t\t\t\t\t}\r\n\r\n\t\t\t\t\t\t\t\tif (a[0] !== undefined) {\r\n\t\t\t\t\t\t\t\t\tthis._rearrange(event, null, a);\r\n\t\t\t\t\t\t\t\t}\r\n\r\n\t\t\t\t\t\t\t} else {\r\n\t\t\t\t\t\t\t\tthis._rearrange(event, item);\r\n\t\t\t\t\t\t\t}\r\n\t\t\t\t\t\t} else if (!o.protectRoot) {\r\n\t\t\t\t\t\t\tthis._rearrange(event, item);\r\n\t\t\t\t\t\t}\r\n\t\t\t\t\t} else {\r\n\t\t\t\t\t\tbreak;\r\n\t\t\t\t\t}\r\n\r\n\t\t\t\t\t// Clear emtpy ul's/ol's\r\n\t\t\t\t\tthis._clearEmpty(itemElement);\r\n\r\n\t\t\t\t\tthis._trigger(\"change\", event, this._uiHash());\r\n\t\t\t\t\tbreak;\r\n\t\t\t\t}\r\n\t\t\t}\r\n\r\n\t\t\t// mjs - to find the previous sibling in the list,\r\n\t\t\t// keep backtracking until we hit a valid list item.\r\n\t\t\t(function() {\r\n\t\t\t\tvar _previousItem = this.placeholder.prev();\r\n\t\t\t\tif (_previousItem.length) {\r\n\t\t\t\t\tpreviousItem = _previousItem;\r\n\t\t\t\t} else {\r\n\t\t\t\t\tpreviousItem = null;\r\n\t\t\t\t}\r\n\t\t\t}.call(this));\r\n\r\n\t\t\tif (previousItem != null) {\r\n\t\t\t\twhile (\r\n\t\t\t\t\tpreviousItem[0].nodeName.toLowerCase() !== \"li\" ||\r\n\t\t\t\t\tpreviousItem[0].className.indexOf(o.disabledClass) !== -1 ||\r\n\t\t\t\t\tpreviousItem[0] === this.currentItem[0] ||\r\n\t\t\t\t\tpreviousItem[0] === this.helper[0]\r\n\t\t\t\t) {\r\n\t\t\t\t\tif (previousItem[0].previousSibling) {\r\n\t\t\t\t\t\tpreviousItem = $(previousItem[0].previousSibling);\r\n\t\t\t\t\t} else {\r\n\t\t\t\t\t\tpreviousItem = null;\r\n\t\t\t\t\t\tbreak;\r\n\t\t\t\t\t}\r\n\t\t\t\t}\r\n\t\t\t}\r\n\r\n\t\t\t// mjs - to find the next sibling in the list,\r\n\t\t\t// keep stepping forward until we hit a valid list item.\r\n\t\t\t(function() {\r\n\t\t\t\tvar _nextItem = this.placeholder.next();\r\n\t\t\t\tif (_nextItem.length) {\r\n\t\t\t\t\tnextItem = _nextItem;\r\n\t\t\t\t} else {\r\n\t\t\t\t\tnextItem = null;\r\n\t\t\t\t}\r\n\t\t\t}.call(this));\r\n\r\n\t\t\tif (nextItem != null) {\r\n\t\t\t\twhile (\r\n\t\t\t\t\tnextItem[0].nodeName.toLowerCase() !== \"li\" ||\r\n\t\t\t\t\tnextItem[0].className.indexOf(o.disabledClass) !== -1 ||\r\n\t\t\t\t\tnextItem[0] === this.currentItem[0] ||\r\n\t\t\t\t\tnextItem[0] === this.helper[0]\r\n\t\t\t\t) {\r\n\t\t\t\t\tif (nextItem[0].nextSibling) {\r\n\t\t\t\t\t\tnextItem = $(nextItem[0].nextSibling);\r\n\t\t\t\t\t} else {\r\n\t\t\t\t\t\tnextItem = null;\r\n\t\t\t\t\t\tbreak;\r\n\t\t\t\t\t}\r\n\t\t\t\t}\r\n\t\t\t}\r\n\r\n\t\t\tthis.beyondMaxLevels = 0;\r\n\r\n\t\t\t// mjs - if the item is moved to the left, send it one level up\r\n\t\t\t// but only if it's at the bottom of the list\r\n\t\t\tif (parentItem != null &&\r\n\t\t\t\tnextItem == null &&\r\n\t\t\t\t!(o.protectRoot && parentItem[0].parentNode == this.element[0]) &&\r\n\t\t\t\t(\r\n\t\t\t\t\to.rtl &&\r\n\t\t\t\t\t(\r\n\t\t\t\t\t\tthis.positionAbs.left +\r\n\t\t\t\t\t\tthis.helper.outerWidth() > parentItem.offset().left +\r\n\t\t\t\t\t\tparentItem.outerWidth()\r\n\t\t\t\t\t) ||\r\n\t\t\t\t\t!o.rtl && (this.positionAbs.left < parentItem.offset().left)\r\n\t\t\t\t)\r\n\t\t\t) {\r\n\r\n\t\t\t\tparentItem.after(this.placeholder[0]);\r\n\t\t\t\thelperIsNotSibling = !parentItem\r\n\t\t\t\t\t\t\t\t\t\t\t.children(o.listItem)\r\n\t\t\t\t\t\t\t\t\t\t\t.children(\"li:visible:not(.ui-sortable-helper)\")\r\n\t\t\t\t\t\t\t\t\t\t\t.length;\r\n\t\t\t\tif (o.isTree && helperIsNotSibling) {\r\n\t\t\t\t\tparentItem\r\n\t\t\t\t\t\t.removeClass(this.options.branchClass + \" \" + this.options.expandedClass)\r\n\t\t\t\t\t\t.addClass(this.options.leafClass);\r\n\t\t\t\t}\r\n if(typeof parentItem !== 'undefined')\r\n\t\t\t\t this._clearEmpty(parentItem[0]);\r\n\t\t\t\tthis._trigger(\"change\", event, this._uiHash());\r\n\t\t\t\t// mjs - if the item is below a sibling and is moved to the right,\r\n\t\t\t\t// make it a child of that sibling\r\n\t\t\t} else if (previousItem != null &&\r\n\t\t\t\t!previousItem.hasClass(o.disableNestingClass) &&\r\n\t\t\t\t(\r\n\t\t\t\t\tpreviousItem.children(o.listType).length &&\r\n\t\t\t\t\tpreviousItem.children(o.listType).is(\":visible\") ||\r\n\t\t\t\t\t!previousItem.children(o.listType).length\r\n\t\t\t\t) &&\r\n\t\t\t\t!(o.protectRoot && this.currentItem[0].parentNode === this.element[0]) &&\r\n\t\t\t\t(\r\n\t\t\t\t\to.rtl &&\r\n\t\t\t\t\t(\r\n\t\t\t\t\t\tthis.positionAbs.left +\r\n\t\t\t\t\t\tthis.helper.outerWidth() <\r\n\t\t\t\t\t\tpreviousItem.offset().left +\r\n\t\t\t\t\t\tpreviousItem.outerWidth() -\r\n\t\t\t\t\t\to.tabSize\r\n\t\t\t\t\t) ||\r\n\t\t\t\t\t!o.rtl &&\r\n\t\t\t\t\t(this.positionAbs.left > previousItem.offset().left + o.tabSize)\r\n\t\t\t\t)\r\n\t\t\t) {\r\n\r\n\t\t\t\tthis._isAllowed(previousItem, level, level + childLevels + 1);\r\n\r\n\t\t\t\tif (!previousItem.children(o.listType).length) {\r\n\t\t\t\t\tpreviousItem[0].appendChild(newList);\r\n\t\t\t\t\tif (o.isTree) {\r\n\t\t\t\t\t\tpreviousItem\r\n\t\t\t\t\t\t\t.removeClass(o.leafClass)\r\n\t\t\t\t\t\t\t.addClass(o.branchClass + \" \" + o.expandedClass);\r\n\t\t\t\t\t}\r\n\t\t\t\t}\r\n\r\n\t\t\t\t// mjs - if this item is being moved from the top, add it to the top of the list.\r\n\t\t\t\tif (previousTopOffset && (previousTopOffset <= previousItem.offset().top)) {\r\n\t\t\t\t\tpreviousItem.children(o.listType).prepend(this.placeholder);\r\n\t\t\t\t} else {\r\n\t\t\t\t\t// mjs - otherwise, add it to the bottom of the list.\r\n\t\t\t\t\tpreviousItem.children(o.listType)[0].appendChild(this.placeholder[0]);\r\n\t\t\t\t}\r\n if(typeof parentItem !== 'undefined')\r\n\t\t\t\t this._clearEmpty(parentItem[0]);\r\n\t\t\t\tthis._trigger(\"change\", event, this._uiHash());\r\n\t\t\t} else {\r\n\t\t\t\tthis._isAllowed(parentItem, level, level + childLevels);\r\n\t\t\t}\r\n\r\n\t\t\t//Post events to containers\r\n\t\t\tthis._contactContainers(event);\r\n\r\n\t\t\t//Interconnect with droppables\r\n\t\t\tif ($.ui.ddmanager) {\r\n\t\t\t\t$.ui.ddmanager.drag(this, event);\r\n\t\t\t}\r\n\r\n\t\t\t//Call callbacks\r\n\t\t\tthis._trigger(\"sort\", event, this._uiHash());\r\n\r\n\t\t\tthis.lastPositionAbs = this.positionAbs;\r\n\t\t\treturn false;\r\n\r\n\t\t},\r\n\r\n\t\t_mouseStop: function(event) {\r\n\t\t\t// mjs - if the item is in a position not allowed, send it back\r\n\t\t\tif (this.beyondMaxLevels) {\r\n\r\n\t\t\t\tthis.placeholder.removeClass(this.options.errorClass);\r\n\r\n\t\t\t\tif (this.domPosition.prev) {\r\n\t\t\t\t\t$(this.domPosition.prev).after(this.placeholder);\r\n\t\t\t\t} else {\r\n\t\t\t\t\t$(this.domPosition.parent).prepend(this.placeholder);\r\n\t\t\t\t}\r\n\r\n\t\t\t\tthis._trigger(\"revert\", event, this._uiHash());\r\n\r\n\t\t\t}\r\n\r\n\t\t\t// mjs - clear the hovering timeout, just to be sure\r\n\t\t\t$(\".\" + this.options.hoveringClass)\r\n\t\t\t\t.mouseleave()\r\n\t\t\t\t.removeClass(this.options.hoveringClass);\r\n\r\n\t\t\tthis.mouseentered = false;\r\n\t\t\tif (this.hovering) {\r\n\t\t\t\twindow.clearTimeout(this.hovering);\r\n\t\t\t}\r\n\t\t\tthis.hovering = null;\r\n\r\n\t\t\tthis._relocate_event = event;\r\n\t\t\tthis._pid_current = $(this.domPosition.parent).parent().attr(\"id\");\r\n\t\t\tthis._sort_current = this.domPosition.prev ? $(this.domPosition.prev).next().index() : 0;\r\n\t\t\t$.ui.sortable.prototype._mouseStop.apply(this, arguments); //asybnchronous execution, @see _clear for the relocate event.\r\n\t\t},\r\n\r\n\t\t// mjs - this function is slightly modified\r\n\t\t// to make it easier to hover over a collapsed element and have it expand\r\n\t\t_intersectsWithSides: function(item) {\r\n\r\n\t\t\tvar half = this.options.isTree ? .8 : .5,\r\n\t\t\t\tisOverBottomHalf = isOverAxis(\r\n\t\t\t\t\tthis.positionAbs.top + this.offset.click.top,\r\n\t\t\t\t\titem.top + (item.height * half),\r\n\t\t\t\t\titem.height\r\n\t\t\t\t),\r\n\t\t\t\tisOverTopHalf = isOverAxis(\r\n\t\t\t\t\tthis.positionAbs.top + this.offset.click.top,\r\n\t\t\t\t\titem.top - (item.height * half),\r\n\t\t\t\t\titem.height\r\n\t\t\t\t),\r\n\t\t\t\tisOverRightHalf = isOverAxis(\r\n\t\t\t\t\tthis.positionAbs.left + this.offset.click.left,\r\n\t\t\t\t\titem.left + (item.width / 2),\r\n\t\t\t\t\titem.width\r\n\t\t\t\t),\r\n\t\t\t\tverticalDirection = this._getDragVerticalDirection(),\r\n\t\t\t\thorizontalDirection = this._getDragHorizontalDirection();\r\n\r\n\t\t\tif (this.floating && horizontalDirection) {\r\n\t\t\t\treturn (\r\n\t\t\t\t\t(horizontalDirection === \"right\" && isOverRightHalf) ||\r\n\t\t\t\t\t(horizontalDirection === \"left\" && !isOverRightHalf)\r\n\t\t\t\t);\r\n\t\t\t} else {\r\n\t\t\t\treturn verticalDirection && (\r\n\t\t\t\t\t(verticalDirection === \"down\" && isOverBottomHalf) ||\r\n\t\t\t\t\t(verticalDirection === \"up\" && isOverTopHalf)\r\n\t\t\t\t);\r\n\t\t\t}\r\n\r\n\t\t},\r\n\r\n\t\t_contactContainers: function() {\r\n\r\n\t\t\tif (this.options.protectRoot && this.currentItem[0].parentNode === this.element[0] ) {\r\n\t\t\t\treturn;\r\n\t\t\t}\r\n\r\n\t\t\t$.ui.sortable.prototype._contactContainers.apply(this, arguments);\r\n\r\n\t\t},\r\n\r\n\t\t_clear: function() {\r\n\t\t\tvar i,\r\n\t\t\t\titem;\r\n\r\n\t\t\t$.ui.sortable.prototype._clear.apply(this, arguments);\r\n\r\n\t\t\t//relocate event\r\n\t\t\tif (!(this._pid_current === this._uiHash().item.parent().parent().attr(\"id\") &&\r\n\t\t\t\tthis._sort_current === this._uiHash().item.index())) {\r\n\t\t\t\tthis._trigger(\"relocate\", this._relocate_event, this._uiHash());\r\n\t\t\t}\r\n\r\n\t\t\t// mjs - clean last empty ul/ol\r\n\t\t\tfor (i = this.items.length - 1; i >= 0; i--) {\r\n\t\t\t\titem = this.items[i].item[0];\r\n\t\t\t\tthis._clearEmpty(item);\r\n\t\t\t}\r\n\r\n\t\t},\r\n\r\n\t\tserialize: function(options) {\r\n\r\n\t\t\tvar o = $.extend({}, this.options, options),\r\n\t\t\t\titems = this._getItemsAsjQuery(o && o.connected),\r\n\t\t\t\tstr = [];\r\n\r\n\t\t\t$(items).each(function() {\r\n\t\t\t\tvar res = ($(o.item || this).attr(o.attribute || \"id\") || \"\")\r\n\t\t\t\t\t\t.match(o.expression || (/(.+)[-=_](.+)/)),\r\n\t\t\t\t\tpid = ($(o.item || this).parent(o.listType)\r\n\t\t\t\t\t\t.parent(o.items)\r\n\t\t\t\t\t\t.attr(o.attribute || \"id\") || \"\")\r\n\t\t\t\t\t\t.match(o.expression || (/(.+)[-=_](.+)/));\r\n\r\n\t\t\t\tif (res) {\r\n\t\t\t\t\tstr.push(\r\n\t\t\t\t\t\t(\r\n\t\t\t\t\t\t\t(o.key || res[1]) +\r\n\t\t\t\t\t\t\t\"[\" +\r\n\t\t\t\t\t\t\t(o.key && o.expression ? res[1] : res[2]) + \"]\"\r\n\t\t\t\t\t\t) +\r\n\t\t\t\t\t\t\"=\" +\r\n\t\t\t\t\t\t(pid ? (o.key && o.expression ? pid[1] : pid[2]) : o.rootID));\r\n\t\t\t\t}\r\n\t\t\t});\r\n\r\n\t\t\tif (!str.length && o.key) {\r\n\t\t\t\tstr.push(o.key + \"=\");\r\n\t\t\t}\r\n\r\n\t\t\treturn str.join(\"&\");\r\n\r\n\t\t},\r\n\r\n\t\ttoHierarchy: function(options) {\r\n\r\n\t\t\tvar o = $.extend({}, this.options, options),\r\n\t\t\t\tret = [];\r\n\r\n\t\t\t$(this.element).children(o.items).each(function() {\r\n\t\t\t\tvar level = _recursiveItems(this);\r\n\t\t\t\tret.push(level);\r\n\t\t\t});\r\n\r\n\t\t\treturn ret;\r\n\r\n\t\t\tfunction _recursiveItems(item) {\r\n\t\t\t\tvar id = ($(item).attr(o.attribute || \"id\") || \"\").match(o.expression || (/(.+)[-=_](.+)/)),\r\n\t\t\t\t\tcurrentItem;\r\n\r\n\t\t\t\tvar data = $(item).data();\r\n\t\t\t\tif (data.nestedSortableItem) {\r\n\t\t\t\t\tdelete data.nestedSortableItem; // Remove the nestedSortableItem object from the data\r\n\t\t\t\t}\r\n\r\n\t\t\t\tif (id) {\r\n\t\t\t\t\tcurrentItem = {\r\n\t\t\t\t\t\t\"id\": id[2]\r\n\t\t\t\t\t};\r\n\r\n\t\t\t\t\tcurrentItem = $.extend({}, currentItem, data); // Combine the two objects\r\n\r\n\t\t\t\t\tif ($(item).children(o.listType).children(o.items).length > 0) {\r\n\t\t\t\t\t\tcurrentItem.children = [];\r\n\t\t\t\t\t\t$(item).children(o.listType).children(o.items).each(function() {\r\n\t\t\t\t\t\t\tvar level = _recursiveItems(this);\r\n\t\t\t\t\t\t\tcurrentItem.children.push(level);\r\n\t\t\t\t\t\t});\r\n\t\t\t\t\t}\r\n\t\t\t\t\treturn currentItem;\r\n\t\t\t\t}\r\n\t\t\t}\r\n\t\t},\r\n\r\n\t\ttoArray: function(options) {\r\n\r\n\t\t\tvar o = $.extend({}, this.options, options),\r\n\t\t\t\tsDepth = o.startDepthCount || 0,\r\n\t\t\t\tret = [],\r\n\t\t\t\tleft = 1;\r\n\r\n\t\t\tif (!o.excludeRoot) {\r\n\t\t\t\tret.push({\r\n\t\t\t\t\t\"item_id\": o.rootID,\r\n\t\t\t\t\t\"parent_id\": null,\r\n\t\t\t\t\t\"depth\": sDepth,\r\n\t\t\t\t\t\"left\": left,\r\n\t\t\t\t\t\"right\": ($(o.items, this.element).length + 1) * 2\r\n\t\t\t\t});\r\n\t\t\t\tleft++;\r\n\t\t\t}\r\n\r\n\t\t\t$(this.element).children(o.items).each(function() {\r\n\t\t\t\tleft = _recursiveArray(this, sDepth, left);\r\n\t\t\t});\r\n\r\n\t\t\tret = ret.sort(function(a, b) { return (a.left - b.left); });\r\n\r\n\t\t\treturn ret;\r\n\r\n\t\t\tfunction _recursiveArray(item, depth, _left) {\r\n\r\n\t\t\t\tvar right = _left + 1,\r\n\t\t\t\t\tid,\r\n\t\t\t\t\tpid,\r\n\t\t\t\t\tparentItem;\r\n\r\n\t\t\t\tif ($(item).children(o.listType).children(o.items).length > 0) {\r\n\t\t\t\t\tdepth++;\r\n\t\t\t\t\t$(item).children(o.listType).children(o.items).each(function() {\r\n\t\t\t\t\t\tright = _recursiveArray($(this), depth, right);\r\n\t\t\t\t\t});\r\n\t\t\t\t\tdepth--;\r\n\t\t\t\t}\r\n\r\n\t\t\t\tid = ($(item).attr(o.attribute || \"id\") || \"\").match(o.expression || (/(.+)[-=_](.+)/));\r\n\r\n\t\t\t\tif (depth === sDepth) {\r\n\t\t\t\t\tpid = o.rootID;\r\n\t\t\t\t} else {\r\n\t\t\t\t\tparentItem = ($(item).parent(o.listType)\r\n\t\t\t\t\t\t\t\t\t\t\t.parent(o.items)\r\n\t\t\t\t\t\t\t\t\t\t\t.attr(o.attribute || \"id\"))\r\n\t\t\t\t\t\t\t\t\t\t\t.match(o.expression || (/(.+)[-=_](.+)/));\r\n\t\t\t\t\tpid = parentItem[2];\r\n\t\t\t\t}\r\n\r\n\t\t\t\tif (id) {\r\n\t\t\t\t\tvar data = $(item).children('div').data();\r\n\t\t\t\t\tvar itemObj = $.extend( data, {\r\n\t\t\t\t\t\t\"id\":id[2],\r\n\t\t\t\t\t\t\"parent_id\":pid,\r\n\t\t\t\t\t\t\"depth\":depth,\r\n\t\t\t\t\t\t\"left\":_left,\r\n\t\t\t\t\t\t\"right\":right\r\n\t\t\t\t\t\t} );\r\n\t\t\t\t\tret.push( itemObj );\r\n\t\t\t\t}\r\n\r\n\t\t\t\t_left = right + 1;\r\n\t\t\t\treturn _left;\r\n\t\t\t}\r\n\r\n\t\t},\r\n\r\n\t\t_clearEmpty: function (item) {\r\n\t\t\tfunction replaceClass(elem, search, replace, swap) {\r\n\t\t\t\tif (swap) {\r\n\t\t\t\t\tsearch = [replace, replace = search][0];\r\n\t\t\t\t}\r\n\r\n\t\t\t\t$(elem).removeClass(search).addClass(replace);\r\n\t\t\t}\r\n\r\n\t\t\tvar o = this.options,\r\n\t\t\t\tchildrenList = $(item).children(o.listType),\r\n\t\t\t\thasChildren = childrenList.has('li').length;\r\n\r\n\t\t\tvar doNotClear =\r\n\t\t\t\to.doNotClear ||\r\n\t\t\t\thasChildren ||\r\n\t\t\t\to.protectRoot && $(item)[0] === this.element[0];\r\n\r\n\t\t\tif (o.isTree) {\r\n\t\t\t\treplaceClass(item, o.branchClass, o.leafClass, doNotClear);\r\n\t\t\t}\r\n\r\n\t\t\tif (!doNotClear) {\r\n\t\t\t\tchildrenList.parent().removeClass(o.expandedClass);\r\n\t\t\t\tchildrenList.remove();\r\n\t\t\t}\r\n\t\t},\r\n\r\n\t\t_getLevel: function(item) {\r\n\r\n\t\t\tvar level = 1,\r\n\t\t\t\tlist;\r\n\r\n\t\t\tif (this.options.listType) {\r\n\t\t\t\tlist = item.closest(this.options.listType);\r\n\t\t\t\twhile (list && list.length > 0 && !list.is(\".ui-sortable\")) {\r\n\t\t\t\t\tlevel++;\r\n\t\t\t\t\tlist = list.parent().closest(this.options.listType);\r\n\t\t\t\t}\r\n\t\t\t}\r\n\r\n\t\t\treturn level;\r\n\t\t},\r\n\r\n\t\t_getChildLevels: function(parent, depth) {\r\n\t\t\tvar self = this,\r\n\t\t\t\to = this.options,\r\n\t\t\t\tresult = 0;\r\n\t\t\tdepth = depth || 0;\r\n\r\n\t\t\t$(parent).children(o.listType).children(o.items).each(function(index, child) {\r\n\t\t\t\tresult = Math.max(self._getChildLevels(child, depth + 1), result);\r\n\t\t\t});\r\n\r\n\t\t\treturn depth ? result + 1 : result;\r\n\t\t},\r\n\r\n\t\t_isAllowed: function(parentItem, level, levels) {\r\n\t\t\tvar o = this.options,\r\n\t\t\t\t// this takes into account the maxLevels set to the recipient list\r\n\t\t\t\tmaxLevels = this\r\n\t\t\t\t\t.placeholder\r\n\t\t\t\t\t.closest(\".ui-sortable\")\r\n\t\t\t\t\t.nestedSortable(\"option\", \"maxLevels\"),\r\n\r\n\t\t\t\t// Check if the parent has changed to prevent it, when o.disableParentChange is true\r\n\t\t\t\toldParent = this.currentItem.parent().parent(),\r\n\t\t\t\tdisabledByParentchange = o.disableParentChange && (\r\n\t\t\t\t\t//From somewhere to somewhere else, except the root\r\n\t\t\t\t\ttypeof parentItem !== 'undefined' && !oldParent.is(parentItem) ||\r\n\t\t\t\t\ttypeof parentItem === 'undefined' && oldParent.is(\"li\")\t//From somewhere to the root\r\n\t\t\t\t);\r\n\t\t\t// mjs - is the root protected?\r\n\t\t\t// mjs - are we nesting too deep?\r\n\t\t\tif (\r\n\t\t\t\tdisabledByParentchange ||\r\n\t\t\t\t!o.isAllowed(this.placeholder, parentItem, this.currentItem)\r\n\t\t\t) {\r\n\t\t\t\tthis.placeholder.addClass(o.errorClass);\r\n\t\t\t\tif (maxLevels < levels && maxLevels !== 0) {\r\n\t\t\t\t\tthis.beyondMaxLevels = levels - maxLevels;\r\n\t\t\t\t} else {\r\n\t\t\t\t\tthis.beyondMaxLevels = 1;\r\n\t\t\t\t}\r\n\t\t\t} else {\r\n\t\t\t\tif (maxLevels < levels && maxLevels !== 0) {\r\n\t\t\t\t\tthis.placeholder.addClass(o.errorClass);\r\n\t\t\t\t\tthis.beyondMaxLevels = levels - maxLevels;\r\n\t\t\t\t} else {\r\n\t\t\t\t\tthis.placeholder.removeClass(o.errorClass);\r\n\t\t\t\t\tthis.beyondMaxLevels = 0;\r\n\t\t\t\t}\r\n\t\t\t}\r\n\t\t}\r\n\r\n\t}));\r\n\r\n\t$.mjs.nestedSortable.prototype.options = $.extend(\r\n\t\t{},\r\n\t\t$.ui.sortable.prototype.options,\r\n\t\t$.mjs.nestedSortable.prototype.options\r\n\t);\r\n}));\r\n"],"names":["factory","define","amd","window","jQuery","$","widget","extend","ui","sortable","prototype","options","disableParentChange","doNotClear","expandOnHover","isAllowed","isTree","listType","maxLevels","protectRoot","rootID","rtl","startCollapsed","tabSize","branchClass","collapsedClass","disableNestingClass","errorClass","expandedClass","hoveringClass","leafClass","disabledClass","_create","self","element","data","is","Error","tolerance","apply","arguments","items","each","$li","item","hasCollapsedClass","hasClass","hasExpandedClass","children","length","addClass","_destroy","removeData","_mouseDrag","event","i","itemElement","intersection","previousTopOffset","parentItem","level","childLevels","itemAfter","itemBefore","newList","method","a","previousItem","nextItem","helperIsNotSibling","o","scrolled","$document","document","position","_generatePosition","positionAbs","_convertPositionTo","lastPositionAbs","scroll","scrollParent","tagName","overflowOffset","top","offsetHeight","pageY","scrollSensitivity","scrollTop","scrollSpeed","left","offsetWidth","pageX","scrollLeft","height","width","ddmanager","dropBehaviour","prepareOffsets","placeholder","offset","axis","helper","style","hovering","mouseentered","_parentItem","parent","closest","call","_getLevel","_getChildLevels","createElement","_intersectsWithPointer","instance","currentContainer","className","indexOf","currentItem","contains","type","mouseenter","setTimeout","removeClass","refreshPositions","_trigger","_uiHash","direction","_intersectsWithSides","mouseleave","clearTimeout","parentNode","appendChild","undefined","prev","_rearrange","_clearEmpty","_previousItem","nodeName","toLowerCase","previousSibling","_nextItem","next","nextSibling","beyondMaxLevels","outerWidth","after","listItem","_isAllowed","prepend","_contactContainers","drag","_mouseStop","domPosition","_relocate_event","_pid_current","attr","_sort_current","index","x","reference","size","half","isOverBottomHalf","click","isOverTopHalf","isOverRightHalf","verticalDirection","_getDragVerticalDirection","horizontalDirection","_getDragHorizontalDirection","floating","_clear","serialize","_getItemsAsjQuery","connected","str","res","attribute","match","expression","pid","push","key","join","toHierarchy","ret","_recursiveItems","id","nestedSortableItem","toArray","sDepth","startDepthCount","excludeRoot","_recursiveArray","depth","_left","right","itemObj","sort","b","search","replace","childrenList","hasChildren","has","remove","list","result","child","Math","max","levels","nestedSortable","oldParent","disabledByParentchange","mjs"],"mappings":"CAYC,SAAUA,CAAO,EACjB,YAEK,AAAkB,CAAA,YAAlB,OAAOC,QAAyBA,OAAOC,GAAG,CAG9CD,OAAO,CACN,SACA,qBACA,CAAED,GAIHA,EAASG,OAAOC,MAAM,CAExB,EAAE,SAASC,CAAC,EACX,aAMAA,EAAEC,MAAM,CAAC,qBAAsBD,EAAEE,MAAM,CAAC,CAAC,EAAGF,EAAEG,EAAE,CAACC,QAAQ,CAACC,SAAS,CAAE,CAEpEC,QAAS,CACRC,oBAAqB,CAAA,EACrBC,WAAY,CAAA,EACZC,cAAe,IACfC,UAAW,WAAa,MAAO,CAAA,CAAM,EACrCC,OAAQ,CAAA,EACRC,SAAU,KACVC,UAAW,EACXC,YAAa,CAAA,EACbC,OAAQ,KACRC,IAAK,CAAA,EACLC,eAAgB,CAAA,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,IAAI,CAAC6H,eAAe,CAAGoE,EAASjM,EAEhC,IAAI,CAAC6H,eAAe,CAAG,GAGpB7H,EAAYiM,GAAUjM,AAAc,IAAdA,GACzB,IAAI,CAACgF,WAAW,CAAChD,QAAQ,CAACoB,EAAE3C,UAAU,EACtC,IAAI,CAACoH,eAAe,CAAGoE,EAASjM,IAEhC,IAAI,CAACgF,WAAW,CAACwB,WAAW,CAACpD,EAAE3C,UAAU,EACzC,IAAI,CAACoH,eAAe,CAAG,EAG1B,CAED,IAEA1I,EAAEkN,GAAG,CAACH,cAAc,CAAC1M,SAAS,CAACC,OAAO,CAAGN,EAAEE,MAAM,CAChD,CAAC,EACDF,EAAEG,EAAE,CAACC,QAAQ,CAACC,SAAS,CAACC,OAAO,CAC/BN,EAAEkN,GAAG,CAACH,cAAc,CAAC1M,SAAS,CAACC,OAAO,CAExC"} +{"version":3,"sources":[""],"sourcesContent":["/*\r\n * jQuery UI Nested Sortable\r\n * v 2.1a / 2016-02-04\r\n * https://github.com/ilikenwf/nestedSortable\r\n *\r\n * Depends on:\r\n *\t jquery.ui.sortable.js 1.10+\r\n *\r\n * Copyright (c) 2010-2016 Manuele J Sarfatti and contributors\r\n * Licensed under the MIT License\r\n * http://www.opensource.org/licenses/mit-license.php\r\n */\r\n(function( factory ) {\r\n\t\"use strict\";\r\n\r\n\tif ( typeof define === \"function\" && define.amd ) {\r\n\r\n\t\t// AMD. Register as an anonymous module.\r\n\t\tdefine([\r\n\t\t\t\"jquery\",\r\n\t\t\t\"jquery-ui/sortable\"\r\n\t\t], factory );\r\n\t} else {\r\n\r\n\t\t// Browser globals\r\n\t\tfactory( window.jQuery );\r\n\t}\r\n}(function($) {\r\n\t\"use strict\";\r\n\r\n\tfunction isOverAxis( x, reference, size ) {\r\n\t\treturn ( x > reference ) && ( x < ( reference + size ) );\r\n\t}\r\n\r\n\t$.widget(\"mjs.nestedSortable\", $.extend({}, $.ui.sortable.prototype, {\r\n\r\n\t\toptions: {\r\n\t\t\tdisableParentChange: false,\r\n\t\t\tdoNotClear: false,\r\n\t\t\texpandOnHover: 700,\r\n\t\t\tisAllowed: function() { return true; },\r\n\t\t\tisTree: false,\r\n\t\t\tlistType: \"ol\",\r\n\t\t\tmaxLevels: 0,\r\n\t\t\tprotectRoot: false,\r\n\t\t\trootID: null,\r\n\t\t\trtl: false,\r\n\t\t\tstartCollapsed: false,\r\n\t\t\ttabSize: 20,\r\n\r\n\t\t\tbranchClass: \"mjs-nestedSortable-branch\",\r\n\t\t\tcollapsedClass: \"mjs-nestedSortable-collapsed\",\r\n\t\t\tdisableNestingClass: \"mjs-nestedSortable-no-nesting\",\r\n\t\t\terrorClass: \"mjs-nestedSortable-error\",\r\n\t\t\texpandedClass: \"mjs-nestedSortable-expanded\",\r\n\t\t\thoveringClass: \"mjs-nestedSortable-hovering\",\r\n\t\t\tleafClass: \"mjs-nestedSortable-leaf\",\r\n\t\t\tdisabledClass: \"mjs-nestedSortable-disabled\"\r\n\t\t},\r\n\r\n\t\t_create: function() {\r\n\t\t\tvar self = this,\r\n\t\t\t\terr;\r\n\r\n\t\t\tthis.element.data(\"ui-sortable\", this.element.data(\"mjs-nestedSortable\"));\r\n\r\n\t\t\t// mjs - prevent browser from freezing if the HTML is not correct\r\n\t\t\tif (!this.element.is(this.options.listType)) {\r\n\t\t\t\terr = \"nestedSortable: \" +\r\n\t\t\t\t\t\"Please check that the listType option is set to your actual list type\";\r\n\r\n\t\t\t\tthrow new Error(err);\r\n\t\t\t}\r\n\r\n\t\t\t// if we have a tree with expanding/collapsing functionality,\r\n\t\t\t// force 'intersect' tolerance method\r\n\t\t\tif (this.options.isTree && this.options.expandOnHover) {\r\n\t\t\t\tthis.options.tolerance = \"intersect\";\r\n\t\t\t}\r\n\r\n\t\t\t$.ui.sortable.prototype._create.apply(this, arguments);\r\n\r\n\t\t\t// prepare the tree by applying the right classes\r\n\t\t\t// (the CSS is responsible for actual hide/show functionality)\r\n\t\t\tif (this.options.isTree) {\r\n\t\t\t\t$(this.items).each(function() {\r\n\t\t\t\t\tvar $li = this.item,\r\n\t\t\t\t\t\thasCollapsedClass = $li.hasClass(self.options.collapsedClass),\r\n\t\t\t\t\t\thasExpandedClass = $li.hasClass(self.options.expandedClass);\r\n\r\n\t\t\t\t\tif ($li.children(self.options.listType).length) {\r\n\t\t\t\t\t\t$li.addClass(self.options.branchClass);\r\n\t\t\t\t\t\t// expand/collapse class only if they have children\r\n\r\n\t\t\t\t\t\tif ( !hasCollapsedClass && !hasExpandedClass ) {\r\n\t\t\t\t\t\t\tif (self.options.startCollapsed) {\r\n\t\t\t\t\t\t\t\t$li.addClass(self.options.collapsedClass);\r\n\t\t\t\t\t\t\t} else {\r\n\t\t\t\t\t\t\t\t$li.addClass(self.options.expandedClass);\r\n\t\t\t\t\t\t\t}\r\n\t\t\t\t\t\t}\r\n\t\t\t\t\t} else {\r\n\t\t\t\t\t\t$li.addClass(self.options.leafClass);\r\n\t\t\t\t\t}\r\n\t\t\t\t});\r\n\t\t\t}\r\n\t\t},\r\n\r\n\t\t_destroy: function() {\r\n\t\t\tthis.element\r\n\t\t\t\t.removeData(\"mjs-nestedSortable\")\r\n\t\t\t\t.removeData(\"ui-sortable\");\r\n\t\t\treturn $.ui.sortable.prototype._destroy.apply(this, arguments);\r\n\t\t},\r\n\r\n\t\t_mouseDrag: function(event) {\r\n\t\t\tvar i,\r\n\t\t\t\titem,\r\n\t\t\t\titemElement,\r\n\t\t\t\tintersection,\r\n\t\t\t\tself = this,\r\n\t\t\t\to = this.options,\r\n\t\t\t\tscrolled = false,\r\n\t\t\t\t$document = $(document),\r\n\t\t\t\tpreviousTopOffset,\r\n\t\t\t\tparentItem,\r\n\t\t\t\tlevel,\r\n\t\t\t\tchildLevels,\r\n\t\t\t\titemAfter,\r\n\t\t\t\titemBefore,\r\n\t\t\t\tnewList,\r\n\t\t\t\tmethod,\r\n\t\t\t\ta,\r\n\t\t\t\tpreviousItem,\r\n\t\t\t\tnextItem,\r\n\t\t\t\thelperIsNotSibling;\r\n\r\n\t\t\t//Compute the helpers position\r\n\t\t\tthis.position = this._generatePosition(event);\r\n\t\t\tthis.positionAbs = this._convertPositionTo(\"absolute\");\r\n\r\n\t\t\tif (!this.lastPositionAbs) {\r\n\t\t\t\tthis.lastPositionAbs = this.positionAbs;\r\n\t\t\t}\r\n\r\n\t\t\t//Do scrolling\r\n\t\t\tif (this.options.scroll) {\r\n\t\t\t\tif (this.scrollParent[0] !== document && this.scrollParent[0].tagName !== \"HTML\") {\r\n\r\n\t\t\t\t\tif (\r\n\t\t\t\t\t\t(\r\n\t\t\t\t\t\t\tthis.overflowOffset.top +\r\n\t\t\t\t\t\t\tthis.scrollParent[0].offsetHeight\r\n\t\t\t\t\t\t) -\r\n\t\t\t\t\t\tevent.pageY <\r\n\t\t\t\t\t\to.scrollSensitivity\r\n\t\t\t\t\t) {\r\n\t\t\t\t\t\tscrolled = this.scrollParent.scrollTop() + o.scrollSpeed;\r\n\t\t\t\t\t\tthis.scrollParent.scrollTop(scrolled);\r\n\t\t\t\t\t} else if (\r\n\t\t\t\t\t\tevent.pageY -\r\n\t\t\t\t\t\tthis.overflowOffset.top <\r\n\t\t\t\t\t\to.scrollSensitivity\r\n\t\t\t\t\t) {\r\n\t\t\t\t\t\tscrolled = this.scrollParent.scrollTop() - o.scrollSpeed;\r\n\t\t\t\t\t\tthis.scrollParent.scrollTop(scrolled);\r\n\t\t\t\t\t}\r\n\r\n\t\t\t\t\tif (\r\n\t\t\t\t\t\t(\r\n\t\t\t\t\t\t\tthis.overflowOffset.left +\r\n\t\t\t\t\t\t\tthis.scrollParent[0].offsetWidth\r\n\t\t\t\t\t\t) -\r\n\t\t\t\t\t\tevent.pageX <\r\n\t\t\t\t\t\to.scrollSensitivity\r\n\t\t\t\t\t) {\r\n\t\t\t\t\t\tscrolled = this.scrollParent.scrollLeft() + o.scrollSpeed;\r\n\t\t\t\t\t\tthis.scrollParent.scrollLeft(scrolled);\r\n\t\t\t\t\t} else if (\r\n\t\t\t\t\t\tevent.pageX -\r\n\t\t\t\t\t\tthis.overflowOffset.left <\r\n\t\t\t\t\t\to.scrollSensitivity\r\n\t\t\t\t\t) {\r\n\t\t\t\t\t\tscrolled = this.scrollParent.scrollLeft() - o.scrollSpeed;\r\n\t\t\t\t\t\tthis.scrollParent.scrollLeft(scrolled);\r\n\t\t\t\t\t}\r\n\r\n\t\t\t\t} else {\r\n\r\n\t\t\t\t\tif (\r\n\t\t\t\t\t\tevent.pageY -\r\n\t\t\t\t\t\t$document.scrollTop() <\r\n\t\t\t\t\t\to.scrollSensitivity\r\n\t\t\t\t\t) {\r\n\t\t\t\t\t\tscrolled = $document.scrollTop() - o.scrollSpeed;\r\n\t\t\t\t\t\t$document.scrollTop(scrolled);\r\n\t\t\t\t\t} else if (\r\n\t\t\t\t\t\t$(window).height() -\r\n\t\t\t\t\t\t(\r\n\t\t\t\t\t\t\tevent.pageY -\r\n\t\t\t\t\t\t\t$document.scrollTop()\r\n\t\t\t\t\t\t) <\r\n\t\t\t\t\t\to.scrollSensitivity\r\n\t\t\t\t\t) {\r\n\t\t\t\t\t\tscrolled = $document.scrollTop() + o.scrollSpeed;\r\n\t\t\t\t\t\t$document.scrollTop(scrolled);\r\n\t\t\t\t\t}\r\n\r\n\t\t\t\t\tif (\r\n\t\t\t\t\t\tevent.pageX -\r\n\t\t\t\t\t\t$document.scrollLeft() <\r\n\t\t\t\t\t\to.scrollSensitivity\r\n\t\t\t\t\t) {\r\n\t\t\t\t\t\tscrolled = $document.scrollLeft() - o.scrollSpeed;\r\n\t\t\t\t\t\t$document.scrollLeft(scrolled);\r\n\t\t\t\t\t} else if (\r\n\t\t\t\t\t\t$(window).width() -\r\n\t\t\t\t\t\t(\r\n\t\t\t\t\t\t\tevent.pageX -\r\n\t\t\t\t\t\t\t$document.scrollLeft()\r\n\t\t\t\t\t\t) <\r\n\t\t\t\t\t\to.scrollSensitivity\r\n\t\t\t\t\t) {\r\n\t\t\t\t\t\tscrolled = $document.scrollLeft() + o.scrollSpeed;\r\n\t\t\t\t\t\t$document.scrollLeft(scrolled);\r\n\t\t\t\t\t}\r\n\r\n\t\t\t\t}\r\n\r\n\t\t\t\tif (scrolled !== false && $.ui.ddmanager && !o.dropBehaviour) {\r\n\t\t\t\t\t$.ui.ddmanager.prepareOffsets(this, event);\r\n\t\t\t\t}\r\n\t\t\t}\r\n\r\n\t\t\t//Regenerate the absolute position used for position checks\r\n\t\t\tthis.positionAbs = this._convertPositionTo(\"absolute\");\r\n\r\n\t\t\t// mjs - find the top offset before rearrangement,\r\n\t\t\tpreviousTopOffset = this.placeholder.offset().top;\r\n\r\n\t\t\t//Set the helper position\r\n\t\t\tif (!this.options.axis || this.options.axis !== \"y\") {\r\n\t\t\t\tthis.helper[0].style.left = this.position.left + \"px\";\r\n\t\t\t}\r\n\t\t\tif (!this.options.axis || this.options.axis !== \"x\") {\r\n\t\t\t\tthis.helper[0].style.top = (this.position.top) + \"px\";\r\n\t\t\t}\r\n\r\n\t\t\t// mjs - check and reset hovering state at each cycle\r\n\t\t\tthis.hovering = this.hovering ? this.hovering : null;\r\n\t\t\tthis.mouseentered = this.mouseentered ? this.mouseentered : false;\r\n\r\n\t\t\t// mjs - let's start caching some variables\r\n\t\t\t(function() {\r\n\t\t\t\tvar _parentItem = this.placeholder.parent().parent();\r\n\t\t\t\tif (_parentItem && _parentItem.closest(\".ui-sortable\").length) {\r\n\t\t\t\t\tparentItem = _parentItem;\r\n\t\t\t\t}\r\n\t\t\t}.call(this));\r\n\r\n\t\t\tlevel = this._getLevel(this.placeholder);\r\n\t\t\tchildLevels = this._getChildLevels(this.helper);\r\n\t\t\tnewList = document.createElement(o.listType);\r\n\r\n\t\t\t//Rearrange\r\n\t\t\tfor (i = this.items.length - 1; i >= 0; i--) {\r\n\r\n\t\t\t\t//Cache variables and intersection, continue if no intersection\r\n\t\t\t\titem = this.items[i];\r\n\t\t\t\titemElement = item.item[0];\r\n\t\t\t\tintersection = this._intersectsWithPointer(item);\r\n\t\t\t\tif (!intersection) {\r\n\t\t\t\t\tcontinue;\r\n\t\t\t\t}\r\n\r\n\t\t\t\t// Only put the placeholder inside the current Container, skip all\r\n\t\t\t\t// items form other containers. This works because when moving\r\n\t\t\t\t// an item from one container to another the\r\n\t\t\t\t// currentContainer is switched before the placeholder is moved.\r\n\t\t\t\t//\r\n\t\t\t\t// Without this moving items in \"sub-sortables\" can cause the placeholder to jitter\r\n\t\t\t\t// beetween the outer and inner container.\r\n\t\t\t\tif (item.instance !== this.currentContainer) {\r\n\t\t\t\t\tcontinue;\r\n\t\t\t\t}\r\n\r\n\t\t\t\t// No action if intersected item is disabled\r\n\t\t\t\t// and the element above or below in the direction we're going is also disabled\r\n\t\t\t\tif (itemElement.className.indexOf(o.disabledClass) !== -1) {\r\n\t\t\t\t\t// Note: intersection hardcoded direction values from\r\n\t\t\t\t\t// jquery.ui.sortable.js:_intersectsWithPointer\r\n\t\t\t\t\tif (intersection === 2) {\r\n\t\t\t\t\t\t// Going down\r\n\t\t\t\t\t\titemAfter = this.items[i + 1];\r\n\t\t\t\t\t\tif (itemAfter && itemAfter.item.hasClass(o.disabledClass)) {\r\n\t\t\t\t\t\t\tcontinue;\r\n\t\t\t\t\t\t}\r\n\r\n\t\t\t\t\t} else if (intersection === 1) {\r\n\t\t\t\t\t\t// Going up\r\n\t\t\t\t\t\titemBefore = this.items[i - 1];\r\n\t\t\t\t\t\tif (itemBefore && itemBefore.item.hasClass(o.disabledClass)) {\r\n\t\t\t\t\t\t\tcontinue;\r\n\t\t\t\t\t\t}\r\n\t\t\t\t\t}\r\n\t\t\t\t}\r\n\r\n\t\t\t\tmethod = intersection === 1 ? \"next\" : \"prev\";\r\n\r\n\t\t\t\t// cannot intersect with itself\r\n\t\t\t\t// no useless actions that have been done before\r\n\t\t\t\t// no action if the item moved is the parent of the item checked\r\n\t\t\t\tif (itemElement !== this.currentItem[0] &&\r\n\t\t\t\t\tthis.placeholder[method]()[0] !== itemElement &&\r\n\t\t\t\t\t!$.contains(this.placeholder[0], itemElement) &&\r\n\t\t\t\t\t(\r\n\t\t\t\t\t\tthis.options.type === \"semi-dynamic\" ?\r\n\t\t\t\t\t\t\t!$.contains(this.element[0], itemElement) :\r\n\t\t\t\t\t\t\ttrue\r\n\t\t\t\t\t)\r\n\t\t\t\t) {\r\n\r\n\t\t\t\t\t// mjs - we are intersecting an element:\r\n\t\t\t\t\t// trigger the mouseenter event and store this state\r\n\t\t\t\t\tif (!this.mouseentered) {\r\n\t\t\t\t\t\t$(itemElement).mouseenter();\r\n\t\t\t\t\t\tthis.mouseentered = true;\r\n\t\t\t\t\t}\r\n\r\n\t\t\t\t\t// mjs - if the element has children and they are hidden,\r\n\t\t\t\t\t// show them after a delay (CSS responsible)\r\n\t\t\t\t\tif (o.isTree && $(itemElement).hasClass(o.collapsedClass) && o.expandOnHover) {\r\n\t\t\t\t\t\tif (!this.hovering) {\r\n\t\t\t\t\t\t\t$(itemElement).addClass(o.hoveringClass);\r\n\t\t\t\t\t\t\tthis.hovering = window.setTimeout(function() {\r\n\t\t\t\t\t\t\t\t$(itemElement)\r\n\t\t\t\t\t\t\t\t\t.removeClass(o.collapsedClass)\r\n\t\t\t\t\t\t\t\t\t.addClass(o.expandedClass);\r\n\r\n\t\t\t\t\t\t\t\tself.refreshPositions();\r\n\t\t\t\t\t\t\t\tself._trigger(\"expand\", event, self._uiHash());\r\n\t\t\t\t\t\t\t}, o.expandOnHover);\r\n\t\t\t\t\t\t}\r\n\t\t\t\t\t}\r\n\r\n\t\t\t\t\tthis.direction = intersection === 1 ? \"down\" : \"up\";\r\n\r\n\t\t\t\t\t// mjs - rearrange the elements and reset timeouts and hovering state\r\n\t\t\t\t\tif (this.options.tolerance === \"pointer\" || this._intersectsWithSides(item)) {\r\n\t\t\t\t\t\t$(itemElement).mouseleave();\r\n\t\t\t\t\t\tthis.mouseentered = false;\r\n\t\t\t\t\t\t$(itemElement).removeClass(o.hoveringClass);\r\n\t\t\t\t\t\tif (this.hovering) {\r\n\t\t\t\t\t\t\twindow.clearTimeout(this.hovering);\r\n\t\t\t\t\t\t}\r\n\t\t\t\t\t\tthis.hovering = null;\r\n\r\n\t\t\t\t\t\t// mjs - do not switch container if\r\n\t\t\t\t\t\t// it's a root item and 'protectRoot' is true\r\n\t\t\t\t\t\t// or if it's not a root item but we are trying to make it root\r\n\t\t\t\t\t\tif (o.protectRoot &&\r\n\t\t\t\t\t\t\t!(\r\n\t\t\t\t\t\t\t\tthis.currentItem[0].parentNode === this.element[0] &&\r\n\t\t\t\t\t\t\t\t// it's a root item\r\n\t\t\t\t\t\t\t\titemElement.parentNode !== this.element[0]\r\n\t\t\t\t\t\t\t\t// it's intersecting a non-root item\r\n\t\t\t\t\t\t\t)\r\n\t\t\t\t\t\t) {\r\n\t\t\t\t\t\t\tif (this.currentItem[0].parentNode !== this.element[0] &&\r\n\t\t\t\t\t\t\t\titemElement.parentNode === this.element[0]\r\n\t\t\t\t\t\t\t) {\r\n\r\n\t\t\t\t\t\t\t\tif ( !$(itemElement).children(o.listType).length) {\r\n\t\t\t\t\t\t\t\t\titemElement.appendChild(newList);\r\n\t\t\t\t\t\t\t\t\tif (o.isTree) {\r\n\t\t\t\t\t\t\t\t\t\t$(itemElement)\r\n\t\t\t\t\t\t\t\t\t\t\t.removeClass(o.leafClass)\r\n\t\t\t\t\t\t\t\t\t\t\t.addClass(o.branchClass + \" \" + o.expandedClass);\r\n\t\t\t\t\t\t\t\t\t}\r\n\t\t\t\t\t\t\t\t}\r\n\r\n\t\t\t\t\t\t\t\tif (this.direction === \"down\") {\r\n\t\t\t\t\t\t\t\t\ta = $(itemElement).prev().children(o.listType);\r\n\t\t\t\t\t\t\t\t} else {\r\n\t\t\t\t\t\t\t\t\ta = $(itemElement).children(o.listType);\r\n\t\t\t\t\t\t\t\t}\r\n\r\n\t\t\t\t\t\t\t\tif (a[0] !== undefined) {\r\n\t\t\t\t\t\t\t\t\tthis._rearrange(event, null, a);\r\n\t\t\t\t\t\t\t\t}\r\n\r\n\t\t\t\t\t\t\t} else {\r\n\t\t\t\t\t\t\t\tthis._rearrange(event, item);\r\n\t\t\t\t\t\t\t}\r\n\t\t\t\t\t\t} else if (!o.protectRoot) {\r\n\t\t\t\t\t\t\tthis._rearrange(event, item);\r\n\t\t\t\t\t\t}\r\n\t\t\t\t\t} else {\r\n\t\t\t\t\t\tbreak;\r\n\t\t\t\t\t}\r\n\r\n\t\t\t\t\t// Clear emtpy ul's/ol's\r\n\t\t\t\t\tthis._clearEmpty(itemElement);\r\n\r\n\t\t\t\t\tthis._trigger(\"change\", event, this._uiHash());\r\n\t\t\t\t\tbreak;\r\n\t\t\t\t}\r\n\t\t\t}\r\n\r\n\t\t\t// mjs - to find the previous sibling in the list,\r\n\t\t\t// keep backtracking until we hit a valid list item.\r\n\t\t\t(function() {\r\n\t\t\t\tvar _previousItem = this.placeholder.prev();\r\n\t\t\t\tif (_previousItem.length) {\r\n\t\t\t\t\tpreviousItem = _previousItem;\r\n\t\t\t\t} else {\r\n\t\t\t\t\tpreviousItem = null;\r\n\t\t\t\t}\r\n\t\t\t}.call(this));\r\n\r\n\t\t\tif (previousItem != null) {\r\n\t\t\t\twhile (\r\n\t\t\t\t\tpreviousItem[0].nodeName.toLowerCase() !== \"li\" ||\r\n\t\t\t\t\tpreviousItem[0].className.indexOf(o.disabledClass) !== -1 ||\r\n\t\t\t\t\tpreviousItem[0] === this.currentItem[0] ||\r\n\t\t\t\t\tpreviousItem[0] === this.helper[0]\r\n\t\t\t\t) {\r\n\t\t\t\t\tif (previousItem[0].previousSibling) {\r\n\t\t\t\t\t\tpreviousItem = $(previousItem[0].previousSibling);\r\n\t\t\t\t\t} else {\r\n\t\t\t\t\t\tpreviousItem = null;\r\n\t\t\t\t\t\tbreak;\r\n\t\t\t\t\t}\r\n\t\t\t\t}\r\n\t\t\t}\r\n\r\n\t\t\t// mjs - to find the next sibling in the list,\r\n\t\t\t// keep stepping forward until we hit a valid list item.\r\n\t\t\t(function() {\r\n\t\t\t\tvar _nextItem = this.placeholder.next();\r\n\t\t\t\tif (_nextItem.length) {\r\n\t\t\t\t\tnextItem = _nextItem;\r\n\t\t\t\t} else {\r\n\t\t\t\t\tnextItem = null;\r\n\t\t\t\t}\r\n\t\t\t}.call(this));\r\n\r\n\t\t\tif (nextItem != null) {\r\n\t\t\t\twhile (\r\n\t\t\t\t\tnextItem[0].nodeName.toLowerCase() !== \"li\" ||\r\n\t\t\t\t\tnextItem[0].className.indexOf(o.disabledClass) !== -1 ||\r\n\t\t\t\t\tnextItem[0] === this.currentItem[0] ||\r\n\t\t\t\t\tnextItem[0] === this.helper[0]\r\n\t\t\t\t) {\r\n\t\t\t\t\tif (nextItem[0].nextSibling) {\r\n\t\t\t\t\t\tnextItem = $(nextItem[0].nextSibling);\r\n\t\t\t\t\t} else {\r\n\t\t\t\t\t\tnextItem = null;\r\n\t\t\t\t\t\tbreak;\r\n\t\t\t\t\t}\r\n\t\t\t\t}\r\n\t\t\t}\r\n\r\n\t\t\tthis.beyondMaxLevels = 0;\r\n\r\n\t\t\t// mjs - if the item is moved to the left, send it one level up\r\n\t\t\t// but only if it's at the bottom of the list\r\n\t\t\tif (parentItem != null &&\r\n\t\t\t\tnextItem == null &&\r\n\t\t\t\t!(o.protectRoot && parentItem[0].parentNode == this.element[0]) &&\r\n\t\t\t\t(\r\n\t\t\t\t\to.rtl &&\r\n\t\t\t\t\t(\r\n\t\t\t\t\t\tthis.positionAbs.left +\r\n\t\t\t\t\t\tthis.helper.outerWidth() > parentItem.offset().left +\r\n\t\t\t\t\t\tparentItem.outerWidth()\r\n\t\t\t\t\t) ||\r\n\t\t\t\t\t!o.rtl && (this.positionAbs.left < parentItem.offset().left)\r\n\t\t\t\t)\r\n\t\t\t) {\r\n\r\n\t\t\t\tparentItem.after(this.placeholder[0]);\r\n\t\t\t\thelperIsNotSibling = !parentItem\r\n\t\t\t\t\t\t\t\t\t\t\t.children(o.listItem)\r\n\t\t\t\t\t\t\t\t\t\t\t.children(\"li:visible:not(.ui-sortable-helper)\")\r\n\t\t\t\t\t\t\t\t\t\t\t.length;\r\n\t\t\t\tif (o.isTree && helperIsNotSibling) {\r\n\t\t\t\t\tparentItem\r\n\t\t\t\t\t\t.removeClass(this.options.branchClass + \" \" + this.options.expandedClass)\r\n\t\t\t\t\t\t.addClass(this.options.leafClass);\r\n\t\t\t\t}\r\n if(typeof parentItem !== 'undefined')\r\n\t\t\t\t this._clearEmpty(parentItem[0]);\r\n\t\t\t\tthis._trigger(\"change\", event, this._uiHash());\r\n\t\t\t\t// mjs - if the item is below a sibling and is moved to the right,\r\n\t\t\t\t// make it a child of that sibling\r\n\t\t\t} else if (previousItem != null &&\r\n\t\t\t\t!previousItem.hasClass(o.disableNestingClass) &&\r\n\t\t\t\t(\r\n\t\t\t\t\tpreviousItem.children(o.listType).length &&\r\n\t\t\t\t\tpreviousItem.children(o.listType).is(\":visible\") ||\r\n\t\t\t\t\t!previousItem.children(o.listType).length\r\n\t\t\t\t) &&\r\n\t\t\t\t!(o.protectRoot && this.currentItem[0].parentNode === this.element[0]) &&\r\n\t\t\t\t(\r\n\t\t\t\t\to.rtl &&\r\n\t\t\t\t\t(\r\n\t\t\t\t\t\tthis.positionAbs.left +\r\n\t\t\t\t\t\tthis.helper.outerWidth() <\r\n\t\t\t\t\t\tpreviousItem.offset().left +\r\n\t\t\t\t\t\tpreviousItem.outerWidth() -\r\n\t\t\t\t\t\to.tabSize\r\n\t\t\t\t\t) ||\r\n\t\t\t\t\t!o.rtl &&\r\n\t\t\t\t\t(this.positionAbs.left > previousItem.offset().left + o.tabSize)\r\n\t\t\t\t)\r\n\t\t\t) {\r\n\r\n\t\t\t\tthis._isAllowed(previousItem, level, level + childLevels + 1);\r\n\r\n\t\t\t\tif (!previousItem.children(o.listType).length) {\r\n\t\t\t\t\tpreviousItem[0].appendChild(newList);\r\n\t\t\t\t\tif (o.isTree) {\r\n\t\t\t\t\t\tpreviousItem\r\n\t\t\t\t\t\t\t.removeClass(o.leafClass)\r\n\t\t\t\t\t\t\t.addClass(o.branchClass + \" \" + o.expandedClass);\r\n\t\t\t\t\t}\r\n\t\t\t\t}\r\n\r\n\t\t\t\t// mjs - if this item is being moved from the top, add it to the top of the list.\r\n\t\t\t\tif (previousTopOffset && (previousTopOffset <= previousItem.offset().top)) {\r\n\t\t\t\t\tpreviousItem.children(o.listType).prepend(this.placeholder);\r\n\t\t\t\t} else {\r\n\t\t\t\t\t// mjs - otherwise, add it to the bottom of the list.\r\n\t\t\t\t\tpreviousItem.children(o.listType)[0].appendChild(this.placeholder[0]);\r\n\t\t\t\t}\r\n if(typeof parentItem !== 'undefined')\r\n\t\t\t\t this._clearEmpty(parentItem[0]);\r\n\t\t\t\tthis._trigger(\"change\", event, this._uiHash());\r\n\t\t\t} else {\r\n\t\t\t\tthis._isAllowed(parentItem, level, level + childLevels);\r\n\t\t\t}\r\n\r\n\t\t\t//Post events to containers\r\n\t\t\tthis._contactContainers(event);\r\n\r\n\t\t\t//Interconnect with droppables\r\n\t\t\tif ($.ui.ddmanager) {\r\n\t\t\t\t$.ui.ddmanager.drag(this, event);\r\n\t\t\t}\r\n\r\n\t\t\t//Call callbacks\r\n\t\t\tthis._trigger(\"sort\", event, this._uiHash());\r\n\r\n\t\t\tthis.lastPositionAbs = this.positionAbs;\r\n\t\t\treturn false;\r\n\r\n\t\t},\r\n\r\n\t\t_mouseStop: function(event) {\r\n\t\t\t// mjs - if the item is in a position not allowed, send it back\r\n\t\t\tif (this.beyondMaxLevels) {\r\n\r\n\t\t\t\tthis.placeholder.removeClass(this.options.errorClass);\r\n\r\n\t\t\t\tif (this.domPosition.prev) {\r\n\t\t\t\t\t$(this.domPosition.prev).after(this.placeholder);\r\n\t\t\t\t} else {\r\n\t\t\t\t\t$(this.domPosition.parent).prepend(this.placeholder);\r\n\t\t\t\t}\r\n\r\n\t\t\t\tthis._trigger(\"revert\", event, this._uiHash());\r\n\r\n\t\t\t}\r\n\r\n\t\t\t// mjs - clear the hovering timeout, just to be sure\r\n\t\t\t$(\".\" + this.options.hoveringClass)\r\n\t\t\t\t.mouseleave()\r\n\t\t\t\t.removeClass(this.options.hoveringClass);\r\n\r\n\t\t\tthis.mouseentered = false;\r\n\t\t\tif (this.hovering) {\r\n\t\t\t\twindow.clearTimeout(this.hovering);\r\n\t\t\t}\r\n\t\t\tthis.hovering = null;\r\n\r\n\t\t\tthis._relocate_event = event;\r\n\t\t\tthis._pid_current = $(this.domPosition.parent).parent().attr(\"id\");\r\n\t\t\tthis._sort_current = this.domPosition.prev ? $(this.domPosition.prev).next().index() : 0;\r\n\t\t\t$.ui.sortable.prototype._mouseStop.apply(this, arguments); //asybnchronous execution, @see _clear for the relocate event.\r\n\t\t},\r\n\r\n\t\t// mjs - this function is slightly modified\r\n\t\t// to make it easier to hover over a collapsed element and have it expand\r\n\t\t_intersectsWithSides: function(item) {\r\n\r\n\t\t\tvar half = this.options.isTree ? .8 : .5,\r\n\t\t\t\tisOverBottomHalf = isOverAxis(\r\n\t\t\t\t\tthis.positionAbs.top + this.offset.click.top,\r\n\t\t\t\t\titem.top + (item.height * half),\r\n\t\t\t\t\titem.height\r\n\t\t\t\t),\r\n\t\t\t\tisOverTopHalf = isOverAxis(\r\n\t\t\t\t\tthis.positionAbs.top + this.offset.click.top,\r\n\t\t\t\t\titem.top - (item.height * half),\r\n\t\t\t\t\titem.height\r\n\t\t\t\t),\r\n\t\t\t\tisOverRightHalf = isOverAxis(\r\n\t\t\t\t\tthis.positionAbs.left + this.offset.click.left,\r\n\t\t\t\t\titem.left + (item.width / 2),\r\n\t\t\t\t\titem.width\r\n\t\t\t\t),\r\n\t\t\t\tverticalDirection = this._getDragVerticalDirection(),\r\n\t\t\t\thorizontalDirection = this._getDragHorizontalDirection();\r\n\r\n\t\t\tif (this.floating && horizontalDirection) {\r\n\t\t\t\treturn (\r\n\t\t\t\t\t(horizontalDirection === \"right\" && isOverRightHalf) ||\r\n\t\t\t\t\t(horizontalDirection === \"left\" && !isOverRightHalf)\r\n\t\t\t\t);\r\n\t\t\t} else {\r\n\t\t\t\treturn verticalDirection && (\r\n\t\t\t\t\t(verticalDirection === \"down\" && isOverBottomHalf) ||\r\n\t\t\t\t\t(verticalDirection === \"up\" && isOverTopHalf)\r\n\t\t\t\t);\r\n\t\t\t}\r\n\r\n\t\t},\r\n\r\n\t\t_contactContainers: function() {\r\n\r\n\t\t\tif (this.options.protectRoot && this.currentItem[0].parentNode === this.element[0] ) {\r\n\t\t\t\treturn;\r\n\t\t\t}\r\n\r\n\t\t\t$.ui.sortable.prototype._contactContainers.apply(this, arguments);\r\n\r\n\t\t},\r\n\r\n\t\t_clear: function() {\r\n\t\t\tvar i,\r\n\t\t\t\titem;\r\n\r\n\t\t\t$.ui.sortable.prototype._clear.apply(this, arguments);\r\n\r\n\t\t\t//relocate event\r\n\t\t\tif (!(this._pid_current === this._uiHash().item.parent().parent().attr(\"id\") &&\r\n\t\t\t\tthis._sort_current === this._uiHash().item.index())) {\r\n\t\t\t\tthis._trigger(\"relocate\", this._relocate_event, this._uiHash());\r\n\t\t\t}\r\n\r\n\t\t\t// mjs - clean last empty ul/ol\r\n\t\t\tfor (i = this.items.length - 1; i >= 0; i--) {\r\n\t\t\t\titem = this.items[i].item[0];\r\n\t\t\t\tthis._clearEmpty(item);\r\n\t\t\t}\r\n\r\n\t\t},\r\n\r\n\t\tserialize: function(options) {\r\n\r\n\t\t\tvar o = $.extend({}, this.options, options),\r\n\t\t\t\titems = this._getItemsAsjQuery(o && o.connected),\r\n\t\t\t\tstr = [];\r\n\r\n\t\t\t$(items).each(function() {\r\n\t\t\t\tvar res = ($(o.item || this).attr(o.attribute || \"id\") || \"\")\r\n\t\t\t\t\t\t.match(o.expression || (/(.+)[-=_](.+)/)),\r\n\t\t\t\t\tpid = ($(o.item || this).parent(o.listType)\r\n\t\t\t\t\t\t.parent(o.items)\r\n\t\t\t\t\t\t.attr(o.attribute || \"id\") || \"\")\r\n\t\t\t\t\t\t.match(o.expression || (/(.+)[-=_](.+)/));\r\n\r\n\t\t\t\tif (res) {\r\n\t\t\t\t\tstr.push(\r\n\t\t\t\t\t\t(\r\n\t\t\t\t\t\t\t(o.key || res[1]) +\r\n\t\t\t\t\t\t\t\"[\" +\r\n\t\t\t\t\t\t\t(o.key && o.expression ? res[1] : res[2]) + \"]\"\r\n\t\t\t\t\t\t) +\r\n\t\t\t\t\t\t\"=\" +\r\n\t\t\t\t\t\t(pid ? (o.key && o.expression ? pid[1] : pid[2]) : o.rootID));\r\n\t\t\t\t}\r\n\t\t\t});\r\n\r\n\t\t\tif (!str.length && o.key) {\r\n\t\t\t\tstr.push(o.key + \"=\");\r\n\t\t\t}\r\n\r\n\t\t\treturn str.join(\"&\");\r\n\r\n\t\t},\r\n\r\n\t\ttoHierarchy: function(options) {\r\n\r\n\t\t\tvar o = $.extend({}, this.options, options),\r\n\t\t\t\tret = [];\r\n\r\n\t\t\t$(this.element).children(o.items).each(function() {\r\n\t\t\t\tvar level = _recursiveItems(this);\r\n\t\t\t\tret.push(level);\r\n\t\t\t});\r\n\r\n\t\t\treturn ret;\r\n\r\n\t\t\tfunction _recursiveItems(item) {\r\n\t\t\t\tvar id = ($(item).attr(o.attribute || \"id\") || \"\").match(o.expression || (/(.+)[-=_](.+)/)),\r\n\t\t\t\t\tcurrentItem;\r\n\r\n\t\t\t\tvar data = $(item).data();\r\n\t\t\t\tif (data.nestedSortableItem) {\r\n\t\t\t\t\tdelete data.nestedSortableItem; // Remove the nestedSortableItem object from the data\r\n\t\t\t\t}\r\n\r\n\t\t\t\tif (id) {\r\n\t\t\t\t\tcurrentItem = {\r\n\t\t\t\t\t\t\"id\": id[2]\r\n\t\t\t\t\t};\r\n\r\n\t\t\t\t\tcurrentItem = $.extend({}, currentItem, data); // Combine the two objects\r\n\r\n\t\t\t\t\tif ($(item).children(o.listType).children(o.items).length > 0) {\r\n\t\t\t\t\t\tcurrentItem.children = [];\r\n\t\t\t\t\t\t$(item).children(o.listType).children(o.items).each(function() {\r\n\t\t\t\t\t\t\tvar level = _recursiveItems(this);\r\n\t\t\t\t\t\t\tcurrentItem.children.push(level);\r\n\t\t\t\t\t\t});\r\n\t\t\t\t\t}\r\n\t\t\t\t\treturn currentItem;\r\n\t\t\t\t}\r\n\t\t\t}\r\n\t\t},\r\n\r\n\t\ttoArray: function(options) {\r\n\r\n\t\t\tvar o = $.extend({}, this.options, options),\r\n\t\t\t\tsDepth = o.startDepthCount || 0,\r\n\t\t\t\tret = [],\r\n\t\t\t\tleft = 1;\r\n\r\n\t\t\tif (!o.excludeRoot) {\r\n\t\t\t\tret.push({\r\n\t\t\t\t\t\"item_id\": o.rootID,\r\n\t\t\t\t\t\"parent_id\": null,\r\n\t\t\t\t\t\"depth\": sDepth,\r\n\t\t\t\t\t\"left\": left,\r\n\t\t\t\t\t\"right\": ($(o.items, this.element).length + 1) * 2\r\n\t\t\t\t});\r\n\t\t\t\tleft++;\r\n\t\t\t}\r\n\r\n\t\t\t$(this.element).children(o.items).each(function() {\r\n\t\t\t\tleft = _recursiveArray(this, sDepth, left);\r\n\t\t\t});\r\n\r\n\t\t\tret = ret.sort(function(a, b) { return (a.left - b.left); });\r\n\r\n\t\t\treturn ret;\r\n\r\n\t\t\tfunction _recursiveArray(item, depth, _left) {\r\n\r\n\t\t\t\tvar right = _left + 1,\r\n\t\t\t\t\tid,\r\n\t\t\t\t\tpid,\r\n\t\t\t\t\tparentItem;\r\n\r\n\t\t\t\tif ($(item).children(o.listType).children(o.items).length > 0) {\r\n\t\t\t\t\tdepth++;\r\n\t\t\t\t\t$(item).children(o.listType).children(o.items).each(function() {\r\n\t\t\t\t\t\tright = _recursiveArray($(this), depth, right);\r\n\t\t\t\t\t});\r\n\t\t\t\t\tdepth--;\r\n\t\t\t\t}\r\n\r\n\t\t\t\tid = ($(item).attr(o.attribute || \"id\") || \"\").match(o.expression || (/(.+)[-=_](.+)/));\r\n\r\n\t\t\t\tif (depth === sDepth) {\r\n\t\t\t\t\tpid = o.rootID;\r\n\t\t\t\t} else {\r\n\t\t\t\t\tparentItem = ($(item).parent(o.listType)\r\n\t\t\t\t\t\t\t\t\t\t\t.parent(o.items)\r\n\t\t\t\t\t\t\t\t\t\t\t.attr(o.attribute || \"id\"))\r\n\t\t\t\t\t\t\t\t\t\t\t.match(o.expression || (/(.+)[-=_](.+)/));\r\n\t\t\t\t\tpid = parentItem[2];\r\n\t\t\t\t}\r\n\r\n\t\t\t\tif (id) {\r\n\t\t\t\t\tvar data = $(item).children('div').data();\r\n\t\t\t\t\tvar itemObj = $.extend( data, {\r\n\t\t\t\t\t\t\"id\":id[2],\r\n\t\t\t\t\t\t\"parent_id\":pid,\r\n\t\t\t\t\t\t\"depth\":depth,\r\n\t\t\t\t\t\t\"left\":_left,\r\n\t\t\t\t\t\t\"right\":right\r\n\t\t\t\t\t\t} );\r\n\t\t\t\t\tret.push( itemObj );\r\n\t\t\t\t}\r\n\r\n\t\t\t\t_left = right + 1;\r\n\t\t\t\treturn _left;\r\n\t\t\t}\r\n\r\n\t\t},\r\n\r\n\t\t_clearEmpty: function (item) {\r\n\t\t\tfunction replaceClass(elem, search, replace, swap) {\r\n\t\t\t\tif (swap) {\r\n\t\t\t\t\tsearch = [replace, replace = search][0];\r\n\t\t\t\t}\r\n\r\n\t\t\t\t$(elem).removeClass(search).addClass(replace);\r\n\t\t\t}\r\n\r\n\t\t\tvar o = this.options,\r\n\t\t\t\tchildrenList = $(item).children(o.listType),\r\n\t\t\t\thasChildren = childrenList.has('li').length;\r\n\r\n\t\t\tvar doNotClear =\r\n\t\t\t\to.doNotClear ||\r\n\t\t\t\thasChildren ||\r\n\t\t\t\to.protectRoot && $(item)[0] === this.element[0];\r\n\r\n\t\t\tif (o.isTree) {\r\n\t\t\t\treplaceClass(item, o.branchClass, o.leafClass, doNotClear);\r\n\t\t\t}\r\n\r\n\t\t\tif (!doNotClear) {\r\n\t\t\t\tchildrenList.parent().removeClass(o.expandedClass);\r\n\t\t\t\tchildrenList.remove();\r\n\t\t\t}\r\n\t\t},\r\n\r\n\t\t_getLevel: function(item) {\r\n\r\n\t\t\tvar level = 1,\r\n\t\t\t\tlist;\r\n\r\n\t\t\tif (this.options.listType) {\r\n\t\t\t\tlist = item.closest(this.options.listType);\r\n\t\t\t\twhile (list && list.length > 0 && !list.is(\".ui-sortable\")) {\r\n\t\t\t\t\tlevel++;\r\n\t\t\t\t\tlist = list.parent().closest(this.options.listType);\r\n\t\t\t\t}\r\n\t\t\t}\r\n\r\n\t\t\treturn level;\r\n\t\t},\r\n\r\n\t\t_getChildLevels: function(parent, depth) {\r\n\t\t\tvar self = this,\r\n\t\t\t\to = this.options,\r\n\t\t\t\tresult = 0;\r\n\t\t\tdepth = depth || 0;\r\n\r\n\t\t\t$(parent).children(o.listType).children(o.items).each(function(index, child) {\r\n\t\t\t\tresult = Math.max(self._getChildLevels(child, depth + 1), result);\r\n\t\t\t});\r\n\r\n\t\t\treturn depth ? result + 1 : result;\r\n\t\t},\r\n\r\n\t\t_isAllowed: function(parentItem, level, levels) {\r\n\t\t\tvar o = this.options,\r\n\t\t\t\t// this takes into account the maxLevels set to the recipient list\r\n\t\t\t\tmaxLevels = this\r\n\t\t\t\t\t.placeholder\r\n\t\t\t\t\t.closest(\".ui-sortable\")\r\n\t\t\t\t\t.nestedSortable(\"option\", \"maxLevels\"),\r\n\r\n\t\t\t\t// Check if the parent has changed to prevent it, when o.disableParentChange is true\r\n\t\t\t\toldParent = this.currentItem.parent().parent(),\r\n\t\t\t\tdisabledByParentchange = o.disableParentChange && (\r\n\t\t\t\t\t//From somewhere to somewhere else, except the root\r\n\t\t\t\t\ttypeof parentItem !== 'undefined' && !oldParent.is(parentItem) ||\r\n\t\t\t\t\ttypeof parentItem === 'undefined' && oldParent.is(\"li\")\t//From somewhere to the root\r\n\t\t\t\t);\r\n\t\t\t// mjs - is the root protected?\r\n\t\t\t// mjs - are we nesting too deep?\r\n\t\t\tif (\r\n\t\t\t\tdisabledByParentchange ||\r\n\t\t\t\t!o.isAllowed(this.placeholder, parentItem, this.currentItem)\r\n\t\t\t) {\r\n\t\t\t\tthis.placeholder.addClass(o.errorClass);\r\n\t\t\t\tif (maxLevels < levels && maxLevels !== 0) {\r\n\t\t\t\t\tthis.beyondMaxLevels = levels - maxLevels;\r\n\t\t\t\t} else {\r\n\t\t\t\t\tthis.beyondMaxLevels = 1;\r\n\t\t\t\t}\r\n\t\t\t} else {\r\n\t\t\t\tif (maxLevels < levels && maxLevels !== 0) {\r\n\t\t\t\t\tthis.placeholder.addClass(o.errorClass);\r\n\t\t\t\t\tthis.beyondMaxLevels = levels - maxLevels;\r\n\t\t\t\t} else {\r\n\t\t\t\t\tthis.placeholder.removeClass(o.errorClass);\r\n\t\t\t\t\tthis.beyondMaxLevels = 0;\r\n\t\t\t\t}\r\n\t\t\t}\r\n\t\t}\r\n\r\n\t}));\r\n\r\n\t$.mjs.nestedSortable.prototype.options = $.extend(\r\n\t\t{},\r\n\t\t$.ui.sortable.prototype.options,\r\n\t\t$.mjs.nestedSortable.prototype.options\r\n\t);\r\n}));\r\n"],"names":["factory","define","amd","window","jQuery","$","widget","extend","ui","sortable","prototype","options","disableParentChange","doNotClear","expandOnHover","isAllowed","isTree","listType","maxLevels","protectRoot","rootID","rtl","startCollapsed","tabSize","branchClass","collapsedClass","disableNestingClass","errorClass","expandedClass","hoveringClass","leafClass","disabledClass","_create","self","element","data","is","Error","tolerance","apply","arguments","items","each","$li","item","hasCollapsedClass","hasClass","hasExpandedClass","children","length","addClass","_destroy","removeData","_mouseDrag","event","i","itemElement","intersection","previousTopOffset","parentItem","level","childLevels","itemAfter","itemBefore","newList","method","a","previousItem","nextItem","helperIsNotSibling","o","scrolled","$document","document","position","_generatePosition","positionAbs","_convertPositionTo","lastPositionAbs","scroll","scrollParent","tagName","overflowOffset","top","offsetHeight","pageY","scrollSensitivity","scrollTop","scrollSpeed","left","offsetWidth","pageX","scrollLeft","height","width","ddmanager","dropBehaviour","prepareOffsets","placeholder","offset","axis","helper","style","hovering","mouseentered","_parentItem","parent","closest","call","_getLevel","_getChildLevels","createElement","_intersectsWithPointer","instance","currentContainer","className","indexOf","currentItem","contains","type","mouseenter","setTimeout","removeClass","refreshPositions","_trigger","_uiHash","direction","_intersectsWithSides","mouseleave","clearTimeout","parentNode","appendChild","undefined","prev","_rearrange","_clearEmpty","_previousItem","nodeName","toLowerCase","previousSibling","_nextItem","next","nextSibling","beyondMaxLevels","outerWidth","after","listItem","_isAllowed","prepend","_contactContainers","drag","_mouseStop","domPosition","_relocate_event","_pid_current","attr","_sort_current","index","x","reference","size","half","isOverBottomHalf","click","isOverTopHalf","isOverRightHalf","verticalDirection","_getDragVerticalDirection","horizontalDirection","_getDragHorizontalDirection","floating","_clear","serialize","_getItemsAsjQuery","connected","str","res","attribute","match","expression","pid","push","key","join","toHierarchy","ret","_recursiveItems","id","nestedSortableItem","toArray","sDepth","startDepthCount","excludeRoot","_recursiveArray","depth","_left","right","itemObj","sort","b","search","replace","childrenList","hasChildren","has","remove","list","result","child","Math","max","levels","nestedSortable","oldParent","disabledByParentchange","mjs"],"mappings":"CAYC,SAAUA,CAAO,EACjB,YAEK,AAAkB,CAAA,YAAlB,OAAOC,QAAyBA,OAAOC,GAAG,CAG9CD,OAAO,CACN,SACA,qBACA,CAAED,GAIHA,EAASG,OAAOC,MAAM,CAExB,EAAE,SAASC,CAAC,EACX,aAMAA,EAAEC,MAAM,CAAC,qBAAsBD,EAAEE,MAAM,CAAC,CAAC,EAAGF,EAAEG,EAAE,CAACC,QAAQ,CAACC,SAAS,CAAE,CAEpEC,QAAS,CACRC,oBAAqB,CAAA,EACrBC,WAAY,CAAA,EACZC,cAAe,IACfC,UAAW,WAAa,MAAO,CAAA,CAAM,EACrCC,OAAQ,CAAA,EACRC,SAAU,KACVC,UAAW,EACXC,YAAa,CAAA,EACbC,OAAQ,KACRC,IAAK,CAAA,EACLC,eAAgB,CAAA,EAChBC,QAAS,GAETC,YAAa,4BACbC,eAAgB,+BAChBC,oBAAqB,gCACrBC,WAAY,2BACZC,cAAe,8BACfC,cAAe,8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AAc,IAAdA,GACzB,IAAI,CAACgF,WAAW,CAAChD,QAAQ,CAACoB,EAAE3C,UAAU,EACtC,IAAI,CAACoH,eAAe,CAAGoE,EAASjM,IAEhC,IAAI,CAACgF,WAAW,CAACwB,WAAW,CAACpD,EAAE3C,UAAU,EACzC,IAAI,CAACoH,eAAe,CAAG,EAG1B,CAED,IAEA1I,EAAEkN,GAAG,CAACH,cAAc,CAAC1M,SAAS,CAACC,OAAO,CAAGN,EAAEE,MAAM,CAChD,CAAC,EACDF,EAAEG,EAAE,CAACC,QAAQ,CAACC,SAAS,CAACC,OAAO,CAC/BN,EAAEkN,GAAG,CAACH,cAAc,CAAC1M,SAAS,CAACC,OAAO,CAExC"}asd \ No newline at end of file diff --git a/src/OrchardCore.Modules/OrchardCore.Taxonomies/wwwroot/Scripts/tags-editor.map b/src/OrchardCore.Modules/OrchardCore.Taxonomies/wwwroot/Scripts/tags-editor.map index 47ecd74336e..cdd656faae4 100644 --- a/src/OrchardCore.Modules/OrchardCore.Taxonomies/wwwroot/Scripts/tags-editor.map +++ b/src/OrchardCore.Modules/OrchardCore.Taxonomies/wwwroot/Scripts/tags-editor.map @@ -1 +1 @@ -{"version":3,"sources":[""],"sourcesContent":["function initializeTagsEditor(element) {\r\n if (element) {\r\n\r\n var elementId = element.id;\r\n var vueMultiselect = Vue.component('vue-multiselect', window.VueMultiselect.default);\r\n\r\n var vm = new Vue({\r\n el: '#' + elementId,\r\n components: { 'vue-multiselect': vueMultiselect },\r\n data: function () {\r\n // All terms generate a model binding.\r\n var allTagTerms = JSON.parse(element.dataset.allTagTerms || \"[]\");\r\n\r\n // Selectable terms are shown in options list.\r\n var selectableTagTerms = allTagTerms;\r\n\r\n // Leaves only filters selectableTerms.\r\n if (element.dataset.leavesOnly == 'true') {\r\n selectableTagTerms = selectableTagTerms.filter(function (tagTerm) { return tagTerm.isLeaf });\r\n // Self heal when leaves only value is updated.\r\n allTagTerms.forEach(function (tagTerm) {\r\n if (!selectableTagTerms.includes(tagTerm)) {\r\n tagTerm.selected = false;\r\n }\r\n });\r\n }\r\n\r\n // Selected terms are show in selected tags field.\r\n selectedTagTerms = allTagTerms.filter(function (tagTerm) { return tagTerm.selected });\r\n\r\n return {\r\n open: element.dataset.open,\r\n taxonomyContentItemId: element.dataset.taxonomyContentItemId,\r\n createTagUrl: element.dataset.createTagUrl,\r\n createTagErrorMessage: element.dataset.createTagErrorMessage,\r\n selectedTagTerms: selectedTagTerms,\r\n selectableTagTerms: selectableTagTerms,\r\n allTagTerms: allTagTerms\r\n }\r\n },\r\n computed: {\r\n isDisabled: function () {\r\n if (this.open == 'false' && this.selectableTagTerms.length === 0) {\r\n return true;\r\n }\r\n return false;\r\n },\r\n selectedTagTermsIds: function() {\r\n if (!this.selectedTagTerms) {\r\n return [];\r\n }\r\n if (Array.isArray(this.selectedTagTerms)) {\r\n return this.selectedTagTerms.map(function (tagTerm) { return tagTerm.contentItemId });\r\n } else {\r\n return this.selectedTagTerms.contentItemId;\r\n }\r\n }\r\n },\r\n methods: {\r\n createTagTerm(newTagTerm) {\r\n var self = this;\r\n $.ajax({\r\n url: self.createTagUrl,\r\n method: 'POST',\r\n data: {\r\n __RequestVerificationToken: $(\"input[name='__RequestVerificationToken']\").val(),\r\n taxonomyContentItemId: self.taxonomyContentItemId,\r\n displayText: newTagTerm\r\n },\r\n success: function (data) {\r\n var tagTerm = {\r\n contentItemId: data.contentItemId,\r\n displayText: data.displayText,\r\n selected: true\r\n }\r\n // Add to allTagTerms array so model binding will save tag as selected.\r\n self.allTagTerms.push(tagTerm);\r\n\r\n // Add to selectedTerms to display in vue-multi-select.\r\n self.selectedTagTerms.push(tagTerm);\r\n\r\n },\r\n error: function () {\r\n alert(self.createTagErrorMessage);\r\n }\r\n });\r\n },\r\n onSelect(selectedTagTerm) {\r\n var tagTerm = this.allTagTerms.find(function (tagTerm) { return tagTerm.contentItemId === selectedTagTerm.contentItemId });\r\n tagTerm.selected = true;\r\n $(document).trigger('contentpreview:render');\r\n },\r\n onRemove(removedTagTerm) {\r\n var tagTerm = this.allTagTerms.find(function (tagTerm) { return tagTerm.contentItemId === removedTagTerm.contentItemId });\r\n tagTerm.selected = false;\r\n $(document).trigger('contentpreview:render');\r\n }\r\n }\r\n });\r\n\r\n return vm;\r\n }\r\n}\r\n"],"names":["initializeTagsEditor","element","elementId","id","vueMultiselect","Vue","component","window","VueMultiselect","default","el","components","data","allTagTerms","JSON","parse","dataset","selectableTagTerms","leavesOnly","filter","tagTerm","isLeaf","forEach","includes","selected","selectedTagTerms","open","taxonomyContentItemId","createTagUrl","createTagErrorMessage","computed","isDisabled","length","selectedTagTermsIds","Array","isArray","map","contentItemId","methods","createTagTerm","newTagTerm","self","$","ajax","url","method","__RequestVerificationToken","val","displayText","success","push","error","alert","onSelect","selectedTagTerm","find","document","trigger","onRemove","removedTagTerm"],"mappings":"AAAA,SAASA,qBAAqBC,CAAO,EACjC,GAAIA,EAAS,CAET,IAAIC,EAAYD,EAAQE,EAAE,CACtBC,EAAiBC,IAAIC,SAAS,CAAC,kBAAmBC,OAAOC,cAAc,CAACC,OAAO,EAgGnF,OA9FS,IAAIJ,IAAI,CACbK,GAAI,IAAMR,EACVS,WAAY,CAAE,kBAAmBP,CAAe,EAChDQ,KAAM,WAEF,IAAIC,EAAcC,KAAKC,KAAK,CAACd,EAAQe,OAAO,CAACH,WAAW,EAAI,MAGxDI,EAAqBJ,EAgBzB,MAbkC,QAA9BZ,EAAQe,OAAO,CAACE,UAAU,GAC1BD,EAAqBA,EAAmBE,MAAM,CAAC,SAAUC,CAAO,EAAI,OAAOA,EAAQC,MAAM,AAAC,GAE1FR,EAAYS,OAAO,CAAC,SAAUF,CAAO,EAC5BH,EAAmBM,QAAQ,CAACH,IAC7BA,CAAAA,EAAQI,QAAQ,CAAG,CAAA,CAAI,CAE/B,IAIJC,iBAAmBZ,EAAYM,MAAM,CAAC,SAAUC,CAAO,EAAI,OAAOA,EAAQI,QAAQ,AAAC,GAE5E,CACHE,KAAMzB,EA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iB,aAAa,GAAKiB,EAAgBjB,aAAa,AAAC,GAChHb,QAAQ,CAAG,CAAA,EACnBkB,EAAEc,UAAUC,OAAO,CAAC,wBACxB,EACAC,SAASC,CAAc,EAEnBvC,AADc,IAAI,CAACP,WAAW,CAAC0C,IAAI,CAAC,SAAUnC,CAAO,EAAI,OAAOA,EAAQiB,aAAa,GAAKsB,EAAetB,aAAa,AAAC,GAC/Gb,QAAQ,CAAG,CAAA,EACnBkB,EAAEc,UAAUC,OAAO,CAAC,wBACxB,CACJ,CACJ,EAGJ,CACJ"} +{"version":3,"sources":[""],"sourcesContent":["function initializeTagsEditor(element) {\r\n if (element) {\r\n\r\n var elementId = element.id;\r\n var vueMultiselect = Vue.component('vue-multiselect', window.VueMultiselect.default);\r\n\r\n var vm = new Vue({\r\n el: '#' + elementId,\r\n components: { 'vue-multiselect': vueMultiselect },\r\n data: function () {\r\n // All terms generate a model binding.\r\n var allTagTerms = JSON.parse(element.dataset.allTagTerms || \"[]\");\r\n\r\n // Selectable terms are shown in options list.\r\n var selectableTagTerms = allTagTerms;\r\n\r\n // Leaves only filters selectableTerms.\r\n if (element.dataset.leavesOnly == 'true') {\r\n selectableTagTerms = selectableTagTerms.filter(function (tagTerm) { return tagTerm.isLeaf });\r\n // Self heal when leaves only value is updated.\r\n allTagTerms.forEach(function (tagTerm) {\r\n if (!selectableTagTerms.includes(tagTerm)) {\r\n tagTerm.selected = false;\r\n }\r\n });\r\n }\r\n\r\n // Selected terms are show in selected tags field.\r\n selectedTagTerms = allTagTerms.filter(function (tagTerm) { return tagTerm.selected });\r\n\r\n return {\r\n open: element.dataset.open,\r\n taxonomyContentItemId: element.dataset.taxonomyContentItemId,\r\n createTagUrl: element.dataset.createTagUrl,\r\n createTagErrorMessage: element.dataset.createTagErrorMessage,\r\n selectedTagTerms: selectedTagTerms,\r\n selectableTagTerms: selectableTagTerms,\r\n allTagTerms: allTagTerms\r\n }\r\n },\r\n computed: {\r\n isDisabled: function () {\r\n if (this.open == 'false' && this.selectableTagTerms.length === 0) {\r\n return true;\r\n }\r\n return false;\r\n },\r\n selectedTagTermsIds: function() {\r\n if (!this.selectedTagTerms) {\r\n return [];\r\n }\r\n if (Array.isArray(this.selectedTagTerms)) {\r\n return this.selectedTagTerms.map(function (tagTerm) { return tagTerm.contentItemId });\r\n } else {\r\n return this.selectedTagTerms.contentItemId;\r\n }\r\n }\r\n },\r\n methods: {\r\n createTagTerm(newTagTerm) {\r\n var self = this;\r\n $.ajax({\r\n url: self.createTagUrl,\r\n method: 'POST',\r\n data: {\r\n __RequestVerificationToken: $(\"input[name='__RequestVerificationToken']\").val(),\r\n taxonomyContentItemId: self.taxonomyContentItemId,\r\n displayText: newTagTerm\r\n },\r\n success: function (data) {\r\n var tagTerm = {\r\n contentItemId: data.contentItemId,\r\n displayText: data.displayText,\r\n selected: true\r\n }\r\n // Add to allTagTerms array so model binding will save tag as selected.\r\n self.allTagTerms.push(tagTerm);\r\n\r\n // Add to selectedTerms to display in vue-multi-select.\r\n self.selectedTagTerms.push(tagTerm);\r\n\r\n },\r\n error: function () {\r\n alert(self.createTagErrorMessage);\r\n }\r\n });\r\n },\r\n onSelect(selectedTagTerm) {\r\n var tagTerm = this.allTagTerms.find(function (tagTerm) { return tagTerm.contentItemId === selectedTagTerm.contentItemId });\r\n tagTerm.selected = true;\r\n $(document).trigger('contentpreview:render');\r\n },\r\n onRemove(removedTagTerm) {\r\n var tagTerm = this.allTagTerms.find(function (tagTerm) { return tagTerm.contentItemId === removedTagTerm.contentItemId });\r\n tagTerm.selected = false;\r\n $(document).trigger('contentpreview:render');\r\n }\r\n }\r\n });\r\n\r\n return vm;\r\n }\r\n}\r\n"],"names":["initializeTagsEditor","element","elementId","id","vueMultiselect","Vue","component","window","VueMultiselect","default","el","components","data","allTagTerms","JSON","parse","dataset","selectableTagTerms","leavesOnly","filter","tagTerm","isLeaf","forEach","includes","selected","selectedTagTerms","open","taxonomyContentItemId","createTagUrl","createTagErrorMessage","computed","isDisabled","length","selectedTagTermsIds","Array","isArray","map","contentItemId","methods","createTagTerm","newTagTerm","self","$","ajax","url","method","__RequestVerificationToken","val","displayText","success","push","error","alert","onSelect","selectedTagTerm","find","document","trigger","onRemove","removedTagTerm"],"mappings":"AAAA,SAASA,qBAAqBC,CAAO,EACjC,GAAIA,EAAS,CAET,IAAIC,EAAYD,EAAQE,EAAE,CACtBC,EAAiBC,IAAIC,SAAS,CAAC,kBAAmBC,OAAOC,cAAc,CAACC,OAAO,EAgGnF,OA9FS,IAAIJ,IAAI,CACbK,GAAI,IAAMR,EACVS,WAAY,CAAE,kBAAmBP,CAAe,EAChDQ,KAAM,WAEF,IAAIC,EAAcC,KAAKC,KAAK,CAACd,EAAQe,OAAO,CAACH,WAAW,EAAI,MAGxDI,EAAqBJ,EAgBzB,MAbkC,QAA9BZ,EAAQe,OAAO,CAACE,UAAU,GAC1BD,EAAqBA,EAAmBE,MAAM,CAAC,SAAUC,CAAO,EAAI,OAAOA,EAAQC,MAAM,AAAC,GAE1FR,EAAYS,OAAO,CAAC,SAAUF,CAAO,EAC5BH,EAAmBM,QAAQ,CAACH,IAC7BA,CAAAA,EAAQI,QAAQ,CAAG,CAAA,CAAI,CAE/B,IAIJC,iBAAmBZ,EAAYM,MAAM,CAAC,SAAUC,CAAO,EAAI,OAAOA,EAAQI,QAAQ,AAAC,GAE5E,CACHE,KAAMzB,EAAQe,OAAO,CAACU,IAAI,CAC1BC,sBAAuB1B,EAAQe,OAAO,CAACW,qBAAqB,CAC5DC,aAAc3B,EAAQe,OAAO,CAACY,YAAY,CAC1CC,sBAAuB5B,EAAQe,OAAO,CAACa,qBAAqB,CAC5DJ,iBAAkBA,iBAClBR,mBAAoBA,EACpBJ,YAAaA,CACjB,CACJ,EACAiB,SAAU,CACNC,WAAY,iBACJ,AAAa,SAAb,IAAI,CAACL,IAAI,EAAe,AAAmC,IAAnC,IAAI,CAACT,kBAAkB,CAACe,MAAM,AAI9D,EACAC,oBAAqB,kBACjB,AAAK,IAAI,C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/OrchardCore.Templates/wwwroot/Scripts/templatepreview.edit.map b/src/OrchardCore.Modules/OrchardCore.Templates/wwwroot/Scripts/templatepreview.edit.map index b2eefd2689c..11cdc077c58 100644 --- a/src/OrchardCore.Modules/OrchardCore.Templates/wwwroot/Scripts/templatepreview.edit.map +++ b/src/OrchardCore.Modules/OrchardCore.Templates/wwwroot/Scripts/templatepreview.edit.map @@ -1 +1 @@ -{"version":3,"sources":[""],"sourcesContent":["var editor;\r\n\r\nfunction initializeTemplatePreview(nameElement, editorElement) {\r\n\r\n var antiforgerytoken = $(\"[name='__RequestVerificationToken']\").val();\r\n\r\n sendFormData = function (nameElement) {\r\n\r\n var formData = {\r\n 'Name': nameElement.value,\r\n 'Content': editor.getValue(),\r\n '__RequestVerificationToken': antiforgerytoken\r\n };\r\n\r\n // store the form data to pass it in the event handler\r\n localStorage.setItem('OrchardCore.templates', JSON.stringify($.param(formData)));\r\n }\r\n\r\n editor = CodeMirror.fromTextArea(editorElement, {\r\n autoRefresh: true,\r\n lineNumbers: true,\r\n lineWrapping: true,\r\n matchBrackets: true,\r\n styleActiveLine: true,\r\n mode: { name: \"liquid\" },\r\n extraKeys: {\r\n \"F11\": function (cm) {\r\n cm.setOption(\"fullScreen\", !cm.getOption(\"fullScreen\"));\r\n },\r\n \"Esc\": function (cm) {\r\n if (cm.getOption(\"fullScreen\")) cm.setOption(\"fullScreen\", false);\r\n }\r\n }\r\n });\r\n\r\n editor.on('change', function (cm) {\r\n sendFormData(nameElement);\r\n });\r\n\r\n window.addEventListener('storage', function (ev) {\r\n if (ev.key != 'OrchardCore.templates:ready') return; // ignore other keys\r\n\r\n // triggered by the preview window the first time it is loaded in order\r\n // to pre-render the view even if no contentpreview:render is already sent\r\n sendFormData(nameElement);\r\n }, false);\r\n\r\n $(nameElement)\r\n .on('input', function () { sendFormData(nameElement); })\r\n .on('propertychange', function () { sendFormData(nameElement); })\r\n .on('change', function () { sendFormData(nameElement); })\r\n .on('keyup', function (event) {\r\n // handle backspace\r\n if (event.keyCode == 46 || event.ctrlKey) {\r\n sendFormData(nameElement);\r\n }\r\n });\r\n\r\n $(window).on('unload', function () {\r\n localStorage.removeItem('OrchardCore.templates');\r\n // this will raise an event in the preview window to notify that the live preview is no longer active.\r\n localStorage.setItem('OrchardCore.templates:not-connected', '');\r\n localStorage.removeItem('OrchardCore.templates:not-connected');\r\n });\r\n}\r\n"],"names":["editor","initializeTemplatePreview","nameElement","editorElement","antiforgerytoken","$","val","sendFormData","formData","value","getValue","localStorage","setItem","JSON","stringify","param","CodeMirror","fromTextArea","autoRefresh","lineNumbers","lineWrapping","matchBrackets","styleActiveLine","mode","name","extraKeys","cm","setOption","getOption","on","window","addEventListener","ev","key","event","keyCode","ctrlKey","removeItem"],"mappings":"AAAA,IAAIA,OAEJ,SAASC,0BAA0BC,CAAW,CAAEC,CAAa,EAEzD,IAAIC,EAAmBC,EAAE,uCAAuCC,GAAG,GAEnEC,aAAe,SAAUL,CAAW,EAEhC,IAAIM,EAAW,CACX,KAAQN,EAAYO,KAAK,CACzB,QAAWT,OAAOU,QAAQ,GAC1B,2BAA8BN,CAClC,EAGAO,aAAaC,OAAO,CAAC,wBAAyBC,KAAKC,SAAS,CAACT,EAAEU,KAAK,CAACP,IACzE,EAmBAR,AAjBAA,CAAAA,OAASgB,WAAWC,YAAY,CAACd,EAAe,CAC5Ce,YAAa,CAAA,EACbC,YAAa,CAAA,EACbC,aAAc,CAAA,EACdC,cAAe,CAAA,EACfC,gBAAiB,CAAA,EACjBC,KAAM,CAAEC,KAAM,QAAS,EACvBC,UAAW,CACP,IAAO,SAAUC,CAAE,EACfA,EAAGC,SAAS,CAAC,aAAc,CAACD,EAAGE,SAAS,CAAC,cAC7C,EACA,IAAO,SAAUF,CAAE,EACXA,EAAGE,SAAS,CAAC,eAAeF,EAAGC,SAAS,CAAC,aAAc,CAAA,EAC/D,CACJ,CACJ,EAAC,EAEME,EAAE,CAAC,SAAU,SAAUH,CAAE,EAC5BnB,aAAaL,EACjB,GAEA4B,OAAOC,gBAAgB,CAAC,UAAW,SAAUC,CAAE,EAC7B,+BAAVA,EAAGC,GAAG,EAIV1B,aAAaL,EACjB,EAAG,CAAA,GAEHG,EAAEH,GACG2B,EAAE,CAAC,QAAS,WAActB,aAAaL,EAAc,GACrD2B,EAAE,CAAC,iBAAkB,WAActB,aAAaL,EAAc,GAC9D2B,EAAE,CAAC,SAAU,WAActB,aAAaL,EAAc,GACtD2B,EAAE,CAAC,QAAS,SAAUK,CAAK,EAEpBA,CAAAA,AAAiB,IAAjBA,EAAMC,OAAO,EAAUD,EAAME,OAAO,AAAD,GACnC7B,aAAaL,EAErB,GAEJG,EAAEyB,QAAQD,EAAE,CAAC,SAAU,WACnBlB,aAAa0B,UAAU,CAAC,yBAExB1B,aAAaC,OAAO,CAAC,sCAAuC,IAC5DD,aAAa0B,UAAU,CAAC,sCAC7B,EACH"} +{"version":3,"sources":[""],"sourcesContent":["var editor;\r\n\r\nfunction initializeTemplatePreview(nameElement, editorElement) {\r\n\r\n var antiforgerytoken = $(\"[name='__RequestVerificationToken']\").val();\r\n\r\n sendFormData = function (nameElement) {\r\n\r\n var formData = {\r\n 'Name': nameElement.value,\r\n 'Content': editor.getValue(),\r\n '__RequestVerificationToken': antiforgerytoken\r\n };\r\n\r\n // store the form data to pass it in the event handler\r\n localStorage.setItem('OrchardCore.templates', JSON.stringify($.param(formData)));\r\n }\r\n\r\n editor = CodeMirror.fromTextArea(editorElement, {\r\n autoRefresh: true,\r\n lineNumbers: true,\r\n lineWrapping: true,\r\n matchBrackets: true,\r\n styleActiveLine: true,\r\n mode: { name: \"liquid\" },\r\n extraKeys: {\r\n \"F11\": function (cm) {\r\n cm.setOption(\"fullScreen\", !cm.getOption(\"fullScreen\"));\r\n },\r\n \"Esc\": function (cm) {\r\n if (cm.getOption(\"fullScreen\")) cm.setOption(\"fullScreen\", false);\r\n }\r\n }\r\n });\r\n\r\n editor.on('change', function (cm) {\r\n sendFormData(nameElement);\r\n });\r\n\r\n window.addEventListener('storage', function (ev) {\r\n if (ev.key != 'OrchardCore.templates:ready') return; // ignore other keys\r\n\r\n // triggered by the preview window the first time it is loaded in order\r\n // to pre-render the view even if no contentpreview:render is already sent\r\n sendFormData(nameElement);\r\n }, false);\r\n\r\n $(nameElement)\r\n .on('input', function () { sendFormData(nameElement); })\r\n .on('propertychange', function () { sendFormData(nameElement); })\r\n .on('change', function () { sendFormData(nameElement); })\r\n .on('keyup', function (event) {\r\n // handle backspace\r\n if (event.keyCode == 46 || event.ctrlKey) {\r\n sendFormData(nameElement);\r\n }\r\n });\r\n\r\n $(window).on('unload', function () {\r\n localStorage.removeItem('OrchardCore.templates');\r\n // this will raise an event in the preview window to notify that the live preview is no longer active.\r\n localStorage.setItem('OrchardCore.templates:not-connected', '');\r\n localStorage.removeItem('OrchardCore.templates:not-connected');\r\n });\r\n}\r\n"],"names":["editor","initializeTemplatePreview","nameElement","editorElement","antiforgerytoken","$","val","sendFormData","formData","value","getValue","localStorage","setItem","JSON","stringify","param","CodeMirror","fromTextArea","autoRefresh","lineNumbers","lineWrapping","matchBrackets","styleActiveLine","mode","name","extraKeys","cm","setOption","getOption","on","window","addEventListener","ev","key","event","keyCode","ctrlKey","removeItem"],"mappings":"AAAA,IAAIA,OAEJ,SAASC,0BAA0BC,CAAW,CAAEC,CAAa,EAEzD,IAAIC,EAAmBC,EAAE,uCAAuCC,GAAG,GAEnEC,aAAe,SAAUL,CAAW,EAEhC,IAAIM,EAAW,CACX,KAAQN,EAAYO,KAAK,CACzB,QAAWT,OAAOU,QAAQ,GAC1B,2BAA8BN,CAClC,EAGAO,aAAaC,OAAO,CAAC,wBAAyBC,KAAKC,SAAS,CAACT,EAAEU,KAAK,CAACP,IACzE,EAmBAR,AAjBAA,CAAAA,OAASgB,WAAWC,YAAY,CAACd,EAAe,CAC5Ce,YAAa,CAAA,EACbC,YAAa,CAAA,EACbC,aAAc,CAAA,EACdC,cAAe,CAAA,EACfC,gBAAiB,CAAA,EACjBC,KAAM,CAAEC,KAAM,QAAS,EACvBC,UAAW,CACP,IAAO,SAAUC,CAAE,EACfA,EAAGC,SAAS,CAAC,aAAc,CAACD,EAAGE,SAAS,CAAC,cAC7C,EACA,IAAO,SAAUF,CAAE,EACXA,EAAGE,SAAS,CAAC,eAAeF,EAAGC,SAAS,CAAC,aAAc,CAAA,EAC/D,CACJ,CACJ,EAAC,EAEME,EAAE,CAAC,SAAU,SAAUH,CAAE,EAC5BnB,aAAaL,EACjB,GAEA4B,OAAOC,gBAAgB,CAAC,UAAW,SAAUC,CAAE,EAC7B,+BAAVA,EAAGC,GAAG,EAIV1B,aAAaL,EACjB,EAAG,CAAA,GAEHG,EAAEH,GACG2B,EAAE,CAAC,QAAS,WAActB,aAAaL,EAAc,GACrD2B,EAAE,CAAC,iBAAkB,WAActB,aAAaL,EAAc,GAC9D2B,EAAE,CAAC,SAAU,WAActB,aAAaL,EAAc,GACtD2B,EAAE,CAAC,QAAS,SAAUK,CAAK,EAEpBA,CAAAA,AAAiB,IAAjBA,EAAMC,OAAO,EAAUD,EAAME,OAAO,AAAD,GACnC7B,aAAaL,EAErB,GAEJG,EAAEyB,QAAQD,EAAE,CAAC,SAAU,WACnBlB,aAAa0B,UAAU,CAAC,yBAExB1B,aAAaC,OAAO,CAAC,sCAAuC,IAC5DD,aAAa0B,UAAU,CAAC,sCAC7B,EACH"}asd \ No newline at end of file diff --git a/src/OrchardCore.Modules/OrchardCore.UrlRewriting/wwwroot/Scripts/admin-ui.map b/src/OrchardCore.Modules/OrchardCore.UrlRewriting/wwwroot/Scripts/admin-ui.map index 43d8623b0eb..d3e881108ac 100644 --- a/src/OrchardCore.Modules/OrchardCore.UrlRewriting/wwwroot/Scripts/admin-ui.map +++ b/src/OrchardCore.Modules/OrchardCore.UrlRewriting/wwwroot/Scripts/admin-ui.map @@ -1 +1 @@ -{"version":3,"sources":[""],"sourcesContent":["urlRewritingAdmin = function () {\r\n\r\n const initialize = (url, errorLabel, selectedLabel) => {\r\n\r\n // Create the sortable UI.\r\n sortingListManager.create('#rewrite-rules-sortable-list', url, errorLabel);\r\n\r\n let searchBox = document.getElementById('search-box');\r\n let searchAlert = document.getElementById('list-alert');\r\n\r\n const filterElements = document.querySelectorAll('[data-filter-value]');\r\n\r\n // If the user press Enter, don't submit.\r\n searchBox.addEventListener('keydown', function (e) {\r\n if (e.key === 'Enter') {\r\n e.preventDefault();\r\n }\r\n });\r\n\r\n searchBox.addEventListener('keyup', e => {\r\n\r\n var search = e.target.value.toLowerCase();\r\n // On ESC, clear the search box and display all rules.\r\n if (e.key == 'Escape' || search == '') {\r\n searchAlert.classList.add('d-none');\r\n searchBox.value = '';\r\n for (let i = 0; i < filterElements.length; i++) {\r\n filterElements[i].classList.remove(\"d-none\");\r\n filterElements[i].classList.remove(\"first-child-visible\");\r\n filterElements[i].classList.remove(\"last-child-visible\");\r\n }\r\n\r\n if (filterElements.length > 0) {\r\n filterElements[0].classList.add('first-child-visible');\r\n filterElements[filterElements.length - 1].classList.add('last-child-visible');\r\n }\r\n } else {\r\n let visibleElements = [];\r\n for (let i = 0; i < filterElements.length; i++) {\r\n let filter = filterElements[i];\r\n\r\n var text = filter.getAttribute('data-filter-value');\r\n\r\n if (!text) {\r\n filter.classList.add(\"d-none\");\r\n continue;\r\n }\r\n\r\n var found = text.indexOf(search) > -1;\r\n\r\n if (found) {\r\n filter.classList.remove(\"d-none\");\r\n filter.classList.remove(\"first-child-visible\");\r\n filter.classList.remove(\"last-child-visible\");\r\n visibleElements.push(filter);\r\n } else {\r\n filter.classList.add(\"d-none\");\r\n }\r\n }\r\n\r\n if (visibleElements.length > 0) {\r\n visibleElements[0].classList.add('first-child-visible');\r\n visibleElements[visibleElements.length - 1].classList.add('last-child-visible');\r\n searchAlert.classList.add('d-none');\r\n } else {\r\n searchAlert.classList.remove('d-none');\r\n }\r\n }\r\n });\r\n\r\n var actions = document.getElementById('actions');\r\n var items = document.getElementById('items');\r\n var filters = document.querySelectorAll('.filter');\r\n var selectAllCtrl = document.getElementById('select-all');\r\n var selectedItems = document.getElementById('selected-items');\r\n var itemsCheckboxes = document.querySelectorAll(\"input[type='checkbox'][name='ruleIds']\");\r\n\r\n function displayActionsOrFilters() {\r\n // Select all checked checkboxes with name 'ruleIds'\r\n var checkedCheckboxes = document.querySelectorAll(\"input[type='checkbox'][name='ruleIds']:checked\");\r\n\r\n if (checkedCheckboxes.length > 1) {\r\n actions.classList.remove('d-none');\r\n for (let i = 0; i < filters.length; i++) {\r\n filters[i].classList.add('d-none');\r\n }\r\n selectedItems.classList.remove('d-none');\r\n items.classList.add('d-none');\r\n } else {\r\n actions.classList.add('d-none');\r\n\r\n for (let i = 0; i < filters.length; i++) {\r\n filters[i].classList.remove('d-none');\r\n }\r\n selectedItems.classList.add('d-none');\r\n items.classList.remove('d-none');\r\n }\r\n }\r\n\r\n var dropdownItems = document.querySelectorAll(\".dropdown-menu .dropdown-item\");\r\n\r\n // Add click event listeners to each dropdown item\r\n dropdownItems.forEach(function (item) {\r\n // Check if the item has a data-action attribute\r\n if (item.dataset.action) {\r\n item.addEventListener(\"click\", function () {\r\n // Get all checked checkboxes\r\n var checkedCheckboxes = document.querySelectorAll(\"input[type='checkbox'][name='ruleIds']:checked\");\r\n\r\n // Check if more than one checkbox is checked\r\n if (checkedCheckboxes.length > 1) {\r\n // Get data attributes from the clicked item\r\n var actionData = Object.assign({}, item.dataset);\r\n\r\n confirmDialog({\r\n ...actionData,\r\n callback: function (r) {\r\n if (r) {\r\n // Set the value of the BulkAction option\r\n document.querySelector(\"[name='Options.BulkAction']\").value = actionData.action;\r\n // Trigger the submit action\r\n document.querySelector(\"[name='submit.BulkAction']\").click();\r\n }\r\n }\r\n });\r\n }\r\n });\r\n }\r\n });\r\n\r\n selectAllCtrl.addEventListener(\"click\", function () {\r\n itemsCheckboxes.forEach(function (checkbox) {\r\n if (checkbox !== selectAllCtrl) {\r\n checkbox.checked = selectAllCtrl.checked; // Set the checked state of all checkboxes\r\n }\r\n });\r\n\r\n // Update the selected items text\r\n updateSelectedItemsText();\r\n displayActionsOrFilters();\r\n });\r\n\r\n // Event listener for individual checkboxes\r\n itemsCheckboxes.forEach(function (checkbox) {\r\n checkbox.addEventListener(\"click\", function () {\r\n var itemsCount = itemsCheckboxes.length;\r\n var selectedItemsCount = document.querySelectorAll(\"input[type='checkbox'][name='ruleIds']:checked\").length;\r\n\r\n // Update selectAllCtrl state\r\n selectAllCtrl.checked = selectedItemsCount === itemsCount;\r\n selectAllCtrl.indeterminate = selectedItemsCount > 0 && selectedItemsCount < itemsCount;\r\n\r\n // Update the selected items text\r\n updateSelectedItemsText();\r\n displayActionsOrFilters();\r\n });\r\n });\r\n\r\n // Function to update selected items text\r\n function updateSelectedItemsText() {\r\n var selectedCount = document.querySelectorAll(\"input[type='checkbox'][name='ruleIds']:checked\").length;\r\n selectedItems.textContent = selectedCount + ' ' + selectedLabel;\r\n }\r\n }\r\n\r\n return {\r\n initialize: initialize\r\n }\r\n}();\r\n"],"names":["urlRewritingAdmin","initialize","url","errorLabel","selectedLabel","sortingListManager","create","searchBox","document","getElementById","searchAlert","filterElements","querySelectorAll","addEventListener","e","key","preventDefault","search","target","value","toLowerCase","classList","add","i","length","remove","visibleElements","filter","text","getAttribute","indexOf","push","actions","items","filters","selectAllCtrl","selectedItems","itemsCheckboxes","displayActionsOrFilters","checkedCheckboxes","updateSelectedItemsText","selectedCount","textContent","dropdownItems","forEach","item","dataset","action","actionData","Object","assign","confirmDialog","callback","r","querySelector","click","checkbox","checked","itemsCount","selectedItemsCount","indeterminate"],"mappings":"AAAAA,kBAqKW,CACHC,WApKe,CAACC,EAAKC,EAAYC,KAGjCC,mBAAmBC,MAAM,CAAC,+BAAgCJ,EAAKC,GAE/D,IAAII,EAAYC,SAASC,cAAc,CAAC,cACpCC,EAAcF,SAASC,cAAc,CAAC,cAEpCE,EAAiBH,SAASI,gBAAgB,CAAC,uBAGjDL,EAAUM,gBAAgB,CAAC,UAAW,SAAUC,CAAC,EAC/B,UAAVA,EAAEC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,WAK3B,GAAI0B,AAHoB/B,SAASI,gBAAgB,CAAC,kDAG5BY,MAAM,CAAG,EAAG,CAE9B,IAAIwB,EAAaC,OAAOC,MAAM,CAAC,CAAC,EAAGL,EAAKC,OAAO,EAE/CK,cAAc,CACV,GAAGH,CAAU,CACbI,SAAU,SAAUC,CAAC,EACbA,IAEA7C,SAAS8C,aAAa,CAAC,+BAA+BnC,KAAK,CAAG6B,EAAWD,MAAM,CAE/EvC,SAAS8C,aAAa,CAAC,8BAA8BC,KAAK,GAElE,CACJ,EACJ,CACJ,EAER,GAEApB,EAActB,gBAAgB,CAAC,QAAS,WACpCwB,EAAgBO,OAAO,CAAC,SAAUY,CAAQ,EAClCA,IAAarB,GACbqB,CAAAA,EAASC,OAAO,CAAGtB,EAAcsB,OAAO,AAAD,CAE/C,GAGAjB,IACAF,GACJ,GAGAD,EAAgBO,OAAO,CAAC,SAAUY,CAAQ,EACtCA,EAAS3C,gBAAgB,CAAC,QAAS,WAC/B,IAAI6C,EAAarB,EAAgBb,MAAM,CACnCmC,EAAqBnD,SAASI,gBAAgB,CAAC,kDAAkDY,MAAM,AAG3GW,CAAAA,EAAcsB,OAAO,CAAGE,IAAuBD,EAC/CvB,EAAcyB,aAAa,CAAGD,EAAqB,GAAKA,EAAqBD,EAG7ElB,IACAF,GACJ,EACJ,EAOJ,CAIA"} +{"version":3,"sources":[""],"sourcesContent":["urlRewritingAdmin = function () {\r\n\r\n const initialize = (url, errorLabel, selectedLabel) => {\r\n\r\n // Create the sortable UI.\r\n sortingListManager.create('#rewrite-rules-sortable-list', url, errorLabel);\r\n\r\n let searchBox = document.getElementById('search-box');\r\n let searchAlert = document.getElementById('list-alert');\r\n\r\n const filterElements = document.querySelectorAll('[data-filter-value]');\r\n\r\n // If the user press Enter, don't submit.\r\n searchBox.addEventListener('keydown', function (e) {\r\n if (e.key === 'Enter') {\r\n e.preventDefault();\r\n }\r\n });\r\n\r\n searchBox.addEventListener('keyup', e => {\r\n\r\n var search = e.target.value.toLowerCase();\r\n // On ESC, clear the search box and display all rules.\r\n if (e.key == 'Escape' || search == '') {\r\n searchAlert.classList.add('d-none');\r\n searchBox.value = '';\r\n for (let i = 0; i < filterElements.length; i++) {\r\n filterElements[i].classList.remove(\"d-none\");\r\n filterElements[i].classList.remove(\"first-child-visible\");\r\n filterElements[i].classList.remove(\"last-child-visible\");\r\n }\r\n\r\n if (filterElements.length > 0) {\r\n filterElements[0].classList.add('first-child-visible');\r\n filterElements[filterElements.length - 1].classList.add('last-child-visible');\r\n }\r\n } else {\r\n let visibleElements = [];\r\n for (let i = 0; i < filterElements.length; i++) {\r\n let filter = filterElements[i];\r\n\r\n var text = filter.getAttribute('data-filter-value');\r\n\r\n if (!text) {\r\n filter.classList.add(\"d-none\");\r\n continue;\r\n }\r\n\r\n var found = text.indexOf(search) > -1;\r\n\r\n if (found) {\r\n filter.classList.remove(\"d-none\");\r\n filter.classList.remove(\"first-child-visible\");\r\n filter.classList.remove(\"last-child-visible\");\r\n visibleElements.push(filter);\r\n } else {\r\n filter.classList.add(\"d-none\");\r\n }\r\n }\r\n\r\n if (visibleElements.length > 0) {\r\n visibleElements[0].classList.add('first-child-visible');\r\n visibleElements[visibleElements.length - 1].classList.add('last-child-visible');\r\n searchAlert.classList.add('d-none');\r\n } else {\r\n searchAlert.classList.remove('d-none');\r\n }\r\n }\r\n });\r\n\r\n var actions = document.getElementById('actions');\r\n var items = document.getElementById('items');\r\n var filters = document.querySelectorAll('.filter');\r\n var selectAllCtrl = document.getElementById('select-all');\r\n var selectedItems = document.getElementById('selected-items');\r\n var itemsCheckboxes = document.querySelectorAll(\"input[type='checkbox'][name='ruleIds']\");\r\n\r\n function displayActionsOrFilters() {\r\n // Select all checked checkboxes with name 'ruleIds'\r\n var checkedCheckboxes = document.querySelectorAll(\"input[type='checkbox'][name='ruleIds']:checked\");\r\n\r\n if (checkedCheckboxes.length > 1) {\r\n actions.classList.remove('d-none');\r\n for (let i = 0; i < filters.length; i++) {\r\n filters[i].classList.add('d-none');\r\n }\r\n selectedItems.classList.remove('d-none');\r\n items.classList.add('d-none');\r\n } else {\r\n actions.classList.add('d-none');\r\n\r\n for (let i = 0; i < filters.length; i++) {\r\n filters[i].classList.remove('d-none');\r\n }\r\n selectedItems.classList.add('d-none');\r\n items.classList.remove('d-none');\r\n }\r\n }\r\n\r\n var dropdownItems = document.querySelectorAll(\".dropdown-menu .dropdown-item\");\r\n\r\n // Add click event listeners to each dropdown item\r\n dropdownItems.forEach(function (item) {\r\n // Check if the item has a data-action attribute\r\n if (item.dataset.action) {\r\n item.addEventListener(\"click\", function () {\r\n // Get all checked checkboxes\r\n var checkedCheckboxes = document.querySelectorAll(\"input[type='checkbox'][name='ruleIds']:checked\");\r\n\r\n // Check if more than one checkbox is checked\r\n if (checkedCheckboxes.length > 1) {\r\n // Get data attributes from the clicked item\r\n var actionData = Object.assign({}, item.dataset);\r\n\r\n confirmDialog({\r\n ...actionData,\r\n callback: function (r) {\r\n if (r) {\r\n // Set the value of the BulkAction option\r\n document.querySelector(\"[name='Options.BulkAction']\").value = actionData.action;\r\n // Trigger the submit action\r\n document.querySelector(\"[name='submit.BulkAction']\").click();\r\n }\r\n }\r\n });\r\n }\r\n });\r\n }\r\n });\r\n\r\n selectAllCtrl.addEventListener(\"click\", function () {\r\n itemsCheckboxes.forEach(function (checkbox) {\r\n if (checkbox !== selectAllCtrl) {\r\n checkbox.checked = selectAllCtrl.checked; // Set the checked state of all checkboxes\r\n }\r\n });\r\n\r\n // Update the selected items text\r\n updateSelectedItemsText();\r\n displayActionsOrFilters();\r\n });\r\n\r\n // Event listener for individual checkboxes\r\n itemsCheckboxes.forEach(function (checkbox) {\r\n checkbox.addEventListener(\"click\", function () {\r\n var itemsCount = itemsCheckboxes.length;\r\n var selectedItemsCount = document.querySelectorAll(\"input[type='checkbox'][name='ruleIds']:checked\").length;\r\n\r\n // Update selectAllCtrl state\r\n selectAllCtrl.checked = selectedItemsCount === itemsCount;\r\n selectAllCtrl.indeterminate = selectedItemsCount > 0 && selectedItemsCount < itemsCount;\r\n\r\n // Update the selected items text\r\n updateSelectedItemsText();\r\n displayActionsOrFilters();\r\n });\r\n });\r\n\r\n // Function to update selected items text\r\n function updateSelectedItemsText() {\r\n var selectedCount = document.querySelectorAll(\"input[type='checkbox'][name='ruleIds']:checked\").length;\r\n selectedItems.textContent = selectedCount + ' ' + selectedLabel;\r\n }\r\n }\r\n\r\n return {\r\n initialize: initialize\r\n }\r\n}();\r\n"],"names":["urlRewritingAdmin","initialize","url","errorLabel","selectedLabel","sortingListManager","create","searchBox","document","getElementById","searchAlert","filterElements","querySelectorAll","addEventListener","e","key","preventDefault","search","target","value","toLowerCase","classList","add","i","length","remove","visibleElements","filter","text","getAttribute","indexOf","push","actions","items","filters","selectAllCtrl","selectedItems","itemsCheckboxes","displayActionsOrFilters","checkedCheckboxes","updateSelectedItemsText","selectedCount","textContent","dropdownItems","forEach","item","dataset","action","actionData","Object","assign","confirmDialog","callback","r","querySelector","click","checkbox","checked","itemsCount","selectedItemsCount","indeterminate"],"mappings":"AAAAA,kBAqKW,CACHC,WApKe,CAACC,EAAKC,EAAYC,KAGjCC,mBAAmBC,MAAM,CAAC,+BAAgCJ,EAAKC,GAE/D,IAAII,EAAYC,SAASC,cAAc,CAAC,cACpCC,EAAcF,SAASC,cAAc,CAAC,cAEpCE,EAAiBH,SAASI,gBAAgB,CAAC,uBAGjDL,EAAUM,gBAAgB,CAAC,UAAW,SAAUC,CAAC,EAC/B,UAAVA,EAAEC,GAAG,EACLD,EAAEE,cAAc,EAExB,GAEAT,EAAUM,gBAAgB,CAAC,QAASC,IAEhC,IAAIG,EAASH,EAAEI,MAAM,CAACC,KAAK,CAACC,WAAW,GAEvC,GAAIN,AAAS,UAATA,EAAEC,GAAG,EAAgBE,AAAU,IAAVA,EAAc,CACnCP,EAAYW,SAAS,CAACC,GAAG,CAAC,UAC1Bf,EAAUY,KAAK,CAAG,GAClB,IAAK,IAAII,EAAI,EAAGA,EAAIZ,EAA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,8BAA8BC,KAAK,GAElE,CACJ,EACJ,CACJ,EAER,GAEApB,EAActB,gBAAgB,CAAC,QAAS,WACpCwB,EAAgBO,OAAO,CAAC,SAAUY,CAAQ,EAClCA,IAAarB,GACbqB,CAAAA,EAASC,OAAO,CAAGtB,EAAcsB,OAAO,AAAD,CAE/C,GAGAjB,IACAF,GACJ,GAGAD,EAAgBO,OAAO,CAAC,SAAUY,CAAQ,EACtCA,EAAS3C,gBAAgB,CAAC,QAAS,WAC/B,IAAI6C,EAAarB,EAAgBb,MAAM,CACnCmC,EAAqBnD,SAASI,gBAAgB,CAAC,kDAAkDY,MAAM,AAG3GW,CAAAA,EAAcsB,OAAO,CAAGE,IAAuBD,EAC/CvB,EAAcyB,aAAa,CAAGD,EAAqB,GAAKA,EAAqBD,EAG7ElB,IACAF,GACJ,EACJ,EAOJ,CAIA"}asd \ No newline at end of file diff --git a/src/OrchardCore.Modules/OrchardCore.UrlRewriting/wwwroot/Scripts/sortable-rules.map b/src/OrchardCore.Modules/OrchardCore.UrlRewriting/wwwroot/Scripts/sortable-rules.map index 91b916a8ae9..09a897d2331 100644 --- a/src/OrchardCore.Modules/OrchardCore.UrlRewriting/wwwroot/Scripts/sortable-rules.map +++ b/src/OrchardCore.Modules/OrchardCore.UrlRewriting/wwwroot/Scripts/sortable-rules.map @@ -1 +1 @@ -{"version":3,"sources":[""],"sourcesContent":["sortingListManager = function () {\r\n\r\n const saveOrders = (evt, url, errorMessage) => {\r\n\r\n var data = {\r\n oldIndex: evt.oldIndex,\r\n newIndex: evt.newIndex\r\n };\r\n fetch(url, {\r\n method: 'POST',\r\n headers: {\r\n 'Content-Type': 'application/json'\r\n },\r\n body: JSON.stringify(data)\r\n }).catch(error => {\r\n console.log(error);\r\n alert(errorMessage || 'Unable to sort the list');\r\n });\r\n }\r\n\r\n const create = (selector, sortUrl, errorMessage) => {\r\n\r\n var sortable = document.querySelector(selector);\r\n\r\n if (!sortable) {\r\n console.log('Unable to find the sortable element. The given selector is: ' + selector);\r\n\r\n return;\r\n }\r\n\r\n if (sortUrl) {\r\n orderUrl = sortUrl;\r\n } else {\r\n orderUrl = sortable.getAttribute('data-sort-uri');\r\n }\r\n\r\n if (!orderUrl) {\r\n console.log('Unable to determine the sort post URI. Either pass it to the create function or set it as data-sort-uri to the sorting element.');\r\n\r\n return;\r\n }\r\n\r\n var sortable = Sortable.create(sortable, {\r\n handle: \".ui-sortable-handle\",\r\n animation: 150,\r\n filter: \".ignore-elements\",\r\n draggable: \".item\",\r\n onUpdate: function (evt) {\r\n saveOrders(evt, orderUrl, errorMessage);\r\n }\r\n });\r\n };\r\n\r\n return {\r\n create: create\r\n }\r\n}();\r\n"],"names":["sortingListManager","saveOrders","evt","url","errorMessage","fetch","method","headers","body","JSON","stringify","oldIndex","newIndex","catch","error","console","log","alert","create","selector","sortUrl","sortable","document","querySelector","orderUrl","getAttribute","Sortable","handle","animation","filter","draggable","onUpdate"],"mappings":"AAAAA,mBAAqB,WAEjB,IAAMC,EAAa,CAACC,EAAKC,EAAKC,KAM1BC,MAAMF,EAAK,CACPG,OAAQ,OACRC,QAAS,CACL,eAAgB,kBACpB,EACAC,KAAMC,KAAKC,SAAS,CATb,CACPC,SAAUT,EAAIS,QAAQ,CACtBC,SAAUV,EAAIU,QAAQ,AAC1B,EAOA,GAAGC,KAAK,CAACC,IACLC,QAAQC,GAAG,CAACF,GACZG,MAAMb,GAAgB,0BAC1B,EACJ,EAmCA,MAAO,CACHc,OAlCW,CAACC,EAAUC,EAAShB,KAE/B,IAAIiB,EAAWC,SAASC,aAAa,CAACJ,GAEtC,GAAI,CAACE,EAAU,CACXN,QAAQC,GAAG,CAAC,+DAAiEG,GAE7E,MACJ,CAQA,GAAI,EALAK,SADAJ,GAGWC,EAASI,YAAY,CAAC,kBAGtB,CACXV,QAAQC,GAAG,CAAC,mIAEZ,MACJ,CAEA,IAAIK,EAAWK,SAASR,MAAM,CAACG,EAAU,CACrCM,OAAQ,sBACRC,UAAW,IACXC,OAAQ,mBACRC,UAAW,QACXC,SAAU,SAAU7B,CAAG,EACnBD,EAAWC,EAAKsB,SAAUpB,EAC9B,CACJ,EACJ,CAIA,CACJ"} +{"version":3,"sources":[""],"sourcesContent":["sortingListManager = function () {\r\n\r\n const saveOrders = (evt, url, errorMessage) => {\r\n\r\n var data = {\r\n oldIndex: evt.oldIndex,\r\n newIndex: evt.newIndex\r\n };\r\n fetch(url, {\r\n method: 'POST',\r\n headers: {\r\n 'Content-Type': 'application/json'\r\n },\r\n body: JSON.stringify(data)\r\n }).catch(error => {\r\n console.log(error);\r\n alert(errorMessage || 'Unable to sort the list');\r\n });\r\n }\r\n\r\n const create = (selector, sortUrl, errorMessage) => {\r\n\r\n var sortable = document.querySelector(selector);\r\n\r\n if (!sortable) {\r\n console.log('Unable to find the sortable element. The given selector is: ' + selector);\r\n\r\n return;\r\n }\r\n\r\n if (sortUrl) {\r\n orderUrl = sortUrl;\r\n } else {\r\n orderUrl = sortable.getAttribute('data-sort-uri');\r\n }\r\n\r\n if (!orderUrl) {\r\n console.log('Unable to determine the sort post URI. Either pass it to the create function or set it as data-sort-uri to the sorting element.');\r\n\r\n return;\r\n }\r\n\r\n var sortable = Sortable.create(sortable, {\r\n handle: \".ui-sortable-handle\",\r\n animation: 150,\r\n filter: \".ignore-elements\",\r\n draggable: \".item\",\r\n onUpdate: function (evt) {\r\n saveOrders(evt, orderUrl, errorMessage);\r\n }\r\n });\r\n };\r\n\r\n return {\r\n create: create\r\n }\r\n}();\r\n"],"names":["sortingListManager","saveOrders","evt","url","errorMessage","fetch","method","headers","body","JSON","stringify","oldIndex","newIndex","catch","error","console","log","alert","create","selector","sortUrl","sortable","document","querySelector","orderUrl","getAttribute","Sortable","handle","animation","filter","draggable","onUpdate"],"mappings":"AAAAA,mBAAqB,WAEjB,IAAMC,EAAa,CAACC,EAAKC,EAAKC,KAM1BC,MAAMF,EAAK,CACPG,OAAQ,OACRC,QAAS,CACL,eAAgB,kBACpB,EACAC,KAAMC,KAAKC,SAAS,CATb,CACPC,SAAUT,EAAIS,QAAQ,CACtBC,SAAUV,EAAIU,QAAQ,AAC1B,EAOA,GAAGC,KAAK,CAACC,IACLC,QAAQC,GAAG,CAACF,GACZG,MAAMb,GAAgB,0BAC1B,EACJ,EAmCA,MAAO,CACHc,OAlCW,CAACC,EAAUC,EAAShB,KAE/B,IAAIiB,EAAWC,SAASC,aAAa,CAACJ,GAEtC,GAAI,CAACE,EAAU,CACXN,QAAQC,GAAG,CAAC,+DAAiEG,GAE7E,MACJ,CAQA,GAAI,EALAK,SADAJ,GAGWC,EAASI,YAAY,CAAC,kBAGtB,CACXV,QAAQC,GAAG,CAAC,mIAEZ,MACJ,CAEA,IAAIK,EAAWK,SAASR,MAAM,CAACG,EAAU,CACrCM,OAAQ,sBACRC,UAAW,IACXC,OAAQ,mBACRC,UAAW,QACXC,SAAU,SAAU7B,CAAG,EACnBD,EAAWC,EAAKsB,SAAUpB,EAC9B,CACJ,EACJ,CAIA,CACJ"}asd \ No newline at end of file diff --git a/src/OrchardCore.Modules/OrchardCore.Users/wwwroot/Scripts/password-generator.map b/src/OrchardCore.Modules/OrchardCore.Users/wwwroot/Scripts/password-generator.map index da768559142..989f71bdeb5 100644 --- a/src/OrchardCore.Modules/OrchardCore.Users/wwwroot/Scripts/password-generator.map +++ b/src/OrchardCore.Modules/OrchardCore.Users/wwwroot/Scripts/password-generator.map @@ -1 +1 @@ -{"version":3,"sources":[""],"sourcesContent":["passwordManager = function () {\r\n const allowed = {\r\n uppers: 'ABCDEFGHIJKLMNOPQRSTUVWXYZ',\r\n lowers: 'abcdefghijklmnopqrstuvwxyz',\r\n digits: '0123456789',\r\n symbols: '!#$%&\\()*+,-./:;<=>\\'?@@[\\]^_`{|}~'\r\n };\r\n\r\n const getRandomChar = (str) => str.charAt(Math.floor(Math.random() * str.length));\r\n\r\n const shuffle = (str) => str.sort(function () { return 0.5 - Math.random() });\r\n\r\n const meetUniqueRule = (str, requiredUniqueChars) => {\r\n let uniqueCharacters = str.filter((item, i, ar) => ar.indexOf(item) === i);\r\n\r\n return uniqueCharacters.length >= requiredUniqueChars;\r\n };\r\n\r\n const copyPassword = (str) => navigator.clipboard.writeText(str);\r\n\r\n const generatePassword = (requiredPasswordLength, requireUppercase, requireLowercase, requireDigit, requireNonAlphanumeric, requiredUniqueChars) => {\r\n let password = [];\r\n requiredUniqueChars = requiredUniqueChars | 1;\r\n\r\n if (requireUppercase) {\r\n // At least one uppercase\r\n password.push(getRandomChar(allowed.uppers));\r\n }\r\n if (requireLowercase) {\r\n // At least one lowercase\r\n password.push(getRandomChar(allowed.lowers));\r\n }\r\n if (requireDigit) {\r\n // At least one digit\r\n password.push(getRandomChar(allowed.digits));\r\n }\r\n\r\n if (requireNonAlphanumeric) {\r\n // At least one special character\r\n password.push(getRandomChar(allowed.symbols));\r\n }\r\n\r\n let passwordLength = password.length;\r\n if (passwordLength < requiredPasswordLength) {\r\n // At this point we need lengthier password.Fill the rest of the password with random characters\r\n let combineAllowed = shuffle(Object.values(allowed)).join('');\r\n for (let i = passwordLength; i < requiredPasswordLength; i++) {\r\n password.push(getRandomChar(combineAllowed));\r\n }\r\n }\r\n\r\n if (requiredUniqueChars > 1 && !meetUniqueRule(password, requiredUniqueChars)) {\r\n // The generated password does not meet the required-unique-chars requirment, create another one\r\n return generatePassword(requiredPasswordLength, requireUppercase, requireLowercase, requireDigit, requireNonAlphanumeric, requiredUniqueChars);\r\n }\r\n\r\n return shuffle(password).join('');\r\n }\r\n\r\n return {\r\n generatePassword: generatePassword,\r\n copyPassword: copyPassword\r\n };\r\n}();\r\n"],"names":["passwordManager","allowed","uppers","lowers","digits","symbols","getRandomChar","str","charAt","Math","floor","random","length","shuffle","sort","meetUniqueRule","requiredUniqueChars","uniqueCharacters","filter","item","i","ar","indexOf","generatePassword","requiredPasswordLength","requireUppercase","requireLowercase","requireDigit","requireNonAlphanumeric","password","push","passwordLength","combineAllowed","Object","values","join","copyPassword","navigator","clipboard","writeText"],"mappings":"AAAAA,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{"version":3,"sources":[""],"sourcesContent":["passwordManager = function () {\r\n const allowed = {\r\n uppers: 'ABCDEFGHIJKLMNOPQRSTUVWXYZ',\r\n lowers: 'abcdefghijklmnopqrstuvwxyz',\r\n digits: '0123456789',\r\n symbols: '!#$%&\\()*+,-./:;<=>\\'?@@[\\]^_`{|}~'\r\n };\r\n\r\n const getRandomChar = (str) => str.charAt(Math.floor(Math.random() * str.length));\r\n\r\n const shuffle = (str) => str.sort(function () { return 0.5 - Math.random() });\r\n\r\n const meetUniqueRule = (str, requiredUniqueChars) => {\r\n let uniqueCharacters = str.filter((item, i, ar) => ar.indexOf(item) === i);\r\n\r\n return uniqueCharacters.length >= requiredUniqueChars;\r\n };\r\n\r\n const copyPassword = (str) => navigator.clipboard.writeText(str);\r\n\r\n const generatePassword = (requiredPasswordLength, requireUppercase, requireLowercase, requireDigit, requireNonAlphanumeric, requiredUniqueChars) => {\r\n let password = [];\r\n requiredUniqueChars = requiredUniqueChars | 1;\r\n\r\n if (requireUppercase) {\r\n // At least one uppercase\r\n password.push(getRandomChar(allowed.uppers));\r\n }\r\n if (requireLowercase) {\r\n // At least one lowercase\r\n password.push(getRandomChar(allowed.lowers));\r\n }\r\n if (requireDigit) {\r\n // At least one digit\r\n password.push(getRandomChar(allowed.digits));\r\n }\r\n\r\n if (requireNonAlphanumeric) {\r\n // At least one special character\r\n password.push(getRandomChar(allowed.symbols));\r\n }\r\n\r\n let passwordLength = password.length;\r\n if (passwordLength < requiredPasswordLength) {\r\n // At this point we need lengthier password.Fill the rest of the password with random characters\r\n let combineAllowed = shuffle(Object.values(allowed)).join('');\r\n for (let i = passwordLength; i < requiredPasswordLength; i++) {\r\n password.push(getRandomChar(combineAllowed));\r\n }\r\n }\r\n\r\n if (requiredUniqueChars > 1 && !meetUniqueRule(password, requiredUniqueChars)) {\r\n // The generated password does not meet the required-unique-chars requirment, create another one\r\n return generatePassword(requiredPasswordLength, requireUppercase, requireLowercase, requireDigit, requireNonAlphanumeric, requiredUniqueChars);\r\n }\r\n\r\n return shuffle(password).join('');\r\n }\r\n\r\n return {\r\n generatePassword: generatePassword,\r\n copyPassword: copyPassword\r\n };\r\n}();\r\n"],"names":["passwordManager","allowed","uppers","lowers","digits","symbols","getRandomChar","str","charAt","Math","floor","random","length","shuffle","sort","meetUniqueRule","requiredUniqueChars","uniqueCharacters","filter","item","i","ar","indexOf","generatePassword","requiredPasswordLength","requireUppercase","requireLowercase","requireDigit","requireNonAlphanumeric","password","push","passwordLength","combineAllowed","Object","values","join","copyPassword","navigator","clipboard","writeText"],"mappings":"AAAAA,gBAAkB,WACd,IAAMC,EAAU,CACZC,OAAQ,6BACRC,OAAQ,6BACRC,OAAQ,aACRC,QAAS,iCACb,EAEMC,EAAgB,AAACC,GAAQA,EAAIC,MAAM,CAACC,KAAKC,KAAK,CAACD,KAAKE,MAAM,GAAKJ,EAAIK,MAAM,GAEzEC,EAAU,AAACN,GAAQA,EAAIO,IAAI,CAAC,WAAc,OAAO,GAAML,KAAKE,MAAM,EAAG,GAErEI,EAAiB,CAACR,EAAKS,IAGlBC,AAFgBV,EAAIW,MAAM,CAAC,CAACC,EAAMC,EAAGC,IAAOA,EAAGC,OAAO,CAACH,KAAUC,GAEhDR,MAAM,EAAII,EAKhCO,EAAmB,CAACC,EAAwBC,EAAkBC,EAAkBC,EAAcC,EAAwBZ,KACxH,IAAIa,EAAW,EAAE,CACjBb,GAA4C,EAExCS,GAEAI,EAASC,IAAI,CAACxB,EAAcL,EAAQC,MAAM,GAE1CwB,GAEAG,EAASC,IAAI,CAACxB,EAAcL,EAAQE,MAAM,GAE1CwB,GAEAE,EAASC,IAAI,CAACxB,EAAcL,EAAQG,MAAM,GAG1CwB,GAEAC,EAASC,IAAI,CAACxB,EAAcL,EAAQI,OAAO,GAG/C,IAAI0B,EAAiBF,EAASjB,MAAM,CACpC,GAAImB,EAAiBP,EAAwB,CAEzC,IAAIQ,EAAiBnB,EAAQoB,OAAOC,MAAM,CAACjC,IAAUkC,IAAI,CAAC,IAC1D,IAAK,IAAIf,EAAIW,EAAgBX,EAAII,EAAwBJ,IACrDS,EAASC,IAAI,CAACxB,EAAc0B,GAEpC,QAEA,AAAIhB,EAAsB,GAAK,CAACD,EAAec,EAAUb,GAE9CO,EAAiBC,EAAwBC,EAAkBC,EAAkBC,EAAcC,EAAwBZ,GAGvHH,EAAQgB,GAAUM,IAAI,CAAC,GAClC,EAEA,MAAO,CACHZ,iBAAkBA,EAClBa,aA3CiB,AAAC7B,GAAQ8B,UAAUC,SAAS,CAACC,SAAS,CAAChC,EA4C5D,CACJ"}asd \ No newline at end of file diff --git a/src/OrchardCore.Modules/OrchardCore.Users/wwwroot/Scripts/qrcode.map b/src/OrchardCore.Modules/OrchardCore.Users/wwwroot/Scripts/qrcode.map index e956dfa860b..7805ae4eecd 100644 --- a/src/OrchardCore.Modules/OrchardCore.Users/wwwroot/Scripts/qrcode.map +++ b/src/OrchardCore.Modules/OrchardCore.Users/wwwroot/Scripts/qrcode.map @@ -1 +1 @@ -{"version":3,"sources":[""],"sourcesContent":["/**\r\n * @fileoverview\r\n * - Using the 'QRCode for Javascript library'\r\n * - Fixed dataset of 'QRCode for Javascript library' for support full-spec.\r\n * - this library has no dependencies.\r\n * \r\n * @author davidshimjs\r\n * @see http://www.d-project.com/\r\n * @see http://jeromeetienne.github.com/jquery-qrcode/\r\n */\r\nvar QRCode;\r\n\r\n(function () {\r\n\t//---------------------------------------------------------------------\r\n\t// QRCode for JavaScript\r\n\t//\r\n\t// Copyright (c) 2009 Kazuhiko Arase\r\n\t//\r\n\t// URL: http://www.d-project.com/\r\n\t//\r\n\t// Licensed under the MIT license:\r\n\t// http://www.opensource.org/licenses/mit-license.php\r\n\t//\r\n\t// The word \"QR Code\" is registered trademark of \r\n\t// DENSO WAVE INCORPORATED\r\n\t// http://www.denso-wave.com/qrcode/faqpatent-e.html\r\n\t//\r\n\t//---------------------------------------------------------------------\r\n\tfunction QR8bitByte(data) {\r\n\t\tthis.mode = QRMode.MODE_8BIT_BYTE;\r\n\t\tthis.data = data;\r\n\t\tthis.parsedData = [];\r\n\r\n\t\t// Added to support UTF-8 Characters\r\n\t\tfor (var i = 0, l = this.data.length; i < l; i++) {\r\n\t\t\tvar byteArray = [];\r\n\t\t\tvar code = this.data.charCodeAt(i);\r\n\r\n\t\t\tif (code > 0x10000) {\r\n\t\t\t\tbyteArray[0] = 0xF0 | ((code & 0x1C0000) >>> 18);\r\n\t\t\t\tbyteArray[1] = 0x80 | ((code & 0x3F000) >>> 12);\r\n\t\t\t\tbyteArray[2] = 0x80 | ((code & 0xFC0) >>> 6);\r\n\t\t\t\tbyteArray[3] = 0x80 | (code & 0x3F);\r\n\t\t\t} else if (code > 0x800) {\r\n\t\t\t\tbyteArray[0] = 0xE0 | ((code & 0xF000) >>> 12);\r\n\t\t\t\tbyteArray[1] = 0x80 | ((code & 0xFC0) >>> 6);\r\n\t\t\t\tbyteArray[2] = 0x80 | (code & 0x3F);\r\n\t\t\t} else if (code > 0x80) {\r\n\t\t\t\tbyteArray[0] = 0xC0 | ((code & 0x7C0) >>> 6);\r\n\t\t\t\tbyteArray[1] = 0x80 | (code & 0x3F);\r\n\t\t\t} else {\r\n\t\t\t\tbyteArray[0] = code;\r\n\t\t\t}\r\n\r\n\t\t\tthis.parsedData.push(byteArray);\r\n\t\t}\r\n\r\n\t\tthis.parsedData = Array.prototype.concat.apply([], this.parsedData);\r\n\r\n\t\tif (this.parsedData.length != this.data.length) {\r\n\t\t\tthis.parsedData.unshift(191);\r\n\t\t\tthis.parsedData.unshift(187);\r\n\t\t\tthis.parsedData.unshift(239);\r\n\t\t}\r\n\t}\r\n\r\n\tQR8bitByte.prototype = {\r\n\t\tgetLength: function (buffer) {\r\n\t\t\treturn this.parsedData.length;\r\n\t\t},\r\n\t\twrite: function (buffer) {\r\n\t\t\tfor (var i = 0, l = this.parsedData.length; i < l; i++) {\r\n\t\t\t\tbuffer.put(this.parsedData[i], 8);\r\n\t\t\t}\r\n\t\t}\r\n\t};\r\n\r\n\tfunction QRCodeModel(typeNumber, errorCorrectLevel) {\r\n\t\tthis.typeNumber = typeNumber;\r\n\t\tthis.errorCorrectLevel = errorCorrectLevel;\r\n\t\tthis.modules = null;\r\n\t\tthis.moduleCount = 0;\r\n\t\tthis.dataCache = null;\r\n\t\tthis.dataList = [];\r\n\t}\r\n\r\n\tQRCodeModel.prototype={addData:function(data){var newData=new QR8bitByte(data);this.dataList.push(newData);this.dataCache=null;},isDark:function(row,col){if(row<0||this.moduleCount<=row||col<0||this.moduleCount<=col){throw new Error(row+\",\"+col);}\r\n\treturn this.modules[row][col];},getModuleCount:function(){return this.moduleCount;},make:function(){this.makeImpl(false,this.getBestMaskPattern());},makeImpl:function(test,maskPattern){this.moduleCount=this.typeNumber*4+17;this.modules=new Array(this.moduleCount);for(var row=0;row=7){this.setupTypeNumber(test);}\r\n\tif(this.dataCache==null){this.dataCache=QRCodeModel.createData(this.typeNumber,this.errorCorrectLevel,this.dataList);}\r\n\tthis.mapData(this.dataCache,maskPattern);},setupPositionProbePattern:function(row,col){for(var r=-1;r<=7;r++){if(row+r<=-1||this.moduleCount<=row+r)continue;for(var c=-1;c<=7;c++){if(col+c<=-1||this.moduleCount<=col+c)continue;if((0<=r&&r<=6&&(c==0||c==6))||(0<=c&&c<=6&&(r==0||r==6))||(2<=r&&r<=4&&2<=c&&c<=4)){this.modules[row+r][col+c]=true;}else{this.modules[row+r][col+c]=false;}}}},getBestMaskPattern:function(){var minLostPoint=0;var pattern=0;for(var i=0;i<8;i++){this.makeImpl(true,i);var lostPoint=QRUtil.getLostPoint(this);if(i==0||minLostPoint>lostPoint){minLostPoint=lostPoint;pattern=i;}}\r\n\treturn pattern;},createMovieClip:function(target_mc,instance_name,depth){var qr_mc=target_mc.createEmptyMovieClip(instance_name,depth);var cs=1;this.make();for(var row=0;row>i)&1)==1);this.modules[Math.floor(i/3)][i%3+this.moduleCount-8-3]=mod;}\r\n\tfor(var i=0;i<18;i++){var mod=(!test&&((bits>>i)&1)==1);this.modules[i%3+this.moduleCount-8-3][Math.floor(i/3)]=mod;}},setupTypeInfo:function(test,maskPattern){var data=(this.errorCorrectLevel<<3)|maskPattern;var bits=QRUtil.getBCHTypeInfo(data);for(var i=0;i<15;i++){var mod=(!test&&((bits>>i)&1)==1);if(i<6){this.modules[i][8]=mod;}else if(i<8){this.modules[i+1][8]=mod;}else{this.modules[this.moduleCount-15+i][8]=mod;}}\r\n\tfor(var i=0;i<15;i++){var mod=(!test&&((bits>>i)&1)==1);if(i<8){this.modules[8][this.moduleCount-i-1]=mod;}else if(i<9){this.modules[8][15-i-1+1]=mod;}else{this.modules[8][15-i-1]=mod;}}\r\n\tthis.modules[this.moduleCount-8][8]=(!test);},mapData:function(data,maskPattern){var inc=-1;var row=this.moduleCount-1;var bitIndex=7;var byteIndex=0;for(var col=this.moduleCount-1;col>0;col-=2){if(col==6)col--;while(true){for(var c=0;c<2;c++){if(this.modules[row][col-c]==null){var dark=false;if(byteIndex>>bitIndex)&1)==1);}\r\n\tvar mask=QRUtil.getMask(maskPattern,row,col-c);if(mask){dark=!dark;}\r\n\tthis.modules[row][col-c]=dark;bitIndex--;if(bitIndex==-1){byteIndex++;bitIndex=7;}}}\r\n\trow+=inc;if(row<0||this.moduleCount<=row){row-=inc;inc=-inc;break;}}}}};QRCodeModel.PAD0=0xEC;QRCodeModel.PAD1=0x11;QRCodeModel.createData=function(typeNumber,errorCorrectLevel,dataList){var rsBlocks=QRRSBlock.getRSBlocks(typeNumber,errorCorrectLevel);var buffer=new QRBitBuffer();for(var i=0;itotalDataCount*8){throw new Error(\"code length overflow. (\"\r\n\t+buffer.getLengthInBits()\r\n\t+\">\"\r\n\t+totalDataCount*8\r\n\t+\")\");}\r\n\tif(buffer.getLengthInBits()+4<=totalDataCount*8){buffer.put(0,4);}\r\n\twhile(buffer.getLengthInBits()%8!=0){buffer.putBit(false);}\r\n\twhile(true){if(buffer.getLengthInBits()>=totalDataCount*8){break;}\r\n\tbuffer.put(QRCodeModel.PAD0,8);if(buffer.getLengthInBits()>=totalDataCount*8){break;}\r\n\tbuffer.put(QRCodeModel.PAD1,8);}\r\n\treturn QRCodeModel.createBytes(buffer,rsBlocks);};QRCodeModel.createBytes=function(buffer,rsBlocks){var offset=0;var maxDcCount=0;var maxEcCount=0;var dcdata=new Array(rsBlocks.length);var ecdata=new Array(rsBlocks.length);for(var r=0;r=0)?modPoly.get(modIndex):0;}}\r\n\tvar totalCodeCount=0;for(var i=0;i=0){d^=(QRUtil.G15<<(QRUtil.getBCHDigit(d)-QRUtil.getBCHDigit(QRUtil.G15)));}\r\n\treturn((data<<10)|d)^QRUtil.G15_MASK;},getBCHTypeNumber:function(data){var d=data<<12;while(QRUtil.getBCHDigit(d)-QRUtil.getBCHDigit(QRUtil.G18)>=0){d^=(QRUtil.G18<<(QRUtil.getBCHDigit(d)-QRUtil.getBCHDigit(QRUtil.G18)));}\r\n\treturn(data<<12)|d;},getBCHDigit:function(data){var digit=0;while(data!=0){digit++;data>>>=1;}\r\n\treturn digit;},getPatternPosition:function(typeNumber){return QRUtil.PATTERN_POSITION_TABLE[typeNumber-1];},getMask:function(maskPattern,i,j){switch(maskPattern){case QRMaskPattern.PATTERN000:return(i+j)%2==0;case QRMaskPattern.PATTERN001:return i%2==0;case QRMaskPattern.PATTERN010:return j%3==0;case QRMaskPattern.PATTERN011:return(i+j)%3==0;case QRMaskPattern.PATTERN100:return(Math.floor(i/2)+Math.floor(j/3))%2==0;case QRMaskPattern.PATTERN101:return(i*j)%2+(i*j)%3==0;case QRMaskPattern.PATTERN110:return((i*j)%2+(i*j)%3)%2==0;case QRMaskPattern.PATTERN111:return((i*j)%3+(i+j)%2)%2==0;default:throw new Error(\"bad maskPattern:\"+maskPattern);}},getErrorCorrectPolynomial:function(errorCorrectLength){var a=new QRPolynomial([1],0);for(var i=0;i5){lostPoint+=(3+sameCount-5);}}}\r\n\tfor(var row=0;row=256){n-=255;}\r\n\treturn QRMath.EXP_TABLE[n];},EXP_TABLE:new Array(256),LOG_TABLE:new Array(256)};for(var i=0;i<8;i++){QRMath.EXP_TABLE[i]=1<>>(7-index%8))&1)==1;},put:function(num,length){for(var i=0;i>>(length-i-1))&1)==1);}},getLengthInBits:function(){return this.length;},putBit:function(bit){var bufIndex=Math.floor(this.length/8);if(this.buffer.length<=bufIndex){this.buffer.push(0);}\r\n\tif(bit){this.buffer[bufIndex]|=(0x80>>>(this.length%8));}\r\n\tthis.length++;}};var QRCodeLimitLength=[[17,14,11,7],[32,26,20,14],[53,42,32,24],[78,62,46,34],[106,84,60,44],[134,106,74,58],[154,122,86,64],[192,152,108,84],[230,180,130,98],[271,213,151,119],[321,251,177,137],[367,287,203,155],[425,331,241,177],[458,362,258,194],[520,412,292,220],[586,450,322,250],[644,504,364,280],[718,560,394,310],[792,624,442,338],[858,666,482,382],[929,711,509,403],[1003,779,565,439],[1091,857,611,461],[1171,911,661,511],[1273,997,715,535],[1367,1059,751,593],[1465,1125,805,625],[1528,1190,868,658],[1628,1264,908,698],[1732,1370,982,742],[1840,1452,1030,790],[1952,1538,1112,842],[2068,1628,1168,898],[2188,1722,1228,958],[2303,1809,1283,983],[2431,1911,1351,1051],[2563,1989,1423,1093],[2699,2099,1499,1139],[2809,2213,1579,1219],[2953,2331,1663,1273]];\r\n\t\r\n\tfunction _isSupportCanvas() {\r\n\t\treturn typeof CanvasRenderingContext2D != \"undefined\";\r\n\t}\r\n\t\r\n\t// android 2.x doesn't support Data-URI spec\r\n\tfunction _getAndroid() {\r\n\t\tvar android = false;\r\n\t\tvar sAgent = navigator.userAgent;\r\n\t\t\r\n\t\tif (/android/i.test(sAgent)) { // android\r\n\t\t\tandroid = true;\r\n\t\t\tvar aMat = sAgent.toString().match(/android ([0-9]\\.[0-9])/i);\r\n\t\t\t\r\n\t\t\tif (aMat && aMat[1]) {\r\n\t\t\t\tandroid = parseFloat(aMat[1]);\r\n\t\t\t}\r\n\t\t}\r\n\t\t\r\n\t\treturn android;\r\n\t}\r\n\t\r\n\tvar svgDrawer = (function() {\r\n\r\n\t\tvar Drawing = function (el, htOption) {\r\n\t\t\tthis._el = el;\r\n\t\t\tthis._htOption = htOption;\r\n\t\t};\r\n\r\n\t\tDrawing.prototype.draw = function (oQRCode) {\r\n\t\t\tvar _htOption = this._htOption;\r\n\t\t\tvar _el = this._el;\r\n\t\t\tvar nCount = oQRCode.getModuleCount();\r\n\t\t\tvar nWidth = Math.floor(_htOption.width / nCount);\r\n\t\t\tvar nHeight = Math.floor(_htOption.height / nCount);\r\n\r\n\t\t\tthis.clear();\r\n\r\n\t\t\tfunction makeSVG(tag, attrs) {\r\n\t\t\t\tvar el = document.createElementNS('http://www.w3.org/2000/svg', tag);\r\n\t\t\t\tfor (var k in attrs)\r\n\t\t\t\t\tif (attrs.hasOwnProperty(k)) el.setAttribute(k, attrs[k]);\r\n\t\t\t\treturn el;\r\n\t\t\t}\r\n\r\n\t\t\tvar svg = makeSVG(\"svg\" , {'viewBox': '0 0 ' + String(nCount) + \" \" + String(nCount), 'width': '100%', 'height': '100%', 'fill': _htOption.colorLight});\r\n\t\t\tsvg.setAttributeNS(\"http://www.w3.org/2000/xmlns/\", \"xmlns:xlink\", \"http://www.w3.org/1999/xlink\");\r\n\t\t\t_el.appendChild(svg);\r\n\r\n\t\t\tsvg.appendChild(makeSVG(\"rect\", {\"fill\": _htOption.colorLight, \"width\": \"100%\", \"height\": \"100%\"}));\r\n\t\t\tsvg.appendChild(makeSVG(\"rect\", {\"fill\": _htOption.colorDark, \"width\": \"1\", \"height\": \"1\", \"id\": \"template\"}));\r\n\r\n\t\t\tfor (var row = 0; row < nCount; row++) {\r\n\t\t\t\tfor (var col = 0; col < nCount; col++) {\r\n\t\t\t\t\tif (oQRCode.isDark(row, col)) {\r\n\t\t\t\t\t\tvar child = makeSVG(\"use\", {\"x\": String(row), \"y\": String(col)});\r\n\t\t\t\t\t\tchild.setAttributeNS(\"http://www.w3.org/1999/xlink\", \"href\", \"#template\")\r\n\t\t\t\t\t\tsvg.appendChild(child);\r\n\t\t\t\t\t}\r\n\t\t\t\t}\r\n\t\t\t}\r\n\t\t};\r\n\t\tDrawing.prototype.clear = function () {\r\n\t\t\twhile (this._el.hasChildNodes())\r\n\t\t\t\tthis._el.removeChild(this._el.lastChild);\r\n\t\t};\r\n\t\treturn Drawing;\r\n\t})();\r\n\r\n\tvar useSVG = document.documentElement.tagName.toLowerCase() === \"svg\";\r\n\r\n\t// Drawing in DOM by using Table tag\r\n\tvar Drawing = useSVG ? svgDrawer : !_isSupportCanvas() ? (function () {\r\n\t\tvar Drawing = function (el, htOption) {\r\n\t\t\tthis._el = el;\r\n\t\t\tthis._htOption = htOption;\r\n\t\t};\r\n\t\t\t\r\n\t\t/**\r\n\t\t * Draw the QRCode\r\n\t\t * \r\n\t\t * @param {QRCode} oQRCode\r\n\t\t */\r\n\t\tDrawing.prototype.draw = function (oQRCode) {\r\n var _htOption = this._htOption;\r\n var _el = this._el;\r\n\t\t\tvar nCount = oQRCode.getModuleCount();\r\n\t\t\tvar nWidth = Math.floor(_htOption.width / nCount);\r\n\t\t\tvar nHeight = Math.floor(_htOption.height / nCount);\r\n\t\t\tvar aHTML = [''];\r\n\t\t\t\r\n\t\t\tfor (var row = 0; row < nCount; row++) {\r\n\t\t\t\taHTML.push('');\r\n\t\t\t\t\r\n\t\t\t\tfor (var col = 0; col < nCount; col++) {\r\n\t\t\t\t\taHTML.push('');\r\n\t\t\t\t}\r\n\t\t\t\t\r\n\t\t\t\taHTML.push('');\r\n\t\t\t}\r\n\t\t\t\r\n\t\t\taHTML.push('
');\r\n\t\t\t_el.innerHTML = aHTML.join('');\r\n\t\t\t\r\n\t\t\t// Fix the margin values as real size.\r\n\t\t\tvar elTable = _el.childNodes[0];\r\n\t\t\tvar nLeftMarginTable = (_htOption.width - elTable.offsetWidth) / 2;\r\n\t\t\tvar nTopMarginTable = (_htOption.height - elTable.offsetHeight) / 2;\r\n\t\t\t\r\n\t\t\tif (nLeftMarginTable > 0 && nTopMarginTable > 0) {\r\n\t\t\t\telTable.style.margin = nTopMarginTable + \"px \" + nLeftMarginTable + \"px\";\t\r\n\t\t\t}\r\n\t\t};\r\n\t\t\r\n\t\t/**\r\n\t\t * Clear the QRCode\r\n\t\t */\r\n\t\tDrawing.prototype.clear = function () {\r\n\t\t\tthis._el.innerHTML = '';\r\n\t\t};\r\n\t\t\r\n\t\treturn Drawing;\r\n\t})() : (function () { // Drawing in Canvas\r\n\t\tfunction _onMakeImage() {\r\n\t\t\tthis._elImage.src = this._elCanvas.toDataURL(\"image/png\");\r\n\t\t\tthis._elImage.style.display = \"block\";\r\n\t\t\tthis._elCanvas.style.display = \"none\";\t\t\t\r\n\t\t}\r\n\t\t\r\n\t\t// Android 2.1 bug workaround\r\n\t\t// http://code.google.com/p/android/issues/detail?id=5141\r\n\t\tif (this._android && this._android <= 2.1) {\r\n\t \tvar factor = 1 / window.devicePixelRatio;\r\n\t var drawImage = CanvasRenderingContext2D.prototype.drawImage; \r\n\t \tCanvasRenderingContext2D.prototype.drawImage = function (image, sx, sy, sw, sh, dx, dy, dw, dh) {\r\n\t \t\tif ((\"nodeName\" in image) && /img/i.test(image.nodeName)) {\r\n\t\t \tfor (var i = arguments.length - 1; i >= 1; i--) {\r\n\t\t \targuments[i] = arguments[i] * factor;\r\n\t\t \t}\r\n\t \t\t} else if (typeof dw == \"undefined\") {\r\n\t \t\t\targuments[1] *= factor;\r\n\t \t\t\targuments[2] *= factor;\r\n\t \t\t\targuments[3] *= factor;\r\n\t \t\t\targuments[4] *= factor;\r\n\t \t\t}\r\n\t \t\t\r\n\t \tdrawImage.apply(this, arguments); \r\n\t \t};\r\n\t\t}\r\n\t\t\r\n\t\t/**\r\n\t\t * Check whether the user's browser supports Data URI or not\r\n\t\t * \r\n\t\t * @private\r\n\t\t * @param {Function} fSuccess Occurs if it supports Data URI\r\n\t\t * @param {Function} fFail Occurs if it doesn't support Data URI\r\n\t\t */\r\n\t\tfunction _safeSetDataURI(fSuccess, fFail) {\r\n var self = this;\r\n self._fFail = fFail;\r\n self._fSuccess = fSuccess;\r\n\r\n // Check it just once\r\n if (self._bSupportDataURI === null) {\r\n var el = document.createElement(\"img\");\r\n var fOnError = function() {\r\n self._bSupportDataURI = false;\r\n\r\n if (self._fFail) {\r\n self._fFail.call(self);\r\n }\r\n };\r\n var fOnSuccess = function() {\r\n self._bSupportDataURI = true;\r\n\r\n if (self._fSuccess) {\r\n self._fSuccess.call(self);\r\n }\r\n };\r\n\r\n el.onabort = fOnError;\r\n el.onerror = fOnError;\r\n el.onload = fOnSuccess;\r\n el.src = \"data:image/gif;base64,iVBORw0KGgoAAAANSUhEUgAAAAUAAAAFCAYAAACNbyblAAAAHElEQVQI12P4//8/w38GIAXDIBKE0DHxgljNBAAO9TXL0Y4OHwAAAABJRU5ErkJggg==\"; // the Image contains 1px data.\r\n return;\r\n } else if (self._bSupportDataURI === true && self._fSuccess) {\r\n self._fSuccess.call(self);\r\n } else if (self._bSupportDataURI === false && self._fFail) {\r\n self._fFail.call(self);\r\n }\r\n\t\t};\r\n\t\t\r\n\t\t/**\r\n\t\t * Drawing QRCode by using canvas\r\n\t\t * \r\n\t\t * @constructor\r\n\t\t * @param {HTMLElement} el\r\n\t\t * @param {Object} htOption QRCode Options \r\n\t\t */\r\n\t\tvar Drawing = function (el, htOption) {\r\n \t\tthis._bIsPainted = false;\r\n \t\tthis._android = _getAndroid();\r\n\t\t\r\n\t\t\tthis._htOption = htOption;\r\n\t\t\tthis._elCanvas = document.createElement(\"canvas\");\r\n\t\t\tthis._elCanvas.width = htOption.width;\r\n\t\t\tthis._elCanvas.height = htOption.height;\r\n\t\t\tel.appendChild(this._elCanvas);\r\n\t\t\tthis._el = el;\r\n\t\t\tthis._oContext = this._elCanvas.getContext(\"2d\");\r\n\t\t\tthis._bIsPainted = false;\r\n\t\t\tthis._elImage = document.createElement(\"img\");\r\n\t\t\tthis._elImage.alt = \"Scan me!\";\r\n\t\t\tthis._elImage.style.display = \"none\";\r\n\t\t\tthis._el.appendChild(this._elImage);\r\n\t\t\tthis._bSupportDataURI = null;\r\n\t\t};\r\n\t\t\t\r\n\t\t/**\r\n\t\t * Draw the QRCode\r\n\t\t * \r\n\t\t * @param {QRCode} oQRCode \r\n\t\t */\r\n\t\tDrawing.prototype.draw = function (oQRCode) {\r\n var _elImage = this._elImage;\r\n var _oContext = this._oContext;\r\n var _htOption = this._htOption;\r\n \r\n\t\t\tvar nCount = oQRCode.getModuleCount();\r\n\t\t\tvar nWidth = _htOption.width / nCount;\r\n\t\t\tvar nHeight = _htOption.height / nCount;\r\n\t\t\tvar nRoundedWidth = Math.round(nWidth);\r\n\t\t\tvar nRoundedHeight = Math.round(nHeight);\r\n\r\n\t\t\t_elImage.style.display = \"none\";\r\n\t\t\tthis.clear();\r\n\t\t\t\r\n\t\t\tfor (var row = 0; row < nCount; row++) {\r\n\t\t\t\tfor (var col = 0; col < nCount; col++) {\r\n\t\t\t\t\tvar bIsDark = oQRCode.isDark(row, col);\r\n\t\t\t\t\tvar nLeft = col * nWidth;\r\n\t\t\t\t\tvar nTop = row * nHeight;\r\n\t\t\t\t\t_oContext.strokeStyle = bIsDark ? _htOption.colorDark : _htOption.colorLight;\r\n\t\t\t\t\t_oContext.lineWidth = 1;\r\n\t\t\t\t\t_oContext.fillStyle = bIsDark ? _htOption.colorDark : _htOption.colorLight;\t\t\t\t\t\r\n\t\t\t\t\t_oContext.fillRect(nLeft, nTop, nWidth, nHeight);\r\n\t\t\t\t\t\r\n\t\t\t\t\t// 안티 앨리어싱 방지 처리\r\n\t\t\t\t\t_oContext.strokeRect(\r\n\t\t\t\t\t\tMath.floor(nLeft) + 0.5,\r\n\t\t\t\t\t\tMath.floor(nTop) + 0.5,\r\n\t\t\t\t\t\tnRoundedWidth,\r\n\t\t\t\t\t\tnRoundedHeight\r\n\t\t\t\t\t);\r\n\t\t\t\t\t\r\n\t\t\t\t\t_oContext.strokeRect(\r\n\t\t\t\t\t\tMath.ceil(nLeft) - 0.5,\r\n\t\t\t\t\t\tMath.ceil(nTop) - 0.5,\r\n\t\t\t\t\t\tnRoundedWidth,\r\n\t\t\t\t\t\tnRoundedHeight\r\n\t\t\t\t\t);\r\n\t\t\t\t}\r\n\t\t\t}\r\n\t\t\t\r\n\t\t\tthis._bIsPainted = true;\r\n\t\t};\r\n\t\t\t\r\n\t\t/**\r\n\t\t * Make the image from Canvas if the browser supports Data URI.\r\n\t\t */\r\n\t\tDrawing.prototype.makeImage = function () {\r\n\t\t\tif (this._bIsPainted) {\r\n\t\t\t\t_safeSetDataURI.call(this, _onMakeImage);\r\n\t\t\t}\r\n\t\t};\r\n\t\t\t\r\n\t\t/**\r\n\t\t * Return whether the QRCode is painted or not\r\n\t\t * \r\n\t\t * @return {Boolean}\r\n\t\t */\r\n\t\tDrawing.prototype.isPainted = function () {\r\n\t\t\treturn this._bIsPainted;\r\n\t\t};\r\n\t\t\r\n\t\t/**\r\n\t\t * Clear the QRCode\r\n\t\t */\r\n\t\tDrawing.prototype.clear = function () {\r\n\t\t\tthis._oContext.clearRect(0, 0, this._elCanvas.width, this._elCanvas.height);\r\n\t\t\tthis._bIsPainted = false;\r\n\t\t};\r\n\t\t\r\n\t\t/**\r\n\t\t * @private\r\n\t\t * @param {Number} nNumber\r\n\t\t */\r\n\t\tDrawing.prototype.round = function (nNumber) {\r\n\t\t\tif (!nNumber) {\r\n\t\t\t\treturn nNumber;\r\n\t\t\t}\r\n\t\t\t\r\n\t\t\treturn Math.floor(nNumber * 1000) / 1000;\r\n\t\t};\r\n\t\t\r\n\t\treturn Drawing;\r\n\t})();\r\n\t\r\n\t/**\r\n\t * Get the type by string length\r\n\t * \r\n\t * @private\r\n\t * @param {String} sText\r\n\t * @param {Number} nCorrectLevel\r\n\t * @return {Number} type\r\n\t */\r\n\tfunction _getTypeNumber(sText, nCorrectLevel) {\t\t\t\r\n\t\tvar nType = 1;\r\n\t\tvar length = _getUTF8Length(sText);\r\n\t\t\r\n\t\tfor (var i = 0, len = QRCodeLimitLength.length; i <= len; i++) {\r\n\t\t\tvar nLimit = 0;\r\n\t\t\t\r\n\t\t\tswitch (nCorrectLevel) {\r\n\t\t\t\tcase QRErrorCorrectLevel.L :\r\n\t\t\t\t\tnLimit = QRCodeLimitLength[i][0];\r\n\t\t\t\t\tbreak;\r\n\t\t\t\tcase QRErrorCorrectLevel.M :\r\n\t\t\t\t\tnLimit = QRCodeLimitLength[i][1];\r\n\t\t\t\t\tbreak;\r\n\t\t\t\tcase QRErrorCorrectLevel.Q :\r\n\t\t\t\t\tnLimit = QRCodeLimitLength[i][2];\r\n\t\t\t\t\tbreak;\r\n\t\t\t\tcase QRErrorCorrectLevel.H :\r\n\t\t\t\t\tnLimit = QRCodeLimitLength[i][3];\r\n\t\t\t\t\tbreak;\r\n\t\t\t}\r\n\t\t\t\r\n\t\t\tif (length <= nLimit) {\r\n\t\t\t\tbreak;\r\n\t\t\t} else {\r\n\t\t\t\tnType++;\r\n\t\t\t}\r\n\t\t}\r\n\t\t\r\n\t\tif (nType > QRCodeLimitLength.length) {\r\n\t\t\tthrow new Error(\"Too long data\");\r\n\t\t}\r\n\t\t\r\n\t\treturn nType;\r\n\t}\r\n\r\n\tfunction _getUTF8Length(sText) {\r\n\t\tvar replacedText = encodeURI(sText).toString().replace(/\\%[0-9a-fA-F]{2}/g, 'a');\r\n\t\treturn replacedText.length + (replacedText.length != sText ? 3 : 0);\r\n\t}\r\n\t\r\n\t/**\r\n\t * @class QRCode\r\n\t * @constructor\r\n\t * @example \r\n\t * new QRCode(document.getElementById(\"test\"), \"http://jindo.dev.naver.com/collie\");\r\n\t *\r\n\t * @example\r\n\t * var oQRCode = new QRCode(\"test\", {\r\n\t * text : \"http://naver.com\",\r\n\t * width : 128,\r\n\t * height : 128\r\n\t * });\r\n\t * \r\n\t * oQRCode.clear(); // Clear the QRCode.\r\n\t * oQRCode.makeCode(\"http://map.naver.com\"); // Re-create the QRCode.\r\n\t *\r\n\t * @param {HTMLElement|String} el target element or 'id' attribute of element.\r\n\t * @param {Object|String} vOption\r\n\t * @param {String} vOption.text QRCode link data\r\n\t * @param {Number} [vOption.width=256]\r\n\t * @param {Number} [vOption.height=256]\r\n\t * @param {String} [vOption.colorDark=\"#000000\"]\r\n\t * @param {String} [vOption.colorLight=\"#ffffff\"]\r\n\t * @param {QRCode.CorrectLevel} [vOption.correctLevel=QRCode.CorrectLevel.H] [L|M|Q|H] \r\n\t */\r\n\tQRCode = function (el, vOption) {\r\n\t\tthis._htOption = {\r\n\t\t\twidth : 256, \r\n\t\t\theight : 256,\r\n\t\t\ttypeNumber : 4,\r\n\t\t\tcolorDark : \"#000000\",\r\n\t\t\tcolorLight : \"#ffffff\",\r\n\t\t\tcorrectLevel : QRErrorCorrectLevel.H\r\n\t\t};\r\n\t\t\r\n\t\tif (typeof vOption === 'string') {\r\n\t\t\tvOption\t= {\r\n\t\t\t\ttext : vOption\r\n\t\t\t};\r\n\t\t}\r\n\t\t\r\n\t\t// Overwrites options\r\n\t\tif (vOption) {\r\n\t\t\tfor (var i in vOption) {\r\n\t\t\t\tthis._htOption[i] = vOption[i];\r\n\t\t\t}\r\n\t\t}\r\n\t\t\r\n\t\tif (typeof el == \"string\") {\r\n\t\t\tel = document.getElementById(el);\r\n\t\t}\r\n\r\n\t\tif (this._htOption.useSVG) {\r\n\t\t\tDrawing = svgDrawer;\r\n\t\t}\r\n\t\t\r\n\t\tthis._android = _getAndroid();\r\n\t\tthis._el = el;\r\n\t\tthis._oQRCode = null;\r\n\t\tthis._oDrawing = new Drawing(this._el, this._htOption);\r\n\t\t\r\n\t\tif (this._htOption.text) {\r\n\t\t\tthis.makeCode(this._htOption.text);\t\r\n\t\t}\r\n\t};\r\n\t\r\n\t/**\r\n\t * Make the QRCode\r\n\t * \r\n\t * @param {String} sText link data\r\n\t */\r\n\tQRCode.prototype.makeCode = function (sText) {\r\n\t\tthis._oQRCode = new QRCodeModel(_getTypeNumber(sText, this._htOption.correctLevel), this._htOption.correctLevel);\r\n\t\tthis._oQRCode.addData(sText);\r\n\t\tthis._oQRCode.make();\r\n\t\tthis._el.title = sText;\r\n\t\tthis._oDrawing.draw(this._oQRCode);\t\t\t\r\n\t\tthis.makeImage();\r\n\t};\r\n\t\r\n\t/**\r\n\t * Make the Image from Canvas element\r\n\t * - It occurs automatically\r\n\t * - Android below 3 doesn't support Data-URI spec.\r\n\t * \r\n\t * @private\r\n\t */\r\n\tQRCode.prototype.makeImage = function () {\r\n\t\tif (typeof this._oDrawing.makeImage == \"function\" && (!this._android || this._android >= 3)) {\r\n\t\t\tthis._oDrawing.makeImage();\r\n\t\t}\r\n\t};\r\n\t\r\n\t/**\r\n\t * Clear the QRCode\r\n\t */\r\n\tQRCode.prototype.clear = function () {\r\n\t\tthis._oDrawing.clear();\r\n\t};\r\n\t\r\n\t/**\r\n\t * @name QRCode.CorrectLevel\r\n\t */\r\n\tQRCode.CorrectLevel = QRErrorCorrectLevel;\r\n})();\r\n"],"names":["QRCode","QR8bitByte","data","mode","QRMode","MODE_8BIT_BYTE","parsedData","i","l","length","byteArray","code","charCodeAt","push","Array","prototype","concat","apply","unshift","QRCodeModel","typeNumber","errorCorrectLevel","modules","moduleCount","dataCache","dataList","getLength","buffer","write","put","addData","newData","isDark","row","col","Error","getModuleCount","make","makeImpl","getBestMaskPattern","test","maskPattern","setupPositionProbePattern","setupPositionAdjustPattern","setupTimingPattern","setupTypeInfo","setupTypeNumber","createData","mapData","r","c","minLostPoint","pattern","lostPoint","QRUtil","getLostPoint","createMovieClip","target_mc","instance_name","depth","qr_mc","createEmptyMovieClip","y","x","beginFill","moveTo","lineTo","endFill","pos","getPatternPosition","j","bits","getBCHTypeNumber","mod","Math","floor","getBCHTypeInfo","inc","bitIndex","byteIndex","dark","getMask","PAD0","PAD1","rsBlocks","QRRSBlock","getRSBlocks","QRBitBuffer","getLengthInBits","totalDataCount","dataCount","putBit","createBytes","offset","maxDcCount","maxEcCount","dcdata","ecdata","dcCount","ecCount","totalCount","max","rsPoly","getErrorCorrectPolynomial","modPoly","rawPoly","QRPolynomial","modIndex","get","totalCodeCount","index","Drawing","MODE_NUMBER","MODE_ALPHA_NUM","MODE_KANJI","QRErrorCorrectLevel","L","M","Q","H","QRMaskPattern","PATTERN000","PATTERN001","PATTERN010","PATTERN011","PATTERN100","PATTERN101","PATTERN110","PATTERN111","PATTERN_POSITION_TABLE","G15","G18","G15_MASK","d","getBCHDigit","digit","errorCorrectLength","a","multiply","QRMath","gexp","type","qrCode","sameCount","count","darkCount","ratio","abs","glog","n","LOG_TABLE","EXP_TABLE","num","shift","undefined","e","RS_BLOCK_TABLE","rsBlock","getRsBlockTable","list","bit","bufIndex","QRCodeLimitLength","_getAndroid","android","sAgent","navigator","userAgent","aMat","toString","match","parseFloat","svgDrawer","el","htOption","_el","_htOption","draw","oQRCode","nCount","makeSVG","tag","attrs","document","createElementNS","k","hasOwnProperty","setAttribute","width","height","clear","svg","String","colorLight","setAttributeNS","appendChild","colorDark","child","hasChildNodes","removeChild","lastChild","useSVG","documentElement","tagName","toLowerCase","CanvasRenderingContext2D","_onMakeImage","_elImage","src","_elCanvas","toDataURL","style","display","_android","factor","window","devicePixelRatio","drawImage","image","sx","sy","sw","sh","dx","dy","dw","dh","nodeName","arguments","_safeSetDataURI","fSuccess","fFail","self","_fFail","_fSuccess","_bSupportDataURI","createElement","fOnError","call","onabort","onerror","onload","_bIsPainted","_oContext","getContext","alt","nWidth","nHeight","nRoundedWidth","round","nRoundedHeight","bIsDark","nLeft","nTop","strokeStyle","lineWidth","fillStyle","fillRect","strokeRect","ceil","makeImage","isPainted","clearRect","nNumber","aHTML","innerHTML","join","elTable","childNodes","nLeftMarginTable","offsetWidth","nTopMarginTable","offsetHeight","margin","vOption","correctLevel","text","getElementById","_oQRCode","_oDrawing","makeCode","sText","_getTypeNumber","nCorrectLevel","replacedText","nType","encodeURI","replace","len","nLimit","title","CorrectLevel"],"mappings":"AAUA,IAAIA,QAEJ,AAAC,WAgBA,SAASC,EAAWC,CAAI,EACvB,IAAI,CAACC,IAAI,CAAGC,EAAOC,cAAc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CAAC3J,EAAE,CAAC,EAAE,CAChC,KACD,MAAK4G,EAAoBE,CAAC,CACzB4K,EAAS/H,CAAiB,CAAC3J,EAAE,CAAC,EAAE,CAChC,KACD,MAAK4G,EAAoBG,CAAC,CACzB2K,EAAS/H,CAAiB,CAAC3J,EAAE,CAAC,EAAE,CAChC,KACD,MAAK4G,EAAoBI,CAAC,CACzB0K,EAAS/H,CAAiB,CAAC3J,EAAE,CAAC,EAAE,AAElC,CAEA,GAAIE,GAAUwR,EACb,KAEAJ,CAAAA,GAEF,CAEA,GAAIA,EAAQ3H,EAAkBzJ,MAAM,CACnC,MAAM,AAAI0B,MAAM,iBAGjB,OAAO0P,CACR,EA+EgDJ,EAAO,IAAI,CAACzG,SAAS,CAACmG,YAAY,EAAG,IAAI,CAACnG,SAAS,CAACmG,YAAY,EAC/G,IAAI,CAACG,QAAQ,CAACxP,OAAO,CAAC2P,GACtB,IAAI,CAACH,QAAQ,CAACjP,IAAI,GAClB,IAAI,CAAC0I,GAAG,CAACmH,KAAK,CAAGT,EACjB,IAAI,CAACF,SAAS,CAACtG,IAAI,CAAC,IAAI,CAACqG,QAAQ,EACjC,IAAI,CAAClB,SAAS,EACf,EASApQ,OAAOe,SAAS,CAACqP,SAAS,CAAG,WACW,YAAnC,OAAO,IAAI,CAACmB,SAAS,CAACnB,SAAS,EAAmB,CAAA,CAAC,IAAI,CAAC/C,QAAQ,EAAI,IAAI,CAACA,QAAQ,EAAI,CAAA,GACxF,IAAI,CAACkE,SAAS,CAACnB,SAAS,EAE1B,EAKApQ,OAAOe,SAAS,CAAC+K,KAAK,CAAG,WACxB,IAAI,CAACyF,SAAS,CAACzF,KAAK,EACrB,EAKA9L,OAAOmS,YAAY,CAAGhL,CACvB"} +{"version":3,"sources":[""],"sourcesContent":["/**\r\n * @fileoverview\r\n * - Using the 'QRCode for Javascript library'\r\n * - Fixed dataset of 'QRCode for Javascript library' for support full-spec.\r\n * - this library has no dependencies.\r\n * \r\n * @author davidshimjs\r\n * @see http://www.d-project.com/\r\n * @see http://jeromeetienne.github.com/jquery-qrcode/\r\n */\r\nvar QRCode;\r\n\r\n(function () {\r\n\t//---------------------------------------------------------------------\r\n\t// QRCode for JavaScript\r\n\t//\r\n\t// Copyright (c) 2009 Kazuhiko Arase\r\n\t//\r\n\t// URL: http://www.d-project.com/\r\n\t//\r\n\t// Licensed under the MIT license:\r\n\t// http://www.opensource.org/licenses/mit-license.php\r\n\t//\r\n\t// The word \"QR Code\" is registered trademark of \r\n\t// DENSO WAVE INCORPORATED\r\n\t// http://www.denso-wave.com/qrcode/faqpatent-e.html\r\n\t//\r\n\t//---------------------------------------------------------------------\r\n\tfunction QR8bitByte(data) {\r\n\t\tthis.mode = QRMode.MODE_8BIT_BYTE;\r\n\t\tthis.data = data;\r\n\t\tthis.parsedData = [];\r\n\r\n\t\t// Added to support UTF-8 Characters\r\n\t\tfor (var i = 0, l = this.data.length; i < l; i++) {\r\n\t\t\tvar byteArray = [];\r\n\t\t\tvar code = this.data.charCodeAt(i);\r\n\r\n\t\t\tif (code > 0x10000) {\r\n\t\t\t\tbyteArray[0] = 0xF0 | ((code & 0x1C0000) >>> 18);\r\n\t\t\t\tbyteArray[1] = 0x80 | ((code & 0x3F000) >>> 12);\r\n\t\t\t\tbyteArray[2] = 0x80 | ((code & 0xFC0) >>> 6);\r\n\t\t\t\tbyteArray[3] = 0x80 | (code & 0x3F);\r\n\t\t\t} else if (code > 0x800) {\r\n\t\t\t\tbyteArray[0] = 0xE0 | ((code & 0xF000) >>> 12);\r\n\t\t\t\tbyteArray[1] = 0x80 | ((code & 0xFC0) >>> 6);\r\n\t\t\t\tbyteArray[2] = 0x80 | (code & 0x3F);\r\n\t\t\t} else if (code > 0x80) {\r\n\t\t\t\tbyteArray[0] = 0xC0 | ((code & 0x7C0) >>> 6);\r\n\t\t\t\tbyteArray[1] = 0x80 | (code & 0x3F);\r\n\t\t\t} else {\r\n\t\t\t\tbyteArray[0] = code;\r\n\t\t\t}\r\n\r\n\t\t\tthis.parsedData.push(byteArray);\r\n\t\t}\r\n\r\n\t\tthis.parsedData = Array.prototype.concat.apply([], this.parsedData);\r\n\r\n\t\tif (this.parsedData.length != this.data.length) {\r\n\t\t\tthis.parsedData.unshift(191);\r\n\t\t\tthis.parsedData.unshift(187);\r\n\t\t\tthis.parsedData.unshift(239);\r\n\t\t}\r\n\t}\r\n\r\n\tQR8bitByte.prototype = {\r\n\t\tgetLength: function (buffer) {\r\n\t\t\treturn this.parsedData.length;\r\n\t\t},\r\n\t\twrite: function (buffer) {\r\n\t\t\tfor (var i = 0, l = this.parsedData.length; i < l; i++) {\r\n\t\t\t\tbuffer.put(this.parsedData[i], 8);\r\n\t\t\t}\r\n\t\t}\r\n\t};\r\n\r\n\tfunction QRCodeModel(typeNumber, errorCorrectLevel) {\r\n\t\tthis.typeNumber = typeNumber;\r\n\t\tthis.errorCorrectLevel = errorCorrectLevel;\r\n\t\tthis.modules = null;\r\n\t\tthis.moduleCount = 0;\r\n\t\tthis.dataCache = null;\r\n\t\tthis.dataList = [];\r\n\t}\r\n\r\n\tQRCodeModel.prototype={addData:function(data){var newData=new QR8bitByte(data);this.dataList.push(newData);this.dataCache=null;},isDark:function(row,col){if(row<0||this.moduleCount<=row||col<0||this.moduleCount<=col){throw new Error(row+\",\"+col);}\r\n\treturn this.modules[row][col];},getModuleCount:function(){return this.moduleCount;},make:function(){this.makeImpl(false,this.getBestMaskPattern());},makeImpl:function(test,maskPattern){this.moduleCount=this.typeNumber*4+17;this.modules=new Array(this.moduleCount);for(var row=0;row=7){this.setupTypeNumber(test);}\r\n\tif(this.dataCache==null){this.dataCache=QRCodeModel.createData(this.typeNumber,this.errorCorrectLevel,this.dataList);}\r\n\tthis.mapData(this.dataCache,maskPattern);},setupPositionProbePattern:function(row,col){for(var r=-1;r<=7;r++){if(row+r<=-1||this.moduleCount<=row+r)continue;for(var c=-1;c<=7;c++){if(col+c<=-1||this.moduleCount<=col+c)continue;if((0<=r&&r<=6&&(c==0||c==6))||(0<=c&&c<=6&&(r==0||r==6))||(2<=r&&r<=4&&2<=c&&c<=4)){this.modules[row+r][col+c]=true;}else{this.modules[row+r][col+c]=false;}}}},getBestMaskPattern:function(){var minLostPoint=0;var pattern=0;for(var i=0;i<8;i++){this.makeImpl(true,i);var lostPoint=QRUtil.getLostPoint(this);if(i==0||minLostPoint>lostPoint){minLostPoint=lostPoint;pattern=i;}}\r\n\treturn pattern;},createMovieClip:function(target_mc,instance_name,depth){var qr_mc=target_mc.createEmptyMovieClip(instance_name,depth);var cs=1;this.make();for(var row=0;row>i)&1)==1);this.modules[Math.floor(i/3)][i%3+this.moduleCount-8-3]=mod;}\r\n\tfor(var i=0;i<18;i++){var mod=(!test&&((bits>>i)&1)==1);this.modules[i%3+this.moduleCount-8-3][Math.floor(i/3)]=mod;}},setupTypeInfo:function(test,maskPattern){var data=(this.errorCorrectLevel<<3)|maskPattern;var bits=QRUtil.getBCHTypeInfo(data);for(var i=0;i<15;i++){var mod=(!test&&((bits>>i)&1)==1);if(i<6){this.modules[i][8]=mod;}else if(i<8){this.modules[i+1][8]=mod;}else{this.modules[this.moduleCount-15+i][8]=mod;}}\r\n\tfor(var i=0;i<15;i++){var mod=(!test&&((bits>>i)&1)==1);if(i<8){this.modules[8][this.moduleCount-i-1]=mod;}else if(i<9){this.modules[8][15-i-1+1]=mod;}else{this.modules[8][15-i-1]=mod;}}\r\n\tthis.modules[this.moduleCount-8][8]=(!test);},mapData:function(data,maskPattern){var inc=-1;var row=this.moduleCount-1;var bitIndex=7;var byteIndex=0;for(var col=this.moduleCount-1;col>0;col-=2){if(col==6)col--;while(true){for(var c=0;c<2;c++){if(this.modules[row][col-c]==null){var dark=false;if(byteIndex>>bitIndex)&1)==1);}\r\n\tvar mask=QRUtil.getMask(maskPattern,row,col-c);if(mask){dark=!dark;}\r\n\tthis.modules[row][col-c]=dark;bitIndex--;if(bitIndex==-1){byteIndex++;bitIndex=7;}}}\r\n\trow+=inc;if(row<0||this.moduleCount<=row){row-=inc;inc=-inc;break;}}}}};QRCodeModel.PAD0=0xEC;QRCodeModel.PAD1=0x11;QRCodeModel.createData=function(typeNumber,errorCorrectLevel,dataList){var rsBlocks=QRRSBlock.getRSBlocks(typeNumber,errorCorrectLevel);var buffer=new QRBitBuffer();for(var i=0;itotalDataCount*8){throw new Error(\"code length overflow. (\"\r\n\t+buffer.getLengthInBits()\r\n\t+\">\"\r\n\t+totalDataCount*8\r\n\t+\")\");}\r\n\tif(buffer.getLengthInBits()+4<=totalDataCount*8){buffer.put(0,4);}\r\n\twhile(buffer.getLengthInBits()%8!=0){buffer.putBit(false);}\r\n\twhile(true){if(buffer.getLengthInBits()>=totalDataCount*8){break;}\r\n\tbuffer.put(QRCodeModel.PAD0,8);if(buffer.getLengthInBits()>=totalDataCount*8){break;}\r\n\tbuffer.put(QRCodeModel.PAD1,8);}\r\n\treturn QRCodeModel.createBytes(buffer,rsBlocks);};QRCodeModel.createBytes=function(buffer,rsBlocks){var offset=0;var maxDcCount=0;var maxEcCount=0;var dcdata=new Array(rsBlocks.length);var ecdata=new Array(rsBlocks.length);for(var r=0;r=0)?modPoly.get(modIndex):0;}}\r\n\tvar totalCodeCount=0;for(var i=0;i=0){d^=(QRUtil.G15<<(QRUtil.getBCHDigit(d)-QRUtil.getBCHDigit(QRUtil.G15)));}\r\n\treturn((data<<10)|d)^QRUtil.G15_MASK;},getBCHTypeNumber:function(data){var d=data<<12;while(QRUtil.getBCHDigit(d)-QRUtil.getBCHDigit(QRUtil.G18)>=0){d^=(QRUtil.G18<<(QRUtil.getBCHDigit(d)-QRUtil.getBCHDigit(QRUtil.G18)));}\r\n\treturn(data<<12)|d;},getBCHDigit:function(data){var digit=0;while(data!=0){digit++;data>>>=1;}\r\n\treturn digit;},getPatternPosition:function(typeNumber){return QRUtil.PATTERN_POSITION_TABLE[typeNumber-1];},getMask:function(maskPattern,i,j){switch(maskPattern){case QRMaskPattern.PATTERN000:return(i+j)%2==0;case QRMaskPattern.PATTERN001:return i%2==0;case QRMaskPattern.PATTERN010:return j%3==0;case QRMaskPattern.PATTERN011:return(i+j)%3==0;case QRMaskPattern.PATTERN100:return(Math.floor(i/2)+Math.floor(j/3))%2==0;case QRMaskPattern.PATTERN101:return(i*j)%2+(i*j)%3==0;case QRMaskPattern.PATTERN110:return((i*j)%2+(i*j)%3)%2==0;case QRMaskPattern.PATTERN111:return((i*j)%3+(i+j)%2)%2==0;default:throw new Error(\"bad maskPattern:\"+maskPattern);}},getErrorCorrectPolynomial:function(errorCorrectLength){var a=new QRPolynomial([1],0);for(var i=0;i5){lostPoint+=(3+sameCount-5);}}}\r\n\tfor(var row=0;row=256){n-=255;}\r\n\treturn QRMath.EXP_TABLE[n];},EXP_TABLE:new Array(256),LOG_TABLE:new Array(256)};for(var i=0;i<8;i++){QRMath.EXP_TABLE[i]=1<>>(7-index%8))&1)==1;},put:function(num,length){for(var i=0;i>>(length-i-1))&1)==1);}},getLengthInBits:function(){return this.length;},putBit:function(bit){var bufIndex=Math.floor(this.length/8);if(this.buffer.length<=bufIndex){this.buffer.push(0);}\r\n\tif(bit){this.buffer[bufIndex]|=(0x80>>>(this.length%8));}\r\n\tthis.length++;}};var QRCodeLimitLength=[[17,14,11,7],[32,26,20,14],[53,42,32,24],[78,62,46,34],[106,84,60,44],[134,106,74,58],[154,122,86,64],[192,152,108,84],[230,180,130,98],[271,213,151,119],[321,251,177,137],[367,287,203,155],[425,331,241,177],[458,362,258,194],[520,412,292,220],[586,450,322,250],[644,504,364,280],[718,560,394,310],[792,624,442,338],[858,666,482,382],[929,711,509,403],[1003,779,565,439],[1091,857,611,461],[1171,911,661,511],[1273,997,715,535],[1367,1059,751,593],[1465,1125,805,625],[1528,1190,868,658],[1628,1264,908,698],[1732,1370,982,742],[1840,1452,1030,790],[1952,1538,1112,842],[2068,1628,1168,898],[2188,1722,1228,958],[2303,1809,1283,983],[2431,1911,1351,1051],[2563,1989,1423,1093],[2699,2099,1499,1139],[2809,2213,1579,1219],[2953,2331,1663,1273]];\r\n\t\r\n\tfunction _isSupportCanvas() {\r\n\t\treturn typeof CanvasRenderingContext2D != \"undefined\";\r\n\t}\r\n\t\r\n\t// android 2.x doesn't support Data-URI spec\r\n\tfunction _getAndroid() {\r\n\t\tvar android = false;\r\n\t\tvar sAgent = navigator.userAgent;\r\n\t\t\r\n\t\tif (/android/i.test(sAgent)) { // android\r\n\t\t\tandroid = true;\r\n\t\t\tvar aMat = sAgent.toString().match(/android ([0-9]\\.[0-9])/i);\r\n\t\t\t\r\n\t\t\tif (aMat && aMat[1]) {\r\n\t\t\t\tandroid = parseFloat(aMat[1]);\r\n\t\t\t}\r\n\t\t}\r\n\t\t\r\n\t\treturn android;\r\n\t}\r\n\t\r\n\tvar svgDrawer = (function() {\r\n\r\n\t\tvar Drawing = function (el, htOption) {\r\n\t\t\tthis._el = el;\r\n\t\t\tthis._htOption = htOption;\r\n\t\t};\r\n\r\n\t\tDrawing.prototype.draw = function (oQRCode) {\r\n\t\t\tvar _htOption = this._htOption;\r\n\t\t\tvar _el = this._el;\r\n\t\t\tvar nCount = oQRCode.getModuleCount();\r\n\t\t\tvar nWidth = Math.floor(_htOption.width / nCount);\r\n\t\t\tvar nHeight = Math.floor(_htOption.height / nCount);\r\n\r\n\t\t\tthis.clear();\r\n\r\n\t\t\tfunction makeSVG(tag, attrs) {\r\n\t\t\t\tvar el = document.createElementNS('http://www.w3.org/2000/svg', tag);\r\n\t\t\t\tfor (var k in attrs)\r\n\t\t\t\t\tif (attrs.hasOwnProperty(k)) el.setAttribute(k, attrs[k]);\r\n\t\t\t\treturn el;\r\n\t\t\t}\r\n\r\n\t\t\tvar svg = makeSVG(\"svg\" , {'viewBox': '0 0 ' + String(nCount) + \" \" + String(nCount), 'width': '100%', 'height': '100%', 'fill': _htOption.colorLight});\r\n\t\t\tsvg.setAttributeNS(\"http://www.w3.org/2000/xmlns/\", \"xmlns:xlink\", \"http://www.w3.org/1999/xlink\");\r\n\t\t\t_el.appendChild(svg);\r\n\r\n\t\t\tsvg.appendChild(makeSVG(\"rect\", {\"fill\": _htOption.colorLight, \"width\": \"100%\", \"height\": \"100%\"}));\r\n\t\t\tsvg.appendChild(makeSVG(\"rect\", {\"fill\": _htOption.colorDark, \"width\": \"1\", \"height\": \"1\", \"id\": \"template\"}));\r\n\r\n\t\t\tfor (var row = 0; row < nCount; row++) {\r\n\t\t\t\tfor (var col = 0; col < nCount; col++) {\r\n\t\t\t\t\tif (oQRCode.isDark(row, col)) {\r\n\t\t\t\t\t\tvar child = makeSVG(\"use\", {\"x\": String(row), \"y\": String(col)});\r\n\t\t\t\t\t\tchild.setAttributeNS(\"http://www.w3.org/1999/xlink\", \"href\", \"#template\")\r\n\t\t\t\t\t\tsvg.appendChild(child);\r\n\t\t\t\t\t}\r\n\t\t\t\t}\r\n\t\t\t}\r\n\t\t};\r\n\t\tDrawing.prototype.clear = function () {\r\n\t\t\twhile (this._el.hasChildNodes())\r\n\t\t\t\tthis._el.removeChild(this._el.lastChild);\r\n\t\t};\r\n\t\treturn Drawing;\r\n\t})();\r\n\r\n\tvar useSVG = document.documentElement.tagName.toLowerCase() === \"svg\";\r\n\r\n\t// Drawing in DOM by using Table tag\r\n\tvar Drawing = useSVG ? svgDrawer : !_isSupportCanvas() ? (function () {\r\n\t\tvar Drawing = function (el, htOption) {\r\n\t\t\tthis._el = el;\r\n\t\t\tthis._htOption = htOption;\r\n\t\t};\r\n\t\t\t\r\n\t\t/**\r\n\t\t * Draw the QRCode\r\n\t\t * \r\n\t\t * @param {QRCode} oQRCode\r\n\t\t */\r\n\t\tDrawing.prototype.draw = function (oQRCode) {\r\n var _htOption = this._htOption;\r\n var _el = this._el;\r\n\t\t\tvar nCount = oQRCode.getModuleCount();\r\n\t\t\tvar nWidth = Math.floor(_htOption.width / nCount);\r\n\t\t\tvar nHeight = Math.floor(_htOption.height / nCount);\r\n\t\t\tvar aHTML = [''];\r\n\t\t\t\r\n\t\t\tfor (var row = 0; row < nCount; row++) {\r\n\t\t\t\taHTML.push('');\r\n\t\t\t\t\r\n\t\t\t\tfor (var col = 0; col < nCount; col++) {\r\n\t\t\t\t\taHTML.push('');\r\n\t\t\t\t}\r\n\t\t\t\t\r\n\t\t\t\taHTML.push('');\r\n\t\t\t}\r\n\t\t\t\r\n\t\t\taHTML.push('
');\r\n\t\t\t_el.innerHTML = aHTML.join('');\r\n\t\t\t\r\n\t\t\t// Fix the margin values as real size.\r\n\t\t\tvar elTable = _el.childNodes[0];\r\n\t\t\tvar nLeftMarginTable = (_htOption.width - elTable.offsetWidth) / 2;\r\n\t\t\tvar nTopMarginTable = (_htOption.height - elTable.offsetHeight) / 2;\r\n\t\t\t\r\n\t\t\tif (nLeftMarginTable > 0 && nTopMarginTable > 0) {\r\n\t\t\t\telTable.style.margin = nTopMarginTable + \"px \" + nLeftMarginTable + \"px\";\t\r\n\t\t\t}\r\n\t\t};\r\n\t\t\r\n\t\t/**\r\n\t\t * Clear the QRCode\r\n\t\t */\r\n\t\tDrawing.prototype.clear = function () {\r\n\t\t\tthis._el.innerHTML = '';\r\n\t\t};\r\n\t\t\r\n\t\treturn Drawing;\r\n\t})() : (function () { // Drawing in Canvas\r\n\t\tfunction _onMakeImage() {\r\n\t\t\tthis._elImage.src = this._elCanvas.toDataURL(\"image/png\");\r\n\t\t\tthis._elImage.style.display = \"block\";\r\n\t\t\tthis._elCanvas.style.display = \"none\";\t\t\t\r\n\t\t}\r\n\t\t\r\n\t\t// Android 2.1 bug workaround\r\n\t\t// http://code.google.com/p/android/issues/detail?id=5141\r\n\t\tif (this._android && this._android <= 2.1) {\r\n\t \tvar factor = 1 / window.devicePixelRatio;\r\n\t var drawImage = CanvasRenderingContext2D.prototype.drawImage; \r\n\t \tCanvasRenderingContext2D.prototype.drawImage = function (image, sx, sy, sw, sh, dx, dy, dw, dh) {\r\n\t \t\tif ((\"nodeName\" in image) && /img/i.test(image.nodeName)) {\r\n\t\t \tfor (var i = arguments.length - 1; i >= 1; i--) {\r\n\t\t \targuments[i] = arguments[i] * factor;\r\n\t\t \t}\r\n\t \t\t} else if (typeof dw == \"undefined\") {\r\n\t \t\t\targuments[1] *= factor;\r\n\t \t\t\targuments[2] *= factor;\r\n\t \t\t\targuments[3] *= factor;\r\n\t \t\t\targuments[4] *= factor;\r\n\t \t\t}\r\n\t \t\t\r\n\t \tdrawImage.apply(this, arguments); \r\n\t \t};\r\n\t\t}\r\n\t\t\r\n\t\t/**\r\n\t\t * Check whether the user's browser supports Data URI or not\r\n\t\t * \r\n\t\t * @private\r\n\t\t * @param {Function} fSuccess Occurs if it supports Data URI\r\n\t\t * @param {Function} fFail Occurs if it doesn't support Data URI\r\n\t\t */\r\n\t\tfunction _safeSetDataURI(fSuccess, fFail) {\r\n var self = this;\r\n self._fFail = fFail;\r\n self._fSuccess = fSuccess;\r\n\r\n // Check it just once\r\n if (self._bSupportDataURI === null) {\r\n var el = document.createElement(\"img\");\r\n var fOnError = function() {\r\n self._bSupportDataURI = false;\r\n\r\n if (self._fFail) {\r\n self._fFail.call(self);\r\n }\r\n };\r\n var fOnSuccess = function() {\r\n self._bSupportDataURI = true;\r\n\r\n if (self._fSuccess) {\r\n self._fSuccess.call(self);\r\n }\r\n };\r\n\r\n el.onabort = fOnError;\r\n el.onerror = fOnError;\r\n el.onload = fOnSuccess;\r\n el.src = \"data:image/gif;base64,iVBORw0KGgoAAAANSUhEUgAAAAUAAAAFCAYAAACNbyblAAAAHElEQVQI12P4//8/w38GIAXDIBKE0DHxgljNBAAO9TXL0Y4OHwAAAABJRU5ErkJggg==\"; // the Image contains 1px data.\r\n return;\r\n } else if (self._bSupportDataURI === true && self._fSuccess) {\r\n self._fSuccess.call(self);\r\n } else if (self._bSupportDataURI === false && self._fFail) {\r\n self._fFail.call(self);\r\n }\r\n\t\t};\r\n\t\t\r\n\t\t/**\r\n\t\t * Drawing QRCode by using canvas\r\n\t\t * \r\n\t\t * @constructor\r\n\t\t * @param {HTMLElement} el\r\n\t\t * @param {Object} htOption QRCode Options \r\n\t\t */\r\n\t\tvar Drawing = function (el, htOption) {\r\n \t\tthis._bIsPainted = false;\r\n \t\tthis._android = _getAndroid();\r\n\t\t\r\n\t\t\tthis._htOption = htOption;\r\n\t\t\tthis._elCanvas = document.createElement(\"canvas\");\r\n\t\t\tthis._elCanvas.width = htOption.width;\r\n\t\t\tthis._elCanvas.height = htOption.height;\r\n\t\t\tel.appendChild(this._elCanvas);\r\n\t\t\tthis._el = el;\r\n\t\t\tthis._oContext = this._elCanvas.getContext(\"2d\");\r\n\t\t\tthis._bIsPainted = false;\r\n\t\t\tthis._elImage = document.createElement(\"img\");\r\n\t\t\tthis._elImage.alt = \"Scan me!\";\r\n\t\t\tthis._elImage.style.display = \"none\";\r\n\t\t\tthis._el.appendChild(this._elImage);\r\n\t\t\tthis._bSupportDataURI = null;\r\n\t\t};\r\n\t\t\t\r\n\t\t/**\r\n\t\t * Draw the QRCode\r\n\t\t * \r\n\t\t * @param {QRCode} oQRCode \r\n\t\t */\r\n\t\tDrawing.prototype.draw = function (oQRCode) {\r\n var _elImage = this._elImage;\r\n var _oContext = this._oContext;\r\n var _htOption = this._htOption;\r\n \r\n\t\t\tvar nCount = oQRCode.getModuleCount();\r\n\t\t\tvar nWidth = _htOption.width / nCount;\r\n\t\t\tvar nHeight = _htOption.height / nCount;\r\n\t\t\tvar nRoundedWidth = Math.round(nWidth);\r\n\t\t\tvar nRoundedHeight = Math.round(nHeight);\r\n\r\n\t\t\t_elImage.style.display = \"none\";\r\n\t\t\tthis.clear();\r\n\t\t\t\r\n\t\t\tfor (var row = 0; row < nCount; row++) {\r\n\t\t\t\tfor (var col = 0; col < nCount; col++) {\r\n\t\t\t\t\tvar bIsDark = oQRCode.isDark(row, col);\r\n\t\t\t\t\tvar nLeft = col * nWidth;\r\n\t\t\t\t\tvar nTop = row * nHeight;\r\n\t\t\t\t\t_oContext.strokeStyle = bIsDark ? _htOption.colorDark : _htOption.colorLight;\r\n\t\t\t\t\t_oContext.lineWidth = 1;\r\n\t\t\t\t\t_oContext.fillStyle = bIsDark ? _htOption.colorDark : _htOption.colorLight;\t\t\t\t\t\r\n\t\t\t\t\t_oContext.fillRect(nLeft, nTop, nWidth, nHeight);\r\n\t\t\t\t\t\r\n\t\t\t\t\t// 안티 앨리어싱 방지 처리\r\n\t\t\t\t\t_oContext.strokeRect(\r\n\t\t\t\t\t\tMath.floor(nLeft) + 0.5,\r\n\t\t\t\t\t\tMath.floor(nTop) + 0.5,\r\n\t\t\t\t\t\tnRoundedWidth,\r\n\t\t\t\t\t\tnRoundedHeight\r\n\t\t\t\t\t);\r\n\t\t\t\t\t\r\n\t\t\t\t\t_oContext.strokeRect(\r\n\t\t\t\t\t\tMath.ceil(nLeft) - 0.5,\r\n\t\t\t\t\t\tMath.ceil(nTop) - 0.5,\r\n\t\t\t\t\t\tnRoundedWidth,\r\n\t\t\t\t\t\tnRoundedHeight\r\n\t\t\t\t\t);\r\n\t\t\t\t}\r\n\t\t\t}\r\n\t\t\t\r\n\t\t\tthis._bIsPainted = true;\r\n\t\t};\r\n\t\t\t\r\n\t\t/**\r\n\t\t * Make the image from Canvas if the browser supports Data URI.\r\n\t\t */\r\n\t\tDrawing.prototype.makeImage = function () {\r\n\t\t\tif (this._bIsPainted) {\r\n\t\t\t\t_safeSetDataURI.call(this, _onMakeImage);\r\n\t\t\t}\r\n\t\t};\r\n\t\t\t\r\n\t\t/**\r\n\t\t * Return whether the QRCode is painted or not\r\n\t\t * \r\n\t\t * @return {Boolean}\r\n\t\t */\r\n\t\tDrawing.prototype.isPainted = function () {\r\n\t\t\treturn this._bIsPainted;\r\n\t\t};\r\n\t\t\r\n\t\t/**\r\n\t\t * Clear the QRCode\r\n\t\t */\r\n\t\tDrawing.prototype.clear = function () {\r\n\t\t\tthis._oContext.clearRect(0, 0, this._elCanvas.width, this._elCanvas.height);\r\n\t\t\tthis._bIsPainted = false;\r\n\t\t};\r\n\t\t\r\n\t\t/**\r\n\t\t * @private\r\n\t\t * @param {Number} nNumber\r\n\t\t */\r\n\t\tDrawing.prototype.round = function (nNumber) {\r\n\t\t\tif (!nNumber) {\r\n\t\t\t\treturn nNumber;\r\n\t\t\t}\r\n\t\t\t\r\n\t\t\treturn Math.floor(nNumber * 1000) / 1000;\r\n\t\t};\r\n\t\t\r\n\t\treturn Drawing;\r\n\t})();\r\n\t\r\n\t/**\r\n\t * Get the type by string length\r\n\t * \r\n\t * @private\r\n\t * @param {String} sText\r\n\t * @param {Number} nCorrectLevel\r\n\t * @return {Number} type\r\n\t */\r\n\tfunction _getTypeNumber(sText, nCorrectLevel) {\t\t\t\r\n\t\tvar nType = 1;\r\n\t\tvar length = _getUTF8Length(sText);\r\n\t\t\r\n\t\tfor (var i = 0, len = QRCodeLimitLength.length; i <= len; i++) {\r\n\t\t\tvar nLimit = 0;\r\n\t\t\t\r\n\t\t\tswitch (nCorrectLevel) {\r\n\t\t\t\tcase QRErrorCorrectLevel.L :\r\n\t\t\t\t\tnLimit = QRCodeLimitLength[i][0];\r\n\t\t\t\t\tbreak;\r\n\t\t\t\tcase QRErrorCorrectLevel.M :\r\n\t\t\t\t\tnLimit = QRCodeLimitLength[i][1];\r\n\t\t\t\t\tbreak;\r\n\t\t\t\tcase QRErrorCorrectLevel.Q :\r\n\t\t\t\t\tnLimit = QRCodeLimitLength[i][2];\r\n\t\t\t\t\tbreak;\r\n\t\t\t\tcase QRErrorCorrectLevel.H :\r\n\t\t\t\t\tnLimit = QRCodeLimitLength[i][3];\r\n\t\t\t\t\tbreak;\r\n\t\t\t}\r\n\t\t\t\r\n\t\t\tif (length <= nLimit) {\r\n\t\t\t\tbreak;\r\n\t\t\t} else {\r\n\t\t\t\tnType++;\r\n\t\t\t}\r\n\t\t}\r\n\t\t\r\n\t\tif (nType > QRCodeLimitLength.length) {\r\n\t\t\tthrow new Error(\"Too long data\");\r\n\t\t}\r\n\t\t\r\n\t\treturn nType;\r\n\t}\r\n\r\n\tfunction _getUTF8Length(sText) {\r\n\t\tvar replacedText = encodeURI(sText).toString().replace(/\\%[0-9a-fA-F]{2}/g, 'a');\r\n\t\treturn replacedText.length + (replacedText.length != sText ? 3 : 0);\r\n\t}\r\n\t\r\n\t/**\r\n\t * @class QRCode\r\n\t * @constructor\r\n\t * @example \r\n\t * new QRCode(document.getElementById(\"test\"), \"http://jindo.dev.naver.com/collie\");\r\n\t *\r\n\t * @example\r\n\t * var oQRCode = new QRCode(\"test\", {\r\n\t * text : \"http://naver.com\",\r\n\t * width : 128,\r\n\t * height : 128\r\n\t * });\r\n\t * \r\n\t * oQRCode.clear(); // Clear the QRCode.\r\n\t * oQRCode.makeCode(\"http://map.naver.com\"); // Re-create the QRCode.\r\n\t *\r\n\t * @param {HTMLElement|String} el target element or 'id' attribute of element.\r\n\t * @param {Object|String} vOption\r\n\t * @param {String} vOption.text QRCode link data\r\n\t * @param {Number} [vOption.width=256]\r\n\t * @param {Number} [vOption.height=256]\r\n\t * @param {String} [vOption.colorDark=\"#000000\"]\r\n\t * @param {String} [vOption.colorLight=\"#ffffff\"]\r\n\t * @param {QRCode.CorrectLevel} [vOption.correctLevel=QRCode.CorrectLevel.H] [L|M|Q|H] \r\n\t */\r\n\tQRCode = function (el, vOption) {\r\n\t\tthis._htOption = {\r\n\t\t\twidth : 256, \r\n\t\t\theight : 256,\r\n\t\t\ttypeNumber : 4,\r\n\t\t\tcolorDark : \"#000000\",\r\n\t\t\tcolorLight : \"#ffffff\",\r\n\t\t\tcorrectLevel : QRErrorCorrectLevel.H\r\n\t\t};\r\n\t\t\r\n\t\tif (typeof vOption === 'string') {\r\n\t\t\tvOption\t= {\r\n\t\t\t\ttext : vOption\r\n\t\t\t};\r\n\t\t}\r\n\t\t\r\n\t\t// Overwrites options\r\n\t\tif (vOption) {\r\n\t\t\tfor (var i in vOption) {\r\n\t\t\t\tthis._htOption[i] = vOption[i];\r\n\t\t\t}\r\n\t\t}\r\n\t\t\r\n\t\tif (typeof el == \"string\") {\r\n\t\t\tel = document.getElementById(el);\r\n\t\t}\r\n\r\n\t\tif (this._htOption.useSVG) {\r\n\t\t\tDrawing = svgDrawer;\r\n\t\t}\r\n\t\t\r\n\t\tthis._android = _getAndroid();\r\n\t\tthis._el = el;\r\n\t\tthis._oQRCode = null;\r\n\t\tthis._oDrawing = new Drawing(this._el, this._htOption);\r\n\t\t\r\n\t\tif (this._htOption.text) {\r\n\t\t\tthis.makeCode(this._htOption.text);\t\r\n\t\t}\r\n\t};\r\n\t\r\n\t/**\r\n\t * Make the QRCode\r\n\t * \r\n\t * @param {String} sText link data\r\n\t */\r\n\tQRCode.prototype.makeCode = function (sText) {\r\n\t\tthis._oQRCode = new QRCodeModel(_getTypeNumber(sText, this._htOption.correctLevel), this._htOption.correctLevel);\r\n\t\tthis._oQRCode.addData(sText);\r\n\t\tthis._oQRCode.make();\r\n\t\tthis._el.title = sText;\r\n\t\tthis._oDrawing.draw(this._oQRCode);\t\t\t\r\n\t\tthis.makeImage();\r\n\t};\r\n\t\r\n\t/**\r\n\t * Make the Image from Canvas element\r\n\t * - It occurs automatically\r\n\t * - Android below 3 doesn't support Data-URI spec.\r\n\t * \r\n\t * @private\r\n\t */\r\n\tQRCode.prototype.makeImage = function () {\r\n\t\tif (typeof this._oDrawing.makeImage == \"function\" && (!this._android || this._android >= 3)) {\r\n\t\t\tthis._oDrawing.makeImage();\r\n\t\t}\r\n\t};\r\n\t\r\n\t/**\r\n\t * Clear the QRCode\r\n\t */\r\n\tQRCode.prototype.clear = function () {\r\n\t\tthis._oDrawing.clear();\r\n\t};\r\n\t\r\n\t/**\r\n\t * @name QRCode.CorrectLevel\r\n\t */\r\n\tQRCode.CorrectLevel = QRErrorCorrectLevel;\r\n})();\r\n"],"names":["QRCode","QR8bitByte","data","mode","QRMode","MODE_8BIT_BYTE","parsedData","i","l","length","byteArray","code","charCodeAt","push","Array","prototype","concat","apply","unshift","QRCodeModel","typeNumber","errorCorrectLevel","modules","moduleCount","dataCache","dataList","getLength","buffer","write","put","addData","newData","isDark","row","col","Error","getModuleCount","make","makeImpl","getBestMaskPattern","test","maskPattern","setupPositionProbePattern","setupPositionAdjustPattern","setupTimingPattern","setupTypeInfo","setupTypeNumber","createData","mapData","r","c","minLostPoint","pattern","lostPoint","QRUtil","getLostPoint","createMovieClip","target_mc","instance_name","depth","qr_mc","createEmptyMovieClip","y","x","beginFill","moveTo","lineTo","endFill","pos","getPatternPosition","j","bits","getBCHTypeNumber","mod","Math","floor","getBCHTypeInfo","inc","bitIndex","byteIndex","dark","getMask","PAD0","PAD1","rsBlocks","QRRSBlock","getRSBlocks","QRBitBuffer","getLengthInBits","totalDataCount","dataCount","putBit","createBytes","offset","maxDcCount","maxEcCount","dcdata","ecdata","dcCount","ecCount","totalCount","max","rsPoly","getErrorCorrectPolynomial","modPoly","rawPoly","QRPolynomial","modIndex","get","totalCodeCount","index","Drawing","MODE_NUMBER","MODE_ALPHA_NUM","MODE_KANJI","QRErrorCorrectLevel","L","M","Q","H","QRMaskPattern","PATTERN000","PATTERN001","PATTERN010","PATTERN011","PATTERN100","PATTERN101","PATTERN110","PATTERN111","PATTERN_POSITION_TABLE","G15","G18","G15_MASK","d","getBCHDigit","digit","errorCorrectLength","a","multiply","QRMath","gexp","type","qrCode","sameCount","count","darkCount","ratio","abs","glog","n","LOG_TABLE","EXP_TABLE","num","shift","undefined","e","RS_BLOCK_TABLE","rsBlock","getRsBlockTable","list","bit","bufIndex","QRCodeLimitLength","_getAndroid","android","sAgent","navigator","userAgent","aMat","toString","match","parseFloat","svgDrawer","el","htOption","_el","_htOption","draw","oQRCode","nCount","makeSVG","tag","attrs","document","createElementNS","k","hasOwnProperty","setAttribute","width","height","clear","svg","String","colorLight","setAttributeNS","appendChild","colorDark","child","hasChildNodes","removeChild","lastChild","useSVG","documentElement","tagName","toLowerCase","CanvasRenderingContext2D","_onMakeImage","_elImage","src","_elCanvas","toDataURL","style","display","_android","factor","window","devicePixelRatio","drawImage","image","sx","sy","sw","sh","dx","dy","dw","dh","nodeName","arguments","_safeSetDataURI","fSuccess","fFail","self","_fFail","_fSuccess","_bSupportDataURI","createElement","fOnError","call","onabort","onerror","onload","_bIsPainted","_oContext","getContext","alt","nWidth","nHeight","nRoundedWidth","round","nRoundedHeight","bIsDark","nLeft","nTop","strokeStyle","lineWidth","fillStyle","fillRect","strokeRect","ceil","makeImage","isPainted","clearRect","nNumber","aHTML","innerHTML","join","elTable","childNodes","nLeftMarginTable","offsetWidth","nTopMarginTable","offsetHeight","margin","vOption","correctLevel","text","getElementById","_oQRCode","_oDrawing","makeCode","sText","_getTypeNumber","nCorrectLevel","replacedText","nType","encodeURI","replace","len","nLimit","title","CorrectLevel"],"mappings":"AAUA,IAAIA,QAEJ,AAAC,WAgBA,SAASC,EAAWC,CAAI,EACvB,IAAI,CAACC,IAAI,CAAGC,EAAOC,cAAc,CACjC,IAAI,CAACH,IAAI,CAAGA,EACZ,IAAI,CAACI,UAAU,CAAG,EAAE,CAGpB,IAAK,IAAIC,EAAI,EAAGC,EAAI,IAAI,CAACN,IAAI,CAACO,MAAM,CAAEF,EAAIC,EAAGD,IAAK,CACjD,IAAIG,EAAY,EAAE,CACdC,EAAO,IAAI,CAACT,IAAI,CAACU,UAAU,CAACL,EAE5BI,CAAAA,EAAO,OACVD,CAAS,CAAC,EAAE,CAAG,IAAQ,AAACC,CAAAA,AAAO,QAAPA,CAAc,IAAO,GAC7CD,CAAS,CAAC,EAAE,CAAG,IAAQ,AAACC,CAAAA,AAAO,OAAPA,CAAa,IAAO,GAC5CD,CAAS,CAAC,EAAE,CAAG,IAAQ,AAACC,CAAAA,AAAO,KAAPA,CAAW,IAAO,EAC1CD,CAAS,CAAC,EAAE,CAAG,IAAQC,AAAO,GAAPA,GACbA,EAAO,MACjBD,CAAS,CAAC,EAAE,CAAG,IAAQ,AAACC,CAAAA,AAAO,MAAPA,CAAY,IAAO,GAC3CD,CAAS,CAAC,EAAE,CAAG,IAAQ,AAACC,CAAAA,AAAO,KAAPA,CAAW,IAAO,EAC1CD,CAAS,CAAC,EAAE,CAAG,IAAQC,AAAO,GAAPA,GACbA,EAAO,K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,YAAnC,OAAO,IAAI,CAACmB,SAAS,CAACnB,SAAS,EAAmB,CAAA,CAAC,IAAI,CAAC/C,QAAQ,EAAI,IAAI,CAACA,QAAQ,EAAI,CAAA,GACxF,IAAI,CAACkE,SAAS,CAACnB,SAAS,EAE1B,EAKApQ,OAAOe,SAAS,CAAC+K,KAAK,CAAG,WACxB,IAAI,CAACyF,SAAS,CAACzF,KAAK,EACrB,EAKA9L,OAAOmS,YAAY,CAAGhL,CACvB"}asd \ No newline at end of file diff --git a/src/OrchardCore.Modules/OrchardCore.Widgets/wwwroot/Scripts/widgetslist.edit.map b/src/OrchardCore.Modules/OrchardCore.Widgets/wwwroot/Scripts/widgetslist.edit.map index 0735346569d..34c068e7c54 100644 --- a/src/OrchardCore.Modules/OrchardCore.Widgets/wwwroot/Scripts/widgetslist.edit.map +++ b/src/OrchardCore.Modules/OrchardCore.Widgets/wwwroot/Scripts/widgetslist.edit.map @@ -1 +1 @@ -{"version":3,"sources":[""],"sourcesContent":["$(function () {\r\n $(document).on('click', '.add-list-widget', function (event) {\r\n var type = $(this).data(\"widget-type\");\r\n var targetId = $(this).data(\"target-id\");\r\n var htmlFieldPrefix = $(this).data(\"html-field-prefix\");\r\n var createEditorUrl = $('#' + targetId).data(\"buildeditorurl\");\r\n var prefixesName = $(this).data(\"prefixes-name\");\r\n var parentContentType = $(this).data(\"parent-content-type\");\r\n var partName = $(this).data(\"part-name\");\r\n var zonesName = $(this).data(\"zones-name\");\r\n var zone = $(this).data(\"zone\");\r\n\r\n // Retrieve all index values knowing that some elements may have been moved / removed.\r\n var indexes = $('#' + targetId).closest(\"form\").find(\"input[name*='Prefixes']\")\r\n .filter(function (i, e) {\r\n return $(e).val().substring(0, $(e).val().lastIndexOf('-')) === htmlFieldPrefix;\r\n })\r\n .map(function (i, e) {\r\n return parseInt($(e).val().substring($(e).val().lastIndexOf('-') + 1)) || 0;\r\n });\r\n\r\n // Use a prefix based on the items count (not a guid) so that the browser autofill still works.\r\n var index = indexes.length ? Math.max(...indexes) + 1 : 0;\r\n var prefix = htmlFieldPrefix + '-' + index.toString();\r\n\r\n var contentTypesName = $(this).data(\"contenttypes-name\");\r\n var contentItemsName = $(this).data(\"contentitems-name\");\r\n $.ajax({\r\n url: createEditorUrl + \"?id=\" + type + \"&prefix=\" + prefix + \"&prefixesName=\" + prefixesName + \"&contentTypesName=\" + contentTypesName + \"&contentItemsName=\" + contentItemsName + \"&zonesName=\" + zonesName + \"&zone=\" + zone + \"&targetId=\" + targetId + \"&parentContentType=\" + parentContentType + \"&partName=\" + partName\r\n })\r\n .done(function (data) {\r\n var result = JSON.parse(data);\r\n $(document.getElementById(targetId)).append(result.Content);\r\n\r\n var dom = $(result.Scripts);\r\n dom.filter('script').each(function () {\r\n $.globalEval(this.text || this.textContent || this.innerHTML || '');\r\n });\r\n });\r\n });\r\n\r\n $(document).on('click', '.insert-list-widget', function (event) {\r\n var type = $(this).data(\"widget-type\");\r\n var target = $(this).closest('.widget-template');\r\n var targetId = $(this).data(\"target-id\");\r\n var htmlFieldPrefix = $(this).data(\"html-field-prefix\");\r\n var createEditorUrl = $('#' + targetId).data(\"buildeditorurl\");\r\n var prefixesName = $(this).data(\"prefixes-name\");\r\n var parentContentType = $(this).data(\"parent-content-type\");\r\n var partName = $(this).data(\"part-name\");\r\n var zonesName = $(this).data(\"zones-name\");\r\n var zone = $(this).data(\"zone\");\r\n\r\n // Retrieve all index values knowing that some elements may have been moved / removed.\r\n var indexes = $('#' + targetId).closest(\"form\").find(\"input[name*='Prefixes']\")\r\n .filter(function (i, e) {\r\n return $(e).val().substring(0, $(e).val().lastIndexOf('-')) === htmlFieldPrefix;\r\n })\r\n .map(function (i, e) {\r\n return parseInt($(e).val().substring($(e).val().lastIndexOf('-') + 1)) || 0;\r\n });\r\n\r\n // Use a prefix based on the items count (not a guid) so that the browser autofill still works.\r\n var index = indexes.length ? Math.max(...indexes) + 1 : 0;\r\n var prefix = htmlFieldPrefix + '-' + index.toString();\r\n\r\n var contentTypesName = $(this).data(\"contenttypes-name\");\r\n var contentItemsName = $(this).data(\"contentitems-name\");\r\n $.ajax({\r\n url: createEditorUrl + \"?id=\" + type + \"&prefix=\" + prefix + \"&prefixesName=\" + prefixesName + \"&contentTypesName=\" + contentTypesName + \"&contentItemsName=\" + contentItemsName + \"&zonesName=\" + zonesName + \"&zone=\" + zone + \"&targetId=\" + targetId + \"&parentContentType=\" + parentContentType + \"&partName=\" + partName\r\n })\r\n .done(function (data) {\r\n var result = JSON.parse(data);\r\n $(result.Content).insertBefore(target);\r\n\r\n var dom = $(result.Scripts);\r\n dom.filter('script').each(function () {\r\n $.globalEval(this.text || this.textContent || this.innerHTML || '');\r\n });\r\n });\r\n });\r\n\r\n $(document).on('click', '.widget-list-delete', function () {\r\n var $this = $(this);\r\n confirmDialog(_objectSpread({}, $this.data(), {\r\n callback: function callback(r) {\r\n if (r) {\r\n $this.closest('.widget-template').remove();\r\n $(document).trigger('contentpreview:render');\r\n }\r\n }\r\n }));\r\n });\r\n\r\n $(document).on('change', '.widget-editor-footer label', function () {\r\n $(document).trigger('contentpreview:render');\r\n });\r\n\r\n $(document).on('click', '.widget-list-editor-btn-toggle', function () {\r\n $(this).closest('.widget-editor').toggleClass('collapsed');\r\n });\r\n\r\n});\r\n"],"names":["$","document","on","event","type","data","targetId","htmlFieldPrefix","createEditorUrl","prefixesName","parentContentType","partName","zonesName","zone","indexes","closest","find","filter","i","e","val","substring","lastIndexOf","map","parseInt","prefix","index","length","Math","max","toString","contentTypesName","contentItemsName","ajax","url","done","result","JSON","parse","getElementById","append","Content","dom","Scripts","each","globalEval","text","textContent","innerHTML","target","insertBefore","$this","confirmDialog","_objectSpread","callback","r","remove","trigger","toggleClass"],"mappings":"AAAAA,EAAE,WACEA,EAAEC,UAAUC,EAAE,CAAC,QAAS,mBAAoB,SAAUC,CAAK,EACvD,IAAIC,EAAOJ,EAAE,IAAI,EAAEK,IAAI,CAAC,eACpBC,EAAWN,EAAE,IAAI,EAAEK,IAAI,CA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""],"sourcesContent":["$(function () {\r\n $(document).on('click', '.add-list-widget', function (event) {\r\n var type = $(this).data(\"widget-type\");\r\n var targetId = $(this).data(\"target-id\");\r\n var htmlFieldPrefix = $(this).data(\"html-field-prefix\");\r\n var createEditorUrl = $('#' + targetId).data(\"buildeditorurl\");\r\n var prefixesName = $(this).data(\"prefixes-name\");\r\n var parentContentType = $(this).data(\"parent-content-type\");\r\n var partName = $(this).data(\"part-name\");\r\n var zonesName = $(this).data(\"zones-name\");\r\n var zone = $(this).data(\"zone\");\r\n\r\n // Retrieve all index values knowing that some elements may have been moved / removed.\r\n var indexes = $('#' + targetId).closest(\"form\").find(\"input[name*='Prefixes']\")\r\n .filter(function (i, e) {\r\n return $(e).val().substring(0, $(e).val().lastIndexOf('-')) === htmlFieldPrefix;\r\n })\r\n .map(function (i, e) {\r\n return parseInt($(e).val().substring($(e).val().lastIndexOf('-') + 1)) || 0;\r\n });\r\n\r\n // Use a prefix based on the items count (not a guid) so that the browser autofill still works.\r\n var index = indexes.length ? Math.max(...indexes) + 1 : 0;\r\n var prefix = htmlFieldPrefix + '-' + index.toString();\r\n\r\n var contentTypesName = $(this).data(\"contenttypes-name\");\r\n var contentItemsName = $(this).data(\"contentitems-name\");\r\n $.ajax({\r\n url: createEditorUrl + \"?id=\" + type + \"&prefix=\" + prefix + \"&prefixesName=\" + prefixesName + \"&contentTypesName=\" + contentTypesName + \"&contentItemsName=\" + contentItemsName + \"&zonesName=\" + zonesName + \"&zone=\" + zone + \"&targetId=\" + targetId + \"&parentContentType=\" + parentContentType + \"&partName=\" + partName\r\n })\r\n .done(function (data) {\r\n var result = JSON.parse(data);\r\n $(document.getElementById(targetId)).append(result.Content);\r\n\r\n var dom = $(result.Scripts);\r\n dom.filter('script').each(function () {\r\n $.globalEval(this.text || this.textContent || this.innerHTML || '');\r\n });\r\n });\r\n });\r\n\r\n $(document).on('click', '.insert-list-widget', function (event) {\r\n var type = $(this).data(\"widget-type\");\r\n var target = $(this).closest('.widget-template');\r\n var targetId = $(this).data(\"target-id\");\r\n var htmlFieldPrefix = $(this).data(\"html-field-prefix\");\r\n var createEditorUrl = $('#' + targetId).data(\"buildeditorurl\");\r\n var prefixesName = $(this).data(\"prefixes-name\");\r\n var parentContentType = $(this).data(\"parent-content-type\");\r\n var partName = $(this).data(\"part-name\");\r\n var zonesName = $(this).data(\"zones-name\");\r\n var zone = $(this).data(\"zone\");\r\n\r\n // Retrieve all index values knowing that some elements may have been moved / removed.\r\n var indexes = $('#' + targetId).closest(\"form\").find(\"input[name*='Prefixes']\")\r\n .filter(function (i, e) {\r\n return $(e).val().substring(0, $(e).val().lastIndexOf('-')) === htmlFieldPrefix;\r\n })\r\n .map(function (i, e) {\r\n return parseInt($(e).val().substring($(e).val().lastIndexOf('-') + 1)) || 0;\r\n });\r\n\r\n // Use a prefix based on the items count (not a guid) so that the browser autofill still works.\r\n var index = indexes.length ? Math.max(...indexes) + 1 : 0;\r\n var prefix = htmlFieldPrefix + '-' + index.toString();\r\n\r\n var contentTypesName = $(this).data(\"contenttypes-name\");\r\n var contentItemsName = $(this).data(\"contentitems-name\");\r\n $.ajax({\r\n url: createEditorUrl + \"?id=\" + type + \"&prefix=\" + prefix + \"&prefixesName=\" + prefixesName + \"&contentTypesName=\" + contentTypesName + \"&contentItemsName=\" + contentItemsName + \"&zonesName=\" + zonesName + \"&zone=\" + zone + \"&targetId=\" + targetId + \"&parentContentType=\" + parentContentType + \"&partName=\" + partName\r\n })\r\n .done(function (data) {\r\n var result = JSON.parse(data);\r\n $(result.Content).insertBefore(target);\r\n\r\n var dom = $(result.Scripts);\r\n dom.filter('script').each(function () {\r\n $.globalEval(this.text || this.textContent || this.innerHTML || '');\r\n });\r\n });\r\n });\r\n\r\n $(document).on('click', '.widget-list-delete', function () {\r\n var $this = $(this);\r\n confirmDialog(_objectSpread({}, $this.data(), {\r\n callback: function callback(r) {\r\n if (r) {\r\n $this.closest('.widget-template').remove();\r\n $(document).trigger('contentpreview:render');\r\n }\r\n }\r\n }));\r\n });\r\n\r\n $(document).on('change', '.widget-editor-footer label', function () {\r\n $(document).trigger('contentpreview:render');\r\n });\r\n\r\n $(document).on('click', '.widget-list-editor-btn-toggle', function () {\r\n $(this).closest('.widget-editor').toggleClass('collapsed');\r\n });\r\n\r\n});\r\n"],"names":["$","document","on","event","type","data","targetId","htmlFieldPrefix","createEditorUrl","prefixesName","parentContentType","partName","zonesName","zone","indexes","closest","find","filter","i","e","val","substring","lastIndexOf","map","parseInt","prefix","index","length","Math","max","toString","contentTypesName","contentItemsName","ajax","url","done","result","JSON","parse","getElementById","append","Content","dom","Scripts","each","globalEval","text","textContent","innerHTML","target","insertBefore","$this","confirmDialog","_objectSpread","callback","r","remove","trigger","toggleClass"],"mappings":"AAAAA,EAAE,WACEA,EAAEC,UAAUC,EAAE,CAAC,QAAS,mBAAoB,SAAUC,CAAK,EACvD,IAAIC,EAAOJ,EAAE,IAAI,EAAEK,IAAI,CAAC,eACpBC,EAAWN,EAAE,IAAI,EAAEK,IAAI,CAAC,aACxBE,EAAkBP,EAAE,IAAI,EAAEK,IAAI,CAAC,qBAC/BG,EAAkBR,EAAE,IAAMM,GAAUD,IAAI,CAAC,kBACzCI,EAAeT,EAAE,IAAI,EAAEK,IAAI,CAAC,iBAC5BK,EAAoBV,EAAE,IAAI,EAAEK,IAAI,CAAC,uBACjCM,EAAWX,EAAE,IAAI,EAAEK,IAAI,CAAC,aACxBO,EAAYZ,EAAE,IAAI,EAAEK,IAAI,CAAC,cACzBQ,EAAOb,EAAE,IAAI,EAAEK,IAAI,CAAC,QAGpBS,EAAUd,EAAE,IAAMM,GAAUS,OAAO,CAAC,QAAQC,IAAI,CAAC,2BAChDC,MAAM,CAAC,SAAUC,CAAC,CAAEC,CAAC,EAClB,OAAOnB,EAAEmB,GAAGC,GAAG,GAAGC,SAAS,CAAC,EAAGrB,EAAEmB,GAAGC,GAAG,GAAGE,WAAW,CAAC,QAAUf,CACpE,GACCgB,GAAG,CAAC,SAAUL,CAAC,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