芝麻web文件管理V1.00
编辑当前文件:/home/ezdajrnh/public_html/wp-content/plugins/woocommerce/assets/client/blocks/774.js
"use strict";(globalThis.webpackChunkwebpackWcBlocksPaymentMethodExtensionJsonp=globalThis.webpackChunkwebpackWcBlocksPaymentMethodExtensionJsonp||[]).push([[774],{774:(e,t,n)=>{n.d(t,{JV:()=>N,ag:()=>j});var r,o,a,c=n(609),i=n.n(c);!function(e){e.INITIAL="initial",e.PENDING="pending",e.REJECTED="rejected",e.RESOLVED="resolved"}(r||(r={})),function(e){e.LOADING_STATUS="setLoadingStatus",e.RESET_OPTIONS="resetOptions",e.SET_BRAINTREE_INSTANCE="braintreeInstance"}(o||(o={})),function(e){e.NUMBER="number",e.CVV="cvv",e.EXPIRATION_DATE="expirationDate",e.EXPIRATION_MONTH="expirationMonth",e.EXPIRATION_YEAR="expirationYear",e.POSTAL_CODE="postalCode"}(a||(a={}));var s=function(){return s=Object.assign||function(e){for(var t,n=1,r=arguments.length;n
because window.").concat(c,".").concat(i," is undefined."),u="string"==typeof o?o:o.join(",");if(!u.includes(n)){var l=[u,n].filter(Boolean).join();s+="\nTo fix the issue, add '".concat(n,"' to the list of components passed to the parent PayPalScriptProvider:")+"\n`
`.")}return s}function b(e){var t=e,n=d;t[n];var r=u(t,[n+""]);return"react-paypal-js-".concat(function(e){for(var t="",n=0;n
component. Failed to initialize: ".concat(e))}))}return!1===O.current.isEligible()?(L(!1),_):P.current?(O.current.render(P.current).catch((function(e){null!==P.current&&0!==P.current.children.length&&M((function(){throw new Error("Failed to render
component. ".concat(e))}))})),_):_}),l(l([k],h,!0),[b.fundingSource],!1)),(0,c.useEffect)((function(){null!==C&&(!0===f?C.disable().catch((function(){})):C.enable().catch((function(){})))}),[f,C]),i().createElement(i().Fragment,null,x?i().createElement("div",{ref:P,style:g,className:S}):v)};function P(e,t){void 0===t&&(t={});var n=document.createElement("script");return n.src=e,Object.keys(t).forEach((function(e){n.setAttribute(e,t[e]),"data-csp-nonce"===e&&n.setAttribute("nonce",t["data-csp-nonce"])})),n}function O(e,t){if(void 0===t&&(t=Promise),R(e,t),"undefined"==typeof document)return t.resolve(null);var n=function(e){var t,n,r=e.sdkBaseUrl,o=e.environment,a=function(e,t){var n={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(null!=e&&"function"==typeof Object.getOwnPropertySymbols){var o=0;for(r=Object.getOwnPropertySymbols(e);o
component. ".concat(e))}))}))}(e.Marks(s({},o)))}}),[l,o.fundingSource]),i().createElement(i().Fragment,null,m?i().createElement("div",{ref:f,className:n}):r)};k.displayName="PayPalMarks";var T=function(e){var t=e.className,n=void 0===t?"":t,r=e.forceReRender,o=void 0===r?[]:r,a=u(e,["className","forceReRender"]),d=w()[0],f=d.isResolved,v=d.options,m=(0,c.useRef)(null),h=(0,c.useRef)(null),b=(0,c.useState)(null)[1];return(0,c.useEffect)((function(){if(!1!==f){var e=y(v[p]);if(void 0===e||void 0===e.Messages)return b((function(){throw new Error(E({reactComponentName:T.displayName,sdkComponentKey:"messages",sdkRequestedComponents:v.components,sdkDataNamespace:v[p]}))}));h.current=e.Messages(s({},a)),h.current.render(m.current).catch((function(e){null!==m.current&&0!==m.current.children.length&&b((function(){throw new Error("Failed to render
component. ".concat(e))}))}))}}),l([f],o,!0)),i().createElement("div",{ref:m,className:n})};T.displayName="PayPalMessages";var j=function(e){var t,n=e.options,a=void 0===n?{clientId:"test"}:n,u=e.children,l=e.deferLoading,p=void 0!==l&&l,m=(0,c.useReducer)(g,{options:s(s({},a),(t={},t.dataJsSdkLibrary=f,t[v]=f,t[d]="".concat(b(a)),t)),loadingStatus:p?r.INITIAL:r.PENDING}),h=m[0],y=m[1];return(0,c.useEffect)((function(){if(!1===p&&h.loadingStatus===r.INITIAL)return y({type:o.LOADING_STATUS,value:r.PENDING});if(h.loadingStatus===r.PENDING){var e=!0;return O(h.options).then((function(){e&&y({type:o.LOADING_STATUS,value:r.RESOLVED})})).catch((function(t){console.error("".concat("Failed to load the PayPal JS SDK script."," ").concat(t)),e&&y({type:o.LOADING_STATUS,value:{state:r.REJECTED,message:String(t)}})})),function(){e=!1}}}),[h.options,p,h.loadingStatus]),i().createElement(S.Provider,{value:s(s({},h),{dispatch:y})},u)};function C(){}(0,c.createContext)({cardFieldsForm:null,fields:{},registerField:C,unregisterField:C})}}]);