navasena/wp-content/plugins/woocommerce/assets/client/admin/chunks/9488.js

2 lines
40 KiB
JavaScript
Raw Normal View History

2024-07-31 13:12:38 +07:00
/*! For license information please see 9488.js.LICENSE.txt */
"use strict";(globalThis.webpackChunk_wcAdmin_webpackJsonp=globalThis.webpackChunk_wcAdmin_webpackJsonp||[]).push([[9488],{4528:(t,e,s)=>{s.d(e,{eO:()=>f,v9:()=>h});var n=s(99196),o=s(19720),i=s(9654),r=s(71260),c=s(44966);const a=(t,e)=>{e(t);const s=t.getSnapshot().children;s&&Object.values(s).forEach((t=>{a(t,e)}))};function u(t,e){return t===e}function h(t,e,s=u){const o=(0,n.useCallback)((e=>{if(!t)return()=>{};const{unsubscribe:s}=t.subscribe(e);return s}),[t]),i=(0,n.useCallback)((()=>t?.getSnapshot()),[t]);return(0,c.useSyncExternalStoreWithSelector)(o,i,i,e,s)}function f(t,e={}){return function(t,e={}){const s=function(t,e){let[[s,o],c]=(0,n.useState)((()=>{const s=(0,r.A)(t,e);return[t.config,s]}));if(t.config!==s){const s=(0,r.A)(t,{...e,snapshot:o.getPersistedSnapshot({__unsafeAllowInlineActors:!0})});c([t.config,s]),o=s}return(0,i.Z)((()=>{o.logic.implementations=t.implementations})),o}(t,e),c=(0,n.useCallback)((()=>s.getSnapshot()),[s]),u=(0,n.useCallback)((t=>{const{unsubscribe:e}=s.subscribe(t);return e}),[s]),h=(0,o.useSyncExternalStore)(u,c,c);return(0,n.useEffect)((()=>(s.start(),()=>{!function(t){const e=[];a(t,(t=>{e.push([t,t.getSnapshot()]),t.observers=new Set}));const s=t.system.getSnapshot?.();t.stop(),t.system._snapshot=s,e.forEach((([t,e])=>{t._processingStatus=0,t._snapshot=e}))}(s)})),[s]),[h,s.send,s]}(t,e)}},9654:(t,e,s)=>{s.d(e,{Z:()=>n});const n=s(99196).useLayoutEffect},26876:(t,e,s)=>{var n=s(99196),o="function"==typeof Object.is?Object.is:function(t,e){return t===e&&(0!==t||1/t==1/e)||t!=t&&e!=e},i=n.useState,r=n.useEffect,c=n.useLayoutEffect,a=n.useDebugValue;function u(t){var e=t.getSnapshot;t=t.value;try{var s=e();return!o(t,s)}catch(t){return!0}}var h="undefined"==typeof window||void 0===window.document||void 0===window.document.createElement?function(t,e){return e()}:function(t,e){var s=e(),n=i({inst:{value:s,getSnapshot:e}}),o=n[0].inst,h=n[1];return c((function(){o.value=s,o.getSnapshot=e,u(o)&&h({inst:o})}),[t,s,e]),r((function(){return u(o)&&h({inst:o}),t((function(){u(o)&&h({inst:o})}))}),[t]),a(s),s};e.useSyncExternalStore=void 0!==n.useSyncExternalStore?n.useSyncExternalStore:h},56810:(t,e,s)=>{var n=s(99196),o=s(19720),i="function"==typeof Object.is?Object.is:function(t,e){return t===e&&(0!==t||1/t==1/e)||t!=t&&e!=e},r=o.useSyncExternalStore,c=n.useRef,a=n.useEffect,u=n.useMemo,h=n.useDebugValue;e.useSyncExternalStoreWithSelector=function(t,e,s,n,o){var f=c(null);if(null===f.current){var d={hasValue:!1,value:null};f.current=d}else d=f.current;f=u((function(){function t(t){if(!a){if(a=!0,r=t,t=n(t),void 0!==o&&d.hasValue){var e=d.value;if(o(e,t))return c=e}return c=t}if(e=c,i(r,t))return e;var s=n(t);return void 0!==o&&o(e,s)?e:(r=t,c=s)}var r,c,a=!1,u=void 0===s?null:s;return[function(){return t(e())},null===u?void 0:function(){return t(u())}]}),[e,s,n,o]);var p=r(t,f[0],f[1]);return a((function(){d.hasValue=!0,d.value=p}),[p]),h(p),p}},19720:(t,e,s)=>{t.exports=s(26876)},44966:(t,e,s)=>{t.exports=s(56810)},15359:(t,e,s)=>{s.d(e,{E9:()=>i,p4:()=>u});var n=s(71260);const o=new WeakMap;function i(t){return{config:t,start:(e,s)=>{const{self:n,system:i}=s,r={receivers:void 0,dispose:void 0};o.set(n,r),r.dispose=t({input:e.input,system:i,self:n,sendBack:t=>{"stopped"!==n.getSnapshot().status&&n._parent&&i._relay(n,n._parent,t)},receive:t=>{r.receivers??=new Set,r.receivers.add(t)}})},transition:(t,e,s)=>{const i=o.get(s.self);return e.type===n.X?(t={...t,status:"stopped",error:void 0},i.dispose?.(),t):(i.receivers?.forEach((t=>t(e))),t)},getInitialSnapshot:(t,e)=>({status:"active",output:void 0,error:void 0,input:e}),getPersistedSnapshot:t=>t,restoreSnapshot:t=>t}}const r="xstate.promise.resolve",c="xstate.promise.reject",a=new WeakMap;function u(t){return{config:t,transition:(t,e,s)=>{if("active"!==t.status)return t;switch(e.type){case r:{const s=e.data;return{...t,status:"done",output:s,input:void 0}}case c:return{...t,status:"error",error:e.data,input:void 0};case n.X:return a.get(s.self)?.abort(),{...t,status:"stopped",input:void 0};default:return t}},start:(e,{self:s,syst