Version Description
4/28/2021 ==
- Fix: Disable the continue btn on OBW when requested are being made #6838
- Tweak: Revert WCPay international support for bundled package #6901
- Tweak: Store profiler - Changed MailPoet's title and description #6886
- Tweak: Update PayU logo #6829
=
Download this release
Release Info
Developer | joshuaflow |
Plugin | WooCommerce Admin |
Version | 2.2.2 |
Comparing to | |
See all releases |
Code changes from version 2.2.1 to 2.2.2
- dist/chunks/6.js +6 -63
- dist/chunks/6.min.js +1 -1
- dist/chunks/profile-wizard.js +3 -2
- dist/chunks/profile-wizard.min.js +1 -1
- languages/woocommerce-admin.pot +6 -9
- readme.txt +8 -1
- src/Composer/Package.php +1 -1
- src/FeaturePlugin.php +1 -1
- trunk/dist/app/index.js +14494 -0
dist/chunks/6.js
CHANGED
@@ -1106,70 +1106,13 @@ var mollie_MollieLogo = function MollieLogo() {
|
|
1106 |
var payu_india_PayUIndiaLogo = function PayUIndiaLogo() {
|
1107 |
return Object(external_wp_element_["createElement"])("svg", {
|
1108 |
xmlns: "http://www.w3.org/2000/svg",
|
1109 |
-
|
1110 |
-
|
1111 |
-
|
1112 |
-
transform: "matrix(1.3333333,0,0,-1.3333333,0,192.41333)"
|
1113 |
-
}, Object(external_wp_element_["createElement"])("g", {
|
1114 |
-
transform: "scale(0.1)",
|
1115 |
-
id: "g12"
|
1116 |
}, Object(external_wp_element_["createElement"])("path", {
|
1117 |
-
|
1118 |
-
|
1119 |
-
|
1120 |
-
fillRule: 'nonzero',
|
1121 |
-
stroke: 'none'
|
1122 |
-
},
|
1123 |
-
d: "m 2507.22,898.414 c -18.79,0 -34.01,15.234 -34,34.024 l 0.05,150.352 h -12.54 c -77.78,0 -106.71,-12.83 -106.71,-83.685 V 833.316 c -0.01,-0.351 -0.05,-0.703 -0.05,-1.054 v -36.34 c -0.02,-1.258 -0.1,-2.43 -0.1,-3.731 V 560.543 c 0,-28.293 -5.45,-50.82 -16.7,-68.32 -21.21,-32.676 -63.2,-47.532 -130.38,-47.618 -67.15,0.086 -109.13,14.93 -130.34,47.579 -11.28,17.507 -16.74,40.046 -16.74,68.359 v 231.648 c 0,1.301 -0.07,2.473 -0.09,3.731 v 36.34 c 0,0.351 -0.04,0.703 -0.05,1.054 v 165.789 c 0,70.855 -28.93,83.685 -106.71,83.685 h -24.49 c -77.79,0 -106.71,-12.83 -106.71,-83.685 V 832.262 656.723 560.543 c 0,-70.547 15.91,-130.281 46.65,-178.434 59.37,-93.3 174.38,-142.988 337.88,-142.988 0.2,0 0.4,0.008 0.6,0.008 0.21,0 0.4,-0.008 0.61,-0.008 163.5,0 278.51,49.688 337.88,142.988 30.74,48.153 46.65,107.887 46.65,178.434 v 96.18 175.539 66.121 l -84.71,0.031"
|
1124 |
-
}), Object(external_wp_element_["createElement"])("path", {
|
1125 |
-
style: {
|
1126 |
-
fill: '#90cc23',
|
1127 |
-
fillOpacity: 1,
|
1128 |
-
fillRule: 'nonzero',
|
1129 |
-
stroke: 'none'
|
1130 |
-
},
|
1131 |
-
d: "m 2866.82,1140.67 -127.94,0.05 c -13.95,0 -25.26,11.32 -25.25,25.27 l 0.04,129.52 c 0.01,13.96 11.33,25.27 25.28,25.27 l 127.93,-0.05 c 13.96,0 25.27,-11.32 25.27,-25.28 l -0.05,-129.52 c 0,-13.95 -11.32,-25.26 -25.28,-25.26"
|
1132 |
-
}), Object(external_wp_element_["createElement"])("path", {
|
1133 |
-
style: {
|
1134 |
-
fill: '#90cc23',
|
1135 |
-
fillOpacity: 1,
|
1136 |
-
fillRule: 'nonzero',
|
1137 |
-
stroke: 'none'
|
1138 |
-
},
|
1139 |
-
d: "m 2696.34,1320.76 -86.89,0.03 c -9.48,0.01 -17.16,7.69 -17.16,17.16 l 0.03,87.97 c 0.01,9.49 7.7,17.16 17.17,17.16 l 86.89,-0.03 c 9.48,0 17.16,-7.69 17.16,-17.17 l -0.03,-87.97 c -0.01,-9.48 -7.69,-17.15 -17.17,-17.15"
|
1140 |
-
}), Object(external_wp_element_["createElement"])("path", {
|
1141 |
-
style: {
|
1142 |
-
fill: '#90cc23',
|
1143 |
-
fillOpacity: 1,
|
1144 |
-
fillRule: 'nonzero',
|
1145 |
-
stroke: 'none'
|
1146 |
-
},
|
1147 |
-
d: "m 496.59,815.961 c 0,-104.07 -26.574,-160.469 -166.75,-160.469 H 114.059 v 268.586 c 0,37.246 13.847,51.094 51.089,51.094 H 329.84 c 105.605,0 166.75,-26.055 166.75,-159.211 z M 329.84,1082.95 H 143.77 C 44.3438,1082.95 0.00390625,1038.6 0.00390625,939.164 V 300.512 C 0.00390625,262.102 12.332,249.77 50.7422,249.77 h 12.5742 c 38.4136,0 50.7426,12.332 50.7426,50.742 V 548.98 H 329.84 c 191.582,0 280.812,84.844 280.812,266.981 0,182.148 -89.23,266.989 -280.812,266.989"
|
1148 |
-
}), Object(external_wp_element_["createElement"])("path", {
|
1149 |
-
style: {
|
1150 |
-
fill: '#90cc23',
|
1151 |
-
fillOpacity: 1,
|
1152 |
-
fillRule: 'nonzero',
|
1153 |
-
stroke: 'none'
|
1154 |
-
},
|
1155 |
-
d: "m 1012.01,536.82 v -87.547 c 0,-71.375 -26.455,-112.695 -161.721,-112.695 -89.359,0 -132.801,32.344 -132.801,98.863 0,72.954 43.578,101.379 155.434,101.379 z M 850.289,899.801 c -73.738,0 -119.949,-9.25 -137.476,-12.754 -31.036,-6.75 -44.012,-15.266 -44.012,-50.559 V 826.43 c 0,-13.828 2.047,-23.407 6.441,-30.145 5.113,-7.851 13.348,-11.836 24.488,-11.836 5.434,0 11.727,0.918 19.243,2.793 17.722,4.434 74.379,13.594 136.347,13.594 111.297,0 156.69,-30.832 156.69,-106.406 V 626.988 H 871.66 c -180.422,0 -264.461,-60.859 -264.461,-191.547 0,-126.761 86.778,-196.57 244.352,-196.57 187.249,0 270.749,63.719 270.749,206.633 V 694.43 c 0,138.191 -88.97,205.371 -272.011,205.371"
|
1156 |
-
}), Object(external_wp_element_["createElement"])("path", {
|
1157 |
-
style: {
|
1158 |
-
fill: '#90cc23',
|
1159 |
-
fillOpacity: 1,
|
1160 |
-
fillRule: 'nonzero',
|
1161 |
-
stroke: 'none'
|
1162 |
-
},
|
1163 |
-
d: "m 1739.43,870.035 c -7.95,9.981 -22.98,11.356 -38.05,11.356 h -11.3 c -37.55,0 -52.28,-11.582 -60.59,-47.606 L 1525.15,400.078 c -13.02,-53.297 -31.32,-63.039 -62.63,-63.039 -38.34,0 -53.69,9.152 -68.97,63.25 l -118.18,433.699 c -9.78,36.328 -24.21,47.403 -61.77,47.403 h -10.06 c -15.16,0 -30.26,-1.395 -38.01,-11.504 -7.76,-10.125 -5.14,-25.235 -1.14,-40.086 L 1283.82,392.34 c 22.4,-83.719 49.03,-153.02 148.53,-153.02 18.57,0 35.75,2.578 50.04,7.399 -30.18,-94.91 -60.88,-136.77 -151.41,-146.071 -18.37,-1.5269 -30.31,-4.1597 -36.96,-13.0777 -6.91,-9.25 -5.34,-22.5 -2.87,-34.332 l 2.49,-11.2188 C 1299.04,16.0781 1308.25,0 1337.37,0 c 3.06,0 6.35,0.160156 9.88,0.460938 C 1482.43,9.30859 1554.86,82.0898 1597.24,251.66 l 144.62,578.453 c 3.43,14.844 5.5,29.95 -2.43,39.922"
|
1164 |
-
}), Object(external_wp_element_["createElement"])("path", {
|
1165 |
-
style: {
|
1166 |
-
fill: '#90cc23',
|
1167 |
-
fillOpacity: 1,
|
1168 |
-
fillRule: 'nonzero',
|
1169 |
-
stroke: 'none'
|
1170 |
-
},
|
1171 |
-
d: "m 2679.57,1140.78 -172.26,0.06 c -18.79,0 -34.02,-15.23 -34.03,-34.02 l -0.01,-24.03 h 11.95 c 77.78,0 106.71,-12.83 106.71,-83.685 V 898.383 l 87.55,-0.028 c 18.79,-0.011 34.02,15.215 34.03,34.004 l 0.06,174.381 c 0,18.79 -15.22,34.03 -34,34.04"
|
1172 |
-
}))));
|
1173 |
};
|
1174 |
// EXTERNAL MODULE: ./node_modules/core-js/modules/es.string.match.js
|
1175 |
var es_string_match = __webpack_require__(203);
|
1106 |
var payu_india_PayUIndiaLogo = function PayUIndiaLogo() {
|
1107 |
return Object(external_wp_element_["createElement"])("svg", {
|
1108 |
xmlns: "http://www.w3.org/2000/svg",
|
1109 |
+
width: "1333.333",
|
1110 |
+
version: "1",
|
1111 |
+
viewBox: "0 0 1000 1000"
|
|
|
|
|
|
|
|
|
1112 |
}, Object(external_wp_element_["createElement"])("path", {
|
1113 |
+
d: "M8987 7472c-15-16-17-45-17-194 0-157 2-177 18-191s44-17 189-17c152 0 172 2 186 18 15 16 17 45 17 194 0 157-2 177-18 191s-44 17-189 17c-152 0-172-2-186-18zM9413 7046l-28-24v-520l24-26 24-26h518l24 25 25 24v250c0 162-4 259-11 274-20 43-45 47-304 47-243 0-244 0-272-24zM8623 6435c-44-19-64-54-70-123l-6-59-106-6c-182-11-261-50-293-145-9-28-14-251-18-912l-5-875-29-62c-47-102-124-160-256-194-83-21-356-19-440 4-131 36-203 90-249 187l-26 55-5 875c-5 669-9 884-19 913-20 62-75 115-140 135-82 25-431 25-513-1-70-21-110-54-134-109-18-41-19-90-22-888-2-567 1-877 8-942 45-397 254-684 606-832 100-41 240-81 369-103 156-27 570-24 725 5 224 41 398 107 541 202 92 62 216 193 273 288 27 45 64 126 82 179 61 180 64 217 64 936v647h165c128 0 173 3 195 15 61 31 60 27 60 398 0 377-2 386-65 413-49 20-645 20-692-1zM322 6230c-114-24-221-100-268-192-55-108-54-73-54-1379V3453l23-34c29-44 72-58 172-58s143 14 172 58l23 34v935l473 5c379 4 489 8 557 21 374 72 570 244 656 573 36 135 45 410 20 562-64 379-252 580-626 667-65 15-141 18-590 20-283 1-534-2-558-6zm1107-388c75-27 103-44 154-91 88-82 127-217 127-438-1-343-95-479-370-529-56-10-188-13-513-14H389l3 503c3 457 5 505 21 534 35 64 26 63 512 60 429-2 442-3 504-25zM2665 5600c-114-13-234-38-274-58-62-31-76-61-76-167 0-79 3-98 21-121 32-43 65-49 163-30 175 33 251 40 441 40 272 0 384-28 473-121 62-63 78-123 84-309l6-162-369-5c-387-5-459-12-604-58-155-49-291-151-353-263-56-102-72-176-71-341 0-135 3-158 27-231 64-192 211-329 422-393 123-38 231-52 407-51 526 0 804 152 895 490 16 59 18 123 18 650v585l-23 75c-52 167-144 281-288 357-168 88-292 113-594 118-124 2-261 0-305-5zm832-1452c-7-243-17-288-83-358-49-52-106-81-211-106-89-22-373-25-453-5-198 49-277 155-268 355 3 80 8 99 34 146 50 87 142 139 289 160 27 4 196 8 374 9l324 1-6-202zM4073 5535c-46-20-67-57-59-105 9-57 420-1575 458-1690 42-130 91-221 152-283 64-64 123-94 228-115 68-13 95-14 171-4 50 6 93 10 95 8 7-7-80-211-113-266-37-61-97-122-155-157-48-29-155-60-232-68-130-14-162-36-160-115 2-84 30-166 69-200 32-28 38-30 121-30 98 0 228 26 318 63 229 93 393 294 499 613 53 161 565 2215 565 2269 0 50-21 80-64 91-14 3-70 4-125 2-116-4-142-16-179-89-14-27-95-348-212-837-104-437-198-812-209-835-37-83-92-117-188-117-113 0-163 31-204 126-9 23-106 367-214 765-245 906-247 910-285 943-17 14-47 30-68 36-52 14-171 12-209-5z",
|
1114 |
+
transform: "matrix(.1 0 0 -.1 0 1000)"
|
1115 |
+
}));
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1116 |
};
|
1117 |
// EXTERNAL MODULE: ./node_modules/core-js/modules/es.string.match.js
|
1118 |
var es_string_match = __webpack_require__(203);
|
dist/chunks/6.min.js
CHANGED
@@ -1 +1 @@
|
|
1 |
-
(window.__wcAdmin_webpackJsonp=window.__wcAdmin_webpackJsonp||[]).push([[6],{607:function(e,t,n){"use strict";n.d(t,"a",(function(){return r}));n(37),n(49),n(139);var c=n(26);function r(e){var t=Object(c.dispatch)("core/notices").createNotice;e.error_data&&e.errors&&Object.keys(e.errors).length?Object.keys(e.errors).forEach((function(n){t("error",e.errors[n].join(" "))})):e.message&&t(e.code?"error":"success",e.message)}},609:function(e,t,n){"use strict";n.r(t);var c=n(43),r=n.n(c),o=n(0),a=n(2),i=n(50),s=n(99),l=n.n(s),m=n(145),u=n(610);t.default=function(){var e="1"===Object(i.getQuery)()["wcpay-connection-success"],t=Object(o.useState)(e),n=r()(t,2),c=n[0],s=n[1];if(!c)return null;var p=function(){s(!1),Object(i.updateQueryString)({"wcpay-connection-success":void 0})},d=Object(a.__)("Help us build a better WooCommerce Payments experience","woocommerce-admin"),b=l()({mixedString:Object(a.__)("By agreeing to share non-sensitive {{link}}usage data{{/link}}, you’ll help us improve features and optimize the WooCommerce Payments experience. You can opt out at any time.","woocommerce-admin"),components:{link:Object(o.createElement)(m.Link,{href:"https://woocommerce.com/usage-tracking",target:"_blank",type:"external"})}});return Object(o.createElement)(u.a,{isDismissible:!1,title:d,message:b,acceptActionText:Object(a.__)("I agree","woocommerce-admin"),dismissActionText:Object(a.__)("No thanks","woocommerce-admin"),onContinue:p,onClose:p})}},610:function(e,t,n){"use strict";n(64);var c=n(16),r=n.n(c),o=n(134),a=n.n(o),i=n(22),s=n.n(i),l=n(23),m=n.n(l),u=n(24),p=n.n(u),d=n(25),b=n.n(d),f=n(14),_=n.n(f),h=n(0),y=n(2),g=n(65),O=n(26),w=n(99),j=n.n(w),k=n(4),v=n(145),C=n(59);function E(e){var t=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){}))),!0}catch(e){return!1}}();return function(){var n,c=_()(e);if(t){var r=_()(this).constructor;n=Reflect.construct(c,arguments,r)}else n=c.apply(this,arguments);return b()(this,n)}}var P=function(e){p()(c,e);var t,n=E(c);function c(e){var t;return s()(this,c),(t=n.call(this,e)).state={isLoadingScripts:!1,isRequestStarted:!1},t}return m()(c,[{key:"componentDidUpdate",value:(t=a()(r.a.mark((function e(t,n){var c,o,a,i,s,l,m,u,p,d;return r.a.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:if(c=this.props,o=c.hasErrors,a=c.isRequesting,i=c.onClose,s=c.onContinue,l=c.createNotice,m=this.state,u=m.isLoadingScripts,m.isRequestStarted){e.next=4;break}return e.abrupt("return");case 4:p=!a&&!u&&(t.isRequesting||n.isLoadingScripts)&&!o,d=!a&&t.isRequesting&&o,p&&(i(),s()),d&&(l("error",Object(y.__)("There was a problem updating your preferences","woocommerce-admin")),i());case 8:case"end":return e.stop()}}),e,this)}))),function(e,n){return t.apply(this,arguments)})},{key:"updateTracking",value:function(e){var t=this,n=e.allowTracking,c=this.props.updateOptions;n&&"function"==typeof window.wcTracks.enable?(this.setState({isLoadingScripts:!0}),window.wcTracks.enable((function(){t._isMounted&&t.setState({isLoadingScripts:!1})}))):n||(window.wcTracks.isEnabled=!1);var r=n?"yes":"no";this.setState({isRequestStarted:!0}),c({woocommerce_allow_tracking:r})}},{key:"componentDidMount",value:function(){this._isMounted=!0}},{key:"componentWillUnmount",value:function(){this._isMounted=!1}},{key:"render",value:function(){var e=this;if(this.props.allowTracking){var t=this.props,n=t.onClose,c=t.onContinue;return n(),c(),null}var r=this.props,o=r.isRequesting,a=r.title,i=void 0===a?Object(y.__)("Build a better WooCommerce","woocommerce-admin"):a,s=r.message,l=void 0===s?j()({mixedString:Object(y.__)("Get improved features and faster fixes by sharing non-sensitive data via {{link}}usage tracking{{/link}} that shows us how WooCommerce is used. No personal data is tracked or stored.","woocommerce-admin"),components:{link:Object(h.createElement)(v.Link,{href:"https://woocommerce.com/usage-tracking",target:"_blank",type:"external"})}}):s,m=r.dismissActionText,u=void 0===m?Object(y.__)("No thanks","woocommerce-admin"):m,p=r.acceptActionText,d=void 0===p?Object(y.__)("Yes, count me in!","woocommerce-admin"):p,b=this.state.isRequestStarted&&o;return Object(h.createElement)(k.Modal,{title:i,isDismissible:this.props.isDismissible,onRequestClose:function(){return e.props.onClose()},className:"woocommerce-usage-modal"},Object(h.createElement)("div",{className:"woocommerce-usage-modal__wrapper"},Object(h.createElement)("div",{className:"woocommerce-usage-modal__message"},l),Object(h.createElement)("div",{className:"woocommerce-usage-modal__actions"},Object(h.createElement)(k.Button,{isSecondary:!0,isBusy:b,onClick:function(){return e.updateTracking({allowTracking:!1})}},u),Object(h.createElement)(k.Button,{isPrimary:!0,isBusy:b,onClick:function(){return e.updateTracking({allowTracking:!0})}},d))))}}]),c}(h.Component);t.a=Object(g.compose)(Object(O.withSelect)((function(e){var t=e(C.OPTIONS_STORE_NAME),n=t.getOption,c=t.getOptionsUpdatingError,r=t.isOptionsUpdating;return{allowTracking:"yes"===n("woocommerce_allow_tracking"),isRequesting:Boolean(r()),hasErrors:Boolean(c())}})),Object(O.withDispatch)((function(e){return{createNotice:e("core/notices").createNotice,updateOptions:e(C.OPTIONS_STORE_NAME).updateOptions}})))(P)},615:function(e,t,n){"use strict";n.d(t,"d",(function(){return w})),n.d(t,"c",(function(){return P})),n.d(t,"a",(function(){return O})),n.d(t,"b",(function(){return c.default}));var c=n(609),r=(n(64),n(22)),o=n.n(r),a=n(23),i=n.n(a),s=n(24),l=n.n(s),m=n(25),u=n.n(m),p=n(14),d=n.n(p),b=n(2),f=n(0),_=n(26),h=n(50);function y(e){var t=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){}))),!0}catch(e){return!1}}();return function(){var n,c=d()(e);if(t){var r=d()(this).constructor;n=Reflect.construct(c,arguments,r)}else n=c.apply(this,arguments);return u()(this,n)}}var g=function(e){l()(n,e);var t=y(n);function n(){return o()(this,n),t.apply(this,arguments)}return i()(n,[{key:"componentDidMount",value:function(){var e=this.props,t=e.createNotice,n=e.markConfigured;Object(h.getQuery)()["wcpay-connection-success"]&&(t("success",Object(b.__)("WooCommerce Payments connected successfully.","woocommerce-admin")),n("wcpay",{"wcpay-connection-success":"1"}))}},{key:"render",value:function(){return null}}]),n}(f.Component),O=Object(_.withDispatch)((function(e){return{createNotice:e("core/notices").createNotice}}))(g);n(107);function w(e){var t=["US","PR"];return window.wcAdminFeatures&&window.wcAdminFeatures["wcpay/support-international-countries"]&&t.push("AU","CA","GB","IE","NZ"),t.includes(e)}var j=n(95),k=n.n(j),v=n(59),C=n(92),E=n(607);function P(e,t,n){var c=Object(b.__)("There was an error connecting to WooCommerce Payments. Please try again or connect later in store settings.","woocommerce-admin");n(["woocommerce-payments"]).then((function(){Object(C.recordEvent)("woocommerce_payments_install",{context:"tasklist"}),k()({path:v.WC_ADMIN_NAMESPACE+"/plugins/connect-wcpay",method:"POST"}).then((function(e){window.location=e.connectUrl})).catch((function(){t("error",c),e()}))})).catch((function(t){Object(E.a)(t),e()}))}},635:function(e,t,n){"use strict";n.d(t,"a",(function(){return Me}));n(37),n(53),n(60),n(49),n(61);var c=n(7),r=n.n(c),o=n(0),a=(n(107),n(140),n(41),n(2)),i=n(99),s=n.n(i),l=n(85),m=n(145),u=(n(64),n(80)),p=n.n(u),d=n(16),b=n.n(d),f=n(134),_=n.n(f),h=n(22),y=n.n(h),g=n(23),O=n.n(g),w=n(18),j=n.n(w),k=n(24),v=n.n(k),C=n(25),E=n.n(C),P=n(14),S=n.n(P),x=(n(66),n(4)),L=n(65),R=n(26),N=n(59);function A(e){var t=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){}))),!0}catch(e){return!1}}();return function(){var n,c=S()(e);if(t){var r=S()(this).constructor;n=Reflect.construct(c,arguments,r)}else n=c.apply(this,arguments);return E()(this,n)}}var T=function(e){v()(n,e);var t=A(n);function n(){var e;y()(this,n);for(var c=arguments.length,o=new Array(c),i=0;i<c;i++)o[i]=arguments[i];return e=t.call.apply(t,[this].concat(o)),r()(j()(e),"getInitialConfigValues",(function(){return{account_name:"",account_number:"",bank_name:"",sort_code:"",iban:"",bic:""}})),r()(j()(e),"validate",(function(e){var t={};return e.account_number||e.iban||(t.account_number=t.iban=Object(a.__)("Please enter an account number or IBAN","woocommerce-admin")),t})),r()(j()(e),"updateSettings",function(){var t=_()(b.a.mark((function t(n){var c,r,o,i;return b.a.wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return c=e.props,r=c.updateOptions,o=c.createNotice,i=c.markConfigured,t.next=3,r({woocommerce_bacs_settings:{enabled:"yes"},woocommerce_bacs_accounts:[n]});case 3:t.sent.success?(i("bacs"),o("success",Object(a.__)("Direct bank transfer details added successfully","woocommerce-admin"))):o("error",Object(a.__)("There was a problem saving your payment settings","woocommerce-admin"));case 5:case"end":return t.stop()}}),t)})));return function(e){return t.apply(this,arguments)}}()),e}return O()(n,[{key:"render",value:function(){var e=this.props.isOptionsRequesting;return Object(o.createElement)(m.Form,{initialValues:this.getInitialConfigValues(),onSubmitCallback:this.updateSettings,validate:this.validate},(function(t){var n=t.getInputProps,c=t.handleSubmit;return Object(o.createElement)(o.Fragment,null,Object(o.createElement)(m.H,null,Object(a.__)("Add your bank details","woocommerce-admin")),Object(o.createElement)("p",null,Object(a.__)("These details are required to receive payments via bank transfer","woocommerce-admin")),Object(o.createElement)("div",{className:"woocommerce-task-payment-method__fields"},Object(o.createElement)(m.TextControl,p()({label:Object(a.__)("Account name","woocommerce-admin"),required:!0},n("account_name"))),Object(o.createElement)(m.TextControl,p()({label:Object(a.__)("Account number","woocommerce-admin"),required:!0},n("account_number"))),Object(o.createElement)(m.TextControl,p()({label:Object(a.__)("Bank name","woocommerce-admin"),required:!0},n("bank_name"))),Object(o.createElement)(m.TextControl,p()({label:Object(a.__)("Sort code","woocommerce-admin"),required:!0},n("sort_code"))),Object(o.createElement)(m.TextControl,p()({label:Object(a.__)("IBAN","woocommerce-admin"),required:!0},n("iban"))),Object(o.createElement)(m.TextControl,p()({label:Object(a.__)("BIC / Swift","woocommerce-admin"),required:!0},n("bic")))),Object(o.createElement)(x.Button,{isPrimary:!0,isBusy:e,onClick:c},Object(a.__)("Save","woocommerce-admin")))}))}}]),n}(o.Component),M=Object(L.compose)(Object(R.withSelect)((function(e){return{isOptionsRequesting:(0,e(N.OPTIONS_STORE_NAME).isOptionsUpdating)()}})),Object(R.withDispatch)((function(e){return{createNotice:e("core/notices").createNotice,updateOptions:e(N.OPTIONS_STORE_NAME).updateOptions}})))(T),U=function(){return Object(o.createElement)("svg",{width:"96",height:"32",viewBox:"0 0 96 32",fill:"none",xmlns:"http://www.w3.org/2000/svg"},Object(o.createElement)("rect",{width:"32",height:"32",rx:"16",fill:"#8E9196"}),Object(o.createElement)("mask",{id:"bacs0","mask-type":"alpha",maskUnits:"userSpaceOnUse",x:"8",y:"8",width:"16",height:"16"},Object(o.createElement)("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M8.875 12.25L16 8.5L23.125 12.25V13.75H8.875V12.25ZM16 10.195L19.9075 12.25H12.0925L16 10.195ZM10.75 15.25H12.25V20.5H10.75V15.25ZM15.25 20.5V15.25H16.75V20.5H15.25ZM23.125 23.5V22H8.875V23.5H23.125ZM19.75 15.25H21.25V20.5H19.75V15.25Z",fill:"white"})),Object(o.createElement)("g",{mask:"url(#bacs0)"},Object(o.createElement)("rect",{x:"7",y:"7",width:"18",height:"18",fill:"white"})),Object(o.createElement)("mask",{id:"bacs1","mask-type":"alpha",maskUnits:"userSpaceOnUse",x:"39",y:"10",width:"18",height:"12"},Object(o.createElement)("path",{d:"M39 17L53.17 17L49.59 20.59L51 22L57 16L51 10L49.59 11.41L53.17 15L39 15L39 17Z",fill:"white"})),Object(o.createElement)("g",{mask:"url(#bacs1)"},Object(o.createElement)("rect",{x:"60",y:"28",width:"24",height:"24",transform:"rotate(-180 60 28)",fill:"#8E9196"})),Object(o.createElement)("rect",{x:"64",width:"32",height:"32",rx:"16",fill:"#8E9196"}),Object(o.createElement)("mask",{id:"bacs2","mask-type":"alpha",maskUnits:"userSpaceOnUse",x:"72",y:"8",width:"16",height:"16"},Object(o.createElement)("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M72.875 12.25L80 8.5L87.125 12.25V13.75H72.875V12.25ZM80 10.195L83.9075 12.25H76.0925L80 10.195ZM74.75 15.25H76.25V20.5H74.75V15.25ZM79.25 20.5V15.25H80.75V20.5H79.25ZM87.125 23.5V22H72.875V23.5H87.125ZM83.75 15.25H85.25V20.5H83.75V15.25Z",fill:"white"})),Object(o.createElement)("g",{mask:"url(#bacs2)"},Object(o.createElement)("rect",{x:"71",y:"7",width:"18",height:"18",fill:"white"})))},B=function(){return Object(o.createElement)("svg",{width:"96",height:"32",viewBox:"0 0 96 32",fill:"none",xmlns:"http://www.w3.org/2000/svg"},Object(o.createElement)("rect",{width:"32",height:"32",rx:"16",fill:"#8E9196"}),Object(o.createElement)("mask",{id:"cod-mask-0","mask-type":"alpha",maskUnits:"userSpaceOnUse",x:"7",y:"10",width:"18",height:"12"},Object(o.createElement)("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M22 13H19.75V10H9.25C8.425 10 7.75 10.675 7.75 11.5V19.75H9.25C9.25 20.995 10.255 22 11.5 22C12.745 22 13.75 20.995 13.75 19.75H18.25C18.25 20.995 19.255 22 20.5 22C21.745 22 22.75 20.995 22.75 19.75H24.25V16L22 13ZM21.625 14.125L23.095 16H19.75V14.125H21.625ZM10.75 19.75C10.75 20.1625 11.0875 20.5 11.5 20.5C11.9125 20.5 12.25 20.1625 12.25 19.75C12.25 19.3375 11.9125 19 11.5 19C11.0875 19 10.75 19.3375 10.75 19.75ZM13.165 18.25C12.7525 17.7925 12.1675 17.5 11.5 17.5C10.8325 17.5 10.2475 17.7925 9.835 18.25H9.25V11.5H18.25V18.25H13.165ZM19.75 19.75C19.75 20.1625 20.0875 20.5 20.5 20.5C20.9125 20.5 21.25 20.1625 21.25 19.75C21.25 19.3375 20.9125 19 20.5 19C20.0875 19 19.75 19.3375 19.75 19.75Z",fill:"white"})),Object(o.createElement)("g",{mask:"url(#cod-mask-0)"},Object(o.createElement)("rect",{x:"7",y:"7",width:"18",height:"18",fill:"white"})),Object(o.createElement)("mask",{id:"cod-mask-1","mask-type":"alpha",maskUnits:"userSpaceOnUse",x:"39",y:"10",width:"18",height:"12"},Object(o.createElement)("path",{d:"M39 17L53.17 17L49.59 20.59L51 22L57 16L51 10L49.59 11.41L53.17 15L39 15L39 17Z",fill:"white"})),Object(o.createElement)("g",{mask:"url(#cod-mask-1)"},Object(o.createElement)("rect",{x:"60",y:"28",width:"24",height:"24",transform:"rotate(-180 60 28)",fill:"#8E9196"})),Object(o.createElement)("rect",{x:"64",width:"32",height:"32",rx:"16",fill:"#8E9196"}),Object(o.createElement)("mask",{id:"cod-mask-2","mask-type":"alpha",maskUnits:"userSpaceOnUse",x:"76",y:"9",width:"8",height:"14"},Object(o.createElement)("path",{d:"M80.2926 15.175C78.5901 14.7325 78.0426 14.275 78.0426 13.5625C78.0426 12.745 78.8001 12.175 80.0676 12.175C81.4026 12.175 81.8976 12.8125 81.9426 13.75H83.6001C83.5476 12.46 82.7601 11.275 81.1926 10.8925V9.25H78.9426V10.87C77.4876 11.185 76.3176 12.13 76.3176 13.5775C76.3176 15.31 77.7501 16.1725 79.8426 16.675C81.7176 17.125 82.0926 17.785 82.0926 18.4825C82.0926 19 81.7251 19.825 80.0676 19.825C78.5226 19.825 77.9151 19.135 77.8326 18.25H76.1826C76.2726 19.8925 77.5026 20.815 78.9426 21.1225V22.75H81.1926V21.1375C82.6551 20.86 83.8176 20.0125 83.8176 18.475C83.8176 16.345 81.9951 15.6175 80.2926 15.175Z",fill:"white"})),Object(o.createElement)("g",{mask:"url(#cod-mask-2)"},Object(o.createElement)("rect",{x:"71",y:"7",width:"18",height:"18",fill:"white"})))},I=function(){return Object(o.createElement)("svg",{width:"100",height:"64",viewBox:"-10 0 120 64",fill:"none",xmlns:"http://www.w3.org/2000/svg"},Object(o.createElement)("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M9.78073 0.5H91.1787C96.3299 0.5 100.5 4.77335 100.5 10.0522V41.8929C100.5 47.1717 96.3299 51.4451 91.1787 51.4451H61.9883L65.9948 61.5L48.3742 51.4451H9.82161C4.67036 51.4451 0.500298 47.1717 0.500298 41.8929V10.0522C0.459415 4.81524 4.62947 0.5 9.78073 0.5Z",fill:"#7F54B3"}),Object(o.createElement)("path",{d:"M5.48791 9.1725C6.06028 8.37648 6.91882 7.95752 8.06354 7.87373C10.1486 7.70615 11.3342 8.71165 11.6204 10.8902C12.8877 19.6464 14.2778 27.0619 15.7495 33.1368L24.7029 15.6663C25.5206 14.0743 26.5426 13.2364 27.7691 13.1526C29.568 13.0269 30.6718 14.2 31.1215 16.6718C32.1436 22.2439 33.4519 26.9781 35.0054 31.0001C36.0684 20.3586 37.8672 12.6917 40.402 7.95753C41.0152 6.78445 41.9146 6.19791 43.1002 6.11412C44.0405 6.03033 44.8991 6.3236 45.6759 6.95203C46.4526 7.58047 46.8615 8.37648 46.9432 9.34008C46.9841 10.0942 46.8615 10.7226 46.5344 11.3511C44.94 14.3676 43.6317 19.4369 42.5688 26.4754C41.5467 33.3044 41.1787 38.6251 41.424 42.4376C41.5058 43.485 41.3423 44.4067 40.9334 45.2027C40.4428 46.1244 39.707 46.6272 38.7666 46.711C37.7037 46.7948 36.5998 46.292 35.5369 45.1608C31.7348 41.1807 28.7094 35.2316 26.5018 27.3133C23.8444 32.6759 21.882 36.6979 20.6146 39.3792C18.2025 44.1134 16.1584 46.5434 14.4413 46.6691C13.3374 46.7529 12.3971 45.7893 11.5795 43.7783C9.49445 38.2899 7.24589 27.6904 4.83379 11.9795C4.71114 10.8902 4.91555 9.92662 5.48791 9.1725Z",fill:"white"}),Object(o.createElement)("path",{d:"M93.3864 15.7499C91.9146 13.1105 89.7478 11.5185 86.8451 10.89C86.0683 10.7225 85.3324 10.6387 84.6374 10.6387C80.7127 10.6387 77.5238 12.7335 75.0299 16.923C72.904 20.4841 71.8411 24.4223 71.8411 28.7376C71.8411 31.9635 72.4952 34.7286 73.8034 37.0329C75.2752 39.6723 77.442 41.2644 80.3447 41.8928C81.1215 42.0604 81.8574 42.1442 82.5524 42.1442C86.518 42.1442 89.7069 40.0494 92.1599 35.8598C94.2858 32.2568 95.3488 28.3186 95.3488 24.0034C95.3488 20.7355 94.6946 18.0123 93.3864 15.7499ZM88.2351 27.355C87.6628 30.1201 86.6407 32.173 85.128 33.5556C83.9424 34.6449 82.8386 35.1057 81.8165 34.8962C80.8353 34.6868 80.0177 33.8069 79.4044 32.173C78.9138 30.8742 78.6685 29.5755 78.6685 28.3605C78.6685 27.3131 78.7503 26.2657 78.9547 25.3021C79.3226 23.5844 80.0177 21.9086 81.1215 20.3166C82.4706 18.2637 83.9015 17.4258 85.3733 17.719C86.3545 17.9285 87.1722 18.8083 87.7854 20.4422C88.276 21.741 88.5213 23.0398 88.5213 24.2547C88.5213 25.344 88.3987 26.3914 88.2351 27.355Z",fill:"white"}),Object(o.createElement)("path",{d:"M67.7528 15.7499C66.281 13.1105 64.0734 11.5185 61.2116 10.89C60.4348 10.7225 59.6989 10.6387 59.0039 10.6387C55.0791 10.6387 51.8903 12.7335 49.3964 16.923C47.2705 20.4841 46.2075 24.4223 46.2075 28.7376C46.2075 31.9635 46.8616 34.7286 48.1699 37.0329C49.6417 39.6723 51.8085 41.2644 54.7112 41.8928C55.488 42.0604 56.2238 42.1442 56.9189 42.1442C60.8845 42.1442 64.0734 40.0494 66.5263 35.8598C68.6523 32.2568 69.7152 28.3186 69.7152 24.0034C69.7152 20.7355 69.0611 18.0123 67.7528 15.7499ZM62.6016 27.355C62.0292 30.1201 61.0071 32.173 59.4945 33.5556C58.3089 34.6449 57.205 35.1057 56.183 34.8962C55.2018 34.6868 54.3841 33.8069 53.7709 32.173C53.2803 30.8742 53.035 29.5755 53.035 28.3605C53.035 27.3131 53.1167 26.2657 53.3212 25.3021C53.6891 23.5844 54.3841 21.9086 55.4879 20.3166C56.8371 18.2637 58.268 17.4258 59.7398 17.719C60.721 17.9285 61.5386 18.8083 62.1519 20.4422C62.6425 21.741 62.8878 23.0398 62.8878 24.2547C62.8878 25.344 62.806 26.3914 62.6016 27.355Z",fill:"white"}))},q=function(){return Object(o.createElement)("svg",{xmlns:"http://www.w3.org/2000/svg",width:"100",height:"24",fill:"#072654",viewBox:"0 0 1896 401"},Object(o.createElement)("path",{fill:"#3395FF",d:"M122.63 105.7l-15.75 57.97 90.15-58.3-58.96 219.98 59.88.05L285.05.48"}),Object(o.createElement)("path",{d:"M25.6 232.92L.8 325.4h122.73l50.22-188.13L25.6 232.92m426.32-81.42c-3 11.15-8.78 19.34-17.4 24.57-8.6 5.22-20.67 7.84-36.25 7.84h-49.5l17.38-64.8h49.5c15.56 0 26.25 2.6 32.05 7.9 5.8 5.3 7.2 13.4 4.22 24.6m51.25-1.4c6.3-23.4 3.7-41.4-7.82-54-11.5-12.5-31.68-18.8-60.48-18.8H324.4l-66.5 248.1h53.67l26.8-100h35.2c7.9 0 14.12 1.3 18.66 3.8 4.55 2.6 7.22 7.1 8.04 13.6l9.58 82.6h57.5l-9.32-77c-1.9-17.2-9.77-27.3-23.6-30.3 17.63-5.1 32.4-13.6 44.3-25.4a92.6 92.6 0 0 0 24.44-42.5m130.46 86.4c-4.5 16.8-11.4 29.5-20.73 38.4-9.34 8.9-20.5 13.3-33.52 13.3-13.26 0-22.25-4.3-27-13-4.76-8.7-4.92-21.3-.5-37.8 4.42-16.5 11.47-29.4 21.17-38.7 9.7-9.3 21.04-13.95 34.06-13.95 13 0 21.9 4.5 26.4 13.43 4.6 8.97 4.7 21.8.2 38.5zm23.52-87.8l-6.72 25.1c-2.9-9-8.53-16.2-16.85-21.6-8.34-5.3-18.66-8-30.97-8-15.1 0-29.6 3.9-43.5 11.7-13.9 7.8-26.1 18.8-36.5 33-10.4 14.2-18 30.3-22.9 48.4-4.8 18.2-5.8 34.1-2.9 47.9 3 13.9 9.3 24.5 19 31.9 9.8 7.5 22.3 11.2 37.6 11.2a82.4 82.4 0 0 0 35.2-7.7 82.11 82.11 0 0 0 28.4-21.2l-7 26.16h51.9L709.3 149h-52zm238.65 0H744.87l-10.55 39.4h87.82l-116.1 100.3-9.92 37h155.8l10.55-39.4h-94.1l117.88-101.8m142.4 52c-4.67 17.4-11.6 30.48-20.75 39-9.15 8.6-20.23 12.9-33.24 12.9-27.2 0-36.14-17.3-26.86-51.9 4.6-17.2 11.56-30.13 20.86-38.84 9.3-8.74 20.57-13.1 33.82-13.1 13 0 21.78 4.33 26.3 13.05 4.52 8.7 4.48 21.67-.13 38.87m30.38-80.83c-11.95-7.44-27.2-11.16-45.8-11.16-18.83 0-36.26 3.7-52.3 11.1a113.09 113.09 0 0 0-41 32.06c-11.3 13.9-19.43 30.2-24.42 48.8-4.9 18.53-5.5 34.8-1.7 48.73 3.8 13.9 11.8 24.6 23.8 32 12.1 7.46 27.5 11.17 46.4 11.17 18.6 0 35.9-3.74 51.8-11.18 15.9-7.48 29.5-18.1 40.8-32.1 11.3-13.94 19.4-30.2 24.4-48.8 5-18.6 5.6-34.84 1.8-48.8-3.8-13.9-11.7-24.6-23.6-32.05m185.1 40.8l13.3-48.1c-4.5-2.3-10.4-3.5-17.8-3.5-11.9 0-23.3 2.94-34.3 8.9-9.46 5.06-17.5 12.2-24.3 21.14l6.9-25.9-15.07.06h-37l-47.7 176.7h52.63l24.75-92.37c3.6-13.43 10.08-24 19.43-31.5 9.3-7.53 20.9-11.3 34.9-11.3 8.6 0 16.6 1.97 24.2 5.9m146.5 41.1c-4.5 16.5-11.3 29.1-20.6 37.8-9.3 8.74-20.5 13.1-33.5 13.1s-21.9-4.4-26.6-13.2c-4.8-8.85-4.9-21.6-.4-38.36 4.5-16.75 11.4-29.6 20.9-38.5 9.5-8.97 20.7-13.45 33.7-13.45 12.8 0 21.4 4.6 26 13.9 4.6 9.3 4.7 22.2.28 38.7m36.8-81.4c-9.75-7.8-22.2-11.7-37.3-11.7-13.23 0-25.84 3-37.8 9.06-11.95 6.05-21.65 14.3-29.1 24.74l.18-1.2 8.83-28.1h-51.4l-13.1 48.9-.4 1.7-54 201.44h52.7l27.2-101.4c2.7 9.02 8.2 16.1 16.6 21.22 8.4 5.1 18.77 7.63 31.1 7.63 15.3 0 29.9-3.7 43.75-11.1 13.9-7.42 25.9-18.1 36.1-31.9 10.2-13.8 17.77-29.8 22.6-47.9 4.9-18.13 5.9-34.3 3.1-48.45-2.85-14.17-9.16-25.14-18.9-32.9m174.65 80.65c-4.5 16.7-11.4 29.5-20.7 38.3-9.3 8.86-20.5 13.27-33.5 13.27-13.3 0-22.3-4.3-27-13-4.8-8.7-4.9-21.3-.5-37.8 4.4-16.5 11.42-29.4 21.12-38.7 9.7-9.3 21.05-13.94 34.07-13.94 13 0 21.8 4.5 26.4 13.4 4.6 8.93 4.63 21.76.15 38.5zm23.5-87.85l-6.73 25.1c-2.9-9.05-8.5-16.25-16.8-21.6-8.4-5.34-18.7-8-31-8-15.1 0-29.68 3.9-43.6 11.7-13.9 7.8-26.1 18.74-36.5 32.9-10.4 14.16-18 30.3-22.9 48.4-4.85 18.17-5.8 34.1-2.9 47.96 2.93 13.8 9.24 24.46 19 31.9 9.74 7.4 22.3 11.14 37.6 11.14 12.3 0 24.05-2.56 35.2-7.7a82.3 82.3 0 0 0 28.33-21.23l-7 26.18h51.9l47.38-176.7h-51.9zm269.87.06l.03-.05h-31.9c-1.02 0-1.92.05-2.85.07h-16.55l-8.5 11.8-2.1 2.8-.9 1.4-67.25 93.68-13.9-109.7h-55.08l27.9 166.7-61.6 85.3h54.9l14.9-21.13c.42-.62.8-1.14 1.3-1.8l17.4-24.7.5-.7 77.93-110.5 65.7-93 .1-.06h-.03z"}))},F=function(){return Object(o.createElement)("svg",{fill:"none",viewBox:"0 0 677 200",width:"100",xmlns:"http://www.w3.org/2000/svg"},Object(o.createElement)("g",{fill:"#000"},Object(o.createElement)("path",{clipRule:"evenodd",d:"m286.342 65.3132c-37.175 0-67.35 30.2415-67.35 67.3438 0 37.101 30.245 67.343 67.35 67.343 37.106 0 67.35-30.242 67.35-67.343 0-37.1023-30.174-67.3438-67.35-67.3438zm0 102.8348c-19.533 0-35.425-15.89-35.425-35.421s15.892-35.4222 35.425-35.4222 35.426 15.8912 35.426 35.4222-15.893 35.421-35.426 35.421z",fillRule:"evenodd"}),Object(o.createElement)("path",{d:"m510.375 42.0021c11.6 0 21.003-9.4025 21.003-21.0011 0-11.59851-9.403-21.001-21.003-21.001-11.599 0-21.003 9.40249-21.003 21.001 0 11.5986 9.404 21.0011 21.003 21.0011z"}),Object(o.createElement)("path",{clipRule:"evenodd",d:"m148.842 65.3833c-1.75-.14-3.431-.21-5.181-.21-16.242 0-31.644 6.6503-42.706 18.4109-11.0617-11.6906-26.394-18.4109-42.4964-18.4109-32.2047 0-58.4586 26.1813-58.4586 58.3827v73.714h31.5047v-72.804c0-13.37 10.9916-25.691 23.9435-27.0211.9101-.07 1.8203-.14 2.6604-.14 14.5621 0 26.4639 11.9001 26.5339 26.4611v73.504h32.2045v-72.944c0-13.3 10.922-25.621 23.944-26.9511.91-.07 1.82-.14 2.66-.14 14.562 0 26.534 11.8301 26.604 26.3211v73.714h32.205v-72.804c0-14.77-5.461-28.9812-15.332-39.9717-9.872-11.0606-23.384-17.8509-38.086-19.111z",fillRule:"evenodd"}),Object(o.createElement)("path",{d:"m403.26 3.15015h-32.205v194.25985h32.205z"}),Object(o.createElement)("path",{d:"m464.869 3.15015h-32.205v194.25985h32.205z"}),Object(o.createElement)("path",{d:"m526.478 68.5334h-32.205v128.8066h32.205z"}),Object(o.createElement)("path",{clipRule:"evenodd",d:"m677 129.646c0-17.08-6.651-33.1812-18.693-45.4318-12.112-12.2506-28.074-19.0409-45.086-19.0409-.28 0-.561 0-.841 0-17.642.21-34.305 7.2103-46.766 19.741-12.462 12.5306-19.463 29.1217-19.673 46.8327-.21 18.06 6.721 35.141 19.533 48.092 12.811 12.951 29.754 20.091 47.817 20.091h.07c23.663 0 45.856-12.671 57.968-33.042l1.54-2.59-26.604-13.09-1.33 2.17c-6.651 10.99-18.202 17.501-31.014 17.501-16.383 0-30.525-10.921-34.866-26.462h97.945zm-65.04-35.2113c14.703 0 27.864 9.6603 32.485 23.3813h-64.899c4.55-13.721 17.712-23.3813 32.414-23.3813z",fillRule:"evenodd"})))},V=function(){return Object(o.createElement)("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 385.61334 192.41333",width:"100"},Object(o.createElement)("g",{transform:"matrix(1.3333333,0,0,-1.3333333,0,192.41333)"},Object(o.createElement)("g",{transform:"scale(0.1)",id:"g12"},Object(o.createElement)("path",{style:{fill:"#90cc23",fillOpacity:1,fillRule:"nonzero",stroke:"none"},d:"m 2507.22,898.414 c -18.79,0 -34.01,15.234 -34,34.024 l 0.05,150.352 h -12.54 c -77.78,0 -106.71,-12.83 -106.71,-83.685 V 833.316 c -0.01,-0.351 -0.05,-0.703 -0.05,-1.054 v -36.34 c -0.02,-1.258 -0.1,-2.43 -0.1,-3.731 V 560.543 c 0,-28.293 -5.45,-50.82 -16.7,-68.32 -21.21,-32.676 -63.2,-47.532 -130.38,-47.618 -67.15,0.086 -109.13,14.93 -130.34,47.579 -11.28,17.507 -16.74,40.046 -16.74,68.359 v 231.648 c 0,1.301 -0.07,2.473 -0.09,3.731 v 36.34 c 0,0.351 -0.04,0.703 -0.05,1.054 v 165.789 c 0,70.855 -28.93,83.685 -106.71,83.685 h -24.49 c -77.79,0 -106.71,-12.83 -106.71,-83.685 V 832.262 656.723 560.543 c 0,-70.547 15.91,-130.281 46.65,-178.434 59.37,-93.3 174.38,-142.988 337.88,-142.988 0.2,0 0.4,0.008 0.6,0.008 0.21,0 0.4,-0.008 0.61,-0.008 163.5,0 278.51,49.688 337.88,142.988 30.74,48.153 46.65,107.887 46.65,178.434 v 96.18 175.539 66.121 l -84.71,0.031"}),Object(o.createElement)("path",{style:{fill:"#90cc23",fillOpacity:1,fillRule:"nonzero",stroke:"none"},d:"m 2866.82,1140.67 -127.94,0.05 c -13.95,0 -25.26,11.32 -25.25,25.27 l 0.04,129.52 c 0.01,13.96 11.33,25.27 25.28,25.27 l 127.93,-0.05 c 13.96,0 25.27,-11.32 25.27,-25.28 l -0.05,-129.52 c 0,-13.95 -11.32,-25.26 -25.28,-25.26"}),Object(o.createElement)("path",{style:{fill:"#90cc23",fillOpacity:1,fillRule:"nonzero",stroke:"none"},d:"m 2696.34,1320.76 -86.89,0.03 c -9.48,0.01 -17.16,7.69 -17.16,17.16 l 0.03,87.97 c 0.01,9.49 7.7,17.16 17.17,17.16 l 86.89,-0.03 c 9.48,0 17.16,-7.69 17.16,-17.17 l -0.03,-87.97 c -0.01,-9.48 -7.69,-17.15 -17.17,-17.15"}),Object(o.createElement)("path",{style:{fill:"#90cc23",fillOpacity:1,fillRule:"nonzero",stroke:"none"},d:"m 496.59,815.961 c 0,-104.07 -26.574,-160.469 -166.75,-160.469 H 114.059 v 268.586 c 0,37.246 13.847,51.094 51.089,51.094 H 329.84 c 105.605,0 166.75,-26.055 166.75,-159.211 z M 329.84,1082.95 H 143.77 C 44.3438,1082.95 0.00390625,1038.6 0.00390625,939.164 V 300.512 C 0.00390625,262.102 12.332,249.77 50.7422,249.77 h 12.5742 c 38.4136,0 50.7426,12.332 50.7426,50.742 V 548.98 H 329.84 c 191.582,0 280.812,84.844 280.812,266.981 0,182.148 -89.23,266.989 -280.812,266.989"}),Object(o.createElement)("path",{style:{fill:"#90cc23",fillOpacity:1,fillRule:"nonzero",stroke:"none"},d:"m 1012.01,536.82 v -87.547 c 0,-71.375 -26.455,-112.695 -161.721,-112.695 -89.359,0 -132.801,32.344 -132.801,98.863 0,72.954 43.578,101.379 155.434,101.379 z M 850.289,899.801 c -73.738,0 -119.949,-9.25 -137.476,-12.754 -31.036,-6.75 -44.012,-15.266 -44.012,-50.559 V 826.43 c 0,-13.828 2.047,-23.407 6.441,-30.145 5.113,-7.851 13.348,-11.836 24.488,-11.836 5.434,0 11.727,0.918 19.243,2.793 17.722,4.434 74.379,13.594 136.347,13.594 111.297,0 156.69,-30.832 156.69,-106.406 V 626.988 H 871.66 c -180.422,0 -264.461,-60.859 -264.461,-191.547 0,-126.761 86.778,-196.57 244.352,-196.57 187.249,0 270.749,63.719 270.749,206.633 V 694.43 c 0,138.191 -88.97,205.371 -272.011,205.371"}),Object(o.createElement)("path",{style:{fill:"#90cc23",fillOpacity:1,fillRule:"nonzero",stroke:"none"},d:"m 1739.43,870.035 c -7.95,9.981 -22.98,11.356 -38.05,11.356 h -11.3 c -37.55,0 -52.28,-11.582 -60.59,-47.606 L 1525.15,400.078 c -13.02,-53.297 -31.32,-63.039 -62.63,-63.039 -38.34,0 -53.69,9.152 -68.97,63.25 l -118.18,433.699 c -9.78,36.328 -24.21,47.403 -61.77,47.403 h -10.06 c -15.16,0 -30.26,-1.395 -38.01,-11.504 -7.76,-10.125 -5.14,-25.235 -1.14,-40.086 L 1283.82,392.34 c 22.4,-83.719 49.03,-153.02 148.53,-153.02 18.57,0 35.75,2.578 50.04,7.399 -30.18,-94.91 -60.88,-136.77 -151.41,-146.071 -18.37,-1.5269 -30.31,-4.1597 -36.96,-13.0777 -6.91,-9.25 -5.34,-22.5 -2.87,-34.332 l 2.49,-11.2188 C 1299.04,16.0781 1308.25,0 1337.37,0 c 3.06,0 6.35,0.160156 9.88,0.460938 C 1482.43,9.30859 1554.86,82.0898 1597.24,251.66 l 144.62,578.453 c 3.43,14.844 5.5,29.95 -2.43,39.922"}),Object(o.createElement)("path",{style:{fill:"#90cc23",fillOpacity:1,fillRule:"nonzero",stroke:"none"},d:"m 2679.57,1140.78 -172.26,0.06 c -18.79,0 -34.02,-15.23 -34.03,-34.02 l -0.01,-24.03 h 11.95 c 77.78,0 106.71,-12.83 106.71,-83.685 V 898.383 l 87.55,-0.028 c 18.79,-0.011 34.02,15.215 34.03,34.004 l 0.06,174.381 c 0,18.79 -15.22,34.03 -34,34.04"}))))},D=(n(203),n(88),n(187),n(95)),z=n.n(D),H=n(50);function Z(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var c=Object.getOwnPropertySymbols(e);t&&(c=c.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,c)}return n}function W(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?Z(Object(n),!0).forEach((function(t){r()(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):Z(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}function Y(e){var t=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){}))),!0}catch(e){return!1}}();return function(){var n,c=S()(e);if(t){var r=S()(this).constructor;n=Reflect.construct(c,arguments,r)}else n=c.apply(this,arguments);return E()(this,n)}}var K=function(e){v()(i,e);var t,n,c=Y(i);function i(e){var t;return y()(this,i),(t=c.call(this,e)).state={oAuthConnectFailed:!1,connectURL:null,isPending:!1},t.updateSettings=t.updateSettings.bind(j()(t)),t}return O()(i,[{key:"componentDidMount",value:function(){var e=this.state.oAuthConnectFailed,t=this.props.stripeSettings,n=Object(H.getQuery)();if(n["stripe-connect"]&&"1"===n["stripe-connect"]&&(t.publishable_key&&t.secret_key))return void this.completeMethod();e||this.fetchOAuthConnectURL()}},{key:"componentDidUpdate",value:function(e){var t=this.props.activePlugins;!e.activePlugins.includes("woocommerce-gateway-stripe")&&t.includes("woocommerce-gateway-stripe")&&this.fetchOAuthConnectURL()}},{key:"completeMethod",value:function(){var e=this.props,t=e.createNotice,n=e.markConfigured;this.setState({isPending:!1}),t("success",Object(a.__)("Stripe connected successfully.","woocommerce-admin")),n("stripe")}},{key:"fetchOAuthConnectURL",value:(n=_()(b.a.mark((function e(){var t;return b.a.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:if(this.props.activePlugins.includes("woocommerce-gateway-stripe")){e.next=3;break}return e.abrupt("return");case 3:return e.prev=3,this.setState({isPending:!0}),e.next=7,z()({path:N.WCS_NAMESPACE+"/connect/stripe/oauth/init",method:"POST",data:{returnUrl:Object(l.f)("admin.php?page=wc-admin&task=payments&method=stripe&stripe-connect=1")}});case 7:if((t=e.sent)&&t.oauthUrl){e.next=11;break}return this.setState({oAuthConnectFailed:!0,isPending:!1}),e.abrupt("return");case 11:this.setState({connectURL:t.oauthUrl,isPending:!1}),e.next=17;break;case 14:e.prev=14,e.t0=e.catch(3),this.setState({oAuthConnectFailed:!0,isPending:!1});case 17:case"end":return e.stop()}}),e,this,[[3,14]])}))),function(){return n.apply(this,arguments)})},{key:"renderConnectButton",value:function(){var e=this.state.connectURL;return Object(o.createElement)(x.Button,{isPrimary:!0,href:e},Object(a.__)("Connect","woocommerce-admin"))}},{key:"updateSettings",value:(t=_()(b.a.mark((function e(t){var n,c,o,i,s,l;return b.a.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return c=this.props,o=c.updateOptions,i=c.stripeSettings,s=c.createNotice,l=t.publishable_key.match(/^pk_live_/)?"":"test_",e.next=4,o({woocommerce_stripe_settings:W(W({},i),{},(n={},r()(n,l+"publishable_key",t.publishable_key),r()(n,l+"secret_key",t.secret_key),r()(n,"testmode","test_"===l?"yes":"no"),r()(n,"enabled","yes"),n))});case 4:e.sent.success?this.completeMethod():s("error",Object(a.__)("There was a problem saving your payment settings","woocommerce-admin"));case 6:case"end":return e.stop()}}),e,this)}))),function(e){return t.apply(this,arguments)})},{key:"getInitialConfigValues",value:function(){return{publishable_key:"",secret_key:""}}},{key:"validateManualConfig",value:function(e){var t={};return null===e.publishable_key.match(/^pk_(live|test)_[a-zA-Z0-9_]+/)&&(t.publishable_key=Object(a.__)('Please enter a valid publishable key (starting with "pk_").',"woocommerce-admin")),null===e.secret_key.match(/^[rs]k_(live|test)_[a-zA-Z0-9_]+/)?t.secret_key=Object(a.__)('Please enter a valid secret key (starting with "sk_" or "rk_").',"woocommerce-admin"):e.secret_key.slice(3,7)!==e.publishable_key.slice(3,7)&&(t.secret_key=Object(a.__)("Please enter a secret key in the same mode as the publishable key.","woocommerce-admin")),t}},{key:"renderManualConfig",value:function(){var e=this.props.isOptionsUpdating,t=s()({mixedString:Object(a.__)("Your API details can be obtained from your {{docsLink}}Stripe account{{/docsLink}}. Don’t have a Stripe account? {{registerLink}}Create one.{{/registerLink}}","woocommerce-admin"),components:{docsLink:Object(o.createElement)(m.Link,{href:"https://stripe.com/docs/keys",target:"_blank",type:"external"}),registerLink:Object(o.createElement)(m.Link,{href:"https://dashboard.stripe.com/register",target:"_blank",type:"external"})}});return Object(o.createElement)(m.Form,{initialValues:this.getInitialConfigValues(),onSubmitCallback:this.updateSettings,validate:this.validateManualConfig},(function(n){var c=n.getInputProps,r=n.handleSubmit;return Object(o.createElement)(o.Fragment,null,Object(o.createElement)(m.TextControl,p()({label:Object(a.__)("Publishable Key","woocommerce-admin"),required:!0},c("publishable_key"))),Object(o.createElement)(m.TextControl,p()({label:Object(a.__)("Secret Key","woocommerce-admin"),required:!0},c("secret_key"))),Object(o.createElement)(x.Button,{isPrimary:!0,isBusy:e,onClick:r},Object(a.__)("Proceed","woocommerce-admin")),Object(o.createElement)("p",null,t))}))}},{key:"renderOauthConfig",value:function(){var e=this,t=s()({mixedString:Object(a.__)('By clicking "Connect," you agree to the {{tosLink}}Terms of Service{{/tosLink}}. Or {{manualConfigLink}}manually enter your Stripe API details{{/manualConfigLink}} instead.',"woocommerce-admin"),components:{tosLink:Object(o.createElement)(m.Link,{href:"https://wordpress.com/tos",target:"_blank",type:"external"}),manualConfigLink:Object(o.createElement)(x.Button,{isLink:!0,onClick:function(){e.setState({connectURL:null})}})}});return Object(o.createElement)(o.Fragment,null,Object(o.createElement)("p",null,this.renderConnectButton()),t)}},{key:"getConnectStep",value:function(){var e=this.state,t=e.connectURL,n=e.isPending,c=e.oAuthConnectFailed,r={key:"connect",label:Object(a.__)("Connect your Stripe account","woocommerce-admin")};return n?r:W(W({},r),{},!c&&t?{description:Object(a.__)("A Stripe account is required to process payments.","woocommerce-admin"),content:this.renderOauthConfig()}:{content:this.renderManualConfig()})}},{key:"render",value:function(){var e=this.props,t=e.installStep,n=e.isOptionsUpdating,c=this.state.isPending;return Object(o.createElement)(m.Stepper,{isVertical:!0,isPending:!t.isComplete||n||c,currentStep:t.isComplete?"connect":"install",steps:[t,this.getConnectStep()]})}}]),i}(o.Component),G=Object(L.compose)(Object(R.withSelect)((function(e){var t=e(N.OPTIONS_STORE_NAME),n=t.getOption,c=t.isOptionsUpdating;return{activePlugins:(0,e(N.PLUGINS_STORE_NAME).getActivePlugins)(),isOptionsUpdating:c(),stripeSettings:n("woocommerce_stripe_settings")||[]}})),Object(R.withDispatch)((function(e){return{createNotice:e("core/notices").createNotice,updateOptions:e(N.OPTIONS_STORE_NAME).updateOptions}})))(K);function Q(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var c=Object.getOwnPropertySymbols(e);t&&(c=c.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,c)}return n}function J(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?Q(Object(n),!0).forEach((function(t){r()(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):Q(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}function X(e){var t=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){}))),!0}catch(e){return!1}}();return function(){var n,c=S()(e);if(t){var r=S()(this).constructor;n=Reflect.construct(c,arguments,r)}else n=c.apply(this,arguments);return E()(this,n)}}var $=function(e){v()(c,e);var t,n=X(c);function c(e){var t;return y()(this,c),(t=n.call(this,e)).state={isPending:!1},t.connect=t.connect.bind(j()(t)),t}return O()(c,[{key:"componentDidMount",value:function(){var e=this.props,t=e.createNotice,n=e.markConfigured,c=Object(H.getQuery)();c["square-connect"]&&"1"===c["square-connect"]&&(t("success",Object(a.__)("Square connected successfully.","woocommerce-admin")),n("square"))}},{key:"connect",value:(t=_()(b.a.mark((function e(){var t,n,c,r,o,i,s,l;return b.a.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return t=this.props,n=t.createNotice,c=t.hasCbdIndustry,r=t.options,o=t.updateOptions,this.setState({isPending:!0}),o({woocommerce_square_credit_card_settings:J(J({},r.woocommerce_square_credit_card_settings),{},{enabled:"yes"})}),i=Object(a.__)("There was an error connecting to Square. Please try again or skip to connect later in store settings.","woocommerce-admin"),e.prev=4,s=null,c&&(s=window.open("/","_blank")),e.next=9,z()({path:N.WC_ADMIN_NAMESPACE+"/plugins/connect-square",method:"POST"});case 9:if((l=e.sent)&&l.connectUrl){e.next=15;break}return this.setState({isPending:!1}),n("error",i),c&&s.close(),e.abrupt("return");case 15:this.setState({isPending:!0}),this.redirect(l.connectUrl,s),e.next=23;break;case 19:e.prev=19,e.t0=e.catch(4),this.setState({isPending:!1}),n("error",i);case 23:case"end":return e.stop()}}),e,this,[[4,19]])}))),function(){return t.apply(this,arguments)})},{key:"redirect",value:function(e,t){t?(t.location.href=e,window.location=Object(l.f)("admin.php?page=wc-admin")):window.location=e}},{key:"render",value:function(){var e=this.props.installStep,t=this.state.isPending;return Object(o.createElement)(m.Stepper,{isVertical:!0,isPending:!e.isComplete||t,currentStep:e.isComplete?"connect":"install",steps:[e,{key:"connect",label:Object(a.__)("Connect your Square account","woocommerce-admin"),description:Object(a.__)("A Square account is required to process payments. You will be redirected to the Square website to create the connection.","woocommerce-admin"),content:Object(o.createElement)(o.Fragment,null,Object(o.createElement)(x.Button,{isPrimary:!0,isBusy:t,onClick:this.connect},Object(a.__)("Connect","woocommerce-admin")))}]})}}]),c}(o.Component),ee=Object(L.compose)(Object(R.withSelect)((function(e){var t=e(N.OPTIONS_STORE_NAME),n=t.getOption,c=t.isResolving;return{options:n("woocommerce_square_credit_card_settings"),optionsIsRequesting:c("getOption",["woocommerce_square_credit_card_settings"])}})),Object(R.withDispatch)((function(e){return{createNotice:e("core/notices").createNotice,updateOptions:e(N.OPTIONS_STORE_NAME).updateOptions}})))($),te=n(615),ne=n(78);function ce(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var c=Object.getOwnPropertySymbols(e);t&&(c=c.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,c)}return n}function re(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?ce(Object(n),!0).forEach((function(t){r()(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):ce(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}function oe(e){var t=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){}))),!0}catch(e){return!1}}();return function(){var n,c=S()(e);if(t){var r=S()(this).constructor;n=Reflect.construct(c,arguments,r)}else n=c.apply(this,arguments);return E()(this,n)}}var ae="woocommerce-paypal-payments";function ie(e,t,n){try{ppcp_onboarding&&n()}catch(r){var c=document.createElement("script");c.src=e,document.body.append(c),c.onload=function(){n()},window.PayPalCommerceGatewayOnboarding=t}}function se(e){var t=e.connectUrl;return Object(o.useEffect)((function(){ppcp_onboarding&&ppcp_onboarding.reload()}),[]),Object(o.createElement)("a",{className:"button-primary",target:"_blank",rel:"noreferrer",href:t,"data-paypal-onboard-button":"true","data-paypal-button":"true","data-paypal-onboard-complete":"ppcp_onboarding_productionCallback"},Object(a.__)("Connect","woocommerce-admin"))}var le=function(e){v()(u,e);var t,n,c,i,l=oe(u);function u(e){var t;return y()(this,u),(t=l.call(this,e)).state={autoConnectFailed:!1,connectURL:""},t.enablePaypalPlugin=t.enablePaypalPlugin.bind(j()(t)),t.setCredentials=t.setCredentials.bind(j()(t)),t.validate=t.validate.bind(j()(t)),t}return O()(u,[{key:"componentDidMount",value:function(){var e=this.props.createNotice,t=Object(H.getQuery)();if(t.onboarding)return"complete"!==t.onboarding||t["ppcp-onboarding-error"]?void(t["ppcp-onboarding-error"]&&(this.setState({autoConnectFailed:!0}),e("error",Object(a.__)("There was a problem saving your payment settings through the onboarding, please fill the fields in manually.","woocommerce-admin")))):void this.enablePaypalPlugin();this.fetchOAuthConnectURLAndOnboardingSetup()}},{key:"componentDidUpdate",value:function(e){var t=this.props.activePlugins;!e.activePlugins.includes(ae)&&t.includes(ae)&&this.fetchOAuthConnectURLAndOnboardingSetup()}},{key:"fetchOAuthConnectURLAndOnboardingSetup",value:(i=_()(b.a.mark((function e(){var t,n,c,r,o=this;return b.a.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:if(t=this.props,n=t.activePlugins,c=t.createNotice,n.includes(ae)){e.next=3;break}return e.abrupt("return");case 3:return this.setState({isPending:!0}),e.prev=4,e.next=7,z()({path:"/wc-paypal/v1/onboarding/get-params",method:"POST",data:{environment:"production",returnUrlArgs:{ppcpobw:"1"}}});case 7:if((r=e.sent)&&r.signupLink){e.next=11;break}return this.setState({autoConnectFailed:!0,isPending:!1}),e.abrupt("return");case 11:ie(r.scriptURL,r.scriptData,(function(){o.setState({connectURL:r.signupLink,isPending:!1})})),e.next=18;break;case 14:e.prev=14,e.t0=e.catch(4),e.t0&&e.t0.data&&500===e.t0.data.status&&c("error",Object(a.__)("There was a problem with the Paypal onboarding setup, please fill the fields in manually.","woocommerce-admin")),this.setState({autoConnectFailed:!0,isPending:!1});case 18:case"end":return e.stop()}}),e,this,[[4,14]])}))),function(){return i.apply(this,arguments)})},{key:"enablePaypalPlugin",value:(c=_()(b.a.mark((function e(t){var n,c,r,o,i,s;return b.a.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return n=this.props,c=n.createNotice,r=n.updateOptions,o=n.markConfigured,i=n.options,s={"woocommerce_ppcp-gateway_settings":{enabled:"yes"}},t||(s["woocommerce-ppcp-settings"]=re(re({},i),{},{enabled:!0})),e.next=5,r(s);case 5:e.sent.success?(c("success",Object(a.__)("PayPal connected successfully.","woocommerce-admin")),o("paypal")):c("error",Object(a.__)("There was a problem saving your payment settings.","woocommerce-admin"));case 7:case"end":return e.stop()}}),e,this)}))),function(e){return c.apply(this,arguments)})},{key:"setCredentials",value:(n=_()(b.a.mark((function e(t){var n,c;return b.a.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return n=this.props.createNotice,e.prev=1,e.next=4,z()({path:"/wc-paypal/v1/onboarding/set-credentials",method:"POST",data:re({environment:"production"},t)});case 4:if(!(c=e.sent)||!c.data){e.next=9;break}n("error",Object(a.__)("There was a problem updating the credentials.","woocommerce-admin")),e.next=11;break;case 9:return e.next=11,this.enablePaypalPlugin(!0);case 11:e.next=18;break;case 13:if(e.prev=13,e.t0=e.catch(1),!e.t0||!e.t0.data||404!==e.t0.data.status){e.next=18;break}return e.next=18,this.updateManualSettings(t);case 18:case"end":return e.stop()}}),e,this,[[1,13]])}))),function(e){return n.apply(this,arguments)})},{key:"updateManualSettings",value:(t=_()(b.a.mark((function e(t){var n,c,o,i,s,l,m;return b.a.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return n=this.props,c=n.createNotice,o=n.options,i=n.updateOptions,s=n.markConfigured,l=Object.keys(t).reduce((function(e,n){var c=n+"_production";return re(re({},e),{},r()({},c,t[n]))}),{}),m=re(re({},o),{},{enabled:!0,sandbox_on:!1,merchant_email:t.merchant_email,merchant_id:t.merchant_id},l),e.next=5,i({"woocommerce-ppcp-settings":m,"woocommerce_ppcp-gateway_settings":{enabled:"yes"}});case 5:e.sent.success?(c("success",Object(a.__)("PayPal connected successfully.","woocommerce-admin")),s("paypal")):c("error",Object(a.__)("There was a problem saving your payment settings.","woocommerce-admin"));case 7:case"end":return e.stop()}}),e,this)}))),function(e){return t.apply(this,arguments)})},{key:"getInitialConfigValues",value:function(){var e=this.props.options;return["merchant_email","merchant_id","client_id","client_secret"].reduce((function(t,n){return re(re({},t),{},r()({},n,e&&e[n+"_production"]?e[n+"_production"]:""))}),{})}},{key:"validate",value:function(e){var t={};return e.merchant_email||(t.merchant_email=Object(a.__)("Please enter your Merchant email","woocommerce-admin")),Object(ne.isEmail)(e.merchant_email)||(t.merchant_email=Object(a.__)("Please enter a valid email address","woocommerce-admin")),e.merchant_id||(t.merchant_id=Object(a.__)("Please enter your Merchant Id","woocommerce-admin")),e.client_id||(t.client_id=Object(a.__)("Please enter your Client Id","woocommerce-admin")),e.client_secret||(t.client_secret=Object(a.__)("Please enter your Client Secret","woocommerce-admin")),t}},{key:"renderManualConfig",value:function(){var e=this.props.isOptionsUpdating,t=s()({mixedString:Object(a.__)("Your API details can be obtained from your {{docsLink}}Paypal developer account{{/docsLink}}, and your Merchant Id from your {{merchantLink}}Paypal Business account{{/merchantLink}}. Don’t have a Paypal account? {{registerLink}}Create one.{{/registerLink}}","woocommerce-admin"),components:{docsLink:Object(o.createElement)(m.Link,{href:"https://developer.paypal.com/docs/api-basics/manage-apps/#create-or-edit-sandbox-and-live-apps",target:"_blank",type:"external"}),merchantLink:Object(o.createElement)(m.Link,{href:"https://www.paypal.com/ca/smarthelp/article/FAQ3850",target:"_blank",type:"external"}),registerLink:Object(o.createElement)(m.Link,{href:"https://www.paypal.com/us/business",target:"_blank",type:"external"})}});return Object(o.createElement)(m.Form,{initialValues:this.getInitialConfigValues(),onSubmitCallback:this.setCredentials,validate:this.validate},(function(n){var c=n.getInputProps,r=n.handleSubmit;return Object(o.createElement)(o.Fragment,null,Object(o.createElement)(m.TextControl,p()({label:Object(a.__)("Email address","woocommerce-admin"),required:!0},c("merchant_email"))),Object(o.createElement)(m.TextControl,p()({label:Object(a.__)("Merchant Id","woocommerce-admin"),required:!0},c("merchant_id"))),Object(o.createElement)(m.TextControl,p()({label:Object(a.__)("Client Id","woocommerce-admin"),required:!0},c("client_id"))),Object(o.createElement)(m.TextControl,p()({label:Object(a.__)("Secret Key","woocommerce-admin"),required:!0},c("client_secret"))),Object(o.createElement)(x.Button,{isPrimary:!0,isBusy:e,onClick:r},Object(a.__)("Proceed","woocommerce-admin")),Object(o.createElement)("p",null,t))}))}},{key:"renderConnectFields",value:function(){var e=this.state,t=e.autoConnectFailed,n=e.connectURL;return!t&&n?Object(o.createElement)(o.Fragment,null,Object(o.createElement)(se,{connectUrl:n}),Object(o.createElement)("p",null,Object(a.__)("You will be redirected to the PayPal website to create the connection.","woocommerce-admin"))):t?this.renderManualConfig():void 0}},{key:"getConnectStep",value:function(){var e=this.props.isRequestingOptions;return{key:"connect",label:Object(a.__)("Connect your PayPal account","woocommerce-admin"),description:Object(a.__)("A PayPal account is required to process payments. Connect your store to your PayPal account.","woocommerce-admin"),content:e?null:this.renderConnectFields()}}},{key:"render",value:function(){var e=this.props,t=e.installStep,n=e.isRequestingOptions,c=e.isOptionsUpdating,r=this.state.isPending;return Object(o.createElement)(m.Stepper,{isVertical:!0,isPending:!t.isComplete||r||n||c,currentStep:t.isComplete?"connect":"install",steps:[t,this.getConnectStep()]})}}]),u}(o.Component);le.defaultProps={manualConfig:!1};var me=Object(L.compose)(Object(R.withSelect)((function(e){var t=e(N.OPTIONS_STORE_NAME),n=t.getOption,c=t.isOptionsUpdating,r=t.hasFinishedResolution,o=e(N.PLUGINS_STORE_NAME).getActivePlugins,a=n("woocommerce-ppcp-settings"),i=!r("getOption",["woocommerce-ppcp-settings"]);return{activePlugins:o(),isOptionsUpdating:c(),options:a,isRequestingOptions:i}})),Object(R.withDispatch)((function(e){return{createNotice:e("core/notices").createNotice,updateOptions:e(N.OPTIONS_STORE_NAME).updateOptions}})))(le),ue=n(231),pe=function(e){var t=e.installStep,n=e.markConfigured,c=Object(R.useSelect)((function(e){var t=(0,e(N.SETTINGS_STORE_NAME).getSettings)("general").general,n=void 0===t?{}:t;return{countryCode:Object(ue.b)(n.woocommerce_default_country)}})).countryCode;return Object(o.createElement)(m.Stepper,{isVertical:!0,isPending:!t.isComplete,currentStep:t.isComplete?"connect":"install",steps:[t,{key:"connect",label:Object(a.__)("Connect to your Mercado Pago account","woocommerce-admin"),content:Object(o.createElement)(de,{countryCode:c,onFinish:function(){return n("mercadopago")}})}]})},de=function(e){var t=e.countryCode,n=e.onFinish,c=Object(o.createElement)(m.Link,{href:"".concat(l.a,"admin.php?page=wc-settings&tab=checkout"),target:"_blank",type:"external"}),r=Object(o.createElement)(m.Link,{href:["AR","BR","CL","CO","MX","PE","UY"].includes(t)?"".concat("https://www.mercadopago.com",".").concat(t.toLowerCase(),"/registration-company?confirmation_url=").concat("https://www.mercadopago.com",".").concat(t.toLowerCase(),"%2Fcomo-cobrar"):"https://www.mercadopago.com",target:"_blank",type:"external"}),i=s()({mixedString:Object(a.__)("Mercado Pago can be configured under your {{settingsLink}}store settings.{{/settingsLink}} Create your Mercado Pago account {{accountLink}}here.{{/accountLink}}","woocommerce-admin"),components:{accountLink:r,settingsLink:c}});return Object(o.createElement)(o.Fragment,null,Object(o.createElement)("p",null,i),Object(o.createElement)(x.Button,{isPrimary:!0,onClick:n},Object(a.__)("Continue","woocommerce-admin")))};function be(e){var t=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){}))),!0}catch(e){return!1}}();return function(){var n,c=S()(e);if(t){var r=S()(this).constructor;n=Reflect.construct(c,arguments,r)}else n=c.apply(this,arguments);return E()(this,n)}}var fe=function(e){v()(n,e);var t=be(n);function n(e){var c;return y()(this,n),(c=t.call(this,e)).continue=c.continue.bind(j()(c)),c}return O()(n,[{key:"continue",value:function(){var e=this.props;(0,e.markConfigured)("checkout"===e.plugin?"klarna_checkout":"klarna_payments")}},{key:"renderConnectStep",value:function(){var e=this.props.plugin,t="checkout"===e?"klarna-checkout":"klarna-payments",n="checkout"===e?"kco":"klarna_payments",c=Object(o.createElement)(m.Link,{href:l.a+"admin.php?page=wc-settings&tab=checkout§ion="+n,target:"_blank",type:"external"}),r=Object(o.createElement)(m.Link,{href:"https://docs.woocommerce.com/document/"+t+"/#section-3",target:"_blank",type:"external"}),i=s()({mixedString:Object(a.__)("Klarna can be configured under your {{link}}store settings{{/link}}. Figure out {{helpLink}}what you need{{/helpLink}}.","woocommerce-admin"),components:{link:c,helpLink:r}});return Object(o.createElement)(o.Fragment,null,Object(o.createElement)("p",null,i),Object(o.createElement)(x.Button,{isPrimary:!0,onClick:this.continue},Object(a.__)("Continue","woocommerce-admin")))}},{key:"render",value:function(){var e=this.props.installStep;return Object(o.createElement)(m.Stepper,{isVertical:!0,isPending:!e.isComplete,currentStep:e.isComplete?"connect":"install",steps:[e,{key:"connect",label:Object(a.__)("Connect your Klarna account","woocommerce-admin"),content:this.renderConnectStep()}]})}}]),n}(o.Component);function _e(e){var t=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){}))),!0}catch(e){return!1}}();return function(){var n,c=S()(e);if(t){var r=S()(this).constructor;n=Reflect.construct(c,arguments,r)}else n=c.apply(this,arguments);return E()(this,n)}}var he=function(e){v()(n,e);var t=_e(n);function n(){var e;y()(this,n);for(var c=arguments.length,o=new Array(c),i=0;i<c;i++)o[i]=arguments[i];return e=t.call.apply(t,[this].concat(o)),r()(j()(e),"getInitialConfigValues",(function(){return{customer_api:"",customer_password:""}})),r()(j()(e),"validate",(function(e){var t={};return e.customer_api||(t.customer_api=Object(a.__)("Please enter your customer API key ","woocommerce-admin")),e.customer_password||(t.customer_password=Object(a.__)("Please enter your customer password","woocommerce-admin")),t})),r()(j()(e),"updateSettings",function(){var t=_()(b.a.mark((function t(n){var c,r,o,i;return b.a.wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return c=e.props,r=c.updateOptions,o=c.createNotice,i=c.markConfigured,t.next=3,r({woocommerce_eway_settings:{customer_api:n.customer_api,customer_password:n.customer_password,enabled:"yes"}});case 3:t.sent.success?(i("eway"),o("success",Object(a.__)("eWAY connected successfully","woocommerce-admin"))):o("error",Object(a.__)("There was a problem saving your payment settings","woocommerce-admin"));case 5:case"end":return t.stop()}}),t)})));return function(e){return t.apply(this,arguments)}}()),e}return O()(n,[{key:"renderConnectStep",value:function(){var e=this.props.isOptionsRequesting,t=s()({mixedString:Object(a.__)("Your API details can be obtained from your {{link}}eWAY account{{/link}}","woocommerce-admin"),components:{link:Object(o.createElement)(m.Link,{href:"https://www.eway.com.au/",target:"_blank",type:"external"})}});return Object(o.createElement)(m.Form,{initialValues:this.getInitialConfigValues(),onSubmitCallback:this.updateSettings,validate:this.validate},(function(n){var c=n.getInputProps,r=n.handleSubmit;return Object(o.createElement)(o.Fragment,null,Object(o.createElement)(m.TextControl,p()({label:Object(a.__)("Customer API Key","woocommerce-admin"),required:!0},c("customer_api"))),Object(o.createElement)(m.TextControl,p()({label:Object(a.__)("Customer Password","woocommerce-admin"),required:!0},c("customer_password"))),Object(o.createElement)(x.Button,{isPrimary:!0,isBusy:e,onClick:r},Object(a.__)("Proceed","woocommerce-admin")),Object(o.createElement)("p",null,t))}))}},{key:"render",value:function(){var e=this.props,t=e.installStep,n=e.isOptionsRequesting;return Object(o.createElement)(m.Stepper,{isVertical:!0,isPending:!t.isComplete||n,currentStep:t.isComplete?"connect":"install",steps:[t,{key:"connect",label:Object(a.__)("Connect your eWAY account","woocommerce-admin"),content:this.renderConnectStep()}]})}}]),n}(o.Component),ye=Object(L.compose)(Object(R.withSelect)((function(e){return{isOptionsRequesting:(0,e(N.OPTIONS_STORE_NAME).isOptionsUpdating)()}})),Object(R.withDispatch)((function(e){return{createNotice:e("core/notices").createNotice,updateOptions:e(N.OPTIONS_STORE_NAME).updateOptions}})))(he),ge={key_id:"",key_secret:""},Oe=function(e){var t={};return e.key_id||(t.key_id=Object(a.__)("Please enter your Key ID","woocommerce-admin")),e.key_secret||(t.key_secret=Object(a.__)("Please enter your Key Secret","woocommerce-admin")),t},we=function(){var e=_()(b.a.mark((function e(t,n,c,r){return b.a.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.next=2,r({woocommerce_razorpay_settings:{key_id:t.key_id,key_secret:t.key_secret,enabled:"yes"}});case 2:e.sent.success?(c("razorpay"),n("success",Object(a.__)("Razorpay connected successfully","woocommerce-admin"))):n("error",Object(a.__)("There was a problem saving your payment settings","woocommerce-admin"));case 4:case"end":return e.stop()}}),e)})));return function(t,n,c,r){return e.apply(this,arguments)}}(),je=function(e){var t=e.createNotice,n=e.isOptionsRequesting,c=e.markConfigured,r=e.updateOptions,i=s()({mixedString:Object(a.__)("Your key details can be obtained from your {{link}}Razorpay account{{/link}}","woocommerce-admin"),components:{link:Object(o.createElement)(m.Link,{href:"https://dashboard.razorpay.com/#/access/signin",target:"_blank",type:"external"})}});return Object(o.createElement)(m.Form,{initialValues:ge,onSubmitCallback:function(e){return we(e,t,c,r)},validate:Oe},(function(e){var t=e.getInputProps,c=e.handleSubmit;return Object(o.createElement)(o.Fragment,null,Object(o.createElement)(m.TextControl,p()({label:Object(a.__)("Key ID","woocommerce-admin"),required:!0},t("key_id"))),Object(o.createElement)(m.TextControl,p()({label:Object(a.__)("Key Secret","woocommerce-admin"),required:!0},t("key_secret"))),Object(o.createElement)(x.Button,{isPrimary:!0,isBusy:n,onClick:c},Object(a.__)("Proceed","woocommerce-admin")),Object(o.createElement)("p",null,i))}))},ke=function(e){var t=e.createNotice,n=e.installStep,c=e.isOptionsRequesting,r=e.markConfigured,i=e.updateOptions;return Object(o.createElement)(m.Stepper,{isVertical:!0,isPending:!n.isComplete||c,currentStep:n.isComplete?"connect":"install",steps:[n,{key:"connect",label:Object(a.__)("Connect your Razorpay account","woocommerce-admin"),content:je({createNotice:t,isOptionsRequesting:c,markConfigured:r,updateOptions:i})}]})},ve=function(e){var t=e.installStep,n=e.markConfigured,c=Object(R.useSelect)((function(e){return e(N.OPTIONS_STORE_NAME).isOptionsUpdating}))(),r=Object(R.useDispatch)("core/notices").createNotice,a=Object(R.useDispatch)(N.OPTIONS_STORE_NAME).updateOptions;return Object(o.createElement)(ke,{createNotice:r,installStep:t,isOptionsRequesting:c,markConfigured:n,updateOptions:a})},Ce=function(e){var t=e.installStep,n=e.markConfigured;return Object(o.createElement)(m.Stepper,{isVertical:!0,isPending:!t.isComplete,currentStep:t.isComplete?"connect":"install",steps:[t,{key:"connect",label:Object(a.__)("Connect your Mollie account","woocommerce-admin"),content:Object(o.createElement)(Ee,{onFinish:function(){n("mollie")}})}]})},Ee=function(e){var t=e.onFinish,n=Object(o.createElement)(m.Link,{href:"".concat(l.a,"admin.php?page=wc-settings&tab=mollie_settings#mollie-payments-for-woocommerce"),target:"_blank",type:"external"}),c=Object(o.createElement)(m.Link,{href:"https://www.mollie.com/dashboard/signup",target:"_blank",type:"external"}),r=s()({mixedString:Object(a.__)("Create a {{accountLink}}Mollie account{{/accountLink}} and finish the configuration in the {{settingsLink}}Mollie settings.{{/settingsLink}}","woocommerce-admin"),components:{accountLink:c,settingsLink:n}});return Object(o.createElement)(o.Fragment,null,Object(o.createElement)("p",null,r),Object(o.createElement)(x.Button,{isPrimary:!0,onClick:t},Object(a.__)("Continue","woocommerce-admin")))},Pe=function(e){var t=e.installStep,n=e.markConfigured;return Object(o.createElement)(m.Stepper,{isVertical:!0,isPending:!t.isComplete,currentStep:t.isComplete?"connect":"install",steps:[t,{key:"connect",label:Object(a.__)("Connect to your PayU account","woocommerce-admin"),content:Object(o.createElement)(Se,{onFinish:function(){n("payubiz")}})}]})},Se=function(e){var t=e.onFinish,n=Object(o.createElement)(m.Link,{href:"".concat(l.a,"admin.php?page=wc-settings&tab=checkout§ion=payubiz"),target:"_blank",type:"external"}),c=Object(o.createElement)(m.Link,{href:"https://onboarding.payu.in/app/account",target:"_blank",type:"external"}),r=s()({mixedString:Object(a.__)("PayU can be configured under your {{settingsLink}}store settings.{{/settingsLink}} Create your PayU account {{accountLink}}here.{{/accountLink}}","woocommerce-admin"),components:{accountLink:c,settingsLink:n}});return Object(o.createElement)(o.Fragment,null,Object(o.createElement)("p",null,r),Object(o.createElement)(x.Button,{isPrimary:!0,onClick:t},Object(a.__)("Continue","woocommerce-admin")))};n(129),n(135),n(51);function xe(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var c=Object.getOwnPropertySymbols(e);t&&(c=c.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,c)}return n}function Le(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?xe(Object(n),!0).forEach((function(t){r()(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):xe(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}function Re(e){var t,n=e.installStep,c=e.markConfigured,i=e.methodConfig,l=Object(R.useDispatch)(N.OPTIONS_STORE_NAME).updateOptions,u=Object(R.useDispatch)("core/notices").createNotice,d=Object(R.useSelect)((function(e){return(0,e(N.OPTIONS_STORE_NAME).isOptionsUpdating)()})),f=function(){if(i&&i.fields)return i.fields.reduce((function(e,t){return Le(Le({},e),{},r()({},t.name,""))}),{})},h=function(e){return i&&i.fields?i.fields.reduce((function(t,n){if(!e[n.name]){var c=n.title.replace(/([A-Z][a-z]+)/,(function(e){return e.toLowerCase()}));return Le(Le({},t),{},r()({},n.name,Object(a.__)("Please enter your ")+c))}return t}),{}):{}},y=function(){var e=_()(b.a.mark((function e(t){var n;return b.a.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:if(n=i.getOptions?i.getOptions(t):null){e.next=3;break}return e.abrupt("return");case 3:return e.next=5,l(Le({},n));case 5:e.sent.success?(c(i.key),u("success",i.title+Object(a.__)(" connected successfully","woocommerce-admin"))):u("error",Object(a.__)("There was a problem saving your payment settings","woocommerce-admin"));case 7:case"end":return e.stop()}}),e)})));return function(t){return e.apply(this,arguments)}}();return Object(o.createElement)(m.Stepper,{isVertical:!0,isPending:!n.isComplete||d,currentStep:n.isComplete?"connect":"install",steps:[n,{key:"connect",label:Object(a.sprintf)(Object(a.__)("Connect your %(title)s account","woocommerce-admin"),{title:i.title}),content:(t=s()({mixedString:Object(a.__)("Your API details can be obtained from your {{link/}}","woocommerce-admin"),components:{link:Object(o.createElement)(m.Link,{href:i.apiDetailsLink,target:"_blank",type:"external"},Object(a.sprintf)(Object(a.__)("%(title)s account","woocommerce-admin"),{title:i.title}))}}),Object(o.createElement)(m.Form,{initialValues:f(),onSubmitCallback:y,validate:h},(function(e){var n=e.getInputProps,c=e.handleSubmit;return Object(o.createElement)(o.Fragment,null,(i.fields||[]).map((function(e){return Object(o.createElement)(m.TextControl,p()({key:e.name,label:e.title,required:!0},n(e.name)))})),Object(o.createElement)(x.Button,{isPrimary:!0,isBusy:d,onClick:c},Object(a.__)("Proceed","woocommerce-admin")),Object(o.createElement)("p",null,t))})))}]})}function Ne(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var c=Object.getOwnPropertySymbols(e);t&&(c=c.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,c)}return n}function Ae(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?Ne(Object(n),!0).forEach((function(t){r()(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):Ne(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}var Te=Object(l.g)("wcAdminAssetUrl","");function Me(e){var t=e.activePlugins,n=e.countryCode,c=e.createNotice,r=e.installAndActivatePlugins,i=e.onboardingStatus,u=e.options,p=e.profileItems,d=e.paypalOnboardingStatus,b=e.loadingPaypalStatus,f=i.stripeSupportedCountries,_=void 0===f?[]:f,h=i.wcPayIsConnected,y=void 0!==h&&h,g=i.enabledPaymentGateways,O=void 0===g?[]:g,w=(p.industry||[]).some((function(e){return"cbd-other-hemp-derived-products"===e.slug})),j=u.woocommerce_stripe_settings&&("no"===u.woocommerce_stripe_settings.testmode?u.woocommerce_stripe_settings.publishable_key&&u.woocommerce_stripe_settings.secret_key:u.woocommerce_stripe_settings.test_publishable_key&&u.woocommerce_stripe_settings.test_secret_key),k=[{key:"stripe",title:Object(a.__)("Credit cards - powered by Stripe","woocommerce-admin"),content:Object(o.createElement)(o.Fragment,null,Object(a.__)("Accept debit and credit cards in 135+ currencies, methods such as Alipay, and one-touch checkout with Apple Pay.","woocommerce-admin")),before:Object(o.createElement)("img",{src:l.e+"images/stripe.png",alt:""}),visible:_.includes(n)&&!w,plugins:["woocommerce-gateway-stripe"],container:Object(o.createElement)(G,null),isConfigured:j,isEnabled:u.woocommerce_stripe_settings&&"yes"===u.woocommerce_stripe_settings.enabled,optionName:"woocommerce_stripe_settings"},{key:"paystack",title:Object(a.__)("Paystack","woocommerce-admin"),content:Object(o.createElement)(o.Fragment,null,Object(a.__)("Paystack helps African merchants accept one-time and recurring payments online with a modern, safe, and secure payment gateway.","woocommerce-admin")),before:Object(o.createElement)("img",{src:Te+"onboarding/paystack.png",alt:"Paystack logo"}),visible:["ZA","GH","NG"].includes(n)&&!w,plugins:["woo-paystack"],container:Object(o.createElement)(Re,null),isConfigured:u.woocommerce_paystack_settings&&u.woocommerce_paystack_settings.live_public_key&&u.woocommerce_paystack_settings.live_secret_key,isEnabled:O.includes("paystack"),optionName:"woocommerce_paystack_settings",apiDetailsLink:"https://dashboard.paystack.com/#/settings/developer",fields:[{name:"live_public_key",title:Object(a.__)("Live Public Key","woocommerce-admin")},{name:"live_secret_key",title:Object(a.__)("Live Secret Key","woocommerce-admin")}],getOptions:function(e){return{woocommerce_currency:"ZAR",woocommerce_paystack_settings:Ae(Ae({},e),{},{testmode:"no"})}}},{key:"payfast",title:Object(a.__)("PayFast","woocommerce-admin"),content:Object(o.createElement)(o.Fragment,null,Object(a.__)("The PayFast extension for WooCommerce enables you to accept payments by Credit Card and EFT via one of South Africa’s most popular payment gateways. No setup fees or monthly subscription costs.","woocommerce-admin"),Object(o.createElement)("p",null,Object(a.__)("Selecting this extension will configure your store to use South African rands as the selected currency.","woocommerce-admin"))),before:Object(o.createElement)("img",{src:l.e+"images/payfast.png",alt:"PayFast logo"}),visible:["ZA"].includes(n)&&!w,plugins:["woocommerce-payfast-gateway"],container:Object(o.createElement)(Re,null),isConfigured:u.woocommerce_payfast_settings&&u.woocommerce_payfast_settings.merchant_id&&u.woocommerce_payfast_settings.merchant_key&&u.woocommerce_payfast_settings.pass_phrase,isEnabled:u.woocommerce_payfast_settings&&"yes"===u.woocommerce_payfast_settings.enabled,optionName:"woocommerce_payfast_settings",apiDetailsLink:"https://www.payfast.co.za/",fields:[{name:"merchant_id",title:Object(a.__)("Merchant ID","woocommerce-admin")},{name:"merchant_key",title:Object(a.__)("Merchant Key","woocommerce-admin")},{name:"pass_phrase",title:Object(a.__)("Passphrase","woocommerce-admin")}],getOptions:function(e){return{woocommerce_currency:"ZAR",woocommerce_payfast_settings:Ae(Ae({},e),{},{testmode:"no"})}}},{key:"mercadopago",title:Object(a.__)("Mercado Pago Checkout Pro & Custom","woocommerce-admin"),content:Object(o.createElement)(o.Fragment,null,Object(a.__)("Accept credit and debit cards, offline (cash or bank transfer) and logged-in payments with money in Mercado Pago. Safe and secure payments with the leading payment processor in LATAM.","woocommerce-admin")),before:Object(o.createElement)("img",{src:Te+"onboarding/mercadopago.png",alt:""}),visible:["AR","BR","CL","CO","MX","PE","UY"].includes(n),plugins:["woocommerce-mercadopago"],container:Object(o.createElement)(pe,null),isConfigured:t.includes("woocommerce-mercadopago"),isEnabled:u["woocommerce_woo-mercado-pago-basic_settings"]&&"yes"===u["woocommerce_woo-mercado-pago-basic_settings"].enabled,optionName:"woocommerce_woo-mercado-pago-basic_settings"},{key:"paypal",title:Object(a.__)("PayPal Payments","woocommerce-admin"),content:Object(o.createElement)(o.Fragment,null,Object(a.__)("Safe and secure payments using credit cards or your customer's PayPal account.","woocommerce-admin")),before:Object(o.createElement)("img",{src:l.e+"images/paypal.png",alt:""}),visible:!w,plugins:[ae],container:Object(o.createElement)(me,null),isConfigured:d&&d.production&&d.production.onboarded,isEnabled:O.includes("ppcp-gateway"),optionName:"woocommerce_ppcp-gateway_settings",loading:!!t.includes(ae)&&b},{key:"klarna_checkout",title:Object(a.__)("Klarna Checkout","woocommerce-admin"),content:Object(a.__)("Choose the payment that you want, pay now, pay later or slice it. No credit card numbers, no passwords, no worries.","woocommerce-admin"),before:Object(o.createElement)("img",{src:l.e+"images/klarna-black.png",alt:""}),visible:["SE","FI","NO"].includes(n)&&!w,plugins:["klarna-checkout-for-woocommerce"],container:Object(o.createElement)(fe,{plugin:"checkout"}),isConfigured:t.includes("klarna-checkout-for-woocommerce"),isEnabled:u.woocommerce_kco_settings&&"yes"===u.woocommerce_kco_settings.enabled,optionName:"woocommerce_kco_settings"},{key:"klarna_payments",title:Object(a.__)("Klarna Payments","woocommerce-admin"),content:Object(a.__)("Choose the payment that you want, pay now, pay later or slice it. No credit card numbers, no passwords, no worries.","woocommerce-admin"),before:Object(o.createElement)("img",{src:l.e+"images/klarna-black.png",alt:""}),visible:["DK","DE","AT","NL","CH","BE","SP","PL","FR","IT","GB"].includes(n)&&!w,plugins:["klarna-payments-for-woocommerce"],container:Object(o.createElement)(fe,{plugin:"payments"}),isConfigured:t.includes("klarna-payments-for-woocommerce"),isEnabled:u.woocommerce_klarna_payments_settings&&"yes"===u.woocommerce_klarna_payments_settings.enabled,optionName:"woocommerce_klarna_payments_settings"},{key:"mollie",title:Object(a.__)("Mollie Payments for WooCommerce","woocommerce-admin"),before:Object(o.createElement)(F,null),plugins:["mollie-payments-for-woocommerce"],isConfigured:t.includes("mollie-payments-for-woocommerce"),content:Object(o.createElement)(o.Fragment,null,Object(a.__)("Effortless payments by Mollie: Offer global and local payment methods, get onboarded in minutes, and supported in your language.","woocommerce-admin")),visible:["FR","DE","GB","AT","CH","ES","IT","PL","FI","NL","BE"].includes(n),container:Object(o.createElement)(Ce,null),isEnabled:u.woocommerce_mollie_payments_settings&&"yes"===u.woocommerce_mollie_payments_settings.enabled,optionName:"woocommerce_mollie_payments_settings"},{key:"square",title:Object(a.__)("Square","woocommerce-admin"),content:Object(o.createElement)(o.Fragment,null,Object(a.__)("Securely accept credit and debit cards with one low rate, no surprise fees (custom rates available). Sell online and in store and track sales and inventory in one place.","woocommerce-admin"),w&&Object(o.createElement)("span",{className:"text-style-strong"},Object(a.__)(" Selling CBD products is only supported by Square.","woocommerce-admin"))),before:Object(o.createElement)("img",{src:"".concat(l.e,"images/square-black.png"),alt:""}),visible:w&&["US"].includes(n)||["brick-mortar","brick-mortar-other"].includes(p.selling_venues)&&["US","CA","JP","GB","AU"].includes(n),plugins:["woocommerce-square"],container:Object(o.createElement)(ee,null),isConfigured:u.wc_square_refresh_tokens&&u.wc_square_refresh_tokens.length,isEnabled:u.woocommerce_square_credit_card_settings&&"yes"===u.woocommerce_square_credit_card_settings.enabled,optionName:"woocommerce_square_credit_card_settings",hasCbdIndustry:w},{key:"eway",title:Object(a.__)("eWAY","woocommerce-admin"),content:Object(o.createElement)(o.Fragment,null,Object(a.__)("The eWAY extension for WooCommerce allows you to take credit card payments directly on your store without redirecting your customers to a third party site to make payment.","woocommerce-admin")),before:Object(o.createElement)("img",{src:l.e+"images/eway-logo.jpg",alt:"eWAY logo"}),visible:["AU","NZ"].includes(n)&&!w,plugins:["woocommerce-gateway-eway"],container:Object(o.createElement)(ye,null),isConfigured:u.woocommerce_eway_settings&&u.woocommerce_eway_settings.customer_api&&u.woocommerce_eway_settings.customer_password,isEnabled:u.woocommerce_eway_settings&&"yes"===u.woocommerce_eway_settings.enabled,optionName:"woocommerce_eway_settings"},{key:"razorpay",title:Object(a.__)("Razorpay","woocommerce-admin"),content:Object(o.createElement)(o.Fragment,null,Object(a.__)("The official Razorpay extension for WooCommerce allows you to accept credit cards, debit cards, netbanking, wallet, and UPI payments.","woocommerce-admin")),before:Object(o.createElement)(q,null),visible:"IN"===n&&!w,plugins:["woo-razorpay"],container:Object(o.createElement)(ve,null),isConfigured:u.woocommerce_razorpay_settings&&u.woocommerce_razorpay_settings.key_id&&u.woocommerce_razorpay_settings.key_secret,isEnabled:u.woocommerce_razorpay_settings&&"yes"===u.woocommerce_razorpay_settings.enabled,optionName:"woocommerce_razorpay_settings"},{key:"payubiz",title:Object(a.__)("PayU for WooCommerce","woocommerce-admin"),content:Object(o.createElement)(o.Fragment,null,Object(a.__)("Enable PayU’s exclusive plugin for WooCommerce to start accepting payments in 100+ payment methods available in India including credit cards, debit cards, UPI, & more!","woocommerce-admin")),before:Object(o.createElement)(V,null),visible:"IN"===n&&!w,plugins:["payu-india"],container:Object(o.createElement)(Pe,null),isConfigured:t.includes("payu-india"),isEnabled:O.includes("payubiz"),optionName:"woocommerce_payubiz_settings"},{key:"cod",title:Object(a.__)("Cash on delivery","woocommerce-admin"),content:Object(a.__)("Take payments in cash upon delivery.","woocommerce-admin"),before:Object(o.createElement)(B,null),visible:!w,isEnabled:u.woocommerce_cod_settings&&"yes"===u.woocommerce_cod_settings.enabled,optionName:"woocommerce_cod_settings"},{key:"bacs",title:Object(a.__)("Direct bank transfer","woocommerce-admin"),content:Object(a.__)("Take payments via bank transfer.","woocommerce-admin"),before:Object(o.createElement)(U,null),visible:!w,container:Object(o.createElement)(M,null),isConfigured:u.woocommerce_bacs_accounts&&u.woocommerce_bacs_accounts.length,isEnabled:u.woocommerce_bacs_settings&&"yes"===u.woocommerce_bacs_settings.enabled,optionName:"woocommerce_bacs_settings"}];if(window.wcAdminFeatures.wcpay){var v=Object(o.createElement)(m.Link,{href:"https://wordpress.com/tos/",target:"_blank",type:"external"}),C=s()({mixedString:Object(a.__)('By clicking "Set up," you agree to the {{link}}Terms of Service{{/link}}',"woocommerce-admin"),components:{link:v}}),E=Object(o.createElement)(m.Link,{href:"https://docs.woocommerce.com/document/payments/testing/dev-mode/",target:"_blank",type:"external"}),P=s()({mixedString:Object(a.__)("Setting up a store for a client? {{link}}Start here{{/link}}","woocommerce-admin"),components:{link:E}}),S=Object(o.createElement)(m.Link,{href:Object(l.f)("admin.php?page=wc-settings&tab=checkout§ion=woocommerce_payments"),type:"wp-admin"},Object(a.__)("Settings","woocommerce-admin")),x=Object(o.createElement)(m.Link,{href:"https://docs.woocommerce.com/document/payments/faq/fees/",target:"_blank",type:"external"}),L=s()({mixedString:Object(a.__)("Accept credit card payments the easy way! {{feesLink}}No setup fees. No monthly fees.{{/feesLink}}","woocommerce-admin"),components:{feesLink:x}});k.unshift({key:"wcpay",title:Object(a.__)("WooCommerce Payments","woocommerce-admin"),content:Object(o.createElement)(o.Fragment,null,L,y&&S,!y&&Object(o.createElement)("p",null,C),p.setup_client&&Object(o.createElement)("p",null,P),Object(o.createElement)(te.b,null)),before:Object(o.createElement)(I,null),onClick:function(e,t){return Object(te.c)(t,c,r)},visible:Object(te.d)(n)&&!w,plugins:["woocommerce-payments"],container:Object(o.createElement)(te.a,null),isConfigured:y,isEnabled:u.woocommerce_woocommerce_payments_settings&&"yes"===u.woocommerce_woocommerce_payments_settings.enabled,optionName:"woocommerce_woocommerce_payments_settings"})}return k.filter((function(e){return e.visible}))}}}]);
|
1 |
+
(window.__wcAdmin_webpackJsonp=window.__wcAdmin_webpackJsonp||[]).push([[6],{607:function(e,t,n){"use strict";n.d(t,"a",(function(){return r}));n(37),n(49),n(139);var c=n(26);function r(e){var t=Object(c.dispatch)("core/notices").createNotice;e.error_data&&e.errors&&Object.keys(e.errors).length?Object.keys(e.errors).forEach((function(n){t("error",e.errors[n].join(" "))})):e.message&&t(e.code?"error":"success",e.message)}},609:function(e,t,n){"use strict";n.r(t);var c=n(43),r=n.n(c),o=n(0),a=n(2),i=n(50),s=n(99),l=n.n(s),m=n(145),u=n(610);t.default=function(){var e="1"===Object(i.getQuery)()["wcpay-connection-success"],t=Object(o.useState)(e),n=r()(t,2),c=n[0],s=n[1];if(!c)return null;var p=function(){s(!1),Object(i.updateQueryString)({"wcpay-connection-success":void 0})},d=Object(a.__)("Help us build a better WooCommerce Payments experience","woocommerce-admin"),b=l()({mixedString:Object(a.__)("By agreeing to share non-sensitive {{link}}usage data{{/link}}, you’ll help us improve features and optimize the WooCommerce Payments experience. You can opt out at any time.","woocommerce-admin"),components:{link:Object(o.createElement)(m.Link,{href:"https://woocommerce.com/usage-tracking",target:"_blank",type:"external"})}});return Object(o.createElement)(u.a,{isDismissible:!1,title:d,message:b,acceptActionText:Object(a.__)("I agree","woocommerce-admin"),dismissActionText:Object(a.__)("No thanks","woocommerce-admin"),onContinue:p,onClose:p})}},610:function(e,t,n){"use strict";n(64);var c=n(16),r=n.n(c),o=n(134),a=n.n(o),i=n(22),s=n.n(i),l=n(23),m=n.n(l),u=n(24),p=n.n(u),d=n(25),b=n.n(d),_=n(14),f=n.n(_),h=n(0),y=n(2),g=n(65),O=n(26),w=n(99),j=n.n(w),k=n(4),v=n(145),C=n(59);function E(e){var t=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){}))),!0}catch(e){return!1}}();return function(){var n,c=f()(e);if(t){var r=f()(this).constructor;n=Reflect.construct(c,arguments,r)}else n=c.apply(this,arguments);return b()(this,n)}}var P=function(e){p()(c,e);var t,n=E(c);function c(e){var t;return s()(this,c),(t=n.call(this,e)).state={isLoadingScripts:!1,isRequestStarted:!1},t}return m()(c,[{key:"componentDidUpdate",value:(t=a()(r.a.mark((function e(t,n){var c,o,a,i,s,l,m,u,p,d;return r.a.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:if(c=this.props,o=c.hasErrors,a=c.isRequesting,i=c.onClose,s=c.onContinue,l=c.createNotice,m=this.state,u=m.isLoadingScripts,m.isRequestStarted){e.next=4;break}return e.abrupt("return");case 4:p=!a&&!u&&(t.isRequesting||n.isLoadingScripts)&&!o,d=!a&&t.isRequesting&&o,p&&(i(),s()),d&&(l("error",Object(y.__)("There was a problem updating your preferences","woocommerce-admin")),i());case 8:case"end":return e.stop()}}),e,this)}))),function(e,n){return t.apply(this,arguments)})},{key:"updateTracking",value:function(e){var t=this,n=e.allowTracking,c=this.props.updateOptions;n&&"function"==typeof window.wcTracks.enable?(this.setState({isLoadingScripts:!0}),window.wcTracks.enable((function(){t._isMounted&&t.setState({isLoadingScripts:!1})}))):n||(window.wcTracks.isEnabled=!1);var r=n?"yes":"no";this.setState({isRequestStarted:!0}),c({woocommerce_allow_tracking:r})}},{key:"componentDidMount",value:function(){this._isMounted=!0}},{key:"componentWillUnmount",value:function(){this._isMounted=!1}},{key:"render",value:function(){var e=this;if(this.props.allowTracking){var t=this.props,n=t.onClose,c=t.onContinue;return n(),c(),null}var r=this.props,o=r.isRequesting,a=r.title,i=void 0===a?Object(y.__)("Build a better WooCommerce","woocommerce-admin"):a,s=r.message,l=void 0===s?j()({mixedString:Object(y.__)("Get improved features and faster fixes by sharing non-sensitive data via {{link}}usage tracking{{/link}} that shows us how WooCommerce is used. No personal data is tracked or stored.","woocommerce-admin"),components:{link:Object(h.createElement)(v.Link,{href:"https://woocommerce.com/usage-tracking",target:"_blank",type:"external"})}}):s,m=r.dismissActionText,u=void 0===m?Object(y.__)("No thanks","woocommerce-admin"):m,p=r.acceptActionText,d=void 0===p?Object(y.__)("Yes, count me in!","woocommerce-admin"):p,b=this.state.isRequestStarted&&o;return Object(h.createElement)(k.Modal,{title:i,isDismissible:this.props.isDismissible,onRequestClose:function(){return e.props.onClose()},className:"woocommerce-usage-modal"},Object(h.createElement)("div",{className:"woocommerce-usage-modal__wrapper"},Object(h.createElement)("div",{className:"woocommerce-usage-modal__message"},l),Object(h.createElement)("div",{className:"woocommerce-usage-modal__actions"},Object(h.createElement)(k.Button,{isSecondary:!0,isBusy:b,onClick:function(){return e.updateTracking({allowTracking:!1})}},u),Object(h.createElement)(k.Button,{isPrimary:!0,isBusy:b,onClick:function(){return e.updateTracking({allowTracking:!0})}},d))))}}]),c}(h.Component);t.a=Object(g.compose)(Object(O.withSelect)((function(e){var t=e(C.OPTIONS_STORE_NAME),n=t.getOption,c=t.getOptionsUpdatingError,r=t.isOptionsUpdating;return{allowTracking:"yes"===n("woocommerce_allow_tracking"),isRequesting:Boolean(r()),hasErrors:Boolean(c())}})),Object(O.withDispatch)((function(e){return{createNotice:e("core/notices").createNotice,updateOptions:e(C.OPTIONS_STORE_NAME).updateOptions}})))(P)},615:function(e,t,n){"use strict";n.d(t,"d",(function(){return w})),n.d(t,"c",(function(){return P})),n.d(t,"a",(function(){return O})),n.d(t,"b",(function(){return c.default}));var c=n(609),r=(n(64),n(22)),o=n.n(r),a=n(23),i=n.n(a),s=n(24),l=n.n(s),m=n(25),u=n.n(m),p=n(14),d=n.n(p),b=n(2),_=n(0),f=n(26),h=n(50);function y(e){var t=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){}))),!0}catch(e){return!1}}();return function(){var n,c=d()(e);if(t){var r=d()(this).constructor;n=Reflect.construct(c,arguments,r)}else n=c.apply(this,arguments);return u()(this,n)}}var g=function(e){l()(n,e);var t=y(n);function n(){return o()(this,n),t.apply(this,arguments)}return i()(n,[{key:"componentDidMount",value:function(){var e=this.props,t=e.createNotice,n=e.markConfigured;Object(h.getQuery)()["wcpay-connection-success"]&&(t("success",Object(b.__)("WooCommerce Payments connected successfully.","woocommerce-admin")),n("wcpay",{"wcpay-connection-success":"1"}))}},{key:"render",value:function(){return null}}]),n}(_.Component),O=Object(f.withDispatch)((function(e){return{createNotice:e("core/notices").createNotice}}))(g);n(107);function w(e){var t=["US","PR"];return window.wcAdminFeatures&&window.wcAdminFeatures["wcpay/support-international-countries"]&&t.push("AU","CA","GB","IE","NZ"),t.includes(e)}var j=n(95),k=n.n(j),v=n(59),C=n(92),E=n(607);function P(e,t,n){var c=Object(b.__)("There was an error connecting to WooCommerce Payments. Please try again or connect later in store settings.","woocommerce-admin");n(["woocommerce-payments"]).then((function(){Object(C.recordEvent)("woocommerce_payments_install",{context:"tasklist"}),k()({path:v.WC_ADMIN_NAMESPACE+"/plugins/connect-wcpay",method:"POST"}).then((function(e){window.location=e.connectUrl})).catch((function(){t("error",c),e()}))})).catch((function(t){Object(E.a)(t),e()}))}},635:function(e,t,n){"use strict";n.d(t,"a",(function(){return Me}));n(37),n(53),n(60),n(49),n(61);var c=n(7),r=n.n(c),o=n(0),a=(n(107),n(140),n(41),n(2)),i=n(99),s=n.n(i),l=n(85),m=n(145),u=(n(64),n(80)),p=n.n(u),d=n(16),b=n.n(d),_=n(134),f=n.n(_),h=n(22),y=n.n(h),g=n(23),O=n.n(g),w=n(18),j=n.n(w),k=n(24),v=n.n(k),C=n(25),E=n.n(C),P=n(14),S=n.n(P),x=(n(66),n(4)),L=n(65),R=n(26),N=n(59);function A(e){var t=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){}))),!0}catch(e){return!1}}();return function(){var n,c=S()(e);if(t){var r=S()(this).constructor;n=Reflect.construct(c,arguments,r)}else n=c.apply(this,arguments);return E()(this,n)}}var T=function(e){v()(n,e);var t=A(n);function n(){var e;y()(this,n);for(var c=arguments.length,o=new Array(c),i=0;i<c;i++)o[i]=arguments[i];return e=t.call.apply(t,[this].concat(o)),r()(j()(e),"getInitialConfigValues",(function(){return{account_name:"",account_number:"",bank_name:"",sort_code:"",iban:"",bic:""}})),r()(j()(e),"validate",(function(e){var t={};return e.account_number||e.iban||(t.account_number=t.iban=Object(a.__)("Please enter an account number or IBAN","woocommerce-admin")),t})),r()(j()(e),"updateSettings",function(){var t=f()(b.a.mark((function t(n){var c,r,o,i;return b.a.wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return c=e.props,r=c.updateOptions,o=c.createNotice,i=c.markConfigured,t.next=3,r({woocommerce_bacs_settings:{enabled:"yes"},woocommerce_bacs_accounts:[n]});case 3:t.sent.success?(i("bacs"),o("success",Object(a.__)("Direct bank transfer details added successfully","woocommerce-admin"))):o("error",Object(a.__)("There was a problem saving your payment settings","woocommerce-admin"));case 5:case"end":return t.stop()}}),t)})));return function(e){return t.apply(this,arguments)}}()),e}return O()(n,[{key:"render",value:function(){var e=this.props.isOptionsRequesting;return Object(o.createElement)(m.Form,{initialValues:this.getInitialConfigValues(),onSubmitCallback:this.updateSettings,validate:this.validate},(function(t){var n=t.getInputProps,c=t.handleSubmit;return Object(o.createElement)(o.Fragment,null,Object(o.createElement)(m.H,null,Object(a.__)("Add your bank details","woocommerce-admin")),Object(o.createElement)("p",null,Object(a.__)("These details are required to receive payments via bank transfer","woocommerce-admin")),Object(o.createElement)("div",{className:"woocommerce-task-payment-method__fields"},Object(o.createElement)(m.TextControl,p()({label:Object(a.__)("Account name","woocommerce-admin"),required:!0},n("account_name"))),Object(o.createElement)(m.TextControl,p()({label:Object(a.__)("Account number","woocommerce-admin"),required:!0},n("account_number"))),Object(o.createElement)(m.TextControl,p()({label:Object(a.__)("Bank name","woocommerce-admin"),required:!0},n("bank_name"))),Object(o.createElement)(m.TextControl,p()({label:Object(a.__)("Sort code","woocommerce-admin"),required:!0},n("sort_code"))),Object(o.createElement)(m.TextControl,p()({label:Object(a.__)("IBAN","woocommerce-admin"),required:!0},n("iban"))),Object(o.createElement)(m.TextControl,p()({label:Object(a.__)("BIC / Swift","woocommerce-admin"),required:!0},n("bic")))),Object(o.createElement)(x.Button,{isPrimary:!0,isBusy:e,onClick:c},Object(a.__)("Save","woocommerce-admin")))}))}}]),n}(o.Component),M=Object(L.compose)(Object(R.withSelect)((function(e){return{isOptionsRequesting:(0,e(N.OPTIONS_STORE_NAME).isOptionsUpdating)()}})),Object(R.withDispatch)((function(e){return{createNotice:e("core/notices").createNotice,updateOptions:e(N.OPTIONS_STORE_NAME).updateOptions}})))(T),U=function(){return Object(o.createElement)("svg",{width:"96",height:"32",viewBox:"0 0 96 32",fill:"none",xmlns:"http://www.w3.org/2000/svg"},Object(o.createElement)("rect",{width:"32",height:"32",rx:"16",fill:"#8E9196"}),Object(o.createElement)("mask",{id:"bacs0","mask-type":"alpha",maskUnits:"userSpaceOnUse",x:"8",y:"8",width:"16",height:"16"},Object(o.createElement)("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M8.875 12.25L16 8.5L23.125 12.25V13.75H8.875V12.25ZM16 10.195L19.9075 12.25H12.0925L16 10.195ZM10.75 15.25H12.25V20.5H10.75V15.25ZM15.25 20.5V15.25H16.75V20.5H15.25ZM23.125 23.5V22H8.875V23.5H23.125ZM19.75 15.25H21.25V20.5H19.75V15.25Z",fill:"white"})),Object(o.createElement)("g",{mask:"url(#bacs0)"},Object(o.createElement)("rect",{x:"7",y:"7",width:"18",height:"18",fill:"white"})),Object(o.createElement)("mask",{id:"bacs1","mask-type":"alpha",maskUnits:"userSpaceOnUse",x:"39",y:"10",width:"18",height:"12"},Object(o.createElement)("path",{d:"M39 17L53.17 17L49.59 20.59L51 22L57 16L51 10L49.59 11.41L53.17 15L39 15L39 17Z",fill:"white"})),Object(o.createElement)("g",{mask:"url(#bacs1)"},Object(o.createElement)("rect",{x:"60",y:"28",width:"24",height:"24",transform:"rotate(-180 60 28)",fill:"#8E9196"})),Object(o.createElement)("rect",{x:"64",width:"32",height:"32",rx:"16",fill:"#8E9196"}),Object(o.createElement)("mask",{id:"bacs2","mask-type":"alpha",maskUnits:"userSpaceOnUse",x:"72",y:"8",width:"16",height:"16"},Object(o.createElement)("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M72.875 12.25L80 8.5L87.125 12.25V13.75H72.875V12.25ZM80 10.195L83.9075 12.25H76.0925L80 10.195ZM74.75 15.25H76.25V20.5H74.75V15.25ZM79.25 20.5V15.25H80.75V20.5H79.25ZM87.125 23.5V22H72.875V23.5H87.125ZM83.75 15.25H85.25V20.5H83.75V15.25Z",fill:"white"})),Object(o.createElement)("g",{mask:"url(#bacs2)"},Object(o.createElement)("rect",{x:"71",y:"7",width:"18",height:"18",fill:"white"})))},B=function(){return Object(o.createElement)("svg",{width:"96",height:"32",viewBox:"0 0 96 32",fill:"none",xmlns:"http://www.w3.org/2000/svg"},Object(o.createElement)("rect",{width:"32",height:"32",rx:"16",fill:"#8E9196"}),Object(o.createElement)("mask",{id:"cod-mask-0","mask-type":"alpha",maskUnits:"userSpaceOnUse",x:"7",y:"10",width:"18",height:"12"},Object(o.createElement)("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M22 13H19.75V10H9.25C8.425 10 7.75 10.675 7.75 11.5V19.75H9.25C9.25 20.995 10.255 22 11.5 22C12.745 22 13.75 20.995 13.75 19.75H18.25C18.25 20.995 19.255 22 20.5 22C21.745 22 22.75 20.995 22.75 19.75H24.25V16L22 13ZM21.625 14.125L23.095 16H19.75V14.125H21.625ZM10.75 19.75C10.75 20.1625 11.0875 20.5 11.5 20.5C11.9125 20.5 12.25 20.1625 12.25 19.75C12.25 19.3375 11.9125 19 11.5 19C11.0875 19 10.75 19.3375 10.75 19.75ZM13.165 18.25C12.7525 17.7925 12.1675 17.5 11.5 17.5C10.8325 17.5 10.2475 17.7925 9.835 18.25H9.25V11.5H18.25V18.25H13.165ZM19.75 19.75C19.75 20.1625 20.0875 20.5 20.5 20.5C20.9125 20.5 21.25 20.1625 21.25 19.75C21.25 19.3375 20.9125 19 20.5 19C20.0875 19 19.75 19.3375 19.75 19.75Z",fill:"white"})),Object(o.createElement)("g",{mask:"url(#cod-mask-0)"},Object(o.createElement)("rect",{x:"7",y:"7",width:"18",height:"18",fill:"white"})),Object(o.createElement)("mask",{id:"cod-mask-1","mask-type":"alpha",maskUnits:"userSpaceOnUse",x:"39",y:"10",width:"18",height:"12"},Object(o.createElement)("path",{d:"M39 17L53.17 17L49.59 20.59L51 22L57 16L51 10L49.59 11.41L53.17 15L39 15L39 17Z",fill:"white"})),Object(o.createElement)("g",{mask:"url(#cod-mask-1)"},Object(o.createElement)("rect",{x:"60",y:"28",width:"24",height:"24",transform:"rotate(-180 60 28)",fill:"#8E9196"})),Object(o.createElement)("rect",{x:"64",width:"32",height:"32",rx:"16",fill:"#8E9196"}),Object(o.createElement)("mask",{id:"cod-mask-2","mask-type":"alpha",maskUnits:"userSpaceOnUse",x:"76",y:"9",width:"8",height:"14"},Object(o.createElement)("path",{d:"M80.2926 15.175C78.5901 14.7325 78.0426 14.275 78.0426 13.5625C78.0426 12.745 78.8001 12.175 80.0676 12.175C81.4026 12.175 81.8976 12.8125 81.9426 13.75H83.6001C83.5476 12.46 82.7601 11.275 81.1926 10.8925V9.25H78.9426V10.87C77.4876 11.185 76.3176 12.13 76.3176 13.5775C76.3176 15.31 77.7501 16.1725 79.8426 16.675C81.7176 17.125 82.0926 17.785 82.0926 18.4825C82.0926 19 81.7251 19.825 80.0676 19.825C78.5226 19.825 77.9151 19.135 77.8326 18.25H76.1826C76.2726 19.8925 77.5026 20.815 78.9426 21.1225V22.75H81.1926V21.1375C82.6551 20.86 83.8176 20.0125 83.8176 18.475C83.8176 16.345 81.9951 15.6175 80.2926 15.175Z",fill:"white"})),Object(o.createElement)("g",{mask:"url(#cod-mask-2)"},Object(o.createElement)("rect",{x:"71",y:"7",width:"18",height:"18",fill:"white"})))},I=function(){return Object(o.createElement)("svg",{width:"100",height:"64",viewBox:"-10 0 120 64",fill:"none",xmlns:"http://www.w3.org/2000/svg"},Object(o.createElement)("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M9.78073 0.5H91.1787C96.3299 0.5 100.5 4.77335 100.5 10.0522V41.8929C100.5 47.1717 96.3299 51.4451 91.1787 51.4451H61.9883L65.9948 61.5L48.3742 51.4451H9.82161C4.67036 51.4451 0.500298 47.1717 0.500298 41.8929V10.0522C0.459415 4.81524 4.62947 0.5 9.78073 0.5Z",fill:"#7F54B3"}),Object(o.createElement)("path",{d:"M5.48791 9.1725C6.06028 8.37648 6.91882 7.95752 8.06354 7.87373C10.1486 7.70615 11.3342 8.71165 11.6204 10.8902C12.8877 19.6464 14.2778 27.0619 15.7495 33.1368L24.7029 15.6663C25.5206 14.0743 26.5426 13.2364 27.7691 13.1526C29.568 13.0269 30.6718 14.2 31.1215 16.6718C32.1436 22.2439 33.4519 26.9781 35.0054 31.0001C36.0684 20.3586 37.8672 12.6917 40.402 7.95753C41.0152 6.78445 41.9146 6.19791 43.1002 6.11412C44.0405 6.03033 44.8991 6.3236 45.6759 6.95203C46.4526 7.58047 46.8615 8.37648 46.9432 9.34008C46.9841 10.0942 46.8615 10.7226 46.5344 11.3511C44.94 14.3676 43.6317 19.4369 42.5688 26.4754C41.5467 33.3044 41.1787 38.6251 41.424 42.4376C41.5058 43.485 41.3423 44.4067 40.9334 45.2027C40.4428 46.1244 39.707 46.6272 38.7666 46.711C37.7037 46.7948 36.5998 46.292 35.5369 45.1608C31.7348 41.1807 28.7094 35.2316 26.5018 27.3133C23.8444 32.6759 21.882 36.6979 20.6146 39.3792C18.2025 44.1134 16.1584 46.5434 14.4413 46.6691C13.3374 46.7529 12.3971 45.7893 11.5795 43.7783C9.49445 38.2899 7.24589 27.6904 4.83379 11.9795C4.71114 10.8902 4.91555 9.92662 5.48791 9.1725Z",fill:"white"}),Object(o.createElement)("path",{d:"M93.3864 15.7499C91.9146 13.1105 89.7478 11.5185 86.8451 10.89C86.0683 10.7225 85.3324 10.6387 84.6374 10.6387C80.7127 10.6387 77.5238 12.7335 75.0299 16.923C72.904 20.4841 71.8411 24.4223 71.8411 28.7376C71.8411 31.9635 72.4952 34.7286 73.8034 37.0329C75.2752 39.6723 77.442 41.2644 80.3447 41.8928C81.1215 42.0604 81.8574 42.1442 82.5524 42.1442C86.518 42.1442 89.7069 40.0494 92.1599 35.8598C94.2858 32.2568 95.3488 28.3186 95.3488 24.0034C95.3488 20.7355 94.6946 18.0123 93.3864 15.7499ZM88.2351 27.355C87.6628 30.1201 86.6407 32.173 85.128 33.5556C83.9424 34.6449 82.8386 35.1057 81.8165 34.8962C80.8353 34.6868 80.0177 33.8069 79.4044 32.173C78.9138 30.8742 78.6685 29.5755 78.6685 28.3605C78.6685 27.3131 78.7503 26.2657 78.9547 25.3021C79.3226 23.5844 80.0177 21.9086 81.1215 20.3166C82.4706 18.2637 83.9015 17.4258 85.3733 17.719C86.3545 17.9285 87.1722 18.8083 87.7854 20.4422C88.276 21.741 88.5213 23.0398 88.5213 24.2547C88.5213 25.344 88.3987 26.3914 88.2351 27.355Z",fill:"white"}),Object(o.createElement)("path",{d:"M67.7528 15.7499C66.281 13.1105 64.0734 11.5185 61.2116 10.89C60.4348 10.7225 59.6989 10.6387 59.0039 10.6387C55.0791 10.6387 51.8903 12.7335 49.3964 16.923C47.2705 20.4841 46.2075 24.4223 46.2075 28.7376C46.2075 31.9635 46.8616 34.7286 48.1699 37.0329C49.6417 39.6723 51.8085 41.2644 54.7112 41.8928C55.488 42.0604 56.2238 42.1442 56.9189 42.1442C60.8845 42.1442 64.0734 40.0494 66.5263 35.8598C68.6523 32.2568 69.7152 28.3186 69.7152 24.0034C69.7152 20.7355 69.0611 18.0123 67.7528 15.7499ZM62.6016 27.355C62.0292 30.1201 61.0071 32.173 59.4945 33.5556C58.3089 34.6449 57.205 35.1057 56.183 34.8962C55.2018 34.6868 54.3841 33.8069 53.7709 32.173C53.2803 30.8742 53.035 29.5755 53.035 28.3605C53.035 27.3131 53.1167 26.2657 53.3212 25.3021C53.6891 23.5844 54.3841 21.9086 55.4879 20.3166C56.8371 18.2637 58.268 17.4258 59.7398 17.719C60.721 17.9285 61.5386 18.8083 62.1519 20.4422C62.6425 21.741 62.8878 23.0398 62.8878 24.2547C62.8878 25.344 62.806 26.3914 62.6016 27.355Z",fill:"white"}))},q=function(){return Object(o.createElement)("svg",{xmlns:"http://www.w3.org/2000/svg",width:"100",height:"24",fill:"#072654",viewBox:"0 0 1896 401"},Object(o.createElement)("path",{fill:"#3395FF",d:"M122.63 105.7l-15.75 57.97 90.15-58.3-58.96 219.98 59.88.05L285.05.48"}),Object(o.createElement)("path",{d:"M25.6 232.92L.8 325.4h122.73l50.22-188.13L25.6 232.92m426.32-81.42c-3 11.15-8.78 19.34-17.4 24.57-8.6 5.22-20.67 7.84-36.25 7.84h-49.5l17.38-64.8h49.5c15.56 0 26.25 2.6 32.05 7.9 5.8 5.3 7.2 13.4 4.22 24.6m51.25-1.4c6.3-23.4 3.7-41.4-7.82-54-11.5-12.5-31.68-18.8-60.48-18.8H324.4l-66.5 248.1h53.67l26.8-100h35.2c7.9 0 14.12 1.3 18.66 3.8 4.55 2.6 7.22 7.1 8.04 13.6l9.58 82.6h57.5l-9.32-77c-1.9-17.2-9.77-27.3-23.6-30.3 17.63-5.1 32.4-13.6 44.3-25.4a92.6 92.6 0 0 0 24.44-42.5m130.46 86.4c-4.5 16.8-11.4 29.5-20.73 38.4-9.34 8.9-20.5 13.3-33.52 13.3-13.26 0-22.25-4.3-27-13-4.76-8.7-4.92-21.3-.5-37.8 4.42-16.5 11.47-29.4 21.17-38.7 9.7-9.3 21.04-13.95 34.06-13.95 13 0 21.9 4.5 26.4 13.43 4.6 8.97 4.7 21.8.2 38.5zm23.52-87.8l-6.72 25.1c-2.9-9-8.53-16.2-16.85-21.6-8.34-5.3-18.66-8-30.97-8-15.1 0-29.6 3.9-43.5 11.7-13.9 7.8-26.1 18.8-36.5 33-10.4 14.2-18 30.3-22.9 48.4-4.8 18.2-5.8 34.1-2.9 47.9 3 13.9 9.3 24.5 19 31.9 9.8 7.5 22.3 11.2 37.6 11.2a82.4 82.4 0 0 0 35.2-7.7 82.11 82.11 0 0 0 28.4-21.2l-7 26.16h51.9L709.3 149h-52zm238.65 0H744.87l-10.55 39.4h87.82l-116.1 100.3-9.92 37h155.8l10.55-39.4h-94.1l117.88-101.8m142.4 52c-4.67 17.4-11.6 30.48-20.75 39-9.15 8.6-20.23 12.9-33.24 12.9-27.2 0-36.14-17.3-26.86-51.9 4.6-17.2 11.56-30.13 20.86-38.84 9.3-8.74 20.57-13.1 33.82-13.1 13 0 21.78 4.33 26.3 13.05 4.52 8.7 4.48 21.67-.13 38.87m30.38-80.83c-11.95-7.44-27.2-11.16-45.8-11.16-18.83 0-36.26 3.7-52.3 11.1a113.09 113.09 0 0 0-41 32.06c-11.3 13.9-19.43 30.2-24.42 48.8-4.9 18.53-5.5 34.8-1.7 48.73 3.8 13.9 11.8 24.6 23.8 32 12.1 7.46 27.5 11.17 46.4 11.17 18.6 0 35.9-3.74 51.8-11.18 15.9-7.48 29.5-18.1 40.8-32.1 11.3-13.94 19.4-30.2 24.4-48.8 5-18.6 5.6-34.84 1.8-48.8-3.8-13.9-11.7-24.6-23.6-32.05m185.1 40.8l13.3-48.1c-4.5-2.3-10.4-3.5-17.8-3.5-11.9 0-23.3 2.94-34.3 8.9-9.46 5.06-17.5 12.2-24.3 21.14l6.9-25.9-15.07.06h-37l-47.7 176.7h52.63l24.75-92.37c3.6-13.43 10.08-24 19.43-31.5 9.3-7.53 20.9-11.3 34.9-11.3 8.6 0 16.6 1.97 24.2 5.9m146.5 41.1c-4.5 16.5-11.3 29.1-20.6 37.8-9.3 8.74-20.5 13.1-33.5 13.1s-21.9-4.4-26.6-13.2c-4.8-8.85-4.9-21.6-.4-38.36 4.5-16.75 11.4-29.6 20.9-38.5 9.5-8.97 20.7-13.45 33.7-13.45 12.8 0 21.4 4.6 26 13.9 4.6 9.3 4.7 22.2.28 38.7m36.8-81.4c-9.75-7.8-22.2-11.7-37.3-11.7-13.23 0-25.84 3-37.8 9.06-11.95 6.05-21.65 14.3-29.1 24.74l.18-1.2 8.83-28.1h-51.4l-13.1 48.9-.4 1.7-54 201.44h52.7l27.2-101.4c2.7 9.02 8.2 16.1 16.6 21.22 8.4 5.1 18.77 7.63 31.1 7.63 15.3 0 29.9-3.7 43.75-11.1 13.9-7.42 25.9-18.1 36.1-31.9 10.2-13.8 17.77-29.8 22.6-47.9 4.9-18.13 5.9-34.3 3.1-48.45-2.85-14.17-9.16-25.14-18.9-32.9m174.65 80.65c-4.5 16.7-11.4 29.5-20.7 38.3-9.3 8.86-20.5 13.27-33.5 13.27-13.3 0-22.3-4.3-27-13-4.8-8.7-4.9-21.3-.5-37.8 4.4-16.5 11.42-29.4 21.12-38.7 9.7-9.3 21.05-13.94 34.07-13.94 13 0 21.8 4.5 26.4 13.4 4.6 8.93 4.63 21.76.15 38.5zm23.5-87.85l-6.73 25.1c-2.9-9.05-8.5-16.25-16.8-21.6-8.4-5.34-18.7-8-31-8-15.1 0-29.68 3.9-43.6 11.7-13.9 7.8-26.1 18.74-36.5 32.9-10.4 14.16-18 30.3-22.9 48.4-4.85 18.17-5.8 34.1-2.9 47.96 2.93 13.8 9.24 24.46 19 31.9 9.74 7.4 22.3 11.14 37.6 11.14 12.3 0 24.05-2.56 35.2-7.7a82.3 82.3 0 0 0 28.33-21.23l-7 26.18h51.9l47.38-176.7h-51.9zm269.87.06l.03-.05h-31.9c-1.02 0-1.92.05-2.85.07h-16.55l-8.5 11.8-2.1 2.8-.9 1.4-67.25 93.68-13.9-109.7h-55.08l27.9 166.7-61.6 85.3h54.9l14.9-21.13c.42-.62.8-1.14 1.3-1.8l17.4-24.7.5-.7 77.93-110.5 65.7-93 .1-.06h-.03z"}))},F=function(){return Object(o.createElement)("svg",{fill:"none",viewBox:"0 0 677 200",width:"100",xmlns:"http://www.w3.org/2000/svg"},Object(o.createElement)("g",{fill:"#000"},Object(o.createElement)("path",{clipRule:"evenodd",d:"m286.342 65.3132c-37.175 0-67.35 30.2415-67.35 67.3438 0 37.101 30.245 67.343 67.35 67.343 37.106 0 67.35-30.242 67.35-67.343 0-37.1023-30.174-67.3438-67.35-67.3438zm0 102.8348c-19.533 0-35.425-15.89-35.425-35.421s15.892-35.4222 35.425-35.4222 35.426 15.8912 35.426 35.4222-15.893 35.421-35.426 35.421z",fillRule:"evenodd"}),Object(o.createElement)("path",{d:"m510.375 42.0021c11.6 0 21.003-9.4025 21.003-21.0011 0-11.59851-9.403-21.001-21.003-21.001-11.599 0-21.003 9.40249-21.003 21.001 0 11.5986 9.404 21.0011 21.003 21.0011z"}),Object(o.createElement)("path",{clipRule:"evenodd",d:"m148.842 65.3833c-1.75-.14-3.431-.21-5.181-.21-16.242 0-31.644 6.6503-42.706 18.4109-11.0617-11.6906-26.394-18.4109-42.4964-18.4109-32.2047 0-58.4586 26.1813-58.4586 58.3827v73.714h31.5047v-72.804c0-13.37 10.9916-25.691 23.9435-27.0211.9101-.07 1.8203-.14 2.6604-.14 14.5621 0 26.4639 11.9001 26.5339 26.4611v73.504h32.2045v-72.944c0-13.3 10.922-25.621 23.944-26.9511.91-.07 1.82-.14 2.66-.14 14.562 0 26.534 11.8301 26.604 26.3211v73.714h32.205v-72.804c0-14.77-5.461-28.9812-15.332-39.9717-9.872-11.0606-23.384-17.8509-38.086-19.111z",fillRule:"evenodd"}),Object(o.createElement)("path",{d:"m403.26 3.15015h-32.205v194.25985h32.205z"}),Object(o.createElement)("path",{d:"m464.869 3.15015h-32.205v194.25985h32.205z"}),Object(o.createElement)("path",{d:"m526.478 68.5334h-32.205v128.8066h32.205z"}),Object(o.createElement)("path",{clipRule:"evenodd",d:"m677 129.646c0-17.08-6.651-33.1812-18.693-45.4318-12.112-12.2506-28.074-19.0409-45.086-19.0409-.28 0-.561 0-.841 0-17.642.21-34.305 7.2103-46.766 19.741-12.462 12.5306-19.463 29.1217-19.673 46.8327-.21 18.06 6.721 35.141 19.533 48.092 12.811 12.951 29.754 20.091 47.817 20.091h.07c23.663 0 45.856-12.671 57.968-33.042l1.54-2.59-26.604-13.09-1.33 2.17c-6.651 10.99-18.202 17.501-31.014 17.501-16.383 0-30.525-10.921-34.866-26.462h97.945zm-65.04-35.2113c14.703 0 27.864 9.6603 32.485 23.3813h-64.899c4.55-13.721 17.712-23.3813 32.414-23.3813z",fillRule:"evenodd"})))},D=function(){return Object(o.createElement)("svg",{xmlns:"http://www.w3.org/2000/svg",width:"1333.333",version:"1",viewBox:"0 0 1000 1000"},Object(o.createElement)("path",{d:"M8987 7472c-15-16-17-45-17-194 0-157 2-177 18-191s44-17 189-17c152 0 172 2 186 18 15 16 17 45 17 194 0 157-2 177-18 191s-44 17-189 17c-152 0-172-2-186-18zM9413 7046l-28-24v-520l24-26 24-26h518l24 25 25 24v250c0 162-4 259-11 274-20 43-45 47-304 47-243 0-244 0-272-24zM8623 6435c-44-19-64-54-70-123l-6-59-106-6c-182-11-261-50-293-145-9-28-14-251-18-912l-5-875-29-62c-47-102-124-160-256-194-83-21-356-19-440 4-131 36-203 90-249 187l-26 55-5 875c-5 669-9 884-19 913-20 62-75 115-140 135-82 25-431 25-513-1-70-21-110-54-134-109-18-41-19-90-22-888-2-567 1-877 8-942 45-397 254-684 606-832 100-41 240-81 369-103 156-27 570-24 725 5 224 41 398 107 541 202 92 62 216 193 273 288 27 45 64 126 82 179 61 180 64 217 64 936v647h165c128 0 173 3 195 15 61 31 60 27 60 398 0 377-2 386-65 413-49 20-645 20-692-1zM322 6230c-114-24-221-100-268-192-55-108-54-73-54-1379V3453l23-34c29-44 72-58 172-58s143 14 172 58l23 34v935l473 5c379 4 489 8 557 21 374 72 570 244 656 573 36 135 45 410 20 562-64 379-252 580-626 667-65 15-141 18-590 20-283 1-534-2-558-6zm1107-388c75-27 103-44 154-91 88-82 127-217 127-438-1-343-95-479-370-529-56-10-188-13-513-14H389l3 503c3 457 5 505 21 534 35 64 26 63 512 60 429-2 442-3 504-25zM2665 5600c-114-13-234-38-274-58-62-31-76-61-76-167 0-79 3-98 21-121 32-43 65-49 163-30 175 33 251 40 441 40 272 0 384-28 473-121 62-63 78-123 84-309l6-162-369-5c-387-5-459-12-604-58-155-49-291-151-353-263-56-102-72-176-71-341 0-135 3-158 27-231 64-192 211-329 422-393 123-38 231-52 407-51 526 0 804 152 895 490 16 59 18 123 18 650v585l-23 75c-52 167-144 281-288 357-168 88-292 113-594 118-124 2-261 0-305-5zm832-1452c-7-243-17-288-83-358-49-52-106-81-211-106-89-22-373-25-453-5-198 49-277 155-268 355 3 80 8 99 34 146 50 87 142 139 289 160 27 4 196 8 374 9l324 1-6-202zM4073 5535c-46-20-67-57-59-105 9-57 420-1575 458-1690 42-130 91-221 152-283 64-64 123-94 228-115 68-13 95-14 171-4 50 6 93 10 95 8 7-7-80-211-113-266-37-61-97-122-155-157-48-29-155-60-232-68-130-14-162-36-160-115 2-84 30-166 69-200 32-28 38-30 121-30 98 0 228 26 318 63 229 93 393 294 499 613 53 161 565 2215 565 2269 0 50-21 80-64 91-14 3-70 4-125 2-116-4-142-16-179-89-14-27-95-348-212-837-104-437-198-812-209-835-37-83-92-117-188-117-113 0-163 31-204 126-9 23-106 367-214 765-245 906-247 910-285 943-17 14-47 30-68 36-52 14-171 12-209-5z",transform:"matrix(.1 0 0 -.1 0 1000)"}))},V=(n(203),n(88),n(187),n(95)),z=n.n(V),H=n(50);function Z(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var c=Object.getOwnPropertySymbols(e);t&&(c=c.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,c)}return n}function W(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?Z(Object(n),!0).forEach((function(t){r()(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):Z(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}function Y(e){var t=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){}))),!0}catch(e){return!1}}();return function(){var n,c=S()(e);if(t){var r=S()(this).constructor;n=Reflect.construct(c,arguments,r)}else n=c.apply(this,arguments);return E()(this,n)}}var K=function(e){v()(i,e);var t,n,c=Y(i);function i(e){var t;return y()(this,i),(t=c.call(this,e)).state={oAuthConnectFailed:!1,connectURL:null,isPending:!1},t.updateSettings=t.updateSettings.bind(j()(t)),t}return O()(i,[{key:"componentDidMount",value:function(){var e=this.state.oAuthConnectFailed,t=this.props.stripeSettings,n=Object(H.getQuery)();if(n["stripe-connect"]&&"1"===n["stripe-connect"]&&(t.publishable_key&&t.secret_key))return void this.completeMethod();e||this.fetchOAuthConnectURL()}},{key:"componentDidUpdate",value:function(e){var t=this.props.activePlugins;!e.activePlugins.includes("woocommerce-gateway-stripe")&&t.includes("woocommerce-gateway-stripe")&&this.fetchOAuthConnectURL()}},{key:"completeMethod",value:function(){var e=this.props,t=e.createNotice,n=e.markConfigured;this.setState({isPending:!1}),t("success",Object(a.__)("Stripe connected successfully.","woocommerce-admin")),n("stripe")}},{key:"fetchOAuthConnectURL",value:(n=f()(b.a.mark((function e(){var t;return b.a.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:if(this.props.activePlugins.includes("woocommerce-gateway-stripe")){e.next=3;break}return e.abrupt("return");case 3:return e.prev=3,this.setState({isPending:!0}),e.next=7,z()({path:N.WCS_NAMESPACE+"/connect/stripe/oauth/init",method:"POST",data:{returnUrl:Object(l.f)("admin.php?page=wc-admin&task=payments&method=stripe&stripe-connect=1")}});case 7:if((t=e.sent)&&t.oauthUrl){e.next=11;break}return this.setState({oAuthConnectFailed:!0,isPending:!1}),e.abrupt("return");case 11:this.setState({connectURL:t.oauthUrl,isPending:!1}),e.next=17;break;case 14:e.prev=14,e.t0=e.catch(3),this.setState({oAuthConnectFailed:!0,isPending:!1});case 17:case"end":return e.stop()}}),e,this,[[3,14]])}))),function(){return n.apply(this,arguments)})},{key:"renderConnectButton",value:function(){var e=this.state.connectURL;return Object(o.createElement)(x.Button,{isPrimary:!0,href:e},Object(a.__)("Connect","woocommerce-admin"))}},{key:"updateSettings",value:(t=f()(b.a.mark((function e(t){var n,c,o,i,s,l;return b.a.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return c=this.props,o=c.updateOptions,i=c.stripeSettings,s=c.createNotice,l=t.publishable_key.match(/^pk_live_/)?"":"test_",e.next=4,o({woocommerce_stripe_settings:W(W({},i),{},(n={},r()(n,l+"publishable_key",t.publishable_key),r()(n,l+"secret_key",t.secret_key),r()(n,"testmode","test_"===l?"yes":"no"),r()(n,"enabled","yes"),n))});case 4:e.sent.success?this.completeMethod():s("error",Object(a.__)("There was a problem saving your payment settings","woocommerce-admin"));case 6:case"end":return e.stop()}}),e,this)}))),function(e){return t.apply(this,arguments)})},{key:"getInitialConfigValues",value:function(){return{publishable_key:"",secret_key:""}}},{key:"validateManualConfig",value:function(e){var t={};return null===e.publishable_key.match(/^pk_(live|test)_[a-zA-Z0-9_]+/)&&(t.publishable_key=Object(a.__)('Please enter a valid publishable key (starting with "pk_").',"woocommerce-admin")),null===e.secret_key.match(/^[rs]k_(live|test)_[a-zA-Z0-9_]+/)?t.secret_key=Object(a.__)('Please enter a valid secret key (starting with "sk_" or "rk_").',"woocommerce-admin"):e.secret_key.slice(3,7)!==e.publishable_key.slice(3,7)&&(t.secret_key=Object(a.__)("Please enter a secret key in the same mode as the publishable key.","woocommerce-admin")),t}},{key:"renderManualConfig",value:function(){var e=this.props.isOptionsUpdating,t=s()({mixedString:Object(a.__)("Your API details can be obtained from your {{docsLink}}Stripe account{{/docsLink}}. Don’t have a Stripe account? {{registerLink}}Create one.{{/registerLink}}","woocommerce-admin"),components:{docsLink:Object(o.createElement)(m.Link,{href:"https://stripe.com/docs/keys",target:"_blank",type:"external"}),registerLink:Object(o.createElement)(m.Link,{href:"https://dashboard.stripe.com/register",target:"_blank",type:"external"})}});return Object(o.createElement)(m.Form,{initialValues:this.getInitialConfigValues(),onSubmitCallback:this.updateSettings,validate:this.validateManualConfig},(function(n){var c=n.getInputProps,r=n.handleSubmit;return Object(o.createElement)(o.Fragment,null,Object(o.createElement)(m.TextControl,p()({label:Object(a.__)("Publishable Key","woocommerce-admin"),required:!0},c("publishable_key"))),Object(o.createElement)(m.TextControl,p()({label:Object(a.__)("Secret Key","woocommerce-admin"),required:!0},c("secret_key"))),Object(o.createElement)(x.Button,{isPrimary:!0,isBusy:e,onClick:r},Object(a.__)("Proceed","woocommerce-admin")),Object(o.createElement)("p",null,t))}))}},{key:"renderOauthConfig",value:function(){var e=this,t=s()({mixedString:Object(a.__)('By clicking "Connect," you agree to the {{tosLink}}Terms of Service{{/tosLink}}. Or {{manualConfigLink}}manually enter your Stripe API details{{/manualConfigLink}} instead.',"woocommerce-admin"),components:{tosLink:Object(o.createElement)(m.Link,{href:"https://wordpress.com/tos",target:"_blank",type:"external"}),manualConfigLink:Object(o.createElement)(x.Button,{isLink:!0,onClick:function(){e.setState({connectURL:null})}})}});return Object(o.createElement)(o.Fragment,null,Object(o.createElement)("p",null,this.renderConnectButton()),t)}},{key:"getConnectStep",value:function(){var e=this.state,t=e.connectURL,n=e.isPending,c=e.oAuthConnectFailed,r={key:"connect",label:Object(a.__)("Connect your Stripe account","woocommerce-admin")};return n?r:W(W({},r),{},!c&&t?{description:Object(a.__)("A Stripe account is required to process payments.","woocommerce-admin"),content:this.renderOauthConfig()}:{content:this.renderManualConfig()})}},{key:"render",value:function(){var e=this.props,t=e.installStep,n=e.isOptionsUpdating,c=this.state.isPending;return Object(o.createElement)(m.Stepper,{isVertical:!0,isPending:!t.isComplete||n||c,currentStep:t.isComplete?"connect":"install",steps:[t,this.getConnectStep()]})}}]),i}(o.Component),G=Object(L.compose)(Object(R.withSelect)((function(e){var t=e(N.OPTIONS_STORE_NAME),n=t.getOption,c=t.isOptionsUpdating;return{activePlugins:(0,e(N.PLUGINS_STORE_NAME).getActivePlugins)(),isOptionsUpdating:c(),stripeSettings:n("woocommerce_stripe_settings")||[]}})),Object(R.withDispatch)((function(e){return{createNotice:e("core/notices").createNotice,updateOptions:e(N.OPTIONS_STORE_NAME).updateOptions}})))(K);function Q(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var c=Object.getOwnPropertySymbols(e);t&&(c=c.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,c)}return n}function J(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?Q(Object(n),!0).forEach((function(t){r()(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):Q(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}function X(e){var t=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){}))),!0}catch(e){return!1}}();return function(){var n,c=S()(e);if(t){var r=S()(this).constructor;n=Reflect.construct(c,arguments,r)}else n=c.apply(this,arguments);return E()(this,n)}}var $=function(e){v()(c,e);var t,n=X(c);function c(e){var t;return y()(this,c),(t=n.call(this,e)).state={isPending:!1},t.connect=t.connect.bind(j()(t)),t}return O()(c,[{key:"componentDidMount",value:function(){var e=this.props,t=e.createNotice,n=e.markConfigured,c=Object(H.getQuery)();c["square-connect"]&&"1"===c["square-connect"]&&(t("success",Object(a.__)("Square connected successfully.","woocommerce-admin")),n("square"))}},{key:"connect",value:(t=f()(b.a.mark((function e(){var t,n,c,r,o,i,s,l;return b.a.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return t=this.props,n=t.createNotice,c=t.hasCbdIndustry,r=t.options,o=t.updateOptions,this.setState({isPending:!0}),o({woocommerce_square_credit_card_settings:J(J({},r.woocommerce_square_credit_card_settings),{},{enabled:"yes"})}),i=Object(a.__)("There was an error connecting to Square. Please try again or skip to connect later in store settings.","woocommerce-admin"),e.prev=4,s=null,c&&(s=window.open("/","_blank")),e.next=9,z()({path:N.WC_ADMIN_NAMESPACE+"/plugins/connect-square",method:"POST"});case 9:if((l=e.sent)&&l.connectUrl){e.next=15;break}return this.setState({isPending:!1}),n("error",i),c&&s.close(),e.abrupt("return");case 15:this.setState({isPending:!0}),this.redirect(l.connectUrl,s),e.next=23;break;case 19:e.prev=19,e.t0=e.catch(4),this.setState({isPending:!1}),n("error",i);case 23:case"end":return e.stop()}}),e,this,[[4,19]])}))),function(){return t.apply(this,arguments)})},{key:"redirect",value:function(e,t){t?(t.location.href=e,window.location=Object(l.f)("admin.php?page=wc-admin")):window.location=e}},{key:"render",value:function(){var e=this.props.installStep,t=this.state.isPending;return Object(o.createElement)(m.Stepper,{isVertical:!0,isPending:!e.isComplete||t,currentStep:e.isComplete?"connect":"install",steps:[e,{key:"connect",label:Object(a.__)("Connect your Square account","woocommerce-admin"),description:Object(a.__)("A Square account is required to process payments. You will be redirected to the Square website to create the connection.","woocommerce-admin"),content:Object(o.createElement)(o.Fragment,null,Object(o.createElement)(x.Button,{isPrimary:!0,isBusy:t,onClick:this.connect},Object(a.__)("Connect","woocommerce-admin")))}]})}}]),c}(o.Component),ee=Object(L.compose)(Object(R.withSelect)((function(e){var t=e(N.OPTIONS_STORE_NAME),n=t.getOption,c=t.isResolving;return{options:n("woocommerce_square_credit_card_settings"),optionsIsRequesting:c("getOption",["woocommerce_square_credit_card_settings"])}})),Object(R.withDispatch)((function(e){return{createNotice:e("core/notices").createNotice,updateOptions:e(N.OPTIONS_STORE_NAME).updateOptions}})))($),te=n(615),ne=n(78);function ce(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var c=Object.getOwnPropertySymbols(e);t&&(c=c.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,c)}return n}function re(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?ce(Object(n),!0).forEach((function(t){r()(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):ce(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}function oe(e){var t=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){}))),!0}catch(e){return!1}}();return function(){var n,c=S()(e);if(t){var r=S()(this).constructor;n=Reflect.construct(c,arguments,r)}else n=c.apply(this,arguments);return E()(this,n)}}var ae="woocommerce-paypal-payments";function ie(e,t,n){try{ppcp_onboarding&&n()}catch(r){var c=document.createElement("script");c.src=e,document.body.append(c),c.onload=function(){n()},window.PayPalCommerceGatewayOnboarding=t}}function se(e){var t=e.connectUrl;return Object(o.useEffect)((function(){ppcp_onboarding&&ppcp_onboarding.reload()}),[]),Object(o.createElement)("a",{className:"button-primary",target:"_blank",rel:"noreferrer",href:t,"data-paypal-onboard-button":"true","data-paypal-button":"true","data-paypal-onboard-complete":"ppcp_onboarding_productionCallback"},Object(a.__)("Connect","woocommerce-admin"))}var le=function(e){v()(u,e);var t,n,c,i,l=oe(u);function u(e){var t;return y()(this,u),(t=l.call(this,e)).state={autoConnectFailed:!1,connectURL:""},t.enablePaypalPlugin=t.enablePaypalPlugin.bind(j()(t)),t.setCredentials=t.setCredentials.bind(j()(t)),t.validate=t.validate.bind(j()(t)),t}return O()(u,[{key:"componentDidMount",value:function(){var e=this.props.createNotice,t=Object(H.getQuery)();if(t.onboarding)return"complete"!==t.onboarding||t["ppcp-onboarding-error"]?void(t["ppcp-onboarding-error"]&&(this.setState({autoConnectFailed:!0}),e("error",Object(a.__)("There was a problem saving your payment settings through the onboarding, please fill the fields in manually.","woocommerce-admin")))):void this.enablePaypalPlugin();this.fetchOAuthConnectURLAndOnboardingSetup()}},{key:"componentDidUpdate",value:function(e){var t=this.props.activePlugins;!e.activePlugins.includes(ae)&&t.includes(ae)&&this.fetchOAuthConnectURLAndOnboardingSetup()}},{key:"fetchOAuthConnectURLAndOnboardingSetup",value:(i=f()(b.a.mark((function e(){var t,n,c,r,o=this;return b.a.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:if(t=this.props,n=t.activePlugins,c=t.createNotice,n.includes(ae)){e.next=3;break}return e.abrupt("return");case 3:return this.setState({isPending:!0}),e.prev=4,e.next=7,z()({path:"/wc-paypal/v1/onboarding/get-params",method:"POST",data:{environment:"production",returnUrlArgs:{ppcpobw:"1"}}});case 7:if((r=e.sent)&&r.signupLink){e.next=11;break}return this.setState({autoConnectFailed:!0,isPending:!1}),e.abrupt("return");case 11:ie(r.scriptURL,r.scriptData,(function(){o.setState({connectURL:r.signupLink,isPending:!1})})),e.next=18;break;case 14:e.prev=14,e.t0=e.catch(4),e.t0&&e.t0.data&&500===e.t0.data.status&&c("error",Object(a.__)("There was a problem with the Paypal onboarding setup, please fill the fields in manually.","woocommerce-admin")),this.setState({autoConnectFailed:!0,isPending:!1});case 18:case"end":return e.stop()}}),e,this,[[4,14]])}))),function(){return i.apply(this,arguments)})},{key:"enablePaypalPlugin",value:(c=f()(b.a.mark((function e(t){var n,c,r,o,i,s;return b.a.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return n=this.props,c=n.createNotice,r=n.updateOptions,o=n.markConfigured,i=n.options,s={"woocommerce_ppcp-gateway_settings":{enabled:"yes"}},t||(s["woocommerce-ppcp-settings"]=re(re({},i),{},{enabled:!0})),e.next=5,r(s);case 5:e.sent.success?(c("success",Object(a.__)("PayPal connected successfully.","woocommerce-admin")),o("paypal")):c("error",Object(a.__)("There was a problem saving your payment settings.","woocommerce-admin"));case 7:case"end":return e.stop()}}),e,this)}))),function(e){return c.apply(this,arguments)})},{key:"setCredentials",value:(n=f()(b.a.mark((function e(t){var n,c;return b.a.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return n=this.props.createNotice,e.prev=1,e.next=4,z()({path:"/wc-paypal/v1/onboarding/set-credentials",method:"POST",data:re({environment:"production"},t)});case 4:if(!(c=e.sent)||!c.data){e.next=9;break}n("error",Object(a.__)("There was a problem updating the credentials.","woocommerce-admin")),e.next=11;break;case 9:return e.next=11,this.enablePaypalPlugin(!0);case 11:e.next=18;break;case 13:if(e.prev=13,e.t0=e.catch(1),!e.t0||!e.t0.data||404!==e.t0.data.status){e.next=18;break}return e.next=18,this.updateManualSettings(t);case 18:case"end":return e.stop()}}),e,this,[[1,13]])}))),function(e){return n.apply(this,arguments)})},{key:"updateManualSettings",value:(t=f()(b.a.mark((function e(t){var n,c,o,i,s,l,m;return b.a.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return n=this.props,c=n.createNotice,o=n.options,i=n.updateOptions,s=n.markConfigured,l=Object.keys(t).reduce((function(e,n){var c=n+"_production";return re(re({},e),{},r()({},c,t[n]))}),{}),m=re(re({},o),{},{enabled:!0,sandbox_on:!1,merchant_email:t.merchant_email,merchant_id:t.merchant_id},l),e.next=5,i({"woocommerce-ppcp-settings":m,"woocommerce_ppcp-gateway_settings":{enabled:"yes"}});case 5:e.sent.success?(c("success",Object(a.__)("PayPal connected successfully.","woocommerce-admin")),s("paypal")):c("error",Object(a.__)("There was a problem saving your payment settings.","woocommerce-admin"));case 7:case"end":return e.stop()}}),e,this)}))),function(e){return t.apply(this,arguments)})},{key:"getInitialConfigValues",value:function(){var e=this.props.options;return["merchant_email","merchant_id","client_id","client_secret"].reduce((function(t,n){return re(re({},t),{},r()({},n,e&&e[n+"_production"]?e[n+"_production"]:""))}),{})}},{key:"validate",value:function(e){var t={};return e.merchant_email||(t.merchant_email=Object(a.__)("Please enter your Merchant email","woocommerce-admin")),Object(ne.isEmail)(e.merchant_email)||(t.merchant_email=Object(a.__)("Please enter a valid email address","woocommerce-admin")),e.merchant_id||(t.merchant_id=Object(a.__)("Please enter your Merchant Id","woocommerce-admin")),e.client_id||(t.client_id=Object(a.__)("Please enter your Client Id","woocommerce-admin")),e.client_secret||(t.client_secret=Object(a.__)("Please enter your Client Secret","woocommerce-admin")),t}},{key:"renderManualConfig",value:function(){var e=this.props.isOptionsUpdating,t=s()({mixedString:Object(a.__)("Your API details can be obtained from your {{docsLink}}Paypal developer account{{/docsLink}}, and your Merchant Id from your {{merchantLink}}Paypal Business account{{/merchantLink}}. Don’t have a Paypal account? {{registerLink}}Create one.{{/registerLink}}","woocommerce-admin"),components:{docsLink:Object(o.createElement)(m.Link,{href:"https://developer.paypal.com/docs/api-basics/manage-apps/#create-or-edit-sandbox-and-live-apps",target:"_blank",type:"external"}),merchantLink:Object(o.createElement)(m.Link,{href:"https://www.paypal.com/ca/smarthelp/article/FAQ3850",target:"_blank",type:"external"}),registerLink:Object(o.createElement)(m.Link,{href:"https://www.paypal.com/us/business",target:"_blank",type:"external"})}});return Object(o.createElement)(m.Form,{initialValues:this.getInitialConfigValues(),onSubmitCallback:this.setCredentials,validate:this.validate},(function(n){var c=n.getInputProps,r=n.handleSubmit;return Object(o.createElement)(o.Fragment,null,Object(o.createElement)(m.TextControl,p()({label:Object(a.__)("Email address","woocommerce-admin"),required:!0},c("merchant_email"))),Object(o.createElement)(m.TextControl,p()({label:Object(a.__)("Merchant Id","woocommerce-admin"),required:!0},c("merchant_id"))),Object(o.createElement)(m.TextControl,p()({label:Object(a.__)("Client Id","woocommerce-admin"),required:!0},c("client_id"))),Object(o.createElement)(m.TextControl,p()({label:Object(a.__)("Secret Key","woocommerce-admin"),required:!0},c("client_secret"))),Object(o.createElement)(x.Button,{isPrimary:!0,isBusy:e,onClick:r},Object(a.__)("Proceed","woocommerce-admin")),Object(o.createElement)("p",null,t))}))}},{key:"renderConnectFields",value:function(){var e=this.state,t=e.autoConnectFailed,n=e.connectURL;return!t&&n?Object(o.createElement)(o.Fragment,null,Object(o.createElement)(se,{connectUrl:n}),Object(o.createElement)("p",null,Object(a.__)("You will be redirected to the PayPal website to create the connection.","woocommerce-admin"))):t?this.renderManualConfig():void 0}},{key:"getConnectStep",value:function(){var e=this.props.isRequestingOptions;return{key:"connect",label:Object(a.__)("Connect your PayPal account","woocommerce-admin"),description:Object(a.__)("A PayPal account is required to process payments. Connect your store to your PayPal account.","woocommerce-admin"),content:e?null:this.renderConnectFields()}}},{key:"render",value:function(){var e=this.props,t=e.installStep,n=e.isRequestingOptions,c=e.isOptionsUpdating,r=this.state.isPending;return Object(o.createElement)(m.Stepper,{isVertical:!0,isPending:!t.isComplete||r||n||c,currentStep:t.isComplete?"connect":"install",steps:[t,this.getConnectStep()]})}}]),u}(o.Component);le.defaultProps={manualConfig:!1};var me=Object(L.compose)(Object(R.withSelect)((function(e){var t=e(N.OPTIONS_STORE_NAME),n=t.getOption,c=t.isOptionsUpdating,r=t.hasFinishedResolution,o=e(N.PLUGINS_STORE_NAME).getActivePlugins,a=n("woocommerce-ppcp-settings"),i=!r("getOption",["woocommerce-ppcp-settings"]);return{activePlugins:o(),isOptionsUpdating:c(),options:a,isRequestingOptions:i}})),Object(R.withDispatch)((function(e){return{createNotice:e("core/notices").createNotice,updateOptions:e(N.OPTIONS_STORE_NAME).updateOptions}})))(le),ue=n(231),pe=function(e){var t=e.installStep,n=e.markConfigured,c=Object(R.useSelect)((function(e){var t=(0,e(N.SETTINGS_STORE_NAME).getSettings)("general").general,n=void 0===t?{}:t;return{countryCode:Object(ue.b)(n.woocommerce_default_country)}})).countryCode;return Object(o.createElement)(m.Stepper,{isVertical:!0,isPending:!t.isComplete,currentStep:t.isComplete?"connect":"install",steps:[t,{key:"connect",label:Object(a.__)("Connect to your Mercado Pago account","woocommerce-admin"),content:Object(o.createElement)(de,{countryCode:c,onFinish:function(){return n("mercadopago")}})}]})},de=function(e){var t=e.countryCode,n=e.onFinish,c=Object(o.createElement)(m.Link,{href:"".concat(l.a,"admin.php?page=wc-settings&tab=checkout"),target:"_blank",type:"external"}),r=Object(o.createElement)(m.Link,{href:["AR","BR","CL","CO","MX","PE","UY"].includes(t)?"".concat("https://www.mercadopago.com",".").concat(t.toLowerCase(),"/registration-company?confirmation_url=").concat("https://www.mercadopago.com",".").concat(t.toLowerCase(),"%2Fcomo-cobrar"):"https://www.mercadopago.com",target:"_blank",type:"external"}),i=s()({mixedString:Object(a.__)("Mercado Pago can be configured under your {{settingsLink}}store settings.{{/settingsLink}} Create your Mercado Pago account {{accountLink}}here.{{/accountLink}}","woocommerce-admin"),components:{accountLink:r,settingsLink:c}});return Object(o.createElement)(o.Fragment,null,Object(o.createElement)("p",null,i),Object(o.createElement)(x.Button,{isPrimary:!0,onClick:n},Object(a.__)("Continue","woocommerce-admin")))};function be(e){var t=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){}))),!0}catch(e){return!1}}();return function(){var n,c=S()(e);if(t){var r=S()(this).constructor;n=Reflect.construct(c,arguments,r)}else n=c.apply(this,arguments);return E()(this,n)}}var _e=function(e){v()(n,e);var t=be(n);function n(e){var c;return y()(this,n),(c=t.call(this,e)).continue=c.continue.bind(j()(c)),c}return O()(n,[{key:"continue",value:function(){var e=this.props;(0,e.markConfigured)("checkout"===e.plugin?"klarna_checkout":"klarna_payments")}},{key:"renderConnectStep",value:function(){var e=this.props.plugin,t="checkout"===e?"klarna-checkout":"klarna-payments",n="checkout"===e?"kco":"klarna_payments",c=Object(o.createElement)(m.Link,{href:l.a+"admin.php?page=wc-settings&tab=checkout§ion="+n,target:"_blank",type:"external"}),r=Object(o.createElement)(m.Link,{href:"https://docs.woocommerce.com/document/"+t+"/#section-3",target:"_blank",type:"external"}),i=s()({mixedString:Object(a.__)("Klarna can be configured under your {{link}}store settings{{/link}}. Figure out {{helpLink}}what you need{{/helpLink}}.","woocommerce-admin"),components:{link:c,helpLink:r}});return Object(o.createElement)(o.Fragment,null,Object(o.createElement)("p",null,i),Object(o.createElement)(x.Button,{isPrimary:!0,onClick:this.continue},Object(a.__)("Continue","woocommerce-admin")))}},{key:"render",value:function(){var e=this.props.installStep;return Object(o.createElement)(m.Stepper,{isVertical:!0,isPending:!e.isComplete,currentStep:e.isComplete?"connect":"install",steps:[e,{key:"connect",label:Object(a.__)("Connect your Klarna account","woocommerce-admin"),content:this.renderConnectStep()}]})}}]),n}(o.Component);function fe(e){var t=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){}))),!0}catch(e){return!1}}();return function(){var n,c=S()(e);if(t){var r=S()(this).constructor;n=Reflect.construct(c,arguments,r)}else n=c.apply(this,arguments);return E()(this,n)}}var he=function(e){v()(n,e);var t=fe(n);function n(){var e;y()(this,n);for(var c=arguments.length,o=new Array(c),i=0;i<c;i++)o[i]=arguments[i];return e=t.call.apply(t,[this].concat(o)),r()(j()(e),"getInitialConfigValues",(function(){return{customer_api:"",customer_password:""}})),r()(j()(e),"validate",(function(e){var t={};return e.customer_api||(t.customer_api=Object(a.__)("Please enter your customer API key ","woocommerce-admin")),e.customer_password||(t.customer_password=Object(a.__)("Please enter your customer password","woocommerce-admin")),t})),r()(j()(e),"updateSettings",function(){var t=f()(b.a.mark((function t(n){var c,r,o,i;return b.a.wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return c=e.props,r=c.updateOptions,o=c.createNotice,i=c.markConfigured,t.next=3,r({woocommerce_eway_settings:{customer_api:n.customer_api,customer_password:n.customer_password,enabled:"yes"}});case 3:t.sent.success?(i("eway"),o("success",Object(a.__)("eWAY connected successfully","woocommerce-admin"))):o("error",Object(a.__)("There was a problem saving your payment settings","woocommerce-admin"));case 5:case"end":return t.stop()}}),t)})));return function(e){return t.apply(this,arguments)}}()),e}return O()(n,[{key:"renderConnectStep",value:function(){var e=this.props.isOptionsRequesting,t=s()({mixedString:Object(a.__)("Your API details can be obtained from your {{link}}eWAY account{{/link}}","woocommerce-admin"),components:{link:Object(o.createElement)(m.Link,{href:"https://www.eway.com.au/",target:"_blank",type:"external"})}});return Object(o.createElement)(m.Form,{initialValues:this.getInitialConfigValues(),onSubmitCallback:this.updateSettings,validate:this.validate},(function(n){var c=n.getInputProps,r=n.handleSubmit;return Object(o.createElement)(o.Fragment,null,Object(o.createElement)(m.TextControl,p()({label:Object(a.__)("Customer API Key","woocommerce-admin"),required:!0},c("customer_api"))),Object(o.createElement)(m.TextControl,p()({label:Object(a.__)("Customer Password","woocommerce-admin"),required:!0},c("customer_password"))),Object(o.createElement)(x.Button,{isPrimary:!0,isBusy:e,onClick:r},Object(a.__)("Proceed","woocommerce-admin")),Object(o.createElement)("p",null,t))}))}},{key:"render",value:function(){var e=this.props,t=e.installStep,n=e.isOptionsRequesting;return Object(o.createElement)(m.Stepper,{isVertical:!0,isPending:!t.isComplete||n,currentStep:t.isComplete?"connect":"install",steps:[t,{key:"connect",label:Object(a.__)("Connect your eWAY account","woocommerce-admin"),content:this.renderConnectStep()}]})}}]),n}(o.Component),ye=Object(L.compose)(Object(R.withSelect)((function(e){return{isOptionsRequesting:(0,e(N.OPTIONS_STORE_NAME).isOptionsUpdating)()}})),Object(R.withDispatch)((function(e){return{createNotice:e("core/notices").createNotice,updateOptions:e(N.OPTIONS_STORE_NAME).updateOptions}})))(he),ge={key_id:"",key_secret:""},Oe=function(e){var t={};return e.key_id||(t.key_id=Object(a.__)("Please enter your Key ID","woocommerce-admin")),e.key_secret||(t.key_secret=Object(a.__)("Please enter your Key Secret","woocommerce-admin")),t},we=function(){var e=f()(b.a.mark((function e(t,n,c,r){return b.a.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.next=2,r({woocommerce_razorpay_settings:{key_id:t.key_id,key_secret:t.key_secret,enabled:"yes"}});case 2:e.sent.success?(c("razorpay"),n("success",Object(a.__)("Razorpay connected successfully","woocommerce-admin"))):n("error",Object(a.__)("There was a problem saving your payment settings","woocommerce-admin"));case 4:case"end":return e.stop()}}),e)})));return function(t,n,c,r){return e.apply(this,arguments)}}(),je=function(e){var t=e.createNotice,n=e.isOptionsRequesting,c=e.markConfigured,r=e.updateOptions,i=s()({mixedString:Object(a.__)("Your key details can be obtained from your {{link}}Razorpay account{{/link}}","woocommerce-admin"),components:{link:Object(o.createElement)(m.Link,{href:"https://dashboard.razorpay.com/#/access/signin",target:"_blank",type:"external"})}});return Object(o.createElement)(m.Form,{initialValues:ge,onSubmitCallback:function(e){return we(e,t,c,r)},validate:Oe},(function(e){var t=e.getInputProps,c=e.handleSubmit;return Object(o.createElement)(o.Fragment,null,Object(o.createElement)(m.TextControl,p()({label:Object(a.__)("Key ID","woocommerce-admin"),required:!0},t("key_id"))),Object(o.createElement)(m.TextControl,p()({label:Object(a.__)("Key Secret","woocommerce-admin"),required:!0},t("key_secret"))),Object(o.createElement)(x.Button,{isPrimary:!0,isBusy:n,onClick:c},Object(a.__)("Proceed","woocommerce-admin")),Object(o.createElement)("p",null,i))}))},ke=function(e){var t=e.createNotice,n=e.installStep,c=e.isOptionsRequesting,r=e.markConfigured,i=e.updateOptions;return Object(o.createElement)(m.Stepper,{isVertical:!0,isPending:!n.isComplete||c,currentStep:n.isComplete?"connect":"install",steps:[n,{key:"connect",label:Object(a.__)("Connect your Razorpay account","woocommerce-admin"),content:je({createNotice:t,isOptionsRequesting:c,markConfigured:r,updateOptions:i})}]})},ve=function(e){var t=e.installStep,n=e.markConfigured,c=Object(R.useSelect)((function(e){return e(N.OPTIONS_STORE_NAME).isOptionsUpdating}))(),r=Object(R.useDispatch)("core/notices").createNotice,a=Object(R.useDispatch)(N.OPTIONS_STORE_NAME).updateOptions;return Object(o.createElement)(ke,{createNotice:r,installStep:t,isOptionsRequesting:c,markConfigured:n,updateOptions:a})},Ce=function(e){var t=e.installStep,n=e.markConfigured;return Object(o.createElement)(m.Stepper,{isVertical:!0,isPending:!t.isComplete,currentStep:t.isComplete?"connect":"install",steps:[t,{key:"connect",label:Object(a.__)("Connect your Mollie account","woocommerce-admin"),content:Object(o.createElement)(Ee,{onFinish:function(){n("mollie")}})}]})},Ee=function(e){var t=e.onFinish,n=Object(o.createElement)(m.Link,{href:"".concat(l.a,"admin.php?page=wc-settings&tab=mollie_settings#mollie-payments-for-woocommerce"),target:"_blank",type:"external"}),c=Object(o.createElement)(m.Link,{href:"https://www.mollie.com/dashboard/signup",target:"_blank",type:"external"}),r=s()({mixedString:Object(a.__)("Create a {{accountLink}}Mollie account{{/accountLink}} and finish the configuration in the {{settingsLink}}Mollie settings.{{/settingsLink}}","woocommerce-admin"),components:{accountLink:c,settingsLink:n}});return Object(o.createElement)(o.Fragment,null,Object(o.createElement)("p",null,r),Object(o.createElement)(x.Button,{isPrimary:!0,onClick:t},Object(a.__)("Continue","woocommerce-admin")))},Pe=function(e){var t=e.installStep,n=e.markConfigured;return Object(o.createElement)(m.Stepper,{isVertical:!0,isPending:!t.isComplete,currentStep:t.isComplete?"connect":"install",steps:[t,{key:"connect",label:Object(a.__)("Connect to your PayU account","woocommerce-admin"),content:Object(o.createElement)(Se,{onFinish:function(){n("payubiz")}})}]})},Se=function(e){var t=e.onFinish,n=Object(o.createElement)(m.Link,{href:"".concat(l.a,"admin.php?page=wc-settings&tab=checkout§ion=payubiz"),target:"_blank",type:"external"}),c=Object(o.createElement)(m.Link,{href:"https://onboarding.payu.in/app/account",target:"_blank",type:"external"}),r=s()({mixedString:Object(a.__)("PayU can be configured under your {{settingsLink}}store settings.{{/settingsLink}} Create your PayU account {{accountLink}}here.{{/accountLink}}","woocommerce-admin"),components:{accountLink:c,settingsLink:n}});return Object(o.createElement)(o.Fragment,null,Object(o.createElement)("p",null,r),Object(o.createElement)(x.Button,{isPrimary:!0,onClick:t},Object(a.__)("Continue","woocommerce-admin")))};n(129),n(135),n(51);function xe(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var c=Object.getOwnPropertySymbols(e);t&&(c=c.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,c)}return n}function Le(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?xe(Object(n),!0).forEach((function(t){r()(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):xe(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}function Re(e){var t,n=e.installStep,c=e.markConfigured,i=e.methodConfig,l=Object(R.useDispatch)(N.OPTIONS_STORE_NAME).updateOptions,u=Object(R.useDispatch)("core/notices").createNotice,d=Object(R.useSelect)((function(e){return(0,e(N.OPTIONS_STORE_NAME).isOptionsUpdating)()})),_=function(){if(i&&i.fields)return i.fields.reduce((function(e,t){return Le(Le({},e),{},r()({},t.name,""))}),{})},h=function(e){return i&&i.fields?i.fields.reduce((function(t,n){if(!e[n.name]){var c=n.title.replace(/([A-Z][a-z]+)/,(function(e){return e.toLowerCase()}));return Le(Le({},t),{},r()({},n.name,Object(a.__)("Please enter your ")+c))}return t}),{}):{}},y=function(){var e=f()(b.a.mark((function e(t){var n;return b.a.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:if(n=i.getOptions?i.getOptions(t):null){e.next=3;break}return e.abrupt("return");case 3:return e.next=5,l(Le({},n));case 5:e.sent.success?(c(i.key),u("success",i.title+Object(a.__)(" connected successfully","woocommerce-admin"))):u("error",Object(a.__)("There was a problem saving your payment settings","woocommerce-admin"));case 7:case"end":return e.stop()}}),e)})));return function(t){return e.apply(this,arguments)}}();return Object(o.createElement)(m.Stepper,{isVertical:!0,isPending:!n.isComplete||d,currentStep:n.isComplete?"connect":"install",steps:[n,{key:"connect",label:Object(a.sprintf)(Object(a.__)("Connect your %(title)s account","woocommerce-admin"),{title:i.title}),content:(t=s()({mixedString:Object(a.__)("Your API details can be obtained from your {{link/}}","woocommerce-admin"),components:{link:Object(o.createElement)(m.Link,{href:i.apiDetailsLink,target:"_blank",type:"external"},Object(a.sprintf)(Object(a.__)("%(title)s account","woocommerce-admin"),{title:i.title}))}}),Object(o.createElement)(m.Form,{initialValues:_(),onSubmitCallback:y,validate:h},(function(e){var n=e.getInputProps,c=e.handleSubmit;return Object(o.createElement)(o.Fragment,null,(i.fields||[]).map((function(e){return Object(o.createElement)(m.TextControl,p()({key:e.name,label:e.title,required:!0},n(e.name)))})),Object(o.createElement)(x.Button,{isPrimary:!0,isBusy:d,onClick:c},Object(a.__)("Proceed","woocommerce-admin")),Object(o.createElement)("p",null,t))})))}]})}function Ne(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var c=Object.getOwnPropertySymbols(e);t&&(c=c.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,c)}return n}function Ae(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?Ne(Object(n),!0).forEach((function(t){r()(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):Ne(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}var Te=Object(l.g)("wcAdminAssetUrl","");function Me(e){var t=e.activePlugins,n=e.countryCode,c=e.createNotice,r=e.installAndActivatePlugins,i=e.onboardingStatus,u=e.options,p=e.profileItems,d=e.paypalOnboardingStatus,b=e.loadingPaypalStatus,_=i.stripeSupportedCountries,f=void 0===_?[]:_,h=i.wcPayIsConnected,y=void 0!==h&&h,g=i.enabledPaymentGateways,O=void 0===g?[]:g,w=(p.industry||[]).some((function(e){return"cbd-other-hemp-derived-products"===e.slug})),j=u.woocommerce_stripe_settings&&("no"===u.woocommerce_stripe_settings.testmode?u.woocommerce_stripe_settings.publishable_key&&u.woocommerce_stripe_settings.secret_key:u.woocommerce_stripe_settings.test_publishable_key&&u.woocommerce_stripe_settings.test_secret_key),k=[{key:"stripe",title:Object(a.__)("Credit cards - powered by Stripe","woocommerce-admin"),content:Object(o.createElement)(o.Fragment,null,Object(a.__)("Accept debit and credit cards in 135+ currencies, methods such as Alipay, and one-touch checkout with Apple Pay.","woocommerce-admin")),before:Object(o.createElement)("img",{src:l.e+"images/stripe.png",alt:""}),visible:f.includes(n)&&!w,plugins:["woocommerce-gateway-stripe"],container:Object(o.createElement)(G,null),isConfigured:j,isEnabled:u.woocommerce_stripe_settings&&"yes"===u.woocommerce_stripe_settings.enabled,optionName:"woocommerce_stripe_settings"},{key:"paystack",title:Object(a.__)("Paystack","woocommerce-admin"),content:Object(o.createElement)(o.Fragment,null,Object(a.__)("Paystack helps African merchants accept one-time and recurring payments online with a modern, safe, and secure payment gateway.","woocommerce-admin")),before:Object(o.createElement)("img",{src:Te+"onboarding/paystack.png",alt:"Paystack logo"}),visible:["ZA","GH","NG"].includes(n)&&!w,plugins:["woo-paystack"],container:Object(o.createElement)(Re,null),isConfigured:u.woocommerce_paystack_settings&&u.woocommerce_paystack_settings.live_public_key&&u.woocommerce_paystack_settings.live_secret_key,isEnabled:O.includes("paystack"),optionName:"woocommerce_paystack_settings",apiDetailsLink:"https://dashboard.paystack.com/#/settings/developer",fields:[{name:"live_public_key",title:Object(a.__)("Live Public Key","woocommerce-admin")},{name:"live_secret_key",title:Object(a.__)("Live Secret Key","woocommerce-admin")}],getOptions:function(e){return{woocommerce_currency:"ZAR",woocommerce_paystack_settings:Ae(Ae({},e),{},{testmode:"no"})}}},{key:"payfast",title:Object(a.__)("PayFast","woocommerce-admin"),content:Object(o.createElement)(o.Fragment,null,Object(a.__)("The PayFast extension for WooCommerce enables you to accept payments by Credit Card and EFT via one of South Africa’s most popular payment gateways. No setup fees or monthly subscription costs.","woocommerce-admin"),Object(o.createElement)("p",null,Object(a.__)("Selecting this extension will configure your store to use South African rands as the selected currency.","woocommerce-admin"))),before:Object(o.createElement)("img",{src:l.e+"images/payfast.png",alt:"PayFast logo"}),visible:["ZA"].includes(n)&&!w,plugins:["woocommerce-payfast-gateway"],container:Object(o.createElement)(Re,null),isConfigured:u.woocommerce_payfast_settings&&u.woocommerce_payfast_settings.merchant_id&&u.woocommerce_payfast_settings.merchant_key&&u.woocommerce_payfast_settings.pass_phrase,isEnabled:u.woocommerce_payfast_settings&&"yes"===u.woocommerce_payfast_settings.enabled,optionName:"woocommerce_payfast_settings",apiDetailsLink:"https://www.payfast.co.za/",fields:[{name:"merchant_id",title:Object(a.__)("Merchant ID","woocommerce-admin")},{name:"merchant_key",title:Object(a.__)("Merchant Key","woocommerce-admin")},{name:"pass_phrase",title:Object(a.__)("Passphrase","woocommerce-admin")}],getOptions:function(e){return{woocommerce_currency:"ZAR",woocommerce_payfast_settings:Ae(Ae({},e),{},{testmode:"no"})}}},{key:"mercadopago",title:Object(a.__)("Mercado Pago Checkout Pro & Custom","woocommerce-admin"),content:Object(o.createElement)(o.Fragment,null,Object(a.__)("Accept credit and debit cards, offline (cash or bank transfer) and logged-in payments with money in Mercado Pago. Safe and secure payments with the leading payment processor in LATAM.","woocommerce-admin")),before:Object(o.createElement)("img",{src:Te+"onboarding/mercadopago.png",alt:""}),visible:["AR","BR","CL","CO","MX","PE","UY"].includes(n),plugins:["woocommerce-mercadopago"],container:Object(o.createElement)(pe,null),isConfigured:t.includes("woocommerce-mercadopago"),isEnabled:u["woocommerce_woo-mercado-pago-basic_settings"]&&"yes"===u["woocommerce_woo-mercado-pago-basic_settings"].enabled,optionName:"woocommerce_woo-mercado-pago-basic_settings"},{key:"paypal",title:Object(a.__)("PayPal Payments","woocommerce-admin"),content:Object(o.createElement)(o.Fragment,null,Object(a.__)("Safe and secure payments using credit cards or your customer's PayPal account.","woocommerce-admin")),before:Object(o.createElement)("img",{src:l.e+"images/paypal.png",alt:""}),visible:!w,plugins:[ae],container:Object(o.createElement)(me,null),isConfigured:d&&d.production&&d.production.onboarded,isEnabled:O.includes("ppcp-gateway"),optionName:"woocommerce_ppcp-gateway_settings",loading:!!t.includes(ae)&&b},{key:"klarna_checkout",title:Object(a.__)("Klarna Checkout","woocommerce-admin"),content:Object(a.__)("Choose the payment that you want, pay now, pay later or slice it. No credit card numbers, no passwords, no worries.","woocommerce-admin"),before:Object(o.createElement)("img",{src:l.e+"images/klarna-black.png",alt:""}),visible:["SE","FI","NO"].includes(n)&&!w,plugins:["klarna-checkout-for-woocommerce"],container:Object(o.createElement)(_e,{plugin:"checkout"}),isConfigured:t.includes("klarna-checkout-for-woocommerce"),isEnabled:u.woocommerce_kco_settings&&"yes"===u.woocommerce_kco_settings.enabled,optionName:"woocommerce_kco_settings"},{key:"klarna_payments",title:Object(a.__)("Klarna Payments","woocommerce-admin"),content:Object(a.__)("Choose the payment that you want, pay now, pay later or slice it. No credit card numbers, no passwords, no worries.","woocommerce-admin"),before:Object(o.createElement)("img",{src:l.e+"images/klarna-black.png",alt:""}),visible:["DK","DE","AT","NL","CH","BE","SP","PL","FR","IT","GB"].includes(n)&&!w,plugins:["klarna-payments-for-woocommerce"],container:Object(o.createElement)(_e,{plugin:"payments"}),isConfigured:t.includes("klarna-payments-for-woocommerce"),isEnabled:u.woocommerce_klarna_payments_settings&&"yes"===u.woocommerce_klarna_payments_settings.enabled,optionName:"woocommerce_klarna_payments_settings"},{key:"mollie",title:Object(a.__)("Mollie Payments for WooCommerce","woocommerce-admin"),before:Object(o.createElement)(F,null),plugins:["mollie-payments-for-woocommerce"],isConfigured:t.includes("mollie-payments-for-woocommerce"),content:Object(o.createElement)(o.Fragment,null,Object(a.__)("Effortless payments by Mollie: Offer global and local payment methods, get onboarded in minutes, and supported in your language.","woocommerce-admin")),visible:["FR","DE","GB","AT","CH","ES","IT","PL","FI","NL","BE"].includes(n),container:Object(o.createElement)(Ce,null),isEnabled:u.woocommerce_mollie_payments_settings&&"yes"===u.woocommerce_mollie_payments_settings.enabled,optionName:"woocommerce_mollie_payments_settings"},{key:"square",title:Object(a.__)("Square","woocommerce-admin"),content:Object(o.createElement)(o.Fragment,null,Object(a.__)("Securely accept credit and debit cards with one low rate, no surprise fees (custom rates available). Sell online and in store and track sales and inventory in one place.","woocommerce-admin"),w&&Object(o.createElement)("span",{className:"text-style-strong"},Object(a.__)(" Selling CBD products is only supported by Square.","woocommerce-admin"))),before:Object(o.createElement)("img",{src:"".concat(l.e,"images/square-black.png"),alt:""}),visible:w&&["US"].includes(n)||["brick-mortar","brick-mortar-other"].includes(p.selling_venues)&&["US","CA","JP","GB","AU"].includes(n),plugins:["woocommerce-square"],container:Object(o.createElement)(ee,null),isConfigured:u.wc_square_refresh_tokens&&u.wc_square_refresh_tokens.length,isEnabled:u.woocommerce_square_credit_card_settings&&"yes"===u.woocommerce_square_credit_card_settings.enabled,optionName:"woocommerce_square_credit_card_settings",hasCbdIndustry:w},{key:"eway",title:Object(a.__)("eWAY","woocommerce-admin"),content:Object(o.createElement)(o.Fragment,null,Object(a.__)("The eWAY extension for WooCommerce allows you to take credit card payments directly on your store without redirecting your customers to a third party site to make payment.","woocommerce-admin")),before:Object(o.createElement)("img",{src:l.e+"images/eway-logo.jpg",alt:"eWAY logo"}),visible:["AU","NZ"].includes(n)&&!w,plugins:["woocommerce-gateway-eway"],container:Object(o.createElement)(ye,null),isConfigured:u.woocommerce_eway_settings&&u.woocommerce_eway_settings.customer_api&&u.woocommerce_eway_settings.customer_password,isEnabled:u.woocommerce_eway_settings&&"yes"===u.woocommerce_eway_settings.enabled,optionName:"woocommerce_eway_settings"},{key:"razorpay",title:Object(a.__)("Razorpay","woocommerce-admin"),content:Object(o.createElement)(o.Fragment,null,Object(a.__)("The official Razorpay extension for WooCommerce allows you to accept credit cards, debit cards, netbanking, wallet, and UPI payments.","woocommerce-admin")),before:Object(o.createElement)(q,null),visible:"IN"===n&&!w,plugins:["woo-razorpay"],container:Object(o.createElement)(ve,null),isConfigured:u.woocommerce_razorpay_settings&&u.woocommerce_razorpay_settings.key_id&&u.woocommerce_razorpay_settings.key_secret,isEnabled:u.woocommerce_razorpay_settings&&"yes"===u.woocommerce_razorpay_settings.enabled,optionName:"woocommerce_razorpay_settings"},{key:"payubiz",title:Object(a.__)("PayU for WooCommerce","woocommerce-admin"),content:Object(o.createElement)(o.Fragment,null,Object(a.__)("Enable PayU’s exclusive plugin for WooCommerce to start accepting payments in 100+ payment methods available in India including credit cards, debit cards, UPI, & more!","woocommerce-admin")),before:Object(o.createElement)(D,null),visible:"IN"===n&&!w,plugins:["payu-india"],container:Object(o.createElement)(Pe,null),isConfigured:t.includes("payu-india"),isEnabled:O.includes("payubiz"),optionName:"woocommerce_payubiz_settings"},{key:"cod",title:Object(a.__)("Cash on delivery","woocommerce-admin"),content:Object(a.__)("Take payments in cash upon delivery.","woocommerce-admin"),before:Object(o.createElement)(B,null),visible:!w,isEnabled:u.woocommerce_cod_settings&&"yes"===u.woocommerce_cod_settings.enabled,optionName:"woocommerce_cod_settings"},{key:"bacs",title:Object(a.__)("Direct bank transfer","woocommerce-admin"),content:Object(a.__)("Take payments via bank transfer.","woocommerce-admin"),before:Object(o.createElement)(U,null),visible:!w,container:Object(o.createElement)(M,null),isConfigured:u.woocommerce_bacs_accounts&&u.woocommerce_bacs_accounts.length,isEnabled:u.woocommerce_bacs_settings&&"yes"===u.woocommerce_bacs_settings.enabled,optionName:"woocommerce_bacs_settings"}];if(window.wcAdminFeatures.wcpay){var v=Object(o.createElement)(m.Link,{href:"https://wordpress.com/tos/",target:"_blank",type:"external"}),C=s()({mixedString:Object(a.__)('By clicking "Set up," you agree to the {{link}}Terms of Service{{/link}}',"woocommerce-admin"),components:{link:v}}),E=Object(o.createElement)(m.Link,{href:"https://docs.woocommerce.com/document/payments/testing/dev-mode/",target:"_blank",type:"external"}),P=s()({mixedString:Object(a.__)("Setting up a store for a client? {{link}}Start here{{/link}}","woocommerce-admin"),components:{link:E}}),S=Object(o.createElement)(m.Link,{href:Object(l.f)("admin.php?page=wc-settings&tab=checkout§ion=woocommerce_payments"),type:"wp-admin"},Object(a.__)("Settings","woocommerce-admin")),x=Object(o.createElement)(m.Link,{href:"https://docs.woocommerce.com/document/payments/faq/fees/",target:"_blank",type:"external"}),L=s()({mixedString:Object(a.__)("Accept credit card payments the easy way! {{feesLink}}No setup fees. No monthly fees.{{/feesLink}}","woocommerce-admin"),components:{feesLink:x}});k.unshift({key:"wcpay",title:Object(a.__)("WooCommerce Payments","woocommerce-admin"),content:Object(o.createElement)(o.Fragment,null,L,y&&S,!y&&Object(o.createElement)("p",null,C),p.setup_client&&Object(o.createElement)("p",null,P),Object(o.createElement)(te.b,null)),before:Object(o.createElement)(I,null),onClick:function(e,t){return Object(te.c)(t,c,r)},visible:Object(te.d)(n)&&!w,plugins:["woocommerce-payments"],container:Object(o.createElement)(te.a,null),isConfigured:y,isEnabled:u.woocommerce_woocommerce_payments_settings&&"yes"===u.woocommerce_woocommerce_payments_settings.enabled,optionName:"woocommerce_woocommerce_payments_settings"})}return k.filter((function(e){return e.visible}))}}}]);
|
dist/chunks/profile-wizard.js
CHANGED
@@ -2302,9 +2302,9 @@ var currency_context = __webpack_require__(598);
|
|
2302 |
|
2303 |
var extensionBenefits = [{
|
2304 |
slug: 'mailpoet',
|
2305 |
-
title: Object(external_wp_i18n_["__"])('
|
2306 |
icon: 'onboarding/mailpoet.png',
|
2307 |
-
description: Object(external_wp_i18n_["__"])('The default all-in-one solution for WooCommerce email.
|
2308 |
}, {
|
2309 |
slug: 'facebook-for-woocommerce',
|
2310 |
title: Object(external_wp_i18n_["__"])('Market on Facebook', 'woocommerce-admin'),
|
@@ -3375,6 +3375,7 @@ var selective_extensions_bundle_SelectiveExtensionsBundle = function SelectiveEx
|
|
3375 |
onSubmit(values);
|
3376 |
},
|
3377 |
isBusy: isInstallingActivating,
|
|
|
3378 |
isPrimary: true
|
3379 |
}, "Continue"))), selective_extensions_bundle_renderBusinessExtensionHelpText(values, isInstallingActivating));
|
3380 |
};
|
2302 |
|
2303 |
var extensionBenefits = [{
|
2304 |
slug: 'mailpoet',
|
2305 |
+
title: Object(external_wp_i18n_["__"])('MailPoet', 'woocommerce-admin'),
|
2306 |
icon: 'onboarding/mailpoet.png',
|
2307 |
+
description: Object(external_wp_i18n_["__"])('The default all-in-one solution for WooCommerce email.', 'woocommerce-admin')
|
2308 |
}, {
|
2309 |
slug: 'facebook-for-woocommerce',
|
2310 |
title: Object(external_wp_i18n_["__"])('Market on Facebook', 'woocommerce-admin'),
|
3375 |
onSubmit(values);
|
3376 |
},
|
3377 |
isBusy: isInstallingActivating,
|
3378 |
+
disabled: isInstallingActivating,
|
3379 |
isPrimary: true
|
3380 |
}, "Continue"))), selective_extensions_bundle_renderBusinessExtensionHelpText(values, isInstallingActivating));
|
3381 |
};
|
dist/chunks/profile-wizard.min.js
CHANGED
@@ -1 +1 @@
|
|
1 |
-
(window.__wcAdmin_webpackJsonp=window.__wcAdmin_webpackJsonp||[]).push([[46],{598:function(e,t,n){"use strict";n.d(t,"b",(function(){return s})),n.d(t,"a",(function(){return m}));var r=n(0),c=n(141),o=n(247),i=n.n(o),a=n(85),l=i()(a.b),s=function(e){var t=l.getCurrencyConfig(),n=Object(c.applyFilters)("woocommerce_admin_report_currency",t,e);return i()(n)},m=Object(r.createContext)(l)},607:function(e,t,n){"use strict";n.d(t,"a",(function(){return c}));n(37),n(49),n(139);var r=n(26);function c(e){var t=Object(r.dispatch)("core/notices").createNotice;e.error_data&&e.errors&&Object.keys(e.errors).length?Object.keys(e.errors).forEach((function(n){t("error",e.errors[n].join(" "))})):e.message&&t(e.code?"error":"success",e.message)}},609:function(e,t,n){"use strict";n.r(t);var r=n(43),c=n.n(r),o=n(0),i=n(2),a=n(50),l=n(99),s=n.n(l),m=n(145),u=n(610);t.default=function(){var e="1"===Object(a.getQuery)()["wcpay-connection-success"],t=Object(o.useState)(e),n=c()(t,2),r=n[0],l=n[1];if(!r)return null;var C=function(){l(!1),Object(a.updateQueryString)({"wcpay-connection-success":void 0})},d=Object(i.__)("Help us build a better WooCommerce Payments experience","woocommerce-admin"),p=s()({mixedString:Object(i.__)("By agreeing to share non-sensitive {{link}}usage data{{/link}}, you’ll help us improve features and optimize the WooCommerce Payments experience. You can opt out at any time.","woocommerce-admin"),components:{link:Object(o.createElement)(m.Link,{href:"https://woocommerce.com/usage-tracking",target:"_blank",type:"external"})}});return Object(o.createElement)(u.a,{isDismissible:!1,title:d,message:p,acceptActionText:Object(i.__)("I agree","woocommerce-admin"),dismissActionText:Object(i.__)("No thanks","woocommerce-admin"),onContinue:C,onClose:C})}},610:function(e,t,n){"use strict";n(64);var r=n(16),c=n.n(r),o=n(134),i=n.n(o),a=n(22),l=n.n(a),s=n(23),m=n.n(s),u=n(24),C=n.n(u),d=n(25),p=n.n(d),b=n(14),f=n.n(b),h=n(0),O=n(2),_=n(65),j=n(26),g=n(99),v=n.n(g),E=n(4),y=n(145),w=n(59);function k(e){var t=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){}))),!0}catch(e){return!1}}();return function(){var n,r=f()(e);if(t){var c=f()(this).constructor;n=Reflect.construct(r,arguments,c)}else n=r.apply(this,arguments);return p()(this,n)}}var L=function(e){C()(r,e);var t,n=k(r);function r(e){var t;return l()(this,r),(t=n.call(this,e)).state={isLoadingScripts:!1,isRequestStarted:!1},t}return m()(r,[{key:"componentDidUpdate",value:(t=i()(c.a.mark((function e(t,n){var r,o,i,a,l,s,m,u,C,d;return c.a.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:if(r=this.props,o=r.hasErrors,i=r.isRequesting,a=r.onClose,l=r.onContinue,s=r.createNotice,m=this.state,u=m.isLoadingScripts,m.isRequestStarted){e.next=4;break}return e.abrupt("return");case 4:C=!i&&!u&&(t.isRequesting||n.isLoadingScripts)&&!o,d=!i&&t.isRequesting&&o,C&&(a(),l()),d&&(s("error",Object(O.__)("There was a problem updating your preferences","woocommerce-admin")),a());case 8:case"end":return e.stop()}}),e,this)}))),function(e,n){return t.apply(this,arguments)})},{key:"updateTracking",value:function(e){var t=this,n=e.allowTracking,r=this.props.updateOptions;n&&"function"==typeof window.wcTracks.enable?(this.setState({isLoadingScripts:!0}),window.wcTracks.enable((function(){t._isMounted&&t.setState({isLoadingScripts:!1})}))):n||(window.wcTracks.isEnabled=!1);var c=n?"yes":"no";this.setState({isRequestStarted:!0}),r({woocommerce_allow_tracking:c})}},{key:"componentDidMount",value:function(){this._isMounted=!0}},{key:"componentWillUnmount",value:function(){this._isMounted=!1}},{key:"render",value:function(){var e=this;if(this.props.allowTracking){var t=this.props,n=t.onClose,r=t.onContinue;return n(),r(),null}var c=this.props,o=c.isRequesting,i=c.title,a=void 0===i?Object(O.__)("Build a better WooCommerce","woocommerce-admin"):i,l=c.message,s=void 0===l?v()({mixedString:Object(O.__)("Get improved features and faster fixes by sharing non-sensitive data via {{link}}usage tracking{{/link}} that shows us how WooCommerce is used. No personal data is tracked or stored.","woocommerce-admin"),components:{link:Object(h.createElement)(y.Link,{href:"https://woocommerce.com/usage-tracking",target:"_blank",type:"external"})}}):l,m=c.dismissActionText,u=void 0===m?Object(O.__)("No thanks","woocommerce-admin"):m,C=c.acceptActionText,d=void 0===C?Object(O.__)("Yes, count me in!","woocommerce-admin"):C,p=this.state.isRequestStarted&&o;return Object(h.createElement)(E.Modal,{title:a,isDismissible:this.props.isDismissible,onRequestClose:function(){return e.props.onClose()},className:"woocommerce-usage-modal"},Object(h.createElement)("div",{className:"woocommerce-usage-modal__wrapper"},Object(h.createElement)("div",{className:"woocommerce-usage-modal__message"},s),Object(h.createElement)("div",{className:"woocommerce-usage-modal__actions"},Object(h.createElement)(E.Button,{isSecondary:!0,isBusy:p,onClick:function(){return e.updateTracking({allowTracking:!1})}},u),Object(h.createElement)(E.Button,{isPrimary:!0,isBusy:p,onClick:function(){return e.updateTracking({allowTracking:!0})}},d))))}}]),r}(h.Component);t.a=Object(_.compose)(Object(j.withSelect)((function(e){var t=e(w.OPTIONS_STORE_NAME),n=t.getOption,r=t.getOptionsUpdatingError,c=t.isOptionsUpdating;return{allowTracking:"yes"===n("woocommerce_allow_tracking"),isRequesting:Boolean(c()),hasErrors:Boolean(r())}})),Object(j.withDispatch)((function(e){return{createNotice:e("core/notices").createNotice,updateOptions:e(w.OPTIONS_STORE_NAME).updateOptions}})))(L)},615:function(e,t,n){"use strict";n.d(t,"d",(function(){return g})),n.d(t,"c",(function(){return L})),n.d(t,"a",(function(){return j})),n.d(t,"b",(function(){return r.default}));var r=n(609),c=(n(64),n(22)),o=n.n(c),i=n(23),a=n.n(i),l=n(24),s=n.n(l),m=n(25),u=n.n(m),C=n(14),d=n.n(C),p=n(2),b=n(0),f=n(26),h=n(50);function O(e){var t=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){}))),!0}catch(e){return!1}}();return function(){var n,r=d()(e);if(t){var c=d()(this).constructor;n=Reflect.construct(r,arguments,c)}else n=r.apply(this,arguments);return u()(this,n)}}var _=function(e){s()(n,e);var t=O(n);function n(){return o()(this,n),t.apply(this,arguments)}return a()(n,[{key:"componentDidMount",value:function(){var e=this.props,t=e.createNotice,n=e.markConfigured;Object(h.getQuery)()["wcpay-connection-success"]&&(t("success",Object(p.__)("WooCommerce Payments connected successfully.","woocommerce-admin")),n("wcpay",{"wcpay-connection-success":"1"}))}},{key:"render",value:function(){return null}}]),n}(b.Component),j=Object(f.withDispatch)((function(e){return{createNotice:e("core/notices").createNotice}}))(_);n(107);function g(e){var t=["US","PR"];return window.wcAdminFeatures&&window.wcAdminFeatures["wcpay/support-international-countries"]&&t.push("AU","CA","GB","IE","NZ"),t.includes(e)}var v=n(95),E=n.n(v),y=n(59),w=n(92),k=n(607);function L(e,t,n){var r=Object(p.__)("There was an error connecting to WooCommerce Payments. Please try again or connect later in store settings.","woocommerce-admin");n(["woocommerce-payments"]).then((function(){Object(w.recordEvent)("woocommerce_payments_install",{context:"tasklist"}),E()({path:y.WC_ADMIN_NAMESPACE+"/plugins/connect-wcpay",method:"POST"}).then((function(e){window.location=e.connectUrl})).catch((function(){t("error",r),e()}))})).catch((function(t){Object(k.a)(t),e()}))}},619:function(e,t,n){"use strict";n.d(t,"a",(function(){return s})),n.d(t,"b",(function(){return m}));n(37),n(53),n(41),n(60),n(49),n(61);var r=n(7),c=n.n(r),o=n(43),i=n.n(o);n(282);function a(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function l(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?a(Object(n),!0).forEach((function(t){c()(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):a(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}var s=function(e,t){var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:"undefined";return e&&Array.isArray(e)&&e.length?t?e.reduce((function(e,r){return r[t]||(r[t]=n),(e[r[t]]=e[r[t]]||[]).push(r),e}),{}):e:{}},m=function(e,t){return Object.entries(e).reduce((function(e,n){var r=i()(n,1)[0];return l(l({},e),{},c()({},r,t))}),{})}},620:function(e,t,n){"use strict";n.d(t,"b",(function(){return f})),n.d(t,"a",(function(){return h}));var r=n(80),c=n.n(r),o=n(43),i=n.n(o),a=n(44),l=n.n(a),s=n(0),m=(n(319),n(129),n(51),n(209),n(88),n(142),n(41),n(135),n(2)),u=n(132),C=n(5),d=n(85),p=n(145),b=Object(d.g)("dataEndpoints",{countries:{}}).countries;function f(e){var t={};return e.addressLine1.trim().length||(t.addressLine1=Object(m.__)("Please add an address","woocommerce-admin")),e.countryState.trim().length||(t.countryState=Object(m.__)("Please select a country / region","woocommerce-admin")),e.city.trim().length||(t.city=Object(m.__)("Please add a city","woocommerce-admin")),e.postCode.trim().length||(t.postCode=Object(m.__)("Please add a post code","woocommerce-admin")),t}function h(e){var t=e.getInputProps,n=e.setValue,r=Object(s.useMemo)((function(){return b.reduce((function(e,t){if(!t.states.length)return e.push({key:t.code,label:Object(u.decodeEntities)(t.name)}),e;var n=t.states.map((function(e){return{key:t.code+":"+e.code,label:Object(u.decodeEntities)(t.name)+" — "+Object(u.decodeEntities)(e.name)}}));return e.push.apply(e,l()(n)),e}),[])}),[]),o=function(e,t,n){var r=Object(s.useState)(""),c=i()(r,2),o=c[0],a=c[1],l=Object(s.useState)(""),m=i()(l,2),u=m[0],d=m[1];return Object(s.useEffect)((function(){var r=[],c=new RegExp(Object(C.escapeRegExp)(o),"i");if((u.length||o.length)&&(r=e.filter((function(e){return c.test(e.label)}))),o.length&&u.length){var i=new RegExp(Object(C.escapeRegExp)(u.replace(/\s/g,"")),"i");if((r=r.filter((function(e){return i.test(e.label.replace("-","").replace(/\s/g,""))}))).length>1){var a;(a=r.filter((function(e){return c.test(e.key)}))).length>0&&(r=a)}if(r.length>1){var l;1===(l=r.filter((function(e){return i.test(e.key)}))).length&&(r=l)}}1===r.length&&t!==r[0].key&&n("countryState",r[0].key)}),[o,u,t,e,n]),Object(s.createElement)(s.Fragment,null,Object(s.createElement)("input",{onChange:function(e){return a(e.target.value)},value:o,name:"country",type:"text",className:"woocommerce-select-control__autofill-input",tabIndex:"-1",autoComplete:"country"}),Object(s.createElement)("input",{onChange:function(e){return d(e.target.value)},value:u,name:"state",type:"text",className:"woocommerce-select-control__autofill-input",tabIndex:"-1",autoComplete:"address-level1"}))}(r,t("countryState").value,n);return Object(s.createElement)("div",{className:"woocommerce-store-address-fields"},Object(s.createElement)(p.TextControl,c()({label:Object(m.__)("Address line 1","woocommerce-admin"),required:!0,autoComplete:"address-line1"},t("addressLine1"))),Object(s.createElement)(p.TextControl,c()({label:Object(m.__)("Address line 2 (optional)","woocommerce-admin"),required:!0,autoComplete:"address-line2"},t("addressLine2"))),Object(s.createElement)(p.SelectControl,c()({label:Object(m.__)("Country / Region","woocommerce-admin"),required:!0,options:r,excludeSelectedOptions:!1,showAllOnFocus:!0,isSearchable:!0},t("countryState"),{controlClassName:t("countryState").className}),o),Object(s.createElement)(p.TextControl,c()({label:Object(m.__)("City","woocommerce-admin"),required:!0},t("city"),{autoComplete:"address-level2"})),Object(s.createElement)(p.TextControl,c()({label:Object(m.__)("Post code","woocommerce-admin"),required:!0,autoComplete:"postal-code"},t("postCode"))))}},663:function(e,t,n){},664:function(e,t,n){},665:function(e,t,n){},666:function(e,t,n){},667:function(e,t,n){},669:function(e,t,n){},674:function(e,t,n){},704:function(e,t,n){"use strict";n.r(t);var r=n(675),c=n.n(r),o=n(0);t.default=function(e){return c()(e),Object(o.createElement)("div",null,"Settings page")}},709:function(e,t,n){"use strict";n.r(t);n(64),n(37),n(53),n(41),n(60),n(49),n(61);var r=n(7),c=n.n(r),o=n(16),i=n.n(o),a=n(134),l=n.n(a),s=n(22),m=n.n(s),u=n(23),C=n.n(u),d=n(18),p=n.n(d),b=n(24),f=n.n(b),h=n(25),O=n.n(h),_=n(14),j=n.n(_),g=n(0),v=(n(107),n(140),n(192),n(320),n(129),n(287),n(100),n(151),n(123),n(146),n(51),n(2)),E=n(141),y=n(65),w=n(5),k=n(26),L=n(50),S=n(59),M=n(92),P=n(85),N=n(43),Z=n.n(N),T=(n(164),n(139),n(4)),V=n(99),x=n.n(V),H=n(145),I=n(105),R=(n(220),function(e){var t=e.description,n=e.icon,r=e.title;return Object(g.createElement)("div",{className:"woocommerce-profile-wizard__benefit-card",key:r},n,Object(g.createElement)("div",{className:"woocommerce-profile-wizard__benefit-card-content"},Object(g.createElement)(H.H,{className:"woocommerce-profile-wizard__benefit-card-title"},r),Object(g.createElement)("p",null,t)))}),B=function(){return Object(g.createElement)("svg",{width:"295",height:"160",viewBox:"0 0 295 160",fill:"none",xmlns:"http://www.w3.org/2000/svg"},Object(g.createElement)("g",{clipPath:"url(#management-svg)"},Object(g.createElement)("path",{d:"M0 6C0 2.6863 2.68629 0 6 0H289C292.314 0 295 2.68629 295 6V160H0V6Z",fill:"#F7EDF7"}),Object(g.createElement)("path",{opacity:"0.05",d:"M268 125.429L188.122 25.6443C184.495 28.9602 180.026 31.2158 175.204 32.165C160.166 35.1256 145.48 24.8598 142.402 9.23575C140.226 -1.80872 144.438 -12.5683 152.403 -18.9762L125.167 -53L-30 79.5708L112.833 258L268 125.429Z",fill:"#7F54B3"}),Object(g.createElement)("path",{opacity:"0.05",d:"M169 27C181.703 27 192 16.9264 192 4.5C192 -7.9264 181.703 -18 169 -18C156.297 -18 146 -7.9264 146 4.5C146 16.9264 156.297 27 169 27Z",fill:"#7F54B3"}),Object(g.createElement)("path",{d:"M84.0826 16.6412H147.092C150.132 16.6411 153.082 17.6756 155.457 19.5743C157.832 21.4731 159.489 24.1232 160.158 27.0891L191.995 168.296C192.343 169.836 192.349 171.434 192.013 172.977C191.678 174.52 191.009 175.97 190.054 177.227C189.098 178.484 187.879 179.517 186.482 180.253C185.086 180.989 183.545 181.411 181.968 181.489L117.194 184.68C113.725 184.851 110.313 183.754 107.594 181.594C104.875 179.434 103.035 176.359 102.417 172.942L84.3566 73.107L83.013 73.4908L79.5574 54.5684L80.9405 54.2226L75.8993 26.3551C75.6834 25.1615 75.7334 23.9349 76.0459 22.7629C76.3584 21.5908 76.9257 20.5021 77.7072 19.5744C78.4887 18.6467 79.4653 17.9029 80.5673 17.3958C81.6693 16.8888 82.8696 16.6311 84.0826 16.6412Z",fill:"white"}),Object(g.createElement)("path",{d:"M138.797 19.6853H146.152C148.264 19.6853 150.313 20.4076 151.958 21.7324C153.603 23.0572 154.745 24.9047 155.195 26.9683L185.755 167.023C185.931 167.83 185.931 168.665 185.754 169.471C185.578 170.277 185.23 171.036 184.733 171.695C184.237 172.355 183.604 172.899 182.878 173.292C182.152 173.684 181.35 173.915 180.526 173.969L115.962 178.2C114.14 178.32 112.339 177.764 110.901 176.64C109.463 175.516 108.489 173.901 108.165 172.105L82.0889 27.3445C81.9201 26.4075 81.959 25.4449 82.2029 24.5247C82.4468 23.6044 82.8897 22.7489 83.5003 22.0185C84.111 21.288 84.8745 20.7005 85.737 20.2974C86.5995 19.8942 87.54 19.6853 88.4921 19.6853H95.4695C96.1448 19.6853 96.8013 19.9079 97.3373 20.3187C97.8734 20.7294 98.259 21.3054 98.4346 21.9575C98.5895 22.5331 98.93 23.0416 99.4032 23.4043C99.8764 23.7669 100.456 23.9634 101.052 23.9634H134.176C135.344 23.9634 136.468 23.5228 137.325 22.7296C138.181 21.9365 138.707 20.8492 138.797 19.6853L138.797 19.6853Z",fill:"#F6F7F7"}),Object(g.createElement)("path",{d:"M159.366 55.8843H92.5569V56.2134H159.366V55.8843Z",fill:"#2F2E41"}),Object(g.createElement)("path",{d:"M161.999 66.5796H94.532V66.9087H161.999V66.5796Z",fill:"#2F2E41"}),Object(g.createElement)("path",{d:"M96.7759 55.3634L98.294 53.3396L98.0308 53.1421L96.7189 54.8913L91.6633 50.7551L91.4551 51.0102L96.7759 55.3634Z",fill:"#2F2E41"}),Object(g.createElement)("path",{d:"M105.498 103.081L107.016 101.057L106.752 100.86L105.44 102.609L100.385 98.4729L100.177 98.7277L105.498 103.081Z",fill:"#2F2E41"}),Object(g.createElement)("path",{d:"M169.4 103.109L99.4648 104.59L99.4718 104.919L169.407 103.438L169.4 103.109Z",fill:"#2F2E41"}),Object(g.createElement)("path",{d:"M171.539 112.816L100.287 114.462L100.295 114.791L171.547 113.146L171.539 112.816Z",fill:"#2F2E41"}),Object(g.createElement)("path",{opacity:"0.1",d:"M127.854 140.871C127.854 145.017 129.501 148.993 132.433 151.924C135.364 154.856 139.341 156.503 143.487 156.503C147.633 156.503 151.609 154.856 154.54 151.924C157.472 148.993 159.119 145.017 159.119 140.871C159.119 140.675 159.116 140.481 159.108 140.287C158.955 136.195 157.202 132.326 154.226 129.512C151.25 126.699 147.289 125.166 143.194 125.242C139.099 125.319 135.198 126.999 132.33 129.922C129.461 132.844 127.854 136.776 127.854 140.871H127.854Z",fill:"black"}),Object(g.createElement)("path",{opacity:"0.1",d:"M129.335 146.96C129.335 147.155 129.338 147.349 129.346 147.544C130.863 150.756 133.428 153.355 136.619 154.915C139.81 156.475 143.438 156.901 146.904 156.125C150.37 155.348 153.468 153.414 155.688 150.642C157.908 147.869 159.118 144.423 159.119 140.871C159.119 140.676 159.116 140.481 159.107 140.287C157.591 137.075 155.026 134.476 151.835 132.916C148.643 131.356 145.016 130.93 141.55 131.706C138.084 132.483 134.986 134.417 132.765 137.189C130.545 139.962 129.335 143.408 129.335 146.96H129.335Z",fill:"black"}),Object(g.createElement)("path",{d:"M224.461 59.1491C229.783 59.1491 234.098 54.8348 234.098 49.513C234.098 44.1912 229.783 39.877 224.461 39.877C219.139 39.877 214.824 44.1912 214.824 49.513C214.824 54.8348 219.139 59.1491 224.461 59.1491Z",fill:"#2F2E41"}),Object(g.createElement)("path",{d:"M236.166 86.9957C236.166 86.9957 235.643 98.2553 235.119 99.0408C234.595 99.8264 229.881 111.086 229.881 111.086L227.525 103.754C227.525 103.754 231.191 97.7316 230.667 94.3275C230.143 90.9235 230.473 86.7346 230.473 86.7346L236.166 86.9957Z",fill:"#9F616A"}),Object(g.createElement)("path",{d:"M221.24 59.7637C225.29 59.7637 228.572 56.4811 228.572 52.4319C228.572 48.3827 225.29 45.1001 221.24 45.1001C217.191 45.1001 213.908 48.3827 213.908 52.4319C213.908 56.4811 217.191 59.7637 221.24 59.7637Z",fill:"#9F616A"}),Object(g.createElement)("path",{d:"M227.263 53.217C227.263 53.217 227.001 63.691 228.834 65.2621C230.667 66.8332 218.359 65.524 218.359 65.524C218.359 65.524 220.978 58.1922 218.883 56.6211C216.788 55.05 227.263 53.217 227.263 53.217Z",fill:"#9F616A"}),Object(g.createElement)("path",{d:"M217.574 65.0008C217.574 65.0008 219.145 62.1205 221.24 62.3823C223.335 62.6442 230.144 63.1679 230.406 63.6916C230.667 64.2153 231.453 66.0482 231.977 66.5719C232.501 67.0956 236.429 67.8812 236.69 71.0234C236.952 74.1656 227.263 93.2806 227.263 93.2806C227.263 93.2806 228.573 97.732 228.311 98.7794C228.049 99.8268 229.62 102.969 229.358 104.278C229.096 105.588 233.286 113.443 231.191 123.655V140.152C231.191 140.152 238.262 168.693 236.167 170.788C234.072 172.883 227.001 171.574 225.692 170.788C224.383 170.003 218.884 130.463 218.884 130.463L216.265 117.109L216.003 146.436C216.003 146.436 216.527 171.05 214.694 171.836C212.861 172.621 205.79 172.883 205.266 171.312C204.858 170.087 202.857 137.484 201.996 123.193C201.697 118.26 202.085 113.309 203.149 108.483C204.238 103.54 205.821 97.7324 207.623 95.3754C211.028 90.9239 213.122 76.7841 213.122 76.7841L208.671 68.6667C208.671 68.6667 211.289 66.0482 212.861 66.0482C214.432 66.0482 217.574 65.0008 217.574 65.0008Z",fill:"#444053"}),Object(g.createElement)("path",{d:"M235.119 69.1902L236.5 70.1301C236.5 70.1301 237.476 86.996 236.69 88.0434C235.904 89.0908 230.443 88.5796 230.031 87.6569C229.62 86.7341 235.119 69.1902 235.119 69.1902Z",fill:"#444053"}),Object(g.createElement)("path",{d:"M211.767 84.5249C212.533 89.8422 213.205 94.5756 209.286 98.8578C205.347 103.192 200.904 107.039 196.053 110.319C195.572 111.593 188.515 120.943 188.156 117.213C187.797 113.484 190.235 110.56 193.7 107.406C197.165 104.252 202.012 97.4081 204.747 93.6531C207.482 89.898 206.356 87.5565 206.261 84.42C206.166 81.2835 210.691 84.5628 211.767 84.5249Z",fill:"#9F616A"}),Object(g.createElement)("path",{d:"M212.337 67.8806L208.671 68.6662C208.671 68.6662 208.671 74.4269 207.623 76.7835C206.576 79.1402 204.743 84.639 205.528 84.9008C206.314 85.1627 213.646 88.8286 214.17 86.7338C214.694 84.639 216.003 67.8806 212.337 67.8806Z",fill:"#444053"}),Object(g.createElement)("path",{d:"M234.901 46.4615C240.223 46.4615 244.537 42.1473 244.537 36.8255C244.537 31.5037 240.223 27.1895 234.901 27.1895C229.579 27.1895 225.264 31.5037 225.264 36.8255C225.264 42.1473 229.579 46.4615 234.901 46.4615Z",fill:"#2F2E41"}),Object(g.createElement)("path",{d:"M243.213 44.8046C241.966 45.706 240.521 46.2957 238.999 46.5242C237.477 46.7527 235.922 46.6134 234.465 46.118C233.008 45.6226 231.691 44.7855 230.624 43.6767C229.557 42.5679 228.771 41.2197 228.331 39.7449C228.498 41.0666 228.936 42.3395 229.619 43.4832C230.302 44.6269 231.215 45.6166 232.3 46.3898C233.384 47.163 234.618 47.7029 235.922 47.9754C237.226 48.2479 238.572 48.2471 239.876 47.973C241.18 47.699 242.412 47.1576 243.496 46.3831C244.58 45.6087 245.492 44.6179 246.173 43.4734C246.855 42.3288 247.292 41.0554 247.456 39.7335C247.621 38.4116 247.51 37.07 247.13 35.7932C247.346 37.5085 247.096 39.2503 246.407 40.8358C245.718 42.4214 244.614 43.7922 243.213 44.8046Z",fill:"#2F2E41"}),Object(g.createElement)("path",{d:"M227.031 58.1854C230.934 58.1854 234.098 55.0216 234.098 51.1189C234.098 47.2162 230.934 44.0525 227.031 44.0525C223.128 44.0525 219.964 47.2162 219.964 51.1189C219.964 55.0216 223.128 58.1854 227.031 58.1854Z",fill:"#2F2E41"}),Object(g.createElement)("path",{d:"M221.088 53.3669C224.548 53.3669 227.352 51.1739 227.352 48.4686C227.352 45.7634 224.548 43.5703 221.088 43.5703C217.629 43.5703 214.824 45.7634 214.824 48.4686C214.824 51.1739 217.629 53.3669 221.088 53.3669Z",fill:"#2F2E41"}),Object(g.createElement)("path",{d:"M219.417 55.5916C220.074 55.5916 220.606 54.65 220.606 53.4884C220.606 52.3269 220.074 51.3853 219.417 51.3853C218.761 51.3853 218.229 52.3269 218.229 53.4884C218.229 54.65 218.761 55.5916 219.417 55.5916Z",fill:"#A0616A"})),Object(g.createElement)("defs",null,Object(g.createElement)("clipPath",{id:"management-svg"},Object(g.createElement)("path",{d:"M0 6C0 2.6863 2.68629 0 6 0H289C292.314 0 295 2.68629 295 6V160H0V6Z",fill:"white"}))))},F=function(){return Object(g.createElement)("svg",{width:"295",height:"160",viewBox:"0 0 295 160",fill:"none",xmlns:"http://www.w3.org/2000/svg"},Object(g.createElement)("g",{clipPath:"url(#sales-tax-svg)"},Object(g.createElement)("path",{d:"M0 6C0 2.6863 2.68629 0 6 0H289C292.314 0 295 2.68629 295 6V160H0V6Z",fill:"#F7EDF7"}),Object(g.createElement)("path",{opacity:"0.05",d:"M164.773 36.3068C148.909 35.7553 133.8 30.6347 119.37 25.0313C104.94 19.4279 90.6516 13.2214 75.1674 10.2506C65.2082 8.34111 53.82 8.07148 45.7947 13.4102C38.0735 18.5577 35.5782 27.4188 34.2349 35.6499C33.2275 41.8416 32.6343 48.3594 35.3992 54.1564C37.3185 58.1813 40.7281 61.564 43.0862 65.4172C51.2879 78.8302 45.4908 95.3807 36.6052 108.468C32.4382 114.613 27.5995 120.478 24.3811 127.013C21.1627 133.548 19.6748 141.046 22.4888 147.719C25.2807 154.337 31.9308 159.298 39.1348 162.791C53.7636 169.9 71.0004 171.917 87.8181 173.066C125.032 175.613 162.447 174.51 199.759 173.407C213.569 172.998 227.438 172.584 241.025 170.449C248.568 169.265 256.357 167.382 261.833 162.85C268.785 157.082 270.508 147.317 265.851 140.083C258.037 127.952 236.437 124.94 230.968 111.921C227.96 104.754 231.049 96.7729 235.417 90.1253C244.79 75.8691 260.5 63.3607 261.328 47.0651C261.897 35.873 254.345 24.6636 242.668 19.3666C230.426 13.8171 213.454 14.5157 204.429 23.7028C195.119 33.1521 178.775 36.7971 164.773 36.3068Z",fill:"#7F54B3"}),Object(g.createElement)("path",{d:"M98.0173 58.1228C98.0173 58.1228 104.812 49.2691 108.518 49.9554C108.518 49.9554 104.4 57.8483 98.0173 59.0248V58.1228Z",fill:"#7F54B3"}),Object(g.createElement)("path",{d:"M101.445 47.2146C101.445 47.2146 107.45 40.4248 110.693 40.4419C110.693 40.4419 105.952 49.5113 101.197 49.428L101.445 47.2146Z",fill:"#7F54B3"}),Object(g.createElement)("path",{d:"M103.474 39.9447L109.273 25.8037C109.273 25.8037 109.565 38.5867 102.736 42.5674L103.474 39.9447Z",fill:"#7F54B3"}),Object(g.createElement)("path",{d:"M101.922 48.1023C101.922 48.1023 101.9 39.0329 99.4566 36.9077C99.4566 36.9077 97.0225 46.8424 100.645 49.9285L101.922 48.1023Z",fill:"#7F54B3"}),Object(g.createElement)("path",{d:"M198.534 25.4629H97.6055C96.2789 25.4629 95.2034 26.5384 95.2034 27.8651V180.276C95.2034 181.602 96.2789 182.678 97.6055 182.678H198.534C199.86 182.678 200.936 181.602 200.936 180.276V27.8651C200.936 26.5384 199.86 25.4629 198.534 25.4629Z",fill:"white"}),Object(g.createElement)("path",{opacity:"0.1",d:"M185.408 38.9763H112.041C108.086 38.9763 104.881 42.1819 104.881 46.1363V62.7235C104.881 66.6778 108.086 69.8835 112.041 69.8835H185.408C189.362 69.8835 192.567 66.6778 192.567 62.7235V46.1363C192.567 42.1819 189.362 38.9763 185.408 38.9763Z",fill:"black"}),Object(g.createElement)("path",{d:"M189.303 39.5791H107.945C106.564 39.5791 105.445 40.6985 105.445 42.0793V66.9712C105.445 68.3521 106.564 69.4715 107.945 69.4715H189.303C190.683 69.4715 191.803 68.3521 191.803 66.9712V42.0793C191.803 40.6985 190.683 39.5791 189.303 39.5791Z",fill:"#E6E8EC"}),Object(g.createElement)("path",{opacity:"0.1",d:"M122.728 82.7573H110.58C109.119 82.7573 107.935 83.9415 107.935 85.4022V99.4867C107.935 100.947 109.119 102.132 110.58 102.132H122.728C124.189 102.132 125.373 100.947 125.373 99.4867V85.4022C125.373 83.9415 124.189 82.7573 122.728 82.7573Z",fill:"black"}),Object(g.createElement)("path",{opacity:"0.1",d:"M144.041 82.7573H131.893C130.432 82.7573 129.248 83.9415 129.248 85.4022V99.4867C129.248 100.947 130.432 102.132 131.893 102.132H144.041C145.502 102.132 146.686 100.947 146.686 99.4867V85.4022C146.686 83.9415 145.502 82.7573 144.041 82.7573Z",fill:"black"}),Object(g.createElement)("path",{opacity:"0.1",d:"M165.354 82.7573H153.206C151.745 82.7573 150.561 83.9415 150.561 85.4022V99.4867C150.561 100.947 151.745 102.132 153.206 102.132H165.354C166.815 102.132 167.999 100.947 167.999 99.4867V85.4022C167.999 83.9415 166.815 82.7573 165.354 82.7573Z",fill:"black"}),Object(g.createElement)("path",{opacity:"0.1",d:"M182.243 83.1694H178.944C175.04 83.1694 171.875 86.3344 171.875 90.2387V95.4745C171.875 99.3787 175.04 102.544 178.944 102.544H182.243C186.147 102.544 189.312 99.3787 189.312 95.4745V90.2387C189.312 86.3344 186.147 83.1694 182.243 83.1694Z",fill:"black"}),Object(g.createElement)("path",{d:"M186.667 82.7573H174.519C173.059 82.7573 171.875 83.9415 171.875 85.4022V99.4867C171.875 100.947 173.059 102.132 174.519 102.132H186.667C188.128 102.132 189.312 100.947 189.312 99.4867V85.4022C189.312 83.9415 188.128 82.7573 186.667 82.7573Z",fill:"#646970"}),Object(g.createElement)("path",{opacity:"0.1",d:"M122.728 104.07H110.58C109.119 104.07 107.935 105.254 107.935 106.715V120.8C107.935 122.26 109.119 123.445 110.58 123.445H122.728C124.189 123.445 125.373 122.26 125.373 120.8V106.715C125.373 105.254 124.189 104.07 122.728 104.07Z",fill:"black"}),Object(g.createElement)("path",{opacity:"0.1",d:"M144.041 104.07H131.893C130.432 104.07 129.248 105.254 129.248 106.715V120.8C129.248 122.26 130.432 123.445 131.893 123.445H144.041C145.502 123.445 146.686 122.26 146.686 120.8V106.715C146.686 105.254 145.502 104.07 144.041 104.07Z",fill:"black"}),Object(g.createElement)("path",{opacity:"0.1",d:"M165.354 104.07H153.206C151.745 104.07 150.561 105.254 150.561 106.715V120.8C150.561 122.26 151.745 123.445 153.206 123.445H165.354C166.815 123.445 167.999 122.26 167.999 120.8V106.715C167.999 105.254 166.815 104.07 165.354 104.07Z",fill:"black"}),Object(g.createElement)("path",{opacity:"0.1",d:"M122.728 127.597H110.58C109.119 127.597 107.935 128.781 107.935 130.242V144.327C107.935 145.787 109.119 146.971 110.58 146.971H122.728C124.189 146.971 125.373 145.787 125.373 144.327V130.242C125.373 128.781 124.189 127.597 122.728 127.597Z",fill:"black"}),Object(g.createElement)("path",{opacity:"0.1",d:"M144.041 127.597H131.893C130.432 127.597 129.248 128.781 129.248 130.242V144.327C129.248 145.787 130.432 146.971 131.893 146.971H144.041C145.502 146.971 146.686 145.787 146.686 144.327V130.242C146.686 128.781 145.502 127.597 144.041 127.597Z",fill:"black"}),Object(g.createElement)("path",{opacity:"0.1",d:"M165.354 127.597H153.206C151.745 127.597 150.561 128.781 150.561 130.242V144.327C150.561 145.787 151.745 146.971 153.206 146.971H165.354C166.815 146.971 167.999 145.787 167.999 144.327V130.242C167.999 128.781 166.815 127.597 165.354 127.597Z",fill:"black"}),Object(g.createElement)("path",{opacity:"0.1",d:"M165.354 151.123H153.206C151.745 151.123 150.561 152.307 150.561 153.768V167.853C150.561 169.313 151.745 170.498 153.206 170.498H165.354C166.815 170.498 167.999 169.313 167.999 167.853V153.768C167.999 152.307 166.815 151.123 165.354 151.123Z",fill:"black"}),Object(g.createElement)("path",{opacity:"0.1",d:"M186.542 104.07H174.644C173.115 104.07 171.875 105.31 171.875 106.84V120.675C171.875 122.205 173.115 123.445 174.644 123.445H186.542C188.072 123.445 189.312 122.205 189.312 120.675V106.84C189.312 105.31 188.072 104.07 186.542 104.07Z",fill:"black"}),Object(g.createElement)("path",{opacity:"0.1",d:"M144.225 151.123H110.396C109.037 151.123 107.935 152.225 107.935 153.584V168.037C107.935 169.396 109.037 170.498 110.396 170.498H144.225C145.584 170.498 146.686 169.396 146.686 168.037V153.584C146.686 152.225 145.584 151.123 144.225 151.123Z",fill:"black"}),Object(g.createElement)("path",{opacity:"0.1",d:"M186.452 127.597H173.071C171.492 127.597 170.213 128.877 170.213 130.455V167.642C170.213 169.221 171.492 170.5 173.071 170.5H186.452C188.031 170.5 189.31 169.221 189.31 167.642V130.455C189.31 128.877 188.031 127.597 186.452 127.597Z",fill:"black"}),Object(g.createElement)("path",{d:"M187.925 64.251H180.292V65.077H187.925V64.251Z",fill:"#646970"}),Object(g.createElement)("path",{d:"M176.75 64.251H169.117V65.077H176.75V64.251Z",fill:"#646970"}),Object(g.createElement)("path",{d:"M165.572 64.251H157.939V65.077H165.572V64.251Z",fill:"#646970"}),Object(g.createElement)("path",{d:"M154.398 64.251H146.765V65.077H154.398V64.251Z",fill:"#646970"}),Object(g.createElement)("path",{d:"M236.67 122.236C237.456 119.589 236.67 116.941 236.67 116.941V114.444C236.67 114.444 237.569 109.561 233.554 106.428L230.892 104.08C230.892 104.08 229.399 102.798 228.965 102.717C228.885 102.7 228.803 102.687 228.72 102.68L228.642 102.634C228.413 102.242 228.218 101.832 228.058 101.408C228.231 101.43 228.406 101.413 228.57 101.357C228.735 101.301 228.884 101.208 229.007 101.085C229.103 100.974 229.179 100.847 229.23 100.71C229.385 100.364 229.412 99.9448 229.541 99.5771C229.655 99.2789 229.821 99.0034 230.032 98.7633C230.005 98.8074 229.975 98.8491 229.951 98.8956C230.328 98.425 230.821 98.023 231.176 97.5279C231.247 97.4297 231.312 97.3273 231.37 97.2215C231.355 97.2435 231.336 97.2631 231.319 97.2852C231.809 96.4984 231.958 95.5449 232.101 94.6257C232.169 94.3128 232.174 93.9894 232.115 93.6746C232.046 93.4657 231.958 93.2637 231.85 93.0716C231.272 91.8779 231.282 90.3753 230.358 89.4218C229.662 88.7085 228.608 88.4903 227.615 88.3678C226.622 88.2452 225.578 88.1741 224.725 87.6545C224.487 87.4739 224.223 87.3294 223.943 87.2255C223.802 87.1763 223.648 87.1778 223.508 87.2297C223.368 87.2816 223.251 87.3806 223.176 87.5098C223.158 87.5863 223.123 87.6577 223.073 87.7182C223.028 87.7434 222.979 87.7581 222.928 87.761C222.877 87.764 222.826 87.7552 222.779 87.7353L221.457 87.3824L221.472 87.4486H221.438L221.487 87.6569C221.513 87.6523 221.539 87.657 221.562 87.6699C221.585 87.6829 221.603 87.7034 221.612 87.728L221.399 88.0565C220.99 88.049 220.586 87.9659 220.207 87.8113C220.205 87.8325 220.205 87.8539 220.207 87.8751H220.188C220.163 88.2476 220.587 88.4903 220.717 88.8408C220.769 88.9942 220.769 89.1605 220.717 89.3139C220.664 89.4562 220.58 89.585 220.472 89.6914C220.004 90.1547 219.403 90.064 218.864 90.3557C218.817 90.3756 218.776 90.4054 218.742 90.4431C218.708 90.4808 218.683 90.5254 218.668 90.5738C218.647 90.61 218.64 90.6532 218.651 90.6939C218.672 90.7502 218.711 90.7983 218.761 90.8312C218.918 90.9581 219.09 91.0651 219.273 91.1499C219.219 91.1989 219.168 91.2479 219.119 91.2994C218.435 91.9949 217.933 92.8492 217.659 93.7859C217.386 94.7225 217.348 95.7124 217.551 96.667C217.753 97.6216 218.188 98.5113 218.818 99.2565C219.448 100.002 220.253 100.579 221.161 100.938C221.18 101.04 221.195 101.146 221.21 101.256C221.21 101.268 221.21 101.276 221.21 101.288L221.225 101.43L219.445 102.188C219.177 102.186 218.914 102.107 218.689 101.962C218.463 101.817 218.283 101.61 218.17 101.366C217.756 100.511 216.293 101.366 216.293 101.366C216.293 101.366 211.829 101.033 210.165 101.857C210.165 101.857 207.5 100.739 207.125 100.663C206.75 100.587 206.189 100.29 205.927 100.366C205.664 100.442 205.326 99.8761 205.137 99.9178C204.949 99.9595 204.875 99.5452 204.275 99.3957C203.674 99.2462 203.448 99.4349 202.774 98.7633C202.1 98.0917 196.619 95.4444 196.619 95.4444L194.158 93.4197L191.533 91.3313L191.487 91.417C191.469 91.3558 191.452 91.292 191.435 91.2234C191.174 90.183 190.846 89.1604 190.455 88.1619C190.286 87.7574 190.21 87.2476 189.982 87.5172C189.842 87.679 189.604 87.3235 189.246 87.0833C189.17 87.0309 189.084 86.9961 188.993 86.9813C188.902 86.9666 188.809 86.9724 188.72 86.9982C188.631 87.024 188.55 87.0693 188.481 87.1307C188.412 87.192 188.358 87.268 188.322 87.353C186.278 90.5591 185.545 90.7846 186.729 91.9637C187.785 93.0103 188.486 93.9246 189.347 94.2139L189.45 94.2457C189.431 94.2506 189.412 94.2506 189.393 94.2457L194.384 100.212C194.384 100.212 197.985 103.345 200.463 104.35C202.941 105.355 202.75 105.656 202.75 105.656C202.75 105.656 210.255 109.458 211.417 109.384C212.579 109.311 212.356 117.177 211.868 118.454C211.381 119.731 210.594 128.893 210.594 128.893C210.594 128.893 209.841 130.832 210.63 132.173C210.63 132.173 210.805 134.742 210.648 135.36C209.964 136.414 208.988 138.203 208.829 140.044C208.829 140.142 208.809 140.233 208.799 140.328C208.749 140.386 208.69 140.435 208.623 140.473L208.79 140.424C208.719 141.191 208.554 141.947 208.299 142.674C207.903 143.695 207.693 144.78 207.679 145.875V151.797L207.189 155.474C207.189 155.474 206.588 158.256 207.189 158.906C207.442 159.23 207.56 159.639 207.517 160.048C207.492 160.523 207.627 160.992 207.9 161.382C208.004 161.495 208.081 161.632 208.123 161.78C208.166 161.929 208.173 162.085 208.145 162.237C207.946 162.882 208.439 169.743 208.439 169.743C208.439 169.743 208.294 171.632 208.096 171.733C207.897 171.833 208.439 173.919 208.439 173.919C208.439 173.919 206.412 175.611 206.929 176.505L207.446 177.3L207.309 177.434L207.226 177.52C207.069 177.43 206.887 177.396 206.709 177.422C206.071 178.074 205.39 178.681 204.669 179.239C203.755 179.898 201.267 180.854 201.267 180.854L199.306 181.013H199.269C199.269 181.013 198.33 180.925 198.857 182.379C199.384 183.832 204.096 183.386 204.096 183.386L206.846 182.952C206.846 182.952 211.748 182.977 213.153 182.665C213.739 182.535 213.888 182.222 213.839 181.905L213.824 181.891C213.757 181.589 213.619 181.308 213.422 181.07C213.412 181.054 213.401 181.039 213.388 181.025L213.476 180.02C215.557 178.822 212.888 176.464 212.888 176.464C212.888 176.464 213.802 174.476 214.271 173.831C214.739 173.187 214.739 163.688 214.739 163.688C214.739 163.688 214.984 160.256 214.339 159.462C214.328 159.204 214.387 158.947 214.511 158.719C214.634 158.492 214.817 158.302 215.04 158.171C215.503 157.854 216.903 153.499 218.001 149.883L218.692 154.143C218.692 154.143 218.543 156.183 218.992 156.778C219.076 156.891 219.136 157.019 219.168 157.156C219.2 157.292 219.203 157.434 219.178 157.572C219.071 158.144 219.106 158.733 219.278 159.288C219.331 159.526 219.459 159.741 219.644 159.901C220.043 160.1 220.068 160.808 220.217 160.958C220.367 161.107 221.293 160.747 221.342 161.293C221.37 161.773 221.37 162.255 221.342 162.735L221.644 171.583C221.644 171.583 221.153 172.319 221.043 174.28C221.001 175.116 220.845 175.591 220.683 175.863C220.593 176.009 220.552 176.18 220.565 176.351C220.578 176.522 220.645 176.684 220.756 176.814L220.842 176.915L220.472 177.199C220.323 177.315 220.219 177.478 220.177 177.662C220.135 177.845 220.158 178.038 220.242 178.207C220.122 178.31 220.037 178.448 219.996 178.601C219.955 178.754 219.962 178.915 220.014 179.065C220.029 179.114 220.05 179.161 220.077 179.204C219.796 179.248 219.535 179.377 219.33 179.574C218.96 180.082 218.514 180.53 218.009 180.903C217.274 181.466 216.572 182.068 215.903 182.707C215.588 183.136 215.165 183.474 214.677 183.687C214.558 183.736 214.434 183.773 214.307 183.798C213.327 183.999 213.633 185.023 214.432 185.193C215.231 185.362 217.884 186.173 219.947 185.7C219.947 185.7 220.56 185.945 221.46 185.489C222.359 185.033 224.367 184.474 224.367 184.474C224.367 184.474 225.492 184.474 225.644 184.028C225.684 183.886 225.705 183.739 225.708 183.592L225.74 183.56L225.71 183.533C225.713 183.199 225.688 182.865 225.634 182.535C225.605 182.364 225.573 182.212 225.544 182.089C225.448 181.717 225.269 181.234 225.193 181.03C225.206 181.014 225.217 180.997 225.227 180.979C225.656 180.244 224.943 178.498 224.943 178.498C225.177 178.127 225.462 177.789 225.789 177.496C226.188 177.197 227.24 169.441 227.24 169.441C227.24 169.441 227.188 167.453 227.73 166.559C228.272 165.664 226.98 160.247 226.98 160.247C226.98 160.247 226.428 159.004 226.629 158.555C226.83 158.107 226.428 156.467 226.428 156.467V154.506C226.427 154.272 226.388 154.041 226.313 153.82C226.159 153.359 225.931 152.474 226.178 151.839C226.529 150.944 227.328 145.427 227.328 145.427C227.328 145.427 226.703 142.993 227.62 141.054C227.691 140.899 227.773 140.749 227.865 140.605C228.544 139.539 228.34 137.644 228.005 136.117C227.956 135.872 227.899 135.651 227.843 135.438C227.821 135.345 227.796 135.257 227.772 135.168L227.88 135.124C227.88 135.124 227.88 134.98 227.914 134.732C228.284 134.659 228.635 134.51 228.945 134.296C229.256 134.081 229.519 133.805 229.718 133.485C229.718 133.485 232.007 130.911 234.032 129.83C236.057 128.749 236.209 127.182 236.209 127.182C235.91 126.66 236.746 124.535 236.746 124.535L236.67 122.236ZM230.066 125.668L227.899 128.18V128.165C227.335 127.381 228.424 125.628 228.424 125.628L230.225 121.608C230.211 122.123 230.147 122.589 229.98 122.792C229.49 123.464 230.882 124.584 230.882 124.584C230.14 124.587 230.066 125.668 230.066 125.668Z",fill:"url(#paint0_linear)"}),Object(g.createElement)("path",{d:"M191.915 92.7263L190.732 95.023C190.357 94.991 189.987 94.9136 189.631 94.7926C189.066 94.624 188.544 94.3376 188.098 93.9522C187.652 93.5669 187.293 93.0914 187.045 92.5571C185.989 90.2236 187.736 88.7161 188.55 88.27C189.364 87.8238 190.121 87.3165 190.732 88.7798C191.115 89.7726 191.435 90.7886 191.69 91.8218C191.832 92.3586 191.915 92.7263 191.915 92.7263Z",fill:"#CC818C"}),Object(g.createElement)("path",{d:"M229.515 104.674L227.625 107.488C227.625 107.488 218.695 111.748 220.401 106.752C221.151 104.546 221.239 102.936 221.104 101.82C221.104 101.808 221.104 101.801 221.104 101.789C220.928 100.394 220.403 99.7884 220.403 99.7884C220.403 99.7884 229.108 95.3321 227.811 98.3789C227.546 99.0122 227.441 99.7007 227.505 100.384C227.611 101.368 227.931 102.318 228.441 103.166C228.747 103.703 229.107 104.208 229.515 104.674Z",fill:"#CC818C"}),Object(g.createElement)("path",{d:"M226.796 160.416C226.796 160.416 228.08 165.808 227.531 166.688C226.982 167.568 227.041 169.554 227.041 169.554C227.041 169.554 226.004 177.26 225.61 177.554C225.286 177.841 225.003 178.171 224.769 178.535C224.769 178.535 225.475 180.28 225.051 181.001C224.985 181.111 224.887 181.196 224.769 181.246C224.107 181.525 221.661 180.285 220.268 179.53C220.156 179.469 220.061 179.381 219.99 179.275C219.918 179.169 219.874 179.047 219.86 178.92C219.846 178.793 219.863 178.665 219.909 178.545C219.956 178.426 220.03 178.32 220.126 178.236C220.043 178.069 220.019 177.878 220.06 177.696C220.101 177.513 220.204 177.351 220.352 177.236L220.719 176.951L220.634 176.851C220.524 176.721 220.457 176.56 220.444 176.39C220.431 176.22 220.471 176.05 220.56 175.905C220.719 175.638 220.874 175.169 220.916 174.334C221.016 172.407 221.509 171.667 221.509 171.667L221.212 162.872C221.24 162.395 221.24 161.917 221.212 161.44C221.163 160.899 220.249 161.256 220.102 161.107C219.955 160.957 219.928 160.256 219.533 160.058C219.351 159.898 219.226 159.684 219.175 159.447C219.001 158.893 218.966 158.303 219.075 157.732C219.1 157.595 219.097 157.454 219.065 157.318C219.034 157.182 218.974 157.054 218.891 156.942C218.447 156.349 218.594 154.327 218.594 154.327L217.913 150.091C216.827 153.685 215.447 158.014 214.989 158.327C214.769 158.459 214.588 158.648 214.467 158.873C214.345 159.099 214.286 159.353 214.297 159.609C214.94 160.401 214.692 163.811 214.692 163.811C214.692 163.811 214.692 173.243 214.229 173.887C213.765 174.532 212.868 176.515 212.868 176.515C212.868 176.515 215.516 178.871 213.432 180.06H213.41C211.285 181.246 206.89 177.937 206.89 177.937L207.348 177.478L207.483 177.344L206.963 176.569C206.453 175.679 208.454 174 208.454 174C208.454 174 207.919 171.924 208.115 171.826C208.311 171.728 208.454 169.85 208.454 169.85C208.454 169.85 207.963 163.034 208.164 162.391C208.191 162.24 208.183 162.085 208.141 161.938C208.098 161.79 208.022 161.654 207.919 161.541C207.649 161.154 207.517 160.688 207.542 160.217C207.585 159.811 207.468 159.404 207.216 159.082C206.623 158.44 207.216 155.675 207.216 155.675L207.706 152.018V146.211C207.713 145.09 207.923 143.98 208.326 142.934C208.626 142.086 208.807 141.201 208.865 140.304C209.027 138.431 210.035 136.612 210.711 135.575C211.069 135.026 211.336 134.698 211.336 134.698L227.142 134.08C227.142 134.08 227.387 134.784 227.651 135.762C227.705 135.975 227.759 136.2 227.811 136.436C228.142 137.955 228.34 139.838 227.671 140.897C227.58 141.04 227.498 141.189 227.426 141.343C226.521 143.27 227.139 145.689 227.139 145.689C227.139 145.689 226.35 151.17 226.004 152.062C225.759 152.692 225.985 153.572 226.139 154.023C226.211 154.244 226.248 154.475 226.249 154.707V156.66C226.249 156.66 226.646 158.291 226.448 158.737C226.249 159.183 226.796 160.416 226.796 160.416Z",fill:"#444053"}),Object(g.createElement)("path",{opacity:"0.1",d:"M227.524 141.054C227.433 141.196 227.351 141.344 227.279 141.497L226.389 141.448C226.475 140.99 225.87 136.693 225.87 136.693L227.661 136.593C227.992 138.11 228.193 139.992 227.524 141.054Z",fill:"black"}),Object(g.createElement)("path",{d:"M227.671 140.904C227.58 141.048 227.499 141.197 227.426 141.35L226.536 141.299C226.622 140.843 226.017 136.543 226.017 136.543L227.808 136.443C228.142 137.963 228.34 139.845 227.671 140.904Z",fill:"#444053"}),Object(g.createElement)("path",{opacity:"0.05",d:"M227.671 140.904C227.58 141.048 227.499 141.197 227.426 141.35L226.536 141.299C226.622 140.843 226.017 136.543 226.017 136.543L227.808 136.443C228.142 137.963 228.34 139.845 227.671 140.904Z",fill:"black"}),Object(g.createElement)("path",{opacity:"0.1",d:"M220.869 160.774C220.869 160.774 221.894 159.303 223.649 159.303C225.404 159.303 226.154 159.104 226.154 159.104C226.154 159.104 225.031 159.771 224.254 159.857C223.477 159.943 220.869 160.774 220.869 160.774Z",fill:"black"}),Object(g.createElement)("path",{opacity:"0.1",d:"M208.662 140.728C208.736 140.74 209.983 139.431 210.069 138.914C210.137 138.587 210.332 138.299 210.611 138.115C210.611 138.115 211.415 138.436 210.699 139.421C209.983 140.407 208.662 140.728 208.662 140.728Z",fill:"black"}),Object(g.createElement)("path",{opacity:"0.1",d:"M227.799 98.3738C227.515 99.0454 227.265 99.1092 227.309 99.7489C226.978 100.099 226.597 100.399 226.179 100.639C225.296 101.163 224.335 102.19 223.237 102.19C222.501 102.191 221.772 102.053 221.088 101.783C220.911 100.389 220.386 99.7833 220.386 99.7833C220.386 99.7833 229.093 95.327 227.799 98.3738Z",fill:"black"}),Object(g.createElement)("path",{d:"M229.132 96.0035C229.132 97.167 228.787 98.3044 228.141 99.2718C227.494 100.239 226.575 100.993 225.5 101.439C224.425 101.884 223.243 102 222.101 101.773C220.96 101.546 219.912 100.986 219.089 100.163C218.267 99.3406 217.706 98.2923 217.479 97.1512C217.252 96.01 217.369 94.8272 217.814 93.7522C218.259 92.6772 219.013 91.7585 219.981 91.112C220.948 90.4656 222.086 90.1206 223.249 90.1206C224.809 90.1206 226.306 90.7404 227.409 91.8437C228.512 92.9469 229.132 94.4432 229.132 96.0035Z",fill:"#CC818C"}),Object(g.createElement)("path",{opacity:"0.1",d:"M229.515 104.673L227.625 107.487C227.625 107.487 218.695 111.747 220.401 106.752C221.151 104.546 221.239 102.935 221.104 101.82H221.119C221.225 102.19 221.285 102.571 221.298 102.955C221.325 103.725 221.345 104.698 223.259 105.019C226.446 105.553 228.147 103.563 228.446 103.173C228.751 103.708 229.109 104.21 229.515 104.673Z",fill:"black"}),Object(g.createElement)("path",{opacity:"0.1",d:"M191.915 92.7262L190.731 95.023C190.357 94.9909 189.987 94.9135 189.631 94.7926L189.528 94.67C190.018 94.8563 191.638 91.78 191.638 91.78L191.69 91.8217C191.832 92.3585 191.915 92.7262 191.915 92.7262Z",fill:"black"}),Object(g.createElement)("path",{opacity:"0.1",d:"M227.652 135.769C223.838 137.426 210.645 136.015 210.645 136.015C210.685 135.874 210.707 135.729 210.711 135.583C211.069 135.034 211.337 134.706 211.337 134.706L227.142 134.088C227.142 134.088 227.399 134.791 227.652 135.769Z",fill:"black"}),Object(g.createElement)("path",{d:"M221.109 101.958L219.349 102.71C219.084 102.708 218.825 102.63 218.602 102.485C218.379 102.341 218.202 102.135 218.092 101.894C217.683 101.043 216.239 101.894 216.239 101.894C216.239 101.894 211.827 101.56 210.199 102.384C210.199 102.384 207.569 101.271 207.199 101.198C206.829 101.124 206.272 100.828 206.013 100.901C205.753 100.975 205.422 100.411 205.235 100.457C205.049 100.504 204.976 100.087 204.382 99.9377C203.789 99.7882 203.569 99.9745 202.912 99.3078C202.255 98.641 196.835 96.0109 196.835 96.0109L194.384 94.0107L191.791 91.937C191.791 91.937 190.161 95.0108 189.678 94.8245L194.605 100.754C194.605 100.754 198.161 103.865 200.608 104.865C203.054 105.865 202.868 106.161 202.868 106.161C202.868 106.161 210.278 109.941 211.425 109.868C212.572 109.794 212.356 117.601 211.866 118.861C211.376 120.121 210.609 129.234 210.609 129.234C210.609 129.234 209.873 131.161 210.645 132.495C210.645 132.495 210.829 135.237 210.645 135.718C210.645 135.718 223.919 137.137 227.686 135.458C227.686 135.458 228.242 129.308 227.686 128.531C227.13 127.754 228.206 126.021 228.206 126.021L230.576 120.724L236.356 114.907C236.356 114.907 237.243 110.054 233.28 106.943L230.649 104.607C230.649 104.607 229.179 103.335 228.747 103.254C228.316 103.173 228.475 103.254 228.475 103.254C228.475 103.254 226.759 105.757 223.24 105.164C221.333 104.843 221.313 103.869 221.279 103.102C221.269 102.715 221.212 102.331 221.109 101.958Z",fill:"#67647E"}),Object(g.createElement)("path",{opacity:"0.1",d:"M228.353 121.901C228.353 121.901 220.2 122.234 218.572 124.795C218.572 124.795 220.685 123.793 222.573 124.09C224.46 124.386 228.353 121.901 228.353 121.901Z",fill:"black"}),Object(g.createElement)("path",{opacity:"0.1",d:"M219.349 130.827C219.349 130.827 223.203 131.087 224.019 130.271C224.835 129.455 224.838 128.974 224.838 128.974L219.349 130.827Z",fill:"black"}),Object(g.createElement)("path",{opacity:"0.1",d:"M229.132 114.044C229.132 114.044 225.87 117.898 229.836 119.564L229.132 114.044Z",fill:"black"}),Object(g.createElement)("path",{opacity:"0.1",d:"M209.829 106.6C209.829 106.6 211.015 109.019 211.608 109.179L209.829 106.6Z",fill:"black"}),Object(g.createElement)("path",{opacity:"0.1",d:"M205.828 105.561C205.828 105.561 208.792 108.23 209.348 108.487C209.348 108.487 206.272 105.561 205.828 105.561Z",fill:"black"}),Object(g.createElement)("path",{opacity:"0.1",d:"M217.646 103.006C217.646 103.006 214.792 107.267 216.645 109.87C216.645 109.86 215.609 106.784 217.646 103.006Z",fill:"black"}),Object(g.createElement)("path",{d:"M224.838 135.274L223.965 136.096L223.842 136.208L222.832 137.164C222.761 137.218 222.69 137.272 222.617 137.321C218.506 140.263 217.682 135.792 217.682 135.792C217.682 135.792 215.869 136.978 215.609 136.015C215.349 135.051 219.832 133.681 220.511 133.755C220.571 133.761 220.631 133.761 220.69 133.755C221.014 133.701 221.326 133.59 221.612 133.429L221.81 133.323C222.039 133.195 222.26 133.055 222.475 132.904L224.838 135.274Z",fill:"#CC818C"}),Object(g.createElement)("path",{opacity:"0.1",d:"M229.27 96.0032C229.272 97.0235 229.009 98.0269 228.506 98.9148C228.003 99.8026 227.278 100.544 226.402 101.067C226.32 100.93 226.247 100.786 226.186 100.638C225.975 100.148 225.845 99.6187 225.632 99.126C225.399 98.5882 225.066 98.0992 224.652 97.6847C224.581 97.6026 224.491 97.5401 224.389 97.5033C224.294 97.4902 224.197 97.4967 224.104 97.5224C224.011 97.5481 223.925 97.5925 223.85 97.6528C223.6 97.8219 223.322 97.944 223.029 98.0132C222.882 98.0468 222.729 98.042 222.585 97.999C222.44 97.9561 222.31 97.8765 222.205 97.768C221.975 97.4935 222.007 97.0915 222.073 96.741C222.217 95.9738 222.458 95.2188 222.46 94.4393C222.463 93.6598 222.164 92.8215 221.48 92.4342C220.882 92.0935 220.139 92.1891 219.475 91.9979C219.372 91.971 219.271 91.9366 219.173 91.895C219.99 91.0568 221.038 90.4812 222.183 90.2418C223.329 90.0024 224.52 90.1102 225.604 90.5513C226.688 90.9923 227.616 91.7467 228.269 92.7179C228.922 93.689 229.27 94.8329 229.27 96.0032Z",fill:"black"}),Object(g.createElement)("path",{d:"M218.771 90.954C218.665 91.0104 218.548 91.1134 218.58 91.231C218.6 91.2871 218.638 91.3352 218.687 91.3683C218.962 91.5898 219.279 91.7525 219.619 91.8463C220.283 92.0277 221.028 91.9419 221.626 92.2826C222.303 92.6674 222.607 93.5082 222.607 94.2877C222.607 95.0671 222.362 95.8221 222.222 96.5869C222.156 96.9399 222.122 97.3419 222.352 97.6164C222.457 97.7242 222.588 97.8034 222.732 97.8463C222.876 97.8892 223.029 97.8945 223.176 97.8615C223.469 97.7937 223.747 97.6724 223.997 97.5036C224.072 97.4429 224.159 97.3981 224.252 97.372C224.345 97.3459 224.443 97.3389 224.538 97.3517C224.639 97.39 224.729 97.4523 224.801 97.533C225.216 97.9482 225.548 98.4381 225.781 98.9768C225.997 99.467 226.124 99.9941 226.335 100.489C226.519 100.994 226.863 101.425 227.316 101.715C227.786 101.975 228.438 101.96 228.801 101.558C229.164 101.156 229.134 100.604 229.306 100.122C229.6 99.2808 230.421 98.7537 230.936 98.0282C231.512 97.2119 231.671 96.1873 231.828 95.1995C231.898 94.8885 231.903 94.5664 231.843 94.2533C231.776 94.0461 231.689 93.8458 231.583 93.6552C231.01 92.4689 231.022 90.9761 230.112 90.0299C229.426 89.3191 228.384 89.1034 227.404 88.9808C226.423 88.8583 225.394 88.7896 224.553 88.2724C224.317 88.0942 224.057 87.9506 223.781 87.8459C223.641 87.7967 223.488 87.7982 223.349 87.8502C223.211 87.9021 223.094 88.0013 223.021 88.1303C223.004 88.2057 222.969 88.2761 222.921 88.3362C222.877 88.3615 222.827 88.3763 222.777 88.3792C222.726 88.3822 222.676 88.3733 222.629 88.3533L221.325 88.0028L221.474 88.6597C221 88.6796 220.528 88.5959 220.089 88.4146C220.065 88.7872 220.484 89.0274 220.614 89.3755C220.661 89.5338 220.663 89.702 220.619 89.8613C220.576 90.0206 220.489 90.1647 220.369 90.2775C219.896 90.753 219.305 90.6623 218.771 90.954Z",fill:"#2F2E41"}),Object(g.createElement)("path",{opacity:"0.1",d:"M224.838 135.274L223.965 136.095L221.798 133.321C222.027 133.192 222.248 133.052 222.463 132.901L224.838 135.274Z",fill:"black"}),Object(g.createElement)("path",{d:"M234.662 112.54L236.378 114.91V117.393C236.378 117.393 237.155 120.023 236.378 122.653L236.461 124.95C236.461 124.95 235.635 127.06 235.932 127.58C235.932 127.58 235.785 129.137 233.784 130.21C231.784 131.284 229.514 133.828 229.514 133.828C229.514 133.828 228.661 135.458 226.365 135.088L224.178 136.015L221.661 132.791L225.068 130.938C225.068 130.938 226.254 129.347 226.958 129.421L229.848 126.048C229.848 126.048 229.921 124.974 230.662 124.974C230.662 124.974 229.291 123.864 229.772 123.197C230.252 122.531 229.848 119.565 229.848 119.565L234.662 112.54Z",fill:"#67647E"}),Object(g.createElement)("path",{opacity:"0.1",d:"M231.476 123.344C231.476 123.344 235.366 123.27 235.846 124.271C236.326 125.271 232.65 122.788 231.476 123.344Z",fill:"black"}),Object(g.createElement)("path",{opacity:"0.1",d:"M223.86 136.014C223.86 136.079 223.855 136.144 223.843 136.208C223.798 136.506 223.651 136.78 223.428 136.983C223.205 137.185 222.918 137.305 222.617 137.321H222.548C222.201 137.321 221.868 137.183 221.623 136.937C221.377 136.692 221.239 136.359 221.239 136.012C221.24 135.867 221.265 135.724 221.313 135.588C220.695 135.098 220.661 134.195 220.678 133.749C221.002 133.695 221.314 133.585 221.6 133.423C221.761 133.886 221.977 134.328 222.244 134.74C222.344 134.716 222.446 134.704 222.548 134.703C222.721 134.703 222.891 134.737 223.05 134.803C223.209 134.869 223.354 134.965 223.476 135.087C223.597 135.209 223.694 135.353 223.76 135.512C223.826 135.672 223.86 135.842 223.86 136.014Z",fill:"black"}),Object(g.createElement)("path",{d:"M221.717 133.129C221.717 133.129 220.84 133.328 220.84 133.487C220.84 133.646 220.641 135.093 221.604 135.693C222.568 136.294 222.47 134.865 222.47 134.865C222.47 134.865 221.641 133.595 221.717 133.129Z",fill:"#575988"}),Object(g.createElement)("path",{d:"M222.695 137.323C223.418 137.323 224.004 136.737 224.004 136.015C224.004 135.292 223.418 134.706 222.695 134.706C221.972 134.706 221.386 135.292 221.386 136.015C221.386 136.737 221.972 137.323 222.695 137.323Z",fill:"#E4AAB4"}),Object(g.createElement)("path",{d:"M222.695 137.137C223.315 137.137 223.818 136.635 223.818 136.015C223.818 135.394 223.315 134.892 222.695 134.892C222.075 134.892 221.573 135.394 221.573 136.015C221.573 136.635 222.075 137.137 222.695 137.137Z",fill:"#DCE6F2"}),Object(g.createElement)("path",{opacity:"0.1",d:"M217.597 136.522C217.597 136.522 220.364 138.816 223.918 137.36V138.473C223.918 138.473 221.548 140.103 219.401 139.115C217.254 138.127 217.597 136.522 217.597 136.522Z",fill:"black"}),Object(g.createElement)("path",{opacity:"0.1",d:"M217.597 136.225C217.597 136.225 220.364 138.522 223.918 137.063V138.176C223.918 138.176 221.548 139.806 219.401 138.818C217.254 137.831 217.597 136.225 217.597 136.225Z",fill:"black"}),Object(g.createElement)("path",{d:"M217.597 136.225C217.597 136.225 220.364 138.522 223.918 137.063V138.176C223.918 138.176 221.548 139.806 219.401 138.818C217.254 137.831 217.597 136.225 217.597 136.225Z",fill:"#444053"}),Object(g.createElement)("path",{opacity:"0.05",d:"M217.67 136.225C217.67 136.225 220.438 138.522 223.994 137.063V138.176C223.994 138.176 221.624 139.806 219.474 138.818C217.325 137.831 217.67 136.225 217.67 136.225Z",fill:"black"}),Object(g.createElement)("path",{opacity:"0.05",d:"M215.298 143.179L217.925 150.108C217.925 150.108 218.295 145.65 217.513 144.316C217.291 143.935 216.965 143.625 216.572 143.424C216.179 143.222 215.737 143.137 215.298 143.179Z",fill:"black"}),Object(g.createElement)("g",{opacity:"0.1"},Object(g.createElement)("path",{opacity:"0.1",d:"M221.754 88.2718L221.732 88.1713L221.311 88.0586L221.357 88.2645C221.489 88.2743 221.622 88.2767 221.754 88.2718Z",fill:"black"}),Object(g.createElement)("path",{opacity:"0.1",d:"M220.595 89.9436L220.639 89.9043C220.76 89.7917 220.847 89.6476 220.89 89.4882C220.933 89.3288 220.931 89.1606 220.884 89.0023C220.833 88.8794 220.762 88.7658 220.673 88.6665C220.465 88.6255 220.262 88.5656 220.065 88.4875C220.041 88.8577 220.457 89.0979 220.587 89.446C220.648 89.6059 220.65 89.7819 220.595 89.9436Z",fill:"black"}),Object(g.createElement)("path",{opacity:"0.1",d:"M227.603 101.334C227.146 101.046 226.797 100.616 226.61 100.109C226.402 99.6186 226.272 99.0892 226.058 98.5989C225.826 98.0602 225.493 97.5703 225.078 97.1552C225.007 97.0736 224.917 97.0112 224.816 96.9738C224.72 96.9612 224.624 96.968 224.531 96.9937C224.438 97.0194 224.352 97.0634 224.276 97.1233C224.027 97.2924 223.749 97.4145 223.455 97.4836C223.309 97.5168 223.156 97.5117 223.011 97.4688C222.867 97.4259 222.736 97.3466 222.632 97.2385C222.401 96.964 222.433 96.5595 222.499 96.209C222.644 95.4442 222.884 94.6868 222.887 93.9098C222.889 93.1328 222.59 92.2896 221.906 91.9047C221.308 91.564 220.565 91.6596 219.901 91.4684C219.56 91.3747 219.243 91.212 218.967 90.9904C218.95 90.9762 218.933 90.9606 218.918 90.9438C218.862 90.9652 218.808 90.9906 218.756 91.0198C218.649 91.0762 218.533 91.1792 218.563 91.2968C218.585 91.3526 218.623 91.4004 218.673 91.4341C218.947 91.6561 219.264 91.8188 219.605 91.9121C220.269 92.0935 221.012 92.0077 221.61 92.3484C222.286 92.7332 222.59 93.574 222.59 94.3535C222.59 95.1329 222.345 95.8879 222.203 96.6527C222.137 97.0057 222.105 97.4077 222.335 97.6822C222.44 97.7902 222.571 97.8695 222.715 97.9125C222.859 97.9554 223.012 97.9605 223.159 97.9273C223.452 97.8595 223.73 97.7381 223.98 97.5694C224.055 97.5088 224.141 97.464 224.234 97.4379C224.327 97.4117 224.424 97.4048 224.519 97.4175C224.62 97.4552 224.71 97.5175 224.781 97.5988C225.195 98.0148 225.528 98.5045 225.762 99.0426C225.978 99.5328 226.105 100.06 226.316 100.555C226.5 101.06 226.844 101.491 227.296 101.781C227.765 102.04 228.419 102.026 228.767 101.624C228.863 101.515 228.938 101.388 228.988 101.251C228.79 101.398 228.554 101.485 228.308 101.5C228.062 101.514 227.817 101.457 227.603 101.334Z",fill:"black"}),Object(g.createElement)("path",{opacity:"0.1",d:"M229.721 99.4493C230.091 98.9811 230.579 98.5815 230.927 98.0913C230.995 97.9933 231.059 97.8903 231.118 97.7874C230.669 98.3585 230.054 98.812 229.721 99.4493Z",fill:"black"}))),Object(g.createElement)("defs",null,Object(g.createElement)("linearGradient",{id:"paint0_linear",x1:"211.591",y1:"185.849",x2:"211.591",y2:"86.973",gradientUnits:"userSpaceOnUse"},Object(g.createElement)("stop",{stopColor:"#808080",stopOpacity:"0.25"}),Object(g.createElement)("stop",{offset:"0.54",stopColor:"#808080",stopOpacity:"0.12"}),Object(g.createElement)("stop",{offset:"1",stopColor:"#808080",stopOpacity:"0.1"})),Object(g.createElement)("clipPath",{id:"sales-tax-svg"},Object(g.createElement)("path",{d:"M0 6C0 2.6863 2.68629 0 6 0H289C292.314 0 295 2.68629 295 6V160H0V6Z",fill:"white"}))))},A=function(){return Object(g.createElement)("svg",{width:"295",height:"160",viewBox:"0 0 295 160",fill:"none",xmlns:"http://www.w3.org/2000/svg"},Object(g.createElement)("g",{clipPath:"url(#shipping-labels-svg)"},Object(g.createElement)("path",{d:"M0 6C0 2.6863 2.68629 0 6 0H289C292.314 0 295 2.68629 295 6V160H0V6Z",fill:"#F7EDF7"}),Object(g.createElement)("path",{opacity:"0.05",d:"M297.839 152.033C290.282 167.747 274.937 178.255 259.035 185.184C237.627 194.516 214.051 198.218 190.8 196.652C186.725 196.379 182.663 195.942 178.613 195.342C164.546 193.274 150.833 189.248 137.864 183.381C134.121 181.682 130.454 179.827 126.862 177.816C120.864 174.465 115.117 170.676 109.666 166.48C108.295 165.425 106.943 164.343 105.61 163.235C104.686 162.466 103.77 161.681 102.84 160.918C100.878 159.31 98.8582 157.782 96.6056 156.638C95.9259 156.292 95.2292 155.982 94.518 155.709C87.3847 152.974 79.1593 154.006 71.7331 156.139C66.0845 157.762 60.5781 159.983 54.9352 161.569C52.4252 162.296 49.8677 162.844 47.2815 163.209C41.5074 163.946 35.6437 163.426 30.0854 161.686L29.6105 161.537C28.8141 161.285 28.0243 161.009 27.2412 160.709L26.7663 160.525C26.0078 160.231 25.2655 159.915 24.5392 159.576L24.0643 159.358C23.3058 159.003 22.5635 158.627 21.8373 158.232C21.5756 158.094 21.3168 157.945 21.0608 157.805C16.9289 155.478 13.1731 152.531 9.92289 149.063C9.82903 148.969 9.74086 148.871 9.63847 148.776C9.18624 148.283 8.74255 147.782 8.31307 147.268C8.1538 147.079 7.99452 146.89 7.83809 146.695C7.32803 146.068 6.83598 145.427 6.36195 144.771C6.29085 144.677 6.22259 144.579 6.15433 144.485C4.21218 141.776 2.60205 138.841 1.359 135.743C1.31918 135.648 1.28221 135.551 1.24808 135.456C0.868851 134.472 0.522806 133.471 0.209944 132.455C0.0819547 132.03 -0.0403466 131.595 -0.148426 131.17C-0.185401 131.044 -0.219532 130.915 -0.250818 130.789C-1.82082 124.559 -2 118.082 -2 111.643C-2 110.892 -2 110.142 -2 109.393C-1.95449 98.9768 -1.79522 88.3833 -0.270727 78.1109C-0.270727 78.0392 -0.250817 77.9675 -0.239441 77.8987C0.270798 74.4405 0.964835 71.0124 1.83967 67.6291C2.75527 64.0792 3.92542 60.601 5.34088 57.222C8.84778 48.9077 13.9474 41.3417 19.6102 34.3291C33.8739 16.6827 52.5802 1.86901 74.4749 -3.67574C98.0675 -9.64768 124.288 -3.92517 143.319 11.3473C149.121 16.0033 154.334 21.5165 160.85 25.0859C166.539 28.1937 173.197 29.481 179.289 27.0354C184.324 25.0142 187.6 24.0108 193.254 24.3175C204.96 24.985 216.5 27.4215 227.487 31.5452C227.931 31.7086 228.375 31.8778 228.815 32.0469C257.459 43.0934 282.082 65.0403 294.881 93.2428C295.22 93.9882 295.549 94.7394 295.868 95.4963C303.499 113.464 306.257 134.522 297.839 152.033Z",fill:"#7F54B3"}),Object(g.createElement)("path",{d:"M238.595 87.2081H167V163.188H238.595V87.2081Z",fill:"white"}),Object(g.createElement)("path",{d:"M170.312 125.071V90.0034H174.389L194.39 90.6387L193.498 95.848V125.071H170.312Z",fill:"#DCDCDE"}),Object(g.createElement)("path",{opacity:"0.5",d:"M190.44 93.561H172.86V94.5775H190.44V93.561Z",fill:"#7F54B3"}),Object(g.createElement)("path",{opacity:"0.5",d:"M190.44 98.1351H172.86V99.1516H190.44V98.1351Z",fill:"#7F54B3"}),Object(g.createElement)("path",{opacity:"0.5",d:"M190.44 102.709H180.504V103.726H190.44V102.709Z",fill:"#7F54B3"}),Object(g.createElement)("path",{opacity:"0.5",d:"M177.701 101.184H172.86V105.25H177.701V101.184Z",fill:"#7F54B3"}),Object(g.createElement)("path",{opacity:"0.5",d:"M190.441 117.702H179.994V121.768H190.441V117.702Z",fill:"#7F54B3"}),Object(g.createElement)("path",{opacity:"0.5",d:"M190.44 107.283H172.86V108.3H190.44V107.283Z",fill:"#7F54B3"}),Object(g.createElement)("path",{opacity:"0.5",d:"M190.44 111.857H172.86V112.874H190.44V111.857Z",fill:"#7F54B3"}),Object(g.createElement)("path",{d:"M209.04 140.572H196.555V162.934H209.04V140.572Z",fill:"#DCDCDE"}),Object(g.createElement)("path",{d:"M112.731 122.276H61.5195V163.442H112.731V122.276Z",fill:"white"}),Object(g.createElement)("path",{d:"M88.7813 151.499H80.1187V163.188H88.7813V151.499Z",fill:"#DCDCDE"}),Object(g.createElement)("path",{d:"M185.577 98.8864C183.646 102.254 170.048 96.6409 170.048 96.6409L144.067 86.2055L137.786 81.5686L133.785 78.6144L142.672 76.1334L142.921 76.2524L149.113 79.2016L172.864 93.3487C172.864 93.3487 190.613 90.1043 185.577 98.8864Z",fill:"#A0616A"}),Object(g.createElement)("path",{d:"M120.088 59.773C120.088 59.773 116.745 61.1143 116.358 64.8721C115.971 68.63 115.939 89.8314 115.939 89.8314C115.939 89.8314 124.674 84.8159 129.371 84.7133C134.068 84.6107 144.979 76.708 144.979 76.708C144.979 76.708 124.421 58.1896 120.088 59.773Z",fill:"#67647E"}),Object(g.createElement)("path",{opacity:"0.1",d:"M120.088 59.773C120.088 59.773 116.745 61.1143 116.358 64.8721C115.971 68.63 115.939 89.8314 115.939 89.8314C115.939 89.8314 124.674 84.8159 129.371 84.7133C134.068 84.6107 144.979 76.708 144.979 76.708C144.979 76.708 124.421 58.1896 120.088 59.773Z",fill:"black"}),Object(g.createElement)("path",{d:"M152.86 129.137L145.726 129.645C145.726 129.645 145.507 142.995 144.579 146.417L156.809 156.073L154.261 147.942L152.86 129.137Z",fill:"#A0616A"}),Object(g.createElement)("path",{d:"M157.501 156.35L157.501 156.35L157.501 156.35C156.994 156.171 157.064 156.073 157.064 156.073V155.565L144.599 145.588C144.478 146.035 144.344 146.329 144.197 146.417C143.74 146.69 143.086 147.585 142.435 148.621C141.678 149.834 141.193 151.196 141.013 152.614C140.833 154.032 140.964 155.472 141.394 156.835V156.835L140.885 165.475H142.923L143.433 157.598H145.98C145.98 157.598 150.312 163.188 151.586 165.221C152.86 167.254 158.465 167.762 164.07 163.951C168.807 160.73 160.263 157.328 157.501 156.35Z",fill:"#444053"}),Object(g.createElement)("path",{d:"M90.1827 99.0244C90.1827 99.0244 77.6983 114.017 89.6732 123.165C94.9424 127.191 99.5703 134.808 103.101 142.076C105.871 147.808 109.869 152.863 114.813 156.884C119.757 160.906 125.526 163.795 131.713 165.348C131.713 165.348 174.262 115.796 159.739 101.82C145.216 87.8434 105.779 99.1902 105.779 99.1902L90.1827 99.0244Z",fill:"#444053"}),Object(g.createElement)("path",{d:"M125.529 86.3823C125.585 89.729 124.943 93.4035 122.031 94.1963C116.425 95.721 115.916 94.9587 115.916 94.9587C115.916 94.9587 114.897 96.7375 115.152 98.7704C115.406 100.803 112.731 99.1516 112.731 99.1516C112.731 99.1516 85.5965 102.582 86.6157 98.7704C87.6348 94.9587 97.3166 81.7447 97.3166 81.7447C97.3166 81.7447 113.113 59.6368 116.425 60.3992C116.538 60.4246 116.652 60.4551 116.772 60.4881C120.145 61.469 125.87 65.7965 126.362 67.5144C126.872 69.2931 124.833 80.4742 124.833 80.4742C125.248 82.4178 125.481 84.3957 125.529 86.3823Z",fill:"#67647E"}),Object(g.createElement)("path",{d:"M165.599 117.575C162.287 119.608 160.249 105.123 160.249 105.123L136.299 90.6388L130.852 85.0508L127.381 81.4907L136.554 80.4742L136.78 80.6318L142.414 84.5401L163.561 102.328C163.561 102.328 168.911 115.542 165.599 117.575Z",fill:"#A0616A"}),Object(g.createElement)("path",{opacity:"0.1",d:"M124.833 80.4741C125.248 82.4178 125.481 84.3957 125.529 86.3823C123.748 86.705 122.14 86.8219 121.012 86.5729C116.425 85.5564 106.744 88.3517 106.744 88.3517C106.744 88.3517 111.839 67.7684 113.113 64.2108C113.417 63.3632 113.901 62.5914 114.533 61.9487C115.164 61.3059 115.928 60.8076 116.772 60.488C120.145 61.4689 125.87 65.7965 126.362 67.5143C126.872 69.2931 124.833 80.4741 124.833 80.4741Z",fill:"black"}),Object(g.createElement)("path",{d:"M124.717 57.2728C119.214 54.6655 116.866 48.0884 119.472 42.5824C122.077 37.0763 128.651 34.7264 134.154 37.3336C139.657 39.9409 142.006 46.518 139.4 52.024C136.794 57.5301 130.221 59.88 124.717 57.2728Z",fill:"#2F2E41"}),Object(g.createElement)("path",{opacity:"0.1",d:"M138.082 82.5072C138.082 82.5072 134.724 83.8743 130.852 85.0508L127.381 81.4907L136.554 80.4742L136.78 80.6318C137.601 81.7982 138.082 82.5072 138.082 82.5072Z",fill:"black"}),Object(g.createElement)("path",{d:"M132.131 54.7977L128.077 71.9742L118.3 62.9339C118.3 62.9339 123.308 56.0031 123.308 54.195C123.308 52.3869 132.131 54.7977 132.131 54.7977Z",fill:"#A0616A"}),Object(g.createElement)("path",{d:"M118.719 58.8744C118.719 58.8744 115.152 59.3827 113.878 62.9403C112.604 66.4979 107.508 87.0811 107.508 87.0811C107.508 87.0811 117.19 84.2859 121.776 85.3023C126.362 86.3188 138.847 81.2365 138.847 81.2365C138.847 81.2365 123.305 58.3662 118.719 58.8744Z",fill:"#67647E"}),Object(g.createElement)("path",{d:"M127.459 59.6811C123.207 57.6664 121.392 52.5841 123.406 48.3295C125.419 44.0748 130.499 42.2589 134.751 44.2736C139.003 46.2883 140.818 51.3706 138.805 55.6253C136.791 59.8799 131.712 61.6958 127.459 59.6811Z",fill:"#9F616A"}),Object(g.createElement)("path",{d:"M122.429 55.079C118.426 53.1828 116.718 48.3995 118.613 44.3951C120.508 40.3907 125.289 38.6816 129.291 40.5778C133.294 42.474 135.002 47.2573 133.107 51.2617C131.211 55.2661 126.431 56.9752 122.429 55.079Z",fill:"#2F2E41"}),Object(g.createElement)("path",{d:"M117.254 40.5669C113.557 38.8153 111.979 34.3967 113.729 30.6977C115.48 26.9987 119.896 25.4199 123.593 27.1715C127.29 28.9231 128.868 33.3417 127.117 37.0407C125.367 40.7397 120.951 42.3185 117.254 40.5669Z",fill:"#2F2E41"}),Object(g.createElement)("path",{d:"M112.267 36.8522C112.843 37.8846 113.659 38.7679 114.645 39.4279C115.632 40.088 116.762 40.5057 117.939 40.6462C119.116 40.7866 120.308 40.6457 121.413 40.2351C122.518 39.8246 123.506 39.1564 124.292 38.2865C123.746 39.1413 123.025 39.8724 122.177 40.4339C121.328 40.9954 120.369 41.375 119.361 41.5487C118.352 41.7224 117.317 41.6865 116.318 41.4432C115.32 41.1999 114.382 40.7546 113.562 40.1353C112.742 39.5159 112.059 38.7361 111.555 37.845C111.052 36.9538 110.739 35.9708 110.636 34.9579C110.534 33.945 110.644 32.9243 110.959 31.9601C111.275 30.996 111.79 30.1093 112.471 29.3562C111.761 30.4654 111.368 31.7467 111.332 33.0656C111.297 34.3845 111.619 35.6924 112.267 36.8522Z",fill:"#2F2E41"}),Object(g.createElement)("path",{d:"M130.914 53.5515C127.412 51.8923 125.63 48.3155 126.933 45.5625C128.236 42.8095 132.131 41.9227 135.633 43.5819C139.135 45.241 140.917 48.8178 139.614 51.5708C138.311 54.3239 134.416 55.2106 130.914 53.5515Z",fill:"#2F2E41"}),Object(g.createElement)("path",{d:"M131.416 56.008C130.665 55.6525 130.537 54.3498 131.129 53.0984C131.721 51.8471 132.81 51.1208 133.56 51.4764C134.311 51.8319 134.439 53.1346 133.847 54.3859C133.254 55.6373 132.166 56.3635 131.416 56.008Z",fill:"#A0616A"})),Object(g.createElement)("defs",null,Object(g.createElement)("clipPath",{id:"shipping-labels-svg"},Object(g.createElement)("path",{d:"M0 6C0 2.6863 2.68629 0 6 0H289C292.314 0 295 2.68629 295 6V160H0V6Z",fill:"white"}))))},D=function(){return Object(g.createElement)("svg",{width:"295",height:"160",viewBox:"0 0 295 160",fill:"none",xmlns:"http://www.w3.org/2000/svg"},Object(g.createElement)("g",{clipPath:"url(#speed-svg)"},Object(g.createElement)("path",{d:"M0 6C0 2.6863 2.68629 0 6 0H289C292.314 0 295 2.68629 295 6V160H0V6Z",fill:"#F7EDF7"}),Object(g.createElement)("path",{opacity:"0.05",d:"M287.559 129.935C280.58 144.446 266.411 154.149 251.726 160.548C231.957 169.166 210.186 172.584 188.715 171.138C184.952 170.886 181.2 170.482 177.46 169.928C164.471 168.018 151.807 164.301 139.831 158.883C136.374 157.314 132.988 155.601 129.672 153.744C124.133 150.649 118.825 147.151 113.792 143.276C112.526 142.302 111.278 141.303 110.047 140.279C109.193 139.569 108.347 138.844 107.489 138.14C105.676 136.654 103.812 135.243 101.731 134.187C101.104 133.868 100.46 133.582 99.8036 133.329C93.2164 130.803 85.6207 131.757 78.763 133.726C73.5468 135.225 68.462 137.277 63.2511 138.741C60.9333 139.412 58.5715 139.918 56.1833 140.255C50.8512 140.935 45.4365 140.456 40.3037 138.849L39.8651 138.712C39.1297 138.479 38.4004 138.224 37.6772 137.946L37.2386 137.777C36.5382 137.505 35.8527 137.213 35.1821 136.901L34.7435 136.699C34.0431 136.371 33.3576 136.024 32.687 135.659C32.4453 135.532 32.2063 135.394 31.9699 135.264C28.1544 133.116 24.6861 130.394 21.6847 127.192C21.598 127.105 21.5166 127.015 21.422 126.927C21.0044 126.472 20.5947 126.009 20.1981 125.535C20.051 125.36 19.904 125.185 19.7595 125.005C19.2885 124.426 18.8341 123.834 18.3964 123.229C18.3307 123.142 18.2677 123.052 18.2046 122.964C16.4112 120.463 14.9243 117.753 13.7764 114.892C13.7396 114.805 13.7055 114.715 13.674 114.627C13.3238 113.718 13.0042 112.794 12.7153 111.855C12.5971 111.463 12.4842 111.061 12.3844 110.669C12.3502 110.553 12.3187 110.434 12.2898 110.317C10.84 104.564 10.6746 98.5833 10.6746 92.637C10.6746 91.9433 10.6746 91.2506 10.6746 90.5587C10.7166 80.9403 10.8637 71.1578 12.2714 61.6718C12.2714 61.6056 12.2898 61.5394 12.3003 61.4758C12.7715 58.2824 13.4124 55.1167 14.2203 51.9925C15.0658 48.7143 16.1464 45.5024 17.4535 42.382C20.6919 34.7042 25.4011 27.7175 30.6304 21.2417C43.8021 4.94627 61.0764 -8.7334 81.2949 -13.8537C103.081 -19.3684 127.295 -14.084 144.868 0.0192566C150.226 4.31881 155.041 9.40996 161.058 12.7061C166.311 15.576 172.459 16.7647 178.085 14.5064C182.734 12.6399 185.76 11.7133 190.981 11.9966C201.791 12.613 212.447 14.8629 222.593 18.6709C223.003 18.8218 223.413 18.9781 223.82 19.1343C250.271 29.3351 273.008 49.6018 284.827 75.6453C285.141 76.3336 285.445 77.0273 285.739 77.7262C292.786 94.3181 295.333 113.764 287.559 129.935Z",fill:"#7F54B3"}),Object(g.createElement)("path",{d:"M245.704 26.7351H50.4275C48.9672 26.7351 47.7834 27.9277 47.7834 29.3988V136.883C47.7834 138.354 48.9672 139.546 50.4275 139.546H245.704C247.165 139.546 248.349 138.354 248.349 136.883V29.3988C248.349 27.9277 247.165 26.7351 245.704 26.7351Z",fill:"white"}),Object(g.createElement)("path",{d:"M245.704 26.7351H50.4275C48.9672 26.7351 47.7834 27.9277 47.7834 29.3988V136.883C47.7834 138.354 48.9672 139.546 50.4275 139.546H245.704C247.165 139.546 248.349 138.354 248.349 136.883V29.3988C248.349 27.9277 247.165 26.7351 245.704 26.7351Z",fill:"white"}),Object(g.createElement)("path",{opacity:"0.04",d:"M245.704 26.7351H50.4275C48.9672 26.7351 47.7834 27.9277 47.7834 29.3988V136.883C47.7834 138.354 48.9672 139.546 50.4275 139.546H245.704C247.165 139.546 248.349 138.354 248.349 136.883V29.3988C248.349 27.9277 247.165 26.7351 245.704 26.7351Z",fill:"white"}),Object(g.createElement)("path",{d:"M247.33 25.4404H48.8017C48.5316 25.4404 48.2727 25.5485 48.0817 25.7409C47.8907 25.9333 47.7834 26.1942 47.7834 26.4662V30.8019H248.34V26.4662C248.34 26.1957 248.234 25.936 248.045 25.7439C247.856 25.5517 247.599 25.4427 247.33 25.4404Z",fill:"#5A5773"}),Object(g.createElement)("path",{d:"M51.7886 29.5076C52.5486 29.5076 53.1646 28.8869 53.1646 28.1213C53.1646 27.3557 52.5486 26.7351 51.7886 26.7351C51.0287 26.7351 50.4126 27.3557 50.4126 28.1213C50.4126 28.8869 51.0287 29.5076 51.7886 29.5076Z",fill:"white"}),Object(g.createElement)("path",{d:"M55.4935 29.5073C56.2534 29.5073 56.8695 28.8867 56.8695 28.1211C56.8695 27.3555 56.2534 26.7349 55.4935 26.7349C54.7335 26.7349 54.1174 27.3555 54.1174 28.1211C54.1174 28.8867 54.7335 29.5073 55.4935 29.5073Z",fill:"white"}),Object(g.createElement)("path",{d:"M59.198 29.5073C59.958 29.5073 60.5741 28.8867 60.5741 28.1211C60.5741 27.3555 59.958 26.7349 59.198 26.7349C58.4381 26.7349 57.822 27.3555 57.822 28.1211C57.822 28.8867 58.4381 29.5073 59.198 29.5073Z",fill:"white"}),Object(g.createElement)("path",{opacity:"0.2",d:"M118.126 40.8855H64.3022V45.4878H118.126V40.8855Z",fill:"#646970"}),Object(g.createElement)("path",{opacity:"0.1",d:"M231.83 59.3391H64.3022V130.135H231.83V59.3391Z",fill:"#5A5773"}),Object(g.createElement)("path",{opacity:"0.1",d:"M162.391 63.9563H159.523V58.3431C159.523 52.0091 154.51 46.7436 148.223 46.6476C146.706 46.6316 145.202 46.9179 143.796 47.4902C142.391 48.0625 141.111 48.9094 140.032 49.9821C138.953 51.0548 138.095 52.3321 137.507 53.7404C136.92 55.1486 136.616 56.66 136.611 58.1874V63.9563H133.749C132.484 63.9602 131.272 64.4682 130.378 65.3692C129.483 66.2702 128.979 67.4912 128.975 68.7654V91.8451C128.979 93.1194 129.483 94.3403 130.378 95.2413C131.272 96.1424 132.484 96.6503 133.749 96.6542H162.391C163.656 96.6503 164.868 96.1423 165.762 95.2412C166.656 94.3401 167.16 93.1192 167.163 91.8451V68.7654C167.16 67.4914 166.656 66.2704 165.762 65.3693C164.868 64.4682 163.656 63.9602 162.391 63.9563ZM149.742 78.9596V87.2257C149.745 87.6634 149.583 88.0858 149.288 88.4074C148.993 88.7289 148.588 88.9256 148.155 88.9575C147.929 88.9681 147.703 88.9325 147.49 88.8526C147.278 88.7728 147.084 88.6504 146.921 88.4929C146.757 88.3354 146.626 88.1461 146.537 87.9363C146.448 87.7266 146.402 87.5008 146.402 87.2727V78.9553C145.627 78.5748 145.004 77.9411 144.633 77.1577C144.262 76.3742 144.166 75.4873 144.359 74.6415C144.553 73.7957 145.026 73.0411 145.7 72.5007C146.374 71.9603 147.211 71.6662 148.072 71.6662C148.934 71.6662 149.77 71.9603 150.444 72.5007C151.119 73.0411 151.591 73.7957 151.785 74.6415C151.979 75.4873 151.882 76.3742 151.511 77.1577C151.141 77.9411 150.517 78.5748 149.742 78.9553V78.9596ZM156.187 63.9563H139.952V58.1874C139.952 56.0194 140.806 53.9402 142.328 52.4072C143.85 50.8742 145.914 50.013 148.066 50.013C150.218 50.013 152.282 50.8742 153.804 52.4072C155.325 53.9402 156.18 56.0194 156.18 58.1874L156.187 63.9563Z",fill:"black"}),Object(g.createElement)("path",{d:"M162.391 63.5298H159.523V57.9166C159.523 51.5826 154.51 46.3171 148.223 46.2211C146.706 46.2051 145.202 46.4914 143.796 47.0637C142.391 47.636 141.111 48.4829 140.032 49.5556C138.953 50.6283 138.095 51.9056 137.507 53.3138C136.92 54.7221 136.616 56.2335 136.611 57.7609V63.5298H133.749C132.484 63.5337 131.272 64.0416 130.378 64.9427C129.483 65.8437 128.979 67.0647 128.975 68.3389V91.4186C128.979 92.6928 129.483 93.9137 130.378 94.8148C131.272 95.7158 132.484 96.2238 133.749 96.2277H162.391C163.656 96.2238 164.868 95.7158 165.762 94.8147C166.656 93.9136 167.16 92.6926 167.163 91.4186V68.3389C167.16 67.0649 166.656 65.8439 165.762 64.9428C164.868 64.0417 163.656 63.5337 162.391 63.5298ZM149.742 78.533V86.7992C149.745 87.2369 149.583 87.6593 149.288 87.9808C148.993 88.3024 148.588 88.499 148.155 88.5309C147.929 88.5416 147.703 88.5059 147.49 88.4261C147.278 88.3462 147.084 88.2239 146.921 88.0664C146.757 87.9089 146.626 87.7195 146.537 87.5098C146.448 87.3001 146.402 87.0743 146.402 86.8461V78.5288C145.627 78.1483 145.004 77.5146 144.633 76.7312C144.262 75.9477 144.166 75.0607 144.359 74.2149C144.553 73.3692 145.026 72.6145 145.7 72.0742C146.374 71.5338 147.211 71.2396 148.072 71.2396C148.934 71.2396 149.77 71.5338 150.444 72.0742C151.119 72.6145 151.591 73.3692 151.785 74.2149C151.979 75.0607 151.882 75.9477 151.511 76.7312C151.141 77.5146 150.517 78.1483 149.742 78.5288V78.533ZM156.187 63.5298H139.952V57.7609C139.952 55.5929 140.806 53.5137 142.328 51.9807C143.85 50.4477 145.914 49.5864 148.066 49.5864C150.218 49.5864 152.282 50.4477 153.804 51.9807C155.325 53.5137 156.18 55.5929 156.18 57.7609L156.187 63.5298Z",fill:"#444053"}),Object(g.createElement)("path",{opacity:"0.1",d:"M231.83 52.5251H214.873V56.558H231.83V52.5251Z",fill:"#5A5773"}),Object(g.createElement)("path",{d:"M237.601 174.735C237.489 174.17 237.298 173.623 237.034 173.112L234.493 169.291H234.508C234.508 169.291 234.108 167.371 234.508 166.429C234.908 165.486 233.081 163.168 233.081 163.168C233.081 163.168 232.859 162.586 233.439 161.869C234.019 161.152 233.081 159.054 233.081 159.054C233.081 159.054 232.637 154.671 232.592 154.002C232.548 153.332 232.19 149.621 232.19 149.621L231.343 141.754L229.836 120.903L229.809 120.512C229.995 120.421 230.094 120.363 230.094 120.363L229.794 108.834L230.054 108.597C232.328 106.524 237.572 101.726 237.519 101.621C237.466 101.517 236.884 93.6089 236.816 91.6298C236.758 90.2233 236.452 88.8384 235.914 87.5393C235.783 87.277 235.404 85.5474 235.247 84.8159C235.205 84.6155 235.177 84.4896 235.177 84.4896C235.177 84.4896 233.64 81.538 233.774 80.1966C233.907 78.8552 234.174 77.8507 230.897 77.3815C230.897 77.3815 228.145 76.9677 226.506 75.8396C225.537 75.1638 224.478 74.6296 223.36 74.2529C223.36 74.2529 222.442 72.5467 221.802 73.1247C221.532 72.5159 221.329 71.8786 221.199 71.2245L221.18 71.1051C222.394 70.2526 223.267 68.9933 223.644 67.5521C223.665 67.471 223.682 67.3878 223.701 67.3068C223.765 67.3285 223.831 67.3407 223.898 67.3431C224.455 67.3431 224.798 66.7182 225.319 66.5198C225.53 66.4367 225.791 66.4239 225.954 66.2554C226.007 66.1904 226.047 66.1152 226.071 66.0342C226.095 65.9532 226.103 65.8681 226.093 65.7841C226.099 65.7259 226.099 65.6674 226.093 65.6092C226.094 65.5886 226.094 65.568 226.093 65.5474V65.5687C225.952 64.7924 225.355 64.1035 225.42 63.3145C225.484 62.5723 226.131 61.9197 226.079 61.1967C226.078 61.1396 226.073 61.0825 226.064 61.0261V61.0517C225.985 60.7694 225.84 60.5105 225.64 60.2967C225.412 59.984 225.113 59.7309 224.768 59.5588C224.474 59.4287 224.133 59.3989 223.858 59.2432C223.049 58.7996 223.051 57.6437 222.571 56.8546C222.365 56.5252 222.073 56.2595 221.726 56.0868C221.38 55.914 220.993 55.841 220.608 55.8757C220.007 55.9355 219.463 56.2575 218.868 56.362C218.055 56.507 217.228 56.2404 216.457 55.9355C215.686 55.6305 214.905 55.2957 214.078 55.2957C213.25 55.2957 212.354 55.7222 212.105 56.5091C211.971 56.9357 212.037 57.3942 211.935 57.8271C211.753 58.5906 211.088 59.1366 210.4 59.5162C209.977 59.7529 209.473 60.0238 209.342 60.4716C209.342 60.4588 209.342 60.4482 209.342 60.4375C209.332 60.4732 209.325 60.5096 209.321 60.5463C209.316 60.5938 209.316 60.6416 209.321 60.6892C209.321 60.9963 209.482 61.2884 209.59 61.5806C209.791 62.1365 209.786 62.7468 209.577 63.2995C209.42 63.7047 209.153 64.0609 209.001 64.464C208.929 64.6517 208.882 64.8482 208.861 65.0483V65.0142C208.856 65.1051 208.856 65.1963 208.861 65.2872C208.859 65.5986 208.931 65.906 209.073 66.1829C209.17 66.3741 209.304 66.5437 209.468 66.6818C209.631 66.8199 209.82 66.9236 210.024 66.9869C210.447 67.085 210.712 66.667 211.158 66.7736C211.238 66.793 211.317 66.818 211.393 66.8483C211.408 66.9442 211.423 67.0402 211.44 67.1341C211.71 68.5694 212.469 69.8645 213.586 70.7958C213.586 70.847 213.603 70.8982 213.61 70.9515C213.745 71.8018 213.804 72.6626 213.785 73.5235C213.785 73.5235 213.119 72.5403 212.204 74.4384C212.204 74.4384 209.818 75.8246 208.995 75.9825C208.171 76.1403 205.248 77.1661 205.248 77.1661C204.807 77.4873 204.276 77.6598 203.732 77.6587C202.82 77.6587 202.062 79.6698 202.172 80.7639C202.282 81.8579 202.106 82.6641 201.257 82.7089C200.408 82.7537 200.872 84.4875 200.878 84.5174L200.8 84.8906C200.635 85.6541 200.275 87.292 200.148 87.5479C199.61 88.847 199.304 90.2318 199.244 91.6383C199.178 93.6174 198.609 101.495 198.543 101.63C198.499 101.717 202.091 105.025 204.617 107.337L204.983 107.67L203.821 118.606C203.855 119.027 203.979 119.436 204.185 119.804C204.391 120.173 204.674 120.491 205.015 120.738C205.015 120.866 205.015 120.997 205.002 121.131C204.951 122.41 204.85 123.959 204.646 124.364C204.291 125.081 204.38 128.924 204.38 128.924C204.38 128.924 204.022 136.746 203.577 137.597C203.133 138.448 203.042 140.233 203.175 140.583C203.309 140.933 202.728 150.327 202.728 150.327L202.284 154.53C202.284 154.53 202.417 158.553 202.015 158.642C201.613 158.732 201.391 161.504 201.391 161.504C201.391 161.504 199.966 163.471 200.588 164.185C201.211 164.899 200.497 165.215 200.432 165.392C200.366 165.569 199.073 166.245 200.008 168.745C200.017 168.769 200.027 168.794 200.038 168.817C199.161 170.043 196.384 174 196.553 174.601C196.678 174.984 196.943 175.304 197.294 175.497C197.948 175.891 199.07 176.075 200.855 175.497C203.819 174.535 203.607 173.842 203.607 173.842C203.622 173.518 203.76 173.212 203.993 172.987C204.225 172.763 204.534 172.636 204.856 172.635C206.082 172.545 206.996 171.406 206.996 171.406L206.852 170.867L206.655 170.12C206.679 169.907 206.829 169.534 207.502 169.327C208.529 169.013 208.26 167.047 208.26 167.047C208.26 167.047 208.171 164.991 208.616 164.722C209.06 164.454 208.885 161.056 208.885 161.056C208.885 161.056 209.376 158.597 210.087 156.943C210.798 155.288 211.649 145.456 211.649 145.456C211.649 145.456 212.227 140.628 212.763 139.241C213.298 137.855 213.79 133.967 213.79 133.967C213.79 133.967 217.09 127.529 217.132 126.098C217.132 126.098 217.556 124.756 217.979 126.232C218.402 127.708 219.592 131.24 219.592 131.24L220.75 135.575L222.133 142.057L223.026 147.512C223.026 147.512 222.89 149.568 223.238 150.284C223.585 151.001 224.084 152.652 223.818 152.965C223.551 153.279 224.351 154.754 224.576 155.066C224.8 155.377 224.576 161.995 224.576 161.995C224.576 161.995 225.6 167.627 227.071 168.606C227.174 168.674 227.283 168.731 227.397 168.777C227.376 169.387 227.355 170.203 227.383 170.63C227.379 170.725 227.395 170.82 227.429 170.909C227.563 171.088 229.078 172.296 229.392 172.296C229.705 172.296 230.816 173.078 230.863 173.458C230.909 173.837 234.121 175.445 234.576 175.492C235.031 175.539 237.237 175.938 237.54 175.313C237.615 175.13 237.636 174.93 237.601 174.735ZM229.711 94.1805L229.94 94.3788C229.94 94.3788 230.175 96.2235 230.342 96.7759C230.509 97.3283 230.308 98.4031 230.308 98.4031C230.324 98.8043 230.403 99.2003 230.543 99.5761C230.742 99.9792 230.141 100.856 230.141 100.856H229.605L229.438 93.9501L229.711 94.1805ZM213.785 73.5619V73.5214C213.781 73.5342 213.779 73.5491 213.779 73.5619H213.785ZM205.561 100.146C205.479 99.9669 205.466 99.7634 205.527 99.5761C205.575 99.4748 205.612 99.3691 205.639 99.2605C205.705 98.9803 205.746 98.6948 205.762 98.4074C205.762 98.4038 205.762 98.4003 205.762 98.3967C205.743 98.2944 205.572 97.3048 205.73 96.7802C205.889 96.2555 206.13 94.3831 206.13 94.3831L206.283 94.253L206.636 93.9437C206.636 93.9437 206.636 93.8286 206.662 93.6388C206.736 95.2596 206.795 97.051 206.7 97.1406C206.522 97.3176 205.874 99.06 206.031 99.1282C206.082 99.1517 206.012 99.8491 205.893 100.787C205.76 100.586 205.649 100.371 205.561 100.146Z",fill:"url(#paint0_linear)"}),Object(g.createElement)("path",{d:"M222.623 75.2659V77.9189L217.221 80.6551C217.221 80.6551 211.857 77.3857 213.18 76.0848C214.026 75.2616 213.863 73.001 213.635 71.4463C213.501 70.542 213.347 69.8787 213.347 69.8787C213.347 69.8787 222.983 67.1063 221.527 69.2112C221.04 69.915 221.002 70.8256 221.165 71.7278C221.495 73.5171 222.623 75.2659 222.623 75.2659Z",fill:"#CC818C"}),Object(g.createElement)("path",{d:"M207.824 101.21L207.127 109.851C207.127 109.851 206.083 108.898 204.733 107.657C202.228 105.356 198.672 102.065 198.714 101.977C198.78 101.843 199.349 94.0034 199.411 92.0328C199.469 90.6341 199.771 89.2566 200.304 87.9637C200.431 87.7078 200.789 86.0785 200.939 85.3171C200.99 85.0804 201.022 84.9268 201.022 84.9268L202.19 84.4534C202.19 84.4534 207.059 89.9258 207.059 90.026C207.059 90.1262 206.727 94.3297 206.727 94.3297L206.382 94.6326L206.232 94.7626C206.232 94.7626 205.999 96.5989 205.834 97.1491C205.668 97.6993 205.846 98.6548 205.865 98.7571C205.85 99.0445 205.809 99.3299 205.745 99.6102C205.717 99.718 205.68 99.8229 205.632 99.9237C205.573 100.11 205.585 100.313 205.666 100.491C205.76 100.738 205.883 100.974 206.03 101.193L207.824 101.21Z",fill:"#444053"}),Object(g.createElement)("path",{d:"M237.332 101.977C237.383 102.082 232.19 106.857 229.94 108.919L228.919 109.851L228.229 101.209H230.018C230.018 101.209 230.615 100.341 230.416 99.9405C230.277 99.5666 230.199 99.1727 230.185 98.7739C230.185 98.7739 230.382 97.7076 230.217 97.1552C230.052 96.6028 229.819 94.7688 229.819 94.7688L229.593 94.5726L229.324 94.3358C229.324 94.3358 228.991 90.1324 228.991 90.0321C228.991 89.9319 233.86 84.4595 233.86 84.4595L235.02 84.9265C235.02 84.9265 235.046 85.0524 235.088 85.2528C235.245 85.9801 235.62 87.7011 235.749 87.9634C236.282 89.2563 236.584 90.6338 236.642 92.0326C236.697 94.0031 237.264 101.843 237.332 101.977Z",fill:"#444053"}),Object(g.createElement)("path",{d:"M234.349 166.476C233.951 167.41 234.349 169.323 234.349 169.323C234.349 169.323 228.422 169.634 226.974 168.655C225.526 167.676 224.501 162.069 224.501 162.069C224.501 162.069 224.713 155.486 224.501 155.175C224.29 154.863 223.485 153.396 223.75 153.085C224.014 152.773 223.538 151.127 223.176 150.414C222.814 149.702 222.964 147.657 222.964 147.657L222.08 142.227L220.712 135.778L219.55 131.461C219.55 131.461 218.358 127.947 217.954 126.48C217.549 125.012 217.122 126.345 217.122 126.345C217.079 127.77 213.811 134.176 213.811 134.176C213.811 134.176 213.324 138.047 212.795 139.425C212.265 140.803 211.689 145.61 211.689 145.61C211.689 145.61 210.843 155.396 210.144 157.043C209.445 158.689 208.965 161.135 208.965 161.135C208.965 161.135 209.143 164.518 208.7 164.784C208.258 165.051 208.33 167.098 208.33 167.098C208.33 167.098 208.594 169.054 207.578 169.367C206.562 169.681 206.732 170.346 206.732 170.346C206.732 170.346 201.079 171.28 200.152 168.787C199.225 166.294 200.506 165.631 200.575 165.452C200.645 165.273 201.35 164.963 200.732 164.249C200.114 163.535 201.526 161.581 201.526 161.581C201.526 161.581 201.748 158.824 202.144 158.734C202.54 158.644 202.411 154.641 202.411 154.641L202.851 150.459C202.851 150.459 203.427 141.116 203.294 140.76C203.16 140.404 203.249 138.627 203.692 137.774C204.134 136.921 204.485 129.141 204.485 129.141C204.485 129.141 204.397 125.317 204.75 124.605C204.962 124.202 205.051 122.651 205.101 121.387C205.14 120.421 205.148 119.621 205.148 119.621L210.093 117.753L216.444 115.708L221.787 118.288L229.605 119.8L229.703 121.159L231.195 141.912L232.042 149.741C232.042 149.741 232.395 153.432 232.44 154.1C232.484 154.767 232.925 159.129 232.925 159.129C232.925 159.129 233.852 161.219 233.278 161.931C232.705 162.643 232.925 163.21 232.925 163.21C232.925 163.21 234.747 165.541 234.349 166.476Z",fill:"#444053"}),Object(g.createElement)("path",{opacity:"0.1",d:"M221.531 69.2109C221.044 69.9147 221.006 70.8254 221.169 71.7275C220.057 72.5181 218.717 72.9186 217.356 72.8674C215.996 72.8161 214.69 72.316 213.639 71.4438C213.506 70.5396 213.351 69.8763 213.351 69.8763C213.351 69.8763 222.987 67.1081 221.531 69.2109Z",fill:"black"}),Object(g.createElement)("path",{d:"M223.783 66.4897C223.783 67.7256 223.42 68.9337 222.738 69.9613C222.056 70.9889 221.088 71.7898 219.954 72.2628C218.821 72.7357 217.574 72.8595 216.371 72.6184C215.167 72.3773 214.062 71.7821 213.195 70.9082C212.327 70.0343 211.736 68.9209 211.497 67.7088C211.258 66.4967 211.381 65.2403 211.85 64.0985C212.32 62.9567 213.115 61.9807 214.135 61.2941C215.155 60.6075 216.354 60.241 217.581 60.241C218.396 60.2371 219.205 60.396 219.959 60.7086C220.713 61.0213 221.399 61.4814 221.975 62.0624C222.552 62.6435 223.009 63.3339 223.319 64.0938C223.63 64.8537 223.787 65.668 223.783 66.4897Z",fill:"#CC818C"}),Object(g.createElement)("path",{opacity:"0.1",d:"M225.075 76.8738L223.043 113.332L212.003 110.996L209.816 96.3812L211.982 76.7607L213.612 76.9719L216.487 77.3408L219.334 77.5178L222.421 77.1723L225.075 76.8738Z",fill:"black"}),Object(g.createElement)("path",{d:"M225.075 77.1404L223.043 113.598L212.003 111.263L209.816 96.6479L211.982 77.0295L213.612 77.2385L216.487 77.6075L219.334 77.7845L222.421 77.439L225.075 77.1404Z",fill:"white"}),Object(g.createElement)("path",{d:"M216 78.1191L219.975 78.2535L218.858 79.8295C218.858 79.8295 218.936 83.0136 219.467 83.9264C219.999 84.8391 219.842 98.9403 219.842 98.9403L218.784 100.964L216.974 98.695L216.997 80.0769L216 78.1191Z",fill:"#7F54B3"}),Object(g.createElement)("path",{opacity:"0.1",d:"M216 78.1191L219.975 78.2535L218.858 79.8295C218.858 79.8295 218.936 83.0136 219.467 83.9264C219.999 84.8391 219.842 98.9403 219.842 98.9403L218.784 100.964L216.974 98.695L216.997 80.0769L216 78.1191Z",fill:"black"}),Object(g.createElement)("path",{opacity:"0.1",d:"M222.225 73.9817L218.517 78.1191L220.636 80.3434L224.148 76.8949L222.225 73.9817Z",fill:"black"}),Object(g.createElement)("path",{d:"M222.225 73.7151L218.517 77.8524L220.636 80.0768L224.148 76.6283L222.225 73.7151Z",fill:"white"}),Object(g.createElement)("path",{opacity:"0.1",d:"M216.95 77.9187L213.194 74.1375L212.841 76.1166L214.564 80.4544L216.95 77.9187Z",fill:"black"}),Object(g.createElement)("path",{d:"M217.082 77.652L213.328 73.8708L212.975 75.85L214.698 80.1878L217.082 77.652Z",fill:"white"}),Object(g.createElement)("path",{opacity:"0.1",d:"M229.722 121.165C227.919 122.03 225.988 122.592 224.006 122.83C220.363 123.297 217.979 118.627 217.979 118.627L216.588 120.45C216.146 122.387 209.412 122.875 206.674 122.141C206.106 122 205.572 121.746 205.104 121.393C205.142 120.427 205.15 119.627 205.15 119.627L210.095 117.759L216.446 115.714L221.789 118.294L229.607 119.806L229.722 121.165Z",fill:"black"}),Object(g.createElement)("path",{opacity:"0.1",d:"M225.075 77.1426L223.045 113.598L212.003 111.263L209.812 96.65L211.975 77.0295L213.605 77.2428C213.564 77.9575 213.484 78.6694 213.366 79.3755C213.102 80.6231 214.736 89.4757 214.736 89.4757C214.736 89.4757 217.841 99.4033 219.239 97.9723C220.636 96.5413 222.626 88.9852 222.626 88.9852C223.974 86.1829 222.649 78.3219 222.55 78.1641C222.48 77.9316 222.438 77.6919 222.423 77.4497L225.075 77.1426Z",fill:"black"}),Object(g.createElement)("path",{opacity:"0.1",d:"M229.845 105.353L229.938 108.925L228.917 109.857L228.229 101.209H229.753L229.845 105.353Z",fill:"black"}),Object(g.createElement)("path",{opacity:"0.1",d:"M205.868 98.7637C205.852 99.051 205.812 99.3364 205.747 99.6167C205.747 99.5378 205.747 99.493 205.73 99.4866C205.666 99.4695 205.743 99.1433 205.868 98.7637Z",fill:"black"}),Object(g.createElement)("path",{opacity:"0.1",d:"M207.824 101.21L207.127 109.851C207.127 109.851 206.084 108.898 204.733 107.657L204.894 106.125C204.894 106.125 205.464 102.363 205.671 100.508C205.765 100.755 205.887 100.991 206.035 101.21H207.824Z",fill:"black"}),Object(g.createElement)("path",{d:"M213.813 74.0032C213.813 74.0032 213.152 73.0243 212.246 74.9139C212.246 74.9139 209.884 76.2937 209.071 76.4494C208.258 76.6051 205.366 77.6288 205.366 77.6288C204.929 77.9468 204.404 78.1177 203.865 78.1171C202.959 78.1171 202.208 80.1197 202.318 81.2095C202.428 82.2993 202.252 83.1012 201.414 83.1459C200.575 83.1907 201.037 84.9459 201.037 84.9459L206.624 91.3972C206.624 91.3972 206.977 97.3367 206.801 97.5158C206.626 97.6949 205.984 99.4352 206.139 99.4949C206.293 99.5546 205.292 106.123 205.292 106.123L203.946 118.87C203.946 118.87 203.946 121.003 206.685 121.739C209.424 122.474 216.163 121.988 216.597 120.052L217.987 118.226C217.987 118.226 220.371 122.899 224.014 122.432C227.658 121.965 229.978 120.63 229.978 120.63L229.58 105.353L229.315 94.3424L235.004 84.9267C235.004 84.9267 233.479 81.99 233.613 80.6614C233.746 79.3327 234.009 78.3261 230.763 77.8591C230.763 77.8591 228.026 77.4475 226.413 76.3236C225.454 75.653 224.407 75.1217 223.301 74.7454C223.301 74.7454 222.391 73.0393 221.758 73.6236C221.758 73.6236 222.393 76.0357 222.34 76.3961C222.287 76.7565 222.439 78.3858 222.539 78.5543C222.638 78.7228 223.964 86.5731 222.615 89.3754C222.615 89.3754 220.636 96.9315 219.228 98.3625C217.82 99.7935 214.725 89.866 214.725 89.866C214.725 89.866 213.091 81.0112 213.355 79.7657C213.62 78.5202 213.813 74.0032 213.813 74.0032Z",fill:"#444053"}),Object(g.createElement)("path",{d:"M218.538 103.167C219.074 103.167 219.509 102.729 219.509 102.188C219.509 101.648 219.074 101.209 218.538 101.209C218.001 101.209 217.566 101.648 217.566 102.188C217.566 102.729 218.001 103.167 218.538 103.167Z",fill:"#50575E"}),Object(g.createElement)("path",{d:"M218.538 107.782C219.074 107.782 219.509 107.344 219.509 106.804C219.509 106.263 219.074 105.825 218.538 105.825C218.001 105.825 217.566 106.263 217.566 106.804C217.566 107.344 218.001 107.782 218.538 107.782Z",fill:"#50575E"}),Object(g.createElement)("path",{opacity:"0.1",d:"M223.783 66.4897C223.785 67.0229 223.718 67.554 223.584 68.07C223.454 68.01 223.345 67.9113 223.271 67.787C223.198 67.6628 223.164 67.519 223.174 67.3748C223.201 67.121 223.369 66.8885 223.333 66.6368C223.28 66.2487 222.814 66.0909 222.568 65.7838C222.266 65.4127 222.331 64.8731 222.357 64.3933C222.382 63.9134 222.261 63.3269 221.815 63.1627C221.681 63.1137 221.535 63.1094 221.406 63.054C221.055 62.9047 220.947 62.4653 220.712 62.1625C220.242 61.5526 219.308 61.5654 218.595 61.8554C218.284 62.0054 217.966 62.1392 217.642 62.2563C217.48 62.314 217.307 62.3372 217.136 62.3243C216.964 62.3115 216.797 62.2629 216.645 62.1817C216.505 62.0921 216.393 61.9684 216.249 61.8789C215.771 61.5888 215.144 61.8789 214.729 62.2521C214.314 62.6253 213.982 63.1265 213.459 63.3547C213.224 63.4613 212.934 63.5253 212.824 63.7556C212.769 63.881 212.746 64.0179 212.756 64.1544C212.756 64.984 212.854 65.8264 212.682 66.639C212.572 67.1615 212.208 67.7544 211.681 67.6904C211.615 67.6806 211.551 67.6642 211.488 67.6413C211.329 66.7872 211.349 65.9091 211.547 65.0631C211.744 64.2171 212.114 63.4219 212.634 62.7282C213.153 62.0346 213.811 61.4577 214.564 61.0344C215.317 60.6112 216.15 60.3509 217.009 60.2702C217.868 60.1895 218.734 60.2901 219.552 60.5657C220.37 60.8412 221.122 61.2857 221.76 61.8706C222.398 62.4555 222.908 63.168 223.257 63.9626C223.606 64.7572 223.787 65.6164 223.788 66.4854L223.783 66.4897Z",fill:"black"}),Object(g.createElement)("path",{d:"M211.211 67.2875C211.37 67.3237 211.52 67.4069 211.683 67.4282C212.21 67.4922 212.574 66.8993 212.684 66.3768C212.856 65.5643 212.767 64.7219 212.761 63.8923C212.749 63.7559 212.771 63.6187 212.826 63.4935C212.947 63.2632 213.237 63.1992 213.461 63.0925C213.974 62.8622 214.308 62.3717 214.731 61.99C215.155 61.6082 215.771 61.3267 216.249 61.6167C216.391 61.702 216.505 61.83 216.645 61.9196C216.798 61.9996 216.965 62.0475 217.137 62.0603C217.309 62.0732 217.481 62.0507 217.644 61.9942C217.972 61.8961 218.279 61.7234 218.595 61.5933C219.302 61.3032 220.238 61.2926 220.712 61.8982C220.947 62.2032 221.055 62.6404 221.406 62.7897C221.535 62.8452 221.681 62.8516 221.815 62.9006C222.261 63.0691 222.376 63.6513 222.357 64.1311C222.338 64.611 222.274 65.1506 222.568 65.5216C222.814 65.8245 223.28 65.9823 223.333 66.3747C223.366 66.6264 223.201 66.861 223.174 67.1126C223.168 67.2061 223.18 67.3 223.21 67.3887C223.24 67.4775 223.287 67.5594 223.349 67.6296C223.41 67.6998 223.485 67.757 223.569 67.7979C223.653 67.8387 223.744 67.8624 223.836 67.8676C224.387 67.8676 224.728 67.247 225.242 67.0486C225.454 66.9655 225.71 66.9527 225.877 66.7842C225.939 66.7032 225.983 66.6096 226.006 66.5098C226.029 66.41 226.029 66.3064 226.008 66.2062C225.905 65.3894 225.255 64.6792 225.325 63.8603C225.39 63.0755 226.112 62.3909 225.96 61.6189C225.882 61.3342 225.737 61.0729 225.536 60.8575C225.309 60.5477 225.014 60.2957 224.673 60.1217C224.378 59.9938 224.038 59.9639 223.769 59.8082C222.968 59.3668 222.971 58.2151 222.499 57.4303C222.296 57.106 222.009 56.8441 221.668 56.6733C221.328 56.5025 220.947 56.4294 220.568 56.4621C219.973 56.5218 219.433 56.8396 218.845 56.9462C218.038 57.0912 217.221 56.8247 216.457 56.5197C215.692 56.2147 214.92 55.8799 214.101 55.8799C213.281 55.8799 212.394 56.3064 212.144 57.087C212.013 57.5135 212.079 57.9699 211.977 58.3986C211.799 59.1599 211.13 59.7016 210.457 60.0791C209.994 60.3393 209.437 60.6379 209.382 61.1689C209.346 61.5058 209.53 61.8087 209.646 62.135C209.844 62.687 209.84 63.2922 209.634 63.8411C209.479 64.2442 209.221 64.5982 209.064 64.9991C208.953 65.2713 208.901 65.564 208.91 65.8582C208.92 66.1523 208.991 66.441 209.119 66.7053C209.218 66.8979 209.355 67.0683 209.521 67.2058C209.687 67.3433 209.88 67.4451 210.087 67.505C210.504 67.6052 210.766 67.1894 211.211 67.2875Z",fill:"#2F2E41"}),Object(g.createElement)("g",{opacity:"0.1"},Object(g.createElement)("path",{opacity:"0.1",d:"M212.685 65.9121C212.574 66.4346 212.208 67.0275 211.681 66.9635C211.518 66.9422 211.37 66.859 211.209 66.8227C210.767 66.7246 210.504 67.1426 210.087 67.036C209.88 66.9762 209.687 66.8744 209.52 66.7369C209.354 66.5993 209.217 66.429 209.117 66.2362C209.007 66.0192 208.94 65.7822 208.921 65.5389C208.878 65.9165 208.947 66.2983 209.117 66.6372C209.217 66.8299 209.354 67.0003 209.52 67.1378C209.687 67.2753 209.88 67.3771 210.087 67.4369C210.51 67.535 210.767 67.117 211.209 67.2237C211.364 67.278 211.522 67.3243 211.681 67.3623C212.208 67.4284 212.574 66.8355 212.685 66.313C212.771 65.8514 212.805 65.3813 212.786 64.9119C212.784 65.2478 212.75 65.5827 212.685 65.9121Z",fill:"black"}),Object(g.createElement)("path",{opacity:"0.1",d:"M209.784 62.7001C209.811 62.3506 209.764 61.9994 209.645 61.67C209.549 61.451 209.468 61.2259 209.401 60.9961C209.392 61.0319 209.385 61.0682 209.38 61.1049C209.344 61.4397 209.53 61.7447 209.645 62.071C209.719 62.2735 209.766 62.4851 209.784 62.7001Z",fill:"black"}),Object(g.createElement)("path",{opacity:"0.1",d:"M225.958 61.5762C225.858 62.1819 225.371 62.7513 225.323 63.3889C225.311 63.4981 225.311 63.6082 225.323 63.7174C225.429 62.9731 226.083 62.3141 225.958 61.5762Z",fill:"black"}),Object(g.createElement)("path",{opacity:"0.1",d:"M225.994 66.0762C225.976 66.1653 225.934 66.2479 225.873 66.315C225.717 66.4835 225.45 66.4963 225.238 66.5795C224.724 66.7778 224.392 67.4048 223.833 67.3984C223.69 67.3903 223.552 67.3386 223.439 67.2503C223.326 67.162 223.241 67.0411 223.198 66.9036C223.185 66.9499 223.175 66.9969 223.168 67.0444C223.162 67.1378 223.174 67.2314 223.204 67.3199C223.235 67.4084 223.282 67.49 223.343 67.56C223.405 67.63 223.48 67.687 223.563 67.7277C223.647 67.7684 223.738 67.7921 223.831 67.7972C224.383 67.7972 224.722 67.1766 225.236 66.9804C225.448 66.8972 225.706 66.8844 225.871 66.716C225.933 66.635 225.977 66.5413 226 66.4415C226.023 66.3418 226.024 66.2382 226.003 66.138C226 66.1124 225.996 66.0954 225.994 66.0762Z",fill:"black"}),Object(g.createElement)("path",{opacity:"0.1",d:"M223.339 65.8993C223.287 65.5111 222.821 65.3533 222.575 65.0462C222.425 64.8445 222.343 64.5991 222.342 64.3467C222.325 64.7434 222.332 65.1486 222.575 65.4471C222.819 65.7457 223.189 65.8737 223.308 66.1808C223.338 66.0902 223.348 65.9943 223.339 65.8993Z",fill:"black"}),Object(g.createElement)("path",{opacity:"0.1",d:"M222.355 63.6662C222.372 63.1863 222.257 62.5998 221.811 62.4356C221.679 62.3866 221.533 62.3802 221.404 62.3269C221.053 62.1776 220.943 61.7383 220.71 61.4354C220.238 60.8276 219.304 60.8383 218.593 61.1283C218.275 61.2584 217.973 61.4311 217.642 61.5293C217.48 61.5869 217.308 61.6101 217.136 61.5972C216.964 61.5844 216.797 61.5358 216.645 61.4546C216.506 61.365 216.391 61.2413 216.249 61.1518C215.769 60.8617 215.142 61.1518 214.729 61.525C214.317 61.8982 213.982 62.3972 213.459 62.6276C213.222 62.7342 212.934 62.7982 212.811 63.0285C212.758 63.1541 212.735 63.291 212.746 63.4273C212.746 63.5105 212.746 63.5937 212.746 63.6768C212.749 63.5909 212.77 63.5066 212.807 63.4295C212.93 63.1991 213.218 63.1351 213.455 63.0285C213.967 62.7982 214.302 62.3077 214.725 61.9259C215.149 61.5442 215.765 61.2627 216.245 61.5527C216.387 61.638 216.501 61.766 216.641 61.8534C216.793 61.9351 216.96 61.984 217.132 61.9968C217.303 62.0097 217.476 61.9862 217.638 61.9281C217.962 61.812 218.279 61.6789 218.589 61.5293C219.298 61.2392 220.231 61.2264 220.706 61.8342C220.938 62.1371 221.049 62.5764 221.4 62.7257C221.529 62.7811 221.675 62.7875 221.806 62.8366C222.168 62.9731 222.312 63.3825 222.344 63.7877L222.355 63.6662Z",fill:"black"})),Object(g.createElement)("g",{opacity:"0.1"},Object(g.createElement)("path",{opacity:"0.1",d:"M211.928 65.8994C211.94 65.5454 212.066 65.205 212.287 64.9292C212.508 64.6535 212.811 64.4573 213.152 64.3703C214.096 64.1378 215.086 64.183 216.006 64.5004C218.015 65.17 215.752 67.5799 215.752 67.5799C215.752 67.5799 214.246 69.0728 212.843 68.0299C212.428 67.7143 212.138 67.2609 212.024 66.7503C211.955 66.4721 211.923 66.186 211.928 65.8994Z",fill:"black"}),Object(g.createElement)("path",{opacity:"0.1",d:"M222.972 65.8991C222.96 65.5448 222.834 65.2042 222.613 64.9284C222.392 64.6526 222.088 64.4566 221.747 64.37C220.803 64.1379 219.814 64.1831 218.895 64.5001C216.886 65.1697 219.149 67.5796 219.149 67.5796C219.149 67.5796 220.652 69.0725 222.058 68.0296C222.472 67.714 222.763 67.2606 222.877 66.75C222.946 66.4718 222.978 66.1857 222.972 65.8991Z",fill:"black"}),Object(g.createElement)("path",{opacity:"0.1",d:"M215.627 64.3039V64.4041H219.295V64.2847L215.627 64.3039Z",fill:"black"}),Object(g.createElement)("path",{opacity:"0.1",d:"M216.797 65.3724H216.914V65.0333C216.914 65.0333 217.286 64.7412 217.905 65.0333V65.3362H218.116V65.1378H218.013C218.013 65.1378 218.055 64.7262 217.365 64.7923C217.365 64.7923 216.81 64.739 216.823 65.093H216.696L216.797 65.3724Z",fill:"black"})),Object(g.createElement)("path",{d:"M211.928 65.7608C211.941 65.4068 212.066 65.0664 212.287 64.7906C212.508 64.5149 212.811 64.3187 213.152 64.2317C214.096 64.0008 215.086 64.0459 216.006 64.3618C218.015 65.0336 215.752 67.4413 215.752 67.4413C215.752 67.4413 214.246 68.9342 212.843 67.8913C212.428 67.5765 212.137 67.1228 212.024 66.6117C211.955 66.3336 211.923 66.0474 211.928 65.7608Z",fill:"#2F2E41"}),Object(g.createElement)("path",{d:"M222.973 65.7608C222.961 65.4066 222.835 65.0659 222.613 64.7902C222.392 64.5144 222.088 64.3184 221.747 64.2317C220.804 64.0008 219.815 64.0459 218.896 64.3618C216.887 65.0336 219.15 67.4414 219.15 67.4414C219.15 67.4414 220.653 68.9342 222.058 67.8914C222.474 67.5765 222.764 67.1229 222.878 66.6118C222.947 66.3336 222.979 66.0475 222.973 65.7608Z",fill:"#2F2E41"}),Object(g.createElement)("path",{d:"M215.627 64.1696V64.2719H219.295V64.1504L215.627 64.1696Z",fill:"#2F2E41"}),Object(g.createElement)("path",{d:"M216.797 65.2382H216.914V64.8991C216.914 64.8991 217.286 64.6091 217.905 64.8991V65.2041H218.116V65.0036H218.013C218.013 65.0036 218.055 64.5942 217.365 64.6582C217.365 64.6582 216.81 64.607 216.823 64.9589H216.696L216.797 65.2382Z",fill:"#2F2E41"})),Object(g.createElement)("defs",null,Object(g.createElement)("linearGradient",{id:"paint0_linear",x1:"38982",y1:"103102",x2:"38982",y2:"34934.7",gradientUnits:"userSpaceOnUse"},Object(g.createElement)("stop",{stopColor:"#808080",stopOpacity:"0.25"}),Object(g.createElement)("stop",{offset:"0.54",stopColor:"#808080",stopOpacity:"0.12"}),Object(g.createElement)("stop",{offset:"1",stopColor:"#808080",stopOpacity:"0.1"})),Object(g.createElement)("clipPath",{id:"speed-svg"},Object(g.createElement)("path",{d:"M0 6C0 2.6863 2.68629 0 6 0H289C292.314 0 295 2.68629 295 6V160H0V6Z",fill:"white"}))))},U=function(e){var t=e.isJetpackSetup,n=void 0!==t&&t,r=e.isWcsSetup,c=void 0!==r&&r;return Object(g.createElement)("div",{className:"woocommerce-profile-wizard__benefits"},!n&&Object(g.createElement)(R,{title:Object(v.__)("Store management on the go","woocommerce-admin"),icon:Object(g.createElement)(B,null),description:Object(v.__)("Your store in your pocket. Manage orders, receive sales notifications, and more. Only with a Jetpack connection.","woocommerce-admin")}),(!c||!n)&&Object(g.createElement)(R,{title:Object(v.__)("Automated sales taxes","woocommerce-admin"),icon:Object(g.createElement)(F,null),description:Object(v.__)("Ensure that the correct rate of tax is charged on all of your orders automatically, and print shipping labels at home.","woocommerce-admin")}),!n&&Object(g.createElement)(R,{title:Object(v.__)("Improved speed & security","woocommerce-admin"),icon:Object(g.createElement)(D,null),description:Object(v.__)("Automatically block brute force attacks and speed up your store using our powerful, global server network to cache images.","woocommerce-admin")}),n&&!c&&Object(g.createElement)(R,{title:Object(v.__)("Print shipping labels at home","woocommerce-admin"),icon:Object(g.createElement)(A,null),description:Object(v.__)("Save time at the post office by printing shipping labels for your orders at home.","woocommerce-admin")}))},z=n(607);function q(e){var t=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){}))),!0}catch(e){return!1}}();return function(){var n,r=j()(e);if(t){var c=j()(this).constructor;n=Reflect.construct(r,arguments,c)}else n=r.apply(this,arguments);return O()(this,n)}}var G=function(e){f()(n,e);var t=q(n);function n(){return m()(this,n),t.apply(this,arguments)}return C()(n,[{key:"render",value:function(){return Object(g.createElement)("svg",{width:"161",height:"46",viewBox:"0 0 161 46",fill:"none",xmlns:"http://www.w3.org/2000/svg","aria-label":Object(v.__)("WooCommerce + Jetpack","woocommerce-admin"),className:"woocommerce-profile-wizard__benefits-logo"},Object(g.createElement)("path",{d:"M139.071 45.4503C150.906 45.4503 160.5 35.7679 160.5 23.824C160.5 11.8802 150.906 2.19775 139.071 2.19775C127.236 2.19775 117.642 11.8802 117.642 23.824C117.642 35.7679 127.236 45.4503 139.071 45.4503Z",fill:"#008710"}),Object(g.createElement)("path",{d:"M140.134 20.1919V41.1578L150.849 20.1919H140.134Z",fill:"#F6F7F7"}),Object(g.createElement)("path",{d:"M137.967 27.4144V6.48975L127.293 27.4144H137.967Z",fill:"#F6F7F7"}),Object(g.createElement)("path",{d:"M95.7021 24.668H100.542V21.6445H95.7021V16.8633H92.7138V21.6445H87.8857V24.668H92.7138V29.4609H95.7021V24.668Z",fill:"#2C3338"}),Object(g.createElement)("g",{clipPath:"url(#clip0)"},Object(g.createElement)("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M7.52123 2.25732H66.5046C70.2374 2.25732 73.2591 5.27907 73.2591 9.01182V31.5268C73.2591 35.2596 70.2374 38.2813 66.5046 38.2813H45.3524L48.2556 45.3913L35.4872 38.2813H7.55086C3.81811 38.2813 0.796359 35.2596 0.796359 31.5268V9.01182C0.766734 5.3087 3.78848 2.25732 7.52123 2.25732Z",fill:"#7F54B3"}),Object(g.createElement)("path",{d:"M4.41042 8.38982C4.82517 7.82695 5.4473 7.5307 6.2768 7.47145C7.78767 7.35295 8.6468 8.06395 8.85417 9.60445C9.77255 15.7961 10.7798 21.0397 11.8463 25.3353L18.3342 12.9817C18.9267 11.8559 19.6673 11.2634 20.5561 11.2042C21.8596 11.1153 22.6594 11.9448 22.9853 13.6927C23.7259 17.6328 24.6739 20.9805 25.7997 23.8245C26.5699 16.2997 27.8734 10.8783 29.7102 7.5307C30.1546 6.7012 30.8063 6.28645 31.6654 6.2272C32.3468 6.16795 32.9689 6.37533 33.5318 6.8197C34.0947 7.26408 34.3909 7.82695 34.4502 8.50832C34.4798 9.04157 34.3909 9.48595 34.1539 9.93033C32.9986 12.0633 32.0506 15.648 31.2803 20.625C30.5397 25.4538 30.2731 29.2162 30.4508 31.9121C30.5101 32.6527 30.3916 33.3045 30.0953 33.8673C29.7398 34.5191 29.2066 34.8746 28.5252 34.9338C27.7549 34.9931 26.955 34.6376 26.1848 33.8377C23.4297 31.0233 21.2374 26.8166 19.6377 21.2175C17.7121 25.0095 16.29 27.8535 15.3717 29.7495C13.6238 33.0971 12.1426 34.8153 10.8983 34.9042C10.0984 34.9635 9.41705 34.2821 8.82455 32.8601C7.31368 28.9792 5.6843 21.4841 3.93643 10.3747C3.84755 9.60445 3.99567 8.92307 4.41042 8.38982Z",fill:"#F6F7F7"}),Object(g.createElement)("path",{d:"M68.1043 13.041C67.0378 11.1746 65.4677 10.0489 63.3643 9.60451C62.8015 9.48601 62.2682 9.42676 61.7646 9.42676C58.9206 9.42676 56.6098 10.908 54.8027 13.8705C53.2622 16.3886 52.4919 19.1734 52.4919 22.2248C52.4919 24.5059 52.9659 26.4611 53.9139 28.0905C54.9804 29.9569 56.5506 31.0826 58.6539 31.527C59.2168 31.6455 59.7501 31.7048 60.2537 31.7048C63.1273 31.7048 65.4381 30.2235 67.2156 27.261C68.7561 24.7133 69.5263 21.9285 69.5263 18.8771C69.5263 16.5664 69.0523 14.6408 68.1043 13.041ZM64.3716 21.2471C63.9568 23.2024 63.2162 24.654 62.1201 25.6316C61.2609 26.4019 60.4611 26.7278 59.7204 26.5796C59.0094 26.4315 58.4169 25.8094 57.9726 24.654C57.6171 23.7356 57.4393 22.8173 57.4393 21.9581C57.4393 21.2175 57.4986 20.4769 57.6467 19.7955C57.9133 18.5809 58.417 17.3959 59.2168 16.2701C60.1945 14.8185 61.2313 14.226 62.2978 14.4334C63.0088 14.5815 63.6013 15.2036 64.0457 16.359C64.4012 17.2774 64.5789 18.1958 64.5789 19.0549C64.5789 19.8251 64.4901 20.5658 64.3716 21.2471Z",fill:"#F6F7F7"}),Object(g.createElement)("path",{d:"M49.5294 13.041C48.4629 11.1746 46.8631 10.0489 44.7894 9.60451C44.2265 9.48601 43.6932 9.42676 43.1896 9.42676C40.3456 9.42676 38.0349 10.908 36.2277 13.8705C34.6872 16.3886 33.917 19.1734 33.917 22.2248C33.917 24.5059 34.391 26.4611 35.339 28.0905C36.4055 29.9569 37.9756 31.0826 40.079 31.527C40.6419 31.6455 41.1751 31.7048 41.6787 31.7048C44.5524 31.7048 46.8631 30.2235 48.6406 27.261C50.1811 24.7133 50.9514 21.9285 50.9514 18.8771C50.9514 16.5664 50.4774 14.6408 49.5294 13.041ZM45.7966 21.2471C45.3819 23.2024 44.6412 24.654 43.5451 25.6316C42.686 26.4019 41.8861 26.7278 41.1455 26.5796C40.4345 26.4315 39.842 25.8094 39.3976 24.654C39.0421 23.7356 38.8644 22.8173 38.8644 21.9581C38.8644 21.2175 38.9236 20.4769 39.0717 19.7955C39.3384 18.5809 39.842 17.3959 40.6419 16.2701C41.6195 14.8185 42.6564 14.226 43.7229 14.4334C44.4339 14.5815 45.0264 15.2036 45.4707 16.359C45.8262 17.2774 46.004 18.1958 46.004 19.0549C46.004 19.8251 45.9447 20.5658 45.7966 21.2471Z",fill:"#F6F7F7"})),Object(g.createElement)("defs",null,Object(g.createElement)("clipPath",{id:"clip0"},Object(g.createElement)("rect",{x:"0.5",y:"2.19775",width:"72.8775",height:"43.2525",fill:"white"}))))}}]),n}(g.Component),W=function(e){var t=e.goToNextStep,n=Object(k.useSelect)((function(e){var t=e(S.ONBOARDING_STORE_NAME),n=t.getOnboardingError,r=t.isOnboardingRequesting;return{activePlugins:(0,e(S.PLUGINS_STORE_NAME).getActivePlugins)(),isJetpackConnected:e(S.PLUGINS_STORE_NAME).isJetpackConnected(),isProfileItemsError:Boolean(n("updateProfileItems")),isUpdatingProfileItems:r("updateProfileItems")}})),r=n.activePlugins,c=n.isJetpackConnected,o=n.isProfileItemsError,a=n.isUpdatingProfileItems,s=Object(k.useDispatch)("core/notices").createNotice,m=Object(k.useDispatch)(S.OPTIONS_STORE_NAME).updateOptions,u=Object(k.useDispatch)(S.ONBOARDING_STORE_NAME).updateProfileItems,C=Object(k.useDispatch)(S.PLUGINS_STORE_NAME).installAndActivatePlugins,d=["jetpack","woocommerce-services"].filter((function(e){return!r.includes(e)})),p=Object(g.useState)(d),b=Z()(p,1)[0],f=Object(g.useState)(!1),h=Z()(f,2),O=h[0],_=h[1],j=!b.includes("jetpack"),E=!b.includes("woocommerce-services"),y=E&&j&&c;if(Object(g.useEffect)((function(){y?t():Object(M.recordEvent)("storeprofiler_plugins_to_install",{plugins:b})}),[]),y)return null;var w=function(){var e=l()(i.a.mark((function e(){var n;return i.a.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return n=j?"skipped-wcs":"skipped",e.next=3,u({plugins:n});case 3:o?s("error",Object(v.__)("There was a problem updating your preferences","woocommerce-admin")):Object(M.recordEvent)("storeprofiler_install_plugins",{install:!1,plugins:n}),t();case 5:case"end":return e.stop()}}),e)})));return function(){return e.apply(this,arguments)}}(),L=b.map((function(e){return S.pluginNames[e]})).join(" "+Object(v.__)("and","woocommerce-admin")+" "),P=!E,N=Object(v._n)("plugin","plugins",b.length,"woocommerce-admin");return Object(g.createElement)(T.Card,{className:"woocommerce-profile-wizard__benefits-card"},Object(g.createElement)(T.CardBody,{justify:"center"},Object(g.createElement)(G,null),Object(g.createElement)("div",{className:"woocommerce-profile-wizard__step-header"},Object(g.createElement)(I.e,{variant:"title.small",as:"h2"},Object(v.sprintf)(Object(v.__)("Enhance your store with %s","woocommerce-admin"),L))),Object(g.createElement)(U,{isJetpackSetup:j&&c,isWcsSetup:E})),Object(g.createElement)(T.CardFooter,{isBorderless:!0,justify:"center"},Object(g.createElement)(T.Button,{isPrimary:!0,isBusy:O,disabled:a||O,onClick:function(){var e=j?"installed-wcs":"installed";_(!0),Object(M.recordEvent)("storeprofiler_install_plugins",{install:!0,plugins:e}),Promise.all([b.length?C(b):null,u({plugins:e}),m({woocommerce_setup_jetpack_opted_in:!0})]).then((function(){_(!1),t()})).catch((function(e,n){e&&Object(z.a)(e),n&&s("error",Object(v.__)("There was a problem updating your preferences","woocommerce-admin")),_(!1),t()}))}},Object(v.__)("Yes please!","woocommerce-admin")),Object(g.createElement)(T.Button,{isSecondary:!0,isBusy:a&&!O,disabled:a||O,className:"woocommerce-profile-wizard__skip",onClick:w},Object(v.__)("No thanks","woocommerce-admin"))),!!b.length&&Object(g.createElement)(T.CardFooter,{isBorderless:!0,justify:"center"},Object(g.createElement)("p",{className:"woocommerce-profile-wizard__benefits-install-notice"},P?x()({mixedString:Object(v.sprintf)(Object(v.__)("%1$s %2$s will be installed & activated for free, and you agree to our {{link}}Terms of Service{{/link}}.","woocommerce-admin"),L,N),components:{link:Object(g.createElement)(H.Link,{href:"https://wordpress.com/tos/",target:"_blank",type:"external"})}}):Object(v.sprintf)(Object(v.__)("%1$s %2$s will be installed & activated for free.","woocommerce-admin"),L,N))))},J=n(80),Y=n.n(J),$=n(598),Q=[{slug:"mailpoet",title:Object(v.__)("Email Marketing by WooCommerce","woocommerce-admin"),icon:"onboarding/mailpoet.png",description:Object(v.__)("The default all-in-one solution for WooCommerce email. Powered by MailPoet.","woocommerce-admin")},{slug:"facebook-for-woocommerce",title:Object(v.__)("Market on Facebook","woocommerce-admin"),icon:"onboarding/fb-woocommerce.png",description:Object(v.__)("Grow your business by targeting the right people and driving sales with Facebook.","woocommerce-admin")},{slug:"kliken-marketing-for-google",title:Object(v.__)("Drive traffic to your store with Google Ads & Marketing by Kliken","woocommerce-admin"),icon:"onboarding/g-shopping.png",description:Object(v.__)("Get in front of shoppers and drive traffic so you can grow your business with Smart Shopping Campaigns and free listings.","woocommerce-admin")},{slug:"mailchimp-for-woocommerce",title:Object(v.__)("Contact customers with Mailchimp","woocommerce-admin"),icon:"onboarding/mailchimp.png",description:Object(v.__)("Send targeted campaigns, recover abandoned carts and much more with Mailchimp.","woocommerce-admin")},{slug:"creative-mail-by-constant-contact",title:Object(v.__)("Email marketing for WooCommerce with Creative Mail","woocommerce-admin"),icon:"onboarding/creativemail.png",description:Object(v.__)("Create on-brand store campaigns, fast email promotions and customer retargeting with Creative Mail.","woocommerce-admin")}],K=[{key:"no",label:Object(v.__)("No","woocommerce-admin")},{key:"other",label:Object(v.__)("Yes, on another platform","woocommerce-admin")},{key:"other-woocommerce",label:Object(v.__)("Yes, I own a different store powered by WooCommerce","woocommerce-admin")},{key:"brick-mortar",label:Object(v.__)("Yes, in person at physical stores and/or events","woocommerce-admin")},{key:"brick-mortar-other",label:Object(v.__)("Yes, on another platform and in person at physical stores and/or events","woocommerce-admin")}],X=[{key:"shopify",label:Object(v.__)("Shopify","woocommerce-admin")},{key:"bigcommerce",label:Object(v.__)("BigCommerce","woocommerce-admin")},{key:"magento",label:Object(v.__)("Magento","woocommerce-admin")},{key:"wix",label:Object(v.__)("Wix","woocommerce-admin")},{key:"amazon",label:Object(v.__)("Amazon","woocommerce-admin")},{key:"ebay",label:Object(v.__)("eBay","woocommerce-admin")},{key:"etsy",label:Object(v.__)("Etsy","woocommerce-admin")},{key:"squarespace",label:Object(v.__)("Squarespace","woocommerce-admin")},{key:"other",label:Object(v.__)("Other","woocommerce-admin")}],ee=(n(177),n(88),n(142),n(247)),te=n.n(ee),ne=n(231),re=n(281),ce=function(e,t){return Object(re.formatValue)(e,"number",t)},oe=function(e,t){var n=arguments.length>2&&void 0!==arguments[2]&&arguments[2],r=arguments.length>3&&void 0!==arguments[3]?arguments[3]:ce;return n?Object(v.sprintf)(Object(v._x)("%1$s - %2$s","store product count or revenue range","woocommerce-admin"),r(e,t),r(e,n)):Object(v.sprintf)(Object(v._x)("%s+","store product count or revenue","woocommerce-admin"),r(e,t))},ie=function(e){return[{key:"0",label:Object(v.__)("I don't have any products yet.","woocommerce-admin")},{key:"1-10",label:oe(e,1,10)},{key:"11-100",label:oe(e,11,100)},{key:"101-1000",label:oe(e,101,1e3)},{key:"1000+",label:oe(e,1e3)}]},ae=te()(P.b).formatAmount,le={US:1,EU:.9,IN:71.24,GB:.76,BR:4.19,VN:23172.5,ID:14031,BD:84.87,PK:154.8,RU:63.74,TR:5.75,MX:19.37,CA:1.32},se=function(e,t){var n=Object(ne.c)(t);if("US"===n)return e;var r=le[n]||le.US,c=r.toString().split(".")[0].length,o=Math.pow(10,2+c);return Math.round(e*r/o)*o},me=function(e,t){return[{key:"none",label:Object(v.sprintf)(Object(v.__)("%s (I'm just getting started)","woocommerce-admin"),ae(0))},{key:"up-to-2500",label:Object(v.sprintf)(Object(v.__)("Up to %s","woocommerce-admin"),ae(se(2500,t)))},{key:"2500-10000",label:oe(e,se(2500,t),se(1e4,t),(function(e,t){return ae(t)}))},{key:"10000-50000",label:oe(e,se(1e4,t),se(5e4,t),(function(e,t){return ae(t)}))},{key:"50000-250000",label:oe(e,se(5e4,t),se(25e4,t),(function(e,t){return ae(t)}))},{key:"more-than-250000",label:Object(v.sprintf)(Object(v.__)("More than %s","woocommerce-admin"),ae(se(25e4,t)))},{key:"rather-not-say",label:Object(v.__)("I'd rather not say","woocommerce-admin")}]};function ue(e){var t=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){}))),!0}catch(e){return!1}}();return function(){var n,r=j()(e);if(t){var c=j()(this).constructor;n=Reflect.construct(r,arguments,c)}else n=r.apply(this,arguments);return O()(this,n)}}var Ce=Object(P.g)("wcAdminAssetUrl",""),de=function(e){f()(r,e);var t,n=ue(r);function r(e){var t;m()(this,r),t=n.call(this);var c=Object(w.get)(e,"profileItems",{}),o=Object(w.get)(c,"business_extensions",!1);return t.state={isPopoverVisible:!1},t.initialValues={other_platform:c.other_platform||"",other_platform_name:c.other_platform_name||"",product_count:c.product_count||"",selling_venues:c.selling_venues||"",revenue:c.revenue||"","facebook-for-woocommerce":!o||o.includes("facebook-for-woocommerce"),"mailchimp-for-woocommerce":!o||o.includes("mailchimp-for-woocommerce"),"creative-mail-by-constant-contact":!!o&&o.includes("creative-mail-by-constant-contact"),"kliken-marketing-for-google":!o||o.includes("kliken-marketing-for-google"),mailpoet:!o||o.includes("mailpoet"),install_extensions:!0},t.extensions=["mailpoet","facebook-for-woocommerce","mailchimp-for-woocommerce","kliken-marketing-for-google","creative-mail-by-constant-contact"],t.onContinue=t.onContinue.bind(p()(t)),t.validate=t.validate.bind(p()(t)),t}return C()(r,[{key:"onCreativeMailInstallAndActivated",value:function(){(0,this.props.updateOptions)({ce4wp_referred_by:{plugin:"woocommerce",version:Object(P.g)("wcVersion"),time:Math.floor((new Date).getTime()/1e3),source:"onboarding"}})}},{key:"onPostInstallAndActivePlugins",value:function(e){e.data.activated.includes("creative-mail-by-constant-contact")&&this.onCreativeMailInstallAndActivated()}},{key:"onContinue",value:(t=l()(i.a.mark((function e(t){var n,r,c,o,a,l,s,m,u,C,d,p,b,f,h,O,_=this;return i.a.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:n=this.props,r=n.createNotice,c=n.goToNextStep,o=n.installAndActivatePlugins,a=n.updateProfileItems,l=t.install_extensions,s=t.other_platform,m=t.other_platform_name,u=t.product_count,C=t.revenue,d=t.selling_venues,p=this.getBusinessExtensions(t),b=this.context.getCurrencyConfig,Object(M.recordEvent)("storeprofiler_store_business_details_continue",{product_number:u,already_selling:d,currency:b().code,revenue:C,used_platform:s,used_platform_name:m,install_woocommerce_services:p.includes("woocommerce-services"),install_jetpack:p.includes("jetpack"),install_facebook:p.includes("facebook-for-woocommerce"),install_mailpoet:p.includes("mailpoet"),install_mailchimp:p.includes("mailchimp-for-woocommerce"),install_creative_mail:p.includes("creative-mail-by-constant-contact"),install_google_ads:p.includes("kliken-marketing-for-google"),install_extensions:l}),f={other_platform:s,other_platform_name:"other"===s?m:"",product_count:u,revenue:C,selling_venues:d,business_extensions:p},h={},Object.keys(f).forEach((function(e){""!==f[e]&&(h[e]=f[e])})),O=[a(h).catch((function(){throw new Error}))],p.length&&O.push(o(p).then((function(e){Object(z.a)(e),_.onPostInstallAndActivePlugins(e)})).catch((function(e){throw Object(z.a)(e),new Error}))),Promise.all(O).then((function(){c()})).catch((function(){r("error",Object(v.__)("There was a problem updating your business details","woocommerce-admin"))}));case 11:case"end":return e.stop()}}),e,this)}))),function(e){return t.apply(this,arguments)})},{key:"validate",value:function(e){var t={};return e.product_count.length||(t.product_count=Object(v.__)("This field is required","woocommerce-admin")),e.selling_venues.length||(t.selling_venues=Object(v.__)("This field is required","woocommerce-admin")),!e.other_platform.length&&["other","brick-mortar-other"].includes(e.selling_venues)&&(t.other_platform=Object(v.__)("This field is required","woocommerce-admin")),!e.other_platform_name&&"other"===e.other_platform&&["other","brick-mortar-other"].includes(e.selling_venues)&&(t.other_platform_name=Object(v.__)("This field is required","woocommerce-admin")),!e.revenue.length&&["other","brick-mortar","brick-mortar-other","other-woocommerce"].includes(e.selling_venues)&&(t.revenue=Object(v.__)("This field is required","woocommerce-admin")),t}},{key:"getBusinessExtensions",value:function(e){var t=this;return""===e.selling_venues?[]:Object(w.keys)(Object(w.pickBy)(e)).filter((function(e){return t.extensions.includes(e)}))}},{key:"renderBusinessExtensionHelpText",value:function(e){var t=this.props.isInstallingActivating,n=this.getBusinessExtensions(e);if(0===n.length)return null;var r=n.map((function(e){return S.pluginNames[e]})).join(", ");return t?Object(g.createElement)(I.e,{variant:"caption",as:"p"},Object(v.sprintf)(Object(v._n)("Installing the following plugin: %s","Installing the following plugins: %s",n.length,"woocommerce-admin"),r)):Object(g.createElement)("div",{className:"woocommerce-profile-wizard__footnote"},Object(g.createElement)(I.e,{variant:"caption",as:"p"},Object(v.sprintf)(Object(v._n)("The following plugin will be installed for free: %s.","The following plugins will be installed for free: %s.",n.length,"woocommerce-admin"),r)))}},{key:"renderBusinessExtensions",value:function(e,t){return""===e.selling_venues?null:Object(g.createElement)("div",null,Q.map((function(n){return Object(g.createElement)("div",{className:"woocommerce-profile-wizard__benefit",key:n.title},Object(g.createElement)("div",{className:"woocommerce-profile-wizard__business-extension"},Object(g.createElement)("img",{src:Ce+n.icon,alt:""})),Object(g.createElement)("div",{className:"woocommerce-profile-wizard__benefit-content"},Object(g.createElement)(H.H,{className:"woocommerce-profile-wizard__benefit-title"},n.title),Object(g.createElement)("p",null,n.description)),Object(g.createElement)("div",{className:"woocommerce-profile-wizard__benefit-toggle"},Object(g.createElement)(T.FormToggle,Y()({checked:e[n.slug]},t(n.slug)))))})))}},{key:"render",value:function(){var e=this,t=this.props,n=t.goToNextStep,r=t.isInstallingActivating,c=t.hasInstallActivateError,o=t.isUpdatingProfileItems,i=this.context.getCurrencyConfig,a=ie(i()),l=me(i(),this.props.settings.woocommerce_default_country);return Object(g.createElement)(H.Form,{initialValues:this.initialValues,onSubmitCallback:this.onContinue,validate:this.validate},(function(t){var i=t.getInputProps,s=t.handleSubmit,m=t.values,u=t.isValidForm,C=e.renderBusinessExtensions(m,i);return Object(g.createElement)(g.Fragment,null,Object(g.createElement)("div",{className:"woocommerce-profile-wizard__step-header"},Object(g.createElement)(I.e,{variant:"title.small",as:"h2"},Object(v.__)("Tell us about your business","woocommerce-admin")),Object(g.createElement)(I.e,{variant:"body"},Object(v.__)("We'd love to know if you are just getting started or you already have a business in place.","woocommerce-admin"))),Object(g.createElement)(T.Card,null,Object(g.createElement)(T.CardBody,null,Object(g.createElement)(H.SelectControl,Y()({label:Object(v.__)("How many products do you plan to display?","woocommerce-admin"),options:a,required:!0},i("product_count"))),Object(g.createElement)(H.SelectControl,Y()({label:Object(v.__)("Currently selling elsewhere?","woocommerce-admin"),options:K,required:!0},i("selling_venues"))),["other","brick-mortar","brick-mortar-other","other-woocommerce"].includes(m.selling_venues)&&Object(g.createElement)(H.SelectControl,Y()({label:Object(v.__)("What's your current annual revenue?","woocommerce-admin"),options:l,required:!0},i("revenue"))),["other","brick-mortar-other"].includes(m.selling_venues)&&Object(g.createElement)(g.Fragment,null,Object(g.createElement)("div",{className:"business-competitors"},Object(g.createElement)(H.SelectControl,Y()({label:Object(v.__)("Which platform is the store using?","woocommerce-admin"),options:X,required:!0},i("other_platform"))),"other"===m.other_platform&&Object(g.createElement)(H.TextControl,Y()({label:Object(v.__)("What is the platform name?","woocommerce-admin"),required:!0},i("other_platform_name")))))),C&&Object(g.createElement)(T.CardFooter,null,C),Object(g.createElement)(T.CardFooter,{justify:"center"},Object(g.createElement)(T.Button,{isPrimary:!0,onClick:s,disabled:!u||o||r,isBusy:r},c?Object(v.__)("Retry","woocommerce-admin"):Object(v.__)("Continue","woocommerce-admin")),c&&Object(g.createElement)(T.Button,{onClick:function(){return n()}},Object(v.__)("Continue without installing","woocommerce-admin")))),e.renderBusinessExtensionHelpText(m))}))}}]),r}(g.Component);de.contextType=$.a;var pe=Object(y.compose)(Object(k.withSelect)((function(e){var t=e(S.SETTINGS_STORE_NAME),n=t.getSettings,r=t.getSettingsError,c=t.isUpdateSettingsRequesting,o=e(S.ONBOARDING_STORE_NAME),i=o.getProfileItems,a=o.getOnboardingError,l=o.isOnboardingRequesting,s=e(S.PLUGINS_STORE_NAME),m=s.getPluginsError,u=s.isPluginsRequesting,C=n("general").general,d=void 0===C?{}:C;return{hasInstallActivateError:m("installPlugins")||m("activatePlugins"),isError:Boolean(a("updateProfileItems")),profileItems:i(),isSettingsError:Boolean(r("general")),settings:d,isUpdatingProfileItems:l("updateProfileItems")||c("general"),isInstallingActivating:u("installPlugins")||u("activatePlugins")||u("getJetpackConnectUrl")}})),Object(k.withDispatch)((function(e){var t=e(S.ONBOARDING_STORE_NAME).updateProfileItems,n=e(S.PLUGINS_STORE_NAME).installAndActivatePlugins;return{createNotice:e("core/notices").createNotice,installAndActivatePlugins:n,updateProfileItems:t,updateOptions:e(S.OPTIONS_STORE_NAME).updateOptions}})))(de),be=(n(285),n(282),n(426)),fe=n(701),he=n(702),Oe=function(){return Object(g.createElement)("svg",{width:"200",height:"148",viewBox:"0 0 200 148",fill:"none",xmlns:"http://www.w3.org/2000/svg"},Object(g.createElement)("g",{clipPath:"url(#clip0)"},Object(g.createElement)("path",{d:"M197.563 2.53875e-09H62.909C62.3961 0.000450584 61.9043 0.205742 61.5416 0.570805C61.179 0.935868 60.975 1.43087 60.9746 1.94714V50.9404H93.5623C94.4445 50.9415 95.2902 51.2947 95.9141 51.9226C96.5379 52.5505 96.8888 53.4019 96.8899 54.2899V95.7402H197.563C197.843 95.7402 198.119 95.6791 198.373 95.5612C198.627 95.4432 198.853 95.2712 199.034 95.0569C199.05 95.0402 199.064 95.0222 199.076 95.0033C199.192 94.8612 199.285 94.7024 199.354 94.5322C199.451 94.2981 199.501 94.0468 199.5 93.7931V1.94714C199.499 1.43051 199.295 0.935241 198.932 0.57014C198.569 0.20504 198.077 -2.63458e-05 197.563 2.53875e-09Z",fill:"#F2F2F2"}),Object(g.createElement)("path",{d:"M199.222 7.80469H61.25V8.36132H199.222V7.80469Z",fill:"#CCCCCC"}),Object(g.createElement)("path",{d:"M65.95 5.84371C66.8662 5.84371 67.609 5.09607 67.609 4.17381C67.609 3.25155 66.8662 2.50391 65.95 2.50391C65.0338 2.50391 64.291 3.25155 64.291 4.17381C64.291 5.09607 65.0338 5.84371 65.95 5.84371Z",fill:"#CCCCCC"}),Object(g.createElement)("path",{d:"M70.72 5.84371C71.6363 5.84371 72.379 5.09607 72.379 4.17381C72.379 3.25155 71.6363 2.50391 70.72 2.50391C69.8038 2.50391 69.061 3.25155 69.061 4.17381C69.061 5.09607 69.8038 5.84371 70.72 5.84371Z",fill:"#CCCCCC"}),Object(g.createElement)("path",{d:"M75.4896 5.84371C76.4058 5.84371 77.1486 5.09607 77.1486 4.17381C77.1486 3.25155 76.4058 2.50391 75.4896 2.50391C74.5733 2.50391 73.8306 3.25155 73.8306 4.17381C73.8306 5.09607 74.5733 5.84371 75.4896 5.84371Z",fill:"#CCCCCC"}),Object(g.createElement)("path",{d:"M164.842 19.957H95.6295C94.8646 19.957 94.1311 20.2629 93.5903 20.8073C93.0494 21.3516 92.7456 22.09 92.7456 22.8599C92.7456 23.6298 93.0494 24.3681 93.5903 24.9125C94.1311 25.4569 94.8646 25.7627 95.6295 25.7627H164.842C165.607 25.7627 166.341 25.4569 166.882 24.9125C167.422 24.3681 167.726 23.6298 167.726 22.8599C167.726 22.09 167.422 21.3516 166.882 20.8073C166.341 20.2629 165.607 19.957 164.842 19.957ZM164.842 25.3161H95.6295C94.9823 25.3161 94.3616 25.0573 93.904 24.5967C93.4464 24.1361 93.1893 23.5113 93.1893 22.8599C93.1893 22.2084 93.4464 21.5837 93.904 21.123C94.3616 20.6624 94.9823 20.4036 95.6295 20.4036H164.842C165.489 20.4036 166.11 20.6624 166.568 21.123C167.025 21.5837 167.283 22.2084 167.283 22.8599C167.283 23.5113 167.025 24.1361 166.568 24.5967C166.11 25.0573 165.489 25.3161 164.842 25.3161Z",fill:"#CCCCCC"}),Object(g.createElement)("path",{d:"M186.022 43.0859H116.809C116.044 43.0859 115.31 43.3918 114.769 43.9362C114.229 44.4806 113.925 45.2189 113.925 45.9888C113.925 46.7587 114.229 47.497 114.769 48.0414C115.31 48.5858 116.044 48.8916 116.809 48.8916H186.022C186.786 48.8916 187.52 48.5858 188.061 48.0414C188.602 47.497 188.905 46.7587 188.905 45.9888C188.905 45.2189 188.602 44.4806 188.061 43.9362C187.52 43.3918 186.786 43.0859 186.022 43.0859Z",fill:"white"}),Object(g.createElement)("path",{d:"M186.022 53.8047H116.809C116.044 53.8047 115.31 54.1105 114.769 54.6549C114.229 55.1993 113.925 55.9376 113.925 56.7075C113.925 57.4774 114.229 58.2158 114.769 58.7601C115.31 59.3045 116.044 59.6104 116.809 59.6104H186.022C186.786 59.6104 187.52 59.3045 188.061 58.7601C188.602 58.2158 188.905 57.4774 188.905 56.7075C188.905 55.9376 188.602 55.1993 188.061 54.6549C187.52 54.1105 186.786 53.8047 186.022 53.8047Z",fill:"white"}),Object(g.createElement)("path",{d:"M186.022 64.5195H116.809C116.044 64.5195 115.31 64.8254 114.769 65.3698C114.229 65.9141 113.925 66.6525 113.925 67.4224C113.925 68.1923 114.229 68.9306 114.769 69.475C115.31 70.0194 116.044 70.3252 116.809 70.3252H186.022C186.786 70.3252 187.52 70.0194 188.061 69.475C188.602 68.9306 188.905 68.1923 188.905 67.4224C188.905 66.6525 188.602 65.9141 188.061 65.3698C187.52 64.8254 186.786 64.5195 186.022 64.5195Z",fill:"white"}),Object(g.createElement)("path",{d:"M105.623 38.2852H74.1183C73.4425 38.286 72.7947 38.5565 72.3168 39.0375C71.839 39.5185 71.5702 40.1706 71.5693 40.8508V50.9416H72.013V40.8508C72.0139 40.2891 72.2359 39.7506 72.6306 39.3533C73.0252 38.9561 73.5602 38.7326 74.1183 38.7317H105.623C106.182 38.7322 106.717 38.9556 107.112 39.3529C107.506 39.7502 107.728 40.289 107.729 40.8508V72.5633C107.728 73.1251 107.506 73.6638 107.112 74.0611C106.717 74.4585 106.182 74.6819 105.623 74.6824H96.8897V75.1289H105.623C106.299 75.1285 106.947 74.858 107.425 74.377C107.903 73.8959 108.172 73.2436 108.172 72.5633V40.8508C108.172 40.1705 107.903 39.5182 107.425 39.0371C106.947 38.556 106.299 38.2856 105.623 38.2852Z",fill:"#CCCCCC"}),Object(g.createElement)("path",{d:"M23.9309 70.9116C23.8195 70.9162 19.0705 70.5847 18.9492 70.5806L19.3758 66.294L22.0808 66.212L27.2495 56.5756C26.5327 55.1996 27.4148 53.3739 28.9355 53.0925C32 52.3914 33.0526 57.2443 29.9789 57.8901L25.7036 69.6652C25.5695 70.03 25.3278 70.3449 25.011 70.5676C24.6942 70.7904 24.3174 70.9104 23.9309 70.9116Z",fill:"#FFB8B8"}),Object(g.createElement)("path",{d:"M11.4107 73.118C6.89154 73.1291 6.49482 66.2544 11.024 65.7699C23.0006 65.0415 21.485 62.0137 22.3945 70.9448C22.4224 71.2097 22.3448 71.475 22.1787 71.6824C22.0126 71.8898 21.7715 72.0223 21.5084 72.051L11.803 73.0968C11.6727 73.1109 11.5417 73.1179 11.4107 73.118Z",className:"fill-theme-color"}),Object(g.createElement)("path",{d:"M10.3793 51.3852C16.605 54.9512 11.494 64.3601 5.15222 61.0097C-1.0733 57.4438 4.03771 48.0349 10.3793 51.3852Z",fill:"#FFB8B8"}),Object(g.createElement)("path",{d:"M16.0395 132.376L18.759 132.376L20.053 121.816L16.0391 121.817L16.0395 132.376Z",fill:"#FFB8B8"}),Object(g.createElement)("path",{d:"M15.4567 134.915L24.0042 134.915C23.9716 130.476 18.2546 131.755 15.4565 131.591L15.4567 134.915Z",fill:"#2F2E41"}),Object(g.createElement)("path",{d:"M4.28218 132.376L7.00167 132.376L8.29564 121.816L4.28174 121.817L4.28218 132.376Z",fill:"#FFB8B8"}),Object(g.createElement)("path",{d:"M3.69937 134.915L12.2469 134.915C12.2142 130.476 6.49728 131.755 3.69922 131.591L3.69937 134.915Z",fill:"#2F2E41"}),Object(g.createElement)("path",{d:"M7.37266 128.688C6.71536 128.507 3.14362 129.056 2.72209 128.335C1.24999 113.483 1.57722 98.9486 4.845 90.9619L16.0806 90.2695C18.5931 94.8863 24.3684 125.522 20.8847 127.385L16.4048 127.546C16.1493 127.554 15.8988 127.474 15.6952 127.318C15.4916 127.163 15.3475 126.941 15.2869 126.691L11.539 105.229C10.6057 103.916 8.77111 127.832 8.46815 127.742C8.42864 128.006 8.29626 128.247 8.09515 128.42C7.89404 128.594 7.63762 128.689 7.37266 128.688Z",fill:"#2F2E41"}),Object(g.createElement)("path",{d:"M4.48843 92.8373C-1.18427 86.8634 2.43414 70.8475 2.25101 71.1881C2.26655 70.7958 3.55141 64.7536 6.87506 63.762C9.51196 62.886 12.4305 65.5063 12.7906 68.1566L16.7406 91.6368C16.7611 91.7646 16.7514 91.8955 16.7123 92.0188C16.6733 92.1422 16.6059 92.2546 16.5158 92.3469C16.71 92.9556 4.76613 92.7153 4.48843 92.8373Z",className:"fill-theme-color"}),Object(g.createElement)("path",{d:"M6.32941 55.5845C6.82759 55.2675 7.07312 54.7238 7.36309 54.2285C8.89053 53.3522 10.6464 55.472 12.262 54.6809C16.8302 50.2665 12.1346 48.9642 7.92721 48.7314C6.9333 48.6081 6.08781 48.963 5.33637 49.5492C-3.06805 48.9031 0.962591 60.1519 6.26679 61.6376C7.2033 62.0505 7.90582 61.2148 7.07994 60.4551C5.93728 59.2493 4.52181 56.8221 6.32941 55.5845Z",fill:"#2F2E41"}),Object(g.createElement)("path",{d:"M93.5621 50.4922H32.779C31.7793 50.4936 30.8209 50.894 30.1139 51.6056C29.407 52.3172 29.0092 53.2819 29.0078 54.2882V131.548C29.0092 132.555 29.407 133.52 30.1139 134.231C30.8209 134.943 31.7793 135.343 32.779 135.345H93.5621C94.5619 135.343 95.5202 134.943 96.2272 134.231C96.9341 133.52 97.3319 132.555 97.3333 131.548V54.2882C97.3319 53.2819 96.9341 52.3172 96.2272 51.6056C95.5202 50.894 94.5619 50.4936 93.5621 50.4922ZM96.8896 131.548C96.8886 132.436 96.5376 133.288 95.9138 133.916C95.29 134.544 94.4443 134.897 93.5621 134.898H32.779C31.8968 134.897 31.0511 134.544 30.4273 133.916C29.8035 133.288 29.4526 132.436 29.4515 131.548V54.2882C29.4526 53.4002 29.8035 52.5489 30.4273 51.921C31.0511 51.2931 31.8968 50.9399 32.779 50.9388H93.5621C94.4443 50.9399 95.29 51.2931 95.9138 51.921C96.5376 52.5489 96.8886 53.4002 96.8896 54.2882V131.548Z",fill:"#3F3D56"}),Object(g.createElement)("path",{d:"M15.6527 83.0043C13.6494 83.2327 12.7698 78.5402 12.0039 77.3445L15.9936 75.7852L17.2918 78.1751L28.168 78.4472C28.2326 78.3591 28.3032 78.2755 28.3793 78.1971C30.5362 75.9238 34.0488 79.33 31.9 81.5984C31.663 81.8519 31.3752 82.0521 31.0557 82.1855C30.7362 82.319 30.3923 82.3828 30.0465 82.3727C29.7007 82.3627 29.361 82.2789 29.0497 82.1271C28.7384 81.9753 28.4626 81.7588 28.2405 81.4918C27.9719 81.5111 15.9153 83.0114 15.6527 83.0043Z",fill:"#FFB8B8"}),Object(g.createElement)("path",{d:"M12.6985 80.7664C12.0314 81.4133 6.91061 72.3318 6.5365 72.0751C3.94893 68.0267 10.0405 64.0298 12.6727 68.0562L17.9961 76.2911C18.1402 76.5145 18.1904 76.7864 18.1356 77.047C18.0808 77.3076 17.9255 77.5357 17.7039 77.6812C17.4613 77.7956 12.8697 81.0123 12.6985 80.7664Z",className:"fill-theme-color"}),Object(g.createElement)("path",{d:"M81.583 103.974H44.7583C40.9966 103.955 40.9809 98.1877 44.7584 98.168H81.583C85.3421 98.1857 85.3624 103.954 81.583 103.974Z",fill:"#CCCCCC"}),Object(g.createElement)("path",{d:"M81.583 114.692H44.7583C40.9966 114.674 40.9809 108.906 44.7584 108.887H81.583C85.3421 108.904 85.3624 114.673 81.583 114.692Z",fill:"#CCCCCC"}),Object(g.createElement)("path",{d:"M81.583 125.411H44.7583C40.9966 125.393 40.9809 119.625 44.7584 119.605H81.583C85.3421 119.623 85.3624 125.391 81.583 125.411Z",fill:"#CCCCCC"}),Object(g.createElement)("path",{d:"M95.3371 57.6387C94.1963 57.6387 93.0812 57.2982 92.1327 56.6603C91.1842 56.0223 90.4449 55.1156 90.0084 54.0548C89.5718 52.9939 89.4576 51.8266 89.6802 50.7004C89.9027 49.5742 90.452 48.5397 91.2587 47.7278C92.0653 46.9159 93.093 46.3629 94.2118 46.1389C95.3307 45.9149 96.4904 46.0299 97.5443 46.4693C98.5982 46.9087 99.499 47.6528 100.133 48.6076C100.767 49.5623 101.105 50.6848 101.105 51.833C101.103 53.3723 100.495 54.8479 99.4136 55.9363C98.3323 57.0247 96.8662 57.637 95.3371 57.6387Z",className:"fill-theme-color"}),Object(g.createElement)("path",{d:"M97.999 51.6121H95.5588V48.821C95.5588 48.7617 95.5355 48.7049 95.4939 48.6631C95.4523 48.6212 95.3958 48.5977 95.337 48.5977C95.2782 48.5977 95.2217 48.6212 95.1801 48.6631C95.1385 48.7049 95.1152 48.7617 95.1152 48.821V51.6121H92.675C92.6161 51.6121 92.5597 51.6357 92.5181 51.6775C92.4765 51.7194 92.4531 51.7762 92.4531 51.8354C92.4531 51.8947 92.4765 51.9515 92.5181 51.9933C92.5597 52.0352 92.6161 52.0587 92.675 52.0587H95.1152V54.8499C95.1152 54.9091 95.1385 54.9659 95.1801 55.0078C95.2217 55.0497 95.2782 55.0732 95.337 55.0732C95.3958 55.0732 95.4523 55.0497 95.4939 55.0078C95.5355 54.9659 95.5588 54.9091 95.5588 54.8499V52.0587H97.999C98.0579 52.0587 98.1143 52.0352 98.1559 51.9933C98.1975 51.9515 98.2209 51.8947 98.2209 51.8354C98.2209 51.7762 98.1975 51.7194 98.1559 51.6775C98.1143 51.6357 98.0579 51.6121 97.999 51.6121Z",fill:"white"}),Object(g.createElement)("path",{d:"M80.9177 91.2002H45.424C44.4535 91.1991 43.5232 90.8105 42.837 90.1198C42.1508 89.4291 41.7648 88.4926 41.7637 87.5158V67.5086C41.7648 66.5318 42.1508 65.5953 42.837 64.9046C43.5232 64.2139 44.4535 63.8253 45.424 63.8242H80.9177C81.8882 63.8253 82.8185 64.2139 83.5047 64.9046C84.1909 65.5953 84.5769 66.5318 84.578 67.5086V87.5158C84.5769 88.4926 84.1909 89.4291 83.5047 90.1198C82.8185 90.8105 81.8882 91.1991 80.9177 91.2002Z",className:"fill-theme-color"})),Object(g.createElement)("defs",null,Object(g.createElement)("clipPath",{id:"clip0"},Object(g.createElement)("rect",{width:"199",height:"148",fill:"white",transform:"translate(0.5)"}))))},_e=(n(663),n(619)),je=n(615);function ge(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function ve(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?ge(Object(n),!0).forEach((function(t){c()(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):ge(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}var Ee=function(e,t,n){var r=null!=n?n:"https://woocommerce.com/products/".concat(t);return x()({mixedString:e,components:{link:Object(g.createElement)(H.Link,{type:"external",target:"_blank",className:"woocommerce-admin__business-details__selective-extensions-bundle__link",href:r,onClick:function(){Object(M.recordEvent)("storeprofiler_store_business_features_link_click",{extension_name:t})}})}})},ye=[{title:Object(v.__)("Get the basics","woocommerce-admin"),plugins:[{slug:"woocommerce-payments",description:Ee(Object(v.__)("Accept credit cards with {{link}}WooCommerce Payments{{/link}}","woocommerce-admin"),"woocommerce-payments"),isVisible:function(e,t){var n=(t||[]).some((function(e){return"cbd-other-hemp-derived-products"===e.slug}));return Object(je.d)(e)&&!n}},{slug:"woocommerce-services:shipping",description:Ee(Object(v.__)("Print shipping labels with {{link}}WooCommerce Shipping{{/link}}","woocommerce-admin"),"shipping"),isVisible:function(e,t,n){return"US"===e||"US"===e&&1===n.length&&"downloads"===n[0]}},{slug:"woocommerce-services:tax",description:Ee(Object(v.__)("Get automated sales tax with {{link}}WooCommerce Tax{{/link}}","woocommerce-admin"),"tax"),isVisible:function(e){return["US","FR","GB","DE","CA","PL","AU","GR","BE","PT","DK","SE"].includes(e)}},{slug:"jetpack",description:Ee(Object(v.__)("Enhance speed and security with {{link}}Jetpack{{/link}}","woocommerce-admin"),"jetpack")}]},{title:"Grow your store",plugins:[{slug:"mailpoet",description:Ee(Object(v.__)("Level up your email marketing with {{link}}Mailpoet{{/link}}","woocommerce-admin"),"mailpoet","https://wordpress.org/plugins/mailpoet/")},{slug:"facebook-for-woocommerce",description:Ee(Object(v.__)("Market on {{link}}Facebook{{/link}}","woocommerce-admin"),"facebook")},{slug:"kliken-marketing-for-google",description:Ee(Object(v.__)("Drive sales with {{link}}Google Ads{{/link}}","woocommerce-admin"),"google-ads-and-marketing")},{slug:"mailchimp-for-woocommerce",description:Ee(Object(v.__)("Contact customers with {{link}}Mailchimp{{/link}}","woocommerce-admin"),"mailchimp-for-woocommerce")},{slug:"creative-mail-by-constant-contact",description:Ee(Object(v.__)("Emails made easy with {{link}}Creative Mail{{/link}}","woocommerce-admin"),"creative-mail-for-woocommerce")}]}],we=function(){return Object(g.createElement)("div",{className:"woocommerce-admin__business-details__free-badge"},Object(v.__)("Free","woocommerce-admin"))},ke=function(e){var t=e.onChange,n=e.description,r=e.isChecked;return Object(g.createElement)("div",{className:"woocommerce-admin__business-details__selective-extensions-bundle__extension"},Object(g.createElement)(T.CheckboxControl,{id:"woocommerce-business-extensions__checkbox",checked:r,onChange:t}),Object(g.createElement)("p",{className:"woocommerce-admin__business-details__selective-extensions-bundle__description"},n),Object(g.createElement)(we,null))},Le=function(e,t,n,r){var c=Object(ne.b)(t);return e.filter((function(e){return!e.isVisible||e.isVisible(c,n,r)}))},Se=function(e){var t=e.isInstallingActivating,n=e.onSubmit,r=e.country,o=e.industry,i=e.productTypes,a=Object(g.useState)(!1),l=Z()(a,2),s=l[0],m=l[1],u=Object(g.useState)({}),C=Z()(u,2),d=C[0],p=C[1];Object(g.useEffect)((function(){var e=ye.reduce((function(e,t){var n=Le(t.plugins,r,o,i).reduce((function(e,t){var n=t.slug;return ve(ve({},e),{},c()({},n,!0))}),{});return ve(ve({},e),n)}),{install_extensions:!0});p(e)}),[r]);var b=function(e){return function(t){var n,r=ve(ve({},d),{},c()({},e,t));1===Object.entries(r).filter((function(e){return Z()(e,2)[1]})).length&&r.install_extensions?p(ve(ve({},r),{},{install_extensions:!1})):p(ve(ve({},d),{},(n={},c()(n,e,t),c()(n,"install_extensions",!0),n)))}};return Object(g.createElement)("div",{className:"woocommerce-profile-wizard__business-details__free-features"},Object(g.createElement)(T.Card,null,Object(g.createElement)("div",{className:"woocommerce-profile-wizard__business-details__free-features__illustration"},Object(g.createElement)(Oe,null)),Object(g.createElement)("div",{className:"woocommerce-admin__business-details__selective-extensions-bundle"},Object(g.createElement)("div",{className:"woocommerce-admin__business-details__selective-extensions-bundle__extension"},Object(g.createElement)(T.CheckboxControl,{checked:d.install_extensions,onChange:function(e){p(Object(_e.b)(d,e))}}),Object(g.createElement)("p",{className:"woocommerce-admin__business-details__selective-extensions-bundle__description"},Object(v.__)("Add recommended business features to my site")),Object(g.createElement)(be.a,{className:"woocommerce-admin__business-details__selective-extensions-bundle__expand",icon:s?fe.a:he.a,onClick:function(){m(!s),s||Object(M.recordEvent)("storeprofiler_store_business_features_accordion_click")}})),s&&ye.map((function(e){var t=e.plugins,n=e.title;return Object(g.createElement)("div",{key:n},Object(g.createElement)("div",{className:"woocommerce-admin__business-details__selective-extensions-bundle__category"},n),Le(t,r,o,i).map((function(e){var t=e.description,n=e.slug;return Object(g.createElement)(ke,{key:n,description:t,isChecked:d[n],onChange:b(n)})})))}))),Object(g.createElement)("div",{className:"woocommerce-profile-wizard__business-details__free-features__action"},Object(g.createElement)(T.Button,{onClick:function(){n(d)},isBusy:t,isPrimary:!0},"Continue"))),function(e,t){var n=Object.keys(e).filter((function(t){return e[t]&&"install_extensions"!==t}));if(0===n.length)return null;var r=n.map((function(e){return S.pluginNames[e]})).join(", ");if(t)return Object(g.createElement)("div",{className:"woocommerce-profile-wizard__footnote"},Object(g.createElement)(T.__experimentalText,{variant:"caption",as:"p"},Object(v.sprintf)(Object(v._n)("Installing the following plugin: %s","Installing the following plugins: %s",n.length,"woocommerce-admin"),r)));var c=n.includes("jetpack")||n.includes("woocommerce-shipping"),o=Object(v.__)("User accounts are required to use these features.","woocommerce-admin");return Object(g.createElement)("div",{className:"woocommerce-profile-wizard__footnote"},Object(g.createElement)(T.__experimentalText,{variant:"caption",as:"p"},Object(v.sprintf)(Object(v._n)("The following plugin will be installed for free: %1$s. %2$s","The following plugins will be installed for free: %1$s. %2$s",n.length,"woocommerce-admin"),r,o)),c&&Object(g.createElement)(T.__experimentalText,{variant:"caption",as:"p"},x()({mixedString:Object(v.__)("By installing Jetpack and WooCommerce Shipping plugins for free you agree to our {{link}}Terms of Service{{/link}}.","woocommerce-admin"),components:{link:Object(g.createElement)(H.Link,{href:"https://wordpress.com/tos/",target:"_blank",type:"external"})}})))}(d,t))};n(664);function Me(e){var t=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){}))),!0}catch(e){return!1}}();return function(){var n,r=j()(e);if(t){var c=j()(this).constructor;n=Reflect.construct(r,arguments,c)}else n=r.apply(this,arguments);return O()(this,n)}}var Pe=function(e){return Object.keys(e).filter((function(t){return e[t]&&"install_extensions"!==t})).map((function(e){return e.split(":")[0]})).filter((function(e,t,n){return n.indexOf(e)===t}))},Ne=function(e){f()(r,e);var t,n=Me(r);function r(){var e;return m()(this,r),(e=n.call(this)).state={isPopoverVisible:!1,isValid:!1,currentTab:"business-details",savedValues:null},e.onContinue=e.onContinue.bind(p()(e)),e.validate=e.validate.bind(p()(e)),e}return C()(r,[{key:"onContinue",value:(t=l()(i.a.mark((function e(t){var n,r,c,o,a,l,s,m,u,C,d,p,b,f;return i.a.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:n=this.props,r=n.createNotice,c=n.goToNextStep,o=n.installAndActivatePlugins,a=n.updateProfileItems,l=this.state.savedValues,s=l.other_platform,m=l.other_platform_name,u=l.product_count,C=l.revenue,d=l.selling_venues,p=Pe(t),Object(M.recordEvent)("storeprofiler_store_business_features_continue",{all_extensions_installed:Object.values(t).every((function(e){return e})),install_woocommerce_services:t["woocommerce-services:shipping"]||t["woocommerce-services:tax"],install_mailchimp:t["mailchimp-for-woocommerce"],install_mailpoet:t.mailpoet,install_jetpack:t.jetpack,install_google_ads:t["kliken-marketing-for-google"],install_facebook:t["facebook-for-woocommerce"],install_wcpay:t["woocommerce-payments"],install_creative_mail:t["creative-mail-by-constant-contact"]}),b={other_platform:s,other_platform_name:"other"===s?m:"",product_count:u,revenue:C,selling_venues:d,business_extensions:p},Object.keys(b).forEach((function(e){return""===b[e]&&delete b[e]})),f=[a(b).catch((function(){throw new Error}))],p.length&&f.push(o(p).then((function(e){Object(z.a)(e)})).catch((function(e){throw Object(z.a)(e),new Error}))),Promise.all(f).then((function(){c()})).catch((function(){r("error",Object(v.__)("There was a problem updating your business details","woocommerce-admin"))}));case 9:case"end":return e.stop()}}),e,this)}))),function(e){return t.apply(this,arguments)})},{key:"validate",value:function(e){var t={};return e.product_count.length||(t.product_count=Object(v.__)("This field is required","woocommerce-admin")),e.selling_venues.length||(t.selling_venues=Object(v.__)("This field is required","woocommerce-admin")),!e.other_platform.length&&["other","brick-mortar-other"].includes(e.selling_venues)&&(t.other_platform=Object(v.__)("This field is required","woocommerce-admin")),!e.other_platform_name&&"other"===e.other_platform&&["other","brick-mortar-other"].includes(e.selling_venues)&&(t.other_platform_name=Object(v.__)("This field is required","woocommerce-admin")),!e.revenue.length&&["other","brick-mortar","brick-mortar-other","other-woocommerce"].includes(e.selling_venues)&&(t.revenue=Object(v.__)("This field is required","woocommerce-admin")),0===Object.keys(t).length&&this.setState({isValid:!0}),t}},{key:"trackBusinessDetailsStep",value:function(e){var t=e.other_platform,n=e.other_platform_name,r=e.product_count,c=e.selling_venues,o=e.revenue,i=this.context.getCurrencyConfig;Object(M.recordEvent)("storeprofiler_store_business_details_continue_variant",{already_selling:c,currency:i().code,product_number:r,revenue:o,used_platform:t,used_platform_name:n})}},{key:"renderBusinessDetailsStep",value:function(){var e=this,t=this.props,n=t.goToNextStep,r=t.isInstallingActivating,c=t.hasInstallActivateError,o=this.context.getCurrencyConfig,i=ie(o());return Object(g.createElement)(H.Form,{initialValues:this.state.savedValues||this.props.initialValues,onSubmitCallback:function(t){e.setState({savedValues:t,currentTab:"free-features"}),e.trackBusinessDetailsStep(t)},onChangeCallback:function(t,n,r){e.setState({savedValues:n,isValid:r})},validate:this.validate},(function(t){var a=t.getInputProps,l=t.handleSubmit,s=t.values,m=t.isValidForm;return Object(g.createElement)(g.Fragment,null,Object(g.createElement)("div",{className:"woocommerce-profile-wizard__step-header"},Object(g.createElement)(T.__experimentalText,{variant:"title.small",as:"h2"},Object(v.__)("Tell us about your business","woocommerce-admin")),Object(g.createElement)(T.__experimentalText,{variant:"body"},Object(v.__)("We'd love to know if you are just getting started or you already have a business in place.","woocommerce-admin"))),Object(g.createElement)(T.Card,null,Object(g.createElement)(T.CardBody,null,Object(g.createElement)(H.SelectControl,Y()({excludeSelectedOptions:!1,label:Object(v.__)("How many products do you plan to display?","woocommerce-admin"),options:i,required:!0},a("product_count"))),Object(g.createElement)(H.SelectControl,Y()({excludeSelectedOptions:!1,label:Object(v.__)("Currently selling elsewhere?","woocommerce-admin"),options:K,required:!0},a("selling_venues"))),["other","brick-mortar","brick-mortar-other","other-woocommerce"].includes(s.selling_venues)&&Object(g.createElement)(H.SelectControl,Y()({excludeSelectedOptions:!1,label:Object(v.__)("What's your current annual revenue?","woocommerce-admin"),options:me(o(),e.props.settings.woocommerce_default_country),required:!0},a("revenue"))),["other","brick-mortar-other"].includes(s.selling_venues)&&Object(g.createElement)(g.Fragment,null,Object(g.createElement)("div",{className:"business-competitors"},Object(g.createElement)(H.SelectControl,Y()({excludeSelectedOptions:!1,label:Object(v.__)("Which platform is the store using?","woocommerce-admin"),options:X,required:!0},a("other_platform"))),"other"===s.other_platform&&Object(g.createElement)(H.TextControl,Y()({label:Object(v.__)("What is the platform name?","woocommerce-admin"),required:!0},a("other_platform_name")))))),Object(g.createElement)(T.CardFooter,{isBorderless:!0,justify:"center"},Object(g.createElement)(T.Button,{isPrimary:!0,onClick:l,disabled:!m,isBusy:r},c?Object(v.__)("Retry","woocommerce-admin"):Object(v.__)("Continue","woocommerce-admin")),c&&Object(g.createElement)(T.Button,{onClick:function(){return n()}},Object(v.__)("Continue without installing","woocommerce-admin")))))}))}},{key:"renderFreeFeaturesStep",value:function(){var e=this.props,t=e.isInstallingActivating,n=e.settings,r=e.profileItems,c=n.woocommerce_default_country?n.woocommerce_default_country:null;return Object(g.createElement)(g.Fragment,null,Object(g.createElement)("div",{className:"woocommerce-profile-wizard__step-header"},Object(g.createElement)(T.__experimentalText,{variant:"title.small",as:"h2"},Object(v.__)("Included business features","woocommerce-admin")),Object(g.createElement)(T.__experimentalText,{variant:"body"},Object(v.__)("We recommend enhancing your store with these free extensions","woocommerce-admin")),Object(g.createElement)(T.__experimentalText,{variant:"body"},Object(v.__)("No commitment required - you can remove them at any time.","woocommerce-admin"))),Object(g.createElement)(Se,{isInstallingActivating:t,onSubmit:this.onContinue,country:c,industry:r.industry,productTypes:r.product_types}))}},{key:"render",value:function(){var e=this,t=this.props.initialValues;return Object(g.createElement)(T.TabPanel,{activeClass:"is-active",initialTabName:"current-tab",onSelect:function(n){e.state.currentTab!==n&&e.setState({currentTab:n,savedValues:t})},tabs:[{name:"business-details"===this.state.currentTab?"current-tab":"business-details",id:"business-details",title:Object(v.__)("Business details","woocommerce-admin")},{name:"free-features"===this.state.currentTab?"current-tab":"free-features",id:"free-features",title:Object(v.__)("Free features","woocommerce-admin"),className:this.state.isValid?"":"is-disabled"}]},(function(t){return Object(g.createElement)(g.Fragment,null,e.getTab(t.id))}))}},{key:"getTab",value:function(e){return"business-details"===e?this.renderBusinessDetailsStep():this.renderFreeFeaturesStep()}}]),r}(g.Component);Ne.contextType=$.a;var Ze=Object(y.compose)(Object(k.withSelect)((function(e){var t=e(S.SETTINGS_STORE_NAME),n=t.getSettings,r=t.getSettingsError,c=e(S.ONBOARDING_STORE_NAME),o=c.getProfileItems,i=c.getOnboardingError,a=e(S.PLUGINS_STORE_NAME),l=a.getPluginsError,s=a.isPluginsRequesting,m=n("general").general,u=void 0===m?{}:m;return{hasInstallActivateError:l("installPlugins")||l("activatePlugins"),isError:Boolean(i("updateProfileItems")),profileItems:o(),isSettingsError:Boolean(r("general")),settings:u,isInstallingActivating:s("installPlugins")||s("activatePlugins")||s("getJetpackConnectUrl")}})),Object(k.withDispatch)((function(e){var t=e(S.ONBOARDING_STORE_NAME).updateProfileItems,n=e(S.PLUGINS_STORE_NAME).installAndActivatePlugins;return{createNotice:e("core/notices").createNotice,installAndActivatePlugins:n,updateProfileItems:t}})))(Ne),Te=(n(665),["US","BR","FR","ID","GB","DE","VN","CA","PL","MY","AU","NG","GR","BE","PT","DK","SE","JP","IE","NZ"]),Ve=function(e){return Te.includes(Object(ne.b)(e))},xe=function(e){var t=Object(k.useSelect)((function(e){return{isLoading:!e(S.ONBOARDING_STORE_NAME).hasFinishedResolution("getProfileItems")||!e(S.SETTINGS_STORE_NAME).hasFinishedResolution("getSettings",["general"]),profileItems:e(S.ONBOARDING_STORE_NAME).getProfileItems(),settings:e(S.SETTINGS_STORE_NAME).getSettings("general")||{}}})),n=t.profileItems,r=t.settings,c=t.isLoading,o=r.general?r.general.woocommerce_default_country:null,i=Ve(o);if(c)return Object(g.createElement)("div",{className:"woocommerce-admin__business-details__spinner"},Object(g.createElement)(H.Spinner,null));if(i){var a={other_platform:n.other_platform||"",other_platform_name:n.other_platform_name||"",product_count:n.product_count||"",selling_venues:n.selling_venues||"",revenue:n.revenue||""};return Object(g.createElement)(Ze,Y()({},e,{initialValues:a}))}return Object(g.createElement)(pe,e)};function He(e){var t=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){}))),!0}catch(e){return!1}}();return function(){var n,r=j()(e);if(t){var c=j()(this).constructor;n=Reflect.construct(r,arguments,c)}else n=r.apply(this,arguments);return O()(this,n)}}var Ie=Object(P.g)("onboarding",{}),Re=function(e){f()(c,e);var t,n,r=He(c);function c(e){var t;m()(this,c);var n=Object(w.get)(e,"profileItems",{}).industry||[],o=e.locationSettings;if("US"!==Object(ne.c)(o.woocommerce_default_country)){var i="cbd-other-hemp-derived-products";n=n.filter((function(e){return i!==e&&i!==e.slug}))}return(t=r.call(this)).state={error:null,selected:n,textInputListContent:{}},t.onContinue=t.onContinue.bind(p()(t)),t.onIndustryChange=t.onIndustryChange.bind(p()(t)),t.onDetailChange=t.onDetailChange.bind(p()(t)),t}return C()(c,[{key:"onContinue",value:(n=l()(i.a.mark((function e(){var t,n,r,c,o,a,l;return i.a.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.next=2,this.validateField();case 2:if(!this.state.error){e.next=4;break}return e.abrupt("return");case 4:return t=this.props,n=t.createNotice,r=t.goToNextStep,c=t.isError,o=t.updateProfileItems,a=this.state.selected.map((function(e){return e.slug})),l=this.state.selected.map((function(e){return e.detail})).filter((function(e){return e})).join(","),Object(M.recordEvent)("storeprofiler_store_industry_continue",{store_industry:a,industries_with_detail:l}),e.next=10,o({industry:this.state.selected});case 10:c?n("error",Object(v.__)("There was a problem updating your industries","woocommerce-admin")):r();case 11:case"end":return e.stop()}}),e,this)}))),function(){return n.apply(this,arguments)})},{key:"validateField",value:(t=l()(i.a.mark((function e(){var t;return i.a.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:t=this.state.selected.length?null:Object(v.__)("Please select at least one industry","woocommerce-admin"),this.setState({error:t});case 2:case"end":return e.stop()}}),e,this)}))),function(){return t.apply(this,arguments)})},{key:"onIndustryChange",value:function(e){var t=this;this.setState((function(t){var n=t.selected,r=Object(w.find)(n,{slug:e});if(r){var c=t.textInputListContent;return c[e]=r.detail,{selected:Object(w.filter)(t.selected,(function(t){return t.slug!==e}))||[],textInputListContent:c}}return n.push({slug:e,detail:t.textInputListContent[e]}),{selected:n}}),(function(){return t.validateField()}))}},{key:"onDetailChange",value:function(e,t){this.setState((function(n){var r=n.selected,c=n.textInputListContent;return r[Object(w.findIndex)(r,{slug:t})].detail=e,c[t]=e,{selected:r,textInputListContent:c}}))}},{key:"renderIndustryLabel",value:function(e,t,n){var r=this,c=this.state.textInputListContent;return Object(g.createElement)(g.Fragment,null,t.label,t.use_description&&n&&Object(g.createElement)(H.TextControl,{key:"text-control-".concat(e),label:t.description_label,value:n.detail||c[e]||"",onChange:function(t){return r.onDetailChange(t,e)},className:"woocommerce-profile-wizard__text"}))}},{key:"render",value:function(){var e=this,t=Ie.industries,n=this.state,r=n.error,c=n.selected,o=this.props,i=o.locationSettings,a=o.isProfileItemsRequesting,l=Object(ne.c)(i.woocommerce_default_country),s=Object.keys(t),m="US"===l?s:s.filter((function(e){return"cbd-other-hemp-derived-products"!==e}));return Object(g.createElement)(g.Fragment,null,Object(g.createElement)("div",{className:"woocommerce-profile-wizard__step-header"},Object(g.createElement)(I.e,{variant:"title.small",as:"h2"},Object(v.__)("In which industry does the store operate?","woocommerce-admin")),Object(g.createElement)(I.e,{variant:"body"},Object(v.__)("Choose any that apply","woocommerce-admin"))),Object(g.createElement)(T.Card,null,Object(g.createElement)(T.CardBody,{size:null},Object(g.createElement)("div",{className:"woocommerce-profile-wizard__checkbox-group"},m.map((function(n){var r=Object(w.find)(c,{slug:n});return Object(g.createElement)(T.CheckboxControl,{key:"checkbox-control-".concat(n),label:e.renderIndustryLabel(n,t[n],r),onChange:function(){return e.onIndustryChange(n)},checked:r||!1,className:"woocommerce-profile-wizard__checkbox"})})),r&&Object(g.createElement)("span",{className:"woocommerce-profile-wizard__error"},r))),Object(g.createElement)(T.CardFooter,{isBorderless:!0,justify:"center"},Object(g.createElement)(T.Button,{isPrimary:!0,onClick:this.onContinue,isBusy:a,disabled:!c.length||a},Object(v.__)("Continue","woocommerce-admin")))))}}]),c}(g.Component),Be=Object(y.compose)(Object(k.withSelect)((function(e){var t=e(S.ONBOARDING_STORE_NAME),n=t.getProfileItems,r=t.getOnboardingError,c=t.isOnboardingRequesting,o=(0,e(S.SETTINGS_STORE_NAME).getSettings)("general").general,i=void 0===o?{}:o;return{isError:Boolean(r("updateProfileItems")),profileItems:n(),locationSettings:i,isProfileItemsRequesting:c("updateProfileItems")}})),Object(k.withDispatch)((function(e){var t=e(S.ONBOARDING_STORE_NAME).updateProfileItems;return{createNotice:e("core/notices").createNotice,updateProfileItems:t}})))(Re),Fe=(n(408),n(703));function Ae(e){var t=e.annualPrice,n=e.description,r=e.isMonthlyPricing,c=e.label,o=e.moreUrl,i=e.slug,a=Object(g.useState)(""),l=Z()(a,2),s=l[0],m=l[1];if(!t)return c;var u=Object(v.__)("This product type requires a paid extension.\nWe'll add this to a cart so that\nyou can purchase and install it later.","woocommerce-admin");return Object(g.createElement)(g.Fragment,null,Object(g.createElement)("span",{className:"woocommerce-product-wizard__product-types-label"},c),Object(g.createElement)(T.Button,{isTertiary:!0,label:Object(v.__)("Learn more about recommended free business features","woocommerce-admin"),onClick:function(){m(!0)}},Object(g.createElement)(be.a,{icon:Fe.a})),s&&Object(g.createElement)(T.Popover,{focusOnMount:"container",position:"top center",onClose:function(){return m(!1)}},x()({mixedString:n+(o?" {{moreLink/}}":""),components:{moreLink:o?Object(g.createElement)(H.Link,{href:o,target:"_blank",type:"external",onClick:function(){return Object(M.recordEvent)("storeprofiler_store_product_type_learn_more",{product_type:i})}},Object(v.__)("Learn more","woocommerce-admin")):""}})),Object(g.createElement)(T.Tooltip,{text:u,position:"bottom center"},Object(g.createElement)(H.Pill,null,Object(g.createElement)("span",{className:"screen-reader-text"},u),r?Object(v.sprintf)(Object(v.__)("$%f per month","woocommerce-admin"),(t/12).toFixed(2)):Object(v.sprintf)(Object(v.__)("$%f per year","woocommerce-admin"),t))))}n(666);function De(e){var t=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){}))),!0}catch(e){return!1}}();return function(){var n,r=j()(e);if(t){var c=j()(this).constructor;n=Reflect.construct(r,arguments,c)}else n=r.apply(this,arguments);return O()(this,n)}}var Ue=function(e){f()(n,e);var t=De(n);function n(e){var r;m()(this,n),r=t.call(this);var c=Object(w.get)(e,"profileItems",{}),o=Object(P.g)("onboarding",{}).productTypes,i=void 0===o?{}:o,a=Object.keys(i).filter((function(e){return!!i[e].default}));return r.state={error:null,isMonthlyPricing:!0,selected:c.product_types||a},r.onContinue=r.onContinue.bind(p()(r)),r.onChange=r.onChange.bind(p()(r)),r}return C()(n,[{key:"validateField",value:function(){var e=this.state.selected.length?null:Object(v.__)("Please select at least one product type","woocommerce-admin");return this.setState({error:e}),!e}},{key:"onContinue",value:function(){if(this.validateField()){var e=this.props,t=e.createNotice,n=e.goToNextStep,r=e.updateProfileItems;Object(M.recordEvent)("storeprofiler_store_product_type_continue",{product_type:this.state.selected}),r({product_types:this.state.selected}).then((function(){return n()})).catch((function(){return t("error",Object(v.__)("There was a problem updating your product types","woocommerce-admin"))}))}}},{key:"onChange",value:function(e){var t=this;this.setState((function(t){if(Object(w.includes)(t.selected,e))return{selected:Object(w.filter)(t.selected,(function(t){return t!==e}))||[]};var n=t.selected;return n.push(e),{selected:n}}),(function(){return t.validateField()}))}},{key:"render",value:function(){var e=this,t=Object(P.g)("onboarding",{}).productTypes,n=void 0===t?{}:t,r=this.state,c=r.error,o=r.isMonthlyPricing,i=r.selected,a=this.props.isProfileItemsRequesting;return Object(g.createElement)("div",{className:"woocommerce-profile-wizard__product-types"},Object(g.createElement)("div",{className:"woocommerce-profile-wizard__step-header"},Object(g.createElement)(I.e,{variant:"title.small",as:"h2"},Object(v.__)("What type of products will be listed?","woocommerce-admin")),Object(g.createElement)(I.e,{variant:"body"},Object(v.__)("Choose any that apply","woocommerce-admin"))),Object(g.createElement)(T.Card,null,Object(g.createElement)(T.CardBody,{size:null},Object.keys(n).map((function(t){return Object(g.createElement)(T.CheckboxControl,{key:t,label:Object(g.createElement)(Ae,{description:n[t].description,label:n[t].label,annualPrice:n[t].yearly_price,isMonthlyPricing:o,moreUrl:n[t].more_url,slug:t}),onChange:function(){return e.onChange(t)},checked:i.includes(t),className:"woocommerce-profile-wizard__checkbox"})})),c&&Object(g.createElement)("span",{className:"woocommerce-profile-wizard__error"},c)),Object(g.createElement)(T.CardFooter,{isBorderless:!0,justify:"center"},Object(g.createElement)(T.Button,{isPrimary:!0,onClick:this.onContinue,isBusy:a,disabled:!i.length||a},Object(v.__)("Continue","woocommerce-admin")))),Object(g.createElement)("div",{className:"woocommerce-profile-wizard__card-help-footnote"},Object(g.createElement)("div",{className:"woocommerce-profile-wizard__product-types-pricing-toggle woocommerce-profile-wizard__checkbox"},Object(g.createElement)("label",{htmlFor:"woocommerce-product-types__pricing-toggle"},Object(g.createElement)(I.e,{variant:"body"},Object(v.__)("Display monthly prices","woocommerce-admin")),Object(g.createElement)(T.FormToggle,{id:"woocommerce-product-types__pricing-toggle",checked:o,onChange:function(){return e.setState({isMonthlyPricing:!o})}}))),Object(g.createElement)(I.e,{variant:"caption"},Object(v.__)("Billing is annual. All purchases are covered by our 30 day money back guarantee and include access to support and updates. Extensions will be added to a cart for you to purchase later.","woocommerce-admin"))))}}]),n}(g.Component),ze=Object(y.compose)(Object(k.withSelect)((function(e){var t=e(S.ONBOARDING_STORE_NAME),n=t.getProfileItems,r=t.getOnboardingError,c=t.isOnboardingRequesting;return{isError:Boolean(r("updateProfileItems")),profileItems:n(),isProfileItemsRequesting:c("updateProfileItems")}})),Object(k.withDispatch)((function(e){var t=e(S.ONBOARDING_STORE_NAME).updateProfileItems;return{createNotice:e("core/notices").createNotice,updateProfileItems:t}})))(Ue);function qe(e){var t=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){}))),!0}catch(e){return!1}}();return function(){var n,r=j()(e);if(t){var c=j()(this).constructor;n=Reflect.construct(r,arguments,c)}else n=r.apply(this,arguments);return O()(this,n)}}var Ge=function(e){f()(n,e);var t=qe(n);function n(){return m()(this,n),t.apply(this,arguments)}return C()(n,[{key:"renderStepper",value:function(){var e=this.props,t=e.currentStep,n=e.steps,r=Object(w.filter)(n,(function(e){return!!e.label})),c=r.findIndex((function(e){return e.key===t}));return r.map((function(e,t){var n=r[t-1];return t<c&&(e.isComplete=!0),n&&!n.isComplete||(e.onClick=function(e){return Object(L.updateQueryString)({step:e})}),e})),Object(g.createElement)(H.Stepper,{steps:r,currentStep:t})}},{key:"render",value:function(){var e=this,t=this.props.steps.find((function(t){return t.key===e.props.currentStep}));return t&&t.label?Object(g.createElement)("div",{className:"woocommerce-profile-wizard__header"},this.renderStepper()):null}}]),n}(g.Component),We=n(620),Je=n(610);n(667);function Ye(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function $e(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?Ye(Object(n),!0).forEach((function(t){c()(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):Ye(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}function Qe(e){var t=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){}))),!0}catch(e){return!1}}();return function(){var n,r=j()(e);if(t){var c=j()(this).constructor;n=Reflect.construct(r,arguments,c)}else n=r.apply(this,arguments);return O()(this,n)}}var Ke=T.FlexItem||function(e){var t=e.children,n={display:"flex","justify-content":e.align?"center":"flex-start"};return Object(g.createElement)("div",{style:n},t)},Xe=function(e){f()(r,e);var t,n=Qe(r);function r(e){var t;m()(this,r),t=n.call(this,e);var c=e.profileItems,o=e.settings;t.state={showUsageModal:!1,skipping:!1,isStoreDetailsPopoverVisible:!1,isSkipSetupPopoverVisible:!1};var i=o.woocommerce_store_address&&o.woocommerce_default_country||"";return t.initialValues={addressLine1:o.woocommerce_store_address||"",addressLine2:o.woocommerce_store_address_2||"",city:o.woocommerce_store_city||"",countryState:i,postCode:o.woocommerce_store_postcode||"",isClient:c.setup_client||!1},t.onContinue=t.onContinue.bind(p()(t)),t.onSubmit=t.onSubmit.bind(p()(t)),t}return C()(r,[{key:"deriveCurrencySettings",value:function(e){if(!e)return null;var t=this.context,n=Object(ne.b)(e),r=Object(P.g)("onboarding",{}),c=r.currencySymbols,o=void 0===c?{}:c,i=r.localeInfo,a=void 0===i?{}:i;return t.getDataForCountry(n,a,o)}},{key:"onSubmit",value:function(){this.setState({showUsageModal:!0,skipping:!1})}},{key:"onContinue",value:(t=l()(i.a.mark((function e(t){var n,r,c,o,a,l,s,m,u,C,d,p,b;return i.a.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return n=this.props,r=n.createNotice,c=n.goToNextStep,o=n.isSettingsError,a=n.updateProfileItems,l=n.isProfileItemsError,s=n.updateAndPersistSettingsForGroup,m=n.profileItems,u=n.settings,C=this.deriveCurrencySettings(t.countryState),this.context.setCurrency(C),Object(M.recordEvent)("storeprofiler_store_details_continue",{store_country:Object(ne.b)(t.countryState),derived_currency:C.currency_code,setup_client:t.isClient}),e.next=7,s("general",{general:$e($e({},u),{},{woocommerce_store_address:t.addressLine1,woocommerce_store_address_2:t.addressLine2,woocommerce_default_country:t.countryState,woocommerce_store_city:t.city,woocommerce_store_postcode:t.postCode,woocommerce_currency:C.code,woocommerce_currency_pos:C.symbolPosition,woocommerce_price_thousand_sep:C.thousandSeparator,woocommerce_price_decimal_sep:C.decimalSeparator,woocommerce_price_num_decimals:C.precision})});case 7:return d={setup_client:t.isClient},"US"!==Object(ne.c)(t.countryState)&&m.industry&&m.industry.length&&(p="cbd-other-hemp-derived-products",b=m.industry.filter((function(e){return p!==e&&p!==e.slug})),d.industry=b),e.next=12,a(d);case 12:o||l?r("error",Object(v.__)("There was a problem saving your store details","woocommerce-admin")):c();case 13:case"end":return e.stop()}}),e,this)}))),function(e){return t.apply(this,arguments)})},{key:"render",value:function(){var e=this,t=this.state,n=t.showUsageModal,r=t.skipping,c=t.isStoreDetailsPopoverVisible,o=t.isSkipSetupPopoverVisible,i=this.props,a=i.skipProfiler,l=i.isUpdatingProfileItems,s=Object(v.__)("Manual setup is only recommended for\n experienced WooCommerce users or developers.","woocommerce-admin"),m=Object(v.__)("Your store address will help us configure currency\n options and shipping rules automatically.\n This information will not be publicly visible and can\n easily be changed later.","woocommerce-admin");return Object(g.createElement)("div",{className:"woocommerce-profile-wizard__store-details"},Object(g.createElement)("div",{className:"woocommerce-profile-wizard__step-header"},Object(g.createElement)(I.e,{variant:"title.small",as:"h2"},Object(v.__)("Welcome to WooCommerce","woocommerce-admin")),Object(g.createElement)(I.e,{variant:"body"},Object(v.__)("Tell us about your store and we'll get you set up in no time","woocommerce-admin"),Object(g.createElement)(T.Button,{isTertiary:!0,label:Object(v.__)("Learn more about store details","woocommerce-admin"),onClick:function(){return e.setState({isStoreDetailsPopoverVisible:!0})}},Object(g.createElement)(be.a,{icon:Fe.a}))),c&&Object(g.createElement)(T.Popover,{focusOnMount:"container",position:"top center",onClose:function(){return e.setState({isStoreDetailsPopoverVisible:!1})}},m)),Object(g.createElement)(H.Form,{initialValues:this.initialValues,onSubmitCallback:this.onSubmit,validate:We.b},(function(t){var c=t.getInputProps,o=t.handleSubmit,i=t.values,s=t.isValidForm,m=t.setValue;return Object(g.createElement)(T.Card,null,n&&Object(g.createElement)(Je.a,{onContinue:function(){r?a():e.onContinue(i)},onClose:function(){return e.setState({showUsageModal:!1,skipping:!1})}}),Object(g.createElement)(T.CardBody,null,Object(g.createElement)(We.a,{getInputProps:c,setValue:m})),Object(g.createElement)(T.CardFooter,null,Object(g.createElement)(Ke,null,Object(g.createElement)("div",{className:"woocommerce-profile-wizard__client"},Object(g.createElement)(T.CheckboxControl,Y()({label:Object(v.__)("I'm setting up a store for a client","woocommerce-admin")},c("isClient")))))),Object(g.createElement)(T.CardFooter,{justify:"center"},Object(g.createElement)(T.Button,{isPrimary:!0,onClick:o,isBusy:l,disabled:!s||l},Object(v.__)("Continue","woocommerce-admin"))))})),Object(g.createElement)("div",{className:"woocommerce-profile-wizard__footer"},Object(g.createElement)(T.Button,{isLink:!0,className:"woocommerce-profile-wizard__footer-link",onClick:function(){return e.setState({showUsageModal:!0,skipping:!0}),!1}},Object(v.__)("Skip setup store details","woocommerce-admin")),Object(g.createElement)(T.Button,{isTertiary:!0,label:s,onClick:function(){return e.setState({isSkipSetupPopoverVisible:!0})}},Object(g.createElement)(be.a,{icon:Fe.a})),o&&Object(g.createElement)(T.Popover,{focusOnMount:"container",position:"top center",onClose:function(){return e.setState({isSkipSetupPopoverVisible:!1})}},s)))}}]),r}(g.Component);Xe.contextType=$.a;var et=Object(y.compose)(Object(k.withSelect)((function(e){var t=e(S.SETTINGS_STORE_NAME),n=t.getSettings,r=t.getSettingsError,c=t.isUpdateSettingsRequesting,o=e(S.ONBOARDING_STORE_NAME),i=o.getOnboardingError,a=o.getProfileItems,l=o.isOnboardingRequesting,s=a(),m=Boolean(i("updateProfileItems")),u=n("general").general,C=void 0===u?{}:u;return{isProfileItemsError:m,isSettingsError:Boolean(r("general")),profileItems:s,isUpdatingProfileItems:l("updateProfileItems")||c("general"),settings:C}})),Object(k.withDispatch)((function(e){return{createNotice:e("core/notices").createNotice,updateProfileItems:e(S.ONBOARDING_STORE_NAME).updateProfileItems,updateAndPersistSettingsForGroup:e(S.SETTINGS_STORE_NAME).updateAndPersistSettingsForGroup}})))(Xe),tt=n(44),nt=n.n(tt),rt=(n(178),n(135),n(66),n(95)),ct=n.n(rt),ot=n(132),it=n(668),at=n.n(it),lt=(n(669),n(15)),st=n.n(lt),mt=n(670),ut=n.n(mt),Ct=n(1),dt=n.n(Ct);function pt(e){var t=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){}))),!0}catch(e){return!1}}();return function(){var n,r=j()(e);if(t){var c=j()(this).constructor;n=Reflect.construct(r,arguments,c)}else n=r.apply(this,arguments);return O()(this,n)}}var bt=function(e){f()(n,e);var t=pt(n);function n(){var e;return m()(this,n),(e=t.call(this)).state={isUploading:!1},e.handleFilesUpload=e.handleFilesUpload.bind(p()(e)),e.handleFilesDrop=e.handleFilesDrop.bind(p()(e)),e}return C()(n,[{key:"handleFilesDrop",value:function(e){var t=e[0];this.uploadTheme(t)}},{key:"handleFilesUpload",value:function(e){var t=e.target.files[0];this.uploadTheme(t)}},{key:"uploadTheme",value:function(e){var t=this,n=this.props,r=n.createNotice,c=n.onUploadComplete;this.setState({isUploading:!0});var o=new window.FormData;return o.append("pluginzip",e),ct()({path:"/wc-admin/themes",method:"POST",body:o}).then((function(e){c(e),t.setState({isUploading:!1}),r(e.status,e.message)})).catch((function(e){t.setState({isUploading:!1}),e&&e.message&&r("error",e.message)}))}},{key:"render",value:function(){var e=this.props.className,t=this.state.isUploading,n=st()("woocommerce-theme-uploader",e,{"is-uploading":t});return Object(g.createElement)(T.Card,{className:n},Object(g.createElement)(T.DropZoneProvider,null,t?Object(g.createElement)(g.Fragment,null,Object(g.createElement)(H.Spinner,null),Object(g.createElement)(H.H,{className:"woocommerce-theme-uploader__title"},Object(v.__)("Uploading theme","woocommerce-admin")),Object(g.createElement)("p",null,Object(v.__)("Your theme is being uploaded","woocommerce-admin"))):Object(g.createElement)(g.Fragment,null,Object(g.createElement)(T.FormFileUpload,{accept:".zip",onChange:this.handleFilesUpload},Object(g.createElement)(ut.a,null),Object(g.createElement)(H.H,{className:"woocommerce-theme-uploader__title"},Object(v.__)("Upload a theme","woocommerce-admin")),Object(g.createElement)("p",null,Object(v.__)("Drop a theme zip file here to upload","woocommerce-admin"))),Object(g.createElement)(T.DropZone,{label:Object(v.__)("Drop your theme zip file here","woocommerce-admin"),onFilesDrop:this.handleFilesDrop}))))}}]),n}(g.Component);bt.propTypes={className:dt.a.string,onUploadComplete:dt.a.func},bt.defaultProps={onUploadComplete:w.noop};var ft=Object(y.compose)(Object(k.withDispatch)((function(e){return{createNotice:e("core/notices").createNotice}})))(bt),ht=n(595),Ot=n(671),_t=n.n(Ot),jt=n(672),gt=n.n(jt),vt=n(673),Et=n.n(vt);function yt(e){var t=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){}))),!0}catch(e){return!1}}();return function(){var n,r=j()(e);if(t){var c=j()(this).constructor;n=Reflect.construct(r,arguments,c)}else n=r.apply(this,arguments);return O()(this,n)}}var wt=[{key:"mobile",icon:_t.a},{key:"tablet",icon:gt.a},{key:"desktop",icon:Et.a}],kt=function(e){f()(n,e);var t=yt(n);function n(){var e;return m()(this,n),(e=t.apply(this,arguments)).state={device:"desktop"},e.handleDeviceClick=e.handleDeviceClick.bind(p()(e)),e}return C()(n,[{key:"handleDeviceClick",value:function(e){var t=this.props.theme;Object(M.recordEvent)("storeprofiler_store_theme_demo_device",{device:e,theme:t.slug}),this.setState({device:e})}},{key:"render",value:function(){var e=this,t=this.props,n=t.isBusy,r=t.onChoose,c=t.onClose,o=t.theme,i=o.demo_url,a=o.slug,l=o.title,s=this.state.device;return Object(g.createElement)("div",{className:"woocommerce-theme-preview"},Object(g.createElement)("div",{className:"woocommerce-theme-preview__toolbar"},Object(g.createElement)(T.Button,{className:"woocommerce-theme-preview__close",onClick:c},Object(g.createElement)(be.a,{icon:ht.a})),Object(g.createElement)("div",{className:"woocommerce-theme-preview__theme-name"},x()({mixedString:Object(v.sprintf)(Object(v.__)("{{strong}}%s{{/strong}} developed by WooCommerce","woocommerce-admin"),l),components:{strong:Object(g.createElement)("strong",null)}})),Object(g.createElement)("div",{className:"woocommerce-theme-preview__devices"},wt.map((function(t){var n=t.icon;return Object(g.createElement)(T.Button,{key:t.key,className:st()("woocommerce-theme-preview__device",{"is-selected":t.key===s}),onClick:function(){return e.handleDeviceClick(t.key)}},Object(g.createElement)(n,null))}))),Object(g.createElement)(T.Button,{isPrimary:!0,onClick:function(){return r(a,"preview")},isBusy:n},Object(v.__)("Choose","woocommerce-admin"))),Object(g.createElement)(H.WebPreview,{src:i,title:l,className:"is-".concat(s)}))}}]),n}(g.Component);function Lt(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function St(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?Lt(Object(n),!0).forEach((function(t){c()(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):Lt(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}function Mt(e){var t=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){}))),!0}catch(e){return!1}}();return function(){var n,r=j()(e);if(t){var c=j()(this).constructor;n=Reflect.construct(r,arguments,c)}else n=r.apply(this,arguments);return O()(this,n)}}var Pt=function(e){f()(n,e);var t=Mt(n);function n(){var e;return m()(this,n),(e=t.apply(this,arguments)).state={activeTab:"all",chosen:null,demo:null,uploadedThemes:[]},e.handleUploadComplete=e.handleUploadComplete.bind(p()(e)),e.onChoose=e.onChoose.bind(p()(e)),e.onClosePreview=e.onClosePreview.bind(p()(e)),e.onSelectTab=e.onSelectTab.bind(p()(e)),e.openDemo=e.openDemo.bind(p()(e)),e.skipStep=e.skipStep.bind(p()(e)),e}return C()(n,[{key:"componentDidUpdate",value:function(e){var t=this.props,n=t.isError,r=t.isUpdatingProfileItems,c=t.createNotice,o=this.state.chosen,i=!r&&e.isUpdatingProfileItems&&!n&&o,a=!r&&e.isRequesting&&n;i&&(this.setState({chosen:null}),this.props.goToNextStep()),a&&(this.setState({chosen:null}),c("error",Object(v.__)("There was a problem selecting your store theme","woocommerce-admin")))}},{key:"onChoose",value:function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"",n=this.props.updateProfileItems,r=e.is_installed,c=e.price,o=e.slug,i=Object(P.g)("onboarding",{}),a=i.activeTheme,l=void 0===a?"":a;this.setState({chosen:o}),Object(M.recordEvent)("storeprofiler_store_theme_choose",{theme:o,location:t}),o!==l&&Object(ne.d)(c)<=0?r?this.activateTheme(o):this.installTheme(o):n({theme:o})}},{key:"installTheme",value:function(e){var t=this,n=this.props.createNotice;ct()({path:"/wc-admin/onboarding/themes/install?theme="+e,method:"POST"}).then((function(r){n("success",Object(v.sprintf)(Object(v.__)("%s was installed on your site","woocommerce-admin"),r.name)),t.activateTheme(e)})).catch((function(e){t.setState({chosen:null}),n("error",e.message)}))}},{key:"activateTheme",value:function(e){var t=this,n=this.props,r=n.createNotice,c=n.updateProfileItems;ct()({path:"/wc-admin/onboarding/themes/activate?theme="+e,method:"POST"}).then((function(t){r("success",Object(v.sprintf)(Object(v.__)("%s was activated on your site","woocommerce-admin"),t.name)),Object(P.h)("onboarding",St(St({},Object(P.g)("onboarding",{})),{},{activeTheme:t.slug})),c({theme:e})})).catch((function(e){t.setState({chosen:null}),r("error",e.message)}))}},{key:"onClosePreview",value:function(){var e=this.state.demo;Object(M.recordEvent)("storeprofiler_store_theme_demo_close",{theme:e.slug}),document.body.classList.remove("woocommerce-theme-preview-active"),this.setState({demo:null})}},{key:"openDemo",value:function(e){Object(M.recordEvent)("storeprofiler_store_theme_live_demo",{theme:e.slug}),document.body.classList.add("woocommerce-theme-preview-active"),this.setState({demo:e})}},{key:"skipStep",value:function(){var e=Object(P.g)("onboarding",{}).activeTheme,t=void 0===e?"":e;Object(M.recordEvent)("storeprofiler_store_theme_skip_step",{activeTheme:t}),this.props.goToNextStep()}},{key:"renderTheme",value:function(e){var t=this,n=e.demo_url,r=e.has_woocommerce_support,c=e.image,o=e.slug,i=e.title,a=this.state.chosen,l=Object(P.g)("onboarding",{}).activeTheme,s=void 0===l?"":l;return Object(g.createElement)(T.Card,{className:"woocommerce-profile-wizard__theme",key:o},Object(g.createElement)(T.CardBody,{size:null},c&&Object(g.createElement)("div",{className:"woocommerce-profile-wizard__theme-image",style:{backgroundImage:"url(".concat(c,")")},role:"img","aria-label":i})),Object(g.createElement)(T.CardBody,{className:"woocommerce-profile-wizard__theme-details"},Object(g.createElement)(H.H,{className:"woocommerce-profile-wizard__theme-name"},i,!r&&Object(g.createElement)(T.Tooltip,{text:Object(v.__)("This theme does not support WooCommerce.","woocommerce-admin")},Object(g.createElement)("span",null,Object(g.createElement)(at.a,{role:"img","aria-hidden":"true",focusable:"false"})))),Object(g.createElement)("p",{className:"woocommerce-profile-wizard__theme-status"},this.getThemeStatus(e))),Object(g.createElement)(T.CardFooter,null,o===s?Object(g.createElement)(T.Button,{isPrimary:!0,onClick:function(){return t.onChoose(e,"card")},isBusy:a===o,disabled:a===o},Object(v.__)("Continue with my active theme","woocommerce-admin")):Object(g.createElement)(T.Button,{isSecondary:!0,onClick:function(){return t.onChoose(e,"card")},isBusy:a===o,disabled:a===o},Object(v.__)("Choose","woocommerce-admin")),n&&Object(g.createElement)(T.Button,{isTertiary:!0,onClick:function(){return t.openDemo(e)}},Object(v.__)("Live demo","woocommerce-admin"))))}},{key:"getThemeStatus",value:function(e){var t=e.is_installed,n=e.price,r=e.slug,c=Object(P.g)("onboarding",{}).activeTheme;return(void 0===c?"":c)===r?Object(v.__)("Currently active theme","woocommerce-admin"):t?Object(v.__)("Installed","woocommerce-admin"):Object(ne.d)(n)<=0?Object(v.__)("Free","woocommerce-admin"):Object(v.sprintf)(Object(v.__)("%s per year","woocommerce-admin"),Object(ot.decodeEntities)(n))}},{key:"doesActiveThemeSupportWooCommerce",value:function(){var e=Object(P.g)("onboarding",{}).activeTheme,t=void 0===e?"":e,n=this.getThemes().find((function(e){return e.slug===t}));return n&&n.has_woocommerce_support}},{key:"onSelectTab",value:function(e){Object(M.recordEvent)("storeprofiler_store_theme_navigate",{navigation:e}),this.setState({activeTab:e})}},{key:"getPriceValue",value:function(e){return Number(Object(ot.decodeEntities)(e).replace(/[^0-9.-]+/g,""))}},{key:"getThemes",value:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:"all",t=this.state.uploadedThemes,n=Object(P.g)("onboarding",{}),r=n.activeTheme,c=void 0===r?"":r,o=n.themes,i=void 0===o?[]:o,a=[].concat(nt()(i.filter((function(e){return e&&(e.has_woocommerce_support||e.slug===c)}))),nt()(t));switch(e){case"paid":return a.filter((function(e){return Object(ne.d)(e.price)>0}));case"free":return a.filter((function(e){return Object(ne.d)(e.price)<=0}));case"all":default:return a}}},{key:"handleUploadComplete",value:function(e){"success"===e.status&&e.theme_data&&(this.setState({uploadedThemes:[].concat(nt()(this.state.uploadedThemes),[e.theme_data])}),Object(M.recordEvent)("storeprofiler_store_theme_upload",{theme:e.theme_data.slug}))}},{key:"render",value:function(){var e=this,t=this.state,n=t.activeTab,r=t.chosen,c=t.demo,o=this.getThemes(n),i=this.doesActiveThemeSupportWooCommerce();return Object(g.createElement)(g.Fragment,null,Object(g.createElement)("div",{className:"woocommerce-profile-wizard__step-header"},Object(g.createElement)(I.e,{variant:"title.small",as:"h2"},Object(v.__)("Choose a theme","woocommerce-admin")),Object(g.createElement)(I.e,{variant:"body"},Object(v.__)("Choose how your store appears to customers. And don't worry, you can always switch themes and edit them later.","woocommerce-admin"))),Object(g.createElement)(T.TabPanel,{className:"woocommerce-profile-wizard__themes-tab-panel",activeClass:"is-active",onSelect:this.onSelectTab,tabs:[{name:"all",title:Object(v.__)("All themes","woocommerce-admin")},{name:"paid",title:Object(v.__)("Paid themes","woocommerce-admin")},{name:"free",title:Object(v.__)("Free themes","woocommerce-admin")}]},(function(){return Object(g.createElement)("div",{className:"woocommerce-profile-wizard__themes"},o&&o.map((function(t){return e.renderTheme(t)})),Object(g.createElement)(ft,{onUploadComplete:e.handleUploadComplete}))})),c&&Object(g.createElement)(kt,{theme:c,onChoose:function(){return e.onChoose(c,"card")},onClose:this.onClosePreview,isBusy:r===c.slug}),i&&Object(g.createElement)("p",{className:"woocommerce-profile-wizard__themes-skip-this-step"},Object(g.createElement)(T.Button,{isLink:!0,className:"woocommerce-profile-wizard__skip",onClick:function(){return e.skipStep()}},Object(v.__)("Skip this step","woocommerce-admin"))))}}]),n}(g.Component),Nt=Object(y.compose)(Object(k.withSelect)((function(e){var t=e(S.ONBOARDING_STORE_NAME),n=t.getProfileItems,r=t.getOnboardingError,c=t.isOnboardingRequesting;return{isError:Boolean(r("updateProfileItems")),isUpdatingProfileItems:c("updateProfileItems"),profileItems:n()}})),Object(k.withDispatch)((function(e){var t=e(S.ONBOARDING_STORE_NAME).updateProfileItems;return{createNotice:e("core/notices").createNotice,updateProfileItems:t}})))(Pt);n(674);function Zt(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function Tt(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?Zt(Object(n),!0).forEach((function(t){c()(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):Zt(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}function Vt(e){var t=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){}))),!0}catch(e){return!1}}();return function(){var n,r=j()(e);if(t){var c=j()(this).constructor;n=Reflect.construct(r,arguments,c)}else n=r.apply(this,arguments);return O()(this,n)}}var xt=function(e){f()(r,e);var t,n=Vt(r);function r(e){var t;return m()(this,r),(t=n.call(this,e)).cachedActivePlugins=e.activePlugins,t.goToNextStep=t.goToNextStep.bind(p()(t)),t}return C()(r,[{key:"componentDidUpdate",value:function(e){var t=e.query.step,n=this.props.query.step,r=this.props,c=r.isError,o=r.isGetProfileItemsRequesting,i=r.createNotice;!o&&e.isRequesting&&c&&i("error",Object(v.__)("There was a problem finishing the setup wizard","woocommerce-admin")),t!==n&&(window.document.documentElement.scrollTop=0,Object(M.recordEvent)("storeprofiler_step_view",{step:this.getCurrentStep().key}))}},{key:"componentDidMount",value:function(){document.body.classList.remove("woocommerce-admin-is-loading"),document.body.classList.add("woocommerce-onboarding"),document.body.classList.add("woocommerce-profile-wizard__body"),document.body.classList.add("woocommerce-admin-full-screen"),document.body.classList.add("is-wp-toolbar-disabled"),Object(M.recordEvent)("storeprofiler_step_view",{step:this.getCurrentStep().key})}},{key:"componentWillUnmount",value:function(){document.body.classList.remove("woocommerce-onboarding"),document.body.classList.remove("woocommerce-profile-wizard__body"),document.body.classList.remove("woocommerce-admin-full-screen"),document.body.classList.remove("is-wp-toolbar-disabled")}},{key:"getSteps",value:function(){var e=this.props,t=e.profileItems,n=e.query,r=e.selectiveBundleInstallSegmentation,c=n.step,o=[];return o.push({key:"store-details",container:et,label:Object(v.__)("Store Details","woocommerce-admin"),isComplete:t.hasOwnProperty("setup_client")&&null!==t.setup_client}),o.push({key:"industry",container:Be,label:Object(v.__)("Industry","woocommerce-admin"),isComplete:t.hasOwnProperty("industry")&&null!==t.industry}),o.push({key:"product-types",container:ze,label:Object(v.__)("Product Types","woocommerce-admin"),isComplete:t.hasOwnProperty("product_types")&&null!==t.product_types}),o.push({key:r?"business-features":"business-details",container:xe,label:Object(v.__)("Business Details","woocommerce-admin"),isComplete:t.hasOwnProperty("product_count")&&null!==t.product_count}),o.push({key:"theme",container:Nt,label:Object(v.__)("Theme","woocommerce-admin"),isComplete:t.hasOwnProperty("theme")&&null!==t.theme}),r||this.cachedActivePlugins.includes("woocommerce-services")&&this.cachedActivePlugins.includes("jetpack")&&"benefits"!==c||o.push({key:"benefits",container:W}),Object(E.applyFilters)("woocommerce_admin_profile_wizard_steps",o)}},{key:"getCurrentStep",value:function(){var e=this.props.query.step,t=this.getSteps().find((function(t){return t.key===e}));return t||this.getSteps()[0]}},{key:"goToNextStep",value:(t=l()(i.a.mark((function e(){var t,n,r,c,o,a,l;return i.a.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:if(t=this.props,n=t.activePlugins,r=t.dismissedTasks,c=t.updateOptions,o=this.getCurrentStep(),a=this.getSteps().findIndex((function(e){return e.key===o.key})),Object(M.recordEvent)("storeprofiler_step_complete",{step:o.key}),r.length&&c({woocommerce_task_list_dismissed_tasks:[]}),this.cachedActivePlugins=n,void 0!==(l=this.getSteps()[a+1])){e.next=10;break}return this.completeProfiler(),e.abrupt("return");case 10:return e.abrupt("return",Object(L.updateQueryString)({step:l.key}));case 11:case"end":return e.stop()}}),e,this)}))),function(){return t.apply(this,arguments)})},{key:"completeProfiler",value:function(){var e=this.props,t=e.activePlugins,n=e.isJetpackConnected,r=e.notes,c=e.updateNote,o=e.updateProfileItems,i=e.connectToJetpack;Object(M.recordEvent)("storeprofiler_complete");var a=t.includes("jetpack")&&!n,l=r.find((function(e){return"wc-admin-onboarding-profiler-reminder"===e.name}));l&&c(l.id,{status:"actioned"}),o({completed:!0}).then((function(){var e=new URL(Object(L.getNewPath)({},"/",{}),window.location.href).href;a?(document.body.classList.add("woocommerce-admin-is-loading"),i((function(){return e}))):window.location.href=e}))}},{key:"skipProfiler",value:function(){var e=this.props,t=e.createNotice;(0,e.updateProfileItems)({skipped:!0}).then((function(){Object(M.recordEvent)("storeprofiler_store_details_skip"),Object(L.getHistory)().push(Object(L.getNewPath)({},"/",{}))})).catch((function(){t("error",Object(v.__)("There was a problem skipping the setup wizard","woocommerce-admin"))}))}},{key:"render",value:function(){var e=this,t=this.props.query,n=this.getCurrentStep(),r=n.key,c=Object(g.createElement)(n.container,{query:t,step:n,goToNextStep:this.goToNextStep,skipProfiler:function(){e.skipProfiler()}}),o=this.getSteps().map((function(e){return Object(w.pick)(e,["key","label","isComplete"])})),i="woocommerce-profile-wizard__container ".concat(r);return Object(g.createElement)(g.Fragment,null,Object(g.createElement)(Ge,{currentStep:r,steps:o}),Object(g.createElement)("div",{className:i},c))}}]),r}(g.Component);t.default=Object(y.compose)(Object(k.withSelect)((function(e){var t=e(S.NOTES_STORE_NAME).getNotes,n=e(S.OPTIONS_STORE_NAME).getOption,r=e(S.ONBOARDING_STORE_NAME),c=r.getProfileItems,o=r.getOnboardingError,i=e(S.PLUGINS_STORE_NAME),a=i.getActivePlugins,l=i.getPluginsError,s=i.isJetpackConnected,m=e(S.SETTINGS_STORE_NAME).getSettings("general").general,u=c(),C=m.woocommerce_default_country||null,d=((u.industry||[]).map((function(e){return e.slug})),Ve(C)),p=t({page:1,per_page:S.QUERY_DEFAULTS.pageSize,type:"update",status:"unactioned"}),b=a();return{dismissedTasks:n("woocommerce_task_list_dismissed_tasks")||[],getPluginsError:l,isError:Boolean(o("updateProfileItems")),isJetpackConnected:s(),notes:p,profileItems:u,activePlugins:b,selectiveBundleInstallSegmentation:d}})),Object(k.withDispatch)((function(e){var t=e(S.PLUGINS_STORE_NAME),n=t.connectToJetpackWithFailureRedirect,r=t.createErrorNotice,c=e(S.NOTES_STORE_NAME).updateNote,o=e(S.OPTIONS_STORE_NAME).updateOptions,i=e(S.ONBOARDING_STORE_NAME).updateProfileItems;return{connectToJetpack:function(e){n(e,r,P.f)},createNotice:e("core/notices").createNotice,updateNote:c,updateOptions:o,updateProfileItems:i}})),window.wcSettings.plugins?Object(S.withPluginsHydration)(Tt(Tt({},window.wcSettings.plugins),{},{jetpackStatus:window.wcSettings.dataEndpoints.jetpackStatus})):w.identity)(xt)}}]);
|
1 |
+
(window.__wcAdmin_webpackJsonp=window.__wcAdmin_webpackJsonp||[]).push([[46],{598:function(e,t,n){"use strict";n.d(t,"b",(function(){return s})),n.d(t,"a",(function(){return m}));var r=n(0),c=n(141),o=n(247),i=n.n(o),a=n(85),l=i()(a.b),s=function(e){var t=l.getCurrencyConfig(),n=Object(c.applyFilters)("woocommerce_admin_report_currency",t,e);return i()(n)},m=Object(r.createContext)(l)},607:function(e,t,n){"use strict";n.d(t,"a",(function(){return c}));n(37),n(49),n(139);var r=n(26);function c(e){var t=Object(r.dispatch)("core/notices").createNotice;e.error_data&&e.errors&&Object.keys(e.errors).length?Object.keys(e.errors).forEach((function(n){t("error",e.errors[n].join(" "))})):e.message&&t(e.code?"error":"success",e.message)}},609:function(e,t,n){"use strict";n.r(t);var r=n(43),c=n.n(r),o=n(0),i=n(2),a=n(50),l=n(99),s=n.n(l),m=n(145),u=n(610);t.default=function(){var e="1"===Object(a.getQuery)()["wcpay-connection-success"],t=Object(o.useState)(e),n=c()(t,2),r=n[0],l=n[1];if(!r)return null;var C=function(){l(!1),Object(a.updateQueryString)({"wcpay-connection-success":void 0})},d=Object(i.__)("Help us build a better WooCommerce Payments experience","woocommerce-admin"),p=s()({mixedString:Object(i.__)("By agreeing to share non-sensitive {{link}}usage data{{/link}}, you’ll help us improve features and optimize the WooCommerce Payments experience. You can opt out at any time.","woocommerce-admin"),components:{link:Object(o.createElement)(m.Link,{href:"https://woocommerce.com/usage-tracking",target:"_blank",type:"external"})}});return Object(o.createElement)(u.a,{isDismissible:!1,title:d,message:p,acceptActionText:Object(i.__)("I agree","woocommerce-admin"),dismissActionText:Object(i.__)("No thanks","woocommerce-admin"),onContinue:C,onClose:C})}},610:function(e,t,n){"use strict";n(64);var r=n(16),c=n.n(r),o=n(134),i=n.n(o),a=n(22),l=n.n(a),s=n(23),m=n.n(s),u=n(24),C=n.n(u),d=n(25),p=n.n(d),b=n(14),f=n.n(b),h=n(0),O=n(2),_=n(65),j=n(26),g=n(99),v=n.n(g),E=n(4),y=n(145),w=n(59);function k(e){var t=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){}))),!0}catch(e){return!1}}();return function(){var n,r=f()(e);if(t){var c=f()(this).constructor;n=Reflect.construct(r,arguments,c)}else n=r.apply(this,arguments);return p()(this,n)}}var L=function(e){C()(r,e);var t,n=k(r);function r(e){var t;return l()(this,r),(t=n.call(this,e)).state={isLoadingScripts:!1,isRequestStarted:!1},t}return m()(r,[{key:"componentDidUpdate",value:(t=i()(c.a.mark((function e(t,n){var r,o,i,a,l,s,m,u,C,d;return c.a.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:if(r=this.props,o=r.hasErrors,i=r.isRequesting,a=r.onClose,l=r.onContinue,s=r.createNotice,m=this.state,u=m.isLoadingScripts,m.isRequestStarted){e.next=4;break}return e.abrupt("return");case 4:C=!i&&!u&&(t.isRequesting||n.isLoadingScripts)&&!o,d=!i&&t.isRequesting&&o,C&&(a(),l()),d&&(s("error",Object(O.__)("There was a problem updating your preferences","woocommerce-admin")),a());case 8:case"end":return e.stop()}}),e,this)}))),function(e,n){return t.apply(this,arguments)})},{key:"updateTracking",value:function(e){var t=this,n=e.allowTracking,r=this.props.updateOptions;n&&"function"==typeof window.wcTracks.enable?(this.setState({isLoadingScripts:!0}),window.wcTracks.enable((function(){t._isMounted&&t.setState({isLoadingScripts:!1})}))):n||(window.wcTracks.isEnabled=!1);var c=n?"yes":"no";this.setState({isRequestStarted:!0}),r({woocommerce_allow_tracking:c})}},{key:"componentDidMount",value:function(){this._isMounted=!0}},{key:"componentWillUnmount",value:function(){this._isMounted=!1}},{key:"render",value:function(){var e=this;if(this.props.allowTracking){var t=this.props,n=t.onClose,r=t.onContinue;return n(),r(),null}var c=this.props,o=c.isRequesting,i=c.title,a=void 0===i?Object(O.__)("Build a better WooCommerce","woocommerce-admin"):i,l=c.message,s=void 0===l?v()({mixedString:Object(O.__)("Get improved features and faster fixes by sharing non-sensitive data via {{link}}usage tracking{{/link}} that shows us how WooCommerce is used. No personal data is tracked or stored.","woocommerce-admin"),components:{link:Object(h.createElement)(y.Link,{href:"https://woocommerce.com/usage-tracking",target:"_blank",type:"external"})}}):l,m=c.dismissActionText,u=void 0===m?Object(O.__)("No thanks","woocommerce-admin"):m,C=c.acceptActionText,d=void 0===C?Object(O.__)("Yes, count me in!","woocommerce-admin"):C,p=this.state.isRequestStarted&&o;return Object(h.createElement)(E.Modal,{title:a,isDismissible:this.props.isDismissible,onRequestClose:function(){return e.props.onClose()},className:"woocommerce-usage-modal"},Object(h.createElement)("div",{className:"woocommerce-usage-modal__wrapper"},Object(h.createElement)("div",{className:"woocommerce-usage-modal__message"},s),Object(h.createElement)("div",{className:"woocommerce-usage-modal__actions"},Object(h.createElement)(E.Button,{isSecondary:!0,isBusy:p,onClick:function(){return e.updateTracking({allowTracking:!1})}},u),Object(h.createElement)(E.Button,{isPrimary:!0,isBusy:p,onClick:function(){return e.updateTracking({allowTracking:!0})}},d))))}}]),r}(h.Component);t.a=Object(_.compose)(Object(j.withSelect)((function(e){var t=e(w.OPTIONS_STORE_NAME),n=t.getOption,r=t.getOptionsUpdatingError,c=t.isOptionsUpdating;return{allowTracking:"yes"===n("woocommerce_allow_tracking"),isRequesting:Boolean(c()),hasErrors:Boolean(r())}})),Object(j.withDispatch)((function(e){return{createNotice:e("core/notices").createNotice,updateOptions:e(w.OPTIONS_STORE_NAME).updateOptions}})))(L)},615:function(e,t,n){"use strict";n.d(t,"d",(function(){return g})),n.d(t,"c",(function(){return L})),n.d(t,"a",(function(){return j})),n.d(t,"b",(function(){return r.default}));var r=n(609),c=(n(64),n(22)),o=n.n(c),i=n(23),a=n.n(i),l=n(24),s=n.n(l),m=n(25),u=n.n(m),C=n(14),d=n.n(C),p=n(2),b=n(0),f=n(26),h=n(50);function O(e){var t=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){}))),!0}catch(e){return!1}}();return function(){var n,r=d()(e);if(t){var c=d()(this).constructor;n=Reflect.construct(r,arguments,c)}else n=r.apply(this,arguments);return u()(this,n)}}var _=function(e){s()(n,e);var t=O(n);function n(){return o()(this,n),t.apply(this,arguments)}return a()(n,[{key:"componentDidMount",value:function(){var e=this.props,t=e.createNotice,n=e.markConfigured;Object(h.getQuery)()["wcpay-connection-success"]&&(t("success",Object(p.__)("WooCommerce Payments connected successfully.","woocommerce-admin")),n("wcpay",{"wcpay-connection-success":"1"}))}},{key:"render",value:function(){return null}}]),n}(b.Component),j=Object(f.withDispatch)((function(e){return{createNotice:e("core/notices").createNotice}}))(_);n(107);function g(e){var t=["US","PR"];return window.wcAdminFeatures&&window.wcAdminFeatures["wcpay/support-international-countries"]&&t.push("AU","CA","GB","IE","NZ"),t.includes(e)}var v=n(95),E=n.n(v),y=n(59),w=n(92),k=n(607);function L(e,t,n){var r=Object(p.__)("There was an error connecting to WooCommerce Payments. Please try again or connect later in store settings.","woocommerce-admin");n(["woocommerce-payments"]).then((function(){Object(w.recordEvent)("woocommerce_payments_install",{context:"tasklist"}),E()({path:y.WC_ADMIN_NAMESPACE+"/plugins/connect-wcpay",method:"POST"}).then((function(e){window.location=e.connectUrl})).catch((function(){t("error",r),e()}))})).catch((function(t){Object(k.a)(t),e()}))}},619:function(e,t,n){"use strict";n.d(t,"a",(function(){return s})),n.d(t,"b",(function(){return m}));n(37),n(53),n(41),n(60),n(49),n(61);var r=n(7),c=n.n(r),o=n(43),i=n.n(o);n(282);function a(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function l(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?a(Object(n),!0).forEach((function(t){c()(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):a(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}var s=function(e,t){var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:"undefined";return e&&Array.isArray(e)&&e.length?t?e.reduce((function(e,r){return r[t]||(r[t]=n),(e[r[t]]=e[r[t]]||[]).push(r),e}),{}):e:{}},m=function(e,t){return Object.entries(e).reduce((function(e,n){var r=i()(n,1)[0];return l(l({},e),{},c()({},r,t))}),{})}},620:function(e,t,n){"use strict";n.d(t,"b",(function(){return f})),n.d(t,"a",(function(){return h}));var r=n(80),c=n.n(r),o=n(43),i=n.n(o),a=n(44),l=n.n(a),s=n(0),m=(n(319),n(129),n(51),n(209),n(88),n(142),n(41),n(135),n(2)),u=n(132),C=n(5),d=n(85),p=n(145),b=Object(d.g)("dataEndpoints",{countries:{}}).countries;function f(e){var t={};return e.addressLine1.trim().length||(t.addressLine1=Object(m.__)("Please add an address","woocommerce-admin")),e.countryState.trim().length||(t.countryState=Object(m.__)("Please select a country / region","woocommerce-admin")),e.city.trim().length||(t.city=Object(m.__)("Please add a city","woocommerce-admin")),e.postCode.trim().length||(t.postCode=Object(m.__)("Please add a post code","woocommerce-admin")),t}function h(e){var t=e.getInputProps,n=e.setValue,r=Object(s.useMemo)((function(){return b.reduce((function(e,t){if(!t.states.length)return e.push({key:t.code,label:Object(u.decodeEntities)(t.name)}),e;var n=t.states.map((function(e){return{key:t.code+":"+e.code,label:Object(u.decodeEntities)(t.name)+" — "+Object(u.decodeEntities)(e.name)}}));return e.push.apply(e,l()(n)),e}),[])}),[]),o=function(e,t,n){var r=Object(s.useState)(""),c=i()(r,2),o=c[0],a=c[1],l=Object(s.useState)(""),m=i()(l,2),u=m[0],d=m[1];return Object(s.useEffect)((function(){var r=[],c=new RegExp(Object(C.escapeRegExp)(o),"i");if((u.length||o.length)&&(r=e.filter((function(e){return c.test(e.label)}))),o.length&&u.length){var i=new RegExp(Object(C.escapeRegExp)(u.replace(/\s/g,"")),"i");if((r=r.filter((function(e){return i.test(e.label.replace("-","").replace(/\s/g,""))}))).length>1){var a;(a=r.filter((function(e){return c.test(e.key)}))).length>0&&(r=a)}if(r.length>1){var l;1===(l=r.filter((function(e){return i.test(e.key)}))).length&&(r=l)}}1===r.length&&t!==r[0].key&&n("countryState",r[0].key)}),[o,u,t,e,n]),Object(s.createElement)(s.Fragment,null,Object(s.createElement)("input",{onChange:function(e){return a(e.target.value)},value:o,name:"country",type:"text",className:"woocommerce-select-control__autofill-input",tabIndex:"-1",autoComplete:"country"}),Object(s.createElement)("input",{onChange:function(e){return d(e.target.value)},value:u,name:"state",type:"text",className:"woocommerce-select-control__autofill-input",tabIndex:"-1",autoComplete:"address-level1"}))}(r,t("countryState").value,n);return Object(s.createElement)("div",{className:"woocommerce-store-address-fields"},Object(s.createElement)(p.TextControl,c()({label:Object(m.__)("Address line 1","woocommerce-admin"),required:!0,autoComplete:"address-line1"},t("addressLine1"))),Object(s.createElement)(p.TextControl,c()({label:Object(m.__)("Address line 2 (optional)","woocommerce-admin"),required:!0,autoComplete:"address-line2"},t("addressLine2"))),Object(s.createElement)(p.SelectControl,c()({label:Object(m.__)("Country / Region","woocommerce-admin"),required:!0,options:r,excludeSelectedOptions:!1,showAllOnFocus:!0,isSearchable:!0},t("countryState"),{controlClassName:t("countryState").className}),o),Object(s.createElement)(p.TextControl,c()({label:Object(m.__)("City","woocommerce-admin"),required:!0},t("city"),{autoComplete:"address-level2"})),Object(s.createElement)(p.TextControl,c()({label:Object(m.__)("Post code","woocommerce-admin"),required:!0,autoComplete:"postal-code"},t("postCode"))))}},663:function(e,t,n){},664:function(e,t,n){},665:function(e,t,n){},666:function(e,t,n){},667:function(e,t,n){},669:function(e,t,n){},674:function(e,t,n){},704:function(e,t,n){"use strict";n.r(t);var r=n(675),c=n.n(r),o=n(0);t.default=function(e){return c()(e),Object(o.createElement)("div",null,"Settings page")}},709:function(e,t,n){"use strict";n.r(t);n(64),n(37),n(53),n(41),n(60),n(49),n(61);var r=n(7),c=n.n(r),o=n(16),i=n.n(o),a=n(134),l=n.n(a),s=n(22),m=n.n(s),u=n(23),C=n.n(u),d=n(18),p=n.n(d),b=n(24),f=n.n(b),h=n(25),O=n.n(h),_=n(14),j=n.n(_),g=n(0),v=(n(107),n(140),n(192),n(320),n(129),n(287),n(100),n(151),n(123),n(146),n(51),n(2)),E=n(141),y=n(65),w=n(5),k=n(26),L=n(50),S=n(59),M=n(92),P=n(85),N=n(43),Z=n.n(N),T=(n(164),n(139),n(4)),V=n(99),x=n.n(V),H=n(145),I=n(105),R=(n(220),function(e){var t=e.description,n=e.icon,r=e.title;return Object(g.createElement)("div",{className:"woocommerce-profile-wizard__benefit-card",key:r},n,Object(g.createElement)("div",{className:"woocommerce-profile-wizard__benefit-card-content"},Object(g.createElement)(H.H,{className:"woocommerce-profile-wizard__benefit-card-title"},r),Object(g.createElement)("p",null,t)))}),B=function(){return Object(g.createElement)("svg",{width:"295",height:"160",viewBox:"0 0 295 160",fill:"none",xmlns:"http://www.w3.org/2000/svg"},Object(g.createElement)("g",{clipPath:"url(#management-svg)"},Object(g.createElement)("path",{d:"M0 6C0 2.6863 2.68629 0 6 0H289C292.314 0 295 2.68629 295 6V160H0V6Z",fill:"#F7EDF7"}),Object(g.createElement)("path",{opacity:"0.05",d:"M268 125.429L188.122 25.6443C184.495 28.9602 180.026 31.2158 175.204 32.165C160.166 35.1256 145.48 24.8598 142.402 9.23575C140.226 -1.80872 144.438 -12.5683 152.403 -18.9762L125.167 -53L-30 79.5708L112.833 258L268 125.429Z",fill:"#7F54B3"}),Object(g.createElement)("path",{opacity:"0.05",d:"M169 27C181.703 27 192 16.9264 192 4.5C192 -7.9264 181.703 -18 169 -18C156.297 -18 146 -7.9264 146 4.5C146 16.9264 156.297 27 169 27Z",fill:"#7F54B3"}),Object(g.createElement)("path",{d:"M84.0826 16.6412H147.092C150.132 16.6411 153.082 17.6756 155.457 19.5743C157.832 21.4731 159.489 24.1232 160.158 27.0891L191.995 168.296C192.343 169.836 192.349 171.434 192.013 172.977C191.678 174.52 191.009 175.97 190.054 177.227C189.098 178.484 187.879 179.517 186.482 180.253C185.086 180.989 183.545 181.411 181.968 181.489L117.194 184.68C113.725 184.851 110.313 183.754 107.594 181.594C104.875 179.434 103.035 176.359 102.417 172.942L84.3566 73.107L83.013 73.4908L79.5574 54.5684L80.9405 54.2226L75.8993 26.3551C75.6834 25.1615 75.7334 23.9349 76.0459 22.7629C76.3584 21.5908 76.9257 20.5021 77.7072 19.5744C78.4887 18.6467 79.4653 17.9029 80.5673 17.3958C81.6693 16.8888 82.8696 16.6311 84.0826 16.6412Z",fill:"white"}),Object(g.createElement)("path",{d:"M138.797 19.6853H146.152C148.264 19.6853 150.313 20.4076 151.958 21.7324C153.603 23.0572 154.745 24.9047 155.195 26.9683L185.755 167.023C185.931 167.83 185.931 168.665 185.754 169.471C185.578 170.277 185.23 171.036 184.733 171.695C184.237 172.355 183.604 172.899 182.878 173.292C182.152 173.684 181.35 173.915 180.526 173.969L115.962 178.2C114.14 178.32 112.339 177.764 110.901 176.64C109.463 175.516 108.489 173.901 108.165 172.105L82.0889 27.3445C81.9201 26.4075 81.959 25.4449 82.2029 24.5247C82.4468 23.6044 82.8897 22.7489 83.5003 22.0185C84.111 21.288 84.8745 20.7005 85.737 20.2974C86.5995 19.8942 87.54 19.6853 88.4921 19.6853H95.4695C96.1448 19.6853 96.8013 19.9079 97.3373 20.3187C97.8734 20.7294 98.259 21.3054 98.4346 21.9575C98.5895 22.5331 98.93 23.0416 99.4032 23.4043C99.8764 23.7669 100.456 23.9634 101.052 23.9634H134.176C135.344 23.9634 136.468 23.5228 137.325 22.7296C138.181 21.9365 138.707 20.8492 138.797 19.6853L138.797 19.6853Z",fill:"#F6F7F7"}),Object(g.createElement)("path",{d:"M159.366 55.8843H92.5569V56.2134H159.366V55.8843Z",fill:"#2F2E41"}),Object(g.createElement)("path",{d:"M161.999 66.5796H94.532V66.9087H161.999V66.5796Z",fill:"#2F2E41"}),Object(g.createElement)("path",{d:"M96.7759 55.3634L98.294 53.3396L98.0308 53.1421L96.7189 54.8913L91.6633 50.7551L91.4551 51.0102L96.7759 55.3634Z",fill:"#2F2E41"}),Object(g.createElement)("path",{d:"M105.498 103.081L107.016 101.057L106.752 100.86L105.44 102.609L100.385 98.4729L100.177 98.7277L105.498 103.081Z",fill:"#2F2E41"}),Object(g.createElement)("path",{d:"M169.4 103.109L99.4648 104.59L99.4718 104.919L169.407 103.438L169.4 103.109Z",fill:"#2F2E41"}),Object(g.createElement)("path",{d:"M171.539 112.816L100.287 114.462L100.295 114.791L171.547 113.146L171.539 112.816Z",fill:"#2F2E41"}),Object(g.createElement)("path",{opacity:"0.1",d:"M127.854 140.871C127.854 145.017 129.501 148.993 132.433 151.924C135.364 154.856 139.341 156.503 143.487 156.503C147.633 156.503 151.609 154.856 154.54 151.924C157.472 148.993 159.119 145.017 159.119 140.871C159.119 140.675 159.116 140.481 159.108 140.287C158.955 136.195 157.202 132.326 154.226 129.512C151.25 126.699 147.289 125.166 143.194 125.242C139.099 125.319 135.198 126.999 132.33 129.922C129.461 132.844 127.854 136.776 127.854 140.871H127.854Z",fill:"black"}),Object(g.createElement)("path",{opacity:"0.1",d:"M129.335 146.96C129.335 147.155 129.338 147.349 129.346 147.544C130.863 150.756 133.428 153.355 136.619 154.915C139.81 156.475 143.438 156.901 146.904 156.125C150.37 155.348 153.468 153.414 155.688 150.642C157.908 147.869 159.118 144.423 159.119 140.871C159.119 140.676 159.116 140.481 159.107 140.287C157.591 137.075 155.026 134.476 151.835 132.916C148.643 131.356 145.016 130.93 141.55 131.706C138.084 132.483 134.986 134.417 132.765 137.189C130.545 139.962 129.335 143.408 129.335 146.96H129.335Z",fill:"black"}),Object(g.createElement)("path",{d:"M224.461 59.1491C229.783 59.1491 234.098 54.8348 234.098 49.513C234.098 44.1912 229.783 39.877 224.461 39.877C219.139 39.877 214.824 44.1912 214.824 49.513C214.824 54.8348 219.139 59.1491 224.461 59.1491Z",fill:"#2F2E41"}),Object(g.createElement)("path",{d:"M236.166 86.9957C236.166 86.9957 235.643 98.2553 235.119 99.0408C234.595 99.8264 229.881 111.086 229.881 111.086L227.525 103.754C227.525 103.754 231.191 97.7316 230.667 94.3275C230.143 90.9235 230.473 86.7346 230.473 86.7346L236.166 86.9957Z",fill:"#9F616A"}),Object(g.createElement)("path",{d:"M221.24 59.7637C225.29 59.7637 228.572 56.4811 228.572 52.4319C228.572 48.3827 225.29 45.1001 221.24 45.1001C217.191 45.1001 213.908 48.3827 213.908 52.4319C213.908 56.4811 217.191 59.7637 221.24 59.7637Z",fill:"#9F616A"}),Object(g.createElement)("path",{d:"M227.263 53.217C227.263 53.217 227.001 63.691 228.834 65.2621C230.667 66.8332 218.359 65.524 218.359 65.524C218.359 65.524 220.978 58.1922 218.883 56.6211C216.788 55.05 227.263 53.217 227.263 53.217Z",fill:"#9F616A"}),Object(g.createElement)("path",{d:"M217.574 65.0008C217.574 65.0008 219.145 62.1205 221.24 62.3823C223.335 62.6442 230.144 63.1679 230.406 63.6916C230.667 64.2153 231.453 66.0482 231.977 66.5719C232.501 67.0956 236.429 67.8812 236.69 71.0234C236.952 74.1656 227.263 93.2806 227.263 93.2806C227.263 93.2806 228.573 97.732 228.311 98.7794C228.049 99.8268 229.62 102.969 229.358 104.278C229.096 105.588 233.286 113.443 231.191 123.655V140.152C231.191 140.152 238.262 168.693 236.167 170.788C234.072 172.883 227.001 171.574 225.692 170.788C224.383 170.003 218.884 130.463 218.884 130.463L216.265 117.109L216.003 146.436C216.003 146.436 216.527 171.05 214.694 171.836C212.861 172.621 205.79 172.883 205.266 171.312C204.858 170.087 202.857 137.484 201.996 123.193C201.697 118.26 202.085 113.309 203.149 108.483C204.238 103.54 205.821 97.7324 207.623 95.3754C211.028 90.9239 213.122 76.7841 213.122 76.7841L208.671 68.6667C208.671 68.6667 211.289 66.0482 212.861 66.0482C214.432 66.0482 217.574 65.0008 217.574 65.0008Z",fill:"#444053"}),Object(g.createElement)("path",{d:"M235.119 69.1902L236.5 70.1301C236.5 70.1301 237.476 86.996 236.69 88.0434C235.904 89.0908 230.443 88.5796 230.031 87.6569C229.62 86.7341 235.119 69.1902 235.119 69.1902Z",fill:"#444053"}),Object(g.createElement)("path",{d:"M211.767 84.5249C212.533 89.8422 213.205 94.5756 209.286 98.8578C205.347 103.192 200.904 107.039 196.053 110.319C195.572 111.593 188.515 120.943 188.156 117.213C187.797 113.484 190.235 110.56 193.7 107.406C197.165 104.252 202.012 97.4081 204.747 93.6531C207.482 89.898 206.356 87.5565 206.261 84.42C206.166 81.2835 210.691 84.5628 211.767 84.5249Z",fill:"#9F616A"}),Object(g.createElement)("path",{d:"M212.337 67.8806L208.671 68.6662C208.671 68.6662 208.671 74.4269 207.623 76.7835C206.576 79.1402 204.743 84.639 205.528 84.9008C206.314 85.1627 213.646 88.8286 214.17 86.7338C214.694 84.639 216.003 67.8806 212.337 67.8806Z",fill:"#444053"}),Object(g.createElement)("path",{d:"M234.901 46.4615C240.223 46.4615 244.537 42.1473 244.537 36.8255C244.537 31.5037 240.223 27.1895 234.901 27.1895C229.579 27.1895 225.264 31.5037 225.264 36.8255C225.264 42.1473 229.579 46.4615 234.901 46.4615Z",fill:"#2F2E41"}),Object(g.createElement)("path",{d:"M243.213 44.8046C241.966 45.706 240.521 46.2957 238.999 46.5242C237.477 46.7527 235.922 46.6134 234.465 46.118C233.008 45.6226 231.691 44.7855 230.624 43.6767C229.557 42.5679 228.771 41.2197 228.331 39.7449C228.498 41.0666 228.936 42.3395 229.619 43.4832C230.302 44.6269 231.215 45.6166 232.3 46.3898C233.384 47.163 234.618 47.7029 235.922 47.9754C237.226 48.2479 238.572 48.2471 239.876 47.973C241.18 47.699 242.412 47.1576 243.496 46.3831C244.58 45.6087 245.492 44.6179 246.173 43.4734C246.855 42.3288 247.292 41.0554 247.456 39.7335C247.621 38.4116 247.51 37.07 247.13 35.7932C247.346 37.5085 247.096 39.2503 246.407 40.8358C245.718 42.4214 244.614 43.7922 243.213 44.8046Z",fill:"#2F2E41"}),Object(g.createElement)("path",{d:"M227.031 58.1854C230.934 58.1854 234.098 55.0216 234.098 51.1189C234.098 47.2162 230.934 44.0525 227.031 44.0525C223.128 44.0525 219.964 47.2162 219.964 51.1189C219.964 55.0216 223.128 58.1854 227.031 58.1854Z",fill:"#2F2E41"}),Object(g.createElement)("path",{d:"M221.088 53.3669C224.548 53.3669 227.352 51.1739 227.352 48.4686C227.352 45.7634 224.548 43.5703 221.088 43.5703C217.629 43.5703 214.824 45.7634 214.824 48.4686C214.824 51.1739 217.629 53.3669 221.088 53.3669Z",fill:"#2F2E41"}),Object(g.createElement)("path",{d:"M219.417 55.5916C220.074 55.5916 220.606 54.65 220.606 53.4884C220.606 52.3269 220.074 51.3853 219.417 51.3853C218.761 51.3853 218.229 52.3269 218.229 53.4884C218.229 54.65 218.761 55.5916 219.417 55.5916Z",fill:"#A0616A"})),Object(g.createElement)("defs",null,Object(g.createElement)("clipPath",{id:"management-svg"},Object(g.createElement)("path",{d:"M0 6C0 2.6863 2.68629 0 6 0H289C292.314 0 295 2.68629 295 6V160H0V6Z",fill:"white"}))))},F=function(){return Object(g.createElement)("svg",{width:"295",height:"160",viewBox:"0 0 295 160",fill:"none",xmlns:"http://www.w3.org/2000/svg"},Object(g.createElement)("g",{clipPath:"url(#sales-tax-svg)"},Object(g.createElement)("path",{d:"M0 6C0 2.6863 2.68629 0 6 0H289C292.314 0 295 2.68629 295 6V160H0V6Z",fill:"#F7EDF7"}),Object(g.createElement)("path",{opacity:"0.05",d:"M164.773 36.3068C148.909 35.7553 133.8 30.6347 119.37 25.0313C104.94 19.4279 90.6516 13.2214 75.1674 10.2506C65.2082 8.34111 53.82 8.07148 45.7947 13.4102C38.0735 18.5577 35.5782 27.4188 34.2349 35.6499C33.2275 41.8416 32.6343 48.3594 35.3992 54.1564C37.3185 58.1813 40.7281 61.564 43.0862 65.4172C51.2879 78.8302 45.4908 95.3807 36.6052 108.468C32.4382 114.613 27.5995 120.478 24.3811 127.013C21.1627 133.548 19.6748 141.046 22.4888 147.719C25.2807 154.337 31.9308 159.298 39.1348 162.791C53.7636 169.9 71.0004 171.917 87.8181 173.066C125.032 175.613 162.447 174.51 199.759 173.407C213.569 172.998 227.438 172.584 241.025 170.449C248.568 169.265 256.357 167.382 261.833 162.85C268.785 157.082 270.508 147.317 265.851 140.083C258.037 127.952 236.437 124.94 230.968 111.921C227.96 104.754 231.049 96.7729 235.417 90.1253C244.79 75.8691 260.5 63.3607 261.328 47.0651C261.897 35.873 254.345 24.6636 242.668 19.3666C230.426 13.8171 213.454 14.5157 204.429 23.7028C195.119 33.1521 178.775 36.7971 164.773 36.3068Z",fill:"#7F54B3"}),Object(g.createElement)("path",{d:"M98.0173 58.1228C98.0173 58.1228 104.812 49.2691 108.518 49.9554C108.518 49.9554 104.4 57.8483 98.0173 59.0248V58.1228Z",fill:"#7F54B3"}),Object(g.createElement)("path",{d:"M101.445 47.2146C101.445 47.2146 107.45 40.4248 110.693 40.4419C110.693 40.4419 105.952 49.5113 101.197 49.428L101.445 47.2146Z",fill:"#7F54B3"}),Object(g.createElement)("path",{d:"M103.474 39.9447L109.273 25.8037C109.273 25.8037 109.565 38.5867 102.736 42.5674L103.474 39.9447Z",fill:"#7F54B3"}),Object(g.createElement)("path",{d:"M101.922 48.1023C101.922 48.1023 101.9 39.0329 99.4566 36.9077C99.4566 36.9077 97.0225 46.8424 100.645 49.9285L101.922 48.1023Z",fill:"#7F54B3"}),Object(g.createElement)("path",{d:"M198.534 25.4629H97.6055C96.2789 25.4629 95.2034 26.5384 95.2034 27.8651V180.276C95.2034 181.602 96.2789 182.678 97.6055 182.678H198.534C199.86 182.678 200.936 181.602 200.936 180.276V27.8651C200.936 26.5384 199.86 25.4629 198.534 25.4629Z",fill:"white"}),Object(g.createElement)("path",{opacity:"0.1",d:"M185.408 38.9763H112.041C108.086 38.9763 104.881 42.1819 104.881 46.1363V62.7235C104.881 66.6778 108.086 69.8835 112.041 69.8835H185.408C189.362 69.8835 192.567 66.6778 192.567 62.7235V46.1363C192.567 42.1819 189.362 38.9763 185.408 38.9763Z",fill:"black"}),Object(g.createElement)("path",{d:"M189.303 39.5791H107.945C106.564 39.5791 105.445 40.6985 105.445 42.0793V66.9712C105.445 68.3521 106.564 69.4715 107.945 69.4715H189.303C190.683 69.4715 191.803 68.3521 191.803 66.9712V42.0793C191.803 40.6985 190.683 39.5791 189.303 39.5791Z",fill:"#E6E8EC"}),Object(g.createElement)("path",{opacity:"0.1",d:"M122.728 82.7573H110.58C109.119 82.7573 107.935 83.9415 107.935 85.4022V99.4867C107.935 100.947 109.119 102.132 110.58 102.132H122.728C124.189 102.132 125.373 100.947 125.373 99.4867V85.4022C125.373 83.9415 124.189 82.7573 122.728 82.7573Z",fill:"black"}),Object(g.createElement)("path",{opacity:"0.1",d:"M144.041 82.7573H131.893C130.432 82.7573 129.248 83.9415 129.248 85.4022V99.4867C129.248 100.947 130.432 102.132 131.893 102.132H144.041C145.502 102.132 146.686 100.947 146.686 99.4867V85.4022C146.686 83.9415 145.502 82.7573 144.041 82.7573Z",fill:"black"}),Object(g.createElement)("path",{opacity:"0.1",d:"M165.354 82.7573H153.206C151.745 82.7573 150.561 83.9415 150.561 85.4022V99.4867C150.561 100.947 151.745 102.132 153.206 102.132H165.354C166.815 102.132 167.999 100.947 167.999 99.4867V85.4022C167.999 83.9415 166.815 82.7573 165.354 82.7573Z",fill:"black"}),Object(g.createElement)("path",{opacity:"0.1",d:"M182.243 83.1694H178.944C175.04 83.1694 171.875 86.3344 171.875 90.2387V95.4745C171.875 99.3787 175.04 102.544 178.944 102.544H182.243C186.147 102.544 189.312 99.3787 189.312 95.4745V90.2387C189.312 86.3344 186.147 83.1694 182.243 83.1694Z",fill:"black"}),Object(g.createElement)("path",{d:"M186.667 82.7573H174.519C173.059 82.7573 171.875 83.9415 171.875 85.4022V99.4867C171.875 100.947 173.059 102.132 174.519 102.132H186.667C188.128 102.132 189.312 100.947 189.312 99.4867V85.4022C189.312 83.9415 188.128 82.7573 186.667 82.7573Z",fill:"#646970"}),Object(g.createElement)("path",{opacity:"0.1",d:"M122.728 104.07H110.58C109.119 104.07 107.935 105.254 107.935 106.715V120.8C107.935 122.26 109.119 123.445 110.58 123.445H122.728C124.189 123.445 125.373 122.26 125.373 120.8V106.715C125.373 105.254 124.189 104.07 122.728 104.07Z",fill:"black"}),Object(g.createElement)("path",{opacity:"0.1",d:"M144.041 104.07H131.893C130.432 104.07 129.248 105.254 129.248 106.715V120.8C129.248 122.26 130.432 123.445 131.893 123.445H144.041C145.502 123.445 146.686 122.26 146.686 120.8V106.715C146.686 105.254 145.502 104.07 144.041 104.07Z",fill:"black"}),Object(g.createElement)("path",{opacity:"0.1",d:"M165.354 104.07H153.206C151.745 104.07 150.561 105.254 150.561 106.715V120.8C150.561 122.26 151.745 123.445 153.206 123.445H165.354C166.815 123.445 167.999 122.26 167.999 120.8V106.715C167.999 105.254 166.815 104.07 165.354 104.07Z",fill:"black"}),Object(g.createElement)("path",{opacity:"0.1",d:"M122.728 127.597H110.58C109.119 127.597 107.935 128.781 107.935 130.242V144.327C107.935 145.787 109.119 146.971 110.58 146.971H122.728C124.189 146.971 125.373 145.787 125.373 144.327V130.242C125.373 128.781 124.189 127.597 122.728 127.597Z",fill:"black"}),Object(g.createElement)("path",{opacity:"0.1",d:"M144.041 127.597H131.893C130.432 127.597 129.248 128.781 129.248 130.242V144.327C129.248 145.787 130.432 146.971 131.893 146.971H144.041C145.502 146.971 146.686 145.787 146.686 144.327V130.242C146.686 128.781 145.502 127.597 144.041 127.597Z",fill:"black"}),Object(g.createElement)("path",{opacity:"0.1",d:"M165.354 127.597H153.206C151.745 127.597 150.561 128.781 150.561 130.242V144.327C150.561 145.787 151.745 146.971 153.206 146.971H165.354C166.815 146.971 167.999 145.787 167.999 144.327V130.242C167.999 128.781 166.815 127.597 165.354 127.597Z",fill:"black"}),Object(g.createElement)("path",{opacity:"0.1",d:"M165.354 151.123H153.206C151.745 151.123 150.561 152.307 150.561 153.768V167.853C150.561 169.313 151.745 170.498 153.206 170.498H165.354C166.815 170.498 167.999 169.313 167.999 167.853V153.768C167.999 152.307 166.815 151.123 165.354 151.123Z",fill:"black"}),Object(g.createElement)("path",{opacity:"0.1",d:"M186.542 104.07H174.644C173.115 104.07 171.875 105.31 171.875 106.84V120.675C171.875 122.205 173.115 123.445 174.644 123.445H186.542C188.072 123.445 189.312 122.205 189.312 120.675V106.84C189.312 105.31 188.072 104.07 186.542 104.07Z",fill:"black"}),Object(g.createElement)("path",{opacity:"0.1",d:"M144.225 151.123H110.396C109.037 151.123 107.935 152.225 107.935 153.584V168.037C107.935 169.396 109.037 170.498 110.396 170.498H144.225C145.584 170.498 146.686 169.396 146.686 168.037V153.584C146.686 152.225 145.584 151.123 144.225 151.123Z",fill:"black"}),Object(g.createElement)("path",{opacity:"0.1",d:"M186.452 127.597H173.071C171.492 127.597 170.213 128.877 170.213 130.455V167.642C170.213 169.221 171.492 170.5 173.071 170.5H186.452C188.031 170.5 189.31 169.221 189.31 167.642V130.455C189.31 128.877 188.031 127.597 186.452 127.597Z",fill:"black"}),Object(g.createElement)("path",{d:"M187.925 64.251H180.292V65.077H187.925V64.251Z",fill:"#646970"}),Object(g.createElement)("path",{d:"M176.75 64.251H169.117V65.077H176.75V64.251Z",fill:"#646970"}),Object(g.createElement)("path",{d:"M165.572 64.251H157.939V65.077H165.572V64.251Z",fill:"#646970"}),Object(g.createElement)("path",{d:"M154.398 64.251H146.765V65.077H154.398V64.251Z",fill:"#646970"}),Object(g.createElement)("path",{d:"M236.67 122.236C237.456 119.589 236.67 116.941 236.67 116.941V114.444C236.67 114.444 237.569 109.561 233.554 106.428L230.892 104.08C230.892 104.08 229.399 102.798 228.965 102.717C228.885 102.7 228.803 102.687 228.72 102.68L228.642 102.634C228.413 102.242 228.218 101.832 228.058 101.408C228.231 101.43 228.406 101.413 228.57 101.357C228.735 101.301 228.884 101.208 229.007 101.085C229.103 100.974 229.179 100.847 229.23 100.71C229.385 100.364 229.412 99.9448 229.541 99.5771C229.655 99.2789 229.821 99.0034 230.032 98.7633C230.005 98.8074 229.975 98.8491 229.951 98.8956C230.328 98.425 230.821 98.023 231.176 97.5279C231.247 97.4297 231.312 97.3273 231.37 97.2215C231.355 97.2435 231.336 97.2631 231.319 97.2852C231.809 96.4984 231.958 95.5449 232.101 94.6257C232.169 94.3128 232.174 93.9894 232.115 93.6746C232.046 93.4657 231.958 93.2637 231.85 93.0716C231.272 91.8779 231.282 90.3753 230.358 89.4218C229.662 88.7085 228.608 88.4903 227.615 88.3678C226.622 88.2452 225.578 88.1741 224.725 87.6545C224.487 87.4739 224.223 87.3294 223.943 87.2255C223.802 87.1763 223.648 87.1778 223.508 87.2297C223.368 87.2816 223.251 87.3806 223.176 87.5098C223.158 87.5863 223.123 87.6577 223.073 87.7182C223.028 87.7434 222.979 87.7581 222.928 87.761C222.877 87.764 222.826 87.7552 222.779 87.7353L221.457 87.3824L221.472 87.4486H221.438L221.487 87.6569C221.513 87.6523 221.539 87.657 221.562 87.6699C221.585 87.6829 221.603 87.7034 221.612 87.728L221.399 88.0565C220.99 88.049 220.586 87.9659 220.207 87.8113C220.205 87.8325 220.205 87.8539 220.207 87.8751H220.188C220.163 88.2476 220.587 88.4903 220.717 88.8408C220.769 88.9942 220.769 89.1605 220.717 89.3139C220.664 89.4562 220.58 89.585 220.472 89.6914C220.004 90.1547 219.403 90.064 218.864 90.3557C218.817 90.3756 218.776 90.4054 218.742 90.4431C218.708 90.4808 218.683 90.5254 218.668 90.5738C218.647 90.61 218.64 90.6532 218.651 90.6939C218.672 90.7502 218.711 90.7983 218.761 90.8312C218.918 90.9581 219.09 91.0651 219.273 91.1499C219.219 91.1989 219.168 91.2479 219.119 91.2994C218.435 91.9949 217.933 92.8492 217.659 93.7859C217.386 94.7225 217.348 95.7124 217.551 96.667C217.753 97.6216 218.188 98.5113 218.818 99.2565C219.448 100.002 220.253 100.579 221.161 100.938C221.18 101.04 221.195 101.146 221.21 101.256C221.21 101.268 221.21 101.276 221.21 101.288L221.225 101.43L219.445 102.188C219.177 102.186 218.914 102.107 218.689 101.962C218.463 101.817 218.283 101.61 218.17 101.366C217.756 100.511 216.293 101.366 216.293 101.366C216.293 101.366 211.829 101.033 210.165 101.857C210.165 101.857 207.5 100.739 207.125 100.663C206.75 100.587 206.189 100.29 205.927 100.366C205.664 100.442 205.326 99.8761 205.137 99.9178C204.949 99.9595 204.875 99.5452 204.275 99.3957C203.674 99.2462 203.448 99.4349 202.774 98.7633C202.1 98.0917 196.619 95.4444 196.619 95.4444L194.158 93.4197L191.533 91.3313L191.487 91.417C191.469 91.3558 191.452 91.292 191.435 91.2234C191.174 90.183 190.846 89.1604 190.455 88.1619C190.286 87.7574 190.21 87.2476 189.982 87.5172C189.842 87.679 189.604 87.3235 189.246 87.0833C189.17 87.0309 189.084 86.9961 188.993 86.9813C188.902 86.9666 188.809 86.9724 188.72 86.9982C188.631 87.024 188.55 87.0693 188.481 87.1307C188.412 87.192 188.358 87.268 188.322 87.353C186.278 90.5591 185.545 90.7846 186.729 91.9637C187.785 93.0103 188.486 93.9246 189.347 94.2139L189.45 94.2457C189.431 94.2506 189.412 94.2506 189.393 94.2457L194.384 100.212C194.384 100.212 197.985 103.345 200.463 104.35C202.941 105.355 202.75 105.656 202.75 105.656C202.75 105.656 210.255 109.458 211.417 109.384C212.579 109.311 212.356 117.177 211.868 118.454C211.381 119.731 210.594 128.893 210.594 128.893C210.594 128.893 209.841 130.832 210.63 132.173C210.63 132.173 210.805 134.742 210.648 135.36C209.964 136.414 208.988 138.203 208.829 140.044C208.829 140.142 208.809 140.233 208.799 140.328C208.749 140.386 208.69 140.435 208.623 140.473L208.79 140.424C208.719 141.191 208.554 141.947 208.299 142.674C207.903 143.695 207.693 144.78 207.679 145.875V151.797L207.189 155.474C207.189 155.474 206.588 158.256 207.189 158.906C207.442 159.23 207.56 159.639 207.517 160.048C207.492 160.523 207.627 160.992 207.9 161.382C208.004 161.495 208.081 161.632 208.123 161.78C208.166 161.929 208.173 162.085 208.145 162.237C207.946 162.882 208.439 169.743 208.439 169.743C208.439 169.743 208.294 171.632 208.096 171.733C207.897 171.833 208.439 173.919 208.439 173.919C208.439 173.919 206.412 175.611 206.929 176.505L207.446 177.3L207.309 177.434L207.226 177.52C207.069 177.43 206.887 177.396 206.709 177.422C206.071 178.074 205.39 178.681 204.669 179.239C203.755 179.898 201.267 180.854 201.267 180.854L199.306 181.013H199.269C199.269 181.013 198.33 180.925 198.857 182.379C199.384 183.832 204.096 183.386 204.096 183.386L206.846 182.952C206.846 182.952 211.748 182.977 213.153 182.665C213.739 182.535 213.888 182.222 213.839 181.905L213.824 181.891C213.757 181.589 213.619 181.308 213.422 181.07C213.412 181.054 213.401 181.039 213.388 181.025L213.476 180.02C215.557 178.822 212.888 176.464 212.888 176.464C212.888 176.464 213.802 174.476 214.271 173.831C214.739 173.187 214.739 163.688 214.739 163.688C214.739 163.688 214.984 160.256 214.339 159.462C214.328 159.204 214.387 158.947 214.511 158.719C214.634 158.492 214.817 158.302 215.04 158.171C215.503 157.854 216.903 153.499 218.001 149.883L218.692 154.143C218.692 154.143 218.543 156.183 218.992 156.778C219.076 156.891 219.136 157.019 219.168 157.156C219.2 157.292 219.203 157.434 219.178 157.572C219.071 158.144 219.106 158.733 219.278 159.288C219.331 159.526 219.459 159.741 219.644 159.901C220.043 160.1 220.068 160.808 220.217 160.958C220.367 161.107 221.293 160.747 221.342 161.293C221.37 161.773 221.37 162.255 221.342 162.735L221.644 171.583C221.644 171.583 221.153 172.319 221.043 174.28C221.001 175.116 220.845 175.591 220.683 175.863C220.593 176.009 220.552 176.18 220.565 176.351C220.578 176.522 220.645 176.684 220.756 176.814L220.842 176.915L220.472 177.199C220.323 177.315 220.219 177.478 220.177 177.662C220.135 177.845 220.158 178.038 220.242 178.207C220.122 178.31 220.037 178.448 219.996 178.601C219.955 178.754 219.962 178.915 220.014 179.065C220.029 179.114 220.05 179.161 220.077 179.204C219.796 179.248 219.535 179.377 219.33 179.574C218.96 180.082 218.514 180.53 218.009 180.903C217.274 181.466 216.572 182.068 215.903 182.707C215.588 183.136 215.165 183.474 214.677 183.687C214.558 183.736 214.434 183.773 214.307 183.798C213.327 183.999 213.633 185.023 214.432 185.193C215.231 185.362 217.884 186.173 219.947 185.7C219.947 185.7 220.56 185.945 221.46 185.489C222.359 185.033 224.367 184.474 224.367 184.474C224.367 184.474 225.492 184.474 225.644 184.028C225.684 183.886 225.705 183.739 225.708 183.592L225.74 183.56L225.71 183.533C225.713 183.199 225.688 182.865 225.634 182.535C225.605 182.364 225.573 182.212 225.544 182.089C225.448 181.717 225.269 181.234 225.193 181.03C225.206 181.014 225.217 180.997 225.227 180.979C225.656 180.244 224.943 178.498 224.943 178.498C225.177 178.127 225.462 177.789 225.789 177.496C226.188 177.197 227.24 169.441 227.24 169.441C227.24 169.441 227.188 167.453 227.73 166.559C228.272 165.664 226.98 160.247 226.98 160.247C226.98 160.247 226.428 159.004 226.629 158.555C226.83 158.107 226.428 156.467 226.428 156.467V154.506C226.427 154.272 226.388 154.041 226.313 153.82C226.159 153.359 225.931 152.474 226.178 151.839C226.529 150.944 227.328 145.427 227.328 145.427C227.328 145.427 226.703 142.993 227.62 141.054C227.691 140.899 227.773 140.749 227.865 140.605C228.544 139.539 228.34 137.644 228.005 136.117C227.956 135.872 227.899 135.651 227.843 135.438C227.821 135.345 227.796 135.257 227.772 135.168L227.88 135.124C227.88 135.124 227.88 134.98 227.914 134.732C228.284 134.659 228.635 134.51 228.945 134.296C229.256 134.081 229.519 133.805 229.718 133.485C229.718 133.485 232.007 130.911 234.032 129.83C236.057 128.749 236.209 127.182 236.209 127.182C235.91 126.66 236.746 124.535 236.746 124.535L236.67 122.236ZM230.066 125.668L227.899 128.18V128.165C227.335 127.381 228.424 125.628 228.424 125.628L230.225 121.608C230.211 122.123 230.147 122.589 229.98 122.792C229.49 123.464 230.882 124.584 230.882 124.584C230.14 124.587 230.066 125.668 230.066 125.668Z",fill:"url(#paint0_linear)"}),Object(g.createElement)("path",{d:"M191.915 92.7263L190.732 95.023C190.357 94.991 189.987 94.9136 189.631 94.7926C189.066 94.624 188.544 94.3376 188.098 93.9522C187.652 93.5669 187.293 93.0914 187.045 92.5571C185.989 90.2236 187.736 88.7161 188.55 88.27C189.364 87.8238 190.121 87.3165 190.732 88.7798C191.115 89.7726 191.435 90.7886 191.69 91.8218C191.832 92.3586 191.915 92.7263 191.915 92.7263Z",fill:"#CC818C"}),Object(g.createElement)("path",{d:"M229.515 104.674L227.625 107.488C227.625 107.488 218.695 111.748 220.401 106.752C221.151 104.546 221.239 102.936 221.104 101.82C221.104 101.808 221.104 101.801 221.104 101.789C220.928 100.394 220.403 99.7884 220.403 99.7884C220.403 99.7884 229.108 95.3321 227.811 98.3789C227.546 99.0122 227.441 99.7007 227.505 100.384C227.611 101.368 227.931 102.318 228.441 103.166C228.747 103.703 229.107 104.208 229.515 104.674Z",fill:"#CC818C"}),Object(g.createElement)("path",{d:"M226.796 160.416C226.796 160.416 228.08 165.808 227.531 166.688C226.982 167.568 227.041 169.554 227.041 169.554C227.041 169.554 226.004 177.26 225.61 177.554C225.286 177.841 225.003 178.171 224.769 178.535C224.769 178.535 225.475 180.28 225.051 181.001C224.985 181.111 224.887 181.196 224.769 181.246C224.107 181.525 221.661 180.285 220.268 179.53C220.156 179.469 220.061 179.381 219.99 179.275C219.918 179.169 219.874 179.047 219.86 178.92C219.846 178.793 219.863 178.665 219.909 178.545C219.956 178.426 220.03 178.32 220.126 178.236C220.043 178.069 220.019 177.878 220.06 177.696C220.101 177.513 220.204 177.351 220.352 177.236L220.719 176.951L220.634 176.851C220.524 176.721 220.457 176.56 220.444 176.39C220.431 176.22 220.471 176.05 220.56 175.905C220.719 175.638 220.874 175.169 220.916 174.334C221.016 172.407 221.509 171.667 221.509 171.667L221.212 162.872C221.24 162.395 221.24 161.917 221.212 161.44C221.163 160.899 220.249 161.256 220.102 161.107C219.955 160.957 219.928 160.256 219.533 160.058C219.351 159.898 219.226 159.684 219.175 159.447C219.001 158.893 218.966 158.303 219.075 157.732C219.1 157.595 219.097 157.454 219.065 157.318C219.034 157.182 218.974 157.054 218.891 156.942C218.447 156.349 218.594 154.327 218.594 154.327L217.913 150.091C216.827 153.685 215.447 158.014 214.989 158.327C214.769 158.459 214.588 158.648 214.467 158.873C214.345 159.099 214.286 159.353 214.297 159.609C214.94 160.401 214.692 163.811 214.692 163.811C214.692 163.811 214.692 173.243 214.229 173.887C213.765 174.532 212.868 176.515 212.868 176.515C212.868 176.515 215.516 178.871 213.432 180.06H213.41C211.285 181.246 206.89 177.937 206.89 177.937L207.348 177.478L207.483 177.344L206.963 176.569C206.453 175.679 208.454 174 208.454 174C208.454 174 207.919 171.924 208.115 171.826C208.311 171.728 208.454 169.85 208.454 169.85C208.454 169.85 207.963 163.034 208.164 162.391C208.191 162.24 208.183 162.085 208.141 161.938C208.098 161.79 208.022 161.654 207.919 161.541C207.649 161.154 207.517 160.688 207.542 160.217C207.585 159.811 207.468 159.404 207.216 159.082C206.623 158.44 207.216 155.675 207.216 155.675L207.706 152.018V146.211C207.713 145.09 207.923 143.98 208.326 142.934C208.626 142.086 208.807 141.201 208.865 140.304C209.027 138.431 210.035 136.612 210.711 135.575C211.069 135.026 211.336 134.698 211.336 134.698L227.142 134.08C227.142 134.08 227.387 134.784 227.651 135.762C227.705 135.975 227.759 136.2 227.811 136.436C228.142 137.955 228.34 139.838 227.671 140.897C227.58 141.04 227.498 141.189 227.426 141.343C226.521 143.27 227.139 145.689 227.139 145.689C227.139 145.689 226.35 151.17 226.004 152.062C225.759 152.692 225.985 153.572 226.139 154.023C226.211 154.244 226.248 154.475 226.249 154.707V156.66C226.249 156.66 226.646 158.291 226.448 158.737C226.249 159.183 226.796 160.416 226.796 160.416Z",fill:"#444053"}),Object(g.createElement)("path",{opacity:"0.1",d:"M227.524 141.054C227.433 141.196 227.351 141.344 227.279 141.497L226.389 141.448C226.475 140.99 225.87 136.693 225.87 136.693L227.661 136.593C227.992 138.11 228.193 139.992 227.524 141.054Z",fill:"black"}),Object(g.createElement)("path",{d:"M227.671 140.904C227.58 141.048 227.499 141.197 227.426 141.35L226.536 141.299C226.622 140.843 226.017 136.543 226.017 136.543L227.808 136.443C228.142 137.963 228.34 139.845 227.671 140.904Z",fill:"#444053"}),Object(g.createElement)("path",{opacity:"0.05",d:"M227.671 140.904C227.58 141.048 227.499 141.197 227.426 141.35L226.536 141.299C226.622 140.843 226.017 136.543 226.017 136.543L227.808 136.443C228.142 137.963 228.34 139.845 227.671 140.904Z",fill:"black"}),Object(g.createElement)("path",{opacity:"0.1",d:"M220.869 160.774C220.869 160.774 221.894 159.303 223.649 159.303C225.404 159.303 226.154 159.104 226.154 159.104C226.154 159.104 225.031 159.771 224.254 159.857C223.477 159.943 220.869 160.774 220.869 160.774Z",fill:"black"}),Object(g.createElement)("path",{opacity:"0.1",d:"M208.662 140.728C208.736 140.74 209.983 139.431 210.069 138.914C210.137 138.587 210.332 138.299 210.611 138.115C210.611 138.115 211.415 138.436 210.699 139.421C209.983 140.407 208.662 140.728 208.662 140.728Z",fill:"black"}),Object(g.createElement)("path",{opacity:"0.1",d:"M227.799 98.3738C227.515 99.0454 227.265 99.1092 227.309 99.7489C226.978 100.099 226.597 100.399 226.179 100.639C225.296 101.163 224.335 102.19 223.237 102.19C222.501 102.191 221.772 102.053 221.088 101.783C220.911 100.389 220.386 99.7833 220.386 99.7833C220.386 99.7833 229.093 95.327 227.799 98.3738Z",fill:"black"}),Object(g.createElement)("path",{d:"M229.132 96.0035C229.132 97.167 228.787 98.3044 228.141 99.2718C227.494 100.239 226.575 100.993 225.5 101.439C224.425 101.884 223.243 102 222.101 101.773C220.96 101.546 219.912 100.986 219.089 100.163C218.267 99.3406 217.706 98.2923 217.479 97.1512C217.252 96.01 217.369 94.8272 217.814 93.7522C218.259 92.6772 219.013 91.7585 219.981 91.112C220.948 90.4656 222.086 90.1206 223.249 90.1206C224.809 90.1206 226.306 90.7404 227.409 91.8437C228.512 92.9469 229.132 94.4432 229.132 96.0035Z",fill:"#CC818C"}),Object(g.createElement)("path",{opacity:"0.1",d:"M229.515 104.673L227.625 107.487C227.625 107.487 218.695 111.747 220.401 106.752C221.151 104.546 221.239 102.935 221.104 101.82H221.119C221.225 102.19 221.285 102.571 221.298 102.955C221.325 103.725 221.345 104.698 223.259 105.019C226.446 105.553 228.147 103.563 228.446 103.173C228.751 103.708 229.109 104.21 229.515 104.673Z",fill:"black"}),Object(g.createElement)("path",{opacity:"0.1",d:"M191.915 92.7262L190.731 95.023C190.357 94.9909 189.987 94.9135 189.631 94.7926L189.528 94.67C190.018 94.8563 191.638 91.78 191.638 91.78L191.69 91.8217C191.832 92.3585 191.915 92.7262 191.915 92.7262Z",fill:"black"}),Object(g.createElement)("path",{opacity:"0.1",d:"M227.652 135.769C223.838 137.426 210.645 136.015 210.645 136.015C210.685 135.874 210.707 135.729 210.711 135.583C211.069 135.034 211.337 134.706 211.337 134.706L227.142 134.088C227.142 134.088 227.399 134.791 227.652 135.769Z",fill:"black"}),Object(g.createElement)("path",{d:"M221.109 101.958L219.349 102.71C219.084 102.708 218.825 102.63 218.602 102.485C218.379 102.341 218.202 102.135 218.092 101.894C217.683 101.043 216.239 101.894 216.239 101.894C216.239 101.894 211.827 101.56 210.199 102.384C210.199 102.384 207.569 101.271 207.199 101.198C206.829 101.124 206.272 100.828 206.013 100.901C205.753 100.975 205.422 100.411 205.235 100.457C205.049 100.504 204.976 100.087 204.382 99.9377C203.789 99.7882 203.569 99.9745 202.912 99.3078C202.255 98.641 196.835 96.0109 196.835 96.0109L194.384 94.0107L191.791 91.937C191.791 91.937 190.161 95.0108 189.678 94.8245L194.605 100.754C194.605 100.754 198.161 103.865 200.608 104.865C203.054 105.865 202.868 106.161 202.868 106.161C202.868 106.161 210.278 109.941 211.425 109.868C212.572 109.794 212.356 117.601 211.866 118.861C211.376 120.121 210.609 129.234 210.609 129.234C210.609 129.234 209.873 131.161 210.645 132.495C210.645 132.495 210.829 135.237 210.645 135.718C210.645 135.718 223.919 137.137 227.686 135.458C227.686 135.458 228.242 129.308 227.686 128.531C227.13 127.754 228.206 126.021 228.206 126.021L230.576 120.724L236.356 114.907C236.356 114.907 237.243 110.054 233.28 106.943L230.649 104.607C230.649 104.607 229.179 103.335 228.747 103.254C228.316 103.173 228.475 103.254 228.475 103.254C228.475 103.254 226.759 105.757 223.24 105.164C221.333 104.843 221.313 103.869 221.279 103.102C221.269 102.715 221.212 102.331 221.109 101.958Z",fill:"#67647E"}),Object(g.createElement)("path",{opacity:"0.1",d:"M228.353 121.901C228.353 121.901 220.2 122.234 218.572 124.795C218.572 124.795 220.685 123.793 222.573 124.09C224.46 124.386 228.353 121.901 228.353 121.901Z",fill:"black"}),Object(g.createElement)("path",{opacity:"0.1",d:"M219.349 130.827C219.349 130.827 223.203 131.087 224.019 130.271C224.835 129.455 224.838 128.974 224.838 128.974L219.349 130.827Z",fill:"black"}),Object(g.createElement)("path",{opacity:"0.1",d:"M229.132 114.044C229.132 114.044 225.87 117.898 229.836 119.564L229.132 114.044Z",fill:"black"}),Object(g.createElement)("path",{opacity:"0.1",d:"M209.829 106.6C209.829 106.6 211.015 109.019 211.608 109.179L209.829 106.6Z",fill:"black"}),Object(g.createElement)("path",{opacity:"0.1",d:"M205.828 105.561C205.828 105.561 208.792 108.23 209.348 108.487C209.348 108.487 206.272 105.561 205.828 105.561Z",fill:"black"}),Object(g.createElement)("path",{opacity:"0.1",d:"M217.646 103.006C217.646 103.006 214.792 107.267 216.645 109.87C216.645 109.86 215.609 106.784 217.646 103.006Z",fill:"black"}),Object(g.createElement)("path",{d:"M224.838 135.274L223.965 136.096L223.842 136.208L222.832 137.164C222.761 137.218 222.69 137.272 222.617 137.321C218.506 140.263 217.682 135.792 217.682 135.792C217.682 135.792 215.869 136.978 215.609 136.015C215.349 135.051 219.832 133.681 220.511 133.755C220.571 133.761 220.631 133.761 220.69 133.755C221.014 133.701 221.326 133.59 221.612 133.429L221.81 133.323C222.039 133.195 222.26 133.055 222.475 132.904L224.838 135.274Z",fill:"#CC818C"}),Object(g.createElement)("path",{opacity:"0.1",d:"M229.27 96.0032C229.272 97.0235 229.009 98.0269 228.506 98.9148C228.003 99.8026 227.278 100.544 226.402 101.067C226.32 100.93 226.247 100.786 226.186 100.638C225.975 100.148 225.845 99.6187 225.632 99.126C225.399 98.5882 225.066 98.0992 224.652 97.6847C224.581 97.6026 224.491 97.5401 224.389 97.5033C224.294 97.4902 224.197 97.4967 224.104 97.5224C224.011 97.5481 223.925 97.5925 223.85 97.6528C223.6 97.8219 223.322 97.944 223.029 98.0132C222.882 98.0468 222.729 98.042 222.585 97.999C222.44 97.9561 222.31 97.8765 222.205 97.768C221.975 97.4935 222.007 97.0915 222.073 96.741C222.217 95.9738 222.458 95.2188 222.46 94.4393C222.463 93.6598 222.164 92.8215 221.48 92.4342C220.882 92.0935 220.139 92.1891 219.475 91.9979C219.372 91.971 219.271 91.9366 219.173 91.895C219.99 91.0568 221.038 90.4812 222.183 90.2418C223.329 90.0024 224.52 90.1102 225.604 90.5513C226.688 90.9923 227.616 91.7467 228.269 92.7179C228.922 93.689 229.27 94.8329 229.27 96.0032Z",fill:"black"}),Object(g.createElement)("path",{d:"M218.771 90.954C218.665 91.0104 218.548 91.1134 218.58 91.231C218.6 91.2871 218.638 91.3352 218.687 91.3683C218.962 91.5898 219.279 91.7525 219.619 91.8463C220.283 92.0277 221.028 91.9419 221.626 92.2826C222.303 92.6674 222.607 93.5082 222.607 94.2877C222.607 95.0671 222.362 95.8221 222.222 96.5869C222.156 96.9399 222.122 97.3419 222.352 97.6164C222.457 97.7242 222.588 97.8034 222.732 97.8463C222.876 97.8892 223.029 97.8945 223.176 97.8615C223.469 97.7937 223.747 97.6724 223.997 97.5036C224.072 97.4429 224.159 97.3981 224.252 97.372C224.345 97.3459 224.443 97.3389 224.538 97.3517C224.639 97.39 224.729 97.4523 224.801 97.533C225.216 97.9482 225.548 98.4381 225.781 98.9768C225.997 99.467 226.124 99.9941 226.335 100.489C226.519 100.994 226.863 101.425 227.316 101.715C227.786 101.975 228.438 101.96 228.801 101.558C229.164 101.156 229.134 100.604 229.306 100.122C229.6 99.2808 230.421 98.7537 230.936 98.0282C231.512 97.2119 231.671 96.1873 231.828 95.1995C231.898 94.8885 231.903 94.5664 231.843 94.2533C231.776 94.0461 231.689 93.8458 231.583 93.6552C231.01 92.4689 231.022 90.9761 230.112 90.0299C229.426 89.3191 228.384 89.1034 227.404 88.9808C226.423 88.8583 225.394 88.7896 224.553 88.2724C224.317 88.0942 224.057 87.9506 223.781 87.8459C223.641 87.7967 223.488 87.7982 223.349 87.8502C223.211 87.9021 223.094 88.0013 223.021 88.1303C223.004 88.2057 222.969 88.2761 222.921 88.3362C222.877 88.3615 222.827 88.3763 222.777 88.3792C222.726 88.3822 222.676 88.3733 222.629 88.3533L221.325 88.0028L221.474 88.6597C221 88.6796 220.528 88.5959 220.089 88.4146C220.065 88.7872 220.484 89.0274 220.614 89.3755C220.661 89.5338 220.663 89.702 220.619 89.8613C220.576 90.0206 220.489 90.1647 220.369 90.2775C219.896 90.753 219.305 90.6623 218.771 90.954Z",fill:"#2F2E41"}),Object(g.createElement)("path",{opacity:"0.1",d:"M224.838 135.274L223.965 136.095L221.798 133.321C222.027 133.192 222.248 133.052 222.463 132.901L224.838 135.274Z",fill:"black"}),Object(g.createElement)("path",{d:"M234.662 112.54L236.378 114.91V117.393C236.378 117.393 237.155 120.023 236.378 122.653L236.461 124.95C236.461 124.95 235.635 127.06 235.932 127.58C235.932 127.58 235.785 129.137 233.784 130.21C231.784 131.284 229.514 133.828 229.514 133.828C229.514 133.828 228.661 135.458 226.365 135.088L224.178 136.015L221.661 132.791L225.068 130.938C225.068 130.938 226.254 129.347 226.958 129.421L229.848 126.048C229.848 126.048 229.921 124.974 230.662 124.974C230.662 124.974 229.291 123.864 229.772 123.197C230.252 122.531 229.848 119.565 229.848 119.565L234.662 112.54Z",fill:"#67647E"}),Object(g.createElement)("path",{opacity:"0.1",d:"M231.476 123.344C231.476 123.344 235.366 123.27 235.846 124.271C236.326 125.271 232.65 122.788 231.476 123.344Z",fill:"black"}),Object(g.createElement)("path",{opacity:"0.1",d:"M223.86 136.014C223.86 136.079 223.855 136.144 223.843 136.208C223.798 136.506 223.651 136.78 223.428 136.983C223.205 137.185 222.918 137.305 222.617 137.321H222.548C222.201 137.321 221.868 137.183 221.623 136.937C221.377 136.692 221.239 136.359 221.239 136.012C221.24 135.867 221.265 135.724 221.313 135.588C220.695 135.098 220.661 134.195 220.678 133.749C221.002 133.695 221.314 133.585 221.6 133.423C221.761 133.886 221.977 134.328 222.244 134.74C222.344 134.716 222.446 134.704 222.548 134.703C222.721 134.703 222.891 134.737 223.05 134.803C223.209 134.869 223.354 134.965 223.476 135.087C223.597 135.209 223.694 135.353 223.76 135.512C223.826 135.672 223.86 135.842 223.86 136.014Z",fill:"black"}),Object(g.createElement)("path",{d:"M221.717 133.129C221.717 133.129 220.84 133.328 220.84 133.487C220.84 133.646 220.641 135.093 221.604 135.693C222.568 136.294 222.47 134.865 222.47 134.865C222.47 134.865 221.641 133.595 221.717 133.129Z",fill:"#575988"}),Object(g.createElement)("path",{d:"M222.695 137.323C223.418 137.323 224.004 136.737 224.004 136.015C224.004 135.292 223.418 134.706 222.695 134.706C221.972 134.706 221.386 135.292 221.386 136.015C221.386 136.737 221.972 137.323 222.695 137.323Z",fill:"#E4AAB4"}),Object(g.createElement)("path",{d:"M222.695 137.137C223.315 137.137 223.818 136.635 223.818 136.015C223.818 135.394 223.315 134.892 222.695 134.892C222.075 134.892 221.573 135.394 221.573 136.015C221.573 136.635 222.075 137.137 222.695 137.137Z",fill:"#DCE6F2"}),Object(g.createElement)("path",{opacity:"0.1",d:"M217.597 136.522C217.597 136.522 220.364 138.816 223.918 137.36V138.473C223.918 138.473 221.548 140.103 219.401 139.115C217.254 138.127 217.597 136.522 217.597 136.522Z",fill:"black"}),Object(g.createElement)("path",{opacity:"0.1",d:"M217.597 136.225C217.597 136.225 220.364 138.522 223.918 137.063V138.176C223.918 138.176 221.548 139.806 219.401 138.818C217.254 137.831 217.597 136.225 217.597 136.225Z",fill:"black"}),Object(g.createElement)("path",{d:"M217.597 136.225C217.597 136.225 220.364 138.522 223.918 137.063V138.176C223.918 138.176 221.548 139.806 219.401 138.818C217.254 137.831 217.597 136.225 217.597 136.225Z",fill:"#444053"}),Object(g.createElement)("path",{opacity:"0.05",d:"M217.67 136.225C217.67 136.225 220.438 138.522 223.994 137.063V138.176C223.994 138.176 221.624 139.806 219.474 138.818C217.325 137.831 217.67 136.225 217.67 136.225Z",fill:"black"}),Object(g.createElement)("path",{opacity:"0.05",d:"M215.298 143.179L217.925 150.108C217.925 150.108 218.295 145.65 217.513 144.316C217.291 143.935 216.965 143.625 216.572 143.424C216.179 143.222 215.737 143.137 215.298 143.179Z",fill:"black"}),Object(g.createElement)("g",{opacity:"0.1"},Object(g.createElement)("path",{opacity:"0.1",d:"M221.754 88.2718L221.732 88.1713L221.311 88.0586L221.357 88.2645C221.489 88.2743 221.622 88.2767 221.754 88.2718Z",fill:"black"}),Object(g.createElement)("path",{opacity:"0.1",d:"M220.595 89.9436L220.639 89.9043C220.76 89.7917 220.847 89.6476 220.89 89.4882C220.933 89.3288 220.931 89.1606 220.884 89.0023C220.833 88.8794 220.762 88.7658 220.673 88.6665C220.465 88.6255 220.262 88.5656 220.065 88.4875C220.041 88.8577 220.457 89.0979 220.587 89.446C220.648 89.6059 220.65 89.7819 220.595 89.9436Z",fill:"black"}),Object(g.createElement)("path",{opacity:"0.1",d:"M227.603 101.334C227.146 101.046 226.797 100.616 226.61 100.109C226.402 99.6186 226.272 99.0892 226.058 98.5989C225.826 98.0602 225.493 97.5703 225.078 97.1552C225.007 97.0736 224.917 97.0112 224.816 96.9738C224.72 96.9612 224.624 96.968 224.531 96.9937C224.438 97.0194 224.352 97.0634 224.276 97.1233C224.027 97.2924 223.749 97.4145 223.455 97.4836C223.309 97.5168 223.156 97.5117 223.011 97.4688C222.867 97.4259 222.736 97.3466 222.632 97.2385C222.401 96.964 222.433 96.5595 222.499 96.209C222.644 95.4442 222.884 94.6868 222.887 93.9098C222.889 93.1328 222.59 92.2896 221.906 91.9047C221.308 91.564 220.565 91.6596 219.901 91.4684C219.56 91.3747 219.243 91.212 218.967 90.9904C218.95 90.9762 218.933 90.9606 218.918 90.9438C218.862 90.9652 218.808 90.9906 218.756 91.0198C218.649 91.0762 218.533 91.1792 218.563 91.2968C218.585 91.3526 218.623 91.4004 218.673 91.4341C218.947 91.6561 219.264 91.8188 219.605 91.9121C220.269 92.0935 221.012 92.0077 221.61 92.3484C222.286 92.7332 222.59 93.574 222.59 94.3535C222.59 95.1329 222.345 95.8879 222.203 96.6527C222.137 97.0057 222.105 97.4077 222.335 97.6822C222.44 97.7902 222.571 97.8695 222.715 97.9125C222.859 97.9554 223.012 97.9605 223.159 97.9273C223.452 97.8595 223.73 97.7381 223.98 97.5694C224.055 97.5088 224.141 97.464 224.234 97.4379C224.327 97.4117 224.424 97.4048 224.519 97.4175C224.62 97.4552 224.71 97.5175 224.781 97.5988C225.195 98.0148 225.528 98.5045 225.762 99.0426C225.978 99.5328 226.105 100.06 226.316 100.555C226.5 101.06 226.844 101.491 227.296 101.781C227.765 102.04 228.419 102.026 228.767 101.624C228.863 101.515 228.938 101.388 228.988 101.251C228.79 101.398 228.554 101.485 228.308 101.5C228.062 101.514 227.817 101.457 227.603 101.334Z",fill:"black"}),Object(g.createElement)("path",{opacity:"0.1",d:"M229.721 99.4493C230.091 98.9811 230.579 98.5815 230.927 98.0913C230.995 97.9933 231.059 97.8903 231.118 97.7874C230.669 98.3585 230.054 98.812 229.721 99.4493Z",fill:"black"}))),Object(g.createElement)("defs",null,Object(g.createElement)("linearGradient",{id:"paint0_linear",x1:"211.591",y1:"185.849",x2:"211.591",y2:"86.973",gradientUnits:"userSpaceOnUse"},Object(g.createElement)("stop",{stopColor:"#808080",stopOpacity:"0.25"}),Object(g.createElement)("stop",{offset:"0.54",stopColor:"#808080",stopOpacity:"0.12"}),Object(g.createElement)("stop",{offset:"1",stopColor:"#808080",stopOpacity:"0.1"})),Object(g.createElement)("clipPath",{id:"sales-tax-svg"},Object(g.createElement)("path",{d:"M0 6C0 2.6863 2.68629 0 6 0H289C292.314 0 295 2.68629 295 6V160H0V6Z",fill:"white"}))))},A=function(){return Object(g.createElement)("svg",{width:"295",height:"160",viewBox:"0 0 295 160",fill:"none",xmlns:"http://www.w3.org/2000/svg"},Object(g.createElement)("g",{clipPath:"url(#shipping-labels-svg)"},Object(g.createElement)("path",{d:"M0 6C0 2.6863 2.68629 0 6 0H289C292.314 0 295 2.68629 295 6V160H0V6Z",fill:"#F7EDF7"}),Object(g.createElement)("path",{opacity:"0.05",d:"M297.839 152.033C290.282 167.747 274.937 178.255 259.035 185.184C237.627 194.516 214.051 198.218 190.8 196.652C186.725 196.379 182.663 195.942 178.613 195.342C164.546 193.274 150.833 189.248 137.864 183.381C134.121 181.682 130.454 179.827 126.862 177.816C120.864 174.465 115.117 170.676 109.666 166.48C108.295 165.425 106.943 164.343 105.61 163.235C104.686 162.466 103.77 161.681 102.84 160.918C100.878 159.31 98.8582 157.782 96.6056 156.638C95.9259 156.292 95.2292 155.982 94.518 155.709C87.3847 152.974 79.1593 154.006 71.7331 156.139C66.0845 157.762 60.5781 159.983 54.9352 161.569C52.4252 162.296 49.8677 162.844 47.2815 163.209C41.5074 163.946 35.6437 163.426 30.0854 161.686L29.6105 161.537C28.8141 161.285 28.0243 161.009 27.2412 160.709L26.7663 160.525C26.0078 160.231 25.2655 159.915 24.5392 159.576L24.0643 159.358C23.3058 159.003 22.5635 158.627 21.8373 158.232C21.5756 158.094 21.3168 157.945 21.0608 157.805C16.9289 155.478 13.1731 152.531 9.92289 149.063C9.82903 148.969 9.74086 148.871 9.63847 148.776C9.18624 148.283 8.74255 147.782 8.31307 147.268C8.1538 147.079 7.99452 146.89 7.83809 146.695C7.32803 146.068 6.83598 145.427 6.36195 144.771C6.29085 144.677 6.22259 144.579 6.15433 144.485C4.21218 141.776 2.60205 138.841 1.359 135.743C1.31918 135.648 1.28221 135.551 1.24808 135.456C0.868851 134.472 0.522806 133.471 0.209944 132.455C0.0819547 132.03 -0.0403466 131.595 -0.148426 131.17C-0.185401 131.044 -0.219532 130.915 -0.250818 130.789C-1.82082 124.559 -2 118.082 -2 111.643C-2 110.892 -2 110.142 -2 109.393C-1.95449 98.9768 -1.79522 88.3833 -0.270727 78.1109C-0.270727 78.0392 -0.250817 77.9675 -0.239441 77.8987C0.270798 74.4405 0.964835 71.0124 1.83967 67.6291C2.75527 64.0792 3.92542 60.601 5.34088 57.222C8.84778 48.9077 13.9474 41.3417 19.6102 34.3291C33.8739 16.6827 52.5802 1.86901 74.4749 -3.67574C98.0675 -9.64768 124.288 -3.92517 143.319 11.3473C149.121 16.0033 154.334 21.5165 160.85 25.0859C166.539 28.1937 173.197 29.481 179.289 27.0354C184.324 25.0142 187.6 24.0108 193.254 24.3175C204.96 24.985 216.5 27.4215 227.487 31.5452C227.931 31.7086 228.375 31.8778 228.815 32.0469C257.459 43.0934 282.082 65.0403 294.881 93.2428C295.22 93.9882 295.549 94.7394 295.868 95.4963C303.499 113.464 306.257 134.522 297.839 152.033Z",fill:"#7F54B3"}),Object(g.createElement)("path",{d:"M238.595 87.2081H167V163.188H238.595V87.2081Z",fill:"white"}),Object(g.createElement)("path",{d:"M170.312 125.071V90.0034H174.389L194.39 90.6387L193.498 95.848V125.071H170.312Z",fill:"#DCDCDE"}),Object(g.createElement)("path",{opacity:"0.5",d:"M190.44 93.561H172.86V94.5775H190.44V93.561Z",fill:"#7F54B3"}),Object(g.createElement)("path",{opacity:"0.5",d:"M190.44 98.1351H172.86V99.1516H190.44V98.1351Z",fill:"#7F54B3"}),Object(g.createElement)("path",{opacity:"0.5",d:"M190.44 102.709H180.504V103.726H190.44V102.709Z",fill:"#7F54B3"}),Object(g.createElement)("path",{opacity:"0.5",d:"M177.701 101.184H172.86V105.25H177.701V101.184Z",fill:"#7F54B3"}),Object(g.createElement)("path",{opacity:"0.5",d:"M190.441 117.702H179.994V121.768H190.441V117.702Z",fill:"#7F54B3"}),Object(g.createElement)("path",{opacity:"0.5",d:"M190.44 107.283H172.86V108.3H190.44V107.283Z",fill:"#7F54B3"}),Object(g.createElement)("path",{opacity:"0.5",d:"M190.44 111.857H172.86V112.874H190.44V111.857Z",fill:"#7F54B3"}),Object(g.createElement)("path",{d:"M209.04 140.572H196.555V162.934H209.04V140.572Z",fill:"#DCDCDE"}),Object(g.createElement)("path",{d:"M112.731 122.276H61.5195V163.442H112.731V122.276Z",fill:"white"}),Object(g.createElement)("path",{d:"M88.7813 151.499H80.1187V163.188H88.7813V151.499Z",fill:"#DCDCDE"}),Object(g.createElement)("path",{d:"M185.577 98.8864C183.646 102.254 170.048 96.6409 170.048 96.6409L144.067 86.2055L137.786 81.5686L133.785 78.6144L142.672 76.1334L142.921 76.2524L149.113 79.2016L172.864 93.3487C172.864 93.3487 190.613 90.1043 185.577 98.8864Z",fill:"#A0616A"}),Object(g.createElement)("path",{d:"M120.088 59.773C120.088 59.773 116.745 61.1143 116.358 64.8721C115.971 68.63 115.939 89.8314 115.939 89.8314C115.939 89.8314 124.674 84.8159 129.371 84.7133C134.068 84.6107 144.979 76.708 144.979 76.708C144.979 76.708 124.421 58.1896 120.088 59.773Z",fill:"#67647E"}),Object(g.createElement)("path",{opacity:"0.1",d:"M120.088 59.773C120.088 59.773 116.745 61.1143 116.358 64.8721C115.971 68.63 115.939 89.8314 115.939 89.8314C115.939 89.8314 124.674 84.8159 129.371 84.7133C134.068 84.6107 144.979 76.708 144.979 76.708C144.979 76.708 124.421 58.1896 120.088 59.773Z",fill:"black"}),Object(g.createElement)("path",{d:"M152.86 129.137L145.726 129.645C145.726 129.645 145.507 142.995 144.579 146.417L156.809 156.073L154.261 147.942L152.86 129.137Z",fill:"#A0616A"}),Object(g.createElement)("path",{d:"M157.501 156.35L157.501 156.35L157.501 156.35C156.994 156.171 157.064 156.073 157.064 156.073V155.565L144.599 145.588C144.478 146.035 144.344 146.329 144.197 146.417C143.74 146.69 143.086 147.585 142.435 148.621C141.678 149.834 141.193 151.196 141.013 152.614C140.833 154.032 140.964 155.472 141.394 156.835V156.835L140.885 165.475H142.923L143.433 157.598H145.98C145.98 157.598 150.312 163.188 151.586 165.221C152.86 167.254 158.465 167.762 164.07 163.951C168.807 160.73 160.263 157.328 157.501 156.35Z",fill:"#444053"}),Object(g.createElement)("path",{d:"M90.1827 99.0244C90.1827 99.0244 77.6983 114.017 89.6732 123.165C94.9424 127.191 99.5703 134.808 103.101 142.076C105.871 147.808 109.869 152.863 114.813 156.884C119.757 160.906 125.526 163.795 131.713 165.348C131.713 165.348 174.262 115.796 159.739 101.82C145.216 87.8434 105.779 99.1902 105.779 99.1902L90.1827 99.0244Z",fill:"#444053"}),Object(g.createElement)("path",{d:"M125.529 86.3823C125.585 89.729 124.943 93.4035 122.031 94.1963C116.425 95.721 115.916 94.9587 115.916 94.9587C115.916 94.9587 114.897 96.7375 115.152 98.7704C115.406 100.803 112.731 99.1516 112.731 99.1516C112.731 99.1516 85.5965 102.582 86.6157 98.7704C87.6348 94.9587 97.3166 81.7447 97.3166 81.7447C97.3166 81.7447 113.113 59.6368 116.425 60.3992C116.538 60.4246 116.652 60.4551 116.772 60.4881C120.145 61.469 125.87 65.7965 126.362 67.5144C126.872 69.2931 124.833 80.4742 124.833 80.4742C125.248 82.4178 125.481 84.3957 125.529 86.3823Z",fill:"#67647E"}),Object(g.createElement)("path",{d:"M165.599 117.575C162.287 119.608 160.249 105.123 160.249 105.123L136.299 90.6388L130.852 85.0508L127.381 81.4907L136.554 80.4742L136.78 80.6318L142.414 84.5401L163.561 102.328C163.561 102.328 168.911 115.542 165.599 117.575Z",fill:"#A0616A"}),Object(g.createElement)("path",{opacity:"0.1",d:"M124.833 80.4741C125.248 82.4178 125.481 84.3957 125.529 86.3823C123.748 86.705 122.14 86.8219 121.012 86.5729C116.425 85.5564 106.744 88.3517 106.744 88.3517C106.744 88.3517 111.839 67.7684 113.113 64.2108C113.417 63.3632 113.901 62.5914 114.533 61.9487C115.164 61.3059 115.928 60.8076 116.772 60.488C120.145 61.4689 125.87 65.7965 126.362 67.5143C126.872 69.2931 124.833 80.4741 124.833 80.4741Z",fill:"black"}),Object(g.createElement)("path",{d:"M124.717 57.2728C119.214 54.6655 116.866 48.0884 119.472 42.5824C122.077 37.0763 128.651 34.7264 134.154 37.3336C139.657 39.9409 142.006 46.518 139.4 52.024C136.794 57.5301 130.221 59.88 124.717 57.2728Z",fill:"#2F2E41"}),Object(g.createElement)("path",{opacity:"0.1",d:"M138.082 82.5072C138.082 82.5072 134.724 83.8743 130.852 85.0508L127.381 81.4907L136.554 80.4742L136.78 80.6318C137.601 81.7982 138.082 82.5072 138.082 82.5072Z",fill:"black"}),Object(g.createElement)("path",{d:"M132.131 54.7977L128.077 71.9742L118.3 62.9339C118.3 62.9339 123.308 56.0031 123.308 54.195C123.308 52.3869 132.131 54.7977 132.131 54.7977Z",fill:"#A0616A"}),Object(g.createElement)("path",{d:"M118.719 58.8744C118.719 58.8744 115.152 59.3827 113.878 62.9403C112.604 66.4979 107.508 87.0811 107.508 87.0811C107.508 87.0811 117.19 84.2859 121.776 85.3023C126.362 86.3188 138.847 81.2365 138.847 81.2365C138.847 81.2365 123.305 58.3662 118.719 58.8744Z",fill:"#67647E"}),Object(g.createElement)("path",{d:"M127.459 59.6811C123.207 57.6664 121.392 52.5841 123.406 48.3295C125.419 44.0748 130.499 42.2589 134.751 44.2736C139.003 46.2883 140.818 51.3706 138.805 55.6253C136.791 59.8799 131.712 61.6958 127.459 59.6811Z",fill:"#9F616A"}),Object(g.createElement)("path",{d:"M122.429 55.079C118.426 53.1828 116.718 48.3995 118.613 44.3951C120.508 40.3907 125.289 38.6816 129.291 40.5778C133.294 42.474 135.002 47.2573 133.107 51.2617C131.211 55.2661 126.431 56.9752 122.429 55.079Z",fill:"#2F2E41"}),Object(g.createElement)("path",{d:"M117.254 40.5669C113.557 38.8153 111.979 34.3967 113.729 30.6977C115.48 26.9987 119.896 25.4199 123.593 27.1715C127.29 28.9231 128.868 33.3417 127.117 37.0407C125.367 40.7397 120.951 42.3185 117.254 40.5669Z",fill:"#2F2E41"}),Object(g.createElement)("path",{d:"M112.267 36.8522C112.843 37.8846 113.659 38.7679 114.645 39.4279C115.632 40.088 116.762 40.5057 117.939 40.6462C119.116 40.7866 120.308 40.6457 121.413 40.2351C122.518 39.8246 123.506 39.1564 124.292 38.2865C123.746 39.1413 123.025 39.8724 122.177 40.4339C121.328 40.9954 120.369 41.375 119.361 41.5487C118.352 41.7224 117.317 41.6865 116.318 41.4432C115.32 41.1999 114.382 40.7546 113.562 40.1353C112.742 39.5159 112.059 38.7361 111.555 37.845C111.052 36.9538 110.739 35.9708 110.636 34.9579C110.534 33.945 110.644 32.9243 110.959 31.9601C111.275 30.996 111.79 30.1093 112.471 29.3562C111.761 30.4654 111.368 31.7467 111.332 33.0656C111.297 34.3845 111.619 35.6924 112.267 36.8522Z",fill:"#2F2E41"}),Object(g.createElement)("path",{d:"M130.914 53.5515C127.412 51.8923 125.63 48.3155 126.933 45.5625C128.236 42.8095 132.131 41.9227 135.633 43.5819C139.135 45.241 140.917 48.8178 139.614 51.5708C138.311 54.3239 134.416 55.2106 130.914 53.5515Z",fill:"#2F2E41"}),Object(g.createElement)("path",{d:"M131.416 56.008C130.665 55.6525 130.537 54.3498 131.129 53.0984C131.721 51.8471 132.81 51.1208 133.56 51.4764C134.311 51.8319 134.439 53.1346 133.847 54.3859C133.254 55.6373 132.166 56.3635 131.416 56.008Z",fill:"#A0616A"})),Object(g.createElement)("defs",null,Object(g.createElement)("clipPath",{id:"shipping-labels-svg"},Object(g.createElement)("path",{d:"M0 6C0 2.6863 2.68629 0 6 0H289C292.314 0 295 2.68629 295 6V160H0V6Z",fill:"white"}))))},D=function(){return Object(g.createElement)("svg",{width:"295",height:"160",viewBox:"0 0 295 160",fill:"none",xmlns:"http://www.w3.org/2000/svg"},Object(g.createElement)("g",{clipPath:"url(#speed-svg)"},Object(g.createElement)("path",{d:"M0 6C0 2.6863 2.68629 0 6 0H289C292.314 0 295 2.68629 295 6V160H0V6Z",fill:"#F7EDF7"}),Object(g.createElement)("path",{opacity:"0.05",d:"M287.559 129.935C280.58 144.446 266.411 154.149 251.726 160.548C231.957 169.166 210.186 172.584 188.715 171.138C184.952 170.886 181.2 170.482 177.46 169.928C164.471 168.018 151.807 164.301 139.831 158.883C136.374 157.314 132.988 155.601 129.672 153.744C124.133 150.649 118.825 147.151 113.792 143.276C112.526 142.302 111.278 141.303 110.047 140.279C109.193 139.569 108.347 138.844 107.489 138.14C105.676 136.654 103.812 135.243 101.731 134.187C101.104 133.868 100.46 133.582 99.8036 133.329C93.2164 130.803 85.6207 131.757 78.763 133.726C73.5468 135.225 68.462 137.277 63.2511 138.741C60.9333 139.412 58.5715 139.918 56.1833 140.255C50.8512 140.935 45.4365 140.456 40.3037 138.849L39.8651 138.712C39.1297 138.479 38.4004 138.224 37.6772 137.946L37.2386 137.777C36.5382 137.505 35.8527 137.213 35.1821 136.901L34.7435 136.699C34.0431 136.371 33.3576 136.024 32.687 135.659C32.4453 135.532 32.2063 135.394 31.9699 135.264C28.1544 133.116 24.6861 130.394 21.6847 127.192C21.598 127.105 21.5166 127.015 21.422 126.927C21.0044 126.472 20.5947 126.009 20.1981 125.535C20.051 125.36 19.904 125.185 19.7595 125.005C19.2885 124.426 18.8341 123.834 18.3964 123.229C18.3307 123.142 18.2677 123.052 18.2046 122.964C16.4112 120.463 14.9243 117.753 13.7764 114.892C13.7396 114.805 13.7055 114.715 13.674 114.627C13.3238 113.718 13.0042 112.794 12.7153 111.855C12.5971 111.463 12.4842 111.061 12.3844 110.669C12.3502 110.553 12.3187 110.434 12.2898 110.317C10.84 104.564 10.6746 98.5833 10.6746 92.637C10.6746 91.9433 10.6746 91.2506 10.6746 90.5587C10.7166 80.9403 10.8637 71.1578 12.2714 61.6718C12.2714 61.6056 12.2898 61.5394 12.3003 61.4758C12.7715 58.2824 13.4124 55.1167 14.2203 51.9925C15.0658 48.7143 16.1464 45.5024 17.4535 42.382C20.6919 34.7042 25.4011 27.7175 30.6304 21.2417C43.8021 4.94627 61.0764 -8.7334 81.2949 -13.8537C103.081 -19.3684 127.295 -14.084 144.868 0.0192566C150.226 4.31881 155.041 9.40996 161.058 12.7061C166.311 15.576 172.459 16.7647 178.085 14.5064C182.734 12.6399 185.76 11.7133 190.981 11.9966C201.791 12.613 212.447 14.8629 222.593 18.6709C223.003 18.8218 223.413 18.9781 223.82 19.1343C250.271 29.3351 273.008 49.6018 284.827 75.6453C285.141 76.3336 285.445 77.0273 285.739 77.7262C292.786 94.3181 295.333 113.764 287.559 129.935Z",fill:"#7F54B3"}),Object(g.createElement)("path",{d:"M245.704 26.7351H50.4275C48.9672 26.7351 47.7834 27.9277 47.7834 29.3988V136.883C47.7834 138.354 48.9672 139.546 50.4275 139.546H245.704C247.165 139.546 248.349 138.354 248.349 136.883V29.3988C248.349 27.9277 247.165 26.7351 245.704 26.7351Z",fill:"white"}),Object(g.createElement)("path",{d:"M245.704 26.7351H50.4275C48.9672 26.7351 47.7834 27.9277 47.7834 29.3988V136.883C47.7834 138.354 48.9672 139.546 50.4275 139.546H245.704C247.165 139.546 248.349 138.354 248.349 136.883V29.3988C248.349 27.9277 247.165 26.7351 245.704 26.7351Z",fill:"white"}),Object(g.createElement)("path",{opacity:"0.04",d:"M245.704 26.7351H50.4275C48.9672 26.7351 47.7834 27.9277 47.7834 29.3988V136.883C47.7834 138.354 48.9672 139.546 50.4275 139.546H245.704C247.165 139.546 248.349 138.354 248.349 136.883V29.3988C248.349 27.9277 247.165 26.7351 245.704 26.7351Z",fill:"white"}),Object(g.createElement)("path",{d:"M247.33 25.4404H48.8017C48.5316 25.4404 48.2727 25.5485 48.0817 25.7409C47.8907 25.9333 47.7834 26.1942 47.7834 26.4662V30.8019H248.34V26.4662C248.34 26.1957 248.234 25.936 248.045 25.7439C247.856 25.5517 247.599 25.4427 247.33 25.4404Z",fill:"#5A5773"}),Object(g.createElement)("path",{d:"M51.7886 29.5076C52.5486 29.5076 53.1646 28.8869 53.1646 28.1213C53.1646 27.3557 52.5486 26.7351 51.7886 26.7351C51.0287 26.7351 50.4126 27.3557 50.4126 28.1213C50.4126 28.8869 51.0287 29.5076 51.7886 29.5076Z",fill:"white"}),Object(g.createElement)("path",{d:"M55.4935 29.5073C56.2534 29.5073 56.8695 28.8867 56.8695 28.1211C56.8695 27.3555 56.2534 26.7349 55.4935 26.7349C54.7335 26.7349 54.1174 27.3555 54.1174 28.1211C54.1174 28.8867 54.7335 29.5073 55.4935 29.5073Z",fill:"white"}),Object(g.createElement)("path",{d:"M59.198 29.5073C59.958 29.5073 60.5741 28.8867 60.5741 28.1211C60.5741 27.3555 59.958 26.7349 59.198 26.7349C58.4381 26.7349 57.822 27.3555 57.822 28.1211C57.822 28.8867 58.4381 29.5073 59.198 29.5073Z",fill:"white"}),Object(g.createElement)("path",{opacity:"0.2",d:"M118.126 40.8855H64.3022V45.4878H118.126V40.8855Z",fill:"#646970"}),Object(g.createElement)("path",{opacity:"0.1",d:"M231.83 59.3391H64.3022V130.135H231.83V59.3391Z",fill:"#5A5773"}),Object(g.createElement)("path",{opacity:"0.1",d:"M162.391 63.9563H159.523V58.3431C159.523 52.0091 154.51 46.7436 148.223 46.6476C146.706 46.6316 145.202 46.9179 143.796 47.4902C142.391 48.0625 141.111 48.9094 140.032 49.9821C138.953 51.0548 138.095 52.3321 137.507 53.7404C136.92 55.1486 136.616 56.66 136.611 58.1874V63.9563H133.749C132.484 63.9602 131.272 64.4682 130.378 65.3692C129.483 66.2702 128.979 67.4912 128.975 68.7654V91.8451C128.979 93.1194 129.483 94.3403 130.378 95.2413C131.272 96.1424 132.484 96.6503 133.749 96.6542H162.391C163.656 96.6503 164.868 96.1423 165.762 95.2412C166.656 94.3401 167.16 93.1192 167.163 91.8451V68.7654C167.16 67.4914 166.656 66.2704 165.762 65.3693C164.868 64.4682 163.656 63.9602 162.391 63.9563ZM149.742 78.9596V87.2257C149.745 87.6634 149.583 88.0858 149.288 88.4074C148.993 88.7289 148.588 88.9256 148.155 88.9575C147.929 88.9681 147.703 88.9325 147.49 88.8526C147.278 88.7728 147.084 88.6504 146.921 88.4929C146.757 88.3354 146.626 88.1461 146.537 87.9363C146.448 87.7266 146.402 87.5008 146.402 87.2727V78.9553C145.627 78.5748 145.004 77.9411 144.633 77.1577C144.262 76.3742 144.166 75.4873 144.359 74.6415C144.553 73.7957 145.026 73.0411 145.7 72.5007C146.374 71.9603 147.211 71.6662 148.072 71.6662C148.934 71.6662 149.77 71.9603 150.444 72.5007C151.119 73.0411 151.591 73.7957 151.785 74.6415C151.979 75.4873 151.882 76.3742 151.511 77.1577C151.141 77.9411 150.517 78.5748 149.742 78.9553V78.9596ZM156.187 63.9563H139.952V58.1874C139.952 56.0194 140.806 53.9402 142.328 52.4072C143.85 50.8742 145.914 50.013 148.066 50.013C150.218 50.013 152.282 50.8742 153.804 52.4072C155.325 53.9402 156.18 56.0194 156.18 58.1874L156.187 63.9563Z",fill:"black"}),Object(g.createElement)("path",{d:"M162.391 63.5298H159.523V57.9166C159.523 51.5826 154.51 46.3171 148.223 46.2211C146.706 46.2051 145.202 46.4914 143.796 47.0637C142.391 47.636 141.111 48.4829 140.032 49.5556C138.953 50.6283 138.095 51.9056 137.507 53.3138C136.92 54.7221 136.616 56.2335 136.611 57.7609V63.5298H133.749C132.484 63.5337 131.272 64.0416 130.378 64.9427C129.483 65.8437 128.979 67.0647 128.975 68.3389V91.4186C128.979 92.6928 129.483 93.9137 130.378 94.8148C131.272 95.7158 132.484 96.2238 133.749 96.2277H162.391C163.656 96.2238 164.868 95.7158 165.762 94.8147C166.656 93.9136 167.16 92.6926 167.163 91.4186V68.3389C167.16 67.0649 166.656 65.8439 165.762 64.9428C164.868 64.0417 163.656 63.5337 162.391 63.5298ZM149.742 78.533V86.7992C149.745 87.2369 149.583 87.6593 149.288 87.9808C148.993 88.3024 148.588 88.499 148.155 88.5309C147.929 88.5416 147.703 88.5059 147.49 88.4261C147.278 88.3462 147.084 88.2239 146.921 88.0664C146.757 87.9089 146.626 87.7195 146.537 87.5098C146.448 87.3001 146.402 87.0743 146.402 86.8461V78.5288C145.627 78.1483 145.004 77.5146 144.633 76.7312C144.262 75.9477 144.166 75.0607 144.359 74.2149C144.553 73.3692 145.026 72.6145 145.7 72.0742C146.374 71.5338 147.211 71.2396 148.072 71.2396C148.934 71.2396 149.77 71.5338 150.444 72.0742C151.119 72.6145 151.591 73.3692 151.785 74.2149C151.979 75.0607 151.882 75.9477 151.511 76.7312C151.141 77.5146 150.517 78.1483 149.742 78.5288V78.533ZM156.187 63.5298H139.952V57.7609C139.952 55.5929 140.806 53.5137 142.328 51.9807C143.85 50.4477 145.914 49.5864 148.066 49.5864C150.218 49.5864 152.282 50.4477 153.804 51.9807C155.325 53.5137 156.18 55.5929 156.18 57.7609L156.187 63.5298Z",fill:"#444053"}),Object(g.createElement)("path",{opacity:"0.1",d:"M231.83 52.5251H214.873V56.558H231.83V52.5251Z",fill:"#5A5773"}),Object(g.createElement)("path",{d:"M237.601 174.735C237.489 174.17 237.298 173.623 237.034 173.112L234.493 169.291H234.508C234.508 169.291 234.108 167.371 234.508 166.429C234.908 165.486 233.081 163.168 233.081 163.168C233.081 163.168 232.859 162.586 233.439 161.869C234.019 161.152 233.081 159.054 233.081 159.054C233.081 159.054 232.637 154.671 232.592 154.002C232.548 153.332 232.19 149.621 232.19 149.621L231.343 141.754L229.836 120.903L229.809 120.512C229.995 120.421 230.094 120.363 230.094 120.363L229.794 108.834L230.054 108.597C232.328 106.524 237.572 101.726 237.519 101.621C237.466 101.517 236.884 93.6089 236.816 91.6298C236.758 90.2233 236.452 88.8384 235.914 87.5393C235.783 87.277 235.404 85.5474 235.247 84.8159C235.205 84.6155 235.177 84.4896 235.177 84.4896C235.177 84.4896 233.64 81.538 233.774 80.1966C233.907 78.8552 234.174 77.8507 230.897 77.3815C230.897 77.3815 228.145 76.9677 226.506 75.8396C225.537 75.1638 224.478 74.6296 223.36 74.2529C223.36 74.2529 222.442 72.5467 221.802 73.1247C221.532 72.5159 221.329 71.8786 221.199 71.2245L221.18 71.1051C222.394 70.2526 223.267 68.9933 223.644 67.5521C223.665 67.471 223.682 67.3878 223.701 67.3068C223.765 67.3285 223.831 67.3407 223.898 67.3431C224.455 67.3431 224.798 66.7182 225.319 66.5198C225.53 66.4367 225.791 66.4239 225.954 66.2554C226.007 66.1904 226.047 66.1152 226.071 66.0342C226.095 65.9532 226.103 65.8681 226.093 65.7841C226.099 65.7259 226.099 65.6674 226.093 65.6092C226.094 65.5886 226.094 65.568 226.093 65.5474V65.5687C225.952 64.7924 225.355 64.1035 225.42 63.3145C225.484 62.5723 226.131 61.9197 226.079 61.1967C226.078 61.1396 226.073 61.0825 226.064 61.0261V61.0517C225.985 60.7694 225.84 60.5105 225.64 60.2967C225.412 59.984 225.113 59.7309 224.768 59.5588C224.474 59.4287 224.133 59.3989 223.858 59.2432C223.049 58.7996 223.051 57.6437 222.571 56.8546C222.365 56.5252 222.073 56.2595 221.726 56.0868C221.38 55.914 220.993 55.841 220.608 55.8757C220.007 55.9355 219.463 56.2575 218.868 56.362C218.055 56.507 217.228 56.2404 216.457 55.9355C215.686 55.6305 214.905 55.2957 214.078 55.2957C213.25 55.2957 212.354 55.7222 212.105 56.5091C211.971 56.9357 212.037 57.3942 211.935 57.8271C211.753 58.5906 211.088 59.1366 210.4 59.5162C209.977 59.7529 209.473 60.0238 209.342 60.4716C209.342 60.4588 209.342 60.4482 209.342 60.4375C209.332 60.4732 209.325 60.5096 209.321 60.5463C209.316 60.5938 209.316 60.6416 209.321 60.6892C209.321 60.9963 209.482 61.2884 209.59 61.5806C209.791 62.1365 209.786 62.7468 209.577 63.2995C209.42 63.7047 209.153 64.0609 209.001 64.464C208.929 64.6517 208.882 64.8482 208.861 65.0483V65.0142C208.856 65.1051 208.856 65.1963 208.861 65.2872C208.859 65.5986 208.931 65.906 209.073 66.1829C209.17 66.3741 209.304 66.5437 209.468 66.6818C209.631 66.8199 209.82 66.9236 210.024 66.9869C210.447 67.085 210.712 66.667 211.158 66.7736C211.238 66.793 211.317 66.818 211.393 66.8483C211.408 66.9442 211.423 67.0402 211.44 67.1341C211.71 68.5694 212.469 69.8645 213.586 70.7958C213.586 70.847 213.603 70.8982 213.61 70.9515C213.745 71.8018 213.804 72.6626 213.785 73.5235C213.785 73.5235 213.119 72.5403 212.204 74.4384C212.204 74.4384 209.818 75.8246 208.995 75.9825C208.171 76.1403 205.248 77.1661 205.248 77.1661C204.807 77.4873 204.276 77.6598 203.732 77.6587C202.82 77.6587 202.062 79.6698 202.172 80.7639C202.282 81.8579 202.106 82.6641 201.257 82.7089C200.408 82.7537 200.872 84.4875 200.878 84.5174L200.8 84.8906C200.635 85.6541 200.275 87.292 200.148 87.5479C199.61 88.847 199.304 90.2318 199.244 91.6383C199.178 93.6174 198.609 101.495 198.543 101.63C198.499 101.717 202.091 105.025 204.617 107.337L204.983 107.67L203.821 118.606C203.855 119.027 203.979 119.436 204.185 119.804C204.391 120.173 204.674 120.491 205.015 120.738C205.015 120.866 205.015 120.997 205.002 121.131C204.951 122.41 204.85 123.959 204.646 124.364C204.291 125.081 204.38 128.924 204.38 128.924C204.38 128.924 204.022 136.746 203.577 137.597C203.133 138.448 203.042 140.233 203.175 140.583C203.309 140.933 202.728 150.327 202.728 150.327L202.284 154.53C202.284 154.53 202.417 158.553 202.015 158.642C201.613 158.732 201.391 161.504 201.391 161.504C201.391 161.504 199.966 163.471 200.588 164.185C201.211 164.899 200.497 165.215 200.432 165.392C200.366 165.569 199.073 166.245 200.008 168.745C200.017 168.769 200.027 168.794 200.038 168.817C199.161 170.043 196.384 174 196.553 174.601C196.678 174.984 196.943 175.304 197.294 175.497C197.948 175.891 199.07 176.075 200.855 175.497C203.819 174.535 203.607 173.842 203.607 173.842C203.622 173.518 203.76 173.212 203.993 172.987C204.225 172.763 204.534 172.636 204.856 172.635C206.082 172.545 206.996 171.406 206.996 171.406L206.852 170.867L206.655 170.12C206.679 169.907 206.829 169.534 207.502 169.327C208.529 169.013 208.26 167.047 208.26 167.047C208.26 167.047 208.171 164.991 208.616 164.722C209.06 164.454 208.885 161.056 208.885 161.056C208.885 161.056 209.376 158.597 210.087 156.943C210.798 155.288 211.649 145.456 211.649 145.456C211.649 145.456 212.227 140.628 212.763 139.241C213.298 137.855 213.79 133.967 213.79 133.967C213.79 133.967 217.09 127.529 217.132 126.098C217.132 126.098 217.556 124.756 217.979 126.232C218.402 127.708 219.592 131.24 219.592 131.24L220.75 135.575L222.133 142.057L223.026 147.512C223.026 147.512 222.89 149.568 223.238 150.284C223.585 151.001 224.084 152.652 223.818 152.965C223.551 153.279 224.351 154.754 224.576 155.066C224.8 155.377 224.576 161.995 224.576 161.995C224.576 161.995 225.6 167.627 227.071 168.606C227.174 168.674 227.283 168.731 227.397 168.777C227.376 169.387 227.355 170.203 227.383 170.63C227.379 170.725 227.395 170.82 227.429 170.909C227.563 171.088 229.078 172.296 229.392 172.296C229.705 172.296 230.816 173.078 230.863 173.458C230.909 173.837 234.121 175.445 234.576 175.492C235.031 175.539 237.237 175.938 237.54 175.313C237.615 175.13 237.636 174.93 237.601 174.735ZM229.711 94.1805L229.94 94.3788C229.94 94.3788 230.175 96.2235 230.342 96.7759C230.509 97.3283 230.308 98.4031 230.308 98.4031C230.324 98.8043 230.403 99.2003 230.543 99.5761C230.742 99.9792 230.141 100.856 230.141 100.856H229.605L229.438 93.9501L229.711 94.1805ZM213.785 73.5619V73.5214C213.781 73.5342 213.779 73.5491 213.779 73.5619H213.785ZM205.561 100.146C205.479 99.9669 205.466 99.7634 205.527 99.5761C205.575 99.4748 205.612 99.3691 205.639 99.2605C205.705 98.9803 205.746 98.6948 205.762 98.4074C205.762 98.4038 205.762 98.4003 205.762 98.3967C205.743 98.2944 205.572 97.3048 205.73 96.7802C205.889 96.2555 206.13 94.3831 206.13 94.3831L206.283 94.253L206.636 93.9437C206.636 93.9437 206.636 93.8286 206.662 93.6388C206.736 95.2596 206.795 97.051 206.7 97.1406C206.522 97.3176 205.874 99.06 206.031 99.1282C206.082 99.1517 206.012 99.8491 205.893 100.787C205.76 100.586 205.649 100.371 205.561 100.146Z",fill:"url(#paint0_linear)"}),Object(g.createElement)("path",{d:"M222.623 75.2659V77.9189L217.221 80.6551C217.221 80.6551 211.857 77.3857 213.18 76.0848C214.026 75.2616 213.863 73.001 213.635 71.4463C213.501 70.542 213.347 69.8787 213.347 69.8787C213.347 69.8787 222.983 67.1063 221.527 69.2112C221.04 69.915 221.002 70.8256 221.165 71.7278C221.495 73.5171 222.623 75.2659 222.623 75.2659Z",fill:"#CC818C"}),Object(g.createElement)("path",{d:"M207.824 101.21L207.127 109.851C207.127 109.851 206.083 108.898 204.733 107.657C202.228 105.356 198.672 102.065 198.714 101.977C198.78 101.843 199.349 94.0034 199.411 92.0328C199.469 90.6341 199.771 89.2566 200.304 87.9637C200.431 87.7078 200.789 86.0785 200.939 85.3171C200.99 85.0804 201.022 84.9268 201.022 84.9268L202.19 84.4534C202.19 84.4534 207.059 89.9258 207.059 90.026C207.059 90.1262 206.727 94.3297 206.727 94.3297L206.382 94.6326L206.232 94.7626C206.232 94.7626 205.999 96.5989 205.834 97.1491C205.668 97.6993 205.846 98.6548 205.865 98.7571C205.85 99.0445 205.809 99.3299 205.745 99.6102C205.717 99.718 205.68 99.8229 205.632 99.9237C205.573 100.11 205.585 100.313 205.666 100.491C205.76 100.738 205.883 100.974 206.03 101.193L207.824 101.21Z",fill:"#444053"}),Object(g.createElement)("path",{d:"M237.332 101.977C237.383 102.082 232.19 106.857 229.94 108.919L228.919 109.851L228.229 101.209H230.018C230.018 101.209 230.615 100.341 230.416 99.9405C230.277 99.5666 230.199 99.1727 230.185 98.7739C230.185 98.7739 230.382 97.7076 230.217 97.1552C230.052 96.6028 229.819 94.7688 229.819 94.7688L229.593 94.5726L229.324 94.3358C229.324 94.3358 228.991 90.1324 228.991 90.0321C228.991 89.9319 233.86 84.4595 233.86 84.4595L235.02 84.9265C235.02 84.9265 235.046 85.0524 235.088 85.2528C235.245 85.9801 235.62 87.7011 235.749 87.9634C236.282 89.2563 236.584 90.6338 236.642 92.0326C236.697 94.0031 237.264 101.843 237.332 101.977Z",fill:"#444053"}),Object(g.createElement)("path",{d:"M234.349 166.476C233.951 167.41 234.349 169.323 234.349 169.323C234.349 169.323 228.422 169.634 226.974 168.655C225.526 167.676 224.501 162.069 224.501 162.069C224.501 162.069 224.713 155.486 224.501 155.175C224.29 154.863 223.485 153.396 223.75 153.085C224.014 152.773 223.538 151.127 223.176 150.414C222.814 149.702 222.964 147.657 222.964 147.657L222.08 142.227L220.712 135.778L219.55 131.461C219.55 131.461 218.358 127.947 217.954 126.48C217.549 125.012 217.122 126.345 217.122 126.345C217.079 127.77 213.811 134.176 213.811 134.176C213.811 134.176 213.324 138.047 212.795 139.425C212.265 140.803 211.689 145.61 211.689 145.61C211.689 145.61 210.843 155.396 210.144 157.043C209.445 158.689 208.965 161.135 208.965 161.135C208.965 161.135 209.143 164.518 208.7 164.784C208.258 165.051 208.33 167.098 208.33 167.098C208.33 167.098 208.594 169.054 207.578 169.367C206.562 169.681 206.732 170.346 206.732 170.346C206.732 170.346 201.079 171.28 200.152 168.787C199.225 166.294 200.506 165.631 200.575 165.452C200.645 165.273 201.35 164.963 200.732 164.249C200.114 163.535 201.526 161.581 201.526 161.581C201.526 161.581 201.748 158.824 202.144 158.734C202.54 158.644 202.411 154.641 202.411 154.641L202.851 150.459C202.851 150.459 203.427 141.116 203.294 140.76C203.16 140.404 203.249 138.627 203.692 137.774C204.134 136.921 204.485 129.141 204.485 129.141C204.485 129.141 204.397 125.317 204.75 124.605C204.962 124.202 205.051 122.651 205.101 121.387C205.14 120.421 205.148 119.621 205.148 119.621L210.093 117.753L216.444 115.708L221.787 118.288L229.605 119.8L229.703 121.159L231.195 141.912L232.042 149.741C232.042 149.741 232.395 153.432 232.44 154.1C232.484 154.767 232.925 159.129 232.925 159.129C232.925 159.129 233.852 161.219 233.278 161.931C232.705 162.643 232.925 163.21 232.925 163.21C232.925 163.21 234.747 165.541 234.349 166.476Z",fill:"#444053"}),Object(g.createElement)("path",{opacity:"0.1",d:"M221.531 69.2109C221.044 69.9147 221.006 70.8254 221.169 71.7275C220.057 72.5181 218.717 72.9186 217.356 72.8674C215.996 72.8161 214.69 72.316 213.639 71.4438C213.506 70.5396 213.351 69.8763 213.351 69.8763C213.351 69.8763 222.987 67.1081 221.531 69.2109Z",fill:"black"}),Object(g.createElement)("path",{d:"M223.783 66.4897C223.783 67.7256 223.42 68.9337 222.738 69.9613C222.056 70.9889 221.088 71.7898 219.954 72.2628C218.821 72.7357 217.574 72.8595 216.371 72.6184C215.167 72.3773 214.062 71.7821 213.195 70.9082C212.327 70.0343 211.736 68.9209 211.497 67.7088C211.258 66.4967 211.381 65.2403 211.85 64.0985C212.32 62.9567 213.115 61.9807 214.135 61.2941C215.155 60.6075 216.354 60.241 217.581 60.241C218.396 60.2371 219.205 60.396 219.959 60.7086C220.713 61.0213 221.399 61.4814 221.975 62.0624C222.552 62.6435 223.009 63.3339 223.319 64.0938C223.63 64.8537 223.787 65.668 223.783 66.4897Z",fill:"#CC818C"}),Object(g.createElement)("path",{opacity:"0.1",d:"M225.075 76.8738L223.043 113.332L212.003 110.996L209.816 96.3812L211.982 76.7607L213.612 76.9719L216.487 77.3408L219.334 77.5178L222.421 77.1723L225.075 76.8738Z",fill:"black"}),Object(g.createElement)("path",{d:"M225.075 77.1404L223.043 113.598L212.003 111.263L209.816 96.6479L211.982 77.0295L213.612 77.2385L216.487 77.6075L219.334 77.7845L222.421 77.439L225.075 77.1404Z",fill:"white"}),Object(g.createElement)("path",{d:"M216 78.1191L219.975 78.2535L218.858 79.8295C218.858 79.8295 218.936 83.0136 219.467 83.9264C219.999 84.8391 219.842 98.9403 219.842 98.9403L218.784 100.964L216.974 98.695L216.997 80.0769L216 78.1191Z",fill:"#7F54B3"}),Object(g.createElement)("path",{opacity:"0.1",d:"M216 78.1191L219.975 78.2535L218.858 79.8295C218.858 79.8295 218.936 83.0136 219.467 83.9264C219.999 84.8391 219.842 98.9403 219.842 98.9403L218.784 100.964L216.974 98.695L216.997 80.0769L216 78.1191Z",fill:"black"}),Object(g.createElement)("path",{opacity:"0.1",d:"M222.225 73.9817L218.517 78.1191L220.636 80.3434L224.148 76.8949L222.225 73.9817Z",fill:"black"}),Object(g.createElement)("path",{d:"M222.225 73.7151L218.517 77.8524L220.636 80.0768L224.148 76.6283L222.225 73.7151Z",fill:"white"}),Object(g.createElement)("path",{opacity:"0.1",d:"M216.95 77.9187L213.194 74.1375L212.841 76.1166L214.564 80.4544L216.95 77.9187Z",fill:"black"}),Object(g.createElement)("path",{d:"M217.082 77.652L213.328 73.8708L212.975 75.85L214.698 80.1878L217.082 77.652Z",fill:"white"}),Object(g.createElement)("path",{opacity:"0.1",d:"M229.722 121.165C227.919 122.03 225.988 122.592 224.006 122.83C220.363 123.297 217.979 118.627 217.979 118.627L216.588 120.45C216.146 122.387 209.412 122.875 206.674 122.141C206.106 122 205.572 121.746 205.104 121.393C205.142 120.427 205.15 119.627 205.15 119.627L210.095 117.759L216.446 115.714L221.789 118.294L229.607 119.806L229.722 121.165Z",fill:"black"}),Object(g.createElement)("path",{opacity:"0.1",d:"M225.075 77.1426L223.045 113.598L212.003 111.263L209.812 96.65L211.975 77.0295L213.605 77.2428C213.564 77.9575 213.484 78.6694 213.366 79.3755C213.102 80.6231 214.736 89.4757 214.736 89.4757C214.736 89.4757 217.841 99.4033 219.239 97.9723C220.636 96.5413 222.626 88.9852 222.626 88.9852C223.974 86.1829 222.649 78.3219 222.55 78.1641C222.48 77.9316 222.438 77.6919 222.423 77.4497L225.075 77.1426Z",fill:"black"}),Object(g.createElement)("path",{opacity:"0.1",d:"M229.845 105.353L229.938 108.925L228.917 109.857L228.229 101.209H229.753L229.845 105.353Z",fill:"black"}),Object(g.createElement)("path",{opacity:"0.1",d:"M205.868 98.7637C205.852 99.051 205.812 99.3364 205.747 99.6167C205.747 99.5378 205.747 99.493 205.73 99.4866C205.666 99.4695 205.743 99.1433 205.868 98.7637Z",fill:"black"}),Object(g.createElement)("path",{opacity:"0.1",d:"M207.824 101.21L207.127 109.851C207.127 109.851 206.084 108.898 204.733 107.657L204.894 106.125C204.894 106.125 205.464 102.363 205.671 100.508C205.765 100.755 205.887 100.991 206.035 101.21H207.824Z",fill:"black"}),Object(g.createElement)("path",{d:"M213.813 74.0032C213.813 74.0032 213.152 73.0243 212.246 74.9139C212.246 74.9139 209.884 76.2937 209.071 76.4494C208.258 76.6051 205.366 77.6288 205.366 77.6288C204.929 77.9468 204.404 78.1177 203.865 78.1171C202.959 78.1171 202.208 80.1197 202.318 81.2095C202.428 82.2993 202.252 83.1012 201.414 83.1459C200.575 83.1907 201.037 84.9459 201.037 84.9459L206.624 91.3972C206.624 91.3972 206.977 97.3367 206.801 97.5158C206.626 97.6949 205.984 99.4352 206.139 99.4949C206.293 99.5546 205.292 106.123 205.292 106.123L203.946 118.87C203.946 118.87 203.946 121.003 206.685 121.739C209.424 122.474 216.163 121.988 216.597 120.052L217.987 118.226C217.987 118.226 220.371 122.899 224.014 122.432C227.658 121.965 229.978 120.63 229.978 120.63L229.58 105.353L229.315 94.3424L235.004 84.9267C235.004 84.9267 233.479 81.99 233.613 80.6614C233.746 79.3327 234.009 78.3261 230.763 77.8591C230.763 77.8591 228.026 77.4475 226.413 76.3236C225.454 75.653 224.407 75.1217 223.301 74.7454C223.301 74.7454 222.391 73.0393 221.758 73.6236C221.758 73.6236 222.393 76.0357 222.34 76.3961C222.287 76.7565 222.439 78.3858 222.539 78.5543C222.638 78.7228 223.964 86.5731 222.615 89.3754C222.615 89.3754 220.636 96.9315 219.228 98.3625C217.82 99.7935 214.725 89.866 214.725 89.866C214.725 89.866 213.091 81.0112 213.355 79.7657C213.62 78.5202 213.813 74.0032 213.813 74.0032Z",fill:"#444053"}),Object(g.createElement)("path",{d:"M218.538 103.167C219.074 103.167 219.509 102.729 219.509 102.188C219.509 101.648 219.074 101.209 218.538 101.209C218.001 101.209 217.566 101.648 217.566 102.188C217.566 102.729 218.001 103.167 218.538 103.167Z",fill:"#50575E"}),Object(g.createElement)("path",{d:"M218.538 107.782C219.074 107.782 219.509 107.344 219.509 106.804C219.509 106.263 219.074 105.825 218.538 105.825C218.001 105.825 217.566 106.263 217.566 106.804C217.566 107.344 218.001 107.782 218.538 107.782Z",fill:"#50575E"}),Object(g.createElement)("path",{opacity:"0.1",d:"M223.783 66.4897C223.785 67.0229 223.718 67.554 223.584 68.07C223.454 68.01 223.345 67.9113 223.271 67.787C223.198 67.6628 223.164 67.519 223.174 67.3748C223.201 67.121 223.369 66.8885 223.333 66.6368C223.28 66.2487 222.814 66.0909 222.568 65.7838C222.266 65.4127 222.331 64.8731 222.357 64.3933C222.382 63.9134 222.261 63.3269 221.815 63.1627C221.681 63.1137 221.535 63.1094 221.406 63.054C221.055 62.9047 220.947 62.4653 220.712 62.1625C220.242 61.5526 219.308 61.5654 218.595 61.8554C218.284 62.0054 217.966 62.1392 217.642 62.2563C217.48 62.314 217.307 62.3372 217.136 62.3243C216.964 62.3115 216.797 62.2629 216.645 62.1817C216.505 62.0921 216.393 61.9684 216.249 61.8789C215.771 61.5888 215.144 61.8789 214.729 62.2521C214.314 62.6253 213.982 63.1265 213.459 63.3547C213.224 63.4613 212.934 63.5253 212.824 63.7556C212.769 63.881 212.746 64.0179 212.756 64.1544C212.756 64.984 212.854 65.8264 212.682 66.639C212.572 67.1615 212.208 67.7544 211.681 67.6904C211.615 67.6806 211.551 67.6642 211.488 67.6413C211.329 66.7872 211.349 65.9091 211.547 65.0631C211.744 64.2171 212.114 63.4219 212.634 62.7282C213.153 62.0346 213.811 61.4577 214.564 61.0344C215.317 60.6112 216.15 60.3509 217.009 60.2702C217.868 60.1895 218.734 60.2901 219.552 60.5657C220.37 60.8412 221.122 61.2857 221.76 61.8706C222.398 62.4555 222.908 63.168 223.257 63.9626C223.606 64.7572 223.787 65.6164 223.788 66.4854L223.783 66.4897Z",fill:"black"}),Object(g.createElement)("path",{d:"M211.211 67.2875C211.37 67.3237 211.52 67.4069 211.683 67.4282C212.21 67.4922 212.574 66.8993 212.684 66.3768C212.856 65.5643 212.767 64.7219 212.761 63.8923C212.749 63.7559 212.771 63.6187 212.826 63.4935C212.947 63.2632 213.237 63.1992 213.461 63.0925C213.974 62.8622 214.308 62.3717 214.731 61.99C215.155 61.6082 215.771 61.3267 216.249 61.6167C216.391 61.702 216.505 61.83 216.645 61.9196C216.798 61.9996 216.965 62.0475 217.137 62.0603C217.309 62.0732 217.481 62.0507 217.644 61.9942C217.972 61.8961 218.279 61.7234 218.595 61.5933C219.302 61.3032 220.238 61.2926 220.712 61.8982C220.947 62.2032 221.055 62.6404 221.406 62.7897C221.535 62.8452 221.681 62.8516 221.815 62.9006C222.261 63.0691 222.376 63.6513 222.357 64.1311C222.338 64.611 222.274 65.1506 222.568 65.5216C222.814 65.8245 223.28 65.9823 223.333 66.3747C223.366 66.6264 223.201 66.861 223.174 67.1126C223.168 67.2061 223.18 67.3 223.21 67.3887C223.24 67.4775 223.287 67.5594 223.349 67.6296C223.41 67.6998 223.485 67.757 223.569 67.7979C223.653 67.8387 223.744 67.8624 223.836 67.8676C224.387 67.8676 224.728 67.247 225.242 67.0486C225.454 66.9655 225.71 66.9527 225.877 66.7842C225.939 66.7032 225.983 66.6096 226.006 66.5098C226.029 66.41 226.029 66.3064 226.008 66.2062C225.905 65.3894 225.255 64.6792 225.325 63.8603C225.39 63.0755 226.112 62.3909 225.96 61.6189C225.882 61.3342 225.737 61.0729 225.536 60.8575C225.309 60.5477 225.014 60.2957 224.673 60.1217C224.378 59.9938 224.038 59.9639 223.769 59.8082C222.968 59.3668 222.971 58.2151 222.499 57.4303C222.296 57.106 222.009 56.8441 221.668 56.6733C221.328 56.5025 220.947 56.4294 220.568 56.4621C219.973 56.5218 219.433 56.8396 218.845 56.9462C218.038 57.0912 217.221 56.8247 216.457 56.5197C215.692 56.2147 214.92 55.8799 214.101 55.8799C213.281 55.8799 212.394 56.3064 212.144 57.087C212.013 57.5135 212.079 57.9699 211.977 58.3986C211.799 59.1599 211.13 59.7016 210.457 60.0791C209.994 60.3393 209.437 60.6379 209.382 61.1689C209.346 61.5058 209.53 61.8087 209.646 62.135C209.844 62.687 209.84 63.2922 209.634 63.8411C209.479 64.2442 209.221 64.5982 209.064 64.9991C208.953 65.2713 208.901 65.564 208.91 65.8582C208.92 66.1523 208.991 66.441 209.119 66.7053C209.218 66.8979 209.355 67.0683 209.521 67.2058C209.687 67.3433 209.88 67.4451 210.087 67.505C210.504 67.6052 210.766 67.1894 211.211 67.2875Z",fill:"#2F2E41"}),Object(g.createElement)("g",{opacity:"0.1"},Object(g.createElement)("path",{opacity:"0.1",d:"M212.685 65.9121C212.574 66.4346 212.208 67.0275 211.681 66.9635C211.518 66.9422 211.37 66.859 211.209 66.8227C210.767 66.7246 210.504 67.1426 210.087 67.036C209.88 66.9762 209.687 66.8744 209.52 66.7369C209.354 66.5993 209.217 66.429 209.117 66.2362C209.007 66.0192 208.94 65.7822 208.921 65.5389C208.878 65.9165 208.947 66.2983 209.117 66.6372C209.217 66.8299 209.354 67.0003 209.52 67.1378C209.687 67.2753 209.88 67.3771 210.087 67.4369C210.51 67.535 210.767 67.117 211.209 67.2237C211.364 67.278 211.522 67.3243 211.681 67.3623C212.208 67.4284 212.574 66.8355 212.685 66.313C212.771 65.8514 212.805 65.3813 212.786 64.9119C212.784 65.2478 212.75 65.5827 212.685 65.9121Z",fill:"black"}),Object(g.createElement)("path",{opacity:"0.1",d:"M209.784 62.7001C209.811 62.3506 209.764 61.9994 209.645 61.67C209.549 61.451 209.468 61.2259 209.401 60.9961C209.392 61.0319 209.385 61.0682 209.38 61.1049C209.344 61.4397 209.53 61.7447 209.645 62.071C209.719 62.2735 209.766 62.4851 209.784 62.7001Z",fill:"black"}),Object(g.createElement)("path",{opacity:"0.1",d:"M225.958 61.5762C225.858 62.1819 225.371 62.7513 225.323 63.3889C225.311 63.4981 225.311 63.6082 225.323 63.7174C225.429 62.9731 226.083 62.3141 225.958 61.5762Z",fill:"black"}),Object(g.createElement)("path",{opacity:"0.1",d:"M225.994 66.0762C225.976 66.1653 225.934 66.2479 225.873 66.315C225.717 66.4835 225.45 66.4963 225.238 66.5795C224.724 66.7778 224.392 67.4048 223.833 67.3984C223.69 67.3903 223.552 67.3386 223.439 67.2503C223.326 67.162 223.241 67.0411 223.198 66.9036C223.185 66.9499 223.175 66.9969 223.168 67.0444C223.162 67.1378 223.174 67.2314 223.204 67.3199C223.235 67.4084 223.282 67.49 223.343 67.56C223.405 67.63 223.48 67.687 223.563 67.7277C223.647 67.7684 223.738 67.7921 223.831 67.7972C224.383 67.7972 224.722 67.1766 225.236 66.9804C225.448 66.8972 225.706 66.8844 225.871 66.716C225.933 66.635 225.977 66.5413 226 66.4415C226.023 66.3418 226.024 66.2382 226.003 66.138C226 66.1124 225.996 66.0954 225.994 66.0762Z",fill:"black"}),Object(g.createElement)("path",{opacity:"0.1",d:"M223.339 65.8993C223.287 65.5111 222.821 65.3533 222.575 65.0462C222.425 64.8445 222.343 64.5991 222.342 64.3467C222.325 64.7434 222.332 65.1486 222.575 65.4471C222.819 65.7457 223.189 65.8737 223.308 66.1808C223.338 66.0902 223.348 65.9943 223.339 65.8993Z",fill:"black"}),Object(g.createElement)("path",{opacity:"0.1",d:"M222.355 63.6662C222.372 63.1863 222.257 62.5998 221.811 62.4356C221.679 62.3866 221.533 62.3802 221.404 62.3269C221.053 62.1776 220.943 61.7383 220.71 61.4354C220.238 60.8276 219.304 60.8383 218.593 61.1283C218.275 61.2584 217.973 61.4311 217.642 61.5293C217.48 61.5869 217.308 61.6101 217.136 61.5972C216.964 61.5844 216.797 61.5358 216.645 61.4546C216.506 61.365 216.391 61.2413 216.249 61.1518C215.769 60.8617 215.142 61.1518 214.729 61.525C214.317 61.8982 213.982 62.3972 213.459 62.6276C213.222 62.7342 212.934 62.7982 212.811 63.0285C212.758 63.1541 212.735 63.291 212.746 63.4273C212.746 63.5105 212.746 63.5937 212.746 63.6768C212.749 63.5909 212.77 63.5066 212.807 63.4295C212.93 63.1991 213.218 63.1351 213.455 63.0285C213.967 62.7982 214.302 62.3077 214.725 61.9259C215.149 61.5442 215.765 61.2627 216.245 61.5527C216.387 61.638 216.501 61.766 216.641 61.8534C216.793 61.9351 216.96 61.984 217.132 61.9968C217.303 62.0097 217.476 61.9862 217.638 61.9281C217.962 61.812 218.279 61.6789 218.589 61.5293C219.298 61.2392 220.231 61.2264 220.706 61.8342C220.938 62.1371 221.049 62.5764 221.4 62.7257C221.529 62.7811 221.675 62.7875 221.806 62.8366C222.168 62.9731 222.312 63.3825 222.344 63.7877L222.355 63.6662Z",fill:"black"})),Object(g.createElement)("g",{opacity:"0.1"},Object(g.createElement)("path",{opacity:"0.1",d:"M211.928 65.8994C211.94 65.5454 212.066 65.205 212.287 64.9292C212.508 64.6535 212.811 64.4573 213.152 64.3703C214.096 64.1378 215.086 64.183 216.006 64.5004C218.015 65.17 215.752 67.5799 215.752 67.5799C215.752 67.5799 214.246 69.0728 212.843 68.0299C212.428 67.7143 212.138 67.2609 212.024 66.7503C211.955 66.4721 211.923 66.186 211.928 65.8994Z",fill:"black"}),Object(g.createElement)("path",{opacity:"0.1",d:"M222.972 65.8991C222.96 65.5448 222.834 65.2042 222.613 64.9284C222.392 64.6526 222.088 64.4566 221.747 64.37C220.803 64.1379 219.814 64.1831 218.895 64.5001C216.886 65.1697 219.149 67.5796 219.149 67.5796C219.149 67.5796 220.652 69.0725 222.058 68.0296C222.472 67.714 222.763 67.2606 222.877 66.75C222.946 66.4718 222.978 66.1857 222.972 65.8991Z",fill:"black"}),Object(g.createElement)("path",{opacity:"0.1",d:"M215.627 64.3039V64.4041H219.295V64.2847L215.627 64.3039Z",fill:"black"}),Object(g.createElement)("path",{opacity:"0.1",d:"M216.797 65.3724H216.914V65.0333C216.914 65.0333 217.286 64.7412 217.905 65.0333V65.3362H218.116V65.1378H218.013C218.013 65.1378 218.055 64.7262 217.365 64.7923C217.365 64.7923 216.81 64.739 216.823 65.093H216.696L216.797 65.3724Z",fill:"black"})),Object(g.createElement)("path",{d:"M211.928 65.7608C211.941 65.4068 212.066 65.0664 212.287 64.7906C212.508 64.5149 212.811 64.3187 213.152 64.2317C214.096 64.0008 215.086 64.0459 216.006 64.3618C218.015 65.0336 215.752 67.4413 215.752 67.4413C215.752 67.4413 214.246 68.9342 212.843 67.8913C212.428 67.5765 212.137 67.1228 212.024 66.6117C211.955 66.3336 211.923 66.0474 211.928 65.7608Z",fill:"#2F2E41"}),Object(g.createElement)("path",{d:"M222.973 65.7608C222.961 65.4066 222.835 65.0659 222.613 64.7902C222.392 64.5144 222.088 64.3184 221.747 64.2317C220.804 64.0008 219.815 64.0459 218.896 64.3618C216.887 65.0336 219.15 67.4414 219.15 67.4414C219.15 67.4414 220.653 68.9342 222.058 67.8914C222.474 67.5765 222.764 67.1229 222.878 66.6118C222.947 66.3336 222.979 66.0475 222.973 65.7608Z",fill:"#2F2E41"}),Object(g.createElement)("path",{d:"M215.627 64.1696V64.2719H219.295V64.1504L215.627 64.1696Z",fill:"#2F2E41"}),Object(g.createElement)("path",{d:"M216.797 65.2382H216.914V64.8991C216.914 64.8991 217.286 64.6091 217.905 64.8991V65.2041H218.116V65.0036H218.013C218.013 65.0036 218.055 64.5942 217.365 64.6582C217.365 64.6582 216.81 64.607 216.823 64.9589H216.696L216.797 65.2382Z",fill:"#2F2E41"})),Object(g.createElement)("defs",null,Object(g.createElement)("linearGradient",{id:"paint0_linear",x1:"38982",y1:"103102",x2:"38982",y2:"34934.7",gradientUnits:"userSpaceOnUse"},Object(g.createElement)("stop",{stopColor:"#808080",stopOpacity:"0.25"}),Object(g.createElement)("stop",{offset:"0.54",stopColor:"#808080",stopOpacity:"0.12"}),Object(g.createElement)("stop",{offset:"1",stopColor:"#808080",stopOpacity:"0.1"})),Object(g.createElement)("clipPath",{id:"speed-svg"},Object(g.createElement)("path",{d:"M0 6C0 2.6863 2.68629 0 6 0H289C292.314 0 295 2.68629 295 6V160H0V6Z",fill:"white"}))))},U=function(e){var t=e.isJetpackSetup,n=void 0!==t&&t,r=e.isWcsSetup,c=void 0!==r&&r;return Object(g.createElement)("div",{className:"woocommerce-profile-wizard__benefits"},!n&&Object(g.createElement)(R,{title:Object(v.__)("Store management on the go","woocommerce-admin"),icon:Object(g.createElement)(B,null),description:Object(v.__)("Your store in your pocket. Manage orders, receive sales notifications, and more. Only with a Jetpack connection.","woocommerce-admin")}),(!c||!n)&&Object(g.createElement)(R,{title:Object(v.__)("Automated sales taxes","woocommerce-admin"),icon:Object(g.createElement)(F,null),description:Object(v.__)("Ensure that the correct rate of tax is charged on all of your orders automatically, and print shipping labels at home.","woocommerce-admin")}),!n&&Object(g.createElement)(R,{title:Object(v.__)("Improved speed & security","woocommerce-admin"),icon:Object(g.createElement)(D,null),description:Object(v.__)("Automatically block brute force attacks and speed up your store using our powerful, global server network to cache images.","woocommerce-admin")}),n&&!c&&Object(g.createElement)(R,{title:Object(v.__)("Print shipping labels at home","woocommerce-admin"),icon:Object(g.createElement)(A,null),description:Object(v.__)("Save time at the post office by printing shipping labels for your orders at home.","woocommerce-admin")}))},z=n(607);function q(e){var t=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){}))),!0}catch(e){return!1}}();return function(){var n,r=j()(e);if(t){var c=j()(this).constructor;n=Reflect.construct(r,arguments,c)}else n=r.apply(this,arguments);return O()(this,n)}}var G=function(e){f()(n,e);var t=q(n);function n(){return m()(this,n),t.apply(this,arguments)}return C()(n,[{key:"render",value:function(){return Object(g.createElement)("svg",{width:"161",height:"46",viewBox:"0 0 161 46",fill:"none",xmlns:"http://www.w3.org/2000/svg","aria-label":Object(v.__)("WooCommerce + Jetpack","woocommerce-admin"),className:"woocommerce-profile-wizard__benefits-logo"},Object(g.createElement)("path",{d:"M139.071 45.4503C150.906 45.4503 160.5 35.7679 160.5 23.824C160.5 11.8802 150.906 2.19775 139.071 2.19775C127.236 2.19775 117.642 11.8802 117.642 23.824C117.642 35.7679 127.236 45.4503 139.071 45.4503Z",fill:"#008710"}),Object(g.createElement)("path",{d:"M140.134 20.1919V41.1578L150.849 20.1919H140.134Z",fill:"#F6F7F7"}),Object(g.createElement)("path",{d:"M137.967 27.4144V6.48975L127.293 27.4144H137.967Z",fill:"#F6F7F7"}),Object(g.createElement)("path",{d:"M95.7021 24.668H100.542V21.6445H95.7021V16.8633H92.7138V21.6445H87.8857V24.668H92.7138V29.4609H95.7021V24.668Z",fill:"#2C3338"}),Object(g.createElement)("g",{clipPath:"url(#clip0)"},Object(g.createElement)("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M7.52123 2.25732H66.5046C70.2374 2.25732 73.2591 5.27907 73.2591 9.01182V31.5268C73.2591 35.2596 70.2374 38.2813 66.5046 38.2813H45.3524L48.2556 45.3913L35.4872 38.2813H7.55086C3.81811 38.2813 0.796359 35.2596 0.796359 31.5268V9.01182C0.766734 5.3087 3.78848 2.25732 7.52123 2.25732Z",fill:"#7F54B3"}),Object(g.createElement)("path",{d:"M4.41042 8.38982C4.82517 7.82695 5.4473 7.5307 6.2768 7.47145C7.78767 7.35295 8.6468 8.06395 8.85417 9.60445C9.77255 15.7961 10.7798 21.0397 11.8463 25.3353L18.3342 12.9817C18.9267 11.8559 19.6673 11.2634 20.5561 11.2042C21.8596 11.1153 22.6594 11.9448 22.9853 13.6927C23.7259 17.6328 24.6739 20.9805 25.7997 23.8245C26.5699 16.2997 27.8734 10.8783 29.7102 7.5307C30.1546 6.7012 30.8063 6.28645 31.6654 6.2272C32.3468 6.16795 32.9689 6.37533 33.5318 6.8197C34.0947 7.26408 34.3909 7.82695 34.4502 8.50832C34.4798 9.04157 34.3909 9.48595 34.1539 9.93033C32.9986 12.0633 32.0506 15.648 31.2803 20.625C30.5397 25.4538 30.2731 29.2162 30.4508 31.9121C30.5101 32.6527 30.3916 33.3045 30.0953 33.8673C29.7398 34.5191 29.2066 34.8746 28.5252 34.9338C27.7549 34.9931 26.955 34.6376 26.1848 33.8377C23.4297 31.0233 21.2374 26.8166 19.6377 21.2175C17.7121 25.0095 16.29 27.8535 15.3717 29.7495C13.6238 33.0971 12.1426 34.8153 10.8983 34.9042C10.0984 34.9635 9.41705 34.2821 8.82455 32.8601C7.31368 28.9792 5.6843 21.4841 3.93643 10.3747C3.84755 9.60445 3.99567 8.92307 4.41042 8.38982Z",fill:"#F6F7F7"}),Object(g.createElement)("path",{d:"M68.1043 13.041C67.0378 11.1746 65.4677 10.0489 63.3643 9.60451C62.8015 9.48601 62.2682 9.42676 61.7646 9.42676C58.9206 9.42676 56.6098 10.908 54.8027 13.8705C53.2622 16.3886 52.4919 19.1734 52.4919 22.2248C52.4919 24.5059 52.9659 26.4611 53.9139 28.0905C54.9804 29.9569 56.5506 31.0826 58.6539 31.527C59.2168 31.6455 59.7501 31.7048 60.2537 31.7048C63.1273 31.7048 65.4381 30.2235 67.2156 27.261C68.7561 24.7133 69.5263 21.9285 69.5263 18.8771C69.5263 16.5664 69.0523 14.6408 68.1043 13.041ZM64.3716 21.2471C63.9568 23.2024 63.2162 24.654 62.1201 25.6316C61.2609 26.4019 60.4611 26.7278 59.7204 26.5796C59.0094 26.4315 58.4169 25.8094 57.9726 24.654C57.6171 23.7356 57.4393 22.8173 57.4393 21.9581C57.4393 21.2175 57.4986 20.4769 57.6467 19.7955C57.9133 18.5809 58.417 17.3959 59.2168 16.2701C60.1945 14.8185 61.2313 14.226 62.2978 14.4334C63.0088 14.5815 63.6013 15.2036 64.0457 16.359C64.4012 17.2774 64.5789 18.1958 64.5789 19.0549C64.5789 19.8251 64.4901 20.5658 64.3716 21.2471Z",fill:"#F6F7F7"}),Object(g.createElement)("path",{d:"M49.5294 13.041C48.4629 11.1746 46.8631 10.0489 44.7894 9.60451C44.2265 9.48601 43.6932 9.42676 43.1896 9.42676C40.3456 9.42676 38.0349 10.908 36.2277 13.8705C34.6872 16.3886 33.917 19.1734 33.917 22.2248C33.917 24.5059 34.391 26.4611 35.339 28.0905C36.4055 29.9569 37.9756 31.0826 40.079 31.527C40.6419 31.6455 41.1751 31.7048 41.6787 31.7048C44.5524 31.7048 46.8631 30.2235 48.6406 27.261C50.1811 24.7133 50.9514 21.9285 50.9514 18.8771C50.9514 16.5664 50.4774 14.6408 49.5294 13.041ZM45.7966 21.2471C45.3819 23.2024 44.6412 24.654 43.5451 25.6316C42.686 26.4019 41.8861 26.7278 41.1455 26.5796C40.4345 26.4315 39.842 25.8094 39.3976 24.654C39.0421 23.7356 38.8644 22.8173 38.8644 21.9581C38.8644 21.2175 38.9236 20.4769 39.0717 19.7955C39.3384 18.5809 39.842 17.3959 40.6419 16.2701C41.6195 14.8185 42.6564 14.226 43.7229 14.4334C44.4339 14.5815 45.0264 15.2036 45.4707 16.359C45.8262 17.2774 46.004 18.1958 46.004 19.0549C46.004 19.8251 45.9447 20.5658 45.7966 21.2471Z",fill:"#F6F7F7"})),Object(g.createElement)("defs",null,Object(g.createElement)("clipPath",{id:"clip0"},Object(g.createElement)("rect",{x:"0.5",y:"2.19775",width:"72.8775",height:"43.2525",fill:"white"}))))}}]),n}(g.Component),W=function(e){var t=e.goToNextStep,n=Object(k.useSelect)((function(e){var t=e(S.ONBOARDING_STORE_NAME),n=t.getOnboardingError,r=t.isOnboardingRequesting;return{activePlugins:(0,e(S.PLUGINS_STORE_NAME).getActivePlugins)(),isJetpackConnected:e(S.PLUGINS_STORE_NAME).isJetpackConnected(),isProfileItemsError:Boolean(n("updateProfileItems")),isUpdatingProfileItems:r("updateProfileItems")}})),r=n.activePlugins,c=n.isJetpackConnected,o=n.isProfileItemsError,a=n.isUpdatingProfileItems,s=Object(k.useDispatch)("core/notices").createNotice,m=Object(k.useDispatch)(S.OPTIONS_STORE_NAME).updateOptions,u=Object(k.useDispatch)(S.ONBOARDING_STORE_NAME).updateProfileItems,C=Object(k.useDispatch)(S.PLUGINS_STORE_NAME).installAndActivatePlugins,d=["jetpack","woocommerce-services"].filter((function(e){return!r.includes(e)})),p=Object(g.useState)(d),b=Z()(p,1)[0],f=Object(g.useState)(!1),h=Z()(f,2),O=h[0],_=h[1],j=!b.includes("jetpack"),E=!b.includes("woocommerce-services"),y=E&&j&&c;if(Object(g.useEffect)((function(){y?t():Object(M.recordEvent)("storeprofiler_plugins_to_install",{plugins:b})}),[]),y)return null;var w=function(){var e=l()(i.a.mark((function e(){var n;return i.a.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return n=j?"skipped-wcs":"skipped",e.next=3,u({plugins:n});case 3:o?s("error",Object(v.__)("There was a problem updating your preferences","woocommerce-admin")):Object(M.recordEvent)("storeprofiler_install_plugins",{install:!1,plugins:n}),t();case 5:case"end":return e.stop()}}),e)})));return function(){return e.apply(this,arguments)}}(),L=b.map((function(e){return S.pluginNames[e]})).join(" "+Object(v.__)("and","woocommerce-admin")+" "),P=!E,N=Object(v._n)("plugin","plugins",b.length,"woocommerce-admin");return Object(g.createElement)(T.Card,{className:"woocommerce-profile-wizard__benefits-card"},Object(g.createElement)(T.CardBody,{justify:"center"},Object(g.createElement)(G,null),Object(g.createElement)("div",{className:"woocommerce-profile-wizard__step-header"},Object(g.createElement)(I.e,{variant:"title.small",as:"h2"},Object(v.sprintf)(Object(v.__)("Enhance your store with %s","woocommerce-admin"),L))),Object(g.createElement)(U,{isJetpackSetup:j&&c,isWcsSetup:E})),Object(g.createElement)(T.CardFooter,{isBorderless:!0,justify:"center"},Object(g.createElement)(T.Button,{isPrimary:!0,isBusy:O,disabled:a||O,onClick:function(){var e=j?"installed-wcs":"installed";_(!0),Object(M.recordEvent)("storeprofiler_install_plugins",{install:!0,plugins:e}),Promise.all([b.length?C(b):null,u({plugins:e}),m({woocommerce_setup_jetpack_opted_in:!0})]).then((function(){_(!1),t()})).catch((function(e,n){e&&Object(z.a)(e),n&&s("error",Object(v.__)("There was a problem updating your preferences","woocommerce-admin")),_(!1),t()}))}},Object(v.__)("Yes please!","woocommerce-admin")),Object(g.createElement)(T.Button,{isSecondary:!0,isBusy:a&&!O,disabled:a||O,className:"woocommerce-profile-wizard__skip",onClick:w},Object(v.__)("No thanks","woocommerce-admin"))),!!b.length&&Object(g.createElement)(T.CardFooter,{isBorderless:!0,justify:"center"},Object(g.createElement)("p",{className:"woocommerce-profile-wizard__benefits-install-notice"},P?x()({mixedString:Object(v.sprintf)(Object(v.__)("%1$s %2$s will be installed & activated for free, and you agree to our {{link}}Terms of Service{{/link}}.","woocommerce-admin"),L,N),components:{link:Object(g.createElement)(H.Link,{href:"https://wordpress.com/tos/",target:"_blank",type:"external"})}}):Object(v.sprintf)(Object(v.__)("%1$s %2$s will be installed & activated for free.","woocommerce-admin"),L,N))))},J=n(80),Y=n.n(J),$=n(598),Q=[{slug:"mailpoet",title:Object(v.__)("MailPoet","woocommerce-admin"),icon:"onboarding/mailpoet.png",description:Object(v.__)("The default all-in-one solution for WooCommerce email.","woocommerce-admin")},{slug:"facebook-for-woocommerce",title:Object(v.__)("Market on Facebook","woocommerce-admin"),icon:"onboarding/fb-woocommerce.png",description:Object(v.__)("Grow your business by targeting the right people and driving sales with Facebook.","woocommerce-admin")},{slug:"kliken-marketing-for-google",title:Object(v.__)("Drive traffic to your store with Google Ads & Marketing by Kliken","woocommerce-admin"),icon:"onboarding/g-shopping.png",description:Object(v.__)("Get in front of shoppers and drive traffic so you can grow your business with Smart Shopping Campaigns and free listings.","woocommerce-admin")},{slug:"mailchimp-for-woocommerce",title:Object(v.__)("Contact customers with Mailchimp","woocommerce-admin"),icon:"onboarding/mailchimp.png",description:Object(v.__)("Send targeted campaigns, recover abandoned carts and much more with Mailchimp.","woocommerce-admin")},{slug:"creative-mail-by-constant-contact",title:Object(v.__)("Email marketing for WooCommerce with Creative Mail","woocommerce-admin"),icon:"onboarding/creativemail.png",description:Object(v.__)("Create on-brand store campaigns, fast email promotions and customer retargeting with Creative Mail.","woocommerce-admin")}],K=[{key:"no",label:Object(v.__)("No","woocommerce-admin")},{key:"other",label:Object(v.__)("Yes, on another platform","woocommerce-admin")},{key:"other-woocommerce",label:Object(v.__)("Yes, I own a different store powered by WooCommerce","woocommerce-admin")},{key:"brick-mortar",label:Object(v.__)("Yes, in person at physical stores and/or events","woocommerce-admin")},{key:"brick-mortar-other",label:Object(v.__)("Yes, on another platform and in person at physical stores and/or events","woocommerce-admin")}],X=[{key:"shopify",label:Object(v.__)("Shopify","woocommerce-admin")},{key:"bigcommerce",label:Object(v.__)("BigCommerce","woocommerce-admin")},{key:"magento",label:Object(v.__)("Magento","woocommerce-admin")},{key:"wix",label:Object(v.__)("Wix","woocommerce-admin")},{key:"amazon",label:Object(v.__)("Amazon","woocommerce-admin")},{key:"ebay",label:Object(v.__)("eBay","woocommerce-admin")},{key:"etsy",label:Object(v.__)("Etsy","woocommerce-admin")},{key:"squarespace",label:Object(v.__)("Squarespace","woocommerce-admin")},{key:"other",label:Object(v.__)("Other","woocommerce-admin")}],ee=(n(177),n(88),n(142),n(247)),te=n.n(ee),ne=n(231),re=n(281),ce=function(e,t){return Object(re.formatValue)(e,"number",t)},oe=function(e,t){var n=arguments.length>2&&void 0!==arguments[2]&&arguments[2],r=arguments.length>3&&void 0!==arguments[3]?arguments[3]:ce;return n?Object(v.sprintf)(Object(v._x)("%1$s - %2$s","store product count or revenue range","woocommerce-admin"),r(e,t),r(e,n)):Object(v.sprintf)(Object(v._x)("%s+","store product count or revenue","woocommerce-admin"),r(e,t))},ie=function(e){return[{key:"0",label:Object(v.__)("I don't have any products yet.","woocommerce-admin")},{key:"1-10",label:oe(e,1,10)},{key:"11-100",label:oe(e,11,100)},{key:"101-1000",label:oe(e,101,1e3)},{key:"1000+",label:oe(e,1e3)}]},ae=te()(P.b).formatAmount,le={US:1,EU:.9,IN:71.24,GB:.76,BR:4.19,VN:23172.5,ID:14031,BD:84.87,PK:154.8,RU:63.74,TR:5.75,MX:19.37,CA:1.32},se=function(e,t){var n=Object(ne.c)(t);if("US"===n)return e;var r=le[n]||le.US,c=r.toString().split(".")[0].length,o=Math.pow(10,2+c);return Math.round(e*r/o)*o},me=function(e,t){return[{key:"none",label:Object(v.sprintf)(Object(v.__)("%s (I'm just getting started)","woocommerce-admin"),ae(0))},{key:"up-to-2500",label:Object(v.sprintf)(Object(v.__)("Up to %s","woocommerce-admin"),ae(se(2500,t)))},{key:"2500-10000",label:oe(e,se(2500,t),se(1e4,t),(function(e,t){return ae(t)}))},{key:"10000-50000",label:oe(e,se(1e4,t),se(5e4,t),(function(e,t){return ae(t)}))},{key:"50000-250000",label:oe(e,se(5e4,t),se(25e4,t),(function(e,t){return ae(t)}))},{key:"more-than-250000",label:Object(v.sprintf)(Object(v.__)("More than %s","woocommerce-admin"),ae(se(25e4,t)))},{key:"rather-not-say",label:Object(v.__)("I'd rather not say","woocommerce-admin")}]};function ue(e){var t=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){}))),!0}catch(e){return!1}}();return function(){var n,r=j()(e);if(t){var c=j()(this).constructor;n=Reflect.construct(r,arguments,c)}else n=r.apply(this,arguments);return O()(this,n)}}var Ce=Object(P.g)("wcAdminAssetUrl",""),de=function(e){f()(r,e);var t,n=ue(r);function r(e){var t;m()(this,r),t=n.call(this);var c=Object(w.get)(e,"profileItems",{}),o=Object(w.get)(c,"business_extensions",!1);return t.state={isPopoverVisible:!1},t.initialValues={other_platform:c.other_platform||"",other_platform_name:c.other_platform_name||"",product_count:c.product_count||"",selling_venues:c.selling_venues||"",revenue:c.revenue||"","facebook-for-woocommerce":!o||o.includes("facebook-for-woocommerce"),"mailchimp-for-woocommerce":!o||o.includes("mailchimp-for-woocommerce"),"creative-mail-by-constant-contact":!!o&&o.includes("creative-mail-by-constant-contact"),"kliken-marketing-for-google":!o||o.includes("kliken-marketing-for-google"),mailpoet:!o||o.includes("mailpoet"),install_extensions:!0},t.extensions=["mailpoet","facebook-for-woocommerce","mailchimp-for-woocommerce","kliken-marketing-for-google","creative-mail-by-constant-contact"],t.onContinue=t.onContinue.bind(p()(t)),t.validate=t.validate.bind(p()(t)),t}return C()(r,[{key:"onCreativeMailInstallAndActivated",value:function(){(0,this.props.updateOptions)({ce4wp_referred_by:{plugin:"woocommerce",version:Object(P.g)("wcVersion"),time:Math.floor((new Date).getTime()/1e3),source:"onboarding"}})}},{key:"onPostInstallAndActivePlugins",value:function(e){e.data.activated.includes("creative-mail-by-constant-contact")&&this.onCreativeMailInstallAndActivated()}},{key:"onContinue",value:(t=l()(i.a.mark((function e(t){var n,r,c,o,a,l,s,m,u,C,d,p,b,f,h,O,_=this;return i.a.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:n=this.props,r=n.createNotice,c=n.goToNextStep,o=n.installAndActivatePlugins,a=n.updateProfileItems,l=t.install_extensions,s=t.other_platform,m=t.other_platform_name,u=t.product_count,C=t.revenue,d=t.selling_venues,p=this.getBusinessExtensions(t),b=this.context.getCurrencyConfig,Object(M.recordEvent)("storeprofiler_store_business_details_continue",{product_number:u,already_selling:d,currency:b().code,revenue:C,used_platform:s,used_platform_name:m,install_woocommerce_services:p.includes("woocommerce-services"),install_jetpack:p.includes("jetpack"),install_facebook:p.includes("facebook-for-woocommerce"),install_mailpoet:p.includes("mailpoet"),install_mailchimp:p.includes("mailchimp-for-woocommerce"),install_creative_mail:p.includes("creative-mail-by-constant-contact"),install_google_ads:p.includes("kliken-marketing-for-google"),install_extensions:l}),f={other_platform:s,other_platform_name:"other"===s?m:"",product_count:u,revenue:C,selling_venues:d,business_extensions:p},h={},Object.keys(f).forEach((function(e){""!==f[e]&&(h[e]=f[e])})),O=[a(h).catch((function(){throw new Error}))],p.length&&O.push(o(p).then((function(e){Object(z.a)(e),_.onPostInstallAndActivePlugins(e)})).catch((function(e){throw Object(z.a)(e),new Error}))),Promise.all(O).then((function(){c()})).catch((function(){r("error",Object(v.__)("There was a problem updating your business details","woocommerce-admin"))}));case 11:case"end":return e.stop()}}),e,this)}))),function(e){return t.apply(this,arguments)})},{key:"validate",value:function(e){var t={};return e.product_count.length||(t.product_count=Object(v.__)("This field is required","woocommerce-admin")),e.selling_venues.length||(t.selling_venues=Object(v.__)("This field is required","woocommerce-admin")),!e.other_platform.length&&["other","brick-mortar-other"].includes(e.selling_venues)&&(t.other_platform=Object(v.__)("This field is required","woocommerce-admin")),!e.other_platform_name&&"other"===e.other_platform&&["other","brick-mortar-other"].includes(e.selling_venues)&&(t.other_platform_name=Object(v.__)("This field is required","woocommerce-admin")),!e.revenue.length&&["other","brick-mortar","brick-mortar-other","other-woocommerce"].includes(e.selling_venues)&&(t.revenue=Object(v.__)("This field is required","woocommerce-admin")),t}},{key:"getBusinessExtensions",value:function(e){var t=this;return""===e.selling_venues?[]:Object(w.keys)(Object(w.pickBy)(e)).filter((function(e){return t.extensions.includes(e)}))}},{key:"renderBusinessExtensionHelpText",value:function(e){var t=this.props.isInstallingActivating,n=this.getBusinessExtensions(e);if(0===n.length)return null;var r=n.map((function(e){return S.pluginNames[e]})).join(", ");return t?Object(g.createElement)(I.e,{variant:"caption",as:"p"},Object(v.sprintf)(Object(v._n)("Installing the following plugin: %s","Installing the following plugins: %s",n.length,"woocommerce-admin"),r)):Object(g.createElement)("div",{className:"woocommerce-profile-wizard__footnote"},Object(g.createElement)(I.e,{variant:"caption",as:"p"},Object(v.sprintf)(Object(v._n)("The following plugin will be installed for free: %s.","The following plugins will be installed for free: %s.",n.length,"woocommerce-admin"),r)))}},{key:"renderBusinessExtensions",value:function(e,t){return""===e.selling_venues?null:Object(g.createElement)("div",null,Q.map((function(n){return Object(g.createElement)("div",{className:"woocommerce-profile-wizard__benefit",key:n.title},Object(g.createElement)("div",{className:"woocommerce-profile-wizard__business-extension"},Object(g.createElement)("img",{src:Ce+n.icon,alt:""})),Object(g.createElement)("div",{className:"woocommerce-profile-wizard__benefit-content"},Object(g.createElement)(H.H,{className:"woocommerce-profile-wizard__benefit-title"},n.title),Object(g.createElement)("p",null,n.description)),Object(g.createElement)("div",{className:"woocommerce-profile-wizard__benefit-toggle"},Object(g.createElement)(T.FormToggle,Y()({checked:e[n.slug]},t(n.slug)))))})))}},{key:"render",value:function(){var e=this,t=this.props,n=t.goToNextStep,r=t.isInstallingActivating,c=t.hasInstallActivateError,o=t.isUpdatingProfileItems,i=this.context.getCurrencyConfig,a=ie(i()),l=me(i(),this.props.settings.woocommerce_default_country);return Object(g.createElement)(H.Form,{initialValues:this.initialValues,onSubmitCallback:this.onContinue,validate:this.validate},(function(t){var i=t.getInputProps,s=t.handleSubmit,m=t.values,u=t.isValidForm,C=e.renderBusinessExtensions(m,i);return Object(g.createElement)(g.Fragment,null,Object(g.createElement)("div",{className:"woocommerce-profile-wizard__step-header"},Object(g.createElement)(I.e,{variant:"title.small",as:"h2"},Object(v.__)("Tell us about your business","woocommerce-admin")),Object(g.createElement)(I.e,{variant:"body"},Object(v.__)("We'd love to know if you are just getting started or you already have a business in place.","woocommerce-admin"))),Object(g.createElement)(T.Card,null,Object(g.createElement)(T.CardBody,null,Object(g.createElement)(H.SelectControl,Y()({label:Object(v.__)("How many products do you plan to display?","woocommerce-admin"),options:a,required:!0},i("product_count"))),Object(g.createElement)(H.SelectControl,Y()({label:Object(v.__)("Currently selling elsewhere?","woocommerce-admin"),options:K,required:!0},i("selling_venues"))),["other","brick-mortar","brick-mortar-other","other-woocommerce"].includes(m.selling_venues)&&Object(g.createElement)(H.SelectControl,Y()({label:Object(v.__)("What's your current annual revenue?","woocommerce-admin"),options:l,required:!0},i("revenue"))),["other","brick-mortar-other"].includes(m.selling_venues)&&Object(g.createElement)(g.Fragment,null,Object(g.createElement)("div",{className:"business-competitors"},Object(g.createElement)(H.SelectControl,Y()({label:Object(v.__)("Which platform is the store using?","woocommerce-admin"),options:X,required:!0},i("other_platform"))),"other"===m.other_platform&&Object(g.createElement)(H.TextControl,Y()({label:Object(v.__)("What is the platform name?","woocommerce-admin"),required:!0},i("other_platform_name")))))),C&&Object(g.createElement)(T.CardFooter,null,C),Object(g.createElement)(T.CardFooter,{justify:"center"},Object(g.createElement)(T.Button,{isPrimary:!0,onClick:s,disabled:!u||o||r,isBusy:r},c?Object(v.__)("Retry","woocommerce-admin"):Object(v.__)("Continue","woocommerce-admin")),c&&Object(g.createElement)(T.Button,{onClick:function(){return n()}},Object(v.__)("Continue without installing","woocommerce-admin")))),e.renderBusinessExtensionHelpText(m))}))}}]),r}(g.Component);de.contextType=$.a;var pe=Object(y.compose)(Object(k.withSelect)((function(e){var t=e(S.SETTINGS_STORE_NAME),n=t.getSettings,r=t.getSettingsError,c=t.isUpdateSettingsRequesting,o=e(S.ONBOARDING_STORE_NAME),i=o.getProfileItems,a=o.getOnboardingError,l=o.isOnboardingRequesting,s=e(S.PLUGINS_STORE_NAME),m=s.getPluginsError,u=s.isPluginsRequesting,C=n("general").general,d=void 0===C?{}:C;return{hasInstallActivateError:m("installPlugins")||m("activatePlugins"),isError:Boolean(a("updateProfileItems")),profileItems:i(),isSettingsError:Boolean(r("general")),settings:d,isUpdatingProfileItems:l("updateProfileItems")||c("general"),isInstallingActivating:u("installPlugins")||u("activatePlugins")||u("getJetpackConnectUrl")}})),Object(k.withDispatch)((function(e){var t=e(S.ONBOARDING_STORE_NAME).updateProfileItems,n=e(S.PLUGINS_STORE_NAME).installAndActivatePlugins;return{createNotice:e("core/notices").createNotice,installAndActivatePlugins:n,updateProfileItems:t,updateOptions:e(S.OPTIONS_STORE_NAME).updateOptions}})))(de),be=(n(285),n(282),n(426)),fe=n(701),he=n(702),Oe=function(){return Object(g.createElement)("svg",{width:"200",height:"148",viewBox:"0 0 200 148",fill:"none",xmlns:"http://www.w3.org/2000/svg"},Object(g.createElement)("g",{clipPath:"url(#clip0)"},Object(g.createElement)("path",{d:"M197.563 2.53875e-09H62.909C62.3961 0.000450584 61.9043 0.205742 61.5416 0.570805C61.179 0.935868 60.975 1.43087 60.9746 1.94714V50.9404H93.5623C94.4445 50.9415 95.2902 51.2947 95.9141 51.9226C96.5379 52.5505 96.8888 53.4019 96.8899 54.2899V95.7402H197.563C197.843 95.7402 198.119 95.6791 198.373 95.5612C198.627 95.4432 198.853 95.2712 199.034 95.0569C199.05 95.0402 199.064 95.0222 199.076 95.0033C199.192 94.8612 199.285 94.7024 199.354 94.5322C199.451 94.2981 199.501 94.0468 199.5 93.7931V1.94714C199.499 1.43051 199.295 0.935241 198.932 0.57014C198.569 0.20504 198.077 -2.63458e-05 197.563 2.53875e-09Z",fill:"#F2F2F2"}),Object(g.createElement)("path",{d:"M199.222 7.80469H61.25V8.36132H199.222V7.80469Z",fill:"#CCCCCC"}),Object(g.createElement)("path",{d:"M65.95 5.84371C66.8662 5.84371 67.609 5.09607 67.609 4.17381C67.609 3.25155 66.8662 2.50391 65.95 2.50391C65.0338 2.50391 64.291 3.25155 64.291 4.17381C64.291 5.09607 65.0338 5.84371 65.95 5.84371Z",fill:"#CCCCCC"}),Object(g.createElement)("path",{d:"M70.72 5.84371C71.6363 5.84371 72.379 5.09607 72.379 4.17381C72.379 3.25155 71.6363 2.50391 70.72 2.50391C69.8038 2.50391 69.061 3.25155 69.061 4.17381C69.061 5.09607 69.8038 5.84371 70.72 5.84371Z",fill:"#CCCCCC"}),Object(g.createElement)("path",{d:"M75.4896 5.84371C76.4058 5.84371 77.1486 5.09607 77.1486 4.17381C77.1486 3.25155 76.4058 2.50391 75.4896 2.50391C74.5733 2.50391 73.8306 3.25155 73.8306 4.17381C73.8306 5.09607 74.5733 5.84371 75.4896 5.84371Z",fill:"#CCCCCC"}),Object(g.createElement)("path",{d:"M164.842 19.957H95.6295C94.8646 19.957 94.1311 20.2629 93.5903 20.8073C93.0494 21.3516 92.7456 22.09 92.7456 22.8599C92.7456 23.6298 93.0494 24.3681 93.5903 24.9125C94.1311 25.4569 94.8646 25.7627 95.6295 25.7627H164.842C165.607 25.7627 166.341 25.4569 166.882 24.9125C167.422 24.3681 167.726 23.6298 167.726 22.8599C167.726 22.09 167.422 21.3516 166.882 20.8073C166.341 20.2629 165.607 19.957 164.842 19.957ZM164.842 25.3161H95.6295C94.9823 25.3161 94.3616 25.0573 93.904 24.5967C93.4464 24.1361 93.1893 23.5113 93.1893 22.8599C93.1893 22.2084 93.4464 21.5837 93.904 21.123C94.3616 20.6624 94.9823 20.4036 95.6295 20.4036H164.842C165.489 20.4036 166.11 20.6624 166.568 21.123C167.025 21.5837 167.283 22.2084 167.283 22.8599C167.283 23.5113 167.025 24.1361 166.568 24.5967C166.11 25.0573 165.489 25.3161 164.842 25.3161Z",fill:"#CCCCCC"}),Object(g.createElement)("path",{d:"M186.022 43.0859H116.809C116.044 43.0859 115.31 43.3918 114.769 43.9362C114.229 44.4806 113.925 45.2189 113.925 45.9888C113.925 46.7587 114.229 47.497 114.769 48.0414C115.31 48.5858 116.044 48.8916 116.809 48.8916H186.022C186.786 48.8916 187.52 48.5858 188.061 48.0414C188.602 47.497 188.905 46.7587 188.905 45.9888C188.905 45.2189 188.602 44.4806 188.061 43.9362C187.52 43.3918 186.786 43.0859 186.022 43.0859Z",fill:"white"}),Object(g.createElement)("path",{d:"M186.022 53.8047H116.809C116.044 53.8047 115.31 54.1105 114.769 54.6549C114.229 55.1993 113.925 55.9376 113.925 56.7075C113.925 57.4774 114.229 58.2158 114.769 58.7601C115.31 59.3045 116.044 59.6104 116.809 59.6104H186.022C186.786 59.6104 187.52 59.3045 188.061 58.7601C188.602 58.2158 188.905 57.4774 188.905 56.7075C188.905 55.9376 188.602 55.1993 188.061 54.6549C187.52 54.1105 186.786 53.8047 186.022 53.8047Z",fill:"white"}),Object(g.createElement)("path",{d:"M186.022 64.5195H116.809C116.044 64.5195 115.31 64.8254 114.769 65.3698C114.229 65.9141 113.925 66.6525 113.925 67.4224C113.925 68.1923 114.229 68.9306 114.769 69.475C115.31 70.0194 116.044 70.3252 116.809 70.3252H186.022C186.786 70.3252 187.52 70.0194 188.061 69.475C188.602 68.9306 188.905 68.1923 188.905 67.4224C188.905 66.6525 188.602 65.9141 188.061 65.3698C187.52 64.8254 186.786 64.5195 186.022 64.5195Z",fill:"white"}),Object(g.createElement)("path",{d:"M105.623 38.2852H74.1183C73.4425 38.286 72.7947 38.5565 72.3168 39.0375C71.839 39.5185 71.5702 40.1706 71.5693 40.8508V50.9416H72.013V40.8508C72.0139 40.2891 72.2359 39.7506 72.6306 39.3533C73.0252 38.9561 73.5602 38.7326 74.1183 38.7317H105.623C106.182 38.7322 106.717 38.9556 107.112 39.3529C107.506 39.7502 107.728 40.289 107.729 40.8508V72.5633C107.728 73.1251 107.506 73.6638 107.112 74.0611C106.717 74.4585 106.182 74.6819 105.623 74.6824H96.8897V75.1289H105.623C106.299 75.1285 106.947 74.858 107.425 74.377C107.903 73.8959 108.172 73.2436 108.172 72.5633V40.8508C108.172 40.1705 107.903 39.5182 107.425 39.0371C106.947 38.556 106.299 38.2856 105.623 38.2852Z",fill:"#CCCCCC"}),Object(g.createElement)("path",{d:"M23.9309 70.9116C23.8195 70.9162 19.0705 70.5847 18.9492 70.5806L19.3758 66.294L22.0808 66.212L27.2495 56.5756C26.5327 55.1996 27.4148 53.3739 28.9355 53.0925C32 52.3914 33.0526 57.2443 29.9789 57.8901L25.7036 69.6652C25.5695 70.03 25.3278 70.3449 25.011 70.5676C24.6942 70.7904 24.3174 70.9104 23.9309 70.9116Z",fill:"#FFB8B8"}),Object(g.createElement)("path",{d:"M11.4107 73.118C6.89154 73.1291 6.49482 66.2544 11.024 65.7699C23.0006 65.0415 21.485 62.0137 22.3945 70.9448C22.4224 71.2097 22.3448 71.475 22.1787 71.6824C22.0126 71.8898 21.7715 72.0223 21.5084 72.051L11.803 73.0968C11.6727 73.1109 11.5417 73.1179 11.4107 73.118Z",className:"fill-theme-color"}),Object(g.createElement)("path",{d:"M10.3793 51.3852C16.605 54.9512 11.494 64.3601 5.15222 61.0097C-1.0733 57.4438 4.03771 48.0349 10.3793 51.3852Z",fill:"#FFB8B8"}),Object(g.createElement)("path",{d:"M16.0395 132.376L18.759 132.376L20.053 121.816L16.0391 121.817L16.0395 132.376Z",fill:"#FFB8B8"}),Object(g.createElement)("path",{d:"M15.4567 134.915L24.0042 134.915C23.9716 130.476 18.2546 131.755 15.4565 131.591L15.4567 134.915Z",fill:"#2F2E41"}),Object(g.createElement)("path",{d:"M4.28218 132.376L7.00167 132.376L8.29564 121.816L4.28174 121.817L4.28218 132.376Z",fill:"#FFB8B8"}),Object(g.createElement)("path",{d:"M3.69937 134.915L12.2469 134.915C12.2142 130.476 6.49728 131.755 3.69922 131.591L3.69937 134.915Z",fill:"#2F2E41"}),Object(g.createElement)("path",{d:"M7.37266 128.688C6.71536 128.507 3.14362 129.056 2.72209 128.335C1.24999 113.483 1.57722 98.9486 4.845 90.9619L16.0806 90.2695C18.5931 94.8863 24.3684 125.522 20.8847 127.385L16.4048 127.546C16.1493 127.554 15.8988 127.474 15.6952 127.318C15.4916 127.163 15.3475 126.941 15.2869 126.691L11.539 105.229C10.6057 103.916 8.77111 127.832 8.46815 127.742C8.42864 128.006 8.29626 128.247 8.09515 128.42C7.89404 128.594 7.63762 128.689 7.37266 128.688Z",fill:"#2F2E41"}),Object(g.createElement)("path",{d:"M4.48843 92.8373C-1.18427 86.8634 2.43414 70.8475 2.25101 71.1881C2.26655 70.7958 3.55141 64.7536 6.87506 63.762C9.51196 62.886 12.4305 65.5063 12.7906 68.1566L16.7406 91.6368C16.7611 91.7646 16.7514 91.8955 16.7123 92.0188C16.6733 92.1422 16.6059 92.2546 16.5158 92.3469C16.71 92.9556 4.76613 92.7153 4.48843 92.8373Z",className:"fill-theme-color"}),Object(g.createElement)("path",{d:"M6.32941 55.5845C6.82759 55.2675 7.07312 54.7238 7.36309 54.2285C8.89053 53.3522 10.6464 55.472 12.262 54.6809C16.8302 50.2665 12.1346 48.9642 7.92721 48.7314C6.9333 48.6081 6.08781 48.963 5.33637 49.5492C-3.06805 48.9031 0.962591 60.1519 6.26679 61.6376C7.2033 62.0505 7.90582 61.2148 7.07994 60.4551C5.93728 59.2493 4.52181 56.8221 6.32941 55.5845Z",fill:"#2F2E41"}),Object(g.createElement)("path",{d:"M93.5621 50.4922H32.779C31.7793 50.4936 30.8209 50.894 30.1139 51.6056C29.407 52.3172 29.0092 53.2819 29.0078 54.2882V131.548C29.0092 132.555 29.407 133.52 30.1139 134.231C30.8209 134.943 31.7793 135.343 32.779 135.345H93.5621C94.5619 135.343 95.5202 134.943 96.2272 134.231C96.9341 133.52 97.3319 132.555 97.3333 131.548V54.2882C97.3319 53.2819 96.9341 52.3172 96.2272 51.6056C95.5202 50.894 94.5619 50.4936 93.5621 50.4922ZM96.8896 131.548C96.8886 132.436 96.5376 133.288 95.9138 133.916C95.29 134.544 94.4443 134.897 93.5621 134.898H32.779C31.8968 134.897 31.0511 134.544 30.4273 133.916C29.8035 133.288 29.4526 132.436 29.4515 131.548V54.2882C29.4526 53.4002 29.8035 52.5489 30.4273 51.921C31.0511 51.2931 31.8968 50.9399 32.779 50.9388H93.5621C94.4443 50.9399 95.29 51.2931 95.9138 51.921C96.5376 52.5489 96.8886 53.4002 96.8896 54.2882V131.548Z",fill:"#3F3D56"}),Object(g.createElement)("path",{d:"M15.6527 83.0043C13.6494 83.2327 12.7698 78.5402 12.0039 77.3445L15.9936 75.7852L17.2918 78.1751L28.168 78.4472C28.2326 78.3591 28.3032 78.2755 28.3793 78.1971C30.5362 75.9238 34.0488 79.33 31.9 81.5984C31.663 81.8519 31.3752 82.0521 31.0557 82.1855C30.7362 82.319 30.3923 82.3828 30.0465 82.3727C29.7007 82.3627 29.361 82.2789 29.0497 82.1271C28.7384 81.9753 28.4626 81.7588 28.2405 81.4918C27.9719 81.5111 15.9153 83.0114 15.6527 83.0043Z",fill:"#FFB8B8"}),Object(g.createElement)("path",{d:"M12.6985 80.7664C12.0314 81.4133 6.91061 72.3318 6.5365 72.0751C3.94893 68.0267 10.0405 64.0298 12.6727 68.0562L17.9961 76.2911C18.1402 76.5145 18.1904 76.7864 18.1356 77.047C18.0808 77.3076 17.9255 77.5357 17.7039 77.6812C17.4613 77.7956 12.8697 81.0123 12.6985 80.7664Z",className:"fill-theme-color"}),Object(g.createElement)("path",{d:"M81.583 103.974H44.7583C40.9966 103.955 40.9809 98.1877 44.7584 98.168H81.583C85.3421 98.1857 85.3624 103.954 81.583 103.974Z",fill:"#CCCCCC"}),Object(g.createElement)("path",{d:"M81.583 114.692H44.7583C40.9966 114.674 40.9809 108.906 44.7584 108.887H81.583C85.3421 108.904 85.3624 114.673 81.583 114.692Z",fill:"#CCCCCC"}),Object(g.createElement)("path",{d:"M81.583 125.411H44.7583C40.9966 125.393 40.9809 119.625 44.7584 119.605H81.583C85.3421 119.623 85.3624 125.391 81.583 125.411Z",fill:"#CCCCCC"}),Object(g.createElement)("path",{d:"M95.3371 57.6387C94.1963 57.6387 93.0812 57.2982 92.1327 56.6603C91.1842 56.0223 90.4449 55.1156 90.0084 54.0548C89.5718 52.9939 89.4576 51.8266 89.6802 50.7004C89.9027 49.5742 90.452 48.5397 91.2587 47.7278C92.0653 46.9159 93.093 46.3629 94.2118 46.1389C95.3307 45.9149 96.4904 46.0299 97.5443 46.4693C98.5982 46.9087 99.499 47.6528 100.133 48.6076C100.767 49.5623 101.105 50.6848 101.105 51.833C101.103 53.3723 100.495 54.8479 99.4136 55.9363C98.3323 57.0247 96.8662 57.637 95.3371 57.6387Z",className:"fill-theme-color"}),Object(g.createElement)("path",{d:"M97.999 51.6121H95.5588V48.821C95.5588 48.7617 95.5355 48.7049 95.4939 48.6631C95.4523 48.6212 95.3958 48.5977 95.337 48.5977C95.2782 48.5977 95.2217 48.6212 95.1801 48.6631C95.1385 48.7049 95.1152 48.7617 95.1152 48.821V51.6121H92.675C92.6161 51.6121 92.5597 51.6357 92.5181 51.6775C92.4765 51.7194 92.4531 51.7762 92.4531 51.8354C92.4531 51.8947 92.4765 51.9515 92.5181 51.9933C92.5597 52.0352 92.6161 52.0587 92.675 52.0587H95.1152V54.8499C95.1152 54.9091 95.1385 54.9659 95.1801 55.0078C95.2217 55.0497 95.2782 55.0732 95.337 55.0732C95.3958 55.0732 95.4523 55.0497 95.4939 55.0078C95.5355 54.9659 95.5588 54.9091 95.5588 54.8499V52.0587H97.999C98.0579 52.0587 98.1143 52.0352 98.1559 51.9933C98.1975 51.9515 98.2209 51.8947 98.2209 51.8354C98.2209 51.7762 98.1975 51.7194 98.1559 51.6775C98.1143 51.6357 98.0579 51.6121 97.999 51.6121Z",fill:"white"}),Object(g.createElement)("path",{d:"M80.9177 91.2002H45.424C44.4535 91.1991 43.5232 90.8105 42.837 90.1198C42.1508 89.4291 41.7648 88.4926 41.7637 87.5158V67.5086C41.7648 66.5318 42.1508 65.5953 42.837 64.9046C43.5232 64.2139 44.4535 63.8253 45.424 63.8242H80.9177C81.8882 63.8253 82.8185 64.2139 83.5047 64.9046C84.1909 65.5953 84.5769 66.5318 84.578 67.5086V87.5158C84.5769 88.4926 84.1909 89.4291 83.5047 90.1198C82.8185 90.8105 81.8882 91.1991 80.9177 91.2002Z",className:"fill-theme-color"})),Object(g.createElement)("defs",null,Object(g.createElement)("clipPath",{id:"clip0"},Object(g.createElement)("rect",{width:"199",height:"148",fill:"white",transform:"translate(0.5)"}))))},_e=(n(663),n(619)),je=n(615);function ge(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function ve(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?ge(Object(n),!0).forEach((function(t){c()(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):ge(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}var Ee=function(e,t,n){var r=null!=n?n:"https://woocommerce.com/products/".concat(t);return x()({mixedString:e,components:{link:Object(g.createElement)(H.Link,{type:"external",target:"_blank",className:"woocommerce-admin__business-details__selective-extensions-bundle__link",href:r,onClick:function(){Object(M.recordEvent)("storeprofiler_store_business_features_link_click",{extension_name:t})}})}})},ye=[{title:Object(v.__)("Get the basics","woocommerce-admin"),plugins:[{slug:"woocommerce-payments",description:Ee(Object(v.__)("Accept credit cards with {{link}}WooCommerce Payments{{/link}}","woocommerce-admin"),"woocommerce-payments"),isVisible:function(e,t){var n=(t||[]).some((function(e){return"cbd-other-hemp-derived-products"===e.slug}));return Object(je.d)(e)&&!n}},{slug:"woocommerce-services:shipping",description:Ee(Object(v.__)("Print shipping labels with {{link}}WooCommerce Shipping{{/link}}","woocommerce-admin"),"shipping"),isVisible:function(e,t,n){return"US"===e||"US"===e&&1===n.length&&"downloads"===n[0]}},{slug:"woocommerce-services:tax",description:Ee(Object(v.__)("Get automated sales tax with {{link}}WooCommerce Tax{{/link}}","woocommerce-admin"),"tax"),isVisible:function(e){return["US","FR","GB","DE","CA","PL","AU","GR","BE","PT","DK","SE"].includes(e)}},{slug:"jetpack",description:Ee(Object(v.__)("Enhance speed and security with {{link}}Jetpack{{/link}}","woocommerce-admin"),"jetpack")}]},{title:"Grow your store",plugins:[{slug:"mailpoet",description:Ee(Object(v.__)("Level up your email marketing with {{link}}Mailpoet{{/link}}","woocommerce-admin"),"mailpoet","https://wordpress.org/plugins/mailpoet/")},{slug:"facebook-for-woocommerce",description:Ee(Object(v.__)("Market on {{link}}Facebook{{/link}}","woocommerce-admin"),"facebook")},{slug:"kliken-marketing-for-google",description:Ee(Object(v.__)("Drive sales with {{link}}Google Ads{{/link}}","woocommerce-admin"),"google-ads-and-marketing")},{slug:"mailchimp-for-woocommerce",description:Ee(Object(v.__)("Contact customers with {{link}}Mailchimp{{/link}}","woocommerce-admin"),"mailchimp-for-woocommerce")},{slug:"creative-mail-by-constant-contact",description:Ee(Object(v.__)("Emails made easy with {{link}}Creative Mail{{/link}}","woocommerce-admin"),"creative-mail-for-woocommerce")}]}],we=function(){return Object(g.createElement)("div",{className:"woocommerce-admin__business-details__free-badge"},Object(v.__)("Free","woocommerce-admin"))},ke=function(e){var t=e.onChange,n=e.description,r=e.isChecked;return Object(g.createElement)("div",{className:"woocommerce-admin__business-details__selective-extensions-bundle__extension"},Object(g.createElement)(T.CheckboxControl,{id:"woocommerce-business-extensions__checkbox",checked:r,onChange:t}),Object(g.createElement)("p",{className:"woocommerce-admin__business-details__selective-extensions-bundle__description"},n),Object(g.createElement)(we,null))},Le=function(e,t,n,r){var c=Object(ne.b)(t);return e.filter((function(e){return!e.isVisible||e.isVisible(c,n,r)}))},Se=function(e){var t=e.isInstallingActivating,n=e.onSubmit,r=e.country,o=e.industry,i=e.productTypes,a=Object(g.useState)(!1),l=Z()(a,2),s=l[0],m=l[1],u=Object(g.useState)({}),C=Z()(u,2),d=C[0],p=C[1];Object(g.useEffect)((function(){var e=ye.reduce((function(e,t){var n=Le(t.plugins,r,o,i).reduce((function(e,t){var n=t.slug;return ve(ve({},e),{},c()({},n,!0))}),{});return ve(ve({},e),n)}),{install_extensions:!0});p(e)}),[r]);var b=function(e){return function(t){var n,r=ve(ve({},d),{},c()({},e,t));1===Object.entries(r).filter((function(e){return Z()(e,2)[1]})).length&&r.install_extensions?p(ve(ve({},r),{},{install_extensions:!1})):p(ve(ve({},d),{},(n={},c()(n,e,t),c()(n,"install_extensions",!0),n)))}};return Object(g.createElement)("div",{className:"woocommerce-profile-wizard__business-details__free-features"},Object(g.createElement)(T.Card,null,Object(g.createElement)("div",{className:"woocommerce-profile-wizard__business-details__free-features__illustration"},Object(g.createElement)(Oe,null)),Object(g.createElement)("div",{className:"woocommerce-admin__business-details__selective-extensions-bundle"},Object(g.createElement)("div",{className:"woocommerce-admin__business-details__selective-extensions-bundle__extension"},Object(g.createElement)(T.CheckboxControl,{checked:d.install_extensions,onChange:function(e){p(Object(_e.b)(d,e))}}),Object(g.createElement)("p",{className:"woocommerce-admin__business-details__selective-extensions-bundle__description"},Object(v.__)("Add recommended business features to my site")),Object(g.createElement)(be.a,{className:"woocommerce-admin__business-details__selective-extensions-bundle__expand",icon:s?fe.a:he.a,onClick:function(){m(!s),s||Object(M.recordEvent)("storeprofiler_store_business_features_accordion_click")}})),s&&ye.map((function(e){var t=e.plugins,n=e.title;return Object(g.createElement)("div",{key:n},Object(g.createElement)("div",{className:"woocommerce-admin__business-details__selective-extensions-bundle__category"},n),Le(t,r,o,i).map((function(e){var t=e.description,n=e.slug;return Object(g.createElement)(ke,{key:n,description:t,isChecked:d[n],onChange:b(n)})})))}))),Object(g.createElement)("div",{className:"woocommerce-profile-wizard__business-details__free-features__action"},Object(g.createElement)(T.Button,{onClick:function(){n(d)},isBusy:t,disabled:t,isPrimary:!0},"Continue"))),function(e,t){var n=Object.keys(e).filter((function(t){return e[t]&&"install_extensions"!==t}));if(0===n.length)return null;var r=n.map((function(e){return S.pluginNames[e]})).join(", ");if(t)return Object(g.createElement)("div",{className:"woocommerce-profile-wizard__footnote"},Object(g.createElement)(T.__experimentalText,{variant:"caption",as:"p"},Object(v.sprintf)(Object(v._n)("Installing the following plugin: %s","Installing the following plugins: %s",n.length,"woocommerce-admin"),r)));var c=n.includes("jetpack")||n.includes("woocommerce-shipping"),o=Object(v.__)("User accounts are required to use these features.","woocommerce-admin");return Object(g.createElement)("div",{className:"woocommerce-profile-wizard__footnote"},Object(g.createElement)(T.__experimentalText,{variant:"caption",as:"p"},Object(v.sprintf)(Object(v._n)("The following plugin will be installed for free: %1$s. %2$s","The following plugins will be installed for free: %1$s. %2$s",n.length,"woocommerce-admin"),r,o)),c&&Object(g.createElement)(T.__experimentalText,{variant:"caption",as:"p"},x()({mixedString:Object(v.__)("By installing Jetpack and WooCommerce Shipping plugins for free you agree to our {{link}}Terms of Service{{/link}}.","woocommerce-admin"),components:{link:Object(g.createElement)(H.Link,{href:"https://wordpress.com/tos/",target:"_blank",type:"external"})}})))}(d,t))};n(664);function Me(e){var t=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){}))),!0}catch(e){return!1}}();return function(){var n,r=j()(e);if(t){var c=j()(this).constructor;n=Reflect.construct(r,arguments,c)}else n=r.apply(this,arguments);return O()(this,n)}}var Pe=function(e){return Object.keys(e).filter((function(t){return e[t]&&"install_extensions"!==t})).map((function(e){return e.split(":")[0]})).filter((function(e,t,n){return n.indexOf(e)===t}))},Ne=function(e){f()(r,e);var t,n=Me(r);function r(){var e;return m()(this,r),(e=n.call(this)).state={isPopoverVisible:!1,isValid:!1,currentTab:"business-details",savedValues:null},e.onContinue=e.onContinue.bind(p()(e)),e.validate=e.validate.bind(p()(e)),e}return C()(r,[{key:"onContinue",value:(t=l()(i.a.mark((function e(t){var n,r,c,o,a,l,s,m,u,C,d,p,b,f;return i.a.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:n=this.props,r=n.createNotice,c=n.goToNextStep,o=n.installAndActivatePlugins,a=n.updateProfileItems,l=this.state.savedValues,s=l.other_platform,m=l.other_platform_name,u=l.product_count,C=l.revenue,d=l.selling_venues,p=Pe(t),Object(M.recordEvent)("storeprofiler_store_business_features_continue",{all_extensions_installed:Object.values(t).every((function(e){return e})),install_woocommerce_services:t["woocommerce-services:shipping"]||t["woocommerce-services:tax"],install_mailchimp:t["mailchimp-for-woocommerce"],install_mailpoet:t.mailpoet,install_jetpack:t.jetpack,install_google_ads:t["kliken-marketing-for-google"],install_facebook:t["facebook-for-woocommerce"],install_wcpay:t["woocommerce-payments"],install_creative_mail:t["creative-mail-by-constant-contact"]}),b={other_platform:s,other_platform_name:"other"===s?m:"",product_count:u,revenue:C,selling_venues:d,business_extensions:p},Object.keys(b).forEach((function(e){return""===b[e]&&delete b[e]})),f=[a(b).catch((function(){throw new Error}))],p.length&&f.push(o(p).then((function(e){Object(z.a)(e)})).catch((function(e){throw Object(z.a)(e),new Error}))),Promise.all(f).then((function(){c()})).catch((function(){r("error",Object(v.__)("There was a problem updating your business details","woocommerce-admin"))}));case 9:case"end":return e.stop()}}),e,this)}))),function(e){return t.apply(this,arguments)})},{key:"validate",value:function(e){var t={};return e.product_count.length||(t.product_count=Object(v.__)("This field is required","woocommerce-admin")),e.selling_venues.length||(t.selling_venues=Object(v.__)("This field is required","woocommerce-admin")),!e.other_platform.length&&["other","brick-mortar-other"].includes(e.selling_venues)&&(t.other_platform=Object(v.__)("This field is required","woocommerce-admin")),!e.other_platform_name&&"other"===e.other_platform&&["other","brick-mortar-other"].includes(e.selling_venues)&&(t.other_platform_name=Object(v.__)("This field is required","woocommerce-admin")),!e.revenue.length&&["other","brick-mortar","brick-mortar-other","other-woocommerce"].includes(e.selling_venues)&&(t.revenue=Object(v.__)("This field is required","woocommerce-admin")),0===Object.keys(t).length&&this.setState({isValid:!0}),t}},{key:"trackBusinessDetailsStep",value:function(e){var t=e.other_platform,n=e.other_platform_name,r=e.product_count,c=e.selling_venues,o=e.revenue,i=this.context.getCurrencyConfig;Object(M.recordEvent)("storeprofiler_store_business_details_continue_variant",{already_selling:c,currency:i().code,product_number:r,revenue:o,used_platform:t,used_platform_name:n})}},{key:"renderBusinessDetailsStep",value:function(){var e=this,t=this.props,n=t.goToNextStep,r=t.isInstallingActivating,c=t.hasInstallActivateError,o=this.context.getCurrencyConfig,i=ie(o());return Object(g.createElement)(H.Form,{initialValues:this.state.savedValues||this.props.initialValues,onSubmitCallback:function(t){e.setState({savedValues:t,currentTab:"free-features"}),e.trackBusinessDetailsStep(t)},onChangeCallback:function(t,n,r){e.setState({savedValues:n,isValid:r})},validate:this.validate},(function(t){var a=t.getInputProps,l=t.handleSubmit,s=t.values,m=t.isValidForm;return Object(g.createElement)(g.Fragment,null,Object(g.createElement)("div",{className:"woocommerce-profile-wizard__step-header"},Object(g.createElement)(T.__experimentalText,{variant:"title.small",as:"h2"},Object(v.__)("Tell us about your business","woocommerce-admin")),Object(g.createElement)(T.__experimentalText,{variant:"body"},Object(v.__)("We'd love to know if you are just getting started or you already have a business in place.","woocommerce-admin"))),Object(g.createElement)(T.Card,null,Object(g.createElement)(T.CardBody,null,Object(g.createElement)(H.SelectControl,Y()({excludeSelectedOptions:!1,label:Object(v.__)("How many products do you plan to display?","woocommerce-admin"),options:i,required:!0},a("product_count"))),Object(g.createElement)(H.SelectControl,Y()({excludeSelectedOptions:!1,label:Object(v.__)("Currently selling elsewhere?","woocommerce-admin"),options:K,required:!0},a("selling_venues"))),["other","brick-mortar","brick-mortar-other","other-woocommerce"].includes(s.selling_venues)&&Object(g.createElement)(H.SelectControl,Y()({excludeSelectedOptions:!1,label:Object(v.__)("What's your current annual revenue?","woocommerce-admin"),options:me(o(),e.props.settings.woocommerce_default_country),required:!0},a("revenue"))),["other","brick-mortar-other"].includes(s.selling_venues)&&Object(g.createElement)(g.Fragment,null,Object(g.createElement)("div",{className:"business-competitors"},Object(g.createElement)(H.SelectControl,Y()({excludeSelectedOptions:!1,label:Object(v.__)("Which platform is the store using?","woocommerce-admin"),options:X,required:!0},a("other_platform"))),"other"===s.other_platform&&Object(g.createElement)(H.TextControl,Y()({label:Object(v.__)("What is the platform name?","woocommerce-admin"),required:!0},a("other_platform_name")))))),Object(g.createElement)(T.CardFooter,{isBorderless:!0,justify:"center"},Object(g.createElement)(T.Button,{isPrimary:!0,onClick:l,disabled:!m,isBusy:r},c?Object(v.__)("Retry","woocommerce-admin"):Object(v.__)("Continue","woocommerce-admin")),c&&Object(g.createElement)(T.Button,{onClick:function(){return n()}},Object(v.__)("Continue without installing","woocommerce-admin")))))}))}},{key:"renderFreeFeaturesStep",value:function(){var e=this.props,t=e.isInstallingActivating,n=e.settings,r=e.profileItems,c=n.woocommerce_default_country?n.woocommerce_default_country:null;return Object(g.createElement)(g.Fragment,null,Object(g.createElement)("div",{className:"woocommerce-profile-wizard__step-header"},Object(g.createElement)(T.__experimentalText,{variant:"title.small",as:"h2"},Object(v.__)("Included business features","woocommerce-admin")),Object(g.createElement)(T.__experimentalText,{variant:"body"},Object(v.__)("We recommend enhancing your store with these free extensions","woocommerce-admin")),Object(g.createElement)(T.__experimentalText,{variant:"body"},Object(v.__)("No commitment required - you can remove them at any time.","woocommerce-admin"))),Object(g.createElement)(Se,{isInstallingActivating:t,onSubmit:this.onContinue,country:c,industry:r.industry,productTypes:r.product_types}))}},{key:"render",value:function(){var e=this,t=this.props.initialValues;return Object(g.createElement)(T.TabPanel,{activeClass:"is-active",initialTabName:"current-tab",onSelect:function(n){e.state.currentTab!==n&&e.setState({currentTab:n,savedValues:t})},tabs:[{name:"business-details"===this.state.currentTab?"current-tab":"business-details",id:"business-details",title:Object(v.__)("Business details","woocommerce-admin")},{name:"free-features"===this.state.currentTab?"current-tab":"free-features",id:"free-features",title:Object(v.__)("Free features","woocommerce-admin"),className:this.state.isValid?"":"is-disabled"}]},(function(t){return Object(g.createElement)(g.Fragment,null,e.getTab(t.id))}))}},{key:"getTab",value:function(e){return"business-details"===e?this.renderBusinessDetailsStep():this.renderFreeFeaturesStep()}}]),r}(g.Component);Ne.contextType=$.a;var Ze=Object(y.compose)(Object(k.withSelect)((function(e){var t=e(S.SETTINGS_STORE_NAME),n=t.getSettings,r=t.getSettingsError,c=e(S.ONBOARDING_STORE_NAME),o=c.getProfileItems,i=c.getOnboardingError,a=e(S.PLUGINS_STORE_NAME),l=a.getPluginsError,s=a.isPluginsRequesting,m=n("general").general,u=void 0===m?{}:m;return{hasInstallActivateError:l("installPlugins")||l("activatePlugins"),isError:Boolean(i("updateProfileItems")),profileItems:o(),isSettingsError:Boolean(r("general")),settings:u,isInstallingActivating:s("installPlugins")||s("activatePlugins")||s("getJetpackConnectUrl")}})),Object(k.withDispatch)((function(e){var t=e(S.ONBOARDING_STORE_NAME).updateProfileItems,n=e(S.PLUGINS_STORE_NAME).installAndActivatePlugins;return{createNotice:e("core/notices").createNotice,installAndActivatePlugins:n,updateProfileItems:t}})))(Ne),Te=(n(665),["US","BR","FR","ID","GB","DE","VN","CA","PL","MY","AU","NG","GR","BE","PT","DK","SE","JP","IE","NZ"]),Ve=function(e){return Te.includes(Object(ne.b)(e))},xe=function(e){var t=Object(k.useSelect)((function(e){return{isLoading:!e(S.ONBOARDING_STORE_NAME).hasFinishedResolution("getProfileItems")||!e(S.SETTINGS_STORE_NAME).hasFinishedResolution("getSettings",["general"]),profileItems:e(S.ONBOARDING_STORE_NAME).getProfileItems(),settings:e(S.SETTINGS_STORE_NAME).getSettings("general")||{}}})),n=t.profileItems,r=t.settings,c=t.isLoading,o=r.general?r.general.woocommerce_default_country:null,i=Ve(o);if(c)return Object(g.createElement)("div",{className:"woocommerce-admin__business-details__spinner"},Object(g.createElement)(H.Spinner,null));if(i){var a={other_platform:n.other_platform||"",other_platform_name:n.other_platform_name||"",product_count:n.product_count||"",selling_venues:n.selling_venues||"",revenue:n.revenue||""};return Object(g.createElement)(Ze,Y()({},e,{initialValues:a}))}return Object(g.createElement)(pe,e)};function He(e){var t=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){}))),!0}catch(e){return!1}}();return function(){var n,r=j()(e);if(t){var c=j()(this).constructor;n=Reflect.construct(r,arguments,c)}else n=r.apply(this,arguments);return O()(this,n)}}var Ie=Object(P.g)("onboarding",{}),Re=function(e){f()(c,e);var t,n,r=He(c);function c(e){var t;m()(this,c);var n=Object(w.get)(e,"profileItems",{}).industry||[],o=e.locationSettings;if("US"!==Object(ne.c)(o.woocommerce_default_country)){var i="cbd-other-hemp-derived-products";n=n.filter((function(e){return i!==e&&i!==e.slug}))}return(t=r.call(this)).state={error:null,selected:n,textInputListContent:{}},t.onContinue=t.onContinue.bind(p()(t)),t.onIndustryChange=t.onIndustryChange.bind(p()(t)),t.onDetailChange=t.onDetailChange.bind(p()(t)),t}return C()(c,[{key:"onContinue",value:(n=l()(i.a.mark((function e(){var t,n,r,c,o,a,l;return i.a.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.next=2,this.validateField();case 2:if(!this.state.error){e.next=4;break}return e.abrupt("return");case 4:return t=this.props,n=t.createNotice,r=t.goToNextStep,c=t.isError,o=t.updateProfileItems,a=this.state.selected.map((function(e){return e.slug})),l=this.state.selected.map((function(e){return e.detail})).filter((function(e){return e})).join(","),Object(M.recordEvent)("storeprofiler_store_industry_continue",{store_industry:a,industries_with_detail:l}),e.next=10,o({industry:this.state.selected});case 10:c?n("error",Object(v.__)("There was a problem updating your industries","woocommerce-admin")):r();case 11:case"end":return e.stop()}}),e,this)}))),function(){return n.apply(this,arguments)})},{key:"validateField",value:(t=l()(i.a.mark((function e(){var t;return i.a.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:t=this.state.selected.length?null:Object(v.__)("Please select at least one industry","woocommerce-admin"),this.setState({error:t});case 2:case"end":return e.stop()}}),e,this)}))),function(){return t.apply(this,arguments)})},{key:"onIndustryChange",value:function(e){var t=this;this.setState((function(t){var n=t.selected,r=Object(w.find)(n,{slug:e});if(r){var c=t.textInputListContent;return c[e]=r.detail,{selected:Object(w.filter)(t.selected,(function(t){return t.slug!==e}))||[],textInputListContent:c}}return n.push({slug:e,detail:t.textInputListContent[e]}),{selected:n}}),(function(){return t.validateField()}))}},{key:"onDetailChange",value:function(e,t){this.setState((function(n){var r=n.selected,c=n.textInputListContent;return r[Object(w.findIndex)(r,{slug:t})].detail=e,c[t]=e,{selected:r,textInputListContent:c}}))}},{key:"renderIndustryLabel",value:function(e,t,n){var r=this,c=this.state.textInputListContent;return Object(g.createElement)(g.Fragment,null,t.label,t.use_description&&n&&Object(g.createElement)(H.TextControl,{key:"text-control-".concat(e),label:t.description_label,value:n.detail||c[e]||"",onChange:function(t){return r.onDetailChange(t,e)},className:"woocommerce-profile-wizard__text"}))}},{key:"render",value:function(){var e=this,t=Ie.industries,n=this.state,r=n.error,c=n.selected,o=this.props,i=o.locationSettings,a=o.isProfileItemsRequesting,l=Object(ne.c)(i.woocommerce_default_country),s=Object.keys(t),m="US"===l?s:s.filter((function(e){return"cbd-other-hemp-derived-products"!==e}));return Object(g.createElement)(g.Fragment,null,Object(g.createElement)("div",{className:"woocommerce-profile-wizard__step-header"},Object(g.createElement)(I.e,{variant:"title.small",as:"h2"},Object(v.__)("In which industry does the store operate?","woocommerce-admin")),Object(g.createElement)(I.e,{variant:"body"},Object(v.__)("Choose any that apply","woocommerce-admin"))),Object(g.createElement)(T.Card,null,Object(g.createElement)(T.CardBody,{size:null},Object(g.createElement)("div",{className:"woocommerce-profile-wizard__checkbox-group"},m.map((function(n){var r=Object(w.find)(c,{slug:n});return Object(g.createElement)(T.CheckboxControl,{key:"checkbox-control-".concat(n),label:e.renderIndustryLabel(n,t[n],r),onChange:function(){return e.onIndustryChange(n)},checked:r||!1,className:"woocommerce-profile-wizard__checkbox"})})),r&&Object(g.createElement)("span",{className:"woocommerce-profile-wizard__error"},r))),Object(g.createElement)(T.CardFooter,{isBorderless:!0,justify:"center"},Object(g.createElement)(T.Button,{isPrimary:!0,onClick:this.onContinue,isBusy:a,disabled:!c.length||a},Object(v.__)("Continue","woocommerce-admin")))))}}]),c}(g.Component),Be=Object(y.compose)(Object(k.withSelect)((function(e){var t=e(S.ONBOARDING_STORE_NAME),n=t.getProfileItems,r=t.getOnboardingError,c=t.isOnboardingRequesting,o=(0,e(S.SETTINGS_STORE_NAME).getSettings)("general").general,i=void 0===o?{}:o;return{isError:Boolean(r("updateProfileItems")),profileItems:n(),locationSettings:i,isProfileItemsRequesting:c("updateProfileItems")}})),Object(k.withDispatch)((function(e){var t=e(S.ONBOARDING_STORE_NAME).updateProfileItems;return{createNotice:e("core/notices").createNotice,updateProfileItems:t}})))(Re),Fe=(n(408),n(703));function Ae(e){var t=e.annualPrice,n=e.description,r=e.isMonthlyPricing,c=e.label,o=e.moreUrl,i=e.slug,a=Object(g.useState)(""),l=Z()(a,2),s=l[0],m=l[1];if(!t)return c;var u=Object(v.__)("This product type requires a paid extension.\nWe'll add this to a cart so that\nyou can purchase and install it later.","woocommerce-admin");return Object(g.createElement)(g.Fragment,null,Object(g.createElement)("span",{className:"woocommerce-product-wizard__product-types-label"},c),Object(g.createElement)(T.Button,{isTertiary:!0,label:Object(v.__)("Learn more about recommended free business features","woocommerce-admin"),onClick:function(){m(!0)}},Object(g.createElement)(be.a,{icon:Fe.a})),s&&Object(g.createElement)(T.Popover,{focusOnMount:"container",position:"top center",onClose:function(){return m(!1)}},x()({mixedString:n+(o?" {{moreLink/}}":""),components:{moreLink:o?Object(g.createElement)(H.Link,{href:o,target:"_blank",type:"external",onClick:function(){return Object(M.recordEvent)("storeprofiler_store_product_type_learn_more",{product_type:i})}},Object(v.__)("Learn more","woocommerce-admin")):""}})),Object(g.createElement)(T.Tooltip,{text:u,position:"bottom center"},Object(g.createElement)(H.Pill,null,Object(g.createElement)("span",{className:"screen-reader-text"},u),r?Object(v.sprintf)(Object(v.__)("$%f per month","woocommerce-admin"),(t/12).toFixed(2)):Object(v.sprintf)(Object(v.__)("$%f per year","woocommerce-admin"),t))))}n(666);function De(e){var t=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){}))),!0}catch(e){return!1}}();return function(){var n,r=j()(e);if(t){var c=j()(this).constructor;n=Reflect.construct(r,arguments,c)}else n=r.apply(this,arguments);return O()(this,n)}}var Ue=function(e){f()(n,e);var t=De(n);function n(e){var r;m()(this,n),r=t.call(this);var c=Object(w.get)(e,"profileItems",{}),o=Object(P.g)("onboarding",{}).productTypes,i=void 0===o?{}:o,a=Object.keys(i).filter((function(e){return!!i[e].default}));return r.state={error:null,isMonthlyPricing:!0,selected:c.product_types||a},r.onContinue=r.onContinue.bind(p()(r)),r.onChange=r.onChange.bind(p()(r)),r}return C()(n,[{key:"validateField",value:function(){var e=this.state.selected.length?null:Object(v.__)("Please select at least one product type","woocommerce-admin");return this.setState({error:e}),!e}},{key:"onContinue",value:function(){if(this.validateField()){var e=this.props,t=e.createNotice,n=e.goToNextStep,r=e.updateProfileItems;Object(M.recordEvent)("storeprofiler_store_product_type_continue",{product_type:this.state.selected}),r({product_types:this.state.selected}).then((function(){return n()})).catch((function(){return t("error",Object(v.__)("There was a problem updating your product types","woocommerce-admin"))}))}}},{key:"onChange",value:function(e){var t=this;this.setState((function(t){if(Object(w.includes)(t.selected,e))return{selected:Object(w.filter)(t.selected,(function(t){return t!==e}))||[]};var n=t.selected;return n.push(e),{selected:n}}),(function(){return t.validateField()}))}},{key:"render",value:function(){var e=this,t=Object(P.g)("onboarding",{}).productTypes,n=void 0===t?{}:t,r=this.state,c=r.error,o=r.isMonthlyPricing,i=r.selected,a=this.props.isProfileItemsRequesting;return Object(g.createElement)("div",{className:"woocommerce-profile-wizard__product-types"},Object(g.createElement)("div",{className:"woocommerce-profile-wizard__step-header"},Object(g.createElement)(I.e,{variant:"title.small",as:"h2"},Object(v.__)("What type of products will be listed?","woocommerce-admin")),Object(g.createElement)(I.e,{variant:"body"},Object(v.__)("Choose any that apply","woocommerce-admin"))),Object(g.createElement)(T.Card,null,Object(g.createElement)(T.CardBody,{size:null},Object.keys(n).map((function(t){return Object(g.createElement)(T.CheckboxControl,{key:t,label:Object(g.createElement)(Ae,{description:n[t].description,label:n[t].label,annualPrice:n[t].yearly_price,isMonthlyPricing:o,moreUrl:n[t].more_url,slug:t}),onChange:function(){return e.onChange(t)},checked:i.includes(t),className:"woocommerce-profile-wizard__checkbox"})})),c&&Object(g.createElement)("span",{className:"woocommerce-profile-wizard__error"},c)),Object(g.createElement)(T.CardFooter,{isBorderless:!0,justify:"center"},Object(g.createElement)(T.Button,{isPrimary:!0,onClick:this.onContinue,isBusy:a,disabled:!i.length||a},Object(v.__)("Continue","woocommerce-admin")))),Object(g.createElement)("div",{className:"woocommerce-profile-wizard__card-help-footnote"},Object(g.createElement)("div",{className:"woocommerce-profile-wizard__product-types-pricing-toggle woocommerce-profile-wizard__checkbox"},Object(g.createElement)("label",{htmlFor:"woocommerce-product-types__pricing-toggle"},Object(g.createElement)(I.e,{variant:"body"},Object(v.__)("Display monthly prices","woocommerce-admin")),Object(g.createElement)(T.FormToggle,{id:"woocommerce-product-types__pricing-toggle",checked:o,onChange:function(){return e.setState({isMonthlyPricing:!o})}}))),Object(g.createElement)(I.e,{variant:"caption"},Object(v.__)("Billing is annual. All purchases are covered by our 30 day money back guarantee and include access to support and updates. Extensions will be added to a cart for you to purchase later.","woocommerce-admin"))))}}]),n}(g.Component),ze=Object(y.compose)(Object(k.withSelect)((function(e){var t=e(S.ONBOARDING_STORE_NAME),n=t.getProfileItems,r=t.getOnboardingError,c=t.isOnboardingRequesting;return{isError:Boolean(r("updateProfileItems")),profileItems:n(),isProfileItemsRequesting:c("updateProfileItems")}})),Object(k.withDispatch)((function(e){var t=e(S.ONBOARDING_STORE_NAME).updateProfileItems;return{createNotice:e("core/notices").createNotice,updateProfileItems:t}})))(Ue);function qe(e){var t=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){}))),!0}catch(e){return!1}}();return function(){var n,r=j()(e);if(t){var c=j()(this).constructor;n=Reflect.construct(r,arguments,c)}else n=r.apply(this,arguments);return O()(this,n)}}var Ge=function(e){f()(n,e);var t=qe(n);function n(){return m()(this,n),t.apply(this,arguments)}return C()(n,[{key:"renderStepper",value:function(){var e=this.props,t=e.currentStep,n=e.steps,r=Object(w.filter)(n,(function(e){return!!e.label})),c=r.findIndex((function(e){return e.key===t}));return r.map((function(e,t){var n=r[t-1];return t<c&&(e.isComplete=!0),n&&!n.isComplete||(e.onClick=function(e){return Object(L.updateQueryString)({step:e})}),e})),Object(g.createElement)(H.Stepper,{steps:r,currentStep:t})}},{key:"render",value:function(){var e=this,t=this.props.steps.find((function(t){return t.key===e.props.currentStep}));return t&&t.label?Object(g.createElement)("div",{className:"woocommerce-profile-wizard__header"},this.renderStepper()):null}}]),n}(g.Component),We=n(620),Je=n(610);n(667);function Ye(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function $e(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?Ye(Object(n),!0).forEach((function(t){c()(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):Ye(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}function Qe(e){var t=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){}))),!0}catch(e){return!1}}();return function(){var n,r=j()(e);if(t){var c=j()(this).constructor;n=Reflect.construct(r,arguments,c)}else n=r.apply(this,arguments);return O()(this,n)}}var Ke=T.FlexItem||function(e){var t=e.children,n={display:"flex","justify-content":e.align?"center":"flex-start"};return Object(g.createElement)("div",{style:n},t)},Xe=function(e){f()(r,e);var t,n=Qe(r);function r(e){var t;m()(this,r),t=n.call(this,e);var c=e.profileItems,o=e.settings;t.state={showUsageModal:!1,skipping:!1,isStoreDetailsPopoverVisible:!1,isSkipSetupPopoverVisible:!1};var i=o.woocommerce_store_address&&o.woocommerce_default_country||"";return t.initialValues={addressLine1:o.woocommerce_store_address||"",addressLine2:o.woocommerce_store_address_2||"",city:o.woocommerce_store_city||"",countryState:i,postCode:o.woocommerce_store_postcode||"",isClient:c.setup_client||!1},t.onContinue=t.onContinue.bind(p()(t)),t.onSubmit=t.onSubmit.bind(p()(t)),t}return C()(r,[{key:"deriveCurrencySettings",value:function(e){if(!e)return null;var t=this.context,n=Object(ne.b)(e),r=Object(P.g)("onboarding",{}),c=r.currencySymbols,o=void 0===c?{}:c,i=r.localeInfo,a=void 0===i?{}:i;return t.getDataForCountry(n,a,o)}},{key:"onSubmit",value:function(){this.setState({showUsageModal:!0,skipping:!1})}},{key:"onContinue",value:(t=l()(i.a.mark((function e(t){var n,r,c,o,a,l,s,m,u,C,d,p,b;return i.a.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return n=this.props,r=n.createNotice,c=n.goToNextStep,o=n.isSettingsError,a=n.updateProfileItems,l=n.isProfileItemsError,s=n.updateAndPersistSettingsForGroup,m=n.profileItems,u=n.settings,C=this.deriveCurrencySettings(t.countryState),this.context.setCurrency(C),Object(M.recordEvent)("storeprofiler_store_details_continue",{store_country:Object(ne.b)(t.countryState),derived_currency:C.currency_code,setup_client:t.isClient}),e.next=7,s("general",{general:$e($e({},u),{},{woocommerce_store_address:t.addressLine1,woocommerce_store_address_2:t.addressLine2,woocommerce_default_country:t.countryState,woocommerce_store_city:t.city,woocommerce_store_postcode:t.postCode,woocommerce_currency:C.code,woocommerce_currency_pos:C.symbolPosition,woocommerce_price_thousand_sep:C.thousandSeparator,woocommerce_price_decimal_sep:C.decimalSeparator,woocommerce_price_num_decimals:C.precision})});case 7:return d={setup_client:t.isClient},"US"!==Object(ne.c)(t.countryState)&&m.industry&&m.industry.length&&(p="cbd-other-hemp-derived-products",b=m.industry.filter((function(e){return p!==e&&p!==e.slug})),d.industry=b),e.next=12,a(d);case 12:o||l?r("error",Object(v.__)("There was a problem saving your store details","woocommerce-admin")):c();case 13:case"end":return e.stop()}}),e,this)}))),function(e){return t.apply(this,arguments)})},{key:"render",value:function(){var e=this,t=this.state,n=t.showUsageModal,r=t.skipping,c=t.isStoreDetailsPopoverVisible,o=t.isSkipSetupPopoverVisible,i=this.props,a=i.skipProfiler,l=i.isUpdatingProfileItems,s=Object(v.__)("Manual setup is only recommended for\n experienced WooCommerce users or developers.","woocommerce-admin"),m=Object(v.__)("Your store address will help us configure currency\n options and shipping rules automatically.\n This information will not be publicly visible and can\n easily be changed later.","woocommerce-admin");return Object(g.createElement)("div",{className:"woocommerce-profile-wizard__store-details"},Object(g.createElement)("div",{className:"woocommerce-profile-wizard__step-header"},Object(g.createElement)(I.e,{variant:"title.small",as:"h2"},Object(v.__)("Welcome to WooCommerce","woocommerce-admin")),Object(g.createElement)(I.e,{variant:"body"},Object(v.__)("Tell us about your store and we'll get you set up in no time","woocommerce-admin"),Object(g.createElement)(T.Button,{isTertiary:!0,label:Object(v.__)("Learn more about store details","woocommerce-admin"),onClick:function(){return e.setState({isStoreDetailsPopoverVisible:!0})}},Object(g.createElement)(be.a,{icon:Fe.a}))),c&&Object(g.createElement)(T.Popover,{focusOnMount:"container",position:"top center",onClose:function(){return e.setState({isStoreDetailsPopoverVisible:!1})}},m)),Object(g.createElement)(H.Form,{initialValues:this.initialValues,onSubmitCallback:this.onSubmit,validate:We.b},(function(t){var c=t.getInputProps,o=t.handleSubmit,i=t.values,s=t.isValidForm,m=t.setValue;return Object(g.createElement)(T.Card,null,n&&Object(g.createElement)(Je.a,{onContinue:function(){r?a():e.onContinue(i)},onClose:function(){return e.setState({showUsageModal:!1,skipping:!1})}}),Object(g.createElement)(T.CardBody,null,Object(g.createElement)(We.a,{getInputProps:c,setValue:m})),Object(g.createElement)(T.CardFooter,null,Object(g.createElement)(Ke,null,Object(g.createElement)("div",{className:"woocommerce-profile-wizard__client"},Object(g.createElement)(T.CheckboxControl,Y()({label:Object(v.__)("I'm setting up a store for a client","woocommerce-admin")},c("isClient")))))),Object(g.createElement)(T.CardFooter,{justify:"center"},Object(g.createElement)(T.Button,{isPrimary:!0,onClick:o,isBusy:l,disabled:!s||l},Object(v.__)("Continue","woocommerce-admin"))))})),Object(g.createElement)("div",{className:"woocommerce-profile-wizard__footer"},Object(g.createElement)(T.Button,{isLink:!0,className:"woocommerce-profile-wizard__footer-link",onClick:function(){return e.setState({showUsageModal:!0,skipping:!0}),!1}},Object(v.__)("Skip setup store details","woocommerce-admin")),Object(g.createElement)(T.Button,{isTertiary:!0,label:s,onClick:function(){return e.setState({isSkipSetupPopoverVisible:!0})}},Object(g.createElement)(be.a,{icon:Fe.a})),o&&Object(g.createElement)(T.Popover,{focusOnMount:"container",position:"top center",onClose:function(){return e.setState({isSkipSetupPopoverVisible:!1})}},s)))}}]),r}(g.Component);Xe.contextType=$.a;var et=Object(y.compose)(Object(k.withSelect)((function(e){var t=e(S.SETTINGS_STORE_NAME),n=t.getSettings,r=t.getSettingsError,c=t.isUpdateSettingsRequesting,o=e(S.ONBOARDING_STORE_NAME),i=o.getOnboardingError,a=o.getProfileItems,l=o.isOnboardingRequesting,s=a(),m=Boolean(i("updateProfileItems")),u=n("general").general,C=void 0===u?{}:u;return{isProfileItemsError:m,isSettingsError:Boolean(r("general")),profileItems:s,isUpdatingProfileItems:l("updateProfileItems")||c("general"),settings:C}})),Object(k.withDispatch)((function(e){return{createNotice:e("core/notices").createNotice,updateProfileItems:e(S.ONBOARDING_STORE_NAME).updateProfileItems,updateAndPersistSettingsForGroup:e(S.SETTINGS_STORE_NAME).updateAndPersistSettingsForGroup}})))(Xe),tt=n(44),nt=n.n(tt),rt=(n(178),n(135),n(66),n(95)),ct=n.n(rt),ot=n(132),it=n(668),at=n.n(it),lt=(n(669),n(15)),st=n.n(lt),mt=n(670),ut=n.n(mt),Ct=n(1),dt=n.n(Ct);function pt(e){var t=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){}))),!0}catch(e){return!1}}();return function(){var n,r=j()(e);if(t){var c=j()(this).constructor;n=Reflect.construct(r,arguments,c)}else n=r.apply(this,arguments);return O()(this,n)}}var bt=function(e){f()(n,e);var t=pt(n);function n(){var e;return m()(this,n),(e=t.call(this)).state={isUploading:!1},e.handleFilesUpload=e.handleFilesUpload.bind(p()(e)),e.handleFilesDrop=e.handleFilesDrop.bind(p()(e)),e}return C()(n,[{key:"handleFilesDrop",value:function(e){var t=e[0];this.uploadTheme(t)}},{key:"handleFilesUpload",value:function(e){var t=e.target.files[0];this.uploadTheme(t)}},{key:"uploadTheme",value:function(e){var t=this,n=this.props,r=n.createNotice,c=n.onUploadComplete;this.setState({isUploading:!0});var o=new window.FormData;return o.append("pluginzip",e),ct()({path:"/wc-admin/themes",method:"POST",body:o}).then((function(e){c(e),t.setState({isUploading:!1}),r(e.status,e.message)})).catch((function(e){t.setState({isUploading:!1}),e&&e.message&&r("error",e.message)}))}},{key:"render",value:function(){var e=this.props.className,t=this.state.isUploading,n=st()("woocommerce-theme-uploader",e,{"is-uploading":t});return Object(g.createElement)(T.Card,{className:n},Object(g.createElement)(T.DropZoneProvider,null,t?Object(g.createElement)(g.Fragment,null,Object(g.createElement)(H.Spinner,null),Object(g.createElement)(H.H,{className:"woocommerce-theme-uploader__title"},Object(v.__)("Uploading theme","woocommerce-admin")),Object(g.createElement)("p",null,Object(v.__)("Your theme is being uploaded","woocommerce-admin"))):Object(g.createElement)(g.Fragment,null,Object(g.createElement)(T.FormFileUpload,{accept:".zip",onChange:this.handleFilesUpload},Object(g.createElement)(ut.a,null),Object(g.createElement)(H.H,{className:"woocommerce-theme-uploader__title"},Object(v.__)("Upload a theme","woocommerce-admin")),Object(g.createElement)("p",null,Object(v.__)("Drop a theme zip file here to upload","woocommerce-admin"))),Object(g.createElement)(T.DropZone,{label:Object(v.__)("Drop your theme zip file here","woocommerce-admin"),onFilesDrop:this.handleFilesDrop}))))}}]),n}(g.Component);bt.propTypes={className:dt.a.string,onUploadComplete:dt.a.func},bt.defaultProps={onUploadComplete:w.noop};var ft=Object(y.compose)(Object(k.withDispatch)((function(e){return{createNotice:e("core/notices").createNotice}})))(bt),ht=n(595),Ot=n(671),_t=n.n(Ot),jt=n(672),gt=n.n(jt),vt=n(673),Et=n.n(vt);function yt(e){var t=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){}))),!0}catch(e){return!1}}();return function(){var n,r=j()(e);if(t){var c=j()(this).constructor;n=Reflect.construct(r,arguments,c)}else n=r.apply(this,arguments);return O()(this,n)}}var wt=[{key:"mobile",icon:_t.a},{key:"tablet",icon:gt.a},{key:"desktop",icon:Et.a}],kt=function(e){f()(n,e);var t=yt(n);function n(){var e;return m()(this,n),(e=t.apply(this,arguments)).state={device:"desktop"},e.handleDeviceClick=e.handleDeviceClick.bind(p()(e)),e}return C()(n,[{key:"handleDeviceClick",value:function(e){var t=this.props.theme;Object(M.recordEvent)("storeprofiler_store_theme_demo_device",{device:e,theme:t.slug}),this.setState({device:e})}},{key:"render",value:function(){var e=this,t=this.props,n=t.isBusy,r=t.onChoose,c=t.onClose,o=t.theme,i=o.demo_url,a=o.slug,l=o.title,s=this.state.device;return Object(g.createElement)("div",{className:"woocommerce-theme-preview"},Object(g.createElement)("div",{className:"woocommerce-theme-preview__toolbar"},Object(g.createElement)(T.Button,{className:"woocommerce-theme-preview__close",onClick:c},Object(g.createElement)(be.a,{icon:ht.a})),Object(g.createElement)("div",{className:"woocommerce-theme-preview__theme-name"},x()({mixedString:Object(v.sprintf)(Object(v.__)("{{strong}}%s{{/strong}} developed by WooCommerce","woocommerce-admin"),l),components:{strong:Object(g.createElement)("strong",null)}})),Object(g.createElement)("div",{className:"woocommerce-theme-preview__devices"},wt.map((function(t){var n=t.icon;return Object(g.createElement)(T.Button,{key:t.key,className:st()("woocommerce-theme-preview__device",{"is-selected":t.key===s}),onClick:function(){return e.handleDeviceClick(t.key)}},Object(g.createElement)(n,null))}))),Object(g.createElement)(T.Button,{isPrimary:!0,onClick:function(){return r(a,"preview")},isBusy:n},Object(v.__)("Choose","woocommerce-admin"))),Object(g.createElement)(H.WebPreview,{src:i,title:l,className:"is-".concat(s)}))}}]),n}(g.Component);function Lt(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function St(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?Lt(Object(n),!0).forEach((function(t){c()(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):Lt(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}function Mt(e){var t=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){}))),!0}catch(e){return!1}}();return function(){var n,r=j()(e);if(t){var c=j()(this).constructor;n=Reflect.construct(r,arguments,c)}else n=r.apply(this,arguments);return O()(this,n)}}var Pt=function(e){f()(n,e);var t=Mt(n);function n(){var e;return m()(this,n),(e=t.apply(this,arguments)).state={activeTab:"all",chosen:null,demo:null,uploadedThemes:[]},e.handleUploadComplete=e.handleUploadComplete.bind(p()(e)),e.onChoose=e.onChoose.bind(p()(e)),e.onClosePreview=e.onClosePreview.bind(p()(e)),e.onSelectTab=e.onSelectTab.bind(p()(e)),e.openDemo=e.openDemo.bind(p()(e)),e.skipStep=e.skipStep.bind(p()(e)),e}return C()(n,[{key:"componentDidUpdate",value:function(e){var t=this.props,n=t.isError,r=t.isUpdatingProfileItems,c=t.createNotice,o=this.state.chosen,i=!r&&e.isUpdatingProfileItems&&!n&&o,a=!r&&e.isRequesting&&n;i&&(this.setState({chosen:null}),this.props.goToNextStep()),a&&(this.setState({chosen:null}),c("error",Object(v.__)("There was a problem selecting your store theme","woocommerce-admin")))}},{key:"onChoose",value:function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"",n=this.props.updateProfileItems,r=e.is_installed,c=e.price,o=e.slug,i=Object(P.g)("onboarding",{}),a=i.activeTheme,l=void 0===a?"":a;this.setState({chosen:o}),Object(M.recordEvent)("storeprofiler_store_theme_choose",{theme:o,location:t}),o!==l&&Object(ne.d)(c)<=0?r?this.activateTheme(o):this.installTheme(o):n({theme:o})}},{key:"installTheme",value:function(e){var t=this,n=this.props.createNotice;ct()({path:"/wc-admin/onboarding/themes/install?theme="+e,method:"POST"}).then((function(r){n("success",Object(v.sprintf)(Object(v.__)("%s was installed on your site","woocommerce-admin"),r.name)),t.activateTheme(e)})).catch((function(e){t.setState({chosen:null}),n("error",e.message)}))}},{key:"activateTheme",value:function(e){var t=this,n=this.props,r=n.createNotice,c=n.updateProfileItems;ct()({path:"/wc-admin/onboarding/themes/activate?theme="+e,method:"POST"}).then((function(t){r("success",Object(v.sprintf)(Object(v.__)("%s was activated on your site","woocommerce-admin"),t.name)),Object(P.h)("onboarding",St(St({},Object(P.g)("onboarding",{})),{},{activeTheme:t.slug})),c({theme:e})})).catch((function(e){t.setState({chosen:null}),r("error",e.message)}))}},{key:"onClosePreview",value:function(){var e=this.state.demo;Object(M.recordEvent)("storeprofiler_store_theme_demo_close",{theme:e.slug}),document.body.classList.remove("woocommerce-theme-preview-active"),this.setState({demo:null})}},{key:"openDemo",value:function(e){Object(M.recordEvent)("storeprofiler_store_theme_live_demo",{theme:e.slug}),document.body.classList.add("woocommerce-theme-preview-active"),this.setState({demo:e})}},{key:"skipStep",value:function(){var e=Object(P.g)("onboarding",{}).activeTheme,t=void 0===e?"":e;Object(M.recordEvent)("storeprofiler_store_theme_skip_step",{activeTheme:t}),this.props.goToNextStep()}},{key:"renderTheme",value:function(e){var t=this,n=e.demo_url,r=e.has_woocommerce_support,c=e.image,o=e.slug,i=e.title,a=this.state.chosen,l=Object(P.g)("onboarding",{}).activeTheme,s=void 0===l?"":l;return Object(g.createElement)(T.Card,{className:"woocommerce-profile-wizard__theme",key:o},Object(g.createElement)(T.CardBody,{size:null},c&&Object(g.createElement)("div",{className:"woocommerce-profile-wizard__theme-image",style:{backgroundImage:"url(".concat(c,")")},role:"img","aria-label":i})),Object(g.createElement)(T.CardBody,{className:"woocommerce-profile-wizard__theme-details"},Object(g.createElement)(H.H,{className:"woocommerce-profile-wizard__theme-name"},i,!r&&Object(g.createElement)(T.Tooltip,{text:Object(v.__)("This theme does not support WooCommerce.","woocommerce-admin")},Object(g.createElement)("span",null,Object(g.createElement)(at.a,{role:"img","aria-hidden":"true",focusable:"false"})))),Object(g.createElement)("p",{className:"woocommerce-profile-wizard__theme-status"},this.getThemeStatus(e))),Object(g.createElement)(T.CardFooter,null,o===s?Object(g.createElement)(T.Button,{isPrimary:!0,onClick:function(){return t.onChoose(e,"card")},isBusy:a===o,disabled:a===o},Object(v.__)("Continue with my active theme","woocommerce-admin")):Object(g.createElement)(T.Button,{isSecondary:!0,onClick:function(){return t.onChoose(e,"card")},isBusy:a===o,disabled:a===o},Object(v.__)("Choose","woocommerce-admin")),n&&Object(g.createElement)(T.Button,{isTertiary:!0,onClick:function(){return t.openDemo(e)}},Object(v.__)("Live demo","woocommerce-admin"))))}},{key:"getThemeStatus",value:function(e){var t=e.is_installed,n=e.price,r=e.slug,c=Object(P.g)("onboarding",{}).activeTheme;return(void 0===c?"":c)===r?Object(v.__)("Currently active theme","woocommerce-admin"):t?Object(v.__)("Installed","woocommerce-admin"):Object(ne.d)(n)<=0?Object(v.__)("Free","woocommerce-admin"):Object(v.sprintf)(Object(v.__)("%s per year","woocommerce-admin"),Object(ot.decodeEntities)(n))}},{key:"doesActiveThemeSupportWooCommerce",value:function(){var e=Object(P.g)("onboarding",{}).activeTheme,t=void 0===e?"":e,n=this.getThemes().find((function(e){return e.slug===t}));return n&&n.has_woocommerce_support}},{key:"onSelectTab",value:function(e){Object(M.recordEvent)("storeprofiler_store_theme_navigate",{navigation:e}),this.setState({activeTab:e})}},{key:"getPriceValue",value:function(e){return Number(Object(ot.decodeEntities)(e).replace(/[^0-9.-]+/g,""))}},{key:"getThemes",value:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:"all",t=this.state.uploadedThemes,n=Object(P.g)("onboarding",{}),r=n.activeTheme,c=void 0===r?"":r,o=n.themes,i=void 0===o?[]:o,a=[].concat(nt()(i.filter((function(e){return e&&(e.has_woocommerce_support||e.slug===c)}))),nt()(t));switch(e){case"paid":return a.filter((function(e){return Object(ne.d)(e.price)>0}));case"free":return a.filter((function(e){return Object(ne.d)(e.price)<=0}));case"all":default:return a}}},{key:"handleUploadComplete",value:function(e){"success"===e.status&&e.theme_data&&(this.setState({uploadedThemes:[].concat(nt()(this.state.uploadedThemes),[e.theme_data])}),Object(M.recordEvent)("storeprofiler_store_theme_upload",{theme:e.theme_data.slug}))}},{key:"render",value:function(){var e=this,t=this.state,n=t.activeTab,r=t.chosen,c=t.demo,o=this.getThemes(n),i=this.doesActiveThemeSupportWooCommerce();return Object(g.createElement)(g.Fragment,null,Object(g.createElement)("div",{className:"woocommerce-profile-wizard__step-header"},Object(g.createElement)(I.e,{variant:"title.small",as:"h2"},Object(v.__)("Choose a theme","woocommerce-admin")),Object(g.createElement)(I.e,{variant:"body"},Object(v.__)("Choose how your store appears to customers. And don't worry, you can always switch themes and edit them later.","woocommerce-admin"))),Object(g.createElement)(T.TabPanel,{className:"woocommerce-profile-wizard__themes-tab-panel",activeClass:"is-active",onSelect:this.onSelectTab,tabs:[{name:"all",title:Object(v.__)("All themes","woocommerce-admin")},{name:"paid",title:Object(v.__)("Paid themes","woocommerce-admin")},{name:"free",title:Object(v.__)("Free themes","woocommerce-admin")}]},(function(){return Object(g.createElement)("div",{className:"woocommerce-profile-wizard__themes"},o&&o.map((function(t){return e.renderTheme(t)})),Object(g.createElement)(ft,{onUploadComplete:e.handleUploadComplete}))})),c&&Object(g.createElement)(kt,{theme:c,onChoose:function(){return e.onChoose(c,"card")},onClose:this.onClosePreview,isBusy:r===c.slug}),i&&Object(g.createElement)("p",{className:"woocommerce-profile-wizard__themes-skip-this-step"},Object(g.createElement)(T.Button,{isLink:!0,className:"woocommerce-profile-wizard__skip",onClick:function(){return e.skipStep()}},Object(v.__)("Skip this step","woocommerce-admin"))))}}]),n}(g.Component),Nt=Object(y.compose)(Object(k.withSelect)((function(e){var t=e(S.ONBOARDING_STORE_NAME),n=t.getProfileItems,r=t.getOnboardingError,c=t.isOnboardingRequesting;return{isError:Boolean(r("updateProfileItems")),isUpdatingProfileItems:c("updateProfileItems"),profileItems:n()}})),Object(k.withDispatch)((function(e){var t=e(S.ONBOARDING_STORE_NAME).updateProfileItems;return{createNotice:e("core/notices").createNotice,updateProfileItems:t}})))(Pt);n(674);function Zt(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function Tt(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?Zt(Object(n),!0).forEach((function(t){c()(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):Zt(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}function Vt(e){var t=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){}))),!0}catch(e){return!1}}();return function(){var n,r=j()(e);if(t){var c=j()(this).constructor;n=Reflect.construct(r,arguments,c)}else n=r.apply(this,arguments);return O()(this,n)}}var xt=function(e){f()(r,e);var t,n=Vt(r);function r(e){var t;return m()(this,r),(t=n.call(this,e)).cachedActivePlugins=e.activePlugins,t.goToNextStep=t.goToNextStep.bind(p()(t)),t}return C()(r,[{key:"componentDidUpdate",value:function(e){var t=e.query.step,n=this.props.query.step,r=this.props,c=r.isError,o=r.isGetProfileItemsRequesting,i=r.createNotice;!o&&e.isRequesting&&c&&i("error",Object(v.__)("There was a problem finishing the setup wizard","woocommerce-admin")),t!==n&&(window.document.documentElement.scrollTop=0,Object(M.recordEvent)("storeprofiler_step_view",{step:this.getCurrentStep().key}))}},{key:"componentDidMount",value:function(){document.body.classList.remove("woocommerce-admin-is-loading"),document.body.classList.add("woocommerce-onboarding"),document.body.classList.add("woocommerce-profile-wizard__body"),document.body.classList.add("woocommerce-admin-full-screen"),document.body.classList.add("is-wp-toolbar-disabled"),Object(M.recordEvent)("storeprofiler_step_view",{step:this.getCurrentStep().key})}},{key:"componentWillUnmount",value:function(){document.body.classList.remove("woocommerce-onboarding"),document.body.classList.remove("woocommerce-profile-wizard__body"),document.body.classList.remove("woocommerce-admin-full-screen"),document.body.classList.remove("is-wp-toolbar-disabled")}},{key:"getSteps",value:function(){var e=this.props,t=e.profileItems,n=e.query,r=e.selectiveBundleInstallSegmentation,c=n.step,o=[];return o.push({key:"store-details",container:et,label:Object(v.__)("Store Details","woocommerce-admin"),isComplete:t.hasOwnProperty("setup_client")&&null!==t.setup_client}),o.push({key:"industry",container:Be,label:Object(v.__)("Industry","woocommerce-admin"),isComplete:t.hasOwnProperty("industry")&&null!==t.industry}),o.push({key:"product-types",container:ze,label:Object(v.__)("Product Types","woocommerce-admin"),isComplete:t.hasOwnProperty("product_types")&&null!==t.product_types}),o.push({key:r?"business-features":"business-details",container:xe,label:Object(v.__)("Business Details","woocommerce-admin"),isComplete:t.hasOwnProperty("product_count")&&null!==t.product_count}),o.push({key:"theme",container:Nt,label:Object(v.__)("Theme","woocommerce-admin"),isComplete:t.hasOwnProperty("theme")&&null!==t.theme}),r||this.cachedActivePlugins.includes("woocommerce-services")&&this.cachedActivePlugins.includes("jetpack")&&"benefits"!==c||o.push({key:"benefits",container:W}),Object(E.applyFilters)("woocommerce_admin_profile_wizard_steps",o)}},{key:"getCurrentStep",value:function(){var e=this.props.query.step,t=this.getSteps().find((function(t){return t.key===e}));return t||this.getSteps()[0]}},{key:"goToNextStep",value:(t=l()(i.a.mark((function e(){var t,n,r,c,o,a,l;return i.a.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:if(t=this.props,n=t.activePlugins,r=t.dismissedTasks,c=t.updateOptions,o=this.getCurrentStep(),a=this.getSteps().findIndex((function(e){return e.key===o.key})),Object(M.recordEvent)("storeprofiler_step_complete",{step:o.key}),r.length&&c({woocommerce_task_list_dismissed_tasks:[]}),this.cachedActivePlugins=n,void 0!==(l=this.getSteps()[a+1])){e.next=10;break}return this.completeProfiler(),e.abrupt("return");case 10:return e.abrupt("return",Object(L.updateQueryString)({step:l.key}));case 11:case"end":return e.stop()}}),e,this)}))),function(){return t.apply(this,arguments)})},{key:"completeProfiler",value:function(){var e=this.props,t=e.activePlugins,n=e.isJetpackConnected,r=e.notes,c=e.updateNote,o=e.updateProfileItems,i=e.connectToJetpack;Object(M.recordEvent)("storeprofiler_complete");var a=t.includes("jetpack")&&!n,l=r.find((function(e){return"wc-admin-onboarding-profiler-reminder"===e.name}));l&&c(l.id,{status:"actioned"}),o({completed:!0}).then((function(){var e=new URL(Object(L.getNewPath)({},"/",{}),window.location.href).href;a?(document.body.classList.add("woocommerce-admin-is-loading"),i((function(){return e}))):window.location.href=e}))}},{key:"skipProfiler",value:function(){var e=this.props,t=e.createNotice;(0,e.updateProfileItems)({skipped:!0}).then((function(){Object(M.recordEvent)("storeprofiler_store_details_skip"),Object(L.getHistory)().push(Object(L.getNewPath)({},"/",{}))})).catch((function(){t("error",Object(v.__)("There was a problem skipping the setup wizard","woocommerce-admin"))}))}},{key:"render",value:function(){var e=this,t=this.props.query,n=this.getCurrentStep(),r=n.key,c=Object(g.createElement)(n.container,{query:t,step:n,goToNextStep:this.goToNextStep,skipProfiler:function(){e.skipProfiler()}}),o=this.getSteps().map((function(e){return Object(w.pick)(e,["key","label","isComplete"])})),i="woocommerce-profile-wizard__container ".concat(r);return Object(g.createElement)(g.Fragment,null,Object(g.createElement)(Ge,{currentStep:r,steps:o}),Object(g.createElement)("div",{className:i},c))}}]),r}(g.Component);t.default=Object(y.compose)(Object(k.withSelect)((function(e){var t=e(S.NOTES_STORE_NAME).getNotes,n=e(S.OPTIONS_STORE_NAME).getOption,r=e(S.ONBOARDING_STORE_NAME),c=r.getProfileItems,o=r.getOnboardingError,i=e(S.PLUGINS_STORE_NAME),a=i.getActivePlugins,l=i.getPluginsError,s=i.isJetpackConnected,m=e(S.SETTINGS_STORE_NAME).getSettings("general").general,u=c(),C=m.woocommerce_default_country||null,d=((u.industry||[]).map((function(e){return e.slug})),Ve(C)),p=t({page:1,per_page:S.QUERY_DEFAULTS.pageSize,type:"update",status:"unactioned"}),b=a();return{dismissedTasks:n("woocommerce_task_list_dismissed_tasks")||[],getPluginsError:l,isError:Boolean(o("updateProfileItems")),isJetpackConnected:s(),notes:p,profileItems:u,activePlugins:b,selectiveBundleInstallSegmentation:d}})),Object(k.withDispatch)((function(e){var t=e(S.PLUGINS_STORE_NAME),n=t.connectToJetpackWithFailureRedirect,r=t.createErrorNotice,c=e(S.NOTES_STORE_NAME).updateNote,o=e(S.OPTIONS_STORE_NAME).updateOptions,i=e(S.ONBOARDING_STORE_NAME).updateProfileItems;return{connectToJetpack:function(e){n(e,r,P.f)},createNotice:e("core/notices").createNotice,updateNote:c,updateOptions:o,updateProfileItems:i}})),window.wcSettings.plugins?Object(S.withPluginsHydration)(Tt(Tt({},window.wcSettings.plugins),{},{jetpackStatus:window.wcSettings.dataEndpoints.jetpackStatus})):w.identity)(xt)}}]);
|
languages/woocommerce-admin.pot
CHANGED
@@ -2,10 +2,10 @@
|
|
2 |
# This file is distributed under the same license as the WooCommerce Admin package.
|
3 |
msgid ""
|
4 |
msgstr ""
|
5 |
-
"Project-Id-Version: WooCommerce Admin 2.2.
|
6 |
"Report-Msgid-Bugs-To: "
|
7 |
"https://wordpress.org/support/plugin/woocommerce-admin\n"
|
8 |
-
"POT-Creation-Date: 2021-04-
|
9 |
"MIME-Version: 1.0\n"
|
10 |
"Content-Type: text/plain; charset=utf-8\n"
|
11 |
"Content-Transfer-Encoding: 8bit\n"
|
@@ -5960,7 +5960,7 @@ msgid "WooCommerce + Jetpack"
|
|
5960 |
msgstr ""
|
5961 |
|
5962 |
#: client/profile-wizard/steps/business-details/data/extension-benefits.js:11
|
5963 |
-
msgid "The default all-in-one solution for WooCommerce email.
|
5964 |
msgstr ""
|
5965 |
|
5966 |
#: client/profile-wizard/steps/business-details/data/extension-benefits.js:18
|
@@ -6004,7 +6004,9 @@ msgid ""
|
|
6004 |
msgstr ""
|
6005 |
|
6006 |
#: client/profile-wizard/steps/business-details/data/extension-benefits.js:9
|
6007 |
-
|
|
|
|
|
6008 |
msgstr ""
|
6009 |
|
6010 |
#: client/profile-wizard/steps/business-details/data/platform-options.js:13
|
@@ -8055,11 +8057,6 @@ msgstr ""
|
|
8055 |
msgid "Google Ads"
|
8056 |
msgstr ""
|
8057 |
|
8058 |
-
#: packages/data/build-module/plugins/constants.js:29
|
8059 |
-
#: packages/data/src/plugins/constants.js:69
|
8060 |
-
msgid "MailPoet"
|
8061 |
-
msgstr ""
|
8062 |
-
|
8063 |
#: packages/data/build-module/settings/actions.js:135
|
8064 |
msgid "There was a problem updating your settings."
|
8065 |
msgstr ""
|
2 |
# This file is distributed under the same license as the WooCommerce Admin package.
|
3 |
msgid ""
|
4 |
msgstr ""
|
5 |
+
"Project-Id-Version: WooCommerce Admin 2.2.2\n"
|
6 |
"Report-Msgid-Bugs-To: "
|
7 |
"https://wordpress.org/support/plugin/woocommerce-admin\n"
|
8 |
+
"POT-Creation-Date: 2021-04-29 14:07:49+00:00\n"
|
9 |
"MIME-Version: 1.0\n"
|
10 |
"Content-Type: text/plain; charset=utf-8\n"
|
11 |
"Content-Transfer-Encoding: 8bit\n"
|
5960 |
msgstr ""
|
5961 |
|
5962 |
#: client/profile-wizard/steps/business-details/data/extension-benefits.js:11
|
5963 |
+
msgid "The default all-in-one solution for WooCommerce email."
|
5964 |
msgstr ""
|
5965 |
|
5966 |
#: client/profile-wizard/steps/business-details/data/extension-benefits.js:18
|
6004 |
msgstr ""
|
6005 |
|
6006 |
#: client/profile-wizard/steps/business-details/data/extension-benefits.js:9
|
6007 |
+
#: packages/data/build-module/plugins/constants.js:29
|
6008 |
+
#: packages/data/src/plugins/constants.js:69
|
6009 |
+
msgid "MailPoet"
|
6010 |
msgstr ""
|
6011 |
|
6012 |
#: client/profile-wizard/steps/business-details/data/platform-options.js:13
|
8057 |
msgid "Google Ads"
|
8058 |
msgstr ""
|
8059 |
|
|
|
|
|
|
|
|
|
|
|
8060 |
#: packages/data/build-module/settings/actions.js:135
|
8061 |
msgid "There was a problem updating your settings."
|
8062 |
msgstr ""
|
readme.txt
CHANGED
@@ -4,7 +4,7 @@ Tags: ecommerce, e-commerce, store, sales, reports, analytics, dashboard, activi
|
|
4 |
Requires at least: 5.4.0
|
5 |
Tested up to: 5.7.0
|
6 |
Requires PHP: 7.0
|
7 |
-
Stable tag: 2.2.
|
8 |
License: GPLv3
|
9 |
License URI: https://github.com/woocommerce/woocommerce-admin/blob/main/license.txt
|
10 |
|
@@ -73,6 +73,13 @@ Release and roadmap notes are available on the [WooCommerce Developers Blog](htt
|
|
73 |
|
74 |
== Changelog ==
|
75 |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
76 |
== 2.2.0 3/30/2021 ==
|
77 |
|
78 |
- Fix: Check if features are currently being enabled #6688
|
4 |
Requires at least: 5.4.0
|
5 |
Tested up to: 5.7.0
|
6 |
Requires PHP: 7.0
|
7 |
+
Stable tag: 2.2.2
|
8 |
License: GPLv3
|
9 |
License URI: https://github.com/woocommerce/woocommerce-admin/blob/main/license.txt
|
10 |
|
73 |
|
74 |
== Changelog ==
|
75 |
|
76 |
+
== 2.2.2 4/28/2021 ==
|
77 |
+
|
78 |
+
- Fix: Disable the continue btn on OBW when requested are being made #6838
|
79 |
+
- Tweak: Revert WCPay international support for bundled package #6901
|
80 |
+
- Tweak: Store profiler - Changed MailPoet's title and description #6886
|
81 |
+
- Tweak: Update PayU logo #6829
|
82 |
+
|
83 |
== 2.2.0 3/30/2021 ==
|
84 |
|
85 |
- Fix: Check if features are currently being enabled #6688
|
src/Composer/Package.php
CHANGED
@@ -24,7 +24,7 @@ class Package {
|
|
24 |
*
|
25 |
* @var string
|
26 |
*/
|
27 |
-
const VERSION = '2.2.
|
28 |
|
29 |
/**
|
30 |
* Package active.
|
24 |
*
|
25 |
* @var string
|
26 |
*/
|
27 |
+
const VERSION = '2.2.2';
|
28 |
|
29 |
/**
|
30 |
* Package active.
|
src/FeaturePlugin.php
CHANGED
@@ -155,7 +155,7 @@ class FeaturePlugin {
|
|
155 |
$this->define( 'WC_ADMIN_PLUGIN_FILE', WC_ADMIN_ABSPATH . 'woocommerce-admin.php' );
|
156 |
// WARNING: Do not directly edit this version number constant.
|
157 |
// It is updated as part of the prebuild process from the package.json value.
|
158 |
-
$this->define( 'WC_ADMIN_VERSION_NUMBER', '2.2.
|
159 |
}
|
160 |
|
161 |
/**
|
155 |
$this->define( 'WC_ADMIN_PLUGIN_FILE', WC_ADMIN_ABSPATH . 'woocommerce-admin.php' );
|
156 |
// WARNING: Do not directly edit this version number constant.
|
157 |
// It is updated as part of the prebuild process from the package.json value.
|
158 |
+
$this->define( 'WC_ADMIN_VERSION_NUMBER', '2.2.2' );
|
159 |
}
|
160 |
|
161 |
/**
|
trunk/dist/app/index.js
ADDED
@@ -0,0 +1,19882 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
+
this["wc"] = this["wc"] || {}; this["wc"]["app"] =
|
2 |
+
/******/ (function(modules) { // webpackBootstrap
|
3 |
+
/******/ // install a JSONP callback for chunk loading
|
4 |
+
/******/ function webpackJsonpCallback(data) {
|
5 |
+
/******/ var chunkIds = data[0];
|
6 |
+
/******/ var moreModules = data[1];
|
7 |
+
/******/
|
8 |
+
/******/
|
9 |
+
/******/ // add "moreModules" to the modules object,
|
10 |
+
/******/ // then flag all "chunkIds" as loaded and fire callback
|
11 |
+
/******/ var moduleId, chunkId, i = 0, resolves = [];
|
12 |
+
/******/ for(;i < chunkIds.length; i++) {
|
13 |
+
/******/ chunkId = chunkIds[i];
|
14 |
+
/******/ if(Object.prototype.hasOwnProperty.call(installedChunks, chunkId) && installedChunks[chunkId]) {
|
15 |
+
/******/ resolves.push(installedChunks[chunkId][0]);
|
16 |
+
/******/ }
|
17 |
+
/******/ installedChunks[chunkId] = 0;
|
18 |
+
/******/ }
|
19 |
+
/******/ for(moduleId in moreModules) {
|
20 |
+
/******/ if(Object.prototype.hasOwnProperty.call(moreModules, moduleId)) {
|
21 |
+
/******/ modules[moduleId] = moreModules[moduleId];
|
22 |
+
/******/ }
|
23 |
+
/******/ }
|
24 |
+
/******/ if(parentJsonpFunction) parentJsonpFunction(data);
|
25 |
+
/******/
|
26 |
+
/******/ while(resolves.length) {
|
27 |
+
/******/ resolves.shift()();
|
28 |
+
/******/ }
|
29 |
+
/******/
|
30 |
+
/******/ };
|
31 |
+
/******/
|
32 |
+
/******/
|
33 |
+
/******/ // The module cache
|
34 |
+
/******/ var installedModules = {};
|
35 |
+
/******/
|
36 |
+
/******/ // object to store loaded CSS chunks
|
37 |
+
/******/ var installedCssChunks = {
|
38 |
+
/******/ 21: 0
|
39 |
+
/******/ }
|
40 |
+
/******/ var isCssRtlEnabled = function() {
|
41 |
+
/******/ return document.dir === 'rtl';
|
42 |
+
/******/ }
|
43 |
+
/******/
|
44 |
+
/******/ // object to store loaded and loading chunks
|
45 |
+
/******/ // undefined = chunk not loaded, null = chunk preloaded/prefetched
|
46 |
+
/******/ // Promise = chunk loading, 0 = chunk loaded
|
47 |
+
/******/ var installedChunks = {
|
48 |
+
/******/ 21: 0
|
49 |
+
/******/ };
|
50 |
+
/******/
|
51 |
+
/******/
|
52 |
+
/******/
|
53 |
+
/******/ // script path function
|
54 |
+
/******/ function webpackJsonpScriptSrc(chunkId) {
|
55 |
+
/******/ return __webpack_require__.p + "chunks/" + ({"7":"activity-panels-help","8":"activity-panels-inbox","9":"analytics-report","10":"analytics-report-categories","11":"analytics-report-coupons","12":"analytics-report-customers","13":"analytics-report-downloads","14":"analytics-report-orders","15":"analytics-report-products","16":"analytics-report-revenue","17":"analytics-report-stock","18":"analytics-report-taxes","19":"analytics-report-variations","20":"analytics-settings","27":"customizable-dashboard","28":"dashboard","29":"dashboard-charts","32":"homescreen","34":"leaderboards","36":"marketing-overview","46":"profile-wizard","47":"store-alerts","48":"store-performance","49":"task-list","51":"wcpay-usage-modal"}[chunkId]||chunkId) + ".js"
|
56 |
+
/******/ }
|
57 |
+
/******/
|
58 |
+
/******/ function jsonpScriptSrc(chunkId) {
|
59 |
+
/******/ var src = webpackJsonpScriptSrc(chunkId);
|
60 |
+
/******/ if ( window.wcAdminAssets && window.wcAdminAssets.version ) {
|
61 |
+
/******/ src += '?ver=' + window.wcAdminAssets.version;
|
62 |
+
/******/ }
|
63 |
+
/******/ return src;
|
64 |
+
/******/ }
|
65 |
+
/******/
|
66 |
+
/******/
|
67 |
+
/******/ // The require function
|
68 |
+
/******/ function __webpack_require__(moduleId) {
|
69 |
+
/******/
|
70 |
+
/******/ // Check if module is in cache
|
71 |
+
/******/ if(installedModules[moduleId]) {
|
72 |
+
/******/ return installedModules[moduleId].exports;
|
73 |
+
/******/ }
|
74 |
+
/******/ // Create a new module (and put it into the cache)
|
75 |
+
/******/ var module = installedModules[moduleId] = {
|
76 |
+
/******/ i: moduleId,
|
77 |
+
/******/ l: false,
|
78 |
+
/******/ exports: {}
|
79 |
+
/******/ };
|
80 |
+
/******/
|
81 |
+
/******/ // Execute the module function
|
82 |
+
/******/ modules[moduleId].call(module.exports, module, module.exports, __webpack_require__);
|
83 |
+
/******/
|
84 |
+
/******/ // Flag the module as loaded
|
85 |
+
/******/ module.l = true;
|
86 |
+
/******/
|
87 |
+
/******/ // Return the exports of the module
|
88 |
+
/******/ return module.exports;
|
89 |
+
/******/ }
|
90 |
+
/******/
|
91 |
+
/******/ // This file contains only the entry chunk.
|
92 |
+
/******/ // The chunk loading function for additional chunks
|
93 |
+
/******/ __webpack_require__.e = function requireEnsure(chunkId) {
|
94 |
+
/******/ var promises = [];
|
95 |
+
/******/
|
96 |
+
/******/
|
97 |
+
/******/ // mini-css-extract-plugin CSS loading
|
98 |
+
/******/ var cssChunks = {"0":1,"4":1,"7":1,"9":1,"10":1,"14":1,"15":1,"20":1,"28":1,"29":1,"32":1,"34":1,"36":1,"46":1,"47":1,"48":1,"49":1};
|
99 |
+
/******/ if(installedCssChunks[chunkId]) promises.push(installedCssChunks[chunkId]);
|
100 |
+
/******/ else if(installedCssChunks[chunkId] !== 0 && cssChunks[chunkId]) {
|
101 |
+
/******/ promises.push(installedCssChunks[chunkId] = new Promise(function(resolve, reject) {
|
102 |
+
/******/ var href = true && isCssRtlEnabled() ? "./chunks/" + chunkId + ".style.rtl.css" : "./chunks/" + chunkId + ".style.css";
|
103 |
+
/******/ var fullhref = __webpack_require__.p + href;
|
104 |
+
/******/ var existingLinkTags = document.getElementsByTagName("link");
|
105 |
+
/******/ for(var i = 0; i < existingLinkTags.length; i++) {
|
106 |
+
/******/ var tag = existingLinkTags[i];
|
107 |
+
/******/ var dataHref = tag.getAttribute("data-href") || tag.getAttribute("href");
|
108 |
+
/******/ if(tag.rel === "stylesheet" && (dataHref === href || dataHref === fullhref)) return resolve();
|
109 |
+
/******/ }
|
110 |
+
/******/ var existingStyleTags = document.getElementsByTagName("style");
|
111 |
+
/******/ for(var i = 0; i < existingStyleTags.length; i++) {
|
112 |
+
/******/ var tag = existingStyleTags[i];
|
113 |
+
/******/ var dataHref = tag.getAttribute("data-href");
|
114 |
+
/******/ if(dataHref === href || dataHref === fullhref) return resolve();
|
115 |
+
/******/ }
|
116 |
+
/******/ var linkTag = document.createElement("link");
|
117 |
+
/******/ linkTag.rel = "stylesheet";
|
118 |
+
/******/ linkTag.type = "text/css";
|
119 |
+
/******/ linkTag.setAttribute("data-webpack", true);
|
120 |
+
/******/ linkTag.onload = resolve;
|
121 |
+
/******/ linkTag.onerror = function(event) {
|
122 |
+
/******/ var request = event && event.target && event.target.src || fullhref;
|
123 |
+
/******/ var err = new Error("Loading CSS chunk " + chunkId + " failed.\n(" + request + ")");
|
124 |
+
/******/ err.code = "CSS_CHUNK_LOAD_FAILED";
|
125 |
+
/******/ err.request = request;
|
126 |
+
/******/ delete installedCssChunks[chunkId]
|
127 |
+
/******/ linkTag.parentNode.removeChild(linkTag)
|
128 |
+
/******/ reject(err);
|
129 |
+
/******/ };
|
130 |
+
/******/ linkTag.href = fullhref;
|
131 |
+
/******/ if ( window.wcAdminAssets && window.wcAdminAssets.version ) {
|
132 |
+
/******/ linkTag.href += '?ver=' + window.wcAdminAssets.version;
|
133 |
+
/******/ }
|
134 |
+
/******/
|
135 |
+
/******/ var head = document.getElementsByTagName("head")[0];
|
136 |
+
/******/ head.appendChild(linkTag);
|
137 |
+
/******/ }).then(function() {
|
138 |
+
/******/ installedCssChunks[chunkId] = 0;
|
139 |
+
/******/ }));
|
140 |
+
/******/ }
|
141 |
+
/******/
|
142 |
+
/******/ // JSONP chunk loading for javascript
|
143 |
+
/******/
|
144 |
+
/******/ var installedChunkData = installedChunks[chunkId];
|
145 |
+
/******/ if(installedChunkData !== 0) { // 0 means "already installed".
|
146 |
+
/******/
|
147 |
+
/******/ // a Promise means "currently loading".
|
148 |
+
/******/ if(installedChunkData) {
|
149 |
+
/******/ promises.push(installedChunkData[2]);
|
150 |
+
/******/ } else {
|
151 |
+
/******/ // setup Promise in chunk cache
|
152 |
+
/******/ var promise = new Promise(function(resolve, reject) {
|
153 |
+
/******/ installedChunkData = installedChunks[chunkId] = [resolve, reject];
|
154 |
+
/******/ });
|
155 |
+
/******/ promises.push(installedChunkData[2] = promise);
|
156 |
+
/******/
|
157 |
+
/******/ // start chunk loading
|
158 |
+
/******/ var script = document.createElement('script');
|
159 |
+
/******/ var onScriptComplete;
|
160 |
+
/******/
|
161 |
+
/******/ script.charset = 'utf-8';
|
162 |
+
/******/ script.timeout = 120;
|
163 |
+
/******/ if (__webpack_require__.nc) {
|
164 |
+
/******/ script.setAttribute("nonce", __webpack_require__.nc);
|
165 |
+
/******/ }
|
166 |
+
/******/ script.src = jsonpScriptSrc(chunkId);
|
167 |
+
/******/
|
168 |
+
/******/ // create error before stack unwound to get useful stacktrace later
|
169 |
+
/******/ var error = new Error();
|
170 |
+
/******/ onScriptComplete = function (event) {
|
171 |
+
/******/ // avoid mem leaks in IE.
|
172 |
+
/******/ script.onerror = script.onload = null;
|
173 |
+
/******/ clearTimeout(timeout);
|
174 |
+
/******/ var chunk = installedChunks[chunkId];
|
175 |
+
/******/ if(chunk !== 0) {
|
176 |
+
/******/ if(chunk) {
|
177 |
+
/******/ var errorType = event && (event.type === 'load' ? 'missing' : event.type);
|
178 |
+
/******/ var realSrc = event && event.target && event.target.src;
|
179 |
+
/******/ error.message = 'Loading chunk ' + chunkId + ' failed.\n(' + errorType + ': ' + realSrc + ')';
|
180 |
+
/******/ error.name = 'ChunkLoadError';
|
181 |
+
/******/ error.type = errorType;
|
182 |
+
/******/ error.request = realSrc;
|
183 |
+
/******/ chunk[1](error);
|
184 |
+
/******/ }
|
185 |
+
/******/ installedChunks[chunkId] = undefined;
|
186 |
+
/******/ }
|
187 |
+
/******/ };
|
188 |
+
/******/ var timeout = setTimeout(function(){
|
189 |
+
/******/ onScriptComplete({ type: 'timeout', target: script });
|
190 |
+
/******/ }, 120000);
|
191 |
+
/******/ script.onerror = script.onload = onScriptComplete;
|
192 |
+
/******/ document.head.appendChild(script);
|
193 |
+
/******/ }
|
194 |
+
/******/ }
|
195 |
+
/******/ return Promise.all(promises);
|
196 |
+
/******/ };
|
197 |
+
/******/
|
198 |
+
/******/ // expose the modules object (__webpack_modules__)
|
199 |
+
/******/ __webpack_require__.m = modules;
|
200 |
+
/******/
|
201 |
+
/******/ // expose the module cache
|
202 |
+
/******/ __webpack_require__.c = installedModules;
|
203 |
+
/******/
|
204 |
+
/******/ // define getter function for harmony exports
|
205 |
+
/******/ __webpack_require__.d = function(exports, name, getter) {
|
206 |
+
/******/ if(!__webpack_require__.o(exports, name)) {
|
207 |
+
/******/ Object.defineProperty(exports, name, { enumerable: true, get: getter });
|
208 |
+
/******/ }
|
209 |
+
/******/ };
|
210 |
+
/******/
|
211 |
+
/******/ // define __esModule on exports
|
212 |
+
/******/ __webpack_require__.r = function(exports) {
|
213 |
+
/******/ if(typeof Symbol !== 'undefined' && Symbol.toStringTag) {
|
214 |
+
/******/ Object.defineProperty(exports, Symbol.toStringTag, { value: 'Module' });
|
215 |
+
/******/ }
|
216 |
+
/******/ Object.defineProperty(exports, '__esModule', { value: true });
|
217 |
+
/******/ };
|
218 |
+
/******/
|
219 |
+
/******/ // create a fake namespace object
|
220 |
+
/******/ // mode & 1: value is a module id, require it
|
221 |
+
/******/ // mode & 2: merge all properties of value into the ns
|
222 |
+
/******/ // mode & 4: return value when already ns object
|
223 |
+
/******/ // mode & 8|1: behave like require
|
224 |
+
/******/ __webpack_require__.t = function(value, mode) {
|
225 |
+
/******/ if(mode & 1) value = __webpack_require__(value);
|
226 |
+
/******/ if(mode & 8) return value;
|
227 |
+
/******/ if((mode & 4) && typeof value === 'object' && value && value.__esModule) return value;
|
228 |
+
/******/ var ns = Object.create(null);
|
229 |
+
/******/ __webpack_require__.r(ns);
|
230 |
+
/******/ Object.defineProperty(ns, 'default', { enumerable: true, value: value });
|
231 |
+
/******/ if(mode & 2 && typeof value != 'string') for(var key in value) __webpack_require__.d(ns, key, function(key) { return value[key]; }.bind(null, key));
|
232 |
+
/******/ return ns;
|
233 |
+
/******/ };
|
234 |
+
/******/
|
235 |
+
/******/ // getDefaultExport function for compatibility with non-harmony modules
|
236 |
+
/******/ __webpack_require__.n = function(module) {
|
237 |
+
/******/ var getter = module && module.__esModule ?
|
238 |
+
/******/ function getDefault() { return module['default']; } :
|
239 |
+
/******/ function getModuleExports() { return module; };
|
240 |
+
/******/ __webpack_require__.d(getter, 'a', getter);
|
241 |
+
/******/ return getter;
|
242 |
+
/******/ };
|
243 |
+
/******/
|
244 |
+
/******/ // Object.prototype.hasOwnProperty.call
|
245 |
+
/******/ __webpack_require__.o = function(object, property) { return Object.prototype.hasOwnProperty.call(object, property); };
|
246 |
+
/******/
|
247 |
+
/******/ // __webpack_public_path__
|
248 |
+
/******/ __webpack_require__.p = "";
|
249 |
+
/******/
|
250 |
+
/******/ // on error function for async loading
|
251 |
+
/******/ __webpack_require__.oe = function(err) { console.error(err); throw err; };
|
252 |
+
/******/
|
253 |
+
/******/ var jsonpArray = window["__wcAdmin_webpackJsonp"] = window["__wcAdmin_webpackJsonp"] || [];
|
254 |
+
/******/ var oldJsonpFunction = jsonpArray.push.bind(jsonpArray);
|
255 |
+
/******/ jsonpArray.push = webpackJsonpCallback;
|
256 |
+
/******/ jsonpArray = jsonpArray.slice();
|
257 |
+
/******/ for(var i = 0; i < jsonpArray.length; i++) webpackJsonpCallback(jsonpArray[i]);
|
258 |
+
/******/ var parentJsonpFunction = oldJsonpFunction;
|
259 |
+
/******/
|
260 |
+
/******/
|
261 |
+
/******/ // Load entry module and return exports
|
262 |
+
/******/ return __webpack_require__(__webpack_require__.s = 418);
|
263 |
+
/******/ })
|
264 |
+
/************************************************************************/
|
265 |
+
/******/ ([
|
266 |
+
/* 0 */
|
267 |
+
/***/ (function(module, exports) {
|
268 |
+
|
269 |
+
(function() { module.exports = window["wp"]["element"]; }());
|
270 |
+
|
271 |
+
/***/ }),
|
272 |
+
/* 1 */
|
273 |
+
/***/ (function(module, exports, __webpack_require__) {
|
274 |
+
|
275 |
+
/**
|
276 |
+
* Copyright (c) 2013-present, Facebook, Inc.
|
277 |
+
*
|
278 |
+
* This source code is licensed under the MIT license found in the
|
279 |
+
* LICENSE file in the root directory of this source tree.
|
280 |
+
*/
|
281 |
+
|
282 |
+
if (false) { var throwOnDirectAccess, ReactIs; } else {
|
283 |
+
// By explicitly using `prop-types` you are opting into new production behavior.
|
284 |
+
// http://fb.me/prop-types-in-prod
|
285 |
+
module.exports = __webpack_require__(215)();
|
286 |
+
}
|
287 |
+
|
288 |
+
|
289 |
+
/***/ }),
|
290 |
+
/* 2 */
|
291 |
+
/***/ (function(module, exports) {
|
292 |
+
|
293 |
+
(function() { module.exports = window["wp"]["i18n"]; }());
|
294 |
+
|
295 |
+
/***/ }),
|
296 |
+
/* 3 */
|
297 |
+
/***/ (function(module, exports, __webpack_require__) {
|
298 |
+
|
299 |
+
/* WEBPACK VAR INJECTION */(function(global) {var check = function (it) {
|
300 |
+
return it && it.Math == Math && it;
|
301 |
+
};
|
302 |
+
|
303 |
+
// https://github.com/zloirock/core-js/issues/86#issuecomment-115759028
|
304 |
+
module.exports =
|
305 |
+
/* global globalThis -- safe */
|
306 |
+
check(typeof globalThis == 'object' && globalThis) ||
|
307 |
+
check(typeof window == 'object' && window) ||
|
308 |
+
check(typeof self == 'object' && self) ||
|
309 |
+
check(typeof global == 'object' && global) ||
|
310 |
+
// eslint-disable-next-line no-new-func -- fallback
|
311 |
+
(function () { return this; })() || Function('return this')();
|
312 |
+
|
313 |
+
/* WEBPACK VAR INJECTION */}.call(this, __webpack_require__(96)))
|
314 |
+
|
315 |
+
/***/ }),
|
316 |
+
/* 4 */
|
317 |
+
/***/ (function(module, exports) {
|
318 |
+
|
319 |
+
(function() { module.exports = window["wp"]["components"]; }());
|
320 |
+
|
321 |
+
/***/ }),
|
322 |
+
/* 5 */
|
323 |
+
/***/ (function(module, exports) {
|
324 |
+
|
325 |
+
(function() { module.exports = window["lodash"]; }());
|
326 |
+
|
327 |
+
/***/ }),
|
328 |
+
/* 6 */
|
329 |
+
/***/ (function(module, exports) {
|
330 |
+
|
331 |
+
module.exports = function (exec) {
|
332 |
+
try {
|
333 |
+
return !!exec();
|
334 |
+
} catch (error) {
|
335 |
+
return true;
|
336 |
+
}
|
337 |
+
};
|
338 |
+
|
339 |
+
|
340 |
+
/***/ }),
|
341 |
+
/* 7 */
|
342 |
+
/***/ (function(module, exports) {
|
343 |
+
|
344 |
+
function _defineProperty(obj, key, value) {
|
345 |
+
if (key in obj) {
|
346 |
+
Object.defineProperty(obj, key, {
|
347 |
+
value: value,
|
348 |
+
enumerable: true,
|
349 |
+
configurable: true,
|
350 |
+
writable: true
|
351 |
+
});
|
352 |
+
} else {
|
353 |
+
obj[key] = value;
|
354 |
+
}
|
355 |
+
|
356 |
+
return obj;
|
357 |
+
}
|
358 |
+
|
359 |
+
module.exports = _defineProperty;
|
360 |
+
|
361 |
+
/***/ }),
|
362 |
+
/* 8 */
|
363 |
+
/***/ (function(module, exports, __webpack_require__) {
|
364 |
+
|
365 |
+
var global = __webpack_require__(3);
|
366 |
+
var shared = __webpack_require__(58);
|
367 |
+
var has = __webpack_require__(11);
|
368 |
+
var uid = __webpack_require__(55);
|
369 |
+
var NATIVE_SYMBOL = __webpack_require__(62);
|
370 |
+
var USE_SYMBOL_AS_UID = __webpack_require__(93);
|
371 |
+
|
372 |
+
var WellKnownSymbolsStore = shared('wks');
|
373 |
+
var Symbol = global.Symbol;
|
374 |
+
var createWellKnownSymbol = USE_SYMBOL_AS_UID ? Symbol : Symbol && Symbol.withoutSetter || uid;
|
375 |
+
|
376 |
+
module.exports = function (name) {
|
377 |
+
if (!has(WellKnownSymbolsStore, name) || !(NATIVE_SYMBOL || typeof WellKnownSymbolsStore[name] == 'string')) {
|
378 |
+
if (NATIVE_SYMBOL && has(Symbol, name)) {
|
379 |
+
WellKnownSymbolsStore[name] = Symbol[name];
|
380 |
+
} else {
|
381 |
+
WellKnownSymbolsStore[name] = createWellKnownSymbol('Symbol.' + name);
|
382 |
+
}
|
383 |
+
} return WellKnownSymbolsStore[name];
|
384 |
+
};
|
385 |
+
|
386 |
+
|
387 |
+
/***/ }),
|
388 |
+
/* 9 */
|
389 |
+
/***/ (function(module, exports, __webpack_require__) {
|
390 |
+
|
391 |
+
var isObject = __webpack_require__(10);
|
392 |
+
|
393 |
+
module.exports = function (it) {
|
394 |
+
if (!isObject(it)) {
|
395 |
+
throw TypeError(String(it) + ' is not an object');
|
396 |
+
} return it;
|
397 |
+
};
|
398 |
+
|
399 |
+
|
400 |
+
/***/ }),
|
401 |
+
/* 10 */
|
402 |
+
/***/ (function(module, exports) {
|
403 |
+
|
404 |
+
module.exports = function (it) {
|
405 |
+
return typeof it === 'object' ? it !== null : typeof it === 'function';
|
406 |
+
};
|
407 |
+
|
408 |
+
|
409 |
+
/***/ }),
|
410 |
+
/* 11 */
|
411 |
+
/***/ (function(module, exports) {
|
412 |
+
|
413 |
+
var hasOwnProperty = {}.hasOwnProperty;
|
414 |
+
|
415 |
+
module.exports = function (it, key) {
|
416 |
+
return hasOwnProperty.call(it, key);
|
417 |
+
};
|
418 |
+
|
419 |
+
|
420 |
+
/***/ }),
|
421 |
+
/* 12 */
|
422 |
+
/***/ (function(module, exports, __webpack_require__) {
|
423 |
+
|
424 |
+
var global = __webpack_require__(3);
|
425 |
+
var getOwnPropertyDescriptor = __webpack_require__(33).f;
|
426 |
+
var createNonEnumerableProperty = __webpack_require__(19);
|
427 |
+
var redefine = __webpack_require__(27);
|
428 |
+
var setGlobal = __webpack_require__(46);
|
429 |
+
var copyConstructorProperties = __webpack_require__(103);
|
430 |
+
var isForced = __webpack_require__(74);
|
431 |
+
|
432 |
+
/*
|
433 |
+
options.target - name of the target object
|
434 |
+
options.global - target is the global object
|
435 |
+
options.stat - export as static methods of target
|
436 |
+
options.proto - export as prototype methods of target
|
437 |
+
options.real - real prototype method for the `pure` version
|
438 |
+
options.forced - export even if the native feature is available
|
439 |
+
options.bind - bind methods to the target, required for the `pure` version
|
440 |
+
options.wrap - wrap constructors to preventing global pollution, required for the `pure` version
|
441 |
+
options.unsafe - use the simple assignment of property instead of delete + defineProperty
|
442 |
+
options.sham - add a flag to not completely full polyfills
|
443 |
+
options.enumerable - export as enumerable property
|
444 |
+
options.noTargetGet - prevent calling a getter on target
|
445 |
+
*/
|
446 |
+
module.exports = function (options, source) {
|
447 |
+
var TARGET = options.target;
|
448 |
+
var GLOBAL = options.global;
|
449 |
+
var STATIC = options.stat;
|
450 |
+
var FORCED, target, key, targetProperty, sourceProperty, descriptor;
|
451 |
+
if (GLOBAL) {
|
452 |
+
target = global;
|
453 |
+
} else if (STATIC) {
|
454 |
+
target = global[TARGET] || setGlobal(TARGET, {});
|
455 |
+
} else {
|
456 |
+
target = (global[TARGET] || {}).prototype;
|
457 |
+
}
|
458 |
+
if (target) for (key in source) {
|
459 |
+
sourceProperty = source[key];
|
460 |
+
if (options.noTargetGet) {
|
461 |
+
descriptor = getOwnPropertyDescriptor(target, key);
|
462 |
+
targetProperty = descriptor && descriptor.value;
|
463 |
+
} else targetProperty = target[key];
|
464 |
+
FORCED = isForced(GLOBAL ? key : TARGET + (STATIC ? '.' : '#') + key, options.forced);
|
465 |
+
// contained in target
|
466 |
+
if (!FORCED && targetProperty !== undefined) {
|
467 |
+
if (typeof sourceProperty === typeof targetProperty) continue;
|
468 |
+
copyConstructorProperties(sourceProperty, targetProperty);
|
469 |
+
}
|
470 |
+
// add a flag to not completely full polyfills
|
471 |
+
if (options.sham || (targetProperty && targetProperty.sham)) {
|
472 |
+
createNonEnumerableProperty(sourceProperty, 'sham', true);
|
473 |
+
}
|
474 |
+
// extend global
|
475 |
+
redefine(target, key, sourceProperty, options);
|
476 |
+
}
|
477 |
+
};
|
478 |
+
|
479 |
+
|
480 |
+
/***/ }),
|
481 |
+
/* 13 */
|
482 |
+
/***/ (function(module, exports, __webpack_require__) {
|
483 |
+
|
484 |
+
var fails = __webpack_require__(6);
|
485 |
+
|
486 |
+
// Detect IE8's incomplete defineProperty implementation
|
487 |
+
module.exports = !fails(function () {
|
488 |
+
return Object.defineProperty({}, 1, { get: function () { return 7; } })[1] != 7;
|
489 |
+
});
|
490 |
+
|
491 |
+
|
492 |
+
/***/ }),
|
493 |
+
/* 14 */
|
494 |
+
/***/ (function(module, exports) {
|
495 |
+
|
496 |
+
function _getPrototypeOf(o) {
|
497 |
+
module.exports = _getPrototypeOf = Object.setPrototypeOf ? Object.getPrototypeOf : function _getPrototypeOf(o) {
|
498 |
+
return o.__proto__ || Object.getPrototypeOf(o);
|
499 |
+
};
|
500 |
+
return _getPrototypeOf(o);
|
501 |
+
}
|
502 |
+
|
503 |
+
module.exports = _getPrototypeOf;
|
504 |
+
|
505 |
+
/***/ }),
|
506 |
+
/* 15 */
|
507 |
+
/***/ (function(module, exports, __webpack_require__) {
|
508 |
+
|
509 |
+
/*!
|
510 |
+
Copyright (c) 2017 Jed Watson.
|
511 |
+
Licensed under the MIT License (MIT), see
|
512 |
+
http://jedwatson.github.io/classnames
|
513 |
+
*/
|
514 |
+
/* global define */
|
515 |
+
|
516 |
+
(function () {
|
517 |
+
'use strict';
|
518 |
+
|
519 |
+
var hasOwn = {}.hasOwnProperty;
|
520 |
+
|
521 |
+
function classNames () {
|
522 |
+
var classes = [];
|
523 |
+
|
524 |
+
for (var i = 0; i < arguments.length; i++) {
|
525 |
+
var arg = arguments[i];
|
526 |
+
if (!arg) continue;
|
527 |
+
|
528 |
+
var argType = typeof arg;
|
529 |
+
|
530 |
+
if (argType === 'string' || argType === 'number') {
|
531 |
+
classes.push(arg);
|
532 |
+
} else if (Array.isArray(arg) && arg.length) {
|
533 |
+
var inner = classNames.apply(null, arg);
|
534 |
+
if (inner) {
|
535 |
+
classes.push(inner);
|
536 |
+
}
|
537 |
+
} else if (argType === 'object') {
|
538 |
+
for (var key in arg) {
|
539 |
+
if (hasOwn.call(arg, key) && arg[key]) {
|
540 |
+
classes.push(key);
|
541 |
+
}
|
542 |
+
}
|
543 |
+
}
|
544 |
+
}
|
545 |
+
|
546 |
+
return classes.join(' ');
|
547 |
+
}
|
548 |
+
|
549 |
+
if ( true && module.exports) {
|
550 |
+
classNames.default = classNames;
|
551 |
+
module.exports = classNames;
|
552 |
+
} else if (typeof define === 'function' && typeof define.amd === 'object' && define.amd) {
|
553 |
+
// register as 'classnames', consistent with npm package name
|
554 |
+
define('classnames', [], function () {
|
555 |
+
return classNames;
|
556 |
+
});
|
557 |
+
} else {
|
558 |
+
window.classNames = classNames;
|
559 |
+
}
|
560 |
+
}());
|
561 |
+
|
562 |
+
|
563 |
+
/***/ }),
|
564 |
+
/* 16 */
|
565 |
+
/***/ (function(module, exports) {
|
566 |
+
|
567 |
+
(function() { module.exports = window["regeneratorRuntime"]; }());
|
568 |
+
|
569 |
+
/***/ }),
|
570 |
+
/* 17 */
|
571 |
+
/***/ (function(module, exports, __webpack_require__) {
|
572 |
+
|
573 |
+
var DESCRIPTORS = __webpack_require__(13);
|
574 |
+
var IE8_DOM_DEFINE = __webpack_require__(72);
|
575 |
+
var anObject = __webpack_require__(9);
|
576 |
+
var toPrimitive = __webpack_require__(40);
|
577 |
+
|
578 |
+
var nativeDefineProperty = Object.defineProperty;
|
579 |
+
|
580 |
+
// `Object.defineProperty` method
|
581 |
+
// https://tc39.es/ecma262/#sec-object.defineproperty
|
582 |
+
exports.f = DESCRIPTORS ? nativeDefineProperty : function defineProperty(O, P, Attributes) {
|
583 |
+
anObject(O);
|
584 |
+
P = toPrimitive(P, true);
|
585 |
+
anObject(Attributes);
|
586 |
+
if (IE8_DOM_DEFINE) try {
|
587 |
+
return nativeDefineProperty(O, P, Attributes);
|
588 |
+
} catch (error) { /* empty */ }
|
589 |
+
if ('get' in Attributes || 'set' in Attributes) throw TypeError('Accessors not supported');
|
590 |
+
if ('value' in Attributes) O[P] = Attributes.value;
|
591 |
+
return O;
|
592 |
+
};
|
593 |
+
|
594 |
+
|
595 |
+
/***/ }),
|
596 |
+
/* 18 */
|
597 |
+
/***/ (function(module, exports) {
|
598 |
+
|
599 |
+
function _assertThisInitialized(self) {
|
600 |
+
if (self === void 0) {
|
601 |
+
throw new ReferenceError("this hasn't been initialised - super() hasn't been called");
|
602 |
+
}
|
603 |
+
|
604 |
+
return self;
|
605 |
+
}
|
606 |
+
|
607 |
+
module.exports = _assertThisInitialized;
|
608 |
+
|
609 |
+
/***/ }),
|
610 |
+
/* 19 */
|
611 |
+
/***/ (function(module, exports, __webpack_require__) {
|
612 |
+
|
613 |
+
var DESCRIPTORS = __webpack_require__(13);
|
614 |
+
var definePropertyModule = __webpack_require__(17);
|
615 |
+
var createPropertyDescriptor = __webpack_require__(39);
|
616 |
+
|
617 |
+
module.exports = DESCRIPTORS ? function (object, key, value) {
|
618 |
+
return definePropertyModule.f(object, key, createPropertyDescriptor(1, value));
|
619 |
+
} : function (object, key, value) {
|
620 |
+
object[key] = value;
|
621 |
+
return object;
|
622 |
+
};
|
623 |
+
|
624 |
+
|
625 |
+
/***/ }),
|
626 |
+
/* 20 */
|
627 |
+
/***/ (function(module, exports) {
|
628 |
+
|
629 |
+
(function() { module.exports = window["React"]; }());
|
630 |
+
|
631 |
+
/***/ }),
|
632 |
+
/* 21 */
|
633 |
+
/***/ (function(module, exports, __webpack_require__) {
|
634 |
+
|
635 |
+
// toObject with fallback for non-array-like ES3 strings
|
636 |
+
var IndexedObject = __webpack_require__(71);
|
637 |
+
var requireObjectCoercible = __webpack_require__(32);
|
638 |
+
|
639 |
+
module.exports = function (it) {
|
640 |
+
return IndexedObject(requireObjectCoercible(it));
|
641 |
+
};
|
642 |
+
|
643 |
+
|
644 |
+
/***/ }),
|
645 |
+
/* 22 */
|
646 |
+
/***/ (function(module, exports) {
|
647 |
+
|
648 |
+
function _classCallCheck(instance, Constructor) {
|
649 |
+
if (!(instance instanceof Constructor)) {
|
650 |
+
throw new TypeError("Cannot call a class as a function");
|
651 |
+
}
|
652 |
+
}
|
653 |
+
|
654 |
+
module.exports = _classCallCheck;
|
655 |
+
|
656 |
+
/***/ }),
|
657 |
+
/* 23 */
|
658 |
+
/***/ (function(module, exports) {
|
659 |
+
|
660 |
+
function _defineProperties(target, props) {
|
661 |
+
for (var i = 0; i < props.length; i++) {
|
662 |
+
var descriptor = props[i];
|
663 |
+
descriptor.enumerable = descriptor.enumerable || false;
|
664 |
+
descriptor.configurable = true;
|
665 |
+
if ("value" in descriptor) descriptor.writable = true;
|
666 |
+
Object.defineProperty(target, descriptor.key, descriptor);
|
667 |
+
}
|
668 |
+
}
|
669 |
+
|
670 |
+
function _createClass(Constructor, protoProps, staticProps) {
|
671 |
+
if (protoProps) _defineProperties(Constructor.prototype, protoProps);
|
672 |
+
if (staticProps) _defineProperties(Constructor, staticProps);
|
673 |
+
return Constructor;
|
674 |
+
}
|
675 |
+
|
676 |
+
module.exports = _createClass;
|
677 |
+
|
678 |
+
/***/ }),
|
679 |
+
/* 24 */
|
680 |
+
/***/ (function(module, exports, __webpack_require__) {
|
681 |
+
|
682 |
+
var setPrototypeOf = __webpack_require__(204);
|
683 |
+
|
684 |
+
function _inherits(subClass, superClass) {
|
685 |
+
if (typeof superClass !== "function" && superClass !== null) {
|
686 |
+
throw new TypeError("Super expression must either be null or a function");
|
687 |
+
}
|
688 |
+
|
689 |
+
subClass.prototype = Object.create(superClass && superClass.prototype, {
|
690 |
+
constructor: {
|
691 |
+
value: subClass,
|
692 |
+
writable: true,
|
693 |
+
configurable: true
|
694 |
+
}
|
695 |
+
});
|
696 |
+
if (superClass) setPrototypeOf(subClass, superClass);
|
697 |
+
}
|
698 |
+
|
699 |
+
module.exports = _inherits;
|
700 |
+
|
701 |
+
/***/ }),
|
702 |
+
/* 25 */
|
703 |
+
/***/ (function(module, exports, __webpack_require__) {
|
704 |
+
|
705 |
+
var _typeof = __webpack_require__(108);
|
706 |
+
|
707 |
+
var assertThisInitialized = __webpack_require__(18);
|
708 |
+
|
709 |
+
function _possibleConstructorReturn(self, call) {
|
710 |
+
if (call && (_typeof(call) === "object" || typeof call === "function")) {
|
711 |
+
return call;
|
712 |
+
}
|
713 |
+
|
714 |
+
return assertThisInitialized(self);
|
715 |
+
}
|
716 |
+
|
717 |
+
module.exports = _possibleConstructorReturn;
|
718 |
+
|
719 |
+
/***/ }),
|
720 |
+
/* 26 */
|
721 |
+
/***/ (function(module, exports) {
|
722 |
+
|
723 |
+
(function() { module.exports = window["wp"]["data"]; }());
|
724 |
+
|
725 |
+
/***/ }),
|
726 |
+
/* 27 */
|
727 |
+
/***/ (function(module, exports, __webpack_require__) {
|
728 |
+
|
729 |
+
var global = __webpack_require__(3);
|
730 |
+
var createNonEnumerableProperty = __webpack_require__(19);
|
731 |
+
var has = __webpack_require__(11);
|
732 |
+
var setGlobal = __webpack_require__(46);
|
733 |
+
var inspectSource = __webpack_require__(68);
|
734 |
+
var InternalStateModule = __webpack_require__(45);
|
735 |
+
|
736 |
+
var getInternalState = InternalStateModule.get;
|
737 |
+
var enforceInternalState = InternalStateModule.enforce;
|
738 |
+
var TEMPLATE = String(String).split('String');
|
739 |
+
|
740 |
+
(module.exports = function (O, key, value, options) {
|
741 |
+
var unsafe = options ? !!options.unsafe : false;
|
742 |
+
var simple = options ? !!options.enumerable : false;
|
743 |
+
var noTargetGet = options ? !!options.noTargetGet : false;
|
744 |
+
var state;
|
745 |
+
if (typeof value == 'function') {
|
746 |
+
if (typeof key == 'string' && !has(value, 'name')) {
|
747 |
+
createNonEnumerableProperty(value, 'name', key);
|
748 |
+
}
|
749 |
+
state = enforceInternalState(value);
|
750 |
+
if (!state.source) {
|
751 |
+
state.source = TEMPLATE.join(typeof key == 'string' ? key : '');
|
752 |
+
}
|
753 |
+
}
|
754 |
+
if (O === global) {
|
755 |
+
if (simple) O[key] = value;
|
756 |
+
else setGlobal(key, value);
|
757 |
+
return;
|
758 |
+
} else if (!unsafe) {
|
759 |
+
delete O[key];
|
760 |
+
} else if (!noTargetGet && O[key]) {
|
761 |
+
simple = true;
|
762 |
+
}
|
763 |
+
if (simple) O[key] = value;
|
764 |
+
else createNonEnumerableProperty(O, key, value);
|
765 |
+
// add fake Function#toString for correct work wrapped methods / constructors with methods like LoDash isNative
|
766 |
+
})(Function.prototype, 'toString', function toString() {
|
767 |
+
return typeof this == 'function' && getInternalState(this).source || inspectSource(this);
|
768 |
+
});
|
769 |
+
|
770 |
+
|
771 |
+
/***/ }),
|
772 |
+
/* 28 */
|
773 |
+
/***/ (function(module, exports) {
|
774 |
+
|
775 |
+
(function() { module.exports = window["wp"]["primitives"]; }());
|
776 |
+
|
777 |
+
/***/ }),
|
778 |
+
/* 29 */
|
779 |
+
/***/ (function(module, exports) {
|
780 |
+
|
781 |
+
(function() { module.exports = window["moment"]; }());
|
782 |
+
|
783 |
+
/***/ }),
|
784 |
+
/* 30 */
|
785 |
+
/***/ (function(module, exports) {
|
786 |
+
|
787 |
+
var toString = {}.toString;
|
788 |
+
|
789 |
+
module.exports = function (it) {
|
790 |
+
return toString.call(it).slice(8, -1);
|
791 |
+
};
|
792 |
+
|
793 |
+
|
794 |
+
/***/ }),
|
795 |
+
/* 31 */
|
796 |
+
/***/ (function(module, exports, __webpack_require__) {
|
797 |
+
|
798 |
+
var path = __webpack_require__(81);
|
799 |
+
var global = __webpack_require__(3);
|
800 |
+
|
801 |
+
var aFunction = function (variable) {
|
802 |
+
return typeof variable == 'function' ? variable : undefined;
|
803 |
+
};
|
804 |
+
|
805 |
+
module.exports = function (namespace, method) {
|
806 |
+
return arguments.length < 2 ? aFunction(path[namespace]) || aFunction(global[namespace])
|
807 |
+
: path[namespace] && path[namespace][method] || global[namespace] && global[namespace][method];
|
808 |
+
};
|
809 |
+
|
810 |
+
|
811 |
+
/***/ }),
|
812 |
+
/* 32 */
|
813 |
+
/***/ (function(module, exports) {
|
814 |
+
|
815 |
+
// `RequireObjectCoercible` abstract operation
|
816 |
+
// https://tc39.es/ecma262/#sec-requireobjectcoercible
|
817 |
+
module.exports = function (it) {
|
818 |
+
if (it == undefined) throw TypeError("Can't call method on " + it);
|
819 |
+
return it;
|
820 |
+
};
|
821 |
+
|
822 |
+
|
823 |
+
/***/ }),
|
824 |
+
/* 33 */
|
825 |
+
/***/ (function(module, exports, __webpack_require__) {
|
826 |
+
|
827 |
+
var DESCRIPTORS = __webpack_require__(13);
|
828 |
+
var propertyIsEnumerableModule = __webpack_require__(76);
|
829 |
+
var createPropertyDescriptor = __webpack_require__(39);
|
830 |
+
var toIndexedObject = __webpack_require__(21);
|
831 |
+
var toPrimitive = __webpack_require__(40);
|
832 |
+
var has = __webpack_require__(11);
|
833 |
+
var IE8_DOM_DEFINE = __webpack_require__(72);
|
834 |
+
|
835 |
+
var nativeGetOwnPropertyDescriptor = Object.getOwnPropertyDescriptor;
|
836 |
+
|
837 |
+
// `Object.getOwnPropertyDescriptor` method
|
838 |
+
// https://tc39.es/ecma262/#sec-object.getownpropertydescriptor
|
839 |
+
exports.f = DESCRIPTORS ? nativeGetOwnPropertyDescriptor : function getOwnPropertyDescriptor(O, P) {
|
840 |
+
O = toIndexedObject(O);
|
841 |
+
P = toPrimitive(P, true);
|
842 |
+
if (IE8_DOM_DEFINE) try {
|
843 |
+
return nativeGetOwnPropertyDescriptor(O, P);
|
844 |
+
} catch (error) { /* empty */ }
|
845 |
+
if (has(O, P)) return createPropertyDescriptor(!propertyIsEnumerableModule.f.call(O, P), O[P]);
|
846 |
+
};
|
847 |
+
|
848 |
+
|
849 |
+
/***/ }),
|
850 |
+
/* 34 */
|
851 |
+
/***/ (function(module, exports, __webpack_require__) {
|
852 |
+
|
853 |
+
var toInteger = __webpack_require__(42);
|
854 |
+
|
855 |
+
var min = Math.min;
|
856 |
+
|
857 |
+
// `ToLength` abstract operation
|
858 |
+
// https://tc39.es/ecma262/#sec-tolength
|
859 |
+
module.exports = function (argument) {
|
860 |
+
return argument > 0 ? min(toInteger(argument), 0x1FFFFFFFFFFFFF) : 0; // 2 ** 53 - 1 == 9007199254740991
|
861 |
+
};
|
862 |
+
|
863 |
+
|
864 |
+
/***/ }),
|
865 |
+
/* 35 */
|
866 |
+
/***/ (function(module, exports) {
|
867 |
+
|
868 |
+
(function() { module.exports = window["wp"]["dataControls"]; }());
|
869 |
+
|
870 |
+
/***/ }),
|
871 |
+
/* 36 */
|
872 |
+
/***/ (function(module, exports) {
|
873 |
+
|
874 |
+
module.exports = {};
|
875 |
+
|
876 |
+
|
877 |
+
/***/ }),
|
878 |
+
/* 37 */
|
879 |
+
/***/ (function(module, exports, __webpack_require__) {
|
880 |
+
|
881 |
+
var $ = __webpack_require__(12);
|
882 |
+
var toObject = __webpack_require__(38);
|
883 |
+
var nativeKeys = __webpack_require__(54);
|
884 |
+
var fails = __webpack_require__(6);
|
885 |
+
|
886 |
+
var FAILS_ON_PRIMITIVES = fails(function () { nativeKeys(1); });
|
887 |
+
|
888 |
+
// `Object.keys` method
|
889 |
+
// https://tc39.es/ecma262/#sec-object.keys
|
890 |
+
$({ target: 'Object', stat: true, forced: FAILS_ON_PRIMITIVES }, {
|
891 |
+
keys: function keys(it) {
|
892 |
+
return nativeKeys(toObject(it));
|
893 |
+
}
|
894 |
+
});
|
895 |
+
|
896 |
+
|
897 |
+
/***/ }),
|
898 |
+
/* 38 */
|
899 |
+
/***/ (function(module, exports, __webpack_require__) {
|
900 |
+
|
901 |
+
var requireObjectCoercible = __webpack_require__(32);
|
902 |
+
|
903 |
+
// `ToObject` abstract operation
|
904 |
+
// https://tc39.es/ecma262/#sec-toobject
|
905 |
+
module.exports = function (argument) {
|
906 |
+
return Object(requireObjectCoercible(argument));
|
907 |
+
};
|
908 |
+
|
909 |
+
|
910 |
+
/***/ }),
|
911 |
+
/* 39 */
|
912 |
+
/***/ (function(module, exports) {
|
913 |
+
|
914 |
+
module.exports = function (bitmap, value) {
|
915 |
+
return {
|
916 |
+
enumerable: !(bitmap & 1),
|
917 |
+
configurable: !(bitmap & 2),
|
918 |
+
writable: !(bitmap & 4),
|
919 |
+
value: value
|
920 |
+
};
|
921 |
+
};
|
922 |
+
|
923 |
+
|
924 |
+
/***/ }),
|
925 |
+
/* 40 */
|
926 |
+
/***/ (function(module, exports, __webpack_require__) {
|
927 |
+
|
928 |
+
var isObject = __webpack_require__(10);
|
929 |
+
|
930 |
+
// `ToPrimitive` abstract operation
|
931 |
+
// https://tc39.es/ecma262/#sec-toprimitive
|
932 |
+
// instead of the ES6 spec version, we didn't implement @@toPrimitive case
|
933 |
+
// and the second argument - flag - preferred type is a string
|
934 |
+
module.exports = function (input, PREFERRED_STRING) {
|
935 |
+
if (!isObject(input)) return input;
|
936 |
+
var fn, val;
|
937 |
+
if (PREFERRED_STRING && typeof (fn = input.toString) == 'function' && !isObject(val = fn.call(input))) return val;
|
938 |
+
if (typeof (fn = input.valueOf) == 'function' && !isObject(val = fn.call(input))) return val;
|
939 |
+
if (!PREFERRED_STRING && typeof (fn = input.toString) == 'function' && !isObject(val = fn.call(input))) return val;
|
940 |
+
throw TypeError("Can't convert object to primitive value");
|
941 |
+
};
|
942 |
+
|
943 |
+
|
944 |
+
/***/ }),
|
945 |
+
/* 41 */
|
946 |
+
/***/ (function(module, exports, __webpack_require__) {
|
947 |
+
|
948 |
+
"use strict";
|
949 |
+
|
950 |
+
var $ = __webpack_require__(12);
|
951 |
+
var $filter = __webpack_require__(75).filter;
|
952 |
+
var arrayMethodHasSpeciesSupport = __webpack_require__(89);
|
953 |
+
|
954 |
+
var HAS_SPECIES_SUPPORT = arrayMethodHasSpeciesSupport('filter');
|
955 |
+
|
956 |
+
// `Array.prototype.filter` method
|
957 |
+
// https://tc39.es/ecma262/#sec-array.prototype.filter
|
958 |
+
// with adding support of @@species
|
959 |
+
$({ target: 'Array', proto: true, forced: !HAS_SPECIES_SUPPORT }, {
|
960 |
+
filter: function filter(callbackfn /* , thisArg */) {
|
961 |
+
return $filter(this, callbackfn, arguments.length > 1 ? arguments[1] : undefined);
|
962 |
+
}
|
963 |
+
});
|
964 |
+
|
965 |
+
|
966 |
+
/***/ }),
|
967 |
+
/* 42 */
|
968 |
+
/***/ (function(module, exports) {
|
969 |
+
|
970 |
+
var ceil = Math.ceil;
|
971 |
+
var floor = Math.floor;
|
972 |
+
|
973 |
+
// `ToInteger` abstract operation
|
974 |
+
// https://tc39.es/ecma262/#sec-tointeger
|
975 |
+
module.exports = function (argument) {
|
976 |
+
return isNaN(argument = +argument) ? 0 : (argument > 0 ? floor : ceil)(argument);
|
977 |
+
};
|
978 |
+
|
979 |
+
|
980 |
+
/***/ }),
|
981 |
+
/* 43 */
|
982 |
+
/***/ (function(module, exports, __webpack_require__) {
|
983 |
+
|
984 |
+
var arrayWithHoles = __webpack_require__(182);
|
985 |
+
|
986 |
+
var iterableToArrayLimit = __webpack_require__(183);
|
987 |
+
|
988 |
+
var unsupportedIterableToArray = __webpack_require__(131);
|
989 |
+
|
990 |
+
var nonIterableRest = __webpack_require__(184);
|
991 |
+
|
992 |
+
function _slicedToArray(arr, i) {
|
993 |
+
return arrayWithHoles(arr) || iterableToArrayLimit(arr, i) || unsupportedIterableToArray(arr, i) || nonIterableRest();
|
994 |
+
}
|
995 |
+
|
996 |
+
module.exports = _slicedToArray;
|
997 |
+
|
998 |
+
/***/ }),
|
999 |
+
/* 44 */
|
1000 |
+
/***/ (function(module, exports, __webpack_require__) {
|
1001 |
+
|
1002 |
+
var arrayWithoutHoles = __webpack_require__(179);
|
1003 |
+
|
1004 |
+
var iterableToArray = __webpack_require__(180);
|
1005 |
+
|
1006 |
+
var unsupportedIterableToArray = __webpack_require__(131);
|
1007 |
+
|
1008 |
+
var nonIterableSpread = __webpack_require__(181);
|
1009 |
+
|
1010 |
+
function _toConsumableArray(arr) {
|
1011 |
+
return arrayWithoutHoles(arr) || iterableToArray(arr) || unsupportedIterableToArray(arr) || nonIterableSpread();
|
1012 |
+
}
|
1013 |
+
|
1014 |
+
module.exports = _toConsumableArray;
|
1015 |
+
|
1016 |
+
/***/ }),
|
1017 |
+
/* 45 */
|
1018 |
+
/***/ (function(module, exports, __webpack_require__) {
|
1019 |
+
|
1020 |
+
var NATIVE_WEAK_MAP = __webpack_require__(106);
|
1021 |
+
var global = __webpack_require__(3);
|
1022 |
+
var isObject = __webpack_require__(10);
|
1023 |
+
var createNonEnumerableProperty = __webpack_require__(19);
|
1024 |
+
var objectHas = __webpack_require__(11);
|
1025 |
+
var shared = __webpack_require__(47);
|
1026 |
+
var sharedKey = __webpack_require__(52);
|
1027 |
+
var hiddenKeys = __webpack_require__(36);
|
1028 |
+
|
1029 |
+
var WeakMap = global.WeakMap;
|
1030 |
+
var set, get, has;
|
1031 |
+
|
1032 |
+
var enforce = function (it) {
|
1033 |
+
return has(it) ? get(it) : set(it, {});
|
1034 |
+
};
|
1035 |
+
|
1036 |
+
var getterFor = function (TYPE) {
|
1037 |
+
return function (it) {
|
1038 |
+
var state;
|
1039 |
+
if (!isObject(it) || (state = get(it)).type !== TYPE) {
|
1040 |
+
throw TypeError('Incompatible receiver, ' + TYPE + ' required');
|
1041 |
+
} return state;
|
1042 |
+
};
|
1043 |
+
};
|
1044 |
+
|
1045 |
+
if (NATIVE_WEAK_MAP) {
|
1046 |
+
var store = shared.state || (shared.state = new WeakMap());
|
1047 |
+
var wmget = store.get;
|
1048 |
+
var wmhas = store.has;
|
1049 |
+
var wmset = store.set;
|
1050 |
+
set = function (it, metadata) {
|
1051 |
+
metadata.facade = it;
|
1052 |
+
wmset.call(store, it, metadata);
|
1053 |
+
return metadata;
|
1054 |
+
};
|
1055 |
+
get = function (it) {
|
1056 |
+
return wmget.call(store, it) || {};
|
1057 |
+
};
|
1058 |
+
has = function (it) {
|
1059 |
+
return wmhas.call(store, it);
|
1060 |
+
};
|
1061 |
+
} else {
|
1062 |
+
var STATE = sharedKey('state');
|
1063 |
+
hiddenKeys[STATE] = true;
|
1064 |
+
set = function (it, metadata) {
|
1065 |
+
metadata.facade = it;
|
1066 |
+
createNonEnumerableProperty(it, STATE, metadata);
|
1067 |
+
return metadata;
|
1068 |
+
};
|
1069 |
+
get = function (it) {
|
1070 |
+
return objectHas(it, STATE) ? it[STATE] : {};
|
1071 |
+
};
|
1072 |
+
has = function (it) {
|
1073 |
+
return objectHas(it, STATE);
|
1074 |
+
};
|
1075 |
+
}
|
1076 |
+
|
1077 |
+
module.exports = {
|
1078 |
+
set: set,
|
1079 |
+
get: get,
|
1080 |
+
has: has,
|
1081 |
+
enforce: enforce,
|
1082 |
+
getterFor: getterFor
|
1083 |
+
};
|
1084 |
+
|
1085 |
+
|
1086 |
+
/***/ }),
|
1087 |
+
/* 46 */
|
1088 |
+
/***/ (function(module, exports, __webpack_require__) {
|
1089 |
+
|
1090 |
+
var global = __webpack_require__(3);
|
1091 |
+
var createNonEnumerableProperty = __webpack_require__(19);
|
1092 |
+
|
1093 |
+
module.exports = function (key, value) {
|
1094 |
+
try {
|
1095 |
+
createNonEnumerableProperty(global, key, value);
|
1096 |
+
} catch (error) {
|
1097 |
+
global[key] = value;
|
1098 |
+
} return value;
|
1099 |
+
};
|
1100 |
+
|
1101 |
+
|
1102 |
+
/***/ }),
|
1103 |
+
/* 47 */
|
1104 |
+
/***/ (function(module, exports, __webpack_require__) {
|
1105 |
+
|
1106 |
+
var global = __webpack_require__(3);
|
1107 |
+
var setGlobal = __webpack_require__(46);
|
1108 |
+
|
1109 |
+
var SHARED = '__core-js_shared__';
|
1110 |
+
var store = global[SHARED] || setGlobal(SHARED, {});
|
1111 |
+
|
1112 |
+
module.exports = store;
|
1113 |
+
|
1114 |
+
|
1115 |
+
/***/ }),
|
1116 |
+
/* 48 */
|
1117 |
+
/***/ (function(module, exports) {
|
1118 |
+
|
1119 |
+
// IE8- don't enum bug keys
|
1120 |
+
module.exports = [
|
1121 |
+
'constructor',
|
1122 |
+
'hasOwnProperty',
|
1123 |
+
'isPrototypeOf',
|
1124 |
+
'propertyIsEnumerable',
|
1125 |
+
'toLocaleString',
|
1126 |
+
'toString',
|
1127 |
+
'valueOf'
|
1128 |
+
];
|
1129 |
+
|
1130 |
+
|
1131 |
+
/***/ }),
|
1132 |
+
/* 49 */
|
1133 |
+
/***/ (function(module, exports, __webpack_require__) {
|
1134 |
+
|
1135 |
+
var global = __webpack_require__(3);
|
1136 |
+
var DOMIterables = __webpack_require__(127);
|
1137 |
+
var forEach = __webpack_require__(149);
|
1138 |
+
var createNonEnumerableProperty = __webpack_require__(19);
|
1139 |
+
|
1140 |
+
for (var COLLECTION_NAME in DOMIterables) {
|
1141 |
+
var Collection = global[COLLECTION_NAME];
|
1142 |
+
var CollectionPrototype = Collection && Collection.prototype;
|
1143 |
+
// some Chrome versions have non-configurable methods on DOMTokenList
|
1144 |
+
if (CollectionPrototype && CollectionPrototype.forEach !== forEach) try {
|
1145 |
+
createNonEnumerableProperty(CollectionPrototype, 'forEach', forEach);
|
1146 |
+
} catch (error) {
|
1147 |
+
CollectionPrototype.forEach = forEach;
|
1148 |
+
}
|
1149 |
+
}
|
1150 |
+
|
1151 |
+
|
1152 |
+
/***/ }),
|
1153 |
+
/* 50 */
|
1154 |
+
/***/ (function(module, exports) {
|
1155 |
+
|
1156 |
+
(function() { module.exports = window["wc"]["navigation"]; }());
|
1157 |
+
|
1158 |
+
/***/ }),
|
1159 |
+
/* 51 */
|
1160 |
+
/***/ (function(module, exports, __webpack_require__) {
|
1161 |
+
|
1162 |
+
"use strict";
|
1163 |
+
|
1164 |
+
var $ = __webpack_require__(12);
|
1165 |
+
var $map = __webpack_require__(75).map;
|
1166 |
+
var arrayMethodHasSpeciesSupport = __webpack_require__(89);
|
1167 |
+
|
1168 |
+
var HAS_SPECIES_SUPPORT = arrayMethodHasSpeciesSupport('map');
|
1169 |
+
|
1170 |
+
// `Array.prototype.map` method
|
1171 |
+
// https://tc39.es/ecma262/#sec-array.prototype.map
|
1172 |
+
// with adding support of @@species
|
1173 |
+
$({ target: 'Array', proto: true, forced: !HAS_SPECIES_SUPPORT }, {
|
1174 |
+
map: function map(callbackfn /* , thisArg */) {
|
1175 |
+
return $map(this, callbackfn, arguments.length > 1 ? arguments[1] : undefined);
|
1176 |
+
}
|
1177 |
+
});
|
1178 |
+
|
1179 |
+
|
1180 |
+
/***/ }),
|
1181 |
+
/* 52 */
|
1182 |
+
/***/ (function(module, exports, __webpack_require__) {
|
1183 |
+
|
1184 |
+
var shared = __webpack_require__(58);
|
1185 |
+
var uid = __webpack_require__(55);
|
1186 |
+
|
1187 |
+
var keys = shared('keys');
|
1188 |
+
|
1189 |
+
module.exports = function (key) {
|
1190 |
+
return keys[key] || (keys[key] = uid(key));
|
1191 |
+
};
|
1192 |
+
|
1193 |
+
|
1194 |
+
/***/ }),
|
1195 |
+
/* 53 */
|
1196 |
+
/***/ (function(module, exports, __webpack_require__) {
|
1197 |
+
|
1198 |
+
"use strict";
|
1199 |
+
|
1200 |
+
var $ = __webpack_require__(12);
|
1201 |
+
var global = __webpack_require__(3);
|
1202 |
+
var getBuiltIn = __webpack_require__(31);
|
1203 |
+
var IS_PURE = __webpack_require__(57);
|
1204 |
+
var DESCRIPTORS = __webpack_require__(13);
|
1205 |
+
var NATIVE_SYMBOL = __webpack_require__(62);
|
1206 |
+
var USE_SYMBOL_AS_UID = __webpack_require__(93);
|
1207 |
+
var fails = __webpack_require__(6);
|
1208 |
+
var has = __webpack_require__(11);
|
1209 |
+
var isArray = __webpack_require__(84);
|
1210 |
+
var isObject = __webpack_require__(10);
|
1211 |
+
var anObject = __webpack_require__(9);
|
1212 |
+
var toObject = __webpack_require__(38);
|
1213 |
+
var toIndexedObject = __webpack_require__(21);
|
1214 |
+
var toPrimitive = __webpack_require__(40);
|
1215 |
+
var createPropertyDescriptor = __webpack_require__(39);
|
1216 |
+
var nativeObjectCreate = __webpack_require__(69);
|
1217 |
+
var objectKeys = __webpack_require__(54);
|
1218 |
+
var getOwnPropertyNamesModule = __webpack_require__(56);
|
1219 |
+
var getOwnPropertyNamesExternal = __webpack_require__(147);
|
1220 |
+
var getOwnPropertySymbolsModule = __webpack_require__(79);
|
1221 |
+
var getOwnPropertyDescriptorModule = __webpack_require__(33);
|
1222 |
+
var definePropertyModule = __webpack_require__(17);
|
1223 |
+
var propertyIsEnumerableModule = __webpack_require__(76);
|
1224 |
+
var createNonEnumerableProperty = __webpack_require__(19);
|
1225 |
+
var redefine = __webpack_require__(27);
|
1226 |
+
var shared = __webpack_require__(58);
|
1227 |
+
var sharedKey = __webpack_require__(52);
|
1228 |
+
var hiddenKeys = __webpack_require__(36);
|
1229 |
+
var uid = __webpack_require__(55);
|
1230 |
+
var wellKnownSymbol = __webpack_require__(8);
|
1231 |
+
var wrappedWellKnownSymbolModule = __webpack_require__(119);
|
1232 |
+
var defineWellKnownSymbol = __webpack_require__(148);
|
1233 |
+
var setToStringTag = __webpack_require__(90);
|
1234 |
+
var InternalStateModule = __webpack_require__(45);
|
1235 |
+
var $forEach = __webpack_require__(75).forEach;
|
1236 |
+
|
1237 |
+
var HIDDEN = sharedKey('hidden');
|
1238 |
+
var SYMBOL = 'Symbol';
|
1239 |
+
var PROTOTYPE = 'prototype';
|
1240 |
+
var TO_PRIMITIVE = wellKnownSymbol('toPrimitive');
|
1241 |
+
var setInternalState = InternalStateModule.set;
|
1242 |
+
var getInternalState = InternalStateModule.getterFor(SYMBOL);
|
1243 |
+
var ObjectPrototype = Object[PROTOTYPE];
|
1244 |
+
var $Symbol = global.Symbol;
|
1245 |
+
var $stringify = getBuiltIn('JSON', 'stringify');
|
1246 |
+
var nativeGetOwnPropertyDescriptor = getOwnPropertyDescriptorModule.f;
|
1247 |
+
var nativeDefineProperty = definePropertyModule.f;
|
1248 |
+
var nativeGetOwnPropertyNames = getOwnPropertyNamesExternal.f;
|
1249 |
+
var nativePropertyIsEnumerable = propertyIsEnumerableModule.f;
|
1250 |
+
var AllSymbols = shared('symbols');
|
1251 |
+
var ObjectPrototypeSymbols = shared('op-symbols');
|
1252 |
+
var StringToSymbolRegistry = shared('string-to-symbol-registry');
|
1253 |
+
var SymbolToStringRegistry = shared('symbol-to-string-registry');
|
1254 |
+
var WellKnownSymbolsStore = shared('wks');
|
1255 |
+
var QObject = global.QObject;
|
1256 |
+
// Don't use setters in Qt Script, https://github.com/zloirock/core-js/issues/173
|
1257 |
+
var USE_SETTER = !QObject || !QObject[PROTOTYPE] || !QObject[PROTOTYPE].findChild;
|
1258 |
+
|
1259 |
+
// fallback for old Android, https://code.google.com/p/v8/issues/detail?id=687
|
1260 |
+
var setSymbolDescriptor = DESCRIPTORS && fails(function () {
|
1261 |
+
return nativeObjectCreate(nativeDefineProperty({}, 'a', {
|
1262 |
+
get: function () { return nativeDefineProperty(this, 'a', { value: 7 }).a; }
|
1263 |
+
})).a != 7;
|
1264 |
+
}) ? function (O, P, Attributes) {
|
1265 |
+
var ObjectPrototypeDescriptor = nativeGetOwnPropertyDescriptor(ObjectPrototype, P);
|
1266 |
+
if (ObjectPrototypeDescriptor) delete ObjectPrototype[P];
|
1267 |
+
nativeDefineProperty(O, P, Attributes);
|
1268 |
+
if (ObjectPrototypeDescriptor && O !== ObjectPrototype) {
|
1269 |
+
nativeDefineProperty(ObjectPrototype, P, ObjectPrototypeDescriptor);
|
1270 |
+
}
|
1271 |
+
} : nativeDefineProperty;
|
1272 |
+
|
1273 |
+
var wrap = function (tag, description) {
|
1274 |
+
var symbol = AllSymbols[tag] = nativeObjectCreate($Symbol[PROTOTYPE]);
|
1275 |
+
setInternalState(symbol, {
|
1276 |
+
type: SYMBOL,
|
1277 |
+
tag: tag,
|
1278 |
+
description: description
|
1279 |
+
});
|
1280 |
+
if (!DESCRIPTORS) symbol.description = description;
|
1281 |
+
return symbol;
|
1282 |
+
};
|
1283 |
+
|
1284 |
+
var isSymbol = USE_SYMBOL_AS_UID ? function (it) {
|
1285 |
+
return typeof it == 'symbol';
|
1286 |
+
} : function (it) {
|
1287 |
+
return Object(it) instanceof $Symbol;
|
1288 |
+
};
|
1289 |
+
|
1290 |
+
var $defineProperty = function defineProperty(O, P, Attributes) {
|
1291 |
+
if (O === ObjectPrototype) $defineProperty(ObjectPrototypeSymbols, P, Attributes);
|
1292 |
+
anObject(O);
|
1293 |
+
var key = toPrimitive(P, true);
|
1294 |
+
anObject(Attributes);
|
1295 |
+
if (has(AllSymbols, key)) {
|
1296 |
+
if (!Attributes.enumerable) {
|
1297 |
+
if (!has(O, HIDDEN)) nativeDefineProperty(O, HIDDEN, createPropertyDescriptor(1, {}));
|
1298 |
+
O[HIDDEN][key] = true;
|
1299 |
+
} else {
|
1300 |
+
if (has(O, HIDDEN) && O[HIDDEN][key]) O[HIDDEN][key] = false;
|
1301 |
+
Attributes = nativeObjectCreate(Attributes, { enumerable: createPropertyDescriptor(0, false) });
|
1302 |
+
} return setSymbolDescriptor(O, key, Attributes);
|
1303 |
+
} return nativeDefineProperty(O, key, Attributes);
|
1304 |
+
};
|
1305 |
+
|
1306 |
+
var $defineProperties = function defineProperties(O, Properties) {
|
1307 |
+
anObject(O);
|
1308 |
+
var properties = toIndexedObject(Properties);
|
1309 |
+
var keys = objectKeys(properties).concat($getOwnPropertySymbols(properties));
|
1310 |
+
$forEach(keys, function (key) {
|
1311 |
+
if (!DESCRIPTORS || $propertyIsEnumerable.call(properties, key)) $defineProperty(O, key, properties[key]);
|
1312 |
+
});
|
1313 |
+
return O;
|
1314 |
+
};
|
1315 |
+
|
1316 |
+
var $create = function create(O, Properties) {
|
1317 |
+
return Properties === undefined ? nativeObjectCreate(O) : $defineProperties(nativeObjectCreate(O), Properties);
|
1318 |
+
};
|
1319 |
+
|
1320 |
+
var $propertyIsEnumerable = function propertyIsEnumerable(V) {
|
1321 |
+
var P = toPrimitive(V, true);
|
1322 |
+
var enumerable = nativePropertyIsEnumerable.call(this, P);
|
1323 |
+
if (this === ObjectPrototype && has(AllSymbols, P) && !has(ObjectPrototypeSymbols, P)) return false;
|
1324 |
+
return enumerable || !has(this, P) || !has(AllSymbols, P) || has(this, HIDDEN) && this[HIDDEN][P] ? enumerable : true;
|
1325 |
+
};
|
1326 |
+
|
1327 |
+
var $getOwnPropertyDescriptor = function getOwnPropertyDescriptor(O, P) {
|
1328 |
+
var it = toIndexedObject(O);
|
1329 |
+
var key = toPrimitive(P, true);
|
1330 |
+
if (it === ObjectPrototype && has(AllSymbols, key) && !has(ObjectPrototypeSymbols, key)) return;
|
1331 |
+
var descriptor = nativeGetOwnPropertyDescriptor(it, key);
|
1332 |
+
if (descriptor && has(AllSymbols, key) && !(has(it, HIDDEN) && it[HIDDEN][key])) {
|
1333 |
+
descriptor.enumerable = true;
|
1334 |
+
}
|
1335 |
+
return descriptor;
|
1336 |
+
};
|
1337 |
+
|
1338 |
+
var $getOwnPropertyNames = function getOwnPropertyNames(O) {
|
1339 |
+
var names = nativeGetOwnPropertyNames(toIndexedObject(O));
|
1340 |
+
var result = [];
|
1341 |
+
$forEach(names, function (key) {
|
1342 |
+
if (!has(AllSymbols, key) && !has(hiddenKeys, key)) result.push(key);
|
1343 |
+
});
|
1344 |
+
return result;
|
1345 |
+
};
|
1346 |
+
|
1347 |
+
var $getOwnPropertySymbols = function getOwnPropertySymbols(O) {
|
1348 |
+
var IS_OBJECT_PROTOTYPE = O === ObjectPrototype;
|
1349 |
+
var names = nativeGetOwnPropertyNames(IS_OBJECT_PROTOTYPE ? ObjectPrototypeSymbols : toIndexedObject(O));
|
1350 |
+
var result = [];
|
1351 |
+
$forEach(names, function (key) {
|
1352 |
+
if (has(AllSymbols, key) && (!IS_OBJECT_PROTOTYPE || has(ObjectPrototype, key))) {
|
1353 |
+
result.push(AllSymbols[key]);
|
1354 |
+
}
|
1355 |
+
});
|
1356 |
+
return result;
|
1357 |
+
};
|
1358 |
+
|
1359 |
+
// `Symbol` constructor
|
1360 |
+
// https://tc39.es/ecma262/#sec-symbol-constructor
|
1361 |
+
if (!NATIVE_SYMBOL) {
|
1362 |
+
$Symbol = function Symbol() {
|
1363 |
+
if (this instanceof $Symbol) throw TypeError('Symbol is not a constructor');
|
1364 |
+
var description = !arguments.length || arguments[0] === undefined ? undefined : String(arguments[0]);
|
1365 |
+
var tag = uid(description);
|
1366 |
+
var setter = function (value) {
|
1367 |
+
if (this === ObjectPrototype) setter.call(ObjectPrototypeSymbols, value);
|
1368 |
+
if (has(this, HIDDEN) && has(this[HIDDEN], tag)) this[HIDDEN][tag] = false;
|
1369 |
+
setSymbolDescriptor(this, tag, createPropertyDescriptor(1, value));
|
1370 |
+
};
|
1371 |
+
if (DESCRIPTORS && USE_SETTER) setSymbolDescriptor(ObjectPrototype, tag, { configurable: true, set: setter });
|
1372 |
+
return wrap(tag, description);
|
1373 |
+
};
|
1374 |
+
|
1375 |
+
redefine($Symbol[PROTOTYPE], 'toString', function toString() {
|
1376 |
+
return getInternalState(this).tag;
|
1377 |
+
});
|
1378 |
+
|
1379 |
+
redefine($Symbol, 'withoutSetter', function (description) {
|
1380 |
+
return wrap(uid(description), description);
|
1381 |
+
});
|
1382 |
+
|
1383 |
+
propertyIsEnumerableModule.f = $propertyIsEnumerable;
|
1384 |
+
definePropertyModule.f = $defineProperty;
|
1385 |
+
getOwnPropertyDescriptorModule.f = $getOwnPropertyDescriptor;
|
1386 |
+
getOwnPropertyNamesModule.f = getOwnPropertyNamesExternal.f = $getOwnPropertyNames;
|
1387 |
+
getOwnPropertySymbolsModule.f = $getOwnPropertySymbols;
|
1388 |
+
|
1389 |
+
wrappedWellKnownSymbolModule.f = function (name) {
|
1390 |
+
return wrap(wellKnownSymbol(name), name);
|
1391 |
+
};
|
1392 |
+
|
1393 |
+
if (DESCRIPTORS) {
|
1394 |
+
// https://github.com/tc39/proposal-Symbol-description
|
1395 |
+
nativeDefineProperty($Symbol[PROTOTYPE], 'description', {
|
1396 |
+
configurable: true,
|
1397 |
+
get: function description() {
|
1398 |
+
return getInternalState(this).description;
|
1399 |
+
}
|
1400 |
+
});
|
1401 |
+
if (!IS_PURE) {
|
1402 |
+
redefine(ObjectPrototype, 'propertyIsEnumerable', $propertyIsEnumerable, { unsafe: true });
|
1403 |
+
}
|
1404 |
+
}
|
1405 |
+
}
|
1406 |
+
|
1407 |
+
$({ global: true, wrap: true, forced: !NATIVE_SYMBOL, sham: !NATIVE_SYMBOL }, {
|
1408 |
+
Symbol: $Symbol
|
1409 |
+
});
|
1410 |
+
|
1411 |
+
$forEach(objectKeys(WellKnownSymbolsStore), function (name) {
|
1412 |
+
defineWellKnownSymbol(name);
|
1413 |
+
});
|
1414 |
+
|
1415 |
+
$({ target: SYMBOL, stat: true, forced: !NATIVE_SYMBOL }, {
|
1416 |
+
// `Symbol.for` method
|
1417 |
+
// https://tc39.es/ecma262/#sec-symbol.for
|
1418 |
+
'for': function (key) {
|
1419 |
+
var string = String(key);
|
1420 |
+
if (has(StringToSymbolRegistry, string)) return StringToSymbolRegistry[string];
|
1421 |
+
var symbol = $Symbol(string);
|
1422 |
+
StringToSymbolRegistry[string] = symbol;
|
1423 |
+
SymbolToStringRegistry[symbol] = string;
|
1424 |
+
return symbol;
|
1425 |
+
},
|
1426 |
+
// `Symbol.keyFor` method
|
1427 |
+
// https://tc39.es/ecma262/#sec-symbol.keyfor
|
1428 |
+
keyFor: function keyFor(sym) {
|
1429 |
+
if (!isSymbol(sym)) throw TypeError(sym + ' is not a symbol');
|
1430 |
+
if (has(SymbolToStringRegistry, sym)) return SymbolToStringRegistry[sym];
|
1431 |
+
},
|
1432 |
+
useSetter: function () { USE_SETTER = true; },
|
1433 |
+
useSimple: function () { USE_SETTER = false; }
|
1434 |
+
});
|
1435 |
+
|
1436 |
+
$({ target: 'Object', stat: true, forced: !NATIVE_SYMBOL, sham: !DESCRIPTORS }, {
|
1437 |
+
// `Object.create` method
|
1438 |
+
// https://tc39.es/ecma262/#sec-object.create
|
1439 |
+
create: $create,
|
1440 |
+
// `Object.defineProperty` method
|
1441 |
+
// https://tc39.es/ecma262/#sec-object.defineproperty
|
1442 |
+
defineProperty: $defineProperty,
|
1443 |
+
// `Object.defineProperties` method
|
1444 |
+
// https://tc39.es/ecma262/#sec-object.defineproperties
|
1445 |
+
defineProperties: $defineProperties,
|
1446 |
+
// `Object.getOwnPropertyDescriptor` method
|
1447 |
+
// https://tc39.es/ecma262/#sec-object.getownpropertydescriptors
|
1448 |
+
getOwnPropertyDescriptor: $getOwnPropertyDescriptor
|
1449 |
+
});
|
1450 |
+
|
1451 |
+
$({ target: 'Object', stat: true, forced: !NATIVE_SYMBOL }, {
|
1452 |
+
// `Object.getOwnPropertyNames` method
|
1453 |
+
// https://tc39.es/ecma262/#sec-object.getownpropertynames
|
1454 |
+
getOwnPropertyNames: $getOwnPropertyNames,
|
1455 |
+
// `Object.getOwnPropertySymbols` method
|
1456 |
+
// https://tc39.es/ecma262/#sec-object.getownpropertysymbols
|
1457 |
+
getOwnPropertySymbols: $getOwnPropertySymbols
|
1458 |
+
});
|
1459 |
+
|
1460 |
+
// Chrome 38 and 39 `Object.getOwnPropertySymbols` fails on primitives
|
1461 |
+
// https://bugs.chromium.org/p/v8/issues/detail?id=3443
|
1462 |
+
$({ target: 'Object', stat: true, forced: fails(function () { getOwnPropertySymbolsModule.f(1); }) }, {
|
1463 |
+
getOwnPropertySymbols: function getOwnPropertySymbols(it) {
|
1464 |
+
return getOwnPropertySymbolsModule.f(toObject(it));
|
1465 |
+
}
|
1466 |
+
});
|
1467 |
+
|
1468 |
+
// `JSON.stringify` method behavior with symbols
|
1469 |
+
// https://tc39.es/ecma262/#sec-json.stringify
|
1470 |
+
if ($stringify) {
|
1471 |
+
var FORCED_JSON_STRINGIFY = !NATIVE_SYMBOL || fails(function () {
|
1472 |
+
var symbol = $Symbol();
|
1473 |
+
// MS Edge converts symbol values to JSON as {}
|
1474 |
+
return $stringify([symbol]) != '[null]'
|
1475 |
+
// WebKit converts symbol values to JSON as null
|
1476 |
+
|| $stringify({ a: symbol }) != '{}'
|
1477 |
+
// V8 throws on boxed symbols
|
1478 |
+
|| $stringify(Object(symbol)) != '{}';
|
1479 |
+
});
|
1480 |
+
|
1481 |
+
$({ target: 'JSON', stat: true, forced: FORCED_JSON_STRINGIFY }, {
|
1482 |
+
// eslint-disable-next-line no-unused-vars -- required for `.length`
|
1483 |
+
stringify: function stringify(it, replacer, space) {
|
1484 |
+
var args = [it];
|
1485 |
+
var index = 1;
|
1486 |
+
var $replacer;
|
1487 |
+
while (arguments.length > index) args.push(arguments[index++]);
|
1488 |
+
$replacer = replacer;
|
1489 |
+
if (!isObject(replacer) && it === undefined || isSymbol(it)) return; // IE8 returns string on undefined
|
1490 |
+
if (!isArray(replacer)) replacer = function (key, value) {
|
1491 |
+
if (typeof $replacer == 'function') value = $replacer.call(this, key, value);
|
1492 |
+
if (!isSymbol(value)) return value;
|
1493 |
+
};
|
1494 |
+
args[1] = replacer;
|
1495 |
+
return $stringify.apply(null, args);
|
1496 |
+
}
|
1497 |
+
});
|
1498 |
+
}
|
1499 |
+
|
1500 |
+
// `Symbol.prototype[@@toPrimitive]` method
|
1501 |
+
// https://tc39.es/ecma262/#sec-symbol.prototype-@@toprimitive
|
1502 |
+
if (!$Symbol[PROTOTYPE][TO_PRIMITIVE]) {
|
1503 |
+
createNonEnumerableProperty($Symbol[PROTOTYPE], TO_PRIMITIVE, $Symbol[PROTOTYPE].valueOf);
|
1504 |
+
}
|
1505 |
+
// `Symbol.prototype[@@toStringTag]` property
|
1506 |
+
// https://tc39.es/ecma262/#sec-symbol.prototype-@@tostringtag
|
1507 |
+
setToStringTag($Symbol, SYMBOL);
|
1508 |
+
|
1509 |
+
hiddenKeys[HIDDEN] = true;
|
1510 |
+
|
1511 |
+
|
1512 |
+
/***/ }),
|
1513 |
+
/* 54 */
|
1514 |
+
/***/ (function(module, exports, __webpack_require__) {
|
1515 |
+
|
1516 |
+
var internalObjectKeys = __webpack_require__(73);
|
1517 |
+
var enumBugKeys = __webpack_require__(48);
|
1518 |
+
|
1519 |
+
// `Object.keys` method
|
1520 |
+
// https://tc39.es/ecma262/#sec-object.keys
|
1521 |
+
module.exports = Object.keys || function keys(O) {
|
1522 |
+
return internalObjectKeys(O, enumBugKeys);
|
1523 |
+
};
|
1524 |
+
|
1525 |
+
|
1526 |
+
/***/ }),
|
1527 |
+
/* 55 */
|
1528 |
+
/***/ (function(module, exports) {
|
1529 |
+
|
1530 |
+
var id = 0;
|
1531 |
+
var postfix = Math.random();
|
1532 |
+
|
1533 |
+
module.exports = function (key) {
|
1534 |
+
return 'Symbol(' + String(key === undefined ? '' : key) + ')_' + (++id + postfix).toString(36);
|
1535 |
+
};
|
1536 |
+
|
1537 |
+
|
1538 |
+
/***/ }),
|
1539 |
+
/* 56 */
|
1540 |
+
/***/ (function(module, exports, __webpack_require__) {
|
1541 |
+
|
1542 |
+
var internalObjectKeys = __webpack_require__(73);
|
1543 |
+
var enumBugKeys = __webpack_require__(48);
|
1544 |
+
|
1545 |
+
var hiddenKeys = enumBugKeys.concat('length', 'prototype');
|
1546 |
+
|
1547 |
+
// `Object.getOwnPropertyNames` method
|
1548 |
+
// https://tc39.es/ecma262/#sec-object.getownpropertynames
|
1549 |
+
exports.f = Object.getOwnPropertyNames || function getOwnPropertyNames(O) {
|
1550 |
+
return internalObjectKeys(O, hiddenKeys);
|
1551 |
+
};
|
1552 |
+
|
1553 |
+
|
1554 |
+
/***/ }),
|
1555 |
+
/* 57 */
|
1556 |
+
/***/ (function(module, exports) {
|
1557 |
+
|
1558 |
+
module.exports = false;
|
1559 |
+
|
1560 |
+
|
1561 |
+
/***/ }),
|
1562 |
+
/* 58 */
|
1563 |
+
/***/ (function(module, exports, __webpack_require__) {
|
1564 |
+
|
1565 |
+
var IS_PURE = __webpack_require__(57);
|
1566 |
+
var store = __webpack_require__(47);
|
1567 |
+
|
1568 |
+
(module.exports = function (key, value) {
|
1569 |
+
return store[key] || (store[key] = value !== undefined ? value : {});
|
1570 |
+
})('versions', []).push({
|
1571 |
+
version: '3.9.1',
|
1572 |
+
mode: IS_PURE ? 'pure' : 'global',
|
1573 |
+
copyright: '© 2021 Denis Pushkarev (zloirock.ru)'
|
1574 |
+
});
|
1575 |
+
|
1576 |
+
|
1577 |
+
/***/ }),
|
1578 |
+
/* 59 */
|
1579 |
+
/***/ (function(module, exports) {
|
1580 |
+
|
1581 |
+
(function() { module.exports = window["wc"]["data"]; }());
|
1582 |
+
|
1583 |
+
/***/ }),
|
1584 |
+
/* 60 */
|
1585 |
+
/***/ (function(module, exports, __webpack_require__) {
|
1586 |
+
|
1587 |
+
var $ = __webpack_require__(12);
|
1588 |
+
var fails = __webpack_require__(6);
|
1589 |
+
var toIndexedObject = __webpack_require__(21);
|
1590 |
+
var nativeGetOwnPropertyDescriptor = __webpack_require__(33).f;
|
1591 |
+
var DESCRIPTORS = __webpack_require__(13);
|
1592 |
+
|
1593 |
+
var FAILS_ON_PRIMITIVES = fails(function () { nativeGetOwnPropertyDescriptor(1); });
|
1594 |
+
var FORCED = !DESCRIPTORS || FAILS_ON_PRIMITIVES;
|
1595 |
+
|
1596 |
+
// `Object.getOwnPropertyDescriptor` method
|
1597 |
+
// https://tc39.es/ecma262/#sec-object.getownpropertydescriptor
|
1598 |
+
$({ target: 'Object', stat: true, forced: FORCED, sham: !DESCRIPTORS }, {
|
1599 |
+
getOwnPropertyDescriptor: function getOwnPropertyDescriptor(it, key) {
|
1600 |
+
return nativeGetOwnPropertyDescriptor(toIndexedObject(it), key);
|
1601 |
+
}
|
1602 |
+
});
|
1603 |
+
|
1604 |
+
|
1605 |
+
/***/ }),
|
1606 |
+
/* 61 */
|
1607 |
+
/***/ (function(module, exports, __webpack_require__) {
|
1608 |
+
|
1609 |
+
var $ = __webpack_require__(12);
|
1610 |
+
var DESCRIPTORS = __webpack_require__(13);
|
1611 |
+
var ownKeys = __webpack_require__(86);
|
1612 |
+
var toIndexedObject = __webpack_require__(21);
|
1613 |
+
var getOwnPropertyDescriptorModule = __webpack_require__(33);
|
1614 |
+
var createProperty = __webpack_require__(102);
|
1615 |
+
|
1616 |
+
// `Object.getOwnPropertyDescriptors` method
|
1617 |
+
// https://tc39.es/ecma262/#sec-object.getownpropertydescriptors
|
1618 |
+
$({ target: 'Object', stat: true, sham: !DESCRIPTORS }, {
|
1619 |
+
getOwnPropertyDescriptors: function getOwnPropertyDescriptors(object) {
|
1620 |
+
var O = toIndexedObject(object);
|
1621 |
+
var getOwnPropertyDescriptor = getOwnPropertyDescriptorModule.f;
|
1622 |
+
var keys = ownKeys(O);
|
1623 |
+
var result = {};
|
1624 |
+
var index = 0;
|
1625 |
+
var key, descriptor;
|
1626 |
+
while (keys.length > index) {
|
1627 |
+
descriptor = getOwnPropertyDescriptor(O, key = keys[index++]);
|
1628 |
+
if (descriptor !== undefined) createProperty(result, key, descriptor);
|
1629 |
+
}
|
1630 |
+
return result;
|
1631 |
+
}
|
1632 |
+
});
|
1633 |
+
|
1634 |
+
|
1635 |
+
/***/ }),
|
1636 |
+
/* 62 */
|
1637 |
+
/***/ (function(module, exports, __webpack_require__) {
|
1638 |
+
|
1639 |
+
var IS_NODE = __webpack_require__(77);
|
1640 |
+
var V8_VERSION = __webpack_require__(63);
|
1641 |
+
var fails = __webpack_require__(6);
|
1642 |
+
|
1643 |
+
module.exports = !!Object.getOwnPropertySymbols && !fails(function () {
|
1644 |
+
/* global Symbol -- required for testing */
|
1645 |
+
return !Symbol.sham &&
|
1646 |
+
// Chrome 38 Symbol has incorrect toString conversion
|
1647 |
+
// Chrome 38-40 symbols are not inherited from DOM collections prototypes to instances
|
1648 |
+
(IS_NODE ? V8_VERSION === 38 : V8_VERSION > 37 && V8_VERSION < 41);
|
1649 |
+
});
|
1650 |
+
|
1651 |
+
|
1652 |
+
/***/ }),
|
1653 |
+
/* 63 */
|
1654 |
+
/***/ (function(module, exports, __webpack_require__) {
|
1655 |
+
|
1656 |
+
var global = __webpack_require__(3);
|
1657 |
+
var userAgent = __webpack_require__(87);
|
1658 |
+
|
1659 |
+
var process = global.process;
|
1660 |
+
var versions = process && process.versions;
|
1661 |
+
var v8 = versions && versions.v8;
|
1662 |
+
var match, version;
|
1663 |
+
|
1664 |
+
if (v8) {
|
1665 |
+
match = v8.split('.');
|
1666 |
+
version = match[0] + match[1];
|
1667 |
+
} else if (userAgent) {
|
1668 |
+
match = userAgent.match(/Edge\/(\d+)/);
|
1669 |
+
if (!match || match[1] >= 74) {
|
1670 |
+
match = userAgent.match(/Chrome\/(\d+)/);
|
1671 |
+
if (match) version = match[1];
|
1672 |
+
}
|
1673 |
+
}
|
1674 |
+
|
1675 |
+
module.exports = version && +version;
|
1676 |
+
|
1677 |
+
|
1678 |
+
/***/ }),
|
1679 |
+
/* 64 */
|
1680 |
+
/***/ (function(module, exports, __webpack_require__) {
|
1681 |
+
|
1682 |
+
var $ = __webpack_require__(12);
|
1683 |
+
var getBuiltIn = __webpack_require__(31);
|
1684 |
+
var aFunction = __webpack_require__(70);
|
1685 |
+
var anObject = __webpack_require__(9);
|
1686 |
+
var isObject = __webpack_require__(10);
|
1687 |
+
var create = __webpack_require__(69);
|
1688 |
+
var bind = __webpack_require__(212);
|
1689 |
+
var fails = __webpack_require__(6);
|
1690 |
+
|
1691 |
+
var nativeConstruct = getBuiltIn('Reflect', 'construct');
|
1692 |
+
|
1693 |
+
// `Reflect.construct` method
|
1694 |
+
// https://tc39.es/ecma262/#sec-reflect.construct
|
1695 |
+
// MS Edge supports only 2 arguments and argumentsList argument is optional
|
1696 |
+
// FF Nightly sets third argument as `new.target`, but does not create `this` from it
|
1697 |
+
var NEW_TARGET_BUG = fails(function () {
|
1698 |
+
function F() { /* empty */ }
|
1699 |
+
return !(nativeConstruct(function () { /* empty */ }, [], F) instanceof F);
|
1700 |
+
});
|
1701 |
+
var ARGS_BUG = !fails(function () {
|
1702 |
+
nativeConstruct(function () { /* empty */ });
|
1703 |
+
});
|
1704 |
+
var FORCED = NEW_TARGET_BUG || ARGS_BUG;
|
1705 |
+
|
1706 |
+
$({ target: 'Reflect', stat: true, forced: FORCED, sham: FORCED }, {
|
1707 |
+
construct: function construct(Target, args /* , newTarget */) {
|
1708 |
+
aFunction(Target);
|
1709 |
+
anObject(args);
|
1710 |
+
var newTarget = arguments.length < 3 ? Target : aFunction(arguments[2]);
|
1711 |
+
if (ARGS_BUG && !NEW_TARGET_BUG) return nativeConstruct(Target, args, newTarget);
|
1712 |
+
if (Target == newTarget) {
|
1713 |
+
// w/o altered newTarget, optimization for 0-4 arguments
|
1714 |
+
switch (args.length) {
|
1715 |
+
case 0: return new Target();
|
1716 |
+
case 1: return new Target(args[0]);
|
1717 |
+
case 2: return new Target(args[0], args[1]);
|
1718 |
+
case 3: return new Target(args[0], args[1], args[2]);
|
1719 |
+
case 4: return new Target(args[0], args[1], args[2], args[3]);
|
1720 |
+
}
|
1721 |
+
// w/o altered newTarget, lot of arguments case
|
1722 |
+
var $args = [null];
|
1723 |
+
$args.push.apply($args, args);
|
1724 |
+
return new (bind.apply(Target, $args))();
|
1725 |
+
}
|
1726 |
+
// with altered newTarget, not support built-in constructors
|
1727 |
+
var proto = newTarget.prototype;
|
1728 |
+
var instance = create(isObject(proto) ? proto : Object.prototype);
|
1729 |
+
var result = Function.apply.call(Target, instance, args);
|
1730 |
+
return isObject(result) ? result : instance;
|
1731 |
+
}
|
1732 |
+
});
|
1733 |
+
|
1734 |
+
|
1735 |
+
/***/ }),
|
1736 |
+
/* 65 */
|
1737 |
+
/***/ (function(module, exports) {
|
1738 |
+
|
1739 |
+
(function() { module.exports = window["wp"]["compose"]; }());
|
1740 |
+
|
1741 |
+
/***/ }),
|
1742 |
+
/* 66 */
|
1743 |
+
/***/ (function(module, exports, __webpack_require__) {
|
1744 |
+
|
1745 |
+
"use strict";
|
1746 |
+
|
1747 |
+
var $ = __webpack_require__(12);
|
1748 |
+
var fails = __webpack_require__(6);
|
1749 |
+
var isArray = __webpack_require__(84);
|
1750 |
+
var isObject = __webpack_require__(10);
|
1751 |
+
var toObject = __webpack_require__(38);
|
1752 |
+
var toLength = __webpack_require__(34);
|
1753 |
+
var createProperty = __webpack_require__(102);
|
1754 |
+
var arraySpeciesCreate = __webpack_require__(109);
|
1755 |
+
var arrayMethodHasSpeciesSupport = __webpack_require__(89);
|
1756 |
+
var wellKnownSymbol = __webpack_require__(8);
|
1757 |
+
var V8_VERSION = __webpack_require__(63);
|
1758 |
+
|
1759 |
+
var IS_CONCAT_SPREADABLE = wellKnownSymbol('isConcatSpreadable');
|
1760 |
+
var MAX_SAFE_INTEGER = 0x1FFFFFFFFFFFFF;
|
1761 |
+
var MAXIMUM_ALLOWED_INDEX_EXCEEDED = 'Maximum allowed index exceeded';
|
1762 |
+
|
1763 |
+
// We can't use this feature detection in V8 since it causes
|
1764 |
+
// deoptimization and serious performance degradation
|
1765 |
+
// https://github.com/zloirock/core-js/issues/679
|
1766 |
+
var IS_CONCAT_SPREADABLE_SUPPORT = V8_VERSION >= 51 || !fails(function () {
|
1767 |
+
var array = [];
|
1768 |
+
array[IS_CONCAT_SPREADABLE] = false;
|
1769 |
+
return array.concat()[0] !== array;
|
1770 |
+
});
|
1771 |
+
|
1772 |
+
var SPECIES_SUPPORT = arrayMethodHasSpeciesSupport('concat');
|
1773 |
+
|
1774 |
+
var isConcatSpreadable = function (O) {
|
1775 |
+
if (!isObject(O)) return false;
|
1776 |
+
var spreadable = O[IS_CONCAT_SPREADABLE];
|
1777 |
+
return spreadable !== undefined ? !!spreadable : isArray(O);
|
1778 |
+
};
|
1779 |
+
|
1780 |
+
var FORCED = !IS_CONCAT_SPREADABLE_SUPPORT || !SPECIES_SUPPORT;
|
1781 |
+
|
1782 |
+
// `Array.prototype.concat` method
|
1783 |
+
// https://tc39.es/ecma262/#sec-array.prototype.concat
|
1784 |
+
// with adding support of @@isConcatSpreadable and @@species
|
1785 |
+
$({ target: 'Array', proto: true, forced: FORCED }, {
|
1786 |
+
// eslint-disable-next-line no-unused-vars -- required for `.length`
|
1787 |
+
concat: function concat(arg) {
|
1788 |
+
var O = toObject(this);
|
1789 |
+
var A = arraySpeciesCreate(O, 0);
|
1790 |
+
var n = 0;
|
1791 |
+
var i, k, length, len, E;
|
1792 |
+
for (i = -1, length = arguments.length; i < length; i++) {
|
1793 |
+
E = i === -1 ? O : arguments[i];
|
1794 |
+
if (isConcatSpreadable(E)) {
|
1795 |
+
len = toLength(E.length);
|
1796 |
+
if (n + len > MAX_SAFE_INTEGER) throw TypeError(MAXIMUM_ALLOWED_INDEX_EXCEEDED);
|
1797 |
+
for (k = 0; k < len; k++, n++) if (k in E) createProperty(A, n, E[k]);
|
1798 |
+
} else {
|
1799 |
+
if (n >= MAX_SAFE_INTEGER) throw TypeError(MAXIMUM_ALLOWED_INDEX_EXCEEDED);
|
1800 |
+
createProperty(A, n++, E);
|
1801 |
+
}
|
1802 |
+
}
|
1803 |
+
A.length = n;
|
1804 |
+
return A;
|
1805 |
+
}
|
1806 |
+
});
|
1807 |
+
|
1808 |
+
|
1809 |
+
/***/ }),
|
1810 |
+
/* 67 */
|
1811 |
+
/***/ (function(module, exports, __webpack_require__) {
|
1812 |
+
|
1813 |
+
var global = __webpack_require__(3);
|
1814 |
+
var isObject = __webpack_require__(10);
|
1815 |
+
|
1816 |
+
var document = global.document;
|
1817 |
+
// typeof document.createElement is 'object' in old IE
|
1818 |
+
var EXISTS = isObject(document) && isObject(document.createElement);
|
1819 |
+
|
1820 |
+
module.exports = function (it) {
|
1821 |
+
return EXISTS ? document.createElement(it) : {};
|
1822 |
+
};
|
1823 |
+
|
1824 |
+
|
1825 |
+
/***/ }),
|
1826 |
+
/* 68 */
|
1827 |
+
/***/ (function(module, exports, __webpack_require__) {
|
1828 |
+
|
1829 |
+
var store = __webpack_require__(47);
|
1830 |
+
|
1831 |
+
var functionToString = Function.toString;
|
1832 |
+
|
1833 |
+
// this helper broken in `3.4.1-3.4.4`, so we can't use `shared` helper
|
1834 |
+
if (typeof store.inspectSource != 'function') {
|
1835 |
+
store.inspectSource = function (it) {
|
1836 |
+
return functionToString.call(it);
|
1837 |
+
};
|
1838 |
+
}
|
1839 |
+
|
1840 |
+
module.exports = store.inspectSource;
|
1841 |
+
|
1842 |
+
|
1843 |
+
/***/ }),
|
1844 |
+
/* 69 */
|
1845 |
+
/***/ (function(module, exports, __webpack_require__) {
|
1846 |
+
|
1847 |
+
var anObject = __webpack_require__(9);
|
1848 |
+
var defineProperties = __webpack_require__(104);
|
1849 |
+
var enumBugKeys = __webpack_require__(48);
|
1850 |
+
var hiddenKeys = __webpack_require__(36);
|
1851 |
+
var html = __webpack_require__(98);
|
1852 |
+
var documentCreateElement = __webpack_require__(67);
|
1853 |
+
var sharedKey = __webpack_require__(52);
|
1854 |
+
|
1855 |
+
var GT = '>';
|
1856 |
+
var LT = '<';
|
1857 |
+
var PROTOTYPE = 'prototype';
|
1858 |
+
var SCRIPT = 'script';
|
1859 |
+
var IE_PROTO = sharedKey('IE_PROTO');
|
1860 |
+
|
1861 |
+
var EmptyConstructor = function () { /* empty */ };
|
1862 |
+
|
1863 |
+
var scriptTag = function (content) {
|
1864 |
+
return LT + SCRIPT + GT + content + LT + '/' + SCRIPT + GT;
|
1865 |
+
};
|
1866 |
+
|
1867 |
+
// Create object with fake `null` prototype: use ActiveX Object with cleared prototype
|
1868 |
+
var NullProtoObjectViaActiveX = function (activeXDocument) {
|
1869 |
+
activeXDocument.write(scriptTag(''));
|
1870 |
+
activeXDocument.close();
|
1871 |
+
var temp = activeXDocument.parentWindow.Object;
|
1872 |
+
activeXDocument = null; // avoid memory leak
|
1873 |
+
return temp;
|
1874 |
+
};
|
1875 |
+
|
1876 |
+
// Create object with fake `null` prototype: use iframe Object with cleared prototype
|
1877 |
+
var NullProtoObjectViaIFrame = function () {
|
1878 |
+
// Thrash, waste and sodomy: IE GC bug
|
1879 |
+
var iframe = documentCreateElement('iframe');
|
1880 |
+
var JS = 'java' + SCRIPT + ':';
|
1881 |
+
var iframeDocument;
|
1882 |
+
iframe.style.display = 'none';
|
1883 |
+
html.appendChild(iframe);
|
1884 |
+
// https://github.com/zloirock/core-js/issues/475
|
1885 |
+
iframe.src = String(JS);
|
1886 |
+
iframeDocument = iframe.contentWindow.document;
|
1887 |
+
iframeDocument.open();
|
1888 |
+
iframeDocument.write(scriptTag('document.F=Object'));
|
1889 |
+
iframeDocument.close();
|
1890 |
+
return iframeDocument.F;
|
1891 |
+
};
|
1892 |
+
|
1893 |
+
// Check for document.domain and active x support
|
1894 |
+
// No need to use active x approach when document.domain is not set
|
1895 |
+
// see https://github.com/es-shims/es5-shim/issues/150
|
1896 |
+
// variation of https://github.com/kitcambridge/es5-shim/commit/4f738ac066346
|
1897 |
+
// avoid IE GC bug
|
1898 |
+
var activeXDocument;
|
1899 |
+
var NullProtoObject = function () {
|
1900 |
+
try {
|
1901 |
+
/* global ActiveXObject -- old IE */
|
1902 |
+
activeXDocument = document.domain && new ActiveXObject('htmlfile');
|
1903 |
+
} catch (error) { /* ignore */ }
|
1904 |
+
NullProtoObject = activeXDocument ? NullProtoObjectViaActiveX(activeXDocument) : NullProtoObjectViaIFrame();
|
1905 |
+
var length = enumBugKeys.length;
|
1906 |
+
while (length--) delete NullProtoObject[PROTOTYPE][enumBugKeys[length]];
|
1907 |
+
return NullProtoObject();
|
1908 |
+
};
|
1909 |
+
|
1910 |
+
hiddenKeys[IE_PROTO] = true;
|
1911 |
+
|
1912 |
+
// `Object.create` method
|
1913 |
+
// https://tc39.es/ecma262/#sec-object.create
|
1914 |
+
module.exports = Object.create || function create(O, Properties) {
|
1915 |
+
var result;
|
1916 |
+
if (O !== null) {
|
1917 |
+
EmptyConstructor[PROTOTYPE] = anObject(O);
|
1918 |
+
result = new EmptyConstructor();
|
1919 |
+
EmptyConstructor[PROTOTYPE] = null;
|
1920 |
+
// add "__proto__" for Object.getPrototypeOf polyfill
|
1921 |
+
result[IE_PROTO] = O;
|
1922 |
+
} else result = NullProtoObject();
|
1923 |
+
return Properties === undefined ? result : defineProperties(result, Properties);
|
1924 |
+
};
|
1925 |
+
|
1926 |
+
|
1927 |
+
/***/ }),
|
1928 |
+
/* 70 */
|
1929 |
+
/***/ (function(module, exports) {
|
1930 |
+
|
1931 |
+
module.exports = function (it) {
|
1932 |
+
if (typeof it != 'function') {
|
1933 |
+
throw TypeError(String(it) + ' is not a function');
|
1934 |
+
} return it;
|
1935 |
+
};
|
1936 |
+
|
1937 |
+
|
1938 |
+
/***/ }),
|
1939 |
+
/* 71 */
|
1940 |
+
/***/ (function(module, exports, __webpack_require__) {
|
1941 |
+
|
1942 |
+
var fails = __webpack_require__(6);
|
1943 |
+
var classof = __webpack_require__(30);
|
1944 |
+
|
1945 |
+
var split = ''.split;
|
1946 |
+
|
1947 |
+
// fallback for non-array-like ES3 and non-enumerable old V8 strings
|
1948 |
+
module.exports = fails(function () {
|
1949 |
+
// throws an error in rhino, see https://github.com/mozilla/rhino/issues/346
|
1950 |
+
// eslint-disable-next-line no-prototype-builtins -- safe
|
1951 |
+
return !Object('z').propertyIsEnumerable(0);
|
1952 |
+
}) ? function (it) {
|
1953 |
+
return classof(it) == 'String' ? split.call(it, '') : Object(it);
|
1954 |
+
} : Object;
|
1955 |
+
|
1956 |
+
|
1957 |
+
/***/ }),
|
1958 |
+
/* 72 */
|
1959 |
+
/***/ (function(module, exports, __webpack_require__) {
|
1960 |
+
|
1961 |
+
var DESCRIPTORS = __webpack_require__(13);
|
1962 |
+
var fails = __webpack_require__(6);
|
1963 |
+
var createElement = __webpack_require__(67);
|
1964 |
+
|
1965 |
+
// Thank's IE8 for his funny defineProperty
|
1966 |
+
module.exports = !DESCRIPTORS && !fails(function () {
|
1967 |
+
return Object.defineProperty(createElement('div'), 'a', {
|
1968 |
+
get: function () { return 7; }
|
1969 |
+
}).a != 7;
|
1970 |
+
});
|
1971 |
+
|
1972 |
+
|
1973 |
+
/***/ }),
|
1974 |
+
/* 73 */
|
1975 |
+
/***/ (function(module, exports, __webpack_require__) {
|
1976 |
+
|
1977 |
+
var has = __webpack_require__(11);
|
1978 |
+
var toIndexedObject = __webpack_require__(21);
|
1979 |
+
var indexOf = __webpack_require__(83).indexOf;
|
1980 |
+
var hiddenKeys = __webpack_require__(36);
|
1981 |
+
|
1982 |
+
module.exports = function (object, names) {
|
1983 |
+
var O = toIndexedObject(object);
|
1984 |
+
var i = 0;
|
1985 |
+
var result = [];
|
1986 |
+
var key;
|
1987 |
+
for (key in O) !has(hiddenKeys, key) && has(O, key) && result.push(key);
|
1988 |
+
// Don't enum bug & hidden keys
|
1989 |
+
while (names.length > i) if (has(O, key = names[i++])) {
|
1990 |
+
~indexOf(result, key) || result.push(key);
|
1991 |
+
}
|
1992 |
+
return result;
|
1993 |
+
};
|
1994 |
+
|
1995 |
+
|
1996 |
+
/***/ }),
|
1997 |
+
/* 74 */
|
1998 |
+
/***/ (function(module, exports, __webpack_require__) {
|
1999 |
+
|
2000 |
+
var fails = __webpack_require__(6);
|
2001 |
+
|
2002 |
+
var replacement = /#|\.prototype\./;
|
2003 |
+
|
2004 |
+
var isForced = function (feature, detection) {
|
2005 |
+
var value = data[normalize(feature)];
|
2006 |
+
return value == POLYFILL ? true
|
2007 |
+
: value == NATIVE ? false
|
2008 |
+
: typeof detection == 'function' ? fails(detection)
|
2009 |
+
: !!detection;
|
2010 |
+
};
|
2011 |
+
|
2012 |
+
var normalize = isForced.normalize = function (string) {
|
2013 |
+
return String(string).replace(replacement, '.').toLowerCase();
|
2014 |
+
};
|
2015 |
+
|
2016 |
+
var data = isForced.data = {};
|
2017 |
+
var NATIVE = isForced.NATIVE = 'N';
|
2018 |
+
var POLYFILL = isForced.POLYFILL = 'P';
|
2019 |
+
|
2020 |
+
module.exports = isForced;
|
2021 |
+
|
2022 |
+
|
2023 |
+
/***/ }),
|
2024 |
+
/* 75 */
|
2025 |
+
/***/ (function(module, exports, __webpack_require__) {
|
2026 |
+
|
2027 |
+
var bind = __webpack_require__(94);
|
2028 |
+
var IndexedObject = __webpack_require__(71);
|
2029 |
+
var toObject = __webpack_require__(38);
|
2030 |
+
var toLength = __webpack_require__(34);
|
2031 |
+
var arraySpeciesCreate = __webpack_require__(109);
|
2032 |
+
|
2033 |
+
var push = [].push;
|
2034 |
+
|
2035 |
+
// `Array.prototype.{ forEach, map, filter, some, every, find, findIndex, filterOut }` methods implementation
|
2036 |
+
var createMethod = function (TYPE) {
|
2037 |
+
var IS_MAP = TYPE == 1;
|
2038 |
+
var IS_FILTER = TYPE == 2;
|
2039 |
+
var IS_SOME = TYPE == 3;
|
2040 |
+
var IS_EVERY = TYPE == 4;
|
2041 |
+
var IS_FIND_INDEX = TYPE == 6;
|
2042 |
+
var IS_FILTER_OUT = TYPE == 7;
|
2043 |
+
var NO_HOLES = TYPE == 5 || IS_FIND_INDEX;
|
2044 |
+
return function ($this, callbackfn, that, specificCreate) {
|
2045 |
+
var O = toObject($this);
|
2046 |
+
var self = IndexedObject(O);
|
2047 |
+
var boundFunction = bind(callbackfn, that, 3);
|
2048 |
+
var length = toLength(self.length);
|
2049 |
+
var index = 0;
|
2050 |
+
var create = specificCreate || arraySpeciesCreate;
|
2051 |
+
var target = IS_MAP ? create($this, length) : IS_FILTER || IS_FILTER_OUT ? create($this, 0) : undefined;
|
2052 |
+
var value, result;
|
2053 |
+
for (;length > index; index++) if (NO_HOLES || index in self) {
|
2054 |
+
value = self[index];
|
2055 |
+
result = boundFunction(value, index, O);
|
2056 |
+
if (TYPE) {
|
2057 |
+
if (IS_MAP) target[index] = result; // map
|
2058 |
+
else if (result) switch (TYPE) {
|
2059 |
+
case 3: return true; // some
|
2060 |
+
case 5: return value; // find
|
2061 |
+
case 6: return index; // findIndex
|
2062 |
+
case 2: push.call(target, value); // filter
|
2063 |
+
} else switch (TYPE) {
|
2064 |
+
case 4: return false; // every
|
2065 |
+
case 7: push.call(target, value); // filterOut
|
2066 |
+
}
|
2067 |
+
}
|
2068 |
+
}
|
2069 |
+
return IS_FIND_INDEX ? -1 : IS_SOME || IS_EVERY ? IS_EVERY : target;
|
2070 |
+
};
|
2071 |
+
};
|
2072 |
+
|
2073 |
+
module.exports = {
|
2074 |
+
// `Array.prototype.forEach` method
|
2075 |
+
// https://tc39.es/ecma262/#sec-array.prototype.foreach
|
2076 |
+
forEach: createMethod(0),
|
2077 |
+
// `Array.prototype.map` method
|
2078 |
+
// https://tc39.es/ecma262/#sec-array.prototype.map
|
2079 |
+
map: createMethod(1),
|
2080 |
+
// `Array.prototype.filter` method
|
2081 |
+
// https://tc39.es/ecma262/#sec-array.prototype.filter
|
2082 |
+
filter: createMethod(2),
|
2083 |
+
// `Array.prototype.some` method
|
2084 |
+
// https://tc39.es/ecma262/#sec-array.prototype.some
|
2085 |
+
some: createMethod(3),
|
2086 |
+
// `Array.prototype.every` method
|
2087 |
+
// https://tc39.es/ecma262/#sec-array.prototype.every
|
2088 |
+
every: createMethod(4),
|
2089 |
+
// `Array.prototype.find` method
|
2090 |
+
// https://tc39.es/ecma262/#sec-array.prototype.find
|
2091 |
+
find: createMethod(5),
|
2092 |
+
// `Array.prototype.findIndex` method
|
2093 |
+
// https://tc39.es/ecma262/#sec-array.prototype.findIndex
|
2094 |
+
findIndex: createMethod(6),
|
2095 |
+
// `Array.prototype.filterOut` method
|
2096 |
+
// https://github.com/tc39/proposal-array-filtering
|
2097 |
+
filterOut: createMethod(7)
|
2098 |
+
};
|
2099 |
+
|
2100 |
+
|
2101 |
+
/***/ }),
|
2102 |
+
/* 76 */
|
2103 |
+
/***/ (function(module, exports, __webpack_require__) {
|
2104 |
+
|
2105 |
+
"use strict";
|
2106 |
+
|
2107 |
+
var nativePropertyIsEnumerable = {}.propertyIsEnumerable;
|
2108 |
+
var getOwnPropertyDescriptor = Object.getOwnPropertyDescriptor;
|
2109 |
+
|
2110 |
+
// Nashorn ~ JDK8 bug
|
2111 |
+
var NASHORN_BUG = getOwnPropertyDescriptor && !nativePropertyIsEnumerable.call({ 1: 2 }, 1);
|
2112 |
+
|
2113 |
+
// `Object.prototype.propertyIsEnumerable` method implementation
|
2114 |
+
// https://tc39.es/ecma262/#sec-object.prototype.propertyisenumerable
|
2115 |
+
exports.f = NASHORN_BUG ? function propertyIsEnumerable(V) {
|
2116 |
+
var descriptor = getOwnPropertyDescriptor(this, V);
|
2117 |
+
return !!descriptor && descriptor.enumerable;
|
2118 |
+
} : nativePropertyIsEnumerable;
|
2119 |
+
|
2120 |
+
|
2121 |
+
/***/ }),
|
2122 |
+
/* 77 */
|
2123 |
+
/***/ (function(module, exports, __webpack_require__) {
|
2124 |
+
|
2125 |
+
var classof = __webpack_require__(30);
|
2126 |
+
var global = __webpack_require__(3);
|
2127 |
+
|
2128 |
+
module.exports = classof(global.process) == 'process';
|
2129 |
+
|
2130 |
+
|
2131 |
+
/***/ }),
|
2132 |
+
/* 78 */
|
2133 |
+
/***/ (function(module, exports) {
|
2134 |
+
|
2135 |
+
(function() { module.exports = window["wp"]["url"]; }());
|
2136 |
+
|
2137 |
+
/***/ }),
|
2138 |
+
/* 79 */
|
2139 |
+
/***/ (function(module, exports) {
|
2140 |
+
|
2141 |
+
exports.f = Object.getOwnPropertySymbols;
|
2142 |
+
|
2143 |
+
|
2144 |
+
/***/ }),
|
2145 |
+
/* 80 */
|
2146 |
+
/***/ (function(module, exports) {
|
2147 |
+
|
2148 |
+
function _extends() {
|
2149 |
+
module.exports = _extends = Object.assign || function (target) {
|
2150 |
+
for (var i = 1; i < arguments.length; i++) {
|
2151 |
+
var source = arguments[i];
|
2152 |
+
|
2153 |
+
for (var key in source) {
|
2154 |
+
if (Object.prototype.hasOwnProperty.call(source, key)) {
|
2155 |
+
target[key] = source[key];
|
2156 |
+
}
|
2157 |
+
}
|
2158 |
+
}
|
2159 |
+
|
2160 |
+
return target;
|
2161 |
+
};
|
2162 |
+
|
2163 |
+
return _extends.apply(this, arguments);
|
2164 |
+
}
|
2165 |
+
|
2166 |
+
module.exports = _extends;
|
2167 |
+
|
2168 |
+
/***/ }),
|
2169 |
+
/* 81 */
|
2170 |
+
/***/ (function(module, exports, __webpack_require__) {
|
2171 |
+
|
2172 |
+
var global = __webpack_require__(3);
|
2173 |
+
|
2174 |
+
module.exports = global;
|
2175 |
+
|
2176 |
+
|
2177 |
+
/***/ }),
|
2178 |
+
/* 82 */
|
2179 |
+
/***/ (function(module, exports, __webpack_require__) {
|
2180 |
+
|
2181 |
+
var wellKnownSymbol = __webpack_require__(8);
|
2182 |
+
|
2183 |
+
var TO_STRING_TAG = wellKnownSymbol('toStringTag');
|
2184 |
+
var test = {};
|
2185 |
+
|
2186 |
+
test[TO_STRING_TAG] = 'z';
|
2187 |
+
|
2188 |
+
module.exports = String(test) === '[object z]';
|
2189 |
+
|
2190 |
+
|
2191 |
+
/***/ }),
|
2192 |
+
/* 83 */
|
2193 |
+
/***/ (function(module, exports, __webpack_require__) {
|
2194 |
+
|
2195 |
+
var toIndexedObject = __webpack_require__(21);
|
2196 |
+
var toLength = __webpack_require__(34);
|
2197 |
+
var toAbsoluteIndex = __webpack_require__(97);
|
2198 |
+
|
2199 |
+
// `Array.prototype.{ indexOf, includes }` methods implementation
|
2200 |
+
var createMethod = function (IS_INCLUDES) {
|
2201 |
+
return function ($this, el, fromIndex) {
|
2202 |
+
var O = toIndexedObject($this);
|
2203 |
+
var length = toLength(O.length);
|
2204 |
+
var index = toAbsoluteIndex(fromIndex, length);
|
2205 |
+
var value;
|
2206 |
+
// Array#includes uses SameValueZero equality algorithm
|
2207 |
+
// eslint-disable-next-line no-self-compare -- NaN check
|
2208 |
+
if (IS_INCLUDES && el != el) while (length > index) {
|
2209 |
+
value = O[index++];
|
2210 |
+
// eslint-disable-next-line no-self-compare -- NaN check
|
2211 |
+
if (value != value) return true;
|
2212 |
+
// Array#indexOf ignores holes, Array#includes - not
|
2213 |
+
} else for (;length > index; index++) {
|
2214 |
+
if ((IS_INCLUDES || index in O) && O[index] === el) return IS_INCLUDES || index || 0;
|
2215 |
+
} return !IS_INCLUDES && -1;
|
2216 |
+
};
|
2217 |
+
};
|
2218 |
+
|
2219 |
+
module.exports = {
|
2220 |
+
// `Array.prototype.includes` method
|
2221 |
+
// https://tc39.es/ecma262/#sec-array.prototype.includes
|
2222 |
+
includes: createMethod(true),
|
2223 |
+
// `Array.prototype.indexOf` method
|
2224 |
+
// https://tc39.es/ecma262/#sec-array.prototype.indexof
|
2225 |
+
indexOf: createMethod(false)
|
2226 |
+
};
|
2227 |
+
|
2228 |
+
|
2229 |
+
/***/ }),
|
2230 |
+
/* 84 */
|
2231 |
+
/***/ (function(module, exports, __webpack_require__) {
|
2232 |
+
|
2233 |
+
var classof = __webpack_require__(30);
|
2234 |
+
|
2235 |
+
// `IsArray` abstract operation
|
2236 |
+
// https://tc39.es/ecma262/#sec-isarray
|
2237 |
+
module.exports = Array.isArray || function isArray(arg) {
|
2238 |
+
return classof(arg) == 'Array';
|
2239 |
+
};
|
2240 |
+
|
2241 |
+
|
2242 |
+
/***/ }),
|
2243 |
+
/* 85 */
|
2244 |
+
/***/ (function(module, __webpack_exports__, __webpack_require__) {
|
2245 |
+
|
2246 |
+
"use strict";
|
2247 |
+
/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "a", function() { return ADMIN_URL; });
|
2248 |
+
/* unused harmony export COUNTRIES */
|
2249 |
+
/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "b", function() { return CURRENCY; });
|
2250 |
+
/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "c", function() { return LOCALE; });
|
2251 |
+
/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "d", function() { return ORDER_STATUSES; });
|
2252 |
+
/* unused harmony export SITE_TITLE */
|
2253 |
+
/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "e", function() { return WC_ASSET_URL; });
|
2254 |
+
/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "g", function() { return getSetting; });
|
2255 |
+
/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "h", function() { return setSetting; });
|
2256 |
+
/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "f", function() { return getAdminLink; });
|
2257 |
+
/* harmony import */ var _babel_runtime_helpers_typeof__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(108);
|
2258 |
+
/* harmony import */ var _babel_runtime_helpers_typeof__WEBPACK_IMPORTED_MODULE_0___default = /*#__PURE__*/__webpack_require__.n(_babel_runtime_helpers_typeof__WEBPACK_IMPORTED_MODULE_0__);
|
2259 |
+
/* harmony import */ var core_js_modules_es_object_keys_js__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(37);
|
2260 |
+
/* harmony import */ var core_js_modules_es_object_keys_js__WEBPACK_IMPORTED_MODULE_1___default = /*#__PURE__*/__webpack_require__.n(core_js_modules_es_object_keys_js__WEBPACK_IMPORTED_MODULE_1__);
|
2261 |
+
/* harmony import */ var core_js_modules_es_array_includes_js__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(107);
|
2262 |
+
/* harmony import */ var core_js_modules_es_array_includes_js__WEBPACK_IMPORTED_MODULE_2___default = /*#__PURE__*/__webpack_require__.n(core_js_modules_es_array_includes_js__WEBPACK_IMPORTED_MODULE_2__);
|
2263 |
+
/* harmony import */ var _wordpress_i18n__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(2);
|
2264 |
+
/* harmony import */ var _wordpress_i18n__WEBPACK_IMPORTED_MODULE_3___default = /*#__PURE__*/__webpack_require__.n(_wordpress_i18n__WEBPACK_IMPORTED_MODULE_3__);
|
2265 |
+
|
2266 |
+
|
2267 |
+
|
2268 |
+
|
2269 |
+
/**
|
2270 |
+
* External dependencies
|
2271 |
+
*/
|
2272 |
+
// Remove mutable data from settings object to prevent access. Data stores should be used instead.
|
2273 |
+
|
2274 |
+
var mutableSources = ['wcAdminSettings', 'preloadSettings'];
|
2275 |
+
var settings = (typeof wcSettings === "undefined" ? "undefined" : _babel_runtime_helpers_typeof__WEBPACK_IMPORTED_MODULE_0___default()(wcSettings)) === 'object' ? wcSettings : {};
|
2276 |
+
var SOURCE = Object.keys(settings).reduce(function (source, key) {
|
2277 |
+
if (!mutableSources.includes(key)) {
|
2278 |
+
source[key] = settings[key];
|
2279 |
+
}
|
2280 |
+
|
2281 |
+
return source;
|
2282 |
+
}, {});
|
2283 |
+
var ADMIN_URL = SOURCE.adminUrl;
|
2284 |
+
var COUNTRIES = SOURCE.countries;
|
2285 |
+
var CURRENCY = SOURCE.currency;
|
2286 |
+
var LOCALE = SOURCE.locale;
|
2287 |
+
var ORDER_STATUSES = SOURCE.orderStatuses;
|
2288 |
+
var SITE_TITLE = SOURCE.siteTitle;
|
2289 |
+
var WC_ASSET_URL = SOURCE.wcAssetUrl;
|
2290 |
+
/**
|
2291 |
+
* Retrieves a setting value from the setting state.
|
2292 |
+
*
|
2293 |
+
* @param {string} name The identifier for the setting.
|
2294 |
+
* @param {*} [fallback=false] The value to use as a fallback
|
2295 |
+
* if the setting is not in the
|
2296 |
+
* state.
|
2297 |
+
* @param {Function} [filter=( val ) => val] A callback for filtering the
|
2298 |
+
* value before it's returned.
|
2299 |
+
* Receives both the found value
|
2300 |
+
* (if it exists for the key) and
|
2301 |
+
* the provided fallback arg.
|
2302 |
+
*
|
2303 |
+
* @return {*} The value present in the settings state for the given
|
2304 |
+
* name.
|
2305 |
+
*/
|
2306 |
+
|
2307 |
+
function getSetting(name) {
|
2308 |
+
var fallback = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : false;
|
2309 |
+
var filter = arguments.length > 2 && arguments[2] !== undefined ? arguments[2] : function (val) {
|
2310 |
+
return val;
|
2311 |
+
};
|
2312 |
+
|
2313 |
+
if (mutableSources.includes(name)) {
|
2314 |
+
throw new Error(Object(_wordpress_i18n__WEBPACK_IMPORTED_MODULE_3__["__"])('Mutable settings should be accessed via data store.'));
|
2315 |
+
}
|
2316 |
+
|
2317 |
+
var value = SOURCE.hasOwnProperty(name) ? SOURCE[name] : fallback;
|
2318 |
+
return filter(value, fallback);
|
2319 |
+
}
|
2320 |
+
/**
|
2321 |
+
* Sets a value to a property on the settings state.
|
2322 |
+
*
|
2323 |
+
* NOTE: This feature is to be removed in favour of data stores when a full migration
|
2324 |
+
* is complete.
|
2325 |
+
*
|
2326 |
+
* @deprecated
|
2327 |
+
*
|
2328 |
+
* @param {string} name The setting property key for the
|
2329 |
+
* setting being mutated.
|
2330 |
+
* @param {*} value The value to set.
|
2331 |
+
* @param {Function} [filter=( val ) => val] Allows for providing a callback
|
2332 |
+
* to sanitize the setting (eg.
|
2333 |
+
* ensure it's a number)
|
2334 |
+
*/
|
2335 |
+
|
2336 |
+
function setSetting(name, value) {
|
2337 |
+
var filter = arguments.length > 2 && arguments[2] !== undefined ? arguments[2] : function (val) {
|
2338 |
+
return val;
|
2339 |
+
};
|
2340 |
+
|
2341 |
+
if (mutableSources.includes(name)) {
|
2342 |
+
throw new Error(Object(_wordpress_i18n__WEBPACK_IMPORTED_MODULE_3__["__"])('Mutable settings should be mutated via data store.'));
|
2343 |
+
}
|
2344 |
+
|
2345 |
+
SOURCE[name] = filter(value);
|
2346 |
+
}
|
2347 |
+
/**
|
2348 |
+
* Returns a string with the site's wp-admin URL appended. JS version of `admin_url`.
|
2349 |
+
*
|
2350 |
+
* @param {string} path Relative path.
|
2351 |
+
* @return {string} Full admin URL.
|
2352 |
+
*/
|
2353 |
+
|
2354 |
+
function getAdminLink(path) {
|
2355 |
+
return (ADMIN_URL || '') + path;
|
2356 |
+
}
|
2357 |
+
|
2358 |
+
/***/ }),
|
2359 |
+
/* 86 */
|
2360 |
+
/***/ (function(module, exports, __webpack_require__) {
|
2361 |
+
|
2362 |
+
var getBuiltIn = __webpack_require__(31);
|
2363 |
+
var getOwnPropertyNamesModule = __webpack_require__(56);
|
2364 |
+
var getOwnPropertySymbolsModule = __webpack_require__(79);
|
2365 |
+
var anObject = __webpack_require__(9);
|
2366 |
+
|
2367 |
+
// all object keys, includes non-enumerable and symbols
|
2368 |
+
module.exports = getBuiltIn('Reflect', 'ownKeys') || function ownKeys(it) {
|
2369 |
+
var keys = getOwnPropertyNamesModule.f(anObject(it));
|
2370 |
+
var getOwnPropertySymbols = getOwnPropertySymbolsModule.f;
|
2371 |
+
return getOwnPropertySymbols ? keys.concat(getOwnPropertySymbols(it)) : keys;
|
2372 |
+
};
|
2373 |
+
|
2374 |
+
|
2375 |
+
/***/ }),
|
2376 |
+
/* 87 */
|
2377 |
+
/***/ (function(module, exports, __webpack_require__) {
|
2378 |
+
|
2379 |
+
var getBuiltIn = __webpack_require__(31);
|
2380 |
+
|
2381 |
+
module.exports = getBuiltIn('navigator', 'userAgent') || '';
|
2382 |
+
|
2383 |
+
|
2384 |
+
/***/ }),
|
2385 |
+
/* 88 */
|
2386 |
+
/***/ (function(module, exports, __webpack_require__) {
|
2387 |
+
|
2388 |
+
"use strict";
|
2389 |
+
|
2390 |
+
var $ = __webpack_require__(12);
|
2391 |
+
var exec = __webpack_require__(91);
|
2392 |
+
|
2393 |
+
// `RegExp.prototype.exec` method
|
2394 |
+
// https://tc39.es/ecma262/#sec-regexp.prototype.exec
|
2395 |
+
$({ target: 'RegExp', proto: true, forced: /./.exec !== exec }, {
|
2396 |
+
exec: exec
|
2397 |
+
});
|
2398 |
+
|
2399 |
+
|
2400 |
+
/***/ }),
|
2401 |
+
/* 89 */
|
2402 |
+
/***/ (function(module, exports, __webpack_require__) {
|
2403 |
+
|
2404 |
+
var fails = __webpack_require__(6);
|
2405 |
+
var wellKnownSymbol = __webpack_require__(8);
|
2406 |
+
var V8_VERSION = __webpack_require__(63);
|
2407 |
+
|
2408 |
+
var SPECIES = wellKnownSymbol('species');
|
2409 |
+
|
2410 |
+
module.exports = function (METHOD_NAME) {
|
2411 |
+
// We can't use this feature detection in V8 since it causes
|
2412 |
+
// deoptimization and serious performance degradation
|
2413 |
+
// https://github.com/zloirock/core-js/issues/677
|
2414 |
+
return V8_VERSION >= 51 || !fails(function () {
|
2415 |
+
var array = [];
|
2416 |
+
var constructor = array.constructor = {};
|
2417 |
+
constructor[SPECIES] = function () {
|
2418 |
+
return { foo: 1 };
|
2419 |
+
};
|
2420 |
+
return array[METHOD_NAME](Boolean).foo !== 1;
|
2421 |
+
});
|
2422 |
+
};
|
2423 |
+
|
2424 |
+
|
2425 |
+
/***/ }),
|
2426 |
+
/* 90 */
|
2427 |
+
/***/ (function(module, exports, __webpack_require__) {
|
2428 |
+
|
2429 |
+
var defineProperty = __webpack_require__(17).f;
|
2430 |
+
var has = __webpack_require__(11);
|
2431 |
+
var wellKnownSymbol = __webpack_require__(8);
|
2432 |
+
|
2433 |
+
var TO_STRING_TAG = wellKnownSymbol('toStringTag');
|
2434 |
+
|
2435 |
+
module.exports = function (it, TAG, STATIC) {
|
2436 |
+
if (it && !has(it = STATIC ? it : it.prototype, TO_STRING_TAG)) {
|
2437 |
+
defineProperty(it, TO_STRING_TAG, { configurable: true, value: TAG });
|
2438 |
+
}
|
2439 |
+
};
|
2440 |
+
|
2441 |
+
|
2442 |
+
/***/ }),
|
2443 |
+
/* 91 */
|
2444 |
+
/***/ (function(module, exports, __webpack_require__) {
|
2445 |
+
|
2446 |
+
"use strict";
|
2447 |
+
|
2448 |
+
var regexpFlags = __webpack_require__(114);
|
2449 |
+
var stickyHelpers = __webpack_require__(137);
|
2450 |
+
|
2451 |
+
var nativeExec = RegExp.prototype.exec;
|
2452 |
+
// This always refers to the native implementation, because the
|
2453 |
+
// String#replace polyfill uses ./fix-regexp-well-known-symbol-logic.js,
|
2454 |
+
// which loads this file before patching the method.
|
2455 |
+
var nativeReplace = String.prototype.replace;
|
2456 |
+
|
2457 |
+
var patchedExec = nativeExec;
|
2458 |
+
|
2459 |
+
var UPDATES_LAST_INDEX_WRONG = (function () {
|
2460 |
+
var re1 = /a/;
|
2461 |
+
var re2 = /b*/g;
|
2462 |
+
nativeExec.call(re1, 'a');
|
2463 |
+
nativeExec.call(re2, 'a');
|
2464 |
+
return re1.lastIndex !== 0 || re2.lastIndex !== 0;
|
2465 |
+
})();
|
2466 |
+
|
2467 |
+
var UNSUPPORTED_Y = stickyHelpers.UNSUPPORTED_Y || stickyHelpers.BROKEN_CARET;
|
2468 |
+
|
2469 |
+
// nonparticipating capturing group, copied from es5-shim's String#split patch.
|
2470 |
+
// eslint-disable-next-line regexp/no-assertion-capturing-group, regexp/no-empty-group -- required for testing
|
2471 |
+
var NPCG_INCLUDED = /()??/.exec('')[1] !== undefined;
|
2472 |
+
|
2473 |
+
var PATCH = UPDATES_LAST_INDEX_WRONG || NPCG_INCLUDED || UNSUPPORTED_Y;
|
2474 |
+
|
2475 |
+
if (PATCH) {
|
2476 |
+
patchedExec = function exec(str) {
|
2477 |
+
var re = this;
|
2478 |
+
var lastIndex, reCopy, match, i;
|
2479 |
+
var sticky = UNSUPPORTED_Y && re.sticky;
|
2480 |
+
var flags = regexpFlags.call(re);
|
2481 |
+
var source = re.source;
|
2482 |
+
var charsAdded = 0;
|
2483 |
+
var strCopy = str;
|
2484 |
+
|
2485 |
+
if (sticky) {
|
2486 |
+
flags = flags.replace('y', '');
|
2487 |
+
if (flags.indexOf('g') === -1) {
|
2488 |
+
flags += 'g';
|
2489 |
+
}
|
2490 |
+
|
2491 |
+
strCopy = String(str).slice(re.lastIndex);
|
2492 |
+
// Support anchored sticky behavior.
|
2493 |
+
if (re.lastIndex > 0 && (!re.multiline || re.multiline && str[re.lastIndex - 1] !== '\n')) {
|
2494 |
+
source = '(?: ' + source + ')';
|
2495 |
+
strCopy = ' ' + strCopy;
|
2496 |
+
charsAdded++;
|
2497 |
+
}
|
2498 |
+
// ^(? + rx + ) is needed, in combination with some str slicing, to
|
2499 |
+
// simulate the 'y' flag.
|
2500 |
+
reCopy = new RegExp('^(?:' + source + ')', flags);
|
2501 |
+
}
|
2502 |
+
|
2503 |
+
if (NPCG_INCLUDED) {
|
2504 |
+
reCopy = new RegExp('^' + source + '$(?!\\s)', flags);
|
2505 |
+
}
|
2506 |
+
if (UPDATES_LAST_INDEX_WRONG) lastIndex = re.lastIndex;
|
2507 |
+
|
2508 |
+
match = nativeExec.call(sticky ? reCopy : re, strCopy);
|
2509 |
+
|
2510 |
+
if (sticky) {
|
2511 |
+
if (match) {
|
2512 |
+
match.input = match.input.slice(charsAdded);
|
2513 |
+
match[0] = match[0].slice(charsAdded);
|
2514 |
+
match.index = re.lastIndex;
|
2515 |
+
re.lastIndex += match[0].length;
|
2516 |
+
} else re.lastIndex = 0;
|
2517 |
+
} else if (UPDATES_LAST_INDEX_WRONG && match) {
|
2518 |
+
re.lastIndex = re.global ? match.index + match[0].length : lastIndex;
|
2519 |
+
}
|
2520 |
+
if (NPCG_INCLUDED && match && match.length > 1) {
|
2521 |
+
// Fix browsers whose `exec` methods don't consistently return `undefined`
|
2522 |
+
// for NPCG, like IE8. NOTE: This doesn' work for /(.?)?/
|
2523 |
+
nativeReplace.call(match[0], reCopy, function () {
|
2524 |
+
for (i = 1; i < arguments.length - 2; i++) {
|
2525 |
+
if (arguments[i] === undefined) match[i] = undefined;
|
2526 |
+
}
|
2527 |
+
});
|
2528 |
+
}
|
2529 |
+
|
2530 |
+
return match;
|
2531 |
+
};
|
2532 |
+
}
|
2533 |
+
|
2534 |
+
module.exports = patchedExec;
|
2535 |
+
|
2536 |
+
|
2537 |
+
/***/ }),
|
2538 |
+
/* 92 */
|
2539 |
+
/***/ (function(module, exports) {
|
2540 |
+
|
2541 |
+
(function() { module.exports = window["wc"]["tracks"]; }());
|
2542 |
+
|
2543 |
+
/***/ }),
|
2544 |
+
/* 93 */
|
2545 |
+
/***/ (function(module, exports, __webpack_require__) {
|
2546 |
+
|
2547 |
+
var NATIVE_SYMBOL = __webpack_require__(62);
|
2548 |
+
|
2549 |
+
module.exports = NATIVE_SYMBOL
|
2550 |
+
/* global Symbol -- safe */
|
2551 |
+
&& !Symbol.sham
|
2552 |
+
&& typeof Symbol.iterator == 'symbol';
|
2553 |
+
|
2554 |
+
|
2555 |
+
/***/ }),
|
2556 |
+
/* 94 */
|
2557 |
+
/***/ (function(module, exports, __webpack_require__) {
|
2558 |
+
|
2559 |
+
var aFunction = __webpack_require__(70);
|
2560 |
+
|
2561 |
+
// optional / simple context binding
|
2562 |
+
module.exports = function (fn, that, length) {
|
2563 |
+
aFunction(fn);
|
2564 |
+
if (that === undefined) return fn;
|
2565 |
+
switch (length) {
|
2566 |
+
case 0: return function () {
|
2567 |
+
return fn.call(that);
|
2568 |
+
};
|
2569 |
+
case 1: return function (a) {
|
2570 |
+
return fn.call(that, a);
|
2571 |
+
};
|
2572 |
+
case 2: return function (a, b) {
|
2573 |
+
return fn.call(that, a, b);
|
2574 |
+
};
|
2575 |
+
case 3: return function (a, b, c) {
|
2576 |
+
return fn.call(that, a, b, c);
|
2577 |
+
};
|
2578 |
+
}
|
2579 |
+
return function (/* ...args */) {
|
2580 |
+
return fn.apply(that, arguments);
|
2581 |
+
};
|
2582 |
+
};
|
2583 |
+
|
2584 |
+
|
2585 |
+
/***/ }),
|
2586 |
+
/* 95 */
|
2587 |
+
/***/ (function(module, exports) {
|
2588 |
+
|
2589 |
+
(function() { module.exports = window["wp"]["apiFetch"]; }());
|
2590 |
+
|
2591 |
+
/***/ }),
|
2592 |
+
/* 96 */
|
2593 |
+
/***/ (function(module, exports) {
|
2594 |
+
|
2595 |
+
var g;
|
2596 |
+
|
2597 |
+
// This works in non-strict mode
|
2598 |
+
g = (function() {
|
2599 |
+
return this;
|
2600 |
+
})();
|
2601 |
+
|
2602 |
+
try {
|
2603 |
+
// This works if eval is allowed (see CSP)
|
2604 |
+
g = g || new Function("return this")();
|
2605 |
+
} catch (e) {
|
2606 |
+
// This works if the window reference is available
|
2607 |
+
if (typeof window === "object") g = window;
|
2608 |
+
}
|
2609 |
+
|
2610 |
+
// g can still be undefined, but nothing to do about it...
|
2611 |
+
// We return undefined, instead of nothing here, so it's
|
2612 |
+
// easier to handle this case. if(!global) { ...}
|
2613 |
+
|
2614 |
+
module.exports = g;
|
2615 |
+
|
2616 |
+
|
2617 |
+
/***/ }),
|
2618 |
+
/* 97 */
|
2619 |
+
/***/ (function(module, exports, __webpack_require__) {
|
2620 |
+
|
2621 |
+
var toInteger = __webpack_require__(42);
|
2622 |
+
|
2623 |
+
var max = Math.max;
|
2624 |
+
var min = Math.min;
|
2625 |
+
|
2626 |
+
// Helper for a popular repeating case of the spec:
|
2627 |
+
// Let integer be ? ToInteger(index).
|
2628 |
+
// If integer < 0, let result be max((length + integer), 0); else let result be min(integer, length).
|
2629 |
+
module.exports = function (index, length) {
|
2630 |
+
var integer = toInteger(index);
|
2631 |
+
return integer < 0 ? max(integer + length, 0) : min(integer, length);
|
2632 |
+
};
|
2633 |
+
|
2634 |
+
|
2635 |
+
/***/ }),
|
2636 |
+
/* 98 */
|
2637 |
+
/***/ (function(module, exports, __webpack_require__) {
|
2638 |
+
|
2639 |
+
var getBuiltIn = __webpack_require__(31);
|
2640 |
+
|
2641 |
+
module.exports = getBuiltIn('document', 'documentElement');
|
2642 |
+
|
2643 |
+
|
2644 |
+
/***/ }),
|
2645 |
+
/* 99 */,
|
2646 |
+
/* 100 */
|
2647 |
+
/***/ (function(module, exports, __webpack_require__) {
|
2648 |
+
|
2649 |
+
var TO_STRING_TAG_SUPPORT = __webpack_require__(82);
|
2650 |
+
var redefine = __webpack_require__(27);
|
2651 |
+
var toString = __webpack_require__(130);
|
2652 |
+
|
2653 |
+
// `Object.prototype.toString` method
|
2654 |
+
// https://tc39.es/ecma262/#sec-object.prototype.tostring
|
2655 |
+
if (!TO_STRING_TAG_SUPPORT) {
|
2656 |
+
redefine(Object.prototype, 'toString', toString, { unsafe: true });
|
2657 |
+
}
|
2658 |
+
|
2659 |
+
|
2660 |
+
/***/ }),
|
2661 |
+
/* 101 */
|
2662 |
+
/***/ (function(module, exports) {
|
2663 |
+
|
2664 |
+
(function() { module.exports = window["wc"]["date"]; }());
|
2665 |
+
|
2666 |
+
/***/ }),
|
2667 |
+
/* 102 */
|
2668 |
+
/***/ (function(module, exports, __webpack_require__) {
|
2669 |
+
|
2670 |
+
"use strict";
|
2671 |
+
|
2672 |
+
var toPrimitive = __webpack_require__(40);
|
2673 |
+
var definePropertyModule = __webpack_require__(17);
|
2674 |
+
var createPropertyDescriptor = __webpack_require__(39);
|
2675 |
+
|
2676 |
+
module.exports = function (object, key, value) {
|
2677 |
+
var propertyKey = toPrimitive(key);
|
2678 |
+
if (propertyKey in object) definePropertyModule.f(object, propertyKey, createPropertyDescriptor(0, value));
|
2679 |
+
else object[propertyKey] = value;
|
2680 |
+
};
|
2681 |
+
|
2682 |
+
|
2683 |
+
/***/ }),
|
2684 |
+
/* 103 */
|
2685 |
+
/***/ (function(module, exports, __webpack_require__) {
|
2686 |
+
|
2687 |
+
var has = __webpack_require__(11);
|
2688 |
+
var ownKeys = __webpack_require__(86);
|
2689 |
+
var getOwnPropertyDescriptorModule = __webpack_require__(33);
|
2690 |
+
var definePropertyModule = __webpack_require__(17);
|
2691 |
+
|
2692 |
+
module.exports = function (target, source) {
|
2693 |
+
var keys = ownKeys(source);
|
2694 |
+
var defineProperty = definePropertyModule.f;
|
2695 |
+
var getOwnPropertyDescriptor = getOwnPropertyDescriptorModule.f;
|
2696 |
+
for (var i = 0; i < keys.length; i++) {
|
2697 |
+
var key = keys[i];
|
2698 |
+
if (!has(target, key)) defineProperty(target, key, getOwnPropertyDescriptor(source, key));
|
2699 |
+
}
|
2700 |
+
};
|
2701 |
+
|
2702 |
+
|
2703 |
+
/***/ }),
|
2704 |
+
/* 104 */
|
2705 |
+
/***/ (function(module, exports, __webpack_require__) {
|
2706 |
+
|
2707 |
+
var DESCRIPTORS = __webpack_require__(13);
|
2708 |
+
var definePropertyModule = __webpack_require__(17);
|
2709 |
+
var anObject = __webpack_require__(9);
|
2710 |
+
var objectKeys = __webpack_require__(54);
|
2711 |
+
|
2712 |
+
// `Object.defineProperties` method
|
2713 |
+
// https://tc39.es/ecma262/#sec-object.defineproperties
|
2714 |
+
module.exports = DESCRIPTORS ? Object.defineProperties : function defineProperties(O, Properties) {
|
2715 |
+
anObject(O);
|
2716 |
+
var keys = objectKeys(Properties);
|
2717 |
+
var length = keys.length;
|
2718 |
+
var index = 0;
|
2719 |
+
var key;
|
2720 |
+
while (length > index) definePropertyModule.f(O, key = keys[index++], Properties[key]);
|
2721 |
+
return O;
|
2722 |
+
};
|
2723 |
+
|
2724 |
+
|
2725 |
+
/***/ }),
|
2726 |
+
/* 105 */
|
2727 |
+
/***/ (function(module, __webpack_exports__, __webpack_require__) {
|
2728 |
+
|
2729 |
+
"use strict";
|
2730 |
+
/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "a", function() { return Navigation; });
|
2731 |
+
/* unused harmony export NavigationBackButton */
|
2732 |
+
/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "b", function() { return NavigationGroup; });
|
2733 |
+
/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "d", function() { return NavigationMenu; });
|
2734 |
+
/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "c", function() { return NavigationItem; });
|
2735 |
+
/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "e", function() { return Text; });
|
2736 |
+
/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "f", function() { return useSlot; });
|
2737 |
+
/* harmony import */ var _wordpress_components__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(4);
|
2738 |
+
/* harmony import */ var _wordpress_components__WEBPACK_IMPORTED_MODULE_0___default = /*#__PURE__*/__webpack_require__.n(_wordpress_components__WEBPACK_IMPORTED_MODULE_0__);
|
2739 |
+
/**
|
2740 |
+
* External dependencies
|
2741 |
+
*/
|
2742 |
+
|
2743 |
+
/**
|
2744 |
+
* Prioritize exports of non-experimental components over experimental.
|
2745 |
+
*/
|
2746 |
+
|
2747 |
+
var Navigation = _wordpress_components__WEBPACK_IMPORTED_MODULE_0__["Navigation"] || _wordpress_components__WEBPACK_IMPORTED_MODULE_0__["__experimentalNavigation"];
|
2748 |
+
var NavigationBackButton = _wordpress_components__WEBPACK_IMPORTED_MODULE_0__["NavigationBackButton"] || _wordpress_components__WEBPACK_IMPORTED_MODULE_0__["__experimentalNavigationBackButton"];
|
2749 |
+
var NavigationGroup = _wordpress_components__WEBPACK_IMPORTED_MODULE_0__["NavigationGroup"] || _wordpress_components__WEBPACK_IMPORTED_MODULE_0__["__experimentalNavigationGroup"];
|
2750 |
+
var NavigationMenu = _wordpress_components__WEBPACK_IMPORTED_MODULE_0__["NavigationMenu"] || _wordpress_components__WEBPACK_IMPORTED_MODULE_0__["__experimentalNavigationMenu"];
|
2751 |
+
var NavigationItem = _wordpress_components__WEBPACK_IMPORTED_MODULE_0__["NavigationItem"] || _wordpress_components__WEBPACK_IMPORTED_MODULE_0__["__experimentalNavigationItem"];
|
2752 |
+
var Text = _wordpress_components__WEBPACK_IMPORTED_MODULE_0__["Text"] || _wordpress_components__WEBPACK_IMPORTED_MODULE_0__["__experimentalText"];
|
2753 |
+
var useSlot = _wordpress_components__WEBPACK_IMPORTED_MODULE_0__["useSlot"] || _wordpress_components__WEBPACK_IMPORTED_MODULE_0__["__experimentalUseSlot"];
|
2754 |
+
|
2755 |
+
/***/ }),
|
2756 |
+
/* 106 */
|
2757 |
+
/***/ (function(module, exports, __webpack_require__) {
|
2758 |
+
|
2759 |
+
var global = __webpack_require__(3);
|
2760 |
+
var inspectSource = __webpack_require__(68);
|
2761 |
+
|
2762 |
+
var WeakMap = global.WeakMap;
|
2763 |
+
|
2764 |
+
module.exports = typeof WeakMap === 'function' && /native code/.test(inspectSource(WeakMap));
|
2765 |
+
|
2766 |
+
|
2767 |
+
/***/ }),
|
2768 |
+
/* 107 */
|
2769 |
+
/***/ (function(module, exports, __webpack_require__) {
|
2770 |
+
|
2771 |
+
"use strict";
|
2772 |
+
|
2773 |
+
var $ = __webpack_require__(12);
|
2774 |
+
var $includes = __webpack_require__(83).includes;
|
2775 |
+
var addToUnscopables = __webpack_require__(118);
|
2776 |
+
|
2777 |
+
// `Array.prototype.includes` method
|
2778 |
+
// https://tc39.es/ecma262/#sec-array.prototype.includes
|
2779 |
+
$({ target: 'Array', proto: true }, {
|
2780 |
+
includes: function includes(el /* , fromIndex = 0 */) {
|
2781 |
+
return $includes(this, el, arguments.length > 1 ? arguments[1] : undefined);
|
2782 |
+
}
|
2783 |
+
});
|
2784 |
+
|
2785 |
+
// https://tc39.es/ecma262/#sec-array.prototype-@@unscopables
|
2786 |
+
addToUnscopables('includes');
|
2787 |
+
|
2788 |
+
|
2789 |
+
/***/ }),
|
2790 |
+
/* 108 */
|
2791 |
+
/***/ (function(module, exports) {
|
2792 |
+
|
2793 |
+
function _typeof(obj) {
|
2794 |
+
"@babel/helpers - typeof";
|
2795 |
+
|
2796 |
+
if (typeof Symbol === "function" && typeof Symbol.iterator === "symbol") {
|
2797 |
+
module.exports = _typeof = function _typeof(obj) {
|
2798 |
+
return typeof obj;
|
2799 |
+
};
|
2800 |
+
} else {
|
2801 |
+
module.exports = _typeof = function _typeof(obj) {
|
2802 |
+
return obj && typeof Symbol === "function" && obj.constructor === Symbol && obj !== Symbol.prototype ? "symbol" : typeof obj;
|
2803 |
+
};
|
2804 |
+
}
|
2805 |
+
|
2806 |
+
return _typeof(obj);
|
2807 |
+
}
|
2808 |
+
|
2809 |
+
module.exports = _typeof;
|
2810 |
+
|
2811 |
+
/***/ }),
|
2812 |
+
/* 109 */
|
2813 |
+
/***/ (function(module, exports, __webpack_require__) {
|
2814 |
+
|
2815 |
+
var isObject = __webpack_require__(10);
|
2816 |
+
var isArray = __webpack_require__(84);
|
2817 |
+
var wellKnownSymbol = __webpack_require__(8);
|
2818 |
+
|
2819 |
+
var SPECIES = wellKnownSymbol('species');
|
2820 |
+
|
2821 |
+
// `ArraySpeciesCreate` abstract operation
|
2822 |
+
// https://tc39.es/ecma262/#sec-arrayspeciescreate
|
2823 |
+
module.exports = function (originalArray, length) {
|
2824 |
+
var C;
|
2825 |
+
if (isArray(originalArray)) {
|
2826 |
+
C = originalArray.constructor;
|
2827 |
+
// cross-realm fallback
|
2828 |
+
if (typeof C == 'function' && (C === Array || isArray(C.prototype))) C = undefined;
|
2829 |
+
else if (isObject(C)) {
|
2830 |
+
C = C[SPECIES];
|
2831 |
+
if (C === null) C = undefined;
|
2832 |
+
}
|
2833 |
+
} return new (C === undefined ? Array : C)(length === 0 ? 0 : length);
|
2834 |
+
};
|
2835 |
+
|
2836 |
+
|
2837 |
+
/***/ }),
|
2838 |
+
/* 110 */
|
2839 |
+
/***/ (function(module, exports) {
|
2840 |
+
|
2841 |
+
module.exports = {};
|
2842 |
+
|
2843 |
+
|
2844 |
+
/***/ }),
|
2845 |
+
/* 111 */
|
2846 |
+
/***/ (function(module, exports, __webpack_require__) {
|
2847 |
+
|
2848 |
+
"use strict";
|
2849 |
+
|
2850 |
+
// TODO: Remove from `core-js@4` since it's moved to entry points
|
2851 |
+
__webpack_require__(88);
|
2852 |
+
var redefine = __webpack_require__(27);
|
2853 |
+
var fails = __webpack_require__(6);
|
2854 |
+
var wellKnownSymbol = __webpack_require__(8);
|
2855 |
+
var regexpExec = __webpack_require__(91);
|
2856 |
+
var createNonEnumerableProperty = __webpack_require__(19);
|
2857 |
+
|
2858 |
+
var SPECIES = wellKnownSymbol('species');
|
2859 |
+
|
2860 |
+
var REPLACE_SUPPORTS_NAMED_GROUPS = !fails(function () {
|
2861 |
+
// #replace needs built-in support for named groups.
|
2862 |
+
// #match works fine because it just return the exec results, even if it has
|
2863 |
+
// a "grops" property.
|
2864 |
+
var re = /./;
|
2865 |
+
re.exec = function () {
|
2866 |
+
var result = [];
|
2867 |
+
result.groups = { a: '7' };
|
2868 |
+
return result;
|
2869 |
+
};
|
2870 |
+
return ''.replace(re, '$<a>') !== '7';
|
2871 |
+
});
|
2872 |
+
|
2873 |
+
// IE <= 11 replaces $0 with the whole match, as if it was $&
|
2874 |
+
// https://stackoverflow.com/questions/6024666/getting-ie-to-replace-a-regex-with-the-literal-string-0
|
2875 |
+
var REPLACE_KEEPS_$0 = (function () {
|
2876 |
+
return 'a'.replace(/./, '$0') === '$0';
|
2877 |
+
})();
|
2878 |
+
|
2879 |
+
var REPLACE = wellKnownSymbol('replace');
|
2880 |
+
// Safari <= 13.0.3(?) substitutes nth capture where n>m with an empty string
|
2881 |
+
var REGEXP_REPLACE_SUBSTITUTES_UNDEFINED_CAPTURE = (function () {
|
2882 |
+
if (/./[REPLACE]) {
|
2883 |
+
return /./[REPLACE]('a', '$0') === '';
|
2884 |
+
}
|
2885 |
+
return false;
|
2886 |
+
})();
|
2887 |
+
|
2888 |
+
// Chrome 51 has a buggy "split" implementation when RegExp#exec !== nativeExec
|
2889 |
+
// Weex JS has frozen built-in prototypes, so use try / catch wrapper
|
2890 |
+
var SPLIT_WORKS_WITH_OVERWRITTEN_EXEC = !fails(function () {
|
2891 |
+
// eslint-disable-next-line regexp/no-empty-group -- required for testing
|
2892 |
+
var re = /(?:)/;
|
2893 |
+
var originalExec = re.exec;
|
2894 |
+
re.exec = function () { return originalExec.apply(this, arguments); };
|
2895 |
+
var result = 'ab'.split(re);
|
2896 |
+
return result.length !== 2 || result[0] !== 'a' || result[1] !== 'b';
|
2897 |
+
});
|
2898 |
+
|
2899 |
+
module.exports = function (KEY, length, exec, sham) {
|
2900 |
+
var SYMBOL = wellKnownSymbol(KEY);
|
2901 |
+
|
2902 |
+
var DELEGATES_TO_SYMBOL = !fails(function () {
|
2903 |
+
// String methods call symbol-named RegEp methods
|
2904 |
+
var O = {};
|
2905 |
+
O[SYMBOL] = function () { return 7; };
|
2906 |
+
return ''[KEY](O) != 7;
|
2907 |
+
});
|
2908 |
+
|
2909 |
+
var DELEGATES_TO_EXEC = DELEGATES_TO_SYMBOL && !fails(function () {
|
2910 |
+
// Symbol-named RegExp methods call .exec
|
2911 |
+
var execCalled = false;
|
2912 |
+
var re = /a/;
|
2913 |
+
|
2914 |
+
if (KEY === 'split') {
|
2915 |
+
// We can't use real regex here since it causes deoptimization
|
2916 |
+
// and serious performance degradation in V8
|
2917 |
+
// https://github.com/zloirock/core-js/issues/306
|
2918 |
+
re = {};
|
2919 |
+
// RegExp[@@split] doesn't call the regex's exec method, but first creates
|
2920 |
+
// a new one. We need to return the patched regex when creating the new one.
|
2921 |
+
re.constructor = {};
|
2922 |
+
re.constructor[SPECIES] = function () { return re; };
|
2923 |
+
re.flags = '';
|
2924 |
+
re[SYMBOL] = /./[SYMBOL];
|
2925 |
+
}
|
2926 |
+
|
2927 |
+
re.exec = function () { execCalled = true; return null; };
|
2928 |
+
|
2929 |
+
re[SYMBOL]('');
|
2930 |
+
return !execCalled;
|
2931 |
+
});
|
2932 |
+
|
2933 |
+
if (
|
2934 |
+
!DELEGATES_TO_SYMBOL ||
|
2935 |
+
!DELEGATES_TO_EXEC ||
|
2936 |
+
(KEY === 'replace' && !(
|
2937 |
+
REPLACE_SUPPORTS_NAMED_GROUPS &&
|
2938 |
+
REPLACE_KEEPS_$0 &&
|
2939 |
+
!REGEXP_REPLACE_SUBSTITUTES_UNDEFINED_CAPTURE
|
2940 |
+
)) ||
|
2941 |
+
(KEY === 'split' && !SPLIT_WORKS_WITH_OVERWRITTEN_EXEC)
|
2942 |
+
) {
|
2943 |
+
var nativeRegExpMethod = /./[SYMBOL];
|
2944 |
+
var methods = exec(SYMBOL, ''[KEY], function (nativeMethod, regexp, str, arg2, forceStringMethod) {
|
2945 |
+
if (regexp.exec === regexpExec) {
|
2946 |
+
if (DELEGATES_TO_SYMBOL && !forceStringMethod) {
|
2947 |
+
// The native String method already delegates to @@method (this
|
2948 |
+
// polyfilled function), leasing to infinite recursion.
|
2949 |
+
// We avoid it by directly calling the native @@method method.
|
2950 |
+
return { done: true, value: nativeRegExpMethod.call(regexp, str, arg2) };
|
2951 |
+
}
|
2952 |
+
return { done: true, value: nativeMethod.call(str, regexp, arg2) };
|
2953 |
+
}
|
2954 |
+
return { done: false };
|
2955 |
+
}, {
|
2956 |
+
REPLACE_KEEPS_$0: REPLACE_KEEPS_$0,
|
2957 |
+
REGEXP_REPLACE_SUBSTITUTES_UNDEFINED_CAPTURE: REGEXP_REPLACE_SUBSTITUTES_UNDEFINED_CAPTURE
|
2958 |
+
});
|
2959 |
+
var stringMethod = methods[0];
|
2960 |
+
var regexMethod = methods[1];
|
2961 |
+
|
2962 |
+
redefine(String.prototype, KEY, stringMethod);
|
2963 |
+
redefine(RegExp.prototype, SYMBOL, length == 2
|
2964 |
+
// 21.2.5.8 RegExp.prototype[@@replace](string, replaceValue)
|
2965 |
+
// 21.2.5.11 RegExp.prototype[@@split](string, limit)
|
2966 |
+
? function (string, arg) { return regexMethod.call(string, this, arg); }
|
2967 |
+
// 21.2.5.6 RegExp.prototype[@@match](string)
|
2968 |
+
// 21.2.5.9 RegExp.prototype[@@search](string)
|
2969 |
+
: function (string) { return regexMethod.call(string, this); }
|
2970 |
+
);
|
2971 |
+
}
|
2972 |
+
|
2973 |
+
if (sham) createNonEnumerableProperty(RegExp.prototype[SYMBOL], 'sham', true);
|
2974 |
+
};
|
2975 |
+
|
2976 |
+
|
2977 |
+
/***/ }),
|
2978 |
+
/* 112 */
|
2979 |
+
/***/ (function(module, exports, __webpack_require__) {
|
2980 |
+
|
2981 |
+
var classof = __webpack_require__(30);
|
2982 |
+
var regexpExec = __webpack_require__(91);
|
2983 |
+
|
2984 |
+
// `RegExpExec` abstract operation
|
2985 |
+
// https://tc39.es/ecma262/#sec-regexpexec
|
2986 |
+
module.exports = function (R, S) {
|
2987 |
+
var exec = R.exec;
|
2988 |
+
if (typeof exec === 'function') {
|
2989 |
+
var result = exec.call(R, S);
|
2990 |
+
if (typeof result !== 'object') {
|
2991 |
+
throw TypeError('RegExp exec method returned something other than an Object or null');
|
2992 |
+
}
|
2993 |
+
return result;
|
2994 |
+
}
|
2995 |
+
|
2996 |
+
if (classof(R) !== 'RegExp') {
|
2997 |
+
throw TypeError('RegExp#exec called on incompatible receiver');
|
2998 |
+
}
|
2999 |
+
|
3000 |
+
return regexpExec.call(R, S);
|
3001 |
+
};
|
3002 |
+
|
3003 |
+
|
3004 |
+
|
3005 |
+
/***/ }),
|
3006 |
+
/* 113 */
|
3007 |
+
/***/ (function(module, exports, __webpack_require__) {
|
3008 |
+
|
3009 |
+
var TO_STRING_TAG_SUPPORT = __webpack_require__(82);
|
3010 |
+
var classofRaw = __webpack_require__(30);
|
3011 |
+
var wellKnownSymbol = __webpack_require__(8);
|
3012 |
+
|
3013 |
+
var TO_STRING_TAG = wellKnownSymbol('toStringTag');
|
3014 |
+
// ES3 wrong here
|
3015 |
+
var CORRECT_ARGUMENTS = classofRaw(function () { return arguments; }()) == 'Arguments';
|
3016 |
+
|
3017 |
+
// fallback for IE11 Script Access Denied error
|
3018 |
+
var tryGet = function (it, key) {
|
3019 |
+
try {
|
3020 |
+
return it[key];
|
3021 |
+
} catch (error) { /* empty */ }
|
3022 |
+
};
|
3023 |
+
|
3024 |
+
// getting tag from ES6+ `Object.prototype.toString`
|
3025 |
+
module.exports = TO_STRING_TAG_SUPPORT ? classofRaw : function (it) {
|
3026 |
+
var O, tag, result;
|
3027 |
+
return it === undefined ? 'Undefined' : it === null ? 'Null'
|
3028 |
+
// @@toStringTag case
|
3029 |
+
: typeof (tag = tryGet(O = Object(it), TO_STRING_TAG)) == 'string' ? tag
|
3030 |
+
// builtinTag case
|
3031 |
+
: CORRECT_ARGUMENTS ? classofRaw(O)
|
3032 |
+
// ES3 arguments fallback
|
3033 |
+
: (result = classofRaw(O)) == 'Object' && typeof O.callee == 'function' ? 'Arguments' : result;
|
3034 |
+
};
|
3035 |
+
|
3036 |
+
|
3037 |
+
/***/ }),
|
3038 |
+
/* 114 */
|
3039 |
+
/***/ (function(module, exports, __webpack_require__) {
|
3040 |
+
|
3041 |
+
"use strict";
|
3042 |
+
|
3043 |
+
var anObject = __webpack_require__(9);
|
3044 |
+
|
3045 |
+
// `RegExp.prototype.flags` getter implementation
|
3046 |
+
// https://tc39.es/ecma262/#sec-get-regexp.prototype.flags
|
3047 |
+
module.exports = function () {
|
3048 |
+
var that = anObject(this);
|
3049 |
+
var result = '';
|
3050 |
+
if (that.global) result += 'g';
|
3051 |
+
if (that.ignoreCase) result += 'i';
|
3052 |
+
if (that.multiline) result += 'm';
|
3053 |
+
if (that.dotAll) result += 's';
|
3054 |
+
if (that.unicode) result += 'u';
|
3055 |
+
if (that.sticky) result += 'y';
|
3056 |
+
return result;
|
3057 |
+
};
|
3058 |
+
|
3059 |
+
|
3060 |
+
/***/ }),
|
3061 |
+
/* 115 */,
|
3062 |
+
/* 116 */
|
3063 |
+
/***/ (function(module, exports, __webpack_require__) {
|
3064 |
+
|
3065 |
+
var objectWithoutPropertiesLoose = __webpack_require__(233);
|
3066 |
+
|
3067 |
+
function _objectWithoutProperties(source, excluded) {
|
3068 |
+
if (source == null) return {};
|
3069 |
+
var target = objectWithoutPropertiesLoose(source, excluded);
|
3070 |
+
var key, i;
|
3071 |
+
|
3072 |
+
if (Object.getOwnPropertySymbols) {
|
3073 |
+
var sourceSymbolKeys = Object.getOwnPropertySymbols(source);
|
3074 |
+
|
3075 |
+
for (i = 0; i < sourceSymbolKeys.length; i++) {
|
3076 |
+
key = sourceSymbolKeys[i];
|
3077 |
+
if (excluded.indexOf(key) >= 0) continue;
|
3078 |
+
if (!Object.prototype.propertyIsEnumerable.call(source, key)) continue;
|
3079 |
+
target[key] = source[key];
|
3080 |
+
}
|
3081 |
+
}
|
3082 |
+
|
3083 |
+
return target;
|
3084 |
+
}
|
3085 |
+
|
3086 |
+
module.exports = _objectWithoutProperties;
|
3087 |
+
|
3088 |
+
/***/ }),
|
3089 |
+
/* 117 */
|
3090 |
+
/***/ (function(module, __webpack_exports__, __webpack_require__) {
|
3091 |
+
|
3092 |
+
"use strict";
|
3093 |
+
/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "a", function() { return _extends; });
|
3094 |
+
function _extends() {
|
3095 |
+
_extends = Object.assign || function (target) {
|
3096 |
+
for (var i = 1; i < arguments.length; i++) {
|
3097 |
+
var source = arguments[i];
|
3098 |
+
|
3099 |
+
for (var key in source) {
|
3100 |
+
if (Object.prototype.hasOwnProperty.call(source, key)) {
|
3101 |
+
target[key] = source[key];
|
3102 |
+
}
|
3103 |
+
}
|
3104 |
+
}
|
3105 |
+
|
3106 |
+
return target;
|
3107 |
+
};
|
3108 |
+
|
3109 |
+
return _extends.apply(this, arguments);
|
3110 |
+
}
|
3111 |
+
|
3112 |
+
/***/ }),
|
3113 |
+
/* 118 */
|
3114 |
+
/***/ (function(module, exports, __webpack_require__) {
|
3115 |
+
|
3116 |
+
var wellKnownSymbol = __webpack_require__(8);
|
3117 |
+
var create = __webpack_require__(69);
|
3118 |
+
var definePropertyModule = __webpack_require__(17);
|
3119 |
+
|
3120 |
+
var UNSCOPABLES = wellKnownSymbol('unscopables');
|
3121 |
+
var ArrayPrototype = Array.prototype;
|
3122 |
+
|
3123 |
+
// Array.prototype[@@unscopables]
|
3124 |
+
// https://tc39.es/ecma262/#sec-array.prototype-@@unscopables
|
3125 |
+
if (ArrayPrototype[UNSCOPABLES] == undefined) {
|
3126 |
+
definePropertyModule.f(ArrayPrototype, UNSCOPABLES, {
|
3127 |
+
configurable: true,
|
3128 |
+
value: create(null)
|
3129 |
+
});
|
3130 |
+
}
|
3131 |
+
|
3132 |
+
// add a key to Array.prototype[@@unscopables]
|
3133 |
+
module.exports = function (key) {
|
3134 |
+
ArrayPrototype[UNSCOPABLES][key] = true;
|
3135 |
+
};
|
3136 |
+
|
3137 |
+
|
3138 |
+
/***/ }),
|
3139 |
+
/* 119 */
|
3140 |
+
/***/ (function(module, exports, __webpack_require__) {
|
3141 |
+
|
3142 |
+
var wellKnownSymbol = __webpack_require__(8);
|
3143 |
+
|
3144 |
+
exports.f = wellKnownSymbol;
|
3145 |
+
|
3146 |
+
|
3147 |
+
/***/ }),
|
3148 |
+
/* 120 */,
|
3149 |
+
/* 121 */
|
3150 |
+
/***/ (function(module, exports, __webpack_require__) {
|
3151 |
+
|
3152 |
+
"use strict";
|
3153 |
+
|
3154 |
+
var fails = __webpack_require__(6);
|
3155 |
+
|
3156 |
+
module.exports = function (METHOD_NAME, argument) {
|
3157 |
+
var method = [][METHOD_NAME];
|
3158 |
+
return !!method && fails(function () {
|
3159 |
+
// eslint-disable-next-line no-useless-call,no-throw-literal -- required for testing
|
3160 |
+
method.call(null, argument || function () { throw 1; }, 1);
|
3161 |
+
});
|
3162 |
+
};
|
3163 |
+
|
3164 |
+
|
3165 |
+
/***/ }),
|
3166 |
+
/* 122 */
|
3167 |
+
/***/ (function(module, exports, __webpack_require__) {
|
3168 |
+
|
3169 |
+
"use strict";
|
3170 |
+
|
3171 |
+
var charAt = __webpack_require__(125).charAt;
|
3172 |
+
|
3173 |
+
// `AdvanceStringIndex` abstract operation
|
3174 |
+
// https://tc39.es/ecma262/#sec-advancestringindex
|
3175 |
+
module.exports = function (S, index, unicode) {
|
3176 |
+
return index + (unicode ? charAt(S, index).length : 1);
|
3177 |
+
};
|
3178 |
+
|
3179 |
+
|
3180 |
+
/***/ }),
|
3181 |
+
/* 123 */
|
3182 |
+
/***/ (function(module, exports, __webpack_require__) {
|
3183 |
+
|
3184 |
+
"use strict";
|
3185 |
+
|
3186 |
+
var toIndexedObject = __webpack_require__(21);
|
3187 |
+
var addToUnscopables = __webpack_require__(118);
|
3188 |
+
var Iterators = __webpack_require__(110);
|
3189 |
+
var InternalStateModule = __webpack_require__(45);
|
3190 |
+
var defineIterator = __webpack_require__(166);
|
3191 |
+
|
3192 |
+
var ARRAY_ITERATOR = 'Array Iterator';
|
3193 |
+
var setInternalState = InternalStateModule.set;
|
3194 |
+
var getInternalState = InternalStateModule.getterFor(ARRAY_ITERATOR);
|
3195 |
+
|
3196 |
+
// `Array.prototype.entries` method
|
3197 |
+
// https://tc39.es/ecma262/#sec-array.prototype.entries
|
3198 |
+
// `Array.prototype.keys` method
|
3199 |
+
// https://tc39.es/ecma262/#sec-array.prototype.keys
|
3200 |
+
// `Array.prototype.values` method
|
3201 |
+
// https://tc39.es/ecma262/#sec-array.prototype.values
|
3202 |
+
// `Array.prototype[@@iterator]` method
|
3203 |
+
// https://tc39.es/ecma262/#sec-array.prototype-@@iterator
|
3204 |
+
// `CreateArrayIterator` internal method
|
3205 |
+
// https://tc39.es/ecma262/#sec-createarrayiterator
|
3206 |
+
module.exports = defineIterator(Array, 'Array', function (iterated, kind) {
|
3207 |
+
setInternalState(this, {
|
3208 |
+
type: ARRAY_ITERATOR,
|
3209 |
+
target: toIndexedObject(iterated), // target
|
3210 |
+
index: 0, // next index
|
3211 |
+
kind: kind // kind
|
3212 |
+
});
|
3213 |
+
// `%ArrayIteratorPrototype%.next` method
|
3214 |
+
// https://tc39.es/ecma262/#sec-%arrayiteratorprototype%.next
|
3215 |
+
}, function () {
|
3216 |
+
var state = getInternalState(this);
|
3217 |
+
var target = state.target;
|
3218 |
+
var kind = state.kind;
|
3219 |
+
var index = state.index++;
|
3220 |
+
if (!target || index >= target.length) {
|
3221 |
+
state.target = undefined;
|
3222 |
+
return { value: undefined, done: true };
|
3223 |
+
}
|
3224 |
+
if (kind == 'keys') return { value: index, done: false };
|
3225 |
+
if (kind == 'values') return { value: target[index], done: false };
|
3226 |
+
return { value: [index, target[index]], done: false };
|
3227 |
+
}, 'values');
|
3228 |
+
|
3229 |
+
// argumentsList[@@iterator] is %ArrayProto_values%
|
3230 |
+
// https://tc39.es/ecma262/#sec-createunmappedargumentsobject
|
3231 |
+
// https://tc39.es/ecma262/#sec-createmappedargumentsobject
|
3232 |
+
Iterators.Arguments = Iterators.Array;
|
3233 |
+
|
3234 |
+
// https://tc39.es/ecma262/#sec-array.prototype-@@unscopables
|
3235 |
+
addToUnscopables('keys');
|
3236 |
+
addToUnscopables('values');
|
3237 |
+
addToUnscopables('entries');
|
3238 |
+
|
3239 |
+
|
3240 |
+
/***/ }),
|
3241 |
+
/* 124 */
|
3242 |
+
/***/ (function(module, exports) {
|
3243 |
+
|
3244 |
+
function _arrayLikeToArray(arr, len) {
|
3245 |
+
if (len == null || len > arr.length) len = arr.length;
|
3246 |
+
|
3247 |
+
for (var i = 0, arr2 = new Array(len); i < len; i++) {
|
3248 |
+
arr2[i] = arr[i];
|
3249 |
+
}
|
3250 |
+
|
3251 |
+
return arr2;
|
3252 |
+
}
|
3253 |
+
|
3254 |
+
module.exports = _arrayLikeToArray;
|
3255 |
+
|
3256 |
+
/***/ }),
|
3257 |
+
/* 125 */
|
3258 |
+
/***/ (function(module, exports, __webpack_require__) {
|
3259 |
+
|
3260 |
+
var toInteger = __webpack_require__(42);
|
3261 |
+
var requireObjectCoercible = __webpack_require__(32);
|
3262 |
+
|
3263 |
+
// `String.prototype.{ codePointAt, at }` methods implementation
|
3264 |
+
var createMethod = function (CONVERT_TO_STRING) {
|
3265 |
+
return function ($this, pos) {
|
3266 |
+
var S = String(requireObjectCoercible($this));
|
3267 |
+
var position = toInteger(pos);
|
3268 |
+
var size = S.length;
|
3269 |
+
var first, second;
|
3270 |
+
if (position < 0 || position >= size) return CONVERT_TO_STRING ? '' : undefined;
|
3271 |
+
first = S.charCodeAt(position);
|
3272 |
+
return first < 0xD800 || first > 0xDBFF || position + 1 === size
|
3273 |
+
|| (second = S.charCodeAt(position + 1)) < 0xDC00 || second > 0xDFFF
|
3274 |
+
? CONVERT_TO_STRING ? S.charAt(position) : first
|
3275 |
+
: CONVERT_TO_STRING ? S.slice(position, position + 2) : (first - 0xD800 << 10) + (second - 0xDC00) + 0x10000;
|
3276 |
+
};
|
3277 |
+
};
|
3278 |
+
|
3279 |
+
module.exports = {
|
3280 |
+
// `String.prototype.codePointAt` method
|
3281 |
+
// https://tc39.es/ecma262/#sec-string.prototype.codepointat
|
3282 |
+
codeAt: createMethod(false),
|
3283 |
+
// `String.prototype.at` method
|
3284 |
+
// https://github.com/mathiasbynens/String.prototype.at
|
3285 |
+
charAt: createMethod(true)
|
3286 |
+
};
|
3287 |
+
|
3288 |
+
|
3289 |
+
/***/ }),
|
3290 |
+
/* 126 */
|
3291 |
+
/***/ (function(module, exports) {
|
3292 |
+
|
3293 |
+
(function() { module.exports = window["wp"]["keycodes"]; }());
|
3294 |
+
|
3295 |
+
/***/ }),
|
3296 |
+
/* 127 */
|
3297 |
+
/***/ (function(module, exports) {
|
3298 |
+
|
3299 |
+
// iterable DOM collections
|
3300 |
+
// flag - `iterable` interface - 'entries', 'keys', 'values', 'forEach' methods
|
3301 |
+
module.exports = {
|
3302 |
+
CSSRuleList: 0,
|
3303 |
+
CSSStyleDeclaration: 0,
|
3304 |
+
CSSValueList: 0,
|
3305 |
+
ClientRectList: 0,
|
3306 |
+
DOMRectList: 0,
|
3307 |
+
DOMStringList: 0,
|
3308 |
+
DOMTokenList: 1,
|
3309 |
+
DataTransferItemList: 0,
|
3310 |
+
FileList: 0,
|
3311 |
+
HTMLAllCollection: 0,
|
3312 |
+
HTMLCollection: 0,
|
3313 |
+
HTMLFormElement: 0,
|
3314 |
+
HTMLSelectElement: 0,
|
3315 |
+
MediaList: 0,
|
3316 |
+
MimeTypeArray: 0,
|
3317 |
+
NamedNodeMap: 0,
|
3318 |
+
NodeList: 1,
|
3319 |
+
PaintRequestList: 0,
|
3320 |
+
Plugin: 0,
|
3321 |
+
PluginArray: 0,
|
3322 |
+
SVGLengthList: 0,
|
3323 |
+
SVGNumberList: 0,
|
3324 |
+
SVGPathSegList: 0,
|
3325 |
+
SVGPointList: 0,
|
3326 |
+
SVGStringList: 0,
|
3327 |
+
SVGTransformList: 0,
|
3328 |
+
SourceBufferList: 0,
|
3329 |
+
StyleSheetList: 0,
|
3330 |
+
TextTrackCueList: 0,
|
3331 |
+
TextTrackList: 0,
|
3332 |
+
TouchList: 0
|
3333 |
+
};
|
3334 |
+
|
3335 |
+
|
3336 |
+
/***/ }),
|
3337 |
+
/* 128 */
|
3338 |
+
/***/ (function(module, __webpack_exports__, __webpack_require__) {
|
3339 |
+
|
3340 |
+
"use strict";
|
3341 |
+
|
3342 |
+
// EXPORTS
|
3343 |
+
__webpack_require__.d(__webpack_exports__, "a", function() { return /* binding */ _inheritsLoose; });
|
3344 |
+
|
3345 |
+
// CONCATENATED MODULE: ./node_modules/@babel/runtime/helpers/esm/setPrototypeOf.js
|
3346 |
+
function _setPrototypeOf(o, p) {
|
3347 |
+
_setPrototypeOf = Object.setPrototypeOf || function _setPrototypeOf(o, p) {
|
3348 |
+
o.__proto__ = p;
|
3349 |
+
return o;
|
3350 |
+
};
|
3351 |
+
|
3352 |
+
return _setPrototypeOf(o, p);
|
3353 |
+
}
|
3354 |
+
// CONCATENATED MODULE: ./node_modules/@babel/runtime/helpers/esm/inheritsLoose.js
|
3355 |
+
|
3356 |
+
function _inheritsLoose(subClass, superClass) {
|
3357 |
+
subClass.prototype = Object.create(superClass.prototype);
|
3358 |
+
subClass.prototype.constructor = subClass;
|
3359 |
+
_setPrototypeOf(subClass, superClass);
|
3360 |
+
}
|
3361 |
+
|
3362 |
+
/***/ }),
|
3363 |
+
/* 129 */
|
3364 |
+
/***/ (function(module, exports, __webpack_require__) {
|
3365 |
+
|
3366 |
+
var DESCRIPTORS = __webpack_require__(13);
|
3367 |
+
var defineProperty = __webpack_require__(17).f;
|
3368 |
+
|
3369 |
+
var FunctionPrototype = Function.prototype;
|
3370 |
+
var FunctionPrototypeToString = FunctionPrototype.toString;
|
3371 |
+
var nameRE = /^\s*function ([^ (]*)/;
|
3372 |
+
var NAME = 'name';
|
3373 |
+
|
3374 |
+
// Function instances `.name` property
|
3375 |
+
// https://tc39.es/ecma262/#sec-function-instances-name
|
3376 |
+
if (DESCRIPTORS && !(NAME in FunctionPrototype)) {
|
3377 |
+
defineProperty(FunctionPrototype, NAME, {
|
3378 |
+
configurable: true,
|
3379 |
+
get: function () {
|
3380 |
+
try {
|
3381 |
+
return FunctionPrototypeToString.call(this).match(nameRE)[1];
|
3382 |
+
} catch (error) {
|
3383 |
+
return '';
|
3384 |
+
}
|
3385 |
+
}
|
3386 |
+
});
|
3387 |
+
}
|
3388 |
+
|
3389 |
+
|
3390 |
+
/***/ }),
|
3391 |
+
/* 130 */
|
3392 |
+
/***/ (function(module, exports, __webpack_require__) {
|
3393 |
+
|
3394 |
+
"use strict";
|
3395 |
+
|
3396 |
+
var TO_STRING_TAG_SUPPORT = __webpack_require__(82);
|
3397 |
+
var classof = __webpack_require__(113);
|
3398 |
+
|
3399 |
+
// `Object.prototype.toString` method implementation
|
3400 |
+
// https://tc39.es/ecma262/#sec-object.prototype.tostring
|
3401 |
+
module.exports = TO_STRING_TAG_SUPPORT ? {}.toString : function toString() {
|
3402 |
+
return '[object ' + classof(this) + ']';
|
3403 |
+
};
|
3404 |
+
|
3405 |
+
|
3406 |
+
/***/ }),
|
3407 |
+
/* 131 */
|
3408 |
+
/***/ (function(module, exports, __webpack_require__) {
|
3409 |
+
|
3410 |
+
var arrayLikeToArray = __webpack_require__(124);
|
3411 |
+
|
3412 |
+
function _unsupportedIterableToArray(o, minLen) {
|
3413 |
+
if (!o) return;
|
3414 |
+
if (typeof o === "string") return arrayLikeToArray(o, minLen);
|
3415 |
+
var n = Object.prototype.toString.call(o).slice(8, -1);
|
3416 |
+
if (n === "Object" && o.constructor) n = o.constructor.name;
|
3417 |
+
if (n === "Map" || n === "Set") return Array.from(o);
|
3418 |
+
if (n === "Arguments" || /^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)) return arrayLikeToArray(o, minLen);
|
3419 |
+
}
|
3420 |
+
|
3421 |
+
module.exports = _unsupportedIterableToArray;
|
3422 |
+
|
3423 |
+
/***/ }),
|
3424 |
+
/* 132 */
|
3425 |
+
/***/ (function(module, exports) {
|
3426 |
+
|
3427 |
+
(function() { module.exports = window["wp"]["htmlEntities"]; }());
|
3428 |
+
|
3429 |
+
/***/ }),
|
3430 |
+
/* 133 */
|
3431 |
+
/***/ (function(module, __webpack_exports__, __webpack_require__) {
|
3432 |
+
|
3433 |
+
"use strict";
|
3434 |
+
/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "a", function() { return _objectWithoutPropertiesLoose; });
|
3435 |
+
function _objectWithoutPropertiesLoose(source, excluded) {
|
3436 |
+
if (source == null) return {};
|
3437 |
+
var target = {};
|
3438 |
+
var sourceKeys = Object.keys(source);
|
3439 |
+
var key, i;
|
3440 |
+
|
3441 |
+
for (i = 0; i < sourceKeys.length; i++) {
|
3442 |
+
key = sourceKeys[i];
|
3443 |
+
if (excluded.indexOf(key) >= 0) continue;
|
3444 |
+
target[key] = source[key];
|
3445 |
+
}
|
3446 |
+
|
3447 |
+
return target;
|
3448 |
+
}
|
3449 |
+
|
3450 |
+
/***/ }),
|
3451 |
+
/* 134 */
|
3452 |
+
/***/ (function(module, exports) {
|
3453 |
+
|
3454 |
+
function asyncGeneratorStep(gen, resolve, reject, _next, _throw, key, arg) {
|
3455 |
+
try {
|
3456 |
+
var info = gen[key](arg);
|
3457 |
+
var value = info.value;
|
3458 |
+
} catch (error) {
|
3459 |
+
reject(error);
|
3460 |
+
return;
|
3461 |
+
}
|
3462 |
+
|
3463 |
+
if (info.done) {
|
3464 |
+
resolve(value);
|
3465 |
+
} else {
|
3466 |
+
Promise.resolve(value).then(_next, _throw);
|
3467 |
+
}
|
3468 |
+
}
|
3469 |
+
|
3470 |
+
function _asyncToGenerator(fn) {
|
3471 |
+
return function () {
|
3472 |
+
var self = this,
|
3473 |
+
args = arguments;
|
3474 |
+
return new Promise(function (resolve, reject) {
|
3475 |
+
var gen = fn.apply(self, args);
|
3476 |
+
|
3477 |
+
function _next(value) {
|
3478 |
+
asyncGeneratorStep(gen, resolve, reject, _next, _throw, "next", value);
|
3479 |
+
}
|
3480 |
+
|
3481 |
+
function _throw(err) {
|
3482 |
+
asyncGeneratorStep(gen, resolve, reject, _next, _throw, "throw", err);
|
3483 |
+
}
|
3484 |
+
|
3485 |
+
_next(undefined);
|
3486 |
+
});
|
3487 |
+
};
|
3488 |
+
}
|
3489 |
+
|
3490 |
+
module.exports = _asyncToGenerator;
|
3491 |
+
|
3492 |
+
/***/ }),
|
3493 |
+
/* 135 */
|
3494 |
+
/***/ (function(module, exports, __webpack_require__) {
|
3495 |
+
|
3496 |
+
"use strict";
|
3497 |
+
|
3498 |
+
var fixRegExpWellKnownSymbolLogic = __webpack_require__(111);
|
3499 |
+
var anObject = __webpack_require__(9);
|
3500 |
+
var toLength = __webpack_require__(34);
|
3501 |
+
var toInteger = __webpack_require__(42);
|
3502 |
+
var requireObjectCoercible = __webpack_require__(32);
|
3503 |
+
var advanceStringIndex = __webpack_require__(122);
|
3504 |
+
var getSubstitution = __webpack_require__(168);
|
3505 |
+
var regExpExec = __webpack_require__(112);
|
3506 |
+
|
3507 |
+
var max = Math.max;
|
3508 |
+
var min = Math.min;
|
3509 |
+
|
3510 |
+
var maybeToString = function (it) {
|
3511 |
+
return it === undefined ? it : String(it);
|
3512 |
+
};
|
3513 |
+
|
3514 |
+
// @@replace logic
|
3515 |
+
fixRegExpWellKnownSymbolLogic('replace', 2, function (REPLACE, nativeReplace, maybeCallNative, reason) {
|
3516 |
+
var REGEXP_REPLACE_SUBSTITUTES_UNDEFINED_CAPTURE = reason.REGEXP_REPLACE_SUBSTITUTES_UNDEFINED_CAPTURE;
|
3517 |
+
var REPLACE_KEEPS_$0 = reason.REPLACE_KEEPS_$0;
|
3518 |
+
var UNSAFE_SUBSTITUTE = REGEXP_REPLACE_SUBSTITUTES_UNDEFINED_CAPTURE ? '$' : '$0';
|
3519 |
+
|
3520 |
+
return [
|
3521 |
+
// `String.prototype.replace` method
|
3522 |
+
// https://tc39.es/ecma262/#sec-string.prototype.replace
|
3523 |
+
function replace(searchValue, replaceValue) {
|
3524 |
+
var O = requireObjectCoercible(this);
|
3525 |
+
var replacer = searchValue == undefined ? undefined : searchValue[REPLACE];
|
3526 |
+
return replacer !== undefined
|
3527 |
+
? replacer.call(searchValue, O, replaceValue)
|
3528 |
+
: nativeReplace.call(String(O), searchValue, replaceValue);
|
3529 |
+
},
|
3530 |
+
// `RegExp.prototype[@@replace]` method
|
3531 |
+
// https://tc39.es/ecma262/#sec-regexp.prototype-@@replace
|
3532 |
+
function (regexp, replaceValue) {
|
3533 |
+
if (
|
3534 |
+
(!REGEXP_REPLACE_SUBSTITUTES_UNDEFINED_CAPTURE && REPLACE_KEEPS_$0) ||
|
3535 |
+
(typeof replaceValue === 'string' && replaceValue.indexOf(UNSAFE_SUBSTITUTE) === -1)
|
3536 |
+
) {
|
3537 |
+
var res = maybeCallNative(nativeReplace, regexp, this, replaceValue);
|
3538 |
+
if (res.done) return res.value;
|
3539 |
+
}
|
3540 |
+
|
3541 |
+
var rx = anObject(regexp);
|
3542 |
+
var S = String(this);
|
3543 |
+
|
3544 |
+
var functionalReplace = typeof replaceValue === 'function';
|
3545 |
+
if (!functionalReplace) replaceValue = String(replaceValue);
|
3546 |
+
|
3547 |
+
var global = rx.global;
|
3548 |
+
if (global) {
|
3549 |
+
var fullUnicode = rx.unicode;
|
3550 |
+
rx.lastIndex = 0;
|
3551 |
+
}
|
3552 |
+
var results = [];
|
3553 |
+
while (true) {
|
3554 |
+
var result = regExpExec(rx, S);
|
3555 |
+
if (result === null) break;
|
3556 |
+
|
3557 |
+
results.push(result);
|
3558 |
+
if (!global) break;
|
3559 |
+
|
3560 |
+
var matchStr = String(result[0]);
|
3561 |
+
if (matchStr === '') rx.lastIndex = advanceStringIndex(S, toLength(rx.lastIndex), fullUnicode);
|
3562 |
+
}
|
3563 |
+
|
3564 |
+
var accumulatedResult = '';
|
3565 |
+
var nextSourcePosition = 0;
|
3566 |
+
for (var i = 0; i < results.length; i++) {
|
3567 |
+
result = results[i];
|
3568 |
+
|
3569 |
+
var matched = String(result[0]);
|
3570 |
+
var position = max(min(toInteger(result.index), S.length), 0);
|
3571 |
+
var captures = [];
|
3572 |
+
// NOTE: This is equivalent to
|
3573 |
+
// captures = result.slice(1).map(maybeToString)
|
3574 |
+
// but for some reason `nativeSlice.call(result, 1, result.length)` (called in
|
3575 |
+
// the slice polyfill when slicing native arrays) "doesn't work" in safari 9 and
|
3576 |
+
// causes a crash (https://pastebin.com/N21QzeQA) when trying to debug it.
|
3577 |
+
for (var j = 1; j < result.length; j++) captures.push(maybeToString(result[j]));
|
3578 |
+
var namedCaptures = result.groups;
|
3579 |
+
if (functionalReplace) {
|
3580 |
+
var replacerArgs = [matched].concat(captures, position, S);
|
3581 |
+
if (namedCaptures !== undefined) replacerArgs.push(namedCaptures);
|
3582 |
+
var replacement = String(replaceValue.apply(undefined, replacerArgs));
|
3583 |
+
} else {
|
3584 |
+
replacement = getSubstitution(matched, S, position, captures, namedCaptures, replaceValue);
|
3585 |
+
}
|
3586 |
+
if (position >= nextSourcePosition) {
|
3587 |
+
accumulatedResult += S.slice(nextSourcePosition, position) + replacement;
|
3588 |
+
nextSourcePosition = position + matched.length;
|
3589 |
+
}
|
3590 |
+
}
|
3591 |
+
return accumulatedResult + S.slice(nextSourcePosition);
|
3592 |
+
}
|
3593 |
+
];
|
3594 |
+
});
|
3595 |
+
|
3596 |
+
|
3597 |
+
/***/ }),
|
3598 |
+
/* 136 */
|
3599 |
+
/***/ (function(module, exports) {
|
3600 |
+
|
3601 |
+
module.exports = function (it, Constructor, name) {
|
3602 |
+
if (!(it instanceof Constructor)) {
|
3603 |
+
throw TypeError('Incorrect ' + (name ? name + ' ' : '') + 'invocation');
|
3604 |
+
} return it;
|
3605 |
+
};
|
3606 |
+
|
3607 |
+
|
3608 |
+
/***/ }),
|
3609 |
+
/* 137 */
|
3610 |
+
/***/ (function(module, exports, __webpack_require__) {
|
3611 |
+
|
3612 |
+
"use strict";
|
3613 |
+
|
3614 |
+
|
3615 |
+
var fails = __webpack_require__(6);
|
3616 |
+
|
3617 |
+
// babel-minify transpiles RegExp('a', 'y') -> /a/y and it causes SyntaxError,
|
3618 |
+
// so we use an intermediate function.
|
3619 |
+
function RE(s, f) {
|
3620 |
+
return RegExp(s, f);
|
3621 |
+
}
|
3622 |
+
|
3623 |
+
exports.UNSUPPORTED_Y = fails(function () {
|
3624 |
+
// babel-minify transpiles RegExp('a', 'y') -> /a/y and it causes SyntaxError
|
3625 |
+
var re = RE('a', 'y');
|
3626 |
+
re.lastIndex = 2;
|
3627 |
+
return re.exec('abcd') != null;
|
3628 |
+
});
|
3629 |
+
|
3630 |
+
exports.BROKEN_CARET = fails(function () {
|
3631 |
+
// https://bugzilla.mozilla.org/show_bug.cgi?id=773687
|
3632 |
+
var re = RE('^r', 'gy');
|
3633 |
+
re.lastIndex = 2;
|
3634 |
+
return re.exec('str') != null;
|
3635 |
+
});
|
3636 |
+
|
3637 |
+
|
3638 |
+
/***/ }),
|
3639 |
+
/* 138 */,
|
3640 |
+
/* 139 */
|
3641 |
+
/***/ (function(module, exports, __webpack_require__) {
|
3642 |
+
|
3643 |
+
"use strict";
|
3644 |
+
|
3645 |
+
var $ = __webpack_require__(12);
|
3646 |
+
var IndexedObject = __webpack_require__(71);
|
3647 |
+
var toIndexedObject = __webpack_require__(21);
|
3648 |
+
var arrayMethodIsStrict = __webpack_require__(121);
|
3649 |
+
|
3650 |
+
var nativeJoin = [].join;
|
3651 |
+
|
3652 |
+
var ES3_STRINGS = IndexedObject != Object;
|
3653 |
+
var STRICT_METHOD = arrayMethodIsStrict('join', ',');
|
3654 |
+
|
3655 |
+
// `Array.prototype.join` method
|
3656 |
+
// https://tc39.es/ecma262/#sec-array.prototype.join
|
3657 |
+
$({ target: 'Array', proto: true, forced: ES3_STRINGS || !STRICT_METHOD }, {
|
3658 |
+
join: function join(separator) {
|
3659 |
+
return nativeJoin.call(toIndexedObject(this), separator === undefined ? ',' : separator);
|
3660 |
+
}
|
3661 |
+
});
|
3662 |
+
|
3663 |
+
|
3664 |
+
/***/ }),
|
3665 |
+
/* 140 */
|
3666 |
+
/***/ (function(module, exports, __webpack_require__) {
|
3667 |
+
|
3668 |
+
"use strict";
|
3669 |
+
|
3670 |
+
var $ = __webpack_require__(12);
|
3671 |
+
var notARegExp = __webpack_require__(207);
|
3672 |
+
var requireObjectCoercible = __webpack_require__(32);
|
3673 |
+
var correctIsRegExpLogic = __webpack_require__(208);
|
3674 |
+
|
3675 |
+
// `String.prototype.includes` method
|
3676 |
+
// https://tc39.es/ecma262/#sec-string.prototype.includes
|
3677 |
+
$({ target: 'String', proto: true, forced: !correctIsRegExpLogic('includes') }, {
|
3678 |
+
includes: function includes(searchString /* , position = 0 */) {
|
3679 |
+
return !!~String(requireObjectCoercible(this))
|
3680 |
+
.indexOf(notARegExp(searchString), arguments.length > 1 ? arguments[1] : undefined);
|
3681 |
+
}
|
3682 |
+
});
|
3683 |
+
|
3684 |
+
|
3685 |
+
/***/ }),
|
3686 |
+
/* 141 */
|
3687 |
+
/***/ (function(module, exports) {
|
3688 |
+
|
3689 |
+
(function() { module.exports = window["wp"]["hooks"]; }());
|
3690 |
+
|
3691 |
+
/***/ }),
|
3692 |
+
/* 142 */
|
3693 |
+
/***/ (function(module, exports, __webpack_require__) {
|
3694 |
+
|
3695 |
+
"use strict";
|
3696 |
+
|
3697 |
+
var redefine = __webpack_require__(27);
|
3698 |
+
var anObject = __webpack_require__(9);
|
3699 |
+
var fails = __webpack_require__(6);
|
3700 |
+
var flags = __webpack_require__(114);
|
3701 |
+
|
3702 |
+
var TO_STRING = 'toString';
|
3703 |
+
var RegExpPrototype = RegExp.prototype;
|
3704 |
+
var nativeToString = RegExpPrototype[TO_STRING];
|
3705 |
+
|
3706 |
+
var NOT_GENERIC = fails(function () { return nativeToString.call({ source: 'a', flags: 'b' }) != '/a/b'; });
|
3707 |
+
// FF44- RegExp#toString has a wrong name
|
3708 |
+
var INCORRECT_NAME = nativeToString.name != TO_STRING;
|
3709 |
+
|
3710 |
+
// `RegExp.prototype.toString` method
|
3711 |
+
// https://tc39.es/ecma262/#sec-regexp.prototype.tostring
|
3712 |
+
if (NOT_GENERIC || INCORRECT_NAME) {
|
3713 |
+
redefine(RegExp.prototype, TO_STRING, function toString() {
|
3714 |
+
var R = anObject(this);
|
3715 |
+
var p = String(R.source);
|
3716 |
+
var rf = R.flags;
|
3717 |
+
var f = String(rf === undefined && R instanceof RegExp && !('flags' in RegExpPrototype) ? flags.call(R) : rf);
|
3718 |
+
return '/' + p + '/' + f;
|
3719 |
+
}, { unsafe: true });
|
3720 |
+
}
|
3721 |
+
|
3722 |
+
|
3723 |
+
/***/ }),
|
3724 |
+
/* 143 */
|
3725 |
+
/***/ (function(module, exports, __webpack_require__) {
|
3726 |
+
|
3727 |
+
/* eslint-disable no-proto -- safe */
|
3728 |
+
var anObject = __webpack_require__(9);
|
3729 |
+
var aPossiblePrototype = __webpack_require__(160);
|
3730 |
+
|
3731 |
+
// `Object.setPrototypeOf` method
|
3732 |
+
// https://tc39.es/ecma262/#sec-object.setprototypeof
|
3733 |
+
// Works with __proto__ only. Old v8 can't work with null proto objects.
|
3734 |
+
module.exports = Object.setPrototypeOf || ('__proto__' in {} ? function () {
|
3735 |
+
var CORRECT_SETTER = false;
|
3736 |
+
var test = {};
|
3737 |
+
var setter;
|
3738 |
+
try {
|
3739 |
+
setter = Object.getOwnPropertyDescriptor(Object.prototype, '__proto__').set;
|
3740 |
+
setter.call(test, []);
|
3741 |
+
CORRECT_SETTER = test instanceof Array;
|
3742 |
+
} catch (error) { /* empty */ }
|
3743 |
+
return function setPrototypeOf(O, proto) {
|
3744 |
+
anObject(O);
|
3745 |
+
aPossiblePrototype(proto);
|
3746 |
+
if (CORRECT_SETTER) setter.call(O, proto);
|
3747 |
+
else O.__proto__ = proto;
|
3748 |
+
return O;
|
3749 |
+
};
|
3750 |
+
}() : undefined);
|
3751 |
+
|
3752 |
+
|
3753 |
+
/***/ }),
|
3754 |
+
/* 144 */
|
3755 |
+
/***/ (function(module, exports, __webpack_require__) {
|
3756 |
+
|
3757 |
+
var isObject = __webpack_require__(10);
|
3758 |
+
var classof = __webpack_require__(30);
|
3759 |
+
var wellKnownSymbol = __webpack_require__(8);
|
3760 |
+
|
3761 |
+
var MATCH = wellKnownSymbol('match');
|
3762 |
+
|
3763 |
+
// `IsRegExp` abstract operation
|
3764 |
+
// https://tc39.es/ecma262/#sec-isregexp
|
3765 |
+
module.exports = function (it) {
|
3766 |
+
var isRegExp;
|
3767 |
+
return isObject(it) && ((isRegExp = it[MATCH]) !== undefined ? !!isRegExp : classof(it) == 'RegExp');
|
3768 |
+
};
|
3769 |
+
|
3770 |
+
|
3771 |
+
/***/ }),
|
3772 |
+
/* 145 */
|
3773 |
+
/***/ (function(module, exports) {
|
3774 |
+
|
3775 |
+
(function() { module.exports = window["wc"]["components"]; }());
|
3776 |
+
|
3777 |
+
/***/ }),
|
3778 |
+
/* 146 */
|
3779 |
+
/***/ (function(module, exports, __webpack_require__) {
|
3780 |
+
|
3781 |
+
var global = __webpack_require__(3);
|
3782 |
+
var DOMIterables = __webpack_require__(127);
|
3783 |
+
var ArrayIteratorMethods = __webpack_require__(123);
|
3784 |
+
var createNonEnumerableProperty = __webpack_require__(19);
|
3785 |
+
var wellKnownSymbol = __webpack_require__(8);
|
3786 |
+
|
3787 |
+
var ITERATOR = wellKnownSymbol('iterator');
|
3788 |
+
var TO_STRING_TAG = wellKnownSymbol('toStringTag');
|
3789 |
+
var ArrayValues = ArrayIteratorMethods.values;
|
3790 |
+
|
3791 |
+
for (var COLLECTION_NAME in DOMIterables) {
|
3792 |
+
var Collection = global[COLLECTION_NAME];
|
3793 |
+
var CollectionPrototype = Collection && Collection.prototype;
|
3794 |
+
if (CollectionPrototype) {
|
3795 |
+
// some Chrome versions have non-configurable methods on DOMTokenList
|
3796 |
+
if (CollectionPrototype[ITERATOR] !== ArrayValues) try {
|
3797 |
+
createNonEnumerableProperty(CollectionPrototype, ITERATOR, ArrayValues);
|
3798 |
+
} catch (error) {
|
3799 |
+
CollectionPrototype[ITERATOR] = ArrayValues;
|
3800 |
+
}
|
3801 |
+
if (!CollectionPrototype[TO_STRING_TAG]) {
|
3802 |
+
createNonEnumerableProperty(CollectionPrototype, TO_STRING_TAG, COLLECTION_NAME);
|
3803 |
+
}
|
3804 |
+
if (DOMIterables[COLLECTION_NAME]) for (var METHOD_NAME in ArrayIteratorMethods) {
|
3805 |
+
// some Chrome versions have non-configurable methods on DOMTokenList
|
3806 |
+
if (CollectionPrototype[METHOD_NAME] !== ArrayIteratorMethods[METHOD_NAME]) try {
|
3807 |
+
createNonEnumerableProperty(CollectionPrototype, METHOD_NAME, ArrayIteratorMethods[METHOD_NAME]);
|
3808 |
+
} catch (error) {
|
3809 |
+
CollectionPrototype[METHOD_NAME] = ArrayIteratorMethods[METHOD_NAME];
|
3810 |
+
}
|
3811 |
+
}
|
3812 |
+
}
|
3813 |
+
}
|
3814 |
+
|
3815 |
+
|
3816 |
+
/***/ }),
|
3817 |
+
/* 147 */
|
3818 |
+
/***/ (function(module, exports, __webpack_require__) {
|
3819 |
+
|
3820 |
+
var toIndexedObject = __webpack_require__(21);
|
3821 |
+
var nativeGetOwnPropertyNames = __webpack_require__(56).f;
|
3822 |
+
|
3823 |
+
var toString = {}.toString;
|
3824 |
+
|
3825 |
+
var windowNames = typeof window == 'object' && window && Object.getOwnPropertyNames
|
3826 |
+
? Object.getOwnPropertyNames(window) : [];
|
3827 |
+
|
3828 |
+
var getWindowNames = function (it) {
|
3829 |
+
try {
|
3830 |
+
return nativeGetOwnPropertyNames(it);
|
3831 |
+
} catch (error) {
|
3832 |
+
return windowNames.slice();
|
3833 |
+
}
|
3834 |
+
};
|
3835 |
+
|
3836 |
+
// fallback for IE11 buggy Object.getOwnPropertyNames with iframe and window
|
3837 |
+
module.exports.f = function getOwnPropertyNames(it) {
|
3838 |
+
return windowNames && toString.call(it) == '[object Window]'
|
3839 |
+
? getWindowNames(it)
|
3840 |
+
: nativeGetOwnPropertyNames(toIndexedObject(it));
|
3841 |
+
};
|
3842 |
+
|
3843 |
+
|
3844 |
+
/***/ }),
|
3845 |
+
/* 148 */
|
3846 |
+
/***/ (function(module, exports, __webpack_require__) {
|
3847 |
+
|
3848 |
+
var path = __webpack_require__(81);
|
3849 |
+
var has = __webpack_require__(11);
|
3850 |
+
var wrappedWellKnownSymbolModule = __webpack_require__(119);
|
3851 |
+
var defineProperty = __webpack_require__(17).f;
|
3852 |
+
|
3853 |
+
module.exports = function (NAME) {
|
3854 |
+
var Symbol = path.Symbol || (path.Symbol = {});
|
3855 |
+
if (!has(Symbol, NAME)) defineProperty(Symbol, NAME, {
|
3856 |
+
value: wrappedWellKnownSymbolModule.f(NAME)
|
3857 |
+
});
|
3858 |
+
};
|
3859 |
+
|
3860 |
+
|
3861 |
+
/***/ }),
|
3862 |
+
/* 149 */
|
3863 |
+
/***/ (function(module, exports, __webpack_require__) {
|
3864 |
+
|
3865 |
+
"use strict";
|
3866 |
+
|
3867 |
+
var $forEach = __webpack_require__(75).forEach;
|
3868 |
+
var arrayMethodIsStrict = __webpack_require__(121);
|
3869 |
+
|
3870 |
+
var STRICT_METHOD = arrayMethodIsStrict('forEach');
|
3871 |
+
|
3872 |
+
// `Array.prototype.forEach` method implementation
|
3873 |
+
// https://tc39.es/ecma262/#sec-array.prototype.foreach
|
3874 |
+
module.exports = !STRICT_METHOD ? function forEach(callbackfn /* , thisArg */) {
|
3875 |
+
return $forEach(this, callbackfn, arguments.length > 1 ? arguments[1] : undefined);
|
3876 |
+
} : [].forEach;
|
3877 |
+
|
3878 |
+
|
3879 |
+
/***/ }),
|
3880 |
+
/* 150 */
|
3881 |
+
/***/ (function(module, exports, __webpack_require__) {
|
3882 |
+
|
3883 |
+
var anObject = __webpack_require__(9);
|
3884 |
+
var aFunction = __webpack_require__(70);
|
3885 |
+
var wellKnownSymbol = __webpack_require__(8);
|
3886 |
+
|
3887 |
+
var SPECIES = wellKnownSymbol('species');
|
3888 |
+
|
3889 |
+
// `SpeciesConstructor` abstract operation
|
3890 |
+
// https://tc39.es/ecma262/#sec-speciesconstructor
|
3891 |
+
module.exports = function (O, defaultConstructor) {
|
3892 |
+
var C = anObject(O).constructor;
|
3893 |
+
var S;
|
3894 |
+
return C === undefined || (S = anObject(C)[SPECIES]) == undefined ? defaultConstructor : aFunction(S);
|
3895 |
+
};
|
3896 |
+
|
3897 |
+
|
3898 |
+
/***/ }),
|
3899 |
+
/* 151 */
|
3900 |
+
/***/ (function(module, exports, __webpack_require__) {
|
3901 |
+
|
3902 |
+
"use strict";
|
3903 |
+
|
3904 |
+
var charAt = __webpack_require__(125).charAt;
|
3905 |
+
var InternalStateModule = __webpack_require__(45);
|
3906 |
+
var defineIterator = __webpack_require__(166);
|
3907 |
+
|
3908 |
+
var STRING_ITERATOR = 'String Iterator';
|
3909 |
+
var setInternalState = InternalStateModule.set;
|
3910 |
+
var getInternalState = InternalStateModule.getterFor(STRING_ITERATOR);
|
3911 |
+
|
3912 |
+
// `String.prototype[@@iterator]` method
|
3913 |
+
// https://tc39.es/ecma262/#sec-string.prototype-@@iterator
|
3914 |
+
defineIterator(String, 'String', function (iterated) {
|
3915 |
+
setInternalState(this, {
|
3916 |
+
type: STRING_ITERATOR,
|
3917 |
+
string: String(iterated),
|
3918 |
+
index: 0
|
3919 |
+
});
|
3920 |
+
// `%StringIteratorPrototype%.next` method
|
3921 |
+
// https://tc39.es/ecma262/#sec-%stringiteratorprototype%.next
|
3922 |
+
}, function next() {
|
3923 |
+
var state = getInternalState(this);
|
3924 |
+
var string = state.string;
|
3925 |
+
var index = state.index;
|
3926 |
+
var point;
|
3927 |
+
if (index >= string.length) return { value: undefined, done: true };
|
3928 |
+
point = charAt(string, index);
|
3929 |
+
state.index += point.length;
|
3930 |
+
return { value: point, done: false };
|
3931 |
+
});
|
3932 |
+
|
3933 |
+
|
3934 |
+
/***/ }),
|
3935 |
+
/* 152 */
|
3936 |
+
/***/ (function(module, exports, __webpack_require__) {
|
3937 |
+
|
3938 |
+
var redefine = __webpack_require__(27);
|
3939 |
+
|
3940 |
+
module.exports = function (target, src, options) {
|
3941 |
+
for (var key in src) redefine(target, key, src[key], options);
|
3942 |
+
return target;
|
3943 |
+
};
|
3944 |
+
|
3945 |
+
|
3946 |
+
/***/ }),
|
3947 |
+
/* 153 */
|
3948 |
+
/***/ (function(module, exports, __webpack_require__) {
|
3949 |
+
|
3950 |
+
"use strict";
|
3951 |
+
|
3952 |
+
var getBuiltIn = __webpack_require__(31);
|
3953 |
+
var definePropertyModule = __webpack_require__(17);
|
3954 |
+
var wellKnownSymbol = __webpack_require__(8);
|
3955 |
+
var DESCRIPTORS = __webpack_require__(13);
|
3956 |
+
|
3957 |
+
var SPECIES = wellKnownSymbol('species');
|
3958 |
+
|
3959 |
+
module.exports = function (CONSTRUCTOR_NAME) {
|
3960 |
+
var Constructor = getBuiltIn(CONSTRUCTOR_NAME);
|
3961 |
+
var defineProperty = definePropertyModule.f;
|
3962 |
+
|
3963 |
+
if (DESCRIPTORS && Constructor && !Constructor[SPECIES]) {
|
3964 |
+
defineProperty(Constructor, SPECIES, {
|
3965 |
+
configurable: true,
|
3966 |
+
get: function () { return this; }
|
3967 |
+
});
|
3968 |
+
}
|
3969 |
+
};
|
3970 |
+
|
3971 |
+
|
3972 |
+
/***/ }),
|
3973 |
+
/* 154 */
|
3974 |
+
/***/ (function(module, exports, __webpack_require__) {
|
3975 |
+
|
3976 |
+
var anObject = __webpack_require__(9);
|
3977 |
+
var isArrayIteratorMethod = __webpack_require__(171);
|
3978 |
+
var toLength = __webpack_require__(34);
|
3979 |
+
var bind = __webpack_require__(94);
|
3980 |
+
var getIteratorMethod = __webpack_require__(155);
|
3981 |
+
var iteratorClose = __webpack_require__(172);
|
3982 |
+
|
3983 |
+
var Result = function (stopped, result) {
|
3984 |
+
this.stopped = stopped;
|
3985 |
+
this.result = result;
|
3986 |
+
};
|
3987 |
+
|
3988 |
+
module.exports = function (iterable, unboundFunction, options) {
|
3989 |
+
var that = options && options.that;
|
3990 |
+
var AS_ENTRIES = !!(options && options.AS_ENTRIES);
|
3991 |
+
var IS_ITERATOR = !!(options && options.IS_ITERATOR);
|
3992 |
+
var INTERRUPTED = !!(options && options.INTERRUPTED);
|
3993 |
+
var fn = bind(unboundFunction, that, 1 + AS_ENTRIES + INTERRUPTED);
|
3994 |
+
var iterator, iterFn, index, length, result, next, step;
|
3995 |
+
|
3996 |
+
var stop = function (condition) {
|
3997 |
+
if (iterator) iteratorClose(iterator);
|
3998 |
+
return new Result(true, condition);
|
3999 |
+
};
|
4000 |
+
|
4001 |
+
var callFn = function (value) {
|
4002 |
+
if (AS_ENTRIES) {
|
4003 |
+
anObject(value);
|
4004 |
+
return INTERRUPTED ? fn(value[0], value[1], stop) : fn(value[0], value[1]);
|
4005 |
+
} return INTERRUPTED ? fn(value, stop) : fn(value);
|
4006 |
+
};
|
4007 |
+
|
4008 |
+
if (IS_ITERATOR) {
|
4009 |
+
iterator = iterable;
|
4010 |
+
} else {
|
4011 |
+
iterFn = getIteratorMethod(iterable);
|
4012 |
+
if (typeof iterFn != 'function') throw TypeError('Target is not iterable');
|
4013 |
+
// optimisation for array iterators
|
4014 |
+
if (isArrayIteratorMethod(iterFn)) {
|
4015 |
+
for (index = 0, length = toLength(iterable.length); length > index; index++) {
|
4016 |
+
result = callFn(iterable[index]);
|
4017 |
+
if (result && result instanceof Result) return result;
|
4018 |
+
} return new Result(false);
|
4019 |
+
}
|
4020 |
+
iterator = iterFn.call(iterable);
|
4021 |
+
}
|
4022 |
+
|
4023 |
+
next = iterator.next;
|
4024 |
+
while (!(step = next.call(iterator)).done) {
|
4025 |
+
try {
|
4026 |
+
result = callFn(step.value);
|
4027 |
+
} catch (error) {
|
4028 |
+
iteratorClose(iterator);
|
4029 |
+
throw error;
|
4030 |
+
}
|
4031 |
+
if (typeof result == 'object' && result && result instanceof Result) return result;
|
4032 |
+
} return new Result(false);
|
4033 |
+
};
|
4034 |
+
|
4035 |
+
|
4036 |
+
/***/ }),
|
4037 |
+
/* 155 */
|
4038 |
+
/***/ (function(module, exports, __webpack_require__) {
|
4039 |
+
|
4040 |
+
var classof = __webpack_require__(113);
|
4041 |
+
var Iterators = __webpack_require__(110);
|
4042 |
+
var wellKnownSymbol = __webpack_require__(8);
|
4043 |
+
|
4044 |
+
var ITERATOR = wellKnownSymbol('iterator');
|
4045 |
+
|
4046 |
+
module.exports = function (it) {
|
4047 |
+
if (it != undefined) return it[ITERATOR]
|
4048 |
+
|| it['@@iterator']
|
4049 |
+
|| Iterators[classof(it)];
|
4050 |
+
};
|
4051 |
+
|
4052 |
+
|
4053 |
+
/***/ }),
|
4054 |
+
/* 156 */
|
4055 |
+
/***/ (function(module, exports, __webpack_require__) {
|
4056 |
+
|
4057 |
+
var isObject = __webpack_require__(10);
|
4058 |
+
var setPrototypeOf = __webpack_require__(143);
|
4059 |
+
|
4060 |
+
// makes subclassing work correct for wrapped built-ins
|
4061 |
+
module.exports = function ($this, dummy, Wrapper) {
|
4062 |
+
var NewTarget, NewTargetPrototype;
|
4063 |
+
if (
|
4064 |
+
// it can work only with native `setPrototypeOf`
|
4065 |
+
setPrototypeOf &&
|
4066 |
+
// we haven't completely correct pre-ES6 way for getting `new.target`, so use this
|
4067 |
+
typeof (NewTarget = dummy.constructor) == 'function' &&
|
4068 |
+
NewTarget !== Wrapper &&
|
4069 |
+
isObject(NewTargetPrototype = NewTarget.prototype) &&
|
4070 |
+
NewTargetPrototype !== Wrapper.prototype
|
4071 |
+
) setPrototypeOf($this, NewTargetPrototype);
|
4072 |
+
return $this;
|
4073 |
+
};
|
4074 |
+
|
4075 |
+
|
4076 |
+
/***/ }),
|
4077 |
+
/* 157 */
|
4078 |
+
/***/ (function(module, exports, __webpack_require__) {
|
4079 |
+
|
4080 |
+
var global = __webpack_require__(3);
|
4081 |
+
var fails = __webpack_require__(6);
|
4082 |
+
var bind = __webpack_require__(94);
|
4083 |
+
var html = __webpack_require__(98);
|
4084 |
+
var createElement = __webpack_require__(67);
|
4085 |
+
var IS_IOS = __webpack_require__(158);
|
4086 |
+
var IS_NODE = __webpack_require__(77);
|
4087 |
+
|
4088 |
+
var location = global.location;
|
4089 |
+
var set = global.setImmediate;
|
4090 |
+
var clear = global.clearImmediate;
|
4091 |
+
var process = global.process;
|
4092 |
+
var MessageChannel = global.MessageChannel;
|
4093 |
+
var Dispatch = global.Dispatch;
|
4094 |
+
var counter = 0;
|
4095 |
+
var queue = {};
|
4096 |
+
var ONREADYSTATECHANGE = 'onreadystatechange';
|
4097 |
+
var defer, channel, port;
|
4098 |
+
|
4099 |
+
var run = function (id) {
|
4100 |
+
// eslint-disable-next-line no-prototype-builtins -- safe
|
4101 |
+
if (queue.hasOwnProperty(id)) {
|
4102 |
+
var fn = queue[id];
|
4103 |
+
delete queue[id];
|
4104 |
+
fn();
|
4105 |
+
}
|
4106 |
+
};
|
4107 |
+
|
4108 |
+
var runner = function (id) {
|
4109 |
+
return function () {
|
4110 |
+
run(id);
|
4111 |
+
};
|
4112 |
+
};
|
4113 |
+
|
4114 |
+
var listener = function (event) {
|
4115 |
+
run(event.data);
|
4116 |
+
};
|
4117 |
+
|
4118 |
+
var post = function (id) {
|
4119 |
+
// old engines have not location.origin
|
4120 |
+
global.postMessage(id + '', location.protocol + '//' + location.host);
|
4121 |
+
};
|
4122 |
+
|
4123 |
+
// Node.js 0.9+ & IE10+ has setImmediate, otherwise:
|
4124 |
+
if (!set || !clear) {
|
4125 |
+
set = function setImmediate(fn) {
|
4126 |
+
var args = [];
|
4127 |
+
var i = 1;
|
4128 |
+
while (arguments.length > i) args.push(arguments[i++]);
|
4129 |
+
queue[++counter] = function () {
|
4130 |
+
// eslint-disable-next-line no-new-func -- spec requirement
|
4131 |
+
(typeof fn == 'function' ? fn : Function(fn)).apply(undefined, args);
|
4132 |
+
};
|
4133 |
+
defer(counter);
|
4134 |
+
return counter;
|
4135 |
+
};
|
4136 |
+
clear = function clearImmediate(id) {
|
4137 |
+
delete queue[id];
|
4138 |
+
};
|
4139 |
+
// Node.js 0.8-
|
4140 |
+
if (IS_NODE) {
|
4141 |
+
defer = function (id) {
|
4142 |
+
process.nextTick(runner(id));
|
4143 |
+
};
|
4144 |
+
// Sphere (JS game engine) Dispatch API
|
4145 |
+
} else if (Dispatch && Dispatch.now) {
|
4146 |
+
defer = function (id) {
|
4147 |
+
Dispatch.now(runner(id));
|
4148 |
+
};
|
4149 |
+
// Browsers with MessageChannel, includes WebWorkers
|
4150 |
+
// except iOS - https://github.com/zloirock/core-js/issues/624
|
4151 |
+
} else if (MessageChannel && !IS_IOS) {
|
4152 |
+
channel = new MessageChannel();
|
4153 |
+
port = channel.port2;
|
4154 |
+
channel.port1.onmessage = listener;
|
4155 |
+
defer = bind(port.postMessage, port, 1);
|
4156 |
+
// Browsers with postMessage, skip WebWorkers
|
4157 |
+
// IE8 has postMessage, but it's sync & typeof its postMessage is 'object'
|
4158 |
+
} else if (
|
4159 |
+
global.addEventListener &&
|
4160 |
+
typeof postMessage == 'function' &&
|
4161 |
+
!global.importScripts &&
|
4162 |
+
location && location.protocol !== 'file:' &&
|
4163 |
+
!fails(post)
|
4164 |
+
) {
|
4165 |
+
defer = post;
|
4166 |
+
global.addEventListener('message', listener, false);
|
4167 |
+
// IE8-
|
4168 |
+
} else if (ONREADYSTATECHANGE in createElement('script')) {
|
4169 |
+
defer = function (id) {
|
4170 |
+
html.appendChild(createElement('script'))[ONREADYSTATECHANGE] = function () {
|
4171 |
+
html.removeChild(this);
|
4172 |
+
run(id);
|
4173 |
+
};
|
4174 |
+
};
|
4175 |
+
// Rest old browsers
|
4176 |
+
} else {
|
4177 |
+
defer = function (id) {
|
4178 |
+
setTimeout(runner(id), 0);
|
4179 |
+
};
|
4180 |
+
}
|
4181 |
+
}
|
4182 |
+
|
4183 |
+
module.exports = {
|
4184 |
+
set: set,
|
4185 |
+
clear: clear
|
4186 |
+
};
|
4187 |
+
|
4188 |
+
|
4189 |
+
/***/ }),
|
4190 |
+
/* 158 */
|
4191 |
+
/***/ (function(module, exports, __webpack_require__) {
|
4192 |
+
|
4193 |
+
var userAgent = __webpack_require__(87);
|
4194 |
+
|
4195 |
+
module.exports = /(iphone|ipod|ipad).*applewebkit/i.test(userAgent);
|
4196 |
+
|
4197 |
+
|
4198 |
+
/***/ }),
|
4199 |
+
/* 159 */
|
4200 |
+
/***/ (function(module, exports, __webpack_require__) {
|
4201 |
+
|
4202 |
+
"use strict";
|
4203 |
+
|
4204 |
+
var aFunction = __webpack_require__(70);
|
4205 |
+
|
4206 |
+
var PromiseCapability = function (C) {
|
4207 |
+
var resolve, reject;
|
4208 |
+
this.promise = new C(function ($$resolve, $$reject) {
|
4209 |
+
if (resolve !== undefined || reject !== undefined) throw TypeError('Bad Promise constructor');
|
4210 |
+
resolve = $$resolve;
|
4211 |
+
reject = $$reject;
|
4212 |
+
});
|
4213 |
+
this.resolve = aFunction(resolve);
|
4214 |
+
this.reject = aFunction(reject);
|
4215 |
+
};
|
4216 |
+
|
4217 |
+
// 25.4.1.5 NewPromiseCapability(C)
|
4218 |
+
module.exports.f = function (C) {
|
4219 |
+
return new PromiseCapability(C);
|
4220 |
+
};
|
4221 |
+
|
4222 |
+
|
4223 |
+
/***/ }),
|
4224 |
+
/* 160 */
|
4225 |
+
/***/ (function(module, exports, __webpack_require__) {
|
4226 |
+
|
4227 |
+
var isObject = __webpack_require__(10);
|
4228 |
+
|
4229 |
+
module.exports = function (it) {
|
4230 |
+
if (!isObject(it) && it !== null) {
|
4231 |
+
throw TypeError("Can't set " + String(it) + ' as a prototype');
|
4232 |
+
} return it;
|
4233 |
+
};
|
4234 |
+
|
4235 |
+
|
4236 |
+
/***/ }),
|
4237 |
+
/* 161 */,
|
4238 |
+
/* 162 */
|
4239 |
+
/***/ (function(module, exports, __webpack_require__) {
|
4240 |
+
|
4241 |
+
"use strict";
|
4242 |
+
|
4243 |
+
|
4244 |
+
var stringify = __webpack_require__(227);
|
4245 |
+
var parse = __webpack_require__(228);
|
4246 |
+
var formats = __webpack_require__(169);
|
4247 |
+
|
4248 |
+
module.exports = {
|
4249 |
+
formats: formats,
|
4250 |
+
parse: parse,
|
4251 |
+
stringify: stringify
|
4252 |
+
};
|
4253 |
+
|
4254 |
+
|
4255 |
+
/***/ }),
|
4256 |
+
/* 163 */
|
4257 |
+
/***/ (function(module, exports) {
|
4258 |
+
|
4259 |
+
(function() { module.exports = window["ReactDOM"]; }());
|
4260 |
+
|
4261 |
+
/***/ }),
|
4262 |
+
/* 164 */
|
4263 |
+
/***/ (function(module, exports, __webpack_require__) {
|
4264 |
+
|
4265 |
+
"use strict";
|
4266 |
+
|
4267 |
+
var $ = __webpack_require__(12);
|
4268 |
+
var IS_PURE = __webpack_require__(57);
|
4269 |
+
var global = __webpack_require__(3);
|
4270 |
+
var getBuiltIn = __webpack_require__(31);
|
4271 |
+
var NativePromise = __webpack_require__(193);
|
4272 |
+
var redefine = __webpack_require__(27);
|
4273 |
+
var redefineAll = __webpack_require__(152);
|
4274 |
+
var setToStringTag = __webpack_require__(90);
|
4275 |
+
var setSpecies = __webpack_require__(153);
|
4276 |
+
var isObject = __webpack_require__(10);
|
4277 |
+
var aFunction = __webpack_require__(70);
|
4278 |
+
var anInstance = __webpack_require__(136);
|
4279 |
+
var inspectSource = __webpack_require__(68);
|
4280 |
+
var iterate = __webpack_require__(154);
|
4281 |
+
var checkCorrectnessOfIteration = __webpack_require__(165);
|
4282 |
+
var speciesConstructor = __webpack_require__(150);
|
4283 |
+
var task = __webpack_require__(157).set;
|
4284 |
+
var microtask = __webpack_require__(194);
|
4285 |
+
var promiseResolve = __webpack_require__(196);
|
4286 |
+
var hostReportErrors = __webpack_require__(197);
|
4287 |
+
var newPromiseCapabilityModule = __webpack_require__(159);
|
4288 |
+
var perform = __webpack_require__(198);
|
4289 |
+
var InternalStateModule = __webpack_require__(45);
|
4290 |
+
var isForced = __webpack_require__(74);
|
4291 |
+
var wellKnownSymbol = __webpack_require__(8);
|
4292 |
+
var IS_NODE = __webpack_require__(77);
|
4293 |
+
var V8_VERSION = __webpack_require__(63);
|
4294 |
+
|
4295 |
+
var SPECIES = wellKnownSymbol('species');
|
4296 |
+
var PROMISE = 'Promise';
|
4297 |
+
var getInternalState = InternalStateModule.get;
|
4298 |
+
var setInternalState = InternalStateModule.set;
|
4299 |
+
var getInternalPromiseState = InternalStateModule.getterFor(PROMISE);
|
4300 |
+
var PromiseConstructor = NativePromise;
|
4301 |
+
var TypeError = global.TypeError;
|
4302 |
+
var document = global.document;
|
4303 |
+
var process = global.process;
|
4304 |
+
var $fetch = getBuiltIn('fetch');
|
4305 |
+
var newPromiseCapability = newPromiseCapabilityModule.f;
|
4306 |
+
var newGenericPromiseCapability = newPromiseCapability;
|
4307 |
+
var DISPATCH_EVENT = !!(document && document.createEvent && global.dispatchEvent);
|
4308 |
+
var NATIVE_REJECTION_EVENT = typeof PromiseRejectionEvent == 'function';
|
4309 |
+
var UNHANDLED_REJECTION = 'unhandledrejection';
|
4310 |
+
var REJECTION_HANDLED = 'rejectionhandled';
|
4311 |
+
var PENDING = 0;
|
4312 |
+
var FULFILLED = 1;
|
4313 |
+
var REJECTED = 2;
|
4314 |
+
var HANDLED = 1;
|
4315 |
+
var UNHANDLED = 2;
|
4316 |
+
var Internal, OwnPromiseCapability, PromiseWrapper, nativeThen;
|
4317 |
+
|
4318 |
+
var FORCED = isForced(PROMISE, function () {
|
4319 |
+
var GLOBAL_CORE_JS_PROMISE = inspectSource(PromiseConstructor) !== String(PromiseConstructor);
|
4320 |
+
if (!GLOBAL_CORE_JS_PROMISE) {
|
4321 |
+
// V8 6.6 (Node 10 and Chrome 66) have a bug with resolving custom thenables
|
4322 |
+
// https://bugs.chromium.org/p/chromium/issues/detail?id=830565
|
4323 |
+
// We can't detect it synchronously, so just check versions
|
4324 |
+
if (V8_VERSION === 66) return true;
|
4325 |
+
// Unhandled rejections tracking support, NodeJS Promise without it fails @@species test
|
4326 |
+
if (!IS_NODE && !NATIVE_REJECTION_EVENT) return true;
|
4327 |
+
}
|
4328 |
+
// We need Promise#finally in the pure version for preventing prototype pollution
|
4329 |
+
if (IS_PURE && !PromiseConstructor.prototype['finally']) return true;
|
4330 |
+
// We can't use @@species feature detection in V8 since it causes
|
4331 |
+
// deoptimization and performance degradation
|
4332 |
+
// https://github.com/zloirock/core-js/issues/679
|
4333 |
+
if (V8_VERSION >= 51 && /native code/.test(PromiseConstructor)) return false;
|
4334 |
+
// Detect correctness of subclassing with @@species support
|
4335 |
+
var promise = PromiseConstructor.resolve(1);
|
4336 |
+
var FakePromise = function (exec) {
|
4337 |
+
exec(function () { /* empty */ }, function () { /* empty */ });
|
4338 |
+
};
|
4339 |
+
var constructor = promise.constructor = {};
|
4340 |
+
constructor[SPECIES] = FakePromise;
|
4341 |
+
return !(promise.then(function () { /* empty */ }) instanceof FakePromise);
|
4342 |
+
});
|
4343 |
+
|
4344 |
+
var INCORRECT_ITERATION = FORCED || !checkCorrectnessOfIteration(function (iterable) {
|
4345 |
+
PromiseConstructor.all(iterable)['catch'](function () { /* empty */ });
|
4346 |
+
});
|
4347 |
+
|
4348 |
+
// helpers
|
4349 |
+
var isThenable = function (it) {
|
4350 |
+
var then;
|
4351 |
+
return isObject(it) && typeof (then = it.then) == 'function' ? then : false;
|
4352 |
+
};
|
4353 |
+
|
4354 |
+
var notify = function (state, isReject) {
|
4355 |
+
if (state.notified) return;
|
4356 |
+
state.notified = true;
|
4357 |
+
var chain = state.reactions;
|
4358 |
+
microtask(function () {
|
4359 |
+
var value = state.value;
|
4360 |
+
var ok = state.state == FULFILLED;
|
4361 |
+
var index = 0;
|
4362 |
+
// variable length - can't use forEach
|
4363 |
+
while (chain.length > index) {
|
4364 |
+
var reaction = chain[index++];
|
4365 |
+
var handler = ok ? reaction.ok : reaction.fail;
|
4366 |
+
var resolve = reaction.resolve;
|
4367 |
+
var reject = reaction.reject;
|
4368 |
+
var domain = reaction.domain;
|
4369 |
+
var result, then, exited;
|
4370 |
+
try {
|
4371 |
+
if (handler) {
|
4372 |
+
if (!ok) {
|
4373 |
+
if (state.rejection === UNHANDLED) onHandleUnhandled(state);
|
4374 |
+
state.rejection = HANDLED;
|
4375 |
+
}
|
4376 |
+
if (handler === true) result = value;
|
4377 |
+
else {
|
4378 |
+
if (domain) domain.enter();
|
4379 |
+
result = handler(value); // can throw
|
4380 |
+
if (domain) {
|
4381 |
+
domain.exit();
|
4382 |
+
exited = true;
|
4383 |
+
}
|
4384 |
+
}
|
4385 |
+
if (result === reaction.promise) {
|
4386 |
+
reject(TypeError('Promise-chain cycle'));
|
4387 |
+
} else if (then = isThenable(result)) {
|
4388 |
+
then.call(result, resolve, reject);
|
4389 |
+
} else resolve(result);
|
4390 |
+
} else reject(value);
|
4391 |
+
} catch (error) {
|
4392 |
+
if (domain && !exited) domain.exit();
|
4393 |
+
reject(error);
|
4394 |
+
}
|
4395 |
+
}
|
4396 |
+
state.reactions = [];
|
4397 |
+
state.notified = false;
|
4398 |
+
if (isReject && !state.rejection) onUnhandled(state);
|
4399 |
+
});
|
4400 |
+
};
|
4401 |
+
|
4402 |
+
var dispatchEvent = function (name, promise, reason) {
|
4403 |
+
var event, handler;
|
4404 |
+
if (DISPATCH_EVENT) {
|
4405 |
+
event = document.createEvent('Event');
|
4406 |
+
event.promise = promise;
|
4407 |
+
event.reason = reason;
|
4408 |
+
event.initEvent(name, false, true);
|
4409 |
+
global.dispatchEvent(event);
|
4410 |
+
} else event = { promise: promise, reason: reason };
|
4411 |
+
if (!NATIVE_REJECTION_EVENT && (handler = global['on' + name])) handler(event);
|
4412 |
+
else if (name === UNHANDLED_REJECTION) hostReportErrors('Unhandled promise rejection', reason);
|
4413 |
+
};
|
4414 |
+
|
4415 |
+
var onUnhandled = function (state) {
|
4416 |
+
task.call(global, function () {
|
4417 |
+
var promise = state.facade;
|
4418 |
+
var value = state.value;
|
4419 |
+
var IS_UNHANDLED = isUnhandled(state);
|
4420 |
+
var result;
|
4421 |
+
if (IS_UNHANDLED) {
|
4422 |
+
result = perform(function () {
|
4423 |
+
if (IS_NODE) {
|
4424 |
+
process.emit('unhandledRejection', value, promise);
|
4425 |
+
} else dispatchEvent(UNHANDLED_REJECTION, promise, value);
|
4426 |
+
});
|
4427 |
+
// Browsers should not trigger `rejectionHandled` event if it was handled here, NodeJS - should
|
4428 |
+
state.rejection = IS_NODE || isUnhandled(state) ? UNHANDLED : HANDLED;
|
4429 |
+
if (result.error) throw result.value;
|
4430 |
+
}
|
4431 |
+
});
|
4432 |
+
};
|
4433 |
+
|
4434 |
+
var isUnhandled = function (state) {
|
4435 |
+
return state.rejection !== HANDLED && !state.parent;
|
4436 |
+
};
|
4437 |
+
|
4438 |
+
var onHandleUnhandled = function (state) {
|
4439 |
+
task.call(global, function () {
|
4440 |
+
var promise = state.facade;
|
4441 |
+
if (IS_NODE) {
|
4442 |
+
process.emit('rejectionHandled', promise);
|
4443 |
+
} else dispatchEvent(REJECTION_HANDLED, promise, state.value);
|
4444 |
+
});
|
4445 |
+
};
|
4446 |
+
|
4447 |
+
var bind = function (fn, state, unwrap) {
|
4448 |
+
return function (value) {
|
4449 |
+
fn(state, value, unwrap);
|
4450 |
+
};
|
4451 |
+
};
|
4452 |
+
|
4453 |
+
var internalReject = function (state, value, unwrap) {
|
4454 |
+
if (state.done) return;
|
4455 |
+
state.done = true;
|
4456 |
+
if (unwrap) state = unwrap;
|
4457 |
+
state.value = value;
|
4458 |
+
state.state = REJECTED;
|
4459 |
+
notify(state, true);
|
4460 |
+
};
|
4461 |
+
|
4462 |
+
var internalResolve = function (state, value, unwrap) {
|
4463 |
+
if (state.done) return;
|
4464 |
+
state.done = true;
|
4465 |
+
if (unwrap) state = unwrap;
|
4466 |
+
try {
|
4467 |
+
if (state.facade === value) throw TypeError("Promise can't be resolved itself");
|
4468 |
+
var then = isThenable(value);
|
4469 |
+
if (then) {
|
4470 |
+
microtask(function () {
|
4471 |
+
var wrapper = { done: false };
|
4472 |
+
try {
|
4473 |
+
then.call(value,
|
4474 |
+
bind(internalResolve, wrapper, state),
|
4475 |
+
bind(internalReject, wrapper, state)
|
4476 |
+
);
|
4477 |
+
} catch (error) {
|
4478 |
+
internalReject(wrapper, error, state);
|
4479 |
+
}
|
4480 |
+
});
|
4481 |
+
} else {
|
4482 |
+
state.value = value;
|
4483 |
+
state.state = FULFILLED;
|
4484 |
+
notify(state, false);
|
4485 |
+
}
|
4486 |
+
} catch (error) {
|
4487 |
+
internalReject({ done: false }, error, state);
|
4488 |
+
}
|
4489 |
+
};
|
4490 |
+
|
4491 |
+
// constructor polyfill
|
4492 |
+
if (FORCED) {
|
4493 |
+
// 25.4.3.1 Promise(executor)
|
4494 |
+
PromiseConstructor = function Promise(executor) {
|
4495 |
+
anInstance(this, PromiseConstructor, PROMISE);
|
4496 |
+
aFunction(executor);
|
4497 |
+
Internal.call(this);
|
4498 |
+
var state = getInternalState(this);
|
4499 |
+
try {
|
4500 |
+
executor(bind(internalResolve, state), bind(internalReject, state));
|
4501 |
+
} catch (error) {
|
4502 |
+
internalReject(state, error);
|
4503 |
+
}
|
4504 |
+
};
|
4505 |
+
// eslint-disable-next-line no-unused-vars -- required for `.length`
|
4506 |
+
Internal = function Promise(executor) {
|
4507 |
+
setInternalState(this, {
|
4508 |
+
type: PROMISE,
|
4509 |
+
done: false,
|
4510 |
+
notified: false,
|
4511 |
+
parent: false,
|
4512 |
+
reactions: [],
|
4513 |
+
rejection: false,
|
4514 |
+
state: PENDING,
|
4515 |
+
value: undefined
|
4516 |
+
});
|
4517 |
+
};
|
4518 |
+
Internal.prototype = redefineAll(PromiseConstructor.prototype, {
|
4519 |
+
// `Promise.prototype.then` method
|
4520 |
+
// https://tc39.es/ecma262/#sec-promise.prototype.then
|
4521 |
+
then: function then(onFulfilled, onRejected) {
|
4522 |
+
var state = getInternalPromiseState(this);
|
4523 |
+
var reaction = newPromiseCapability(speciesConstructor(this, PromiseConstructor));
|
4524 |
+
reaction.ok = typeof onFulfilled == 'function' ? onFulfilled : true;
|
4525 |
+
reaction.fail = typeof onRejected == 'function' && onRejected;
|
4526 |
+
reaction.domain = IS_NODE ? process.domain : undefined;
|
4527 |
+
state.parent = true;
|
4528 |
+
state.reactions.push(reaction);
|
4529 |
+
if (state.state != PENDING) notify(state, false);
|
4530 |
+
return reaction.promise;
|
4531 |
+
},
|
4532 |
+
// `Promise.prototype.catch` method
|
4533 |
+
// https://tc39.es/ecma262/#sec-promise.prototype.catch
|
4534 |
+
'catch': function (onRejected) {
|
4535 |
+
return this.then(undefined, onRejected);
|
4536 |
+
}
|
4537 |
+
});
|
4538 |
+
OwnPromiseCapability = function () {
|
4539 |
+
var promise = new Internal();
|
4540 |
+
var state = getInternalState(promise);
|
4541 |
+
this.promise = promise;
|
4542 |
+
this.resolve = bind(internalResolve, state);
|
4543 |
+
this.reject = bind(internalReject, state);
|
4544 |
+
};
|
4545 |
+
newPromiseCapabilityModule.f = newPromiseCapability = function (C) {
|
4546 |
+
return C === PromiseConstructor || C === PromiseWrapper
|
4547 |
+
? new OwnPromiseCapability(C)
|
4548 |
+
: newGenericPromiseCapability(C);
|
4549 |
+
};
|
4550 |
+
|
4551 |
+
if (!IS_PURE && typeof NativePromise == 'function') {
|
4552 |
+
nativeThen = NativePromise.prototype.then;
|
4553 |
+
|
4554 |
+
// wrap native Promise#then for native async functions
|
4555 |
+
redefine(NativePromise.prototype, 'then', function then(onFulfilled, onRejected) {
|
4556 |
+
var that = this;
|
4557 |
+
return new PromiseConstructor(function (resolve, reject) {
|
4558 |
+
nativeThen.call(that, resolve, reject);
|
4559 |
+
}).then(onFulfilled, onRejected);
|
4560 |
+
// https://github.com/zloirock/core-js/issues/640
|
4561 |
+
}, { unsafe: true });
|
4562 |
+
|
4563 |
+
// wrap fetch result
|
4564 |
+
if (typeof $fetch == 'function') $({ global: true, enumerable: true, forced: true }, {
|
4565 |
+
// eslint-disable-next-line no-unused-vars -- required for `.length`
|
4566 |
+
fetch: function fetch(input /* , init */) {
|
4567 |
+
return promiseResolve(PromiseConstructor, $fetch.apply(global, arguments));
|
4568 |
+
}
|
4569 |
+
});
|
4570 |
+
}
|
4571 |
+
}
|
4572 |
+
|
4573 |
+
$({ global: true, wrap: true, forced: FORCED }, {
|
4574 |
+
Promise: PromiseConstructor
|
4575 |
+
});
|
4576 |
+
|
4577 |
+
setToStringTag(PromiseConstructor, PROMISE, false, true);
|
4578 |
+
setSpecies(PROMISE);
|
4579 |
+
|
4580 |
+
PromiseWrapper = getBuiltIn(PROMISE);
|
4581 |
+
|
4582 |
+
// statics
|
4583 |
+
$({ target: PROMISE, stat: true, forced: FORCED }, {
|
4584 |
+
// `Promise.reject` method
|
4585 |
+
// https://tc39.es/ecma262/#sec-promise.reject
|
4586 |
+
reject: function reject(r) {
|
4587 |
+
var capability = newPromiseCapability(this);
|
4588 |
+
capability.reject.call(undefined, r);
|
4589 |
+
return capability.promise;
|
4590 |
+
}
|
4591 |
+
});
|
4592 |
+
|
4593 |
+
$({ target: PROMISE, stat: true, forced: IS_PURE || FORCED }, {
|
4594 |
+
// `Promise.resolve` method
|
4595 |
+
// https://tc39.es/ecma262/#sec-promise.resolve
|
4596 |
+
resolve: function resolve(x) {
|
4597 |
+
return promiseResolve(IS_PURE && this === PromiseWrapper ? PromiseConstructor : this, x);
|
4598 |
+
}
|
4599 |
+
});
|
4600 |
+
|
4601 |
+
$({ target: PROMISE, stat: true, forced: INCORRECT_ITERATION }, {
|
4602 |
+
// `Promise.all` method
|
4603 |
+
// https://tc39.es/ecma262/#sec-promise.all
|
4604 |
+
all: function all(iterable) {
|
4605 |
+
var C = this;
|
4606 |
+
var capability = newPromiseCapability(C);
|
4607 |
+
var resolve = capability.resolve;
|
4608 |
+
var reject = capability.reject;
|
4609 |
+
var result = perform(function () {
|
4610 |
+
var $promiseResolve = aFunction(C.resolve);
|
4611 |
+
var values = [];
|
4612 |
+
var counter = 0;
|
4613 |
+
var remaining = 1;
|
4614 |
+
iterate(iterable, function (promise) {
|
4615 |
+
var index = counter++;
|
4616 |
+
var alreadyCalled = false;
|
4617 |
+
values.push(undefined);
|
4618 |
+
remaining++;
|
4619 |
+
$promiseResolve.call(C, promise).then(function (value) {
|
4620 |
+
if (alreadyCalled) return;
|
4621 |
+
alreadyCalled = true;
|
4622 |
+
values[index] = value;
|
4623 |
+
--remaining || resolve(values);
|
4624 |
+
}, reject);
|
4625 |
+
});
|
4626 |
+
--remaining || resolve(values);
|
4627 |
+
});
|
4628 |
+
if (result.error) reject(result.value);
|
4629 |
+
return capability.promise;
|
4630 |
+
},
|
4631 |
+
// `Promise.race` method
|
4632 |
+
// https://tc39.es/ecma262/#sec-promise.race
|
4633 |
+
race: function race(iterable) {
|
4634 |
+
var C = this;
|
4635 |
+
var capability = newPromiseCapability(C);
|
4636 |
+
var reject = capability.reject;
|
4637 |
+
var result = perform(function () {
|
4638 |
+
var $promiseResolve = aFunction(C.resolve);
|
4639 |
+
iterate(iterable, function (promise) {
|
4640 |
+
$promiseResolve.call(C, promise).then(capability.resolve, reject);
|
4641 |
+
});
|
4642 |
+
});
|
4643 |
+
if (result.error) reject(result.value);
|
4644 |
+
return capability.promise;
|
4645 |
+
}
|
4646 |
+
});
|
4647 |
+
|
4648 |
+
|
4649 |
+
/***/ }),
|
4650 |
+
/* 165 */
|
4651 |
+
/***/ (function(module, exports, __webpack_require__) {
|
4652 |
+
|
4653 |
+
var wellKnownSymbol = __webpack_require__(8);
|
4654 |
+
|
4655 |
+
var ITERATOR = wellKnownSymbol('iterator');
|
4656 |
+
var SAFE_CLOSING = false;
|
4657 |
+
|
4658 |
+
try {
|
4659 |
+
var called = 0;
|
4660 |
+
var iteratorWithReturn = {
|
4661 |
+
next: function () {
|
4662 |
+
return { done: !!called++ };
|
4663 |
+
},
|
4664 |
+
'return': function () {
|
4665 |
+
SAFE_CLOSING = true;
|
4666 |
+
}
|
4667 |
+
};
|
4668 |
+
iteratorWithReturn[ITERATOR] = function () {
|
4669 |
+
return this;
|
4670 |
+
};
|
4671 |
+
// eslint-disable-next-line no-throw-literal -- required for testing
|
4672 |
+
Array.from(iteratorWithReturn, function () { throw 2; });
|
4673 |
+
} catch (error) { /* empty */ }
|
4674 |
+
|
4675 |
+
module.exports = function (exec, SKIP_CLOSING) {
|
4676 |
+
if (!SKIP_CLOSING && !SAFE_CLOSING) return false;
|
4677 |
+
var ITERATION_SUPPORT = false;
|
4678 |
+
try {
|
4679 |
+
var object = {};
|
4680 |
+
object[ITERATOR] = function () {
|
4681 |
+
return {
|
4682 |
+
next: function () {
|
4683 |
+
return { done: ITERATION_SUPPORT = true };
|
4684 |
+
}
|
4685 |
+
};
|
4686 |
+
};
|
4687 |
+
exec(object);
|
4688 |
+
} catch (error) { /* empty */ }
|
4689 |
+
return ITERATION_SUPPORT;
|
4690 |
+
};
|
4691 |
+
|
4692 |
+
|
4693 |
+
/***/ }),
|
4694 |
+
/* 166 */
|
4695 |
+
/***/ (function(module, exports, __webpack_require__) {
|
4696 |
+
|
4697 |
+
"use strict";
|
4698 |
+
|
4699 |
+
var $ = __webpack_require__(12);
|
4700 |
+
var createIteratorConstructor = __webpack_require__(199);
|
4701 |
+
var getPrototypeOf = __webpack_require__(174);
|
4702 |
+
var setPrototypeOf = __webpack_require__(143);
|
4703 |
+
var setToStringTag = __webpack_require__(90);
|
4704 |
+
var createNonEnumerableProperty = __webpack_require__(19);
|
4705 |
+
var redefine = __webpack_require__(27);
|
4706 |
+
var wellKnownSymbol = __webpack_require__(8);
|
4707 |
+
var IS_PURE = __webpack_require__(57);
|
4708 |
+
var Iterators = __webpack_require__(110);
|
4709 |
+
var IteratorsCore = __webpack_require__(173);
|
4710 |
+
|
4711 |
+
var IteratorPrototype = IteratorsCore.IteratorPrototype;
|
4712 |
+
var BUGGY_SAFARI_ITERATORS = IteratorsCore.BUGGY_SAFARI_ITERATORS;
|
4713 |
+
var ITERATOR = wellKnownSymbol('iterator');
|
4714 |
+
var KEYS = 'keys';
|
4715 |
+
var VALUES = 'values';
|
4716 |
+
var ENTRIES = 'entries';
|
4717 |
+
|
4718 |
+
var returnThis = function () { return this; };
|
4719 |
+
|
4720 |
+
module.exports = function (Iterable, NAME, IteratorConstructor, next, DEFAULT, IS_SET, FORCED) {
|
4721 |
+
createIteratorConstructor(IteratorConstructor, NAME, next);
|
4722 |
+
|
4723 |
+
var getIterationMethod = function (KIND) {
|
4724 |
+
if (KIND === DEFAULT && defaultIterator) return defaultIterator;
|
4725 |
+
if (!BUGGY_SAFARI_ITERATORS && KIND in IterablePrototype) return IterablePrototype[KIND];
|
4726 |
+
switch (KIND) {
|
4727 |
+
case KEYS: return function keys() { return new IteratorConstructor(this, KIND); };
|
4728 |
+
case VALUES: return function values() { return new IteratorConstructor(this, KIND); };
|
4729 |
+
case ENTRIES: return function entries() { return new IteratorConstructor(this, KIND); };
|
4730 |
+
} return function () { return new IteratorConstructor(this); };
|
4731 |
+
};
|
4732 |
+
|
4733 |
+
var TO_STRING_TAG = NAME + ' Iterator';
|
4734 |
+
var INCORRECT_VALUES_NAME = false;
|
4735 |
+
var IterablePrototype = Iterable.prototype;
|
4736 |
+
var nativeIterator = IterablePrototype[ITERATOR]
|
4737 |
+
|| IterablePrototype['@@iterator']
|
4738 |
+
|| DEFAULT && IterablePrototype[DEFAULT];
|
4739 |
+
var defaultIterator = !BUGGY_SAFARI_ITERATORS && nativeIterator || getIterationMethod(DEFAULT);
|
4740 |
+
var anyNativeIterator = NAME == 'Array' ? IterablePrototype.entries || nativeIterator : nativeIterator;
|
4741 |
+
var CurrentIteratorPrototype, methods, KEY;
|
4742 |
+
|
4743 |
+
// fix native
|
4744 |
+
if (anyNativeIterator) {
|
4745 |
+
CurrentIteratorPrototype = getPrototypeOf(anyNativeIterator.call(new Iterable()));
|
4746 |
+
if (IteratorPrototype !== Object.prototype && CurrentIteratorPrototype.next) {
|
4747 |
+
if (!IS_PURE && getPrototypeOf(CurrentIteratorPrototype) !== IteratorPrototype) {
|
4748 |
+
if (setPrototypeOf) {
|
4749 |
+
setPrototypeOf(CurrentIteratorPrototype, IteratorPrototype);
|
4750 |
+
} else if (typeof CurrentIteratorPrototype[ITERATOR] != 'function') {
|
4751 |
+
createNonEnumerableProperty(CurrentIteratorPrototype, ITERATOR, returnThis);
|
4752 |
+
}
|
4753 |
+
}
|
4754 |
+
// Set @@toStringTag to native iterators
|
4755 |
+
setToStringTag(CurrentIteratorPrototype, TO_STRING_TAG, true, true);
|
4756 |
+
if (IS_PURE) Iterators[TO_STRING_TAG] = returnThis;
|
4757 |
+
}
|
4758 |
+
}
|
4759 |
+
|
4760 |
+
// fix Array#{values, @@iterator}.name in V8 / FF
|
4761 |
+
if (DEFAULT == VALUES && nativeIterator && nativeIterator.name !== VALUES) {
|
4762 |
+
INCORRECT_VALUES_NAME = true;
|
4763 |
+
defaultIterator = function values() { return nativeIterator.call(this); };
|
4764 |
+
}
|
4765 |
+
|
4766 |
+
// define iterator
|
4767 |
+
if ((!IS_PURE || FORCED) && IterablePrototype[ITERATOR] !== defaultIterator) {
|
4768 |
+
createNonEnumerableProperty(IterablePrototype, ITERATOR, defaultIterator);
|
4769 |
+
}
|
4770 |
+
Iterators[NAME] = defaultIterator;
|
4771 |
+
|
4772 |
+
// export additional methods
|
4773 |
+
if (DEFAULT) {
|
4774 |
+
methods = {
|
4775 |
+
values: getIterationMethod(VALUES),
|
4776 |
+
keys: IS_SET ? defaultIterator : getIterationMethod(KEYS),
|
4777 |
+
entries: getIterationMethod(ENTRIES)
|
4778 |
+
};
|
4779 |
+
if (FORCED) for (KEY in methods) {
|
4780 |
+
if (BUGGY_SAFARI_ITERATORS || INCORRECT_VALUES_NAME || !(KEY in IterablePrototype)) {
|
4781 |
+
redefine(IterablePrototype, KEY, methods[KEY]);
|
4782 |
+
}
|
4783 |
+
} else $({ target: NAME, proto: true, forced: BUGGY_SAFARI_ITERATORS || INCORRECT_VALUES_NAME }, methods);
|
4784 |
+
}
|
4785 |
+
|
4786 |
+
return methods;
|
4787 |
+
};
|
4788 |
+
|
4789 |
+
|
4790 |
+
/***/ }),
|
4791 |
+
/* 167 */,
|
4792 |
+
/* 168 */
|
4793 |
+
/***/ (function(module, exports, __webpack_require__) {
|
4794 |
+
|
4795 |
+
var toObject = __webpack_require__(38);
|
4796 |
+
|
4797 |
+
var floor = Math.floor;
|
4798 |
+
var replace = ''.replace;
|
4799 |
+
var SUBSTITUTION_SYMBOLS = /\$([$&'`]|\d{1,2}|<[^>]*>)/g;
|
4800 |
+
var SUBSTITUTION_SYMBOLS_NO_NAMED = /\$([$&'`]|\d{1,2})/g;
|
4801 |
+
|
4802 |
+
// https://tc39.es/ecma262/#sec-getsubstitution
|
4803 |
+
module.exports = function (matched, str, position, captures, namedCaptures, replacement) {
|
4804 |
+
var tailPos = position + matched.length;
|
4805 |
+
var m = captures.length;
|
4806 |
+
var symbols = SUBSTITUTION_SYMBOLS_NO_NAMED;
|
4807 |
+
if (namedCaptures !== undefined) {
|
4808 |
+
namedCaptures = toObject(namedCaptures);
|
4809 |
+
symbols = SUBSTITUTION_SYMBOLS;
|
4810 |
+
}
|
4811 |
+
return replace.call(replacement, symbols, function (match, ch) {
|
4812 |
+
var capture;
|
4813 |
+
switch (ch.charAt(0)) {
|
4814 |
+
case '$': return '$';
|
4815 |
+
case '&': return matched;
|
4816 |
+
case '`': return str.slice(0, position);
|
4817 |
+
case "'": return str.slice(tailPos);
|
4818 |
+
case '<':
|
4819 |
+
capture = namedCaptures[ch.slice(1, -1)];
|
4820 |
+
break;
|
4821 |
+
default: // \d\d?
|
4822 |
+
var n = +ch;
|
4823 |
+
if (n === 0) return match;
|
4824 |
+
if (n > m) {
|
4825 |
+
var f = floor(n / 10);
|
4826 |
+
if (f === 0) return match;
|
4827 |
+
if (f <= m) return captures[f - 1] === undefined ? ch.charAt(1) : captures[f - 1] + ch.charAt(1);
|
4828 |
+
return match;
|
4829 |
+
}
|
4830 |
+
capture = captures[n - 1];
|
4831 |
+
}
|
4832 |
+
return capture === undefined ? '' : capture;
|
4833 |
+
});
|
4834 |
+
};
|
4835 |
+
|
4836 |
+
|
4837 |
+
/***/ }),
|
4838 |
+
/* 169 */
|
4839 |
+
/***/ (function(module, exports, __webpack_require__) {
|
4840 |
+
|
4841 |
+
"use strict";
|
4842 |
+
|
4843 |
+
|
4844 |
+
var replace = String.prototype.replace;
|
4845 |
+
var percentTwenties = /%20/g;
|
4846 |
+
|
4847 |
+
var Format = {
|
4848 |
+
RFC1738: 'RFC1738',
|
4849 |
+
RFC3986: 'RFC3986'
|
4850 |
+
};
|
4851 |
+
|
4852 |
+
module.exports = {
|
4853 |
+
'default': Format.RFC3986,
|
4854 |
+
formatters: {
|
4855 |
+
RFC1738: function (value) {
|
4856 |
+
return replace.call(value, percentTwenties, '+');
|
4857 |
+
},
|
4858 |
+
RFC3986: function (value) {
|
4859 |
+
return String(value);
|
4860 |
+
}
|
4861 |
+
},
|
4862 |
+
RFC1738: Format.RFC1738,
|
4863 |
+
RFC3986: Format.RFC3986
|
4864 |
+
};
|
4865 |
+
|
4866 |
+
|
4867 |
+
/***/ }),
|
4868 |
+
/* 170 */
|
4869 |
+
/***/ (function(module, exports, __webpack_require__) {
|
4870 |
+
|
4871 |
+
"use strict";
|
4872 |
+
|
4873 |
+
var fixRegExpWellKnownSymbolLogic = __webpack_require__(111);
|
4874 |
+
var anObject = __webpack_require__(9);
|
4875 |
+
var requireObjectCoercible = __webpack_require__(32);
|
4876 |
+
var sameValue = __webpack_require__(214);
|
4877 |
+
var regExpExec = __webpack_require__(112);
|
4878 |
+
|
4879 |
+
// @@search logic
|
4880 |
+
fixRegExpWellKnownSymbolLogic('search', 1, function (SEARCH, nativeSearch, maybeCallNative) {
|
4881 |
+
return [
|
4882 |
+
// `String.prototype.search` method
|
4883 |
+
// https://tc39.es/ecma262/#sec-string.prototype.search
|
4884 |
+
function search(regexp) {
|
4885 |
+
var O = requireObjectCoercible(this);
|
4886 |
+
var searcher = regexp == undefined ? undefined : regexp[SEARCH];
|
4887 |
+
return searcher !== undefined ? searcher.call(regexp, O) : new RegExp(regexp)[SEARCH](String(O));
|
4888 |
+
},
|
4889 |
+
// `RegExp.prototype[@@search]` method
|
4890 |
+
// https://tc39.es/ecma262/#sec-regexp.prototype-@@search
|
4891 |
+
function (regexp) {
|
4892 |
+
var res = maybeCallNative(nativeSearch, regexp, this);
|
4893 |
+
if (res.done) return res.value;
|
4894 |
+
|
4895 |
+
var rx = anObject(regexp);
|
4896 |
+
var S = String(this);
|
4897 |
+
|
4898 |
+
var previousLastIndex = rx.lastIndex;
|
4899 |
+
if (!sameValue(previousLastIndex, 0)) rx.lastIndex = 0;
|
4900 |
+
var result = regExpExec(rx, S);
|
4901 |
+
if (!sameValue(rx.lastIndex, previousLastIndex)) rx.lastIndex = previousLastIndex;
|
4902 |
+
return result === null ? -1 : result.index;
|
4903 |
+
}
|
4904 |
+
];
|
4905 |
+
});
|
4906 |
+
|
4907 |
+
|
4908 |
+
/***/ }),
|
4909 |
+
/* 171 */
|
4910 |
+
/***/ (function(module, exports, __webpack_require__) {
|
4911 |
+
|
4912 |
+
var wellKnownSymbol = __webpack_require__(8);
|
4913 |
+
var Iterators = __webpack_require__(110);
|
4914 |
+
|
4915 |
+
var ITERATOR = wellKnownSymbol('iterator');
|
4916 |
+
var ArrayPrototype = Array.prototype;
|
4917 |
+
|
4918 |
+
// check on default Array iterator
|
4919 |
+
module.exports = function (it) {
|
4920 |
+
return it !== undefined && (Iterators.Array === it || ArrayPrototype[ITERATOR] === it);
|
4921 |
+
};
|
4922 |
+
|
4923 |
+
|
4924 |
+
/***/ }),
|
4925 |
+
/* 172 */
|
4926 |
+
/***/ (function(module, exports, __webpack_require__) {
|
4927 |
+
|
4928 |
+
var anObject = __webpack_require__(9);
|
4929 |
+
|
4930 |
+
module.exports = function (iterator) {
|
4931 |
+
var returnMethod = iterator['return'];
|
4932 |
+
if (returnMethod !== undefined) {
|
4933 |
+
return anObject(returnMethod.call(iterator)).value;
|
4934 |
+
}
|
4935 |
+
};
|
4936 |
+
|
4937 |
+
|
4938 |
+
/***/ }),
|
4939 |
+
/* 173 */
|
4940 |
+
/***/ (function(module, exports, __webpack_require__) {
|
4941 |
+
|
4942 |
+
"use strict";
|
4943 |
+
|
4944 |
+
var fails = __webpack_require__(6);
|
4945 |
+
var getPrototypeOf = __webpack_require__(174);
|
4946 |
+
var createNonEnumerableProperty = __webpack_require__(19);
|
4947 |
+
var has = __webpack_require__(11);
|
4948 |
+
var wellKnownSymbol = __webpack_require__(8);
|
4949 |
+
var IS_PURE = __webpack_require__(57);
|
4950 |
+
|
4951 |
+
var ITERATOR = wellKnownSymbol('iterator');
|
4952 |
+
var BUGGY_SAFARI_ITERATORS = false;
|
4953 |
+
|
4954 |
+
var returnThis = function () { return this; };
|
4955 |
+
|
4956 |
+
// `%IteratorPrototype%` object
|
4957 |
+
// https://tc39.es/ecma262/#sec-%iteratorprototype%-object
|
4958 |
+
var IteratorPrototype, PrototypeOfArrayIteratorPrototype, arrayIterator;
|
4959 |
+
|
4960 |
+
if ([].keys) {
|
4961 |
+
arrayIterator = [].keys();
|
4962 |
+
// Safari 8 has buggy iterators w/o `next`
|
4963 |
+
if (!('next' in arrayIterator)) BUGGY_SAFARI_ITERATORS = true;
|
4964 |
+
else {
|
4965 |
+
PrototypeOfArrayIteratorPrototype = getPrototypeOf(getPrototypeOf(arrayIterator));
|
4966 |
+
if (PrototypeOfArrayIteratorPrototype !== Object.prototype) IteratorPrototype = PrototypeOfArrayIteratorPrototype;
|
4967 |
+
}
|
4968 |
+
}
|
4969 |
+
|
4970 |
+
var NEW_ITERATOR_PROTOTYPE = IteratorPrototype == undefined || fails(function () {
|
4971 |
+
var test = {};
|
4972 |
+
// FF44- legacy iterators case
|
4973 |
+
return IteratorPrototype[ITERATOR].call(test) !== test;
|
4974 |
+
});
|
4975 |
+
|
4976 |
+
if (NEW_ITERATOR_PROTOTYPE) IteratorPrototype = {};
|
4977 |
+
|
4978 |
+
// 25.1.2.1.1 %IteratorPrototype%[@@iterator]()
|
4979 |
+
if ((!IS_PURE || NEW_ITERATOR_PROTOTYPE) && !has(IteratorPrototype, ITERATOR)) {
|
4980 |
+
createNonEnumerableProperty(IteratorPrototype, ITERATOR, returnThis);
|
4981 |
+
}
|
4982 |
+
|
4983 |
+
module.exports = {
|
4984 |
+
IteratorPrototype: IteratorPrototype,
|
4985 |
+
BUGGY_SAFARI_ITERATORS: BUGGY_SAFARI_ITERATORS
|
4986 |
+
};
|
4987 |
+
|
4988 |
+
|
4989 |
+
/***/ }),
|
4990 |
+
/* 174 */
|
4991 |
+
/***/ (function(module, exports, __webpack_require__) {
|
4992 |
+
|
4993 |
+
var has = __webpack_require__(11);
|
4994 |
+
var toObject = __webpack_require__(38);
|
4995 |
+
var sharedKey = __webpack_require__(52);
|
4996 |
+
var CORRECT_PROTOTYPE_GETTER = __webpack_require__(213);
|
4997 |
+
|
4998 |
+
var IE_PROTO = sharedKey('IE_PROTO');
|
4999 |
+
var ObjectPrototype = Object.prototype;
|
5000 |
+
|
5001 |
+
// `Object.getPrototypeOf` method
|
5002 |
+
// https://tc39.es/ecma262/#sec-object.getprototypeof
|
5003 |
+
module.exports = CORRECT_PROTOTYPE_GETTER ? Object.getPrototypeOf : function (O) {
|
5004 |
+
O = toObject(O);
|
5005 |
+
if (has(O, IE_PROTO)) return O[IE_PROTO];
|
5006 |
+
if (typeof O.constructor == 'function' && O instanceof O.constructor) {
|
5007 |
+
return O.constructor.prototype;
|
5008 |
+
} return O instanceof Object ? ObjectPrototype : null;
|
5009 |
+
};
|
5010 |
+
|
5011 |
+
|
5012 |
+
/***/ }),
|
5013 |
+
/* 175 */,
|
5014 |
+
/* 176 */
|
5015 |
+
/***/ (function(module, __webpack_exports__, __webpack_require__) {
|
5016 |
+
|
5017 |
+
"use strict";
|
5018 |
+
var isProduction = "production" === 'production';
|
5019 |
+
var prefix = 'Invariant failed';
|
5020 |
+
function invariant(condition, message) {
|
5021 |
+
if (condition) {
|
5022 |
+
return;
|
5023 |
+
}
|
5024 |
+
if (isProduction) {
|
5025 |
+
throw new Error(prefix);
|
5026 |
+
}
|
5027 |
+
throw new Error(prefix + ": " + (message || ''));
|
5028 |
+
}
|
5029 |
+
|
5030 |
+
/* harmony default export */ __webpack_exports__["a"] = (invariant);
|
5031 |
+
|
5032 |
+
|
5033 |
+
/***/ }),
|
5034 |
+
/* 177 */
|
5035 |
+
/***/ (function(module, exports, __webpack_require__) {
|
5036 |
+
|
5037 |
+
"use strict";
|
5038 |
+
|
5039 |
+
var fixRegExpWellKnownSymbolLogic = __webpack_require__(111);
|
5040 |
+
var isRegExp = __webpack_require__(144);
|
5041 |
+
var anObject = __webpack_require__(9);
|
5042 |
+
var requireObjectCoercible = __webpack_require__(32);
|
5043 |
+
var speciesConstructor = __webpack_require__(150);
|
5044 |
+
var advanceStringIndex = __webpack_require__(122);
|
5045 |
+
var toLength = __webpack_require__(34);
|
5046 |
+
var callRegExpExec = __webpack_require__(112);
|
5047 |
+
var regexpExec = __webpack_require__(91);
|
5048 |
+
var fails = __webpack_require__(6);
|
5049 |
+
|
5050 |
+
var arrayPush = [].push;
|
5051 |
+
var min = Math.min;
|
5052 |
+
var MAX_UINT32 = 0xFFFFFFFF;
|
5053 |
+
|
5054 |
+
// babel-minify transpiles RegExp('x', 'y') -> /x/y and it causes SyntaxError
|
5055 |
+
var SUPPORTS_Y = !fails(function () { return !RegExp(MAX_UINT32, 'y'); });
|
5056 |
+
|
5057 |
+
// @@split logic
|
5058 |
+
fixRegExpWellKnownSymbolLogic('split', 2, function (SPLIT, nativeSplit, maybeCallNative) {
|
5059 |
+
var internalSplit;
|
5060 |
+
if (
|
5061 |
+
'abbc'.split(/(b)*/)[1] == 'c' ||
|
5062 |
+
// eslint-disable-next-line regexp/no-empty-group -- required for testing
|
5063 |
+
'test'.split(/(?:)/, -1).length != 4 ||
|
5064 |
+
'ab'.split(/(?:ab)*/).length != 2 ||
|
5065 |
+
'.'.split(/(.?)(.?)/).length != 4 ||
|
5066 |
+
// eslint-disable-next-line regexp/no-assertion-capturing-group, regexp/no-empty-group -- required for testing
|
5067 |
+
'.'.split(/()()/).length > 1 ||
|
5068 |
+
''.split(/.?/).length
|
5069 |
+
) {
|
5070 |
+
// based on es5-shim implementation, need to rework it
|
5071 |
+
internalSplit = function (separator, limit) {
|
5072 |
+
var string = String(requireObjectCoercible(this));
|
5073 |
+
var lim = limit === undefined ? MAX_UINT32 : limit >>> 0;
|
5074 |
+
if (lim === 0) return [];
|
5075 |
+
if (separator === undefined) return [string];
|
5076 |
+
// If `separator` is not a regex, use native split
|
5077 |
+
if (!isRegExp(separator)) {
|
5078 |
+
return nativeSplit.call(string, separator, lim);
|
5079 |
+
}
|
5080 |
+
var output = [];
|
5081 |
+
var flags = (separator.ignoreCase ? 'i' : '') +
|
5082 |
+
(separator.multiline ? 'm' : '') +
|
5083 |
+
(separator.unicode ? 'u' : '') +
|
5084 |
+
(separator.sticky ? 'y' : '');
|
5085 |
+
var lastLastIndex = 0;
|
5086 |
+
// Make `global` and avoid `lastIndex` issues by working with a copy
|
5087 |
+
var separatorCopy = new RegExp(separator.source, flags + 'g');
|
5088 |
+
var match, lastIndex, lastLength;
|
5089 |
+
while (match = regexpExec.call(separatorCopy, string)) {
|
5090 |
+
lastIndex = separatorCopy.lastIndex;
|
5091 |
+
if (lastIndex > lastLastIndex) {
|
5092 |
+
output.push(string.slice(lastLastIndex, match.index));
|
5093 |
+
if (match.length > 1 && match.index < string.length) arrayPush.apply(output, match.slice(1));
|
5094 |
+
lastLength = match[0].length;
|
5095 |
+
lastLastIndex = lastIndex;
|
5096 |
+
if (output.length >= lim) break;
|
5097 |
+
}
|
5098 |
+
if (separatorCopy.lastIndex === match.index) separatorCopy.lastIndex++; // Avoid an infinite loop
|
5099 |
+
}
|
5100 |
+
if (lastLastIndex === string.length) {
|
5101 |
+
if (lastLength || !separatorCopy.test('')) output.push('');
|
5102 |
+
} else output.push(string.slice(lastLastIndex));
|
5103 |
+
return output.length > lim ? output.slice(0, lim) : output;
|
5104 |
+
};
|
5105 |
+
// Chakra, V8
|
5106 |
+
} else if ('0'.split(undefined, 0).length) {
|
5107 |
+
internalSplit = function (separator, limit) {
|
5108 |
+
return separator === undefined && limit === 0 ? [] : nativeSplit.call(this, separator, limit);
|
5109 |
+
};
|
5110 |
+
} else internalSplit = nativeSplit;
|
5111 |
+
|
5112 |
+
return [
|
5113 |
+
// `String.prototype.split` method
|
5114 |
+
// https://tc39.es/ecma262/#sec-string.prototype.split
|
5115 |
+
function split(separator, limit) {
|
5116 |
+
var O = requireObjectCoercible(this);
|
5117 |
+
var splitter = separator == undefined ? undefined : separator[SPLIT];
|
5118 |
+
return splitter !== undefined
|
5119 |
+
? splitter.call(separator, O, limit)
|
5120 |
+
: internalSplit.call(String(O), separator, limit);
|
5121 |
+
},
|
5122 |
+
// `RegExp.prototype[@@split]` method
|
5123 |
+
// https://tc39.es/ecma262/#sec-regexp.prototype-@@split
|
5124 |
+
//
|
5125 |
+
// NOTE: This cannot be properly polyfilled in engines that don't support
|
5126 |
+
// the 'y' flag.
|
5127 |
+
function (regexp, limit) {
|
5128 |
+
var res = maybeCallNative(internalSplit, regexp, this, limit, internalSplit !== nativeSplit);
|
5129 |
+
if (res.done) return res.value;
|
5130 |
+
|
5131 |
+
var rx = anObject(regexp);
|
5132 |
+
var S = String(this);
|
5133 |
+
var C = speciesConstructor(rx, RegExp);
|
5134 |
+
|
5135 |
+
var unicodeMatching = rx.unicode;
|
5136 |
+
var flags = (rx.ignoreCase ? 'i' : '') +
|
5137 |
+
(rx.multiline ? 'm' : '') +
|
5138 |
+
(rx.unicode ? 'u' : '') +
|
5139 |
+
(SUPPORTS_Y ? 'y' : 'g');
|
5140 |
+
|
5141 |
+
// ^(? + rx + ) is needed, in combination with some S slicing, to
|
5142 |
+
// simulate the 'y' flag.
|
5143 |
+
var splitter = new C(SUPPORTS_Y ? rx : '^(?:' + rx.source + ')', flags);
|
5144 |
+
var lim = limit === undefined ? MAX_UINT32 : limit >>> 0;
|
5145 |
+
if (lim === 0) return [];
|
5146 |
+
if (S.length === 0) return callRegExpExec(splitter, S) === null ? [S] : [];
|
5147 |
+
var p = 0;
|
5148 |
+
var q = 0;
|
5149 |
+
var A = [];
|
5150 |
+
while (q < S.length) {
|
5151 |
+
splitter.lastIndex = SUPPORTS_Y ? q : 0;
|
5152 |
+
var z = callRegExpExec(splitter, SUPPORTS_Y ? S : S.slice(q));
|
5153 |
+
var e;
|
5154 |
+
if (
|
5155 |
+
z === null ||
|
5156 |
+
(e = min(toLength(splitter.lastIndex + (SUPPORTS_Y ? 0 : q)), S.length)) === p
|
5157 |
+
) {
|
5158 |
+
q = advanceStringIndex(S, q, unicodeMatching);
|
5159 |
+
} else {
|
5160 |
+
A.push(S.slice(p, q));
|
5161 |
+
if (A.length === lim) return A;
|
5162 |
+
for (var i = 1; i <= z.length - 1; i++) {
|
5163 |
+
A.push(z[i]);
|
5164 |
+
if (A.length === lim) return A;
|
5165 |
+
}
|
5166 |
+
q = p = e;
|
5167 |
+
}
|
5168 |
+
}
|
5169 |
+
A.push(S.slice(p));
|
5170 |
+
return A;
|
5171 |
+
}
|
5172 |
+
];
|
5173 |
+
}, !SUPPORTS_Y);
|
5174 |
+
|
5175 |
+
|
5176 |
+
/***/ }),
|
5177 |
+
/* 178 */
|
5178 |
+
/***/ (function(module, exports, __webpack_require__) {
|
5179 |
+
|
5180 |
+
"use strict";
|
5181 |
+
|
5182 |
+
var DESCRIPTORS = __webpack_require__(13);
|
5183 |
+
var global = __webpack_require__(3);
|
5184 |
+
var isForced = __webpack_require__(74);
|
5185 |
+
var redefine = __webpack_require__(27);
|
5186 |
+
var has = __webpack_require__(11);
|
5187 |
+
var classof = __webpack_require__(30);
|
5188 |
+
var inheritIfRequired = __webpack_require__(156);
|
5189 |
+
var toPrimitive = __webpack_require__(40);
|
5190 |
+
var fails = __webpack_require__(6);
|
5191 |
+
var create = __webpack_require__(69);
|
5192 |
+
var getOwnPropertyNames = __webpack_require__(56).f;
|
5193 |
+
var getOwnPropertyDescriptor = __webpack_require__(33).f;
|
5194 |
+
var defineProperty = __webpack_require__(17).f;
|
5195 |
+
var trim = __webpack_require__(188).trim;
|
5196 |
+
|
5197 |
+
var NUMBER = 'Number';
|
5198 |
+
var NativeNumber = global[NUMBER];
|
5199 |
+
var NumberPrototype = NativeNumber.prototype;
|
5200 |
+
|
5201 |
+
// Opera ~12 has broken Object#toString
|
5202 |
+
var BROKEN_CLASSOF = classof(create(NumberPrototype)) == NUMBER;
|
5203 |
+
|
5204 |
+
// `ToNumber` abstract operation
|
5205 |
+
// https://tc39.es/ecma262/#sec-tonumber
|
5206 |
+
var toNumber = function (argument) {
|
5207 |
+
var it = toPrimitive(argument, false);
|
5208 |
+
var first, third, radix, maxCode, digits, length, index, code;
|
5209 |
+
if (typeof it == 'string' && it.length > 2) {
|
5210 |
+
it = trim(it);
|
5211 |
+
first = it.charCodeAt(0);
|
5212 |
+
if (first === 43 || first === 45) {
|
5213 |
+
third = it.charCodeAt(2);
|
5214 |
+
if (third === 88 || third === 120) return NaN; // Number('+0x1') should be NaN, old V8 fix
|
5215 |
+
} else if (first === 48) {
|
5216 |
+
switch (it.charCodeAt(1)) {
|
5217 |
+
case 66: case 98: radix = 2; maxCode = 49; break; // fast equal of /^0b[01]+$/i
|
5218 |
+
case 79: case 111: radix = 8; maxCode = 55; break; // fast equal of /^0o[0-7]+$/i
|
5219 |
+
default: return +it;
|
5220 |
+
}
|
5221 |
+
digits = it.slice(2);
|
5222 |
+
length = digits.length;
|
5223 |
+
for (index = 0; index < length; index++) {
|
5224 |
+
code = digits.charCodeAt(index);
|
5225 |
+
// parseInt parses a string to a first unavailable symbol
|
5226 |
+
// but ToNumber should return NaN if a string contains unavailable symbols
|
5227 |
+
if (code < 48 || code > maxCode) return NaN;
|
5228 |
+
} return parseInt(digits, radix);
|
5229 |
+
}
|
5230 |
+
} return +it;
|
5231 |
+
};
|
5232 |
+
|
5233 |
+
// `Number` constructor
|
5234 |
+
// https://tc39.es/ecma262/#sec-number-constructor
|
5235 |
+
if (isForced(NUMBER, !NativeNumber(' 0o1') || !NativeNumber('0b1') || NativeNumber('+0x1'))) {
|
5236 |
+
var NumberWrapper = function Number(value) {
|
5237 |
+
var it = arguments.length < 1 ? 0 : value;
|
5238 |
+
var dummy = this;
|
5239 |
+
return dummy instanceof NumberWrapper
|
5240 |
+
// check on 1..constructor(foo) case
|
5241 |
+
&& (BROKEN_CLASSOF ? fails(function () { NumberPrototype.valueOf.call(dummy); }) : classof(dummy) != NUMBER)
|
5242 |
+
? inheritIfRequired(new NativeNumber(toNumber(it)), dummy, NumberWrapper) : toNumber(it);
|
5243 |
+
};
|
5244 |
+
for (var keys = DESCRIPTORS ? getOwnPropertyNames(NativeNumber) : (
|
5245 |
+
// ES3:
|
5246 |
+
'MAX_VALUE,MIN_VALUE,NaN,NEGATIVE_INFINITY,POSITIVE_INFINITY,' +
|
5247 |
+
// ES2015 (in case, if modules with ES2015 Number statics required before):
|
5248 |
+
'EPSILON,isFinite,isInteger,isNaN,isSafeInteger,MAX_SAFE_INTEGER,' +
|
5249 |
+
'MIN_SAFE_INTEGER,parseFloat,parseInt,isInteger,' +
|
5250 |
+
// ESNext
|
5251 |
+
'fromString,range'
|
5252 |
+
).split(','), j = 0, key; keys.length > j; j++) {
|
5253 |
+
if (has(NativeNumber, key = keys[j]) && !has(NumberWrapper, key)) {
|
5254 |
+
defineProperty(NumberWrapper, key, getOwnPropertyDescriptor(NativeNumber, key));
|
5255 |
+
}
|
5256 |
+
}
|
5257 |
+
NumberWrapper.prototype = NumberPrototype;
|
5258 |
+
NumberPrototype.constructor = NumberWrapper;
|
5259 |
+
redefine(global, NUMBER, NumberWrapper);
|
5260 |
+
}
|
5261 |
+
|
5262 |
+
|
5263 |
+
/***/ }),
|
5264 |
+
/* 179 */
|
5265 |
+
/***/ (function(module, exports, __webpack_require__) {
|
5266 |
+
|
5267 |
+
var arrayLikeToArray = __webpack_require__(124);
|
5268 |
+
|
5269 |
+
function _arrayWithoutHoles(arr) {
|
5270 |
+
if (Array.isArray(arr)) return arrayLikeToArray(arr);
|
5271 |
+
}
|
5272 |
+
|
5273 |
+
module.exports = _arrayWithoutHoles;
|
5274 |
+
|
5275 |
+
/***/ }),
|
5276 |
+
/* 180 */
|
5277 |
+
/***/ (function(module, exports) {
|
5278 |
+
|
5279 |
+
function _iterableToArray(iter) {
|
5280 |
+
if (typeof Symbol !== "undefined" && Symbol.iterator in Object(iter)) return Array.from(iter);
|
5281 |
+
}
|
5282 |
+
|
5283 |
+
module.exports = _iterableToArray;
|
5284 |
+
|
5285 |
+
/***/ }),
|
5286 |
+
/* 181 */
|
5287 |
+
/***/ (function(module, exports) {
|
5288 |
+
|
5289 |
+
function _nonIterableSpread() {
|
5290 |
+
throw new TypeError("Invalid attempt to spread non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.");
|
5291 |
+
}
|
5292 |
+
|
5293 |
+
module.exports = _nonIterableSpread;
|
5294 |
+
|
5295 |
+
/***/ }),
|
5296 |
+
/* 182 */
|
5297 |
+
/***/ (function(module, exports) {
|
5298 |
+
|
5299 |
+
function _arrayWithHoles(arr) {
|
5300 |
+
if (Array.isArray(arr)) return arr;
|
5301 |
+
}
|
5302 |
+
|
5303 |
+
module.exports = _arrayWithHoles;
|
5304 |
+
|
5305 |
+
/***/ }),
|
5306 |
+
/* 183 */
|
5307 |
+
/***/ (function(module, exports) {
|
5308 |
+
|
5309 |
+
function _iterableToArrayLimit(arr, i) {
|
5310 |
+
if (typeof Symbol === "undefined" || !(Symbol.iterator in Object(arr))) return;
|
5311 |
+
var _arr = [];
|
5312 |
+
var _n = true;
|
5313 |
+
var _d = false;
|
5314 |
+
var _e = undefined;
|
5315 |
+
|
5316 |
+
try {
|
5317 |
+
for (var _i = arr[Symbol.iterator](), _s; !(_n = (_s = _i.next()).done); _n = true) {
|
5318 |
+
_arr.push(_s.value);
|
5319 |
+
|
5320 |
+
if (i && _arr.length === i) break;
|
5321 |
+
}
|
5322 |
+
} catch (err) {
|
5323 |
+
_d = true;
|
5324 |
+
_e = err;
|
5325 |
+
} finally {
|
5326 |
+
try {
|
5327 |
+
if (!_n && _i["return"] != null) _i["return"]();
|
5328 |
+
} finally {
|
5329 |
+
if (_d) throw _e;
|
5330 |
+
}
|
5331 |
+
}
|
5332 |
+
|
5333 |
+
return _arr;
|
5334 |
+
}
|
5335 |
+
|
5336 |
+
module.exports = _iterableToArrayLimit;
|
5337 |
+
|
5338 |
+
/***/ }),
|
5339 |
+
/* 184 */
|
5340 |
+
/***/ (function(module, exports) {
|
5341 |
+
|
5342 |
+
function _nonIterableRest() {
|
5343 |
+
throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.");
|
5344 |
+
}
|
5345 |
+
|
5346 |
+
module.exports = _nonIterableRest;
|
5347 |
+
|
5348 |
+
/***/ }),
|
5349 |
+
/* 185 */,
|
5350 |
+
/* 186 */,
|
5351 |
+
/* 187 */
|
5352 |
+
/***/ (function(module, exports, __webpack_require__) {
|
5353 |
+
|
5354 |
+
"use strict";
|
5355 |
+
|
5356 |
+
var $ = __webpack_require__(12);
|
5357 |
+
var isObject = __webpack_require__(10);
|
5358 |
+
var isArray = __webpack_require__(84);
|
5359 |
+
var toAbsoluteIndex = __webpack_require__(97);
|
5360 |
+
var toLength = __webpack_require__(34);
|
5361 |
+
var toIndexedObject = __webpack_require__(21);
|
5362 |
+
var createProperty = __webpack_require__(102);
|
5363 |
+
var wellKnownSymbol = __webpack_require__(8);
|
5364 |
+
var arrayMethodHasSpeciesSupport = __webpack_require__(89);
|
5365 |
+
|
5366 |
+
var HAS_SPECIES_SUPPORT = arrayMethodHasSpeciesSupport('slice');
|
5367 |
+
|
5368 |
+
var SPECIES = wellKnownSymbol('species');
|
5369 |
+
var nativeSlice = [].slice;
|
5370 |
+
var max = Math.max;
|
5371 |
+
|
5372 |
+
// `Array.prototype.slice` method
|
5373 |
+
// https://tc39.es/ecma262/#sec-array.prototype.slice
|
5374 |
+
// fallback for not array-like ES3 strings and DOM objects
|
5375 |
+
$({ target: 'Array', proto: true, forced: !HAS_SPECIES_SUPPORT }, {
|
5376 |
+
slice: function slice(start, end) {
|
5377 |
+
var O = toIndexedObject(this);
|
5378 |
+
var length = toLength(O.length);
|
5379 |
+
var k = toAbsoluteIndex(start, length);
|
5380 |
+
var fin = toAbsoluteIndex(end === undefined ? length : end, length);
|
5381 |
+
// inline `ArraySpeciesCreate` for usage native `Array#slice` where it's possible
|
5382 |
+
var Constructor, result, n;
|
5383 |
+
if (isArray(O)) {
|
5384 |
+
Constructor = O.constructor;
|
5385 |
+
// cross-realm fallback
|
5386 |
+
if (typeof Constructor == 'function' && (Constructor === Array || isArray(Constructor.prototype))) {
|
5387 |
+
Constructor = undefined;
|
5388 |
+
} else if (isObject(Constructor)) {
|
5389 |
+
Constructor = Constructor[SPECIES];
|
5390 |
+
if (Constructor === null) Constructor = undefined;
|
5391 |
+
}
|
5392 |
+
if (Constructor === Array || Constructor === undefined) {
|
5393 |
+
return nativeSlice.call(O, k, fin);
|
5394 |
+
}
|
5395 |
+
}
|
5396 |
+
result = new (Constructor === undefined ? Array : Constructor)(max(fin - k, 0));
|
5397 |
+
for (n = 0; k < fin; k++, n++) if (k in O) createProperty(result, n, O[k]);
|
5398 |
+
result.length = n;
|
5399 |
+
return result;
|
5400 |
+
}
|
5401 |
+
});
|
5402 |
+
|
5403 |
+
|
5404 |
+
/***/ }),
|
5405 |
+
/* 188 */
|
5406 |
+
/***/ (function(module, exports, __webpack_require__) {
|
5407 |
+
|
5408 |
+
var requireObjectCoercible = __webpack_require__(32);
|
5409 |
+
var whitespaces = __webpack_require__(189);
|
5410 |
+
|
5411 |
+
var whitespace = '[' + whitespaces + ']';
|
5412 |
+
var ltrim = RegExp('^' + whitespace + whitespace + '*');
|
5413 |
+
var rtrim = RegExp(whitespace + whitespace + '*$');
|
5414 |
+
|
5415 |
+
// `String.prototype.{ trim, trimStart, trimEnd, trimLeft, trimRight }` methods implementation
|
5416 |
+
var createMethod = function (TYPE) {
|
5417 |
+
return function ($this) {
|
5418 |
+
var string = String(requireObjectCoercible($this));
|
5419 |
+
if (TYPE & 1) string = string.replace(ltrim, '');
|
5420 |
+
if (TYPE & 2) string = string.replace(rtrim, '');
|
5421 |
+
return string;
|
5422 |
+
};
|
5423 |
+
};
|
5424 |
+
|
5425 |
+
module.exports = {
|
5426 |
+
// `String.prototype.{ trimLeft, trimStart }` methods
|
5427 |
+
// https://tc39.es/ecma262/#sec-string.prototype.trimstart
|
5428 |
+
start: createMethod(1),
|
5429 |
+
// `String.prototype.{ trimRight, trimEnd }` methods
|
5430 |
+
// https://tc39.es/ecma262/#sec-string.prototype.trimend
|
5431 |
+
end: createMethod(2),
|
5432 |
+
// `String.prototype.trim` method
|
5433 |
+
// https://tc39.es/ecma262/#sec-string.prototype.trim
|
5434 |
+
trim: createMethod(3)
|
5435 |
+
};
|
5436 |
+
|
5437 |
+
|
5438 |
+
/***/ }),
|
5439 |
+
/* 189 */
|
5440 |
+
/***/ (function(module, exports) {
|
5441 |
+
|
5442 |
+
// a string of all valid unicode whitespaces
|
5443 |
+
module.exports = '\u0009\u000A\u000B\u000C\u000D\u0020\u00A0\u1680\u2000\u2001\u2002' +
|
5444 |
+
'\u2003\u2004\u2005\u2006\u2007\u2008\u2009\u200A\u202F\u205F\u3000\u2028\u2029\uFEFF';
|
5445 |
+
|
5446 |
+
|
5447 |
+
/***/ }),
|
5448 |
+
/* 190 */,
|
5449 |
+
/* 191 */,
|
5450 |
+
/* 192 */
|
5451 |
+
/***/ (function(module, exports, __webpack_require__) {
|
5452 |
+
|
5453 |
+
"use strict";
|
5454 |
+
|
5455 |
+
var $ = __webpack_require__(12);
|
5456 |
+
var $find = __webpack_require__(75).find;
|
5457 |
+
var addToUnscopables = __webpack_require__(118);
|
5458 |
+
|
5459 |
+
var FIND = 'find';
|
5460 |
+
var SKIPS_HOLES = true;
|
5461 |
+
|
5462 |
+
// Shouldn't skip holes
|
5463 |
+
if (FIND in []) Array(1)[FIND](function () { SKIPS_HOLES = false; });
|
5464 |
+
|
5465 |
+
// `Array.prototype.find` method
|
5466 |
+
// https://tc39.es/ecma262/#sec-array.prototype.find
|
5467 |
+
$({ target: 'Array', proto: true, forced: SKIPS_HOLES }, {
|
5468 |
+
find: function find(callbackfn /* , that = undefined */) {
|
5469 |
+
return $find(this, callbackfn, arguments.length > 1 ? arguments[1] : undefined);
|
5470 |
+
}
|
5471 |
+
});
|
5472 |
+
|
5473 |
+
// https://tc39.es/ecma262/#sec-array.prototype-@@unscopables
|
5474 |
+
addToUnscopables(FIND);
|
5475 |
+
|
5476 |
+
|
5477 |
+
/***/ }),
|
5478 |
+
/* 193 */
|
5479 |
+
/***/ (function(module, exports, __webpack_require__) {
|
5480 |
+
|
5481 |
+
var global = __webpack_require__(3);
|
5482 |
+
|
5483 |
+
module.exports = global.Promise;
|
5484 |
+
|
5485 |
+
|
5486 |
+
/***/ }),
|
5487 |
+
/* 194 */
|
5488 |
+
/***/ (function(module, exports, __webpack_require__) {
|
5489 |
+
|
5490 |
+
var global = __webpack_require__(3);
|
5491 |
+
var getOwnPropertyDescriptor = __webpack_require__(33).f;
|
5492 |
+
var macrotask = __webpack_require__(157).set;
|
5493 |
+
var IS_IOS = __webpack_require__(158);
|
5494 |
+
var IS_WEBOS_WEBKIT = __webpack_require__(195);
|
5495 |
+
var IS_NODE = __webpack_require__(77);
|
5496 |
+
|
5497 |
+
var MutationObserver = global.MutationObserver || global.WebKitMutationObserver;
|
5498 |
+
var document = global.document;
|
5499 |
+
var process = global.process;
|
5500 |
+
var Promise = global.Promise;
|
5501 |
+
// Node.js 11 shows ExperimentalWarning on getting `queueMicrotask`
|
5502 |
+
var queueMicrotaskDescriptor = getOwnPropertyDescriptor(global, 'queueMicrotask');
|
5503 |
+
var queueMicrotask = queueMicrotaskDescriptor && queueMicrotaskDescriptor.value;
|
5504 |
+
|
5505 |
+
var flush, head, last, notify, toggle, node, promise, then;
|
5506 |
+
|
5507 |
+
// modern engines have queueMicrotask method
|
5508 |
+
if (!queueMicrotask) {
|
5509 |
+
flush = function () {
|
5510 |
+
var parent, fn;
|
5511 |
+
if (IS_NODE && (parent = process.domain)) parent.exit();
|
5512 |
+
while (head) {
|
5513 |
+
fn = head.fn;
|
5514 |
+
head = head.next;
|
5515 |
+
try {
|
5516 |
+
fn();
|
5517 |
+
} catch (error) {
|
5518 |
+
if (head) notify();
|
5519 |
+
else last = undefined;
|
5520 |
+
throw error;
|
5521 |
+
}
|
5522 |
+
} last = undefined;
|
5523 |
+
if (parent) parent.enter();
|
5524 |
+
};
|
5525 |
+
|
5526 |
+
// browsers with MutationObserver, except iOS - https://github.com/zloirock/core-js/issues/339
|
5527 |
+
// also except WebOS Webkit https://github.com/zloirock/core-js/issues/898
|
5528 |
+
if (!IS_IOS && !IS_NODE && !IS_WEBOS_WEBKIT && MutationObserver && document) {
|
5529 |
+
toggle = true;
|
5530 |
+
node = document.createTextNode('');
|
5531 |
+
new MutationObserver(flush).observe(node, { characterData: true });
|
5532 |
+
notify = function () {
|
5533 |
+
node.data = toggle = !toggle;
|
5534 |
+
};
|
5535 |
+
// environments with maybe non-completely correct, but existent Promise
|
5536 |
+
} else if (Promise && Promise.resolve) {
|
5537 |
+
// Promise.resolve without an argument throws an error in LG WebOS 2
|
5538 |
+
promise = Promise.resolve(undefined);
|
5539 |
+
then = promise.then;
|
5540 |
+
notify = function () {
|
5541 |
+
then.call(promise, flush);
|
5542 |
+
};
|
5543 |
+
// Node.js without promises
|
5544 |
+
} else if (IS_NODE) {
|
5545 |
+
notify = function () {
|
5546 |
+
process.nextTick(flush);
|
5547 |
+
};
|
5548 |
+
// for other environments - macrotask based on:
|
5549 |
+
// - setImmediate
|
5550 |
+
// - MessageChannel
|
5551 |
+
// - window.postMessag
|
5552 |
+
// - onreadystatechange
|
5553 |
+
// - setTimeout
|
5554 |
+
} else {
|
5555 |
+
notify = function () {
|
5556 |
+
// strange IE + webpack dev server bug - use .call(global)
|
5557 |
+
macrotask.call(global, flush);
|
5558 |
+
};
|
5559 |
+
}
|
5560 |
+
}
|
5561 |
+
|
5562 |
+
module.exports = queueMicrotask || function (fn) {
|
5563 |
+
var task = { fn: fn, next: undefined };
|
5564 |
+
if (last) last.next = task;
|
5565 |
+
if (!head) {
|
5566 |
+
head = task;
|
5567 |
+
notify();
|
5568 |
+
} last = task;
|
5569 |
+
};
|
5570 |
+
|
5571 |
+
|
5572 |
+
/***/ }),
|
5573 |
+
/* 195 */
|
5574 |
+
/***/ (function(module, exports, __webpack_require__) {
|
5575 |
+
|
5576 |
+
var userAgent = __webpack_require__(87);
|
5577 |
+
|
5578 |
+
module.exports = /web0s(?!.*chrome)/i.test(userAgent);
|
5579 |
+
|
5580 |
+
|
5581 |
+
/***/ }),
|
5582 |
+
/* 196 */
|
5583 |
+
/***/ (function(module, exports, __webpack_require__) {
|
5584 |
+
|
5585 |
+
var anObject = __webpack_require__(9);
|
5586 |
+
var isObject = __webpack_require__(10);
|
5587 |
+
var newPromiseCapability = __webpack_require__(159);
|
5588 |
+
|
5589 |
+
module.exports = function (C, x) {
|
5590 |
+
anObject(C);
|
5591 |
+
if (isObject(x) && x.constructor === C) return x;
|
5592 |
+
var promiseCapability = newPromiseCapability.f(C);
|
5593 |
+
var resolve = promiseCapability.resolve;
|
5594 |
+
resolve(x);
|
5595 |
+
return promiseCapability.promise;
|
5596 |
+
};
|
5597 |
+
|
5598 |
+
|
5599 |
+
/***/ }),
|
5600 |
+
/* 197 */
|
5601 |
+
/***/ (function(module, exports, __webpack_require__) {
|
5602 |
+
|
5603 |
+
var global = __webpack_require__(3);
|
5604 |
+
|
5605 |
+
module.exports = function (a, b) {
|
5606 |
+
var console = global.console;
|
5607 |
+
if (console && console.error) {
|
5608 |
+
arguments.length === 1 ? console.error(a) : console.error(a, b);
|
5609 |
+
}
|
5610 |
+
};
|
5611 |
+
|
5612 |
+
|
5613 |
+
/***/ }),
|
5614 |
+
/* 198 */
|
5615 |
+
/***/ (function(module, exports) {
|
5616 |
+
|
5617 |
+
module.exports = function (exec) {
|
5618 |
+
try {
|
5619 |
+
return { error: false, value: exec() };
|
5620 |
+
} catch (error) {
|
5621 |
+
return { error: true, value: error };
|
5622 |
+
}
|
5623 |
+
};
|
5624 |
+
|
5625 |
+
|
5626 |
+
/***/ }),
|
5627 |
+
/* 199 */
|
5628 |
+
/***/ (function(module, exports, __webpack_require__) {
|
5629 |
+
|
5630 |
+
"use strict";
|
5631 |
+
|
5632 |
+
var IteratorPrototype = __webpack_require__(173).IteratorPrototype;
|
5633 |
+
var create = __webpack_require__(69);
|
5634 |
+
var createPropertyDescriptor = __webpack_require__(39);
|
5635 |
+
var setToStringTag = __webpack_require__(90);
|
5636 |
+
var Iterators = __webpack_require__(110);
|
5637 |
+
|
5638 |
+
var returnThis = function () { return this; };
|
5639 |
+
|
5640 |
+
module.exports = function (IteratorConstructor, NAME, next) {
|
5641 |
+
var TO_STRING_TAG = NAME + ' Iterator';
|
5642 |
+
IteratorConstructor.prototype = create(IteratorPrototype, { next: createPropertyDescriptor(1, next) });
|
5643 |
+
setToStringTag(IteratorConstructor, TO_STRING_TAG, false, true);
|
5644 |
+
Iterators[TO_STRING_TAG] = returnThis;
|
5645 |
+
return IteratorConstructor;
|
5646 |
+
};
|
5647 |
+
|
5648 |
+
|
5649 |
+
/***/ }),
|
5650 |
+
/* 200 */
|
5651 |
+
/***/ (function(module, exports, __webpack_require__) {
|
5652 |
+
|
5653 |
+
"use strict";
|
5654 |
+
|
5655 |
+
|
5656 |
+
var formats = __webpack_require__(169);
|
5657 |
+
|
5658 |
+
var has = Object.prototype.hasOwnProperty;
|
5659 |
+
var isArray = Array.isArray;
|
5660 |
+
|
5661 |
+
var hexTable = (function () {
|
5662 |
+
var array = [];
|
5663 |
+
for (var i = 0; i < 256; ++i) {
|
5664 |
+
array.push('%' + ((i < 16 ? '0' : '') + i.toString(16)).toUpperCase());
|
5665 |
+
}
|
5666 |
+
|
5667 |
+
return array;
|
5668 |
+
}());
|
5669 |
+
|
5670 |
+
var compactQueue = function compactQueue(queue) {
|
5671 |
+
while (queue.length > 1) {
|
5672 |
+
var item = queue.pop();
|
5673 |
+
var obj = item.obj[item.prop];
|
5674 |
+
|
5675 |
+
if (isArray(obj)) {
|
5676 |
+
var compacted = [];
|
5677 |
+
|
5678 |
+
for (var j = 0; j < obj.length; ++j) {
|
5679 |
+
if (typeof obj[j] !== 'undefined') {
|
5680 |
+
compacted.push(obj[j]);
|
5681 |
+
}
|
5682 |
+
}
|
5683 |
+
|
5684 |
+
item.obj[item.prop] = compacted;
|
5685 |
+
}
|
5686 |
+
}
|
5687 |
+
};
|
5688 |
+
|
5689 |
+
var arrayToObject = function arrayToObject(source, options) {
|
5690 |
+
var obj = options && options.plainObjects ? Object.create(null) : {};
|
5691 |
+
for (var i = 0; i < source.length; ++i) {
|
5692 |
+
if (typeof source[i] !== 'undefined') {
|
5693 |
+
obj[i] = source[i];
|
5694 |
+
}
|
5695 |
+
}
|
5696 |
+
|
5697 |
+
return obj;
|
5698 |
+
};
|
5699 |
+
|
5700 |
+
var merge = function merge(target, source, options) {
|
5701 |
+
/* eslint no-param-reassign: 0 */
|
5702 |
+
if (!source) {
|
5703 |
+
return target;
|
5704 |
+
}
|
5705 |
+
|
5706 |
+
if (typeof source !== 'object') {
|
5707 |
+
if (isArray(target)) {
|
5708 |
+
target.push(source);
|
5709 |
+
} else if (target && typeof target === 'object') {
|
5710 |
+
if ((options && (options.plainObjects || options.allowPrototypes)) || !has.call(Object.prototype, source)) {
|
5711 |
+
target[source] = true;
|
5712 |
+
}
|
5713 |
+
} else {
|
5714 |
+
return [target, source];
|
5715 |
+
}
|
5716 |
+
|
5717 |
+
return target;
|
5718 |
+
}
|
5719 |
+
|
5720 |
+
if (!target || typeof target !== 'object') {
|
5721 |
+
return [target].concat(source);
|
5722 |
+
}
|
5723 |
+
|
5724 |
+
var mergeTarget = target;
|
5725 |
+
if (isArray(target) && !isArray(source)) {
|
5726 |
+
mergeTarget = arrayToObject(target, options);
|
5727 |
+
}
|
5728 |
+
|
5729 |
+
if (isArray(target) && isArray(source)) {
|
5730 |
+
source.forEach(function (item, i) {
|
5731 |
+
if (has.call(target, i)) {
|
5732 |
+
var targetItem = target[i];
|
5733 |
+
if (targetItem && typeof targetItem === 'object' && item && typeof item === 'object') {
|
5734 |
+
target[i] = merge(targetItem, item, options);
|
5735 |
+
} else {
|
5736 |
+
target.push(item);
|
5737 |
+
}
|
5738 |
+
} else {
|
5739 |
+
target[i] = item;
|
5740 |
+
}
|
5741 |
+
});
|
5742 |
+
return target;
|
5743 |
+
}
|
5744 |
+
|
5745 |
+
return Object.keys(source).reduce(function (acc, key) {
|
5746 |
+
var value = source[key];
|
5747 |
+
|
5748 |
+
if (has.call(acc, key)) {
|
5749 |
+
acc[key] = merge(acc[key], value, options);
|
5750 |
+
} else {
|
5751 |
+
acc[key] = value;
|
5752 |
+
}
|
5753 |
+
return acc;
|
5754 |
+
}, mergeTarget);
|
5755 |
+
};
|
5756 |
+
|
5757 |
+
var assign = function assignSingleSource(target, source) {
|
5758 |
+
return Object.keys(source).reduce(function (acc, key) {
|
5759 |
+
acc[key] = source[key];
|
5760 |
+
return acc;
|
5761 |
+
}, target);
|
5762 |
+
};
|
5763 |
+
|
5764 |
+
var decode = function (str, decoder, charset) {
|
5765 |
+
var strWithoutPlus = str.replace(/\+/g, ' ');
|
5766 |
+
if (charset === 'iso-8859-1') {
|
5767 |
+
// unescape never throws, no try...catch needed:
|
5768 |
+
return strWithoutPlus.replace(/%[0-9a-f]{2}/gi, unescape);
|
5769 |
+
}
|
5770 |
+
// utf-8
|
5771 |
+
try {
|
5772 |
+
return decodeURIComponent(strWithoutPlus);
|
5773 |
+
} catch (e) {
|
5774 |
+
return strWithoutPlus;
|
5775 |
+
}
|
5776 |
+
};
|
5777 |
+
|
5778 |
+
var encode = function encode(str, defaultEncoder, charset, kind, format) {
|
5779 |
+
// This code was originally written by Brian White (mscdex) for the io.js core querystring library.
|
5780 |
+
// It has been adapted here for stricter adherence to RFC 3986
|
5781 |
+
if (str.length === 0) {
|
5782 |
+
return str;
|
5783 |
+
}
|
5784 |
+
|
5785 |
+
var string = str;
|
5786 |
+
if (typeof str === 'symbol') {
|
5787 |
+
string = Symbol.prototype.toString.call(str);
|
5788 |
+
} else if (typeof str !== 'string') {
|
5789 |
+
string = String(str);
|
5790 |
+
}
|
5791 |
+
|
5792 |
+
if (charset === 'iso-8859-1') {
|
5793 |
+
return escape(string).replace(/%u[0-9a-f]{4}/gi, function ($0) {
|
5794 |
+
return '%26%23' + parseInt($0.slice(2), 16) + '%3B';
|
5795 |
+
});
|
5796 |
+
}
|
5797 |
+
|
5798 |
+
var out = '';
|
5799 |
+
for (var i = 0; i < string.length; ++i) {
|
5800 |
+
var c = string.charCodeAt(i);
|
5801 |
+
|
5802 |
+
if (
|
5803 |
+
c === 0x2D // -
|
5804 |
+
|| c === 0x2E // .
|
5805 |
+
|| c === 0x5F // _
|
5806 |
+
|| c === 0x7E // ~
|
5807 |
+
|| (c >= 0x30 && c <= 0x39) // 0-9
|
5808 |
+
|| (c >= 0x41 && c <= 0x5A) // a-z
|
5809 |
+
|| (c >= 0x61 && c <= 0x7A) // A-Z
|
5810 |
+
|| (format === formats.RFC1738 && (c === 0x28 || c === 0x29)) // ( )
|
5811 |
+
) {
|
5812 |
+
out += string.charAt(i);
|
5813 |
+
continue;
|
5814 |
+
}
|
5815 |
+
|
5816 |
+
if (c < 0x80) {
|
5817 |
+
out = out + hexTable[c];
|
5818 |
+
continue;
|
5819 |
+
}
|
5820 |
+
|
5821 |
+
if (c < 0x800) {
|
5822 |
+
out = out + (hexTable[0xC0 | (c >> 6)] + hexTable[0x80 | (c & 0x3F)]);
|
5823 |
+
continue;
|
5824 |
+
}
|
5825 |
+
|
5826 |
+
if (c < 0xD800 || c >= 0xE000) {
|
5827 |
+
out = out + (hexTable[0xE0 | (c >> 12)] + hexTable[0x80 | ((c >> 6) & 0x3F)] + hexTable[0x80 | (c & 0x3F)]);
|
5828 |
+
continue;
|
5829 |
+
}
|
5830 |
+
|
5831 |
+
i += 1;
|
5832 |
+
c = 0x10000 + (((c & 0x3FF) << 10) | (string.charCodeAt(i) & 0x3FF));
|
5833 |
+
out += hexTable[0xF0 | (c >> 18)]
|
5834 |
+
+ hexTable[0x80 | ((c >> 12) & 0x3F)]
|
5835 |
+
+ hexTable[0x80 | ((c >> 6) & 0x3F)]
|
5836 |
+
+ hexTable[0x80 | (c & 0x3F)];
|
5837 |
+
}
|
5838 |
+
|
5839 |
+
return out;
|
5840 |
+
};
|
5841 |
+
|
5842 |
+
var compact = function compact(value) {
|
5843 |
+
var queue = [{ obj: { o: value }, prop: 'o' }];
|
5844 |
+
var refs = [];
|
5845 |
+
|
5846 |
+
for (var i = 0; i < queue.length; ++i) {
|
5847 |
+
var item = queue[i];
|
5848 |
+
var obj = item.obj[item.prop];
|
5849 |
+
|
5850 |
+
var keys = Object.keys(obj);
|
5851 |
+
for (var j = 0; j < keys.length; ++j) {
|
5852 |
+
var key = keys[j];
|
5853 |
+
var val = obj[key];
|
5854 |
+
if (typeof val === 'object' && val !== null && refs.indexOf(val) === -1) {
|
5855 |
+
queue.push({ obj: obj, prop: key });
|
5856 |
+
refs.push(val);
|
5857 |
+
}
|
5858 |
+
}
|
5859 |
+
}
|
5860 |
+
|
5861 |
+
compactQueue(queue);
|
5862 |
+
|
5863 |
+
return value;
|
5864 |
+
};
|
5865 |
+
|
5866 |
+
var isRegExp = function isRegExp(obj) {
|
5867 |
+
return Object.prototype.toString.call(obj) === '[object RegExp]';
|
5868 |
+
};
|
5869 |
+
|
5870 |
+
var isBuffer = function isBuffer(obj) {
|
5871 |
+
if (!obj || typeof obj !== 'object') {
|
5872 |
+
return false;
|
5873 |
+
}
|
5874 |
+
|
5875 |
+
return !!(obj.constructor && obj.constructor.isBuffer && obj.constructor.isBuffer(obj));
|
5876 |
+
};
|
5877 |
+
|
5878 |
+
var combine = function combine(a, b) {
|
5879 |
+
return [].concat(a, b);
|
5880 |
+
};
|
5881 |
+
|
5882 |
+
var maybeMap = function maybeMap(val, fn) {
|
5883 |
+
if (isArray(val)) {
|
5884 |
+
var mapped = [];
|
5885 |
+
for (var i = 0; i < val.length; i += 1) {
|
5886 |
+
mapped.push(fn(val[i]));
|
5887 |
+
}
|
5888 |
+
return mapped;
|
5889 |
+
}
|
5890 |
+
return fn(val);
|
5891 |
+
};
|
5892 |
+
|
5893 |
+
module.exports = {
|
5894 |
+
arrayToObject: arrayToObject,
|
5895 |
+
assign: assign,
|
5896 |
+
combine: combine,
|
5897 |
+
compact: compact,
|
5898 |
+
decode: decode,
|
5899 |
+
encode: encode,
|
5900 |
+
isBuffer: isBuffer,
|
5901 |
+
isRegExp: isRegExp,
|
5902 |
+
maybeMap: maybeMap,
|
5903 |
+
merge: merge
|
5904 |
+
};
|
5905 |
+
|
5906 |
+
|
5907 |
+
/***/ }),
|
5908 |
+
/* 201 */,
|
5909 |
+
/* 202 */
|
5910 |
+
/***/ (function(module, __webpack_exports__, __webpack_require__) {
|
5911 |
+
|
5912 |
+
"use strict";
|
5913 |
+
|
5914 |
+
// EXPORTS
|
5915 |
+
__webpack_require__.d(__webpack_exports__, "a", function() { return /* binding */ createBrowserHistory; });
|
5916 |
+
__webpack_require__.d(__webpack_exports__, "c", function() { return /* binding */ createMemoryHistory; });
|
5917 |
+
__webpack_require__.d(__webpack_exports__, "b", function() { return /* binding */ createLocation; });
|
5918 |
+
__webpack_require__.d(__webpack_exports__, "e", function() { return /* binding */ locationsAreEqual; });
|
5919 |
+
__webpack_require__.d(__webpack_exports__, "d", function() { return /* binding */ createPath; });
|
5920 |
+
|
5921 |
+
// UNUSED EXPORTS: createHashHistory, parsePath
|
5922 |
+
|
5923 |
+
// EXTERNAL MODULE: ./node_modules/@babel/runtime/helpers/esm/extends.js
|
5924 |
+
var esm_extends = __webpack_require__(117);
|
5925 |
+
|
5926 |
+
// CONCATENATED MODULE: ./node_modules/resolve-pathname/esm/resolve-pathname.js
|
5927 |
+
function isAbsolute(pathname) {
|
5928 |
+
return pathname.charAt(0) === '/';
|
5929 |
+
}
|
5930 |
+
|
5931 |
+
// About 1.5x faster than the two-arg version of Array#splice()
|
5932 |
+
function spliceOne(list, index) {
|
5933 |
+
for (var i = index, k = i + 1, n = list.length; k < n; i += 1, k += 1) {
|
5934 |
+
list[i] = list[k];
|
5935 |
+
}
|
5936 |
+
|
5937 |
+
list.pop();
|
5938 |
+
}
|
5939 |
+
|
5940 |
+
// This implementation is based heavily on node's url.parse
|
5941 |
+
function resolvePathname(to, from) {
|
5942 |
+
if (from === undefined) from = '';
|
5943 |
+
|
5944 |
+
var toParts = (to && to.split('/')) || [];
|
5945 |
+
var fromParts = (from && from.split('/')) || [];
|
5946 |
+
|
5947 |
+
var isToAbs = to && isAbsolute(to);
|
5948 |
+
var isFromAbs = from && isAbsolute(from);
|
5949 |
+
var mustEndAbs = isToAbs || isFromAbs;
|
5950 |
+
|
5951 |
+
if (to && isAbsolute(to)) {
|
5952 |
+
// to is absolute
|
5953 |
+
fromParts = toParts;
|
5954 |
+
} else if (toParts.length) {
|
5955 |
+
// to is relative, drop the filename
|
5956 |
+
fromParts.pop();
|
5957 |
+
fromParts = fromParts.concat(toParts);
|
5958 |
+
}
|
5959 |
+
|
5960 |
+
if (!fromParts.length) return '/';
|
5961 |
+
|
5962 |
+
var hasTrailingSlash;
|
5963 |
+
if (fromParts.length) {
|
5964 |
+
var last = fromParts[fromParts.length - 1];
|
5965 |
+
hasTrailingSlash = last === '.' || last === '..' || last === '';
|
5966 |
+
} else {
|
5967 |
+
hasTrailingSlash = false;
|
5968 |
+
}
|
5969 |
+
|
5970 |
+
var up = 0;
|
5971 |
+
for (var i = fromParts.length; i >= 0; i--) {
|
5972 |
+
var part = fromParts[i];
|
5973 |
+
|
5974 |
+
if (part === '.') {
|
5975 |
+
spliceOne(fromParts, i);
|
5976 |
+
} else if (part === '..') {
|
5977 |
+
spliceOne(fromParts, i);
|
5978 |
+
up++;
|
5979 |
+
} else if (up) {
|
5980 |
+
spliceOne(fromParts, i);
|
5981 |
+
up--;
|
5982 |
+
}
|
5983 |
+
}
|
5984 |
+
|
5985 |
+
if (!mustEndAbs) for (; up--; up) fromParts.unshift('..');
|
5986 |
+
|
5987 |
+
if (
|
5988 |
+
mustEndAbs &&
|
5989 |
+
fromParts[0] !== '' &&
|
5990 |
+
(!fromParts[0] || !isAbsolute(fromParts[0]))
|
5991 |
+
)
|
5992 |
+
fromParts.unshift('');
|
5993 |
+
|
5994 |
+
var result = fromParts.join('/');
|
5995 |
+
|
5996 |
+
if (hasTrailingSlash && result.substr(-1) !== '/') result += '/';
|
5997 |
+
|
5998 |
+
return result;
|
5999 |
+
}
|
6000 |
+
|
6001 |
+
/* harmony default export */ var resolve_pathname = (resolvePathname);
|
6002 |
+
|
6003 |
+
// CONCATENATED MODULE: ./node_modules/value-equal/esm/value-equal.js
|
6004 |
+
function value_equal_valueOf(obj) {
|
6005 |
+
return obj.valueOf ? obj.valueOf() : Object.prototype.valueOf.call(obj);
|
6006 |
+
}
|
6007 |
+
|
6008 |
+
function valueEqual(a, b) {
|
6009 |
+
// Test for strict equality first.
|
6010 |
+
if (a === b) return true;
|
6011 |
+
|
6012 |
+
// Otherwise, if either of them == null they are not equal.
|
6013 |
+
if (a == null || b == null) return false;
|
6014 |
+
|
6015 |
+
if (Array.isArray(a)) {
|
6016 |
+
return (
|
6017 |
+
Array.isArray(b) &&
|
6018 |
+
a.length === b.length &&
|
6019 |
+
a.every(function(item, index) {
|
6020 |
+
return valueEqual(item, b[index]);
|
6021 |
+
})
|
6022 |
+
);
|
6023 |
+
}
|
6024 |
+
|
6025 |
+
if (typeof a === 'object' || typeof b === 'object') {
|
6026 |
+
var aValue = value_equal_valueOf(a);
|
6027 |
+
var bValue = value_equal_valueOf(b);
|
6028 |
+
|
6029 |
+
if (aValue !== a || bValue !== b) return valueEqual(aValue, bValue);
|
6030 |
+
|
6031 |
+
return Object.keys(Object.assign({}, a, b)).every(function(key) {
|
6032 |
+
return valueEqual(a[key], b[key]);
|
6033 |
+
});
|
6034 |
+
}
|
6035 |
+
|
6036 |
+
return false;
|
6037 |
+
}
|
6038 |
+
|
6039 |
+
/* harmony default export */ var value_equal = (valueEqual);
|
6040 |
+
|
6041 |
+
// EXTERNAL MODULE: ./node_modules/tiny-invariant/dist/tiny-invariant.esm.js
|
6042 |
+
var tiny_invariant_esm = __webpack_require__(176);
|
6043 |
+
|
6044 |
+
// CONCATENATED MODULE: ./node_modules/history/esm/history.js
|
6045 |
+
|
6046 |
+
|
6047 |
+
|
6048 |
+
|
6049 |
+
|
6050 |
+
|
6051 |
+
function addLeadingSlash(path) {
|
6052 |
+
return path.charAt(0) === '/' ? path : '/' + path;
|
6053 |
+
}
|
6054 |
+
function stripLeadingSlash(path) {
|
6055 |
+
return path.charAt(0) === '/' ? path.substr(1) : path;
|
6056 |
+
}
|
6057 |
+
function hasBasename(path, prefix) {
|
6058 |
+
return path.toLowerCase().indexOf(prefix.toLowerCase()) === 0 && '/?#'.indexOf(path.charAt(prefix.length)) !== -1;
|
6059 |
+
}
|
6060 |
+
function stripBasename(path, prefix) {
|
6061 |
+
return hasBasename(path, prefix) ? path.substr(prefix.length) : path;
|
6062 |
+
}
|
6063 |
+
function stripTrailingSlash(path) {
|
6064 |
+
return path.charAt(path.length - 1) === '/' ? path.slice(0, -1) : path;
|
6065 |
+
}
|
6066 |
+
function parsePath(path) {
|
6067 |
+
var pathname = path || '/';
|
6068 |
+
var search = '';
|
6069 |
+
var hash = '';
|
6070 |
+
var hashIndex = pathname.indexOf('#');
|
6071 |
+
|
6072 |
+
if (hashIndex !== -1) {
|
6073 |
+
hash = pathname.substr(hashIndex);
|
6074 |
+
pathname = pathname.substr(0, hashIndex);
|
6075 |
+
}
|
6076 |
+
|
6077 |
+
var searchIndex = pathname.indexOf('?');
|
6078 |
+
|
6079 |
+
if (searchIndex !== -1) {
|
6080 |
+
search = pathname.substr(searchIndex);
|
6081 |
+
pathname = pathname.substr(0, searchIndex);
|
6082 |
+
}
|
6083 |
+
|
6084 |
+
return {
|
6085 |
+
pathname: pathname,
|
6086 |
+
search: search === '?' ? '' : search,
|
6087 |
+
hash: hash === '#' ? '' : hash
|
6088 |
+
};
|
6089 |
+
}
|
6090 |
+
function createPath(location) {
|
6091 |
+
var pathname = location.pathname,
|
6092 |
+
search = location.search,
|
6093 |
+
hash = location.hash;
|
6094 |
+
var path = pathname || '/';
|
6095 |
+
if (search && search !== '?') path += search.charAt(0) === '?' ? search : "?" + search;
|
6096 |
+
if (hash && hash !== '#') path += hash.charAt(0) === '#' ? hash : "#" + hash;
|
6097 |
+
return path;
|
6098 |
+
}
|
6099 |
+
|
6100 |
+
function createLocation(path, state, key, currentLocation) {
|
6101 |
+
var location;
|
6102 |
+
|
6103 |
+
if (typeof path === 'string') {
|
6104 |
+
// Two-arg form: push(path, state)
|
6105 |
+
location = parsePath(path);
|
6106 |
+
location.state = state;
|
6107 |
+
} else {
|
6108 |
+
// One-arg form: push(location)
|
6109 |
+
location = Object(esm_extends["a" /* default */])({}, path);
|
6110 |
+
if (location.pathname === undefined) location.pathname = '';
|
6111 |
+
|
6112 |
+
if (location.search) {
|
6113 |
+
if (location.search.charAt(0) !== '?') location.search = '?' + location.search;
|
6114 |
+
} else {
|
6115 |
+
location.search = '';
|
6116 |
+
}
|
6117 |
+
|
6118 |
+
if (location.hash) {
|
6119 |
+
if (location.hash.charAt(0) !== '#') location.hash = '#' + location.hash;
|
6120 |
+
} else {
|
6121 |
+
location.hash = '';
|
6122 |
+
}
|
6123 |
+
|
6124 |
+
if (state !== undefined && location.state === undefined) location.state = state;
|
6125 |
+
}
|
6126 |
+
|
6127 |
+
try {
|
6128 |
+
location.pathname = decodeURI(location.pathname);
|
6129 |
+
} catch (e) {
|
6130 |
+
if (e instanceof URIError) {
|
6131 |
+
throw new URIError('Pathname "' + location.pathname + '" could not be decoded. ' + 'This is likely caused by an invalid percent-encoding.');
|
6132 |
+
} else {
|
6133 |
+
throw e;
|
6134 |
+
}
|
6135 |
+
}
|
6136 |
+
|
6137 |
+
if (key) location.key = key;
|
6138 |
+
|
6139 |
+
if (currentLocation) {
|
6140 |
+
// Resolve incomplete/relative pathname relative to current location.
|
6141 |
+
if (!location.pathname) {
|
6142 |
+
location.pathname = currentLocation.pathname;
|
6143 |
+
} else if (location.pathname.charAt(0) !== '/') {
|
6144 |
+
location.pathname = resolve_pathname(location.pathname, currentLocation.pathname);
|
6145 |
+
}
|
6146 |
+
} else {
|
6147 |
+
// When there is no prior location and pathname is empty, set it to /
|
6148 |
+
if (!location.pathname) {
|
6149 |
+
location.pathname = '/';
|
6150 |
+
}
|
6151 |
+
}
|
6152 |
+
|
6153 |
+
return location;
|
6154 |
+
}
|
6155 |
+
function locationsAreEqual(a, b) {
|
6156 |
+
return a.pathname === b.pathname && a.search === b.search && a.hash === b.hash && a.key === b.key && value_equal(a.state, b.state);
|
6157 |
+
}
|
6158 |
+
|
6159 |
+
function createTransitionManager() {
|
6160 |
+
var prompt = null;
|
6161 |
+
|
6162 |
+
function setPrompt(nextPrompt) {
|
6163 |
+
false ? undefined : void 0;
|
6164 |
+
prompt = nextPrompt;
|
6165 |
+
return function () {
|
6166 |
+
if (prompt === nextPrompt) prompt = null;
|
6167 |
+
};
|
6168 |
+
}
|
6169 |
+
|
6170 |
+
function confirmTransitionTo(location, action, getUserConfirmation, callback) {
|
6171 |
+
// TODO: If another transition starts while we're still confirming
|
6172 |
+
// the previous one, we may end up in a weird state. Figure out the
|
6173 |
+
// best way to handle this.
|
6174 |
+
if (prompt != null) {
|
6175 |
+
var result = typeof prompt === 'function' ? prompt(location, action) : prompt;
|
6176 |
+
|
6177 |
+
if (typeof result === 'string') {
|
6178 |
+
if (typeof getUserConfirmation === 'function') {
|
6179 |
+
getUserConfirmation(result, callback);
|
6180 |
+
} else {
|
6181 |
+
false ? undefined : void 0;
|
6182 |
+
callback(true);
|
6183 |
+
}
|
6184 |
+
} else {
|
6185 |
+
// Return false from a transition hook to cancel the transition.
|
6186 |
+
callback(result !== false);
|
6187 |
+
}
|
6188 |
+
} else {
|
6189 |
+
callback(true);
|
6190 |
+
}
|
6191 |
+
}
|
6192 |
+
|
6193 |
+
var listeners = [];
|
6194 |
+
|
6195 |
+
function appendListener(fn) {
|
6196 |
+
var isActive = true;
|
6197 |
+
|
6198 |
+
function listener() {
|
6199 |
+
if (isActive) fn.apply(void 0, arguments);
|
6200 |
+
}
|
6201 |
+
|
6202 |
+
listeners.push(listener);
|
6203 |
+
return function () {
|
6204 |
+
isActive = false;
|
6205 |
+
listeners = listeners.filter(function (item) {
|
6206 |
+
return item !== listener;
|
6207 |
+
});
|
6208 |
+
};
|
6209 |
+
}
|
6210 |
+
|
6211 |
+
function notifyListeners() {
|
6212 |
+
for (var _len = arguments.length, args = new Array(_len), _key = 0; _key < _len; _key++) {
|
6213 |
+
args[_key] = arguments[_key];
|
6214 |
+
}
|
6215 |
+
|
6216 |
+
listeners.forEach(function (listener) {
|
6217 |
+
return listener.apply(void 0, args);
|
6218 |
+
});
|
6219 |
+
}
|
6220 |
+
|
6221 |
+
return {
|
6222 |
+
setPrompt: setPrompt,
|
6223 |
+
confirmTransitionTo: confirmTransitionTo,
|
6224 |
+
appendListener: appendListener,
|
6225 |
+
notifyListeners: notifyListeners
|
6226 |
+
};
|
6227 |
+
}
|
6228 |
+
|
6229 |
+
var canUseDOM = !!(typeof window !== 'undefined' && window.document && window.document.createElement);
|
6230 |
+
function getConfirmation(message, callback) {
|
6231 |
+
callback(window.confirm(message)); // eslint-disable-line no-alert
|
6232 |
+
}
|
6233 |
+
/**
|
6234 |
+
* Returns true if the HTML5 history API is supported. Taken from Modernizr.
|
6235 |
+
*
|
6236 |
+
* https://github.com/Modernizr/Modernizr/blob/master/LICENSE
|
6237 |
+
* https://github.com/Modernizr/Modernizr/blob/master/feature-detects/history.js
|
6238 |
+
* changed to avoid false negatives for Windows Phones: https://github.com/reactjs/react-router/issues/586
|
6239 |
+
*/
|
6240 |
+
|
6241 |
+
function supportsHistory() {
|
6242 |
+
var ua = window.navigator.userAgent;
|
6243 |
+
if ((ua.indexOf('Android 2.') !== -1 || ua.indexOf('Android 4.0') !== -1) && ua.indexOf('Mobile Safari') !== -1 && ua.indexOf('Chrome') === -1 && ua.indexOf('Windows Phone') === -1) return false;
|
6244 |
+
return window.history && 'pushState' in window.history;
|
6245 |
+
}
|
6246 |
+
/**
|
6247 |
+
* Returns true if browser fires popstate on hash change.
|
6248 |
+
* IE10 and IE11 do not.
|
6249 |
+
*/
|
6250 |
+
|
6251 |
+
function supportsPopStateOnHashChange() {
|
6252 |
+
return window.navigator.userAgent.indexOf('Trident') === -1;
|
6253 |
+
}
|
6254 |
+
/**
|
6255 |
+
* Returns false if using go(n) with hash history causes a full page reload.
|
6256 |
+
*/
|
6257 |
+
|
6258 |
+
function supportsGoWithoutReloadUsingHash() {
|
6259 |
+
return window.navigator.userAgent.indexOf('Firefox') === -1;
|
6260 |
+
}
|
6261 |
+
/**
|
6262 |
+
* Returns true if a given popstate event is an extraneous WebKit event.
|
6263 |
+
* Accounts for the fact that Chrome on iOS fires real popstate events
|
6264 |
+
* containing undefined state when pressing the back button.
|
6265 |
+
*/
|
6266 |
+
|
6267 |
+
function isExtraneousPopstateEvent(event) {
|
6268 |
+
return event.state === undefined && navigator.userAgent.indexOf('CriOS') === -1;
|
6269 |
+
}
|
6270 |
+
|
6271 |
+
var PopStateEvent = 'popstate';
|
6272 |
+
var HashChangeEvent = 'hashchange';
|
6273 |
+
|
6274 |
+
function getHistoryState() {
|
6275 |
+
try {
|
6276 |
+
return window.history.state || {};
|
6277 |
+
} catch (e) {
|
6278 |
+
// IE 11 sometimes throws when accessing window.history.state
|
6279 |
+
// See https://github.com/ReactTraining/history/pull/289
|
6280 |
+
return {};
|
6281 |
+
}
|
6282 |
+
}
|
6283 |
+
/**
|
6284 |
+
* Creates a history object that uses the HTML5 history API including
|
6285 |
+
* pushState, replaceState, and the popstate event.
|
6286 |
+
*/
|
6287 |
+
|
6288 |
+
|
6289 |
+
function createBrowserHistory(props) {
|
6290 |
+
if (props === void 0) {
|
6291 |
+
props = {};
|
6292 |
+
}
|
6293 |
+
|
6294 |
+
!canUseDOM ? false ? undefined : Object(tiny_invariant_esm["a" /* default */])(false) : void 0;
|
6295 |
+
var globalHistory = window.history;
|
6296 |
+
var canUseHistory = supportsHistory();
|
6297 |
+
var needsHashChangeListener = !supportsPopStateOnHashChange();
|
6298 |
+
var _props = props,
|
6299 |
+
_props$forceRefresh = _props.forceRefresh,
|
6300 |
+
forceRefresh = _props$forceRefresh === void 0 ? false : _props$forceRefresh,
|
6301 |
+
_props$getUserConfirm = _props.getUserConfirmation,
|
6302 |
+
getUserConfirmation = _props$getUserConfirm === void 0 ? getConfirmation : _props$getUserConfirm,
|
6303 |
+
_props$keyLength = _props.keyLength,
|
6304 |
+
keyLength = _props$keyLength === void 0 ? 6 : _props$keyLength;
|
6305 |
+
var basename = props.basename ? stripTrailingSlash(addLeadingSlash(props.basename)) : '';
|
6306 |
+
|
6307 |
+
function getDOMLocation(historyState) {
|
6308 |
+
var _ref = historyState || {},
|
6309 |
+
key = _ref.key,
|
6310 |
+
state = _ref.state;
|
6311 |
+
|
6312 |
+
var _window$location = window.location,
|
6313 |
+
pathname = _window$location.pathname,
|
6314 |
+
search = _window$location.search,
|
6315 |
+
hash = _window$location.hash;
|
6316 |
+
var path = pathname + search + hash;
|
6317 |
+
false ? undefined : void 0;
|
6318 |
+
if (basename) path = stripBasename(path, basename);
|
6319 |
+
return createLocation(path, state, key);
|
6320 |
+
}
|
6321 |
+
|
6322 |
+
function createKey() {
|
6323 |
+
return Math.random().toString(36).substr(2, keyLength);
|
6324 |
+
}
|
6325 |
+
|
6326 |
+
var transitionManager = createTransitionManager();
|
6327 |
+
|
6328 |
+
function setState(nextState) {
|
6329 |
+
Object(esm_extends["a" /* default */])(history, nextState);
|
6330 |
+
|
6331 |
+
history.length = globalHistory.length;
|
6332 |
+
transitionManager.notifyListeners(history.location, history.action);
|
6333 |
+
}
|
6334 |
+
|
6335 |
+
function handlePopState(event) {
|
6336 |
+
// Ignore extraneous popstate events in WebKit.
|
6337 |
+
if (isExtraneousPopstateEvent(event)) return;
|
6338 |
+
handlePop(getDOMLocation(event.state));
|
6339 |
+
}
|
6340 |
+
|
6341 |
+
function handleHashChange() {
|
6342 |
+
handlePop(getDOMLocation(getHistoryState()));
|
6343 |
+
}
|
6344 |
+
|
6345 |
+
var forceNextPop = false;
|
6346 |
+
|
6347 |
+
function handlePop(location) {
|
6348 |
+
if (forceNextPop) {
|
6349 |
+
forceNextPop = false;
|
6350 |
+
setState();
|
6351 |
+
} else {
|
6352 |
+
var action = 'POP';
|
6353 |
+
transitionManager.confirmTransitionTo(location, action, getUserConfirmation, function (ok) {
|
6354 |
+
if (ok) {
|
6355 |
+
setState({
|
6356 |
+
action: action,
|
6357 |
+
location: location
|
6358 |
+
});
|
6359 |
+
} else {
|
6360 |
+
revertPop(location);
|
6361 |
+
}
|
6362 |
+
});
|
6363 |
+
}
|
6364 |
+
}
|
6365 |
+
|
6366 |
+
function revertPop(fromLocation) {
|
6367 |
+
var toLocation = history.location; // TODO: We could probably make this more reliable by
|
6368 |
+
// keeping a list of keys we've seen in sessionStorage.
|
6369 |
+
// Instead, we just default to 0 for keys we don't know.
|
6370 |
+
|
6371 |
+
var toIndex = allKeys.indexOf(toLocation.key);
|
6372 |
+
if (toIndex === -1) toIndex = 0;
|
6373 |
+
var fromIndex = allKeys.indexOf(fromLocation.key);
|
6374 |
+
if (fromIndex === -1) fromIndex = 0;
|
6375 |
+
var delta = toIndex - fromIndex;
|
6376 |
+
|
6377 |
+
if (delta) {
|
6378 |
+
forceNextPop = true;
|
6379 |
+
go(delta);
|
6380 |
+
}
|
6381 |
+
}
|
6382 |
+
|
6383 |
+
var initialLocation = getDOMLocation(getHistoryState());
|
6384 |
+
var allKeys = [initialLocation.key]; // Public interface
|
6385 |
+
|
6386 |
+
function createHref(location) {
|
6387 |
+
return basename + createPath(location);
|
6388 |
+
}
|
6389 |
+
|
6390 |
+
function push(path, state) {
|
6391 |
+
false ? undefined : void 0;
|
6392 |
+
var action = 'PUSH';
|
6393 |
+
var location = createLocation(path, state, createKey(), history.location);
|
6394 |
+
transitionManager.confirmTransitionTo(location, action, getUserConfirmation, function (ok) {
|
6395 |
+
if (!ok) return;
|
6396 |
+
var href = createHref(location);
|
6397 |
+
var key = location.key,
|
6398 |
+
state = location.state;
|
6399 |
+
|
6400 |
+
if (canUseHistory) {
|
6401 |
+
globalHistory.pushState({
|
6402 |
+
key: key,
|
6403 |
+
state: state
|
6404 |
+
}, null, href);
|
6405 |
+
|
6406 |
+
if (forceRefresh) {
|
6407 |
+
window.location.href = href;
|
6408 |
+
} else {
|
6409 |
+
var prevIndex = allKeys.indexOf(history.location.key);
|
6410 |
+
var nextKeys = allKeys.slice(0, prevIndex + 1);
|
6411 |
+
nextKeys.push(location.key);
|
6412 |
+
allKeys = nextKeys;
|
6413 |
+
setState({
|
6414 |
+
action: action,
|
6415 |
+
location: location
|
6416 |
+
});
|
6417 |
+
}
|
6418 |
+
} else {
|
6419 |
+
false ? undefined : void 0;
|
6420 |
+
window.location.href = href;
|
6421 |
+
}
|
6422 |
+
});
|
6423 |
+
}
|
6424 |
+
|
6425 |
+
function replace(path, state) {
|
6426 |
+
false ? undefined : void 0;
|
6427 |
+
var action = 'REPLACE';
|
6428 |
+
var location = createLocation(path, state, createKey(), history.location);
|
6429 |
+
transitionManager.confirmTransitionTo(location, action, getUserConfirmation, function (ok) {
|
6430 |
+
if (!ok) return;
|
6431 |
+
var href = createHref(location);
|
6432 |
+
var key = location.key,
|
6433 |
+
state = location.state;
|
6434 |
+
|
6435 |
+
if (canUseHistory) {
|
6436 |
+
globalHistory.replaceState({
|
6437 |
+
key: key,
|
6438 |
+
state: state
|
6439 |
+
}, null, href);
|
6440 |
+
|
6441 |
+
if (forceRefresh) {
|
6442 |
+
window.location.replace(href);
|
6443 |
+
} else {
|
6444 |
+
var prevIndex = allKeys.indexOf(history.location.key);
|
6445 |
+
if (prevIndex !== -1) allKeys[prevIndex] = location.key;
|
6446 |
+
setState({
|
6447 |
+
action: action,
|
6448 |
+
location: location
|
6449 |
+
});
|
6450 |
+
}
|
6451 |
+
} else {
|
6452 |
+
false ? undefined : void 0;
|
6453 |
+
window.location.replace(href);
|
6454 |
+
}
|
6455 |
+
});
|
6456 |
+
}
|
6457 |
+
|
6458 |
+
function go(n) {
|
6459 |
+
globalHistory.go(n);
|
6460 |
+
}
|
6461 |
+
|
6462 |
+
function goBack() {
|
6463 |
+
go(-1);
|
6464 |
+
}
|
6465 |
+
|
6466 |
+
function goForward() {
|
6467 |
+
go(1);
|
6468 |
+
}
|
6469 |
+
|
6470 |
+
var listenerCount = 0;
|
6471 |
+
|
6472 |
+
function checkDOMListeners(delta) {
|
6473 |
+
listenerCount += delta;
|
6474 |
+
|
6475 |
+
if (listenerCount === 1 && delta === 1) {
|
6476 |
+
window.addEventListener(PopStateEvent, handlePopState);
|
6477 |
+
if (needsHashChangeListener) window.addEventListener(HashChangeEvent, handleHashChange);
|
6478 |
+
} else if (listenerCount === 0) {
|
6479 |
+
window.removeEventListener(PopStateEvent, handlePopState);
|
6480 |
+
if (needsHashChangeListener) window.removeEventListener(HashChangeEvent, handleHashChange);
|
6481 |
+
}
|
6482 |
+
}
|
6483 |
+
|
6484 |
+
var isBlocked = false;
|
6485 |
+
|
6486 |
+
function block(prompt) {
|
6487 |
+
if (prompt === void 0) {
|
6488 |
+
prompt = false;
|
6489 |
+
}
|
6490 |
+
|
6491 |
+
var unblock = transitionManager.setPrompt(prompt);
|
6492 |
+
|
6493 |
+
if (!isBlocked) {
|
6494 |
+
checkDOMListeners(1);
|
6495 |
+
isBlocked = true;
|
6496 |
+
}
|
6497 |
+
|
6498 |
+
return function () {
|
6499 |
+
if (isBlocked) {
|
6500 |
+
isBlocked = false;
|
6501 |
+
checkDOMListeners(-1);
|
6502 |
+
}
|
6503 |
+
|
6504 |
+
return unblock();
|
6505 |
+
};
|
6506 |
+
}
|
6507 |
+
|
6508 |
+
function listen(listener) {
|
6509 |
+
var unlisten = transitionManager.appendListener(listener);
|
6510 |
+
checkDOMListeners(1);
|
6511 |
+
return function () {
|
6512 |
+
checkDOMListeners(-1);
|
6513 |
+
unlisten();
|
6514 |
+
};
|
6515 |
+
}
|
6516 |
+
|
6517 |
+
var history = {
|
6518 |
+
length: globalHistory.length,
|
6519 |
+
action: 'POP',
|
6520 |
+
location: initialLocation,
|
6521 |
+
createHref: createHref,
|
6522 |
+
push: push,
|
6523 |
+
replace: replace,
|
6524 |
+
go: go,
|
6525 |
+
goBack: goBack,
|
6526 |
+
goForward: goForward,
|
6527 |
+
block: block,
|
6528 |
+
listen: listen
|
6529 |
+
};
|
6530 |
+
return history;
|
6531 |
+
}
|
6532 |
+
|
6533 |
+
var HashChangeEvent$1 = 'hashchange';
|
6534 |
+
var HashPathCoders = {
|
6535 |
+
hashbang: {
|
6536 |
+
encodePath: function encodePath(path) {
|
6537 |
+
return path.charAt(0) === '!' ? path : '!/' + stripLeadingSlash(path);
|
6538 |
+
},
|
6539 |
+
decodePath: function decodePath(path) {
|
6540 |
+
return path.charAt(0) === '!' ? path.substr(1) : path;
|
6541 |
+
}
|
6542 |
+
},
|
6543 |
+
noslash: {
|
6544 |
+
encodePath: stripLeadingSlash,
|
6545 |
+
decodePath: addLeadingSlash
|
6546 |
+
},
|
6547 |
+
slash: {
|
6548 |
+
encodePath: addLeadingSlash,
|
6549 |
+
decodePath: addLeadingSlash
|
6550 |
+
}
|
6551 |
+
};
|
6552 |
+
|
6553 |
+
function stripHash(url) {
|
6554 |
+
var hashIndex = url.indexOf('#');
|
6555 |
+
return hashIndex === -1 ? url : url.slice(0, hashIndex);
|
6556 |
+
}
|
6557 |
+
|
6558 |
+
function getHashPath() {
|
6559 |
+
// We can't use window.location.hash here because it's not
|
6560 |
+
// consistent across browsers - Firefox will pre-decode it!
|
6561 |
+
var href = window.location.href;
|
6562 |
+
var hashIndex = href.indexOf('#');
|
6563 |
+
return hashIndex === -1 ? '' : href.substring(hashIndex + 1);
|
6564 |
+
}
|
6565 |
+
|
6566 |
+
function pushHashPath(path) {
|
6567 |
+
window.location.hash = path;
|
6568 |
+
}
|
6569 |
+
|
6570 |
+
function replaceHashPath(path) {
|
6571 |
+
window.location.replace(stripHash(window.location.href) + '#' + path);
|
6572 |
+
}
|
6573 |
+
|
6574 |
+
function createHashHistory(props) {
|
6575 |
+
if (props === void 0) {
|
6576 |
+
props = {};
|
6577 |
+
}
|
6578 |
+
|
6579 |
+
!canUseDOM ? false ? undefined : Object(tiny_invariant_esm["a" /* default */])(false) : void 0;
|
6580 |
+
var globalHistory = window.history;
|
6581 |
+
var canGoWithoutReload = supportsGoWithoutReloadUsingHash();
|
6582 |
+
var _props = props,
|
6583 |
+
_props$getUserConfirm = _props.getUserConfirmation,
|
6584 |
+
getUserConfirmation = _props$getUserConfirm === void 0 ? getConfirmation : _props$getUserConfirm,
|
6585 |
+
_props$hashType = _props.hashType,
|
6586 |
+
hashType = _props$hashType === void 0 ? 'slash' : _props$hashType;
|
6587 |
+
var basename = props.basename ? stripTrailingSlash(addLeadingSlash(props.basename)) : '';
|
6588 |
+
var _HashPathCoders$hashT = HashPathCoders[hashType],
|
6589 |
+
encodePath = _HashPathCoders$hashT.encodePath,
|
6590 |
+
decodePath = _HashPathCoders$hashT.decodePath;
|
6591 |
+
|
6592 |
+
function getDOMLocation() {
|
6593 |
+
var path = decodePath(getHashPath());
|
6594 |
+
false ? undefined : void 0;
|
6595 |
+
if (basename) path = stripBasename(path, basename);
|
6596 |
+
return createLocation(path);
|
6597 |
+
}
|
6598 |
+
|
6599 |
+
var transitionManager = createTransitionManager();
|
6600 |
+
|
6601 |
+
function setState(nextState) {
|
6602 |
+
Object(esm_extends["a" /* default */])(history, nextState);
|
6603 |
+
|
6604 |
+
history.length = globalHistory.length;
|
6605 |
+
transitionManager.notifyListeners(history.location, history.action);
|
6606 |
+
}
|
6607 |
+
|
6608 |
+
var forceNextPop = false;
|
6609 |
+
var ignorePath = null;
|
6610 |
+
|
6611 |
+
function locationsAreEqual$$1(a, b) {
|
6612 |
+
return a.pathname === b.pathname && a.search === b.search && a.hash === b.hash;
|
6613 |
+
}
|
6614 |
+
|
6615 |
+
function handleHashChange() {
|
6616 |
+
var path = getHashPath();
|
6617 |
+
var encodedPath = encodePath(path);
|
6618 |
+
|
6619 |
+
if (path !== encodedPath) {
|
6620 |
+
// Ensure we always have a properly-encoded hash.
|
6621 |
+
replaceHashPath(encodedPath);
|
6622 |
+
} else {
|
6623 |
+
var location = getDOMLocation();
|
6624 |
+
var prevLocation = history.location;
|
6625 |
+
if (!forceNextPop && locationsAreEqual$$1(prevLocation, location)) return; // A hashchange doesn't always == location change.
|
6626 |
+
|
6627 |
+
if (ignorePath === createPath(location)) return; // Ignore this change; we already setState in push/replace.
|
6628 |
+
|
6629 |
+
ignorePath = null;
|
6630 |
+
handlePop(location);
|
6631 |
+
}
|
6632 |
+
}
|
6633 |
+
|
6634 |
+
function handlePop(location) {
|
6635 |
+
if (forceNextPop) {
|
6636 |
+
forceNextPop = false;
|
6637 |
+
setState();
|
6638 |
+
} else {
|
6639 |
+
var action = 'POP';
|
6640 |
+
transitionManager.confirmTransitionTo(location, action, getUserConfirmation, function (ok) {
|
6641 |
+
if (ok) {
|
6642 |
+
setState({
|
6643 |
+
action: action,
|
6644 |
+
location: location
|
6645 |
+
});
|
6646 |
+
} else {
|
6647 |
+
revertPop(location);
|
6648 |
+
}
|
6649 |
+
});
|
6650 |
+
}
|
6651 |
+
}
|
6652 |
+
|
6653 |
+
function revertPop(fromLocation) {
|
6654 |
+
var toLocation = history.location; // TODO: We could probably make this more reliable by
|
6655 |
+
// keeping a list of paths we've seen in sessionStorage.
|
6656 |
+
// Instead, we just default to 0 for paths we don't know.
|
6657 |
+
|
6658 |
+
var toIndex = allPaths.lastIndexOf(createPath(toLocation));
|
6659 |
+
if (toIndex === -1) toIndex = 0;
|
6660 |
+
var fromIndex = allPaths.lastIndexOf(createPath(fromLocation));
|
6661 |
+
if (fromIndex === -1) fromIndex = 0;
|
6662 |
+
var delta = toIndex - fromIndex;
|
6663 |
+
|
6664 |
+
if (delta) {
|
6665 |
+
forceNextPop = true;
|
6666 |
+
go(delta);
|
6667 |
+
}
|
6668 |
+
} // Ensure the hash is encoded properly before doing anything else.
|
6669 |
+
|
6670 |
+
|
6671 |
+
var path = getHashPath();
|
6672 |
+
var encodedPath = encodePath(path);
|
6673 |
+
if (path !== encodedPath) replaceHashPath(encodedPath);
|
6674 |
+
var initialLocation = getDOMLocation();
|
6675 |
+
var allPaths = [createPath(initialLocation)]; // Public interface
|
6676 |
+
|
6677 |
+
function createHref(location) {
|
6678 |
+
var baseTag = document.querySelector('base');
|
6679 |
+
var href = '';
|
6680 |
+
|
6681 |
+
if (baseTag && baseTag.getAttribute('href')) {
|
6682 |
+
href = stripHash(window.location.href);
|
6683 |
+
}
|
6684 |
+
|
6685 |
+
return href + '#' + encodePath(basename + createPath(location));
|
6686 |
+
}
|
6687 |
+
|
6688 |
+
function push(path, state) {
|
6689 |
+
false ? undefined : void 0;
|
6690 |
+
var action = 'PUSH';
|
6691 |
+
var location = createLocation(path, undefined, undefined, history.location);
|
6692 |
+
transitionManager.confirmTransitionTo(location, action, getUserConfirmation, function (ok) {
|
6693 |
+
if (!ok) return;
|
6694 |
+
var path = createPath(location);
|
6695 |
+
var encodedPath = encodePath(basename + path);
|
6696 |
+
var hashChanged = getHashPath() !== encodedPath;
|
6697 |
+
|
6698 |
+
if (hashChanged) {
|
6699 |
+
// We cannot tell if a hashchange was caused by a PUSH, so we'd
|
6700 |
+
// rather setState here and ignore the hashchange. The caveat here
|
6701 |
+
// is that other hash histories in the page will consider it a POP.
|
6702 |
+
ignorePath = path;
|
6703 |
+
pushHashPath(encodedPath);
|
6704 |
+
var prevIndex = allPaths.lastIndexOf(createPath(history.location));
|
6705 |
+
var nextPaths = allPaths.slice(0, prevIndex + 1);
|
6706 |
+
nextPaths.push(path);
|
6707 |
+
allPaths = nextPaths;
|
6708 |
+
setState({
|
6709 |
+
action: action,
|
6710 |
+
location: location
|
6711 |
+
});
|
6712 |
+
} else {
|
6713 |
+
false ? undefined : void 0;
|
6714 |
+
setState();
|
6715 |
+
}
|
6716 |
+
});
|
6717 |
+
}
|
6718 |
+
|
6719 |
+
function replace(path, state) {
|
6720 |
+
false ? undefined : void 0;
|
6721 |
+
var action = 'REPLACE';
|
6722 |
+
var location = createLocation(path, undefined, undefined, history.location);
|
6723 |
+
transitionManager.confirmTransitionTo(location, action, getUserConfirmation, function (ok) {
|
6724 |
+
if (!ok) return;
|
6725 |
+
var path = createPath(location);
|
6726 |
+
var encodedPath = encodePath(basename + path);
|
6727 |
+
var hashChanged = getHashPath() !== encodedPath;
|
6728 |
+
|
6729 |
+
if (hashChanged) {
|
6730 |
+
// We cannot tell if a hashchange was caused by a REPLACE, so we'd
|
6731 |
+
// rather setState here and ignore the hashchange. The caveat here
|
6732 |
+
// is that other hash histories in the page will consider it a POP.
|
6733 |
+
ignorePath = path;
|
6734 |
+
replaceHashPath(encodedPath);
|
6735 |
+
}
|
6736 |
+
|
6737 |
+
var prevIndex = allPaths.indexOf(createPath(history.location));
|
6738 |
+
if (prevIndex !== -1) allPaths[prevIndex] = path;
|
6739 |
+
setState({
|
6740 |
+
action: action,
|
6741 |
+
location: location
|
6742 |
+
});
|
6743 |
+
});
|
6744 |
+
}
|
6745 |
+
|
6746 |
+
function go(n) {
|
6747 |
+
false ? undefined : void 0;
|
6748 |
+
globalHistory.go(n);
|
6749 |
+
}
|
6750 |
+
|
6751 |
+
function goBack() {
|
6752 |
+
go(-1);
|
6753 |
+
}
|
6754 |
+
|
6755 |
+
function goForward() {
|
6756 |
+
go(1);
|
6757 |
+
}
|
6758 |
+
|
6759 |
+
var listenerCount = 0;
|
6760 |
+
|
6761 |
+
function checkDOMListeners(delta) {
|
6762 |
+
listenerCount += delta;
|
6763 |
+
|
6764 |
+
if (listenerCount === 1 && delta === 1) {
|
6765 |
+
window.addEventListener(HashChangeEvent$1, handleHashChange);
|
6766 |
+
} else if (listenerCount === 0) {
|
6767 |
+
window.removeEventListener(HashChangeEvent$1, handleHashChange);
|
6768 |
+
}
|
6769 |
+
}
|
6770 |
+
|
6771 |
+
var isBlocked = false;
|
6772 |
+
|
6773 |
+
function block(prompt) {
|
6774 |
+
if (prompt === void 0) {
|
6775 |
+
prompt = false;
|
6776 |
+
}
|
6777 |
+
|
6778 |
+
var unblock = transitionManager.setPrompt(prompt);
|
6779 |
+
|
6780 |
+
if (!isBlocked) {
|
6781 |
+
checkDOMListeners(1);
|
6782 |
+
isBlocked = true;
|
6783 |
+
}
|
6784 |
+
|
6785 |
+
return function () {
|
6786 |
+
if (isBlocked) {
|
6787 |
+
isBlocked = false;
|
6788 |
+
checkDOMListeners(-1);
|
6789 |
+
}
|
6790 |
+
|
6791 |
+
return unblock();
|
6792 |
+
};
|
6793 |
+
}
|
6794 |
+
|
6795 |
+
function listen(listener) {
|
6796 |
+
var unlisten = transitionManager.appendListener(listener);
|
6797 |
+
checkDOMListeners(1);
|
6798 |
+
return function () {
|
6799 |
+
checkDOMListeners(-1);
|
6800 |
+
unlisten();
|
6801 |
+
};
|
6802 |
+
}
|
6803 |
+
|
6804 |
+
var history = {
|
6805 |
+
length: globalHistory.length,
|
6806 |
+
action: 'POP',
|
6807 |
+
location: initialLocation,
|
6808 |
+
createHref: createHref,
|
6809 |
+
push: push,
|
6810 |
+
replace: replace,
|
6811 |
+
go: go,
|
6812 |
+
goBack: goBack,
|
6813 |
+
goForward: goForward,
|
6814 |
+
block: block,
|
6815 |
+
listen: listen
|
6816 |
+
};
|
6817 |
+
return history;
|
6818 |
+
}
|
6819 |
+
|
6820 |
+
function clamp(n, lowerBound, upperBound) {
|
6821 |
+
return Math.min(Math.max(n, lowerBound), upperBound);
|
6822 |
+
}
|
6823 |
+
/**
|
6824 |
+
* Creates a history object that stores locations in memory.
|
6825 |
+
*/
|
6826 |
+
|
6827 |
+
|
6828 |
+
function createMemoryHistory(props) {
|
6829 |
+
if (props === void 0) {
|
6830 |
+
props = {};
|
6831 |
+
}
|
6832 |
+
|
6833 |
+
var _props = props,
|
6834 |
+
getUserConfirmation = _props.getUserConfirmation,
|
6835 |
+
_props$initialEntries = _props.initialEntries,
|
6836 |
+
initialEntries = _props$initialEntries === void 0 ? ['/'] : _props$initialEntries,
|
6837 |
+
_props$initialIndex = _props.initialIndex,
|
6838 |
+
initialIndex = _props$initialIndex === void 0 ? 0 : _props$initialIndex,
|
6839 |
+
_props$keyLength = _props.keyLength,
|
6840 |
+
keyLength = _props$keyLength === void 0 ? 6 : _props$keyLength;
|
6841 |
+
var transitionManager = createTransitionManager();
|
6842 |
+
|
6843 |
+
function setState(nextState) {
|
6844 |
+
Object(esm_extends["a" /* default */])(history, nextState);
|
6845 |
+
|
6846 |
+
history.length = history.entries.length;
|
6847 |
+
transitionManager.notifyListeners(history.location, history.action);
|
6848 |
+
}
|
6849 |
+
|
6850 |
+
function createKey() {
|
6851 |
+
return Math.random().toString(36).substr(2, keyLength);
|
6852 |
+
}
|
6853 |
+
|
6854 |
+
var index = clamp(initialIndex, 0, initialEntries.length - 1);
|
6855 |
+
var entries = initialEntries.map(function (entry) {
|
6856 |
+
return typeof entry === 'string' ? createLocation(entry, undefined, createKey()) : createLocation(entry, undefined, entry.key || createKey());
|
6857 |
+
}); // Public interface
|
6858 |
+
|
6859 |
+
var createHref = createPath;
|
6860 |
+
|
6861 |
+
function push(path, state) {
|
6862 |
+
false ? undefined : void 0;
|
6863 |
+
var action = 'PUSH';
|
6864 |
+
var location = createLocation(path, state, createKey(), history.location);
|
6865 |
+
transitionManager.confirmTransitionTo(location, action, getUserConfirmation, function (ok) {
|
6866 |
+
if (!ok) return;
|
6867 |
+
var prevIndex = history.index;
|
6868 |
+
var nextIndex = prevIndex + 1;
|
6869 |
+
var nextEntries = history.entries.slice(0);
|
6870 |
+
|
6871 |
+
if (nextEntries.length > nextIndex) {
|
6872 |
+
nextEntries.splice(nextIndex, nextEntries.length - nextIndex, location);
|
6873 |
+
} else {
|
6874 |
+
nextEntries.push(location);
|
6875 |
+
}
|
6876 |
+
|
6877 |
+
setState({
|
6878 |
+
action: action,
|
6879 |
+
location: location,
|
6880 |
+
index: nextIndex,
|
6881 |
+
entries: nextEntries
|
6882 |
+
});
|
6883 |
+
});
|
6884 |
+
}
|
6885 |
+
|
6886 |
+
function replace(path, state) {
|
6887 |
+
false ? undefined : void 0;
|
6888 |
+
var action = 'REPLACE';
|
6889 |
+
var location = createLocation(path, state, createKey(), history.location);
|
6890 |
+
transitionManager.confirmTransitionTo(location, action, getUserConfirmation, function (ok) {
|
6891 |
+
if (!ok) return;
|
6892 |
+
history.entries[history.index] = location;
|
6893 |
+
setState({
|
6894 |
+
action: action,
|
6895 |
+
location: location
|
6896 |
+
});
|
6897 |
+
});
|
6898 |
+
}
|
6899 |
+
|
6900 |
+
function go(n) {
|
6901 |
+
var nextIndex = clamp(history.index + n, 0, history.entries.length - 1);
|
6902 |
+
var action = 'POP';
|
6903 |
+
var location = history.entries[nextIndex];
|
6904 |
+
transitionManager.confirmTransitionTo(location, action, getUserConfirmation, function (ok) {
|
6905 |
+
if (ok) {
|
6906 |
+
setState({
|
6907 |
+
action: action,
|
6908 |
+
location: location,
|
6909 |
+
index: nextIndex
|
6910 |
+
});
|
6911 |
+
} else {
|
6912 |
+
// Mimic the behavior of DOM histories by
|
6913 |
+
// causing a render after a cancelled POP.
|
6914 |
+
setState();
|
6915 |
+
}
|
6916 |
+
});
|
6917 |
+
}
|
6918 |
+
|
6919 |
+
function goBack() {
|
6920 |
+
go(-1);
|
6921 |
+
}
|
6922 |
+
|
6923 |
+
function goForward() {
|
6924 |
+
go(1);
|
6925 |
+
}
|
6926 |
+
|
6927 |
+
function canGo(n) {
|
6928 |
+
var nextIndex = history.index + n;
|
6929 |
+
return nextIndex >= 0 && nextIndex < history.entries.length;
|
6930 |
+
}
|
6931 |
+
|
6932 |
+
function block(prompt) {
|
6933 |
+
if (prompt === void 0) {
|
6934 |
+
prompt = false;
|
6935 |
+
}
|
6936 |
+
|
6937 |
+
return transitionManager.setPrompt(prompt);
|
6938 |
+
}
|
6939 |
+
|
6940 |
+
function listen(listener) {
|
6941 |
+
return transitionManager.appendListener(listener);
|
6942 |
+
}
|
6943 |
+
|
6944 |
+
var history = {
|
6945 |
+
length: entries.length,
|
6946 |
+
action: 'POP',
|
6947 |
+
location: entries[index],
|
6948 |
+
index: index,
|
6949 |
+
entries: entries,
|
6950 |
+
createHref: createHref,
|
6951 |
+
push: push,
|
6952 |
+
replace: replace,
|
6953 |
+
go: go,
|
6954 |
+
goBack: goBack,
|
6955 |
+
goForward: goForward,
|
6956 |
+
canGo: canGo,
|
6957 |
+
block: block,
|
6958 |
+
listen: listen
|
6959 |
+
};
|
6960 |
+
return history;
|
6961 |
+
}
|
6962 |
+
|
6963 |
+
|
6964 |
+
|
6965 |
+
|
6966 |
+
/***/ }),
|
6967 |
+
/* 203 */
|
6968 |
+
/***/ (function(module, exports, __webpack_require__) {
|
6969 |
+
|
6970 |
+
"use strict";
|
6971 |
+
|
6972 |
+
var fixRegExpWellKnownSymbolLogic = __webpack_require__(111);
|
6973 |
+
var anObject = __webpack_require__(9);
|
6974 |
+
var toLength = __webpack_require__(34);
|
6975 |
+
var requireObjectCoercible = __webpack_require__(32);
|
6976 |
+
var advanceStringIndex = __webpack_require__(122);
|
6977 |
+
var regExpExec = __webpack_require__(112);
|
6978 |
+
|
6979 |
+
// @@match logic
|
6980 |
+
fixRegExpWellKnownSymbolLogic('match', 1, function (MATCH, nativeMatch, maybeCallNative) {
|
6981 |
+
return [
|
6982 |
+
// `String.prototype.match` method
|
6983 |
+
// https://tc39.es/ecma262/#sec-string.prototype.match
|
6984 |
+
function match(regexp) {
|
6985 |
+
var O = requireObjectCoercible(this);
|
6986 |
+
var matcher = regexp == undefined ? undefined : regexp[MATCH];
|
6987 |
+
return matcher !== undefined ? matcher.call(regexp, O) : new RegExp(regexp)[MATCH](String(O));
|
6988 |
+
},
|
6989 |
+
// `RegExp.prototype[@@match]` method
|
6990 |
+
// https://tc39.es/ecma262/#sec-regexp.prototype-@@match
|
6991 |
+
function (regexp) {
|
6992 |
+
var res = maybeCallNative(nativeMatch, regexp, this);
|
6993 |
+
if (res.done) return res.value;
|
6994 |
+
|
6995 |
+
var rx = anObject(regexp);
|
6996 |
+
var S = String(this);
|
6997 |
+
|
6998 |
+
if (!rx.global) return regExpExec(rx, S);
|
6999 |
+
|
7000 |
+
var fullUnicode = rx.unicode;
|
7001 |
+
rx.lastIndex = 0;
|
7002 |
+
var A = [];
|
7003 |
+
var n = 0;
|
7004 |
+
var result;
|
7005 |
+
while ((result = regExpExec(rx, S)) !== null) {
|
7006 |
+
var matchStr = String(result[0]);
|
7007 |
+
A[n] = matchStr;
|
7008 |
+
if (matchStr === '') rx.lastIndex = advanceStringIndex(S, toLength(rx.lastIndex), fullUnicode);
|
7009 |
+
n++;
|
7010 |
+
}
|
7011 |
+
return n === 0 ? null : A;
|
7012 |
+
}
|
7013 |
+
];
|
7014 |
+
});
|
7015 |
+
|
7016 |
+
|
7017 |
+
/***/ }),
|
7018 |
+
/* 204 */
|
7019 |
+
/***/ (function(module, exports) {
|
7020 |
+
|
7021 |
+
function _setPrototypeOf(o, p) {
|
7022 |
+
module.exports = _setPrototypeOf = Object.setPrototypeOf || function _setPrototypeOf(o, p) {
|
7023 |
+
o.__proto__ = p;
|
7024 |
+
return o;
|
7025 |
+
};
|
7026 |
+
|
7027 |
+
return _setPrototypeOf(o, p);
|
7028 |
+
}
|
7029 |
+
|
7030 |
+
module.exports = _setPrototypeOf;
|
7031 |
+
|
7032 |
+
/***/ }),
|
7033 |
+
/* 205 */
|
7034 |
+
/***/ (function(module, exports, __webpack_require__) {
|
7035 |
+
|
7036 |
+
var hiddenKeys = __webpack_require__(36);
|
7037 |
+
var isObject = __webpack_require__(10);
|
7038 |
+
var has = __webpack_require__(11);
|
7039 |
+
var defineProperty = __webpack_require__(17).f;
|
7040 |
+
var uid = __webpack_require__(55);
|
7041 |
+
var FREEZING = __webpack_require__(253);
|
7042 |
+
|
7043 |
+
var METADATA = uid('meta');
|
7044 |
+
var id = 0;
|
7045 |
+
|
7046 |
+
var isExtensible = Object.isExtensible || function () {
|
7047 |
+
return true;
|
7048 |
+
};
|
7049 |
+
|
7050 |
+
var setMetadata = function (it) {
|
7051 |
+
defineProperty(it, METADATA, { value: {
|
7052 |
+
objectID: 'O' + ++id, // object ID
|
7053 |
+
weakData: {} // weak collections IDs
|
7054 |
+
} });
|
7055 |
+
};
|
7056 |
+
|
7057 |
+
var fastKey = function (it, create) {
|
7058 |
+
// return a primitive with prefix
|
7059 |
+
if (!isObject(it)) return typeof it == 'symbol' ? it : (typeof it == 'string' ? 'S' : 'P') + it;
|
7060 |
+
if (!has(it, METADATA)) {
|
7061 |
+
// can't set metadata to uncaught frozen object
|
7062 |
+
if (!isExtensible(it)) return 'F';
|
7063 |
+
// not necessary to add metadata
|
7064 |
+
if (!create) return 'E';
|
7065 |
+
// add missing metadata
|
7066 |
+
setMetadata(it);
|
7067 |
+
// return object ID
|
7068 |
+
} return it[METADATA].objectID;
|
7069 |
+
};
|
7070 |
+
|
7071 |
+
var getWeakData = function (it, create) {
|
7072 |
+
if (!has(it, METADATA)) {
|
7073 |
+
// can't set metadata to uncaught frozen object
|
7074 |
+
if (!isExtensible(it)) return true;
|
7075 |
+
// not necessary to add metadata
|
7076 |
+
if (!create) return false;
|
7077 |
+
// add missing metadata
|
7078 |
+
setMetadata(it);
|
7079 |
+
// return the store of weak collections IDs
|
7080 |
+
} return it[METADATA].weakData;
|
7081 |
+
};
|
7082 |
+
|
7083 |
+
// add metadata on freeze-family methods calling
|
7084 |
+
var onFreeze = function (it) {
|
7085 |
+
if (FREEZING && meta.REQUIRED && isExtensible(it) && !has(it, METADATA)) setMetadata(it);
|
7086 |
+
return it;
|
7087 |
+
};
|
7088 |
+
|
7089 |
+
var meta = module.exports = {
|
7090 |
+
REQUIRED: false,
|
7091 |
+
fastKey: fastKey,
|
7092 |
+
getWeakData: getWeakData,
|
7093 |
+
onFreeze: onFreeze
|
7094 |
+
};
|
7095 |
+
|
7096 |
+
hiddenKeys[METADATA] = true;
|
7097 |
+
|
7098 |
+
|
7099 |
+
/***/ }),
|
7100 |
+
/* 206 */,
|
7101 |
+
/* 207 */
|
7102 |
+
/***/ (function(module, exports, __webpack_require__) {
|
7103 |
+
|
7104 |
+
var isRegExp = __webpack_require__(144);
|
7105 |
+
|
7106 |
+
module.exports = function (it) {
|
7107 |
+
if (isRegExp(it)) {
|
7108 |
+
throw TypeError("The method doesn't accept regular expressions");
|
7109 |
+
} return it;
|
7110 |
+
};
|
7111 |
+
|
7112 |
+
|
7113 |
+
/***/ }),
|
7114 |
+
/* 208 */
|
7115 |
+
/***/ (function(module, exports, __webpack_require__) {
|
7116 |
+
|
7117 |
+
var wellKnownSymbol = __webpack_require__(8);
|
7118 |
+
|
7119 |
+
var MATCH = wellKnownSymbol('match');
|
7120 |
+
|
7121 |
+
module.exports = function (METHOD_NAME) {
|
7122 |
+
var regexp = /./;
|
7123 |
+
try {
|
7124 |
+
'/./'[METHOD_NAME](regexp);
|
7125 |
+
} catch (error1) {
|
7126 |
+
try {
|
7127 |
+
regexp[MATCH] = false;
|
7128 |
+
return '/./'[METHOD_NAME](regexp);
|
7129 |
+
} catch (error2) { /* empty */ }
|
7130 |
+
} return false;
|
7131 |
+
};
|
7132 |
+
|
7133 |
+
|
7134 |
+
/***/ }),
|
7135 |
+
/* 209 */
|
7136 |
+
/***/ (function(module, exports, __webpack_require__) {
|
7137 |
+
|
7138 |
+
var DESCRIPTORS = __webpack_require__(13);
|
7139 |
+
var global = __webpack_require__(3);
|
7140 |
+
var isForced = __webpack_require__(74);
|
7141 |
+
var inheritIfRequired = __webpack_require__(156);
|
7142 |
+
var defineProperty = __webpack_require__(17).f;
|
7143 |
+
var getOwnPropertyNames = __webpack_require__(56).f;
|
7144 |
+
var isRegExp = __webpack_require__(144);
|
7145 |
+
var getFlags = __webpack_require__(114);
|
7146 |
+
var stickyHelpers = __webpack_require__(137);
|
7147 |
+
var redefine = __webpack_require__(27);
|
7148 |
+
var fails = __webpack_require__(6);
|
7149 |
+
var setInternalState = __webpack_require__(45).set;
|
7150 |
+
var setSpecies = __webpack_require__(153);
|
7151 |
+
var wellKnownSymbol = __webpack_require__(8);
|
7152 |
+
|
7153 |
+
var MATCH = wellKnownSymbol('match');
|
7154 |
+
var NativeRegExp = global.RegExp;
|
7155 |
+
var RegExpPrototype = NativeRegExp.prototype;
|
7156 |
+
var re1 = /a/g;
|
7157 |
+
var re2 = /a/g;
|
7158 |
+
|
7159 |
+
// "new" should create a new object, old webkit bug
|
7160 |
+
var CORRECT_NEW = new NativeRegExp(re1) !== re1;
|
7161 |
+
|
7162 |
+
var UNSUPPORTED_Y = stickyHelpers.UNSUPPORTED_Y;
|
7163 |
+
|
7164 |
+
var FORCED = DESCRIPTORS && isForced('RegExp', (!CORRECT_NEW || UNSUPPORTED_Y || fails(function () {
|
7165 |
+
re2[MATCH] = false;
|
7166 |
+
// RegExp constructor can alter flags and IsRegExp works correct with @@match
|
7167 |
+
return NativeRegExp(re1) != re1 || NativeRegExp(re2) == re2 || NativeRegExp(re1, 'i') != '/a/i';
|
7168 |
+
})));
|
7169 |
+
|
7170 |
+
// `RegExp` constructor
|
7171 |
+
// https://tc39.es/ecma262/#sec-regexp-constructor
|
7172 |
+
if (FORCED) {
|
7173 |
+
var RegExpWrapper = function RegExp(pattern, flags) {
|
7174 |
+
var thisIsRegExp = this instanceof RegExpWrapper;
|
7175 |
+
var patternIsRegExp = isRegExp(pattern);
|
7176 |
+
var flagsAreUndefined = flags === undefined;
|
7177 |
+
var sticky;
|
7178 |
+
|
7179 |
+
if (!thisIsRegExp && patternIsRegExp && pattern.constructor === RegExpWrapper && flagsAreUndefined) {
|
7180 |
+
return pattern;
|
7181 |
+
}
|
7182 |
+
|
7183 |
+
if (CORRECT_NEW) {
|
7184 |
+
if (patternIsRegExp && !flagsAreUndefined) pattern = pattern.source;
|
7185 |
+
} else if (pattern instanceof RegExpWrapper) {
|
7186 |
+
if (flagsAreUndefined) flags = getFlags.call(pattern);
|
7187 |
+
pattern = pattern.source;
|
7188 |
+
}
|
7189 |
+
|
7190 |
+
if (UNSUPPORTED_Y) {
|
7191 |
+
sticky = !!flags && flags.indexOf('y') > -1;
|
7192 |
+
if (sticky) flags = flags.replace(/y/g, '');
|
7193 |
+
}
|
7194 |
+
|
7195 |
+
var result = inheritIfRequired(
|
7196 |
+
CORRECT_NEW ? new NativeRegExp(pattern, flags) : NativeRegExp(pattern, flags),
|
7197 |
+
thisIsRegExp ? this : RegExpPrototype,
|
7198 |
+
RegExpWrapper
|
7199 |
+
);
|
7200 |
+
|
7201 |
+
if (UNSUPPORTED_Y && sticky) setInternalState(result, { sticky: sticky });
|
7202 |
+
|
7203 |
+
return result;
|
7204 |
+
};
|
7205 |
+
var proxy = function (key) {
|
7206 |
+
key in RegExpWrapper || defineProperty(RegExpWrapper, key, {
|
7207 |
+
configurable: true,
|
7208 |
+
get: function () { return NativeRegExp[key]; },
|
7209 |
+
set: function (it) { NativeRegExp[key] = it; }
|
7210 |
+
});
|
7211 |
+
};
|
7212 |
+
var keys = getOwnPropertyNames(NativeRegExp);
|
7213 |
+
var index = 0;
|
7214 |
+
while (keys.length > index) proxy(keys[index++]);
|
7215 |
+
RegExpPrototype.constructor = RegExpWrapper;
|
7216 |
+
RegExpWrapper.prototype = RegExpPrototype;
|
7217 |
+
redefine(global, 'RegExp', RegExpWrapper);
|
7218 |
+
}
|
7219 |
+
|
7220 |
+
// https://tc39.es/ecma262/#sec-get-regexp-@@species
|
7221 |
+
setSpecies('RegExp');
|
7222 |
+
|
7223 |
+
|
7224 |
+
/***/ }),
|
7225 |
+
/* 210 */
|
7226 |
+
/***/ (function(module, __webpack_exports__, __webpack_require__) {
|
7227 |
+
|
7228 |
+
"use strict";
|
7229 |
+
/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "c", function() { return STORE_KEY; });
|
7230 |
+
/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "a", function() { return API_NAMESPACE; });
|
7231 |
+
/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "b", function() { return QUEUE_OPTION_NAME; });
|
7232 |
+
var STORE_KEY = 'wc/customer-effort-score';
|
7233 |
+
var API_NAMESPACE = '/wc-admin';
|
7234 |
+
var QUEUE_OPTION_NAME = 'woocommerce_ces_tracks_queue';
|
7235 |
+
|
7236 |
+
/***/ }),
|
7237 |
+
/* 211 */
|
7238 |
+
/***/ (function(module, exports) {
|
7239 |
+
|
7240 |
+
(function() { module.exports = window["wp"]["date"]; }());
|
7241 |
+
|
7242 |
+
/***/ }),
|
7243 |
+
/* 212 */
|
7244 |
+
/***/ (function(module, exports, __webpack_require__) {
|
7245 |
+
|
7246 |
+
"use strict";
|
7247 |
+
|
7248 |
+
var aFunction = __webpack_require__(70);
|
7249 |
+
var isObject = __webpack_require__(10);
|
7250 |
+
|
7251 |
+
var slice = [].slice;
|
7252 |
+
var factories = {};
|
7253 |
+
|
7254 |
+
var construct = function (C, argsLength, args) {
|
7255 |
+
if (!(argsLength in factories)) {
|
7256 |
+
for (var list = [], i = 0; i < argsLength; i++) list[i] = 'a[' + i + ']';
|
7257 |
+
// eslint-disable-next-line no-new-func -- we have no proper alternatives, IE8- only
|
7258 |
+
factories[argsLength] = Function('C,a', 'return new C(' + list.join(',') + ')');
|
7259 |
+
} return factories[argsLength](C, args);
|
7260 |
+
};
|
7261 |
+
|
7262 |
+
// `Function.prototype.bind` method implementation
|
7263 |
+
// https://tc39.es/ecma262/#sec-function.prototype.bind
|
7264 |
+
module.exports = Function.bind || function bind(that /* , ...args */) {
|
7265 |
+
var fn = aFunction(this);
|
7266 |
+
var partArgs = slice.call(arguments, 1);
|
7267 |
+
var boundFunction = function bound(/* args... */) {
|
7268 |
+
var args = partArgs.concat(slice.call(arguments));
|
7269 |
+
return this instanceof boundFunction ? construct(fn, args.length, args) : fn.apply(that, args);
|
7270 |
+
};
|
7271 |
+
if (isObject(fn.prototype)) boundFunction.prototype = fn.prototype;
|
7272 |
+
return boundFunction;
|
7273 |
+
};
|
7274 |
+
|
7275 |
+
|
7276 |
+
/***/ }),
|
7277 |
+
/* 213 */
|
7278 |
+
/***/ (function(module, exports, __webpack_require__) {
|
7279 |
+
|
7280 |
+
var fails = __webpack_require__(6);
|
7281 |
+
|
7282 |
+
module.exports = !fails(function () {
|
7283 |
+
function F() { /* empty */ }
|
7284 |
+
F.prototype.constructor = null;
|
7285 |
+
return Object.getPrototypeOf(new F()) !== F.prototype;
|
7286 |
+
});
|
7287 |
+
|
7288 |
+
|
7289 |
+
/***/ }),
|
7290 |
+
/* 214 */
|
7291 |
+
/***/ (function(module, exports) {
|
7292 |
+
|
7293 |
+
// `SameValue` abstract operation
|
7294 |
+
// https://tc39.es/ecma262/#sec-samevalue
|
7295 |
+
module.exports = Object.is || function is(x, y) {
|
7296 |
+
// eslint-disable-next-line no-self-compare -- NaN check
|
7297 |
+
return x === y ? x !== 0 || 1 / x === 1 / y : x != x && y != y;
|
7298 |
+
};
|
7299 |
+
|
7300 |
+
|
7301 |
+
/***/ }),
|
7302 |
+
/* 215 */
|
7303 |
+
/***/ (function(module, exports, __webpack_require__) {
|
7304 |
+
|
7305 |
+
"use strict";
|
7306 |
+
/**
|
7307 |
+
* Copyright (c) 2013-present, Facebook, Inc.
|
7308 |
+
*
|
7309 |
+
* This source code is licensed under the MIT license found in the
|
7310 |
+
* LICENSE file in the root directory of this source tree.
|
7311 |
+
*/
|
7312 |
+
|
7313 |
+
|
7314 |
+
|
7315 |
+
var ReactPropTypesSecret = __webpack_require__(216);
|
7316 |
+
|
7317 |
+
function emptyFunction() {}
|
7318 |
+
function emptyFunctionWithReset() {}
|
7319 |
+
emptyFunctionWithReset.resetWarningCache = emptyFunction;
|
7320 |
+
|
7321 |
+
module.exports = function() {
|
7322 |
+
function shim(props, propName, componentName, location, propFullName, secret) {
|
7323 |
+
if (secret === ReactPropTypesSecret) {
|
7324 |
+
// It is still safe when called from React.
|
7325 |
+
return;
|
7326 |
+
}
|
7327 |
+
var err = new Error(
|
7328 |
+
'Calling PropTypes validators directly is not supported by the `prop-types` package. ' +
|
7329 |
+
'Use PropTypes.checkPropTypes() to call them. ' +
|
7330 |
+
'Read more at http://fb.me/use-check-prop-types'
|
7331 |
+
);
|
7332 |
+
err.name = 'Invariant Violation';
|
7333 |
+
throw err;
|
7334 |
+
};
|
7335 |
+
shim.isRequired = shim;
|
7336 |
+
function getShim() {
|
7337 |
+
return shim;
|
7338 |
+
};
|
7339 |
+
// Important!
|
7340 |
+
// Keep this list in sync with production version in `./factoryWithTypeCheckers.js`.
|
7341 |
+
var ReactPropTypes = {
|
7342 |
+
array: shim,
|
7343 |
+
bool: shim,
|
7344 |
+
func: shim,
|
7345 |
+
number: shim,
|
7346 |
+
object: shim,
|
7347 |
+
string: shim,
|
7348 |
+
symbol: shim,
|
7349 |
+
|
7350 |
+
any: shim,
|
7351 |
+
arrayOf: getShim,
|
7352 |
+
element: shim,
|
7353 |
+
elementType: shim,
|
7354 |
+
instanceOf: getShim,
|
7355 |
+
node: shim,
|
7356 |
+
objectOf: getShim,
|
7357 |
+
oneOf: getShim,
|
7358 |
+
oneOfType: getShim,
|
7359 |
+
shape: getShim,
|
7360 |
+
exact: getShim,
|
7361 |
+
|
7362 |
+
checkPropTypes: emptyFunctionWithReset,
|
7363 |
+
resetWarningCache: emptyFunction
|
7364 |
+
};
|
7365 |
+
|
7366 |
+
ReactPropTypes.PropTypes = ReactPropTypes;
|
7367 |
+
|
7368 |
+
return ReactPropTypes;
|
7369 |
+
};
|
7370 |
+
|
7371 |
+
|
7372 |
+
/***/ }),
|
7373 |
+
/* 216 */
|
7374 |
+
/***/ (function(module, exports, __webpack_require__) {
|
7375 |
+
|
7376 |
+
"use strict";
|
7377 |
+
/**
|
7378 |
+
* Copyright (c) 2013-present, Facebook, Inc.
|
7379 |
+
*
|
7380 |
+
* This source code is licensed under the MIT license found in the
|
7381 |
+
* LICENSE file in the root directory of this source tree.
|
7382 |
+
*/
|
7383 |
+
|
7384 |
+
|
7385 |
+
|
7386 |
+
var ReactPropTypesSecret = 'SECRET_DO_NOT_PASS_THIS_OR_YOU_WILL_BE_FIRED';
|
7387 |
+
|
7388 |
+
module.exports = ReactPropTypesSecret;
|
7389 |
+
|
7390 |
+
|
7391 |
+
/***/ }),
|
7392 |
+
/* 217 */,
|
7393 |
+
/* 218 */,
|
7394 |
+
/* 219 */,
|
7395 |
+
/* 220 */,
|
7396 |
+
/* 221 */
|
7397 |
+
/***/ (function(module, exports, __webpack_require__) {
|
7398 |
+
|
7399 |
+
"use strict";
|
7400 |
+
|
7401 |
+
var DESCRIPTORS = __webpack_require__(13);
|
7402 |
+
var fails = __webpack_require__(6);
|
7403 |
+
var objectKeys = __webpack_require__(54);
|
7404 |
+
var getOwnPropertySymbolsModule = __webpack_require__(79);
|
7405 |
+
var propertyIsEnumerableModule = __webpack_require__(76);
|
7406 |
+
var toObject = __webpack_require__(38);
|
7407 |
+
var IndexedObject = __webpack_require__(71);
|
7408 |
+
|
7409 |
+
var nativeAssign = Object.assign;
|
7410 |
+
var defineProperty = Object.defineProperty;
|
7411 |
+
|
7412 |
+
// `Object.assign` method
|
7413 |
+
// https://tc39.es/ecma262/#sec-object.assign
|
7414 |
+
module.exports = !nativeAssign || fails(function () {
|
7415 |
+
// should have correct order of operations (Edge bug)
|
7416 |
+
if (DESCRIPTORS && nativeAssign({ b: 1 }, nativeAssign(defineProperty({}, 'a', {
|
7417 |
+
enumerable: true,
|
7418 |
+
get: function () {
|
7419 |
+
defineProperty(this, 'b', {
|
7420 |
+
value: 3,
|
7421 |
+
enumerable: false
|
7422 |
+
});
|
7423 |
+
}
|
7424 |
+
}), { b: 2 })).b !== 1) return true;
|
7425 |
+
// should work with symbols and should have deterministic property order (V8 bug)
|
7426 |
+
var A = {};
|
7427 |
+
var B = {};
|
7428 |
+
/* global Symbol -- required for testing */
|
7429 |
+
var symbol = Symbol();
|
7430 |
+
var alphabet = 'abcdefghijklmnopqrst';
|
7431 |
+
A[symbol] = 7;
|
7432 |
+
alphabet.split('').forEach(function (chr) { B[chr] = chr; });
|
7433 |
+
return nativeAssign({}, A)[symbol] != 7 || objectKeys(nativeAssign({}, B)).join('') != alphabet;
|
7434 |
+
}) ? function assign(target, source) { // eslint-disable-line no-unused-vars -- required for `.length`
|
7435 |
+
var T = toObject(target);
|
7436 |
+
var argumentsLength = arguments.length;
|
7437 |
+
var index = 1;
|
7438 |
+
var getOwnPropertySymbols = getOwnPropertySymbolsModule.f;
|
7439 |
+
var propertyIsEnumerable = propertyIsEnumerableModule.f;
|
7440 |
+
while (argumentsLength > index) {
|
7441 |
+
var S = IndexedObject(arguments[index++]);
|
7442 |
+
var keys = getOwnPropertySymbols ? objectKeys(S).concat(getOwnPropertySymbols(S)) : objectKeys(S);
|
7443 |
+
var length = keys.length;
|
7444 |
+
var j = 0;
|
7445 |
+
var key;
|
7446 |
+
while (length > j) {
|
7447 |
+
key = keys[j++];
|
7448 |
+
if (!DESCRIPTORS || propertyIsEnumerable.call(S, key)) T[key] = S[key];
|
7449 |
+
}
|
7450 |
+
} return T;
|
7451 |
+
} : nativeAssign;
|
7452 |
+
|
7453 |
+
|
7454 |
+
/***/ }),
|
7455 |
+
/* 222 */,
|
7456 |
+
/* 223 */,
|
7457 |
+
/* 224 */
|
7458 |
+
/***/ (function(module, __webpack_exports__, __webpack_require__) {
|
7459 |
+
|
7460 |
+
"use strict";
|
7461 |
+
/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "a", function() { return _defineProperty; });
|
7462 |
+
function _defineProperty(obj, key, value) {
|
7463 |
+
if (key in obj) {
|
7464 |
+
Object.defineProperty(obj, key, {
|
7465 |
+
value: value,
|
7466 |
+
enumerable: true,
|
7467 |
+
configurable: true,
|
7468 |
+
writable: true
|
7469 |
+
});
|
7470 |
+
} else {
|
7471 |
+
obj[key] = value;
|
7472 |
+
}
|
7473 |
+
|
7474 |
+
return obj;
|
7475 |
+
}
|
7476 |
+
|
7477 |
+
/***/ }),
|
7478 |
+
/* 225 */
|
7479 |
+
/***/ (function(module, __webpack_exports__, __webpack_require__) {
|
7480 |
+
|
7481 |
+
"use strict";
|
7482 |
+
/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "a", function() { return _objectWithoutProperties; });
|
7483 |
+
/* harmony import */ var _babel_runtime_helpers_esm_objectWithoutPropertiesLoose__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(133);
|
7484 |
+
|
7485 |
+
function _objectWithoutProperties(source, excluded) {
|
7486 |
+
if (source == null) return {};
|
7487 |
+
var target = Object(_babel_runtime_helpers_esm_objectWithoutPropertiesLoose__WEBPACK_IMPORTED_MODULE_0__[/* default */ "a"])(source, excluded);
|
7488 |
+
var key, i;
|
7489 |
+
|
7490 |
+
if (Object.getOwnPropertySymbols) {
|
7491 |
+
var sourceSymbolKeys = Object.getOwnPropertySymbols(source);
|
7492 |
+
|
7493 |
+
for (i = 0; i < sourceSymbolKeys.length; i++) {
|
7494 |
+
key = sourceSymbolKeys[i];
|
7495 |
+
if (excluded.indexOf(key) >= 0) continue;
|
7496 |
+
if (!Object.prototype.propertyIsEnumerable.call(source, key)) continue;
|
7497 |
+
target[key] = source[key];
|
7498 |
+
}
|
7499 |
+
}
|
7500 |
+
|
7501 |
+
return target;
|
7502 |
+
}
|
7503 |
+
|
7504 |
+
/***/ }),
|
7505 |
+
/* 226 */,
|
7506 |
+
/* 227 */
|
7507 |
+
/***/ (function(module, exports, __webpack_require__) {
|
7508 |
+
|
7509 |
+
"use strict";
|
7510 |
+
|
7511 |
+
|
7512 |
+
var utils = __webpack_require__(200);
|
7513 |
+
var formats = __webpack_require__(169);
|
7514 |
+
var has = Object.prototype.hasOwnProperty;
|
7515 |
+
|
7516 |
+
var arrayPrefixGenerators = {
|
7517 |
+
brackets: function brackets(prefix) {
|
7518 |
+
return prefix + '[]';
|
7519 |
+
},
|
7520 |
+
comma: 'comma',
|
7521 |
+
indices: function indices(prefix, key) {
|
7522 |
+
return prefix + '[' + key + ']';
|
7523 |
+
},
|
7524 |
+
repeat: function repeat(prefix) {
|
7525 |
+
return prefix;
|
7526 |
+
}
|
7527 |
+
};
|
7528 |
+
|
7529 |
+
var isArray = Array.isArray;
|
7530 |
+
var push = Array.prototype.push;
|
7531 |
+
var pushToArray = function (arr, valueOrArray) {
|
7532 |
+
push.apply(arr, isArray(valueOrArray) ? valueOrArray : [valueOrArray]);
|
7533 |
+
};
|
7534 |
+
|
7535 |
+
var toISO = Date.prototype.toISOString;
|
7536 |
+
|
7537 |
+
var defaultFormat = formats['default'];
|
7538 |
+
var defaults = {
|
7539 |
+
addQueryPrefix: false,
|
7540 |
+
allowDots: false,
|
7541 |
+
charset: 'utf-8',
|
7542 |
+
charsetSentinel: false,
|
7543 |
+
delimiter: '&',
|
7544 |
+
encode: true,
|
7545 |
+
encoder: utils.encode,
|
7546 |
+
encodeValuesOnly: false,
|
7547 |
+
format: defaultFormat,
|
7548 |
+
formatter: formats.formatters[defaultFormat],
|
7549 |
+
// deprecated
|
7550 |
+
indices: false,
|
7551 |
+
serializeDate: function serializeDate(date) {
|
7552 |
+
return toISO.call(date);
|
7553 |
+
},
|
7554 |
+
skipNulls: false,
|
7555 |
+
strictNullHandling: false
|
7556 |
+
};
|
7557 |
+
|
7558 |
+
var isNonNullishPrimitive = function isNonNullishPrimitive(v) {
|
7559 |
+
return typeof v === 'string'
|
7560 |
+
|| typeof v === 'number'
|
7561 |
+
|| typeof v === 'boolean'
|
7562 |
+
|| typeof v === 'symbol'
|
7563 |
+
|| typeof v === 'bigint';
|
7564 |
+
};
|
7565 |
+
|
7566 |
+
var stringify = function stringify(
|
7567 |
+
object,
|
7568 |
+
prefix,
|
7569 |
+
generateArrayPrefix,
|
7570 |
+
strictNullHandling,
|
7571 |
+
skipNulls,
|
7572 |
+
encoder,
|
7573 |
+
filter,
|
7574 |
+
sort,
|
7575 |
+
allowDots,
|
7576 |
+
serializeDate,
|
7577 |
+
format,
|
7578 |
+
formatter,
|
7579 |
+
encodeValuesOnly,
|
7580 |
+
charset
|
7581 |
+
) {
|
7582 |
+
var obj = object;
|
7583 |
+
if (typeof filter === 'function') {
|
7584 |
+
obj = filter(prefix, obj);
|
7585 |
+
} else if (obj instanceof Date) {
|
7586 |
+
obj = serializeDate(obj);
|
7587 |
+
} else if (generateArrayPrefix === 'comma' && isArray(obj)) {
|
7588 |
+
obj = utils.maybeMap(obj, function (value) {
|
7589 |
+
if (value instanceof Date) {
|
7590 |
+
return serializeDate(value);
|
7591 |
+
}
|
7592 |
+
return value;
|
7593 |
+
});
|
7594 |
+
}
|
7595 |
+
|
7596 |
+
if (obj === null) {
|
7597 |
+
if (strictNullHandling) {
|
7598 |
+
return encoder && !encodeValuesOnly ? encoder(prefix, defaults.encoder, charset, 'key', format) : prefix;
|
7599 |
+
}
|
7600 |
+
|
7601 |
+
obj = '';
|
7602 |
+
}
|
7603 |
+
|
7604 |
+
if (isNonNullishPrimitive(obj) || utils.isBuffer(obj)) {
|
7605 |
+
if (encoder) {
|
7606 |
+
var keyValue = encodeValuesOnly ? prefix : encoder(prefix, defaults.encoder, charset, 'key', format);
|
7607 |
+
return [formatter(keyValue) + '=' + formatter(encoder(obj, defaults.encoder, charset, 'value', format))];
|
7608 |
+
}
|
7609 |
+
return [formatter(prefix) + '=' + formatter(String(obj))];
|
7610 |
+
}
|
7611 |
+
|
7612 |
+
var values = [];
|
7613 |
+
|
7614 |
+
if (typeof obj === 'undefined') {
|
7615 |
+
return values;
|
7616 |
+
}
|
7617 |
+
|
7618 |
+
var objKeys;
|
7619 |
+
if (generateArrayPrefix === 'comma' && isArray(obj)) {
|
7620 |
+
// we need to join elements in
|
7621 |
+
objKeys = [{ value: obj.length > 0 ? obj.join(',') || null : undefined }];
|
7622 |
+
} else if (isArray(filter)) {
|
7623 |
+
objKeys = filter;
|
7624 |
+
} else {
|
7625 |
+
var keys = Object.keys(obj);
|
7626 |
+
objKeys = sort ? keys.sort(sort) : keys;
|
7627 |
+
}
|
7628 |
+
|
7629 |
+
for (var i = 0; i < objKeys.length; ++i) {
|
7630 |
+
var key = objKeys[i];
|
7631 |
+
var value = typeof key === 'object' && key.value !== undefined ? key.value : obj[key];
|
7632 |
+
|
7633 |
+
if (skipNulls && value === null) {
|
7634 |
+
continue;
|
7635 |
+
}
|
7636 |
+
|
7637 |
+
var keyPrefix = isArray(obj)
|
7638 |
+
? typeof generateArrayPrefix === 'function' ? generateArrayPrefix(prefix, key) : prefix
|
7639 |
+
: prefix + (allowDots ? '.' + key : '[' + key + ']');
|
7640 |
+
|
7641 |
+
pushToArray(values, stringify(
|
7642 |
+
value,
|
7643 |
+
keyPrefix,
|
7644 |
+
generateArrayPrefix,
|
7645 |
+
strictNullHandling,
|
7646 |
+
skipNulls,
|
7647 |
+
encoder,
|
7648 |
+
filter,
|
7649 |
+
sort,
|
7650 |
+
allowDots,
|
7651 |
+
serializeDate,
|
7652 |
+
format,
|
7653 |
+
formatter,
|
7654 |
+
encodeValuesOnly,
|
7655 |
+
charset
|
7656 |
+
));
|
7657 |
+
}
|
7658 |
+
|
7659 |
+
return values;
|
7660 |
+
};
|
7661 |
+
|
7662 |
+
var normalizeStringifyOptions = function normalizeStringifyOptions(opts) {
|
7663 |
+
if (!opts) {
|
7664 |
+
return defaults;
|
7665 |
+
}
|
7666 |
+
|
7667 |
+
if (opts.encoder !== null && opts.encoder !== undefined && typeof opts.encoder !== 'function') {
|
7668 |
+
throw new TypeError('Encoder has to be a function.');
|
7669 |
+
}
|
7670 |
+
|
7671 |
+
var charset = opts.charset || defaults.charset;
|
7672 |
+
if (typeof opts.charset !== 'undefined' && opts.charset !== 'utf-8' && opts.charset !== 'iso-8859-1') {
|
7673 |
+
throw new TypeError('The charset option must be either utf-8, iso-8859-1, or undefined');
|
7674 |
+
}
|
7675 |
+
|
7676 |
+
var format = formats['default'];
|
7677 |
+
if (typeof opts.format !== 'undefined') {
|
7678 |
+
if (!has.call(formats.formatters, opts.format)) {
|
7679 |
+
throw new TypeError('Unknown format option provided.');
|
7680 |
+
}
|
7681 |
+
format = opts.format;
|
7682 |
+
}
|
7683 |
+
var formatter = formats.formatters[format];
|
7684 |
+
|
7685 |
+
var filter = defaults.filter;
|
7686 |
+
if (typeof opts.filter === 'function' || isArray(opts.filter)) {
|
7687 |
+
filter = opts.filter;
|
7688 |
+
}
|
7689 |
+
|
7690 |
+
return {
|
7691 |
+
addQueryPrefix: typeof opts.addQueryPrefix === 'boolean' ? opts.addQueryPrefix : defaults.addQueryPrefix,
|
7692 |
+
allowDots: typeof opts.allowDots === 'undefined' ? defaults.allowDots : !!opts.allowDots,
|
7693 |
+
charset: charset,
|
7694 |
+
charsetSentinel: typeof opts.charsetSentinel === 'boolean' ? opts.charsetSentinel : defaults.charsetSentinel,
|
7695 |
+
delimiter: typeof opts.delimiter === 'undefined' ? defaults.delimiter : opts.delimiter,
|
7696 |
+
encode: typeof opts.encode === 'boolean' ? opts.encode : defaults.encode,
|
7697 |
+
encoder: typeof opts.encoder === 'function' ? opts.encoder : defaults.encoder,
|
7698 |
+
encodeValuesOnly: typeof opts.encodeValuesOnly === 'boolean' ? opts.encodeValuesOnly : defaults.encodeValuesOnly,
|
7699 |
+
filter: filter,
|
7700 |
+
format: format,
|
7701 |
+
formatter: formatter,
|
7702 |
+
serializeDate: typeof opts.serializeDate === 'function' ? opts.serializeDate : defaults.serializeDate,
|
7703 |
+
skipNulls: typeof opts.skipNulls === 'boolean' ? opts.skipNulls : defaults.skipNulls,
|
7704 |
+
sort: typeof opts.sort === 'function' ? opts.sort : null,
|
7705 |
+
strictNullHandling: typeof opts.strictNullHandling === 'boolean' ? opts.strictNullHandling : defaults.strictNullHandling
|
7706 |
+
};
|
7707 |
+
};
|
7708 |
+
|
7709 |
+
module.exports = function (object, opts) {
|
7710 |
+
var obj = object;
|
7711 |
+
var options = normalizeStringifyOptions(opts);
|
7712 |
+
|
7713 |
+
var objKeys;
|
7714 |
+
var filter;
|
7715 |
+
|
7716 |
+
if (typeof options.filter === 'function') {
|
7717 |
+
filter = options.filter;
|
7718 |
+
obj = filter('', obj);
|
7719 |
+
} else if (isArray(options.filter)) {
|
7720 |
+
filter = options.filter;
|
7721 |
+
objKeys = filter;
|
7722 |
+
}
|
7723 |
+
|
7724 |
+
var keys = [];
|
7725 |
+
|
7726 |
+
if (typeof obj !== 'object' || obj === null) {
|
7727 |
+
return '';
|
7728 |
+
}
|
7729 |
+
|
7730 |
+
var arrayFormat;
|
7731 |
+
if (opts && opts.arrayFormat in arrayPrefixGenerators) {
|
7732 |
+
arrayFormat = opts.arrayFormat;
|
7733 |
+
} else if (opts && 'indices' in opts) {
|
7734 |
+
arrayFormat = opts.indices ? 'indices' : 'repeat';
|
7735 |
+
} else {
|
7736 |
+
arrayFormat = 'indices';
|
7737 |
+
}
|
7738 |
+
|
7739 |
+
var generateArrayPrefix = arrayPrefixGenerators[arrayFormat];
|
7740 |
+
|
7741 |
+
if (!objKeys) {
|
7742 |
+
objKeys = Object.keys(obj);
|
7743 |
+
}
|
7744 |
+
|
7745 |
+
if (options.sort) {
|
7746 |
+
objKeys.sort(options.sort);
|
7747 |
+
}
|
7748 |
+
|
7749 |
+
for (var i = 0; i < objKeys.length; ++i) {
|
7750 |
+
var key = objKeys[i];
|
7751 |
+
|
7752 |
+
if (options.skipNulls && obj[key] === null) {
|
7753 |
+
continue;
|
7754 |
+
}
|
7755 |
+
pushToArray(keys, stringify(
|
7756 |
+
obj[key],
|
7757 |
+
key,
|
7758 |
+
generateArrayPrefix,
|
7759 |
+
options.strictNullHandling,
|
7760 |
+
options.skipNulls,
|
7761 |
+
options.encode ? options.encoder : null,
|
7762 |
+
options.filter,
|
7763 |
+
options.sort,
|
7764 |
+
options.allowDots,
|
7765 |
+
options.serializeDate,
|
7766 |
+
options.format,
|
7767 |
+
options.formatter,
|
7768 |
+
options.encodeValuesOnly,
|
7769 |
+
options.charset
|
7770 |
+
));
|
7771 |
+
}
|
7772 |
+
|
7773 |
+
var joined = keys.join(options.delimiter);
|
7774 |
+
var prefix = options.addQueryPrefix === true ? '?' : '';
|
7775 |
+
|
7776 |
+
if (options.charsetSentinel) {
|
7777 |
+
if (options.charset === 'iso-8859-1') {
|
7778 |
+
// encodeURIComponent('✓'), the "numeric entity" representation of a checkmark
|
7779 |
+
prefix += 'utf8=%26%2310003%3B&';
|
7780 |
+
} else {
|
7781 |
+
// encodeURIComponent('✓')
|
7782 |
+
prefix += 'utf8=%E2%9C%93&';
|
7783 |
+
}
|
7784 |
+
}
|
7785 |
+
|
7786 |
+
return joined.length > 0 ? prefix + joined : '';
|
7787 |
+
};
|
7788 |
+
|
7789 |
+
|
7790 |
+
/***/ }),
|
7791 |
+
/* 228 */
|
7792 |
+
/***/ (function(module, exports, __webpack_require__) {
|
7793 |
+
|
7794 |
+
"use strict";
|
7795 |
+
|
7796 |
+
|
7797 |
+
var utils = __webpack_require__(200);
|
7798 |
+
|
7799 |
+
var has = Object.prototype.hasOwnProperty;
|
7800 |
+
var isArray = Array.isArray;
|
7801 |
+
|
7802 |
+
var defaults = {
|
7803 |
+
allowDots: false,
|
7804 |
+
allowPrototypes: false,
|
7805 |
+
arrayLimit: 20,
|
7806 |
+
charset: 'utf-8',
|
7807 |
+
charsetSentinel: false,
|
7808 |
+
comma: false,
|
7809 |
+
decoder: utils.decode,
|
7810 |
+
delimiter: '&',
|
7811 |
+
depth: 5,
|
7812 |
+
ignoreQueryPrefix: false,
|
7813 |
+
interpretNumericEntities: false,
|
7814 |
+
parameterLimit: 1000,
|
7815 |
+
parseArrays: true,
|
7816 |
+
plainObjects: false,
|
7817 |
+
strictNullHandling: false
|
7818 |
+
};
|
7819 |
+
|
7820 |
+
var interpretNumericEntities = function (str) {
|
7821 |
+
return str.replace(/&#(\d+);/g, function ($0, numberStr) {
|
7822 |
+
return String.fromCharCode(parseInt(numberStr, 10));
|
7823 |
+
});
|
7824 |
+
};
|
7825 |
+
|
7826 |
+
var parseArrayValue = function (val, options) {
|
7827 |
+
if (val && typeof val === 'string' && options.comma && val.indexOf(',') > -1) {
|
7828 |
+
return val.split(',');
|
7829 |
+
}
|
7830 |
+
|
7831 |
+
return val;
|
7832 |
+
};
|
7833 |
+
|
7834 |
+
// This is what browsers will submit when the ✓ character occurs in an
|
7835 |
+
// application/x-www-form-urlencoded body and the encoding of the page containing
|
7836 |
+
// the form is iso-8859-1, or when the submitted form has an accept-charset
|
7837 |
+
// attribute of iso-8859-1. Presumably also with other charsets that do not contain
|
7838 |
+
// the ✓ character, such as us-ascii.
|
7839 |
+
var isoSentinel = 'utf8=%26%2310003%3B'; // encodeURIComponent('✓')
|
7840 |
+
|
7841 |
+
// These are the percent-encoded utf-8 octets representing a checkmark, indicating that the request actually is utf-8 encoded.
|
7842 |
+
var charsetSentinel = 'utf8=%E2%9C%93'; // encodeURIComponent('✓')
|
7843 |
+
|
7844 |
+
var parseValues = function parseQueryStringValues(str, options) {
|
7845 |
+
var obj = {};
|
7846 |
+
var cleanStr = options.ignoreQueryPrefix ? str.replace(/^\?/, '') : str;
|
7847 |
+
var limit = options.parameterLimit === Infinity ? undefined : options.parameterLimit;
|
7848 |
+
var parts = cleanStr.split(options.delimiter, limit);
|
7849 |
+
var skipIndex = -1; // Keep track of where the utf8 sentinel was found
|
7850 |
+
var i;
|
7851 |
+
|
7852 |
+
var charset = options.charset;
|
7853 |
+
if (options.charsetSentinel) {
|
7854 |
+
for (i = 0; i < parts.length; ++i) {
|
7855 |
+
if (parts[i].indexOf('utf8=') === 0) {
|
7856 |
+
if (parts[i] === charsetSentinel) {
|
7857 |
+
charset = 'utf-8';
|
7858 |
+
} else if (parts[i] === isoSentinel) {
|
7859 |
+
charset = 'iso-8859-1';
|
7860 |
+
}
|
7861 |
+
skipIndex = i;
|
7862 |
+
i = parts.length; // The eslint settings do not allow break;
|
7863 |
+
}
|
7864 |
+
}
|
7865 |
+
}
|
7866 |
+
|
7867 |
+
for (i = 0; i < parts.length; ++i) {
|
7868 |
+
if (i === skipIndex) {
|
7869 |
+
continue;
|
7870 |
+
}
|
7871 |
+
var part = parts[i];
|
7872 |
+
|
7873 |
+
var bracketEqualsPos = part.indexOf(']=');
|
7874 |
+
var pos = bracketEqualsPos === -1 ? part.indexOf('=') : bracketEqualsPos + 1;
|
7875 |
+
|
7876 |
+
var key, val;
|
7877 |
+
if (pos === -1) {
|
7878 |
+
key = options.decoder(part, defaults.decoder, charset, 'key');
|
7879 |
+
val = options.strictNullHandling ? null : '';
|
7880 |
+
} else {
|
7881 |
+
key = options.decoder(part.slice(0, pos), defaults.decoder, charset, 'key');
|
7882 |
+
val = utils.maybeMap(
|
7883 |
+
parseArrayValue(part.slice(pos + 1), options),
|
7884 |
+
function (encodedVal) {
|
7885 |
+
return options.decoder(encodedVal, defaults.decoder, charset, 'value');
|
7886 |
+
}
|
7887 |
+
);
|
7888 |
+
}
|
7889 |
+
|
7890 |
+
if (val && options.interpretNumericEntities && charset === 'iso-8859-1') {
|
7891 |
+
val = interpretNumericEntities(val);
|
7892 |
+
}
|
7893 |
+
|
7894 |
+
if (part.indexOf('[]=') > -1) {
|
7895 |
+
val = isArray(val) ? [val] : val;
|
7896 |
+
}
|
7897 |
+
|
7898 |
+
if (has.call(obj, key)) {
|
7899 |
+
obj[key] = utils.combine(obj[key], val);
|
7900 |
+
} else {
|
7901 |
+
obj[key] = val;
|
7902 |
+
}
|
7903 |
+
}
|
7904 |
+
|
7905 |
+
return obj;
|
7906 |
+
};
|
7907 |
+
|
7908 |
+
var parseObject = function (chain, val, options, valuesParsed) {
|
7909 |
+
var leaf = valuesParsed ? val : parseArrayValue(val, options);
|
7910 |
+
|
7911 |
+
for (var i = chain.length - 1; i >= 0; --i) {
|
7912 |
+
var obj;
|
7913 |
+
var root = chain[i];
|
7914 |
+
|
7915 |
+
if (root === '[]' && options.parseArrays) {
|
7916 |
+
obj = [].concat(leaf);
|
7917 |
+
} else {
|
7918 |
+
obj = options.plainObjects ? Object.create(null) : {};
|
7919 |
+
var cleanRoot = root.charAt(0) === '[' && root.charAt(root.length - 1) === ']' ? root.slice(1, -1) : root;
|
7920 |
+
var index = parseInt(cleanRoot, 10);
|
7921 |
+
if (!options.parseArrays && cleanRoot === '') {
|
7922 |
+
obj = { 0: leaf };
|
7923 |
+
} else if (
|
7924 |
+
!isNaN(index)
|
7925 |
+
&& root !== cleanRoot
|
7926 |
+
&& String(index) === cleanRoot
|
7927 |
+
&& index >= 0
|
7928 |
+
&& (options.parseArrays && index <= options.arrayLimit)
|
7929 |
+
) {
|
7930 |
+
obj = [];
|
7931 |
+
obj[index] = leaf;
|
7932 |
+
} else {
|
7933 |
+
obj[cleanRoot] = leaf;
|
7934 |
+
}
|
7935 |
+
}
|
7936 |
+
|
7937 |
+
leaf = obj;
|
7938 |
+
}
|
7939 |
+
|
7940 |
+
return leaf;
|
7941 |
+
};
|
7942 |
+
|
7943 |
+
var parseKeys = function parseQueryStringKeys(givenKey, val, options, valuesParsed) {
|
7944 |
+
if (!givenKey) {
|
7945 |
+
return;
|
7946 |
+
}
|
7947 |
+
|
7948 |
+
// Transform dot notation to bracket notation
|
7949 |
+
var key = options.allowDots ? givenKey.replace(/\.([^.[]+)/g, '[$1]') : givenKey;
|
7950 |
+
|
7951 |
+
// The regex chunks
|
7952 |
+
|
7953 |
+
var brackets = /(\[[^[\]]*])/;
|
7954 |
+
var child = /(\[[^[\]]*])/g;
|
7955 |
+
|
7956 |
+
// Get the parent
|
7957 |
+
|
7958 |
+
var segment = options.depth > 0 && brackets.exec(key);
|
7959 |
+
var parent = segment ? key.slice(0, segment.index) : key;
|
7960 |
+
|
7961 |
+
// Stash the parent if it exists
|
7962 |
+
|
7963 |
+
var keys = [];
|
7964 |
+
if (parent) {
|
7965 |
+
// If we aren't using plain objects, optionally prefix keys that would overwrite object prototype properties
|
7966 |
+
if (!options.plainObjects && has.call(Object.prototype, parent)) {
|
7967 |
+
if (!options.allowPrototypes) {
|
7968 |
+
return;
|
7969 |
+
}
|
7970 |
+
}
|
7971 |
+
|
7972 |
+
keys.push(parent);
|
7973 |
+
}
|
7974 |
+
|
7975 |
+
// Loop through children appending to the array until we hit depth
|
7976 |
+
|
7977 |
+
var i = 0;
|
7978 |
+
while (options.depth > 0 && (segment = child.exec(key)) !== null && i < options.depth) {
|
7979 |
+
i += 1;
|
7980 |
+
if (!options.plainObjects && has.call(Object.prototype, segment[1].slice(1, -1))) {
|
7981 |
+
if (!options.allowPrototypes) {
|
7982 |
+
return;
|
7983 |
+
}
|
7984 |
+
}
|
7985 |
+
keys.push(segment[1]);
|
7986 |
+
}
|
7987 |
+
|
7988 |
+
// If there's a remainder, just add whatever is left
|
7989 |
+
|
7990 |
+
if (segment) {
|
7991 |
+
keys.push('[' + key.slice(segment.index) + ']');
|
7992 |
+
}
|
7993 |
+
|
7994 |
+
return parseObject(keys, val, options, valuesParsed);
|
7995 |
+
};
|
7996 |
+
|
7997 |
+
var normalizeParseOptions = function normalizeParseOptions(opts) {
|
7998 |
+
if (!opts) {
|
7999 |
+
return defaults;
|
8000 |
+
}
|
8001 |
+
|
8002 |
+
if (opts.decoder !== null && opts.decoder !== undefined && typeof opts.decoder !== 'function') {
|
8003 |
+
throw new TypeError('Decoder has to be a function.');
|
8004 |
+
}
|
8005 |
+
|
8006 |
+
if (typeof opts.charset !== 'undefined' && opts.charset !== 'utf-8' && opts.charset !== 'iso-8859-1') {
|
8007 |
+
throw new TypeError('The charset option must be either utf-8, iso-8859-1, or undefined');
|
8008 |
+
}
|
8009 |
+
var charset = typeof opts.charset === 'undefined' ? defaults.charset : opts.charset;
|
8010 |
+
|
8011 |
+
return {
|
8012 |
+
allowDots: typeof opts.allowDots === 'undefined' ? defaults.allowDots : !!opts.allowDots,
|
8013 |
+
allowPrototypes: typeof opts.allowPrototypes === 'boolean' ? opts.allowPrototypes : defaults.allowPrototypes,
|
8014 |
+
arrayLimit: typeof opts.arrayLimit === 'number' ? opts.arrayLimit : defaults.arrayLimit,
|
8015 |
+
charset: charset,
|
8016 |
+
charsetSentinel: typeof opts.charsetSentinel === 'boolean' ? opts.charsetSentinel : defaults.charsetSentinel,
|
8017 |
+
comma: typeof opts.comma === 'boolean' ? opts.comma : defaults.comma,
|
8018 |
+
decoder: typeof opts.decoder === 'function' ? opts.decoder : defaults.decoder,
|
8019 |
+
delimiter: typeof opts.delimiter === 'string' || utils.isRegExp(opts.delimiter) ? opts.delimiter : defaults.delimiter,
|
8020 |
+
// eslint-disable-next-line no-implicit-coercion, no-extra-parens
|
8021 |
+
depth: (typeof opts.depth === 'number' || opts.depth === false) ? +opts.depth : defaults.depth,
|
8022 |
+
ignoreQueryPrefix: opts.ignoreQueryPrefix === true,
|
8023 |
+
interpretNumericEntities: typeof opts.interpretNumericEntities === 'boolean' ? opts.interpretNumericEntities : defaults.interpretNumericEntities,
|
8024 |
+
parameterLimit: typeof opts.parameterLimit === 'number' ? opts.parameterLimit : defaults.parameterLimit,
|
8025 |
+
parseArrays: opts.parseArrays !== false,
|
8026 |
+
plainObjects: typeof opts.plainObjects === 'boolean' ? opts.plainObjects : defaults.plainObjects,
|
8027 |
+
strictNullHandling: typeof opts.strictNullHandling === 'boolean' ? opts.strictNullHandling : defaults.strictNullHandling
|
8028 |
+
};
|
8029 |
+
};
|
8030 |
+
|
8031 |
+
module.exports = function (str, opts) {
|
8032 |
+
var options = normalizeParseOptions(opts);
|
8033 |
+
|
8034 |
+
if (str === '' || str === null || typeof str === 'undefined') {
|
8035 |
+
return options.plainObjects ? Object.create(null) : {};
|
8036 |
+
}
|
8037 |
+
|
8038 |
+
var tempObj = typeof str === 'string' ? parseValues(str, options) : str;
|
8039 |
+
var obj = options.plainObjects ? Object.create(null) : {};
|
8040 |
+
|
8041 |
+
// Iterate over the keys and setup the new object
|
8042 |
+
|
8043 |
+
var keys = Object.keys(tempObj);
|
8044 |
+
for (var i = 0; i < keys.length; ++i) {
|
8045 |
+
var key = keys[i];
|
8046 |
+
var newObj = parseKeys(key, tempObj[key], options, typeof str === 'string');
|
8047 |
+
obj = utils.merge(obj, newObj, options);
|
8048 |
+
}
|
8049 |
+
|
8050 |
+
return utils.compact(obj);
|
8051 |
+
};
|
8052 |
+
|
8053 |
+
|
8054 |
+
/***/ }),
|
8055 |
+
/* 229 */
|
8056 |
+
/***/ (function(module, exports, __webpack_require__) {
|
8057 |
+
|
8058 |
+
"use strict";
|
8059 |
+
|
8060 |
+
var $ = __webpack_require__(12);
|
8061 |
+
var global = __webpack_require__(3);
|
8062 |
+
var isForced = __webpack_require__(74);
|
8063 |
+
var redefine = __webpack_require__(27);
|
8064 |
+
var InternalMetadataModule = __webpack_require__(205);
|
8065 |
+
var iterate = __webpack_require__(154);
|
8066 |
+
var anInstance = __webpack_require__(136);
|
8067 |
+
var isObject = __webpack_require__(10);
|
8068 |
+
var fails = __webpack_require__(6);
|
8069 |
+
var checkCorrectnessOfIteration = __webpack_require__(165);
|
8070 |
+
var setToStringTag = __webpack_require__(90);
|
8071 |
+
var inheritIfRequired = __webpack_require__(156);
|
8072 |
+
|
8073 |
+
module.exports = function (CONSTRUCTOR_NAME, wrapper, common) {
|
8074 |
+
var IS_MAP = CONSTRUCTOR_NAME.indexOf('Map') !== -1;
|
8075 |
+
var IS_WEAK = CONSTRUCTOR_NAME.indexOf('Weak') !== -1;
|
8076 |
+
var ADDER = IS_MAP ? 'set' : 'add';
|
8077 |
+
var NativeConstructor = global[CONSTRUCTOR_NAME];
|
8078 |
+
var NativePrototype = NativeConstructor && NativeConstructor.prototype;
|
8079 |
+
var Constructor = NativeConstructor;
|
8080 |
+
var exported = {};
|
8081 |
+
|
8082 |
+
var fixMethod = function (KEY) {
|
8083 |
+
var nativeMethod = NativePrototype[KEY];
|
8084 |
+
redefine(NativePrototype, KEY,
|
8085 |
+
KEY == 'add' ? function add(value) {
|
8086 |
+
nativeMethod.call(this, value === 0 ? 0 : value);
|
8087 |
+
return this;
|
8088 |
+
} : KEY == 'delete' ? function (key) {
|
8089 |
+
return IS_WEAK && !isObject(key) ? false : nativeMethod.call(this, key === 0 ? 0 : key);
|
8090 |
+
} : KEY == 'get' ? function get(key) {
|
8091 |
+
return IS_WEAK && !isObject(key) ? undefined : nativeMethod.call(this, key === 0 ? 0 : key);
|
8092 |
+
} : KEY == 'has' ? function has(key) {
|
8093 |
+
return IS_WEAK && !isObject(key) ? false : nativeMethod.call(this, key === 0 ? 0 : key);
|
8094 |
+
} : function set(key, value) {
|
8095 |
+
nativeMethod.call(this, key === 0 ? 0 : key, value);
|
8096 |
+
return this;
|
8097 |
+
}
|
8098 |
+
);
|
8099 |
+
};
|
8100 |
+
|
8101 |
+
var REPLACE = isForced(
|
8102 |
+
CONSTRUCTOR_NAME,
|
8103 |
+
typeof NativeConstructor != 'function' || !(IS_WEAK || NativePrototype.forEach && !fails(function () {
|
8104 |
+
new NativeConstructor().entries().next();
|
8105 |
+
}))
|
8106 |
+
);
|
8107 |
+
|
8108 |
+
if (REPLACE) {
|
8109 |
+
// create collection constructor
|
8110 |
+
Constructor = common.getConstructor(wrapper, CONSTRUCTOR_NAME, IS_MAP, ADDER);
|
8111 |
+
InternalMetadataModule.REQUIRED = true;
|
8112 |
+
} else if (isForced(CONSTRUCTOR_NAME, true)) {
|
8113 |
+
var instance = new Constructor();
|
8114 |
+
// early implementations not supports chaining
|
8115 |
+
var HASNT_CHAINING = instance[ADDER](IS_WEAK ? {} : -0, 1) != instance;
|
8116 |
+
// V8 ~ Chromium 40- weak-collections throws on primitives, but should return false
|
8117 |
+
var THROWS_ON_PRIMITIVES = fails(function () { instance.has(1); });
|
8118 |
+
// most early implementations doesn't supports iterables, most modern - not close it correctly
|
8119 |
+
// eslint-disable-next-line no-new -- required for testing
|
8120 |
+
var ACCEPT_ITERABLES = checkCorrectnessOfIteration(function (iterable) { new NativeConstructor(iterable); });
|
8121 |
+
// for early implementations -0 and +0 not the same
|
8122 |
+
var BUGGY_ZERO = !IS_WEAK && fails(function () {
|
8123 |
+
// V8 ~ Chromium 42- fails only with 5+ elements
|
8124 |
+
var $instance = new NativeConstructor();
|
8125 |
+
var index = 5;
|
8126 |
+
while (index--) $instance[ADDER](index, index);
|
8127 |
+
return !$instance.has(-0);
|
8128 |
+
});
|
8129 |
+
|
8130 |
+
if (!ACCEPT_ITERABLES) {
|
8131 |
+
Constructor = wrapper(function (dummy, iterable) {
|
8132 |
+
anInstance(dummy, Constructor, CONSTRUCTOR_NAME);
|
8133 |
+
var that = inheritIfRequired(new NativeConstructor(), dummy, Constructor);
|
8134 |
+
if (iterable != undefined) iterate(iterable, that[ADDER], { that: that, AS_ENTRIES: IS_MAP });
|
8135 |
+
return that;
|
8136 |
+
});
|
8137 |
+
Constructor.prototype = NativePrototype;
|
8138 |
+
NativePrototype.constructor = Constructor;
|
8139 |
+
}
|
8140 |
+
|
8141 |
+
if (THROWS_ON_PRIMITIVES || BUGGY_ZERO) {
|
8142 |
+
fixMethod('delete');
|
8143 |
+
fixMethod('has');
|
8144 |
+
IS_MAP && fixMethod('get');
|
8145 |
+
}
|
8146 |
+
|
8147 |
+
if (BUGGY_ZERO || HASNT_CHAINING) fixMethod(ADDER);
|
8148 |
+
|
8149 |
+
// weak collections should not contains .clear method
|
8150 |
+
if (IS_WEAK && NativePrototype.clear) delete NativePrototype.clear;
|
8151 |
+
}
|
8152 |
+
|
8153 |
+
exported[CONSTRUCTOR_NAME] = Constructor;
|
8154 |
+
$({ global: true, forced: Constructor != NativeConstructor }, exported);
|
8155 |
+
|
8156 |
+
setToStringTag(Constructor, CONSTRUCTOR_NAME);
|
8157 |
+
|
8158 |
+
if (!IS_WEAK) common.setStrong(Constructor, CONSTRUCTOR_NAME, IS_MAP);
|
8159 |
+
|
8160 |
+
return Constructor;
|
8161 |
+
};
|
8162 |
+
|
8163 |
+
|
8164 |
+
/***/ }),
|
8165 |
+
/* 230 */,
|
8166 |
+
/* 231 */
|
8167 |
+
/***/ (function(module, __webpack_exports__, __webpack_require__) {
|
8168 |
+
|
8169 |
+
"use strict";
|
8170 |
+
/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "b", function() { return getCountryCode; });
|
8171 |
+
/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "c", function() { return getCurrencyRegion; });
|
8172 |
+
/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "e", function() { return getProductIdsForCart; });
|
8173 |
+
/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "a", function() { return getCategorizedOnboardingProducts; });
|
8174 |
+
/* unused harmony export getProductList */
|
8175 |
+
/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "d", function() { return getPriceValue; });
|
8176 |
+
/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "f", function() { return isWCAdmin; });
|
8177 |
+
/* harmony import */ var _babel_runtime_helpers_toConsumableArray__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(44);
|
8178 |
+
/* harmony import */ var _babel_runtime_helpers_toConsumableArray__WEBPACK_IMPORTED_MODULE_0___default = /*#__PURE__*/__webpack_require__.n(_babel_runtime_helpers_toConsumableArray__WEBPACK_IMPORTED_MODULE_0__);
|
8179 |
+
/* harmony import */ var core_js_modules_es_string_split_js__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(177);
|
8180 |
+
/* harmony import */ var core_js_modules_es_string_split_js__WEBPACK_IMPORTED_MODULE_1___default = /*#__PURE__*/__webpack_require__.n(core_js_modules_es_string_split_js__WEBPACK_IMPORTED_MODULE_1__);
|
8181 |
+
/* harmony import */ var core_js_modules_es_regexp_exec_js__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(88);
|
8182 |
+
/* harmony import */ var core_js_modules_es_regexp_exec_js__WEBPACK_IMPORTED_MODULE_2___default = /*#__PURE__*/__webpack_require__.n(core_js_modules_es_regexp_exec_js__WEBPACK_IMPORTED_MODULE_2__);
|
8183 |
+
/* harmony import */ var core_js_modules_es_array_includes_js__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(107);
|
8184 |
+
/* harmony import */ var core_js_modules_es_array_includes_js__WEBPACK_IMPORTED_MODULE_3___default = /*#__PURE__*/__webpack_require__.n(core_js_modules_es_array_includes_js__WEBPACK_IMPORTED_MODULE_3__);
|
8185 |
+
/* harmony import */ var core_js_modules_es_string_includes_js__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(140);
|
8186 |
+
/* harmony import */ var core_js_modules_es_string_includes_js__WEBPACK_IMPORTED_MODULE_4___default = /*#__PURE__*/__webpack_require__.n(core_js_modules_es_string_includes_js__WEBPACK_IMPORTED_MODULE_4__);
|
8187 |
+
/* harmony import */ var core_js_modules_es_array_map_js__WEBPACK_IMPORTED_MODULE_5__ = __webpack_require__(51);
|
8188 |
+
/* harmony import */ var core_js_modules_es_array_map_js__WEBPACK_IMPORTED_MODULE_5___default = /*#__PURE__*/__webpack_require__.n(core_js_modules_es_array_map_js__WEBPACK_IMPORTED_MODULE_5__);
|
8189 |
+
/* harmony import */ var core_js_modules_es_set_js__WEBPACK_IMPORTED_MODULE_6__ = __webpack_require__(248);
|
8190 |
+
/* harmony import */ var core_js_modules_es_set_js__WEBPACK_IMPORTED_MODULE_6___default = /*#__PURE__*/__webpack_require__.n(core_js_modules_es_set_js__WEBPACK_IMPORTED_MODULE_6__);
|
8191 |
+
/* harmony import */ var core_js_modules_es_object_to_string_js__WEBPACK_IMPORTED_MODULE_7__ = __webpack_require__(100);
|
8192 |
+
/* harmony import */ var core_js_modules_es_object_to_string_js__WEBPACK_IMPORTED_MODULE_7___default = /*#__PURE__*/__webpack_require__.n(core_js_modules_es_object_to_string_js__WEBPACK_IMPORTED_MODULE_7__);
|
8193 |
+
/* harmony import */ var core_js_modules_es_string_iterator_js__WEBPACK_IMPORTED_MODULE_8__ = __webpack_require__(151);
|
8194 |
+
/* harmony import */ var core_js_modules_es_string_iterator_js__WEBPACK_IMPORTED_MODULE_8___default = /*#__PURE__*/__webpack_require__.n(core_js_modules_es_string_iterator_js__WEBPACK_IMPORTED_MODULE_8__);
|
8195 |
+
/* harmony import */ var core_js_modules_es_array_iterator_js__WEBPACK_IMPORTED_MODULE_9__ = __webpack_require__(123);
|
8196 |
+
/* harmony import */ var core_js_modules_es_array_iterator_js__WEBPACK_IMPORTED_MODULE_9___default = /*#__PURE__*/__webpack_require__.n(core_js_modules_es_array_iterator_js__WEBPACK_IMPORTED_MODULE_9__);
|
8197 |
+
/* harmony import */ var core_js_modules_web_dom_collections_iterator_js__WEBPACK_IMPORTED_MODULE_10__ = __webpack_require__(146);
|
8198 |
+
/* harmony import */ var core_js_modules_web_dom_collections_iterator_js__WEBPACK_IMPORTED_MODULE_10___default = /*#__PURE__*/__webpack_require__.n(core_js_modules_web_dom_collections_iterator_js__WEBPACK_IMPORTED_MODULE_10__);
|
8199 |
+
/* harmony import */ var core_js_modules_es_array_concat_js__WEBPACK_IMPORTED_MODULE_11__ = __webpack_require__(66);
|
8200 |
+
/* harmony import */ var core_js_modules_es_array_concat_js__WEBPACK_IMPORTED_MODULE_11___default = /*#__PURE__*/__webpack_require__.n(core_js_modules_es_array_concat_js__WEBPACK_IMPORTED_MODULE_11__);
|
8201 |
+
/* harmony import */ var core_js_modules_web_dom_collections_for_each_js__WEBPACK_IMPORTED_MODULE_12__ = __webpack_require__(49);
|
8202 |
+
/* harmony import */ var core_js_modules_web_dom_collections_for_each_js__WEBPACK_IMPORTED_MODULE_12___default = /*#__PURE__*/__webpack_require__.n(core_js_modules_web_dom_collections_for_each_js__WEBPACK_IMPORTED_MODULE_12__);
|
8203 |
+
/* harmony import */ var core_js_modules_es_array_find_js__WEBPACK_IMPORTED_MODULE_13__ = __webpack_require__(192);
|
8204 |
+
/* harmony import */ var core_js_modules_es_array_find_js__WEBPACK_IMPORTED_MODULE_13___default = /*#__PURE__*/__webpack_require__.n(core_js_modules_es_array_find_js__WEBPACK_IMPORTED_MODULE_13__);
|
8205 |
+
/* harmony import */ var core_js_modules_es_number_constructor_js__WEBPACK_IMPORTED_MODULE_14__ = __webpack_require__(178);
|
8206 |
+
/* harmony import */ var core_js_modules_es_number_constructor_js__WEBPACK_IMPORTED_MODULE_14___default = /*#__PURE__*/__webpack_require__.n(core_js_modules_es_number_constructor_js__WEBPACK_IMPORTED_MODULE_14__);
|
8207 |
+
/* harmony import */ var core_js_modules_es_string_replace_js__WEBPACK_IMPORTED_MODULE_15__ = __webpack_require__(135);
|
8208 |
+
/* harmony import */ var core_js_modules_es_string_replace_js__WEBPACK_IMPORTED_MODULE_15___default = /*#__PURE__*/__webpack_require__.n(core_js_modules_es_string_replace_js__WEBPACK_IMPORTED_MODULE_15__);
|
8209 |
+
/* harmony import */ var _wordpress_html_entities__WEBPACK_IMPORTED_MODULE_16__ = __webpack_require__(132);
|
8210 |
+
/* harmony import */ var _wordpress_html_entities__WEBPACK_IMPORTED_MODULE_16___default = /*#__PURE__*/__webpack_require__.n(_wordpress_html_entities__WEBPACK_IMPORTED_MODULE_16__);
|
8211 |
+
/* harmony import */ var lodash__WEBPACK_IMPORTED_MODULE_17__ = __webpack_require__(5);
|
8212 |
+
/* harmony import */ var lodash__WEBPACK_IMPORTED_MODULE_17___default = /*#__PURE__*/__webpack_require__.n(lodash__WEBPACK_IMPORTED_MODULE_17__);
|
8213 |
+
/* harmony import */ var _woocommerce_wc_admin_settings__WEBPACK_IMPORTED_MODULE_18__ = __webpack_require__(85);
|
8214 |
+
|
8215 |
+
|
8216 |
+
|
8217 |
+
|
8218 |
+
|
8219 |
+
|
8220 |
+
|
8221 |
+
|
8222 |
+
|
8223 |
+
|
8224 |
+
|
8225 |
+
|
8226 |
+
|
8227 |
+
|
8228 |
+
|
8229 |
+
|
8230 |
+
|
8231 |
+
/**
|
8232 |
+
* External dependencies
|
8233 |
+
*/
|
8234 |
+
|
8235 |
+
|
8236 |
+
|
8237 |
+
/**
|
8238 |
+
* Gets the country code from a country:state value string.
|
8239 |
+
*
|
8240 |
+
* @param {string} countryState Country state string, e.g. US:GA.
|
8241 |
+
* @return {string} Country string.
|
8242 |
+
*/
|
8243 |
+
|
8244 |
+
function getCountryCode(countryState) {
|
8245 |
+
if (!countryState) {
|
8246 |
+
return null;
|
8247 |
+
}
|
8248 |
+
|
8249 |
+
return countryState.split(':')[0];
|
8250 |
+
}
|
8251 |
+
function getCurrencyRegion(countryState) {
|
8252 |
+
var region = getCountryCode(countryState);
|
8253 |
+
var euCountries = Object(lodash__WEBPACK_IMPORTED_MODULE_17__["without"])(Object(_woocommerce_wc_admin_settings__WEBPACK_IMPORTED_MODULE_18__[/* getSetting */ "g"])('onboarding', {
|
8254 |
+
euCountries: []
|
8255 |
+
}).euCountries, 'GB');
|
8256 |
+
|
8257 |
+
if (euCountries.includes(region)) {
|
8258 |
+
region = 'EU';
|
8259 |
+
}
|
8260 |
+
|
8261 |
+
return region;
|
8262 |
+
}
|
8263 |
+
/**
|
8264 |
+
* Gets the product IDs for items based on the product types and theme selected in the onboarding profiler.
|
8265 |
+
*
|
8266 |
+
* @param {Object} profileItems Onboarding profile.
|
8267 |
+
* @param {boolean} includeInstalledItems Include installed items in returned product IDs.
|
8268 |
+
* @param {Array} installedPlugins Installed plugins.
|
8269 |
+
* @return {Array} Product Ids.
|
8270 |
+
*/
|
8271 |
+
|
8272 |
+
function getProductIdsForCart(profileItems) {
|
8273 |
+
var includeInstalledItems = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : false;
|
8274 |
+
var installedPlugins = arguments.length > 2 ? arguments[2] : undefined;
|
8275 |
+
var productList = getProductList(profileItems, includeInstalledItems, installedPlugins);
|
8276 |
+
var productIds = productList.map(function (product) {
|
8277 |
+
return product.id || product.product;
|
8278 |
+
});
|
8279 |
+
return productIds;
|
8280 |
+
}
|
8281 |
+
/**
|
8282 |
+
* Gets the labeled/categorized product names and types for items based on the product types and theme selected in the onboarding profiler.
|
8283 |
+
*
|
8284 |
+
* @param {Object} profileItems Onboarding profile.
|
8285 |
+
* @param {Array} installedPlugins Installed plugins.
|
8286 |
+
* @return {Array} Objects with labeled/categorized product names and types.
|
8287 |
+
*/
|
8288 |
+
|
8289 |
+
function getCategorizedOnboardingProducts(profileItems, installedPlugins) {
|
8290 |
+
var productList = {};
|
8291 |
+
productList.products = getProductList(profileItems, true, installedPlugins);
|
8292 |
+
productList.remainingProducts = getProductList(profileItems, false, installedPlugins);
|
8293 |
+
|
8294 |
+
var uniqueItemsList = _babel_runtime_helpers_toConsumableArray__WEBPACK_IMPORTED_MODULE_0___default()(new Set([].concat(_babel_runtime_helpers_toConsumableArray__WEBPACK_IMPORTED_MODULE_0___default()(productList.products), _babel_runtime_helpers_toConsumableArray__WEBPACK_IMPORTED_MODULE_0___default()(productList.remainingProducts))));
|
8295 |
+
|
8296 |
+
productList.uniqueItemsList = uniqueItemsList.map(function (product) {
|
8297 |
+
var cleanedProduct;
|
8298 |
+
|
8299 |
+
if (product.label) {
|
8300 |
+
cleanedProduct = {
|
8301 |
+
type: 'extension',
|
8302 |
+
name: product.label
|
8303 |
+
};
|
8304 |
+
} else {
|
8305 |
+
cleanedProduct = {
|
8306 |
+
type: 'theme',
|
8307 |
+
name: product.title
|
8308 |
+
};
|
8309 |
+
}
|
8310 |
+
|
8311 |
+
return cleanedProduct;
|
8312 |
+
});
|
8313 |
+
return productList;
|
8314 |
+
}
|
8315 |
+
/**
|
8316 |
+
* Gets a product list for items based on the product types and theme selected in the onboarding profiler.
|
8317 |
+
*
|
8318 |
+
* @param {Object} profileItems Onboarding profile.
|
8319 |
+
* @param {boolean} includeInstalledItems Include installed items in returned product list.
|
8320 |
+
* @param {Array} installedPlugins Installed plugins.
|
8321 |
+
* @return {Array} Products.
|
8322 |
+
*/
|
8323 |
+
|
8324 |
+
function getProductList(profileItems) {
|
8325 |
+
var includeInstalledItems = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : false;
|
8326 |
+
var installedPlugins = arguments.length > 2 ? arguments[2] : undefined;
|
8327 |
+
var onboarding = Object(_woocommerce_wc_admin_settings__WEBPACK_IMPORTED_MODULE_18__[/* getSetting */ "g"])('onboarding', {});
|
8328 |
+
var productList = []; // The population of onboarding.productTypes only happens if the task list should be shown
|
8329 |
+
// so bail early if it isn't present.
|
8330 |
+
|
8331 |
+
if (!onboarding.productTypes) {
|
8332 |
+
return productList;
|
8333 |
+
}
|
8334 |
+
|
8335 |
+
var productTypes = profileItems.product_types || [];
|
8336 |
+
productTypes.forEach(function (productType) {
|
8337 |
+
if (onboarding.productTypes[productType] && onboarding.productTypes[productType].product && (includeInstalledItems || !installedPlugins.includes(onboarding.productTypes[productType].slug))) {
|
8338 |
+
productList.push(onboarding.productTypes[productType]);
|
8339 |
+
}
|
8340 |
+
});
|
8341 |
+
var theme = onboarding.themes.find(function (themeData) {
|
8342 |
+
return themeData.slug === profileItems.theme;
|
8343 |
+
});
|
8344 |
+
|
8345 |
+
if (theme && theme.id && getPriceValue(theme.price) > 0 && (includeInstalledItems || !theme.is_installed)) {
|
8346 |
+
productList.push(theme);
|
8347 |
+
}
|
8348 |
+
|
8349 |
+
return productList;
|
8350 |
+
}
|
8351 |
+
/**
|
8352 |
+
* Get the value of a price from a string, removing any non-numeric characters.
|
8353 |
+
*
|
8354 |
+
* @param {string} string Price string.
|
8355 |
+
* @return {number} Number value.
|
8356 |
+
*/
|
8357 |
+
|
8358 |
+
function getPriceValue(string) {
|
8359 |
+
return Number(Object(_wordpress_html_entities__WEBPACK_IMPORTED_MODULE_16__["decodeEntities"])(string).replace(/[^0-9.-]+/g, ''));
|
8360 |
+
}
|
8361 |
+
/**
|
8362 |
+
* Determines if a URL is a WC admin url.
|
8363 |
+
*
|
8364 |
+
* @param {*} url - the url to test
|
8365 |
+
* @return {boolean} true if the url is a wc-admin URL
|
8366 |
+
*/
|
8367 |
+
|
8368 |
+
function isWCAdmin(url) {
|
8369 |
+
return /admin.php\?page=wc-admin/.test(url);
|
8370 |
+
}
|
8371 |
+
|
8372 |
+
/***/ }),
|
8373 |
+
/* 232 */,
|
8374 |
+
/* 233 */
|
8375 |
+
/***/ (function(module, exports) {
|
8376 |
+
|
8377 |
+
function _objectWithoutPropertiesLoose(source, excluded) {
|
8378 |
+
if (source == null) return {};
|
8379 |
+
var target = {};
|
8380 |
+
var sourceKeys = Object.keys(source);
|
8381 |
+
var key, i;
|
8382 |
+
|
8383 |
+
for (i = 0; i < sourceKeys.length; i++) {
|
8384 |
+
key = sourceKeys[i];
|
8385 |
+
if (excluded.indexOf(key) >= 0) continue;
|
8386 |
+
target[key] = source[key];
|
8387 |
+
}
|
8388 |
+
|
8389 |
+
return target;
|
8390 |
+
}
|
8391 |
+
|
8392 |
+
module.exports = _objectWithoutPropertiesLoose;
|
8393 |
+
|
8394 |
+
/***/ }),
|
8395 |
+
/* 234 */
|
8396 |
+
/***/ (function(module, exports, __webpack_require__) {
|
8397 |
+
|
8398 |
+
"use strict";
|
8399 |
+
|
8400 |
+
var bind = __webpack_require__(94);
|
8401 |
+
var toObject = __webpack_require__(38);
|
8402 |
+
var callWithSafeIterationClosing = __webpack_require__(252);
|
8403 |
+
var isArrayIteratorMethod = __webpack_require__(171);
|
8404 |
+
var toLength = __webpack_require__(34);
|
8405 |
+
var createProperty = __webpack_require__(102);
|
8406 |
+
var getIteratorMethod = __webpack_require__(155);
|
8407 |
+
|
8408 |
+
// `Array.from` method implementation
|
8409 |
+
// https://tc39.es/ecma262/#sec-array.from
|
8410 |
+
module.exports = function from(arrayLike /* , mapfn = undefined, thisArg = undefined */) {
|
8411 |
+
var O = toObject(arrayLike);
|
8412 |
+
var C = typeof this == 'function' ? this : Array;
|
8413 |
+
var argumentsLength = arguments.length;
|
8414 |
+
var mapfn = argumentsLength > 1 ? arguments[1] : undefined;
|
8415 |
+
var mapping = mapfn !== undefined;
|
8416 |
+
var iteratorMethod = getIteratorMethod(O);
|
8417 |
+
var index = 0;
|
8418 |
+
var length, result, step, iterator, next, value;
|
8419 |
+
if (mapping) mapfn = bind(mapfn, argumentsLength > 2 ? arguments[2] : undefined, 2);
|
8420 |
+
// if the target is not iterable or it's an array with the default iterator - use a simple case
|
8421 |
+
if (iteratorMethod != undefined && !(C == Array && isArrayIteratorMethod(iteratorMethod))) {
|
8422 |
+
iterator = iteratorMethod.call(O);
|
8423 |
+
next = iterator.next;
|
8424 |
+
result = new C();
|
8425 |
+
for (;!(step = next.call(iterator)).done; index++) {
|
8426 |
+
value = mapping ? callWithSafeIterationClosing(iterator, mapfn, [step.value, index], true) : step.value;
|
8427 |
+
createProperty(result, index, value);
|
8428 |
+
}
|
8429 |
+
} else {
|
8430 |
+
length = toLength(O.length);
|
8431 |
+
result = new C(length);
|
8432 |
+
for (;length > index; index++) {
|
8433 |
+
value = mapping ? mapfn(O[index], index) : O[index];
|
8434 |
+
createProperty(result, index, value);
|
8435 |
+
}
|
8436 |
+
}
|
8437 |
+
result.length = index;
|
8438 |
+
return result;
|
8439 |
+
};
|
8440 |
+
|
8441 |
+
|
8442 |
+
/***/ }),
|
8443 |
+
/* 235 */
|
8444 |
+
/***/ (function(module, exports, __webpack_require__) {
|
8445 |
+
|
8446 |
+
"use strict";
|
8447 |
+
|
8448 |
+
var defineProperty = __webpack_require__(17).f;
|
8449 |
+
var create = __webpack_require__(69);
|
8450 |
+
var redefineAll = __webpack_require__(152);
|
8451 |
+
var bind = __webpack_require__(94);
|
8452 |
+
var anInstance = __webpack_require__(136);
|
8453 |
+
var iterate = __webpack_require__(154);
|
8454 |
+
var defineIterator = __webpack_require__(166);
|
8455 |
+
var setSpecies = __webpack_require__(153);
|
8456 |
+
var DESCRIPTORS = __webpack_require__(13);
|
8457 |
+
var fastKey = __webpack_require__(205).fastKey;
|
8458 |
+
var InternalStateModule = __webpack_require__(45);
|
8459 |
+
|
8460 |
+
var setInternalState = InternalStateModule.set;
|
8461 |
+
var internalStateGetterFor = InternalStateModule.getterFor;
|
8462 |
+
|
8463 |
+
module.exports = {
|
8464 |
+
getConstructor: function (wrapper, CONSTRUCTOR_NAME, IS_MAP, ADDER) {
|
8465 |
+
var C = wrapper(function (that, iterable) {
|
8466 |
+
anInstance(that, C, CONSTRUCTOR_NAME);
|
8467 |
+
setInternalState(that, {
|
8468 |
+
type: CONSTRUCTOR_NAME,
|
8469 |
+
index: create(null),
|
8470 |
+
first: undefined,
|
8471 |
+
last: undefined,
|
8472 |
+
size: 0
|
8473 |
+
});
|
8474 |
+
if (!DESCRIPTORS) that.size = 0;
|
8475 |
+
if (iterable != undefined) iterate(iterable, that[ADDER], { that: that, AS_ENTRIES: IS_MAP });
|
8476 |
+
});
|
8477 |
+
|
8478 |
+
var getInternalState = internalStateGetterFor(CONSTRUCTOR_NAME);
|
8479 |
+
|
8480 |
+
var define = function (that, key, value) {
|
8481 |
+
var state = getInternalState(that);
|
8482 |
+
var entry = getEntry(that, key);
|
8483 |
+
var previous, index;
|
8484 |
+
// change existing entry
|
8485 |
+
if (entry) {
|
8486 |
+
entry.value = value;
|
8487 |
+
// create new entry
|
8488 |
+
} else {
|
8489 |
+
state.last = entry = {
|
8490 |
+
index: index = fastKey(key, true),
|
8491 |
+
key: key,
|
8492 |
+
value: value,
|
8493 |
+
previous: previous = state.last,
|
8494 |
+
next: undefined,
|
8495 |
+
removed: false
|
8496 |
+
};
|
8497 |
+
if (!state.first) state.first = entry;
|
8498 |
+
if (previous) previous.next = entry;
|
8499 |
+
if (DESCRIPTORS) state.size++;
|
8500 |
+
else that.size++;
|
8501 |
+
// add to index
|
8502 |
+
if (index !== 'F') state.index[index] = entry;
|
8503 |
+
} return that;
|
8504 |
+
};
|
8505 |
+
|
8506 |
+
var getEntry = function (that, key) {
|
8507 |
+
var state = getInternalState(that);
|
8508 |
+
// fast case
|
8509 |
+
var index = fastKey(key);
|
8510 |
+
var entry;
|
8511 |
+
if (index !== 'F') return state.index[index];
|
8512 |
+
// frozen object case
|
8513 |
+
for (entry = state.first; entry; entry = entry.next) {
|
8514 |
+
if (entry.key == key) return entry;
|
8515 |
+
}
|
8516 |
+
};
|
8517 |
+
|
8518 |
+
redefineAll(C.prototype, {
|
8519 |
+
// 23.1.3.1 Map.prototype.clear()
|
8520 |
+
// 23.2.3.2 Set.prototype.clear()
|
8521 |
+
clear: function clear() {
|
8522 |
+
var that = this;
|
8523 |
+
var state = getInternalState(that);
|
8524 |
+
var data = state.index;
|
8525 |
+
var entry = state.first;
|
8526 |
+
while (entry) {
|
8527 |
+
entry.removed = true;
|
8528 |
+
if (entry.previous) entry.previous = entry.previous.next = undefined;
|
8529 |
+
delete data[entry.index];
|
8530 |
+
entry = entry.next;
|
8531 |
+
}
|
8532 |
+
state.first = state.last = undefined;
|
8533 |
+
if (DESCRIPTORS) state.size = 0;
|
8534 |
+
else that.size = 0;
|
8535 |
+
},
|
8536 |
+
// 23.1.3.3 Map.prototype.delete(key)
|
8537 |
+
// 23.2.3.4 Set.prototype.delete(value)
|
8538 |
+
'delete': function (key) {
|
8539 |
+
var that = this;
|
8540 |
+
var state = getInternalState(that);
|
8541 |
+
var entry = getEntry(that, key);
|
8542 |
+
if (entry) {
|
8543 |
+
var next = entry.next;
|
8544 |
+
var prev = entry.previous;
|
8545 |
+
delete state.index[entry.index];
|
8546 |
+
entry.removed = true;
|
8547 |
+
if (prev) prev.next = next;
|
8548 |
+
if (next) next.previous = prev;
|
8549 |
+
if (state.first == entry) state.first = next;
|
8550 |
+
if (state.last == entry) state.last = prev;
|
8551 |
+
if (DESCRIPTORS) state.size--;
|
8552 |
+
else that.size--;
|
8553 |
+
} return !!entry;
|
8554 |
+
},
|
8555 |
+
// 23.2.3.6 Set.prototype.forEach(callbackfn, thisArg = undefined)
|
8556 |
+
// 23.1.3.5 Map.prototype.forEach(callbackfn, thisArg = undefined)
|
8557 |
+
forEach: function forEach(callbackfn /* , that = undefined */) {
|
8558 |
+
var state = getInternalState(this);
|
8559 |
+
var boundFunction = bind(callbackfn, arguments.length > 1 ? arguments[1] : undefined, 3);
|
8560 |
+
var entry;
|
8561 |
+
while (entry = entry ? entry.next : state.first) {
|
8562 |
+
boundFunction(entry.value, entry.key, this);
|
8563 |
+
// revert to the last existing entry
|
8564 |
+
while (entry && entry.removed) entry = entry.previous;
|
8565 |
+
}
|
8566 |
+
},
|
8567 |
+
// 23.1.3.7 Map.prototype.has(key)
|
8568 |
+
// 23.2.3.7 Set.prototype.has(value)
|
8569 |
+
has: function has(key) {
|
8570 |
+
return !!getEntry(this, key);
|
8571 |
+
}
|
8572 |
+
});
|
8573 |
+
|
8574 |
+
redefineAll(C.prototype, IS_MAP ? {
|
8575 |
+
// 23.1.3.6 Map.prototype.get(key)
|
8576 |
+
get: function get(key) {
|
8577 |
+
var entry = getEntry(this, key);
|
8578 |
+
return entry && entry.value;
|
8579 |
+
},
|
8580 |
+
// 23.1.3.9 Map.prototype.set(key, value)
|
8581 |
+
set: function set(key, value) {
|
8582 |
+
return define(this, key === 0 ? 0 : key, value);
|
8583 |
+
}
|
8584 |
+
} : {
|
8585 |
+
// 23.2.3.1 Set.prototype.add(value)
|
8586 |
+
add: function add(value) {
|
8587 |
+
return define(this, value = value === 0 ? 0 : value, value);
|
8588 |
+
}
|
8589 |
+
});
|
8590 |
+
if (DESCRIPTORS) defineProperty(C.prototype, 'size', {
|
8591 |
+
get: function () {
|
8592 |
+
return getInternalState(this).size;
|
8593 |
+
}
|
8594 |
+
});
|
8595 |
+
return C;
|
8596 |
+
},
|
8597 |
+
setStrong: function (C, CONSTRUCTOR_NAME, IS_MAP) {
|
8598 |
+
var ITERATOR_NAME = CONSTRUCTOR_NAME + ' Iterator';
|
8599 |
+
var getInternalCollectionState = internalStateGetterFor(CONSTRUCTOR_NAME);
|
8600 |
+
var getInternalIteratorState = internalStateGetterFor(ITERATOR_NAME);
|
8601 |
+
// add .keys, .values, .entries, [@@iterator]
|
8602 |
+
// 23.1.3.4, 23.1.3.8, 23.1.3.11, 23.1.3.12, 23.2.3.5, 23.2.3.8, 23.2.3.10, 23.2.3.11
|
8603 |
+
defineIterator(C, CONSTRUCTOR_NAME, function (iterated, kind) {
|
8604 |
+
setInternalState(this, {
|
8605 |
+
type: ITERATOR_NAME,
|
8606 |
+
target: iterated,
|
8607 |
+
state: getInternalCollectionState(iterated),
|
8608 |
+
kind: kind,
|
8609 |
+
last: undefined
|
8610 |
+
});
|
8611 |
+
}, function () {
|
8612 |
+
var state = getInternalIteratorState(this);
|
8613 |
+
var kind = state.kind;
|
8614 |
+
var entry = state.last;
|
8615 |
+
// revert to the last existing entry
|
8616 |
+
while (entry && entry.removed) entry = entry.previous;
|
8617 |
+
// get next entry
|
8618 |
+
if (!state.target || !(state.last = entry = entry ? entry.next : state.state.first)) {
|
8619 |
+
// or finish the iteration
|
8620 |
+
state.target = undefined;
|
8621 |
+
return { value: undefined, done: true };
|
8622 |
+
}
|
8623 |
+
// return step by kind
|
8624 |
+
if (kind == 'keys') return { value: entry.key, done: false };
|
8625 |
+
if (kind == 'values') return { value: entry.value, done: false };
|
8626 |
+
return { value: [entry.key, entry.value], done: false };
|
8627 |
+
}, IS_MAP ? 'entries' : 'values', !IS_MAP, true);
|
8628 |
+
|
8629 |
+
// add [@@species], 23.1.2.2, 23.2.2.2
|
8630 |
+
setSpecies(CONSTRUCTOR_NAME);
|
8631 |
+
}
|
8632 |
+
};
|
8633 |
+
|
8634 |
+
|
8635 |
+
/***/ }),
|
8636 |
+
/* 236 */,
|
8637 |
+
/* 237 */,
|
8638 |
+
/* 238 */,
|
8639 |
+
/* 239 */,
|
8640 |
+
/* 240 */,
|
8641 |
+
/* 241 */,
|
8642 |
+
/* 242 */,
|
8643 |
+
/* 243 */,
|
8644 |
+
/* 244 */,
|
8645 |
+
/* 245 */,
|
8646 |
+
/* 246 */,
|
8647 |
+
/* 247 */
|
8648 |
+
/***/ (function(module, exports) {
|
8649 |
+
|
8650 |
+
(function() { module.exports = window["wc"]["currency"]; }());
|
8651 |
+
|
8652 |
+
/***/ }),
|
8653 |
+
/* 248 */
|
8654 |
+
/***/ (function(module, exports, __webpack_require__) {
|
8655 |
+
|
8656 |
+
"use strict";
|
8657 |
+
|
8658 |
+
var collection = __webpack_require__(229);
|
8659 |
+
var collectionStrong = __webpack_require__(235);
|
8660 |
+
|
8661 |
+
// `Set` constructor
|
8662 |
+
// https://tc39.es/ecma262/#sec-set-objects
|
8663 |
+
module.exports = collection('Set', function (init) {
|
8664 |
+
return function Set() { return init(this, arguments.length ? arguments[0] : undefined); };
|
8665 |
+
}, collectionStrong);
|
8666 |
+
|
8667 |
+
|
8668 |
+
/***/ }),
|
8669 |
+
/* 249 */
|
8670 |
+
/***/ (function(module, exports, __webpack_require__) {
|
8671 |
+
|
8672 |
+
var DESCRIPTORS = __webpack_require__(13);
|
8673 |
+
var objectKeys = __webpack_require__(54);
|
8674 |
+
var toIndexedObject = __webpack_require__(21);
|
8675 |
+
var propertyIsEnumerable = __webpack_require__(76).f;
|
8676 |
+
|
8677 |
+
// `Object.{ entries, values }` methods implementation
|
8678 |
+
var createMethod = function (TO_ENTRIES) {
|
8679 |
+
return function (it) {
|
8680 |
+
var O = toIndexedObject(it);
|
8681 |
+
var keys = objectKeys(O);
|
8682 |
+
var length = keys.length;
|
8683 |
+
var i = 0;
|
8684 |
+
var result = [];
|
8685 |
+
var key;
|
8686 |
+
while (length > i) {
|
8687 |
+
key = keys[i++];
|
8688 |
+
if (!DESCRIPTORS || propertyIsEnumerable.call(O, key)) {
|
8689 |
+
result.push(TO_ENTRIES ? [key, O[key]] : O[key]);
|
8690 |
+
}
|
8691 |
+
}
|
8692 |
+
return result;
|
8693 |
+
};
|
8694 |
+
};
|
8695 |
+
|
8696 |
+
module.exports = {
|
8697 |
+
// `Object.entries` method
|
8698 |
+
// https://tc39.es/ecma262/#sec-object.entries
|
8699 |
+
entries: createMethod(true),
|
8700 |
+
// `Object.values` method
|
8701 |
+
// https://tc39.es/ecma262/#sec-object.values
|
8702 |
+
values: createMethod(false)
|
8703 |
+
};
|
8704 |
+
|
8705 |
+
|
8706 |
+
/***/ }),
|
8707 |
+
/* 250 */
|
8708 |
+
/***/ (function(module, exports, __webpack_require__) {
|
8709 |
+
|
8710 |
+
var $ = __webpack_require__(12);
|
8711 |
+
var assign = __webpack_require__(221);
|
8712 |
+
|
8713 |
+
// `Object.assign` method
|
8714 |
+
// https://tc39.es/ecma262/#sec-object.assign
|
8715 |
+
$({ target: 'Object', stat: true, forced: Object.assign !== assign }, {
|
8716 |
+
assign: assign
|
8717 |
+
});
|
8718 |
+
|
8719 |
+
|
8720 |
+
/***/ }),
|
8721 |
+
/* 251 */,
|
8722 |
+
/* 252 */
|
8723 |
+
/***/ (function(module, exports, __webpack_require__) {
|
8724 |
+
|
8725 |
+
var anObject = __webpack_require__(9);
|
8726 |
+
var iteratorClose = __webpack_require__(172);
|
8727 |
+
|
8728 |
+
// call something on iterator step with safe closing on error
|
8729 |
+
module.exports = function (iterator, fn, value, ENTRIES) {
|
8730 |
+
try {
|
8731 |
+
return ENTRIES ? fn(anObject(value)[0], value[1]) : fn(value);
|
8732 |
+
// 7.4.6 IteratorClose(iterator, completion)
|
8733 |
+
} catch (error) {
|
8734 |
+
iteratorClose(iterator);
|
8735 |
+
throw error;
|
8736 |
+
}
|
8737 |
+
};
|
8738 |
+
|
8739 |
+
|
8740 |
+
/***/ }),
|
8741 |
+
/* 253 */
|
8742 |
+
/***/ (function(module, exports, __webpack_require__) {
|
8743 |
+
|
8744 |
+
var fails = __webpack_require__(6);
|
8745 |
+
|
8746 |
+
module.exports = !fails(function () {
|
8747 |
+
return Object.isExtensible(Object.preventExtensions({}));
|
8748 |
+
});
|
8749 |
+
|
8750 |
+
|
8751 |
+
/***/ }),
|
8752 |
+
/* 254 */
|
8753 |
+
/***/ (function(module, exports, __webpack_require__) {
|
8754 |
+
|
8755 |
+
var fails = __webpack_require__(6);
|
8756 |
+
var wellKnownSymbol = __webpack_require__(8);
|
8757 |
+
var IS_PURE = __webpack_require__(57);
|
8758 |
+
|
8759 |
+
var ITERATOR = wellKnownSymbol('iterator');
|
8760 |
+
|
8761 |
+
module.exports = !fails(function () {
|
8762 |
+
var url = new URL('b?a=1&b=2&c=3', 'http://a');
|
8763 |
+
var searchParams = url.searchParams;
|
8764 |
+
var result = '';
|
8765 |
+
url.pathname = 'c%20d';
|
8766 |
+
searchParams.forEach(function (value, key) {
|
8767 |
+
searchParams['delete']('b');
|
8768 |
+
result += key + value;
|
8769 |
+
});
|
8770 |
+
return (IS_PURE && !url.toJSON)
|
8771 |
+
|| !searchParams.sort
|
8772 |
+
|| url.href !== 'http://a/c%20d?a=1&c=3'
|
8773 |
+
|| searchParams.get('c') !== '3'
|
8774 |
+
|| String(new URLSearchParams('?a=1')) !== 'a=1'
|
8775 |
+
|| !searchParams[ITERATOR]
|
8776 |
+
// throws in Edge
|
8777 |
+
|| new URL('https://a@b').username !== 'a'
|
8778 |
+
|| new URLSearchParams(new URLSearchParams('a=b')).get('a') !== 'b'
|
8779 |
+
// not punycoded in Edge
|
8780 |
+
|| new URL('http://тест').host !== 'xn--e1aybc'
|
8781 |
+
// not escaped in Chrome 62-
|
8782 |
+
|| new URL('http://a#б').hash !== '#%D0%B1'
|
8783 |
+
// fails in Chrome 66-
|
8784 |
+
|| result !== 'a1c3'
|
8785 |
+
// throws in Safari
|
8786 |
+
|| new URL('http://x', undefined).host !== 'x';
|
8787 |
+
});
|
8788 |
+
|
8789 |
+
|
8790 |
+
/***/ }),
|
8791 |
+
/* 255 */,
|
8792 |
+
/* 256 */,
|
8793 |
+
/* 257 */,
|
8794 |
+
/* 258 */,
|
8795 |
+
/* 259 */,
|
8796 |
+
/* 260 */,
|
8797 |
+
/* 261 */,
|
8798 |
+
/* 262 */
|
8799 |
+
/***/ (function(module, exports) {
|
8800 |
+
|
8801 |
+
(function() { module.exports = window["wp"]["dom"]; }());
|
8802 |
+
|
8803 |
+
/***/ }),
|
8804 |
+
/* 263 */,
|
8805 |
+
/* 264 */,
|
8806 |
+
/* 265 */,
|
8807 |
+
/* 266 */,
|
8808 |
+
/* 267 */,
|
8809 |
+
/* 268 */
|
8810 |
+
/***/ (function(module, exports, __webpack_require__) {
|
8811 |
+
|
8812 |
+
"use strict";
|
8813 |
+
|
8814 |
+
|
8815 |
+
if (true) {
|
8816 |
+
module.exports = __webpack_require__(298);
|
8817 |
+
} else {}
|
8818 |
+
|
8819 |
+
|
8820 |
+
/***/ }),
|
8821 |
+
/* 269 */,
|
8822 |
+
/* 270 */,
|
8823 |
+
/* 271 */,
|
8824 |
+
/* 272 */,
|
8825 |
+
/* 273 */,
|
8826 |
+
/* 274 */,
|
8827 |
+
/* 275 */,
|
8828 |
+
/* 276 */,
|
8829 |
+
/* 277 */
|
8830 |
+
/***/ (function(module, __webpack_exports__, __webpack_require__) {
|
8831 |
+
|
8832 |
+
"use strict";
|
8833 |
+
/* harmony import */ var core_js_modules_es_promise_js__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(164);
|
8834 |
+
/* harmony import */ var core_js_modules_es_promise_js__WEBPACK_IMPORTED_MODULE_0___default = /*#__PURE__*/__webpack_require__.n(core_js_modules_es_promise_js__WEBPACK_IMPORTED_MODULE_0__);
|
8835 |
+
/* harmony import */ var core_js_modules_es_object_to_string_js__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(100);
|
8836 |
+
/* harmony import */ var core_js_modules_es_object_to_string_js__WEBPACK_IMPORTED_MODULE_1___default = /*#__PURE__*/__webpack_require__.n(core_js_modules_es_object_to_string_js__WEBPACK_IMPORTED_MODULE_1__);
|
8837 |
+
/* harmony import */ var core_js_modules_es_string_iterator_js__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(151);
|
8838 |
+
/* harmony import */ var core_js_modules_es_string_iterator_js__WEBPACK_IMPORTED_MODULE_2___default = /*#__PURE__*/__webpack_require__.n(core_js_modules_es_string_iterator_js__WEBPACK_IMPORTED_MODULE_2__);
|
8839 |
+
/* harmony import */ var core_js_modules_es_array_iterator_js__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(123);
|
8840 |
+
/* harmony import */ var core_js_modules_es_array_iterator_js__WEBPACK_IMPORTED_MODULE_3___default = /*#__PURE__*/__webpack_require__.n(core_js_modules_es_array_iterator_js__WEBPACK_IMPORTED_MODULE_3__);
|
8841 |
+
/* harmony import */ var core_js_modules_web_dom_collections_iterator_js__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(146);
|
8842 |
+
/* harmony import */ var core_js_modules_web_dom_collections_iterator_js__WEBPACK_IMPORTED_MODULE_4___default = /*#__PURE__*/__webpack_require__.n(core_js_modules_web_dom_collections_iterator_js__WEBPACK_IMPORTED_MODULE_4__);
|
8843 |
+
/* harmony import */ var core_js_modules_es_array_filter_js__WEBPACK_IMPORTED_MODULE_5__ = __webpack_require__(41);
|
8844 |
+
/* harmony import */ var core_js_modules_es_array_filter_js__WEBPACK_IMPORTED_MODULE_5___default = /*#__PURE__*/__webpack_require__.n(core_js_modules_es_array_filter_js__WEBPACK_IMPORTED_MODULE_5__);
|
8845 |
+
/* harmony import */ var _wordpress_i18n__WEBPACK_IMPORTED_MODULE_6__ = __webpack_require__(2);
|
8846 |
+
/* harmony import */ var _wordpress_i18n__WEBPACK_IMPORTED_MODULE_6___default = /*#__PURE__*/__webpack_require__.n(_wordpress_i18n__WEBPACK_IMPORTED_MODULE_6__);
|
8847 |
+
/* harmony import */ var _wordpress_hooks__WEBPACK_IMPORTED_MODULE_7__ = __webpack_require__(141);
|
8848 |
+
/* harmony import */ var _wordpress_hooks__WEBPACK_IMPORTED_MODULE_7___default = /*#__PURE__*/__webpack_require__.n(_wordpress_hooks__WEBPACK_IMPORTED_MODULE_7__);
|
8849 |
+
/* harmony import */ var _woocommerce_wc_admin_settings__WEBPACK_IMPORTED_MODULE_8__ = __webpack_require__(85);
|
8850 |
+
/* harmony import */ var _wordpress_element__WEBPACK_IMPORTED_MODULE_9__ = __webpack_require__(0);
|
8851 |
+
/* harmony import */ var _wordpress_element__WEBPACK_IMPORTED_MODULE_9___default = /*#__PURE__*/__webpack_require__.n(_wordpress_element__WEBPACK_IMPORTED_MODULE_9__);
|
8852 |
+
|
8853 |
+
|
8854 |
+
|
8855 |
+
|
8856 |
+
|
8857 |
+
|
8858 |
+
|
8859 |
+
/**
|
8860 |
+
* External dependencies
|
8861 |
+
*/
|
8862 |
+
|
8863 |
+
|
8864 |
+
|
8865 |
+
|
8866 |
+
var manageStock = Object(_woocommerce_wc_admin_settings__WEBPACK_IMPORTED_MODULE_8__[/* getSetting */ "g"])('manageStock', 'no');
|
8867 |
+
var REPORTS_FILTER = 'woocommerce_admin_reports_list';
|
8868 |
+
/**
|
8869 |
+
* Internal dependencies
|
8870 |
+
*/
|
8871 |
+
|
8872 |
+
var RevenueReport = Object(_wordpress_element__WEBPACK_IMPORTED_MODULE_9__["lazy"])(function () {
|
8873 |
+
return Promise.all(/* import() | analytics-report-revenue */[__webpack_require__.e(0), __webpack_require__.e(16)]).then(__webpack_require__.bind(null, 584));
|
8874 |
+
});
|
8875 |
+
var ProductsReport = Object(_wordpress_element__WEBPACK_IMPORTED_MODULE_9__["lazy"])(function () {
|
8876 |
+
return Promise.all(/* import() | analytics-report-products */[__webpack_require__.e(0), __webpack_require__.e(2), __webpack_require__.e(15)]).then(__webpack_require__.bind(null, 580));
|
8877 |
+
});
|
8878 |
+
var VariationsReport = Object(_wordpress_element__WEBPACK_IMPORTED_MODULE_9__["lazy"])(function () {
|
8879 |
+
return Promise.all(/* import() | analytics-report-variations */[__webpack_require__.e(0), __webpack_require__.e(2), __webpack_require__.e(19)]).then(__webpack_require__.bind(null, 585));
|
8880 |
+
});
|
8881 |
+
var OrdersReport = Object(_wordpress_element__WEBPACK_IMPORTED_MODULE_9__["lazy"])(function () {
|
8882 |
+
return Promise.all(/* import() | analytics-report-orders */[__webpack_require__.e(0), __webpack_require__.e(5), __webpack_require__.e(14)]).then(__webpack_require__.bind(null, 586));
|
8883 |
+
});
|
8884 |
+
var CategoriesReport = Object(_wordpress_element__WEBPACK_IMPORTED_MODULE_9__["lazy"])(function () {
|
8885 |
+
return Promise.all(/* import() | analytics-report-categories */[__webpack_require__.e(0), __webpack_require__.e(2), __webpack_require__.e(10)]).then(__webpack_require__.bind(null, 582));
|
8886 |
+
});
|
8887 |
+
var CouponsReport = Object(_wordpress_element__WEBPACK_IMPORTED_MODULE_9__["lazy"])(function () {
|
8888 |
+
return Promise.all(/* import() | analytics-report-coupons */[__webpack_require__.e(0), __webpack_require__.e(11)]).then(__webpack_require__.bind(null, 587));
|
8889 |
+
});
|
8890 |
+
var TaxesReport = Object(_wordpress_element__WEBPACK_IMPORTED_MODULE_9__["lazy"])(function () {
|
8891 |
+
return Promise.all(/* import() | analytics-report-taxes */[__webpack_require__.e(0), __webpack_require__.e(18)]).then(__webpack_require__.bind(null, 588));
|
8892 |
+
});
|
8893 |
+
var DownloadsReport = Object(_wordpress_element__WEBPACK_IMPORTED_MODULE_9__["lazy"])(function () {
|
8894 |
+
return Promise.all(/* import() | analytics-report-downloads */[__webpack_require__.e(0), __webpack_require__.e(13)]).then(__webpack_require__.bind(null, 589));
|
8895 |
+
});
|
8896 |
+
var StockReport = Object(_wordpress_element__WEBPACK_IMPORTED_MODULE_9__["lazy"])(function () {
|
8897 |
+
return Promise.all(/* import() | analytics-report-stock */[__webpack_require__.e(0), __webpack_require__.e(17)]).then(__webpack_require__.bind(null, 581));
|
8898 |
+
});
|
8899 |
+
var CustomersReport = Object(_wordpress_element__WEBPACK_IMPORTED_MODULE_9__["lazy"])(function () {
|
8900 |
+
return Promise.all(/* import() | analytics-report-customers */[__webpack_require__.e(0), __webpack_require__.e(12)]).then(__webpack_require__.bind(null, 583));
|
8901 |
+
});
|
8902 |
+
/* harmony default export */ __webpack_exports__["a"] = (function () {
|
8903 |
+
var reports = [{
|
8904 |
+
report: 'revenue',
|
8905 |
+
title: Object(_wordpress_i18n__WEBPACK_IMPORTED_MODULE_6__["__"])('Revenue', 'woocommerce-admin'),
|
8906 |
+
component: RevenueReport,
|
8907 |
+
navArgs: {
|
8908 |
+
id: 'woocommerce-analytics-revenue'
|
8909 |
+
}
|
8910 |
+
}, {
|
8911 |
+
report: 'products',
|
8912 |
+
title: Object(_wordpress_i18n__WEBPACK_IMPORTED_MODULE_6__["__"])('Products', 'woocommerce-admin'),
|
8913 |
+
component: ProductsReport,
|
8914 |
+
navArgs: {
|
8915 |
+
id: 'woocommerce-analytics-products'
|
8916 |
+
}
|
8917 |
+
}, {
|
8918 |
+
report: 'variations',
|
8919 |
+
title: Object(_wordpress_i18n__WEBPACK_IMPORTED_MODULE_6__["__"])('Variations', 'woocommerce-admin'),
|
8920 |
+
component: VariationsReport,
|
8921 |
+
navArgs: {
|
8922 |
+
id: 'woocommerce-analytics-variations'
|
8923 |
+
}
|
8924 |
+
}, {
|
8925 |
+
report: 'orders',
|
8926 |
+
title: Object(_wordpress_i18n__WEBPACK_IMPORTED_MODULE_6__["__"])('Orders', 'woocommerce-admin'),
|
8927 |
+
component: OrdersReport,
|
8928 |
+
navArgs: {
|
8929 |
+
id: 'woocommerce-analytics-orders'
|
8930 |
+
}
|
8931 |
+
}, {
|
8932 |
+
report: 'categories',
|
8933 |
+
title: Object(_wordpress_i18n__WEBPACK_IMPORTED_MODULE_6__["__"])('Categories', 'woocommerce-admin'),
|
8934 |
+
component: CategoriesReport,
|
8935 |
+
navArgs: {
|
8936 |
+
id: 'woocommerce-analytics-categories'
|
8937 |
+
}
|
8938 |
+
}, {
|
8939 |
+
report: 'coupons',
|
8940 |
+
title: Object(_wordpress_i18n__WEBPACK_IMPORTED_MODULE_6__["__"])('Coupons', 'woocommerce-admin'),
|
8941 |
+
component: CouponsReport,
|
8942 |
+
navArgs: {
|
8943 |
+
id: 'woocommerce-analytics-coupons'
|
8944 |
+
}
|
8945 |
+
}, {
|
8946 |
+
report: 'taxes',
|
8947 |
+
title: Object(_wordpress_i18n__WEBPACK_IMPORTED_MODULE_6__["__"])('Taxes', 'woocommerce-admin'),
|
8948 |
+
component: TaxesReport,
|
8949 |
+
navArgs: {
|
8950 |
+
id: 'woocommerce-analytics-taxes'
|
8951 |
+
}
|
8952 |
+
}, manageStock === 'yes' ? {
|
8953 |
+
report: 'stock',
|
8954 |
+
title: Object(_wordpress_i18n__WEBPACK_IMPORTED_MODULE_6__["__"])('Stock', 'woocommerce-admin'),
|
8955 |
+
component: StockReport,
|
8956 |
+
navArgs: {
|
8957 |
+
id: 'woocommerce-analytics-stock'
|
8958 |
+
}
|
8959 |
+
} : null, {
|
8960 |
+
report: 'customers',
|
8961 |
+
title: Object(_wordpress_i18n__WEBPACK_IMPORTED_MODULE_6__["__"])('Customers', 'woocommerce-admin'),
|
8962 |
+
component: CustomersReport
|
8963 |
+
}, {
|
8964 |
+
report: 'downloads',
|
8965 |
+
title: Object(_wordpress_i18n__WEBPACK_IMPORTED_MODULE_6__["__"])('Downloads', 'woocommerce-admin'),
|
8966 |
+
component: DownloadsReport,
|
8967 |
+
navArgs: {
|
8968 |
+
id: 'woocommerce-analytics-downloads'
|
8969 |
+
}
|
8970 |
+
}].filter(Boolean);
|
8971 |
+
return Object(_wordpress_hooks__WEBPACK_IMPORTED_MODULE_7__["applyFilters"])(REPORTS_FILTER, reports);
|
8972 |
+
});
|
8973 |
+
|
8974 |
+
/***/ }),
|
8975 |
+
/* 278 */
|
8976 |
+
/***/ (function(module, exports, __webpack_require__) {
|
8977 |
+
|
8978 |
+
"use strict";
|
8979 |
+
|
8980 |
+
|
8981 |
+
var reactIs = __webpack_require__(268);
|
8982 |
+
|
8983 |
+
/**
|
8984 |
+
* Copyright 2015, Yahoo! Inc.
|
8985 |
+
* Copyrights licensed under the New BSD License. See the accompanying LICENSE file for terms.
|
8986 |
+
*/
|
8987 |
+
var REACT_STATICS = {
|
8988 |
+
childContextTypes: true,
|
8989 |
+
contextType: true,
|
8990 |
+
contextTypes: true,
|
8991 |
+
defaultProps: true,
|
8992 |
+
displayName: true,
|
8993 |
+
getDefaultProps: true,
|
8994 |
+
getDerivedStateFromError: true,
|
8995 |
+
getDerivedStateFromProps: true,
|
8996 |
+
mixins: true,
|
8997 |
+
propTypes: true,
|
8998 |
+
type: true
|
8999 |
+
};
|
9000 |
+
var KNOWN_STATICS = {
|
9001 |
+
name: true,
|
9002 |
+
length: true,
|
9003 |
+
prototype: true,
|
9004 |
+
caller: true,
|
9005 |
+
callee: true,
|
9006 |
+
arguments: true,
|
9007 |
+
arity: true
|
9008 |
+
};
|
9009 |
+
var FORWARD_REF_STATICS = {
|
9010 |
+
'$$typeof': true,
|
9011 |
+
render: true,
|
9012 |
+
defaultProps: true,
|
9013 |
+
displayName: true,
|
9014 |
+
propTypes: true
|
9015 |
+
};
|
9016 |
+
var MEMO_STATICS = {
|
9017 |
+
'$$typeof': true,
|
9018 |
+
compare: true,
|
9019 |
+
defaultProps: true,
|
9020 |
+
displayName: true,
|
9021 |
+
propTypes: true,
|
9022 |
+
type: true
|
9023 |
+
};
|
9024 |
+
var TYPE_STATICS = {};
|
9025 |
+
TYPE_STATICS[reactIs.ForwardRef] = FORWARD_REF_STATICS;
|
9026 |
+
TYPE_STATICS[reactIs.Memo] = MEMO_STATICS;
|
9027 |
+
|
9028 |
+
function getStatics(component) {
|
9029 |
+
// React v16.11 and below
|
9030 |
+
if (reactIs.isMemo(component)) {
|
9031 |
+
return MEMO_STATICS;
|
9032 |
+
} // React v16.12 and above
|
9033 |
+
|
9034 |
+
|
9035 |
+
return TYPE_STATICS[component['$$typeof']] || REACT_STATICS;
|
9036 |
+
}
|
9037 |
+
|
9038 |
+
var defineProperty = Object.defineProperty;
|
9039 |
+
var getOwnPropertyNames = Object.getOwnPropertyNames;
|
9040 |
+
var getOwnPropertySymbols = Object.getOwnPropertySymbols;
|
9041 |
+
var getOwnPropertyDescriptor = Object.getOwnPropertyDescriptor;
|
9042 |
+
var getPrototypeOf = Object.getPrototypeOf;
|
9043 |
+
var objectPrototype = Object.prototype;
|
9044 |
+
function hoistNonReactStatics(targetComponent, sourceComponent, blacklist) {
|
9045 |
+
if (typeof sourceComponent !== 'string') {
|
9046 |
+
// don't hoist over string (html) components
|
9047 |
+
if (objectPrototype) {
|
9048 |
+
var inheritedComponent = getPrototypeOf(sourceComponent);
|
9049 |
+
|
9050 |
+
if (inheritedComponent && inheritedComponent !== objectPrototype) {
|
9051 |
+
hoistNonReactStatics(targetComponent, inheritedComponent, blacklist);
|
9052 |
+
}
|
9053 |
+
}
|
9054 |
+
|
9055 |
+
var keys = getOwnPropertyNames(sourceComponent);
|
9056 |
+
|
9057 |
+
if (getOwnPropertySymbols) {
|
9058 |
+
keys = keys.concat(getOwnPropertySymbols(sourceComponent));
|
9059 |
+
}
|
9060 |
+
|
9061 |
+
var targetStatics = getStatics(targetComponent);
|
9062 |
+
var sourceStatics = getStatics(sourceComponent);
|
9063 |
+
|
9064 |
+
for (var i = 0; i < keys.length; ++i) {
|
9065 |
+
var key = keys[i];
|
9066 |
+
|
9067 |
+
if (!KNOWN_STATICS[key] && !(blacklist && blacklist[key]) && !(sourceStatics && sourceStatics[key]) && !(targetStatics && targetStatics[key])) {
|
9068 |
+
var descriptor = getOwnPropertyDescriptor(sourceComponent, key);
|
9069 |
+
|
9070 |
+
try {
|
9071 |
+
// Avoid failures from read-only properties
|
9072 |
+
defineProperty(targetComponent, key, descriptor);
|
9073 |
+
} catch (e) {}
|
9074 |
+
}
|
9075 |
+
}
|
9076 |
+
}
|
9077 |
+
|
9078 |
+
return targetComponent;
|
9079 |
+
}
|
9080 |
+
|
9081 |
+
module.exports = hoistNonReactStatics;
|
9082 |
+
|
9083 |
+
|
9084 |
+
/***/ }),
|
9085 |
+
/* 279 */
|
9086 |
+
/***/ (function(module, exports) {
|
9087 |
+
|
9088 |
+
(function() { module.exports = window["wp"]["plugins"]; }());
|
9089 |
+
|
9090 |
+
/***/ }),
|
9091 |
+
/* 280 */
|
9092 |
+
/***/ (function(module, __webpack_exports__, __webpack_require__) {
|
9093 |
+
|
9094 |
+
"use strict";
|
9095 |
+
|
9096 |
+
// EXPORTS
|
9097 |
+
__webpack_require__.d(__webpack_exports__, "c", function() { return /* binding */ layout_PrimaryLayout; });
|
9098 |
+
__webpack_require__.d(__webpack_exports__, "b", function() { return /* binding */ PageLayout; });
|
9099 |
+
__webpack_require__.d(__webpack_exports__, "a", function() { return /* binding */ EmbedLayout; });
|
9100 |
+
|
9101 |
+
// EXTERNAL MODULE: ./node_modules/core-js/modules/es.reflect.construct.js
|
9102 |
+
var es_reflect_construct = __webpack_require__(64);
|
9103 |
+
|
9104 |
+
// EXTERNAL MODULE: ./node_modules/core-js/modules/es.object.keys.js
|
9105 |
+
var es_object_keys = __webpack_require__(37);
|
9106 |
+
|
9107 |
+
// EXTERNAL MODULE: ./node_modules/core-js/modules/es.symbol.js
|
9108 |
+
var es_symbol = __webpack_require__(53);
|
9109 |
+
|
9110 |
+
// EXTERNAL MODULE: ./node_modules/core-js/modules/es.object.get-own-property-descriptor.js
|
9111 |
+
var es_object_get_own_property_descriptor = __webpack_require__(60);
|
9112 |
+
|
9113 |
+
// EXTERNAL MODULE: ./node_modules/core-js/modules/web.dom-collections.for-each.js
|
9114 |
+
var web_dom_collections_for_each = __webpack_require__(49);
|
9115 |
+
|
9116 |
+
// EXTERNAL MODULE: ./node_modules/core-js/modules/es.object.get-own-property-descriptors.js
|
9117 |
+
var es_object_get_own_property_descriptors = __webpack_require__(61);
|
9118 |
+
|
9119 |
+
// EXTERNAL MODULE: ./node_modules/@babel/runtime/helpers/extends.js
|
9120 |
+
var helpers_extends = __webpack_require__(80);
|
9121 |
+
var extends_default = /*#__PURE__*/__webpack_require__.n(helpers_extends);
|
9122 |
+
|
9123 |
+
// EXTERNAL MODULE: ./node_modules/@babel/runtime/helpers/objectWithoutProperties.js
|
9124 |
+
var objectWithoutProperties = __webpack_require__(116);
|
9125 |
+
var objectWithoutProperties_default = /*#__PURE__*/__webpack_require__.n(objectWithoutProperties);
|
9126 |
+
|
9127 |
+
// EXTERNAL MODULE: ./node_modules/@babel/runtime/helpers/defineProperty.js
|
9128 |
+
var defineProperty = __webpack_require__(7);
|
9129 |
+
var defineProperty_default = /*#__PURE__*/__webpack_require__.n(defineProperty);
|
9130 |
+
|
9131 |
+
// EXTERNAL MODULE: ./node_modules/@babel/runtime/helpers/classCallCheck.js
|
9132 |
+
var classCallCheck = __webpack_require__(22);
|
9133 |
+
var classCallCheck_default = /*#__PURE__*/__webpack_require__.n(classCallCheck);
|
9134 |
+
|
9135 |
+
// EXTERNAL MODULE: ./node_modules/@babel/runtime/helpers/createClass.js
|
9136 |
+
var createClass = __webpack_require__(23);
|
9137 |
+
var createClass_default = /*#__PURE__*/__webpack_require__.n(createClass);
|
9138 |
+
|
9139 |
+
// EXTERNAL MODULE: ./node_modules/@babel/runtime/helpers/inherits.js
|
9140 |
+
var inherits = __webpack_require__(24);
|
9141 |
+
var inherits_default = /*#__PURE__*/__webpack_require__.n(inherits);
|
9142 |
+
|
9143 |
+
// EXTERNAL MODULE: ./node_modules/@babel/runtime/helpers/possibleConstructorReturn.js
|
9144 |
+
var possibleConstructorReturn = __webpack_require__(25);
|
9145 |
+
var possibleConstructorReturn_default = /*#__PURE__*/__webpack_require__.n(possibleConstructorReturn);
|
9146 |
+
|
9147 |
+
// EXTERNAL MODULE: ./node_modules/@babel/runtime/helpers/getPrototypeOf.js
|
9148 |
+
var getPrototypeOf = __webpack_require__(14);
|
9149 |
+
var getPrototypeOf_default = /*#__PURE__*/__webpack_require__.n(getPrototypeOf);
|
9150 |
+
|
9151 |
+
// EXTERNAL MODULE: external ["wp","element"]
|
9152 |
+
var external_wp_element_ = __webpack_require__(0);
|
9153 |
+
|
9154 |
+
// EXTERNAL MODULE: ./node_modules/core-js/modules/es.promise.js
|
9155 |
+
var es_promise = __webpack_require__(164);
|
9156 |
+
|
9157 |
+
// EXTERNAL MODULE: ./node_modules/core-js/modules/es.object.to-string.js
|
9158 |
+
var es_object_to_string = __webpack_require__(100);
|
9159 |
+
|
9160 |
+
// EXTERNAL MODULE: ./node_modules/core-js/modules/es.string.iterator.js
|
9161 |
+
var es_string_iterator = __webpack_require__(151);
|
9162 |
+
|
9163 |
+
// EXTERNAL MODULE: ./node_modules/core-js/modules/es.array.iterator.js
|
9164 |
+
var es_array_iterator = __webpack_require__(123);
|
9165 |
+
|
9166 |
+
// EXTERNAL MODULE: ./node_modules/core-js/modules/web.dom-collections.iterator.js
|
9167 |
+
var web_dom_collections_iterator = __webpack_require__(146);
|
9168 |
+
|
9169 |
+
// EXTERNAL MODULE: ./node_modules/core-js/modules/es.string.search.js
|
9170 |
+
var es_string_search = __webpack_require__(170);
|
9171 |
+
|
9172 |
+
// EXTERNAL MODULE: ./node_modules/core-js/modules/es.regexp.exec.js
|
9173 |
+
var es_regexp_exec = __webpack_require__(88);
|
9174 |
+
|
9175 |
+
// EXTERNAL MODULE: ./node_modules/core-js/modules/es.string.replace.js
|
9176 |
+
var es_string_replace = __webpack_require__(135);
|
9177 |
+
|
9178 |
+
// EXTERNAL MODULE: ./node_modules/core-js/modules/es.array.includes.js
|
9179 |
+
var es_array_includes = __webpack_require__(107);
|
9180 |
+
|
9181 |
+
// EXTERNAL MODULE: ./node_modules/core-js/modules/es.string.includes.js
|
9182 |
+
var es_string_includes = __webpack_require__(140);
|
9183 |
+
|
9184 |
+
// EXTERNAL MODULE: ./node_modules/core-js/modules/es.array.map.js
|
9185 |
+
var es_array_map = __webpack_require__(51);
|
9186 |
+
|
9187 |
+
// EXTERNAL MODULE: ./node_modules/core-js/modules/es.array.filter.js
|
9188 |
+
var es_array_filter = __webpack_require__(41);
|
9189 |
+
|
9190 |
+
// EXTERNAL MODULE: external ["wp","compose"]
|
9191 |
+
var external_wp_compose_ = __webpack_require__(65);
|
9192 |
+
|
9193 |
+
// EXTERNAL MODULE: external ["wp","data"]
|
9194 |
+
var external_wp_data_ = __webpack_require__(26);
|
9195 |
+
|
9196 |
+
// EXTERNAL MODULE: ./node_modules/@babel/runtime/helpers/esm/inheritsLoose.js + 1 modules
|
9197 |
+
var inheritsLoose = __webpack_require__(128);
|
9198 |
+
|
9199 |
+
// EXTERNAL MODULE: external "React"
|
9200 |
+
var external_React_ = __webpack_require__(20);
|
9201 |
+
var external_React_default = /*#__PURE__*/__webpack_require__.n(external_React_);
|
9202 |
+
|
9203 |
+
// EXTERNAL MODULE: ./node_modules/prop-types/index.js
|
9204 |
+
var prop_types = __webpack_require__(1);
|
9205 |
+
var prop_types_default = /*#__PURE__*/__webpack_require__.n(prop_types);
|
9206 |
+
|
9207 |
+
// EXTERNAL MODULE: ./node_modules/history/esm/history.js + 2 modules
|
9208 |
+
var esm_history = __webpack_require__(202);
|
9209 |
+
|
9210 |
+
// EXTERNAL MODULE: ./node_modules/mini-create-react-context/dist/esm/index.js
|
9211 |
+
var esm = __webpack_require__(316);
|
9212 |
+
|
9213 |
+
// EXTERNAL MODULE: ./node_modules/tiny-invariant/dist/tiny-invariant.esm.js
|
9214 |
+
var tiny_invariant_esm = __webpack_require__(176);
|
9215 |
+
|
9216 |
+
// EXTERNAL MODULE: ./node_modules/@babel/runtime/helpers/esm/extends.js
|
9217 |
+
var esm_extends = __webpack_require__(117);
|
9218 |
+
|
9219 |
+
// EXTERNAL MODULE: ./node_modules/path-to-regexp/index.js
|
9220 |
+
var path_to_regexp = __webpack_require__(317);
|
9221 |
+
var path_to_regexp_default = /*#__PURE__*/__webpack_require__.n(path_to_regexp);
|
9222 |
+
|
9223 |
+
// EXTERNAL MODULE: ./node_modules/react-is/index.js
|
9224 |
+
var react_is = __webpack_require__(268);
|
9225 |
+
|
9226 |
+
// EXTERNAL MODULE: ./node_modules/@babel/runtime/helpers/esm/objectWithoutPropertiesLoose.js
|
9227 |
+
var objectWithoutPropertiesLoose = __webpack_require__(133);
|
9228 |
+
|
9229 |
+
// EXTERNAL MODULE: ./node_modules/hoist-non-react-statics/dist/hoist-non-react-statics.cjs.js
|
9230 |
+
var hoist_non_react_statics_cjs = __webpack_require__(278);
|
9231 |
+
var hoist_non_react_statics_cjs_default = /*#__PURE__*/__webpack_require__.n(hoist_non_react_statics_cjs);
|
9232 |
+
|
9233 |
+
// CONCATENATED MODULE: ./node_modules/react-router/esm/react-router.js
|
9234 |
+
|
9235 |
+
|
9236 |
+
|
9237 |
+
|
9238 |
+
|
9239 |
+
|
9240 |
+
|
9241 |
+
|
9242 |
+
|
9243 |
+
|
9244 |
+
|
9245 |
+
|
9246 |
+
|
9247 |
+
// TODO: Replace with React.createContext once we can assume React 16+
|
9248 |
+
|
9249 |
+
var react_router_createNamedContext = function createNamedContext(name) {
|
9250 |
+
var context = Object(esm["a" /* default */])();
|
9251 |
+
context.displayName = name;
|
9252 |
+
return context;
|
9253 |
+
};
|
9254 |
+
|
9255 |
+
var historyContext =
|
9256 |
+
/*#__PURE__*/
|
9257 |
+
react_router_createNamedContext("Router-History");
|
9258 |
+
|
9259 |
+
// TODO: Replace with React.createContext once we can assume React 16+
|
9260 |
+
|
9261 |
+
var createNamedContext$1 = function createNamedContext(name) {
|
9262 |
+
var context = Object(esm["a" /* default */])();
|
9263 |
+
context.displayName = name;
|
9264 |
+
return context;
|
9265 |
+
};
|
9266 |
+
|
9267 |
+
var react_router_context =
|
9268 |
+
/*#__PURE__*/
|
9269 |
+
createNamedContext$1("Router");
|
9270 |
+
|
9271 |
+
/**
|
9272 |
+
* The public API for putting history on context.
|
9273 |
+
*/
|
9274 |
+
|
9275 |
+
var react_router_Router =
|
9276 |
+
/*#__PURE__*/
|
9277 |
+
function (_React$Component) {
|
9278 |
+
Object(inheritsLoose["a" /* default */])(Router, _React$Component);
|
9279 |
+
|
9280 |
+
Router.computeRootMatch = function computeRootMatch(pathname) {
|
9281 |
+
return {
|
9282 |
+
path: "/",
|
9283 |
+
url: "/",
|
9284 |
+
params: {},
|
9285 |
+
isExact: pathname === "/"
|
9286 |
+
};
|
9287 |
+
};
|
9288 |
+
|
9289 |
+
function Router(props) {
|
9290 |
+
var _this;
|
9291 |
+
|
9292 |
+
_this = _React$Component.call(this, props) || this;
|
9293 |
+
_this.state = {
|
9294 |
+
location: props.history.location
|
9295 |
+
}; // This is a bit of a hack. We have to start listening for location
|
9296 |
+
// changes here in the constructor in case there are any <Redirect>s
|
9297 |
+
// on the initial render. If there are, they will replace/push when
|
9298 |
+
// they mount and since cDM fires in children before parents, we may
|
9299 |
+
// get a new location before the <Router> is mounted.
|
9300 |
+
|
9301 |
+
_this._isMounted = false;
|
9302 |
+
_this._pendingLocation = null;
|
9303 |
+
|
9304 |
+
if (!props.staticContext) {
|
9305 |
+
_this.unlisten = props.history.listen(function (location) {
|
9306 |
+
if (_this._isMounted) {
|
9307 |
+
_this.setState({
|
9308 |
+
location: location
|
9309 |
+
});
|
9310 |
+
} else {
|
9311 |
+
_this._pendingLocation = location;
|
9312 |
+
}
|
9313 |
+
});
|
9314 |
+
}
|
9315 |
+
|
9316 |
+
return _this;
|
9317 |
+
}
|
9318 |
+
|
9319 |
+
var _proto = Router.prototype;
|
9320 |
+
|
9321 |
+
_proto.componentDidMount = function componentDidMount() {
|
9322 |
+
this._isMounted = true;
|
9323 |
+
|
9324 |
+
if (this._pendingLocation) {
|
9325 |
+
this.setState({
|
9326 |
+
location: this._pendingLocation
|
9327 |
+
});
|
9328 |
+
}
|
9329 |
+
};
|
9330 |
+
|
9331 |
+
_proto.componentWillUnmount = function componentWillUnmount() {
|
9332 |
+
if (this.unlisten) this.unlisten();
|
9333 |
+
};
|
9334 |
+
|
9335 |
+
_proto.render = function render() {
|
9336 |
+
return external_React_default.a.createElement(react_router_context.Provider, {
|
9337 |
+
value: {
|
9338 |
+
history: this.props.history,
|
9339 |
+
location: this.state.location,
|
9340 |
+
match: Router.computeRootMatch(this.state.location.pathname),
|
9341 |
+
staticContext: this.props.staticContext
|
9342 |
+
}
|
9343 |
+
}, external_React_default.a.createElement(historyContext.Provider, {
|
9344 |
+
children: this.props.children || null,
|
9345 |
+
value: this.props.history
|
9346 |
+
}));
|
9347 |
+
};
|
9348 |
+
|
9349 |
+
return Router;
|
9350 |
+
}(external_React_default.a.Component);
|
9351 |
+
|
9352 |
+
if (false) {}
|
9353 |
+
|
9354 |
+
/**
|
9355 |
+
* The public API for a <Router> that stores location in memory.
|
9356 |
+
*/
|
9357 |
+
|
9358 |
+
var react_router_MemoryRouter =
|
9359 |
+
/*#__PURE__*/
|
9360 |
+
function (_React$Component) {
|
9361 |
+
Object(inheritsLoose["a" /* default */])(MemoryRouter, _React$Component);
|
9362 |
+
|
9363 |
+
function MemoryRouter() {
|
9364 |
+
var _this;
|
9365 |
+
|
9366 |
+
for (var _len = arguments.length, args = new Array(_len), _key = 0; _key < _len; _key++) {
|
9367 |
+
args[_key] = arguments[_key];
|
9368 |
+
}
|
9369 |
+
|
9370 |
+
_this = _React$Component.call.apply(_React$Component, [this].concat(args)) || this;
|
9371 |
+
_this.history = Object(esm_history["c" /* createMemoryHistory */])(_this.props);
|
9372 |
+
return _this;
|
9373 |
+
}
|
9374 |
+
|
9375 |
+
var _proto = MemoryRouter.prototype;
|
9376 |
+
|
9377 |
+
_proto.render = function render() {
|
9378 |
+
return external_React_default.a.createElement(react_router_Router, {
|
9379 |
+
history: this.history,
|
9380 |
+
children: this.props.children
|
9381 |
+
});
|
9382 |
+
};
|
9383 |
+
|
9384 |
+
return MemoryRouter;
|
9385 |
+
}(external_React_default.a.Component);
|
9386 |
+
|
9387 |
+
if (false) {}
|
9388 |
+
|
9389 |
+
var react_router_Lifecycle =
|
9390 |
+
/*#__PURE__*/
|
9391 |
+
function (_React$Component) {
|
9392 |
+
Object(inheritsLoose["a" /* default */])(Lifecycle, _React$Component);
|
9393 |
+
|
9394 |
+
function Lifecycle() {
|
9395 |
+
return _React$Component.apply(this, arguments) || this;
|
9396 |
+
}
|
9397 |
+
|
9398 |
+
var _proto = Lifecycle.prototype;
|
9399 |
+
|
9400 |
+
_proto.componentDidMount = function componentDidMount() {
|
9401 |
+
if (this.props.onMount) this.props.onMount.call(this, this);
|
9402 |
+
};
|
9403 |
+
|
9404 |
+
_proto.componentDidUpdate = function componentDidUpdate(prevProps) {
|
9405 |
+
if (this.props.onUpdate) this.props.onUpdate.call(this, this, prevProps);
|
9406 |
+
};
|
9407 |
+
|
9408 |
+
_proto.componentWillUnmount = function componentWillUnmount() {
|
9409 |
+
if (this.props.onUnmount) this.props.onUnmount.call(this, this);
|
9410 |
+
};
|
9411 |
+
|
9412 |
+
_proto.render = function render() {
|
9413 |
+
return null;
|
9414 |
+
};
|
9415 |
+
|
9416 |
+
return Lifecycle;
|
9417 |
+
}(external_React_default.a.Component);
|
9418 |
+
|
9419 |
+
/**
|
9420 |
+
* The public API for prompting the user before navigating away from a screen.
|
9421 |
+
*/
|
9422 |
+
|
9423 |
+
function Prompt(_ref) {
|
9424 |
+
var message = _ref.message,
|
9425 |
+
_ref$when = _ref.when,
|
9426 |
+
when = _ref$when === void 0 ? true : _ref$when;
|
9427 |
+
return external_React_default.a.createElement(react_router_context.Consumer, null, function (context) {
|
9428 |
+
!context ? false ? undefined : Object(tiny_invariant_esm["a" /* default */])(false) : void 0;
|
9429 |
+
if (!when || context.staticContext) return null;
|
9430 |
+
var method = context.history.block;
|
9431 |
+
return external_React_default.a.createElement(react_router_Lifecycle, {
|
9432 |
+
onMount: function onMount(self) {
|
9433 |
+
self.release = method(message);
|
9434 |
+
},
|
9435 |
+
onUpdate: function onUpdate(self, prevProps) {
|
9436 |
+
if (prevProps.message !== message) {
|
9437 |
+
self.release();
|
9438 |
+
self.release = method(message);
|
9439 |
+
}
|
9440 |
+
},
|
9441 |
+
onUnmount: function onUnmount(self) {
|
9442 |
+
self.release();
|
9443 |
+
},
|
9444 |
+
message: message
|
9445 |
+
});
|
9446 |
+
});
|
9447 |
+
}
|
9448 |
+
|
9449 |
+
if (false) { var messageType; }
|
9450 |
+
|
9451 |
+
var cache = {};
|
9452 |
+
var cacheLimit = 10000;
|
9453 |
+
var cacheCount = 0;
|
9454 |
+
|
9455 |
+
function compilePath(path) {
|
9456 |
+
if (cache[path]) return cache[path];
|
9457 |
+
var generator = path_to_regexp_default.a.compile(path);
|
9458 |
+
|
9459 |
+
if (cacheCount < cacheLimit) {
|
9460 |
+
cache[path] = generator;
|
9461 |
+
cacheCount++;
|
9462 |
+
}
|
9463 |
+
|
9464 |
+
return generator;
|
9465 |
+
}
|
9466 |
+
/**
|
9467 |
+
* Public API for generating a URL pathname from a path and parameters.
|
9468 |
+
*/
|
9469 |
+
|
9470 |
+
|
9471 |
+
function generatePath(path, params) {
|
9472 |
+
if (path === void 0) {
|
9473 |
+
path = "/";
|
9474 |
+
}
|
9475 |
+
|
9476 |
+
if (params === void 0) {
|
9477 |
+
params = {};
|
9478 |
+
}
|
9479 |
+
|
9480 |
+
return path === "/" ? path : compilePath(path)(params, {
|
9481 |
+
pretty: true
|
9482 |
+
});
|
9483 |
+
}
|
9484 |
+
|
9485 |
+
/**
|
9486 |
+
* The public API for navigating programmatically with a component.
|
9487 |
+
*/
|
9488 |
+
|
9489 |
+
function Redirect(_ref) {
|
9490 |
+
var computedMatch = _ref.computedMatch,
|
9491 |
+
to = _ref.to,
|
9492 |
+
_ref$push = _ref.push,
|
9493 |
+
push = _ref$push === void 0 ? false : _ref$push;
|
9494 |
+
return external_React_default.a.createElement(react_router_context.Consumer, null, function (context) {
|
9495 |
+
!context ? false ? undefined : Object(tiny_invariant_esm["a" /* default */])(false) : void 0;
|
9496 |
+
var history = context.history,
|
9497 |
+
staticContext = context.staticContext;
|
9498 |
+
var method = push ? history.push : history.replace;
|
9499 |
+
var location = Object(esm_history["b" /* createLocation */])(computedMatch ? typeof to === "string" ? generatePath(to, computedMatch.params) : Object(esm_extends["a" /* default */])({}, to, {
|
9500 |
+
pathname: generatePath(to.pathname, computedMatch.params)
|
9501 |
+
}) : to); // When rendering in a static context,
|
9502 |
+
// set the new location immediately.
|
9503 |
+
|
9504 |
+
if (staticContext) {
|
9505 |
+
method(location);
|
9506 |
+
return null;
|
9507 |
+
}
|
9508 |
+
|
9509 |
+
return external_React_default.a.createElement(react_router_Lifecycle, {
|
9510 |
+
onMount: function onMount() {
|
9511 |
+
method(location);
|
9512 |
+
},
|
9513 |
+
onUpdate: function onUpdate(self, prevProps) {
|
9514 |
+
var prevLocation = Object(esm_history["b" /* createLocation */])(prevProps.to);
|
9515 |
+
|
9516 |
+
if (!Object(esm_history["e" /* locationsAreEqual */])(prevLocation, Object(esm_extends["a" /* default */])({}, location, {
|
9517 |
+
key: prevLocation.key
|
9518 |
+
}))) {
|
9519 |
+
method(location);
|
9520 |
+
}
|
9521 |
+
},
|
9522 |
+
to: to
|
9523 |
+
});
|
9524 |
+
});
|
9525 |
+
}
|
9526 |
+
|
9527 |
+
if (false) {}
|
9528 |
+
|
9529 |
+
var cache$1 = {};
|
9530 |
+
var cacheLimit$1 = 10000;
|
9531 |
+
var cacheCount$1 = 0;
|
9532 |
+
|
9533 |
+
function compilePath$1(path, options) {
|
9534 |
+
var cacheKey = "" + options.end + options.strict + options.sensitive;
|
9535 |
+
var pathCache = cache$1[cacheKey] || (cache$1[cacheKey] = {});
|
9536 |
+
if (pathCache[path]) return pathCache[path];
|
9537 |
+
var keys = [];
|
9538 |
+
var regexp = path_to_regexp_default()(path, keys, options);
|
9539 |
+
var result = {
|
9540 |
+
regexp: regexp,
|
9541 |
+
keys: keys
|
9542 |
+
};
|
9543 |
+
|
9544 |
+
if (cacheCount$1 < cacheLimit$1) {
|
9545 |
+
pathCache[path] = result;
|
9546 |
+
cacheCount$1++;
|
9547 |
+
}
|
9548 |
+
|
9549 |
+
return result;
|
9550 |
+
}
|
9551 |
+
/**
|
9552 |
+
* Public API for matching a URL pathname to a path.
|
9553 |
+
*/
|
9554 |
+
|
9555 |
+
|
9556 |
+
function matchPath(pathname, options) {
|
9557 |
+
if (options === void 0) {
|
9558 |
+
options = {};
|
9559 |
+
}
|
9560 |
+
|
9561 |
+
if (typeof options === "string" || Array.isArray(options)) {
|
9562 |
+
options = {
|
9563 |
+
path: options
|
9564 |
+
};
|
9565 |
+
}
|
9566 |
+
|
9567 |
+
var _options = options,
|
9568 |
+
path = _options.path,
|
9569 |
+
_options$exact = _options.exact,
|
9570 |
+
exact = _options$exact === void 0 ? false : _options$exact,
|
9571 |
+
_options$strict = _options.strict,
|
9572 |
+
strict = _options$strict === void 0 ? false : _options$strict,
|
9573 |
+
_options$sensitive = _options.sensitive,
|
9574 |
+
sensitive = _options$sensitive === void 0 ? false : _options$sensitive;
|
9575 |
+
var paths = [].concat(path);
|
9576 |
+
return paths.reduce(function (matched, path) {
|
9577 |
+
if (!path && path !== "") return null;
|
9578 |
+
if (matched) return matched;
|
9579 |
+
|
9580 |
+
var _compilePath = compilePath$1(path, {
|
9581 |
+
end: exact,
|
9582 |
+
strict: strict,
|
9583 |
+
sensitive: sensitive
|
9584 |
+
}),
|
9585 |
+
regexp = _compilePath.regexp,
|
9586 |
+
keys = _compilePath.keys;
|
9587 |
+
|
9588 |
+
var match = regexp.exec(pathname);
|
9589 |
+
if (!match) return null;
|
9590 |
+
var url = match[0],
|
9591 |
+
values = match.slice(1);
|
9592 |
+
var isExact = pathname === url;
|
9593 |
+
if (exact && !isExact) return null;
|
9594 |
+
return {
|
9595 |
+
path: path,
|
9596 |
+
// the path used to match
|
9597 |
+
url: path === "/" && url === "" ? "/" : url,
|
9598 |
+
// the matched portion of the URL
|
9599 |
+
isExact: isExact,
|
9600 |
+
// whether or not we matched exactly
|
9601 |
+
params: keys.reduce(function (memo, key, index) {
|
9602 |
+
memo[key.name] = values[index];
|
9603 |
+
return memo;
|
9604 |
+
}, {})
|
9605 |
+
};
|
9606 |
+
}, null);
|
9607 |
+
}
|
9608 |
+
|
9609 |
+
function isEmptyChildren(children) {
|
9610 |
+
return external_React_default.a.Children.count(children) === 0;
|
9611 |
+
}
|
9612 |
+
|
9613 |
+
function evalChildrenDev(children, props, path) {
|
9614 |
+
var value = children(props);
|
9615 |
+
false ? undefined : void 0;
|
9616 |
+
return value || null;
|
9617 |
+
}
|
9618 |
+
/**
|
9619 |
+
* The public API for matching a single path and rendering.
|
9620 |
+
*/
|
9621 |
+
|
9622 |
+
|
9623 |
+
var react_router_Route =
|
9624 |
+
/*#__PURE__*/
|
9625 |
+
function (_React$Component) {
|
9626 |
+
Object(inheritsLoose["a" /* default */])(Route, _React$Component);
|
9627 |
+
|
9628 |
+
function Route() {
|
9629 |
+
return _React$Component.apply(this, arguments) || this;
|
9630 |
+
}
|
9631 |
+
|
9632 |
+
var _proto = Route.prototype;
|
9633 |
+
|
9634 |
+
_proto.render = function render() {
|
9635 |
+
var _this = this;
|
9636 |
+
|
9637 |
+
return external_React_default.a.createElement(react_router_context.Consumer, null, function (context$1) {
|
9638 |
+
!context$1 ? false ? undefined : Object(tiny_invariant_esm["a" /* default */])(false) : void 0;
|
9639 |
+
var location = _this.props.location || context$1.location;
|
9640 |
+
var match = _this.props.computedMatch ? _this.props.computedMatch // <Switch> already computed the match for us
|
9641 |
+
: _this.props.path ? matchPath(location.pathname, _this.props) : context$1.match;
|
9642 |
+
|
9643 |
+
var props = Object(esm_extends["a" /* default */])({}, context$1, {
|
9644 |
+
location: location,
|
9645 |
+
match: match
|
9646 |
+
});
|
9647 |
+
|
9648 |
+
var _this$props = _this.props,
|
9649 |
+
children = _this$props.children,
|
9650 |
+
component = _this$props.component,
|
9651 |
+
render = _this$props.render; // Preact uses an empty array as children by
|
9652 |
+
// default, so use null if that's the case.
|
9653 |
+
|
9654 |
+
if (Array.isArray(children) && children.length === 0) {
|
9655 |
+
children = null;
|
9656 |
+
}
|
9657 |
+
|
9658 |
+
return external_React_default.a.createElement(react_router_context.Provider, {
|
9659 |
+
value: props
|
9660 |
+
}, props.match ? children ? typeof children === "function" ? false ? undefined : children(props) : children : component ? external_React_default.a.createElement(component, props) : render ? render(props) : null : typeof children === "function" ? false ? undefined : children(props) : null);
|
9661 |
+
});
|
9662 |
+
};
|
9663 |
+
|
9664 |
+
return Route;
|
9665 |
+
}(external_React_default.a.Component);
|
9666 |
+
|
9667 |
+
if (false) {}
|
9668 |
+
|
9669 |
+
function addLeadingSlash(path) {
|
9670 |
+
return path.charAt(0) === "/" ? path : "/" + path;
|
9671 |
+
}
|
9672 |
+
|
9673 |
+
function addBasename(basename, location) {
|
9674 |
+
if (!basename) return location;
|
9675 |
+
return Object(esm_extends["a" /* default */])({}, location, {
|
9676 |
+
pathname: addLeadingSlash(basename) + location.pathname
|
9677 |
+
});
|
9678 |
+
}
|
9679 |
+
|
9680 |
+
function stripBasename(basename, location) {
|
9681 |
+
if (!basename) return location;
|
9682 |
+
var base = addLeadingSlash(basename);
|
9683 |
+
if (location.pathname.indexOf(base) !== 0) return location;
|
9684 |
+
return Object(esm_extends["a" /* default */])({}, location, {
|
9685 |
+
pathname: location.pathname.substr(base.length)
|
9686 |
+
});
|
9687 |
+
}
|
9688 |
+
|
9689 |
+
function createURL(location) {
|
9690 |
+
return typeof location === "string" ? location : Object(esm_history["d" /* createPath */])(location);
|
9691 |
+
}
|
9692 |
+
|
9693 |
+
function staticHandler(methodName) {
|
9694 |
+
return function () {
|
9695 |
+
false ? undefined : Object(tiny_invariant_esm["a" /* default */])(false) ;
|
9696 |
+
};
|
9697 |
+
}
|
9698 |
+
|
9699 |
+
function noop() {}
|
9700 |
+
/**
|
9701 |
+
* The public top-level API for a "static" <Router>, so-called because it
|
9702 |
+
* can't actually change the current location. Instead, it just records
|
9703 |
+
* location changes in a context object. Useful mainly in testing and
|
9704 |
+
* server-rendering scenarios.
|
9705 |
+
*/
|
9706 |
+
|
9707 |
+
|
9708 |
+
var react_router_StaticRouter =
|
9709 |
+
/*#__PURE__*/
|
9710 |
+
function (_React$Component) {
|
9711 |
+
Object(inheritsLoose["a" /* default */])(StaticRouter, _React$Component);
|
9712 |
+
|
9713 |
+
function StaticRouter() {
|
9714 |
+
var _this;
|
9715 |
+
|
9716 |
+
for (var _len = arguments.length, args = new Array(_len), _key = 0; _key < _len; _key++) {
|
9717 |
+
args[_key] = arguments[_key];
|
9718 |
+
}
|
9719 |
+
|
9720 |
+
_this = _React$Component.call.apply(_React$Component, [this].concat(args)) || this;
|
9721 |
+
|
9722 |
+
_this.handlePush = function (location) {
|
9723 |
+
return _this.navigateTo(location, "PUSH");
|
9724 |
+
};
|
9725 |
+
|
9726 |
+
_this.handleReplace = function (location) {
|
9727 |
+
return _this.navigateTo(location, "REPLACE");
|
9728 |
+
};
|
9729 |
+
|
9730 |
+
_this.handleListen = function () {
|
9731 |
+
return noop;
|
9732 |
+
};
|
9733 |
+
|
9734 |
+
_this.handleBlock = function () {
|
9735 |
+
return noop;
|
9736 |
+
};
|
9737 |
+
|
9738 |
+
return _this;
|
9739 |
+
}
|
9740 |
+
|
9741 |
+
var _proto = StaticRouter.prototype;
|
9742 |
+
|
9743 |
+
_proto.navigateTo = function navigateTo(location, action) {
|
9744 |
+
var _this$props = this.props,
|
9745 |
+
_this$props$basename = _this$props.basename,
|
9746 |
+
basename = _this$props$basename === void 0 ? "" : _this$props$basename,
|
9747 |
+
_this$props$context = _this$props.context,
|
9748 |
+
context = _this$props$context === void 0 ? {} : _this$props$context;
|
9749 |
+
context.action = action;
|
9750 |
+
context.location = addBasename(basename, Object(esm_history["b" /* createLocation */])(location));
|
9751 |
+
context.url = createURL(context.location);
|
9752 |
+
};
|
9753 |
+
|
9754 |
+
_proto.render = function render() {
|
9755 |
+
var _this$props2 = this.props,
|
9756 |
+
_this$props2$basename = _this$props2.basename,
|
9757 |
+
basename = _this$props2$basename === void 0 ? "" : _this$props2$basename,
|
9758 |
+
_this$props2$context = _this$props2.context,
|
9759 |
+
context = _this$props2$context === void 0 ? {} : _this$props2$context,
|
9760 |
+
_this$props2$location = _this$props2.location,
|
9761 |
+
location = _this$props2$location === void 0 ? "/" : _this$props2$location,
|
9762 |
+
rest = Object(objectWithoutPropertiesLoose["a" /* default */])(_this$props2, ["basename", "context", "location"]);
|
9763 |
+
|
9764 |
+
var history = {
|
9765 |
+
createHref: function createHref(path) {
|
9766 |
+
return addLeadingSlash(basename + createURL(path));
|
9767 |
+
},
|
9768 |
+
action: "POP",
|
9769 |
+
location: stripBasename(basename, Object(esm_history["b" /* createLocation */])(location)),
|
9770 |
+
push: this.handlePush,
|
9771 |
+
replace: this.handleReplace,
|
9772 |
+
go: staticHandler("go"),
|
9773 |
+
goBack: staticHandler("goBack"),
|
9774 |
+
goForward: staticHandler("goForward"),
|
9775 |
+
listen: this.handleListen,
|
9776 |
+
block: this.handleBlock
|
9777 |
+
};
|
9778 |
+
return external_React_default.a.createElement(react_router_Router, Object(esm_extends["a" /* default */])({}, rest, {
|
9779 |
+
history: history,
|
9780 |
+
staticContext: context
|
9781 |
+
}));
|
9782 |
+
};
|
9783 |
+
|
9784 |
+
return StaticRouter;
|
9785 |
+
}(external_React_default.a.Component);
|
9786 |
+
|
9787 |
+
if (false) {}
|
9788 |
+
|
9789 |
+
/**
|
9790 |
+
* The public API for rendering the first <Route> that matches.
|
9791 |
+
*/
|
9792 |
+
|
9793 |
+
var react_router_Switch =
|
9794 |
+
/*#__PURE__*/
|
9795 |
+
function (_React$Component) {
|
9796 |
+
Object(inheritsLoose["a" /* default */])(Switch, _React$Component);
|
9797 |
+
|
9798 |
+
function Switch() {
|
9799 |
+
return _React$Component.apply(this, arguments) || this;
|
9800 |
+
}
|
9801 |
+
|
9802 |
+
var _proto = Switch.prototype;
|
9803 |
+
|
9804 |
+
_proto.render = function render() {
|
9805 |
+
var _this = this;
|
9806 |
+
|
9807 |
+
return external_React_default.a.createElement(react_router_context.Consumer, null, function (context) {
|
9808 |
+
!context ? false ? undefined : Object(tiny_invariant_esm["a" /* default */])(false) : void 0;
|
9809 |
+
var location = _this.props.location || context.location;
|
9810 |
+
var element, match; // We use React.Children.forEach instead of React.Children.toArray().find()
|
9811 |
+
// here because toArray adds keys to all child elements and we do not want
|
9812 |
+
// to trigger an unmount/remount for two <Route>s that render the same
|
9813 |
+
// component at different URLs.
|
9814 |
+
|
9815 |
+
external_React_default.a.Children.forEach(_this.props.children, function (child) {
|
9816 |
+
if (match == null && external_React_default.a.isValidElement(child)) {
|
9817 |
+
element = child;
|
9818 |
+
var path = child.props.path || child.props.from;
|
9819 |
+
match = path ? matchPath(location.pathname, Object(esm_extends["a" /* default */])({}, child.props, {
|
9820 |
+
path: path
|
9821 |
+
})) : context.match;
|
9822 |
+
}
|
9823 |
+
});
|
9824 |
+
return match ? external_React_default.a.cloneElement(element, {
|
9825 |
+
location: location,
|
9826 |
+
computedMatch: match
|
9827 |
+
}) : null;
|
9828 |
+
});
|
9829 |
+
};
|
9830 |
+
|
9831 |
+
return Switch;
|
9832 |
+
}(external_React_default.a.Component);
|
9833 |
+
|
9834 |
+
if (false) {}
|
9835 |
+
|
9836 |
+
/**
|
9837 |
+
* A public higher-order component to access the imperative API
|
9838 |
+
*/
|
9839 |
+
|
9840 |
+
function withRouter(Component) {
|
9841 |
+
var displayName = "withRouter(" + (Component.displayName || Component.name) + ")";
|
9842 |
+
|
9843 |
+
var C = function C(props) {
|
9844 |
+
var wrappedComponentRef = props.wrappedComponentRef,
|
9845 |
+
remainingProps = Object(objectWithoutPropertiesLoose["a" /* default */])(props, ["wrappedComponentRef"]);
|
9846 |
+
|
9847 |
+
return external_React_default.a.createElement(react_router_context.Consumer, null, function (context) {
|
9848 |
+
!context ? false ? undefined : Object(tiny_invariant_esm["a" /* default */])(false) : void 0;
|
9849 |
+
return external_React_default.a.createElement(Component, Object(esm_extends["a" /* default */])({}, remainingProps, context, {
|
9850 |
+
ref: wrappedComponentRef
|
9851 |
+
}));
|
9852 |
+
});
|
9853 |
+
};
|
9854 |
+
|
9855 |
+
C.displayName = displayName;
|
9856 |
+
C.WrappedComponent = Component;
|
9857 |
+
|
9858 |
+
if (false) {}
|
9859 |
+
|
9860 |
+
return hoist_non_react_statics_cjs_default()(C, Component);
|
9861 |
+
}
|
9862 |
+
|
9863 |
+
var useContext = external_React_default.a.useContext;
|
9864 |
+
function useHistory() {
|
9865 |
+
if (false) {}
|
9866 |
+
|
9867 |
+
return useContext(historyContext);
|
9868 |
+
}
|
9869 |
+
function useLocation() {
|
9870 |
+
if (false) {}
|
9871 |
+
|
9872 |
+
return useContext(react_router_context).location;
|
9873 |
+
}
|
9874 |
+
function useParams() {
|
9875 |
+
if (false) {}
|
9876 |
+
|
9877 |
+
var match = useContext(react_router_context).match;
|
9878 |
+
return match ? match.params : {};
|
9879 |
+
}
|
9880 |
+
function useRouteMatch(path) {
|
9881 |
+
if (false) {}
|
9882 |
+
|
9883 |
+
var location = useLocation();
|
9884 |
+
var match = useContext(react_router_context).match;
|
9885 |
+
return path ? matchPath(location.pathname, path) : match;
|
9886 |
+
}
|
9887 |
+
|
9888 |
+
if (false) { var secondaryBuildName, initialBuildName, buildNames, react_router_key, global; }
|
9889 |
+
|
9890 |
+
|
9891 |
+
//# sourceMappingURL=react-router.js.map
|
9892 |
+
|
9893 |
+
// EXTERNAL MODULE: external "lodash"
|
9894 |
+
var external_lodash_ = __webpack_require__(5);
|
9895 |
+
|
9896 |
+
// EXTERNAL MODULE: ./node_modules/qs/lib/index.js
|
9897 |
+
var lib = __webpack_require__(162);
|
9898 |
+
|
9899 |
+
// EXTERNAL MODULE: external ["wc","components"]
|
9900 |
+
var external_wc_components_ = __webpack_require__(145);
|
9901 |
+
|
9902 |
+
// EXTERNAL MODULE: external ["wc","navigation"]
|
9903 |
+
var external_wc_navigation_ = __webpack_require__(50);
|
9904 |
+
|
9905 |
+
// EXTERNAL MODULE: ./client/wc-admin-settings/index.js
|
9906 |
+
var wc_admin_settings = __webpack_require__(85);
|
9907 |
+
|
9908 |
+
// EXTERNAL MODULE: external ["wc","data"]
|
9909 |
+
var external_wc_data_ = __webpack_require__(59);
|
9910 |
+
|
9911 |
+
// EXTERNAL MODULE: external ["wc","tracks"]
|
9912 |
+
var external_wc_tracks_ = __webpack_require__(92);
|
9913 |
+
|
9914 |
+
// EXTERNAL MODULE: external ["wc","notices"]
|
9915 |
+
var external_wc_notices_ = __webpack_require__(421);
|
9916 |
+
|
9917 |
+
// EXTERNAL MODULE: ./client/layout/style.scss
|
9918 |
+
var layout_style = __webpack_require__(422);
|
9919 |
+
|
9920 |
+
// EXTERNAL MODULE: ./node_modules/core-js/modules/es.array.concat.js
|
9921 |
+
var es_array_concat = __webpack_require__(66);
|
9922 |
+
|
9923 |
+
// EXTERNAL MODULE: ./node_modules/core-js/modules/es.string.match.js
|
9924 |
+
var es_string_match = __webpack_require__(203);
|
9925 |
+
|
9926 |
+
// EXTERNAL MODULE: ./node_modules/core-js/modules/es.string.split.js
|
9927 |
+
var es_string_split = __webpack_require__(177);
|
9928 |
+
|
9929 |
+
// EXTERNAL MODULE: ./node_modules/core-js/modules/es.object.assign.js
|
9930 |
+
var es_object_assign = __webpack_require__(250);
|
9931 |
+
|
9932 |
+
// EXTERNAL MODULE: ./node_modules/core-js/modules/es.array.from.js
|
9933 |
+
var es_array_from = __webpack_require__(283);
|
9934 |
+
|
9935 |
+
// EXTERNAL MODULE: external ["wp","hooks"]
|
9936 |
+
var external_wp_hooks_ = __webpack_require__(141);
|
9937 |
+
|
9938 |
+
// EXTERNAL MODULE: external ["wp","i18n"]
|
9939 |
+
var external_wp_i18n_ = __webpack_require__(2);
|
9940 |
+
|
9941 |
+
// EXTERNAL MODULE: ./client/analytics/report/get-reports.js
|
9942 |
+
var get_reports = __webpack_require__(277);
|
9943 |
+
|
9944 |
+
// EXTERNAL MODULE: ./client/dashboard/utils.js
|
9945 |
+
var utils = __webpack_require__(231);
|
9946 |
+
|
9947 |
+
// CONCATENATED MODULE: ./client/layout/controller.js
|
9948 |
+
|
9949 |
+
|
9950 |
+
|
9951 |
+
|
9952 |
+
|
9953 |
+
|
9954 |
+
|
9955 |
+
|
9956 |
+
function _createSuper(Derived) { var hasNativeReflectConstruct = _isNativeReflectConstruct(); return function _createSuperInternal() { var Super = getPrototypeOf_default()(Derived), result; if (hasNativeReflectConstruct) { var NewTarget = getPrototypeOf_default()(this).constructor; result = Reflect.construct(Super, arguments, NewTarget); } else { result = Super.apply(this, arguments); } return possibleConstructorReturn_default()(this, result); }; }
|
9957 |
+
|
9958 |
+
function _isNativeReflectConstruct() { if (typeof Reflect === "undefined" || !Reflect.construct) return false; if (Reflect.construct.sham) return false; if (typeof Proxy === "function") return true; try { Boolean.prototype.valueOf.call(Reflect.construct(Boolean, [], function () {})); return true; } catch (e) { return false; } }
|
9959 |
+
|
9960 |
+
|
9961 |
+
|
9962 |
+
|
9963 |
+
|
9964 |
+
|
9965 |
+
|
9966 |
+
|
9967 |
+
|
9968 |
+
|
9969 |
+
|
9970 |
+
|
9971 |
+
|
9972 |
+
|
9973 |
+
|
9974 |
+
|
9975 |
+
|
9976 |
+
|
9977 |
+
/**
|
9978 |
+
* External dependencies
|
9979 |
+
*/
|
9980 |
+
|
9981 |
+
|
9982 |
+
|
9983 |
+
|
9984 |
+
|
9985 |
+
|
9986 |
+
|
9987 |
+
|
9988 |
+
/**
|
9989 |
+
* Internal dependencies
|
9990 |
+
*/
|
9991 |
+
|
9992 |
+
|
9993 |
+
|
9994 |
+
var AnalyticsReport = Object(external_wp_element_["lazy"])(function () {
|
9995 |
+
return __webpack_require__.e(/* import() | analytics-report */ 9).then(__webpack_require__.bind(null, 691));
|
9996 |
+
});
|
9997 |
+
var AnalyticsSettings = Object(external_wp_element_["lazy"])(function () {
|
9998 |
+
return __webpack_require__.e(/* import() | analytics-settings */ 20).then(__webpack_require__.bind(null, 711));
|
9999 |
+
});
|
10000 |
+
var Dashboard = Object(external_wp_element_["lazy"])(function () {
|
10001 |
+
return __webpack_require__.e(/* import() | dashboard */ 28).then(__webpack_require__.bind(null, 692));
|
10002 |
+
});
|
10003 |
+
var Homescreen = Object(external_wp_element_["lazy"])(function () {
|
10004 |
+
return Promise.all(/* import() | homescreen */[__webpack_require__.e(1), __webpack_require__.e(3), __webpack_require__.e(52), __webpack_require__.e(4), __webpack_require__.e(32)]).then(__webpack_require__.bind(null, 708));
|
10005 |
+
});
|
10006 |
+
var MarketingOverview = Object(external_wp_element_["lazy"])(function () {
|
10007 |
+
return Promise.all(/* import() | marketing-overview */[__webpack_require__.e(3), __webpack_require__.e(36)]).then(__webpack_require__.bind(null, 712));
|
10008 |
+
});
|
10009 |
+
var ProfileWizard = Object(external_wp_element_["lazy"])(function () {
|
10010 |
+
return Promise.all(/* import() | profile-wizard */[__webpack_require__.e(53), __webpack_require__.e(46)]).then(__webpack_require__.bind(null, 709));
|
10011 |
+
});
|
10012 |
+
var SettingsGroup = Object(external_wp_element_["lazy"])(function () {
|
10013 |
+
return Promise.all(/* import() | profile-wizard */[__webpack_require__.e(53), __webpack_require__.e(46)]).then(__webpack_require__.bind(null, 704));
|
10014 |
+
});
|
10015 |
+
var PAGES_FILTER = 'woocommerce_admin_pages_list';
|
10016 |
+
var controller_getPages = function getPages() {
|
10017 |
+
var pages = [];
|
10018 |
+
var initialBreadcrumbs = [['', wcSettings.woocommerceTranslation]];
|
10019 |
+
pages.push({
|
10020 |
+
container: Homescreen,
|
10021 |
+
path: '/',
|
10022 |
+
breadcrumbs: [].concat(initialBreadcrumbs, [Object(external_wp_i18n_["__"])('Home', 'woocommerce-admin')]),
|
10023 |
+
wpOpenMenu: 'toplevel_page_woocommerce',
|
10024 |
+
navArgs: {
|
10025 |
+
id: 'woocommerce-home'
|
10026 |
+
},
|
10027 |
+
capability: 'manage_woocommerce'
|
10028 |
+
});
|
10029 |
+
|
10030 |
+
if (window.wcAdminFeatures.analytics) {
|
10031 |
+
pages.push({
|
10032 |
+
container: Dashboard,
|
10033 |
+
path: '/analytics/overview',
|
10034 |
+
breadcrumbs: [].concat(initialBreadcrumbs, [['/analytics/overview', Object(external_wp_i18n_["__"])('Analytics', 'woocommerce-admin')], Object(external_wp_i18n_["__"])('Overview', 'woocommerce-admin')]),
|
10035 |
+
wpOpenMenu: 'toplevel_page_wc-admin-path--analytics-overview',
|
10036 |
+
navArgs: {
|
10037 |
+
id: 'woocommerce-analytics-overview'
|
10038 |
+
},
|
10039 |
+
capability: 'view_woocommerce_reports'
|
10040 |
+
});
|
10041 |
+
pages.push({
|
10042 |
+
container: AnalyticsSettings,
|
10043 |
+
path: '/analytics/settings',
|
10044 |
+
breadcrumbs: [].concat(initialBreadcrumbs, [['/analytics/revenue', Object(external_wp_i18n_["__"])('Analytics', 'woocommerce-admin')], Object(external_wp_i18n_["__"])('Settings', 'woocommerce-admin')]),
|
10045 |
+
wpOpenMenu: 'toplevel_page_wc-admin-path--analytics-overview',
|
10046 |
+
navArgs: {
|
10047 |
+
id: 'woocommerce-analytics-settings'
|
10048 |
+
},
|
10049 |
+
capability: 'view_woocommerce_reports'
|
10050 |
+
});
|
10051 |
+
pages.push({
|
10052 |
+
container: AnalyticsReport,
|
10053 |
+
path: '/customers',
|
10054 |
+
breadcrumbs: [].concat(initialBreadcrumbs, [Object(external_wp_i18n_["__"])('Customers', 'woocommerce-admin')]),
|
10055 |
+
wpOpenMenu: 'toplevel_page_woocommerce',
|
10056 |
+
navArgs: {
|
10057 |
+
id: 'woocommerce-analytics-customers'
|
10058 |
+
},
|
10059 |
+
capability: 'view_woocommerce_reports'
|
10060 |
+
});
|
10061 |
+
pages.push({
|
10062 |
+
container: AnalyticsReport,
|
10063 |
+
path: '/analytics/:report',
|
10064 |
+
breadcrumbs: function breadcrumbs(_ref) {
|
10065 |
+
var match = _ref.match;
|
10066 |
+
var report = Object(external_lodash_["find"])(Object(get_reports["a" /* default */])(), {
|
10067 |
+
report: match.params.report
|
10068 |
+
});
|
10069 |
+
|
10070 |
+
if (!report) {
|
10071 |
+
return [];
|
10072 |
+
}
|
10073 |
+
|
10074 |
+
return [].concat(initialBreadcrumbs, [['/analytics/revenue', Object(external_wp_i18n_["__"])('Analytics', 'woocommerce-admin')], report.title]);
|
10075 |
+
},
|
10076 |
+
wpOpenMenu: 'toplevel_page_wc-admin-path--analytics-overview',
|
10077 |
+
capability: 'view_woocommerce_reports'
|
10078 |
+
});
|
10079 |
+
}
|
10080 |
+
|
10081 |
+
if (window.wcAdminFeatures.marketing) {
|
10082 |
+
pages.push({
|
10083 |
+
container: MarketingOverview,
|
10084 |
+
path: '/marketing',
|
10085 |
+
breadcrumbs: [].concat(initialBreadcrumbs, [['/marketing', Object(external_wp_i18n_["__"])('Marketing', 'woocommerce-admin')], Object(external_wp_i18n_["__"])('Overview', 'woocommerce-admin')]),
|
10086 |
+
wpOpenMenu: 'toplevel_page_woocommerce-marketing',
|
10087 |
+
navArgs: {
|
10088 |
+
id: 'woocommerce-marketing-overview'
|
10089 |
+
},
|
10090 |
+
capability: 'view_woocommerce_reports'
|
10091 |
+
});
|
10092 |
+
}
|
10093 |
+
|
10094 |
+
if (window.wcAdminFeatures.onboarding) {
|
10095 |
+
pages.push({
|
10096 |
+
container: ProfileWizard,
|
10097 |
+
path: '/setup-wizard',
|
10098 |
+
breadcrumbs: [].concat(initialBreadcrumbs, [['/setup-wizard', Object(external_wp_i18n_["__"])('Setup Wizard', 'woocommerce-admin')]]),
|
10099 |
+
capability: 'manage_woocommerce'
|
10100 |
+
});
|
10101 |
+
}
|
10102 |
+
|
10103 |
+
if (window.wcAdminFeatures.settings) {
|
10104 |
+
pages.push({
|
10105 |
+
container: SettingsGroup,
|
10106 |
+
path: '/settings/:page',
|
10107 |
+
breadcrumbs: function breadcrumbs(_ref2) {
|
10108 |
+
var match = _ref2.match;
|
10109 |
+
// @todo This might need to be refactored to retreive groups via data store.
|
10110 |
+
var settingsPages = Object(wc_admin_settings["g" /* getSetting */])('settingsPages');
|
10111 |
+
var page = settingsPages[match.params.page];
|
10112 |
+
|
10113 |
+
if (!page) {
|
10114 |
+
return [];
|
10115 |
+
}
|
10116 |
+
|
10117 |
+
return [].concat(initialBreadcrumbs, [[settingsPages.general ? '/settings/general' : "/settings/".concat(Object.keys(settingsPages)[0]), Object(external_wp_i18n_["__"])('Settings', 'woocommerce-admin')], page]);
|
10118 |
+
},
|
10119 |
+
wpOpenMenu: 'toplevel_page_woocommerce',
|
10120 |
+
capability: 'manage_woocommerce'
|
10121 |
+
});
|
10122 |
+
}
|
10123 |
+
|
10124 |
+
return Object(external_wp_hooks_["applyFilters"])(PAGES_FILTER, pages);
|
10125 |
+
};
|
10126 |
+
var controller_Controller = /*#__PURE__*/function (_Component) {
|
10127 |
+
inherits_default()(Controller, _Component);
|
10128 |
+
|
10129 |
+
var _super = _createSuper(Controller);
|
10130 |
+
|
10131 |
+
function Controller() {
|
10132 |
+
classCallCheck_default()(this, Controller);
|
10133 |
+
|
10134 |
+
return _super.apply(this, arguments);
|
10135 |
+
}
|
10136 |
+
|
10137 |
+
createClass_default()(Controller, [{
|
10138 |
+
key: "componentDidMount",
|
10139 |
+
value: function componentDidMount() {
|
10140 |
+
window.document.documentElement.scrollTop = 0;
|
10141 |
+
window.document.body.classList.remove('woocommerce-admin-is-loading');
|
10142 |
+
}
|
10143 |
+
}, {
|
10144 |
+
key: "componentDidUpdate",
|
10145 |
+
value: function componentDidUpdate(prevProps) {
|
10146 |
+
var prevBaseQuery = Object(external_lodash_["omit"])(prevProps.query, 'chartType', 'filter', 'paged');
|
10147 |
+
var baseQuery = Object(external_lodash_["omit"])(this.props.query, 'chartType', 'filter', 'paged');
|
10148 |
+
|
10149 |
+
if (prevProps.query.paged > 1 && !Object(external_lodash_["isEqual"])(prevBaseQuery, baseQuery)) {
|
10150 |
+
Object(external_wc_navigation_["getHistory"])().replace(Object(external_wc_navigation_["getNewPath"])({
|
10151 |
+
paged: 1
|
10152 |
+
}));
|
10153 |
+
}
|
10154 |
+
|
10155 |
+
if (prevProps.match.url !== this.props.match.url) {
|
10156 |
+
window.document.documentElement.scrollTop = 0;
|
10157 |
+
}
|
10158 |
+
}
|
10159 |
+
}, {
|
10160 |
+
key: "render",
|
10161 |
+
value: function render() {
|
10162 |
+
var _this$props = this.props,
|
10163 |
+
page = _this$props.page,
|
10164 |
+
match = _this$props.match,
|
10165 |
+
query = _this$props.query;
|
10166 |
+
var url = match.url,
|
10167 |
+
params = match.params;
|
10168 |
+
window.wpNavMenuUrlUpdate(query);
|
10169 |
+
window.wpNavMenuClassChange(page, url);
|
10170 |
+
return Object(external_wp_element_["createElement"])(external_wp_element_["Suspense"], {
|
10171 |
+
fallback: Object(external_wp_element_["createElement"])(external_wc_components_["Spinner"], null)
|
10172 |
+
}, Object(external_wp_element_["createElement"])(page.container, {
|
10173 |
+
params: params,
|
10174 |
+
path: url,
|
10175 |
+
pathMatch: page.path,
|
10176 |
+
query: query
|
10177 |
+
}));
|
10178 |
+
}
|
10179 |
+
}]);
|
10180 |
+
|
10181 |
+
return Controller;
|
10182 |
+
}(external_wp_element_["Component"]);
|
10183 |
+
/**
|
10184 |
+
* Update an anchor's link in sidebar to include persisted queries. Leave excluded screens
|
10185 |
+
* as is.
|
10186 |
+
*
|
10187 |
+
* @param {HTMLElement} item - Sidebar anchor link.
|
10188 |
+
* @param {Object} nextQuery - A query object to be added to updated hrefs.
|
10189 |
+
* @param {Array} excludedScreens - wc-admin screens to avoid updating.
|
10190 |
+
*/
|
10191 |
+
|
10192 |
+
function updateLinkHref(item, nextQuery, excludedScreens) {
|
10193 |
+
if (Object(utils["f" /* isWCAdmin */])(item.href)) {
|
10194 |
+
var search = Object(external_lodash_["last"])(item.href.split('?'));
|
10195 |
+
var query = Object(lib["parse"])(search);
|
10196 |
+
var path = query.path || 'homescreen';
|
10197 |
+
var screen = Object(external_wc_navigation_["getScreenFromPath"])(path);
|
10198 |
+
var isExcludedScreen = excludedScreens.includes(screen);
|
10199 |
+
var href = 'admin.php?' + Object(lib["stringify"])(Object.assign(query, isExcludedScreen ? {} : nextQuery)); // Replace the href so you can see the url on hover.
|
10200 |
+
|
10201 |
+
item.href = href;
|
10202 |
+
|
10203 |
+
item.onclick = function (e) {
|
10204 |
+
e.preventDefault();
|
10205 |
+
Object(external_wc_navigation_["getHistory"])().push(href);
|
10206 |
+
};
|
10207 |
+
}
|
10208 |
+
} // Update's wc-admin links in wp-admin menu
|
10209 |
+
|
10210 |
+
window.wpNavMenuUrlUpdate = function (query) {
|
10211 |
+
var nextQuery = Object(external_wc_navigation_["getPersistedQuery"])(query);
|
10212 |
+
var excludedScreens = Object(external_wc_navigation_["getQueryExcludedScreens"])();
|
10213 |
+
Array.from(document.querySelectorAll('#adminmenu a')).forEach(function (item) {
|
10214 |
+
return updateLinkHref(item, nextQuery, excludedScreens);
|
10215 |
+
});
|
10216 |
+
}; // When the route changes, we need to update wp-admin's menu with the correct section & current link
|
10217 |
+
|
10218 |
+
|
10219 |
+
window.wpNavMenuClassChange = function (page, url) {
|
10220 |
+
Array.from(document.getElementsByClassName('current')).forEach(function (item) {
|
10221 |
+
item.classList.remove('current');
|
10222 |
+
});
|
10223 |
+
var submenu = Array.from(document.querySelectorAll('.wp-has-current-submenu'));
|
10224 |
+
submenu.forEach(function (element) {
|
10225 |
+
element.classList.remove('wp-has-current-submenu');
|
10226 |
+
element.classList.remove('wp-menu-open');
|
10227 |
+
element.classList.remove('selected');
|
10228 |
+
element.classList.add('wp-not-current-submenu');
|
10229 |
+
element.classList.add('menu-top');
|
10230 |
+
});
|
10231 |
+
var pageUrl = url === '/' ? 'admin.php?page=wc-admin' : 'admin.php?page=wc-admin&path=' + encodeURIComponent(url);
|
10232 |
+
var currentItemsSelector = url === '/' ? "li > a[href$=\"".concat(pageUrl, "\"], li > a[href*=\"").concat(pageUrl, "?\"]") : "li > a[href*=\"".concat(pageUrl, "\"]");
|
10233 |
+
var currentItems = document.querySelectorAll(currentItemsSelector);
|
10234 |
+
Array.from(currentItems).forEach(function (item) {
|
10235 |
+
item.parentElement.classList.add('current');
|
10236 |
+
});
|
10237 |
+
|
10238 |
+
if (page.wpOpenMenu) {
|
10239 |
+
var currentMenu = document.querySelector('#' + page.wpOpenMenu);
|
10240 |
+
|
10241 |
+
if (currentMenu) {
|
10242 |
+
currentMenu.classList.remove('wp-not-current-submenu');
|
10243 |
+
currentMenu.classList.add('wp-has-current-submenu');
|
10244 |
+
currentMenu.classList.add('wp-menu-open');
|
10245 |
+
currentMenu.classList.add('current');
|
10246 |
+
}
|
10247 |
+
}
|
10248 |
+
|
10249 |
+
var wpWrap = document.querySelector('#wpwrap');
|
10250 |
+
wpWrap.classList.remove('wp-responsive-open');
|
10251 |
+
};
|
10252 |
+
// EXTERNAL MODULE: ./node_modules/core-js/modules/web.url.js
|
10253 |
+
var web_url = __webpack_require__(287);
|
10254 |
+
|
10255 |
+
// EXTERNAL MODULE: ./node_modules/core-js/modules/es.array.slice.js
|
10256 |
+
var es_array_slice = __webpack_require__(187);
|
10257 |
+
|
10258 |
+
// EXTERNAL MODULE: ./node_modules/core-js/modules/es.array.join.js
|
10259 |
+
var es_array_join = __webpack_require__(139);
|
10260 |
+
|
10261 |
+
// EXTERNAL MODULE: external ["wp","components"]
|
10262 |
+
var external_wp_components_ = __webpack_require__(4);
|
10263 |
+
|
10264 |
+
// EXTERNAL MODULE: ./node_modules/classnames/index.js
|
10265 |
+
var classnames = __webpack_require__(15);
|
10266 |
+
var classnames_default = /*#__PURE__*/__webpack_require__.n(classnames);
|
10267 |
+
|
10268 |
+
// EXTERNAL MODULE: external ["wp","htmlEntities"]
|
10269 |
+
var external_wp_htmlEntities_ = __webpack_require__(132);
|
10270 |
+
|
10271 |
+
// EXTERNAL MODULE: ./packages/experimental/build-module/index.js
|
10272 |
+
var build_module = __webpack_require__(105);
|
10273 |
+
|
10274 |
+
// EXTERNAL MODULE: ./node_modules/@wordpress/icons/build-module/icon/index.js
|
10275 |
+
var build_module_icon = __webpack_require__(426);
|
10276 |
+
|
10277 |
+
// EXTERNAL MODULE: ./node_modules/@wordpress/icons/build-module/library/chevron-left.js
|
10278 |
+
var chevron_left = __webpack_require__(597);
|
10279 |
+
|
10280 |
+
// EXTERNAL MODULE: external ["wp","keycodes"]
|
10281 |
+
var external_wp_keycodes_ = __webpack_require__(126);
|
10282 |
+
|
10283 |
+
// EXTERNAL MODULE: ./client/header/style.scss
|
10284 |
+
var header_style = __webpack_require__(423);
|
10285 |
+
|
10286 |
+
// EXTERNAL MODULE: ./node_modules/@babel/runtime/helpers/slicedToArray.js
|
10287 |
+
var slicedToArray = __webpack_require__(43);
|
10288 |
+
var slicedToArray_default = /*#__PURE__*/__webpack_require__.n(slicedToArray);
|
10289 |
+
|
10290 |
+
// EXTERNAL MODULE: ./node_modules/core-js/modules/es.function.name.js
|
10291 |
+
var es_function_name = __webpack_require__(129);
|
10292 |
+
|
10293 |
+
// EXTERNAL MODULE: external ["wp","primitives"]
|
10294 |
+
var external_wp_primitives_ = __webpack_require__(28);
|
10295 |
+
|
10296 |
+
// CONCATENATED MODULE: ./node_modules/@wordpress/icons/build-module/library/inbox.js
|
10297 |
+
|
10298 |
+
|
10299 |
+
/**
|
10300 |
+
* WordPress dependencies
|
10301 |
+
*/
|
10302 |
+
|
10303 |
+
var inbox_inbox = Object(external_wp_element_["createElement"])(external_wp_primitives_["SVG"], {
|
10304 |
+
xmlns: "http://www.w3.org/2000/svg",
|
10305 |
+
viewBox: "0 0 24 24"
|
10306 |
+
}, Object(external_wp_element_["createElement"])(external_wp_primitives_["Path"], {
|
10307 |
+
fillRule: "evenodd",
|
10308 |
+
d: "M6 5.5h12a.5.5 0 01.5.5v7H14a2 2 0 11-4 0H5.5V6a.5.5 0 01.5-.5zm-.5 9V18a.5.5 0 00.5.5h12a.5.5 0 00.5-.5v-3.5h-3.337a3.5 3.5 0 01-6.326 0H5.5zM4 13V6a2 2 0 012-2h12a2 2 0 012 2v12a2 2 0 01-2 2H6a2 2 0 01-2-2v-5z",
|
10309 |
+
clipRule: "evenodd"
|
10310 |
+
}));
|
10311 |
+
/* harmony default export */ var library_inbox = (inbox_inbox);
|
10312 |
+
//# sourceMappingURL=inbox.js.map
|
10313 |
+
// CONCATENATED MODULE: ./node_modules/@wordpress/icons/build-module/library/help.js
|
10314 |
+
|
10315 |
+
|
10316 |
+
/**
|
10317 |
+
* WordPress dependencies
|
10318 |
+
*/
|
10319 |
+
|
10320 |
+
var help_help = Object(external_wp_element_["createElement"])(external_wp_primitives_["SVG"], {
|
10321 |
+
xmlns: "http://www.w3.org/2000/svg",
|
10322 |
+
viewBox: "0 0 24 24"
|
10323 |
+
}, Object(external_wp_element_["createElement"])(external_wp_primitives_["Path"], {
|
10324 |
+
d: "M12 4.75a7.25 7.25 0 100 14.5 7.25 7.25 0 000-14.5zM3.25 12a8.75 8.75 0 1117.5 0 8.75 8.75 0 01-17.5 0zM12 8.75a1.5 1.5 0 01.167 2.99c-.465.052-.917.44-.917 1.01V14h1.5v-.845A3 3 0 109 10.25h1.5a1.5 1.5 0 011.5-1.5zM11.25 15v1.5h1.5V15h-1.5z"
|
10325 |
+
}));
|
10326 |
+
/* harmony default export */ var library_help = (help_help);
|
10327 |
+
//# sourceMappingURL=help.js.map
|
10328 |
+
// EXTERNAL MODULE: ./node_modules/@wordpress/icons/build-module/library/external.js
|
10329 |
+
var external = __webpack_require__(596);
|
10330 |
+
|
10331 |
+
// EXTERNAL MODULE: ./client/header/activity-panel/style.scss
|
10332 |
+
var activity_panel_style = __webpack_require__(424);
|
10333 |
+
|
10334 |
+
// EXTERNAL MODULE: ./client/inbox-panel/utils.js
|
10335 |
+
var inbox_panel_utils = __webpack_require__(332);
|
10336 |
+
|
10337 |
+
// CONCATENATED MODULE: ./client/header/activity-panel/unread-indicators.js
|
10338 |
+
/**
|
10339 |
+
* External dependencies
|
10340 |
+
*/
|
10341 |
+
|
10342 |
+
|
10343 |
+
/**
|
10344 |
+
* Internal dependencies
|
10345 |
+
*/
|
10346 |
+
|
10347 |
+
|
10348 |
+
var UNREAD_NOTES_QUERY = {
|
10349 |
+
page: 1,
|
10350 |
+
per_page: external_wc_data_["QUERY_DEFAULTS"].pageSize,
|
10351 |
+
status: 'unactioned',
|
10352 |
+
type: external_wc_data_["QUERY_DEFAULTS"].noteTypes,
|
10353 |
+
orderby: 'date',
|
10354 |
+
order: 'desc'
|
10355 |
+
};
|
10356 |
+
function getUnreadNotes(select) {
|
10357 |
+
var _select = select(external_wc_data_["NOTES_STORE_NAME"]),
|
10358 |
+
getNotes = _select.getNotes,
|
10359 |
+
getNotesError = _select.getNotesError,
|
10360 |
+
isResolving = _select.isResolving;
|
10361 |
+
|
10362 |
+
var _select2 = select(external_wc_data_["USER_STORE_NAME"]),
|
10363 |
+
getCurrentUser = _select2.getCurrentUser;
|
10364 |
+
|
10365 |
+
var userData = getCurrentUser();
|
10366 |
+
var lastRead = parseInt(userData && userData.woocommerce_meta && userData.woocommerce_meta.activity_panel_inbox_last_read, 10);
|
10367 |
+
|
10368 |
+
if (!lastRead) {
|
10369 |
+
return null;
|
10370 |
+
}
|
10371 |
+
|
10372 |
+
getNotes(UNREAD_NOTES_QUERY);
|
10373 |
+
var isError = Boolean(getNotesError('getNotes', [UNREAD_NOTES_QUERY]));
|
10374 |
+
var isRequesting = isResolving('getNotes', [UNREAD_NOTES_QUERY]);
|
10375 |
+
|
10376 |
+
if (isError || isRequesting) {
|
10377 |
+
return null;
|
10378 |
+
}
|
10379 |
+
|
10380 |
+
var latestNotes = getNotes(UNREAD_NOTES_QUERY);
|
10381 |
+
var unreadNotesCount = Object(inbox_panel_utils["a" /* getUnreadNotesCount */])(latestNotes, lastRead);
|
10382 |
+
return unreadNotesCount > 0;
|
10383 |
+
}
|
10384 |
+
function getLowStockCount() {
|
10385 |
+
return Object(wc_admin_settings["g" /* getSetting */])('lowStockCount', 0);
|
10386 |
+
}
|
10387 |
+
// CONCATENATED MODULE: ./client/header/activity-panel/tab/index.js
|
10388 |
+
|
10389 |
+
|
10390 |
+
|
10391 |
+
/**
|
10392 |
+
* External dependencies
|
10393 |
+
*/
|
10394 |
+
|
10395 |
+
|
10396 |
+
|
10397 |
+
var tab_Tab = function Tab(_ref) {
|
10398 |
+
var icon = _ref.icon,
|
10399 |
+
title = _ref.title,
|
10400 |
+
name = _ref.name,
|
10401 |
+
unread = _ref.unread,
|
10402 |
+
selected = _ref.selected,
|
10403 |
+
isPanelOpen = _ref.isPanelOpen,
|
10404 |
+
onTabClick = _ref.onTabClick;
|
10405 |
+
var className = classnames_default()('woocommerce-layout__activity-panel-tab', {
|
10406 |
+
'is-active': isPanelOpen && selected,
|
10407 |
+
'has-unread': unread
|
10408 |
+
});
|
10409 |
+
var tabKey = "activity-panel-tab-".concat(name);
|
10410 |
+
return Object(external_wp_element_["createElement"])(external_wp_components_["Button"], {
|
10411 |
+
role: "tab",
|
10412 |
+
className: className,
|
10413 |
+
"aria-selected": selected,
|
10414 |
+
"aria-controls": "activity-panel-".concat(name),
|
10415 |
+
key: tabKey,
|
10416 |
+
id: tabKey,
|
10417 |
+
onClick: function onClick() {
|
10418 |
+
onTabClick(name);
|
10419 |
+
}
|
10420 |
+
}, icon, title, ' ', unread && Object(external_wp_element_["createElement"])("span", {
|
10421 |
+
className: "screen-reader-text"
|
10422 |
+
}, Object(external_wp_i18n_["__"])('unread activity', 'woocommerce-admin')));
|
10423 |
+
};
|
10424 |
+
// CONCATENATED MODULE: ./client/header/activity-panel/tabs/index.js
|
10425 |
+
|
10426 |
+
|
10427 |
+
|
10428 |
+
|
10429 |
+
|
10430 |
+
|
10431 |
+
/**
|
10432 |
+
* External dependencies
|
10433 |
+
*/
|
10434 |
+
|
10435 |
+
|
10436 |
+
|
10437 |
+
/**
|
10438 |
+
* Internal dependencies
|
10439 |
+
*/
|
10440 |
+
|
10441 |
+
|
10442 |
+
var tabs_Tabs = function Tabs(_ref) {
|
10443 |
+
var tabs = _ref.tabs,
|
10444 |
+
_onTabClick = _ref.onTabClick,
|
10445 |
+
selectedTabName = _ref.selectedTab,
|
10446 |
+
_ref$tabOpen = _ref.tabOpen,
|
10447 |
+
tabOpen = _ref$tabOpen === void 0 ? false : _ref$tabOpen;
|
10448 |
+
|
10449 |
+
var _useState = Object(external_wp_element_["useState"])({
|
10450 |
+
tabOpen: tabOpen,
|
10451 |
+
currentTab: selectedTabName
|
10452 |
+
}),
|
10453 |
+
_useState2 = slicedToArray_default()(_useState, 2),
|
10454 |
+
_useState2$ = _useState2[0],
|
10455 |
+
tabIsOpenState = _useState2$.tabOpen,
|
10456 |
+
currentTab = _useState2$.currentTab,
|
10457 |
+
setTabState = _useState2[1]; // Keep state synced with props
|
10458 |
+
|
10459 |
+
|
10460 |
+
Object(external_wp_element_["useEffect"])(function () {
|
10461 |
+
setTabState({
|
10462 |
+
tabOpen: tabOpen,
|
10463 |
+
currentTab: selectedTabName
|
10464 |
+
});
|
10465 |
+
}, [tabOpen, selectedTabName]);
|
10466 |
+
return Object(external_wp_element_["createElement"])(external_wp_components_["NavigableMenu"], {
|
10467 |
+
role: "tablist",
|
10468 |
+
orientation: "horizontal",
|
10469 |
+
className: "woocommerce-layout__activity-panel-tabs"
|
10470 |
+
}, tabs && tabs.map(function (tab, i) {
|
10471 |
+
if (tab.component) {
|
10472 |
+
var Comp = tab.component,
|
10473 |
+
options = tab.options;
|
10474 |
+
return Object(external_wp_element_["createElement"])(Comp, extends_default()({
|
10475 |
+
key: i
|
10476 |
+
}, options));
|
10477 |
+
}
|
10478 |
+
|
10479 |
+
return Object(external_wp_element_["createElement"])(tab_Tab, extends_default()({
|
10480 |
+
key: i,
|
10481 |
+
index: i,
|
10482 |
+
isPanelOpen: tabIsOpenState,
|
10483 |
+
selected: currentTab === tab.name
|
10484 |
+
}, tab, {
|
10485 |
+
onTabClick: function onTabClick() {
|
10486 |
+
var isTabOpen = currentTab === tab.name || currentTab === '' ? !tabIsOpenState : true; // If a panel is being opened, or if an existing panel is already open and a different one is being opened, record a track.
|
10487 |
+
|
10488 |
+
if (!isTabOpen || currentTab !== tab.name) {
|
10489 |
+
Object(external_wc_tracks_["recordEvent"])('activity_panel_open', {
|
10490 |
+
tab: tab.name
|
10491 |
+
});
|
10492 |
+
}
|
10493 |
+
|
10494 |
+
setTabState({
|
10495 |
+
tabOpen: isTabOpen,
|
10496 |
+
currentTab: tab.name
|
10497 |
+
});
|
10498 |
+
|
10499 |
+
_onTabClick(tab, isTabOpen);
|
10500 |
+
}
|
10501 |
+
}));
|
10502 |
+
}));
|
10503 |
+
};
|
10504 |
+
// CONCATENATED MODULE: ./client/header/activity-panel/setup-progress.js
|
10505 |
+
|
10506 |
+
var setup_progress_SetupProgress = function SetupProgress() {
|
10507 |
+
return Object(external_wp_element_["createElement"])("svg", {
|
10508 |
+
className: "woocommerce-layout__activity-panel-tab-icon setup-progress",
|
10509 |
+
width: "18",
|
10510 |
+
height: "18",
|
10511 |
+
viewBox: "0 0 24 24",
|
10512 |
+
fill: "none",
|
10513 |
+
xmlns: "http://www.w3.org/2000/svg"
|
10514 |
+
}, Object(external_wp_element_["createElement"])("path", {
|
10515 |
+
d: "M12 20C16.4183 20 20 16.4183 20 12C20 7.58172 16.4183 4 12 4C7.58172 4 4 7.58172 4 12C4 16.4183 7.58172 20 12 20Z",
|
10516 |
+
stroke: "#DCDCDE",
|
10517 |
+
strokeWidth: "2"
|
10518 |
+
}), Object(external_wp_element_["createElement"])("path", {
|
10519 |
+
d: "M4 12V12C4 16.4183 7.58172 20 12 20V20C16.4183 20 20 16.4183 20 12V12C20 7.58172 16.4183 4 12 4V4",
|
10520 |
+
strokeWidth: "2",
|
10521 |
+
strokeLinecap: "round"
|
10522 |
+
}));
|
10523 |
+
};
|
10524 |
+
// CONCATENATED MODULE: ./client/header/activity-panel/display-options/icons/display.js
|
10525 |
+
|
10526 |
+
|
10527 |
+
/**
|
10528 |
+
* External dependencies
|
10529 |
+
*/
|
10530 |
+
|
10531 |
+
var display_DisplayIcon = function DisplayIcon() {
|
10532 |
+
return Object(external_wp_element_["createElement"])(external_wp_element_["Fragment"], null, Object(external_wp_element_["createElement"])("svg", {
|
10533 |
+
className: "woocommerce-layout__activity-panel-tab-icon",
|
10534 |
+
width: "24",
|
10535 |
+
height: "24",
|
10536 |
+
viewBox: "3 3 24 24",
|
10537 |
+
fill: "none",
|
10538 |
+
xmlns: "http://www.w3.org/2000/svg"
|
10539 |
+
}, Object(external_wp_element_["createElement"])("path", {
|
10540 |
+
d: "M13.8053 15.3982C13.8053 15.7965 13.4867 16.1947 13.0089 16.1947H6.79646C6.55752 16.1947 6.39823 16.115 6.23894 15.9558C6.07965 15.7965 6 15.6372 6 15.3982V6.79646C6 6.63717 6.15929 6.39823 6.23894 6.23894C6.39823 6.07965 6.55752 6 6.79646 6H13.0089C13.4071 6 13.8053 6.31858 13.8053 6.79646V15.3982Z",
|
10541 |
+
strokeWidth: "1.5",
|
10542 |
+
strokeLinecap: "round",
|
10543 |
+
strokeLinejoin: "round"
|
10544 |
+
}), Object(external_wp_element_["createElement"])("path", {
|
10545 |
+
d: "M23.9203 10.6195C23.9203 11.0177 23.6017 11.4159 23.1238 11.4159H16.9115C16.6725 11.4159 16.5132 11.3363 16.3539 11.177C16.1946 11.0177 16.115 10.8584 16.115 10.6195V6.79646C16.115 6.39823 16.4336 6 16.9115 6H23.1238C23.5221 6 23.9203 6.31858 23.9203 6.79646V10.6195Z",
|
10546 |
+
strokeWidth: "1.5",
|
10547 |
+
strokeLinecap: "round",
|
10548 |
+
strokeLinejoin: "round"
|
10549 |
+
}), Object(external_wp_element_["createElement"])("path", {
|
10550 |
+
d: "M13.8053 23.2035C13.8053 23.4424 13.7257 23.6017 13.5664 23.761C13.4071 23.9203 13.2478 23.9999 13.0089 23.9999H6.79646C6.39823 23.9999 6 23.6813 6 23.2035V19.3804C6 19.1415 6.07965 18.9822 6.23894 18.8229C6.39823 18.6636 6.55752 18.584 6.79646 18.584H13.0089C13.4071 18.584 13.8053 18.9026 13.8053 19.3804V23.2035Z",
|
10551 |
+
strokeWidth: "1.5",
|
10552 |
+
strokeLinecap: "round",
|
10553 |
+
strokeLinejoin: "round"
|
10554 |
+
}), Object(external_wp_element_["createElement"])("path", {
|
10555 |
+
d: "M16.9912 23.9999C16.7522 23.9999 16.5929 23.9202 16.4336 23.7609C16.2743 23.6016 16.1947 23.4423 16.1947 23.2034V14.6016C16.1947 14.3627 16.2743 14.2034 16.4336 14.0441C16.5929 13.8848 16.7522 13.8052 16.9912 13.8052H23.2036C23.4425 13.8052 23.6018 13.8848 23.7611 14.0441C23.9204 14.2034 24 14.3627 24 14.6016V23.2034C24 23.6016 23.6814 23.9999 23.2036 23.9999H16.9912Z",
|
10556 |
+
strokeWidth: "1.5",
|
10557 |
+
strokeLinecap: "round",
|
10558 |
+
strokeLinejoin: "round"
|
10559 |
+
})), Object(external_wp_i18n_["__"])('Display', 'woocommerce-admin'));
|
10560 |
+
};
|
10561 |
+
// CONCATENATED MODULE: ./client/header/activity-panel/display-options/icons/single-column.js
|
10562 |
+
|
10563 |
+
var single_column_SingleColumnIcon = function SingleColumnIcon() {
|
10564 |
+
return Object(external_wp_element_["createElement"])("svg", {
|
10565 |
+
className: "woocommerce-layout__activity-panel-tab-icon",
|
10566 |
+
width: "12",
|
10567 |
+
height: "14",
|
10568 |
+
viewBox: "0 0 12 14",
|
10569 |
+
fill: "none",
|
10570 |
+
xmlns: "http://www.w3.org/2000/svg"
|
10571 |
+
}, Object(external_wp_element_["createElement"])("rect", {
|
10572 |
+
x: "0.5",
|
10573 |
+
y: "0.5",
|
10574 |
+
width: "11",
|
10575 |
+
height: "13",
|
10576 |
+
strokeWidth: "1"
|
10577 |
+
}));
|
10578 |
+
};
|
10579 |
+
// CONCATENATED MODULE: ./client/header/activity-panel/display-options/icons/two-columns.js
|
10580 |
+
|
10581 |
+
var two_columns_TwoColumnsIcon = function TwoColumnsIcon() {
|
10582 |
+
return Object(external_wp_element_["createElement"])("svg", {
|
10583 |
+
className: "woocommerce-layout__activity-panel-tab-icon",
|
10584 |
+
width: "18",
|
10585 |
+
height: "14",
|
10586 |
+
viewBox: "0 0 18 14",
|
10587 |
+
fill: "none",
|
10588 |
+
xmlns: "http://www.w3.org/2000/svg"
|
10589 |
+
}, Object(external_wp_element_["createElement"])("rect", {
|
10590 |
+
x: "0.5",
|
10591 |
+
y: "0.5",
|
10592 |
+
width: "7",
|
10593 |
+
height: "13",
|
10594 |
+
strokeWidth: "1"
|
10595 |
+
}), Object(external_wp_element_["createElement"])("rect", {
|
10596 |
+
x: "9.5",
|
10597 |
+
y: "0.5",
|
10598 |
+
width: "7",
|
10599 |
+
height: "13",
|
10600 |
+
strokeWidth: "1"
|
10601 |
+
}));
|
10602 |
+
};
|
10603 |
+
// CONCATENATED MODULE: ./client/header/activity-panel/display-options/index.js
|
10604 |
+
|
10605 |
+
|
10606 |
+
/**
|
10607 |
+
* External dependencies
|
10608 |
+
*/
|
10609 |
+
|
10610 |
+
|
10611 |
+
|
10612 |
+
|
10613 |
+
|
10614 |
+
/**
|
10615 |
+
* Internal dependencies
|
10616 |
+
*/
|
10617 |
+
|
10618 |
+
|
10619 |
+
|
10620 |
+
|
10621 |
+
var LAYOUTS = [{
|
10622 |
+
value: 'single_column',
|
10623 |
+
label: Object(external_wp_element_["createElement"])(external_wp_element_["Fragment"], null, Object(external_wp_element_["createElement"])(single_column_SingleColumnIcon, null), Object(external_wp_i18n_["__"])('Single column', 'woocommerce-admin'))
|
10624 |
+
}, {
|
10625 |
+
value: 'two_columns',
|
10626 |
+
label: Object(external_wp_element_["createElement"])(external_wp_element_["Fragment"], null, Object(external_wp_element_["createElement"])(two_columns_TwoColumnsIcon, null), Object(external_wp_i18n_["__"])('Two columns', 'woocommerce-admin'))
|
10627 |
+
}];
|
10628 |
+
var display_options_DisplayOptions = function DisplayOptions() {
|
10629 |
+
var defaultHomescreenLayout = Object(external_wp_data_["useSelect"])(function (select) {
|
10630 |
+
var _select = select(external_wc_data_["OPTIONS_STORE_NAME"]),
|
10631 |
+
getOption = _select.getOption;
|
10632 |
+
|
10633 |
+
return getOption('woocommerce_default_homepage_layout') || 'single_column';
|
10634 |
+
});
|
10635 |
+
|
10636 |
+
var _useUserPreferences = Object(external_wc_data_["useUserPreferences"])(),
|
10637 |
+
updateUserPreferences = _useUserPreferences.updateUserPreferences,
|
10638 |
+
layout = _useUserPreferences.homepage_layout;
|
10639 |
+
|
10640 |
+
return Object(external_wp_element_["createElement"])(external_wp_components_["DropdownMenu"], {
|
10641 |
+
icon: Object(external_wp_element_["createElement"])(display_DisplayIcon, null)
|
10642 |
+
/* translators: button label text should, if possible, be under 16 characters. */
|
10643 |
+
,
|
10644 |
+
label: Object(external_wp_i18n_["__"])('Display options', 'woocommerce-admin'),
|
10645 |
+
toggleProps: {
|
10646 |
+
className: 'woocommerce-layout__activity-panel-tab display-options',
|
10647 |
+
onClick: function onClick() {
|
10648 |
+
return Object(external_wc_tracks_["recordEvent"])('homescreen_display_click');
|
10649 |
+
}
|
10650 |
+
},
|
10651 |
+
popoverProps: {
|
10652 |
+
className: 'woocommerce-layout__activity-panel-popover'
|
10653 |
+
}
|
10654 |
+
}, function (_ref) {
|
10655 |
+
var onClose = _ref.onClose;
|
10656 |
+
return Object(external_wp_element_["createElement"])(external_wp_components_["MenuGroup"], {
|
10657 |
+
className: "woocommerce-layout__homescreen-display-options",
|
10658 |
+
label: Object(external_wp_i18n_["__"])('Layout', 'woocommerce-admin')
|
10659 |
+
}, Object(external_wp_element_["createElement"])(external_wp_components_["MenuItemsChoice"], {
|
10660 |
+
choices: LAYOUTS,
|
10661 |
+
onSelect: function onSelect(newLayout) {
|
10662 |
+
updateUserPreferences({
|
10663 |
+
homepage_layout: newLayout
|
10664 |
+
});
|
10665 |
+
onClose();
|
10666 |
+
Object(external_wc_tracks_["recordEvent"])('homescreen_display_option', {
|
10667 |
+
display_option: newLayout
|
10668 |
+
});
|
10669 |
+
},
|
10670 |
+
value: layout || defaultHomescreenLayout
|
10671 |
+
}));
|
10672 |
+
});
|
10673 |
+
};
|
10674 |
+
// EXTERNAL MODULE: ./node_modules/@wordpress/icons/build-module/library/close.js
|
10675 |
+
var library_close = __webpack_require__(595);
|
10676 |
+
|
10677 |
+
// EXTERNAL MODULE: ./client/header/activity-panel/highlight-tooltip/style.scss
|
10678 |
+
var highlight_tooltip_style = __webpack_require__(425);
|
10679 |
+
|
10680 |
+
// CONCATENATED MODULE: ./client/header/activity-panel/highlight-tooltip/index.js
|
10681 |
+
|
10682 |
+
|
10683 |
+
|
10684 |
+
/**
|
10685 |
+
* External dependencies
|
10686 |
+
*/
|
10687 |
+
|
10688 |
+
|
10689 |
+
|
10690 |
+
|
10691 |
+
|
10692 |
+
|
10693 |
+
/**
|
10694 |
+
* Internal dependencies
|
10695 |
+
*/
|
10696 |
+
|
10697 |
+
|
10698 |
+
var SHOW_CLASS = 'highlight-tooltip__show';
|
10699 |
+
|
10700 |
+
function HighlightTooltip(_ref) {
|
10701 |
+
var title = _ref.title,
|
10702 |
+
closeButtonText = _ref.closeButtonText,
|
10703 |
+
content = _ref.content,
|
10704 |
+
_ref$show = _ref.show,
|
10705 |
+
show = _ref$show === void 0 ? true : _ref$show,
|
10706 |
+
id = _ref.id,
|
10707 |
+
onClose = _ref.onClose,
|
10708 |
+
delay = _ref.delay,
|
10709 |
+
_ref$onShow = _ref.onShow,
|
10710 |
+
onShow = _ref$onShow === void 0 ? external_lodash_["noop"] : _ref$onShow,
|
10711 |
+
_ref$useAnchor = _ref.useAnchor,
|
10712 |
+
useAnchor = _ref$useAnchor === void 0 ? false : _ref$useAnchor;
|
10713 |
+
|
10714 |
+
var _useState = Object(external_wp_element_["useState"])(delay > 0 ? null : show),
|
10715 |
+
_useState2 = slicedToArray_default()(_useState, 2),
|
10716 |
+
showHighlight = _useState2[0],
|
10717 |
+
setShowHighlight = _useState2[1];
|
10718 |
+
|
10719 |
+
var _useState3 = Object(external_wp_element_["useState"])(null),
|
10720 |
+
_useState4 = slicedToArray_default()(_useState3, 2),
|
10721 |
+
node = _useState4[0],
|
10722 |
+
setNode = _useState4[1];
|
10723 |
+
|
10724 |
+
var _useState5 = Object(external_wp_element_["useState"])(null),
|
10725 |
+
_useState6 = slicedToArray_default()(_useState5, 2),
|
10726 |
+
anchorRect = _useState6[0],
|
10727 |
+
setAnchorRect = _useState6[1];
|
10728 |
+
|
10729 |
+
Object(external_wp_element_["useEffect"])(function () {
|
10730 |
+
var element = document.getElementById(id);
|
10731 |
+
var container, parent;
|
10732 |
+
|
10733 |
+
if (element && !node) {
|
10734 |
+
// Add tooltip container
|
10735 |
+
if (!useAnchor) {
|
10736 |
+
parent = element.parentElement;
|
10737 |
+
} else {
|
10738 |
+
parent = document.createElement('div');
|
10739 |
+
document.body.appendChild(parent);
|
10740 |
+
}
|
10741 |
+
|
10742 |
+
container = document.createElement('div');
|
10743 |
+
container.classList.add('highlight-tooltip__container');
|
10744 |
+
parent.appendChild(container);
|
10745 |
+
setNode(container);
|
10746 |
+
}
|
10747 |
+
|
10748 |
+
var timeoutId = triggerShowTooltip(container);
|
10749 |
+
return function () {
|
10750 |
+
if (container) {
|
10751 |
+
var parentElement = container.parentElement;
|
10752 |
+
parentElement.removeChild(container);
|
10753 |
+
|
10754 |
+
if (useAnchor) {
|
10755 |
+
parentElement.remove();
|
10756 |
+
}
|
10757 |
+
}
|
10758 |
+
|
10759 |
+
if (timeoutId) {
|
10760 |
+
clearTimeout(timeoutId);
|
10761 |
+
}
|
10762 |
+
};
|
10763 |
+
}, []);
|
10764 |
+
Object(external_wp_element_["useEffect"])(function () {
|
10765 |
+
if (!showHighlight && node) {
|
10766 |
+
node.classList.remove(SHOW_CLASS);
|
10767 |
+
}
|
10768 |
+
}, [showHighlight]);
|
10769 |
+
Object(external_wp_element_["useEffect"])(function () {
|
10770 |
+
if (show !== showHighlight && showHighlight !== null && node) {
|
10771 |
+
setShowHighlight(show);
|
10772 |
+
|
10773 |
+
if (!show) {
|
10774 |
+
node.classList.remove(SHOW_CLASS);
|
10775 |
+
} else if (node) {
|
10776 |
+
triggerShowTooltip(node);
|
10777 |
+
}
|
10778 |
+
}
|
10779 |
+
}, [show]);
|
10780 |
+
Object(external_wp_element_["useLayoutEffect"])(function () {
|
10781 |
+
window.addEventListener('resize', updateSize);
|
10782 |
+
return function () {
|
10783 |
+
return window.removeEventListener('resize', updateSize);
|
10784 |
+
};
|
10785 |
+
}, []);
|
10786 |
+
|
10787 |
+
function updateSize() {
|
10788 |
+
if (useAnchor) {
|
10789 |
+
var element = document.getElementById(id);
|
10790 |
+
setAnchorRect(element.getBoundingClientRect());
|
10791 |
+
}
|
10792 |
+
}
|
10793 |
+
|
10794 |
+
var triggerShowTooltip = function triggerShowTooltip(container) {
|
10795 |
+
var timeoutId = null;
|
10796 |
+
|
10797 |
+
if (delay > 0) {
|
10798 |
+
timeoutId = setTimeout(function () {
|
10799 |
+
timeoutId = null;
|
10800 |
+
showTooltip(container);
|
10801 |
+
}, delay);
|
10802 |
+
} else if (!showHighlight) {
|
10803 |
+
showTooltip(container);
|
10804 |
+
}
|
10805 |
+
|
10806 |
+
return timeoutId;
|
10807 |
+
};
|
10808 |
+
|
10809 |
+
var showTooltip = function showTooltip(container) {
|
10810 |
+
var element = document.getElementById(id);
|
10811 |
+
|
10812 |
+
if (element && useAnchor) {
|
10813 |
+
setAnchorRect(element.getBoundingClientRect());
|
10814 |
+
}
|
10815 |
+
|
10816 |
+
if (container) {
|
10817 |
+
container.classList.add(SHOW_CLASS);
|
10818 |
+
}
|
10819 |
+
|
10820 |
+
setShowHighlight(true);
|
10821 |
+
onShow();
|
10822 |
+
};
|
10823 |
+
|
10824 |
+
var triggerClose = function triggerClose() {
|
10825 |
+
setShowHighlight(false);
|
10826 |
+
|
10827 |
+
if (onClose) {
|
10828 |
+
onClose();
|
10829 |
+
}
|
10830 |
+
};
|
10831 |
+
|
10832 |
+
if (!node) {
|
10833 |
+
return null;
|
10834 |
+
}
|
10835 |
+
|
10836 |
+
return Object(external_wp_element_["createPortal"])(Object(external_wp_element_["createElement"])("div", {
|
10837 |
+
className: "highlight-tooltip__portal"
|
10838 |
+
}, showHighlight ? Object(external_wp_element_["createElement"])(external_wp_element_["Fragment"], null, Object(external_wp_element_["createElement"])(external_wp_components_["IsolatedEventContainer"], {
|
10839 |
+
className: "highlight-tooltip__overlay"
|
10840 |
+
}), Object(external_wp_element_["createElement"])(external_wp_components_["Popover"], {
|
10841 |
+
className: "highlight-tooltip__popover",
|
10842 |
+
noArrow: false,
|
10843 |
+
anchorRect: anchorRect,
|
10844 |
+
focusOnMount: "container"
|
10845 |
+
}, Object(external_wp_element_["createElement"])(external_wp_components_["Card"], {
|
10846 |
+
size: "medium"
|
10847 |
+
}, Object(external_wp_element_["createElement"])(external_wp_components_["CardHeader"], null, title, Object(external_wp_element_["createElement"])(external_wp_components_["Button"], {
|
10848 |
+
isSmall: true,
|
10849 |
+
onClick: triggerClose,
|
10850 |
+
icon: library_close["a" /* default */]
|
10851 |
+
})), Object(external_wp_element_["createElement"])(external_wp_components_["CardBody"], null, content || null), Object(external_wp_element_["createElement"])(external_wp_components_["CardFooter"], {
|
10852 |
+
isBorderless: true
|
10853 |
+
}, Object(external_wp_element_["createElement"])(external_wp_components_["Button"], {
|
10854 |
+
size: "small",
|
10855 |
+
isPrimary: true,
|
10856 |
+
onClick: triggerClose
|
10857 |
+
}, closeButtonText || Object(external_wp_i18n_["__"])('Close', 'woocommerce-admin')))))) : null), node);
|
10858 |
+
}
|
10859 |
+
|
10860 |
+
HighlightTooltip.propTypes = {
|
10861 |
+
/**
|
10862 |
+
* The id of the element it should highlight, should be unique per HighlightTooltip.
|
10863 |
+
*/
|
10864 |
+
id: prop_types_default.a.string.isRequired,
|
10865 |
+
|
10866 |
+
/**
|
10867 |
+
* Title of the popup
|
10868 |
+
*/
|
10869 |
+
title: prop_types_default.a.string.isRequired,
|
10870 |
+
|
10871 |
+
/**
|
10872 |
+
* Text of the close button.
|
10873 |
+
*/
|
10874 |
+
closeButtonText: prop_types_default.a.string.isRequired,
|
10875 |
+
|
10876 |
+
/**
|
10877 |
+
* Content of the popup, can be either text or react element.
|
10878 |
+
*/
|
10879 |
+
content: prop_types_default.a.oneOfType([prop_types_default.a.string, prop_types_default.a.node]),
|
10880 |
+
|
10881 |
+
/**
|
10882 |
+
* If to show the popup, defaults to true.
|
10883 |
+
*/
|
10884 |
+
show: prop_types_default.a.bool,
|
10885 |
+
|
10886 |
+
/**
|
10887 |
+
* Callback for when the user closes the popup.
|
10888 |
+
*/
|
10889 |
+
onClose: prop_types_default.a.func,
|
10890 |
+
|
10891 |
+
/**
|
10892 |
+
* This will delay the popup from appearing by the number of ms.
|
10893 |
+
*/
|
10894 |
+
delay: prop_types_default.a.number,
|
10895 |
+
|
10896 |
+
/**
|
10897 |
+
* A callback for when the tooltip is shown.
|
10898 |
+
*/
|
10899 |
+
onShow: prop_types_default.a.func,
|
10900 |
+
|
10901 |
+
/**
|
10902 |
+
* useAnchor, will append the tooltip to the body tag, and make use of the anchorRect to display the tooltip.
|
10903 |
+
* Defaults to false.
|
10904 |
+
*/
|
10905 |
+
useAnchor: prop_types_default.a.bool
|
10906 |
+
};
|
10907 |
+
|
10908 |
+
// EXTERNAL MODULE: ./node_modules/core-js/modules/es.array.find.js
|
10909 |
+
var es_array_find = __webpack_require__(192);
|
10910 |
+
|
10911 |
+
// EXTERNAL MODULE: external ["wp","dom"]
|
10912 |
+
var external_wp_dom_ = __webpack_require__(262);
|
10913 |
+
|
10914 |
+
// CONCATENATED MODULE: ./client/hooks/useFocusOnMount.js
|
10915 |
+
|
10916 |
+
|
10917 |
+
/**
|
10918 |
+
* This hook was directly copied from https://github.com/WordPress/gutenberg/blob/master/packages/compose/src/hooks/use-focus-on-mount/index.js
|
10919 |
+
* to avoid its absence in older versions of WordPress.
|
10920 |
+
*
|
10921 |
+
* This can be removed once the minimum supported version of WordPress includes this hook.
|
10922 |
+
*/
|
10923 |
+
|
10924 |
+
/**
|
10925 |
+
* External dependencies
|
10926 |
+
*/
|
10927 |
+
|
10928 |
+
|
10929 |
+
/**
|
10930 |
+
* Hook used to focus the first tabbable element on mount.
|
10931 |
+
*
|
10932 |
+
* @param {boolean|string} focusOnMount Focus on mount mode.
|
10933 |
+
* @return {Function} Ref callback.
|
10934 |
+
*
|
10935 |
+
* @example
|
10936 |
+
* ```js
|
10937 |
+
* import { useFocusOnMount } from '@wordpress/compose';
|
10938 |
+
*
|
10939 |
+
* const WithFocusOnMount = () => {
|
10940 |
+
* const ref = useFocusOnMount()
|
10941 |
+
* return (
|
10942 |
+
* <div ref={ ref }>
|
10943 |
+
* <Button />
|
10944 |
+
* <Button />
|
10945 |
+
* </div>
|
10946 |
+
* );
|
10947 |
+
* }
|
10948 |
+
* ```
|
10949 |
+
*/
|
10950 |
+
|
10951 |
+
function useFocusOnMount() {
|
10952 |
+
var focusOnMount = arguments.length > 0 && arguments[0] !== undefined ? arguments[0] : 'firstElement';
|
10953 |
+
var focusOnMountRef = Object(external_wp_element_["useRef"])(focusOnMount);
|
10954 |
+
Object(external_wp_element_["useEffect"])(function () {
|
10955 |
+
focusOnMountRef.current = focusOnMount;
|
10956 |
+
}, [focusOnMount]);
|
10957 |
+
return Object(external_wp_element_["useCallback"])(function (node) {
|
10958 |
+
if (!node || focusOnMountRef.current === false) {
|
10959 |
+
return;
|
10960 |
+
}
|
10961 |
+
|
10962 |
+
if (node.contains(node.ownerDocument.activeElement)) {
|
10963 |
+
return;
|
10964 |
+
}
|
10965 |
+
|
10966 |
+
var target = node;
|
10967 |
+
|
10968 |
+
if (focusOnMountRef.current === 'firstElement') {
|
10969 |
+
var firstTabbable = external_wp_dom_["focus"].tabbable.find(node)[0];
|
10970 |
+
|
10971 |
+
if (firstTabbable) {
|
10972 |
+
target = firstTabbable;
|
10973 |
+
}
|
10974 |
+
}
|
10975 |
+
|
10976 |
+
target.focus();
|
10977 |
+
}, []);
|
10978 |
+
}
|
10979 |
+
// CONCATENATED MODULE: ./client/hooks/useFocusOutside.js
|
10980 |
+
/**
|
10981 |
+
* External dependencies
|
10982 |
+
*/
|
10983 |
+
|
10984 |
+
|
10985 |
+
/**
|
10986 |
+
* Input types which are classified as button types, for use in considering
|
10987 |
+
* whether element is a (focus-normalized) button.
|
10988 |
+
*
|
10989 |
+
* @type {string[]}
|
10990 |
+
*/
|
10991 |
+
|
10992 |
+
var INPUT_BUTTON_TYPES = ['button', 'submit'];
|
10993 |
+
/**
|
10994 |
+
* @typedef {HTMLButtonElement | HTMLLinkElement | HTMLInputElement} FocusNormalizedButton
|
10995 |
+
*/
|
10996 |
+
// Disable reason: Rule doesn't support predicate return types
|
10997 |
+
|
10998 |
+
/* eslint-disable jsdoc/valid-types */
|
10999 |
+
|
11000 |
+
/**
|
11001 |
+
* Returns true if the given element is a button element subject to focus
|
11002 |
+
* normalization, or false otherwise.
|
11003 |
+
*
|
11004 |
+
* @see https://developer.mozilla.org/en-US/docs/Web/HTML/Element/button#Clicking_and_focus
|
11005 |
+
*
|
11006 |
+
* @param {EventTarget} eventTarget The target from a mouse or touch event.
|
11007 |
+
*
|
11008 |
+
* @return {eventTarget is FocusNormalizedButton} Whether element is a button.
|
11009 |
+
*/
|
11010 |
+
|
11011 |
+
function isFocusNormalizedButton(eventTarget) {
|
11012 |
+
if (!(eventTarget instanceof window.HTMLElement)) {
|
11013 |
+
return false;
|
11014 |
+
}
|
11015 |
+
|
11016 |
+
switch (eventTarget.nodeName) {
|
11017 |
+
case 'A':
|
11018 |
+
case 'BUTTON':
|
11019 |
+
return true;
|
11020 |
+
|
11021 |
+
case 'INPUT':
|
11022 |
+
return Object(external_lodash_["includes"])(INPUT_BUTTON_TYPES,
|
11023 |
+
/** @type {HTMLInputElement} */
|
11024 |
+
eventTarget.type);
|
11025 |
+
}
|
11026 |
+
|
11027 |
+
return false;
|
11028 |
+
}
|
11029 |
+
/* eslint-enable jsdoc/valid-types */
|
11030 |
+
|
11031 |
+
/**
|
11032 |
+
* @typedef {import('react').SyntheticEvent} SyntheticEvent
|
11033 |
+
*/
|
11034 |
+
|
11035 |
+
/**
|
11036 |
+
* @callback EventCallback
|
11037 |
+
* @param {SyntheticEvent} event input related event.
|
11038 |
+
*/
|
11039 |
+
|
11040 |
+
/**
|
11041 |
+
* @typedef FocusOutsideReactElement
|
11042 |
+
* @property {EventCallback} handleFocusOutside callback for a focus outside event.
|
11043 |
+
*/
|
11044 |
+
|
11045 |
+
/**
|
11046 |
+
* @typedef {import('react').MutableRefObject<FocusOutsideReactElement | undefined>} FocusOutsideRef
|
11047 |
+
*/
|
11048 |
+
|
11049 |
+
/**
|
11050 |
+
* @typedef {Object} FocusOutsideReturnValue
|
11051 |
+
* @property {EventCallback} onFocus An event handler for focus events.
|
11052 |
+
* @property {EventCallback} onBlur An event handler for blur events.
|
11053 |
+
* @property {EventCallback} onMouseDown An event handler for mouse down events.
|
11054 |
+
* @property {EventCallback} onMouseUp An event handler for mouse up events.
|
11055 |
+
* @property {EventCallback} onTouchStart An event handler for touch start events.
|
11056 |
+
* @property {EventCallback} onTouchEnd An event handler for touch end events.
|
11057 |
+
*/
|
11058 |
+
|
11059 |
+
/**
|
11060 |
+
* A react hook that can be used to check whether focus has moved outside the
|
11061 |
+
* element the event handlers are bound to.
|
11062 |
+
*
|
11063 |
+
* @param {EventCallback} onFocusOutside A callback triggered when focus moves outside
|
11064 |
+
* the element the event handlers are bound to.
|
11065 |
+
*
|
11066 |
+
* @return {FocusOutsideReturnValue} An object containing event handlers. Bind the event handlers
|
11067 |
+
* to a wrapping element element to capture when focus moves
|
11068 |
+
* outside that element.
|
11069 |
+
*/
|
11070 |
+
|
11071 |
+
|
11072 |
+
function useFocusOutside(onFocusOutside) {
|
11073 |
+
var currentOnFocusOutside = Object(external_wp_element_["useRef"])(onFocusOutside);
|
11074 |
+
Object(external_wp_element_["useEffect"])(function () {
|
11075 |
+
currentOnFocusOutside.current = onFocusOutside;
|
11076 |
+
}, [onFocusOutside]);
|
11077 |
+
var preventBlurCheck = Object(external_wp_element_["useRef"])(false);
|
11078 |
+
/**
|
11079 |
+
* @type {import('react').MutableRefObject<number | undefined>}
|
11080 |
+
*/
|
11081 |
+
|
11082 |
+
var blurCheckTimeoutId = Object(external_wp_element_["useRef"])();
|
11083 |
+
/**
|
11084 |
+
* Cancel a blur check timeout.
|
11085 |
+
*/
|
11086 |
+
|
11087 |
+
var cancelBlurCheck = Object(external_wp_element_["useCallback"])(function () {
|
11088 |
+
clearTimeout(blurCheckTimeoutId.current);
|
11089 |
+
}, []); // Cancel blur checks on unmount.
|
11090 |
+
|
11091 |
+
Object(external_wp_element_["useEffect"])(function () {
|
11092 |
+
return function () {
|
11093 |
+
return cancelBlurCheck();
|
11094 |
+
};
|
11095 |
+
}, []); // Cancel a blur check if the callback or ref is no longer provided.
|
11096 |
+
|
11097 |
+
Object(external_wp_element_["useEffect"])(function () {
|
11098 |
+
if (!onFocusOutside) {
|
11099 |
+
cancelBlurCheck();
|
11100 |
+
}
|
11101 |
+
}, [onFocusOutside, cancelBlurCheck]);
|
11102 |
+
/**
|
11103 |
+
* Handles a mousedown or mouseup event to respectively assign and
|
11104 |
+
* unassign a flag for preventing blur check on button elements. Some
|
11105 |
+
* browsers, namely Firefox and Safari, do not emit a focus event on
|
11106 |
+
* button elements when clicked, while others do. The logic here
|
11107 |
+
* intends to normalize this as treating click on buttons as focus.
|
11108 |
+
*
|
11109 |
+
* @see https://developer.mozilla.org/en-US/docs/Web/HTML/Element/button#Clicking_and_focus
|
11110 |
+
*
|
11111 |
+
* @param {SyntheticEvent} event Event for mousedown or mouseup.
|
11112 |
+
*/
|
11113 |
+
|
11114 |
+
var normalizeButtonFocus = Object(external_wp_element_["useCallback"])(function (event) {
|
11115 |
+
var type = event.type,
|
11116 |
+
target = event.target;
|
11117 |
+
var isInteractionEnd = Object(external_lodash_["includes"])(['mouseup', 'touchend'], type);
|
11118 |
+
|
11119 |
+
if (isInteractionEnd) {
|
11120 |
+
preventBlurCheck.current = false;
|
11121 |
+
} else if (isFocusNormalizedButton(target)) {
|
11122 |
+
preventBlurCheck.current = true;
|
11123 |
+
}
|
11124 |
+
}, []);
|
11125 |
+
/**
|
11126 |
+
* A callback triggered when a blur event occurs on the element the handler
|
11127 |
+
* is bound to.
|
11128 |
+
*
|
11129 |
+
* Calls the `onFocusOutside` callback in an immediate timeout if focus has
|
11130 |
+
* move outside the bound element and is still within the document.
|
11131 |
+
*
|
11132 |
+
* @param {SyntheticEvent} event Blur event.
|
11133 |
+
*/
|
11134 |
+
|
11135 |
+
var queueBlurCheck = Object(external_wp_element_["useCallback"])(function (event) {
|
11136 |
+
// React does not allow using an event reference asynchronously
|
11137 |
+
// due to recycling behavior, except when explicitly persisted.
|
11138 |
+
event.persist(); // Skip blur check if clicking button. See `normalizeButtonFocus`.
|
11139 |
+
|
11140 |
+
if (preventBlurCheck.current) {
|
11141 |
+
return;
|
11142 |
+
}
|
11143 |
+
|
11144 |
+
blurCheckTimeoutId.current = setTimeout(function () {
|
11145 |
+
// If document is not focused then focus should remain
|
11146 |
+
// inside the wrapped component and therefore we cancel
|
11147 |
+
// this blur event thereby leaving focus in place.
|
11148 |
+
// https://developer.mozilla.org/en-US/docs/Web/API/Document/hasFocus.
|
11149 |
+
if (!document.hasFocus()) {
|
11150 |
+
event.preventDefault();
|
11151 |
+
return;
|
11152 |
+
}
|
11153 |
+
|
11154 |
+
if (typeof currentOnFocusOutside.current === 'function') {
|
11155 |
+
currentOnFocusOutside.current(event);
|
11156 |
+
}
|
11157 |
+
}, 0);
|
11158 |
+
}, []);
|
11159 |
+
return {
|
11160 |
+
onFocus: cancelBlurCheck,
|
11161 |
+
onMouseDown: normalizeButtonFocus,
|
11162 |
+
onMouseUp: normalizeButtonFocus,
|
11163 |
+
onTouchStart: normalizeButtonFocus,
|
11164 |
+
onTouchEnd: normalizeButtonFocus,
|
11165 |
+
onBlur: queueBlurCheck
|
11166 |
+
};
|
11167 |
+
}
|
11168 |
+
// CONCATENATED MODULE: ./client/header/activity-panel/panel.js
|
11169 |
+
|
11170 |
+
|
11171 |
+
|
11172 |
+
/**
|
11173 |
+
* External dependencies
|
11174 |
+
*/
|
11175 |
+
|
11176 |
+
|
11177 |
+
|
11178 |
+
/**
|
11179 |
+
* Internal dependencies
|
11180 |
+
*/
|
11181 |
+
|
11182 |
+
|
11183 |
+
|
11184 |
+
var panel_Panel = function Panel(_ref) {
|
11185 |
+
var content = _ref.content,
|
11186 |
+
isPanelOpen = _ref.isPanelOpen,
|
11187 |
+
isPanelSwitching = _ref.isPanelSwitching,
|
11188 |
+
currentTab = _ref.currentTab,
|
11189 |
+
tab = _ref.tab,
|
11190 |
+
closePanel = _ref.closePanel,
|
11191 |
+
clearPanel = _ref.clearPanel;
|
11192 |
+
var panelClass = 'woocommerce-layout__activity-panel-wrapper';
|
11193 |
+
|
11194 |
+
var handleFocusOutside = function handleFocusOutside(event) {
|
11195 |
+
var isClickOnModalOrSnackbar = event.relatedTarget && (event.relatedTarget.closest('.woocommerce-inbox-dismiss-confirmation_modal') || event.relatedTarget.closest('.components-snackbar__action'));
|
11196 |
+
|
11197 |
+
if (isPanelOpen && !isClickOnModalOrSnackbar) {
|
11198 |
+
closePanel();
|
11199 |
+
}
|
11200 |
+
};
|
11201 |
+
|
11202 |
+
var possibleFocusPanel = function possibleFocusPanel() {
|
11203 |
+
if (!containerRef.current || !isPanelOpen || !tab) {
|
11204 |
+
return;
|
11205 |
+
}
|
11206 |
+
|
11207 |
+
focusOnMountRef(containerRef.current);
|
11208 |
+
};
|
11209 |
+
|
11210 |
+
var finishTransition = function finishTransition(e) {
|
11211 |
+
if (e && e.propertyName === 'transform') {
|
11212 |
+
clearPanel();
|
11213 |
+
possibleFocusPanel();
|
11214 |
+
}
|
11215 |
+
};
|
11216 |
+
|
11217 |
+
var focusOnMountRef = useFocusOnMount();
|
11218 |
+
var useFocusOutsideProps = useFocusOutside(handleFocusOutside);
|
11219 |
+
var containerRef = Object(external_wp_element_["useRef"])(null);
|
11220 |
+
var mergedContainerRef = Object(external_wp_element_["useCallback"])(function (node) {
|
11221 |
+
containerRef.current = node;
|
11222 |
+
focusOnMountRef(node);
|
11223 |
+
}, []);
|
11224 |
+
|
11225 |
+
if (!tab) {
|
11226 |
+
return Object(external_wp_element_["createElement"])("div", {
|
11227 |
+
className: panelClass
|
11228 |
+
});
|
11229 |
+
}
|
11230 |
+
|
11231 |
+
if (!content) {
|
11232 |
+
return null;
|
11233 |
+
}
|
11234 |
+
|
11235 |
+
var classNames = classnames_default()(panelClass, {
|
11236 |
+
'is-open': isPanelOpen,
|
11237 |
+
'is-switching': isPanelSwitching
|
11238 |
+
});
|
11239 |
+
return Object(external_wp_element_["createElement"])("div", extends_default()({
|
11240 |
+
className: classNames,
|
11241 |
+
tabIndex: 0,
|
11242 |
+
role: "tabpanel",
|
11243 |
+
"aria-label": tab.title,
|
11244 |
+
onTransitionEnd: finishTransition
|
11245 |
+
}, useFocusOutsideProps, {
|
11246 |
+
ref: mergedContainerRef
|
11247 |
+
}), Object(external_wp_element_["createElement"])("div", {
|
11248 |
+
className: "woocommerce-layout__activity-panel-content",
|
11249 |
+
key: 'activity-panel-' + currentTab,
|
11250 |
+
id: 'activity-panel-' + currentTab
|
11251 |
+
}, Object(external_wp_element_["createElement"])(external_wp_element_["Suspense"], {
|
11252 |
+
fallback: Object(external_wp_element_["createElement"])(external_wc_components_["Spinner"], null)
|
11253 |
+
}, content)));
|
11254 |
+
};
|
11255 |
+
/* harmony default export */ var panel = (panel_Panel);
|
11256 |
+
// CONCATENATED MODULE: ./client/header/activity-panel/index.js
|
11257 |
+
|
11258 |
+
|
11259 |
+
|
11260 |
+
|
11261 |
+
|
11262 |
+
|
11263 |
+
|
11264 |
+
|
11265 |
+
|
11266 |
+
|
11267 |
+
|
11268 |
+
|
11269 |
+
/**
|
11270 |
+
* External dependencies
|
11271 |
+
*/
|
11272 |
+
|
11273 |
+
|
11274 |
+
|
11275 |
+
|
11276 |
+
|
11277 |
+
|
11278 |
+
|
11279 |
+
|
11280 |
+
|
11281 |
+
|
11282 |
+
/**
|
11283 |
+
* Internal dependencies
|
11284 |
+
*/
|
11285 |
+
|
11286 |
+
|
11287 |
+
|
11288 |
+
|
11289 |
+
|
11290 |
+
|
11291 |
+
|
11292 |
+
|
11293 |
+
|
11294 |
+
var HelpPanel = Object(external_wp_element_["lazy"])(function () {
|
11295 |
+
return Promise.all(/* import() | activity-panels-help */[__webpack_require__.e(54), __webpack_require__.e(6), __webpack_require__.e(7)]).then(__webpack_require__.bind(null, 705));
|
11296 |
+
});
|
11297 |
+
var InboxPanel = Object(external_wp_element_["lazy"])(function () {
|
11298 |
+
return Promise.all(/* import() | activity-panels-inbox */[__webpack_require__.e(1), __webpack_require__.e(3), __webpack_require__.e(4), __webpack_require__.e(8)]).then(__webpack_require__.bind(null, 689));
|
11299 |
+
});
|
11300 |
+
var activity_panel_ActivityPanel = function ActivityPanel(_ref) {
|
11301 |
+
var isEmbedded = _ref.isEmbedded,
|
11302 |
+
query = _ref.query,
|
11303 |
+
userPreferencesData = _ref.userPreferencesData;
|
11304 |
+
|
11305 |
+
var _useState = Object(external_wp_element_["useState"])(''),
|
11306 |
+
_useState2 = slicedToArray_default()(_useState, 2),
|
11307 |
+
currentTab = _useState2[0],
|
11308 |
+
setCurrentTab = _useState2[1];
|
11309 |
+
|
11310 |
+
var _useState3 = Object(external_wp_element_["useState"])(false),
|
11311 |
+
_useState4 = slicedToArray_default()(_useState3, 2),
|
11312 |
+
isPanelClosing = _useState4[0],
|
11313 |
+
setIsPanelClosing = _useState4[1];
|
11314 |
+
|
11315 |
+
var _useState5 = Object(external_wp_element_["useState"])(false),
|
11316 |
+
_useState6 = slicedToArray_default()(_useState5, 2),
|
11317 |
+
isPanelOpen = _useState6[0],
|
11318 |
+
setIsPanelOpen = _useState6[1];
|
11319 |
+
|
11320 |
+
var _useState7 = Object(external_wp_element_["useState"])(false),
|
11321 |
+
_useState8 = slicedToArray_default()(_useState7, 2),
|
11322 |
+
isPanelSwitching = _useState8[0],
|
11323 |
+
setIsPanelSwitching = _useState8[1];
|
11324 |
+
|
11325 |
+
var _useSelect = Object(external_wp_data_["useSelect"])(function (select) {
|
11326 |
+
var _select = select(external_wc_data_["OPTIONS_STORE_NAME"]),
|
11327 |
+
getOption = _select.getOption,
|
11328 |
+
isResolving = _select.isResolving;
|
11329 |
+
|
11330 |
+
return {
|
11331 |
+
hasUnreadNotes: getUnreadNotes(select),
|
11332 |
+
requestingTaskListOptions: isResolving('getOption', ['woocommerce_task_list_complete']) || isResolving('getOption', ['woocommerce_task_list_hidden']),
|
11333 |
+
setupTaskListComplete: getOption('woocommerce_task_list_complete') === 'yes',
|
11334 |
+
setupTaskListHidden: getOption('woocommerce_task_list_hidden') === 'yes',
|
11335 |
+
trackedCompletedTasks: getOption('woocommerce_task_list_tracked_completed_tasks') || []
|
11336 |
+
};
|
11337 |
+
}),
|
11338 |
+
hasUnreadNotes = _useSelect.hasUnreadNotes,
|
11339 |
+
requestingTaskListOptions = _useSelect.requestingTaskListOptions,
|
11340 |
+
setupTaskListComplete = _useSelect.setupTaskListComplete,
|
11341 |
+
setupTaskListHidden = _useSelect.setupTaskListHidden,
|
11342 |
+
trackedCompletedTasks = _useSelect.trackedCompletedTasks;
|
11343 |
+
|
11344 |
+
var _useDispatch = Object(external_wp_data_["useDispatch"])(external_wc_data_["OPTIONS_STORE_NAME"]),
|
11345 |
+
updateOptions = _useDispatch.updateOptions;
|
11346 |
+
|
11347 |
+
var _useUser = Object(external_wc_data_["useUser"])(),
|
11348 |
+
currentUserCan = _useUser.currentUserCan;
|
11349 |
+
|
11350 |
+
var togglePanel = function togglePanel(_ref2, isTabOpen) {
|
11351 |
+
var tabName = _ref2.name;
|
11352 |
+
var panelSwitching = tabName !== currentTab && currentTab !== '' && isTabOpen && isPanelOpen;
|
11353 |
+
|
11354 |
+
if (isPanelClosing) {
|
11355 |
+
return;
|
11356 |
+
}
|
11357 |
+
|
11358 |
+
setCurrentTab(tabName);
|
11359 |
+
setIsPanelOpen(isTabOpen);
|
11360 |
+
setIsPanelSwitching(panelSwitching);
|
11361 |
+
};
|
11362 |
+
|
11363 |
+
var _closePanel = function closePanel() {
|
11364 |
+
setIsPanelClosing(true);
|
11365 |
+
setIsPanelOpen(false);
|
11366 |
+
};
|
11367 |
+
|
11368 |
+
var _clearPanel = function clearPanel() {
|
11369 |
+
if (!isPanelOpen) {
|
11370 |
+
setIsPanelClosing(false);
|
11371 |
+
setIsPanelSwitching(false);
|
11372 |
+
setCurrentTab('');
|
11373 |
+
}
|
11374 |
+
};
|
11375 |
+
|
11376 |
+
var isHomescreen = function isHomescreen() {
|
11377 |
+
return query.page === 'wc-admin' && !query.path;
|
11378 |
+
};
|
11379 |
+
|
11380 |
+
var isPerformingSetupTask = function isPerformingSetupTask() {
|
11381 |
+
return query.task && !query.path && (requestingTaskListOptions === true || setupTaskListHidden === false && setupTaskListComplete === false);
|
11382 |
+
}; // @todo Pull in dynamic unread status/count
|
11383 |
+
|
11384 |
+
|
11385 |
+
var getTabs = function getTabs() {
|
11386 |
+
var inbox = {
|
11387 |
+
name: 'inbox',
|
11388 |
+
title: Object(external_wp_i18n_["__"])('Inbox', 'woocommerce-admin'),
|
11389 |
+
icon: Object(external_wp_element_["createElement"])(build_module_icon["a" /* default */], {
|
11390 |
+
icon: library_inbox
|
11391 |
+
}),
|
11392 |
+
unread: hasUnreadNotes,
|
11393 |
+
visible: (isEmbedded || !isHomescreen()) && !isPerformingSetupTask()
|
11394 |
+
};
|
11395 |
+
var setup = {
|
11396 |
+
name: 'setup',
|
11397 |
+
title: Object(external_wp_i18n_["__"])('Finish setup', 'woocommerce-admin'),
|
11398 |
+
icon: Object(external_wp_element_["createElement"])(setup_progress_SetupProgress, null),
|
11399 |
+
onClick: function onClick() {
|
11400 |
+
var currentLocation = window.location.href;
|
11401 |
+
var homescreenLocation = Object(wc_admin_settings["f" /* getAdminLink */])('admin.php?page=wc-admin'); // Don't navigate if we're already on the homescreen, this will cause an infinite loop
|
11402 |
+
|
11403 |
+
if (currentLocation !== homescreenLocation) {
|
11404 |
+
// Ensure that if the user is trying to get to the task list they can see it even if
|
11405 |
+
// it was dismissed.
|
11406 |
+
if (setupTaskListHidden === 'no') {
|
11407 |
+
redirectToHomeScreen();
|
11408 |
+
} else {
|
11409 |
+
updateOptions({
|
11410 |
+
woocommerce_task_list_hidden: 'no'
|
11411 |
+
}).then(redirectToHomeScreen);
|
11412 |
+
}
|
11413 |
+
}
|
11414 |
+
|
11415 |
+
return null;
|
11416 |
+
},
|
11417 |
+
visible: currentUserCan('manage_woocommerce') && !setupTaskListComplete && !setupTaskListHidden && !isPerformingSetupTask() && (!isHomescreen() || isEmbedded)
|
11418 |
+
};
|
11419 |
+
var help = {
|
11420 |
+
name: 'help',
|
11421 |
+
title: Object(external_wp_i18n_["__"])('Help', 'woocommerce-admin'),
|
11422 |
+
icon: Object(external_wp_element_["createElement"])(build_module_icon["a" /* default */], {
|
11423 |
+
icon: library_help
|
11424 |
+
}),
|
11425 |
+
visible: isHomescreen() && !isEmbedded || isPerformingSetupTask()
|
11426 |
+
};
|
11427 |
+
var displayOptions = {
|
11428 |
+
component: display_options_DisplayOptions,
|
11429 |
+
visible: !isEmbedded && isHomescreen() && !isPerformingSetupTask()
|
11430 |
+
};
|
11431 |
+
var previewSite = {
|
11432 |
+
name: 'previewSite',
|
11433 |
+
title: Object(external_wp_i18n_["__"])('Preview site', 'woocommerce-admin'),
|
11434 |
+
icon: Object(external_wp_element_["createElement"])(build_module_icon["a" /* default */], {
|
11435 |
+
icon: external["a" /* default */]
|
11436 |
+
}),
|
11437 |
+
visible: query.page === 'wc-admin' && query.task === 'appearance',
|
11438 |
+
onClick: function onClick() {
|
11439 |
+
window.open(window.wcSettings.siteUrl);
|
11440 |
+
return null;
|
11441 |
+
}
|
11442 |
+
};
|
11443 |
+
return [inbox, setup, previewSite, displayOptions, help].filter(function (tab) {
|
11444 |
+
return tab.visible;
|
11445 |
+
});
|
11446 |
+
};
|
11447 |
+
|
11448 |
+
var getPanelContent = function getPanelContent(tab) {
|
11449 |
+
var task = query.task;
|
11450 |
+
|
11451 |
+
switch (tab) {
|
11452 |
+
case 'inbox':
|
11453 |
+
return Object(external_wp_element_["createElement"])(InboxPanel, null);
|
11454 |
+
|
11455 |
+
case 'help':
|
11456 |
+
return Object(external_wp_element_["createElement"])(HelpPanel, {
|
11457 |
+
taskName: task
|
11458 |
+
});
|
11459 |
+
|
11460 |
+
default:
|
11461 |
+
return null;
|
11462 |
+
}
|
11463 |
+
};
|
11464 |
+
|
11465 |
+
var redirectToHomeScreen = function redirectToHomeScreen() {
|
11466 |
+
if (Object(utils["f" /* isWCAdmin */])(window.location.href)) {
|
11467 |
+
Object(external_wc_navigation_["getHistory"])().push(Object(external_wc_navigation_["getNewPath"])({}, '/', {}));
|
11468 |
+
} else {
|
11469 |
+
window.location.href = Object(wc_admin_settings["f" /* getAdminLink */])('admin.php?page=wc-admin');
|
11470 |
+
}
|
11471 |
+
};
|
11472 |
+
|
11473 |
+
var closedHelpPanelHighlight = function closedHelpPanelHighlight() {
|
11474 |
+
Object(external_wc_tracks_["recordEvent"])('help_tooltip_click');
|
11475 |
+
|
11476 |
+
if (userPreferencesData && userPreferencesData.updateUserPreferences) {
|
11477 |
+
userPreferencesData.updateUserPreferences({
|
11478 |
+
help_panel_highlight_shown: 'yes'
|
11479 |
+
});
|
11480 |
+
}
|
11481 |
+
};
|
11482 |
+
|
11483 |
+
var shouldShowHelpTooltip = function shouldShowHelpTooltip() {
|
11484 |
+
var task = query.task;
|
11485 |
+
var startedTasks = userPreferencesData && userPreferencesData.task_list_tracked_started_tasks;
|
11486 |
+
var highlightShown = userPreferencesData && userPreferencesData.help_panel_highlight_shown;
|
11487 |
+
|
11488 |
+
if (task && highlightShown !== 'yes' && (startedTasks || {})[task] > 1 && !trackedCompletedTasks.includes(task)) {
|
11489 |
+
return true;
|
11490 |
+
}
|
11491 |
+
|
11492 |
+
return false;
|
11493 |
+
};
|
11494 |
+
|
11495 |
+
var tabs = getTabs();
|
11496 |
+
var headerId = Object(external_lodash_["uniqueId"])('activity-panel-header_');
|
11497 |
+
var showHelpHighlightTooltip = shouldShowHelpTooltip();
|
11498 |
+
return Object(external_wp_element_["createElement"])("div", null, Object(external_wp_element_["createElement"])(external_wc_components_["H"], {
|
11499 |
+
id: headerId,
|
11500 |
+
className: "screen-reader-text"
|
11501 |
+
}, Object(external_wp_i18n_["__"])('Store Activity', 'woocommerce-admin')), Object(external_wp_element_["createElement"])(external_wc_components_["Section"], {
|
11502 |
+
component: "aside",
|
11503 |
+
id: "woocommerce-activity-panel",
|
11504 |
+
className: "woocommerce-layout__activity-panel",
|
11505 |
+
"aria-labelledby": headerId
|
11506 |
+
}, Object(external_wp_element_["createElement"])(tabs_Tabs, {
|
11507 |
+
tabs: tabs,
|
11508 |
+
tabOpen: isPanelOpen,
|
11509 |
+
selectedTab: currentTab,
|
11510 |
+
onTabClick: function onTabClick(tab, tabOpen) {
|
11511 |
+
if (tab.onClick) {
|
11512 |
+
tab.onClick();
|
11513 |
+
return;
|
11514 |
+
}
|
11515 |
+
|
11516 |
+
togglePanel(tab, tabOpen);
|
11517 |
+
}
|
11518 |
+
}), Object(external_wp_element_["createElement"])(panel_Panel, {
|
11519 |
+
currentTab: true,
|
11520 |
+
isPanelOpen: isPanelOpen,
|
11521 |
+
isPanelSwitching: isPanelSwitching,
|
11522 |
+
tab: Object(external_lodash_["find"])(getTabs(), {
|
11523 |
+
name: currentTab
|
11524 |
+
}),
|
11525 |
+
content: getPanelContent(currentTab),
|
11526 |
+
closePanel: function closePanel() {
|
11527 |
+
return _closePanel();
|
11528 |
+
},
|
11529 |
+
clearPanel: function clearPanel() {
|
11530 |
+
return _clearPanel();
|
11531 |
+
}
|
11532 |
+
})), showHelpHighlightTooltip ? Object(external_wp_element_["createElement"])(HighlightTooltip, {
|
11533 |
+
delay: 1000,
|
11534 |
+
useAnchor: true,
|
11535 |
+
title: Object(external_wp_i18n_["__"])("We're here for help", 'woocommerce-admin'),
|
11536 |
+
content: Object(external_wp_i18n_["__"])('If you have any questions, feel free to explore the WooCommerce docs listed here.', 'woocommerce-admin'),
|
11537 |
+
closeButtonText: Object(external_wp_i18n_["__"])('Got it', 'woocommerce-admin'),
|
11538 |
+
id: "activity-panel-tab-help",
|
11539 |
+
onClose: function onClose() {
|
11540 |
+
return closedHelpPanelHighlight();
|
11541 |
+
},
|
11542 |
+
onShow: function onShow() {
|
11543 |
+
return Object(external_wc_tracks_["recordEvent"])('help_tooltip_view');
|
11544 |
+
}
|
11545 |
+
}) : null);
|
11546 |
+
};
|
11547 |
+
activity_panel_ActivityPanel.defaultProps = {
|
11548 |
+
getHistory: external_wc_navigation_["getHistory"]
|
11549 |
+
};
|
11550 |
+
/* harmony default export */ var activity_panel = (activity_panel_ActivityPanel);
|
11551 |
+
// CONCATENATED MODULE: ./client/lib/platform/index.js
|
11552 |
+
var ANDROID_PLATFORM = 'android';
|
11553 |
+
var IOS_PLATFORM = 'ios';
|
11554 |
+
var UNKNOWN_PLATFORM = 'unknown';
|
11555 |
+
/**
|
11556 |
+
* Provide basic detection of platform based on user agent. This is not
|
11557 |
+
* a robust check for browser features or the like. You should only use
|
11558 |
+
* this for non-critical display logic.
|
11559 |
+
*/
|
11560 |
+
|
11561 |
+
var platform = function platform() {
|
11562 |
+
if (/iPhone|iPad|iPod/i.test(window.navigator.userAgent)) {
|
11563 |
+
return IOS_PLATFORM;
|
11564 |
+
} else if (/Android/i.test(window.navigator.userAgent)) {
|
11565 |
+
return ANDROID_PLATFORM;
|
11566 |
+
}
|
11567 |
+
|
11568 |
+
return UNKNOWN_PLATFORM;
|
11569 |
+
};
|
11570 |
+
// CONCATENATED MODULE: ./client/mobile-banner/app-icon.js
|
11571 |
+
|
11572 |
+
var app_icon_AppIcon = function AppIcon() {
|
11573 |
+
return Object(external_wp_element_["createElement"])("svg", {
|
11574 |
+
width: "37",
|
11575 |
+
height: "37",
|
11576 |
+
viewBox: "0 0 92 92",
|
11577 |
+
fill: "none",
|
11578 |
+
xmlns: "http://www.w3.org/2000/svg"
|
11579 |
+
}, Object(external_wp_element_["createElement"])("rect", {
|
11580 |
+
width: "92",
|
11581 |
+
height: "92",
|
11582 |
+
rx: "21.3953",
|
11583 |
+
fill: "#7F54B3"
|
11584 |
+
}), Object(external_wp_element_["createElement"])("path", {
|
11585 |
+
fillRule: "evenodd",
|
11586 |
+
clipRule: "evenodd",
|
11587 |
+
d: "M72.5937 28.043H19.8094C16.4781 28.0459 13.7783 30.7705 13.7754 34.1324V54.4501C13.7783 57.812 16.4781 60.5366 19.8094 60.5395H44.8229L56.2573 66.9607L53.6672 60.5395H72.599C74.2009 60.5402 75.7374 59.8983 76.8702 58.7552C78.0029 57.612 78.639 56.0614 78.6383 54.4447V34.1324C78.6376 32.5157 78.0002 30.9657 76.8664 29.8235C75.7327 28.6814 74.1956 28.0408 72.5937 28.043ZM19.1057 32.4208C18.4658 32.4324 17.8646 32.7359 17.467 33.2482C17.0888 33.7635 16.9404 34.4175 17.058 35.0502C18.5962 45.0986 20.0338 51.8757 21.371 55.3816C21.8779 56.658 22.4896 57.2703 23.2063 57.2185C24.3075 57.1489 25.6263 55.5968 27.1627 52.5621C27.9964 50.8412 29.2602 48.2662 30.9539 44.837C32.3785 49.88 34.309 53.6787 36.7456 56.2331C37.4291 56.9436 38.1204 57.2748 38.8195 57.2266C39.4185 57.1931 39.953 56.8315 40.217 56.2813C40.4753 55.7358 40.5806 55.1278 40.5211 54.5248C40.3516 52.0703 40.5919 48.667 41.2421 44.3149C41.9081 39.8057 42.7523 36.5818 43.7749 34.6432C43.9822 34.2526 44.0733 33.8087 44.037 33.366C44.0039 32.7587 43.7116 32.1969 43.2374 31.829C42.7745 31.4367 42.1799 31.2446 41.5803 31.2935C40.8334 31.3325 40.1682 31.7885 39.8499 32.4797C38.2331 35.5019 37.0812 40.4109 36.3943 47.2068C35.2823 44.2394 34.4509 41.1703 33.9114 38.0412C33.623 36.4613 32.9037 35.7125 31.7536 35.7946C30.9592 35.8589 30.3063 36.3944 29.7819 37.4012L24.0348 48.5643C23.0997 44.6692 22.2205 39.9289 21.3972 34.3433C21.1997 32.9652 20.4358 32.3244 19.1057 32.4208ZM69.9089 34.6877C71.6969 35.0381 73.2407 36.2 74.1186 37.8559C74.9693 39.3247 75.3946 41.1161 75.3946 43.23C75.4148 45.9567 74.7062 48.6357 73.3477 50.9687C71.7778 53.7023 69.7195 55.0691 67.1727 55.0691C66.6933 55.0668 66.2153 55.0128 65.7467 54.9078C63.9584 54.5581 62.4143 53.396 61.5371 51.7396C60.6864 50.2452 60.261 48.4411 60.261 46.3272C60.2357 43.6127 60.945 40.9454 62.3079 38.6295C63.9023 35.8959 65.9607 34.5291 68.4829 34.5291C68.9623 34.5304 69.4402 34.5836 69.9089 34.6877ZM68.7937 49.4848C69.7707 48.5773 70.4399 47.2269 70.8012 45.4337V45.4419C70.9315 44.7826 70.9959 44.1112 70.9933 43.4382C70.986 42.5849 70.8291 41.74 70.5302 40.9452C70.1443 39.901 69.6304 39.3124 68.9884 39.1793C68.0378 38.9643 67.1239 39.5256 66.2469 40.8632C65.5812 41.8393 65.109 42.9432 64.8577 44.1106C64.7276 44.7708 64.6632 45.4432 64.6657 46.1171C64.6739 46.9677 64.8308 47.8096 65.1287 48.6019C65.5146 49.6388 66.0294 50.2274 66.6731 50.3678C67.3169 50.5081 68.0237 50.2138 68.7937 49.4848ZM57.9079 37.8559C57.0291 36.2008 55.4854 35.0392 53.6976 34.6877C53.2279 34.5837 52.749 34.5306 52.2687 34.5291C49.7443 34.5291 47.6856 35.8959 46.0927 38.6295C44.7295 40.9454 44.0201 43.6127 44.0454 46.3272C44.0454 48.4411 44.4699 50.2452 45.319 51.7396C46.1976 53.3949 47.7414 54.5566 49.5294 54.9078C49.999 55.0126 50.4779 55.0667 50.9582 55.0691C53.5055 55.0691 55.5642 53.7023 57.1343 50.9687C58.4922 48.6355 59.2001 45.9565 59.1789 43.23C59.1789 41.1161 58.7544 39.3247 57.9053 37.8559H57.9079ZM54.5903 45.4337C54.2307 47.2269 53.5614 48.5773 52.5825 49.4848C51.8115 50.2065 51.101 50.5017 50.4589 50.3678C49.8169 50.2338 49.3011 49.6461 48.9169 48.6019C48.6181 47.8097 48.4603 46.9678 48.4511 46.1171C48.4495 45.4431 48.5148 44.7707 48.6459 44.1106C48.8971 42.9432 49.3694 41.8393 50.0353 40.8632C50.9124 39.5256 51.8264 38.9643 52.7773 39.1793C53.4193 39.3124 53.9333 39.901 54.3193 40.9452C54.617 41.7404 54.7739 42.585 54.7824 43.4382C54.785 44.1112 54.7207 44.7826 54.5903 45.4419V45.4337Z",
|
11588 |
+
fill: "white"
|
11589 |
+
}));
|
11590 |
+
};
|
11591 |
+
// EXTERNAL MODULE: ./client/mobile-banner/style.scss
|
11592 |
+
var mobile_banner_style = __webpack_require__(427);
|
11593 |
+
|
11594 |
+
// CONCATENATED MODULE: ./client/mobile-banner/constants.js
|
11595 |
+
// The Play Store link is defined as an exported constant mainly for the sake of testing the Mobile App Banner.
|
11596 |
+
// It is nearly impossible to fake navigation in JSDOM 16, so exposing this link for mocking allows us to
|
11597 |
+
// avoid triggering a navigation.
|
11598 |
+
var PLAY_STORE_LINK = 'https://play.google.com/store/apps/details?id=com.woocommerce.android';
|
11599 |
+
var TRACKING_EVENT_NAME = 'wcadmin_mobile_android_banner_click';
|
11600 |
+
// CONCATENATED MODULE: ./client/mobile-banner/index.js
|
11601 |
+
|
11602 |
+
|
11603 |
+
|
11604 |
+
/**
|
11605 |
+
* External dependencies
|
11606 |
+
*/
|
11607 |
+
|
11608 |
+
|
11609 |
+
|
11610 |
+
|
11611 |
+
/**
|
11612 |
+
* Internal dependencies
|
11613 |
+
*/
|
11614 |
+
|
11615 |
+
|
11616 |
+
|
11617 |
+
|
11618 |
+
|
11619 |
+
var SHOW_APP_BANNER_MODIFIER_CLASS = 'woocommerce-layout__show-app-banner';
|
11620 |
+
var mobile_banner_MobileAppBanner = function MobileAppBanner(_ref) {
|
11621 |
+
var onInstall = _ref.onInstall,
|
11622 |
+
onDismiss = _ref.onDismiss;
|
11623 |
+
Object(external_wp_element_["useEffect"])(function () {
|
11624 |
+
var layout = document.getElementsByClassName('woocommerce-layout')[0];
|
11625 |
+
|
11626 |
+
if (platform() === ANDROID_PLATFORM) {
|
11627 |
+
if (layout) {
|
11628 |
+
// This is a hack to allow the mobile banner to work in the context of the header which is
|
11629 |
+
// position fixed. This can be refactored away when we move away from the activity panel
|
11630 |
+
// in future.
|
11631 |
+
layout.classList.add(SHOW_APP_BANNER_MODIFIER_CLASS);
|
11632 |
+
}
|
11633 |
+
}
|
11634 |
+
|
11635 |
+
return function () {
|
11636 |
+
if (layout) {
|
11637 |
+
layout.classList.remove(SHOW_APP_BANNER_MODIFIER_CLASS);
|
11638 |
+
}
|
11639 |
+
};
|
11640 |
+
}, []);
|
11641 |
+
|
11642 |
+
var _useState = Object(external_wp_element_["useState"])(false),
|
11643 |
+
_useState2 = slicedToArray_default()(_useState, 2),
|
11644 |
+
isDismissed = _useState2[0],
|
11645 |
+
setDismissed = _useState2[1]; // On iOS the "Smart App Banner" meta tag is used so only display this on Android.
|
11646 |
+
|
11647 |
+
|
11648 |
+
if (platform() === ANDROID_PLATFORM && !isDismissed) {
|
11649 |
+
return Object(external_wp_element_["createElement"])("div", {
|
11650 |
+
className: "woocommerce-mobile-app-banner"
|
11651 |
+
}, Object(external_wp_element_["createElement"])(external_wp_components_["Icon"], {
|
11652 |
+
icon: "no-alt",
|
11653 |
+
"data-testid": "dismiss-btn",
|
11654 |
+
onClick: function onClick() {
|
11655 |
+
onDismiss();
|
11656 |
+
setDismissed(true);
|
11657 |
+
Object(external_wc_tracks_["recordEvent"])(TRACKING_EVENT_NAME, {
|
11658 |
+
action: 'dismiss'
|
11659 |
+
});
|
11660 |
+
}
|
11661 |
+
}), Object(external_wp_element_["createElement"])(app_icon_AppIcon, null), Object(external_wp_element_["createElement"])("div", {
|
11662 |
+
className: "woocommerce-mobile-app-banner__description"
|
11663 |
+
}, Object(external_wp_element_["createElement"])("p", {
|
11664 |
+
className: "woocommerce-mobile-app-banner__description__text"
|
11665 |
+
}, Object(external_wp_i18n_["__"])('Run your store from anywhere', 'woocommerce-admin')), Object(external_wp_element_["createElement"])("p", {
|
11666 |
+
className: "woocommerce-mobile-app-banner__description__text"
|
11667 |
+
}, Object(external_wp_i18n_["__"])('Download the WooCommerce app', 'woocommerce-admin'))), Object(external_wp_element_["createElement"])(external_wp_components_["Button"], {
|
11668 |
+
href: PLAY_STORE_LINK,
|
11669 |
+
isSecondary: true,
|
11670 |
+
onClick: function onClick() {
|
11671 |
+
onInstall();
|
11672 |
+
setDismissed(true);
|
11673 |
+
Object(external_wc_tracks_["recordEvent"])(TRACKING_EVENT_NAME, {
|
11674 |
+
action: 'install'
|
11675 |
+
});
|
11676 |
+
}
|
11677 |
+
}, Object(external_wp_i18n_["__"])('Install', 'woocommerce-admin')));
|
11678 |
+
}
|
11679 |
+
|
11680 |
+
return null;
|
11681 |
+
};
|
11682 |
+
// CONCATENATED MODULE: ./client/hooks/useIsScrolled.js
|
11683 |
+
|
11684 |
+
|
11685 |
+
/**
|
11686 |
+
* External dependencies
|
11687 |
+
*/
|
11688 |
+
|
11689 |
+
function useIsScrolled() {
|
11690 |
+
var _useState = Object(external_wp_element_["useState"])(false),
|
11691 |
+
_useState2 = slicedToArray_default()(_useState, 2),
|
11692 |
+
isScrolled = _useState2[0],
|
11693 |
+
setIsScrolled = _useState2[1];
|
11694 |
+
|
11695 |
+
var rafHandle = Object(external_wp_element_["useRef"])(null);
|
11696 |
+
Object(external_wp_element_["useEffect"])(function () {
|
11697 |
+
var updateIsScrolled = function updateIsScrolled() {
|
11698 |
+
setIsScrolled(window.pageYOffset > 20);
|
11699 |
+
};
|
11700 |
+
|
11701 |
+
var scrollListener = function scrollListener() {
|
11702 |
+
rafHandle.current = window.requestAnimationFrame(updateIsScrolled);
|
11703 |
+
};
|
11704 |
+
|
11705 |
+
window.addEventListener('scroll', scrollListener);
|
11706 |
+
return function () {
|
11707 |
+
window.removeEventListener('scroll', scrollListener);
|
11708 |
+
window.cancelAnimationFrame(rafHandle.current);
|
11709 |
+
};
|
11710 |
+
}, []);
|
11711 |
+
return isScrolled;
|
11712 |
+
}
|
11713 |
+
// EXTERNAL MODULE: external ["wp","plugins"]
|
11714 |
+
var external_wp_plugins_ = __webpack_require__(279);
|
11715 |
+
|
11716 |
+
// EXTERNAL MODULE: ./client/navigation/style.scss
|
11717 |
+
var navigation_style = __webpack_require__(428);
|
11718 |
+
|
11719 |
+
// EXTERNAL MODULE: ./node_modules/@babel/runtime/helpers/toConsumableArray.js
|
11720 |
+
var toConsumableArray = __webpack_require__(44);
|
11721 |
+
var toConsumableArray_default = /*#__PURE__*/__webpack_require__.n(toConsumableArray);
|
11722 |
+
|
11723 |
+
// EXTERNAL MODULE: ./node_modules/core-js/modules/es.object.values.js
|
11724 |
+
var es_object_values = __webpack_require__(285);
|
11725 |
+
|
11726 |
+
// EXTERNAL MODULE: ./node_modules/core-js/modules/es.number.max-safe-integer.js
|
11727 |
+
var es_number_max_safe_integer = __webpack_require__(429);
|
11728 |
+
|
11729 |
+
// EXTERNAL MODULE: ./node_modules/core-js/modules/es.number.constructor.js
|
11730 |
+
var es_number_constructor = __webpack_require__(178);
|
11731 |
+
|
11732 |
+
// EXTERNAL MODULE: ./node_modules/core-js/modules/es.regexp.constructor.js
|
11733 |
+
var es_regexp_constructor = __webpack_require__(209);
|
11734 |
+
|
11735 |
+
// EXTERNAL MODULE: ./node_modules/core-js/modules/es.regexp.to-string.js
|
11736 |
+
var es_regexp_to_string = __webpack_require__(142);
|
11737 |
+
|
11738 |
+
// CONCATENATED MODULE: ./client/navigation/utils.ts
|
11739 |
+
|
11740 |
+
|
11741 |
+
|
11742 |
+
function ownKeys(object, enumerableOnly) { var keys = Object.keys(object); if (Object.getOwnPropertySymbols) { var symbols = Object.getOwnPropertySymbols(object); if (enumerableOnly) symbols = symbols.filter(function (sym) { return Object.getOwnPropertyDescriptor(object, sym).enumerable; }); keys.push.apply(keys, symbols); } return keys; }
|
11743 |
+
|
11744 |
+
function _objectSpread(target) { for (var i = 1; i < arguments.length; i++) { var source = arguments[i] != null ? arguments[i] : {}; if (i % 2) { ownKeys(Object(source), true).forEach(function (key) { defineProperty_default()(target, key, source[key]); }); } else if (Object.getOwnPropertyDescriptors) { Object.defineProperties(target, Object.getOwnPropertyDescriptors(source)); } else { ownKeys(Object(source)).forEach(function (key) { Object.defineProperty(target, key, Object.getOwnPropertyDescriptor(source, key)); }); } } return target; }
|
11745 |
+
|
11746 |
+
|
11747 |
+
|
11748 |
+
|
11749 |
+
|
11750 |
+
|
11751 |
+
|
11752 |
+
|
11753 |
+
|
11754 |
+
|
11755 |
+
|
11756 |
+
|
11757 |
+
|
11758 |
+
|
11759 |
+
|
11760 |
+
|
11761 |
+
|
11762 |
+
/**
|
11763 |
+
* External dependencies
|
11764 |
+
*/
|
11765 |
+
|
11766 |
+
|
11767 |
+
/**
|
11768 |
+
* Get the full URL if a relative path is passed.
|
11769 |
+
*/
|
11770 |
+
var utils_getFullUrl = function getFullUrl(url) {
|
11771 |
+
if (url.indexOf('http') === 0) {
|
11772 |
+
return url;
|
11773 |
+
}
|
11774 |
+
|
11775 |
+
return Object(wc_admin_settings["f" /* getAdminLink */])(url);
|
11776 |
+
};
|
11777 |
+
/**
|
11778 |
+
* Get a default regex expression to match the path and provided params.
|
11779 |
+
*/
|
11780 |
+
|
11781 |
+
var utils_getDefaultMatchExpression = function getDefaultMatchExpression(url) {
|
11782 |
+
var escapedUrl = url.replace(/[-\/\\^$*+?.()|[\]{}]/gi, '\\$&');
|
11783 |
+
|
11784 |
+
var _escapedUrl$split = escapedUrl.split(/\\\?|#/),
|
11785 |
+
_escapedUrl$split2 = slicedToArray_default()(_escapedUrl$split, 3),
|
11786 |
+
path = _escapedUrl$split2[0],
|
11787 |
+
args = _escapedUrl$split2[1],
|
11788 |
+
hash = _escapedUrl$split2[2];
|
11789 |
+
|
11790 |
+
var hashExpression = hash ? "(.*#".concat(hash, "$)") : '';
|
11791 |
+
var argsExpression = args ? args.split('&').reduce(function (acc, param) {
|
11792 |
+
return "".concat(acc, "(?=.*[?|&]").concat(param, "(&|$|#))");
|
11793 |
+
}, '') : '';
|
11794 |
+
return '^' + path + argsExpression + hashExpression;
|
11795 |
+
};
|
11796 |
+
/**
|
11797 |
+
* Get a match score for a menu item given a location.
|
11798 |
+
*/
|
11799 |
+
|
11800 |
+
var getMatchScore = function getMatchScore(location, itemUrl) {
|
11801 |
+
var itemExpression = arguments.length > 2 && arguments[2] !== undefined ? arguments[2] : null;
|
11802 |
+
|
11803 |
+
if (!itemUrl) {
|
11804 |
+
return 0;
|
11805 |
+
}
|
11806 |
+
|
11807 |
+
var fullUrl = utils_getFullUrl(itemUrl);
|
11808 |
+
var href = location.href; // Return highest possible score for exact match.
|
11809 |
+
|
11810 |
+
if (fullUrl === href) {
|
11811 |
+
return Number.MAX_SAFE_INTEGER;
|
11812 |
+
}
|
11813 |
+
|
11814 |
+
var defaultExpression = utils_getDefaultMatchExpression(fullUrl);
|
11815 |
+
var regexp = new RegExp(itemExpression || defaultExpression, 'i');
|
11816 |
+
return (decodeURIComponent(href).match(regexp) || []).length;
|
11817 |
+
};
|
11818 |
+
|
11819 |
+
/**
|
11820 |
+
* Adds a listener that runs on history change.
|
11821 |
+
*
|
11822 |
+
* @param {Function} listener Listener to add on history change.
|
11823 |
+
* @return {Function} Function to remove listeners.
|
11824 |
+
*/
|
11825 |
+
var addHistoryListener = function addHistoryListener(listener) {
|
11826 |
+
// Monkey patch pushState to allow trigger the pushstate event listener.
|
11827 |
+
if (!window.wcNavigation.historyPatched) {
|
11828 |
+
(function (history) {
|
11829 |
+
/* global CustomEvent */
|
11830 |
+
var pushState = history.pushState;
|
11831 |
+
var replaceState = history.replaceState;
|
11832 |
+
|
11833 |
+
history.pushState = function (state, title, url) {
|
11834 |
+
var pushStateEvent = new CustomEvent('pushstate', state);
|
11835 |
+
window.dispatchEvent(pushStateEvent);
|
11836 |
+
return pushState.apply(history, [state, title, url]);
|
11837 |
+
};
|
11838 |
+
|
11839 |
+
history.replaceState = function (state, title, url) {
|
11840 |
+
var replaceStateEvent = new CustomEvent('replacestate', state);
|
11841 |
+
window.dispatchEvent(replaceStateEvent);
|
11842 |
+
return replaceState.apply(history, [state, title, url]);
|
11843 |
+
};
|
11844 |
+
|
11845 |
+
window.wcNavigation.historyPatched = true;
|
11846 |
+
})(window.history);
|
11847 |
+
}
|
11848 |
+
|
11849 |
+
window.addEventListener('popstate', listener);
|
11850 |
+
window.addEventListener('pushstate', listener);
|
11851 |
+
window.addEventListener('replacestate', listener);
|
11852 |
+
return function () {
|
11853 |
+
window.removeEventListener('popstate', listener);
|
11854 |
+
window.removeEventListener('pushstate', listener);
|
11855 |
+
window.removeEventListener('replacestate', listener);
|
11856 |
+
};
|
11857 |
+
};
|
11858 |
+
/**
|
11859 |
+
* Get the closest matching item.
|
11860 |
+
*
|
11861 |
+
* @param {Array} items An array of items to match against.
|
11862 |
+
*/
|
11863 |
+
|
11864 |
+
var getMatchingItem = function getMatchingItem(items) {
|
11865 |
+
var matchedItem = null;
|
11866 |
+
var highestMatchScore = 0;
|
11867 |
+
items.forEach(function (item) {
|
11868 |
+
var score = getMatchScore(window.location, item.url, item.matchExpression);
|
11869 |
+
|
11870 |
+
if (score > 0 && score >= highestMatchScore) {
|
11871 |
+
highestMatchScore = score;
|
11872 |
+
matchedItem = item;
|
11873 |
+
}
|
11874 |
+
});
|
11875 |
+
return matchedItem || null;
|
11876 |
+
};
|
11877 |
+
/**
|
11878 |
+
* Available menu IDs.
|
11879 |
+
*/
|
11880 |
+
|
11881 |
+
var menuIds = ['primary', 'favorites', 'plugins', 'secondary'];
|
11882 |
+
|
11883 |
+
/**
|
11884 |
+
* Default categories for the menu.
|
11885 |
+
*/
|
11886 |
+
var defaultCategories = {
|
11887 |
+
woocommerce: {
|
11888 |
+
id: 'woocommerce',
|
11889 |
+
isCategory: true,
|
11890 |
+
menuId: 'primary',
|
11891 |
+
migrate: true,
|
11892 |
+
order: 10,
|
11893 |
+
parent: '',
|
11894 |
+
title: 'WooCommerce'
|
11895 |
+
}
|
11896 |
+
};
|
11897 |
+
/**
|
11898 |
+
* Sort an array of menu items by their order property.
|
11899 |
+
*
|
11900 |
+
* @param {Array} menuItems Array of menu items.
|
11901 |
+
* @return {Array} Sorted menu items.
|
11902 |
+
*/
|
11903 |
+
|
11904 |
+
var sortMenuItems = function sortMenuItems(menuItems) {
|
11905 |
+
return menuItems.sort(function (a, b) {
|
11906 |
+
if (a.order === b.order) {
|
11907 |
+
return a.title.localeCompare(b.title);
|
11908 |
+
}
|
11909 |
+
|
11910 |
+
return a.order - b.order;
|
11911 |
+
});
|
11912 |
+
};
|
11913 |
+
/**
|
11914 |
+
* Get a flat tree structure of all Categories and thier children grouped by menuId
|
11915 |
+
*
|
11916 |
+
* @param {Array} menuItems Array of menu items.
|
11917 |
+
* @param {Function} currentUserCan Callback method passed the capability to determine if a menu item is visible.
|
11918 |
+
* @return {Object} Mapped menu items and categories.
|
11919 |
+
*/
|
11920 |
+
|
11921 |
+
var getMappedItemsCategories = function getMappedItemsCategories(menuItems, currentUserCan) {
|
11922 |
+
var categories = _objectSpread({}, defaultCategories);
|
11923 |
+
|
11924 |
+
var items = sortMenuItems(menuItems).reduce(function (acc, item) {
|
11925 |
+
// Set up the category if it doesn't yet exist.
|
11926 |
+
if (!acc[item.parent]) {
|
11927 |
+
acc[item.parent] = {};
|
11928 |
+
menuIds.forEach(function (menuId) {
|
11929 |
+
acc[item.parent][menuId] = [];
|
11930 |
+
});
|
11931 |
+
} // Incorrect menu ID.
|
11932 |
+
|
11933 |
+
|
11934 |
+
if (!acc[item.parent][item.menuId]) {
|
11935 |
+
return acc;
|
11936 |
+
} // User does not have permission to view this item.
|
11937 |
+
|
11938 |
+
|
11939 |
+
if (currentUserCan && item.capability && !currentUserCan(item.capability)) {
|
11940 |
+
return acc;
|
11941 |
+
} // Add categories.
|
11942 |
+
|
11943 |
+
|
11944 |
+
if (item.isCategory) {
|
11945 |
+
categories[item.id] = item;
|
11946 |
+
}
|
11947 |
+
|
11948 |
+
var menuIdArray = acc[item.parent][item.menuId];
|
11949 |
+
|
11950 |
+
if (menuIdArray) {
|
11951 |
+
menuIdArray.push(item);
|
11952 |
+
}
|
11953 |
+
|
11954 |
+
return acc;
|
11955 |
+
}, {});
|
11956 |
+
return {
|
11957 |
+
items: items,
|
11958 |
+
categories: categories
|
11959 |
+
};
|
11960 |
+
};
|
11961 |
+
// CONCATENATED MODULE: ./node_modules/@wordpress/icons/build-module/library/wordpress.js
|
11962 |
+
|
11963 |
+
|
11964 |
+
/**
|
11965 |
+
* WordPress dependencies
|
11966 |
+
*/
|
11967 |
+
|
11968 |
+
var wordpress = Object(external_wp_element_["createElement"])(external_wp_primitives_["SVG"], {
|
11969 |
+
xmlns: "http://www.w3.org/2000/svg",
|
11970 |
+
viewBox: "-2 -2 24 24"
|
11971 |
+
}, Object(external_wp_element_["createElement"])(external_wp_primitives_["Path"], {
|
11972 |
+
d: "M20 10c0-5.51-4.49-10-10-10C4.48 0 0 4.49 0 10c0 5.52 4.48 10 10 10 5.51 0 10-4.48 10-10zM7.78 15.37L4.37 6.22c.55-.02 1.17-.08 1.17-.08.5-.06.44-1.13-.06-1.11 0 0-1.45.11-2.37.11-.18 0-.37 0-.58-.01C4.12 2.69 6.87 1.11 10 1.11c2.33 0 4.45.87 6.05 2.34-.68-.11-1.65.39-1.65 1.58 0 .74.45 1.36.9 2.1.35.61.55 1.36.55 2.46 0 1.49-1.4 5-1.4 5l-3.03-8.37c.54-.02.82-.17.82-.17.5-.05.44-1.25-.06-1.22 0 0-1.44.12-2.38.12-.87 0-2.33-.12-2.33-.12-.5-.03-.56 1.2-.06 1.22l.92.08 1.26 3.41zM17.41 10c.24-.64.74-1.87.43-4.25.7 1.29 1.05 2.71 1.05 4.25 0 3.29-1.73 6.24-4.4 7.78.97-2.59 1.94-5.2 2.92-7.78zM6.1 18.09C3.12 16.65 1.11 13.53 1.11 10c0-1.3.23-2.48.72-3.59C3.25 10.3 4.67 14.2 6.1 18.09zm4.03-6.63l2.58 6.98c-.86.29-1.76.45-2.71.45-.79 0-1.57-.11-2.29-.33.81-2.38 1.62-4.74 2.42-7.1z"
|
11973 |
+
}));
|
11974 |
+
/* harmony default export */ var library_wordpress = (wordpress);
|
11975 |
+
//# sourceMappingURL=wordpress.js.map
|
11976 |
+
// CONCATENATED MODULE: ./client/navigation/components/header/index.js
|
11977 |
+
|
11978 |
+
|
11979 |
+
|
11980 |
+
/**
|
11981 |
+
* External dependencies
|
11982 |
+
*/
|
11983 |
+
|
11984 |
+
|
11985 |
+
|
11986 |
+
|
11987 |
+
|
11988 |
+
|
11989 |
+
|
11990 |
+
|
11991 |
+
|
11992 |
+
/**
|
11993 |
+
* Internal dependencies
|
11994 |
+
*/
|
11995 |
+
|
11996 |
+
|
11997 |
+
|
11998 |
+
|
11999 |
+
var header_Header = function Header() {
|
12000 |
+
var siteTitle = Object(wc_admin_settings["g" /* getSetting */])('siteTitle', '');
|
12001 |
+
var homeUrl = Object(wc_admin_settings["g" /* getSetting */])('homeUrl', '');
|
12002 |
+
var isScrolled = useIsScrolled();
|
12003 |
+
|
12004 |
+
var _useState = Object(external_wp_element_["useState"])(document.body.classList.contains(false)),
|
12005 |
+
_useState2 = slicedToArray_default()(_useState, 2),
|
12006 |
+
isFolded = _useState2[0],
|
12007 |
+
setIsFolded = _useState2[1];
|
12008 |
+
|
12009 |
+
var navClasses = {
|
12010 |
+
folded: 'is-wc-nav-folded',
|
12011 |
+
expanded: 'is-wc-nav-expanded'
|
12012 |
+
};
|
12013 |
+
|
12014 |
+
var foldNav = function foldNav() {
|
12015 |
+
document.body.classList.add(navClasses.folded);
|
12016 |
+
document.body.classList.remove(navClasses.expanded);
|
12017 |
+
setIsFolded(true);
|
12018 |
+
};
|
12019 |
+
|
12020 |
+
var expandNav = function expandNav() {
|
12021 |
+
document.body.classList.remove(navClasses.folded);
|
12022 |
+
document.body.classList.add(navClasses.expanded);
|
12023 |
+
setIsFolded(false);
|
12024 |
+
};
|
12025 |
+
|
12026 |
+
var toggleFolded = function toggleFolded() {
|
12027 |
+
if (document.body.classList.contains(navClasses.folded)) {
|
12028 |
+
expandNav();
|
12029 |
+
} else {
|
12030 |
+
foldNav();
|
12031 |
+
}
|
12032 |
+
};
|
12033 |
+
|
12034 |
+
var foldOnMobile = function foldOnMobile() {
|
12035 |
+
var screenWidth = arguments.length > 0 && arguments[0] !== undefined ? arguments[0] : document.body.clientWidth;
|
12036 |
+
|
12037 |
+
if (screenWidth <= 960) {
|
12038 |
+
foldNav();
|
12039 |
+
} else {
|
12040 |
+
expandNav();
|
12041 |
+
}
|
12042 |
+
};
|
12043 |
+
|
12044 |
+
Object(external_wp_element_["useEffect"])(function () {
|
12045 |
+
foldOnMobile();
|
12046 |
+
var foldEvents = [{
|
12047 |
+
eventName: 'orientationchange',
|
12048 |
+
handler: function handler(e) {
|
12049 |
+
return foldOnMobile(e.target.screen.availWidth);
|
12050 |
+
}
|
12051 |
+
}, {
|
12052 |
+
eventName: 'resize',
|
12053 |
+
handler: Object(external_lodash_["debounce"])(function () {
|
12054 |
+
return foldOnMobile();
|
12055 |
+
}, 200)
|
12056 |
+
}];
|
12057 |
+
|
12058 |
+
for (var _i = 0, _foldEvents = foldEvents; _i < _foldEvents.length; _i++) {
|
12059 |
+
var _foldEvents$_i = _foldEvents[_i],
|
12060 |
+
eventName = _foldEvents$_i.eventName,
|
12061 |
+
handler = _foldEvents$_i.handler;
|
12062 |
+
window.addEventListener(eventName, handler, false);
|
12063 |
+
}
|
12064 |
+
|
12065 |
+
addHistoryListener(function () {
|
12066 |
+
return foldOnMobile();
|
12067 |
+
});
|
12068 |
+
}, []);
|
12069 |
+
var buttonIcon = Object(external_wp_element_["createElement"])(build_module_icon["a" /* default */], {
|
12070 |
+
size: "36px",
|
12071 |
+
icon: library_wordpress
|
12072 |
+
});
|
12073 |
+
|
12074 |
+
var _useSelect = Object(external_wp_data_["useSelect"])(function (select) {
|
12075 |
+
var _select = select('core/data'),
|
12076 |
+
isResolving = _select.isResolving;
|
12077 |
+
|
12078 |
+
var _select2 = select('core'),
|
12079 |
+
getEntityRecord = _select2.getEntityRecord;
|
12080 |
+
|
12081 |
+
var siteData = getEntityRecord('root', '__unstableBase', undefined) || {};
|
12082 |
+
return {
|
12083 |
+
isRequestingSiteIcon: isResolving('core', 'getEntityRecord', ['root', '__unstableBase', undefined]),
|
12084 |
+
siteIconUrl: siteData.siteIconUrl
|
12085 |
+
};
|
12086 |
+
}),
|
12087 |
+
isRequestingSiteIcon = _useSelect.isRequestingSiteIcon,
|
12088 |
+
siteIconUrl = _useSelect.siteIconUrl;
|
12089 |
+
|
12090 |
+
if (siteIconUrl) {
|
12091 |
+
buttonIcon = Object(external_wp_element_["createElement"])("img", {
|
12092 |
+
alt: Object(external_wp_i18n_["__"])('Site Icon'),
|
12093 |
+
src: siteIconUrl
|
12094 |
+
});
|
12095 |
+
} else if (isRequestingSiteIcon) {
|
12096 |
+
buttonIcon = null;
|
12097 |
+
}
|
12098 |
+
|
12099 |
+
var className = classnames_default()('woocommerce-navigation-header', {
|
12100 |
+
'is-scrolled': isScrolled
|
12101 |
+
});
|
12102 |
+
return Object(external_wp_element_["createElement"])("div", {
|
12103 |
+
className: className
|
12104 |
+
}, Object(external_wp_element_["createElement"])(external_wp_components_["Button"], {
|
12105 |
+
onClick: function onClick() {
|
12106 |
+
return toggleFolded();
|
12107 |
+
},
|
12108 |
+
className: "woocommerce-navigation-header__site-icon",
|
12109 |
+
"aria-label": "Fold navigation",
|
12110 |
+
role: "switch",
|
12111 |
+
"aria-checked": isFolded ? 'true' : 'false'
|
12112 |
+
}, buttonIcon), Object(external_wp_element_["createElement"])(external_wp_components_["Button"], {
|
12113 |
+
href: homeUrl,
|
12114 |
+
className: "woocommerce-navigation-header__site-title",
|
12115 |
+
as: "span"
|
12116 |
+
}, Object(external_wp_htmlEntities_["decodeEntities"])(siteTitle)));
|
12117 |
+
};
|
12118 |
+
|
12119 |
+
/* harmony default export */ var header = (header_Header);
|
12120 |
+
// EXTERNAL MODULE: ./client/navigation/components/category-title/style.scss
|
12121 |
+
var category_title_style = __webpack_require__(430);
|
12122 |
+
|
12123 |
+
// EXTERNAL MODULE: ./client/navigation/components/favorite-button/style.scss
|
12124 |
+
var favorite_button_style = __webpack_require__(431);
|
12125 |
+
|
12126 |
+
// CONCATENATED MODULE: ./client/navigation/components/favorite-button/index.js
|
12127 |
+
|
12128 |
+
|
12129 |
+
|
12130 |
+
|
12131 |
+
/**
|
12132 |
+
* External dependencies
|
12133 |
+
*/
|
12134 |
+
|
12135 |
+
|
12136 |
+
|
12137 |
+
|
12138 |
+
|
12139 |
+
/**
|
12140 |
+
* Internal dependencies
|
12141 |
+
*/
|
12142 |
+
|
12143 |
+
|
12144 |
+
var favorite_button_FavoriteButton = function FavoriteButton(_ref) {
|
12145 |
+
var id = _ref.id;
|
12146 |
+
|
12147 |
+
var _useSelect = Object(external_wp_data_["useSelect"])(function (select) {
|
12148 |
+
return {
|
12149 |
+
favorites: select(external_wc_data_["NAVIGATION_STORE_NAME"]).getFavorites(),
|
12150 |
+
isResolving: select(external_wc_data_["NAVIGATION_STORE_NAME"]).isResolving('getFavorites')
|
12151 |
+
};
|
12152 |
+
}),
|
12153 |
+
favorites = _useSelect.favorites,
|
12154 |
+
isResolving = _useSelect.isResolving;
|
12155 |
+
|
12156 |
+
var _useDispatch = Object(external_wp_data_["useDispatch"])(external_wc_data_["NAVIGATION_STORE_NAME"]),
|
12157 |
+
addFavorite = _useDispatch.addFavorite,
|
12158 |
+
removeFavorite = _useDispatch.removeFavorite;
|
12159 |
+
|
12160 |
+
var isFavorited = favorites.includes(id);
|
12161 |
+
|
12162 |
+
var toggleFavorite = function toggleFavorite() {
|
12163 |
+
var toggle = isFavorited ? removeFavorite : addFavorite;
|
12164 |
+
toggle(id);
|
12165 |
+
Object(external_wc_tracks_["recordEvent"])('navigation_favorite', {
|
12166 |
+
id: id,
|
12167 |
+
action: isFavorited ? 'unfavorite' : 'favorite'
|
12168 |
+
});
|
12169 |
+
};
|
12170 |
+
|
12171 |
+
if (isResolving) {
|
12172 |
+
return null;
|
12173 |
+
}
|
12174 |
+
|
12175 |
+
return Object(external_wp_element_["createElement"])(external_wp_components_["Button"], {
|
12176 |
+
id: "woocommerce-navigation-favorite-button",
|
12177 |
+
className: "woocommerce-navigation-favorite-button",
|
12178 |
+
isTertiary: true,
|
12179 |
+
onClick: toggleFavorite,
|
12180 |
+
icon: isFavorited ? 'star-filled' : 'star-empty',
|
12181 |
+
"aria-label": isFavorited ? Object(external_wp_i18n_["__"])('Add this item to your favorites.', 'woocommerce-admin') : Object(external_wp_i18n_["__"])('Remove this item from your favorites.', 'woocommerce-admin')
|
12182 |
+
});
|
12183 |
+
};
|
12184 |
+
/* harmony default export */ var favorite_button = (favorite_button_FavoriteButton);
|
12185 |
+
// CONCATENATED MODULE: ./client/navigation/components/favorites-tooltip/index.js
|
12186 |
+
|
12187 |
+
|
12188 |
+
|
12189 |
+
/**
|
12190 |
+
* External dependencies
|
12191 |
+
*/
|
12192 |
+
|
12193 |
+
|
12194 |
+
|
12195 |
+
/**
|
12196 |
+
* Internal dependencies
|
12197 |
+
*/
|
12198 |
+
|
12199 |
+
|
12200 |
+
var tooltipHiddenOption = 'woocommerce_navigation_favorites_tooltip_hidden';
|
12201 |
+
var favorites_tooltip_FavoritesTooltip = function FavoritesTooltip() {
|
12202 |
+
var _useSelect = Object(external_wp_data_["useSelect"])(function (select) {
|
12203 |
+
var _select = select(external_wc_data_["OPTIONS_STORE_NAME"]),
|
12204 |
+
getOption = _select.getOption,
|
12205 |
+
isResolving = _select.isResolving;
|
12206 |
+
|
12207 |
+
return {
|
12208 |
+
isFavoritesResolving: select(external_wc_data_["NAVIGATION_STORE_NAME"]).isResolving('getFavorites'),
|
12209 |
+
isOptionResolving: isResolving('getOption', [tooltipHiddenOption]),
|
12210 |
+
isTooltipHidden: getOption(tooltipHiddenOption) === 'yes'
|
12211 |
+
};
|
12212 |
+
}),
|
12213 |
+
isFavoritesResolving = _useSelect.isFavoritesResolving,
|
12214 |
+
isOptionResolving = _useSelect.isOptionResolving,
|
12215 |
+
isTooltipHidden = _useSelect.isTooltipHidden;
|
12216 |
+
|
12217 |
+
var _useDispatch = Object(external_wp_data_["useDispatch"])(external_wc_data_["OPTIONS_STORE_NAME"]),
|
12218 |
+
updateOptions = _useDispatch.updateOptions;
|
12219 |
+
|
12220 |
+
if (isFavoritesResolving || isTooltipHidden || isOptionResolving) {
|
12221 |
+
return null;
|
12222 |
+
}
|
12223 |
+
|
12224 |
+
if (document.body.classList.contains('is-wc-nav-folded')) {
|
12225 |
+
return null;
|
12226 |
+
}
|
12227 |
+
|
12228 |
+
return Object(external_wp_element_["createElement"])(HighlightTooltip, {
|
12229 |
+
delay: 1000,
|
12230 |
+
title: Object(external_wp_i18n_["__"])('Introducing favorites', 'woocommerce-admin'),
|
12231 |
+
content: Object(external_wp_i18n_["__"])('You can now favorite your extensions to pin them in the top level of the navigation.', 'woocommerce-admin'),
|
12232 |
+
closeButtonText: Object(external_wp_i18n_["__"])('Got it', 'woocommerce-admin'),
|
12233 |
+
id: "woocommerce-navigation-favorite-button",
|
12234 |
+
onClose: function onClose() {
|
12235 |
+
return updateOptions(defineProperty_default()({}, tooltipHiddenOption, 'yes'));
|
12236 |
+
},
|
12237 |
+
useAnchor: true
|
12238 |
+
});
|
12239 |
+
};
|
12240 |
+
/* harmony default export */ var favorites_tooltip = (favorites_tooltip_FavoritesTooltip);
|
12241 |
+
// CONCATENATED MODULE: ./client/navigation/components/category-title/index.js
|
12242 |
+
|
12243 |
+
|
12244 |
+
|
12245 |
+
/**
|
12246 |
+
* Internal dependencies
|
12247 |
+
*/
|
12248 |
+
|
12249 |
+
|
12250 |
+
|
12251 |
+
var category_title_CategoryTitle = function CategoryTitle(_ref) {
|
12252 |
+
var category = _ref.category;
|
12253 |
+
var id = category.id,
|
12254 |
+
menuId = category.menuId,
|
12255 |
+
title = category.title;
|
12256 |
+
var className = 'woocommerce-navigation-category-title';
|
12257 |
+
|
12258 |
+
if (['plugins', 'favorites'].includes(menuId)) {
|
12259 |
+
return Object(external_wp_element_["createElement"])("span", {
|
12260 |
+
className: className
|
12261 |
+
}, Object(external_wp_element_["createElement"])("span", {
|
12262 |
+
className: "".concat(className, "__text")
|
12263 |
+
}, title), Object(external_wp_element_["createElement"])(favorite_button_FavoriteButton, {
|
12264 |
+
id: id
|
12265 |
+
}), Object(external_wp_element_["createElement"])(favorites_tooltip_FavoritesTooltip, null));
|
12266 |
+
}
|
12267 |
+
|
12268 |
+
return Object(external_wp_element_["createElement"])("span", {
|
12269 |
+
className: className
|
12270 |
+
}, title);
|
12271 |
+
};
|
12272 |
+
/* harmony default export */ var category_title = (category_title_CategoryTitle);
|
12273 |
+
// CONCATENATED MODULE: ./client/navigation/components/Item/index.js
|
12274 |
+
|
12275 |
+
|
12276 |
+
/**
|
12277 |
+
* External dependencies
|
12278 |
+
*/
|
12279 |
+
|
12280 |
+
|
12281 |
+
|
12282 |
+
|
12283 |
+
var Item_Item = function Item(_ref) {
|
12284 |
+
var item = _ref.item;
|
12285 |
+
var slot = Object(external_wc_navigation_["useNavSlot"])('woocommerce_navigation_' + item.id);
|
12286 |
+
var hasFills = Boolean(slot.fills && slot.fills.length);
|
12287 |
+
|
12288 |
+
var trackClick = function trackClick(id) {
|
12289 |
+
Object(external_wc_tracks_["recordEvent"])('navigation_click', {
|
12290 |
+
menu_item: id
|
12291 |
+
});
|
12292 |
+
}; // Disable reason: The div wrapping the slot item is used for tracking purposes
|
12293 |
+
// and should not be a tabbable element.
|
12294 |
+
|
12295 |
+
/* eslint-disable jsx-a11y/no-static-element-interactions, jsx-a11y/click-events-have-key-events */
|
12296 |
+
// Only render a slot if a coresponding Fill exists and the item is not a category
|
12297 |
+
|
12298 |
+
|
12299 |
+
if (hasFills && !item.isCategory) {
|
12300 |
+
return Object(external_wp_element_["createElement"])(build_module["c" /* NavigationItem */], {
|
12301 |
+
key: item.id,
|
12302 |
+
item: item.id
|
12303 |
+
}, Object(external_wp_element_["createElement"])("div", {
|
12304 |
+
onClick: function onClick() {
|
12305 |
+
return trackClick(item.id);
|
12306 |
+
}
|
12307 |
+
}, Object(external_wp_element_["createElement"])(external_wc_navigation_["WooNavigationItem"].Slot, {
|
12308 |
+
name: item.id
|
12309 |
+
})));
|
12310 |
+
}
|
12311 |
+
|
12312 |
+
return Object(external_wp_element_["createElement"])(build_module["c" /* NavigationItem */], {
|
12313 |
+
key: item.id,
|
12314 |
+
item: item.id,
|
12315 |
+
title: item.title,
|
12316 |
+
href: item.url,
|
12317 |
+
navigateToMenu: !item.url && item.id,
|
12318 |
+
onClick: function onClick() {
|
12319 |
+
return trackClick(item.id);
|
12320 |
+
},
|
12321 |
+
hideIfTargetMenuEmpty: true
|
12322 |
+
});
|
12323 |
+
/* eslint-enable jsx-a11y/no-static-element-interactions, jsx-a11y/click-events-have-key-events */
|
12324 |
+
};
|
12325 |
+
|
12326 |
+
/* harmony default export */ var components_Item = (Item_Item);
|
12327 |
+
// CONCATENATED MODULE: ./client/navigation/components/container/primary-menu.js
|
12328 |
+
|
12329 |
+
|
12330 |
+
|
12331 |
+
/**
|
12332 |
+
* External dependencies
|
12333 |
+
*/
|
12334 |
+
|
12335 |
+
|
12336 |
+
|
12337 |
+
/**
|
12338 |
+
* Internal dependencies
|
12339 |
+
*/
|
12340 |
+
|
12341 |
+
|
12342 |
+
|
12343 |
+
var primary_menu_PrimaryMenu = function PrimaryMenu(_ref) {
|
12344 |
+
var category = _ref.category,
|
12345 |
+
onBackClick = _ref.onBackClick,
|
12346 |
+
pluginItems = _ref.pluginItems,
|
12347 |
+
primaryItems = _ref.primaryItems;
|
12348 |
+
|
12349 |
+
if (!primaryItems.length && !pluginItems.length) {
|
12350 |
+
return null;
|
12351 |
+
}
|
12352 |
+
|
12353 |
+
var rootBackLabel = Object(external_wp_hooks_["applyFilters"])('woocommerce_navigation_root_back_label', Object(external_wp_i18n_["__"])('WordPress Dashboard', 'woocommerce-admin'));
|
12354 |
+
var rootBackUrl = Object(external_wp_hooks_["applyFilters"])('woocommerce_navigation_root_back_url', window.wcNavigation.rootBackUrl);
|
12355 |
+
var isRootBackVisible = category.id === 'woocommerce' && rootBackUrl;
|
12356 |
+
return Object(external_wp_element_["createElement"])(build_module["d" /* NavigationMenu */], {
|
12357 |
+
title: Object(external_wp_element_["createElement"])(category_title, {
|
12358 |
+
category: category
|
12359 |
+
}),
|
12360 |
+
menu: category.id,
|
12361 |
+
parentMenu: category.parent,
|
12362 |
+
backButtonLabel: isRootBackVisible ? rootBackLabel : category.backButtonLabel || null,
|
12363 |
+
onBackButtonClick: isRootBackVisible ? function () {
|
12364 |
+
onBackClick('woocommerce');
|
12365 |
+
window.location = rootBackUrl;
|
12366 |
+
} : function () {
|
12367 |
+
return onBackClick(category.id);
|
12368 |
+
}
|
12369 |
+
}, !!primaryItems.length && Object(external_wp_element_["createElement"])(build_module["b" /* NavigationGroup */], null, primaryItems.map(function (item) {
|
12370 |
+
return Object(external_wp_element_["createElement"])(components_Item, {
|
12371 |
+
key: item.id,
|
12372 |
+
item: item
|
12373 |
+
});
|
12374 |
+
})), !!pluginItems.length && Object(external_wp_element_["createElement"])(build_module["b" /* NavigationGroup */], {
|
12375 |
+
title: category.id === 'woocommerce' ? Object(external_wp_i18n_["__"])('Extensions', 'woocommerce-admin') : null
|
12376 |
+
}, pluginItems.map(function (item) {
|
12377 |
+
return Object(external_wp_element_["createElement"])(components_Item, {
|
12378 |
+
key: item.id,
|
12379 |
+
item: item
|
12380 |
+
});
|
12381 |
+
})));
|
12382 |
+
};
|
12383 |
+
// CONCATENATED MODULE: ./client/navigation/components/container/secondary-menu.js
|
12384 |
+
|
12385 |
+
|
12386 |
+
|
12387 |
+
/**
|
12388 |
+
* External dependencies
|
12389 |
+
*/
|
12390 |
+
|
12391 |
+
/**
|
12392 |
+
* Internal dependencies
|
12393 |
+
*/
|
12394 |
+
|
12395 |
+
|
12396 |
+
|
12397 |
+
var secondary_menu_SecondaryMenu = function SecondaryMenu(_ref) {
|
12398 |
+
var category = _ref.category,
|
12399 |
+
items = _ref.items,
|
12400 |
+
onBackClick = _ref.onBackClick;
|
12401 |
+
|
12402 |
+
if (!items.length) {
|
12403 |
+
return null;
|
12404 |
+
}
|
12405 |
+
|
12406 |
+
var isRoot = category.id === 'woocommerce';
|
12407 |
+
return Object(external_wp_element_["createElement"])(build_module["d" /* NavigationMenu */], {
|
12408 |
+
className: "components-navigation__menu-secondary",
|
12409 |
+
title: !isRoot && Object(external_wp_element_["createElement"])(category_title, {
|
12410 |
+
category: category
|
12411 |
+
}),
|
12412 |
+
menu: category.id,
|
12413 |
+
parentMenu: category.parent,
|
12414 |
+
backButtonLabel: category.backButtonLabel || null,
|
12415 |
+
onBackButtonClick: isRoot ? null : function () {
|
12416 |
+
return onBackClick(category.id);
|
12417 |
+
}
|
12418 |
+
}, Object(external_wp_element_["createElement"])(build_module["b" /* NavigationGroup */], {
|
12419 |
+
onBackButtonClick: function onBackButtonClick() {
|
12420 |
+
return onBackClick(category.id);
|
12421 |
+
}
|
12422 |
+
}, items.map(function (item) {
|
12423 |
+
return Object(external_wp_element_["createElement"])(components_Item, {
|
12424 |
+
key: item.id,
|
12425 |
+
item: item
|
12426 |
+
});
|
12427 |
+
})));
|
12428 |
+
};
|
12429 |
+
// CONCATENATED MODULE: ./client/navigation/components/container/index.js
|
12430 |
+
|
12431 |
+
|
12432 |
+
|
12433 |
+
|
12434 |
+
|
12435 |
+
|
12436 |
+
|
12437 |
+
/**
|
12438 |
+
* External dependencies
|
12439 |
+
*/
|
12440 |
+
|
12441 |
+
|
12442 |
+
|
12443 |
+
|
12444 |
+
|
12445 |
+
|
12446 |
+
/**
|
12447 |
+
* Internal dependencies
|
12448 |
+
*/
|
12449 |
+
|
12450 |
+
|
12451 |
+
|
12452 |
+
|
12453 |
+
|
12454 |
+
|
12455 |
+
var container_Container = function Container() {
|
12456 |
+
var _useSelect = Object(external_wp_data_["useSelect"])(function (select) {
|
12457 |
+
return {
|
12458 |
+
menuItems: select(external_wc_data_["NAVIGATION_STORE_NAME"]).getMenuItems()
|
12459 |
+
};
|
12460 |
+
}),
|
12461 |
+
menuItems = _useSelect.menuItems;
|
12462 |
+
|
12463 |
+
Object(external_wp_element_["useEffect"])(function () {
|
12464 |
+
// Collapse the original WP Menu.
|
12465 |
+
document.documentElement.classList.remove('wp-toolbar');
|
12466 |
+
document.body.classList.add('has-woocommerce-navigation');
|
12467 |
+
var adminMenu = document.getElementById('adminmenumain');
|
12468 |
+
|
12469 |
+
if (!adminMenu) {
|
12470 |
+
return;
|
12471 |
+
}
|
12472 |
+
|
12473 |
+
adminMenu.classList.add('folded');
|
12474 |
+
}, []);
|
12475 |
+
|
12476 |
+
var _useState = Object(external_wp_element_["useState"])('woocommerce-home'),
|
12477 |
+
_useState2 = slicedToArray_default()(_useState, 2),
|
12478 |
+
activeItem = _useState2[0],
|
12479 |
+
setActiveItem = _useState2[1];
|
12480 |
+
|
12481 |
+
var _useState3 = Object(external_wp_element_["useState"])('woocommerce'),
|
12482 |
+
_useState4 = slicedToArray_default()(_useState3, 2),
|
12483 |
+
activeLevel = _useState4[0],
|
12484 |
+
setActiveLevel = _useState4[1];
|
12485 |
+
|
12486 |
+
Object(external_wp_element_["useEffect"])(function () {
|
12487 |
+
var initialMatchedItem = getMatchingItem(menuItems);
|
12488 |
+
|
12489 |
+
if (initialMatchedItem && activeItem !== initialMatchedItem) {
|
12490 |
+
setActiveItem(initialMatchedItem);
|
12491 |
+
setActiveLevel(initialMatchedItem.parent);
|
12492 |
+
}
|
12493 |
+
|
12494 |
+
var removeListener = addHistoryListener(function () {
|
12495 |
+
setTimeout(function () {
|
12496 |
+
var matchedItem = getMatchingItem(menuItems);
|
12497 |
+
|
12498 |
+
if (matchedItem) {
|
12499 |
+
setActiveItem(matchedItem);
|
12500 |
+
setActiveLevel(matchedItem.parent);
|
12501 |
+
}
|
12502 |
+
}, 0);
|
12503 |
+
});
|
12504 |
+
return removeListener;
|
12505 |
+
}, [menuItems]);
|
12506 |
+
|
12507 |
+
var _useUser = Object(external_wc_data_["useUser"])(),
|
12508 |
+
currentUserCan = _useUser.currentUserCan;
|
12509 |
+
|
12510 |
+
var _useMemo = Object(external_wp_element_["useMemo"])(function () {
|
12511 |
+
return getMappedItemsCategories(menuItems, currentUserCan);
|
12512 |
+
}, [menuItems, currentUserCan]),
|
12513 |
+
categories = _useMemo.categories,
|
12514 |
+
items = _useMemo.items;
|
12515 |
+
|
12516 |
+
var navDomRef = Object(external_wp_element_["useRef"])(null);
|
12517 |
+
|
12518 |
+
var onBackClick = function onBackClick(id) {
|
12519 |
+
Object(external_wc_tracks_["recordEvent"])('navigation_back_click', {
|
12520 |
+
category: id
|
12521 |
+
});
|
12522 |
+
};
|
12523 |
+
|
12524 |
+
var isRoot = activeLevel === 'woocommerce';
|
12525 |
+
var classes = classnames_default()('woocommerce-navigation', {
|
12526 |
+
'is-root': isRoot
|
12527 |
+
});
|
12528 |
+
return Object(external_wp_element_["createElement"])("div", {
|
12529 |
+
className: classes
|
12530 |
+
}, Object(external_wp_element_["createElement"])(header, null), Object(external_wp_element_["createElement"])("div", {
|
12531 |
+
className: "woocommerce-navigation__wrapper",
|
12532 |
+
ref: navDomRef
|
12533 |
+
}, Object(external_wp_element_["createElement"])(build_module["a" /* Navigation */], {
|
12534 |
+
activeItem: activeItem ? activeItem.id : null,
|
12535 |
+
activeMenu: activeLevel,
|
12536 |
+
onActivateMenu: function onActivateMenu() {
|
12537 |
+
if (navDomRef && navDomRef.current) {
|
12538 |
+
navDomRef.current.scrollTop = 0;
|
12539 |
+
}
|
12540 |
+
|
12541 |
+
setActiveLevel.apply(void 0, arguments);
|
12542 |
+
}
|
12543 |
+
}, Object.values(categories).map(function (category) {
|
12544 |
+
var categoryItems = items[category.id];
|
12545 |
+
return !!categoryItems && [Object(external_wp_element_["createElement"])(primary_menu_PrimaryMenu, {
|
12546 |
+
key: category.id,
|
12547 |
+
category: category,
|
12548 |
+
onBackClick: onBackClick,
|
12549 |
+
primaryItems: [].concat(toConsumableArray_default()(categoryItems.primary), toConsumableArray_default()(categoryItems.favorites)),
|
12550 |
+
pluginItems: categoryItems.plugins
|
12551 |
+
}), Object(external_wp_element_["createElement"])(secondary_menu_SecondaryMenu, {
|
12552 |
+
key: "secondary/".concat(category.id),
|
12553 |
+
category: category,
|
12554 |
+
onBackClick: onBackClick,
|
12555 |
+
items: categoryItems.secondary
|
12556 |
+
})];
|
12557 |
+
}))));
|
12558 |
+
};
|
12559 |
+
|
12560 |
+
/* harmony default export */ var container = (container_Container);
|
12561 |
+
// CONCATENATED MODULE: ./client/navigation/index.js
|
12562 |
+
|
12563 |
+
|
12564 |
+
/**
|
12565 |
+
* External dependencies
|
12566 |
+
*/
|
12567 |
+
|
12568 |
+
|
12569 |
+
|
12570 |
+
/**
|
12571 |
+
* Internal dependencies
|
12572 |
+
*/
|
12573 |
+
|
12574 |
+
|
12575 |
+
|
12576 |
+
|
12577 |
+
var navigation_Navigation = function Navigation() {
|
12578 |
+
return Object(external_wp_element_["createElement"])(external_wc_navigation_["NavSlotFillProvider"], null, Object(external_wp_element_["createElement"])(container, null), Object(external_wp_element_["createElement"])(external_wp_plugins_["PluginArea"], null));
|
12579 |
+
};
|
12580 |
+
|
12581 |
+
var HydratedNavigation = Object(external_wc_data_["withNavigationHydration"])(window.wcNavigation)(navigation_Navigation);
|
12582 |
+
/* harmony default export */ var navigation = (HydratedNavigation);
|
12583 |
+
// CONCATENATED MODULE: ./client/header/index.js
|
12584 |
+
|
12585 |
+
|
12586 |
+
|
12587 |
+
|
12588 |
+
function header_ownKeys(object, enumerableOnly) { var keys = Object.keys(object); if (Object.getOwnPropertySymbols) { var symbols = Object.getOwnPropertySymbols(object); if (enumerableOnly) symbols = symbols.filter(function (sym) { return Object.getOwnPropertyDescriptor(object, sym).enumerable; }); keys.push.apply(keys, symbols); } return keys; }
|
12589 |
+
|
12590 |
+
function header_objectSpread(target) { for (var i = 1; i < arguments.length; i++) { var source = arguments[i] != null ? arguments[i] : {}; if (i % 2) { header_ownKeys(Object(source), true).forEach(function (key) { defineProperty_default()(target, key, source[key]); }); } else if (Object.getOwnPropertyDescriptors) { Object.defineProperties(target, Object.getOwnPropertyDescriptors(source)); } else { header_ownKeys(Object(source)).forEach(function (key) { Object.defineProperty(target, key, Object.getOwnPropertyDescriptor(source, key)); }); } } return target; }
|
12591 |
+
|
12592 |
+
|
12593 |
+
|
12594 |
+
|
12595 |
+
|
12596 |
+
|
12597 |
+
|
12598 |
+
|
12599 |
+
|
12600 |
+
|
12601 |
+
|
12602 |
+
|
12603 |
+
|
12604 |
+
|
12605 |
+
|
12606 |
+
|
12607 |
+
/**
|
12608 |
+
* External dependencies
|
12609 |
+
*/
|
12610 |
+
|
12611 |
+
|
12612 |
+
|
12613 |
+
|
12614 |
+
|
12615 |
+
|
12616 |
+
|
12617 |
+
|
12618 |
+
|
12619 |
+
|
12620 |
+
|
12621 |
+
|
12622 |
+
/**
|
12623 |
+
* Internal dependencies
|
12624 |
+
*/
|
12625 |
+
|
12626 |
+
|
12627 |
+
|
12628 |
+
|
12629 |
+
|
12630 |
+
|
12631 |
+
|
12632 |
+
var header_renderTaskListBackButton = function renderTaskListBackButton() {
|
12633 |
+
var currentUrl = new URL(window.location.href);
|
12634 |
+
var task = currentUrl.searchParams.get('task');
|
12635 |
+
|
12636 |
+
if (task) {
|
12637 |
+
var homeText = Object(external_wp_i18n_["__"])('WooCommerce Home', 'woocommerce-admin');
|
12638 |
+
|
12639 |
+
var navigateHome = function navigateHome() {
|
12640 |
+
Object(external_wc_tracks_["recordEvent"])('topbar_back_button', {
|
12641 |
+
page_name: header_getPageTitle(window.title)
|
12642 |
+
});
|
12643 |
+
Object(external_wc_navigation_["updateQueryString"])({}, Object(external_wc_navigation_["getHistory"])().location.pathname, {});
|
12644 |
+
}; // if it's a task list page, render a back button to the homescreen
|
12645 |
+
|
12646 |
+
|
12647 |
+
return Object(external_wp_element_["createElement"])(external_wp_components_["Tooltip"], {
|
12648 |
+
text: homeText
|
12649 |
+
}, Object(external_wp_element_["createElement"])("div", {
|
12650 |
+
tabIndex: "0",
|
12651 |
+
role: "button",
|
12652 |
+
"data-testid": "header-back-button",
|
12653 |
+
className: "woocommerce-layout__header-back-button",
|
12654 |
+
onKeyDown: function onKeyDown(_ref) {
|
12655 |
+
var keyCode = _ref.keyCode;
|
12656 |
+
|
12657 |
+
if (keyCode === external_wp_keycodes_["ENTER"] || keyCode === external_wp_keycodes_["SPACE"]) {
|
12658 |
+
navigateHome();
|
12659 |
+
}
|
12660 |
+
}
|
12661 |
+
}, Object(external_wp_element_["createElement"])(build_module_icon["a" /* default */], {
|
12662 |
+
icon: chevron_left["a" /* default */],
|
12663 |
+
onClick: navigateHome
|
12664 |
+
})));
|
12665 |
+
}
|
12666 |
+
|
12667 |
+
return null;
|
12668 |
+
};
|
12669 |
+
|
12670 |
+
var header_getPageTitle = function getPageTitle(defaultTitle) {
|
12671 |
+
var currentUrl = new URL(window.location.href);
|
12672 |
+
var task = currentUrl.searchParams.get('task'); // If it's the task list then render a title based on which task the user is on.
|
12673 |
+
|
12674 |
+
return {
|
12675 |
+
payments: Object(external_wp_i18n_["__"])('Choose payment methods', 'woocommerce-admin'),
|
12676 |
+
tax: Object(external_wp_i18n_["__"])('Add tax rates', 'woocommerce-admin'),
|
12677 |
+
appearance: Object(external_wp_i18n_["__"])('Personalize your store', 'woocommerce-admin'),
|
12678 |
+
products: Object(external_wp_i18n_["__"])('Add products', 'woocommerce-admin'),
|
12679 |
+
shipping: Object(external_wp_i18n_["__"])('Set up shipping costs', 'woocommerce-admin')
|
12680 |
+
}[task] || defaultTitle;
|
12681 |
+
};
|
12682 |
+
|
12683 |
+
var client_header_Header = function Header(_ref2) {
|
12684 |
+
var sections = _ref2.sections,
|
12685 |
+
_ref2$isEmbedded = _ref2.isEmbedded,
|
12686 |
+
isEmbedded = _ref2$isEmbedded === void 0 ? false : _ref2$isEmbedded,
|
12687 |
+
query = _ref2.query;
|
12688 |
+
var headerElement = Object(external_wp_element_["useRef"])(null);
|
12689 |
+
var siteTitle = Object(wc_admin_settings["g" /* getSetting */])('siteTitle', '');
|
12690 |
+
var pageTitle = sections.slice(-1)[0];
|
12691 |
+
var isScrolled = useIsScrolled();
|
12692 |
+
|
12693 |
+
var _useUserPreferences = Object(external_wc_data_["useUserPreferences"])(),
|
12694 |
+
updateUserPreferences = _useUserPreferences.updateUserPreferences,
|
12695 |
+
userData = objectWithoutProperties_default()(_useUserPreferences, ["updateUserPreferences"]);
|
12696 |
+
|
12697 |
+
var isModalDismissed = userData.android_app_banner_dismissed === 'yes';
|
12698 |
+
var debounceTimer = null;
|
12699 |
+
var className = classnames_default()('woocommerce-layout__header', {
|
12700 |
+
'is-scrolled': isScrolled
|
12701 |
+
});
|
12702 |
+
Object(external_wp_element_["useLayoutEffect"])(function () {
|
12703 |
+
updateBodyMargin();
|
12704 |
+
window.addEventListener('resize', updateBodyMargin);
|
12705 |
+
return function () {
|
12706 |
+
window.removeEventListener('resize', updateBodyMargin);
|
12707 |
+
var wpBody = document.querySelector('#wpbody');
|
12708 |
+
|
12709 |
+
if (!wpBody) {
|
12710 |
+
return;
|
12711 |
+
}
|
12712 |
+
|
12713 |
+
wpBody.style.marginTop = null;
|
12714 |
+
};
|
12715 |
+
}, [isModalDismissed]);
|
12716 |
+
|
12717 |
+
var updateBodyMargin = function updateBodyMargin() {
|
12718 |
+
clearTimeout(debounceTimer);
|
12719 |
+
debounceTimer = setTimeout(function () {
|
12720 |
+
var wpBody = document.querySelector('#wpbody');
|
12721 |
+
|
12722 |
+
if (!wpBody || !headerElement.current) {
|
12723 |
+
return;
|
12724 |
+
}
|
12725 |
+
|
12726 |
+
wpBody.style.marginTop = "".concat(headerElement.current.offsetHeight, "px");
|
12727 |
+
}, 200);
|
12728 |
+
};
|
12729 |
+
|
12730 |
+
Object(external_wp_element_["useEffect"])(function () {
|
12731 |
+
if (!isEmbedded) {
|
12732 |
+
var documentTitle = sections.map(function (section) {
|
12733 |
+
return Array.isArray(section) ? section[1] : section;
|
12734 |
+
}).reverse().join(' ‹ ');
|
12735 |
+
var decodedTitle = Object(external_wp_htmlEntities_["decodeEntities"])(Object(external_wp_i18n_["sprintf"])(
|
12736 |
+
/* translators: 1: document title. 2: page title */
|
12737 |
+
Object(external_wp_i18n_["__"])('%1$s ‹ %2$s — WooCommerce', 'woocommerce-admin'), documentTitle, siteTitle));
|
12738 |
+
|
12739 |
+
if (document.title !== decodedTitle) {
|
12740 |
+
document.title = decodedTitle;
|
12741 |
+
}
|
12742 |
+
}
|
12743 |
+
}, [isEmbedded, sections, siteTitle]);
|
12744 |
+
|
12745 |
+
var dismissHandler = function dismissHandler() {
|
12746 |
+
updateUserPreferences({
|
12747 |
+
android_app_banner_dismissed: 'yes'
|
12748 |
+
});
|
12749 |
+
};
|
12750 |
+
|
12751 |
+
var backButton = header_renderTaskListBackButton();
|
12752 |
+
var backButtonClass = backButton ? 'with-back-button' : '';
|
12753 |
+
return Object(external_wp_element_["createElement"])("div", {
|
12754 |
+
className: className,
|
12755 |
+
ref: headerElement
|
12756 |
+
}, !isModalDismissed && Object(external_wp_element_["createElement"])(mobile_banner_MobileAppBanner, {
|
12757 |
+
onDismiss: dismissHandler,
|
12758 |
+
onInstall: dismissHandler
|
12759 |
+
}), Object(external_wp_element_["createElement"])("div", {
|
12760 |
+
className: "woocommerce-layout__header-wrapper"
|
12761 |
+
}, window.wcAdminFeatures.navigation && Object(external_wp_element_["createElement"])(navigation, null), header_renderTaskListBackButton(), Object(external_wp_element_["createElement"])(build_module["e" /* Text */], {
|
12762 |
+
className: "woocommerce-layout__header-heading ".concat(backButtonClass),
|
12763 |
+
as: "h1",
|
12764 |
+
variant: "subtitle.small"
|
12765 |
+
}, header_getPageTitle(Object(external_wp_htmlEntities_["decodeEntities"])(pageTitle))), window.wcAdminFeatures['activity-panels'] && Object(external_wp_element_["createElement"])(activity_panel, {
|
12766 |
+
isEmbedded: isEmbedded,
|
12767 |
+
query: query,
|
12768 |
+
userPreferencesData: header_objectSpread(header_objectSpread({}, userData), {}, {
|
12769 |
+
updateUserPreferences: updateUserPreferences
|
12770 |
+
})
|
12771 |
+
})));
|
12772 |
+
};
|
12773 |
+
// CONCATENATED MODULE: ./client/layout/notices.js
|
12774 |
+
|
12775 |
+
|
12776 |
+
|
12777 |
+
|
12778 |
+
|
12779 |
+
|
12780 |
+
|
12781 |
+
|
12782 |
+
function notices_createSuper(Derived) { var hasNativeReflectConstruct = notices_isNativeReflectConstruct(); return function _createSuperInternal() { var Super = getPrototypeOf_default()(Derived), result; if (hasNativeReflectConstruct) { var NewTarget = getPrototypeOf_default()(this).constructor; result = Reflect.construct(Super, arguments, NewTarget); } else { result = Super.apply(this, arguments); } return possibleConstructorReturn_default()(this, result); }; }
|
12783 |
+
|
12784 |
+
function notices_isNativeReflectConstruct() { if (typeof Reflect === "undefined" || !Reflect.construct) return false; if (Reflect.construct.sham) return false; if (typeof Proxy === "function") return true; try { Boolean.prototype.valueOf.call(Reflect.construct(Boolean, [], function () {})); return true; } catch (e) { return false; } }
|
12785 |
+
|
12786 |
+
/**
|
12787 |
+
* External dependencies
|
12788 |
+
*/
|
12789 |
+
|
12790 |
+
|
12791 |
+
var notices_Notices = /*#__PURE__*/function (_Component) {
|
12792 |
+
inherits_default()(Notices, _Component);
|
12793 |
+
|
12794 |
+
var _super = notices_createSuper(Notices);
|
12795 |
+
|
12796 |
+
function Notices() {
|
12797 |
+
classCallCheck_default()(this, Notices);
|
12798 |
+
|
12799 |
+
return _super.apply(this, arguments);
|
12800 |
+
}
|
12801 |
+
|
12802 |
+
createClass_default()(Notices, [{
|
12803 |
+
key: "render",
|
12804 |
+
value: function render() {
|
12805 |
+
return Object(external_wp_element_["createElement"])("div", {
|
12806 |
+
id: "woocommerce-layout__notice-list",
|
12807 |
+
className: "woocommerce-layout__notice-list"
|
12808 |
+
});
|
12809 |
+
}
|
12810 |
+
}]);
|
12811 |
+
|
12812 |
+
return Notices;
|
12813 |
+
}(external_wp_element_["Component"]);
|
12814 |
+
|
12815 |
+
/* harmony default export */ var layout_notices = (notices_Notices);
|
12816 |
+
// EXTERNAL MODULE: external "regeneratorRuntime"
|
12817 |
+
var external_regeneratorRuntime_ = __webpack_require__(16);
|
12818 |
+
var external_regeneratorRuntime_default = /*#__PURE__*/__webpack_require__.n(external_regeneratorRuntime_);
|
12819 |
+
|
12820 |
+
// EXTERNAL MODULE: ./node_modules/@babel/runtime/helpers/asyncToGenerator.js
|
12821 |
+
var asyncToGenerator = __webpack_require__(134);
|
12822 |
+
var asyncToGenerator_default = /*#__PURE__*/__webpack_require__.n(asyncToGenerator);
|
12823 |
+
|
12824 |
+
// EXTERNAL MODULE: ./node_modules/core-js/modules/es.weak-map.js
|
12825 |
+
var es_weak_map = __webpack_require__(432);
|
12826 |
+
|
12827 |
+
// EXTERNAL MODULE: ./node_modules/react-spring/web.cjs.js
|
12828 |
+
var web_cjs = __webpack_require__(315);
|
12829 |
+
|
12830 |
+
// EXTERNAL MODULE: ./client/layout/transient-notices/snackbar/index.js
|
12831 |
+
var snackbar = __webpack_require__(392);
|
12832 |
+
|
12833 |
+
// CONCATENATED MODULE: ./client/layout/transient-notices/snackbar/list.js
|
12834 |
+
|
12835 |
+
|
12836 |
+
|
12837 |
+
|
12838 |
+
|
12839 |
+
|
12840 |
+
|
12841 |
+
|
12842 |
+
|
12843 |
+
|
12844 |
+
|
12845 |
+
|
12846 |
+
/**
|
12847 |
+
* External dependencies
|
12848 |
+
*/
|
12849 |
+
|
12850 |
+
|
12851 |
+
|
12852 |
+
|
12853 |
+
|
12854 |
+
/**
|
12855 |
+
* Internal dependencies
|
12856 |
+
*/
|
12857 |
+
|
12858 |
+
|
12859 |
+
/**
|
12860 |
+
* Renders a list of notices.
|
12861 |
+
*
|
12862 |
+
* @param {Object} $0 Props passed to the component.
|
12863 |
+
* @param {Array} $0.notices Array of notices to render.
|
12864 |
+
* @param {Function} $0.onRemove Function called when a notice should be removed / dismissed.
|
12865 |
+
* @param {Function} $0.onRemove2 Function called when a notice should be removed / dismissed.
|
12866 |
+
* @param {Object} $0.className Name of the class used by the component.
|
12867 |
+
* @param {Object} $0.children Array of children to be rendered inside the notice list.
|
12868 |
+
* @return {Object} The rendered notices list.
|
12869 |
+
*/
|
12870 |
+
|
12871 |
+
function SnackbarList(_ref) {
|
12872 |
+
var notices = _ref.notices,
|
12873 |
+
className = _ref.className,
|
12874 |
+
children = _ref.children,
|
12875 |
+
_ref$onRemove = _ref.onRemove,
|
12876 |
+
onRemove = _ref$onRemove === void 0 ? external_lodash_["noop"] : _ref$onRemove,
|
12877 |
+
_ref$onRemove2 = _ref.onRemove2,
|
12878 |
+
onRemove2 = _ref$onRemove2 === void 0 ? external_lodash_["noop"] : _ref$onRemove2;
|
12879 |
+
var isReducedMotion = Object(external_wp_compose_["useReducedMotion"])();
|
12880 |
+
|
12881 |
+
var _useState = Object(external_wp_element_["useState"])(function () {
|
12882 |
+
return new WeakMap();
|
12883 |
+
}),
|
12884 |
+
_useState2 = slicedToArray_default()(_useState, 1),
|
12885 |
+
refMap = _useState2[0];
|
12886 |
+
|
12887 |
+
var transitions = Object(web_cjs["useTransition"])(notices, function (notice) {
|
12888 |
+
return notice.id;
|
12889 |
+
}, {
|
12890 |
+
from: {
|
12891 |
+
opacity: 0,
|
12892 |
+
height: 0
|
12893 |
+
},
|
12894 |
+
enter: function enter(item) {
|
12895 |
+
return /*#__PURE__*/function () {
|
12896 |
+
var _ref2 = asyncToGenerator_default()( /*#__PURE__*/external_regeneratorRuntime_default.a.mark(function _callee(next) {
|
12897 |
+
return external_regeneratorRuntime_default.a.wrap(function _callee$(_context) {
|
12898 |
+
while (1) {
|
12899 |
+
switch (_context.prev = _context.next) {
|
12900 |
+
case 0:
|
12901 |
+
_context.next = 2;
|
12902 |
+
return next({
|
12903 |
+
opacity: 1,
|
12904 |
+
height: refMap.get(item).offsetHeight
|
12905 |
+
});
|
12906 |
+
|
12907 |
+
case 2:
|
12908 |
+
return _context.abrupt("return", _context.sent);
|
12909 |
+
|
12910 |
+
case 3:
|
12911 |
+
case "end":
|
12912 |
+
return _context.stop();
|
12913 |
+
}
|
12914 |
+
}
|
12915 |
+
}, _callee);
|
12916 |
+
}));
|
12917 |
+
|
12918 |
+
return function (_x) {
|
12919 |
+
return _ref2.apply(this, arguments);
|
12920 |
+
};
|
12921 |
+
}();
|
12922 |
+
},
|
12923 |
+
leave: function leave() {
|
12924 |
+
return /*#__PURE__*/function () {
|
12925 |
+
var _ref3 = asyncToGenerator_default()( /*#__PURE__*/external_regeneratorRuntime_default.a.mark(function _callee2(next) {
|
12926 |
+
return external_regeneratorRuntime_default.a.wrap(function _callee2$(_context2) {
|
12927 |
+
while (1) {
|
12928 |
+
switch (_context2.prev = _context2.next) {
|
12929 |
+
case 0:
|
12930 |
+
_context2.next = 2;
|
12931 |
+
return next({
|
12932 |
+
opacity: 0
|
12933 |
+
});
|
12934 |
+
|
12935 |
+
case 2:
|
12936 |
+
_context2.next = 4;
|
12937 |
+
return next({
|
12938 |
+
height: 0
|
12939 |
+
});
|
12940 |
+
|
12941 |
+
case 4:
|
12942 |
+
case "end":
|
12943 |
+
return _context2.stop();
|
12944 |
+
}
|
12945 |
+
}
|
12946 |
+
}, _callee2);
|
12947 |
+
}));
|
12948 |
+
|
12949 |
+
return function (_x2) {
|
12950 |
+
return _ref3.apply(this, arguments);
|
12951 |
+
};
|
12952 |
+
}();
|
12953 |
+
},
|
12954 |
+
immediate: isReducedMotion
|
12955 |
+
});
|
12956 |
+
className = classnames_default()('components-snackbar-list', className);
|
12957 |
+
|
12958 |
+
var removeNotice = function removeNotice(notice) {
|
12959 |
+
return function () {
|
12960 |
+
onRemove(notice.id); // To be removed when we're no longer using core/notices2.
|
12961 |
+
|
12962 |
+
onRemove2(notice.id);
|
12963 |
+
};
|
12964 |
+
};
|
12965 |
+
|
12966 |
+
return Object(external_wp_element_["createElement"])("div", {
|
12967 |
+
className: className
|
12968 |
+
}, children, transitions.map(function (_ref4) {
|
12969 |
+
var notice = _ref4.item,
|
12970 |
+
key = _ref4.key,
|
12971 |
+
style = _ref4.props;
|
12972 |
+
return Object(external_wp_element_["createElement"])(web_cjs["animated"].div, {
|
12973 |
+
key: key,
|
12974 |
+
style: style
|
12975 |
+
}, Object(external_wp_element_["createElement"])("div", {
|
12976 |
+
className: "components-snackbar-list__notice-container",
|
12977 |
+
ref: function ref(_ref5) {
|
12978 |
+
return _ref5 && refMap.set(notice, _ref5);
|
12979 |
+
}
|
12980 |
+
}, Object(external_wp_element_["createElement"])(snackbar["a" /* default */], extends_default()({}, Object(external_lodash_["omit"])(notice, ['content']), {
|
12981 |
+
onRemove: removeNotice(notice)
|
12982 |
+
}), notice.content)));
|
12983 |
+
}));
|
12984 |
+
}
|
12985 |
+
|
12986 |
+
/* harmony default export */ var list = (SnackbarList);
|
12987 |
+
// EXTERNAL MODULE: ./client/layout/transient-notices/style.scss
|
12988 |
+
var transient_notices_style = __webpack_require__(435);
|
12989 |
+
|
12990 |
+
// CONCATENATED MODULE: ./client/layout/transient-notices/index.js
|
12991 |
+
|
12992 |
+
|
12993 |
+
|
12994 |
+
/**
|
12995 |
+
* External dependencies
|
12996 |
+
*/
|
12997 |
+
|
12998 |
+
|
12999 |
+
|
13000 |
+
/**
|
13001 |
+
* Internal dependencies
|
13002 |
+
*/
|
13003 |
+
|
13004 |
+
|
13005 |
+
|
13006 |
+
|
13007 |
+
function TransientNotices(props) {
|
13008 |
+
var _useDispatch = Object(external_wp_data_["useDispatch"])('core/notices'),
|
13009 |
+
onRemove = _useDispatch.removeNotice;
|
13010 |
+
|
13011 |
+
var _useDispatch2 = Object(external_wp_data_["useDispatch"])('core/notices2'),
|
13012 |
+
onRemove2 = _useDispatch2.removeNotice;
|
13013 |
+
|
13014 |
+
var noticeData = Object(external_wp_data_["useSelect"])(function (select) {
|
13015 |
+
// NOTE: This uses core/notices2, if this file is copied back upstream
|
13016 |
+
// to Gutenberg this needs to be changed back to just core/notices.
|
13017 |
+
var notices = select('core/notices').getNotices();
|
13018 |
+
var notices2 = select('core/notices2').getNotices();
|
13019 |
+
return {
|
13020 |
+
notices: notices,
|
13021 |
+
notices2: notices2
|
13022 |
+
};
|
13023 |
+
});
|
13024 |
+
/**
|
13025 |
+
* Combines the two notices in the component vs in the useSelect, as we don't want to
|
13026 |
+
* create new object references on each useSelect call.
|
13027 |
+
*/
|
13028 |
+
|
13029 |
+
var getNotices = function getNotices() {
|
13030 |
+
var notices = noticeData.notices,
|
13031 |
+
_noticeData$notices = noticeData.notices2,
|
13032 |
+
notices2 = _noticeData$notices === void 0 ? [] : _noticeData$notices;
|
13033 |
+
return notices.concat(notices2);
|
13034 |
+
};
|
13035 |
+
|
13036 |
+
var className = props.className;
|
13037 |
+
var classes = classnames_default()('woocommerce-transient-notices', 'components-notices__snackbar', className);
|
13038 |
+
var notices = getNotices();
|
13039 |
+
return Object(external_wp_element_["createElement"])(list, {
|
13040 |
+
notices: notices,
|
13041 |
+
className: classes,
|
13042 |
+
onRemove: onRemove,
|
13043 |
+
onRemove2: onRemove2
|
13044 |
+
});
|
13045 |
+
}
|
13046 |
+
|
13047 |
+
TransientNotices.propTypes = {
|
13048 |
+
/**
|
13049 |
+
* Additional class name to style the component.
|
13050 |
+
*/
|
13051 |
+
className: prop_types_default.a.string,
|
13052 |
+
|
13053 |
+
/**
|
13054 |
+
* Array of notices to be displayed.
|
13055 |
+
*/
|
13056 |
+
notices: prop_types_default.a.array
|
13057 |
+
};
|
13058 |
+
/* harmony default export */ var transient_notices = (TransientNotices);
|
13059 |
+
// CONCATENATED MODULE: ./client/layout/navigation.js
|
13060 |
+
|
13061 |
+
|
13062 |
+
|
13063 |
+
|
13064 |
+
function navigation_ownKeys(object, enumerableOnly) { var keys = Object.keys(object); if (Object.getOwnPropertySymbols) { var symbols = Object.getOwnPropertySymbols(object); if (enumerableOnly) symbols = symbols.filter(function (sym) { return Object.getOwnPropertyDescriptor(object, sym).enumerable; }); keys.push.apply(keys, symbols); } return keys; }
|
13065 |
+
|
13066 |
+
function navigation_objectSpread(target) { for (var i = 1; i < arguments.length; i++) { var source = arguments[i] != null ? arguments[i] : {}; if (i % 2) { navigation_ownKeys(Object(source), true).forEach(function (key) { defineProperty_default()(target, key, source[key]); }); } else if (Object.getOwnPropertyDescriptors) { Object.defineProperties(target, Object.getOwnPropertyDescriptors(source)); } else { navigation_ownKeys(Object(source)).forEach(function (key) { Object.defineProperty(target, key, Object.getOwnPropertyDescriptor(source, key)); }); } } return target; }
|
13067 |
+
|
13068 |
+
|
13069 |
+
|
13070 |
+
|
13071 |
+
|
13072 |
+
|
13073 |
+
|
13074 |
+
|
13075 |
+
|
13076 |
+
|
13077 |
+
|
13078 |
+
/**
|
13079 |
+
* External dependencies
|
13080 |
+
*/
|
13081 |
+
|
13082 |
+
|
13083 |
+
|
13084 |
+
|
13085 |
+
|
13086 |
+
/**
|
13087 |
+
* Internal dependencies
|
13088 |
+
*/
|
13089 |
+
|
13090 |
+
|
13091 |
+
|
13092 |
+
|
13093 |
+
|
13094 |
+
|
13095 |
+
var navigation_NavigationPlugin = function NavigationPlugin() {
|
13096 |
+
var _useState = Object(external_wp_element_["useState"])(Object(external_wc_navigation_["getPersistedQuery"])()),
|
13097 |
+
_useState2 = slicedToArray_default()(_useState, 2),
|
13098 |
+
persistedQuery = _useState2[0],
|
13099 |
+
setPersistedQuery = _useState2[1];
|
13100 |
+
|
13101 |
+
var pathIsExcluded = function pathIsExcluded(path) {
|
13102 |
+
return Object(external_wc_navigation_["getQueryExcludedScreens"])().includes(Object(external_wc_navigation_["getScreenFromPath"])(path));
|
13103 |
+
}; // Update the persisted queries when history is updated
|
13104 |
+
|
13105 |
+
|
13106 |
+
Object(external_wp_element_["useEffect"])(function () {
|
13107 |
+
return addHistoryListener(function () {
|
13108 |
+
setTimeout(function () {
|
13109 |
+
if (pathIsExcluded()) {
|
13110 |
+
return;
|
13111 |
+
}
|
13112 |
+
|
13113 |
+
setPersistedQuery(Object(external_wc_navigation_["getPersistedQuery"])());
|
13114 |
+
}, 0);
|
13115 |
+
});
|
13116 |
+
}, []);
|
13117 |
+
/**
|
13118 |
+
* If the current page is embedded, stay with the default urls
|
13119 |
+
* provided by Navigation because the router isn't present to
|
13120 |
+
* respond to <Link /> component's manipulation of the url.
|
13121 |
+
*/
|
13122 |
+
|
13123 |
+
if (!Object(utils["f" /* isWCAdmin */])(window.location.href)) {
|
13124 |
+
return null;
|
13125 |
+
}
|
13126 |
+
|
13127 |
+
var reports = Object(get_reports["a" /* default */])().filter(function (item) {
|
13128 |
+
return item.navArgs;
|
13129 |
+
});
|
13130 |
+
var pages = controller_getPages().filter(function (page) {
|
13131 |
+
return page.navArgs;
|
13132 |
+
}).map(function (page) {
|
13133 |
+
if (page.path === '/analytics/settings') {
|
13134 |
+
return navigation_objectSpread(navigation_objectSpread({}, page), {}, {
|
13135 |
+
breadcrumbs: [Object(external_wp_i18n_["__"])('Analytics', 'woocommerce-admin')]
|
13136 |
+
});
|
13137 |
+
}
|
13138 |
+
|
13139 |
+
return page;
|
13140 |
+
});
|
13141 |
+
return Object(external_wp_element_["createElement"])(external_wp_element_["Fragment"], null, pages.map(function (page) {
|
13142 |
+
return Object(external_wp_element_["createElement"])(external_wc_navigation_["WooNavigationItem"], {
|
13143 |
+
item: page.navArgs.id,
|
13144 |
+
key: page.navArgs.id
|
13145 |
+
}, Object(external_wp_element_["createElement"])(external_wc_components_["Link"], {
|
13146 |
+
className: "components-button",
|
13147 |
+
href: Object(external_wc_navigation_["getNewPath"])(pathIsExcluded(page.path) ? {} : persistedQuery, page.path, {}),
|
13148 |
+
type: "wc-admin"
|
13149 |
+
}, page.breadcrumbs[page.breadcrumbs.length - 1]));
|
13150 |
+
}), reports.map(function (item) {
|
13151 |
+
return Object(external_wp_element_["createElement"])(external_wc_navigation_["WooNavigationItem"], {
|
13152 |
+
item: item.navArgs.id,
|
13153 |
+
key: item.navArgs.id
|
13154 |
+
}, Object(external_wp_element_["createElement"])(external_wc_components_["Link"], {
|
13155 |
+
className: "components-button",
|
13156 |
+
href: Object(external_wc_navigation_["getNewPath"])(pathIsExcluded(item.report) ? {} : persistedQuery, "/analytics/".concat(item.report), {}),
|
13157 |
+
type: "wc-admin"
|
13158 |
+
}, item.title));
|
13159 |
+
}));
|
13160 |
+
};
|
13161 |
+
|
13162 |
+
Object(external_wp_plugins_["registerPlugin"])('wc-admin-navigation', {
|
13163 |
+
render: navigation_NavigationPlugin
|
13164 |
+
});
|
13165 |
+
// CONCATENATED MODULE: ./client/layout/index.js
|
13166 |
+
|
13167 |
+
|
13168 |
+
|
13169 |
+
|
13170 |
+
|
13171 |
+
|
13172 |
+
|
13173 |
+
|
13174 |
+
|
13175 |
+
|
13176 |
+
|
13177 |
+
|
13178 |
+
|
13179 |
+
|
13180 |
+
|
13181 |
+
|
13182 |
+
function layout_ownKeys(object, enumerableOnly) { var keys = Object.keys(object); if (Object.getOwnPropertySymbols) { var symbols = Object.getOwnPropertySymbols(object); if (enumerableOnly) symbols = symbols.filter(function (sym) { return Object.getOwnPropertyDescriptor(object, sym).enumerable; }); keys.push.apply(keys, symbols); } return keys; }
|
13183 |
+
|
13184 |
+
function layout_objectSpread(target) { for (var i = 1; i < arguments.length; i++) { var source = arguments[i] != null ? arguments[i] : {}; if (i % 2) { layout_ownKeys(Object(source), true).forEach(function (key) { defineProperty_default()(target, key, source[key]); }); } else if (Object.getOwnPropertyDescriptors) { Object.defineProperties(target, Object.getOwnPropertyDescriptors(source)); } else { layout_ownKeys(Object(source)).forEach(function (key) { Object.defineProperty(target, key, Object.getOwnPropertyDescriptor(source, key)); }); } } return target; }
|
13185 |
+
|
13186 |
+
function layout_createSuper(Derived) { var hasNativeReflectConstruct = layout_isNativeReflectConstruct(); return function _createSuperInternal() { var Super = getPrototypeOf_default()(Derived), result; if (hasNativeReflectConstruct) { var NewTarget = getPrototypeOf_default()(this).constructor; result = Reflect.construct(Super, arguments, NewTarget); } else { result = Super.apply(this, arguments); } return possibleConstructorReturn_default()(this, result); }; }
|
13187 |
+
|
13188 |
+
function layout_isNativeReflectConstruct() { if (typeof Reflect === "undefined" || !Reflect.construct) return false; if (Reflect.construct.sham) return false; if (typeof Proxy === "function") return true; try { Boolean.prototype.valueOf.call(Reflect.construct(Boolean, [], function () {})); return true; } catch (e) { return false; } }
|
13189 |
+
|
13190 |
+
|
13191 |
+
|
13192 |
+
|
13193 |
+
|
13194 |
+
|
13195 |
+
|
13196 |
+
|
13197 |
+
|
13198 |
+
|
13199 |
+
|
13200 |
+
|
13201 |
+
|
13202 |
+
|
13203 |
+
/**
|
13204 |
+
* External dependencies
|
13205 |
+
*/
|
13206 |
+
|
13207 |
+
|
13208 |
+
|
13209 |
+
|
13210 |
+
|
13211 |
+
|
13212 |
+
|
13213 |
+
|
13214 |
+
|
13215 |
+
|
13216 |
+
|
13217 |
+
|
13218 |
+
|
13219 |
+
/**
|
13220 |
+
* Internal dependencies
|
13221 |
+
*/
|
13222 |
+
|
13223 |
+
|
13224 |
+
|
13225 |
+
|
13226 |
+
|
13227 |
+
|
13228 |
+
|
13229 |
+
var StoreAlerts = Object(external_wp_element_["lazy"])(function () {
|
13230 |
+
return Promise.all(/* import() | store-alerts */[__webpack_require__.e(1), __webpack_require__.e(47)]).then(__webpack_require__.bind(null, 714));
|
13231 |
+
});
|
13232 |
+
var WCPayUsageModal = Object(external_wp_element_["lazy"])(function () {
|
13233 |
+
return __webpack_require__.e(/* import() | wcpay-usage-modal */ 51).then(__webpack_require__.bind(null, 609));
|
13234 |
+
});
|
13235 |
+
var layout_PrimaryLayout = /*#__PURE__*/function (_Component) {
|
13236 |
+
inherits_default()(PrimaryLayout, _Component);
|
13237 |
+
|
13238 |
+
var _super = layout_createSuper(PrimaryLayout);
|
13239 |
+
|
13240 |
+
function PrimaryLayout() {
|
13241 |
+
classCallCheck_default()(this, PrimaryLayout);
|
13242 |
+
|
13243 |
+
return _super.apply(this, arguments);
|
13244 |
+
}
|
13245 |
+
|
13246 |
+
createClass_default()(PrimaryLayout, [{
|
13247 |
+
key: "render",
|
13248 |
+
value: function render() {
|
13249 |
+
var children = this.props.children;
|
13250 |
+
return Object(external_wp_element_["createElement"])("div", {
|
13251 |
+
className: "woocommerce-layout__primary",
|
13252 |
+
id: "woocommerce-layout__primary"
|
13253 |
+
}, window.wcAdminFeatures['store-alerts'] && Object(external_wp_element_["createElement"])(external_wp_element_["Suspense"], {
|
13254 |
+
fallback: Object(external_wp_element_["createElement"])(external_wc_components_["Spinner"], null)
|
13255 |
+
}, Object(external_wp_element_["createElement"])(StoreAlerts, null)), Object(external_wp_element_["createElement"])(layout_notices, null), children);
|
13256 |
+
}
|
13257 |
+
}]);
|
13258 |
+
|
13259 |
+
return PrimaryLayout;
|
13260 |
+
}(external_wp_element_["Component"]);
|
13261 |
+
|
13262 |
+
var layout_Layout = /*#__PURE__*/function (_Component2) {
|
13263 |
+
inherits_default()(_Layout, _Component2);
|
13264 |
+
|
13265 |
+
var _super2 = layout_createSuper(_Layout);
|
13266 |
+
|
13267 |
+
function _Layout() {
|
13268 |
+
classCallCheck_default()(this, _Layout);
|
13269 |
+
|
13270 |
+
return _super2.apply(this, arguments);
|
13271 |
+
}
|
13272 |
+
|
13273 |
+
createClass_default()(_Layout, [{
|
13274 |
+
key: "componentDidMount",
|
13275 |
+
value: function componentDidMount() {
|
13276 |
+
this.recordPageViewTrack();
|
13277 |
+
}
|
13278 |
+
}, {
|
13279 |
+
key: "componentDidUpdate",
|
13280 |
+
value: function componentDidUpdate(prevProps) {
|
13281 |
+
var previousPath = Object(external_lodash_["get"])(prevProps, 'location.pathname');
|
13282 |
+
var currentPath = Object(external_lodash_["get"])(this.props, 'location.pathname');
|
13283 |
+
|
13284 |
+
if (!previousPath || !currentPath) {
|
13285 |
+
return;
|
13286 |
+
}
|
13287 |
+
|
13288 |
+
if (previousPath !== currentPath) {
|
13289 |
+
this.recordPageViewTrack();
|
13290 |
+
}
|
13291 |
+
}
|
13292 |
+
}, {
|
13293 |
+
key: "recordPageViewTrack",
|
13294 |
+
value: function recordPageViewTrack() {
|
13295 |
+
var _this$props = this.props,
|
13296 |
+
activePlugins = _this$props.activePlugins,
|
13297 |
+
installedPlugins = _this$props.installedPlugins,
|
13298 |
+
isEmbedded = _this$props.isEmbedded,
|
13299 |
+
isJetpackConnected = _this$props.isJetpackConnected;
|
13300 |
+
var navigationFlag = {
|
13301 |
+
has_navigation: !!window.wcNavigation
|
13302 |
+
};
|
13303 |
+
|
13304 |
+
if (isEmbedded) {
|
13305 |
+
var _path = document.location.pathname + document.location.search;
|
13306 |
+
|
13307 |
+
Object(external_wc_tracks_["recordPageView"])(_path, layout_objectSpread({
|
13308 |
+
is_embedded: true
|
13309 |
+
}, navigationFlag));
|
13310 |
+
return;
|
13311 |
+
}
|
13312 |
+
|
13313 |
+
var pathname = Object(external_lodash_["get"])(this.props, 'location.pathname');
|
13314 |
+
|
13315 |
+
if (!pathname) {
|
13316 |
+
return;
|
13317 |
+
} // Remove leading slash, and camel case remaining pathname
|
13318 |
+
|
13319 |
+
|
13320 |
+
var path = pathname.substring(1).replace(/\//g, '_'); // When pathname is `/` we are on the home screen.
|
13321 |
+
|
13322 |
+
if (path.length === 0) {
|
13323 |
+
path = 'home_screen';
|
13324 |
+
}
|
13325 |
+
|
13326 |
+
Object(external_wc_tracks_["recordPageView"])(path, layout_objectSpread({
|
13327 |
+
jetpack_installed: installedPlugins.includes('jetpack'),
|
13328 |
+
jetpack_active: activePlugins.includes('jetpack'),
|
13329 |
+
jetpack_connected: isJetpackConnected
|
13330 |
+
}, navigationFlag));
|
13331 |
+
}
|
13332 |
+
}, {
|
13333 |
+
key: "getQuery",
|
13334 |
+
value: function getQuery(searchString) {
|
13335 |
+
if (!searchString) {
|
13336 |
+
return {};
|
13337 |
+
}
|
13338 |
+
|
13339 |
+
var search = searchString.substring(1);
|
13340 |
+
return Object(lib["parse"])(search);
|
13341 |
+
}
|
13342 |
+
}, {
|
13343 |
+
key: "isWCPaySettingsPage",
|
13344 |
+
value: function isWCPaySettingsPage() {
|
13345 |
+
var _getQuery = Object(external_wc_navigation_["getQuery"])(),
|
13346 |
+
page = _getQuery.page,
|
13347 |
+
section = _getQuery.section,
|
13348 |
+
tab = _getQuery.tab;
|
13349 |
+
|
13350 |
+
return page === 'wc-settings' && tab === 'checkout' && section === 'woocommerce_payments';
|
13351 |
+
}
|
13352 |
+
}, {
|
13353 |
+
key: "render",
|
13354 |
+
value: function render() {
|
13355 |
+
var _this$props2 = this.props,
|
13356 |
+
isEmbedded = _this$props2.isEmbedded,
|
13357 |
+
restProps = objectWithoutProperties_default()(_this$props2, ["isEmbedded"]);
|
13358 |
+
|
13359 |
+
var _this$props3 = this.props,
|
13360 |
+
location = _this$props3.location,
|
13361 |
+
page = _this$props3.page;
|
13362 |
+
var breadcrumbs = page.breadcrumbs;
|
13363 |
+
var query = this.getQuery(location && location.search);
|
13364 |
+
return Object(external_wp_element_["createElement"])("div", {
|
13365 |
+
className: "woocommerce-layout"
|
13366 |
+
}, Object(external_wp_element_["createElement"])(client_header_Header, {
|
13367 |
+
sections: Object(external_lodash_["isFunction"])(breadcrumbs) ? breadcrumbs(this.props) : breadcrumbs,
|
13368 |
+
isEmbedded: isEmbedded,
|
13369 |
+
query: query
|
13370 |
+
}), Object(external_wp_element_["createElement"])(transient_notices, null), !isEmbedded && Object(external_wp_element_["createElement"])(layout_PrimaryLayout, null, Object(external_wp_element_["createElement"])("div", {
|
13371 |
+
className: "woocommerce-layout__main"
|
13372 |
+
}, Object(external_wp_element_["createElement"])(controller_Controller, extends_default()({}, restProps, {
|
13373 |
+
query: query
|
13374 |
+
})))), isEmbedded && this.isWCPaySettingsPage() && Object(external_wp_element_["createElement"])(external_wp_element_["Suspense"], {
|
13375 |
+
fallback: null
|
13376 |
+
}, Object(external_wp_element_["createElement"])(WCPayUsageModal, null)));
|
13377 |
+
}
|
13378 |
+
}]);
|
13379 |
+
|
13380 |
+
return _Layout;
|
13381 |
+
}(external_wp_element_["Component"]);
|
13382 |
+
|
13383 |
+
layout_Layout.propTypes = {
|
13384 |
+
isEmbedded: prop_types_default.a.bool,
|
13385 |
+
page: prop_types_default.a.shape({
|
13386 |
+
container: prop_types_default.a.oneOfType([prop_types_default.a.func, prop_types_default.a.object // Support React.lazy
|
13387 |
+
]),
|
13388 |
+
path: prop_types_default.a.string,
|
13389 |
+
breadcrumbs: prop_types_default.a.oneOfType([prop_types_default.a.func, prop_types_default.a.arrayOf(prop_types_default.a.oneOfType([prop_types_default.a.arrayOf(prop_types_default.a.string), prop_types_default.a.string]))]).isRequired,
|
13390 |
+
wpOpenMenu: prop_types_default.a.string
|
13391 |
+
}).isRequired
|
13392 |
+
};
|
13393 |
+
var Layout = Object(external_wp_compose_["compose"])(Object(external_wc_data_["withPluginsHydration"])(layout_objectSpread(layout_objectSpread({}, window.wcSettings.plugins || {}), {}, {
|
13394 |
+
jetpackStatus: window.wcSettings.dataEndpoints && window.wcSettings.dataEndpoints.jetpackStatus || false
|
13395 |
+
})), Object(external_wp_data_["withSelect"])(function (select, _ref) {
|
13396 |
+
var isEmbedded = _ref.isEmbedded;
|
13397 |
+
|
13398 |
+
// Embedded pages don't send plugin info to Tracks.
|
13399 |
+
if (isEmbedded) {
|
13400 |
+
return;
|
13401 |
+
}
|
13402 |
+
|
13403 |
+
var _select = select(external_wc_data_["PLUGINS_STORE_NAME"]),
|
13404 |
+
getActivePlugins = _select.getActivePlugins,
|
13405 |
+
getInstalledPlugins = _select.getInstalledPlugins,
|
13406 |
+
isJetpackConnected = _select.isJetpackConnected;
|
13407 |
+
|
13408 |
+
return {
|
13409 |
+
activePlugins: getActivePlugins(),
|
13410 |
+
isJetpackConnected: isJetpackConnected(),
|
13411 |
+
installedPlugins: getInstalledPlugins()
|
13412 |
+
};
|
13413 |
+
}))(layout_Layout);
|
13414 |
+
|
13415 |
+
var layout_PageLayout = function _PageLayout() {
|
13416 |
+
var _useUser = Object(external_wc_data_["useUser"])(),
|
13417 |
+
currentUserCan = _useUser.currentUserCan;
|
13418 |
+
|
13419 |
+
return Object(external_wp_element_["createElement"])(react_router_Router, {
|
13420 |
+
history: Object(external_wc_navigation_["getHistory"])()
|
13421 |
+
}, Object(external_wp_element_["createElement"])(react_router_Switch, null, controller_getPages().filter(function (page) {
|
13422 |
+
return !page.capability || currentUserCan(page.capability);
|
13423 |
+
}).map(function (page) {
|
13424 |
+
return Object(external_wp_element_["createElement"])(react_router_Route, {
|
13425 |
+
key: page.path,
|
13426 |
+
path: page.path,
|
13427 |
+
exact: true,
|
13428 |
+
render: function render(props) {
|
13429 |
+
return Object(external_wp_element_["createElement"])(Layout, extends_default()({
|
13430 |
+
page: page
|
13431 |
+
}, props));
|
13432 |
+
}
|
13433 |
+
});
|
13434 |
+
})));
|
13435 |
+
};
|
13436 |
+
|
13437 |
+
var PageLayout = Object(external_wp_compose_["compose"])(window.wcSettings.preloadOptions ? Object(external_wc_data_["withOptionsHydration"])(layout_objectSpread({}, window.wcSettings.preloadOptions)) : external_lodash_["identity"])(layout_PageLayout);
|
13438 |
+
|
13439 |
+
var layout_EmbedLayout = function _EmbedLayout() {
|
13440 |
+
return Object(external_wp_element_["createElement"])(Layout, {
|
13441 |
+
page: {
|
13442 |
+
breadcrumbs: Object(wc_admin_settings["g" /* getSetting */])('embedBreadcrumbs', [])
|
13443 |
+
},
|
13444 |
+
isEmbedded: true
|
13445 |
+
});
|
13446 |
+
};
|
13447 |
+
|
13448 |
+
var EmbedLayout = Object(external_wp_compose_["compose"])(window.wcSettings.preloadOptions ? Object(external_wc_data_["withOptionsHydration"])(layout_objectSpread({}, window.wcSettings.preloadOptions)) : external_lodash_["identity"])(layout_EmbedLayout);
|
13449 |
+
|
13450 |
+
/***/ }),
|
13451 |
+
/* 281 */
|
13452 |
+
/***/ (function(module, exports) {
|
13453 |
+
|
13454 |
+
(function() { module.exports = window["wc"]["number"]; }());
|
13455 |
+
|
13456 |
+
/***/ }),
|
13457 |
+
/* 282 */,
|
13458 |
+
/* 283 */
|
13459 |
+
/***/ (function(module, exports, __webpack_require__) {
|
13460 |
+
|
13461 |
+
var $ = __webpack_require__(12);
|
13462 |
+
var from = __webpack_require__(234);
|
13463 |
+
var checkCorrectnessOfIteration = __webpack_require__(165);
|
13464 |
+
|
13465 |
+
var INCORRECT_ITERATION = !checkCorrectnessOfIteration(function (iterable) {
|
13466 |
+
Array.from(iterable);
|
13467 |
+
});
|
13468 |
+
|
13469 |
+
// `Array.from` method
|
13470 |
+
// https://tc39.es/ecma262/#sec-array.from
|
13471 |
+
$({ target: 'Array', stat: true, forced: INCORRECT_ITERATION }, {
|
13472 |
+
from: from
|
13473 |
+
});
|
13474 |
+
|
13475 |
+
|
13476 |
+
/***/ }),
|
13477 |
+
/* 284 */,
|
13478 |
+
/* 285 */
|
13479 |
+
/***/ (function(module, exports, __webpack_require__) {
|
13480 |
+
|
13481 |
+
var $ = __webpack_require__(12);
|
13482 |
+
var $values = __webpack_require__(249).values;
|
13483 |
+
|
13484 |
+
// `Object.values` method
|
13485 |
+
// https://tc39.es/ecma262/#sec-object.values
|
13486 |
+
$({ target: 'Object', stat: true }, {
|
13487 |
+
values: function values(O) {
|
13488 |
+
return $values(O);
|
13489 |
+
}
|
13490 |
+
});
|
13491 |
+
|
13492 |
+
|
13493 |
+
/***/ }),
|
13494 |
+
/* 286 */,
|
13495 |
+
/* 287 */
|
13496 |
+
/***/ (function(module, exports, __webpack_require__) {
|
13497 |
+
|
13498 |
+
"use strict";
|
13499 |
+
|
13500 |
+
// TODO: in core-js@4, move /modules/ dependencies to public entries for better optimization by tools like `preset-env`
|
13501 |
+
__webpack_require__(151);
|
13502 |
+
var $ = __webpack_require__(12);
|
13503 |
+
var DESCRIPTORS = __webpack_require__(13);
|
13504 |
+
var USE_NATIVE_URL = __webpack_require__(254);
|
13505 |
+
var global = __webpack_require__(3);
|
13506 |
+
var defineProperties = __webpack_require__(104);
|
13507 |
+
var redefine = __webpack_require__(27);
|
13508 |
+
var anInstance = __webpack_require__(136);
|
13509 |
+
var has = __webpack_require__(11);
|
13510 |
+
var assign = __webpack_require__(221);
|
13511 |
+
var arrayFrom = __webpack_require__(234);
|
13512 |
+
var codeAt = __webpack_require__(125).codeAt;
|
13513 |
+
var toASCII = __webpack_require__(294);
|
13514 |
+
var setToStringTag = __webpack_require__(90);
|
13515 |
+
var URLSearchParamsModule = __webpack_require__(295);
|
13516 |
+
var InternalStateModule = __webpack_require__(45);
|
13517 |
+
|
13518 |
+
var NativeURL = global.URL;
|
13519 |
+
var URLSearchParams = URLSearchParamsModule.URLSearchParams;
|
13520 |
+
var getInternalSearchParamsState = URLSearchParamsModule.getState;
|
13521 |
+
var setInternalState = InternalStateModule.set;
|
13522 |
+
var getInternalURLState = InternalStateModule.getterFor('URL');
|
13523 |
+
var floor = Math.floor;
|
13524 |
+
var pow = Math.pow;
|
13525 |
+
|
13526 |
+
var INVALID_AUTHORITY = 'Invalid authority';
|
13527 |
+
var INVALID_SCHEME = 'Invalid scheme';
|
13528 |
+
var INVALID_HOST = 'Invalid host';
|
13529 |
+
var INVALID_PORT = 'Invalid port';
|
13530 |
+
|
13531 |
+
var ALPHA = /[A-Za-z]/;
|
13532 |
+
var ALPHANUMERIC = /[\d+-.A-Za-z]/;
|
13533 |
+
var DIGIT = /\d/;
|
13534 |
+
var HEX_START = /^(0x|0X)/;
|
13535 |
+
var OCT = /^[0-7]+$/;
|
13536 |
+
var DEC = /^\d+$/;
|
13537 |
+
var HEX = /^[\dA-Fa-f]+$/;
|
13538 |
+
/* eslint-disable no-control-regex -- safe */
|
13539 |
+
var FORBIDDEN_HOST_CODE_POINT = /[\u0000\t\u000A\u000D #%/:?@[\\]]/;
|
13540 |
+
var FORBIDDEN_HOST_CODE_POINT_EXCLUDING_PERCENT = /[\u0000\t\u000A\u000D #/:?@[\\]]/;
|
13541 |
+
var LEADING_AND_TRAILING_C0_CONTROL_OR_SPACE = /^[\u0000-\u001F ]+|[\u0000-\u001F ]+$/g;
|
13542 |
+
var TAB_AND_NEW_LINE = /[\t\u000A\u000D]/g;
|
13543 |
+
/* eslint-enable no-control-regex -- safe */
|
13544 |
+
var EOF;
|
13545 |
+
|
13546 |
+
var parseHost = function (url, input) {
|
13547 |
+
var result, codePoints, index;
|
13548 |
+
if (input.charAt(0) == '[') {
|
13549 |
+
if (input.charAt(input.length - 1) != ']') return INVALID_HOST;
|
13550 |
+
result = parseIPv6(input.slice(1, -1));
|
13551 |
+
if (!result) return INVALID_HOST;
|
13552 |
+
url.host = result;
|
13553 |
+
// opaque host
|
13554 |
+
} else if (!isSpecial(url)) {
|
13555 |
+
if (FORBIDDEN_HOST_CODE_POINT_EXCLUDING_PERCENT.test(input)) return INVALID_HOST;
|
13556 |
+
result = '';
|
13557 |
+
codePoints = arrayFrom(input);
|
13558 |
+
for (index = 0; index < codePoints.length; index++) {
|
13559 |
+
result += percentEncode(codePoints[index], C0ControlPercentEncodeSet);
|
13560 |
+
}
|
13561 |
+
url.host = result;
|
13562 |
+
} else {
|
13563 |
+
input = toASCII(input);
|
13564 |
+
if (FORBIDDEN_HOST_CODE_POINT.test(input)) return INVALID_HOST;
|
13565 |
+
result = parseIPv4(input);
|
13566 |
+
if (result === null) return INVALID_HOST;
|
13567 |
+
url.host = result;
|
13568 |
+
}
|
13569 |
+
};
|
13570 |
+
|
13571 |
+
var parseIPv4 = function (input) {
|
13572 |
+
var parts = input.split('.');
|
13573 |
+
var partsLength, numbers, index, part, radix, number, ipv4;
|
13574 |
+
if (parts.length && parts[parts.length - 1] == '') {
|
13575 |
+
parts.pop();
|
13576 |
+
}
|
13577 |
+
partsLength = parts.length;
|
13578 |
+
if (partsLength > 4) return input;
|
13579 |
+
numbers = [];
|
13580 |
+
for (index = 0; index < partsLength; index++) {
|
13581 |
+
part = parts[index];
|
13582 |
+
if (part == '') return input;
|
13583 |
+
radix = 10;
|
13584 |
+
if (part.length > 1 && part.charAt(0) == '0') {
|
13585 |
+
radix = HEX_START.test(part) ? 16 : 8;
|
13586 |
+
part = part.slice(radix == 8 ? 1 : 2);
|
13587 |
+
}
|
13588 |
+
if (part === '') {
|
13589 |
+
number = 0;
|
13590 |
+
} else {
|
13591 |
+
if (!(radix == 10 ? DEC : radix == 8 ? OCT : HEX).test(part)) return input;
|
13592 |
+
number = parseInt(part, radix);
|
13593 |
+
}
|
13594 |
+
numbers.push(number);
|
13595 |
+
}
|
13596 |
+
for (index = 0; index < partsLength; index++) {
|
13597 |
+
number = numbers[index];
|
13598 |
+
if (index == partsLength - 1) {
|
13599 |
+
if (number >= pow(256, 5 - partsLength)) return null;
|
13600 |
+
} else if (number > 255) return null;
|
13601 |
+
}
|
13602 |
+
ipv4 = numbers.pop();
|
13603 |
+
for (index = 0; index < numbers.length; index++) {
|
13604 |
+
ipv4 += numbers[index] * pow(256, 3 - index);
|
13605 |
+
}
|
13606 |
+
return ipv4;
|
13607 |
+
};
|
13608 |
+
|
13609 |
+
// eslint-disable-next-line max-statements -- TODO
|
13610 |
+
var parseIPv6 = function (input) {
|
13611 |
+
var address = [0, 0, 0, 0, 0, 0, 0, 0];
|
13612 |
+
var pieceIndex = 0;
|
13613 |
+
var compress = null;
|
13614 |
+
var pointer = 0;
|
13615 |
+
var value, length, numbersSeen, ipv4Piece, number, swaps, swap;
|
13616 |
+
|
13617 |
+
var char = function () {
|
13618 |
+
return input.charAt(pointer);
|
13619 |
+
};
|
13620 |
+
|
13621 |
+
if (char() == ':') {
|
13622 |
+
if (input.charAt(1) != ':') return;
|
13623 |
+
pointer += 2;
|
13624 |
+
pieceIndex++;
|
13625 |
+
compress = pieceIndex;
|
13626 |
+
}
|
13627 |
+
while (char()) {
|
13628 |
+
if (pieceIndex == 8) return;
|
13629 |
+
if (char() == ':') {
|
13630 |
+
if (compress !== null) return;
|
13631 |
+
pointer++;
|
13632 |
+
pieceIndex++;
|
13633 |
+
compress = pieceIndex;
|
13634 |
+
continue;
|
13635 |
+
}
|
13636 |
+
value = length = 0;
|
13637 |
+
while (length < 4 && HEX.test(char())) {
|
13638 |
+
value = value * 16 + parseInt(char(), 16);
|
13639 |
+
pointer++;
|
13640 |
+
length++;
|
13641 |
+
}
|
13642 |
+
if (char() == '.') {
|
13643 |
+
if (length == 0) return;
|
13644 |
+
pointer -= length;
|
13645 |
+
if (pieceIndex > 6) return;
|
13646 |
+
numbersSeen = 0;
|
13647 |
+
while (char()) {
|
13648 |
+
ipv4Piece = null;
|
13649 |
+
if (numbersSeen > 0) {
|
13650 |
+
if (char() == '.' && numbersSeen < 4) pointer++;
|
13651 |
+
else return;
|
13652 |
+
}
|
13653 |
+
if (!DIGIT.test(char())) return;
|
13654 |
+
while (DIGIT.test(char())) {
|
13655 |
+
number = parseInt(char(), 10);
|
13656 |
+
if (ipv4Piece === null) ipv4Piece = number;
|
13657 |
+
else if (ipv4Piece == 0) return;
|
13658 |
+
else ipv4Piece = ipv4Piece * 10 + number;
|
13659 |
+
if (ipv4Piece > 255) return;
|
13660 |
+
pointer++;
|
13661 |
+
}
|
13662 |
+
address[pieceIndex] = address[pieceIndex] * 256 + ipv4Piece;
|
13663 |
+
numbersSeen++;
|
13664 |
+
if (numbersSeen == 2 || numbersSeen == 4) pieceIndex++;
|
13665 |
+
}
|
13666 |
+
if (numbersSeen != 4) return;
|
13667 |
+
break;
|
13668 |
+
} else if (char() == ':') {
|
13669 |
+
pointer++;
|
13670 |
+
if (!char()) return;
|
13671 |
+
} else if (char()) return;
|
13672 |
+
address[pieceIndex++] = value;
|
13673 |
+
}
|
13674 |
+
if (compress !== null) {
|
13675 |
+
swaps = pieceIndex - compress;
|
13676 |
+
pieceIndex = 7;
|
13677 |
+
while (pieceIndex != 0 && swaps > 0) {
|
13678 |
+
swap = address[pieceIndex];
|
13679 |
+
address[pieceIndex--] = address[compress + swaps - 1];
|
13680 |
+
address[compress + --swaps] = swap;
|
13681 |
+
}
|
13682 |
+
} else if (pieceIndex != 8) return;
|
13683 |
+
return address;
|
13684 |
+
};
|
13685 |
+
|
13686 |
+
var findLongestZeroSequence = function (ipv6) {
|
13687 |
+
var maxIndex = null;
|
13688 |
+
var maxLength = 1;
|
13689 |
+
var currStart = null;
|
13690 |
+
var currLength = 0;
|
13691 |
+
var index = 0;
|
13692 |
+
for (; index < 8; index++) {
|
13693 |
+
if (ipv6[index] !== 0) {
|
13694 |
+
if (currLength > maxLength) {
|
13695 |
+
maxIndex = currStart;
|
13696 |
+
maxLength = currLength;
|
13697 |
+
}
|
13698 |
+
currStart = null;
|
13699 |
+
currLength = 0;
|
13700 |
+
} else {
|
13701 |
+
if (currStart === null) currStart = index;
|
13702 |
+
++currLength;
|
13703 |
+
}
|
13704 |
+
}
|
13705 |
+
if (currLength > maxLength) {
|
13706 |
+
maxIndex = currStart;
|
13707 |
+
maxLength = currLength;
|
13708 |
+
}
|
13709 |
+
return maxIndex;
|
13710 |
+
};
|
13711 |
+
|
13712 |
+
var serializeHost = function (host) {
|
13713 |
+
var result, index, compress, ignore0;
|
13714 |
+
// ipv4
|
13715 |
+
if (typeof host == 'number') {
|
13716 |
+
result = [];
|
13717 |
+
for (index = 0; index < 4; index++) {
|
13718 |
+
result.unshift(host % 256);
|
13719 |
+
host = floor(host / 256);
|
13720 |
+
} return result.join('.');
|
13721 |
+
// ipv6
|
13722 |
+
} else if (typeof host == 'object') {
|
13723 |
+
result = '';
|
13724 |
+
compress = findLongestZeroSequence(host);
|
13725 |
+
for (index = 0; index < 8; index++) {
|
13726 |
+
if (ignore0 && host[index] === 0) continue;
|
13727 |
+
if (ignore0) ignore0 = false;
|
13728 |
+
if (compress === index) {
|
13729 |
+
result += index ? ':' : '::';
|
13730 |
+
ignore0 = true;
|
13731 |
+
} else {
|
13732 |
+
result += host[index].toString(16);
|
13733 |
+
if (index < 7) result += ':';
|
13734 |
+
}
|
13735 |
+
}
|
13736 |
+
return '[' + result + ']';
|
13737 |
+
} return host;
|
13738 |
+
};
|
13739 |
+
|
13740 |
+
var C0ControlPercentEncodeSet = {};
|
13741 |
+
var fragmentPercentEncodeSet = assign({}, C0ControlPercentEncodeSet, {
|
13742 |
+
' ': 1, '"': 1, '<': 1, '>': 1, '`': 1
|
13743 |
+
});
|
13744 |
+
var pathPercentEncodeSet = assign({}, fragmentPercentEncodeSet, {
|
13745 |
+
'#': 1, '?': 1, '{': 1, '}': 1
|
13746 |
+
});
|
13747 |
+
var userinfoPercentEncodeSet = assign({}, pathPercentEncodeSet, {
|
13748 |
+
'/': 1, ':': 1, ';': 1, '=': 1, '@': 1, '[': 1, '\\': 1, ']': 1, '^': 1, '|': 1
|
13749 |
+
});
|
13750 |
+
|
13751 |
+
var percentEncode = function (char, set) {
|
13752 |
+
var code = codeAt(char, 0);
|
13753 |
+
return code > 0x20 && code < 0x7F && !has(set, char) ? char : encodeURIComponent(char);
|
13754 |
+
};
|
13755 |
+
|
13756 |
+
var specialSchemes = {
|
13757 |
+
ftp: 21,
|
13758 |
+
file: null,
|
13759 |
+
http: 80,
|
13760 |
+
https: 443,
|
13761 |
+
ws: 80,
|
13762 |
+
wss: 443
|
13763 |
+
};
|
13764 |
+
|
13765 |
+
var isSpecial = function (url) {
|
13766 |
+
return has(specialSchemes, url.scheme);
|
13767 |
+
};
|
13768 |
+
|
13769 |
+
var includesCredentials = function (url) {
|
13770 |
+
return url.username != '' || url.password != '';
|
13771 |
+
};
|
13772 |
+
|
13773 |
+
var cannotHaveUsernamePasswordPort = function (url) {
|
13774 |
+
return !url.host || url.cannotBeABaseURL || url.scheme == 'file';
|
13775 |
+
};
|
13776 |
+
|
13777 |
+
var isWindowsDriveLetter = function (string, normalized) {
|
13778 |
+
var second;
|
13779 |
+
return string.length == 2 && ALPHA.test(string.charAt(0))
|
13780 |
+
&& ((second = string.charAt(1)) == ':' || (!normalized && second == '|'));
|
13781 |
+
};
|
13782 |
+
|
13783 |
+
var startsWithWindowsDriveLetter = function (string) {
|
13784 |
+
var third;
|
13785 |
+
return string.length > 1 && isWindowsDriveLetter(string.slice(0, 2)) && (
|
13786 |
+
string.length == 2 ||
|
13787 |
+
((third = string.charAt(2)) === '/' || third === '\\' || third === '?' || third === '#')
|
13788 |
+
);
|
13789 |
+
};
|
13790 |
+
|
13791 |
+
var shortenURLsPath = function (url) {
|
13792 |
+
var path = url.path;
|
13793 |
+
var pathSize = path.length;
|
13794 |
+
if (pathSize && (url.scheme != 'file' || pathSize != 1 || !isWindowsDriveLetter(path[0], true))) {
|
13795 |
+
path.pop();
|
13796 |
+
}
|
13797 |
+
};
|
13798 |
+
|
13799 |
+
var isSingleDot = function (segment) {
|
13800 |
+
return segment === '.' || segment.toLowerCase() === '%2e';
|
13801 |
+
};
|
13802 |
+
|
13803 |
+
var isDoubleDot = function (segment) {
|
13804 |
+
segment = segment.toLowerCase();
|
13805 |
+
return segment === '..' || segment === '%2e.' || segment === '.%2e' || segment === '%2e%2e';
|
13806 |
+
};
|
13807 |
+
|
13808 |
+
// States:
|
13809 |
+
var SCHEME_START = {};
|
13810 |
+
var SCHEME = {};
|
13811 |
+
var NO_SCHEME = {};
|
13812 |
+
var SPECIAL_RELATIVE_OR_AUTHORITY = {};
|
13813 |
+
var PATH_OR_AUTHORITY = {};
|
13814 |
+
var RELATIVE = {};
|
13815 |
+
var RELATIVE_SLASH = {};
|
13816 |
+
var SPECIAL_AUTHORITY_SLASHES = {};
|
13817 |
+
var SPECIAL_AUTHORITY_IGNORE_SLASHES = {};
|
13818 |
+
var AUTHORITY = {};
|
13819 |
+
var HOST = {};
|
13820 |
+
var HOSTNAME = {};
|
13821 |
+
var PORT = {};
|
13822 |
+
var FILE = {};
|
13823 |
+
var FILE_SLASH = {};
|
13824 |
+
var FILE_HOST = {};
|
13825 |
+
var PATH_START = {};
|
13826 |
+
var PATH = {};
|
13827 |
+
var CANNOT_BE_A_BASE_URL_PATH = {};
|
13828 |
+
var QUERY = {};
|
13829 |
+
var FRAGMENT = {};
|
13830 |
+
|
13831 |
+
// eslint-disable-next-line max-statements -- TODO
|
13832 |
+
var parseURL = function (url, input, stateOverride, base) {
|
13833 |
+
var state = stateOverride || SCHEME_START;
|
13834 |
+
var pointer = 0;
|
13835 |
+
var buffer = '';
|
13836 |
+
var seenAt = false;
|
13837 |
+
var seenBracket = false;
|
13838 |
+
var seenPasswordToken = false;
|
13839 |
+
var codePoints, char, bufferCodePoints, failure;
|
13840 |
+
|
13841 |
+
if (!stateOverride) {
|
13842 |
+
url.scheme = '';
|
13843 |
+
url.username = '';
|
13844 |
+
url.password = '';
|
13845 |
+
url.host = null;
|
13846 |
+
url.port = null;
|
13847 |
+
url.path = [];
|
13848 |
+
url.query = null;
|
13849 |
+
url.fragment = null;
|
13850 |
+
url.cannotBeABaseURL = false;
|
13851 |
+
input = input.replace(LEADING_AND_TRAILING_C0_CONTROL_OR_SPACE, '');
|
13852 |
+
}
|
13853 |
+
|
13854 |
+
input = input.replace(TAB_AND_NEW_LINE, '');
|
13855 |
+
|
13856 |
+
codePoints = arrayFrom(input);
|
13857 |
+
|
13858 |
+
while (pointer <= codePoints.length) {
|
13859 |
+
char = codePoints[pointer];
|
13860 |
+
switch (state) {
|
13861 |
+
case SCHEME_START:
|
13862 |
+
if (char && ALPHA.test(char)) {
|
13863 |
+
buffer += char.toLowerCase();
|
13864 |
+
state = SCHEME;
|
13865 |
+
} else if (!stateOverride) {
|
13866 |
+
state = NO_SCHEME;
|
13867 |
+
continue;
|
13868 |
+
} else return INVALID_SCHEME;
|
13869 |
+
break;
|
13870 |
+
|
13871 |
+
case SCHEME:
|
13872 |
+
if (char && (ALPHANUMERIC.test(char) || char == '+' || char == '-' || char == '.')) {
|
13873 |
+
buffer += char.toLowerCase();
|
13874 |
+
} else if (char == ':') {
|
13875 |
+
if (stateOverride && (
|
13876 |
+
(isSpecial(url) != has(specialSchemes, buffer)) ||
|
13877 |
+
(buffer == 'file' && (includesCredentials(url) || url.port !== null)) ||
|
13878 |
+
(url.scheme == 'file' && !url.host)
|
13879 |
+
)) return;
|
13880 |
+
url.scheme = buffer;
|
13881 |
+
if (stateOverride) {
|
13882 |
+
if (isSpecial(url) && specialSchemes[url.scheme] == url.port) url.port = null;
|
13883 |
+
return;
|
13884 |
+
}
|
13885 |
+
buffer = '';
|
13886 |
+
if (url.scheme == 'file') {
|
13887 |
+
state = FILE;
|
13888 |
+
} else if (isSpecial(url) && base && base.scheme == url.scheme) {
|
13889 |
+
state = SPECIAL_RELATIVE_OR_AUTHORITY;
|
13890 |
+
} else if (isSpecial(url)) {
|
13891 |
+
state = SPECIAL_AUTHORITY_SLASHES;
|
13892 |
+
} else if (codePoints[pointer + 1] == '/') {
|
13893 |
+
state = PATH_OR_AUTHORITY;
|
13894 |
+
pointer++;
|
13895 |
+
} else {
|
13896 |
+
url.cannotBeABaseURL = true;
|
13897 |
+
url.path.push('');
|
13898 |
+
state = CANNOT_BE_A_BASE_URL_PATH;
|
13899 |
+
}
|
13900 |
+
} else if (!stateOverride) {
|
13901 |
+
buffer = '';
|
13902 |
+
state = NO_SCHEME;
|
13903 |
+
pointer = 0;
|
13904 |
+
continue;
|
13905 |
+
} else return INVALID_SCHEME;
|
13906 |
+
break;
|
13907 |
+
|
13908 |
+
case NO_SCHEME:
|
13909 |
+
if (!base || (base.cannotBeABaseURL && char != '#')) return INVALID_SCHEME;
|
13910 |
+
if (base.cannotBeABaseURL && char == '#') {
|
13911 |
+
url.scheme = base.scheme;
|
13912 |
+
url.path = base.path.slice();
|
13913 |
+
url.query = base.query;
|
13914 |
+
url.fragment = '';
|
13915 |
+
url.cannotBeABaseURL = true;
|
13916 |
+
state = FRAGMENT;
|
13917 |
+
break;
|
13918 |
+
}
|
13919 |
+
state = base.scheme == 'file' ? FILE : RELATIVE;
|
13920 |
+
continue;
|
13921 |
+
|
13922 |
+
case SPECIAL_RELATIVE_OR_AUTHORITY:
|
13923 |
+
if (char == '/' && codePoints[pointer + 1] == '/') {
|
13924 |
+
state = SPECIAL_AUTHORITY_IGNORE_SLASHES;
|
13925 |
+
pointer++;
|
13926 |
+
} else {
|
13927 |
+
state = RELATIVE;
|
13928 |
+
continue;
|
13929 |
+
} break;
|
13930 |
+
|
13931 |
+
case PATH_OR_AUTHORITY:
|
13932 |
+
if (char == '/') {
|
13933 |
+
state = AUTHORITY;
|
13934 |
+
break;
|
13935 |
+
} else {
|
13936 |
+
state = PATH;
|
13937 |
+
continue;
|
13938 |
+
}
|
13939 |
+
|
13940 |
+
case RELATIVE:
|
13941 |
+
url.scheme = base.scheme;
|
13942 |
+
if (char == EOF) {
|
13943 |
+
url.username = base.username;
|
13944 |
+
url.password = base.password;
|
13945 |
+
url.host = base.host;
|
13946 |
+
url.port = base.port;
|
13947 |
+
url.path = base.path.slice();
|
13948 |
+
url.query = base.query;
|
13949 |
+
} else if (char == '/' || (char == '\\' && isSpecial(url))) {
|
13950 |
+
state = RELATIVE_SLASH;
|
13951 |
+
} else if (char == '?') {
|
13952 |
+
url.username = base.username;
|
13953 |
+
url.password = base.password;
|
13954 |
+
url.host = base.host;
|
13955 |
+
url.port = base.port;
|
13956 |
+
url.path = base.path.slice();
|
13957 |
+
url.query = '';
|
13958 |
+
state = QUERY;
|
13959 |
+
} else if (char == '#') {
|
13960 |
+
url.username = base.username;
|
13961 |
+
url.password = base.password;
|
13962 |
+
url.host = base.host;
|
13963 |
+
url.port = base.port;
|
13964 |
+
url.path = base.path.slice();
|
13965 |
+
url.query = base.query;
|
13966 |
+
url.fragment = '';
|
13967 |
+
state = FRAGMENT;
|
13968 |
+
} else {
|
13969 |
+
url.username = base.username;
|
13970 |
+
url.password = base.password;
|
13971 |
+
url.host = base.host;
|
13972 |
+
url.port = base.port;
|
13973 |
+
url.path = base.path.slice();
|
13974 |
+
url.path.pop();
|
13975 |
+
state = PATH;
|
13976 |
+
continue;
|
13977 |
+
} break;
|
13978 |
+
|
13979 |
+
case RELATIVE_SLASH:
|
13980 |
+
if (isSpecial(url) && (char == '/' || char == '\\')) {
|
13981 |
+
state = SPECIAL_AUTHORITY_IGNORE_SLASHES;
|
13982 |
+
} else if (char == '/') {
|
13983 |
+
state = AUTHORITY;
|
13984 |
+
} else {
|
13985 |
+
url.username = base.username;
|
13986 |
+
url.password = base.password;
|
13987 |
+
url.host = base.host;
|
13988 |
+
url.port = base.port;
|
13989 |
+
state = PATH;
|
13990 |
+
continue;
|
13991 |
+
} break;
|
13992 |
+
|
13993 |
+
case SPECIAL_AUTHORITY_SLASHES:
|
13994 |
+
state = SPECIAL_AUTHORITY_IGNORE_SLASHES;
|
13995 |
+
if (char != '/' || buffer.charAt(pointer + 1) != '/') continue;
|
13996 |
+
pointer++;
|
13997 |
+
break;
|
13998 |
+
|
13999 |
+
case SPECIAL_AUTHORITY_IGNORE_SLASHES:
|
14000 |
+
if (char != '/' && char != '\\') {
|
14001 |
+
state = AUTHORITY;
|
14002 |
+
continue;
|
14003 |
+
} break;
|
14004 |
+
|
14005 |
+
case AUTHORITY:
|
14006 |
+
if (char == '@') {
|
14007 |
+
if (seenAt) buffer = '%40' + buffer;
|
14008 |
+
seenAt = true;
|
14009 |
+
bufferCodePoints = arrayFrom(buffer);
|
14010 |
+
for (var i = 0; i < bufferCodePoints.length; i++) {
|
14011 |
+
var codePoint = bufferCodePoints[i];
|
14012 |
+
if (codePoint == ':' && !seenPasswordToken) {
|
14013 |
+
seenPasswordToken = true;
|
14014 |
+
continue;
|
14015 |
+
}
|
14016 |
+
var encodedCodePoints = percentEncode(codePoint, userinfoPercentEncodeSet);
|
14017 |
+
if (seenPasswordToken) url.password += encodedCodePoints;
|
14018 |
+
else url.username += encodedCodePoints;
|
14019 |
+
}
|
14020 |
+
buffer = '';
|
14021 |
+
} else if (
|
14022 |
+
char == EOF || char == '/' || char == '?' || char == '#' ||
|
14023 |
+
(char == '\\' && isSpecial(url))
|
14024 |
+
) {
|
14025 |
+
if (seenAt && buffer == '') return INVALID_AUTHORITY;
|
14026 |
+
pointer -= arrayFrom(buffer).length + 1;
|
14027 |
+
buffer = '';
|
14028 |
+
state = HOST;
|
14029 |
+
} else buffer += char;
|
14030 |
+
break;
|
14031 |
+
|
14032 |
+
case HOST:
|
14033 |
+
case HOSTNAME:
|
14034 |
+
if (stateOverride && url.scheme == 'file') {
|
14035 |
+
state = FILE_HOST;
|
14036 |
+
continue;
|
14037 |
+
} else if (char == ':' && !seenBracket) {
|
14038 |
+
if (buffer == '') return INVALID_HOST;
|
14039 |
+
failure = parseHost(url, buffer);
|
14040 |
+
if (failure) return failure;
|
14041 |
+
buffer = '';
|
14042 |
+
state = PORT;
|
14043 |
+
if (stateOverride == HOSTNAME) return;
|
14044 |
+
} else if (
|
14045 |
+
char == EOF || char == '/' || char == '?' || char == '#' ||
|
14046 |
+
(char == '\\' && isSpecial(url))
|
14047 |
+
) {
|
14048 |
+
if (isSpecial(url) && buffer == '') return INVALID_HOST;
|
14049 |
+
if (stateOverride && buffer == '' && (includesCredentials(url) || url.port !== null)) return;
|
14050 |
+
failure = parseHost(url, buffer);
|
14051 |
+
if (failure) return failure;
|
14052 |
+
buffer = '';
|
14053 |
+
state = PATH_START;
|
14054 |
+
if (stateOverride) return;
|
14055 |
+
continue;
|
14056 |
+
} else {
|
14057 |
+
if (char == '[') seenBracket = true;
|
14058 |
+
else if (char == ']') seenBracket = false;
|
14059 |
+
buffer += char;
|
14060 |
+
} break;
|
14061 |
+
|
14062 |
+
case PORT:
|
14063 |
+
if (DIGIT.test(char)) {
|
14064 |
+
buffer += char;
|
14065 |
+
} else if (
|
14066 |
+
char == EOF || char == '/' || char == '?' || char == '#' ||
|
14067 |
+
(char == '\\' && isSpecial(url)) ||
|
14068 |
+
stateOverride
|
14069 |
+
) {
|
14070 |
+
if (buffer != '') {
|
14071 |
+
var port = parseInt(buffer, 10);
|
14072 |
+
if (port > 0xFFFF) return INVALID_PORT;
|
14073 |
+
url.port = (isSpecial(url) && port === specialSchemes[url.scheme]) ? null : port;
|
14074 |
+
buffer = '';
|
14075 |
+
}
|
14076 |
+
if (stateOverride) return;
|
14077 |
+
state = PATH_START;
|
14078 |
+
continue;
|
14079 |
+
} else return INVALID_PORT;
|
14080 |
+
break;
|
14081 |
+
|
14082 |
+
case FILE:
|
14083 |
+
url.scheme = 'file';
|
14084 |
+
if (char == '/' || char == '\\') state = FILE_SLASH;
|
14085 |
+
else if (base && base.scheme == 'file') {
|
14086 |
+
if (char == EOF) {
|
14087 |
+
url.host = base.host;
|
14088 |
+
url.path = base.path.slice();
|
14089 |
+
url.query = base.query;
|
14090 |
+
} else if (char == '?') {
|
14091 |
+
url.host = base.host;
|
14092 |
+
url.path = base.path.slice();
|
14093 |
+
url.query = '';
|
14094 |
+
state = QUERY;
|
14095 |
+
} else if (char == '#') {
|
14096 |
+
url.host = base.host;
|
14097 |
+
url.path = base.path.slice();
|
14098 |
+
url.query = base.query;
|
14099 |
+
url.fragment = '';
|
14100 |
+
state = FRAGMENT;
|
14101 |
+
} else {
|
14102 |
+
if (!startsWithWindowsDriveLetter(codePoints.slice(pointer).join(''))) {
|
14103 |
+
url.host = base.host;
|
14104 |
+
url.path = base.path.slice();
|
14105 |
+
shortenURLsPath(url);
|
14106 |
+
}
|
14107 |
+
state = PATH;
|
14108 |
+
continue;
|
14109 |
+
}
|
14110 |
+
} else {
|
14111 |
+
state = PATH;
|
14112 |
+
continue;
|
14113 |
+
} break;
|
14114 |
+
|
14115 |
+
case FILE_SLASH:
|
14116 |
+
if (char == '/' || char == '\\') {
|
14117 |
+
state = FILE_HOST;
|
14118 |
+
break;
|
14119 |
+
}
|
14120 |
+
if (base && base.scheme == 'file' && !startsWithWindowsDriveLetter(codePoints.slice(pointer).join(''))) {
|
14121 |
+
if (isWindowsDriveLetter(base.path[0], true)) url.path.push(base.path[0]);
|
14122 |
+
else url.host = base.host;
|
14123 |
+
}
|
14124 |
+
state = PATH;
|
14125 |
+
continue;
|
14126 |
+
|
14127 |
+
case FILE_HOST:
|
14128 |
+
if (char == EOF || char == '/' || char == '\\' || char == '?' || char == '#') {
|
14129 |
+
if (!stateOverride && isWindowsDriveLetter(buffer)) {
|
14130 |
+
state = PATH;
|
14131 |
+
} else if (buffer == '') {
|
14132 |
+
url.host = '';
|
14133 |
+
if (stateOverride) return;
|
14134 |
+
state = PATH_START;
|
14135 |
+
} else {
|
14136 |
+
failure = parseHost(url, buffer);
|
14137 |
+
if (failure) return failure;
|
14138 |
+
if (url.host == 'localhost') url.host = '';
|
14139 |
+
if (stateOverride) return;
|
14140 |
+
buffer = '';
|
14141 |
+
state = PATH_START;
|
14142 |
+
} continue;
|
14143 |
+
} else buffer += char;
|
14144 |
+
break;
|
14145 |
+
|
14146 |
+
case PATH_START:
|
14147 |
+
if (isSpecial(url)) {
|
14148 |
+
state = PATH;
|
14149 |
+
if (char != '/' && char != '\\') continue;
|
14150 |
+
} else if (!stateOverride && char == '?') {
|
14151 |
+
url.query = '';
|
14152 |
+
state = QUERY;
|
14153 |
+
} else if (!stateOverride && char == '#') {
|
14154 |
+
url.fragment = '';
|
14155 |
+
state = FRAGMENT;
|
14156 |
+
} else if (char != EOF) {
|
14157 |
+
state = PATH;
|
14158 |
+
if (char != '/') continue;
|
14159 |
+
} break;
|
14160 |
+
|
14161 |
+
case PATH:
|
14162 |
+
if (
|
14163 |
+
char == EOF || char == '/' ||
|
14164 |
+
(char == '\\' && isSpecial(url)) ||
|
14165 |
+
(!stateOverride && (char == '?' || char == '#'))
|
14166 |
+
) {
|
14167 |
+
if (isDoubleDot(buffer)) {
|
14168 |
+
shortenURLsPath(url);
|
14169 |
+
if (char != '/' && !(char == '\\' && isSpecial(url))) {
|
14170 |
+
url.path.push('');
|
14171 |
+
}
|
14172 |
+
} else if (isSingleDot(buffer)) {
|
14173 |
+
if (char != '/' && !(char == '\\' && isSpecial(url))) {
|
14174 |
+
url.path.push('');
|
14175 |
+
}
|
14176 |
+
} else {
|
14177 |
+
if (url.scheme == 'file' && !url.path.length && isWindowsDriveLetter(buffer)) {
|
14178 |
+
if (url.host) url.host = '';
|
14179 |
+
buffer = buffer.charAt(0) + ':'; // normalize windows drive letter
|
14180 |
+
}
|
14181 |
+
url.path.push(buffer);
|
14182 |
+
}
|
14183 |
+
buffer = '';
|
14184 |
+
if (url.scheme == 'file' && (char == EOF || char == '?' || char == '#')) {
|
14185 |
+
while (url.path.length > 1 && url.path[0] === '') {
|
14186 |
+
url.path.shift();
|
14187 |
+
}
|
14188 |
+
}
|
14189 |
+
if (char == '?') {
|
14190 |
+
url.query = '';
|
14191 |
+
state = QUERY;
|
14192 |
+
} else if (char == '#') {
|
14193 |
+
url.fragment = '';
|
14194 |
+
state = FRAGMENT;
|
14195 |
+
}
|
14196 |
+
} else {
|
14197 |
+
buffer += percentEncode(char, pathPercentEncodeSet);
|
14198 |
+
} break;
|
14199 |
+
|
14200 |
+
case CANNOT_BE_A_BASE_URL_PATH:
|
14201 |
+
if (char == '?') {
|
14202 |
+
url.query = '';
|
14203 |
+
state = QUERY;
|
14204 |
+
} else if (char == '#') {
|
14205 |
+
url.fragment = '';
|
14206 |
+
state = FRAGMENT;
|
14207 |
+
} else if (char != EOF) {
|
14208 |
+
url.path[0] += percentEncode(char, C0ControlPercentEncodeSet);
|
14209 |
+
} break;
|
14210 |
+
|
14211 |
+
case QUERY:
|
14212 |
+
if (!stateOverride && char == '#') {
|
14213 |
+
url.fragment = '';
|
14214 |
+
state = FRAGMENT;
|
14215 |
+
} else if (char != EOF) {
|
14216 |
+
if (char == "'" && isSpecial(url)) url.query += '%27';
|
14217 |
+
else if (char == '#') url.query += '%23';
|
14218 |
+
else url.query += percentEncode(char, C0ControlPercentEncodeSet);
|
14219 |
+
} break;
|
14220 |
+
|
14221 |
+
case FRAGMENT:
|
14222 |
+
if (char != EOF) url.fragment += percentEncode(char, fragmentPercentEncodeSet);
|
14223 |
+
break;
|
14224 |
+
}
|
14225 |
+
|
14226 |
+
pointer++;
|
14227 |
+
}
|
14228 |
+
};
|
14229 |
+
|
14230 |
+
// `URL` constructor
|
14231 |
+
// https://url.spec.whatwg.org/#url-class
|
14232 |
+
var URLConstructor = function URL(url /* , base */) {
|
14233 |
+
var that = anInstance(this, URLConstructor, 'URL');
|
14234 |
+
var base = arguments.length > 1 ? arguments[1] : undefined;
|
14235 |
+
var urlString = String(url);
|
14236 |
+
var state = setInternalState(that, { type: 'URL' });
|
14237 |
+
var baseState, failure;
|
14238 |
+
if (base !== undefined) {
|
14239 |
+
if (base instanceof URLConstructor) baseState = getInternalURLState(base);
|
14240 |
+
else {
|
14241 |
+
failure = parseURL(baseState = {}, String(base));
|
14242 |
+
if (failure) throw TypeError(failure);
|
14243 |
+
}
|
14244 |
+
}
|
14245 |
+
failure = parseURL(state, urlString, null, baseState);
|
14246 |
+
if (failure) throw TypeError(failure);
|
14247 |
+
var searchParams = state.searchParams = new URLSearchParams();
|
14248 |
+
var searchParamsState = getInternalSearchParamsState(searchParams);
|
14249 |
+
searchParamsState.updateSearchParams(state.query);
|
14250 |
+
searchParamsState.updateURL = function () {
|
14251 |
+
state.query = String(searchParams) || null;
|
14252 |
+
};
|
14253 |
+
if (!DESCRIPTORS) {
|
14254 |
+
that.href = serializeURL.call(that);
|
14255 |
+
that.origin = getOrigin.call(that);
|
14256 |
+
that.protocol = getProtocol.call(that);
|
14257 |
+
that.username = getUsername.call(that);
|
14258 |
+
that.password = getPassword.call(that);
|
14259 |
+
that.host = getHost.call(that);
|
14260 |
+
that.hostname = getHostname.call(that);
|
14261 |
+
that.port = getPort.call(that);
|
14262 |
+
that.pathname = getPathname.call(that);
|
14263 |
+
that.search = getSearch.call(that);
|
14264 |
+
that.searchParams = getSearchParams.call(that);
|
14265 |
+
that.hash = getHash.call(that);
|
14266 |
+
}
|
14267 |
+
};
|
14268 |
+
|
14269 |
+
var URLPrototype = URLConstructor.prototype;
|
14270 |
+
|
14271 |
+
var serializeURL = function () {
|
14272 |
+
var url = getInternalURLState(this);
|
14273 |
+
var scheme = url.scheme;
|
14274 |
+
var username = url.username;
|
14275 |
+
var password = url.password;
|
14276 |
+
var host = url.host;
|
14277 |
+
var port = url.port;
|
14278 |
+
var path = url.path;
|
14279 |
+
var query = url.query;
|
14280 |
+
var fragment = url.fragment;
|
14281 |
+
var output = scheme + ':';
|
14282 |
+
if (host !== null) {
|
14283 |
+
output += '//';
|
14284 |
+
if (includesCredentials(url)) {
|
14285 |
+
output += username + (password ? ':' + password : '') + '@';
|
14286 |
+
}
|
14287 |
+
output += serializeHost(host);
|
14288 |
+
if (port !== null) output += ':' + port;
|
14289 |
+
} else if (scheme == 'file') output += '//';
|
14290 |
+
output += url.cannotBeABaseURL ? path[0] : path.length ? '/' + path.join('/') : '';
|
14291 |
+
if (query !== null) output += '?' + query;
|
14292 |
+
if (fragment !== null) output += '#' + fragment;
|
14293 |
+
return output;
|
14294 |
+
};
|
14295 |
+
|
14296 |
+
var getOrigin = function () {
|
14297 |
+
var url = getInternalURLState(this);
|
14298 |
+
var scheme = url.scheme;
|
14299 |
+
var port = url.port;
|
14300 |
+
if (scheme == 'blob') try {
|
14301 |
+
return new URL(scheme.path[0]).origin;
|
14302 |
+
} catch (error) {
|
14303 |
+
return 'null';
|
14304 |
+
}
|
14305 |
+
if (scheme == 'file' || !isSpecial(url)) return 'null';
|
14306 |
+
return scheme + '://' + serializeHost(url.host) + (port !== null ? ':' + port : '');
|
14307 |
+
};
|
14308 |
+
|
14309 |
+
var getProtocol = function () {
|
14310 |
+
return getInternalURLState(this).scheme + ':';
|
14311 |
+
};
|
14312 |
+
|
14313 |
+
var getUsername = function () {
|
14314 |
+
return getInternalURLState(this).username;
|
14315 |
+
};
|
14316 |
+
|
14317 |
+
var getPassword = function () {
|
14318 |
+
return getInternalURLState(this).password;
|
14319 |
+
};
|
14320 |
+
|
14321 |
+
var getHost = function () {
|
14322 |
+
var url = getInternalURLState(this);
|
14323 |
+
var host = url.host;
|
14324 |
+
var port = url.port;
|
14325 |
+
return host === null ? ''
|
14326 |
+
: port === null ? serializeHost(host)
|
14327 |
+
: serializeHost(host) + ':' + port;
|
14328 |
+
};
|
14329 |
+
|
14330 |
+
var getHostname = function () {
|
14331 |
+
var host = getInternalURLState(this).host;
|
14332 |
+
return host === null ? '' : serializeHost(host);
|
14333 |
+
};
|
14334 |
+
|
14335 |
+
var getPort = function () {
|
14336 |
+
var port = getInternalURLState(this).port;
|
14337 |
+
return port === null ? '' : String(port);
|
14338 |
+
};
|
14339 |
+
|
14340 |
+
var getPathname = function () {
|
14341 |
+
var url = getInternalURLState(this);
|
14342 |
+
var path = url.path;
|
14343 |
+
return url.cannotBeABaseURL ? path[0] : path.length ? '/' + path.join('/') : '';
|
14344 |
+
};
|
14345 |
+
|
14346 |
+
var getSearch = function () {
|
14347 |
+
var query = getInternalURLState(this).query;
|
14348 |
+
return query ? '?' + query : '';
|
14349 |
+
};
|
14350 |
+
|
14351 |
+
var getSearchParams = function () {
|
14352 |
+
return getInternalURLState(this).searchParams;
|
14353 |
+
};
|
14354 |
+
|
14355 |
+
var getHash = function () {
|
14356 |
+
var fragment = getInternalURLState(this).fragment;
|
14357 |
+
return fragment ? '#' + fragment : '';
|
14358 |
+
};
|
14359 |
+
|
14360 |
+
var accessorDescriptor = function (getter, setter) {
|
14361 |
+
return { get: getter, set: setter, configurable: true, enumerable: true };
|
14362 |
+
};
|
14363 |
+
|
14364 |
+
if (DESCRIPTORS) {
|
14365 |
+
defineProperties(URLPrototype, {
|
14366 |
+
// `URL.prototype.href` accessors pair
|
14367 |
+
// https://url.spec.whatwg.org/#dom-url-href
|
14368 |
+
href: accessorDescriptor(serializeURL, function (href) {
|
14369 |
+
var url = getInternalURLState(this);
|
14370 |
+
var urlString = String(href);
|
14371 |
+
var failure = parseURL(url, urlString);
|
14372 |
+
if (failure) throw TypeError(failure);
|
14373 |
+
getInternalSearchParamsState(url.searchParams).updateSearchParams(url.query);
|
14374 |
+
}),
|
14375 |
+
// `URL.prototype.origin` getter
|
14376 |
+
// https://url.spec.whatwg.org/#dom-url-origin
|
14377 |
+
origin: accessorDescriptor(getOrigin),
|
14378 |
+
// `URL.prototype.protocol` accessors pair
|
14379 |
+
// https://url.spec.whatwg.org/#dom-url-protocol
|
14380 |
+
protocol: accessorDescriptor(getProtocol, function (protocol) {
|
14381 |
+
var url = getInternalURLState(this);
|
14382 |
+
parseURL(url, String(protocol) + ':', SCHEME_START);
|
14383 |
+
}),
|
14384 |
+
// `URL.prototype.username` accessors pair
|
14385 |
+
// https://url.spec.whatwg.org/#dom-url-username
|
14386 |
+
username: accessorDescriptor(getUsername, function (username) {
|
14387 |
+
var url = getInternalURLState(this);
|
14388 |
+
var codePoints = arrayFrom(String(username));
|
14389 |
+
if (cannotHaveUsernamePasswordPort(url)) return;
|
14390 |
+
url.username = '';
|
14391 |
+
for (var i = 0; i < codePoints.length; i++) {
|
14392 |
+
url.username += percentEncode(codePoints[i], userinfoPercentEncodeSet);
|
14393 |
+
}
|
14394 |
+
}),
|
14395 |
+
// `URL.prototype.password` accessors pair
|
14396 |
+
// https://url.spec.whatwg.org/#dom-url-password
|
14397 |
+
password: accessorDescriptor(getPassword, function (password) {
|
14398 |
+
var url = getInternalURLState(this);
|
14399 |
+
var codePoints = arrayFrom(String(password));
|
14400 |
+
if (cannotHaveUsernamePasswordPort(url)) return;
|
14401 |
+
url.password = '';
|
14402 |
+
for (var i = 0; i < codePoints.length; i++) {
|
14403 |
+
url.password += percentEncode(codePoints[i], userinfoPercentEncodeSet);
|
14404 |
+
}
|
14405 |
+
}),
|
14406 |
+
// `URL.prototype.host` accessors pair
|
14407 |
+
// https://url.spec.whatwg.org/#dom-url-host
|
14408 |
+
host: accessorDescriptor(getHost, function (host) {
|
14409 |
+
var url = getInternalURLState(this);
|
14410 |
+
if (url.cannotBeABaseURL) return;
|
14411 |
+
parseURL(url, String(host), HOST);
|
14412 |
+
}),
|
14413 |
+
// `URL.prototype.hostname` accessors pair
|
14414 |
+
// https://url.spec.whatwg.org/#dom-url-hostname
|
14415 |
+
hostname: accessorDescriptor(getHostname, function (hostname) {
|
14416 |
+
var url = getInternalURLState(this);
|
14417 |
+
if (url.cannotBeABaseURL) return;
|
14418 |
+
parseURL(url, String(hostname), HOSTNAME);
|
14419 |
+
}),
|
14420 |
+
// `URL.prototype.port` accessors pair
|
14421 |
+
// https://url.spec.whatwg.org/#dom-url-port
|
14422 |
+
port: accessorDescriptor(getPort, function (port) {
|
14423 |
+
var url = getInternalURLState(this);
|
14424 |
+
if (cannotHaveUsernamePasswordPort(url)) return;
|
14425 |
+
port = String(port);
|
14426 |
+
if (port == '') url.port = null;
|
14427 |
+
else parseURL(url, port, PORT);
|
14428 |
+
}),
|
14429 |
+
// `URL.prototype.pathname` accessors pair
|
14430 |
+
// https://url.spec.whatwg.org/#dom-url-pathname
|
14431 |
+
pathname: accessorDescriptor(getPathname, function (pathname) {
|
14432 |
+
var url = getInternalURLState(this);
|
14433 |
+
if (url.cannotBeABaseURL) return;
|
14434 |
+
url.path = [];
|
14435 |
+
parseURL(url, pathname + '', PATH_START);
|
14436 |
+
}),
|
14437 |
+
// `URL.prototype.search` accessors pair
|
14438 |
+
// https://url.spec.whatwg.org/#dom-url-search
|
14439 |
+
search: accessorDescriptor(getSearch, function (search) {
|
14440 |
+
var url = getInternalURLState(this);
|
14441 |
+
search = String(search);
|
14442 |
+
if (search == '') {
|
14443 |
+
url.query = null;
|
14444 |
+
} else {
|
14445 |
+
if ('?' == search.charAt(0)) search = search.slice(1);
|
14446 |
+
url.query = '';
|
14447 |
+
parseURL(url, search, QUERY);
|
14448 |
+
}
|
14449 |
+
getInternalSearchParamsState(url.searchParams).updateSearchParams(url.query);
|
14450 |
+
}),
|
14451 |
+
// `URL.prototype.searchParams` getter
|
14452 |
+
// https://url.spec.whatwg.org/#dom-url-searchparams
|
14453 |
+
searchParams: accessorDescriptor(getSearchParams),
|
14454 |
+
// `URL.prototype.hash` accessors pair
|
14455 |
+
// https://url.spec.whatwg.org/#dom-url-hash
|
14456 |
+
hash: accessorDescriptor(getHash, function (hash) {
|
14457 |
+
var url = getInternalURLState(this);
|
14458 |
+
hash = String(hash);
|
14459 |
+
if (hash == '') {
|
14460 |
+
url.fragment = null;
|
14461 |
+
return;
|
14462 |
+
}
|
14463 |
+
if ('#' == hash.charAt(0)) hash = hash.slice(1);
|
14464 |
+
url.fragment = '';
|
14465 |
+
parseURL(url, hash, FRAGMENT);
|
14466 |
+
})
|
14467 |
+
});
|
14468 |
+
}
|
14469 |
+
|
14470 |
+
// `URL.prototype.toJSON` method
|
14471 |
+
// https://url.spec.whatwg.org/#dom-url-tojson
|
14472 |
+
redefine(URLPrototype, 'toJSON', function toJSON() {
|
14473 |
+
return serializeURL.call(this);
|
14474 |
+
}, { enumerable: true });
|
14475 |
+
|
14476 |
+
// `URL.prototype.toString` method
|
14477 |
+
// https://url.spec.whatwg.org/#URL-stringification-behavior
|
14478 |
+
redefine(URLPrototype, 'toString', function toString() {
|
14479 |
+
return serializeURL.call(this);
|
14480 |
+
}, { enumerable: true });
|
14481 |
+
|
14482 |
+
if (NativeURL) {
|
14483 |
+
var nativeCreateObjectURL = NativeURL.createObjectURL;
|
14484 |
+
var nativeRevokeObjectURL = NativeURL.revokeObjectURL;
|
14485 |
+
// `URL.createObjectURL` method
|
14486 |
+
// https://developer.mozilla.org/en-US/docs/Web/API/URL/createObjectURL
|
14487 |
+
// eslint-disable-next-line no-unused-vars -- required for `.length`
|
14488 |
+
if (nativeCreateObjectURL) redefine(URLConstructor, 'createObjectURL', function createObjectURL(blob) {
|
14489 |
+
return nativeCreateObjectURL.apply(NativeURL, arguments);
|
14490 |
+
});
|
14491 |
+
// `URL.revokeObjectURL` method
|
14492 |
+
// https://developer.mozilla.org/en-US/docs/Web/API/URL/revokeObjectURL
|
14493 |
+
// eslint-disable-next-line no-unused-vars -- required for `.length`
|
14494 |
+
if (nativeRevokeObjectURL) redefine(URLConstructor, 'revokeObjectURL', function revokeObjectURL(url) {
|