1 line
40 KiB
JavaScript
1 line
40 KiB
JavaScript
(window["webpackJsonp"]=window["webpackJsonp"]||[]).push([["chunk-734bbfda"],{"1ac7":function(t,e,i){"use strict";i("355a")},2677:function(t,e,i){"use strict";var s=i("8654");e["a"]=s["a"]},"2fa4":function(t,e,i){"use strict";i("20f6");var s=i("80d2");e["a"]=Object(s["j"])("spacer","div","v-spacer")},"355a":function(t,e,i){},"368e":function(t,e,i){},"36a7":function(t,e,i){},"3c93":function(t,e,i){},5803:function(t,e,i){},"5e23":function(t,e,i){},"627d":function(t,e,i){},"6ca7":function(t,e,i){},"8efc":function(t,e,i){},ac7c:function(t,e,i){"use strict";i("6ca7"),i("ec29");var s=i("9d26"),a=i("c37a"),n=i("fe09");e["a"]=n["a"].extend({name:"v-checkbox",props:{indeterminate:Boolean,indeterminateIcon:{type:String,default:"$checkboxIndeterminate"},offIcon:{type:String,default:"$checkboxOff"},onIcon:{type:String,default:"$checkboxOn"}},data(){return{inputIndeterminate:this.indeterminate}},computed:{classes(){return{...a["a"].options.computed.classes.call(this),"v-input--selection-controls":!0,"v-input--checkbox":!0,"v-input--indeterminate":this.inputIndeterminate}},computedIcon(){return this.inputIndeterminate?this.indeterminateIcon:this.isActive?this.onIcon:this.offIcon},validationState(){if(!this.isDisabled||this.inputIndeterminate)return this.hasError&&this.shouldValidate?"error":this.hasSuccess?"success":null!==this.hasColor?this.computedColor:void 0}},watch:{indeterminate(t){this.$nextTick(()=>this.inputIndeterminate=t)},inputIndeterminate(t){this.$emit("update:indeterminate",t)},isActive(){this.indeterminate&&(this.inputIndeterminate=!1)}},methods:{genCheckbox(){const{title:t,...e}=this.attrs$;return this.$createElement("div",{staticClass:"v-input--selection-controls__input"},[this.$createElement(s["a"],this.setTextColor(this.validationState,{props:{dense:this.dense,dark:this.dark,light:this.light}}),this.computedIcon),this.genInput("checkbox",{...e,"aria-checked":this.inputIndeterminate?"mixed":this.isActive.toString()}),this.genRipple(this.setTextColor(this.rippleState))])},genDefaultSlot(){return[this.genCheckbox(),this.genLabel()]}}})},adda:function(t,e,i){"use strict";i("8efc");var s=i("90a2"),a=(i("36a7"),i("24b2")),n=i("58df"),o=i("80d2"),l=Object(n["a"])(a["a"]).extend({name:"v-responsive",props:{aspectRatio:[String,Number],contentClass:String},computed:{computedAspectRatio(){return Number(this.aspectRatio)},aspectStyle(){return this.computedAspectRatio?{paddingBottom:1/this.computedAspectRatio*100+"%"}:void 0},__cachedSizer(){return this.aspectStyle?this.$createElement("div",{style:this.aspectStyle,staticClass:"v-responsive__sizer"}):[]}},methods:{genContent(){return this.$createElement("div",{staticClass:"v-responsive__content",class:this.contentClass},Object(o["s"])(this))}},render(t){return t("div",{staticClass:"v-responsive",style:this.measurableStyles,on:this.$listeners},[this.__cachedSizer,this.genContent()])}}),r=l,c=i("7560"),h=i("d9f7"),d=i("d9bd");const u="undefined"!==typeof window&&"IntersectionObserver"in window;e["a"]=Object(n["a"])(r,c["a"]).extend({name:"v-img",directives:{intersect:s["a"]},props:{alt:String,contain:Boolean,eager:Boolean,gradient:String,lazySrc:String,options:{type:Object,default:()=>({root:void 0,rootMargin:void 0,threshold:void 0})},position:{type:String,default:"center center"},sizes:String,src:{type:[String,Object],default:""},srcset:String,transition:{type:[Boolean,String],default:"fade-transition"}},data(){return{currentSrc:"",image:null,isLoading:!0,calculatedAspectRatio:void 0,naturalWidth:void 0,hasError:!1}},computed:{computedAspectRatio(){return Number(this.normalisedSrc.aspect||this.calculatedAspectRatio)},normalisedSrc(){return this.src&&"object"===typeof this.src?{src:this.src.src,srcset:this.srcset||this.src.srcset,lazySrc:this.lazySrc||this.src.lazySrc,aspect:Number(this.aspectRatio||this.src.aspect)}:{src:this.src,srcset:this.srcset,lazySrc:this.lazySrc,aspect:Number(this.aspectRatio||0)}},__cachedImage(){if(!(this.normalisedSrc.src||this.normalisedSrc.lazySrc||this.gradient))return[];const t=[],e=this.isLoading?this.normalisedSrc.lazySrc:this.currentSrc;this.gradient&&t.push(`linear-gradient(${this.gradient})`),e&&t.push(`url("${e}")`);const i=this.$createElement("div",{staticClass:"v-image__image",class:{"v-image__image--preload":this.isLoading,"v-image__image--contain":this.contain,"v-image__image--cover":!this.contain},style:{backgroundImage:t.join(", "),backgroundPosition:this.position},key:+this.isLoading});return this.transition?this.$createElement("transition",{attrs:{name:this.transition,mode:"in-out"}},[i]):i}},watch:{src(){this.isLoading?this.loadImage():this.init(void 0,void 0,!0)},"$vuetify.breakpoint.width":"getSrc"},mounted(){this.init()},methods:{init(t,e,i){if(!u||i||this.eager){if(this.normalisedSrc.lazySrc){const t=new Image;t.src=this.normalisedSrc.lazySrc,this.pollForSize(t,null)}this.normalisedSrc.src&&this.loadImage()}},onLoad(){this.getSrc(),this.isLoading=!1,this.$emit("load",this.src),this.image&&(this.normalisedSrc.src.endsWith(".svg")||this.normalisedSrc.src.startsWith("data:image/svg+xml"))&&(this.image.naturalHeight&&this.image.naturalWidth?(this.naturalWidth=this.image.naturalWidth,this.calculatedAspectRatio=this.image.naturalWidth/this.image.naturalHeight):this.calculatedAspectRatio=1)},onError(){this.hasError=!0,this.$emit("error",this.src)},getSrc(){this.image&&(this.currentSrc=this.image.currentSrc||this.image.src)},loadImage(){const t=new Image;this.image=t,t.onload=()=>{t.decode?t.decode().catch(t=>{Object(d["c"])("Failed to decode image, trying to render anyway\n\nsrc: "+this.normalisedSrc.src+(t.message?"\nOriginal error: "+t.message:""),this)}).then(this.onLoad):this.onLoad()},t.onerror=this.onError,this.hasError=!1,this.sizes&&(t.sizes=this.sizes),this.normalisedSrc.srcset&&(t.srcset=this.normalisedSrc.srcset),t.src=this.normalisedSrc.src,this.$emit("loadstart",this.normalisedSrc.src),this.aspectRatio||this.pollForSize(t),this.getSrc()},pollForSize(t,e=100){const i=()=>{const{naturalHeight:s,naturalWidth:a}=t;s||a?(this.naturalWidth=a,this.calculatedAspectRatio=a/s):t.complete||!this.isLoading||this.hasError||null==e||setTimeout(i,e)};i()},genContent(){const t=r.options.methods.genContent.call(this);return this.naturalWidth&&this._b(t.data,"div",{style:{width:this.naturalWidth+"px"}}),t},__genPlaceholder(){const t=Object(o["s"])(this,"placeholder");if(t){const e=this.isLoading?[this.$createElement("div",{staticClass:"v-image__placeholder"},t)]:[];return this.transition?this.$createElement("transition",{props:{appear:!0,name:this.transition}},e):e[0]}}},render(t){const e=r.options.render.call(this,t),i=Object(h["a"])(e.data,{staticClass:"v-image",attrs:{"aria-label":this.alt,role:this.alt?"img":void 0},class:this.themeClasses,directives:u?[{name:"intersect",modifiers:{once:!0},value:{handler:this.init,options:this.options}}]:void 0});return e.children=[this.__cachedSizer,this.__cachedImage,this.__genPlaceholder(),this.genContent()],t(e.tag,i,e.children)}})},b688:function(t,e,i){"use strict";i.r(e);var s=i("8212"),a=i("8336"),n=i("b0af"),o=i("99d9"),l=i("ac7c"),r=i("62ad"),c=i("a523"),h=i("8fea"),d=i("2e4b"),u=(i("caad"),i("368e"),i("480e")),p=i("4ad4"),g=i("b848"),m=i("75eb"),v=(i("3c93"),i("a9ad")),f=i("7560"),y=i("f2e7"),b=i("58df"),S=i("80d2"),k=Object(b["a"])(v["a"],f["a"],y["a"]).extend({name:"v-overlay",props:{absolute:Boolean,color:{type:String,default:"#212121"},dark:{type:Boolean,default:!0},opacity:{type:[Number,String],default:.46},value:{default:!0},zIndex:{type:[Number,String],default:5}},computed:{__scrim(){const t=this.setBackgroundColor(this.color,{staticClass:"v-overlay__scrim",style:{opacity:this.computedOpacity}});return this.$createElement("div",t)},classes(){return{"v-overlay--absolute":this.absolute,"v-overlay--active":this.isActive,...this.themeClasses}},computedOpacity(){return Number(this.isActive?this.opacity:0)},styles(){return{zIndex:this.zIndex}}},methods:{genContent(){return this.$createElement("div",{staticClass:"v-overlay__content"},Object(S["s"])(this))}},render(t){const e=[this.__scrim];return this.isActive&&e.push(this.genContent()),t("div",{staticClass:"v-overlay",on:this.$listeners,class:this.classes,style:this.styles},e)}}),C=k,x=i("2b0e"),w=x["a"].extend().extend({name:"overlayable",props:{hideOverlay:Boolean,overlayColor:String,overlayOpacity:[Number,String]},data(){return{animationFrame:0,overlay:null}},watch:{hideOverlay(t){this.isActive&&(t?this.removeOverlay():this.genOverlay())}},beforeDestroy(){this.removeOverlay()},methods:{createOverlay(){const t=new C({propsData:{absolute:this.absolute,value:!1,color:this.overlayColor,opacity:this.overlayOpacity}});t.$mount();const e=this.absolute?this.$el.parentNode:document.querySelector("[data-app]");e&&e.insertBefore(t.$el,e.firstChild),this.overlay=t},genOverlay(){if(this.hideScroll(),!this.hideOverlay)return this.overlay||this.createOverlay(),this.animationFrame=requestAnimationFrame(()=>{this.overlay&&(void 0!==this.activeZIndex?this.overlay.zIndex=String(this.activeZIndex-1):this.$el&&(this.overlay.zIndex=Object(S["u"])(this.$el)),this.overlay.value=!0)}),!0},removeOverlay(t=!0){this.overlay&&(Object(S["a"])(this.overlay.$el,"transitionend",()=>{this.overlay&&this.overlay.$el&&this.overlay.$el.parentNode&&!this.overlay.value&&!this.isActive&&(this.overlay.$el.parentNode.removeChild(this.overlay.$el),this.overlay.$destroy(),this.overlay=null)}),cancelAnimationFrame(this.animationFrame),this.overlay.value=!1),t&&this.showScroll()},scrollListener(t){if("key"in t){if(["INPUT","TEXTAREA","SELECT"].includes(t.target.tagName)||t.target.isContentEditable)return;const e=[S["y"].up,S["y"].pageup],i=[S["y"].down,S["y"].pagedown];if(e.includes(t.keyCode))t.deltaY=-1;else{if(!i.includes(t.keyCode))return;t.deltaY=1}}(t.target===this.overlay||"keydown"!==t.type&&t.target===document.body||this.checkPath(t))&&t.preventDefault()},hasScrollbar(t){if(!t||t.nodeType!==Node.ELEMENT_NODE)return!1;const e=window.getComputedStyle(t);return(["auto","scroll"].includes(e.overflowY)||"SELECT"===t.tagName)&&t.scrollHeight>t.clientHeight||["auto","scroll"].includes(e.overflowX)&&t.scrollWidth>t.clientWidth},shouldScroll(t,e){if(t.hasAttribute("data-app"))return!1;const i=e.shiftKey||e.deltaX?"x":"y",s="y"===i?e.deltaY:e.deltaX||e.deltaY;let a,n;"y"===i?(a=0===t.scrollTop,n=t.scrollTop+t.clientHeight===t.scrollHeight):(a=0===t.scrollLeft,n=t.scrollLeft+t.clientWidth===t.scrollWidth);const o=s<0,l=s>0;return!(a||!o)||(!(n||!l)||!(!a&&!n||!t.parentNode)&&this.shouldScroll(t.parentNode,e))},isInside(t,e){return t===e||null!==t&&t!==document.body&&this.isInside(t.parentNode,e)},checkPath(t){const e=Object(S["g"])(t);if("keydown"===t.type&&e[0]===document.body){const e=this.$refs.dialog,i=window.getSelection().anchorNode;return!(e&&this.hasScrollbar(e)&&this.isInside(i,e))||!this.shouldScroll(e,t)}for(let i=0;i<e.length;i++){const s=e[i];if(s===document)return!0;if(s===document.documentElement)return!0;if(s===this.$refs.content)return!0;if(this.hasScrollbar(s))return!this.shouldScroll(s,t)}return!0},hideScroll(){this.$vuetify.breakpoint.smAndDown?document.documentElement.classList.add("overflow-y-hidden"):(Object(S["b"])(window,"wheel",this.scrollListener,{passive:!1}),window.addEventListener("keydown",this.scrollListener))},showScroll(){document.documentElement.classList.remove("overflow-y-hidden"),window.removeEventListener("wheel",this.scrollListener),window.removeEventListener("keydown",this.scrollListener)}}}),$=i("e4d3"),_=i("21be"),O=i("a293"),A=i("d9bd");const E=Object(b["a"])(g["a"],m["a"],w,$["a"],_["a"],p["a"]);var I=E.extend({name:"v-dialog",directives:{ClickOutside:O["a"]},props:{dark:Boolean,disabled:Boolean,fullscreen:Boolean,light:Boolean,maxWidth:[String,Number],noClickAnimation:Boolean,origin:{type:String,default:"center center"},persistent:Boolean,retainFocus:{type:Boolean,default:!0},scrollable:Boolean,transition:{type:[String,Boolean],default:"dialog-transition"},width:[String,Number]},data(){return{activatedBy:null,animate:!1,animateTimeout:-1,stackMinZIndex:200,previousActiveElement:null}},computed:{classes(){return{[("v-dialog "+this.contentClass).trim()]:!0,"v-dialog--active":this.isActive,"v-dialog--persistent":this.persistent,"v-dialog--fullscreen":this.fullscreen,"v-dialog--scrollable":this.scrollable,"v-dialog--animated":this.animate}},contentClasses(){return{"v-dialog__content":!0,"v-dialog__content--active":this.isActive}},hasActivator(){return Boolean(!!this.$slots.activator||!!this.$scopedSlots.activator)}},watch:{isActive(t){var e;t?(this.show(),this.hideScroll()):(this.removeOverlay(),this.unbind(),null===(e=this.previousActiveElement)||void 0===e||e.focus())},fullscreen(t){this.isActive&&(t?(this.hideScroll(),this.removeOverlay(!1)):(this.showScroll(),this.genOverlay()))}},created(){this.$attrs.hasOwnProperty("full-width")&&Object(A["e"])("full-width",this)},beforeMount(){this.$nextTick(()=>{this.isBooted=this.isActive,this.isActive&&this.show()})},beforeDestroy(){"undefined"!==typeof window&&this.unbind()},methods:{animateClick(){this.animate=!1,this.$nextTick(()=>{this.animate=!0,window.clearTimeout(this.animateTimeout),this.animateTimeout=window.setTimeout(()=>this.animate=!1,150)})},closeConditional(t){const e=t.target;return!(this._isDestroyed||!this.isActive||this.$refs.content.contains(e)||this.overlay&&e&&!this.overlay.$el.contains(e))&&this.activeZIndex>=this.getMaxZIndex()},hideScroll(){this.fullscreen?document.documentElement.classList.add("overflow-y-hidden"):w.options.methods.hideScroll.call(this)},show(){!this.fullscreen&&!this.hideOverlay&&this.genOverlay(),this.$nextTick(()=>{this.$nextTick(()=>{var t,e;(null===(t=this.$refs.dialog)||void 0===t?void 0:t.contains(document.activeElement))||(this.previousActiveElement=document.activeElement,null===(e=this.$refs.dialog)||void 0===e||e.focus()),this.bind()})})},bind(){window.addEventListener("focusin",this.onFocusin)},unbind(){window.removeEventListener("focusin",this.onFocusin)},onClickOutside(t){this.$emit("click:outside",t),this.persistent?this.noClickAnimation||this.animateClick():this.isActive=!1},onKeydown(t){if(t.keyCode===S["y"].esc&&!this.getOpenDependents().length)if(this.persistent)this.noClickAnimation||this.animateClick();else{this.isActive=!1;const t=this.getActivator();this.$nextTick(()=>t&&t.focus())}this.$emit("keydown",t)},onFocusin(t){if(!t||!this.retainFocus)return;const e=t.target;if(e&&this.$refs.dialog&&![document,this.$refs.dialog].includes(e)&&!this.$refs.dialog.contains(e)&&this.activeZIndex>=this.getMaxZIndex()&&!this.getOpenDependentElements().some(t=>t.contains(e))){const t=this.$refs.dialog.querySelectorAll('button, [href], input:not([type="hidden"]), select, textarea, [tabindex]:not([tabindex="-1"])'),e=[...t].find(t=>!t.hasAttribute("disabled")&&!t.matches('[tabindex="-1"]'));e&&e.focus()}},genContent(){return this.showLazyContent(()=>[this.$createElement(u["a"],{props:{root:!0,light:this.light,dark:this.dark}},[this.$createElement("div",{class:this.contentClasses,attrs:{role:"dialog","aria-modal":this.hideOverlay?void 0:"true",...this.getScopeIdAttrs()},on:{keydown:this.onKeydown},style:{zIndex:this.activeZIndex},ref:"content"},[this.genTransition()])])])},genTransition(){const t=this.genInnerContent();return this.transition?this.$createElement("transition",{props:{name:this.transition,origin:this.origin,appear:!0}},[t]):t},genInnerContent(){const t={class:this.classes,attrs:{tabindex:this.isActive?0:void 0},ref:"dialog",directives:[{name:"click-outside",value:{handler:this.onClickOutside,closeConditional:this.closeConditional,include:this.getOpenDependentElements}},{name:"show",value:this.isActive}],style:{transformOrigin:this.origin}};return this.fullscreen||(t.style={...t.style,maxWidth:Object(S["h"])(this.maxWidth),width:Object(S["h"])(this.width)}),this.$createElement("div",t,this.getContentSlot())}},render(t){return t("div",{staticClass:"v-dialog__container",class:{"v-dialog__container--attached":""===this.attach||!0===this.attach||"attach"===this.attach}},[this.genActivator(),this.genContent()])}}),B=i("ce7e"),F=(i("13d5"),i("5803"),i("2677")),j=i("cc20"),L=i("d9f7"),D=F["a"].extend({name:"v-file-input",model:{prop:"value",event:"change"},props:{chips:Boolean,clearable:{type:Boolean,default:!0},counterSizeString:{type:String,default:"$vuetify.fileInput.counterSize"},counterString:{type:String,default:"$vuetify.fileInput.counter"},hideInput:Boolean,multiple:Boolean,placeholder:String,prependIcon:{type:String,default:"$file"},readonly:{type:Boolean,default:!1},showSize:{type:[Boolean,Number],default:!1,validator:t=>"boolean"===typeof t||[1e3,1024].includes(t)},smallChips:Boolean,truncateLength:{type:[Number,String],default:22},type:{type:String,default:"file"},value:{default:void 0,validator:t=>Object(S["H"])(t).every(t=>null!=t&&"object"===typeof t)}},computed:{classes(){return{...F["a"].options.computed.classes.call(this),"v-file-input":!0}},computedCounterValue(){const t=this.multiple&&this.lazyValue?this.lazyValue.length:this.lazyValue instanceof File?1:0;if(!this.showSize)return this.$vuetify.lang.t(this.counterString,t);const e=this.internalArrayValue.reduce((t,{size:e=0})=>t+e,0);return this.$vuetify.lang.t(this.counterSizeString,t,Object(S["w"])(e,1024===this.base))},internalArrayValue(){return Object(S["H"])(this.internalValue)},internalValue:{get(){return this.lazyValue},set(t){this.lazyValue=t,this.$emit("change",this.lazyValue)}},isDirty(){return this.internalArrayValue.length>0},isLabelActive(){return this.isDirty},text(){return this.isDirty||!this.persistentPlaceholder&&!this.isFocused&&this.hasLabel?this.internalArrayValue.map(t=>{const{name:e="",size:i=0}=t,s=this.truncateText(e);return this.showSize?`${s} (${Object(S["w"])(i,1024===this.base)})`:s}):[this.placeholder]},base(){return"boolean"!==typeof this.showSize?this.showSize:void 0},hasChips(){return this.chips||this.smallChips}},watch:{readonly:{handler(t){!0===t&&Object(A["b"])("readonly is not supported on <v-file-input>",this)},immediate:!0},value(t){const e=this.multiple?t:t?[t]:[];Object(S["k"])(e,this.$refs.input.files)||(this.$refs.input.value="")}},methods:{clearableCallback(){this.internalValue=this.multiple?[]:null,this.$refs.input.value=""},genChips(){return this.isDirty?this.text.map((t,e)=>this.$createElement(j["a"],{props:{small:this.smallChips},on:{"click:close":()=>{const t=this.internalValue;t.splice(e,1),this.internalValue=t}}},[t])):[]},genControl(){const t=F["a"].options.methods.genControl.call(this);return this.hideInput&&(t.data.style=Object(L["d"])(t.data.style,{display:"none"})),t},genInput(){const t=F["a"].options.methods.genInput.call(this);return t.data.attrs.multiple=this.multiple,delete t.data.domProps.value,delete t.data.on.input,t.data.on.change=this.onInput,[this.genSelections(),t]},genPrependSlot(){if(!this.prependIcon)return null;const t=this.genIcon("prepend",()=>{this.$refs.input.click()});return this.genSlot("prepend","outer",[t])},genSelectionText(){const t=this.text.length;return t<2?this.text:this.showSize&&!this.counter?[this.computedCounterValue]:[this.$vuetify.lang.t(this.counterString,t)]},genSelections(){const t=[];return this.isDirty&&this.$scopedSlots.selection?this.internalArrayValue.forEach((e,i)=>{this.$scopedSlots.selection&&t.push(this.$scopedSlots.selection({text:this.text[i],file:e,index:i}))}):t.push(this.hasChips&&this.isDirty?this.genChips():this.genSelectionText()),this.$createElement("div",{staticClass:"v-file-input__text",class:{"v-file-input__text--placeholder":this.placeholder&&!this.isDirty,"v-file-input__text--chips":this.hasChips&&!this.$scopedSlots.selection}},t)},genTextFieldSlot(){const t=F["a"].options.methods.genTextFieldSlot.call(this);return t.data.on={...t.data.on||{},click:t=>{t.target&&"LABEL"===t.target.nodeName||this.$refs.input.click()}},t},onInput(t){const e=[...t.target.files||[]];this.internalValue=this.multiple?e:e[0],this.initialValue=this.internalValue},onKeyDown(t){this.$emit("keydown",t)},truncateText(t){if(t.length<Number(this.truncateLength))return t;const e=Math.floor((Number(this.truncateLength)-1)/2);return`${t.slice(0,e)}…${t.slice(t.length-e)}`}}}),T=i("132d"),V=i("da13"),z=i("5d23"),N=i("e449"),P=(i("ac1f"),i("4ff9"),i("627d"),i("c37a")),R=i("8654"),H=i("5607");const M=Object(b["a"])(P["a"]);var W=M.extend().extend({name:"v-otp-input",directives:{ripple:H["a"]},inheritAttrs:!1,props:{length:{type:[Number,String],default:6},type:{type:String,default:"text"},plain:Boolean},data:()=>({initialValue:null,isBooted:!1,otp:[]}),computed:{outlined(){return!this.plain},classes(){return{...P["a"].options.computed.classes.call(this),...R["a"].options.computed.classes.call(this),"v-otp-input--plain":this.plain}}},watch:{isFocused:"updateValue",value(t){this.lazyValue=t,this.otp=(null===t||void 0===t?void 0:t.split(""))||[]}},created(){var t;this.$attrs.hasOwnProperty("browser-autocomplete")&&Object(A["a"])("browser-autocomplete","autocomplete",this),this.otp=(null===(t=this.internalValue)||void 0===t?void 0:t.split(""))||[]},mounted(){requestAnimationFrame(()=>this.isBooted=!0)},methods:{focus(t,e){this.onFocus(t,e||0)},genInputSlot(t){return this.$createElement("div",this.setBackgroundColor(this.backgroundColor,{staticClass:"v-input__slot",style:{height:Object(S["h"])(this.height)},on:{click:()=>this.onClick(t),mousedown:e=>this.onMouseDown(e,t),mouseup:e=>this.onMouseUp(e,t)}}),[this.genDefaultSlot(t)])},genControl(t){return this.$createElement("div",{staticClass:"v-input__control"},[this.genInputSlot(t)])},genDefaultSlot(t){return[this.genFieldset(),this.genTextFieldSlot(t)]},genContent(){return Array.from({length:+this.length},(t,e)=>this.$createElement("div",this.setTextColor(this.validationState,{staticClass:"v-input",class:this.classes}),[this.genControl(e)]))},genFieldset(){return this.$createElement("fieldset",{attrs:{"aria-hidden":!0}},[this.genLegend()])},genLegend(){const t=this.$createElement("span",{domProps:{innerHTML:"​"}});return this.$createElement("legend",{style:{width:"0px"}},[t])},genInput(t){const e=Object.assign({},this.listeners$);return delete e.change,this.$createElement("input",{style:{},domProps:{value:this.otp[t],min:"number"===this.type?0:null},attrs:{...this.attrs$,autocomplete:"one-time-code",disabled:this.isDisabled,readonly:this.isReadonly,type:this.type,id:`${this.computedId}--${t}`,class:"otp-field-box--"+t},on:Object.assign(e,{blur:this.onBlur,input:e=>this.onInput(e,t),focus:e=>this.onFocus(e,t),keydown:this.onKeyDown,keyup:e=>this.onKeyUp(e,t)}),ref:"input",refInFor:!0})},genTextFieldSlot(t){return this.$createElement("div",{staticClass:"v-text-field__slot"},[this.genInput(t)])},onBlur(t){this.isFocused=!1,t&&this.$nextTick(()=>this.$emit("blur",t))},onClick(t){this.isFocused||this.isDisabled||!this.$refs.input[t]||this.onFocus(void 0,t)},onFocus(t,e){null===t||void 0===t||t.preventDefault(),null===t||void 0===t||t.stopPropagation();const i=this.$refs.input,s=this.$refs.input&&i[e||0];if(s)return document.activeElement!==s?(s.focus(),s.select()):void(this.isFocused||(this.isFocused=!0,s.select(),t&&this.$emit("focus",t)))},onInput(t,e){const i=+this.length-1,s=t.target,a=s.value,n=(null===a||void 0===a?void 0:a.split(""))||[],o=[...this.otp];for(let l=0;l<n.length;l++){const t=e+l;if(t>i)break;o[t]=n[l].toString()}n.length||o.splice(e,1),this.otp=o,this.internalValue=this.otp.join(""),e+n.length>=+this.length?(this.onCompleted(),this.clearFocus(e)):n.length&&this.changeFocus(e+n.length)},clearFocus(t){const e=this.$refs.input[t];e.blur()},onKeyDown(t){t.keyCode===S["y"].enter&&this.$emit("change",this.internalValue),this.$emit("keydown",t)},onMouseDown(t,e){t.target!==this.$refs.input[e]&&(t.preventDefault(),t.stopPropagation()),P["a"].options.methods.onMouseDown.call(this,t)},onMouseUp(t,e){this.hasMouseDown&&this.focus(t,e),P["a"].options.methods.onMouseUp.call(this,t)},changeFocus(t){this.onFocus(void 0,t||0)},updateValue(t){this.hasColor=t,t?this.initialValue=this.lazyValue:this.initialValue!==this.lazyValue&&this.$emit("change",this.lazyValue)},onKeyUp(t,e){t.preventDefault();const i=t.key;if(!["Tab","Shift","Meta","Control","Alt"].includes(i)&&!["Delete"].includes(i))return"ArrowLeft"===i||"Backspace"===i&&!this.otp[e]?e>0&&this.changeFocus(e-1):"ArrowRight"===i?e+1<+this.length&&this.changeFocus(e+1):void 0},onCompleted(){const t=this.otp.join("");t.length===+this.length&&this.$emit("finish",t)}},render(t){return t("div",{staticClass:"v-otp-input",class:this.themeClasses},this.genContent())}}),U=i("0fd9"),K=i("9e88"),Z=(i("ca71"),i("8dd9")),Y=i("fe6c"),q=Object(b["a"])(Z["a"],v["a"],y["a"],Object(Y["b"])(["absolute","bottom","left","right","top"])).extend({name:"v-snackbar",props:{app:Boolean,centered:Boolean,contentClass:{type:String,default:""},multiLine:Boolean,text:Boolean,timeout:{type:[Number,String],default:5e3},transition:{type:[Boolean,String],default:"v-snack-transition",validator:t=>"string"===typeof t||!1===t},vertical:Boolean},data:()=>({activeTimeout:-1}),computed:{classes(){return{"v-snack--absolute":this.absolute,"v-snack--active":this.isActive,"v-snack--bottom":this.bottom||!this.top,"v-snack--centered":this.centered,"v-snack--has-background":this.hasBackground,"v-snack--left":this.left,"v-snack--multi-line":this.multiLine&&!this.vertical,"v-snack--right":this.right,"v-snack--text":this.text,"v-snack--top":this.top,"v-snack--vertical":this.vertical}},hasBackground(){return!this.text&&!this.outlined},isDark(){return this.hasBackground?!this.light:f["a"].options.computed.isDark.call(this)},styles(){if(this.absolute||!this.app)return{};const{bar:t,bottom:e,footer:i,insetFooter:s,left:a,right:n,top:o}=this.$vuetify.application;return{paddingBottom:Object(S["h"])(e+i+s),paddingLeft:Object(S["h"])(a),paddingRight:Object(S["h"])(n),paddingTop:Object(S["h"])(t+o)}}},watch:{isActive:"setTimeout",timeout:"setTimeout"},mounted(){this.isActive&&this.setTimeout()},created(){this.$attrs.hasOwnProperty("auto-height")&&Object(A["e"])("auto-height",this),0==this.timeout&&Object(A["d"])('timeout="0"',"-1",this)},methods:{genActions(){return this.$createElement("div",{staticClass:"v-snack__action "},[Object(S["s"])(this,"action",{attrs:{class:"v-snack__btn"}})])},genContent(){return this.$createElement("div",{staticClass:"v-snack__content",class:{[this.contentClass]:!0},attrs:{role:"status","aria-live":"polite"}},[Object(S["s"])(this)])},genWrapper(){const t=this.hasBackground?this.setBackgroundColor:this.setTextColor,e=t(this.color,{staticClass:"v-snack__wrapper",class:Z["a"].options.computed.classes.call(this),style:Z["a"].options.computed.styles.call(this),directives:[{name:"show",value:this.isActive}],on:{pointerenter:()=>window.clearTimeout(this.activeTimeout),pointerleave:this.setTimeout}});return this.$createElement("div",e,[this.genContent(),this.genActions()])},genTransition(){return this.$createElement("transition",{props:{name:this.transition}},[this.genWrapper()])},setTimeout(){window.clearTimeout(this.activeTimeout);const t=Number(this.timeout);this.isActive&&![0,-1].includes(t)&&(this.activeTimeout=window.setTimeout(()=>{this.isActive=!1},t))}},render(t){return t("div",{staticClass:"v-snack",class:this.classes,style:this.styles},[!1!==this.transition?this.genTransition():this.genWrapper()])}}),X=i("2fa4"),J=(i("5e23"),i("adda")),G=Z["a"].extend({name:"v-toolbar",props:{absolute:Boolean,bottom:Boolean,collapse:Boolean,dense:Boolean,extended:Boolean,extensionHeight:{default:48,type:[Number,String]},flat:Boolean,floating:Boolean,prominent:Boolean,short:Boolean,src:{type:[String,Object],default:""},tag:{type:String,default:"header"}},data:()=>({isExtended:!1}),computed:{computedHeight(){const t=this.computedContentHeight;if(!this.isExtended)return t;const e=parseInt(this.extensionHeight);return this.isCollapsed?t:t+(isNaN(e)?0:e)},computedContentHeight(){return this.height?parseInt(this.height):this.isProminent&&this.dense?96:this.isProminent&&this.short?112:this.isProminent?128:this.dense?48:this.short||this.$vuetify.breakpoint.smAndDown?56:64},classes(){return{...Z["a"].options.computed.classes.call(this),"v-toolbar":!0,"v-toolbar--absolute":this.absolute,"v-toolbar--bottom":this.bottom,"v-toolbar--collapse":this.collapse,"v-toolbar--collapsed":this.isCollapsed,"v-toolbar--dense":this.dense,"v-toolbar--extended":this.isExtended,"v-toolbar--flat":this.flat,"v-toolbar--floating":this.floating,"v-toolbar--prominent":this.isProminent}},isCollapsed(){return this.collapse},isProminent(){return this.prominent},styles(){return{...this.measurableStyles,height:Object(S["h"])(this.computedHeight)}}},created(){const t=[["app","<v-app-bar app>"],["manual-scroll",'<v-app-bar :value="false">'],["clipped-left","<v-app-bar clipped-left>"],["clipped-right","<v-app-bar clipped-right>"],["inverted-scroll","<v-app-bar inverted-scroll>"],["scroll-off-screen","<v-app-bar scroll-off-screen>"],["scroll-target","<v-app-bar scroll-target>"],["scroll-threshold","<v-app-bar scroll-threshold>"],["card","<v-app-bar flat>"]];t.forEach(([t,e])=>{this.$attrs.hasOwnProperty(t)&&Object(A["a"])(t,e,this)})},methods:{genBackground(){const t={height:Object(S["h"])(this.computedHeight),src:this.src},e=this.$scopedSlots.img?this.$scopedSlots.img({props:t}):this.$createElement(J["a"],{props:t});return this.$createElement("div",{staticClass:"v-toolbar__image"},[e])},genContent(){return this.$createElement("div",{staticClass:"v-toolbar__content",style:{height:Object(S["h"])(this.computedContentHeight)}},Object(S["s"])(this))},genExtension(){return this.$createElement("div",{staticClass:"v-toolbar__extension",style:{height:Object(S["h"])(this.extensionHeight)}},Object(S["s"])(this,"extension"))}},render(t){this.isExtended=this.extended||!!this.$scopedSlots.extension;const e=[this.genContent()],i=this.setBackgroundColor(this.color,{class:this.classes,style:this.styles,on:this.$listeners});return this.isExtended&&e.push(this.genExtension()),(this.src||this.$scopedSlots.img)&&e.unshift(this.genBackground()),t(this.tag,i,e)}});const Q=Object(S["j"])("v-toolbar__title");Object(S["j"])("v-toolbar__items");var tt=function(){var t=this,e=t._self._c;return e(c["a"],{staticClass:"pa-10",attrs:{fluid:"",id:"PRB_FileControl"}},[e(n["a"],{staticClass:"mx-auto",attrs:{"max-width":"1000",tile:""}},[e(G,{attrs:{elevation:"2",color:"purple darken-2",dark:""}},[e(Q,[e(V["a"],{staticClass:"pa-0"},[e(s["a"],[e(T["a"],{attrs:{"x-large":"",color:"purple accent-1"}},[t._v(" mdi-file-check ")])],1),e(z["a"],{staticClass:"pa-4"},[e(z["c"],{staticClass:"text-h6"},[t._v(" ПРБ ")]),e(z["b"],[t._v(" файловый менеджер ")])],1)],1)],1),e(X["a"]),e(a["a"],{attrs:{icon:""},on:{click:function(e){e.stopPropagation(),t.dialog.log=!0}}},[e(T["a"],[t._v(t._s(t.accountIcon))])],1),e(I,{attrs:{"max-width":"350"},model:{value:t.dialog.log,callback:function(e){t.$set(t.dialog,"log",e)},expression:"dialog.log"}},[e(n["a"],{directives:[{name:"show",rawName:"v-show",value:t.isLogging,expression:"isLogging"}]},[e(o["c"],{staticClass:"text-h5 grey lighten-2"},[t._v(" Администратор ")]),e(B["a"]),e(o["a"],[e(X["a"]),e(a["a"],{attrs:{color:"purple darken-2",dark:""},on:{click:t.loggingOFF}},[t._v(" Выйти ")])],1)],1),e(n["a"],{directives:[{name:"show",rawName:"v-show",value:!t.isLogging,expression:"!isLogging"}],staticStyle:{height:"250px"}},[e(o["c"],{staticClass:"text-h5 grey lighten-2"},[t._v(" Введите пароль ")]),e(o["b"],[e(W,{staticClass:"pt-4",attrs:{type:"password",length:"6"},on:{finish:t.passCheck},model:{value:t.pass.val,callback:function(e){t.$set(t.pass,"val",e)},expression:"pass.val"}})],1),e(B["a"]),e(o["a"],[e(U["a"],[e(X["a"]),e(r["a"],{attrs:{cols:"8"}},[e(l["a"],{attrs:{label:"запомнить пароль",color:"purple darken-2","hide-details":""},model:{value:t.pass.select,callback:function(e){t.$set(t.pass,"select",e)},expression:"pass.select"}})],1)],1)],1)],1)],1)],1),e(c["a"],[e(G,{attrs:{flat:""}},[e(r["a"],{staticStyle:{"min-width":"200px","max-width":"100px"}},[e(N["a"],{attrs:{"close-on-content-click":!1,"nudge-right":40,"nudge-top":-5,transition:"scale-transition","offset-y":"","min-width":"290px"},scopedSlots:t._u([{key:"activator",fn:function({on:i}){return[e(R["a"],t._g({staticClass:"datePicker",attrs:{"prepend-icon":"event",readonly:"",outlined:"","hide-details":"",dense:"",disabled:t.loading},model:{value:t.computedDateFormatted,callback:function(e){t.computedDateFormatted=e},expression:"computedDateFormatted"}},i))]}}]),model:{value:t.datePickerMenu,callback:function(e){t.datePickerMenu=e},expression:"datePickerMenu"}},[e(d["a"],{attrs:{"popover-align":"center"},on:{input:function(e){t.datePickerMenu=!1},change:function(e){return t.getData(t.computedDateFormatted)}},model:{value:t.date,callback:function(e){t.date=e},expression:"date"}})],1)],1),e(r["a"],{directives:[{name:"show",rawName:"v-show",value:t.isLogging,expression:"isLogging"}],staticStyle:{"min-width":"295px"}},[e(D,{staticClass:"pt-7",attrs:{label:"Выберите файл (doc, xls)",outlined:"",dense:"",accept:".xlsx, .docx, .xls, .doc"},on:{change:t.getFile},model:{value:t.file.input,callback:function(e){t.$set(t.file,"input",e)},expression:"file.input"}})],1),e(a["a"],{directives:[{name:"show",rawName:"v-show",value:t.isLogging,expression:"isLogging"}],staticClass:"ma-2 white--text",attrs:{loading:t.loading_file,disabled:!t.file.input,color:"success"},on:{click:t.fileUpload}},[t._v(" Загрузить "),e(T["a"],{attrs:{right:"",dark:""}},[t._v(" mdi-cloud-upload ")])],1),e(X["a"]),e(a["a"],{attrs:{icon:"",disabled:!t.selectState||t.loading,href:t.baseURL+t.file.name,download:""},on:{click:function(e){return t.setHistory(t.file.id)}}},[e(T["a"],[t._v("mdi-download")])],1),e(a["a"],{directives:[{name:"show",rawName:"v-show",value:t.isLogging,expression:"isLogging"}],attrs:{icon:"",color:"red lighten-1",disabled:!t.selectState||t.loading},on:{click:t.deleteFile}},[e(T["a"],[t._v("mdi-delete")])],1)],1),e(h["a"],{attrs:{headers:t.headers,items:t.data.items,loading:t.loading,"selectable-key":"id","single-select":"","fixed-header":"","disable-pagination":"","hide-default-footer":"",dense:""},on:{"click:row":t.rowClick},scopedSlots:t._u([{key:"item.file_name",fn:function({item:i}){return[e(T["a"],[t._v(" "+t._s(t.getIcon(i.file_name))+" ")]),t._v(" "+t._s(i.file_name)+" ")]}},{key:"item.isCompleted",fn:function({item:i}){return[e(K["a"],{attrs:{color:"purple darken-2",ripple:!1,value:0!==i.isCompleted},on:{input:function(e){return t.inputCompleted({id:i.id,value:!0===e?1:0})}}})]}},{key:"item.id",fn:function({item:i}){return[e(a["a"],{staticClass:"ml-2",attrs:{text:"",icon:""},on:{click:function(e){e.stopPropagation(),t.dialog.history=!0,t.file.name=i.file_name,t.getHistory({date:t.date,id:i.id})}}},[e(T["a"],[t._v("mdi-information")])],1)]}}])})],1)],1),e(I,{attrs:{transition:"dialog-bottom-transition","max-width":"700"},model:{value:t.dialog.history,callback:function(e){t.$set(t.dialog,"history",e)},expression:"dialog.history"}},[e(n["a"],{attrs:{elevation:""}},[e(G,{attrs:{color:"purple darken-2",dark:""}},[e(T["a"],{staticClass:"ma-2"},[t._v(" "+t._s(t.getIcon(t.file.name))+" ")]),t._v(" "+t._s(t.file.name))],1),e(o["b"],{staticClass:"pa-4"},[e(h["a"],{attrs:{headers:t.history.headers,items:t.history.items,loading:t.loading_history,"disable-pagination":"","hide-default-footer":"",dense:""}})],1),e(o["a"],{staticClass:"justify-end"},[e(a["a"],{attrs:{text:""},on:{click:function(e){t.dialog.history=!1}}},[t._v("Закрыть")])],1)],1)],1),e(q,{attrs:{vertical:"",top:"",right:"",color:t.snackbarColor},scopedSlots:t._u([{key:"action",fn:function({attrs:i}){return[e(a["a"],t._b({attrs:{text:""},on:{click:function(e){t.snackbar=!1}}},"v-btn",i,!1),[t._v(" ok ")])]}}]),model:{value:t.snackbar,callback:function(e){t.snackbar=e},expression:"snackbar"}},[t._v(" "+t._s(t.uploadText)+" ")])],1)},et=[],it=i("2f62"),st={data:t=>({file:{name:null,id:null,input:null,data:null},dialog:{log:!1,history:!1},pass:{val:null,select:!0},selectState:!1,snackbar:!1,date:(new Date).toISOString().substr(0,10),dateFormatted:t.formatDate((new Date).toISOString().substr(0,10)),datePickerMenu:!1,extensionsList:[{value:"mdi-file-excel",extension:["xlsx"]},{value:"mdi-file-word",extension:["docx"]}]}),computed:{...Object(it["c"])("PRB_FileControl",{loading:"loading",loading_file:"loading_file",loading_history:"loading_history",isLogging:"isLogging",uploadText:"uploadText",uploadStatus:"uploadStatus",data:"data",history:"history"}),baseURL(){return"http://192.168.76.100:81//_api_server_vue/modules/PRB_FileControl/uploads/"},headers(){var t=document.createElement("canvas"),e=t.getContext("2d");return e.font="12px Roboto, sans-serif",this.data.headers.forEach(t=>{this.isLogging?t.align=" visible":"isCompleted"===t.value&&(t.align=" d-none"),this.isLogging?t.align=" visible":"id"===t.value&&(t.align=" d-none"),"file_path"===t.value&&(t.align=" d-none"),"isCompleted"===t.value&&(t.width="11%"),this.isLogging?"file_name"===t.value&&(t.width="60%"):"file_name"===t.value&&(t.width="80%")}),this.data.headers},computedDateFormatted(){return this.formatDate(this.date)},accountIcon(){return this.isLogging?"mdi-account-check":"mdi-account-off"},snackbarColor(){return this.uploadStatus?"green darken-4":"red darken-4"}},methods:{...Object(it["d"])("PRB_FileControl",{setStorage:"setStorage"}),...Object(it["b"])("PRB_FileControl",{File_Upload:"File_Upload",getData:"getData",getStorage:"getStorage",logging:"logging",logout:"logout",setCompleted:"setCompleted",setHistory:"setHistory",getHistory:"getHistory",deleteData:"deleteData"}),getIcon(t){if(t){let e=this.extensionsList.find(e=>{let{extension:i}=e;return Array.isArray(i)?i.includes(t.split(".").pop()):"string"===typeof i?i===t:void 0})||{};return e.value||"mdi-file"}},inputCompleted(t){this.setCompleted(t)},rowClick(t,e){this.selectState=!e.isSelected,this.file.name=t.file_name,this.file.id=t.id,e.select(this.selectState)},formatDate(t){if(!t)return null;const[e,i,s]=t.split("-");return`${s}.${i}.${e}`},passCheck(){this.logging(this.pass.val),this.pass.select&&this.setStorage(this.pass.val),this.dialog.log=!1,this.pass.val="",this.reload()},loggingOFF(){this.logout(),this.dialog.log=!1,this.pass.val="",this.reload()},getFile(t){const e=new FormData;e.append("file",t),this.file.data=e},fileUpload(){this.File_Upload({file:this.file.data,date:this.formatDate(this.date)}).then(()=>{this.file.input=null,this.getData(this.formatDate(this.date))}).catch(()=>{this.file.input=null}).finally(()=>{this.snackbar=!0})},deleteFile(){this.deleteData({id:this.file.id,name:this.file.name}).then(()=>{this.reload()})},reload(){this.getStorage(),this.getData(this.formatDate(this.date))}},mounted(){this.reload()}},at=st,nt=(i("1ac7"),i("2877")),ot=Object(nt["a"])(at,tt,et,!1,null,null,null);e["default"]=ot.exports},ca71:function(t,e,i){},ec29:function(t,e,i){},fe09:function(t,e,i){"use strict";var s=i("c37a"),a=i("5607"),n=i("2b0e"),o=n["a"].extend({name:"rippleable",directives:{ripple:a["a"]},props:{ripple:{type:[Boolean,Object],default:!0}},methods:{genRipple(t={}){return this.ripple?(t.staticClass="v-input--selection-controls__ripple",t.directives=t.directives||[],t.directives.push({name:"ripple",value:{center:!0}}),this.$createElement("div",t)):null}}}),l=i("8547"),r=i("58df");function c(t){t.preventDefault()}e["a"]=Object(r["a"])(s["a"],o,l["a"]).extend({name:"selectable",model:{prop:"inputValue",event:"change"},props:{id:String,inputValue:null,falseValue:null,trueValue:null,multiple:{type:Boolean,default:null},label:String},data(){return{hasColor:this.inputValue,lazyValue:this.inputValue}},computed:{computedColor(){if(this.isActive)return this.color?this.color:this.isDark&&!this.appIsDark?"white":"primary"},isMultiple(){return!0===this.multiple||null===this.multiple&&Array.isArray(this.internalValue)},isActive(){const t=this.value,e=this.internalValue;return this.isMultiple?!!Array.isArray(e)&&e.some(e=>this.valueComparator(e,t)):void 0===this.trueValue||void 0===this.falseValue?t?this.valueComparator(t,e):Boolean(e):this.valueComparator(e,this.trueValue)},isDirty(){return this.isActive},rippleState(){return this.isDisabled||this.validationState?this.validationState:void 0}},watch:{inputValue(t){this.lazyValue=t,this.hasColor=t}},methods:{genLabel(){const t=s["a"].options.methods.genLabel.call(this);return t?(t.data.on={click:c},t):t},genInput(t,e){return this.$createElement("input",{attrs:Object.assign({"aria-checked":this.isActive.toString(),disabled:this.isDisabled,id:this.computedId,role:t,type:t},e),domProps:{value:this.value,checked:this.isActive},on:{blur:this.onBlur,change:this.onChange,focus:this.onFocus,keydown:this.onKeydown,click:c},ref:"input"})},onClick(t){this.onChange(),this.$emit("click",t)},onChange(){if(!this.isInteractive)return;const t=this.value;let e=this.internalValue;if(this.isMultiple){Array.isArray(e)||(e=[]);const i=e.length;e=e.filter(e=>!this.valueComparator(e,t)),e.length===i&&e.push(t)}else e=void 0!==this.trueValue&&void 0!==this.falseValue?this.valueComparator(e,this.trueValue)?this.falseValue:this.trueValue:t?this.valueComparator(e,t)?null:t:!e;this.validate(!0,e),this.internalValue=e,this.hasColor=e},onFocus(t){this.isFocused=!0,this.$emit("focus",t)},onBlur(t){this.isFocused=!1,this.$emit("blur",t)},onKeydown(t){}}})}}]); |