From 7ead8d7f1cc964eb1cac9ba8306eaad9678673db Mon Sep 17 00:00:00 2001 From: ljian1992 <314625268@qq.com> Date: Sun, 16 Feb 2025 16:26:09 +0800 Subject: [PATCH] fix bug for EditTrackingModeal.tsx --- assets/frontend/dist/metabox/index.js | 2 +- .../src/components/EditTrackingModal/EditTrackingModal.tsx | 2 +- assets/frontendv2/vite.config.metabox.ts | 2 +- assets/frontendv2/vite.config.orders.ts | 2 +- 4 files changed, 4 insertions(+), 4 deletions(-) diff --git a/assets/frontend/dist/metabox/index.js b/assets/frontend/dist/metabox/index.js index 5ba765a..22d80e7 100644 --- a/assets/frontend/dist/metabox/index.js +++ b/assets/frontend/dist/metabox/index.js @@ -1 +1 @@ -var Rn=Object.defineProperty,Mn=Object.defineProperties;var Ln=Object.getOwnPropertyDescriptors;var jt=Object.getOwnPropertySymbols;var Pn=Object.prototype.hasOwnProperty,Un=Object.prototype.propertyIsEnumerable;var Je=(W,I,M)=>I in W?Rn(W,I,{enumerable:!0,configurable:!0,writable:!0,value:M}):W[I]=M,q=(W,I)=>{for(var M in I||(I={}))Pn.call(I,M)&&Je(W,M,I[M]);if(jt)for(var M of jt(I))Un.call(I,M)&&Je(W,M,I[M]);return W},D=(W,I)=>Mn(W,Ln(I));var Tt=(W,I,M)=>Je(W,typeof I!="symbol"?I+"":I,M);var ie=(W,I,M)=>new Promise((Fe,ae)=>{var pe=Q=>{try{se(M.next(Q))}catch(F){ae(F)}},Y=Q=>{try{se(M.throw(Q))}catch(F){ae(F)}},se=Q=>Q.done?Fe(Q.value):Promise.resolve(Q.value).then(pe,Y);se((M=M.apply(W,I)).next())});(function(){"use strict";const W=(e,t)=>e===t,I=Symbol("solid-proxy"),M=typeof Proxy=="function",Fe=Symbol("solid-track"),ae={equals:W};let pe=Qe;const Y=1,se=2,Q={owned:null,cleanups:null,context:null,owner:null};var F=null;let Be=null,Et=null,R=null,H=null,ne=null,we=0;function Se(e,t){const r=R,i=F,a=e.length===0,o=t===void 0?i:t,d=a?Q:{owned:null,cleanups:null,context:o?o.context:null,owner:o},c=a?e:()=>e(()=>ee(()=>ge(d)));F=d,R=null;try{return de(c,!0)}finally{R=r,F=i}}function Z(e,t){t=t?Object.assign({},ae,t):ae;const r={value:e,observers:null,observerSlots:null,comparator:t.equals||void 0},i=a=>(typeof a=="function"&&(a=a(r.value)),Ye(r,a));return[Xe.bind(r),i]}function L(e,t,r){const i=Re(e,t,!1,Y);ue(i)}function Ie(e,t,r){pe=Mt;const i=Re(e,t,!1,Y);i.user=!0,ne?ne.push(i):ue(i)}function V(e,t,r){r=r?Object.assign({},ae,r):ae;const i=Re(e,t,!0,0);return i.observers=null,i.observerSlots=null,i.comparator=r.equals||void 0,ue(i),Xe.bind(i)}function ee(e){if(R===null)return e();const t=R;R=null;try{return e()}finally{R=t}}function Nt(e){Ie(()=>ee(e))}function Ft(e){return F===null||(F.cleanups===null?F.cleanups=[e]:F.cleanups.push(e)),e}function Bt(e){const t=V(e),r=V(()=>Me(t()));return r.toArray=()=>{const i=r();return Array.isArray(i)?i:i!=null?[i]:[]},r}function Xe(){if(this.sources&&this.state)if(this.state===Y)ue(this);else{const e=H;H=null,de(()=>$e(this),!1),H=e}if(R){const e=this.observers?this.observers.length:0;R.sources?(R.sources.push(this),R.sourceSlots.push(e)):(R.sources=[this],R.sourceSlots=[e]),this.observers?(this.observers.push(R),this.observerSlots.push(R.sources.length-1)):(this.observers=[R],this.observerSlots=[R.sources.length-1])}return this.value}function Ye(e,t,r){let i=e.value;return(!e.comparator||!e.comparator(i,t))&&(e.value=t,e.observers&&e.observers.length&&de(()=>{for(let a=0;a1e6)throw H=[],new Error},!1)),t}function ue(e){if(!e.fn)return;ge(e);const t=we;It(e,e.value,t)}function It(e,t,r){let i;const a=F,o=R;R=F=e;try{i=e.fn(t)}catch(d){return e.pure&&(e.state=Y,e.owned&&e.owned.forEach(ge),e.owned=null),e.updatedAt=r+1,et(d)}finally{R=o,F=a}(!e.updatedAt||e.updatedAt<=r)&&(e.updatedAt!=null&&"observers"in e?Ye(e,i):e.value=i,e.updatedAt=r)}function Re(e,t,r,i=Y,a){const o={fn:e,state:i,updatedAt:null,owned:null,sources:null,sourceSlots:null,cleanups:null,value:t,owner:F,context:F?F.context:null,pure:r};return F===null||F!==Q&&(F.owned?F.owned.push(o):F.owned=[o]),o}function xe(e){if(e.state===0)return;if(e.state===se)return $e(e);if(e.suspense&&ee(e.suspense.inFallback))return e.suspense.effects.push(e);const t=[e];for(;(e=e.owner)&&(!e.updatedAt||e.updatedAt=0;r--)if(e=t[r],e.state===Y)ue(e);else if(e.state===se){const i=H;H=null,de(()=>$e(e,t[0]),!1),H=i}}function de(e,t){if(H)return e();let r=!1;t||(H=[]),ne?r=!0:ne=[],we++;try{const i=e();return Rt(r),i}catch(i){r||(ne=null),H=null,et(i)}}function Rt(e){if(H&&(Qe(H),H=null),e)return;const t=ne;ne=null,t.length&&de(()=>pe(t),!1)}function Qe(e){for(let t=0;t=0;t--)ge(e.tOwned[t]);delete e.tOwned}if(e.owned){for(t=e.owned.length-1;t>=0;t--)ge(e.owned[t]);e.owned=null}if(e.cleanups){for(t=e.cleanups.length-1;t>=0;t--)e.cleanups[t]();e.cleanups=null}e.state=0}function Lt(e){return e instanceof Error?e:new Error(typeof e=="string"?e:"Unknown error",{cause:e})}function et(e,t=F){throw Lt(e)}function Me(e){if(typeof e=="function"&&!e.length)return Me(e());if(Array.isArray(e)){const t=[];for(let r=0;r1?[]:null;return Ft(()=>tt(o)),()=>{let y=e()||[],u=y.length,m,g;return y[Fe],ee(()=>{let C,j,b,_,O,n,s,l,f;if(u===0)d!==0&&(tt(o),o=[],i=[],a=[],d=0,c&&(c=[])),r.fallback&&(i=[Pt],a[0]=Se(h=>(o[0]=h,r.fallback())),d=1);else if(d===0){for(a=new Array(u),g=0;g=n&&l>=n&&i[s]===y[l];s--,l--)b[l]=a[s],_[l]=o[s],c&&(O[l]=c[s]);for(C=new Map,j=new Array(l+1),g=l;g>=n;g--)f=y[g],m=C.get(f),j[g]=m===void 0?-1:m,C.set(f,g);for(m=n;m<=s;m++)f=i[m],g=C.get(f),g!==void 0&&g!==-1?(b[g]=a[m],_[g]=o[m],c&&(O[g]=c[m]),g=j[g],C.set(f,g)):o[m]();for(g=n;ge(t||{}))}function Ce(){return!0}const qt={get(e,t,r){return t===I?r:e.get(t)},has(e,t){return t===I?!0:e.has(t)},set:Ce,deleteProperty:Ce,getOwnPropertyDescriptor(e,t){return{configurable:!0,enumerable:!0,get(){return e.get(t)},set:Ce,deleteProperty:Ce}},ownKeys(e){return e.keys()}};function Le(e){return(e=typeof e=="function"?e():e)?e:{}}function Dt(){for(let e=0,t=this.length;e=0;c--){const y=Le(e[c])[d];if(y!==void 0)return y}},has(d){for(let c=e.length-1;c>=0;c--)if(d in Le(e[c]))return!0;return!1},keys(){const d=[];for(let c=0;c=0;d--){const c=e[d];if(!c)continue;const y=Object.getOwnPropertyNames(c);for(let u=y.length-1;u>=0;u--){const m=y[u];if(m==="__proto__"||m==="constructor")continue;const g=Object.getOwnPropertyDescriptor(c,m);if(!i[m])i[m]=g.get?{enumerable:!0,configurable:!0,get:Dt.bind(r[m]=[g.get.bind(c)])}:g.value!==void 0?g:void 0;else{const k=r[m];k&&(g.get?k.push(g.get.bind(c)):g.value!==void 0&&k.push(()=>g.value))}}}const a={},o=Object.keys(i);for(let d=o.length-1;d>=0;d--){const c=o[d],y=i[c];y&&y.get?Object.defineProperty(a,c,y):a[c]=y?y.value:void 0}return a}const rt=e=>`Stale read from <${e}>.`;function he(e){const t="fallback"in e&&{fallback:()=>e.fallback};return V(Ut(()=>e.each,e.children,t||void 0))}function Pe(e){const t=e.keyed,r=V(()=>e.when,void 0,{equals:(i,a)=>t?i===a:!i==!a});return V(()=>{const i=r();if(i){const a=e.children;return typeof a=="function"&&a.length>0?ee(()=>a(t?i:()=>{if(!ee(r))throw rt("Show");return e.when})):a}return e.fallback},void 0,void 0)}function Vt(e){let t=!1;const r=(o,d)=>(t?o[1]===d[1]:!o[1]==!d[1])&&o[2]===d[2],i=Bt(()=>e.children),a=V(()=>{let o=i();Array.isArray(o)||(o=[o]);for(let d=0;d{const[o,d,c]=a();if(o<0)return e.fallback;const y=c.children;return typeof y=="function"&&y.length>0?ee(()=>y(t?d:()=>{if(ee(a)[0]!==o)throw rt("Match");return c.when})):y},void 0,void 0)}function zt(e){return e}function Wt(e,t,r){let i=r.length,a=t.length,o=i,d=0,c=0,y=t[a-1].nextSibling,u=null;for(;dm-c){const j=t[d];for(;c{a=o,t===document?e():N(t,e(),t.firstChild?null:void 0,r)},i.owner),()=>{a(),t.textContent=""}}function X(e,t,r){let i;const a=()=>{const d=document.createElement("template");return d.innerHTML=e,d.content.firstChild},o=()=>(i||(i=a())).cloneNode(!0);return o.cloneNode=o,o}function me(e,t=window.document){const r=t[nt]||(t[nt]=new Set);for(let i=0,a=e.length;ie(t,r))}function N(e,t,r,i){if(r!==void 0&&!i&&(i=[]),typeof t!="function")return ke(e,t,i,r);L(a=>ke(e,t(),a,r),i)}function it(e,t,r){const i=t.trim().split(/\s+/);for(let a=0,o=i.length;aObject.defineProperty(e,"target",{configurable:!0,value:y}),d=()=>{const y=t[r];if(y&&!t.disabled){const u=t[`${r}Data`];if(u!==void 0?y.call(t,u,e):y.call(t,e),e.cancelBubble)return}return t.host&&typeof t.host!="string"&&!t.host._$host&&t.contains(e.target)&&o(t.host),!0},c=()=>{for(;d()&&(t=t._$host||t.parentNode||t.host););};if(Object.defineProperty(e,"currentTarget",{configurable:!0,get(){return t||document}}),e.composedPath){const y=e.composedPath();o(y[0]);for(let u=0;u{let c=t();for(;typeof c=="function";)c=c();r=ke(e,c,r,i)}),()=>r;if(Array.isArray(t)){const c=[],y=r&&Array.isArray(r);if(qe(c,t,r,a))return L(()=>r=ke(e,c,r,i,!0)),()=>r;if(c.length===0){if(r=le(e,r,i),d)return r}else y?r.length===0?st(e,c,i):Wt(e,r,c):(r&&le(e),st(e,c));r=c}else if(t.nodeType){if(Array.isArray(r)){if(d)return r=le(e,r,i,t);le(e,r,null,t)}else r==null||r===""||!e.firstChild?e.appendChild(t):e.replaceChild(t,e.firstChild);r=t}}return r}function qe(e,t,r,i){let a=!1;for(let o=0,d=t.length;o=0;d--){const c=t[d];if(a!==c){const y=c.parentNode===e;!o&&!d?y?e.replaceChild(a,c):e.insertBefore(a,r):y&&c.remove()}else o=!0}}else e.insertBefore(a,r);return[a]}const at={button:"_button_1dv9o_1",primary:"_primary_1dv9o_18"};var Zt=X("