woocommerce/packages/woocommerce-admin/dist/app/index.js

2 lines
145 KiB
JavaScript
Raw Normal View History

2021-12-10 12:03:04 +00:00
/*! For license information please see index.js.LICENSE.txt */
this.wc=this.wc||{},this.wc.app=function(e){function t(t){for(var n,r,i=t[0],a=t[1],c=0,s=[];c<i.length;c++)r=i[c],Object.prototype.hasOwnProperty.call(o,r)&&o[r]&&s.push(o[r][0]),o[r]=0;for(n in a)Object.prototype.hasOwnProperty.call(a,n)&&(e[n]=a[n]);for(u&&u(t);s.length;)s.shift()()}var n={},r={18:0},o={18:0};function i(e){var t=function(e){return a.p+"chunks/"+({4:"activity-panels-help",5:"activity-panels-inbox",6:"analytics-report",7:"analytics-report-categories",8:"analytics-report-coupons",9:"analytics-report-customers",10:"analytics-report-downloads",11:"analytics-report-orders",12:"analytics-report-products",13:"analytics-report-revenue",14:"analytics-report-stock",15:"analytics-report-taxes",16:"analytics-report-variations",17:"analytics-settings",24:"customizable-dashboard",25:"dashboard",26:"dashboard-charts",31:"homescreen",32:"leaderboards",34:"marketing-overview",45:"payment-recommendations",47:"profile-wizard",48:"shipping-recommendations",49:"store-alerts",50:"store-performance",51:"task-list",53:"wcpay-usage-modal"}[e]||e)+".js"}(e);return window.wcAdminAssets&&window.wcAdminAssets.version&&(t+="?ver="+window.wcAdminAssets.version),t}function a(t){if(n[t])return n[t].exports;var r=n[t]={i:t,l:!1,exports:{}};return e[t].call(r.exports,r,r.exports,a),r.l=!0,r.exports}a.e=function(e){var t=[];r[e]?t.push(r[e]):0!==r[e]&&{0:1,4:1,5:1,6:1,7:1,9:1,11:1,12:1,14:1,17:1,25:1,26:1,31:1,32:1,34:1,45:1,47:1,48:1,49:1,50:1,51:1}[e]&&t.push(r[e]=new Promise((function(t,n){for(var o="chunks/"+e+".style.css",i=a.p+o,c=document.getElementsByTagName("link"),s=0;s<c.length;s++){var l=(d=c[s]).getAttribute("data-href")||d.getAttribute("href");if("stylesheet"===d.rel&&(l===o||l===i))return t()}var u=document.getElementsByTagName("style");for(s=0;s<u.length;s++){var d;if((l=(d=u[s]).getAttribute("data-href"))===o||l===i)return t()}var m=document.createElement("link");m.rel="stylesheet",m.type="text/css",m.setAttribute("data-webpack",!0),m.onload=t,m.onerror=function(t){var o=t&&t.target&&t.target.src||i,a=new Error("Loading CSS chunk "+e+" failed.\n("+o+")");a.code="CSS_CHUNK_LOAD_FAILED",a.request=o,delete r[e],m.parentNode.removeChild(m),n(a)},m.href=i,window.wcAdminAssets&&window.wcAdminAssets.version&&(m.href+="?ver="+window.wcAdminAssets.version),document.getElementsByTagName("head")[0].appendChild(m)})).then((function(){r[e]=0})));var n=o[e];if(0!==n)if(n)t.push(n[2]);else{var c=new Promise((function(t,r){n=o[e]=[t,r]}));t.push(n[2]=c);var s,l=document.createElement("script");l.charset="utf-8",l.timeout=120,a.nc&&l.setAttribute("nonce",a.nc),l.src=i(e);var u=new Error;s=function(t){l.onerror=l.onload=null,clearTimeout(d);var n=o[e];if(0!==n){if(n){var r=t&&("load"===t.type?"missing":t.type),i=t&&t.target&&t.target.src;u.message="Loading chunk "+e+" failed.\n("+r+": "+i+")",u.name="ChunkLoadError",u.type=r,u.request=i,n[1](u)}o[e]=void 0}};var d=setTimeout((function(){s({type:"timeout",target:l})}),12e4);l.onerror=l.onload=s,document.head.appendChild(l)}return Promise.all(t)},a.m=e,a.c=n,a.d=function(e,t,n){a.o(e,t)||Object.defineProperty(e,t,{enumerable:!0,get:n})},a.r=function(e){"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(e,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(e,"__esModule",{value:!0})},a.t=function(e,t){if(1&t&&(e=a(e)),8&t)return e;if(4&t&&"object"==typeof e&&e&&e.__esModule)return e;var n=Object.create(null);if(a.r(n),Object.defineProperty(n,"default",{enumerable:!0,value:e}),2&t&&"string"!=typeof e)for(var r in e)a.d(n,r,function(t){return e[t]}.bind(null,r));return n},a.n=function(e){var t=e&&e.__esModule?function(){return e.default}:function(){return e};return a.d(t,"a",t),t},a.o=function(e,t){return Object.prototype.hasOwnProperty.call(e,t)},a.p="",a.oe=function(e){throw console.error(e),e};var c=window.__wcAdmin_webpackJsonp=window.__wcAdmin_webpackJsonp||[],s=c.push.bind(c);c.push=t,c=c.slice();for(var l=0;l<c.length;l++)t(c[l]);var u=s;return a(a.s=279)}({0:function(e,t){e.exports=window.wp.element},1:function(e,t,n){e.exports=n(47)()},10:function(e,t){e.exp