1/*! For license information please see 6255.js.LICENSE.txt */ 2"use strict";(self.webpackChunk=self.webpackChunk||[]).push([[6255],{63216(t,e,r){r.d(e,{Ay:()=>O});var s=r(72505),n=r.n(s),o=Object.defineProperty,a=Object.prototype.hasOwnProperty,i=Object.getOwnPropertySymbols,c=Object.prototype.propertyIsEnumerable,u=(t,e,r)=>e in t?o(t,e,{enumerable:!0,configurable:!0,writable:!0,value:r}):t[e]=r,l=(t,e)=>{for(var r in e||(e={}))a.call(e,r)&&u(t,r,e[r]);if(i)for(var r of i(e))c.call(e,r)&&u(t,r,e[r]);return t};const f=t=>void 0===t,h=t=>Array.isArray(t),d=t=>t&&"number"==typeof t.size&&"string"==typeof t.type&&"function"==typeof t.slice,p=(t,e,r,s)=>((e=e||{}).indices=!f(e.indices)&&e.indices,e.nullsAsUndefineds=!f(e.nullsAsUndefineds)&&e.nullsAsUndefineds,e.booleansAsIntegers=!f(e.booleansAsIntegers)&&e.booleansAsIntegers,e.allowEmptyArrays=!f(e.allowEmptyArrays)&&e.allowEmptyArrays,r=r||new FormData,f(t)||(null===t?e.nullsAsUndefineds||r.append(s,""):(t=>"boolean"==typeof t)(t)?e.booleansAsIntegers?r.append(s,t?1:0):r.append(s,t):h(t)?t.length?t.forEach((t,n)=>{const o=s+"["+(e.indices?n:"")+"]";p(t,e,r,o)}):e.allowEmptyArrays&&r.append(s+"[]",""):(t=>t instanceof Date)(t)?r.append(s,t.toISOString()):!(t=>t===Object(t))(t)||(t=>d(t)&&"string"==typeof t.name&&("object"==typeof t.lastModifiedDate||"number"==typeof t.lastModified))(t)||d(t)?r.append(s,t):Object.keys(t).forEach(n=>{const o=t[n];if(h(o))for(;n.length>2&&n.lastIndexOf("[]")===n.length-2;)n=n.substring(0,n.length-2);p(o,e,r,s?s+"["+n+"]":n)})),r);var y={serialize:p};function m(t){if(null===t||"object"!=typeof t)return t;const e=Array.isArray(t)?[]:{};return Object.keys(t).forEach(r=>{e[r]=m(t[r])}),e}function b(t){return Array.isArray(t)?t:[t]}function v(t){return t instanceof File||t instanceof Blob||t instanceof FileList||"object"==typeof t&&null!==t&&void 0!==Object.values(t).find(t=>v(t))}class g{constructor(){this.errors={},this.errors={}}set(t,e){"object"==typeof t?this.errors=t:this.set(l(l({},this.errors),{[t]:b(e)}))}all(){return this.errors}has(t){return Object.prototype.hasOwnProperty.call(this.errors,t)}hasAny(...t){return t.some(t=>this.has(t))}any(){return Object.keys(this.errors).length>0}get(t){if(this.has(t))return this.getAll(t)[0]}getAll(t){return b(this.errors[t]||[])}only(...t){const e=[];return t.forEach(t=>{const r=this.get(t);r&&e.push(r)}),e}flatten(){return Object.values(this.errors).reduce((t,e)=>t.concat(e),[])}clear(t){const e={};t&&Object.keys(this.errors).forEach(r=>{r!==t&&(e[r]=this.errors[r])}),this.set(e)}}class w{constructor(t={}){this.originalData={},this.busy=!1,this.successful=!1,this.recentlySuccessful=!1,this.recentlySuccessfulTimeoutId=void 0,this.errors=new g,this.progress=void 0,this.update(t)}static make(t){return new this(t)}update(t){this.originalData=Object.assign({},this.originalData,m(t)),Object.assign(this,t)}fill(t={}){this.keys().forEach(e=>{this[e]=t[e]})}data(){return this.keys().reduce((t,e)=>l(l({},t),{[e]:this[e]}),{})}keys(){return Object.keys(this).filter(t=>!w.ignore.includes(t))}startProcessing(){this.errors.clear(),this.busy=!0,this.successful=!1,this.progress=void 0,this.recentlySuccessful=!1,clearTimeout(this.recentlySuccessfulTimeoutId)}finishProcessing(){this.busy=!1,this.successful=!0,this.progress=void 0,this.recentlySuccessful=!0,this.recentlySuccessfulTimeoutId=setTimeout(()=>{this.recentlySuccessful=!1},w.recentlySuccessfulTimeout)}clear(){this.errors.clear(),this.successful=!1,this.recentlySuccessful=!1,this.progress=void 0,clearTimeout(this.recentlySuccessfulTimeoutId)}reset(){Object.keys(this).filter(t=>!w.ignore.includes(t)).forEach(t=>{this[t]=m(this.originalData[t])})}get(t,e={}){return this.submit("get",t,e)}post(t,e={}){return this.submit("post",t,e)}patch(t,e={}){return this.submit("patch",t,e)}put(t,e={}){return this.submit("put",t,e)}delete(t,e={}){return this.submit("delete",t,e)}submit(t,e,r={}){return this.startProcessing(),r=l({data:{},params:{},url:this.route(e),method:t,onUploadProgress:this.handleUploadProgress.bind(this)},r),"get"===t.toLowerCase()?r.params=l(l({},this.data()),r.params):(r.data=l(l({},this.data()),r.data),v(r.data)&&!r.transformRequest&&(r.transformRequest=[t=>
2y.serialize(t)])),new Promise((t,e)=>{(w.axios||n()).request(r).then(e=>{this.finishProcessing(),t(e)}).catch(t=>{this.handleErrors(t),e(t)})})}handleErrors(t){this.busy=!1,this.progress=void 0,t.response&&this.errors.set(this.extractErrors(t.response))}extractErrors(t){return t.data&&"object"==typeof t.data?t.data.errors?l({},t.data.errors):t.data.message?{error:t.data.message}:l({},t.data):{error:w.errorMessage}}handleUploadProgress(t){this.progress={total:t.total,loaded:t.loaded,percentage:Math.round(100*t.loaded/t.total)}}route(t,e={}){let r=t;return Object.prototype.hasOwnProperty.call(w.routes,t)&&(r=decodeURI(w.routes[t])),"object"!=typeof e&&(e={id:e}),Object.keys(e).forEach(t=>{r=r.replace(`{${t}}`,e[t])}),r}onKeydown(t){const e=t.target;e.name&&this.errors.clear(e.name)}}w.routes={},w.errorMessage="Something went wrong. Please try again.",w.recentlySuccessfulTimeout=2e3,w.ignore=["busy","successful","errors","progress","originalData","recentlySuccessful","recentlySuccessfulTimeoutId"];const O=w},46255(t,e,r){r.r(e),r.d(e,{default:()=>l});var s=r(63216);function n(){var t,e,r="function"==typeof Symbol?Symbol:{},s=r.iterator||"@@iterator",a=r.toStringTag||"@@toStringTag";function i(r,s,n,a){var i=s&&s.prototype instanceof u?s:u,l=Object.create(i.prototype);return o(l,"_invoke",function(r,s,n){var o,a,i,u=0,l=n||[],f=!1,h={p:0,n:0,v:t,a:d,f:d.bind(t,4),d:function(e,r){return o=e,a=0,i=t,h.n=r,c}};function d(r,s){for(a=r,i=s,e=0;!f&&u&&!n&&e<l.length;e++){var n,o=l[e],d=h.p,p=o[2];r>3?(n=p===s)&&(i=o[(a=o[4])?5:(a=3,3)],o[4]=o[5]=t):o[0]<=d&&((n=r<2&&d<o[1])?(a=0,h.v=s,h.n=o[1]):d<p&&(n=r<3||o[0]>s||s>p)&&(o[4]=r,o[5]=s,h.n=p,a=0))}if(n||r>1)return c;throw f=!0,s}return function(n,l,p){if(u>1)throw TypeError("Generator is already running");for(f&&1===l&&d(l,p),a=l,i=p;(e=a<2?t:i)||!f;){o||(a?a<3?(a>1&&(h.n=-1),d(a,i)):h.n=i:h.v=i);try{if(u=2,o){if(a||(n="next"),e=o[n]){if(!(e=e.call(o,i)))throw TypeError("iterator result is not an object");if(!e.done)return e;i=e.value,a<2&&(a=0)}else 1===a&&(e=o.return)&&e.call(o),a<2&&(i=TypeError("The iterator does not provide a '"+n+"' method"),a=1);o=t}else if((e=(f=h.n<0)?i:r.call(s,h))!==c)break}catch(e){o=t,a=1,i=e}finally{u=1}}return{value:e,done:f}}}(r,n,a),!0),l}var c={};function u(){}function l(){}function f(){}e=Object.getPrototypeOf;var h=[][s]?e(e([][s]())):(o(e={},s,function(){return this}),e),d=f.prototype=u.prototype=Object.create(h);function p(t){return Object.setPrototypeOf?Object.setPrototypeOf(t,f):(t.__proto__=f,o(t,a,"GeneratorFunction")),t.prototype=Object.create(d),t}return l.prototype=f,o(d,"constructor",f),o(f,"constructor",l),l.displayName="GeneratorFunction",o(f,a,"GeneratorFunction"),o(d),o(d,a,"Generator"),o(d,s,function(){return this}),o(d,"toString",function(){return"[object Generator]"}),(n=function(){return{w:i,m:p}})()}function o(t,e,r,s){var n=Object.defineProperty;try{n({},"",{})}catch(t){n=0}o=function(t,e,r,s){function a(e,r){o(t,e,function(t){return this._invoke(e,r,t)})}e?n?n(t,e,{value:r,enumerable:!s,configurable:!s,writable:!s}):t[e]=r:(a("next",0),a("throw",1),a("return",2))},o(t,e,r,s)}function a(t,e,r,s,n,o,a){try{var i=t[o](a),c=i.value}catch(t){return void r(t)}i.done?e(c):Promise.resolve(c).then(s,n)}const i={layout:"central",middleware:["auth","check-permissions"],metaInfo:function(){return{title:this.$t("Feature")}},data:function(){return{breadcrumbsCurrent:"Create",breadcrumbs:[{name:"Dashboard",url:"home"},{name:"Features",url:"features.index"},{name:"Create",url:""}],url:null,form:new s.Ay({name:""})}},methods:{save:function(){var t,e=this;return(t=n().m(function t(){return n().w(function(t){for(;;)switch(t.n){case 0:return t.n=1,e.form.post(window.location.origin+"/api/features").then(function(){toast.fire({type:"success",title:e.$t("Successfully created")}),e.$router.push({name:"features.index"})}).catch(function(){toast.fire({type:"error",title:e.$t("Error!")})});case 1:return t.a(2)}},t)}),function(){var e=this,r=arguments;return new Promise(function(s,n){var o=t.apply(e,r);function i(t){a(o,s,n,i,c,"next",t)}function c(t){a(o,s,n,i,c,"throw",t)}i(void 0)})})()}}},c=i;var u=(0,r(14486).A)(c,function(){var t=this,e=t._self._c;return e("div",[e("breadcrumbs",{attrs:{items:t.breadcrumbs,current:t.breadcrumbsCurrent}}),t._v(" "),e("div",{staticClass:"row"},[e("div",{staticClass:"col-lg-8 m-auto"},[e("div",{staticClass:"card"},[e("div",{staticClass:"card-header"},[e("h3",{staticClass:"card-title"},[t._v("\n "+t._s(t.$t("Feature Create"))+"\n ")]),t._v(" "),e("router-link",{staticClass:"btn btn-dark float-right",attrs:{to:{name:"features.index"}}},[e("i",{staticClass:"fas fa-long-arrow-alt-left"}),t._v(" "+t._s(t.$t("Back"))+"\n ")])],1),t._v(" "),e("form",{attrs:{role:"form"},on:{submit:function(e){return e.preventDefault(),t.save.apply(null,arguments)},keydown:function(e){return t.form.onKeydown(e)}}},[e("div",{staticClass:"card-body"},[e("div",{staticClass:"row"},[e("div",{staticClass:"form-group col-md-12"},[e("label",{attrs:{for:"name"}},[t._v(t._s(t.$t("Name"))+"\n "),e("span",{staticClass:"required"},[t._v("*")])]),t._v(" "),e("input",{directives:[{name:"model",rawName:"v-model",value:t.form.name,expression:"form.name"}
2],staticClass:"form-control",class:{"is-invalid":t.form.errors.has("name")},attrs:{id:"name",type:"text",name:"name",placeholder:t.$t("Name")},domProps:{value:t.form.name},on:{input:function(e){e.target.composing||t.$set(t.form,"name",e.target.value)}}}),t._v(" "),e("has-error",{attrs:{form:t.form,field:"name"}})],1)])]),t._v(" "),e("div",{staticClass:"card-footer"},[e("v-button",{staticClass:"btn btn-primary",attrs:{loading:t.form.busy}},[e("i",{staticClass:"fas fa-save"}),t._v(" "+t._s(t.$t("Save"))+"\n ")]),t._v(" "),e("button",{staticClass:"btn btn-secondary float-right",attrs:{type:"reset"},on:{click:function(e){return t.form.reset()}}},[e("i",{staticClass:"fas fa-power-off"}),t._v(" "+t._s(t.$t("Reset"))+"\n ")])],1)])])])])],1)},[],!1,null,"5a179674",null);const l=u.exports}}]);
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.