/
proc
/
3430793
/
task
/
3430793
/
cwd
/
home
/
pay
/
app
/
assets
/
File Upload :
llllll
Current File: //proc/3430793/task/3430793/cwd/home/pay/app/assets/vue-content-loader.es-a487872b.js
import{am as te,d as K,an as ne,P as y,a6 as R,a7 as q,aB as oe,q as C,bh as re,bi as ie,u as se,aA as $,o as U,aF as J,r as E,w as I,l as N}from"./index-816497e2.js";var ae=function(){return{prefixCls:String,type:{type:String,default:"horizontal"},dashed:{type:Boolean,default:!1},orientation:{type:String,default:"center"},plain:{type:Boolean,default:!1},orientationMargin:[String,Number]}},le=K({compatConfig:{MODE:3},name:"ADivider",props:ae(),setup:function(t,n){var i=n.slots,a=ne("divider",t),l=a.prefixCls,u=a.direction,o=y(function(){return t.orientation==="left"&&t.orientationMargin!=null}),h=y(function(){return t.orientation==="right"&&t.orientationMargin!=null}),f=y(function(){var s,d=t.type,v=t.dashed,g=t.plain,p=l.value;return s={},R(s,p,!0),R(s,"".concat(p,"-").concat(d),!0),R(s,"".concat(p,"-dashed"),!!v),R(s,"".concat(p,"-plain"),!!g),R(s,"".concat(p,"-rtl"),u.value==="rtl"),R(s,"".concat(p,"-no-default-orientation-margin-left"),o.value),R(s,"".concat(p,"-no-default-orientation-margin-right"),h.value),s}),c=y(function(){var s=typeof t.orientationMargin=="number"?"".concat(t.orientationMargin,"px"):t.orientationMargin;return q(q({},o.value&&{marginLeft:s}),h.value&&{marginRight:s})}),r=y(function(){return t.orientation.length>0?"-"+t.orientation:t.orientation});return function(){var s,d=oe((s=i.default)===null||s===void 0?void 0:s.call(i));return C("div",{class:[f.value,d.length?"".concat(l.value,"-with-text ").concat(l.value,"-with-text").concat(r.value):""],role:"separator"},[d.length?C("span",{class:"".concat(l.value,"-inner-text"),style:c.value},[d]):null])}}});const _e=te(le);function G(e){return re()?(ie(e),!0):!1}function T(e){return typeof e=="function"?e():se(e)}const ue=typeof window<"u"&&typeof document<"u";typeof WorkerGlobalScope<"u"&&globalThis instanceof WorkerGlobalScope;const ce=e=>e!=null,fe=Object.prototype.toString,de=e=>fe.call(e)==="[object Object]",M=()=>{};function Q(e,t){function n(...i){return new Promise((a,l)=>{Promise.resolve(e(()=>t.apply(this,i),{fn:t,thisArg:this,args:i})).then(a).catch(l)})}return n}function ve(e,t={}){let n,i,a=M;const l=o=>{clearTimeout(o),a(),a=M};return o=>{const h=T(e),f=T(t.maxWait);return n&&l(n),h<=0||f!==void 0&&f<=0?(i&&(l(i),i=null),Promise.resolve(o())):new Promise((c,r)=>{a=t.rejectOnCancel?r:c,f&&!i&&(i=setTimeout(()=>{n&&l(n),i=null,c(o())},f)),n=setTimeout(()=>{i&&l(i),i=null,c(o())},h)})}}function he(e,t=!0,n=!0,i=!1){let a=0,l,u=!0,o=M,h;const f=()=>{l&&(clearTimeout(l),l=void 0,o(),o=M)};return r=>{const s=T(e),d=Date.now()-a,v=()=>h=r();return f(),s<=0?(a=Date.now(),v()):(d>s&&(n||!u)?(a=Date.now(),v()):t&&(h=new Promise((g,p)=>{o=i?p:g,l=setTimeout(()=>{a=Date.now(),u=!0,g(v()),f()},Math.max(0,s-d))})),!n&&!l&&(l=setTimeout(()=>u=!0,s)),u=!1,h)}}function pe(e,t=200,n={}){return Q(ve(t,n),e)}function me(e,t=200,n=!1,i=!0,a=!1){return Q(he(t,n,i,a),e)}function Z(e,t=!0){$()?U(e):t?e():J(e)}function O(e){var t;const n=T(e);return(t=n==null?void 0:n.$el)!=null?t:n}const P=ue?window:void 0;function B(...e){let t,n,i,a;if(typeof e[0]=="string"||Array.isArray(e[0])?([n,i,a]=e,t=P):[t,n,i,a]=e,!t)return M;Array.isArray(n)||(n=[n]),Array.isArray(i)||(i=[i]);const l=[],u=()=>{l.forEach(c=>c()),l.length=0},o=(c,r,s,d)=>(c.addEventListener(r,s,d),()=>c.removeEventListener(r,s,d)),h=I(()=>[O(t),T(a)],([c,r])=>{if(u(),!c)return;const s=de(r)?{...r}:r;l.push(...n.flatMap(d=>i.map(v=>o(c,d,v,s))))},{immediate:!0,flush:"post"}),f=()=>{h(),u()};return G(f),f}function ge(){const e=E(!1);return $()&&U(()=>{e.value=!0}),e}function ee(e){const t=ge();return y(()=>(t.value,!!e()))}function ye(e,t,n={}){const{window:i=P,...a}=n;let l;const u=ee(()=>i&&"ResizeObserver"in i),o=()=>{l&&(l.disconnect(),l=void 0)},h=y(()=>Array.isArray(e)?e.map(r=>O(r)):[O(e)]),f=I(h,r=>{if(o(),u.value&&i){l=new ResizeObserver(t);for(const s of r)s&&l.observe(s,a)}},{immediate:!0,flush:"post",deep:!0}),c=()=>{o(),f()};return G(c),{isSupported:u,stop:c}}function Te(e,t={width:0,height:0},n={}){const{window:i=P,box:a="content-box"}=n,l=y(()=>{var r,s;return(s=(r=O(e))==null?void 0:r.namespaceURI)==null?void 0:s.includes("svg")}),u=E(t.width),o=E(t.height),{stop:h}=ye(e,([r])=>{const s=a==="border-box"?r.borderBoxSize:a==="content-box"?r.contentBoxSize:r.devicePixelContentBoxSize;if(i&&l.value){const d=O(e);if(d){const v=i.getComputedStyle(d);u.value=Number.parseFloat(v.width),o.value=Number.parseFloat(v.height)}}else if(s){const d=Array.isArray(s)?s:[s];u.value=d.reduce((v,{inlineSize:g})=>v+g,0),o.value=d.reduce((v,{blockSize:g})=>v+g,0)}else u.value=r.contentRect.width,o.value=r.contentRect.height},n);Z(()=>{const r=O(e);r&&(u.value="offsetWidth"in r?r.offsetWidth:t.width,o.value="offsetHeight"in r?r.offsetHeight:t.height)});const f=I(()=>O(e),r=>{u.value=r?t.width:0,o.value=r?t.height:0});function c(){h(),f()}return{width:u,height:o,stop:c}}function be(e,t,n={}){const{root:i,rootMargin:a="0px",threshold:l=.1,window:u=P,immediate:o=!0}=n,h=ee(()=>u&&"IntersectionObserver"in u),f=y(()=>{const v=T(e);return(Array.isArray(v)?v:[v]).map(O).filter(ce)});let c=M;const r=E(o),s=h.value?I(()=>[f.value,O(i),r.value],([v,g])=>{if(c(),!r.value||!v.length)return;const p=new IntersectionObserver(t,{root:O(g),rootMargin:a,threshold:l});v.forEach(w=>w&&p.observe(w)),c=()=>{p.disconnect(),c=M}},{immediate:o,flush:"post"}):M,d=()=>{c(),s(),r.value=!1};return G(d),{isSupported:h,isActive:r,pause(){c(),r.value=!1},resume(){r.value=!0},stop:d}}function we(e,t={}){const{window:n=P,scrollTarget:i}=t,a=E(!1);return be(e,([{isIntersecting:l}])=>{a.value=l},{root:i,window:n,threshold:0}),a}const k=1;function Se(e,t={}){const{throttle:n=0,idle:i=200,onStop:a=M,onScroll:l=M,offset:u={left:0,right:0,top:0,bottom:0},eventListenerOptions:o={capture:!1,passive:!0},behavior:h="auto",window:f=P}=t,c=E(0),r=E(0),s=y({get(){return c.value},set(b){v(b,void 0)}}),d=y({get(){return r.value},set(b){v(void 0,b)}});function v(b,D){var _,m,S;if(!f)return;const x=T(e);x&&((S=x instanceof Document?f.document.body:x)==null||S.scrollTo({top:(_=T(D))!=null?_:d.value,left:(m=T(b))!=null?m:s.value,behavior:T(h)}))}const g=E(!1),p=N({left:!0,right:!1,top:!0,bottom:!1}),w=N({left:!1,right:!1,top:!1,bottom:!1}),V=b=>{g.value&&(g.value=!1,w.left=!1,w.right=!1,w.top=!1,w.bottom=!1,a(b))},j=pe(V,n+i),A=b=>{var D;if(!f)return;const _=b.document?b.document.documentElement:(D=b.documentElement)!=null?D:b,{display:m,flexDirection:S}=getComputedStyle(_),x=_.scrollLeft;w.left=x<c.value,w.right=x>c.value;const H=Math.abs(x)<=0+(u.left||0),F=Math.abs(x)+_.clientWidth>=_.scrollWidth-(u.right||0)-k;m==="flex"&&S==="row-reverse"?(p.left=F,p.right=H):(p.left=H,p.right=F),c.value=x;let L=_.scrollTop;b===f.document&&!L&&(L=f.document.body.scrollTop),w.top=L<r.value,w.bottom=L>r.value;const X=Math.abs(L)<=0+(u.top||0),Y=Math.abs(L)+_.clientHeight>=_.scrollHeight-(u.bottom||0)-k;m==="flex"&&S==="column-reverse"?(p.top=Y,p.bottom=X):(p.top=X,p.bottom=Y),r.value=L},W=b=>{var D;if(!f)return;const _=(D=b.target.documentElement)!=null?D:b.target;A(_),g.value=!0,j(b),l(b)};return B(e,"scroll",n?me(W,n,!0,!1):W,o),Z(()=>{A(T(e))}),B(e,"scrollend",V,o),{x:s,y:d,isScrolling:g,arrivedState:p,directions:w,measure(){const b=T(e);f&&b&&A(b)}}}function xe(e){return typeof Window<"u"&&e instanceof Window?e.document.documentElement:typeof Document<"u"&&e instanceof Document?e.documentElement:e}function Me(e,t,n={}){var i;const{direction:a="bottom",interval:l=100}=n,u=N(Se(e,{...n,offset:{[a]:(i=n.distance)!=null?i:0,...n.offset}})),o=E(),h=y(()=>!!o.value),f=y(()=>xe(T(e))),c=we(f);function r(){if(u.measure(),!f.value||!c.value)return;const{scrollHeight:s,clientHeight:d,scrollWidth:v,clientWidth:g}=f.value,p=a==="bottom"||a==="top"?s<=d:v<=g;(u.arrivedState[a]||p)&&(o.value||(o.value=Promise.all([t(u),new Promise(w=>setTimeout(w,l))]).finally(()=>{o.value=null,J(()=>r())})))}return I(()=>[u.arrivedState[a],c.value],r,{immediate:!0}),{isLoading:h}}function Ae(e,t={}){const{threshold:n=50,onSwipe:i,onSwipeEnd:a,onSwipeStart:l,passive:u=!0,window:o=P}=t,h=N({x:0,y:0}),f=N({x:0,y:0}),c=y(()=>h.x-f.x),r=y(()=>h.y-f.y),{max:s,abs:d}=Math,v=y(()=>s(d(c.value),d(r.value))>=n),g=E(!1),p=y(()=>v.value?d(c.value)>d(r.value)?c.value>0?"left":"right":r.value>0?"up":"down":"none"),w=m=>[m.touches[0].clientX,m.touches[0].clientY],V=(m,S)=>{h.x=m,h.y=S},j=(m,S)=>{f.x=m,f.y=S};let A;const W=Ce(o==null?void 0:o.document);u?A=W?{passive:!0}:{capture:!1}:A=W?{passive:!1,capture:!0}:{capture:!0};const b=m=>{g.value&&(a==null||a(m,p.value)),g.value=!1},D=[B(e,"touchstart",m=>{if(m.touches.length!==1)return;A.capture&&!A.passive&&m.preventDefault();const[S,x]=w(m);V(S,x),j(S,x),l==null||l(m)},A),B(e,"touchmove",m=>{if(m.touches.length!==1)return;const[S,x]=w(m);j(S,x),!g.value&&v.value&&(g.value=!0),g.value&&(i==null||i(m))},A),B(e,["touchend","touchcancel"],b,A)];return{isPassiveEventSupported:W,isSwiping:g,direction:p,coordsStart:h,coordsEnd:f,lengthX:c,lengthY:r,stop:()=>D.forEach(m=>m())}}function Ce(e){if(!e)return!1;let t=!1;const n={get passive(){return t=!0,!1}};return e.addEventListener("x",M,n),e.removeEventListener("x",M),t}function Oe(e={}){const{window:t=P,behavior:n="auto"}=e;if(!t)return{x:E(0),y:E(0)};const i=E(t.scrollX),a=E(t.scrollY),l=y({get(){return i.value},set(o){scrollTo({left:o,behavior:n})}}),u=y({get(){return a.value},set(o){scrollTo({top:o,behavior:n})}});return B(t,"scroll",()=>{i.value=t.scrollX,a.value=t.scrollY},{capture:!1,passive:!0}),{x:l,y:u}}var z=function(){return Math.random().toString(36).substring(2)},De=K({name:"ContentLoader",props:{width:{type:[Number,String]},height:{type:[Number,String]},viewBox:{type:String},preserveAspectRatio:{type:String,default:"xMidYMid meet"},speed:{type:Number,default:2},baseUrl:{type:String,default:""},primaryColor:{type:String,default:"#f9f9f9"},secondaryColor:{type:String,default:"#ecebeb"},primaryOpacity:{type:Number,default:1},secondaryOpacity:{type:Number,default:1},uniqueKey:{type:String},animate:{type:Boolean,default:!0}},setup:function(t){var n=y(function(){return t.uniqueKey?"".concat(t.uniqueKey,"-idClip"):z()}),i=y(function(){return t.uniqueKey?"".concat(t.uniqueKey,"-idGradient"):z()}),a=y(function(){var o;return(o=t.width)!==null&&o!==void 0?o:400}),l=y(function(){var o;return(o=t.height)!==null&&o!==void 0?o:130}),u=y(function(){var o;return(o=t.viewBox)!==null&&o!==void 0?o:"0 0 ".concat(a.value," ").concat(l.value)});return{idClip:n,idGradient:i,computedViewBox:u}},render:function(){return C("svg",{width:this.width,height:this.height,viewBox:this.computedViewBox,version:"1.1",preserveAspectRatio:this.preserveAspectRatio},[C("rect",{style:{fill:"url(".concat(this.baseUrl,"#").concat(this.idGradient,")")},"clip-path":"url(".concat(this.baseUrl,"#").concat(this.idClip,")"),x:"0",y:"0",width:"100%",height:"100%"},null),C("defs",null,[C("clipPath",{id:this.idClip},[this.$slots.default?this.$slots.default():C("rect",{x:"0",y:"0",rx:"5",ry:"5",width:"100%",height:"100%"},null)]),C("linearGradient",{id:this.idGradient},[C("stop",{offset:"0%","stop-color":this.primaryColor,"stop-opacity":this.primaryOpacity},[this.animate?C("animate",{attributeName:"offset",values:"-2; 1",dur:"".concat(this.speed,"s"),repeatCount:"indefinite"},null):null]),C("stop",{offset:"50%","stop-color":this.secondaryColor,"stop-opacity":this.secondaryOpacity},[this.animate?C("animate",{attributeName:"offset",values:"-1.5; 1.5",dur:"".concat(this.speed,"s"),repeatCount:"indefinite"},null):null]),C("stop",{offset:"100%","stop-color":this.primaryColor,"stop-opacity":this.primaryOpacity},[this.animate?C("animate",{attributeName:"offset",values:"-1; 2",dur:"".concat(this.speed,"s"),repeatCount:"indefinite"},null):null])])])])}});export{De as C,_e as _,Oe as a,be as b,Me as c,Se as d,Ae as e,Te as u};
Copyright ©2k19 -
Hexid
|
Tex7ure