PageSourceSearch

https://aida64.co.uk/js/41.d3cf994d.js

js aida64.co.uk collected 2026-10-04 06:07:11 UTC 7,273 bytes, 1 lines download raw bytes

1(window["webpackJsonp"]=window["webpackJsonp"]||[]).push([[41],{5330:function(t,o,e){"use strict";e.r(o);var render=function(){var t=this,o=t.$createElement,e=t._self._c||o;return e("q-page",{staticClass:"flex flex-column",staticStyle:{"flex-direction":"column","align-items":"center"}},[e("div",{staticClass:"aida-container flex-column q-py-lg"},[e("span",{staticClass:"text-h6"},[t._v("Top info")]),e("q-btn",{staticClass:"q-ma-md",on:{click:function(o){return t.addNew()}}},[t._v("Add New")]),e("q-list",{attrs:{separator:""}},t._l(t.items,(function(o){return e("q-item",{key:o.id,staticStyle:{"overflow-wrap":"break-word"},attrs:{clickable:""}},[e("q-item-section",{on:{click:function(e){return t.itemSelected(o)}}},[t._v(t._s(o.name[t.lang]||"- Not defined - "))]),e("q-item-section",{on:{click:function(e){return t.itemSelected(o)}}},[t._v(t._s(o.adminName))]),e("q-item-section",{on:{click:function(e){return t.itemSelected(o)}}},[t._v(t._s(t.getValidRange(o)))]),e("q-item-section",{attrs:{side:""}},[e("confirm-button",{attrs:{label:"Delete"},on:{confirmed:function(e){return t.deleteItem(o.id)}}})],1)],1)})),1),e("top-info-editor-dialog",{attrs:{"top-info-to-edit":t.selectedTopInfo},on:{updated:t.itemUpdated},model:{value:t.showDialog,callback:function(o){t.showDialog=o},expression:"showDialog"}})],1)])},n=[],a=(e("20d6"),e("bd4c")),TopInfoEditorDialogvue_type_template_id_26b1b053_render=function(){var t=this,o=t.$createElement,e=t._self._c||o;return e("q-dialog",{attrs:{persistent:"","full-width":"","full-height":""},model:{value:t.val,callback:function(o){t.val=o},expression:"val"}},[e("q-card",{staticClass:"aida-container",staticStyle:{"max-width":"1100px"}},[e("div",{staticClass:" flex-column q-pb-lg q-pt-sm bg-white"},[e("editor-dialog-header",{staticStyle:{width:"100%"},attrs:{"lang-selector":""},model:{value:t.lang,callback:function(o){t.lang=o},expression:"lang"}}),e("div",{staticClass:"row"},[e("div",{staticClass:"col-6 q-pr-md"},[e("q-input",{attrs:{label:"Admin Name"},model:{value:t.topInfo.adminName,callback:function(o){t.$set(t.topInfo,"adminName",o)},expression:"topInfo.adminName"}})],1),e("div",{staticClass:"col-12 q-pr-md"},[e("q-input",{attrs:{label:"Name"},model:{value:t.topInfo.name[t.lang],callback:function(o){t.$set(t.topInfo.name,t.lang,o)},expression:"topInfo.name[lang]"}})],1)]),e("div",{staticClass:"row"},[e("div",{staticClass:"q-py-md q-pr-sm col-6"},[e("q-input",{staticClass:"my-input",attrs:{filled:"",label:"Background color"},scopedSlots:t._u([{key:"append",fn:function(){return[e("q-icon",{staticClass:"cursor-pointer",attrs:{name:"colorize"}},[e("q-popup-proxy",{attrs:{"transition-show":"scale","transition-hide":"scale"}},[e("q-color",{model:{value:t.topInfo.backgroundColor,callback:function(o){t.$set(t.topInfo,"backgroundColor",o)},expression:"topInfo.backgroundColor"}})],1)],1)]},proxy:!0}]),model:{value:t.topInfo.backgroundColor,callback:function(o){t.$set(t.topInfo,"backgroundColor",o)},expression:"topInfo.backgroundColor"}})],1),e("div",{staticClass:"q-py-md q-pr-sm col-6"},[e("q-input",{staticClass:"my-input",attrs:{filled:"",label:"Font color"},scopedSlots:t._u([{key:"append",fn:function(){return[e("q-icon",{staticClass:"cursor-pointer",attrs:{name:"colorize"}},[e("q-popup-proxy",{attrs:{"transition-show":"scale","transition-hide":"scale"}},[e("q-color",{model:{value:t.topInfo.fontColor,callback:function(o){t.$set(t.topInfo,"fontColor",o)},expression:"topInfo.fontColor"}})],1)],1)]},proxy:!0}]),model:{value:t.topInfo.fontColor,callback:function(o){t.$set(t.topInfo,"fontColor",o)},expression:"topInfo.fontColor"}})],1)]),e("div",{staticClass:"row"},[e("div",{staticClass:"q-py-md q-pr-sm col-6"},[e("date-time-input",{attrs:{label:"start"},model:{value:t.topInfo.validFrom,callback:function(o){t.$set(t.topInfo,"validFrom",o)},expression:"topInfo.validFrom"}})],1),e("div",{staticClass:"q-py-md q-pl-sm col-6"},[e("date-time-input",{attrs:{label:"end"},model:{value:t.topInfo.validUntil,callback:function(o){t.$set(t.topInfo,"validUntil",o)},expression:"topInfo.validUntil"}})],1)]),e("div",{staticClass:"row"},[e("div",{staticClass:"q-py-md q-pr-sm col-6"},[e("date-time-input",{attrs:{label:"Count to",clearable:"","hide-zero":""},model:{value:t.topInfo.counterTo,callback:function(o){t.$set(t.topInfo,"counterTo",o)},expression:"topInfo.counterTo"}})],1)]),e("q-btn",{staticStyle:{"align-self":"flex-end","margin-top":"20px"},attrs:{color:"accent"},on:{click:t.saveTopInfo}},[t._v("Save")])],1)])],1)},i=[],l=e("d279"),s=e("8aef"),c=e("06c5"),r=e("bf8d"),d=e("b08a"),p={name:"TopInfoEditorDialog",mixins:[c["a"],d["a"]],components:{DateTimeInput:s["a"],EditorDialogHeader:l["a"]},props:["topInfoToEdit"],data:function data(){return{newCode:null,topInfo:{},countries:[],countriesFiltered:[]}},computed:{},mounted:function mounted(){},watch:{topInfoToEdit:{immediate:!0,handler:function handler(t){this.topInfo=JSON.parse(JSON.stringify(t||this.getDefaultTopInfo()))}}},methods:{saveTopInfo:function saveTopInfo(){var t=this,o=JSON.parse(JSON.stringify(this.topInfo));null!==o.id&&void 0!==o.id?this.$endpoints.connPostApiTopInfoUpdate(o,o.id).then((function(o){t.$emit("updated",o.data),t.val=!1,t.$q.notify("Successfully updated")})).catch((function(o){t.$q.notify(o.response.data.message)})):this.$endpoints.connPostApiTopInfoCreate(this.topInfo).then((function(o){t.$emit("created",o.data),t.val=!1,t.$q.notify("Successfully created")})).catch((function(o){t.$q.notify(o.response.data.message)}))},getDefaultTopInfo:function getDefaultTopInfo(){return{name:Object(r["b"])(),adminName:"",backgroundColor:"",fontColor:"",validFrom:new Date,validUntil:new Date,counterTo:null}}}},f=p,u=e("2877"),m=e("24e8"),v=e("f09f"),I=e("27f9"),h=e("0016"),g=e("7cbe"),b=e("b498"),q=e("9c40"),C=e("eebe"),w=e.n(C),k=Object(u["a"])(f,TopInfoEditorDialogvue_type_template_id_26b1b053_render,i,!1,null,null,null),x=k.exports;w()(k,"components",{QDialog:m["a"],QCard:v["a"],QInput:I["a"],QIcon:h["a"],QPopupProxy:g["a"],QColor:b["a"],QBtn:q["a"]});var D=e("35ea"),y={name:"AdminTopInfoList",components:{ConfirmButton:D["a"],TopInfoEditorDialog:x},mixins:[d["a"]],data:function data(){return{items:[],showDialog:!1,selectedTopInfo:null}},mounted:function mounted(){this.fetchData()},methods:{getValidRange:function getValidRange(t){var o=new Date(t.validFrom),e=new Date(t.validUntil),n=a["b"].formatDate(o,"YYYY.MM.DD HH:mm"),i=a["b"].formatDate(e,"YYYY.MM.DD HH:mm");return"".concat(n," - ").concat(i)},fetchData:function fetchData(){var t=this;this.$endpoints.connGetApiTopInfoList().then((function(o){t.items=o.data.list}))},deleteItem:function deleteItem(t){var o=this;null!=t&&this.$endpoints.connPostApiTopInfoDelete(t).then((function(t){o.fetchData()}))}
1,addNew:function addNew(){this.selectedTopInfo=null,this.showDialog=!0},itemSelected:function itemSelected(t){console.log(t),this.selectedTopInfo=t,this.showDialog=!0},itemUpdated:function itemUpdated(t){var o=this.items.findIndex((function(o){return o.id===t.id}));o>-1?this.items[o]=t:this.items.push(t)}}},T=y,$=e("9989"),S=e("1c1c"),N=e("66e5"),_=e("4074"),Q=Object(u["a"])(T,render,n,!1,null,"a69481dc",null);o["default"]=Q.exports;w()(Q,"components",{QPage:$["a"],QBtn:q["a"],QList:S["a"],QItem:N["a"],QItemSection:_["a"]})}}]);

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.