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

1 line
18 KiB
JavaScript
Raw Normal View History

2023-04-03 04:34:04 +02:00
(()=>{var t={9285:(t,r,e)=>{"use strict";e(9826),e(1539),e(8309);var n=s(e(5311)),o=s(e(7363)),i=e(9691),u=e(1624),c=e(6648),a=s(e(8238));function s(t){return t&&t.__esModule?t:{default:t}}var f=(0,c.provideInjector)(a.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()}})}))},9662:(t,r,e)=>{var n=e(614),o=e(6330),i=TypeError;t.exports=function(t){if(n(t))return t;throw i(o(t)+" is not a function")}},1223:(t,r,e)=>{var n=e(5112),o=e(30),i=e(3070).f,u=n("unscopables"),c=Array.prototype;null==c[u]&&i(c,u,{configurable:!0,value:o(null)}),t.exports=function(t){c[u][t]=!0}},9670:(t,r,e)=>{var n=e(111),o=String,i=TypeError;t.exports=function(t){if(n(t))return t;throw i(o(t)+" is not an object")}},1318:(t,r,e)=>{var n=e(5656),o=e(1400),i=e(6244),u=function(t){return function(r,e,u){var c,a=n(r),s=i(a),f=o(u,s);if(t&&e!=e){for(;s>f;)if((c=a[f++])!=c)return!0}else for(;s>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)}},2092:(t,r,e)=>{var n=e(9974),o=e(1702),i=e(8361),u=e(7908),c=e(6244),a=e(5417),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 m,g,x=u(y),w=i(x),S=n(d,h),j=c(w),O=0,F=b||a,E=r?F(y,j):e||l?F(y,0):void 0;j>O;O++)if((v||O in w)&&(g=S(m=w[O],O,x),t))if(r)E[O]=g;else if(g)switch(t){case 3:return!0;case 5:return m;case 6:return O;case 2:s(E,m)}else switch(t){case 4:return!1;case 7:s(E,m)}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)}},7475:(t,r,e)=>{var n=e(3157),o=e(4411),i=e(111),u=e(5112)("species"),c=Array;t.exports=function(t){var r;return n(t)&&(r=t.constructor,(o(r)&&(r===c||n(r.prototype))||i(r)&&null===(r=r[u]))&&(r=void 0)),void 0===r?c:r}},5417:(t,r,e)=>{var n=e(7475);t.exports=function(t,r){return new(n(t))(0===r?0:r)}},4326:(t,r,e)=>{var n=e(1702),o=n({}.toString),i=n("".slice);t.exports=function(t){return i(o(t),8,-1)}},648:(t,r,e)=>{var n=e(1694),o=e(614),i=e(4326),u=e(5112)("toStringTag"),c=Object,a="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=c(t),u))?e:a?i(r):"Object"==(n=i(r))&&o(r.callee)?"Arguments":n}},9920:(t,r,e)=>{var n=e(2597),o=e(3887),i=e(1236),u=e(3070);t.exports=function(t,r,e){for(var c=o(r),a=u.f,s=i.f,f=0;f<c.length;f++){var p=c[f];n(t,p)||e&&n(e,p)||a(t,p,s(r,p))}}},8880:(t,r,e)=>{var n=e(9781),o=e(3070),i=e(9114);t.exports=n?function(t,r,e){return o.f(t,r,i(1,e))}:function(t,r,e){return t[r]=e,t}},9114:t=>{t.exports=function(t,r){return{enumerable:!(1&t),configurable:!(2&t),writable:!(4&t),value:r}}},8052:(t,r,e)=>{var n=e(614),o=e(3070),i=e(6339),u=e(3072);t.exports=function(t,r,e,c){c||(c={});var a=c.enumerable,s=void 0!==c.name?c.name:r;if(n(e)&&i(e,s,c),c.global)a?t[r]=e:u(r,e);else{try{c.unsafe?t[r]&&(a=!0):delete t[r]}catch(t){}a?t[r]=e:o.f(t,r,{value:e,enumerable:!1,