2 lines
No EOL
16 KiB
JavaScript
2 lines
No EOL
16 KiB
JavaScript
"use strict";(self["webpackChunkcmc_fe"]=self["webpackChunkcmc_fe"]||[]).push([[189],{3369:function(e,t,l){l.d(t,{K:function(){return i}});var n=l(3396),a=(l(8099),l(1138)),o=l(320),u=l(9888);const i=(0,o.a)({name:"VContainer",props:{fluid:{type:Boolean,default:!1},...(0,a.Q)()},setup(e,t){let{slots:l}=t;return(0,u.L)((()=>(0,n.Wm)(e.tag,{class:["v-container",{"v-container--fluid":e.fluid}]},l))),{}}})},9870:function(e,t,l){l.d(t,{L:function(){return b}});var n=l(3396),a=l(7312),o=l(4960),u=l(1970),i=l(6183),r=l(1138),s=l(7041),v=l(2370),c=l(4870),d=l(320),f=l(3122),h=l(8587),p=l(9888),m=l(131),g=l(3421);const b=(0,d.a)({name:"VTab",props:{fixed:Boolean,icon:[Boolean,String,Function,Object],prependIcon:o.lE,appendIcon:o.lE,stacked:Boolean,title:String,ripple:{type:Boolean,default:!0},color:String,sliderColor:String,hideSlider:Boolean,direction:{type:String,default:"horizontal"},...(0,r.Q)(),...(0,i.GN)(),...(0,u.YQ)({selectedClass:"v-tab--selected"}),...(0,s.x$)()},setup(e,t){let{slots:l,attrs:o}=t;const{textColorClasses:u,textColorStyles:i}=(0,v.rY)(e,"sliderColor"),r=(0,n.Fl)((()=>"horizontal"===e.direction)),s=(0,c.iH)(!1),d=(0,c.iH)(),b=(0,c.iH)();function y(e){let{value:t}=e;if(s.value=t,t){var l,n;const e=null==(l=d.value)||null==(n=l.$el.parentElement)?void 0:n.querySelector(".v-tab--selected .v-tab__slider"),t=b.value;if(!e||!t)return;const a=getComputedStyle(e).color,o=e.getBoundingClientRect(),u=t.getBoundingClientRect(),i=r.value?"x":"y",s=r.value?"X":"Y",v=r.value?"right":"bottom",c=r.value?"width":"height",p=o[i],m=u[i],g=p>m?o[v]-u[v]:o[i]-u[i],y=Math.sign(g)>0?r.value?"right":"bottom":Math.sign(g)<0?r.value?"left":"top":"center",w=Math.abs(g)+(Math.sign(g)<0?o[c]:u[c]),S=w/Math.max(o[c],u[c]),x=o[c]/u[c],C=1.5;(0,f.j)(t,{backgroundColor:[a,""],transform:[`translate${s}(${g}px) scale${s}(${x})`,`translate${s}(${g/C}px) scale${s}(${(S-1)/C+1})`,""],transformOrigin:Array(3).fill(y)},{duration:225,easing:h.Ly})}}return(0,p.L)((()=>{const[t]=(0,m.ei)(e,["href","to","replace","icon","stacked","prependIcon","appendIcon","ripple","theme","disabled","selectedClass","value","color"]);return(0,n.Wm)(a.T,(0,n.dG)({_as:"VTab",symbol:g.a,ref:d,class:["v-tab"],tabindex:s.value?0:-1,role:"tab","aria-selected":String(s.value),active:!1,block:e.fixed,maxWidth:e.fixed?300:void 0,variant:"text",rounded:0},t,o,{"onGroup:selected":y}),{default:()=>[l.default?l.default():e.title,!e.hideSlider&&(0,n.Wm)("div",{ref:b,class:["v-tab__slider",u.value],style:i.value},null)]})})),{}}})},3144:function(e,t,l){l.d(t,{d:function(){return B}});var n=l(3396),a=l(8952),o=l(3289),u=l(4960),i=l(1970),r=l(1138),s=l(8157),v=l(3712),c=l(1629),d=l(4870),f=l(320),h=l(2385),p=l(131),m=l(9888);function g(e){const t=.501,l=Math.abs(e);return Math.sign(e)*(l/((1/t-2)*(1-l)+1))}function b(e){let{selectedElement:t,containerSize:l,contentSize:n,isRtl:a,currentScrollOffset:o,isHorizontal:u}=e;const i=u?t.clientWidth:t.clientHeight,r=u?t.offsetLeft:t.offsetTop,s=a&&u?n-r-i:r,v=l+o,c=i+s,d=.4*i;return s<=o?o=Math.max(s-d,0):v<=c&&(o=Math.min(o-(v-c-d),n-l)),o}function y(e){let{selectedElement:t,containerSize:l,contentSize:n,isRtl:a,isHorizontal:o}=e;const u=o?t.clientWidth:t.clientHeight,i=o?t.offsetLeft:t.offsetTop,r=a&&o?n-i-u/2-l/2:i+u/2-l/2;return Math.min(n-l,Math.max(0,r))}const w=Symbol.for("vuetify:v-slide-group"),S=(0,f.e)()({name:"VSlideGroup",props:{centerActive:Boolean,direction:{type:String,default:"horizontal"},symbol:{type:null,default:w},nextIcon:{type:u.lE,default:"$next"},prevIcon:{type:u.lE,default:"$prev"},showArrows:{type:[Boolean,String],validator:e=>"boolean"===typeof e||["always","desktop","mobile"].includes(e)},...(0,r.Q)(),...(0,i.k4)({selectedClass:"v-slide-group-item--active"})},emits:{"update:modelValue":e=>!0},setup(e,t){let{slots:l}=t;const{isRtl:u}=(0,c.Vw)(),{mobile:r}=(0,s.AW)(),f=(0,i._v)(e,e.symbol),w=(0,d.iH)(!1),S=(0,d.iH)(0),x=(0,d.iH)(0),C=(0,d.iH)(0),H=(0,n.Fl)((()=>"horizontal"===e.direction)),{resizeRef:k,contentRect:_}=(0,v.y)(),{resizeRef:E,contentRect:W}=(0,v.y)(),B=(0,n.Fl)((()=>f.selected.value.length?f.items.value.findIndex((e=>e.id===f.selected.value[0])):-1)),F=(0,n.Fl)((()=>f.selected.value.length?f.items.value.findIndex((e=>e.id===f.selected.value[f.selected.value.length-1])):-1));if(h.BR){let t=-1;(0,n.YP)((()=>[f.selected.value,_.value,W.value,H.value]),(()=>{cancelAnimationFrame(t),t=requestAnimationFrame((()=>{if(_.value&&W.value){const e=H.value?"width":"height";x.value=_.value[e],C.value=W.value[e],w.value=x.value+1<C.value}if(B.value>=0&&E.value){const t=E.value.children[F.value];0!==B.value&&w.value?e.centerActive?S.value=y({selectedElement:t,containerSize:x.value,contentSize:C.value,isRtl:u.value,isHorizontal:H.value}):w.value&&(S.value=b({selectedElement:t,containerSize:x.value,contentSize:C.value,isRtl:u.value,currentScrollOffset:S.value,isHorizontal:H.value})):S.value=0}}))}))}const T=(0,d.iH)(!1);let V=0,Y=0;function z(e){const t=H.value?"clientX":"clientY",l=u.value&&H.value?-1:1;Y=l*S.value,V=e.touches[0][t],T.value=!0}function $(e){if(!w.value)return;const t=H.value?"clientX":"clientY",l=u.value&&H.value?-1:1;S.value=l*(Y+V-e.touches[0][t])}function X(e){const t=C.value-x.value;S.value<0||!w.value?S.value=0:S.value>=t&&(S.value=t),T.value=!1}function A(){k.value&&(k.value[H.value?"scrollLeft":"scrollTop"]=0)}const I=(0,d.iH)(!1);function L(e){if(I.value=!0,w.value&&E.value)for(const t of e.composedPath())for(const e of E.value.children)if(e===t)return void(S.value=b({selectedElement:e,containerSize:x.value,contentSize:C.value,isRtl:u.value,currentScrollOffset:S.value,isHorizontal:H.value}))}function R(e){I.value=!1}function M(e){var t;I.value||e.relatedTarget&&null!=(t=E.value)&&t.contains(e.relatedTarget)||P()}function O(e){E.value&&(H.value?"ArrowRight"===e.key?P(u.value?"prev":"next"):"ArrowLeft"===e.key&&P(u.value?"next":"prev"):"ArrowDown"===e.key?P("next"):"ArrowUp"===e.key&&P("prev"),"Home"===e.key?P("first"):"End"===e.key&&P("last"))}function P(e){if(E.value)if(e){if("next"===e){var t;const e=null==(t=E.value.querySelector(":focus"))?void 0:t.nextElementSibling;e?e.focus():P("first")}else if("prev"===e){var l;const e=null==(l=E.value.querySelector(":focus"))?void 0:l.previousElementSibling;e?e.focus():P("last")}else if("first"===e){var n;null==(n=E.value.firstElementChild)||n.focus()}else if("last"===e){var a;null==(a=E.value.lastElementChild)||a.focus()}}else{var o;const e=[...E.value.querySelectorAll('button, [href], input, select, textarea, [tabindex]:not([tabindex="-1"])')].filter((e=>!e.hasAttribute("disabled")));null==(o=e[0])||o.focus()}}function Q(e){const t=S.value+("prev"===e?-1:1)*x.value;S.value=(0,p.uZ)(t,0,C.value-x.value)}const Z=(0,n.Fl)((()=>{let e=S.value>C.value-x.value?-(C.value-x.value)+g(C.value-x.value-S.value):-S.value;S.value<=0&&(e=g(-S.value));const t=u.value&&H.value?-1:1;return{transform:`translate${H.value?"X":"Y"}(${t*e}px)`,transition:T.value?"none":"",willChange:T.value?"transform":""}})),j=(0,n.Fl)((()=>({next:f.next,prev:f.prev,select:f.select,isSelected:f.isSelected}))),q=(0,n.Fl)((()=>{switch(e.showArrows){case"always":return!0;case"desktop":return!r.value;case!0:return w.value||Math.abs(S.value)>0;case"mobile":return r.value||w.value||Math.abs(S.value)>0;default:return!r.value&&(w.value||Math.abs(S.value)>0)}})),G=(0,n.Fl)((()=>Math.abs(S.value)>0)),U=(0,n.Fl)((()=>C.value>Math.abs(S.value)+x.value));return(0,m.L)((()=>{var t,i,r;return(0,n.Wm)(e.tag,{class:["v-slide-group",{"v-slide-group--vertical":!H.value,"v-slide-group--has-affixes":q.value,"v-slide-group--is-overflowing":w.value}],tabindex:I.value||f.selected.value.length?-1:0,onFocus:M},{default:()=>[q.value&&(0,n.Wm)("div",{key:"prev",class:["v-slide-group__prev",{"v-slide-group__prev--disabled":!G.value}],onClick:()=>Q("prev")},[(null==(t=l.prev)?void 0:t.call(l,j.value))??(0,n.Wm)(a.Z5,null,{default:()=>[(0,n.Wm)(o.t,{icon:u.value?e.nextIcon:e.prevIcon},null)]})]),(0,n.Wm)("div",{key:"container",ref:k,class:"v-slide-group__container",onScroll:A},[(0,n.Wm)("div",{ref:E,class:"v-slide-group__content",style:Z.value,onTouchstartPassive:z,onTouchmovePassive:$,onTouchendPassive:X,onFocusin:L,onFocusout:R,onKeydown:O},[null==(i=l.default)?void 0:i.call(l,j.value)])]),q.value&&(0,n.Wm)("div",{key:"next",class:["v-slide-group__next",{"v-slide-group__next--disabled":!U.value}],onClick:()=>Q("next")},[(null==(r=l.next)?void 0:r.call(l,j.value))??(0,n.Wm)(a.Z5,null,{default:()=>[(0,n.Wm)(o.t,{icon:u.value?e.prevIcon:e.nextIcon},null)]})])]})})),{selected:f.selected,scrollTo:Q,scrollOffset:S,focus:P}}});var x=l(9870),C=l(9694),H=l(8434),k=l(2370),_=l(8717),E=l(3421);function W(e){return e?e.map((e=>"string"===typeof e?{title:e,value:e}:e)):[]}const B=(0,f.a)({name:"VTabs",props:{alignTabs:{type:String,default:"start"},color:String,direction:{type:String,default:"horizontal"},fixedTabs:Boolean,items:{type:Array,default:()=>[]},stacked:Boolean,bgColor:String,grow:Boolean,height:{type:[Number,String],default:void 0},hideSlider:Boolean,sliderColor:String,modelValue:null,mandatory:{type:[Boolean,String],default:"force"},...(0,C.f)(),...(0,r.Q)()},emits:{"update:modelValue":e=>!0},setup(e,t){let{slots:l}=t;const a=(0,_.z)(e,"modelValue"),o=(0,n.Fl)((()=>W(e.items))),{densityClasses:u}=(0,C.t)(e),{backgroundColorClasses:i,backgroundColorStyles:r}=(0,k.Y5)((0,d.Vh)(e,"bgColor"));return(0,H.AF)({VTab:{color:(0,d.Vh)(e,"color"),direction:(0,d.Vh)(e,"direction"),stacked:(0,d.Vh)(e,"stacked"),fixed:(0,d.Vh)(e,"fixedTabs"),sliderColor:(0,d.Vh)(e,"sliderColor"),hideSlider:(0,d.Vh)(e,"hideSlider")}}),(0,m.L)((()=>(0,n.Wm)(S,{modelValue:a.value,"onUpdate:modelValue":e=>a.value=e,class:["v-tabs",`v-tabs--${e.direction}`,`v-tabs--align-tabs-${e.alignTabs}`,{"v-tabs--fixed-tabs":e.fixedTabs,"v-tabs--grow":e.grow,"v-tabs--stacked":e.stacked},u.value,i.value],style:[{"--v-tabs-height":(0,p.kb)(e.height)},r.value],role:"tablist",symbol:E.a,mandatory:e.mandatory,direction:e.direction},{default:()=>[l.default?l.default():o.value.map((e=>(0,n.Wm)(x.L,(0,n.dG)(e,{key:e.title}),null)))]}))),{}}})},3421:function(e,t,l){l.d(t,{a:function(){return n}});const n=Symbol.for("vuetify:v-tabs")},6161:function(e,t,l){l.d(t,{Oo:function(){return p},f4:function(){return h},Z5:function(){return f}});l(7658);var n=l(3396),a=l(7312),o=l(2320),u=l(1138),i=l(7041),r=l(1970),s=l(1629),v=l(4870),c=l(320),d=l(9888);const f=Symbol.for("vuetify:v-window"),h=Symbol.for("vuetify:v-window-group"),p=(0,c.e)()({name:"VWindow",directives:{Touch:o.X},props:{continuous:Boolean,nextIcon:{type:[Boolean,String,Function,Object],default:"$next"},prevIcon:{type:[Boolean,String,Function,Object],default:"$prev"},reverse:Boolean,showArrows:{type:[Boolean,String],validator:e=>"boolean"===typeof e||"hover"===e},touch:{type:[Object,Boolean],default:void 0},direction:{type:String,default:"horizontal"},modelValue:null,disabled:Boolean,selectedClass:{type:String,default:"v-window-item--active"},mandatory:{default:"force"},...(0,u.Q)(),...(0,i.x$)()},emits:{"update:modelValue":e=>!0},setup(e,t){let{slots:l}=t;const{themeClasses:o}=(0,i.ER)(e),{isRtl:u}=(0,s.Vw)(),{t:c}=(0,s.bU)(),p=(0,r._v)(e,h),m=(0,v.iH)(),g=(0,n.Fl)((()=>u.value?!e.reverse:e.reverse)),b=(0,v.iH)(!1),y=(0,n.Fl)((()=>{const t="vertical"===e.direction?"y":"x",l=g.value?!b.value:b.value,n=l?"-reverse":"";return`v-window-${t}${n}-transition`})),w=(0,v.iH)(0),S=(0,v.iH)(void 0),x=(0,n.Fl)((()=>p.items.value.findIndex((e=>p.selected.value.includes(e.id)))));(0,n.YP)(x,((e,t)=>{const l=p.items.value.length,n=l-1;b.value=l<=2?e<t:e===n&&0===t||(0!==e||t!==n)&&e<t})),(0,n.JJ)(f,{transition:y,isReversed:b,transitionCount:w,transitionHeight:S,rootRef:m});const C=(0,n.Fl)((()=>e.continuous||0!==x.value)),H=(0,n.Fl)((()=>e.continuous||x.value!==p.items.value.length-1));function k(){C.value&&p.prev()}function _(){H.value&&p.next()}const E=(0,n.Fl)((()=>{const t=[],o={icon:u.value?e.nextIcon:e.prevIcon,class:"v-window__"+(g.value?"right":"left"),onClick:p.prev,ariaLabel:c("$vuetify.carousel.prev")};t.push(C.value?l.prev?l.prev({props:o}):(0,n.Wm)(a.T,o,null):(0,n.Wm)("div",null,null));const i={icon:u.value?e.prevIcon:e.nextIcon,class:"v-window__"+(g.value?"left":"right"),onClick:p.next,ariaLabel:c("$vuetify.carousel.next")};return t.push(H.value?l.next?l.next({props:i}):(0,n.Wm)(a.T,i,null):(0,n.Wm)("div",null,null)),t})),W=(0,n.Fl)((()=>{if(!1===e.touch)return e.touch;const t={left:()=>{g.value?k():_()},right:()=>{g.value?_():k()},start:e=>{let{originalEvent:t}=e;t.stopPropagation()}};return{...t,...!0===e.touch?{}:e.touch}}));return(0,d.L)((()=>{var t,a;return(0,n.wy)((0,n.Wm)(e.tag,{ref:m,class:["v-window",{"v-window--show-arrows-on-hover":"hover"===e.showArrows},o.value]},{default:()=>[(0,n.Wm)("div",{class:"v-window__container",style:{height:S.value}},[null==(t=l.default)?void 0:t.call(l,{group:p}),!1!==e.showArrows&&(0,n.Wm)("div",{class:"v-window__controls"},[E.value])]),null==(a=l.additional)?void 0:a.call(l,{group:p})]}),[[(0,n.Q2)("touch"),W.value]])})),{group:p}}})},4722:function(e,t,l){l.d(t,{H:function(){return p}});var n=l(3396),a=l(9242),o=l(2320),u=l(1970),i=l(1136),r=l(4906),s=l(1372),v=l(4870),c=l(320),d=l(131),f=l(9888),h=l(6161);const p=(0,c.a)({name:"VWindowItem",directives:{Touch:o.Z},props:{reverseTransition:{type:[Boolean,String],default:void 0},transition:{type:[Boolean,String],default:void 0},...(0,u.YQ)(),...(0,i.H)()},emits:{"group:selected":e=>!0},setup(e,t){let{slots:l}=t;const o=(0,n.f3)(h.Z5),c=(0,u.Yt)(e,h.f4),{isBooted:p}=(0,s.u)();if(!o||!c)throw new Error("[Vuetify] VWindowItem must be used inside VWindow");const m=(0,v.iH)(!1),g=(0,n.Fl)((()=>o.isReversed.value?!1!==e.reverseTransition:!1!==e.transition));function b(){m.value&&o&&(m.value=!1,o.transitionCount.value>0&&(o.transitionCount.value-=1,0===o.transitionCount.value&&(o.transitionHeight.value=void 0)))}function y(){if(!m.value&&o){var e;if(m.value=!0,0===o.transitionCount.value)o.transitionHeight.value=(0,d.kb)(null==(e=o.rootRef.value)?void 0:e.clientHeight);o.transitionCount.value+=1}}function w(){b()}function S(e){m.value&&(0,n.Y3)((()=>{g.value&&m.value&&o&&(o.transitionHeight.value=(0,d.kb)(e.clientHeight))}))}const x=(0,n.Fl)((()=>{const t=o.isReversed.value?e.reverseTransition:e.transition;return!!g.value&&{name:"string"!==typeof t?o.transition.value:t,onBeforeEnter:y,onAfterEnter:b,onEnterCancelled:w,onBeforeLeave:y,onAfterLeave:b,onLeaveCancelled:w,onEnter:S}})),{hasContent:C}=(0,i.l)(e,c.isSelected);return(0,f.L)((()=>{var e;return(0,n.Wm)(r.J,{transition:p.value&&x.value},{default:()=>[(0,n.wy)((0,n.Wm)("div",{class:["v-window-item",c.selectedClass.value]},[C.value&&(null==(e=l.default)?void 0:e.call(l))]),[[a.F8,c.isSelected.value]])]})})),{}}})},1136:function(e,t,l){l.d(t,{H:function(){return u},l:function(){return i}});var n=l(4870),a=l(3396),o=l(3766);const u=(0,o.U)({eager:Boolean},"lazy");function i(e,t){const l=(0,n.iH)(!1),o=(0,a.Fl)((()=>l.value||e.eager||t.value));function u(){e.eager||(l.value=!1)}return(0,a.YP)(t,(()=>l.value=!0)),{isBooted:l,hasContent:o,onAfterLeave:u}}},2320:function(e,t,l){l.d(t,{X:function(){return c}});var n=l(131);const a=e=>{const{touchstartX:t,touchendX:l,touchstartY:n,touchendY:a}=e,o=.5,u=16;e.offsetX=l-t,e.offsetY=a-n,Math.abs(e.offsetY)<o*Math.abs(e.offsetX)&&(e.left&&l<t-u&&e.left(e),e.right&&l>t+u&&e.right(e)),Math.abs(e.offsetX)<o*Math.abs(e.offsetY)&&(e.up&&a<n-u&&e.up(e),e.down&&a>n+u&&e.down(e))};function o(e,t){var l;const n=e.changedTouches[0];t.touchstartX=n.clientX,t.touchstartY=n.clientY,null==(l=t.start)||l.call(t,{originalEvent:e,...t})}function u(e,t){var l;const n=e.changedTouches[0];t.touchendX=n.clientX,t.touchendY=n.clientY,null==(l=t.end)||l.call(t,{originalEvent:e,...t}),a(t)}function i(e,t){var l;const n=e.changedTouches[0];t.touchmoveX=n.clientX,t.touchmoveY=n.clientY,null==(l=t.move)||l.call(t,{originalEvent:e,...t})}function r(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};const t={touchstartX:0,touchstartY:0,touchendX:0,touchendY:0,touchmoveX:0,touchmoveY:0,offsetX:0,offsetY:0,left:e.left,right:e.right,up:e.up,down:e.down,start:e.start,move:e.move,end:e.end};return{touchstart:e=>o(e,t),touchend:e=>u(e,t),touchmove:e=>i(e,t)}}function s(e,t){var l;const a=t.value,o=null!=a&&a.parent?e.parentElement:e,u=(null==a?void 0:a.options)??{passive:!0},i=null==(l=t.instance)?void 0:l.$.uid;if(!o||!i)return;const s=r(t.value);o._touchHandlers=o._touchHandlers??Object.create(null),o._touchHandlers[i]=s,(0,n.XP)(s).forEach((e=>{o.addEventListener(e,s[e],u)}))}function v(e,t){var l,a;const o=null!=(l=t.value)&&l.parent?e.parentElement:e,u=null==(a=t.instance)?void 0:a.$.uid;if(null==o||!o._touchHandlers||!u)return;const i=o._touchHandlers[u];(0,n.XP)(i).forEach((e=>{o.removeEventListener(e,i[e])})),delete o._touchHandlers[u]}const c={mounted:s,unmounted:v};t["Z"]=c}}]);
|
|
//# sourceMappingURL=189.d48eb76c.js.map
|