1 line
6 KiB
JavaScript
1 line
6 KiB
JavaScript
|
(()=>{"use strict";var e={d:(o,t)=>{for(var r in t)e.o(t,r)&&!e.o(o,r)&&Object.defineProperty(o,r,{enumerable:!0,get:t[r]})},o:(e,o)=>Object.prototype.hasOwnProperty.call(e,o),r:e=>{"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(e,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(e,"__esModule",{value:!0})}},o={};e.r(o),e.d(o,{ADMIN_URL:()=>a,COUNTRIES:()=>i,CURRENCY:()=>s,CURRENT_USER_IS_ADMIN:()=>c,HOME_URL:()=>l,LOCALE:()=>d,ORDER_STATUSES:()=>u,PLACEHOLDER_IMG_SRC:()=>p,SITE_TITLE:()=>_,STORE_PAGES:()=>g,WC_ASSET_URL:()=>b,WC_VERSION:()=>m,WP_LOGIN_URL:()=>w,WP_VERSION:()=>y,allSettings:()=>n,defaultAddressFields:()=>S,getAdminLink:()=>q,getPaymentMethodData:()=>N,getSetting:()=>T,getSettingWithCoercion:()=>O,isWcVersion:()=>M,isWpVersion:()=>z}),(0,window.wp.hooks.addFilter)("woocommerce_admin_analytics_settings","woocommerce-blocks/exclude-draft-status-from-analytics",(e=>{const o=e=>"customStatuses"===e.key?{...e,options:e.options.filter((e=>"checkout-draft"!==e.value))}:e,t=e.woocommerce_actionable_order_statuses.options.map(o),r=e.woocommerce_excluded_report_order_statuses.options.map(o);return{...e,woocommerce_actionable_order_statuses:{...e.woocommerce_actionable_order_statuses,options:t},woocommerce_excluded_report_order_statuses:{...e.woocommerce_excluded_report_order_statuses,options:r}}}));const t={adminUrl:"",countries:[],currency:{code:"USD",precision:2,symbol:"$",symbolPosition:"left",decimalSeparator:".",priceFormat:"%1$s%2$s",thousandSeparator:","},currentUserId:0,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:""},r="object"==typeof window.wcSettings?window.wcSettings:{},n={...t,...r};n.currency={...t.currency,...n.currency},n.locale={...t.locale,...n.locale};const a=n.adminUrl,i=n.countries,s=n.currency,c=n.currentUserIsAdmin,l=n.homeUrl,d=n.locale,u=n.orderStatuses,p=n.placeholderImgSrc,_=n.siteTitle,g=n.storePages,b=n.wcAssetUrl,m=n.wcVersion,w=n.wpLoginUrl,y=n.wpVersion,h=window.wp.i18n,S={first_name:{label:(0,h.__)("First name","woocommerce"),optionalLabel:(0,h.__)("First name (optional)","woocommerce"),autocomplete:"given-name",autocapitalize:"sentences",required:!0,hidden:!1,index:10},last_name:{label:(0,h.__)("Last name","woocommerce"),optionalLabel:(0,h.__)("Last name (optional)","woocommerce"),autocomplete:"family-name",autocapitalize:"sentences",required:!0,hidden:!1,index:20},company:{label:(0,h.__)("Company","woocommerce"),optionalLabel:(0,h.__)("Company (optional)","woocommerce"),autocomplete:"organization",autocapitalize:"sentences",required:!1,hidden:!1,index:30},address_1:{label:(0,h.__)("Address","woocommerce"),optionalLabel:(0,h.__)("Address (optional)","woocommerce"),autocomplete:"address-line1",autocapitalize:"sentences",required:!0,hidden:!1,index:40},address_2:{label:(0,h.__)("Apartment, suite, etc.","woocommerce"),optionalLabel:(0,h.__)("Apartment, suite, etc. (optional)","woocommerce"),autocomplete:"address-line2",autocapitalize:"sentences",required:!1,hidden:!1,index:50},country:{label:(0,h.__)("Country/Region","woocommerce"),optionalLabel:(0,h.__)("Country/Region (optional)","woocommerce"),autocomplete:"country",required:!0,hidden:!1,index:60},city:{label:(0,h.__)("City","woocommerce"),optionalLabel:(0,h.__)("City (optional)","woocommerce"),autocomplete:"address-level2",autocapitalize:"sentences",required:!0,hidden:!1,index:70},state:{label:(0,h.__)("State/County","woocommerce"),optionalLabel:(0,h.__)("State/County (optional)","woocommerce"),autocomplete:"address-level1",autocapitalize:"sentences",required:!0,hidden:!1,index:80},postcode:{label:(0,h.__)("Postal code","woocommerce"),optionalLabel:(0,h.__)("Postal code (optional)","woocommerce"),autocomplete:"postal-code",autocapitalize:"characters",required:!0,hidden:!1,index:90},phone:{label:(0,h.__)("Phone","woocommerce"),optionalLabel:(0,h.__)("Phone (optional)","woocommerce"),autocomple
|