vendor: 4,107 bytes, line 1
1(self.webpackChunkkupa=self.webpackChunkkupa||[]).push([[9051],{65338:function(e){e.exports=function(e,t,r,n){for(var i=-1,o=null==e?0:e.length;++i<o;){var u=e[i];t(n,u,r(u),e)}return n}},60091:function(e,t,r){var n=r(13940),i=r(41225),o=Object.prototype.hasOwnProperty;e.exports=function(e,t,r){var u=e[t];o.call(e,t)&&i(u,r)&&(void 0!==r||t in e)||n(e,t,r)}},12825:function(e,t,r){var n=r(24303);e.exports=function(e,t,r,i){return n(e,(function(e,n,o){t(i,e,r(e),o)})),i}},13940:function(e,t,r){var n=r(83043);e.exports=function(e,t,r){"__proto__"==t&&n?n(e,t,{configurable:!0,enumerable:!0,value:r,writable:!0}):e[t]=r}},92602:function(e,t,r){var n=r(93759),i=r(95041);e.exports=function(e,t){return n(e,t,(function(t,r){return i(e,r)}))}},93759:function(e,t,r){var n=r(13324),i=r(82857),o=r(17297);e.exports=function(e,t,r){for(var u=-1,l=t.length,a={};++u<l;){var f=t[u],s=n(e,f);r(s,f)&&i(a,o(f,e),s)}return a}},82857:function(e,t,r){var n=r(60091),i=r(17297),o=r(39045),u=r(29259),l=r(33812);e.exports=function(e,t,r,a){if(!u(e))return e;for(var f=-1,s=(t=i(t,e)).length,c=s-1,d=e;null!=d&&++f<s;){var p=l(t[f]),y=r;if("__proto__"===p||"constructor"===p||"prototype"===p)return e;if(f!=c){var b=d[p];void 0===(y=a?a(b,p,d):void 0)&&(y=u(b)?b:o(t[f+1])?[]:{})}n(d,p,y),d=d[p]}return e}},36740:function(e,t,r){var n=r(65338),i=r(12825),o=r(68286),u=r(86152);e.exports=function(e,t){return function(r,l){var a=u(r)?n:i,f=t?t():{};return a(r,e,o(l,2),f)}}},29097:function(e,t,r){var n=r(35676),i=r(43114),o=r(75251);e.exports=function(e){return o(i(e,void 0,n),e+"")}},35676:function(e,t,r){var n=r(62034);e.exports=function(e){return(null==e?0:e.length)?n(e,1):[]}},3440:function(e,t,r){var n=r(13940),i=r(36740),o=Object.prototype.hasOwnProperty,u=i((function(e,t,r){o.call(e,r)?e[r].push(t):n(e,r,[t])}));e.exports=u},13888:function(e,t,r){var n=r(92602),i=r(29097)((function(e,t){return null==e?{}:n(e,t)}));e.exports=i},54517:function(e,t,r){"use strict";r.r(t),r.d(t,{FieldUpdate:function(){return g},UPDATE_TYPES:function(){return h},default:function(){return S}});var n=r(23577);r(26936),r(39529),r(31235),r(67890),r(15735),r(81804),r(95342),r(58188),r(43430),r(35883),r(95094),r(43450),r(34769),r(18178),r(9575),r(96264),r(34115),r(634),r(71245),r(20796),r(28673),r(6886),r(32501),r(27233),r(77950),r(68625),r(1939),r(62775),r(76555);var i=r(13888),o=r.n(i),u=r(3440),l=r.n(u),a=r(19126),f=r.n(a);function s(e){return s="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},s(e)}function c(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),r.push.apply(r,n)}return r}function d(e){for(var t=1;t<arguments.length;t++){var r=null!=arguments[t]?arguments[t]:{};t%2?c(Object(r),!0).forEach((function(t){p(e,t,r[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):c(Object(r)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(r,t))}))}return e}function p(e,t,r){return(t=v(t))in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}function y(e,t){return function(e){if(Array.isArray(e))return e}(e)||function(e,t){var r=null==e?null:"undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(null!=r){var n,i,o,u,l=[],a=!0,f=!1;try{if(o=(r=r.call(e)).next,0===t){if(Object(r)!==r)return;a=!1}else for(;!(a=(n=o.call(r)).done)&&(l.push(n.value),l.length!==t);a=!0);}catch(s){f=!0,i=s}finally{try{if(!a&&null!=r.return&&(u=r.return(),Object(u)!==u))return}finally{if(f)throw i}}return l}}(e,t)||function(e,t){if(!e)return;if("string"===typeof e)return b(e,t);var r=Object.prototype.toString.call(e).slice(8,-1);"Object"===r&&e.constructor&&(r=e.constructor.name);if("Map"===r||"Set"===r)return Array.from(e);if("Arguments"===r||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(r))return b(e,t)}
1(e,t)||function(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function b(e,t){(null==t||t>e.length)&&(t=e.length);for(var r=0,n=new Array(t);r<t;r++)n[r]=e[r];return n}function m(e,t){for(var r=0;r<t.length;r++){var n=t[r];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(e,v(n.key),n)}}function v(e){var t=function(e,t){if("object"!==s(e)||null===e)return e;var r=e[Symbol.toPrimitive];if(void 0!==r){var n=r.call(e,t||"default");if("object"!==s(n))return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===t?String:Number)(e)}(e,"string");return"symbol"===s(t)?t:String(t)}var h={attribute:"attribute",class:"class",modifierClass:"modifierClass",initialValue:"initialValue"},g=function(){function e(t){var r=t.name,n=t.type,i=t.value;!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,e),Object.values(h).includes(n)||console.error("Invalid Type ",this.type,h),this.name=r,this.type=n,this.value=i}var t,r,n;return t=e,(r=[{key:"toObject",value:function(){return this}}])&&m(t.prototype,r),n&&m(t,n),Object.defineProperty(t,"prototype",{writable:!1}),e}();var F={provide:function(){var e=this,t={};return Object.defineProperty(t,"uuid",{enumerable:!0,get:function(){return e.uuid}}),Object.defineProperty(t,"fields",{enumerable:!0,get:function(){return e.internalFields}}),Object.defineProperty(t,"dirtyFields",{enumerable:!0,get:function(){return e.dirtyFields}}),Object.defineProperty(t,"isDirty",{enumerable:!0,get:function(){return e.isDirty}}),Object.defineProperty(t,"errorFields",{enumerable:!0,get:function(){return e.errorFields}}),Object.defineProperty(t,"fieldUpdateHistory",{enumerable:!0,get:function(){return e.fieldUpdateHistory}}),{formContext:t,getFieldValue:this.getFieldValue,storeFieldValue:this.storeFieldValue,deleteField:this.deleteField,resetForm:this.resetForm,getFields:this.getFields,getInitialFields:this.getInitialFields,submit:this.submit,setPreStoredFields:this.setPreStoredFields,addFieldUpdate:this.addFieldUpdate,deleteFieldUpdate:this.deleteFieldUpdate,setFieldUpdate:this.setFieldUpdate,getFieldUpdatesByName:this.getFieldUpdatesByName}},props:{action:{type:String,default:""},method:{type:String,default:"POST"},enctype:{type:String,default:""},target:{type:String,default:""},fields:{type:Object,default:function(){return{}}},beforeSubmitHook:{type:Function,default:function(){return function(){return!0}}}},emits:["update:fields"],setup:function(e,t){var r=t.emit,i=(0,n.qj)({preStored:{},initial:{},internal:{}}),u=(0,n.Fl)((function(){return Object.entries(i.internal).filter((function(e){var t=y(e,2),r=t[0],n=t[1];return JSON.stringify(i.initial[r])!==JSON.stringify(n)})).map((function(e){return y(e,1)[0]}))})),l=function(e){var t=o()(e,Object.keys(i.internal));i.internal=d(d({},i.internal),t),i.preStored=JSON.parse(JSON.stringify(e))};l(e.fields);var a=function(e,t){var r=void 0===i.internal[e];r&&(i.initial[e]=t);var n=i.preStored[e];i.internal[e]=r&&n?n:t},s=function(e){return i.internal[e]||""},c=function(e){delete i.internal[e],delete i.initial[e]},p=function(e){var t=e.keepFields;if(JSON.stringify(i.internal)!==JSON.stringify(i.initial)){var r=Object.fromEntries(t.map((function(e){return[e,i.internal[e]]})));i.internal=JSON.parse(JSON.stringify(d(d({},i.initial),r)))}},b=function(t){if(console.log({fields:i}),e.beforeSubmitHook(i.internal))if("GET"!==e.method){var r,n=document.createElement("form");n.action=e.action,n.method=e.method,n.target=e.target,n.enctype=e.enctype;var o=document.createElement("input");o.type="hidden",o.name="data",o.value=JSON.stringify(i.internal),n.appendChild(o),document.body.appendChild(n),n.submit()}else{var u=(r=i.internal,Object.fromEntries(Object.entries(r).sort((function(e){return y(e,1)[0]})).filter((function(e){var t=y(e,2),r=(t[0],t[1]);return null!=r&&""!=r})))),l=f().stringify(u,{arrayFormat:"indices",encode:!1});window.location.href="".concat(e.action,"?").concat(l)}};return(0,n.YP)(e.fields,(function(e){e.internal=e}),{deep:!0}),(0,n.YP)(i,(function(e){r("update:fields",e.internal)}),{deep:!0}),(0,n.JJ)("form/fields",(0,n.OT)(i)),(0,n.JJ)("form/storeFieldValue",a),(0,n.JJ)("form/getFieldValue",s),(0,n.JJ)("form/deleteField",c),(0,n.JJ)("form/submit",b),(0,n.JJ)("form/reset",p),(0,n.JJ)("form/preStoreFields",l),e.fields.value&&0===Object.keys(i.preStored).length&&preStore(e.fields.value),{internalFields:i.internal,initialFields:i.initial,preStoredFields:i.preStored,dirtyFields:u,setPreStoredFields:l,storeFieldValue:a,getFieldValue:s,deleteField:c,submit:b,reset:p}},data:function(){return{fieldUpdateHistory:{},errorFields:[],uuid:this.$uuid.v1()}},computed:{isDirty:function(){return this.dirtyFields.length>0},fieldUpdatesByName:function(){return l()(Object.values(this.fieldUpdateHistory),"name")}},methods:{addFieldUpdate:function(e){var t=e.name,r=e.type,n=e.value;if(!Object.values(h).includes(r))return!1;var i=new g(t,r,n),o=this.$uuid.v1();return this.fieldUpdateHistory[o]=i,o},setFieldUpdate:function(e,t){return this.fieldUpdateHistory[e]=t.toObject(),e},deleteFieldUpdate:function(e){delete this.fieldUpdateHistory[e]},getFieldUpdatesByName:function(e){return l()(this.fieldUpdatesByName[e],"type")},getFields:function(){return this.internalFields||{}},getInitialFields:function(){return this.initialFields||{}},resetForm:function(e){var t=e.keepFields;this.reset({keepFields:t})}}};const O=(0,r(94407).Z)(F,[["render",function(e,t,r,i,o,u){return(0,n.wg)(),(0,n.iD)("form",{onSubmit:t[0]||(t[0]=(0,n.iM)((function(){return i.submit&&i.submit.apply(i,arguments)}),["prevent"]))},[((0,n.wg)(),(0,n.j4)(n.n4,null,{default:(0,n.w5)((function(){return[(0,n.WI)(e.$slots,"default")]}),void 0,!0),_:3}))],32)}]]);var S=O},53260:function(){}}]); 2//# sourceMappingURL=9051.30d0775a31af6e7f3384.js.map
Line numbers count LF bytes from the start of the resource, as the search results do. Vendor segments are library code the classifier recognised; they are stored but not indexed. Bytes are shown as Latin1 characters, one per byte.