silverstripe-frameworktest/client/dist/js/legacy.js

1 line
18 KiB
JavaScript
Raw Normal View History

(()=>{"use strict";var t={1325:(t,r,e)=>{e(113),e(2010),e(6099);var n=s(e(1669)),o=s(e(1594)),i=e(5145),u=e(9040),a=e(5207),c=s(e(55));function s(t){return t&&t.__esModule?t:{default:t}}var f=(0,a.provideInjector)(c.default);n.default.entwine("ss",(function(t){t(".js-injector-boot .TestReactFormBuilder").entwine({ReactRoot:null,onmatch:function(){this._renderForm()},onunmatch:function(){this._clearForm()},container:function(){var r=this.find(".frameworktest-react-container");return r.length||(r=t('<div class="frameworktest-react-container panel panel--padded" style="overflow-y: auto; max-height: 100%;"></div>'),this.append(r)),r.siblings("form").hide(),r[0]},_renderForm:function(){var t=this,r=window.ss.store,e=r.getState().config.sections.find((function(t){return"TestReactFormBuilder"===t.name})).form.TestEditForm.schemaUrl,n=(0,i.createRoot)(this.container());n.render(o.default.createElement(u.Provider,{store:r},o.default.createElement(f,{schemaUrl:e,handleSubmit:function(){return t._handleSubmit.apply(t,arguments)},identifier:"FrameworkTest.ReactSection"}))),this.setReactRoot(n)},_clearForm:function(){var t=this.getReactRoot();t&&(t.unmount(),this.setReactRoot(null))},_handleSubmit:function(t,r,e){return t.preventDefault(),console.log(r),e()}}),t(".TestReactFormBuilder .nav-link").entwine({onclick:function(t){t.preventDefault()}})}))},55:t=>{t.exports=FormBuilderLoader},5207:t=>{t.exports=Injector},1594:t=>{t.exports=React},5145:t=>{t.exports=ReactDomClient},9040:t=>{t.exports=ReactRedux},1669:t=>{t.exports=jQuery},9306:(t,r,e)=>{var n=e(4901),o=e(6823),i=TypeError;t.exports=function(t){if(n(t))return t;throw new i(o(t)+" is not a function")}},6469:(t,r,e)=>{var n=e(8227),o=e(2360),i=e(4913).f,u=n("unscopables"),a=Array.prototype;void 0===a[u]&&i(a,u,{configurable:!0,value:o(null)}),t.exports=function(t){a[u][t]=!0}},8551:(t,r,e)=>{var n=e(34),o=String,i=TypeError;t.exports=function(t){if(n(t))return t;throw new i(o(t)+" is not an object")}},9617:(t,r,e)=>{var n=e(5397),o=e(5610),i=e(6198),u=function(t){return function(r,e,u){var a=n(r),c=i(a);if(0===c)return!t&&-1;var s,f=o(u,c);if(t&&e!=e){for(;c>f;)if((s=a[f++])!=s)return!0}else for(;c>f;f++)if((t||f in a)&&a[f]===e)return t||f||0;return!t&&-1}};t.exports={includes:u(!0),indexOf:u(!1)}},9213:(t,r,e)=>{var n=e(6080),o=e(9504),i=e(7055),u=e(8981),a=e(6198),c=e(1469),s=o([].push),f=function(t){var r=1===t,e=2===t,o=3===t,f=4===t,p=6===t,l=7===t,v=5===t||p;return function(y,d,h,b){for(var g,m,x=u(y),w=i(x),S=a(w),j=n(d,h),O=0,F=b||c,E=r?F(y,S):e||l?F(y,0):void 0;S>O;O++)if((v||O in w)&&(m=j(g=w[O],O,x),t))if(r)E[O]=m;else if(m)switch(t){case 3:return!0;case 5:return g;case 6:return O;case 2:s(E,g)}else switch(t){case 4:return!1;case 7:s(E,g)}return p?-1:o||f?f:E}};t.exports={forEach:f(0),map:f(1),filter:f(2),some:f(3),every:f(4),find:f(5),findIndex:f(6),filterReject:f(7)}},7433:(t,r,e)=>{var n=e(4376),o=e(3517),i=e(34),u=e(8227)("species"),a=Array;t.exports=function(t){var r;return n(t)&&(r=t.constructor,(o(r)&&(r===a||n(r.prototype))||i(r)&&null===(r=r[u]))&&(r=void 0)),void 0===r?a:r}},1469:(t,r,e)=>{var n=e(7433);t.exports=function(t,r){return new(n(t))(0===r?0:r)}},4576:(t,r,e)=>{var n=e(9504),o=n({}.toString),i=n("".slice);t.exports=function(t){return i(o(t),8,-1)}},6955:(t,r,e)=>{var n=e(2140),o=e(4901),i=e(4576),u=e(8227)("toStringTag"),a=Object,c="Arguments"===i(function(){return arguments}());t.exports=n?i:function(t){var r,e,n;return void 0===t?"Undefined":null===t?"Null":"string"==typeof(e=function(t,r){try{return t[r]}catch(t){}}(r=a(t),u))?e:c?i(r):"Object"===(n=i(r))&&o(r.callee)?"Arguments":n}},7740:(t,r,e)=>{var n=e(9297),o=e(5031),i=e(7347),u=e(4913);t.exports=function(t,r,e){for(var a=o(r),c=u.f,s=i.f,f=0;f<a.length;f++){var p=a[f];n(t,p)||e&&n(e,p)||c(t,p,s(r,p))}}},6699:(t,r,e)=>{var n=e(3724),o=e(4913),i=e(6980);t.exports=n?function(t,r,e){return o.f(t,r,i(1,e))}:function(t,r,e){return t[r]=e,t}},6980:t=>{t.exports=function(t,r){return{enumerable:!(1&t),configurable:!(2&t),writable:!(4&t),value:r}}},2106:(t,r,e)=>{var n=e(283),o=e(4913);t.exports=