diff --git a/client/dist/js/LeftAndMain.Ping.js b/client/dist/js/LeftAndMain.Ping.js index 6c9d19a74..1c6fdf9d2 100644 --- a/client/dist/js/LeftAndMain.Ping.js +++ b/client/dist/js/LeftAndMain.Ping.js @@ -1 +1 @@ -webpackJsonp([7],{"./client/src/legacy/LeftAndMain.Ping.js":function(n,e,t){"use strict";var i=t(1);(function(n){return n&&n.__esModule?n:{default:n}})(i).default.entwine("ss.ping",function(n){n(".cms-container").entwine({PingIntervalSeconds:300,onadd:function(){this._setupPinging(),this._super()},_setupPinging:function(){var e=null,t=null,i=function(n,i){n.status<400&&0!=n.responseText||(t&&!t.closed||(t=window.open("Security/login"))||(alert("Please enable pop-ups for this site"),clearInterval(e)),t&&t.focus())};e=setInterval(function(){n.ajax({url:"Security/ping",global:!1,type:"POST",complete:i})},1e3*this.getPingIntervalSeconds())}})})}},["./client/src/legacy/LeftAndMain.Ping.js"]); \ No newline at end of file +webpackJsonp([7],{"./client/src/legacy/LeftAndMain.Ping.js":function(n,e,t){"use strict";var i=t(2);(function(n){return n&&n.__esModule?n:{default:n}})(i).default.entwine("ss.ping",function(n){n(".cms-container").entwine({PingIntervalSeconds:300,onadd:function(){this._setupPinging(),this._super()},_setupPinging:function(){var e=null,t=null,i=function(n,i){n.status<400&&0!=n.responseText||(t&&!t.closed||(t=window.open("Security/login"))||(alert("Please enable pop-ups for this site"),clearInterval(e)),t&&t.focus())};e=setInterval(function(){n.ajax({url:"Security/ping",global:!1,type:"POST",complete:i})},1e3*this.getPingIntervalSeconds())}})})}},["./client/src/legacy/LeftAndMain.Ping.js"]); \ No newline at end of file diff --git a/client/dist/js/MemberImportForm.js b/client/dist/js/MemberImportForm.js index 0c4f75c7a..dceb7276f 100644 --- a/client/dist/js/MemberImportForm.js +++ b/client/dist/js/MemberImportForm.js @@ -1 +1 @@ -webpackJsonp([6],{"./client/src/legacy/MemberImportForm.js":function(e,n,t){"use strict";var o=t(1);(function(e){return e&&e.__esModule?e:{default:e}})(o).default.entwine("ss",function(e){e(".import-form .advanced").entwine({onmatch:function(){this._super(),this.hide()},onunmatch:function(){this._super()}}),e(".import-form a.toggle-advanced").entwine({onclick:function(e){return this.parents("form:eq(0)").find(".advanced").toggle(),!1}})})}},["./client/src/legacy/MemberImportForm.js"]); \ No newline at end of file +webpackJsonp([6],{"./client/src/legacy/MemberImportForm.js":function(e,n,t){"use strict";var o=t(2);(function(e){return e&&e.__esModule?e:{default:e}})(o).default.entwine("ss",function(e){e(".import-form .advanced").entwine({onmatch:function(){this._super(),this.hide()},onunmatch:function(){this._super()}}),e(".import-form a.toggle-advanced").entwine({onclick:function(e){return this.parents("form:eq(0)").find(".advanced").toggle(),!1}})})}},["./client/src/legacy/MemberImportForm.js"]); \ No newline at end of file diff --git a/client/dist/js/TinyMCE_sslink-email.js b/client/dist/js/TinyMCE_sslink-email.js index ebe60aeae..e7d8d57c7 100644 --- a/client/dist/js/TinyMCE_sslink-email.js +++ b/client/dist/js/TinyMCE_sslink-email.js @@ -1 +1 @@ -webpackJsonp([2],{"./client/src/legacy/TinyMCE_sslink-email.js":function(e,t,i){"use strict";function n(e){return e&&e.__esModule?e:{default:e}}Object.defineProperty(t,"__esModule",{value:!0});var a=i(2),r=n(a),l=i(13),o=n(l),s=i(0),d=n(s),c=i(7),u=n(c),m=i(1),p=n(m),f=i(19),g=i(6);o.default.addAction("sslink",{text:r.default._t("Admin.LINKLABEL_EMAIL","Link to email address"),onclick:function(e){return e.execCommand("sslinkemail")},priority:51}).addCommandWithUrlTest("sslinkemail",/^mailto:/);var k={init:function(e){e.addCommand("sslinkemail",function(){window.jQuery("#"+e.id).entwine("ss").openLinkEmailDialog()})}},_="insert-link__dialog-wrapper--email",h=(0,g.loadComponent)((0,f.createInsertLinkModal)("SilverStripe\\Admin\\LeftAndMain","EditorEmailLink"));p.default.entwine("ss",function(e){e("textarea.htmleditor").entwine({openLinkEmailDialog:function(){var t=e("#"+_);t.length||(t=e('
'),e("body").append(t)),t.addClass("insert-link__dialog-wrapper"),t.setElement(this),t.open()}}),e("#"+_).entwine({renderModal:function(e){var t=this,i=function(){return t.close()},n=function(){return t.handleInsert.apply(t,arguments)},a=this.getOriginalAttributes(),l=tinymce.activeEditor.selection,o=l.getContent()||"",s=l.getNode().tagName,c="A"!==s&&""===o.trim();u.default.render(d.default.createElement(h,{isOpen:e,onInsert:n,onClosed:i,title:r.default._t("Admin.LINK_EMAIL","Insert email link"),bodyClassName:"modal__dialog",className:"insert-link__dialog-wrapper--email",fileAttributes:a,identifier:"Admin.InsertLinkEmailModal",requireLinkText:c}),this[0])},getOriginalAttributes:function(){var t=this.getElement().getEditor(),i=e(t.getSelectedNode()),n=(i.attr("href")||"").split("?"),a=n[0].replace(/^mailto:/,"").split("?")[0];a.match(/.+@.+\..+/)||(a="");var r=n[1]?n[1].match(/subject=([^&]+)/):"";return{Link:a,Subject:r?decodeURIComponent(r[1]):"",Description:i.attr("title")}},buildAttributes:function(e){var t=this._super(e),i="",n=t.href.replace(/^mailto:/,"").split("?")[0];return n.match(/.+@.+\..+/)||(n=""),n&&(i="mailto:"+n),i&&e.Subject&&(i=i+"?subject="+encodeURIComponent(e.Subject)),t.href=i,delete t.target,t}})}),tinymce.PluginManager.add("sslinkemail",function(e){return k.init(e)}),t.default=k},13:function(e,t){e.exports=TinyMCEActionRegistrar},19:function(e,t){e.exports=InsertLinkModal},2:function(e,t){e.exports=i18n},6:function(e,t){e.exports=Injector}},["./client/src/legacy/TinyMCE_sslink-email.js"]); \ No newline at end of file +webpackJsonp([2],{"./client/src/legacy/TinyMCE_sslink-email.js":function(e,t,i){"use strict";function n(e){return e&&e.__esModule?e:{default:e}}Object.defineProperty(t,"__esModule",{value:!0});var a=i(3),r=n(a),l=i(14),o=n(l),s=i(0),d=n(s),c=i(8),u=n(c),m=i(2),p=n(m),f=i(20),g=i(7);o.default.addAction("sslink",{text:r.default._t("Admin.LINKLABEL_EMAIL","Link to email address"),onclick:function(e){return e.execCommand("sslinkemail")},priority:51}).addCommandWithUrlTest("sslinkemail",/^mailto:/);var k={init:function(e){e.addCommand("sslinkemail",function(){window.jQuery("#"+e.id).entwine("ss").openLinkEmailDialog()})}},_="insert-link__dialog-wrapper--email",h=(0,g.loadComponent)((0,f.createInsertLinkModal)("SilverStripe\\Admin\\LeftAndMain","EditorEmailLink"));p.default.entwine("ss",function(e){e("textarea.htmleditor").entwine({openLinkEmailDialog:function(){var t=e("#"+_);t.length||(t=e('
'),e("body").append(t)),t.addClass("insert-link__dialog-wrapper"),t.setElement(this),t.open()}}),e("#"+_).entwine({renderModal:function(e){var t=this,i=function(){return t.close()},n=function(){return t.handleInsert.apply(t,arguments)},a=this.getOriginalAttributes(),l=tinymce.activeEditor.selection,o=l.getContent()||"",s=l.getNode().tagName,c="A"!==s&&""===o.trim();u.default.render(d.default.createElement(h,{isOpen:e,onInsert:n,onClosed:i,title:r.default._t("Admin.LINK_EMAIL","Insert email link"),bodyClassName:"modal__dialog",className:"insert-link__dialog-wrapper--email",fileAttributes:a,identifier:"Admin.InsertLinkEmailModal",requireLinkText:c}),this[0])},getOriginalAttributes:function(){var t=this.getElement().getEditor(),i=e(t.getSelectedNode()),n=(i.attr("href")||"").split("?"),a=n[0].replace(/^mailto:/,"").split("?")[0];a.match(/.+@.+\..+/)||(a="");var r=n[1]?n[1].match(/subject=([^&]+)/):"";return{Link:a,Subject:r?decodeURIComponent(r[1]):"",Description:i.attr("title")}},buildAttributes:function(e){var t=this._super(e),i="",n=t.href.replace(/^mailto:/,"").split("?")[0];return n.match(/.+@.+\..+/)||(n=""),n&&(i="mailto:"+n),i&&e.Subject&&(i=i+"?subject="+encodeURIComponent(e.Subject)),t.href=i,delete t.target,t}})}),tinymce.PluginManager.add("sslinkemail",function(e){return k.init(e)}),t.default=k},14:function(e,t){e.exports=TinyMCEActionRegistrar},20:function(e,t){e.exports=InsertLinkModal},3:function(e,t){e.exports=i18n},7:function(e,t){e.exports=Injector}},["./client/src/legacy/TinyMCE_sslink-email.js"]); \ No newline at end of file diff --git a/client/dist/js/TinyMCE_sslink-external.js b/client/dist/js/TinyMCE_sslink-external.js index 6c73809ed..1adebfa80 100644 --- a/client/dist/js/TinyMCE_sslink-external.js +++ b/client/dist/js/TinyMCE_sslink-external.js @@ -1 +1 @@ -webpackJsonp([1],{"./client/src/legacy/TinyMCE_sslink-external.js":function(e,n,t){"use strict";function i(e){return e&&e.__esModule?e:{default:e}}Object.defineProperty(n,"__esModule",{value:!0});var r=t(2),a=i(r),l=t(13),o=i(l),s=t(0),d=i(s),c=t(7),u=i(c),f=t(1),p=i(f),m=t(19),x=t(6);o.default.addAction("sslink",{text:a.default._t("Admin.LINKLABEL_EXTERNALURL","Link to external URL"),onclick:function(e){return e.execCommand("sslinkexternal")},priority:52});var k={init:function(e){e.addCommand("sslinkexternal",function(){window.jQuery("#"+e.id).entwine("ss").openLinkExternalDialog()})}},_="insert-link__dialog-wrapper--external",g=(0,x.loadComponent)((0,m.createInsertLinkModal)("SilverStripe\\Admin\\LeftAndMain","EditorExternalLink"));p.default.entwine("ss",function(e){e("textarea.htmleditor").entwine({openLinkExternalDialog:function(){var n=e("#"+_);n.length||(n=e('
'),e("body").append(n)),n.addClass("insert-link__dialog-wrapper"),n.setElement(this),n.open()}}),e("#"+_).entwine({renderModal:function(e){var n=this,t=function(){return n.close()},i=function(){return n.handleInsert.apply(n,arguments)},r=this.getOriginalAttributes(),l=tinymce.activeEditor.selection,o=l.getContent()||"",s=l.getNode().tagName,c="A"!==s&&""===o.trim();u.default.render(d.default.createElement(g,{isOpen:e,onInsert:i,onClosed:t,title:a.default._t("Admin.LINK_EXTERNAL","Insert external link"),bodyClassName:"modal__dialog",className:"insert-link__dialog-wrapper--external",fileAttributes:r,identifier:"Admin.InsertLinkExternalModal",requireLinkText:c}),this[0])},buildAttributes:function(e){var n=this._super(e),t=n.href;return t.match(/:\/\//)||(t=window.location.protocol+"//"+t),t=t.replace(/.*:\/\/(#.*)$/,"$1"),t.match(/:\/\/$/)&&(t=""),n.href=t,n}})}),tinymce.PluginManager.add("sslinkexternal",function(e){return k.init(e)}),n.default=k},13:function(e,n){e.exports=TinyMCEActionRegistrar},19:function(e,n){e.exports=InsertLinkModal},2:function(e,n){e.exports=i18n},6:function(e,n){e.exports=Injector}},["./client/src/legacy/TinyMCE_sslink-external.js"]); \ No newline at end of file +webpackJsonp([1],{"./client/src/legacy/TinyMCE_sslink-external.js":function(e,n,t){"use strict";function i(e){return e&&e.__esModule?e:{default:e}}Object.defineProperty(n,"__esModule",{value:!0});var r=t(3),a=i(r),l=t(14),o=i(l),s=t(0),d=i(s),c=t(8),u=i(c),f=t(2),p=i(f),m=t(20),x=t(7);o.default.addAction("sslink",{text:a.default._t("Admin.LINKLABEL_EXTERNALURL","Link to external URL"),onclick:function(e){return e.execCommand("sslinkexternal")},priority:52});var k={init:function(e){e.addCommand("sslinkexternal",function(){window.jQuery("#"+e.id).entwine("ss").openLinkExternalDialog()})}},_="insert-link__dialog-wrapper--external",g=(0,x.loadComponent)((0,m.createInsertLinkModal)("SilverStripe\\Admin\\LeftAndMain","EditorExternalLink"));p.default.entwine("ss",function(e){e("textarea.htmleditor").entwine({openLinkExternalDialog:function(){var n=e("#"+_);n.length||(n=e('
'),e("body").append(n)),n.addClass("insert-link__dialog-wrapper"),n.setElement(this),n.open()}}),e("#"+_).entwine({renderModal:function(e){var n=this,t=function(){return n.close()},i=function(){return n.handleInsert.apply(n,arguments)},r=this.getOriginalAttributes(),l=tinymce.activeEditor.selection,o=l.getContent()||"",s=l.getNode().tagName,c="A"!==s&&""===o.trim();u.default.render(d.default.createElement(g,{isOpen:e,onInsert:i,onClosed:t,title:a.default._t("Admin.LINK_EXTERNAL","Insert external link"),bodyClassName:"modal__dialog",className:"insert-link__dialog-wrapper--external",fileAttributes:r,identifier:"Admin.InsertLinkExternalModal",requireLinkText:c}),this[0])},buildAttributes:function(e){var n=this._super(e),t=n.href;return t.match(/:\/\//)||(t=window.location.protocol+"//"+t),t=t.replace(/.*:\/\/(#.*)$/,"$1"),t.match(/:\/\/$/)&&(t=""),n.href=t,n}})}),tinymce.PluginManager.add("sslinkexternal",function(e){return k.init(e)}),n.default=k},14:function(e,n){e.exports=TinyMCEActionRegistrar},20:function(e,n){e.exports=InsertLinkModal},3:function(e,n){e.exports=i18n},7:function(e,n){e.exports=Injector}},["./client/src/legacy/TinyMCE_sslink-external.js"]); \ No newline at end of file diff --git a/client/dist/js/TinyMCE_sslink.js b/client/dist/js/TinyMCE_sslink.js index 4653dddc4..7f4f4ebe4 100644 --- a/client/dist/js/TinyMCE_sslink.js +++ b/client/dist/js/TinyMCE_sslink.js @@ -1 +1 @@ -webpackJsonp([3],{"./client/src/components/TinymceInlineToolbar/TinymceInlineToolbar.js":function(t,e,n){"use strict";function o(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}function i(t,e,n){var o=Array.isArray(n)?n:[n||""];return Boolean(t&&o.map(function(t){return String(t)}).map(function(t){return t.toLowerCase()}).includes((t.tagName||"").toLowerCase())&&e)}function r(t,e){function n(){i(l,s,o)&&(r.hide(),clearTimeout(a),a=setTimeout(function(){r.show(),r.reposition(l)},300))}var o=arguments.length>2&&void 0!==arguments[2]?arguments[2]:["a"],r=new c(t,e),l=null,a=null,s=!1;return r.hide().renderTo(window.document.body),t.on("remove",function(){r.remove()}),t.on("focus",function(){s=!0}),t.on("blur hide",function(){r.hide(),s=!1}),t.on("nodechange",function(e){var n={element:e.element,parents:e.parents,collapsed:t.selection.isCollapsed()};l=n.selection||n.element,i(l,s,o)?(r.show(),r.reposition(l)):r.hide()}),window.addEventListener("scroll",function(e){e.target.contains(document.querySelector("#"+t.id))&&n()},!0),t.contentDocument.addEventListener("scroll",n),r}Object.defineProperty(e,"__esModule",{value:!0});var l=function(){function t(t,e){for(var n=0;n=k||b>=k?this.hide():(this.bottom?b>=d?(y=" mce-arrow-up",w=s.bottom+r.top+n+10):p>=d&&(y=" mce-arrow-down",w=s.top+r.top+n-a-8):p>=d?(y=" mce-arrow-down",w=s.top+r.top+n-a-8):b>=d&&k/2>s.bottom+r.top-h&&(y=" mce-arrow-up",w=s.bottom+r.top+n+10),void 0===w&&(w=n+h+5),v=u-c/2+r.left+e,s.left<0||s.right>r.width?v=r.left+e+(r.width-c)/2:c>=o?(y+=" mce-arrow-full",v=0):v<0&&s.left+c>o||v+c>o&&s.right-c<0?v=(o-c)/2:vr.width+r.left+e&&(y+=" mce-arrow-right",v=s.right-c+r.left+e),l.className=l.className.replace(/ ?mce-arrow-[\w]+/g,"")+y,this.setStyles({left:v,top:w}),this)}}]),t}();e.default=c,e.setupTinyMceInlineToolbar=r,e.shouldShowToolbar=i},"./client/src/legacy/TinyMCE_sslink.js":function(t,e,n){"use strict";function o(t){return t&&t.__esModule?t:{default:t}}Object.defineProperty(e,"__esModule",{value:!0});var i=n(13),r=o(i),l=n(7),c=o(l),a=n(1),s=o(a),u=n("./client/src/components/TinymceInlineToolbar/TinymceInlineToolbar.js"),d={init:function(t){function e(){var e=tinymce.activeEditor.selection.getNode(),n=e.getAttribute("href");n&&t.execCommand(r.default.getEditorCommandFromUrl(n))}var n=r.default.getSortedActions("sslink").map(function(e){return Object.assign({},e,{onclick:function(){return e.onclick(t)}})}),o=navigator.platform.toUpperCase().includes("MAC")?"⌘":"Ctrl";t.addButton("sslink",{icon:"link",title:"Insert Link ["+o+" + k]",type:"menubutton",menu:n}),t.addMenuItem("sslink",{icon:"link",text:"Insert Link",menu:n}),t.addShortcut("Meta+k","Open link menu",function(){(0,s.default)('[aria-label^="Insert Link"] > button',t.container).first().click()}),t.on("preinit",function(){(0,u.setupTinyMceInlineToolbar)(t,[{type:"button",onClick:e,text:"Edit link"},{type:"button",onClick:function(){return t.execCommand("unlink")},text:"Remove link"}])})}};s.default.entwine("ss",function(t){t(".insert-link__dialog-wrapper").entwine({Element:null,Data:{},Bookmark:null,onunmatch:function(){this._clearModal()},_clearModal:function(){c.default.unmountComponentAtNode(this[0])},open:function(){var t=this.getElement().getEditor().getInstance();this.setBookmark(t.selection.getBookmark(2,!0)),this.renderModal(!0)},close:function(){this.setData({}),this.renderModal(!1)},renderModal:function(){},handleInsert:function(t){this.getElement().getEditor().getInstance().selection.moveToBookmark(this.getBookmark());var e=this.buildAttributes(t);return this.insertLinkInEditor(e,t.Text),this.close(),Promise.resolve()},buildAttributes:function(t){var e=t.Anchor&&t.Anchor.length?"#"+t.Anchor:"";return{href:""+t.Link+e,target:t.TargetBlank?"_blank":"",title:t.Description}},insertLinkInEditor:function(t,e){var n=this.getElement().getEditor();n.insertLink(t,null,e),n.addUndo(),n.repaint();var o=n.getInstance(),i=o.selection;setTimeout(function(){return i&&i.collapse()},0)},getOriginalAttributes:function(){var e=this.getElement().getEditor(),n=t(e.getSelectedNode()),o=(n.attr("href")||"").split("#");return{Link:o[0]||"",Anchor:o[1]||"",Description:n.attr("title"),TargetBlank:!!n.attr("target")}}})}),tinymce.PluginManager.add("sslink",function(t){return d.init(t)}),e.default=d},13:function(t,e){t.exports=TinyMCEActionRegistrar}},["./client/src/legacy/TinyMCE_sslink.js"]); \ No newline at end of file +webpackJsonp([3],{"./client/src/components/TinymceInlineToolbar/TinymceInlineToolbar.js":function(t,e,n){"use strict";function o(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}function i(t,e,n){var o=Array.isArray(n)?n:[n||""];return Boolean(t&&o.map(function(t){return String(t)}).map(function(t){return t.toLowerCase()}).includes((t.tagName||"").toLowerCase())&&e)}function r(t,e){function n(){i(l,s,o)&&(r.hide(),clearTimeout(a),a=setTimeout(function(){r.show(),r.reposition(l)},300))}var o=arguments.length>2&&void 0!==arguments[2]?arguments[2]:["a"],r=new c(t,e),l=null,a=null,s=!1;return r.hide().renderTo(window.document.body),t.on("remove",function(){r.remove()}),t.on("focus",function(){s=!0}),t.on("blur hide",function(){r.hide(),s=!1}),t.on("nodechange",function(e){var n={element:e.element,parents:e.parents,collapsed:t.selection.isCollapsed()};l=n.selection||n.element,i(l,s,o)?(r.show(),r.reposition(l)):r.hide()}),window.addEventListener("scroll",function(e){e.target.contains(document.querySelector("#"+t.id))&&n()},!0),t.contentDocument.addEventListener("scroll",n),r}Object.defineProperty(e,"__esModule",{value:!0});var l=function(){function t(t,e){for(var n=0;n=k||b>=k?this.hide():(this.bottom?b>=d?(y=" mce-arrow-up",w=s.bottom+r.top+n+10):p>=d&&(y=" mce-arrow-down",w=s.top+r.top+n-a-8):p>=d?(y=" mce-arrow-down",w=s.top+r.top+n-a-8):b>=d&&k/2>s.bottom+r.top-h&&(y=" mce-arrow-up",w=s.bottom+r.top+n+10),void 0===w&&(w=n+h+5),v=u-c/2+r.left+e,s.left<0||s.right>r.width?v=r.left+e+(r.width-c)/2:c>=o?(y+=" mce-arrow-full",v=0):v<0&&s.left+c>o||v+c>o&&s.right-c<0?v=(o-c)/2:vr.width+r.left+e&&(y+=" mce-arrow-right",v=s.right-c+r.left+e),l.className=l.className.replace(/ ?mce-arrow-[\w]+/g,"")+y,this.setStyles({left:v,top:w}),this)}}]),t}();e.default=c,e.setupTinyMceInlineToolbar=r,e.shouldShowToolbar=i},"./client/src/legacy/TinyMCE_sslink.js":function(t,e,n){"use strict";function o(t){return t&&t.__esModule?t:{default:t}}Object.defineProperty(e,"__esModule",{value:!0});var i=n(14),r=o(i),l=n(8),c=o(l),a=n(2),s=o(a),u=n("./client/src/components/TinymceInlineToolbar/TinymceInlineToolbar.js"),d={init:function(t){function e(){var e=tinymce.activeEditor.selection.getNode(),n=e.getAttribute("href");n&&t.execCommand(r.default.getEditorCommandFromUrl(n))}var n=r.default.getSortedActions("sslink").map(function(e){return Object.assign({},e,{onclick:function(){return e.onclick(t)}})}),o=navigator.platform.toUpperCase().includes("MAC")?"⌘":"Ctrl";t.addButton("sslink",{icon:"link",title:"Insert Link ["+o+" + k]",type:"menubutton",menu:n}),t.addMenuItem("sslink",{icon:"link",text:"Insert Link",menu:n}),t.addShortcut("Meta+k","Open link menu",function(){(0,s.default)('[aria-label^="Insert Link"] > button',t.container).first().click()}),t.on("preinit",function(){(0,u.setupTinyMceInlineToolbar)(t,[{type:"button",onClick:e,text:"Edit link"},{type:"button",onClick:function(){return t.execCommand("unlink")},text:"Remove link"}])})}};s.default.entwine("ss",function(t){t(".insert-link__dialog-wrapper").entwine({Element:null,Data:{},Bookmark:null,onunmatch:function(){this._clearModal()},_clearModal:function(){c.default.unmountComponentAtNode(this[0])},open:function(){var t=this.getElement().getEditor().getInstance();this.setBookmark(t.selection.getBookmark(2,!0)),this.renderModal(!0)},close:function(){this.setData({}),this.renderModal(!1)},renderModal:function(){},handleInsert:function(t){this.getElement().getEditor().getInstance().selection.moveToBookmark(this.getBookmark());var e=this.buildAttributes(t);return this.insertLinkInEditor(e,t.Text),this.close(),Promise.resolve()},buildAttributes:function(t){var e=t.Anchor&&t.Anchor.length?"#"+t.Anchor:"";return{href:""+t.Link+e,target:t.TargetBlank?"_blank":"",title:t.Description}},insertLinkInEditor:function(t,e){var n=this.getElement().getEditor();n.insertLink(t,null,e),n.addUndo(),n.repaint();var o=n.getInstance(),i=o.selection;setTimeout(function(){return i&&i.collapse()},0)},getOriginalAttributes:function(){var e=this.getElement().getEditor(),n=t(e.getSelectedNode()),o=(n.attr("href")||"").split("#");return{Link:o[0]||"",Anchor:o[1]||"",Description:n.attr("title"),TargetBlank:!!n.attr("target")}}})}),tinymce.PluginManager.add("sslink",function(t){return d.init(t)}),e.default=d},14:function(t,e){t.exports=TinyMCEActionRegistrar}},["./client/src/legacy/TinyMCE_sslink.js"]); \ No newline at end of file diff --git a/client/dist/js/bundle.js b/client/dist/js/bundle.js index e074ca2f9..7804dfd2c 100644 --- a/client/dist/js/bundle.js +++ b/client/dist/js/bundle.js @@ -1 +1 @@ -webpackJsonp([0],{"./client/src/boot/BootRoutes.js":function(e,t,n){"use strict";function r(e){return e&&e.__esModule?e:{default:e}}function o(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}Object.defineProperty(t,"__esModule",{value:!0});var i=function(){function e(e,t){for(var n=0;n0}},{key:"handleBeforeUnload",value:function(){if(this.shouldConfirmBeforeUnload())return S.default._t("Admin.CONFIRMUNSAVEDSHORT","WARNING: Your changes have not been saved.")}},{key:"handleBeforeRoute",value:function(){if(this.shouldConfirmBeforeUnload())return S.default._t("Admin.CONFIRMUNSAVED","Are you sure you want to navigate away\n from this page?\n\nWARNING: Your changes have not been saved.\n\n\n Press OK to continue, or Cancel to stay on the current page.")}}]),e}();t.default=M},"./client/src/boot/apollo/buildCache.js":function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var r=n("./node_modules/apollo-cache-inmemory/lib/index.js"),o=n("./client/src/boot/apollo/dataIdFromObject.js"),i=function(e){return e&&e.__esModule?e:{default:e}}(o),s=function(e){return new r.InMemoryCache({fragmentMatcher:e?new r.IntrospectionFragmentMatcher({introspectionQueryResultData:e}):null,dataIdFromObject:i.default,addTypename:!0})};t.default=s},"./client/src/boot/apollo/buildClient.js":function(e,t,n){"use strict";function r(e){return e&&e.__esModule?e:{default:e}}function o(e){if(Array.isArray(e)){for(var t=0,n=Array(e.length);t=0&&e.__typename?e.__typename+":"+t:null};t.default=r},"./client/src/boot/apollo/getGraphqlFragments.js":function(e,t,n){"use strict";function r(e){return function(){var t=e.apply(this,arguments);return new Promise(function(e,n){function r(o,i){try{var s=t[o](i),a=s.value}catch(e){return void n(e)}if(!s.done)return Promise.resolve(a).then(function(e){r("next",e)},function(e){r("throw",e)});e(a)}return r("next")})}}Object.defineProperty(t,"__esModule",{value:!0});var o=n(15),i=function(e){return e&&e.__esModule?e:{default:e}}(o),s=function(e){var t=e.data;return t.__schema.types=t.__schema.types.filter(function(e){return null!==e.possibleTypes}),t},a=function(e){if(!e.ok)throw new Error("The types.graphql file could not be loaded. You probably need to run a ?flush to generate it.\n Alternatively, you can use the IntrospectionProvider extension to generate the file dynamically.\n More information: https://github.com/silverstripe/silverstripe-graphql/#schema-introspection");return e},l=function(){var e=r(regeneratorRuntime.mark(function e(t){var n,o,l,c,u,d,p=!(arguments.length>1&&void 0!==arguments[1])||arguments[1];return regeneratorRuntime.wrap(function(e){for(;;)switch(e.prev=e.next){case 0:return n=[t+"assets/admin.types.graphql",t+"admin/graphql/types"],p||n.reverse(),o=n[0],l=n[1],c={method:"GET",headers:{"Content-Type":"application/json"},uri:""+t,credentials:"same-origin"},u=function(){var e=r(regeneratorRuntime.mark(function e(t){return regeneratorRuntime.wrap(function(e){for(;;)switch(e.prev=e.next){case 0:return e.abrupt("return",(0,i.default)(t,c).then(a).then(function(e){return e.json()}).then(s));case 1:case"end":return e.stop()}},e,void 0)}));return function(t){return e.apply(this,arguments)}}(),d=void 0,e.prev=6,e.next=9,u(o);case 9:d=e.sent,e.next=23;break;case 12:return e.prev=12,e.t0=e.catch(6),e.prev=14,e.next=17,u(l);case 17:d=e.sent,e.next=23;break;case 20:return e.prev=20,e.t1=e.catch(14),e.abrupt("return",Promise.reject(e.t1));case 23:return e.abrupt("return",Promise.resolve(d));case 24:case"end":return e.stop()}},e,void 0,[[6,12],[14,20]])}));return function(t){return e.apply(this,arguments)}}();t.default=l},"./client/src/boot/applyDevtools.js":function(e,t,n){"use strict";function r(e){var t=window.__REDUX_DEVTOOLS_EXTENSION_COMPOSE__,n=window.__REDUX_DEVTOOLS_EXTENSION__||window.devToolsExtension;return"function"==typeof t?t(e):"function"==typeof n?(0,o.compose)(e,n()):e}Object.defineProperty(t,"__esModule",{value:!0}),t.default=r;var o=n(8)},"./client/src/boot/applyTransforms.js":function(e,t,n){"use strict";function r(e){return e&&e.__esModule?e:{default:e}}function o(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}Object.defineProperty(t,"__esModule",{value:!0});var i=Object.assign||function(e){for(var t=1;t1&&void 0!==arguments[1]&&arguments[1],n=e.extraClass?e.extraClass.split(" ").reduce(function(e,t){return i({},e,o({},t,!0))},{}):{};"string"==typeof e.data.pristineClass&&(n[e.data.pristineClass]=t),"string"==typeof e.data.dirtyClass&&(n[e.data.dirtyClass]=!t);var r=t?e.data.pristineTitle:e.data.dirtyTitle,s=t?e.data.pristineIcon:e.data.dirtyIcon;return i({},e,{title:r||e.title,icon:s||e.icon,extraClass:(0,d.default)(n)})},y=function(){a.default.transform("field-holders",function(e){["FieldGroup"].forEach(function(t){return e.component("FieldGroup",h.default,t+"Holder")})}),a.default.transform("form-action-changed",function(e){e.form.alterSchema("*",function(e){return e.mutateField("action_save",function(t){var n=e.isPristine();return m(t,n)}),e.mutateField("action_publish",function(t){var n=t.data.isPublished&&!t.data.isModified&&e.isPristine();return m(t,n)}),e.getState()})}),a.default.transform("schema-validation",function(e){e.form.addValidation("*",function(e,t,n){var r=new c.default(e),s=Object.keys(e).reduce(function(e,t){var s=(0,p.findField)(n.fields,t),a=r.validateFieldSchema(s),l=a.valid,c=a.errors;return l?e:i({},e,o({},t,c))},{});return t.addErrors(s),t.getState()})})};t.default=y},"./client/src/boot/index.js":function(e,t,n){"use strict";function r(e){return e&&e.__esModule?e:{default:e}}function o(e){return function(){var t=e.apply(this,arguments);return new Promise(function(e,n){function r(o,i){try{var s=t[o](i),a=s.value}catch(e){return void n(e)}if(!s.done)return Promise.resolve(a).then(function(e){r("next",e)},function(e){r("throw",e)});e(a)}return r("next")})}}var i=function(){var e=o(regeneratorRuntime.mark(function e(){var t,n,r,o,i,s,l;return regeneratorRuntime.wrap(function(e){for(;;)switch(e.prev=e.next){case 0:return t=h.default.get("absoluteBaseUrl"),e.next=3,(0,y.default)(t);case 3:n=e.sent,(0,v.default)(),(0,j.default)(),r=[p.default],o=h.default.get("debugging"),i=u.applyMiddleware.apply(void 0,r),o&&(i=(0,T.default)(i)),s=i(u.createStore),window.ss.apolloClient=n,l=new a.default(null,n),(0,P.default)(),c.default.ready(function(){var e=(0,u.combineReducers)(c.default.reducer.getAll()),t=s(e,{});t.dispatch((0,b.setConfig)(h.default.getAll())),c.default.reducer.setStore(t),window.ss.store=t,l.setStore(t),l.start(window.location.pathname),window.jQuery&&window.jQuery("body").addClass("js-react-boot").addClass("js-injector-boot")}),window.setTimeout(function(){return c.default.load()},0);case 16:case"end":return e.stop()}},e,this)}));return function(){return e.apply(this,arguments)}}(),s=n("./client/src/boot/BootRoutes.js"),a=r(s),l=n(6),c=r(l),u=n(8),d=n(49),p=r(d),f=n(22),h=r(f),m=n("./client/src/boot/apollo/buildClient.js"),y=r(m),b=n("./client/src/state/config/ConfigActions.js"),g=n("./client/src/boot/registerComponents.js"),v=r(g),_=n("./client/src/boot/registerReducers.js"),j=r(_),w=n("./client/src/boot/applyDevtools.js"),T=r(w),O=n("./client/src/boot/applyTransforms.js"),P=r(O);window.ss=window.ss||{},window.onload=i},"./client/src/boot/registerComponents.js":function(e,t,n){"use strict";function r(e){return e&&e.__esModule?e:{default:e}}Object.defineProperty(t,"__esModule",{value:!0});var o=n(10),i=n(6),s=r(i),a=n("./client/src/components/ActionMenu/ActionMenu.js"),l=r(a),c=n(35),u=r(c),d=n("./client/src/components/TextField/TextField.js"),p=r(d),f=n("./client/src/components/HiddenField/HiddenField.js"),h=r(f),m=n("./client/src/components/DateField/DateField.js"),y=r(m),b=n("./client/src/components/TimeField/TimeField.js"),g=r(b),v=n("./client/src/components/DatetimeField/DatetimeField.js"),_=r(v),j=n("./client/src/components/CheckboxField/CheckboxField.js"),w=r(j),T=n("./client/src/components/CheckboxSetField/CheckboxSetField.js"),O=r(T),P=n("./client/src/components/OptionsetField/OptionsetField.js"),E=r(P),C=n(40),x=r(C),S=n("./client/src/components/GridFieldActions/GridFieldActions.js"),k=r(S),F=n("./client/src/components/SingleSelectField/SingleSelectField.js"),D=r(F),M=n("./client/src/components/PopoverField/PopoverField.js"),A=r(M),R=n("./client/src/components/HeaderField/HeaderField.js"),I=r(R),N=n(41),L=r(N),B=n("./client/src/components/HtmlReadonlyField/HtmlReadonlyField.js"),U=r(B),H=n("./client/src/components/LookupField/LookupField.js"),V=r(H),G=n("./client/src/components/CompositeField/CompositeField.js"),q=r(G),z=n("./client/src/components/LabelField/LabelField.js"),$=r(z),W=n("./client/src/components/Tabs/Tabs.js"),K=r(W),X=n("./client/src/components/Tabs/TabItem.js"),Y=r(X),Q=n(37),J=r(Q),Z=n("./client/src/components/FieldGroup/FieldGroup.js"),ee=r(Z),te=n(33),ne=r(te),re=n(30),oe=r(re),ie=n("./client/src/components/NotFoundComponent/NotFoundComponent.js"),se=r(ie),ae=n("./client/src/components/Form/Form.js"),le=r(ae),ce=n(20),ue=r(ce),de=n(44),pe=r(de),fe=n("./client/src/containers/Form/Form.js"),he=r(fe),me=n("./client/src/components/UsedOnTable/UsedOnTable.js"),ye=r(me),be=n(42),ge=r(be),ve=n(54),_e=r(ve),je=n(24),we=r(je),Te=n(25),Oe=r(Te),Pe=n(32),Ee=r(Pe),Ce=n(28),xe=r(Ce),Se=n(51),ke=r(Se),Fe=n(52),De=r(Fe),Me=n("./client/src/components/HtmlEditorField/HtmlEditorField.js"),Ae=r(Me);t.default=function(){s.default.component.registerMany({ActionMenu:l.default,Badge:u.default,TextField:p.default,HiddenField:h.default,DateField:y.default,TimeField:g.default,DatetimeField:_.default,CheckboxField:w.default,CheckboxSetField:O.default,OptionsetField:E.default,GridField:x.default,GridFieldActions:k.default,FieldGroup:ee.default,SingleSelectField:D.default,PopoverField:A.default,HeaderField:I.default,LiteralField:L.default,HtmlReadonlyField:U.default,LookupField:V.default,CompositeField:q.default,Tabs:K.default,TabItem:Y.default,FormAction:J.default,LabelField:$.default,TreeDropdownField:ne.default,Preview:pe.default,ReduxForm:he.default,ReduxFormField:o.Field,Form:le.default,FormAlert:ue.default,FormBuilderModal:oe.default,NotFoundComponent:se.default,UsedOnTable:ye.default,Loading:ge.default,ViewModeToggle:_e.default,ResizeAware:we.default,Tag:Oe.default,TagList:Ee.default,CompactTagList:xe.default,Search:ke.default,SearchToggle:De.default,HtmlEditorField:Ae.default})}},"./client/src/boot/registerReducers.js":function(e,t,n){"use strict";function r(e){return e&&e.__esModule?e:{default:e}}Object.defineProperty(t,"__esModule",{value:!0});var o=Object.assign||function(e){for(var t=1;t0&&void 0!==arguments[0]?arguments[0]:{},t=(0,a.combineReducers)({formState:l.reducer,formSchemas:f.default});s.default.reducer.registerMany(o({config:d.default,form:t,records:m.default,breadcrumbs:b.default,routing:c.routerReducer,treeDropdownField:v.default,mobileMenu:j.default,unsavedForms:T.default,usedOn:P.default,viewMode:S.default},e)),s.default.transform("admin",function(e){e.reducer("form",C.default)})}},"./client/src/bundles/bundle.js":function(e,t,n){"use strict";n("./client/src/i18n.js"),n("./node_modules/expose-loader/index.js?SilverStripeComponent!./client/src/lib/SilverStripeComponent.js-exposed"),n("./node_modules/expose-loader/index.js?Backend!./client/src/lib/Backend.js-exposed"),n("./node_modules/expose-loader/index.js?schemaFieldValues!./client/src/lib/schemaFieldValues.js-exposed"),n("./node_modules/expose-loader/index.js?FormAlert!./client/src/components/FormAlert/FormAlert.js-exposed"),n("./node_modules/expose-loader/index.js?Injector!./client/src/lib/Injector.js-exposed"),n("./node_modules/expose-loader/index.js?reduxFieldReducer!./client/src/lib/reduxFieldReducer.js-exposed"),n("./node_modules/expose-loader/index.js?getFormState!./client/src/lib/getFormState.js-exposed"),n("./node_modules/expose-loader/index.js?PopoverField!./client/src/components/PopoverField/PopoverField.js-exposed"),n("./node_modules/expose-loader/index.js?FieldHolder!./client/src/components/FieldHolder/FieldHolder.js-exposed"),n("./node_modules/expose-loader/index.js?Form!./client/src/components/Form/Form.js-exposed"),n("./node_modules/expose-loader/index.js?FormConstants!./client/src/components/Form/FormConstants.js-exposed"),n("./node_modules/expose-loader/index.js?FormAction!./client/src/components/FormAction/FormAction.js-exposed"),n("./node_modules/expose-loader/index.js?SchemaActions!./client/src/state/schema/SchemaActions.js-exposed"),n("./node_modules/expose-loader/index.js?FormBuilder!./client/src/components/FormBuilder/FormBuilder.js-exposed"),n("./node_modules/expose-loader/index.js?FormBuilderLoader!./client/src/containers/FormBuilderLoader/FormBuilderLoader.js-exposed"),n("./node_modules/expose-loader/index.js?FormBuilderModal!./client/src/components/FormBuilderModal/FormBuilderModal.js-exposed"),n("./node_modules/expose-loader/index.js?FileSchemaModalHandler!./client/src/containers/InsertLinkModal/fileSchemaModalHandler.js-exposed"),n("./node_modules/expose-loader/index.js?InsertLinkModal!./client/src/containers/InsertLinkModal/InsertLinkModal.js-exposed"),n("./node_modules/expose-loader/index.js?RecordsActions!./client/src/state/records/RecordsActions.js-exposed"),n("./node_modules/expose-loader/index.js?GridField!./client/src/components/GridField/GridField.js-exposed"),n("./node_modules/expose-loader/index.js?GridFieldCell!./client/src/components/GridField/GridFieldCell.js-exposed"),n("./node_modules/expose-loader/index.js?GridFieldHeader!./client/src/components/GridField/GridFieldHeader.js-exposed"),n("./node_modules/expose-loader/index.js?GridFieldHeaderCell!./client/src/components/GridField/GridFieldHeaderCell.js-exposed"),n("./node_modules/expose-loader/index.js?GridFieldRow!./client/src/components/GridField/GridFieldRow.js-exposed"),n("./node_modules/expose-loader/index.js?GridFieldTable!./client/src/components/GridField/GridFieldTable.js-exposed"),n("./node_modules/expose-loader/index.js?Accordion!./client/src/components/Accordion/Accordion.js-exposed"),n("./node_modules/expose-loader/index.js?AccordionBlock!./client/src/components/Accordion/AccordionBlock.js-exposed"),n("./node_modules/expose-loader/index.js?HiddenField!./client/src/components/HiddenField/HiddenField.js-exposed"),n("./node_modules/expose-loader/index.js?ListGroup!./client/src/components/ListGroup/ListGroup.js-exposed"),n("./node_modules/expose-loader/index.js?ListGroupItem!./client/src/components/ListGroup/ListGroupItem.js-exposed"),n("./node_modules/expose-loader/index.js?Loading!./client/src/components/Loading/Loading.js-exposed"),n("./node_modules/expose-loader/index.js?TextField!./client/src/components/TextField/TextField.js-exposed"),n("./node_modules/expose-loader/index.js?LiteralField!./client/src/components/LiteralField/LiteralField.js-exposed"),n("./node_modules/expose-loader/index.js?Toolbar!./client/src/components/Toolbar/Toolbar.js-exposed"),n("./node_modules/expose-loader/index.js?Breadcrumb!./client/src/components/Breadcrumb/Breadcrumb.js-exposed"),n("./node_modules/expose-loader/index.js?ResizeAware!./client/src/components/ResizeAware/ResizeAware.js-exposed"),n("./node_modules/expose-loader/index.js?Tag!./client/src/components/Tag/Tag.js-exposed"),n("./node_modules/expose-loader/index.js?TagList!./client/src/components/Tag/TagList.js-exposed"),n("./node_modules/expose-loader/index.js?CompactTagList!./client/src/components/Tag/CompactTagList.js-exposed"),n("./node_modules/expose-loader/index.js?Search!./client/src/components/Search/Search.js-exposed"),n("./node_modules/expose-loader/index.js?SearchToggle!./client/src/components/Search/SearchToggle.js-exposed"),n("./node_modules/expose-loader/index.js?TreeDropdownFieldNode!./client/src/components/TreeDropdownField/TreeDropdownFieldNode.js-exposed"),n("./node_modules/expose-loader/index.js?TreeDropdownFieldMenu!./client/src/components/TreeDropdownField/TreeDropdownFieldMenu.js-exposed"),n("./node_modules/expose-loader/index.js?TreeDropdownField!./client/src/components/TreeDropdownField/TreeDropdownField.js-exposed"),n("./node_modules/expose-loader/index.js?BreadcrumbsActions!./client/src/state/breadcrumbs/BreadcrumbsActions.js-exposed"),n("./node_modules/expose-loader/index.js?RecordsActionTypes!./client/src/state/records/RecordsActionTypes.js-exposed"),n("./node_modules/expose-loader/index.js?UnsavedFormsActions!./client/src/state/unsavedForms/UnsavedFormsActions.js-exposed"),n("./node_modules/expose-loader/index.js?Badge!./client/src/components/Badge/Badge.js-exposed"),n("./node_modules/expose-loader/index.js?CheckboxSetField!./client/src/components/CheckboxSetField/CheckboxSetField.js-exposed"),n("./node_modules/expose-loader/index.js?Preview!./client/src/components/Preview/Preview.js-exposed"),n("./node_modules/expose-loader/index.js?ViewModeStates!./client/src/state/viewMode/ViewModeStates.js-exposed"),n("./node_modules/expose-loader/index.js?ViewModeActions!./client/src/state/viewMode/ViewModeActions.js-exposed"),n("./node_modules/expose-loader/index.js?ViewModeToggle!./client/src/components/ViewModeToggle/ViewModeToggle.js-exposed"),n("./node_modules/expose-loader/index.js?Focusedzone!./client/src/components/Focusedzone/Focusedzone.js-exposed"),n("./node_modules/expose-loader/index.js?Config!./client/src/lib/Config.js-exposed"),n("./node_modules/expose-loader/index.js?DataFormat!./client/src/lib/DataFormat.js-exposed"),n("./node_modules/expose-loader/index.js?ReactRouteRegister!./client/src/lib/ReactRouteRegister.js-exposed"),n("./node_modules/expose-loader/index.js?Router!./client/src/lib/Router.js-exposed"),n("./node_modules/expose-loader/index.js?TinyMCEActionRegistrar!./client/src/lib/TinyMCEActionRegistrar.js-exposed"),n("./node_modules/expose-loader/index.js?ShortcodeSerialiser!./client/src/lib/ShortcodeSerialiser.js-exposed"),n("./node_modules/expose-loader/index.js?formatWrittenNumber!./client/src/lib/formatWrittenNumber.js-exposed"),n("./client/src/legacy/sspath.js"),n("./client/src/legacy/ssui.core.js"),n("./client/src/legacy/LeftAndMain.js"),n("./client/src/legacy/LeftAndMain.ActionTabSet.js"),n("./client/src/legacy/LeftAndMain.Panel.js"),n("./client/src/legacy/LeftAndMain.Tree.js"),n("./client/src/legacy/LeftAndMain.Content.js"),n("./client/src/legacy/LeftAndMain.EditForm.js"),n("./client/src/legacy/LeftAndMain.Menu.js"),n("./client/src/legacy/LeftAndMain.MobileMenuToggle.js"),n("./client/src/legacy/LeftAndMain.Preview.js"),n("./client/src/legacy/LeftAndMain.BatchActions.js"),n("./client/src/legacy/LeftAndMain.FieldHelp.js"),n("./client/src/legacy/LeftAndMain.FieldDescriptionToggle.js"),n("./client/src/legacy/LeftAndMain.TreeDropdownField.js"),n("./client/src/legacy/AddToCampaignForm.js"),n("./client/src/legacy/SecurityAdmin.js"),n("./client/src/legacy/ModelAdmin.js"),n("./client/src/legacy/ConfirmedPasswordField.js"),n("./client/src/legacy/SelectionGroup.js"),n("./client/src/legacy/DateField.js"),n("./client/src/legacy/ToggleCompositeField.js"),n("./client/src/legacy/TreeDropdownField/TreeDropdownFieldEntwine.js"),n("./client/src/legacy/UsedOnTable/UsedOnTableEntwine.js"),n("./client/src/legacy/DateField.js"),n("./client/src/legacy/DatetimeField.js"),n("./client/src/legacy/HtmlEditorField.js"),n("./client/src/legacy/TabSet.js"),n("./client/src/legacy/GridField.js"),n("./client/src/boot/index.js")},"./client/src/components/ActionMenu/ActionMenu.js":function(e,t,n){"use strict";function r(e){return e&&e.__esModule?e:{default:e}}function o(e,t){var n={};for(var r in e)t.indexOf(r)>=0||Object.prototype.hasOwnProperty.call(e,r)&&(n[r]=e[r]);return n}function i(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function s(e,t){if(!e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!t||"object"!=typeof t&&"function"!=typeof t?e:t}function a(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function, not "+typeof t);e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}),t&&(Object.setPrototypeOf?Object.setPrototypeOf(e,t):e.__proto__=t)}Object.defineProperty(t,"__esModule",{value:!0});var l=Object.assign||function(e){for(var t=1;t-1,title:e.title,type:"checkbox"}}},{key:"handleChange",value:function(e,t){var n=this;if("function"==typeof this.props.onChange){var r=this.getValues(),o=this.props.source.filter(function(e,o){return n.getItemKey(e,o)===t.id?1===t.value:r.indexOf(""+e.value)>-1}).map(function(e){return""+e.value});this.props.onChange(e,{id:this.props.id,value:o})}}},{key:"render",value:function(){var e=this;return this.props.source?u.default.createElement("div",null,this.props.source.map(function(t,n){return u.default.createElement(p.default,a({},e.getOptionProps(t,n),{hideLabels:!0}))})):null}}]),t}(c.Component);m.propTypes={className:u.default.PropTypes.string,extraClass:u.default.PropTypes.string,itemClass:u.default.PropTypes.string,id:u.default.PropTypes.string,name:u.default.PropTypes.string.isRequired,source:u.default.PropTypes.arrayOf(u.default.PropTypes.shape({value:u.default.PropTypes.oneOfType([u.default.PropTypes.string,u.default.PropTypes.number]),title:u.default.PropTypes.any,disabled:u.default.PropTypes.bool})),onChange:u.default.PropTypes.func,value:u.default.PropTypes.any,readOnly:u.default.PropTypes.bool,disabled:u.default.PropTypes.bool},m.defaultProps={extraClass:"",className:"",value:[]},t.Component=m,t.default=(0,h.default)(m)},"./client/src/components/CompositeField/CompositeField.js":function(e,t,n){"use strict";function r(e){return e&&e.__esModule?e:{default:e}}function o(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function i(e,t){if(!e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!t||"object"!=typeof t&&"function"!=typeof t?e:t}function s(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function, not "+typeof t);e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}),t&&(Object.setPrototypeOf?Object.setPrototypeOf(e,t):e.__proto__=t)}Object.defineProperty(t,"__esModule",{value:!0});var a=function(){function e(e,t){for(var n=0;n=0||Object.prototype.hasOwnProperty.call(e,r)&&(n[r]=e[r]);return n}function i(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function s(e,t){if(!e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!t||"object"!=typeof t&&"function"!=typeof t?e:t}function a(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function, not "+typeof t);e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}),t&&(Object.setPrototypeOf?Object.setPrototypeOf(e,t):e.__proto__=t)}Object.defineProperty(t,"__esModule",{value:!0});var l=Object.assign||function(e){for(var t=1;t1?this.renderMultipleActions(e):1===e.length?this.renderSingleAction(e[0]):null}}]),t}(l.PureComponent),g=p.default.propTypes;g.group=c.default.PropTypes.string,b.propTypes=c.default.PropTypes.arrayOf(c.default.PropTypes.shape(g)).isRequired,t.default=b},"./client/src/components/GridFieldActions/GridFieldDropdownAction.js":function(e,t,n){"use strict";function r(e){return e&&e.__esModule?e:{default:e}}function o(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function i(e,t){if(!e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!t||"object"!=typeof t&&"function"!=typeof t?e:t}function s(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function, not "+typeof t);e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}),t&&(Object.setPrototypeOf?Object.setPrototypeOf(e,t):e.__proto__=t)}Object.defineProperty(t,"__esModule",{value:!0});var a=function(){function e(e,t){for(var n=0;n=0||Object.prototype.hasOwnProperty.call(e,r)&&(n[r]=e[r]);return n}function i(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function s(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function a(e,t){if(!e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!t||"object"!=typeof t&&"function"!=typeof t?e:t}function l(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function, not "+typeof t);e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}),t&&(Object.setPrototypeOf?Object.setPrototypeOf(e,t):e.__proto__=t)}function c(e){return e&&Object.keys(e).length>0}function u(e,t){var n=e.form.formSchemas[t.formSchemaUrl];if(!n||!n.name)return{formData:{}};var r=n.name,o=(0,x.default)((0,D.default)(e),r),i=o&&o.values||{},s=(0,U.default)(n,t.filters,t.tagHandlers||{});return{formData:i,formIsDirty:(0,P.isDirty)(r,D.default)(e),schemaName:r,tagData:s}}function d(e){return{actions:{schema:(0,j.bindActionCreators)(T,e),reduxForm:(0,j.bindActionCreators)({reset:O.reset,initialize:O.initialize,change:E.change},e)}}}Object.defineProperty(t,"__esModule",{value:!0}),t.hasFilters=t.Component=void 0;var p=Object.assign||function(e){for(var t=1;t0&&void 0!==arguments[0]&&arguments[0],n={};return!t&&this.state.searchText&&(n[this.props.name]=this.state.searchText.trim()),Object.keys(this.props.formData).forEach(function(t){var r=e.props.formData[t];r&&(n[t]=r)}),n}},{key:"handleChange",value:function(e){var t=e.target.value;this.state.searchText!==t&&this.setState({searchText:t});var n=this.props,r=n.schemaName,o=n.formData,i=n.name,s=n.actions;void 0!==o[i]&&s.reduxForm.change(r,i,t)}},{key:"focusInput",value:function(){if(this.state.display!==H.NONE){var e=_.default.findDOMNode(this);if(e){var t=e.querySelector(".search-box__content-field");t!==document.activeElement&&(t.focus(),t.select&&t.select())}}}},{key:"focusFirstFormField",value:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:"input, textarea, select, button";if(this.state.display===H.EXPANDED){var t=_.default.findDOMNode(this);if(t){var n=t.querySelector(".search-form");if(n){var r=n.querySelector(e);r&&(r.focus(),r.select&&r.select())}}}}},{key:"clearFormData",value:function(e){""!==this.state.searchText&&this.setState({searchText:""});var t=e&&e.formSchemaUrl||this.props.formSchemaUrl;if(t){var n=e&&e.identifier||this.props.identifier;this.props.actions.schema.setSchemaStateOverrides(t,null),this.props.actions.reduxForm.initialize(n,{},Object.keys(this.props.formData)),this.props.actions.reduxForm.reset(n)}}},{key:"clearFormFilter",value:function(e){var t=this.props.tagData[e],n=i({},e,void 0);Array.isArray(t.linkedFields)&&t.linkedFields.forEach(function(e){n[e]=void 0}),this.doSearch(n)}},{key:"focusFormFilter",value:function(e){var t=this,n=this.props.tagData[e],r=n.focusSelector||"[name="+e+"]";this.expand(),setTimeout(function(){return t.focusFirstFormField(r)},50)}},{key:"open",value:function(){this.show(),this.focusInput()}},{key:"hide",value:function(){this.props.onHide?this.props.onHide():this.state.display!==H.NONE&&this.setState({display:H.NONE})}},{key:"show",value:function(){this.state.display!==H.VISIBLE&&this.setState({display:H.VISIBLE});var e=this.props,t=e.schemaName,n=e.formData,r=e.name,o=e.actions;void 0!==n[r]&&o.reduxForm.change(t,r,this.state.searchText)}},{key:"expand",value:function(){this.state.display!==H.EXPANDED&&this.setState({display:H.EXPANDED})}},{key:"toggle",value:function(){switch(this.state.display){case H.VISIBLE:this.expand(),setTimeout(this.focusFirstFormField,50);break;case H.EXPANDED:this.show()}}},{key:"searchTermIsDirty",value:function(){var e=this.state,t=e.searchText,n=e.initialSearchText;return t.trim()!==n.trim()}},{key:"doSearch",value:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},t=Object.assign({},this.getData(),e),n=t[this.props.name]||"",r=Object.assign({},this.getData(!0),e);this.state.display===H.VISIBLE&&this.state.initialSearchText===n&&this.state.searchText===n||this.setState({display:H.VISIBLE,initialSearchText:n,searchText:n}),this.props.actions.schema.setSchemaStateOverrides(this.props.schemaUrl,null),this.props.actions.reduxForm.initialize(this.props.schemaName,r),this.props.onSearch(t)}},{key:"clearFilters",value:function(){this.clearFormData(),this.focusFirstFormField()}},{key:"clearSearchBox",value:function(){this.clearFormData(),this.focusInput()}},{key:"formatTagData",value:function(){var e=this.props,t=e.tagData,n=e.name;return t&&t[n]&&delete t[n],t?Object.values(t).map(function(e){return{key:e.key,label:e.label,value:e.value}}):[]}},{key:"render",value:function(){var e=this.props,t=e.formSchemaUrl,n=e.forceFilters,r=e.id,i=e.displayBehavior,s=e.identifier,a=e.formIsDirty,l=(e.tagData,o(e,["formSchemaUrl","forceFilters","id","displayBehavior","identifier","formIsDirty","tagData"]));if(this.state.display===H.NONE)return i===V.TOGGLABLE?b.default.createElement(L.default,{onToggle:this.show}):b.default.createElement("div",null);var c=r+"_ExtraFields",u=this.state.searchText,d=this.state.display===H.EXPANDED,f=[V.HIDEABLE,V.TOGGLABLE].includes(i),h=a||this.searchTermIsDirty(),m=this.getData(),y=Object.keys(m).length>0;return b.default.createElement(k.default,{onClickOut:this.show,className:"search"},b.default.createElement(A.default,p({},l,{onChange:this.handleChange,onSearch:this.doSearch,onToggleFilter:this.toggle,onHideFilter:this.show,onHide:this.hide,onClear:this.clearSearchBox,searchText:u,hideable:f,expanded:d,id:r+"_searchbox",showFilters:Boolean(n||t),dirty:h,clearable:y,onTagDelete:this.clearFormFilter,onTagClick:this.focusFormFilter,tagData:this.formatTagData()}),b.default.createElement(I.default,{id:c,identifier:s,expanded:d,formSchemaUrl:t,onSearch:this.doSearch,onClear:this.clearFilters,clearable:y})))}}]),t}(y.Component);G.propTypes={onSearch:y.PropTypes.func,onHide:y.PropTypes.func,id:y.PropTypes.string.isRequired,display:y.PropTypes.oneOf(Object.values(H)),formSchemaUrl:y.PropTypes.string,filters:y.PropTypes.object,formData:y.PropTypes.object,placeholder:y.PropTypes.string,displayBehavior:y.PropTypes.oneOf(Object.values(V)),term:y.PropTypes.string,name:y.PropTypes.string,forceFilters:y.PropTypes.bool,formIsDirty:y.PropTypes.bool,identifier:y.PropTypes.string,schemaName:y.PropTypes.string,tagHandlers:y.PropTypes.object,borders:y.PropTypes.shape({top:y.PropTypes.bool,right:y.PropTypes.bool,bottom:y.PropTypes.bool,left:y.PropTypes.bool})},G.defaultProps={placeholder:m.default._t("Admin.SEARCH","Search"),display:H.VISIBLE,displayBehavior:V.NONE,filters:{},formData:{},term:"",forceFilters:!1,name:"searchTerm",identifier:"Admin.SearchForm"},t.Component=G,t.hasFilters=c,t.default=(0,g.connect)(u,d)(G)},"./client/src/components/Search/SearchBox.js":function(e,t,n){"use strict";function r(e){return e&&e.__esModule?e:{default:e}}function o(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function i(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function s(e,t){if(!e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!t||"object"!=typeof t&&"function"!=typeof t?e:t}function a(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function, not "+typeof t);e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}),t&&(Object.setPrototypeOf?Object.setPrototypeOf(e,t):e.__proto__=t)}Object.defineProperty(t,"__esModule",{value:!0}),t.Component=void 0;var l=function(){function e(e,t){for(var n=0;n576?55:20;return this.state.tagWidth+e}},{key:"calculateSpaceForTags",value:function(){var e=this.state.width;e-=150,e=e-55-52;var t=this.props,n=t.hideable,r=t.showFilters;return n&&(e-=52),r&&(e-=52),e=Math.max(e,0)}},{key:"handleKeyDown",value:function(e){"Enter"===e.key?(e.preventDefault(),this.props.onSearch()):0===e.target.selectionStart&&("ArrowLeft"===e.key||"Backspace"===e.key&&e.target.selectionEnd-e.target.selectionStart==0)&&(e.preventDefault(),this.focusOnLastTag())}},{key:"handleFocus",value:function(){this.state.hasFocus||this.setState({hasFocus:!0}),this.props.onHideFilter&&this.props.onHideFilter()}},{key:"handleBlur",value:function(){this.state.hasFocus&&this.setState({hasFocus:!1})}},{key:"focusOnLastTag",value:function(){var e=T.default.findDOMNode(this);if(e){var t=e.querySelector(".compact-tag-list__visible .tag:last-child");t&&t.focus()}}},{key:"focusOnInput",value:function(){var e=T.default.findDOMNode(this);if(e){var t=e.querySelector("input");t&&t.focus()}}},{key:"renderInput",value:function(){var e,n=this.props,r=n.id,i=n.searchText,s=n.onChange,a=n.placeholder,l=n.name,c=n.borders,u={paddingLeft:this.calculateInputLeftPadding()+"px"},d=Object.assign({},t.defaultProps.borders,c),f="search-box__content-field",h=(0,m.default)("form-control",f,(e={},o(e,f+"--top-border",d.top),o(e,f+"--right-border",d.right),o(e,f+"--bottom-border",d.bottom),o(e,f+"--left-border",d.left),e));return p.default.createElement("input",{"aria-labelledby":r+"_label",type:"search",name:l,placeholder:a,className:h,onKeyDown:this.handleKeyDown,onChange:s,onFocus:this.handleFocus,onBlur:this.handleBlur,value:i,id:r,autoFocus:!0,style:u})}},{key:"renderTags",value:function(){var e=this.props,t=e.tagData,n=e.onTagDelete,r=e.onTagClick,o=e.onToggleFilter;return p.default.createElement("div",{className:"search-box__tags"},p.default.createElement(j.default,{onResize:this.onTagListResize},p.default.createElement(v.default,{onTagDelete:n,onTagClick:r,onHolderFocus:this.focusOnInput,tags:t,onSummary:o,maxSize:this.calculateSpaceForTags(),deletable:!0})))}},{key:"renderEnterHint",value:function(){var e=this;return p.default.createElement("div",{role:"presentation",className:"search-box__enter",onClick:function(t){t.stopPropagation(),t.preventDefault(),e.props.onSearch()}},u.default._t("Admin.ENTER","Enter")," ↵")}},{key:"renderFilterButton",value:function(){var e=this.props,t=e.expanded,n=e.onToggleFilter,r=e.formId,o=(0,m.default)("btn--icon","btn--no-text","font-icon-caret-down-two","search-box__filter-trigger",{collapsed:!t});return p.default.createElement(f.Button,{"aria-expanded":t,"aria-controls":r,"aria-label":u.default._t("Admin.ADVANCED","Advanced"),onClick:n,className:o,title:u.default._t("Admin.ADVANCED","Advanced")})}},{key:"renderHideButton",value:function(){var e=this.props,t=e.id,n=e.onHide;return p.default.createElement(f.Button,{onClick:n,title:u.default._t("Admin.CLOSE","Close"),"aria-label":u.default._t("Admin.CLOSE","Close"),className:"font-icon-cancel btn--no-text btn--icon-lg search-box__cancel","aria-controls":t,"aria-expanded":"true"})}},{key:"render",value:function(){var e=this.props,t=e.children,n=e.id,r=e.hideable,o=e.expanded,i=e.showFilters,s=e.dirty,a=e.clearable,l=(0,m.default)("search-box",{"search-box--hideable":r,"search-box--not-hideable":!r,"search-box--has-focus":this.state.hasFocus,"search-box--has-not-focus":!this.state.hasFocus,"search-box--has-filters":i,"search-box--has-not-filters":!i,"search-box--compact":this.state.width<576,"search-box--expanded":o}),c=(s||!a)&&this.state.hasFocus;return p.default.createElement("div",{className:l},p.default.createElement(j.default,{onResize:this.onResize},p.default.createElement("div",{className:"search-box__group"},p.default.createElement(f.Label,{for:n,id:n+"_label",hidden:!0},u.default._t("Admin.SEARCH","Search")),this.renderTags(),this.renderInput(),c&&this.renderEnterHint(),t,p.default.createElement("div",{className:"icon font-icon-search"}),i&&this.renderFilterButton(),r&&this.renderHideButton())))}}]),t}(d.Component);O.propTypes={onSearch:d.PropTypes.func,onToggleFilter:d.PropTypes.func,onHideFilter:d.PropTypes.func,onChange:d.PropTypes.func,onHide:d.PropTypes.func,onTagDelete:d.PropTypes.func,onTagClick:d.PropTypes.func,placeholder:d.PropTypes.string,expanded:d.PropTypes.bool,formId:d.PropTypes.string,id:d.PropTypes.string,searchText:d.PropTypes.string,hideable:d.PropTypes.bool,showFilters:d.PropTypes.bool,name:d.PropTypes.string,dirty:d.PropTypes.bool,clearable:d.PropTypes.bool,tagData:d.PropTypes.arrayOf(b.default)},O.defaultProps={placeholder:u.default._t("Admin.SEARCH","Search"),tagData:[],filters:{},formData:{},term:"",borders:{top:!1,right:!1,bottom:!0,left:!0}},t.Component=O,t.default=O},"./client/src/components/Search/SearchForm.js":function(e,t,n){"use strict";function r(e){return e&&e.__esModule?e:{default:e}}function o(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function i(e,t){if(!e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!t||"object"!=typeof t&&"function"!=typeof t?e:t}function s(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function, not "+typeof t);e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}),t&&(Object.setPrototypeOf?Object.setPrototypeOf(e,t):e.__proto__=t)}Object.defineProperty(t,"__esModule",{value:!0}),t.Component=void 0;var a=function(){function e(e,t){for(var n=0;n=0||Object.prototype.hasOwnProperty.call(e,r)&&(n[r]=e[r]);return n}Object.defineProperty(t,"__esModule",{value:!0});var o=n("./client/src/components/Search/utilities/genericDateTagHandler.js"),i=function(e){return e&&e.__esModule?e:{default:e}}(o),s=function(e,t,n){if(!Array.isArray(t)||0===t.length)return!1;var r=n.state.fields.find(function(t){return t.name===e});return!(!r||!r.source)&&(t.map(function(e){var t=r.source.find(function(t){return t.value.toString()===e.toString()});return t&&t.title?t.title:e}).join(", ")||!1)},a={Date:(0,i.default)("ll"),Time:(0,i.default)("LT"),Datetime:(0,i.default)("lll"),Hidden:function(){return!1},SingleSelect:function(e,t,n){if(void 0===e.value)return!1;var r=s(e.key,[e.value],n);return!!r&&Object.assign({},e,{value:r})},Boolean:function(e){return!!e.value&&(e.value,r(e,["value"]))},MultiSelect:function(e,t,n){var r=s(e.key,e.value,n);return!!r&&Object.assign({},e,{value:r})},default:function(e){return!!e.value&&e}};t.default=a},"./client/src/components/Search/utilities/genericDateTagHandler.js":function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var r=n(14),o=function(e){return e&&e.__esModule?e:{default:e}}(r),i=function(e){return function(t,n){var r=n.lang;if(!t.value)return!1;if(t.value&&r){o.default.locale(r);var i=(0,o.default)(t.value);if(i.isValid())return Object.assign({},t,{value:i.format(e)})}return t}};t.default=i},"./client/src/components/Search/utilities/mapFormSchemaToTags.js":function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var r=n("./client/src/components/Search/utilities/defaultTagHandlers.js"),o=function(e){return e&&e.__esModule?e:{default:e}}(r),i=function(e,t){var n=t.key,r=t.value;return""+e+(t.label.toLowerCase()||n)+" "+(r||"")+" "},s=function(e,t){var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{};if(e.metadata.loading)return{};var r=void 0,s=function(n){var o={key:n.name,label:n.title,value:t[n.name]};return("function"==typeof r["#"+o.key]?r["#"+o.key]:"function"==typeof r[n.schemaType]?r[n.schemaType]:r.default)(o,n,e,t)},a=function(e,t){var n=t.children;if(!Array.isArray(n)||0===n.length)return!1;var r=n.map(s).filter(function(e){return!1!==e}).reduce(i,"").trim(),o=n.map(function(e){return e.name}),a="[name="+n[0].name+"]";return!!r&&Object.assign({},e,{value:r,linkedFields:o,focusSelector:a})};r=Object.assign({},o.default,{Structural:a},n);var l=e.schema.fields,c=l.map(s).filter(function(e){return!1!==e}),u={};return c.forEach(function(e){u[e.key]=e}),u};t.default=s},"./client/src/components/SingleSelectField/SingleSelectField.js":function(e,t,n){"use strict";function r(e){return e&&e.__esModule?e:{default:e}}function o(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function i(e,t){if(!e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!t||"object"!=typeof t&&"function"!=typeof t?e:t}function s(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function, not "+typeof t);e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}),t&&(Object.setPrototypeOf?Object.setPrototypeOf(e,t):e.__proto__=t)}Object.defineProperty(t,"__esModule",{value:!0}),t.Component=void 0;var a=Object.assign||function(e){for(var t=1;t=0||Object.prototype.hasOwnProperty.call(e,r)&&(n[r]=e[r]);return n}Object.defineProperty(t,"__esModule",{value:!0});var i=Object.assign||function(e){for(var t=1;t1}},{key:"handleChange",value:function(e){"function"==typeof this.props.onChange&&this.props.onChange(e,{id:this.props.id,value:e.target.value})}},{key:"render",value:function(){return c.default.createElement(p.Input,this.getInputProps())}}]),t}(l.Component);f.propTypes={extraClass:c.default.PropTypes.string,id:c.default.PropTypes.string,name:c.default.PropTypes.string.isRequired,onChange:c.default.PropTypes.func,value:c.default.PropTypes.oneOfType([c.default.PropTypes.string,c.default.PropTypes.number]),readOnly:c.default.PropTypes.bool,disabled:c.default.PropTypes.bool,placeholder:c.default.PropTypes.string,type:c.default.PropTypes.string,autoFocus:c.default.PropTypes.bool,attributes:c.default.PropTypes.oneOfType([c.default.PropTypes.object,c.default.PropTypes.array])},f.defaultProps={value:"",extraClass:"",className:"",type:"text",attributes:{}},t.Component=f,t.default=(0,d.default)(f)},"./client/src/components/TimeField/TimeField.js":function(e,t,n){"use strict";function r(e){return e&&e.__esModule?e:{default:e}}function o(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function i(e,t){if(!e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!t||"object"!=typeof t&&"function"!=typeof t?e:t}function s(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function, not "+typeof t);e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}),t&&(Object.setPrototypeOf?Object.setPrototypeOf(e,t):e.__proto__=t)}Object.defineProperty(t,"__esModule",{value:!0}),t.Component=void 0;var a=Object.assign||function(e){for(var t=1;t0&&void 0!==arguments[0]?arguments[0]:this.props,t=e.data.readUsageEndpoint||{},n=t.method,r=t.url;e.loadUsedOn(e.identifier,n,r)}},{key:"render",value:function(){return l.default.createElement(e,this.props)}}]),n}(a.Component);t.propTypes={identifier:a.PropTypes.string,loading:a.PropTypes.bool,data:a.PropTypes.oneOfType([a.PropTypes.array,a.PropTypes.shape({recordClass:a.PropTypes.string,recordId:a.PropTypes.oneOfType([a.PropTypes.string,a.PropTypes.number]),readUsageEndpoint:a.PropTypes.shape({url:a.PropTypes.string,method:a.PropTypes.string})})]),usedOn:a.PropTypes.array};var n=function(e,t){var n=t.data,r=n.recordClass,o=n.recordId,i=r&&o?r+"#"+o:"",s=e.usedOn;return{identifier:i,loading:s.loading.includes(i),usedOn:s.usedOn[i]||null,error:s.errors[i]||null}},d=(0,c.connect)(n,{loadUsedOn:u.loadUsedOn})(t);return d.Component=t,d};t.default=d},"./client/src/containers/App/App.js":function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var r=n(0),o=function(e){return e&&e.__esModule?e:{default:e}}(r),i=n(6),s=function(e){return o.default.createElement("div",{className:"app"},e.children)};t.default=(0,i.provideInjector)(s)},"./client/src/containers/Form/Form.js":function(e,t,n){"use strict";function r(e){return e&&e.__esModule?e:{default:e}}Object.defineProperty(t,"__esModule",{value:!0});var o=Object.assign||function(e){for(var t=1;t1?t-1:0),r=1;r'),e("body").append(t)),t.open(),!1}}),e(".add-to-campaign-modal .add-to-campaign-modal__nav-link").entwine({onclick:function(t){t.preventDefault();var n=e(t.target);window.location=n.attr("href")}}),e("#add-to-campaign__dialog-wrapper").entwine({onunmatch:function(){this._clearModal()},open:function(){this._renderModal(!0)},close:function(){this._renderModal(!1)},_renderModal:function(t){var n=this,r=function(){return n.close()},o=function(){return n._handleSubmitModal.apply(n,arguments)},s=e("form.cms-edit-form :input[name=ID]").val(),a=window.ss.store,l=a.getState().config.sections.find(function(e){return"SilverStripe\\CMS\\Controllers\\CMSPageEditController"===e.name}),u=l.form.AddToCampaignForm.schemaUrl+"/"+s,p=i.default._t("Admin.ADD_TO_CAMPAIGN","Add to campaign");d.default.render(c.default.createElement(f,{title:p,isOpen:t,onSubmit:o,onClosed:r,schemaUrl:u,bodyClassName:"modal__dialog",className:"add-to-campaign-modal",responseClassBad:"modal__response modal__response--error",responseClassGood:"modal__response modal__response--good",identifier:"Admin.AddToCampaign"}),this[0])},_clearModal:function(){d.default.unmountComponentAtNode(this[0])},_handleSubmitModal:function(e,t,n){return n()}})})},"./client/src/legacy/ConfirmedPasswordField.js":function(e,t,n){"use strict";var r=n(1),o=function(e){return e&&e.__esModule?e:{default:e}}(r);(0,o.default)(document).on("click",".confirmedpassword .showOnClick a",function(){var e=(0,o.default)(".showOnClickContainer",(0,o.default)(this).parent());return e.toggle("fast",function(){e.toggleClass("d-none").find('input[type="hidden"]').val(e.hasClass("d-none")?0:1)}),!1})},"./client/src/legacy/DateField.js":function(e,t,n){"use strict";function r(e){return e&&e.__esModule?e:{default:e}}var o=n(1),i=r(o),s=n(2),a=r(s),l=n(14),c=r(l),u=n(18),d=r(u);n("./thirdparty/jquery-entwine/dist/jquery.entwine-dist.js"),i.default.entwine("ss",function(e){e("input[type=date]").entwine({onadd:function(){if(!d.default.inputtypes.date&&!(this.prop("disabled")||this.prop("readonly")||this.hasClass("hasDatepicker"))){var t=e("",{type:"hidden",name:this.attr("name"),value:this.val()});this.parent().append(t),this.removeAttr("name"),c.default.locale(this.attr("lang"));var n=this.val(),r="";if(n){var o=(0,c.default)(n);o.isValid()&&(r=o.format("L"))}this.val(r);var i=a.default.inject(a.default._t("Admin.FormatExample","Example: {format}"),{format:(0,c.default)().endOf("month").format("L")});this.attr("placeholder",i),this.updateValue()}},onchange:function(){this.updateValue()},updateValue:function(){var e=this.val(),t="";if(e)for(var n=["L","YYYY-MM-DD"],r=0;r",{type:"hidden",name:this.attr("name"),value:this.val()});this.parent().append(t),this.removeAttr("name"),c.default.locale(this.attr("lang"));var n=this.val(),r="";if(n){var o=(0,c.default)(n);o.isValid()&&(r=o.format("L LT"))}this.val(r);var i=a.default.inject(a.default._t("Admin.FormatExample","Example: {format}"),{format:(0,c.default)().endOf("month").format("L LT")});this.attr("placeholder",i),this.updateValue()}},onchange:function(){this.updateValue()},updateValue:function(){var e=this.val(),t="";if(e){var n=(0,c.default)(e,["L LT",c.default.ISO_8601]);n.isValid()&&(t=n.format("YYYY-MM-DDTHH:mm:ss"))}this.parent().find("input[type=hidden]").val(t)}})})},"./client/src/legacy/GridField.js":function(e,t,n){"use strict";function r(e){return e&&e.__esModule?e:{default:e}}var o=Object.assign||function(e){for(var t=1;t'),this.find("tbody tr").each(function(){e(this).find("td:last").attr("colspan",2)});var n=e('');e(".grid-field__filter-header th:last .action").each(function(){e(this).detach(),n.append(e(this))}),e(".grid-field__filter-header").append(n)},injectSearchButton:function(e){var t=this.find(".grid-field__filter-header").length>0,n=void 0;e?(n='',this.addClass("show-filter").find(".grid-field__filter-header, .grid-field__search-holder").removeClass("grid-field__search-holder--hidden"),t||this.find(":button[name=showFilter]").hide()):(n='',this.removeClass("show-filter").find(".grid-field__filter-header, .grid-field__search-holder").addClass("grid-field__search-holder--hidden")),t&&this.find(".sortable-header th:last").html(n)}}),e(".grid-field *").entwine({getGridField:function(){return this.closest(".grid-field")}}),e(".gridfield-actionmenu__container").entwine({Timer:null,Component:null,Actions:null,onmatch:function(){this._super();var t=[];e(".action-menu--handled",this.parent()).each(function(){var n=e(this).detach();t.push(n)}),this.setActions(t);var n=this.closest(".cms-content").attr("id"),r=n?{context:n}:{},o=(0,m.loadComponent)("GridFieldActions",r);this.setComponent(o),this.refresh()},onunmatch:function(){this._super();var t=this[0];t&&f.default.unmountComponentAtNode(t);var n=this.getActions(),r=this.parent();n&&e(n).each(function(){e(this).appendTo(r)})},refresh:function(){var e=this.data("schema"),t=this.getComponent();f.default.render(d.default.createElement(t,{schema:e}),this[0])}}),e(".grid-field :button[name=showFilter]").entwine({onclick:function(e){this.closest(".grid-field").find(".grid-field__filter-header, .grid-field__search-holder").removeClass("grid-field__search-holder--hidden").find(":input:first").focus(),this.closest(".grid-field").addClass("show-filter"),this.parent().html(''),e.preventDefault()}}),e(".grid-field .ss-gridfield-item").entwine({onclick:function(t){if(t.target.classList.contains("action-menu__toggle"))return this._super(t),!1;if(e(t.target).closest(".action").length)return this._super(t),!1;var n=this.find(".edit-link, .view-link");n.length&&this.getGridField().showDetailView(n.prop("href"))},onmouseover:function(){this.find(".edit-link, .view-link").length&&this.css("cursor","pointer")},onmouseout:function(){this.css("cursor","default")}}),e(".grid-field .action.action_import:button").entwine({onclick:function(e){e.preventDefault(),this.openmodal()},onmatch:function(){this._super(),"open"===this.data("state")&&this.openmodal()},onunmatch:function(){this._super()},openmodal:function(){function t(){o.removeClass("show"),n.removeClass("show"),setTimeout(function(){o.remove()},150)}var n=e(this.data("target")),r=e(this.data("modal"));n.length<1?(n=r,n.appendTo(document.body)):n.innerHTML=r.innerHTML;var o=e(".modal-backdrop");o.length<1&&(o=e(''),o.appendTo(document.body)),n.find("[data-dismiss]").add(".modal-backdrop").on("click",function(){t()}),e(document).on("keydown",function(e){27===e.keyCode&&t()}),setTimeout(function(){o.addClass("show"),n.addClass("show")},0)}}),e(".grid-field .action:button").entwine({onclick:function(t){var n="show",r=!0;if(this.is(":disabled"))return void t.preventDefault();!this.hasClass("ss-gridfield-button-close")&&this.closest(".grid-field").hasClass("show-filter")||(n="hidden"),(this.hasClass("ss-gridfield-pagination-action")||this.hasClass("grid-field__sort"))&&(r=!1);var o=function(t,n,r){var o=r.getResponseHeader("X-Message-Text"),i=r.getResponseHeader("X-Message-Type");o&&i&&(e("#Form_EditForm_error").addClass(i),e("#Form_EditForm_error").html(o),e("#Form_EditForm_error").show())};this.getGridField().reload({data:[{name:this.attr("name"),value:this.val(),filter:n,triggerChange:r}]},o),t.preventDefault()},actionurl:function(){var t=this.closest(":button"),n=this.getGridField(),r=this.closest("form"),o=r.find(":input.gridstate").serialize(),i=r.find('input[name="SecurityID"]').val();o+="&"+encodeURIComponent(t.attr("name"))+"="+encodeURIComponent(t.val()),i&&(o+="&SecurityID="+encodeURIComponent(i)),window.location.search&&(o=window.location.search.replace(/^\?/,"")+"&"+o);var s=-1==n.data("url").indexOf("?")?"?":"&";return e.path.makeUrlAbsolute(n.data("url")+s+o,e("base").attr("href"))}}),e(".grid-field .add-existing-autocompleter").entwine({onbuttoncreate:function(){var e=this;this.toggleDisabled(),this.find('input[type="text"]').on("keyup",function(){e.toggleDisabled()})},onunmatch:function(){this.find('input[type="text"]').off("keyup")},toggleDisabled:function(){var e=this.find(".ss-ui-button"),t=this.find('input[type="text"]'),n=""!==t.val(),r=e.is(":disabled");(n&&r||!n&&!r)&&e.attr("disabled",!r)}}),e(".grid-field .grid-field__col-compact .action--delete, .grid-field .grid-field__col-compact .action--archive, .cms-edit-form .btn-toolbar .action--delete, .cms-edit-form .btn-toolbar .action--archive").entwine({onclick:function(t){var n=e(this).hasClass("action--archive")?c.default._t("Admin.ARCHIVECONFIRMMESSAGE"):c.default._t("Admin.DELETECONFIRMMESSAGE");if(!confirm(n))return t.preventDefault(),!1;this._super(t)}}),e(".grid-field .grid-print-button.action:button").entwine({UUID:null,onmatch:function(){this._super(),this.setUUID((new Date).getTime())},onunmatch:function(){this._super()},onclick:function(e){var t=this.actionurl();return window.open(t),e.preventDefault(),!1}}),e(".ss-gridfield-print-iframe").entwine({onmatch:function(){this._super(),this.hide().bind("load",function(){this.focus(),(this.contentWindow||this).print()})},onunmatch:function(){this._super()}}),e(".grid-field .action.no-ajax, .grid-field .no-ajax .action:button").entwine({onclick:function(e){return window.location.href=this.actionurl(),e.preventDefault(),!1}}),e(".grid-field .action-detail").entwine({onclick:function(){return this.getGridField().showDetailView(e(this).prop("href")),!1}}),e(".grid-field[data-selectable]").entwine({getSelectedItems:function(){return this.find(".ss-gridfield-item.ui-selected")},getSelectedIDs:function(){return e.map(this.getSelectedItems(),function(t){return e(t).data("id")})}}),e(".grid-field[data-selectable] .ss-gridfield-items").entwine({onadd:function(){this._super(),this.selectable()},onremove:function(){this._super(),this.data("selectable")&&this.selectable("destroy")}}),e(".js-injector-boot .grid-field .grid-field__search-holder").entwine({Component:null,onmatch:function(){this._super(),this.prependTo(this.parent());var e=this.closest(".cms-content").attr("id"),t=e?{context:e}:{},n=(0,m.loadComponent)("Search",t);this.setComponent(n),this.refresh()},onunmatch:function(){this._super();var e=this[0];e&&f.default.unmountComponentAtNode(e)},close:function(){var e=this.data("schema"),t=[{name:e.clearAction,value:"",filter:"hidden",triggerChange:!1}];this.getGridField().reload({data:t})},search:function(e){var t=this.data("schema"),n=[{name:t.searchAction,value:"",filter:"show",triggerChange:!1}],r=!0,o=!1,s=void 0;try{for(var a,l=Object.entries(e)[Symbol.iterator]();!(r=(a=l.next()).done);r=!0){var c=a.value,u=i(c,2),d=u[0],p=u[1];if(p){var f="filter["+t.gridfield+"]["+d+"]";n.push({name:f,value:p})}}}catch(e){o=!0,s=e}finally{try{!r&&l.return&&l.return()}finally{if(o)throw s}}this.getGridField().reload({data:n})},refresh:function(){var e=this,t=this.data("schema"),n=this.getComponent(),r=function(){return e.close()},i=function(t){return e.search(t)};f.default.render(d.default.createElement(n,o({id:t.gridfield+"Search",identifier:t.gridfield+"Search",display:"VISIBLE",displayBehavior:"HIDEABLE",onHide:r,onSearch:i},t)),this[0])}}),e(".js-injector-boot .grid-field .search-box__content-field").entwine({onkeydown:function(e){"Enter"===e.key&&e.preventDefault()}}),e(".grid-field .grid-field__filter-header :input").entwine({onmatch:function(){var e=this.closest(".extra").find(".ss-gridfield-button-filter"),t=this.closest(".extra").find(".ss-gridfield-button-reset");this.val()&&(e.addClass("filtered"),t.addClass("filtered")),this._super()},onunmatch:function(){this._super()},onkeydown:function(e){if(!this.closest(".ss-gridfield-button-reset").length){var t=this.closest(".extra").find(".ss-gridfield-button-filter"),n=this.closest(".extra").find(".ss-gridfield-button-reset");if("13"==e.keyCode){var r=this.closest(".grid-field__filter-header").find(".ss-gridfield-button-filter"),o="show";return!this.hasClass("ss-gridfield-button-close")&&this.closest(".grid-field").hasClass("show-filter")||(o="hidden"),this.getGridField().reload({data:[{name:r.attr("name"),value:r.val(),filter:o,triggerChange:!1}]}),!1}t.addClass("hover-alike"),n.addClass("hover-alike")}}}),e(".grid-field .relation-search").entwine({onfocusin:function(t){this.autocomplete({source:function(t,n){var r=e(this.element);e(this.element).closest("form"),e.ajax({headers:{"X-Pjax":"Partial"},dataType:"json",type:"GET",url:e(r).data("searchUrl"),data:encodeURIComponent(r.attr("name"))+"="+encodeURIComponent(r.val()),success:n,error:function(e){alert(c.default._t("Admin.ERRORINTRANSACTION","An error occured while fetching data from the server\n Please try again later."))}})},select:function(t,n){var r=e('');r.val(n.item.id),e(this).closest(".grid-field").find(".action_gridfield_relationfind").replaceWith(r),e(this).closest(".grid-field").find(".action_gridfield_relationadd").removeAttr("disabled")}})}}),e(".grid-field .pagination-page-number input").entwine({onkeydown:function(t){if(13==t.keyCode){t.preventDefault();var n=parseInt(e(this).val(),10),r=e(this).getGridField();return r.setState("GridFieldPaginator",{currentPage:n}),r.reload(),!1}}})})},"./client/src/legacy/HtmlEditorField.js":function(module,exports,__webpack_require__){"use strict";function _interopRequireDefault(e){return e&&e.__esModule?e:{default:e}}var _jquery=__webpack_require__(1),_jquery2=_interopRequireDefault(_jquery),ss=void 0!==window.ss?window.ss:{};ss.editorWrappers={},ss.editorWrappers.tinyMCE=function(){var editorID;return{init:function(e){editorID=e,this.create()},destroy:function(){tinymce.EditorManager.execCommand("mceRemoveEditor",!1,editorID)},getInstance:function(){return tinymce.EditorManager.get(editorID)},onopen:function(){},onclose:function(){},getConfig:function(){var e="#"+editorID,t=(0,_jquery2.default)(e).data("config"),n=this;return t.selector=e,t.setup=function(e){e.on("change",function(){n.save()})},t},save:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},t=this.getInstance();t.save(),e.silent||(0,_jquery2.default)(t.getElement()).trigger("change")},create:function(){var e=this.getConfig();void 0!==e.baseURL&&(tinymce.EditorManager.baseURL=e.baseURL),tinymce.init(e)},repaint:function(){},isDirty:function(){return this.getInstance().isDirty()},getContent:function(){return this.getInstance().getContent()},getDOM:function(){return this.getInstance().getElement()},getContainer:function(){return this.getInstance().getContainer()},getSelectedNode:function(){return this.getInstance().selection.getNode()},selectNode:function(e){this.getInstance().selection.select(e)},setContent:function(e,t){this.getInstance().setContent(e,t)},insertContent:function(e,t){this.getInstance().insertContent(e,t)},replaceContent:function(e,t){this.getInstance().execCommand("mceReplaceContent",!1,e,t)},insertLink:function(e,t,n){if(n){var r=this.getInstance().dom.create("a",e,n);this.getInstance().selection.setNode(r)}else this.getInstance().execCommand("mceInsertLink",!1,e,t)},removeLink:function(){this.getInstance().execCommand("unlink",!1)},cleanLink:function cleanLink(href,node){var settings=this.getConfig,cb=settings.urlconverter_callback,cu=tinyMCE.settings.convert_urls;return cb&&(href=eval(cb+"(href, node, true);")),cu&&href.match(new RegExp("^"+tinyMCE.settings.document_base_url+"(.*)$"))&&(href=RegExp.$1),href.match(/^javascript:\s*mctmp/)&&(href=""),href},createBookmark:function(){return this.getInstance().selection.getBookmark()},moveToBookmark:function(e){this.getInstance().selection.moveToBookmark(e),this.getInstance().focus()},blur:function(){this.getInstance().selection.collapse()},addUndo:function(){this.getInstance().undoManager.add()}}},ss.editorWrappers.default=ss.editorWrappers.tinyMCE,_jquery2.default.entwine("ss",function(e){e("textarea.htmleditor").entwine({Editor:null,onadd:function(){var e=this.data("editor")||"default",t=ss.editorWrappers[e]();this.setEditor(t),t.init(this.attr("id")),this._super()},onmatch:function(){this.getEditor()||this.onadd(),this._super()},onremove:function(){this.getEditor().destroy(),this._super()},"from .cms-edit-form":{onbeforesubmitform:function(){this.getEditor().save({silent:!0}),this._super()}},openLinkDialog:function(){this.openDialog("link")},openMediaDialog:function(){this.openDialog("media")},openEmbedDialog:function(){this.openDialog("embed")},openDialog:function(t){if("media"===t&&window.InsertMediaModal){var n=e("#insert-media-react__dialog-wrapper");return n.length||(n=e('