1 line
9.1 KiB
JavaScript
1 line
9.1 KiB
JavaScript
this.wc=this.wc||{},this.wc.wcSettings=function(e){var t={};function r(o){if(t[o])return t[o].exports;var n=t[o]={i:o,l:!1,exports:{}};return e[o].call(n.exports,n,n.exports,r),n.l=!0,n.exports}return r.m=e,r.c=t,r.d=function(e,t,o){r.o(e,t)||Object.defineProperty(e,t,{enumerable:!0,get:o})},r.r=function(e){"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(e,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(e,"__esModule",{value:!0})},r.t=function(e,t){if(1&t&&(e=r(e)),8&t)return e;if(4&t&&"object"==typeof e&&e&&e.__esModule)return e;var o=Object.create(null);if(r.r(o),Object.defineProperty(o,"default",{enumerable:!0,value:e}),2&t&&"string"!=typeof e)for(var n in e)r.d(o,n,function(t){return e[t]}.bind(null,n));return o},r.n=function(e){var t=e&&e.__esModule?function(){return e.default}:function(){return e};return r.d(t,"a",t),t},r.o=function(e,t){return Object.prototype.hasOwnProperty.call(e,t)},r.p="",r(r.s=163)}({1:function(e,t){e.exports=function(e,t,r){return t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e},e.exports.default=e.exports,e.exports.__esModule=!0},163:function(e,t,r){"use strict";r.r(t),r.d(t,"ADMIN_URL",(function(){return b})),r.d(t,"COUNTRIES",(function(){return g})),r.d(t,"CURRENCY",(function(){return _})),r.d(t,"CURRENT_USER_IS_ADMIN",(function(){return m})),r.d(t,"HOME_URL",(function(){return y})),r.d(t,"LOCALE",(function(){return w})),r.d(t,"ORDER_STATUSES",(function(){return O})),r.d(t,"PLACEHOLDER_IMG_SRC",(function(){return v})),r.d(t,"SITE_TITLE",(function(){return h})),r.d(t,"STORE_PAGES",(function(){return j})),r.d(t,"WC_ASSET_URL",(function(){return x})),r.d(t,"WC_VERSION",(function(){return S})),r.d(t,"WP_LOGIN_URL",(function(){return P})),r.d(t,"WP_VERSION",(function(){return k})),r.d(t,"defaultAddressFields",(function(){return L})),r.d(t,"getSetting",(function(){return R})),r.d(t,"isWpVersion",(function(){return T})),r.d(t,"isWcVersion",(function(){return C})),r.d(t,"getAdminLink",(function(){return M}));var o=r(1),n=r.n(o),i=r(40);function c(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var o=Object.getOwnPropertySymbols(e);t&&(o=o.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),r.push.apply(r,o)}return r}function u(e){for(var t=1;t<arguments.length;t++){var r=null!=arguments[t]?arguments[t]:{};t%2?c(Object(r),!0).forEach((function(t){n()(e,t,r[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):c(Object(r)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(r,t))}))}return e}Object(i.addFilter)("woocommerce_admin_analytics_settings","woocommerce-blocks/exclude-draft-status-from-analytics",(function(e){var t=function(e){return"customStatuses"===e.key?u(u({},e),{},{options:e.options.filter((function(e){return"checkout-draft"!==e.value}))}):e},r=e.woocommerce_actionable_order_statuses.options.map(t),o=e.woocommerce_excluded_report_order_statuses.options.map(t);return u(u({},e),{},{woocommerce_actionable_order_statuses:u(u({},e.woocommerce_actionable_order_statuses),{},{options:r}),woocommerce_excluded_report_order_statuses:u(u({},e.woocommerce_excluded_report_order_statuses),{},{options:o})})}));var a=r(6);function s(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var o=Object.getOwnPropertySymbols(e);t&&(o=o.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),r.push.apply(r,o)}return r}function l(e){for(var t=1;t<arguments.length;t++){var r=null!=arguments[t]?arguments[t]:{};t%2?s(Object(r),!0).forEach((function(t){n()(e,t,r[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):s(Object(r)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(r,t))}))}return e}var d={adminUrl:"",countries:[],currency:{code:"USD",precision:2,symbol:"$",symbolPosition:"left",decimalSeparator:".",priceFormat:"%1$s%2$s",thousandSeparator:","},currentUserIsAdmin:!1,homeUrl:"",locale:{siteLocale:"en_US",userLocale:"en_US",weekdaysShort:["Sun","Mon","Tue","Wed","Thu","Fri","Sat"]},orderStatuses:[],placeholderImgSrc:"",siteTitle:"",storePages:[],wcAssetUrl:"",wcVersion:"",wpLoginUrl:"",wpVersion:""},p="object"===r.n(a)()(window.wcSettings)?window.wcSettings:{},f=l(l({},d),p);f.currency=l(l({},d.currency),f.currency),f.locale=l(l({},d.locale),f.locale);var b=f.adminUrl,g=f.countries,_=f.currency,m=f.currentUserIsAdmin,y=f.homeUrl,w=f.locale,O=f.orderStatuses,v=f.placeholderImgSrc,h=f.siteTitle,j=f.storePages,x=f.wcAssetUrl,S=f.wcVersion,P=f.wpLoginUrl,k=f.wpVersion,E=r(2),L={first_name:{label:Object(E.__)("First name",'woocommerce'),optionalLabel:Object(E.__)("First name (optional)",'woocommerce'),autocomplete:"given-name",autocapitalize:"sentences",required:!0,hidden:!1,index:10},last_name:{label:Object(E.__)("Last name",'woocommerce'),optionalLabel:Object(E.__)("Last name (optional)",'woocommerce'),autocomplete:"family-name",autocapitalize:"sentences",required:!0,hidden:!1,index:20},company:{label:Object(E.__)("Company",'woocommerce'),optionalLabel:Object(E.__)("Company (optional)",'woocommerce'),autocomplete:"organization",autocapitalize:"sentences",required:!1,hidden:!1,index:30},address_1:{label:Object(E.__)("Address",'woocommerce'),optionalLabel:Object(E.__)("Address (optional)",'woocommerce'),autocomplete:"address-line1",autocapitalize:"sentences",required:!0,hidden:!1,index:40},address_2:{label:Object(E.__)("Apartment, suite, etc.",'woocommerce'),optionalLabel:Object(E.__)("Apartment, suite, etc. (optional)",'woocommerce'),autocomplete:"address-line2",autocapitalize:"sentences",required:!1,hidden:!1,index:50},country:{label:Object(E.__)("Country/Region",'woocommerce'),optionalLabel:Object(E.__)("Country/Region (optional)",'woocommerce'),autocomplete:"country",required:!0,hidden:!1,index:60},city:{label:Object(E.__)("City",'woocommerce'),optionalLabel:Object(E.__)("City (optional)",'woocommerce'),autocomplete:"address-level2",autocapitalize:"sentences",required:!0,hidden:!1,index:70},state:{label:Object(E.__)("State/County",'woocommerce'),optionalLabel:Object(E.__)("State/County (optional)",'woocommerce'),autocomplete:"address-level1",autocapitalize:"sentences",required:!0,hidden:!1,index:80},postcode:{label:Object(E.__)("Postal code",'woocommerce'),optionalLabel:Object(E.__)("Postal code (optional)",'woocommerce'),autocomplete:"postal-code",autocapitalize:"characters",required:!0,hidden:!1,index:90}},U=r(41),I=r.n(U),R=function(e){var t=arguments.length>1&&void 0!==arguments[1]&&arguments[1],r=arguments.length>2&&void 0!==arguments[2]?arguments[2]:function(e,t){return void 0!==e?e:t},o=e in f?f[e]:t;return r(o,t)},A=function(e,t,r){var o=R(e,"").replace(/-[a-zA-Z0-9]*[\-]*/,".0-rc.");return o=o.endsWith(".")?o.substring(0,o.length-1):o,I.a.compare(o,t,r)},T=function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"=";return A("wpVersion",e,t)},C=function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"=";return A("wcVersion",e,t)},M=function(e){return R("adminUrl")+e}},2:function(e,t){e.exports=window.wp.i18n},40:function(e,t){e.exports=window.wp.hooks},41:function(e,t,r){var o,n;void 0===(n="function"==typeof(o=function(){var e=/^v?(?:\d+)(\.(?:[x*]|\d+)(\.(?:[x*]|\d+)(\.(?:[x*]|\d+))?(?:-[\da-z\-]+(?:\.[\da-z\-]+)*)?(?:\+[\da-z\-]+(?:\.[\da-z\-]+)*)?)?)?$/i;function t(e){var t,r=e.replace(/^v/,"").replace(/\+.*$/,""),o=("-",-1===(t=r).indexOf("-")?t.length:t.indexOf("-")),n=r.substring(0,o).split(".");return n.push(r.substring(o+1)),n}function r(e){return isNaN(Number(e))?e:Number(e)}function o(t){if("string"!=typeof t)throw new TypeError("Invalid argument expected string");if(!e.test(t))throw new Error("Invalid argument not valid semver ('"+t+"' received)")}function n(e,n){[e,n].forEach(o);for(var i=t(e),c=t(n),u=0;u<Math.max(i.length-1,c.length-1);u++){var a=parseInt(i[u]||0,10),s=parseInt(c[u]||0,10);if(a>s)return 1;if(s>a)return-1}var l=i[i.length-1],d=c[c.length-1];if(l&&d){var p=l.split(".").map(r),f=d.split(".").map(r);for(u=0;u<Math.max(p.length,f.length);u++){if(void 0===p[u]||"string"==typeof f[u]&&"number"==typeof p[u])return-1;if(void 0===f[u]||"string"==typeof p[u]&&"number"==typeof f[u])return 1;if(p[u]>f[u])return 1;if(f[u]>p[u])return-1}}else if(l||d)return l?-1:1;return 0}var i=[">",">=","=","<","<="],c={">":[1],">=":[0,1],"=":[0],"<=":[-1,0],"<":[-1]};return n.validate=function(t){return"string"==typeof t&&e.test(t)},n.compare=function(e,t,r){!function(e){if("string"!=typeof e)throw new TypeError("Invalid operator type, expected string but got "+typeof e);if(-1===i.indexOf(e))throw new TypeError("Invalid operator, expected one of "+i.join("|"))}(r);var o=n(e,t);return c[r].indexOf(o)>-1},n})?o.apply(t,[]):o)||(e.exports=n)},6:function(e,t){function r(t){return"function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?(e.exports=r=function(e){return typeof e},e.exports.default=e.exports,e.exports.__esModule=!0):(e.exports=r=function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},e.exports.default=e.exports,e.exports.__esModule=!0),r(t)}e.exports=r,e.exports.default=e.exports,e.exports.__esModule=!0}}); |