File manager - Edit - /var/www/payraty/inventory_main/public/js/chunks/811.56c44b0b42ded0e1.js
Back
"use strict";(self.webpackChunk=self.webpackChunk||[]).push([[811],{4811:(t,e,a)=>{a.r(e),a.d(e,{default:()=>s});const o={props:["items"],data:function(){return{formData:{items:[]}}},computed:{},mounted:function(){var t=this;this.items.map((function(e){t.formData.items.push({name:e.name,color:e.color,image:e.image,file_url:e.file_url})}))},methods:{addItem:function(){this.formData.items.push({name:"",color:"#000"})},deleteItem:function(t){this.formData.items.splice(t,1)}}};const s=(0,a(1900).Z)(o,(function(){var t=this,e=t._self._c;return e("div",{staticClass:"form-group col-md-12 col-lg-8"},[e("label",{attrs:{for:""}},[t._v(t._s(t.__("custom.attribute_items")))]),t._v(" "),e("div",{staticClass:"table-responsive"},[e("table",{staticClass:"table table-bordered table-sm"},[e("thead",[e("tr",[e("th",[t._v(t._s(t.__("custom.item_name")))]),t._v(" "),e("th",[t._v(t._s(t.__("custom.color")))]),t._v(" "),e("th",[t._v(t._s(t.__("custom.image")))]),t._v(" "),e("th",[t._v(t._s(t.__("custom.action")))])])]),t._v(" "),e("tbody",t._l(t.formData.items,(function(a,o){return e("tr",{key:o},[e("td",{attrs:{width:"40%"}},[e("input",{directives:[{name:"model",rawName:"v-model",value:a.name,expression:"item.name"}],staticClass:"form-control",attrs:{type:"text",name:"item_data["+o+"][name]",maxlength:"100",placeholder:"Item name"},domProps:{value:a.name},on:{input:function(e){e.target.composing||t.$set(a,"name",e.target.value)}}})]),t._v(" "),e("td",{attrs:{width:"20%"}},[e("input",{directives:[{name:"model",rawName:"v-model",value:a.color,expression:"item.color"}],staticClass:"form-control",attrs:{type:"color",name:"item_data["+o+"][color]"},domProps:{value:a.color},on:{input:function(e){e.target.composing||t.$set(a,"color",e.target.value)}}})]),t._v(" "),e("td",[a.image?e("img",{staticClass:"img-32 float-left",attrs:{src:a.file_url,alt:""}}):t._e(),t._v(" "),e("input",{staticClass:"form-control",attrs:{type:"file",name:"item_data["+o+"][image]"}}),t._v(" "),e("input",{directives:[{name:"model",rawName:"v-model",value:a.image,expression:"item.image"}],staticClass:"form-control",attrs:{type:"hidden",name:"item_data["+o+"][old_image]",placeholder:"Note"},domProps:{value:a.image},on:{input:function(e){e.target.composing||t.$set(a,"image",e.target.value)}}})]),t._v(" "),e("td",[e("button",{staticClass:"btn btn-sm btn-outline-danger",attrs:{type:"button"},on:{click:function(e){return t.deleteItem(o)}}},[e("i",{staticClass:"fa fa-trash"})])])])})),0)])]),t._v(" "),e("button",{staticClass:"btn btn-info btn-sm",attrs:{type:"button"},on:{click:t.addItem}},[e("i",{staticClass:"fa fa-plus"}),t._v(" "+t._s(t.__("custom.add_item"))+"\n ")])])}),[],!1,null,null,null).exports},1900:(t,e,a)=>{function o(t,e,a,o,s,n,i,r){var l,m="function"==typeof t?t.options:t;if(e&&(m.render=e,m.staticRenderFns=a,m._compiled=!0),o&&(m.functional=!0),n&&(m._scopeId="data-v-"+n),i?(l=function(t){(t=t||this.$vnode&&this.$vnode.ssrContext||this.parent&&this.parent.$vnode&&this.parent.$vnode.ssrContext)||"undefined"==typeof __VUE_SSR_CONTEXT__||(t=__VUE_SSR_CONTEXT__),s&&s.call(this,t),t&&t._registeredComponents&&t._registeredComponents.add(i)},m._ssrRegister=l):s&&(l=r?function(){s.call(this,(m.functional?this.parent:this).$root.$options.shadowRoot)}:s),l)if(m.functional){m._injectStyles=l;var c=m.render;m.render=function(t,e){return l.call(e),c(t,e)}}else{var u=m.beforeCreate;m.beforeCreate=u?[].concat(u,l):[l]}return{exports:t,options:m}}a.d(e,{Z:()=>o})}}]);
| ver. 1.4 |
Github
|
.
| PHP 8.3.30 | Generation time: 0 |
proxy
|
phpinfo
|
Settings