128 lines
480 KiB
JavaScript
128 lines
480 KiB
JavaScript
|
|
/*!
|
||
|
|
* Quasar Framework v2.18.6
|
||
|
|
* (c) 2015-present Razvan Stoenescu
|
||
|
|
* Released under the MIT License.
|
||
|
|
*/
|
||
|
|
|
||
|
|
var ts=Object.defineProperty;var oh=Object.getOwnPropertyDescriptor;var nh=Object.getOwnPropertyNames;var rh=Object.prototype.hasOwnProperty;var os=(e,t)=>{for(var o in t)ts(e,o,{get:t[o],enumerable:!0})},ih=(e,t,o,n)=>{if(t&&typeof t=="object"||typeof t=="function")for(let r of nh(t))!rh.call(e,r)&&r!==o&&ts(e,r,{get:()=>t[r],enumerable:!(n=oh(t,r))||n.enumerable});return e};var ah=e=>ih(ts({},"__esModule",{value:!0}),e);var Yb={};os(Yb,{AddressbarColor:()=>vg,AppFullscreen:()=>hg,AppVisibility:()=>pg,BottomSheet:()=>xg,ClosePopup:()=>Ad,Cookies:()=>Tg,Dark:()=>vl,Dialog:()=>Pg,EventBus:()=>dl,IconSet:()=>si,Intersection:()=>Ua,Lang:()=>Gn,Loading:()=>Ag,LoadingBar:()=>$g,LocalStorage:()=>Og,Meta:()=>Lg,Morph:()=>$d,Mutation:()=>Bd,Notify:()=>Dg,Platform:()=>An,QAjaxBar:()=>Sa,QAvatar:()=>Cl,QBadge:()=>cs,QBanner:()=>ds,QBar:()=>fs,QBreadcrumbs:()=>ms,QBreadcrumbsEl:()=>gs,QBtn:()=>Oe,QBtnDropdown:()=>Ma,QBtnGroup:()=>$r,QBtnToggle:()=>Es,QCard:()=>Ir,QCardActions:()=>Ra,QCardSection:()=>yn,QCarousel:()=>As,QCarouselControl:()=>Bs,QCarouselSlide:()=>$s,QChatMessage:()=>Fs,QCheckbox:()=>kn,QChip:()=>Hr,QCircularProgress:()=>Nr,QColor:()=>zs,QDate:()=>Ys,QDialog:()=>Tn,QDrawer:()=>Zs,QEditor:()=>oc,QExpansionItem:()=>rc,QFab:()=>ic,QFabAction:()=>ac,QField:()=>ja,QFile:()=>sc,QFooter:()=>cc,QForm:()=>dc,QFormChildMixin:()=>fc,QHeader:()=>mc,QIcon:()=>Te,QImg:()=>vc,QInfiniteScroll:()=>gc,QInnerLoading:()=>hc,QInput:()=>Zr,QIntersection:()=>pc,QItem:()=>Mn,QItemLabel:()=>Sr,QItemSection:()=>No,QKnob:()=>bc,QLayout:()=>yc,QLinearProgress:()=>Ja,QList:()=>Ka,QMarkupTable:()=>Ya,QMenu:()=>Cn,QNoSsr:()=>xc,QOptionGroup:()=>Ga,QPage:()=>_c,QPageContainer:()=>wc,QPageScroller:()=>Cc,QPageSticky:()=>kc,QPagination:()=>qc,QParallax:()=>Tc,QPopupEdit:()=>Mc,QPopupProxy:()=>Pc,QPullToRefresh:()=>Ec,QRadio:()=>Wa,QRange:()=>Ac,QRating:()=>$c,QResizeObserver:()=>Ho,QResponsive:()=>Bc,QRouteTab:()=>xd,QScrollArea:()=>Lc,QScrollObserver:()=>ei,QSelect:()=>nl,QSeparator:()=>Xo,QSkeleton:()=>Oc,QSlideItem:()=>Ic,QSlideTransition:()=>lr,QSlider:()=>In,QSpace:()=>Hc,QSpinner:()=>Ht,QSpinnerAudio:()=>Nc,QSpinnerBall:()=>Qc,QSpinnerBars:()=>jc,QSpinnerBox:()=>Uc,QSpinnerClock:()=>Kc,QSpinnerComment:()=>Yc,QSpinnerCube:()=>Wc,QSpinnerDots:()=>Xc,QSpinnerFacebook:()=>Gc,QSpinnerGears:()=>Zc,QSpinnerGrid:()=>Jc,QSpinnerHearts:()=>ed,QSpinnerHourglass:()=>td,QSpinnerInfinity:()=>od,QSpinnerIos:()=>nd,QSpinnerOrbit:()=>rd,QSpinnerOval:()=>id,QSpinnerPie:()=>ad,QSpinnerPuff:()=>ld,QSpinnerRadio:()=>ud,QSpinnerRings:()=>sd,QSpinnerTail:()=>cd,QSplitter:()=>dd,QStep:()=>fd,QStepper:()=>md,QStepperNavigation:()=>vd,QTab:()=>rr,QTabPanel:()=>Qr,QTabPanels:()=>La,QTable:()=>pd,QTabs:()=>Xi,QTd:()=>yd,QTh:()=>rl,QTime:()=>Sd,QTimeline:()=>_d,QTimelineEntry:()=>wd,QToggle:()=>Xa,QToolbar:()=>Cd,QToolbarTitle:()=>kd,QTooltip:()=>Na,QTr:()=>bd,QTree:()=>qd,QUploader:()=>Md,QUploaderAddTrigger:()=>Pd,QVideo:()=>Rd,QVirtualScroll:()=>il,Quasar:()=>Kb,Ripple:()=>wn,Screen:()=>ml,Scroll:()=>Ld,ScrollFire:()=>Fd,SessionStorage:()=>Ng,TouchHold:()=>Dd,TouchPan:()=>jt,TouchRepeat:()=>Vd,TouchSwipe:()=>Ea,clone:()=>sr,colors:()=>dm,copyToClipboard:()=>Wg,createMetaMixin:()=>Xg,createUploaderComponent:()=>Nu,date:()=>wm,debounce:()=>sn,dom:()=>Df,event:()=>tf,exportFile:()=>Zg,extend:()=>ar,format:()=>yf,frameDebounce:()=>la,getCssVar:()=>Od,is:()=>mf,morph:()=>ju,noop:()=>Ze,openURL:()=>eh,patterns:()=>cm,runSequentialPromises:()=>Wd,scroll:()=>jf,setCssVar:()=>ba,throttle:()=>Ml,uid:()=>Dn,useDialogPluginComponent:()=>cl,useFormChild:()=>_u,useHydration:()=>Yi,useId:()=>zn,useInterval:()=>Yg,useMeta:()=>Ug,useQuasar:()=>Yd,useRenderCache:()=>xn,useSplitAttrs:()=>ta,useTick:()=>pn,useTimeout:()=>bo});module.exports=ah(Yb);var hf=require("vue");var Gb=require("vue");function Bt(e,t,o,n){return Object.defineProperty(e,t,{get:o,set:n,enumerable:!0}),e}function fl(e,t){for(let o in t)Bt(e,o,t[o]);return e}var ko={value:!0};function lh(e,t){let o=/(edg|edge|edga|edgios)\/([\w.]+)/.exec(e)||/(opr)[\/]([\w.]+)/.exec(e)||/(vivaldi)[\/]([\w.]+)/.exec(e)||/(chrome|crios)[\/
|
||
|
|
<!doctype html>
|
||
|
|
<html>
|
||
|
|
<head>
|
||
|
|
<title>Print - ${document.title}</title>
|
||
|
|
</head>
|
||
|
|
<body>
|
||
|
|
<div>${this.el.innerHTML}</div>
|
||
|
|
</body>
|
||
|
|
</html>
|
||
|
|
`),r.print(),r.close();return}else if(t==="link"){let r=this.getParentAttribute("href");if(r===null){let i=this.selectWord(this.selection),a=i?i.toString():"";if(!a.length&&(!this.range||!this.range.cloneContents().querySelector("img")))return;this.eVm.editLinkUrl.value=u0.test(a)?a:"https://",document.execCommand("createLink",!1,this.eVm.editLinkUrl.value),this.save(i.getRangeAt(0))}else this.eVm.editLinkUrl.value=r,this.range.selectNodeContents(this.parent),this.save();return}else if(t==="fullscreen"){this.eVm.toggleFullscreen(),n();return}else if(t==="viewsource"){this.eVm.isViewingSource.value=this.eVm.isViewingSource.value===!1,this.eVm.setContent(this.eVm.props.modelValue),n();return}document.execCommand(t,!1,o),n()}selectWord(t){if(t===null||t.isCollapsed!==!0||t.modify===void 0)return t;let o=document.createRange();o.setStart(t.anchorNode,t.anchorOffset),o.setEnd(t.focusNode,t.focusOffset);let n=o.collapsed?["backward","forward"]:["forward","backward"];o.detach();let r=t.focusNode,i=t.focusOffset;return t.collapse(t.anchorNode,t.anchorOffset),t.modify("move",n[0],"character"),t.modify("move",n[1],"word"),t.extend(r,i),t.modify("extend",n[1],"character"),t.modify("extend",n[0],"word"),t}};var xo=require("vue");var ao=require("vue");var Na=T({name:"QTooltip",inheritAttrs:!1,props:{...ys,...fn,...hn,maxHeight:{type:String,default:null},maxWidth:{type:String,default:null},transitionShow:{...hn.transitionShow,default:"jump-down"},transitionHide:{...hn.transitionHide,default:"jump-up"},anchor:{type:String,default:"bottom middle",validator:Li},self:{type:String,default:"top middle",validator:Li},offset:{type:Array,default:()=>[14,14],validator:Ol},scrollTarget:Yo,delay:{type:Number,default:0},hideDelay:{type:Number,default:0},persistent:Boolean},emits:[...mn],setup(e,{slots:t,emit:o,attrs:n}){let r,i,a=(0,ao.getCurrentInstance)(),{proxy:{$q:l}}=a,s=(0,ao.ref)(null),f=(0,ao.ref)(!1),u=(0,ao.computed)(()=>Di(e.anchor,l.lang.rtl)),g=(0,ao.computed)(()=>Di(e.self,l.lang.rtl)),m=(0,ao.computed)(()=>e.persistent!==!0),{registerTick:c,removeTick:d}=pn(),{registerTimeout:y}=bo(),{transitionProps:p,transitionStyle:w}=hr(e),{localScrollTarget:b,changeScrollEvent:h,unconfigureScrollTarget:v}=Bl(e,ce),{anchorEl:x,canShow:R,anchorEvents:$}=wi({showing:f,configureAnchorEl:W}),{show:L,hide:K}=vn({showing:f,canShow:R,handleShow:C,handleHide:S,hideOnRouteChange:m,processOnMount:!0});Object.assign($,{delayShow:z,delayHide:I});let{showPortal:E,hidePortal:A,renderPortal:P}=qi(a,s,_,"tooltip");if(l.platform.is.mobile===!0){let Q={anchorEl:x,innerRef:s,onClickOutside(ne){return K(ne),ne.target.classList.contains("q-dialog__backdrop")&&Ae(ne),!0}},N=(0,ao.computed)(()=>e.modelValue===null&&e.persistent!==!0&&f.value===!0);(0,ao.watch)(N,ne=>{(ne===!0?zl:Fi)(Q)}),(0,ao.onBeforeUnmount)(()=>{Fi(Q)})}function C(Q){E(),c(()=>{i=new MutationObserver(()=>D()),i.observe(s.value,{attributes:!1,childList:!0,characterData:!0,subtree:!0}),D(),ce()}),r===void 0&&(r=(0,ao.watch)(()=>l.screen.width+"|"+l.screen.height+"|"+e.self+"|"+e.anchor+"|"+l.lang.rtl,D)),y(()=>{E(!0),o("show",Q)},e.transitionDuration)}function S(Q){d(),A(),M(),y(()=>{A(!0),o("hide",Q)},e.transitionDuration)}function M(){i!==void 0&&(i.disconnect(),i=void 0),r!==void 0&&(r(),r=void 0),v(),pa($,"tooltipTemp")}function D(){Ta({targetEl:s.value,offset:e.offset,anchorEl:x.value,anchorOrigin:u.value,selfOrigin:g.value,maxHeight:e.maxHeight,maxWidth:e.maxWidth})}function z(Q){if(l.platform.is.mobile===!0){Ca(),document.body.classList.add("non-selectable");let N=x.value,ne=["touchmove","touchcancel","touchend","click"].map(k=>[N,k,"delayHide","passiveCapture"]);ui($,"tooltipTemp",ne)}y(()=>{L(Q)},e.delay)}function I(Q){l.platform.is.mobile===!0&&(pa($,"tooltipTemp"),Ca(),setTimeout(()=>{document.body.classList.remove("non-selectable")},10)),y(()=>{K(Q)},e.hideDelay)}function W(){if(e.noParentEvent===!0||x.value===null)return;let Q=l.platform.is.mobile===!0?[[x.value,"touchstart","delayShow","passive"]]:[[x.value,"mouseenter","delayShow","passive"],[x.value,"mouseleave","delayHide","pa
|
||
|
|
transform: translate(${xe}px, ${Fe}px);
|
||
|
|
width: ${U}px;
|
||
|
|
height: ${se}px;
|
||
|
|
`:`transform: translate(${xe}px, ${Fe}px) scale(${le}, ${Le});`,Me=i.resize===!0?`
|
||
|
|
width: ${De}px;
|
||
|
|
height: ${Ke}px;
|
||
|
|
`:"",ot=i.resize===!0?`
|
||
|
|
width: ${U}px;
|
||
|
|
height: ${se}px;
|
||
|
|
`:"",xt=i.resize===!0?`
|
||
|
|
transform: translate(${-1*xe}px, ${-1*Fe}px);
|
||
|
|
width: ${De}px;
|
||
|
|
height: ${Ke}px;
|
||
|
|
`:`transform: translate(${-1*xe}px, ${-1*Fe}px) scale(${1/le}, ${1/Le});`,Kt=A!==void 0?`opacity: ${i.tweenToOpacity};`:`background-color: ${v};`,Eo=A!==void 0?"opacity: 1;":`background-color: ${ee};`,dr=A===void 0?"":`
|
||
|
|
@keyframes ${re}-from-tween {
|
||
|
|
0% {
|
||
|
|
opacity: ${i.tweenFromOpacity};
|
||
|
|
margin: 0;
|
||
|
|
border-width: ${p};
|
||
|
|
border-style: ${w};
|
||
|
|
border-color: ${b};
|
||
|
|
border-radius: ${h};
|
||
|
|
z-index: ${ft};
|
||
|
|
transform-origin: 0 0;
|
||
|
|
transform: ${x};
|
||
|
|
${ot}
|
||
|
|
}
|
||
|
|
|
||
|
|
100% {
|
||
|
|
opacity: 0;
|
||
|
|
margin: 0;
|
||
|
|
border-width: ${N};
|
||
|
|
border-style: ${ne};
|
||
|
|
border-color: ${k};
|
||
|
|
border-radius: ${F};
|
||
|
|
z-index: ${X};
|
||
|
|
transform-origin: 0 0;
|
||
|
|
${xt}
|
||
|
|
}
|
||
|
|
}
|
||
|
|
`,Zo=i.hideFromClone===!0||Ve===!0?"":`
|
||
|
|
@keyframes ${re}-from {
|
||
|
|
0% {
|
||
|
|
margin: ${Ne<0?Ne/2:0}px ${He<0?He/2:0}px;
|
||
|
|
width: ${U+c.marginH}px;
|
||
|
|
height: ${se+c.marginV}px;
|
||
|
|
}
|
||
|
|
|
||
|
|
100% {
|
||
|
|
margin: 0;
|
||
|
|
width: 0;
|
||
|
|
height: 0;
|
||
|
|
}
|
||
|
|
}
|
||
|
|
`,Xn=Ve===!0?`
|
||
|
|
margin: ${Ne<0?Ne/2:0}px ${He<0?He/2:0}px;
|
||
|
|
width: ${U+c.marginH}px;
|
||
|
|
height: ${se+c.marginV}px;
|
||
|
|
`:`
|
||
|
|
margin: 0;
|
||
|
|
width: 0;
|
||
|
|
height: 0;
|
||
|
|
`,G=i.keepToClone===!0?"":`
|
||
|
|
@keyframes ${re}-to {
|
||
|
|
0% {
|
||
|
|
${Xn}
|
||
|
|
}
|
||
|
|
|
||
|
|
100% {
|
||
|
|
margin: ${te<0?te/2:0}px ${at<0?at/2:0}px;
|
||
|
|
width: ${De+de.marginH}px;
|
||
|
|
height: ${Ke+de.marginV}px;
|
||
|
|
}
|
||
|
|
}
|
||
|
|
`;Se.innerHTML=`
|
||
|
|
@keyframes ${re} {
|
||
|
|
0% {
|
||
|
|
margin: 0;
|
||
|
|
border-width: ${p};
|
||
|
|
border-style: ${w};
|
||
|
|
border-color: ${b};
|
||
|
|
border-radius: ${h};
|
||
|
|
background-color: ${v};
|
||
|
|
z-index: ${ft};
|
||
|
|
transform-origin: 0 0;
|
||
|
|
${Ye}
|
||
|
|
${Kt}
|
||
|
|
}
|
||
|
|
|
||
|
|
100% {
|
||
|
|
margin: 0;
|
||
|
|
border-width: ${N};
|
||
|
|
border-style: ${ne};
|
||
|
|
border-color: ${k};
|
||
|
|
border-radius: ${F};
|
||
|
|
background-color: ${ee};
|
||
|
|
z-index: ${X};
|
||
|
|
transform-origin: 0 0;
|
||
|
|
transform: ${H};
|
||
|
|
${Me}
|
||
|
|
${Eo}
|
||
|
|
}
|
||
|
|
}
|
||
|
|
|
||
|
|
${Zo}
|
||
|
|
|
||
|
|
${dr}
|
||
|
|
|
||
|
|
${G}
|
||
|
|
`,document.head.appendChild(Se);let fe="normal";E.style.animation=`${i.duration}ms ${i.easing} ${i.delay}ms ${fe} ${i.fill} ${re}-from`,A!==void 0&&(A.style.animation=`${i.duration}ms ${i.easing} ${i.delay}ms ${fe} ${i.fill} ${re}-from-tween`),_.style.animation=`${i.duration}ms ${i.easing} ${i.delay}ms ${fe} ${i.fill} ${re}-to`,C.style.animation=`${i.duration}ms ${i.easing} ${i.delay}ms ${fe} ${i.fill} ${re}`;let Ee=Re=>{Re===Object(Re)&&Re.animationName!==re||(C.removeEventListener("animationend",Ee),C.removeEventListener("animationcancel",Ee),Y(),Se.remove())};a.qMorphCancel=()=>{a.qMorphCancel=void 0,o=!0,Ee()},C.qMorphCancel=()=>{C.qMorphCancel=void 0,o=!0,Ee()},C.addEventListener("animationend",Ee),C.addEventListener("animationcancel",Ee),t=Re=>o===!0||!C||!E||!_?!1:Re===!0?(Ee(),!0):(n=n!==!0,fe=fe==="normal"?"reverse":"normal",E.style.animationDirection=fe,A.style.animationDirection=fe,_.style.animationDirection=fe,C.style.animationDirection=fe,!0)}};i.waitFor>0||i.waitFor==="transitionend"||i.waitFor===Object(i.waitFor)&&typeof i.waitFor.then=="function"?(i.waitFor>0?new Promise(ce=>setTimeout(ce,i.waitFor)):i.waitFor==="transitionend"?new Promise(ce=>{let B=()=>{_!==null&&(clearTimeout(_),_=null),C&&(C.removeEventListener("transitionend",B),C.removeEventListener("transitioncancel",B)),ce()},_=setTimeout(B,400);C.addEventListener("transitionend",B),C.addEventListener("transitioncancel",B)}):i.waitFor).then(I).catch(()=>{typeof C.qMorphCancel=="function"&&C.qMorphCancel()}):I()};return typeof e.onToggle=="function"&&e.onToggle(),requestAnimationFrame(P),C=>t(C)}var $d=Zt({name:"morph",getSSRProps:e=>({class:(e.arg?e.arg.split(":")[0]:!1)===e.value?"":"q-morph--invisible"})});var Bd=Zt({name:"mutation",getSSRProps:lo});var{passive:KO}=lt;var Fd=Zt({name:"scroll-fire",getSSRProps:lo});var Ld=Zt({name:"scroll",getSSRProps:lo});var Dd=Zt({name:"touch-hold",getSSRProps:lo});var Mb={esc:27,tab:9,enter:13,space:32,up:38,left:37,right:39,down:40,delete:[8,46]},EI=new RegExp(`^([\\d+]+|${Object.keys(Mb).join("|")})$`,"i");var Vd=Zt({name:"touch-repeat",getSSRProps:lo});function Od(e,t=document.body){if(typeof e!="string")throw new TypeError("Expected a string as propName");if(!(t instanceof Element))throw new TypeError("Expected a DOM element");return getComputedStyle(t).getPropertyValue(`--q-${e}`).trim()||null}var vg={set:Ze,install({$q:e}){e.addressbarColor=this,e.config.addressbarColor&&this.set(e.config.addressbarColor)}};function Pb(e){Object.assign(gg,{request:e,exit:e,toggle:e})}var gg=Ao({isActive:!1,activeEl:null},{isCapable:!1,install({$q:e}){e.fullscreen=this}});Pb(()=>Promise.resolve());var hg=gg;var Rb=Ao({appVisible:!0},{install({$q:e}){this.appVisible=e.appVisible=!0}}),pg=Rb;var Ut=require("vue");var bg=T({name:"BottomSheetComponent",props:{...be,title:String,message:String,actions:Array,grid:Boolean,cardClass:[String,Array,Object],cardStyle:[String,Array,Object]},emits:["ok","hide"],setup(e,{emit:t}){let{proxy:o}=(0,Ut.getCurrentInstance)(),n=ye(e,o.$q),r=(0,Ut.ref)(null);function i(){r.value.show()}function a(){r.value.hide()}function l(c){t("ok",c),a()}function s(){t("hide")}function f(){return e.actions.map(c=>{let d=c.avatar||c.img;return c.label===void 0?(0,Ut.h)(Xo,{class:"col-all",dark:n.value}):(0,Ut.h)("div",{class:["q-bottom-sheet__item q-hoverable q-focusable cursor-pointer relative-position",c.class],style:c.style,tabindex:0,role:"listitem",onClick(){l(c)},onKeyup(y){y.keyCode===13&&l(c)}},[(0,Ut.h)("div",{class:"q-focus-helper"}),c.icon?(0,Ut.h)(Te,{name:c.icon,color:c.color}):d?(0,Ut.h)("img",{class:c.avatar?"q-bottom-sheet__avatar":"",src:d}):(0,Ut.h)("div",{class:"q-bottom-sheet__empty-icon"}),(0,Ut.h)("div",c.label)])})}function u(){return e.actions.map(c=>{let d=c.avatar||c.img;return c.label===void 0?(0,Ut.h)(Xo,{spaced:!0,dark:n.value}):(0,Ut.h)(Mn,{class:["q-bottom-sheet__item",c.classes],style:c.style,tabindex:0,clickable:!0,dark:n.value,onClick(){l(c)}},()=>[(0,Ut.h)(No,{avatar:!0},()=>c.icon?(0,Ut.h)(Te,{name:c.icon,color:c.color}):d?(0,Ut.h)("img",{class:c.avatar?"q-botto
|