文件操作 - DxEAbh_l.js
返回文件管理
返回主菜单
删除本文件
文件: /var/www/OLD/dist/_nuxt/DxEAbh_l.js
编辑文件内容
import{e as ee,X as te,Y as ne,o as V,c as F,t as z,G as I,a as D,F as re,R as oe,a0 as ae,J,j as P,a1 as G,a2 as ie,p as le,q as H,V as se,W as ue,l as _,v as $,a3 as ce,a4 as de,x as Z,P as w,f as fe}from"./4Poj3RLe.js";import{a as me}from"./Do4_QVaY.js";const pe=e=>{const r=t=>/^[a-zA-Z0-9._%+-]+@[a-zA-Z0-9.-]+\.[a-zA-Z]{2,}$/.test(t),o=t=>/^(https?):\/\/[^\s/$.?#].[^\s]*$/.test(t),n=(t,l=!0)=>{var m,d,h;let a=!0;if(t.dataset.required)a=t.dataset.valid==="true";else{const f=t.value;switch(t.type){case"email":{r(f)||(a=!1);break}case"url":{o(f)||(a=!1);break}case"checkbox":{t.checked||(a=!1);break}case"radio":{document.querySelector(`[name="${t.name}"]:checked`)||(a=!1);break}default:f||(a=!1)}t.getAttribute("minlength")&&f.length<t.minLength&&(a=!1),t.getAttribute("maxlength")&&f.length>t.maxLength&&(a=!1),t.min&&Number(f)<Number(t.min)&&(a=!1),t.max&&Number(f)>Number(t.max)&&(a=!1)}if(l)if(a)(m=t.closest(".form-block"))==null||m.classList.remove("not-valid");else{if(t.type==="radio"){const f=document.querySelectorAll(`[name="${t.name}"]`);(d=f[f.length-1].closest(".form-block"))==null||d.classList.add("not-valid");return}(h=t.closest(".form-block"))==null||h.classList.add("not-valid")}return a},c=(t,l=!0,a=!0)=>{if(!t)return!1;let m=!0;if(t.querySelectorAll('[required], [data-required="true"]').forEach(d=>{n(d,a)||(m=!1)}),l){const d=t.querySelector(".not-valid");if(d){const h=d.getBoundingClientRect();h.top>=0&&h.bottom<=window.innerHeight||d.scrollIntoView({behavior:"smooth"})}}return m};return{validateEmail:r,validateUrl:o,validateInput:n,validateForm:c,watchValid:(t,l)=>{const a=t.querySelector('[type="submit"]');t.querySelectorAll('[required], [data-required="true"]').forEach(m=>{const d=m;let h=!0;const f=()=>{let b=c(t,!1,!1);return b&&l&&Object.keys(l).forEach(i=>{l[i]||(b=!1)}),b?a==null||a.removeAttribute("disabled"):a==null||a.setAttribute("disabled",""),b};return h=f(),d.addEventListener("input",f),h})},resetInvalid:t=>{var l;if(t instanceof HTMLInputElement&&t.type==="radio"){document.querySelectorAll(`[name="${t.name}"]`).forEach(m=>{var d;return(d=m.closest(".form-block"))==null?void 0:d.classList.remove("not-valid")});return}(l=t.closest(".form-block"))==null||l.classList.remove("not-valid")}}},ye={key:0,class:"form-block-title"},he=["aria-label"],ve=["type","placeholder","required","readonly","min","max"],be={key:1,class:"input-error"},De=ee({__name:"AppInput",props:te({type:{default:()=>"text"},title:{},placeholder:{},required:{type:Boolean},errorText:{},readonly:{type:Boolean},icon:{},min:{},max:{}},{modelValue:{default:""},modelModifiers:{}}),emits:["update:modelValue"],setup(e){const{resetInvalid:r}=pe(),o=ne(e,"modelValue");return(n,c)=>(V(),F("div",{class:J(["form-block",`form-block-${n.type}`])},[n.title?(V(),F("div",ye,z(n.title),1)):I("",!0),D("label",{class:"input-block","aria-label":n.title??n.placeholder},[n.icon?(V(),re(me,{key:0,name:n.icon,class:"input-icon"},null,8,["name"])):I("",!0),oe(D("input",{class:J(["input",{filled:o.value}]),type:n.type,placeholder:n.placeholder,required:n.required,"onUpdate:modelValue":c[0]||(c[0]=y=>o.value=y),onFocus:c[1]||(c[1]=y=>P(r)(y.currentTarget)),ref:"input",readonly:"readonly"in n?n.readonly:P(G),min:n.min,max:n.max},null,42,ve),[[ae,o.value]])],8,he),n.required||n.errorText?(V(),F("div",be,z(n.errorText||n.$t("app.input.error")),1)):I("",!0)],2))}});function ge(e){return se()?(ue(e),!0):!1}function we(e){let r=!1,o;const n=ie(!0);return(...c)=>(r||(o=n.run(()=>e(...c)),r=!0),o)}const U=typeof window<"u"&&typeof document<"u";typeof WorkerGlobalScope<"u"&&globalThis instanceof WorkerGlobalScope;const Se=Object.prototype.toString,ke=e=>Se.call(e)==="[object Object]",M=()=>{},Ae=Ee();function Ee(){var e,r;return U&&((e=window==null?void 0:window.navigator)==null?void 0:e.userAgent)&&(/iP(?:ad|hone|od)/.test(window.navigator.userAgent)||((r=window==null?void 0:window.navigator)==null?void 0:r.maxTouchPoints)>2&&/iPad|Macintosh/.test(window==null?void 0:window.navigator.userAgent))}function Oe(e,r){function o(...n){return new Promise((c,y)=>{Promise.resolve(e(()=>r.apply(this,n),{fn:r,thisArg:this,args:n})).then(c).catch(y)})}return o}const K=e=>e();function Te(e=K){const r=_(!0);function o(){r.value=!1}function n(){r.value=!0}const c=(...y)=>{r.value&&e(...y)};return{isActive:G(r),pause:o,resume:n,eventFilter:c}}function Ve(e){return ce()}function C(e){return Array.isArray(e)?e:[e]}function Ne(e,r,o={}){const{eventFilter:n=K,...c}=o;return $(e,Oe(n,r),c)}function qe(e,r,o={}){const{eventFilter:n,...c}=o,{eventFilter:y,pause:S,resume:t,isActive:l}=Te(n);return{stop:Ne(e,r,{...c,eventFilter:y}),pause:S,resume:t,isActive:l}}function Le(e,r=!0,o){Ve()?le(e,o):r?e():H(e)}function Fe(e,r,o){return $(e,r,{...o,immediate:!0})}const L=U?window:void 0;function T(e){var r;const o=w(e);return(r=o==null?void 0:o.$el)!=null?r:o}function A(...e){const r=[],o=()=>{r.forEach(t=>t()),r.length=0},n=(t,l,a,m)=>(t.addEventListener(l,a,m),()=>t.removeEventListener(l,a,m)),c=Z(()=>{const t=C(w(e[0])).filter(l=>l!=null);return t.every(l=>typeof l!="string")?t:void 0}),y=Fe(()=>{var t,l;return[(l=(t=c.value)==null?void 0:t.map(a=>T(a)))!=null?l:[L].filter(a=>a!=null),C(w(c.value?e[1]:e[0])),C(P(c.value?e[2]:e[1])),w(c.value?e[3]:e[2])]},([t,l,a,m])=>{if(o(),!(t!=null&&t.length)||!(l!=null&&l.length)||!(a!=null&&a.length))return;const d=ke(m)?{...m}:m;r.push(...t.flatMap(h=>l.flatMap(f=>a.map(b=>n(h,f,b,d)))))},{flush:"post"}),S=()=>{y(),o()};return ge(o),S}let R=!1;function Je(e,r,o={}){const{window:n=L,ignore:c=[],capture:y=!0,detectIframe:S=!1}=o;if(!n)return M;if(Ae&&!R){R=!0;const i={passive:!0};Array.from(n.document.body.children).forEach(s=>A(s,"click",M,i)),A(n.document.documentElement,"click",M,i)}let t=!0;const l=i=>w(c).some(s=>{if(typeof s=="string")return Array.from(n.document.querySelectorAll(s)).some(p=>p===i.target||i.composedPath().includes(p));{const p=T(s);return p&&(i.target===p||i.composedPath().includes(p))}});function a(i){const s=w(i);return s&&s.$.subTree.shapeFlag===16}function m(i,s){const p=w(i),E=p.$.subTree&&p.$.subTree.children;return E==null||!Array.isArray(E)?!1:E.some(k=>k.el===s.target||s.composedPath().includes(k.el))}const d=i=>{const s=T(e);if(i.target!=null&&!(!(s instanceof Element)&&a(e)&&m(e,i))&&!(!s||s===i.target||i.composedPath().includes(s))){if(i.detail===0&&(t=!l(i)),!t){t=!0;return}r(i)}};let h=!1;const f=[A(n,"click",i=>{h||(h=!0,setTimeout(()=>{h=!1},0),d(i))},{passive:!0,capture:y}),A(n,"pointerdown",i=>{const s=T(e);t=!l(i)&&!!(s&&!i.composedPath().includes(s))},{passive:!0}),S&&A(n,"blur",i=>{setTimeout(()=>{var s;const p=T(e);((s=n.document.activeElement)==null?void 0:s.tagName)==="IFRAME"&&!(p!=null&&p.contains(n.document.activeElement))&&r(i)},0)},{passive:!0})].filter(Boolean);return()=>f.forEach(i=>i())}const N=typeof globalThis<"u"?globalThis:typeof window<"u"?window:typeof global<"u"?global:typeof self<"u"?self:{},q="__vueuse_ssr_handlers__",Ie=Me();function Me(){return q in N||(N[q]=N[q]||{}),N[q]}function Ce(e,r){return Ie[e]||r}function Pe(e){return e==null?"any":e instanceof Set?"set":e instanceof Map?"map":e instanceof Date?"date":typeof e=="boolean"?"boolean":typeof e=="string"?"string":typeof e=="object"?"object":Number.isNaN(e)?"any":"number"}const $e={boolean:{read:e=>e==="true",write:e=>String(e)},object:{read:e=>JSON.parse(e),write:e=>JSON.stringify(e)},number:{read:e=>Number.parseFloat(e),write:e=>String(e)},any:{read:e=>e,write:e=>String(e)},string:{read:e=>e,write:e=>String(e)},map:{read:e=>new Map(JSON.parse(e)),write:e=>JSON.stringify(Array.from(e.entries()))},set:{read:e=>new Set(JSON.parse(e)),write:e=>JSON.stringify(Array.from(e))},date:{read:e=>new Date(e),write:e=>e.toISOString()}},B="vueuse-storage";function We(e,r,o,n={}){var c;const{flush:y="pre",deep:S=!0,listenToStorageChanges:t=!0,writeDefaults:l=!0,mergeDefaults:a=!1,shallow:m,window:d=L,eventFilter:h,onError:f=u=>{console.error(u)},initOnMounted:b}=n,i=(m?de:_)(typeof r=="function"?r():r),s=Z(()=>w(e));if(!o)try{o=Ce("getDefaultStorage",()=>{var u;return(u=L)==null?void 0:u.localStorage})()}catch(u){f(u)}if(!o)return i;const p=w(r),E=Pe(p),k=(c=n.serializer)!=null?c:$e[E],{pause:X,resume:W}=qe(i,()=>Y(i.value),{flush:y,deep:S,eventFilter:h});$(s,()=>O(),{flush:y}),d&&t&&Le(()=>{o instanceof Storage?A(d,"storage",O,{passive:!0}):A(d,B,Q),b&&O()}),b||O();function j(u,v){if(d){const g={key:s.value,oldValue:u,newValue:v,storageArea:o};d.dispatchEvent(o instanceof Storage?new StorageEvent("storage",g):new CustomEvent(B,{detail:g}))}}function Y(u){try{const v=o.getItem(s.value);if(u==null)j(v,null),o.removeItem(s.value);else{const g=k.write(u);v!==g&&(o.setItem(s.value,g),j(v,g))}}catch(v){f(v)}}function x(u){const v=u?u.newValue:o.getItem(s.value);if(v==null)return l&&p!=null&&o.setItem(s.value,k.write(p)),p;if(!u&&a){const g=k.read(v);return typeof a=="function"?a(g,p):E==="object"&&!Array.isArray(g)?{...p,...g}:g}else return typeof v!="string"?v:k.read(v)}function O(u){if(!(u&&u.storageArea!==o)){if(u&&u.key==null){i.value=p;return}if(!(u&&u.key!==s.value)){X();try{(u==null?void 0:u.newValue)!==k.write(i.value)&&(i.value=x(u))}catch(v){f(v)}finally{u?H(W):W()}}}}function Q(u){O(u.detail)}return i}const Re=we(()=>{const{t:e}=fe(),r={items:[{}],pickupLocationType:e("form.shipment.value.pickupLocationType"),deliveryLocationType:e("form.shipment.value.deliveryLocationType")},o=We("form",JSON.parse(JSON.stringify(r)),sessionStorage);return{formInitial:r,form:o}});export{De as _,pe as a,Je as o,Re as u};
修改文件时间
将文件时间修改为当前时间的前一年
删除文件