👁 查看:command-palette.js
路径:/home/forge/kingkrunch.com/wp/wp-content/plugins/woocommerce-gateway-stripe/build/command-palette.js
大小:13.9 KB · 修改:2026-09-30 14:36:43 · 权限:0644 · 可写
(()=>{var t={237:()=>{},470:(t,r,e)=>{"use strict";var n=e(6028),o=e(5594);t.exports=function(t){var r=n(t,"string");return o(r)?r:r+""}},575:(t,r,e)=>{"use strict";var n=e(3121);t.exports=function(t){return n(t.length)}},581:(t,r,e)=>{"use strict";var n=e(3930),o=e(2250),i=e(6285),s=TypeError;t.exports=function(t,r){var e,c;if("string"===r&&o(e=t.toString)&&!i(c=n(e,t)))return c;if(o(e=t.valueOf)&&!i(c=n(e,t)))return c;if("string"!==r&&o(e=t.toString)&&!i(c=n(e,t)))return c;throw new s("Can't convert object to primitive value")}},726:(t,r,e)=>{"use strict";var n=e(8311),o=e(1907),i=e(6946),s=e(9298),c=e(575),u=e(6968),a=o([].push),p=function(t){var r=1===t,e=2===t,o=3===t,p=4===t,f=6===t,l=7===t,v=5===t||f;return function(y,b,h,m){for(var w,x,d=s(y),g=i(d),j=c(g),S=n(b,h),O=0,E=m||u,P=r?E(y,j):e||l?E(y,0):void 0;j>O;O++)if((v||O in g)&&(x=S(w=g[O],O,d),t))if(r)P[O]=x;else if(x)switch(t){case 3:return!0;case 5:return w;case 6:return O;case 2:a(P,w)}else switch(t){case 4:return!1;case 7:a(P,w)}return f?-1:o||p?p:P}};t.exports={forEach:p(0),map:p(1),filter:p(2),some:p(3),every:p(4),find:p(5),findIndex:p(6),filterReject:p(7)}},798:(t,r,e)=>{"use strict";var n,o,i=e(5951),s=e(6794),c=i.process,u=i.Deno,a=c&&c.versions||u&&u.version,p=a&&a.v8;p&&(o=(n=p.split("."))[0]>0&&n[0]<4?1:+(n[0]+n[1])),!o&&s&&(!(n=s.match(/Edge\/(\d+)/))||n[1]>=74)&&(n=s.match(/Chrome\/(\d+)/))&&(o=+n[1]),t.exports=o},1091:(t,r,e)=>{"use strict";var n=e(5951),o=e(6024),i=e(2361),s=e(2250),c=e(3846).f,u=e(7463),a=e(2046),p=e(8311),f=e(1626),l=e(9724);e(6128);var v=function(t){var r=function(e,n,i){if(this instanceof r){switch(arguments.length){case 0:return new t;case 1:return new t(e);case 2:return new t(e,n)}return new t(e,n,i)}return o(t,this,arguments)};return r.prototype=t.prototype,r};t.exports=function(t,r){var e,o,y,b,h,m,w,x,d,g=t.target,j=t.global,S=t.stat,O=t.proto,E=j?n:S?n[g]:n[g]&&n[g].prototype,P=j?a:a[g]||f(a,g,{})[g],_=P.prototype;for(b in r)o=!(e=u(j?b:g+(S?".":"#")+b,t.forced))&&E&&l(E,b),m=P[b],o&&(w=t.dontCallGetSet?(d=c(E,b))&&d.value:E[b]),h=o&&w?w:r[b],(e||O||typeof m!=typeof h)&&(x=t.bind&&o?p(h,n):t.wrap&&o?v(h):O&&s(h)?i(h):h,(t.sham||h&&h.sham||m&&m.sham)&&f(x,"sham",!0),f(P,b,x),O&&(l(a,y=g+"Prototype")||f(a,y,{}),f(a[y],b,h),t.real&&_&&(e||!_[b])&&f(_,b,h)))}},1175:(t,r,e)=>{"use strict";var n=e(9846);t.exports=n&&!Symbol.sham&&"symbol"==typeof Symbol.iterator},1176:t=>{"use strict";var r=Math.ceil,e=Math.floor;t.exports=Math.trunc||function(t){var n=+t;return(n>0?e:r)(n)}},1505:(t,r,e)=>{"use strict";var n=e(8828);t.exports=!n(function(){var t=function(){}.bind();return"function"!=typeof t||t.hasOwnProperty("prototype")})},1626:(t,r,e)=>{"use strict";var n=e(9447),o=e(4284),i=e(5817);t.exports=n?function(t,r,e){return o.f(t,r,i(1,e))}:function(t,r,e){return t[r]=e,t}},1747:(t,r,e)=>{"use strict";var n=e(5951),o=e(2046);t.exports=function(t,r){var e=o[t+"Prototype"],i=e&&e[r];if(i)return i;var s=n[t],c=s&&s.prototype;return c&&c[r]}},1793:(t,r,e)=>{"use strict";var n=e(5807);t.exports=Array.isArray||function(t){return"Array"===n(t)}},1907:(t,r,e)=>{"use strict";var n=e(1505),o=Function.prototype,i=o.call,s=n&&o.bind.bind(i,i);t.exports=n?s:function(t){return function(){return i.apply(t,arguments)}}},1969:(t,r,e)=>{"use strict";var n=e(2092);t.exports=n},2046:t=>{"use strict";t.exports={}},2092:(t,r,e)=>{"use strict";e(5650);var n=e(1747);t.exports=n("Array","forEach")},2159:(t,r,e)=>{"use strict";var n=e(2250),o=e(4640),i=TypeError;t.exports=function(t){if(n(t))return t;throw new i(o(t)+" is not a function")}},2250:t=>{"use strict";var r="object"==typeof document&&document.all;t.exports=void 0===r&&void 0!==r?function(t){return"function"==typeof t||t===r}:function(t){return"function"==typeof t}},2361:(t,r,e)=>{"use strict";var n=e(5807),o=e(1907);t.exports=function(t){if("Function"===n(t))return o(t)}},2532:(t,r,e)=>{"use strict";var n=e(5951),o=Object.defineProperty;t.exports=function(t,r){try{o(n,t,{value:r,configurable:!0,writable:!0})}catch(e){n[t]=r}return r}},2574:(t,r)=>{"use strict";var e={}.propertyIsEnumerable,n=Object.getOwnPropertyDescriptor,o=n&&!e.call({1:2},1);r.f=o?function(t){var r=n(this,t);return!!r&&r.enumerable}:e},2623:(t,r,e)=>{"use strict";var n={};n[e(6264)("toStringTag")]="z",t.exports="[object z]"===String(n)},2647:(t,r,e)=>{"use strict";var n=e(1907),o=e(2250),i=e(6128),s=n(Function.toString);o(i.inspectSource)||(i.inspectSource=function(t){return s(t)}),t.exports=i.inspectSource},2914:(t,r,e)=>{"use strict";var n=e(726).forEach,o=e(7623)("forEach");t.exports=o?[].forEach:function(t){return n(this,t,arguments.length>1?arguments[1]:void 0)}},3121:(t,r,e)=>{"use strict";var n=e(5482),o=Math.min;t.exports=function(t){var r=n(t);return r>0?o(r,9007199254740991):0}},3648:(t,r,e)=>{"use strict";var n=e(9447),o=e(8828),i=e(9552);t.exports=!n&&!o(function(){return 7!==Object.defineProperty(i("div"),"a",{get:function(){return 7}}).a})},3846:(t,r,e)=>{"use strict";var n=e(9447),o=e(3930),i=e(2574),s=e(5817),c=e(7374),u=e(470),a=e(9724),p=e(3648),f=Object.getOwnPropertyDescriptor;r.f=n?f:function(t,r){if(t=c(t),r=u(r),p)try{return f(t,r)}catch(t){}if(a(t,r))return s(!o(i.f,t,r),t[r])}},3930:(t,r,e)=>{"use strict";var n=e(1505),o=Function.prototype.call;t.exports=n?o.bind(o):function(){return o.apply(o,arguments)}},3948:(t,r,e)=>{"use strict";var n=e(2623),o=e(2250),i=e(5807),s=e(6264)("toStringTag"),c=Object,u="Arguments"===i(function(){return arguments}());t.exports=n?i:function(t){var r,e,n;return void 0===t?"Undefined":null===t?"Null":"string"==typeof(e=function(t,r){try{return t[r]}catch(t){}}(r=c(t),s))?e:u?i(r):"Object"===(n=i(r))&&o(r.callee)?"Arguments":n}},4010:(t,r,e)=>{"use strict";var n=e(1793),o=e(5468),i=e(6285),s=e(6264)("species"),c=Array;t.exports=function(t){var r;return n(t)&&(r=t.constructor,(o(r)&&(r===c||n(r.prototype))||i(r)&&null===(r=r[s]))&&(r=void 0)),void 0===r?c:r}},4239:(t,r,e)=>{"use strict";var n=e(7136),o=TypeError;t.exports=function(t){if(n(t))throw new o("Can't call method on "+t);return t}},4284:(t,r,e)=>{"use strict";var n=e(9447),o=e(3648),i=e(8661),s=e(6624),c=e(470),u=TypeError,a=Object.defineProperty,p=Object.getOwnPropertyDescriptor,f="enumerable",l="configurable",v="writable";r.f=n?i?function(t,r,e){if(s(t),r=c(r),s(e),"function"==typeof t&&"prototype"===r&&"value"in e&&v in e&&!e[v]){var n=p(t,r);n&&n[v]&&(t[r]=e.value,e={configurable:l in e?e[l]:n[l],enumerable:f in e?e[f]:n[f],writable:!1})}return a(t,r,e)}:a:function(t,r,e){if(s(t),r=c(r),s(e),o)try{return a(t,r,e)}catch(t){}if("get"in e||"set"in e)throw new u("Accessors not supported");return"value"in e&&(t[r]=e.value),t}},4525:(t,r,e)=>{"use strict";var n=e(3948),o=e(9724),i=e(8280),s=e(1969);e(237);var c=Array.prototype,u={DOMTokenList:!0,NodeList:!0};t.exports=function(t){var r=t.forEach;return t===c||i(c,t)&&r===c.forEach||o(u,n(t))?s:r}},4640:t=>{"use strict";var r=String;t.exports=function(t){try{return r(t)}catch(t){return"Object"}}},5468:(t,r,e)=>{"use strict";var n=e(1907),o=e(8828),i=e(2250),s=e(3948),c=e(5582),u=e(2647),a=function(){},p=c("Reflect","construct"),f=/^\s*(?:class|function)\b/,l=n(f.exec),v=!f.test(a),y=function(t){if(!i(t))return!1;try{return p(a,[],t),!0}catch(t){return!1}},b=function(t){if(!i(t))return!1;switch(s(t)){case"AsyncFunction":case"GeneratorFunction":case"AsyncGeneratorFunction":return!1}try{return v||!!l(f,u(t))}catch(t){return!0}};b.sham=!0,t.exports=!p||o(function(){var t;return y(y.call)||!y(Object)||!y(function(){t=!0})||t})?b:y},5482:(t,r,e)=>{"use strict";var n=e(1176);t.exports=function(t){var r=+t;return r!=r||0===r?0:n(r)}},5582:(t,r,e)=>{"use strict";var n=e(2046),o=e(5951),i=e(2250),s=function(t){return i(t)?t:void 0};t.exports=function(t,r){return arguments.length<2?s(n[t])||s(o[t]):n[t]&&n[t][r]||o[t]&&o[t][r]}},5594:(t,r,e)=>{"use strict";var n=e(5582),o=e(2250),i=e(8280),s=e(1175),c=Object;t.exports=s?function(t){return"symbol"==typeof t}:function(t){var r=n("Symbol");return o(r)&&i(r.prototype,c(t))}},5650:(t,r,e)=>{"use strict";var n=e(1091),o=e(2914);n({target:"Array",proto:!0,forced:[].forEach!==o},{forEach:o})},5807:(t,r,e)=>{"use strict";var n=e(1907),o=n({}.toString),i=n("".slice);t.exports=function(t){return i(o(t),8,-1)}},5816:(t,r,e)=>{"use strict";var n=e(6128);t.exports=function(t,r){return n[t]||(n[t]=r||{})}},5817:t=>{"use strict";t.exports=function(t,r){return{enumerable:!(1&t),configurable:!(2&t),writable:!(4&t),value:r}}},5951:function(t,r,e){"use strict";var n=function(t){return t&&t.Math===Math&&t};t.exports=n("object"==typeof globalThis&&globalThis)||n("object"==typeof window&&window)||n("object"==typeof self&&self)||n("object"==typeof e.g&&e.g)||n("object"==typeof this&&this)||function(){return this}()||Function("return this")()},6024:(t,r,e)=>{"use strict";var n=e(1505),o=Function.prototype,i=o.apply,s=o.call;t.exports="object"==typeof Reflect&&Reflect.apply||(n?s.bind(i):function(){return s.apply(i,arguments)})},6028:(t,r,e)=>{"use strict";var n=e(3930),o=e(6285),i=e(5594),s=e(9367),c=e(581),u=e(6264),a=TypeError,p=u("toPrimitive");t.exports=function(t,r){if(!o(t)||i(t))return t;var e,u=s(t,p);if(u){if(void 0===r&&(r="default"),e=n(u,t,r),!o(e)||i(e))return e;throw new a("Can't convert object to primitive value")}return void 0===r&&(r="number"),c(t,r)}},6128:(t,r,e)=>{"use strict";var n=e(7376),o=e(5951),i=e(2532),s="__core-js_shared__",c=t.exports=o[s]||i(s,{});(c.versions||(c.versions=[])).push({version:"3.45.1",mode:n?"pure":"global",copyright:"© 2014-2025 Denis Pushkarev (zloirock.ru)",license:"https://github.com/zloirock/core-js/blob/v3.45.1/LICENSE",source:"https://github.com/zloirock/core-js"})},6226:(t,r,e)=>{t.exports=e(4525)},6264:(t,r,e)=>{"use strict";var n=e(5951),o=e(5816),i=e(9724),s=e(6499),c=e(9846),u=e(1175),a=n.Symbol,p=o("wks"),f=u?a.for||a:a&&a.withoutSetter||s;t.exports=function(t){return i(p,t)||(p[t]=c&&i(a,t)?a[t]:f("Symbol."+t)),p[t]}},6285:(t,r,e)=>{"use strict";var n=e(2250);t.exports=function(t){return"object"==typeof t?null!==t:n(t)}},6499:(t,r,e)=>{"use strict";var n=e(1907),o=0,i=Math.random(),s=n(1.1.toString);t.exports=function(t){return"Symbol("+(void 0===t?"":t)+")_"+s(++o+i,36)}},6624:(t,r,e)=>{"use strict";var n=e(6285),o=String,i=TypeError;t.exports=function(t){if(n(t))return t;throw new i(o(t)+" is not an object")}},6794:(t,r,e)=>{"use strict";var n=e(5951).navigator,o=n&&n.userAgent;t.exports=o?String(o):""},6946:(t,r,e)=>{"use strict";var n=e(1907),o=e(8828),i=e(5807),s=Object,c=n("".split);t.exports=o(function(){return!s("z").propertyIsEnumerable(0)})?function(t){return"String"===i(t)?c(t,""):s(t)}:s},6968:(t,r,e)=>{"use strict";var n=e(4010);t.exports=function(t,r){return new(n(t))(0===r?0:r)}},7136:t=>{"use strict";t.exports=function(t){return null==t}},7374:(t,r,e)=>{"use strict";var n=e(6946),o=e(4239);t.exports=function(t){return n(o(t))}},7376:t=>{"use strict";t.exports=!0},7463:(t,r,e)=>{"use strict";var n=e(8828),o=e(2250),i=/#|\.prototype\./,s=function(t,r){var e=u[c(t)];return e===p||e!==a&&(o(r)?n(r):!!r)},c=s.normalize=function(t){return String(t).replace(i,".").toLowerCase()},u=s.data={},a=s.NATIVE="N",p=s.POLYFILL="P";t.exports=s},7623:(t,r,e)=>{"use strict";var n=e(8828);t.exports=function(t,r){var e=[][t];return!!e&&n(function(){e.call(null,r||function(){return 1},1)})}},8280:(t,r,e)=>{"use strict";var n=e(1907);t.exports=n({}.isPrototypeOf)},8311:(t,r,e)=>{"use strict";var n=e(2361),o=e(2159),i=e(1505),s=n(n.bind);t.exports=function(t,r){return o(t),void 0===r?t:i?s(t,r):function(){return t.apply(r,arguments)}}},8661:(t,r,e)=>{"use strict";var n=e(9447),o=e(8828);t.exports=n&&o(function(){return 42!==Object.defineProperty(function(){},"prototype",{value:42,writable:!1}).prototype})},8828:t=>{"use strict";t.exports=function(t){try{return!!t()}catch(t){return!0}}},9298:(t,r,e)=>{"use strict";var n=e(4239),o=Object;t.exports=function(t){return o(n(t))}},9367:(t,r,e)=>{"use strict";var n=e(2159),o=e(7136);t.exports=function(t,r){var e=t[r];return o(e)?void 0:n(e)}},9447:(t,r,e)=>{"use strict";var n=e(8828);t.exports=!n(function(){return 7!==Object.defineProperty({},1,{get:function(){return 7}})[1]})},9552:(t,r,e)=>{"use strict";var n=e(5951),o=e(6285),i=n.document,s=o(i)&&o(i.createElement);t.exports=function(t){return s?i.createElement(t):{}}},9724:(t,r,e)=>{"use strict";var n=e(1907),o=e(9298),i=n({}.hasOwnProperty);t.exports=Object.hasOwn||function(t,r){return i(o(t),r)}},9846:(t,r,e)=>{"use strict";var n=e(798),o=e(8828),i=e(5951).String;t.exports=!!Object.getOwnPropertySymbols&&!o(function(){var t=Symbol("symbol detection");return!i(t)||!(Object(t)instanceof Symbol)||!Symbol.sham&&n&&n<41})}},r={};function e(n){var o=r[n];if(void 0!==o)return o.exports;var i=r[n]={exports:{}};return t[n].call(i.exports,i,i.exports,e),i.exports}e.n=t=>{var r=t&&t.__esModule?()=>t.default:()=>t;return e.d(r,{a:r}),r},e.d=(t,r)=>{for(var n in r)e.o(r,n)&&!e.o(t,n)&&Object.defineProperty(t,n,{enumerable:!0,get:r[n]})},e.g=function(){if("object"==typeof globalThis)return globalThis;try{return this||new Function("return this")()}catch(t){if("object"==typeof window)return window}}(),e.o=(t,r)=>Object.prototype.hasOwnProperty.call(t,r),(()=>{"use strict";var t=e(6226),r=e.n(t);const n=window.wp.commands,o=window.wp.data,i=window.wp.i18n,s="admin.php?page=wc-settings&tab=checkout&section=stripe";(()=>{var t;const e=(0,o.dispatch)(n.store);e&&"function"==typeof e.registerCommand&&r()(t=[{name:"woocommerce-gateway-stripe/settings",label:(0,i.__)("Stripe: Settings","woocommerce-gateway-stripe"),url:`${s}&panel=settings`},{name:"woocommerce-gateway-stripe/payment-methods",label:(0,i.__)("Stripe: Payment methods","woocommerce-gateway-stripe"),url:`${s}&panel=methods`},{name:"woocommerce-gateway-stripe/express-checkout",label:(0,i.__)("Stripe: Express Checkout","woocommerce-gateway-stripe"),url:`${s}&area=express_checkout`},{name:"woocommerce-gateway-stripe/amazon-pay",label:(0,i.__)("Stripe: Amazon Pay","woocommerce-gateway-stripe"),url:`${s}&area=amazon_pay`}]).call(t,({name:t,label:r,url:n})=>{e.registerCommand({name:t,label:r,category:"view",callback:({close:t})=>{window.location.href=n,t()}})})})()})()})();